Sync with r21-2-44-utf-2000-m0_18-mcsi.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (charset_code_point): Fix problem about
4         inheritance.
5
6 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
7
8         * mule-charset.c (decode_builtin_char): Reorganized.
9
10 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * text-coding.c (char_encode_as_entity_reference): Modify for
13         `charset_code_point'.
14         (char_encode_shift_jis): Likewise.
15         (char_encode_big5): Likewise.
16         (char_encode_utf8): Likewise.
17         (char_encode_iso2022): Likewise.
18
19         * mule-charset.c (charset_code_point): Add new argument
20         `defined_only'.
21         (Fencode_char): Add new optional argument `defined_only'.
22
23         * chartab.c (put_char_table): Modify for `charset_code_point'.
24
25         * char-ucs.h (charset_code_point): Add new argument
26         `defined_only'.
27         (encode_char_1): Modify for `charset_code_point'.
28
29 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
30
31         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
32         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
33
34 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
35
36         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
37         (Qjis_x0208): Likewise.
38         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
39         XCHARSET_FINAL(charset).
40         (charset_code_point): Modify condition for final-byte based
41         builtin-chars.
42         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
43         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
44         in UTF-2000; specify `=jis-x0208' as the mother of
45         `japanese-jisx0208-1978', `japanese-jisx0208' and
46         `japanese-jisx0208-1990' in UTF-2000.
47
48 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
49
50         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
51
52 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
53
54         * text-coding.c (decode_coding_utf16): Support UTF-16.
55         (char_encode_utf16): Fixed.
56
57 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
58
59         * text-coding.c (Qutf16): New variable in MULE.
60         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
61         (Fcoding_system_type): Add `utf-16' in MULE.
62         (struct detection_state): Add a structure for utf16 in MULE.
63         (detect_coding_type): Setup st->utf16.mask in MULE.
64         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
65         MULE.
66         (reset_encoding_stream): Use `char_encode_utf16' and
67         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
68         (detect_coding_utf16): New function [incomplete].
69         (decode_coding_utf16): New function [support only UCS-2].
70         (char_encode_utf16): New function.
71         (char_finish_utf16): New function.
72         (syms_of_file_coding): Add new symbol `utf-16'; setup
73         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
74
75         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
76         UTF-2000.
77         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
78         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
79
80 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
81
82         * chartab.c (put_char_table): When a charset is specified as a
83         range in UTF-2000, don't support builtin characters.
84
85 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
86
87         * mule-charset.c (decode_defined_char): Don't refer external
88         database if Qunbound or Qnil are found.
89         (Fsave_charset_mapping_table): Don't define it if
90         HAVE_CHISE_CLIENT is not defined.
91         (Freset_charset_mapping_table): New function.
92         (load_char_decoding_entry_maybe): Store Qnil if a character is not
93         found in external database.
94         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
95         if HAVE_CHISE_CLIENT is not defined; add new builtin function
96         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
97
98 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
99
100         * text-coding.c (decode_coding_utf8): Check CCS is specified or
101         not.
102
103 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
104
105         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
106         Q_lowercase, Q_uppercase in UTF-2000.
107
108         * chartab.c (get_char_table): Add special code for the standard
109         case table to use character attribute `->downcase' and
110         `->uppercase' for case operations in UTF-2000.
111
112         * casetab.c (Qflippedcase): New variable in UTF-2000.
113         (Q_lowercase): Likewise.
114         (Q_uppercase): Likewise.
115         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
116         and `->uppercase' in UTF-2000.
117         (complex_vars_of_casetab): Assign attribute name `downcase' to
118         downcase and CANON table of Vstandard_case_table in UTF-2000;
119         assign attribute name `flippedcase' to upcase and EQV table of
120         Vstandard_case_table in UTF-2000.
121
122 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * text-coding.c (decode_add_er_char): Support isolated-chars.
125         (char_encode_as_entity_reference): Likewise.
126
127 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
128
129         * emacs.c (Vutf_2000_lisp_directory): New variable.
130         (Vconfigure_utf_2000_lisp_directory): Likewise.
131         (complex_vars_of_emacs): Add new variable
132         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
133
134 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
135
136         * char-ucs.h (DECODE_CHAR): Delete special code for
137         `chinese-big5-1' and `chinese-big5-2'.
138
139         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
140         (Qbig5_2): Likewise.
141         (decode_defined_char): Support CONVERSION_BIG5_1 and
142         CONVERSION_BIG5_2.
143         (decode_builtin_char): Likewise.
144         (charset_code_point): Likewise.
145         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
146         'conversion in UTF-2000.
147         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
148         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
149         `chinese-big5-2' as children of `chinese-big5'.
150
151         * char-ucs.h (CONVERSION_BIG5_1): New macro.
152         (CONVERSION_BIG5_2): New macro.
153
154 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
155
156         * text-coding.c (char_encode_big5): Support entity-reference.
157
158 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
159
160         * text-coding.c (char_encode_as_entity_reference): New function.
161         (char_encode_utf8): Use `char_encode_as_entity_reference'.
162
163 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
164
165         * text-coding.c (decode_coding_big5): Support entity-reference
166         decoding feature.
167
168 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
169
170         * text-coding.c (allocate_coding_system): Initialize initial
171         charsets for CODESYS_UTF8.
172         (Fmake_coding_system): Accept charset-g0, charset-g1 and
173         charset-g2 for CODESYS_UTF8.
174         (decode_coding_utf8): Use charset-g0.
175         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
176         to force variants to map to UCS.
177
178 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
179
180         * text-coding.c (Qutf_8_mcs): New variable.
181         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
182         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
183         instead of `utf-8' in UTF-2000.
184
185 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
186
187         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
188         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
189         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
190         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
191         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
192         CONVERSION_96x96x96x96 are introduced.
193         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
194         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
195         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
196
197         * char-ucs.h (CONVERSION_94): New macro.
198         (CONVERSION_96): New macro.
199         (CONVERSION_94x94): New macro.
200         (CONVERSION_96x96): New macro.
201         (CONVERSION_94x94x94): New macro.
202         (CONVERSION_96x96x96): New macro.
203         (CONVERSION_94x94x94x60): New macro.
204         (CONVERSION_94x94x94x94): New macro.
205         (CONVERSION_96x96x96x96): New macro.
206
207 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
208
209         * chartab.c (Vcharacter_variant_table): Deleted.
210         (Fchar_variants): Use character-attribute `->ucs-variants' instead
211         of `Vcharacter_variant_table'.
212         (Fput_char_attribute): Likewise.
213         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
214         (complex_vars_of_chartab): Likewise.
215
216 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
217
218         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
219
220         * fns.c (Qideographic_structure): New variable.
221         (Qkeyword_char): New variable.
222         (ids_format_unit): New function.
223         (Fideographic_structure_to_ids): New function.
224         (syms_of_fns): Add new symbols `ideographic-structure' and
225         `:char'; add new builtin function `ideographic-structure-to-ids'.
226
227         * data.c (Fchar_ref_p): New function.
228         (syms_of_data): Add new builtin function `char-ref-p'.
229
230         * chartab.h: Add an EXFUN for `Ffind_char'.
231
232 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
233
234         * text-coding.c (Vcharacter_composition_table): Deleted.
235         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
236         in every UTF-2000.
237
238         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
239         UTF-2000.
240         (Vcharacter_composition_table): Deleted.
241         (Fget_composite_char): Use the implementation for external-DB
242         support in every UTF-2000.
243         (Fput_char_attribute): Likewise.
244         (char_attribute_system_db_file): Don't define if external-DB
245         feature is not available.
246         (Fsave_char_attribute_table): Likewise.
247         (Fmount_char_attribute_table): Likewise.
248         (Fclose_char_attribute_table): Likewise.
249         (Freset_char_attribute_table): Likewise.
250         (Fload_char_attribute_table): Likewise.
251         (syms_of_chartab): Don't define `save-char-attribute-table',
252         `mount-char-attribute-table', `reset-char-attribute-table',
253         `close-char-attribute-table' and `load-char-attribute-table' if
254         external-DB feature is not available.
255         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
256
257 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
258
259         * text-coding.c (Qcomposition): Add extern if external-DB feature
260         is supported.
261         (Vcharacter_composition_table): Don't add extern if external-DB
262         feature is supported.
263         (COMPOSE_ADD_CHAR): Modify for new data-representation of
264         character composition rule if external-DB feature is supported.
265
266         * chartab.c (Vcharacter_composition_table): Don't define if
267         external-DB feature is supported.
268         (Qcomposition): New variable.
269         (Fget_composite_char): New implementation for external-DB support.
270         (Fput_char_attribute): Use `composition' property of each
271         character instead of `Vcharacter_composition_table' to store
272         character-composition rules if external-DB feature is supported.
273         (syms_of_chartab): Add new symbol `composition'.
274         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
275         external-DB feature is supported.
276
277 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
278
279         * chartab.c (Vchar_db_stingy_mode): New variable.
280         (load_char_attribute_maybe): Close database if
281         Vchar_db_stingy_mode is not NIL.
282         (Fload_char_attribute_table_map_function): Use
283         `get_char_id_table_0' instead of `get_char_id_table'.
284         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
285
286         * chartab.h (get_char_id_table_0): New inline function.
287         (get_char_id_table): Use `get_char_id_table_0'.
288
289 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
290
291         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
292         and `COMPOSE_ADD_CHAR'.
293         (decode_coding_iso2022): Use `decode_flush_er_chars'.
294
295 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
296
297         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
298         instead of `DECODE_ADD_UCS_CHAR'.
299         (COMPOSE_ADD_CHAR): Likewise.
300
301 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
302
303         * text-coding.c (decode_flush_er_chars): New inline function.
304         (decode_add_er_char): New function.
305         (decode_coding_utf8): Use `decode_flush_er_chars' and
306         `decode_add_er_char'.
307
308 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
309
310         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
311         done before `decode_output_utf8_partial_char'.
312
313         * mule-charset.c (complex_vars_of_mule_charset): Specify
314         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
315         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
316
317 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * mule-charset.c (decode_defined_char): New function; search
320         mother.
321         (decode_builtin_char): Don't search mother if
322         XCHARSET_MAX_CODE(charset) == 0.
323         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
324         == 0 even if code >= XCHARSET_MAX_CODE(charset).
325         (Fdecode_char): Use `decode_defined_char' instead of
326         `DECODE_DEFINED_CHAR'.
327         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
328         mother of `Vcharset_ucs_jis'.
329
330         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
331         instead of `DECODE_DEFINED_CHAR'.
332
333         * char-ucs.h (decode_defined_char): Renamed from
334         `DECODE_DEFINED_CHAR'; changed to normal function.
335         (DECODE_CHAR): Use `decode_defined_char' instead of
336         `DECODE_DEFINED_CHAR'.
337
338         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
339
340 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
343
344         * text-coding.c (Vcoded_charset_entity_reference_alist): New
345         variable.
346         (Quse_entity_reference): New variable.
347         (Qd): New variable.
348         (Qx): New variable.
349         (QX): New variable.
350         (coding_system_description): Add description for
351         `ccs_priority_list'.
352         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
353         (allocate_coding_system): Initialize `ccs_priority_list' in
354         UTF-2000.
355         (Fmake_coding_system): Add description about
356         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
357         (codesys).
358         (Fcoding_system_property): Accept `disable-composition' and
359         `use-entity-reference' in UTF-2000.
360         (struct decoding_stream): Add new member `er_counter' and `er_buf'
361         in UTF-2000.
362         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
363         (decode_coding_utf8): Decode entity-reference if
364         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
365         (char_encode_utf8): Encode non-Unicode characters as
366         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
367         (str->codesys).
368         (syms_of_file_coding): Add new symbols `use-entity-reference',
369         `d', `x', `X'.
370         (vars_of_file_coding): Add new variable
371         `coded-charset-entity-reference-alist'.
372         (complex_vars_of_file_coding): Declare `disable-composition' and
373         `use-entity-reference' to be coding-system-properties in UTF-2000.
374
375         * file-coding.h (struct Lisp_Coding_System): Add new member
376         `use_entity_reference' and `ccs_priority_list'.
377         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
378         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
379         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
380
381 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
382
383         * chartab.c (save_uint8_byte_table): Don't clear the table.
384         (save_uint16_byte_table): Likewise.
385         (save_byte_table): Likewise.
386         (Fmount_char_attribute_table): New function.
387         (syms_of_chartab): Add new builtin function
388         `mount-char-attribute-table'.
389
390 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
391
392         * mule-charset.c (Fsave_charset_mapping_table): Open database as
393         "w+" mode.
394         (load_char_decoding_entry_maybe): Open database as read-only mode.
395
396         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
397         open database as "w+" mode.
398         (load_char_attribute_maybe): Open database as read-only mode.
399         (Fload_char_attribute_table): Likewise.
400
401 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
404         (char_table_description): Delete member `db_file'.
405         (Fmake_char_table): Don't refer `ct->db_file'.
406         (Fcopy_char_table): Likewise.
407         (Fsave_char_attribute_table): Likewise.
408         (Fclose_char_attribute_table): Likewise.
409         (Freset_char_attribute_table): Likewise.
410         (load_char_attribute_maybe): Likewise.
411         (Fload_char_attribute_table): Likewise.
412
413         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
414
415 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
416
417         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
418         (Fsave_char_attribute_table): Don't check `ct->db_file' if
419         `ct->db' is living.
420         (load_char_attribute_maybe): Likewise.
421         (Fload_char_attribute_table): Likewise.
422
423 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
424
425         * chartab.c (Fclose_char_attribute_table): Set Qnil on
426         `ct->db_file' unconditionally.
427
428 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
429
430         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
431         UTF-2000.
432         (char_table_description): Add description for `db_file' and `db'
433         in UTF-2000.
434         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
435         UTF-2000.
436         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
437         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
438         (Fclose_char_attribute_table): New function.
439         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
440         (load_char_attribute_maybe): Change interface; use `cit->db_file'
441         and `cit->db'.
442         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
443         (syms_of_chartab): Add new builtin function
444         `Fclose_char_attribute_table'.
445
446 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
447
448         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
449         `db' in UTF-2000.
450         (load_char_attribute_maybe): Change interface.
451         (get_char_id_table): Modify for `load_char_attribute_maybe'.
452
453 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
454
455         * database.h: Add an EXFUN for `Fdatabase_live_p'.
456
457 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
458
459         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
460         instead of `DECODE_CHAR' for mother; don't use special code for
461         chinese-big5 to use code space of chinese-big5-1 and
462         chinese-big5-2.
463         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
464         `MAX_CHAR_BIG5_CDP' for chinese-big5.
465
466         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
467         (MAX_CHAR_BIG5_CDP): Revival.
468
469 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
472         the XLFD registry-encoding name of `chinese-big5'.
473
474 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
475
476         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
477         (Qchinese_big5_cdp): Deleted.
478         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
479         (complex_vars_of_mule_charset): Delete coded-charset
480         `chinese-big5-cdp'.
481
482         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
483         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
484         `CHARSET_ID_OFFSET - n' for private CCS.
485         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
486         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
487         of `MIN_LEADING_BYTE'.
488         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
489         `(CHARSET_ID_OFFSET - 97)'.
490         (MIN_CHAR_BIG5_CDP): Deleted.
491         (MAX_CHAR_BIG5_CDP): Deleted.
492
493 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
494
495         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
496
497 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
498
499         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
500         (vars_of_mule): Add new variable `utf-2000-version' [moved from
501         chartab.c].
502
503         * chartab.c (Vutf_2000_version): Moved to mule.c.
504         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
505
506 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
507
508         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
509         when HAVE_CHISE_CLIENT is not defined.
510
511         * mule.c (vars_of_mule): Provide feature `chise' when
512         HAVE_CHISE_CLIENT is defined.
513
514 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
515
516         * config.h.in (UTF2000): Add comment.
517         (HAVE_CHISE_CLIENT): New macro.
518
519 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
520
521         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
522         CONSP.
523         (Fput_char_attribute): Likewise.
524         (char_attribute_system_db_file): Encode file-name of attribute.
525         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
526         the initial value.
527
528 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
529
530         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
531         (Fsave_charset_mapping_table): Use
532         `char_attribute_system_db_file'.
533         (load_char_decoding_entry_maybe): Likewise.
534
535         * chartab.h (Qsystem_char_id): New external variable.
536         (char_attribute_system_db_file): New prototype.
537
538         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
539         (char_attribute_system_db_file): New function.
540         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
541         (Freset_char_attribute_table): Likewise.
542         (load_char_attribute_maybe): Likewise.
543         (Fload_char_attribute_table): Likewise.
544         (syms_of_chartab): Add new symbol `system-char-id'.
545
546 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
547
548         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
549         `XCHARSET_GRAPHIC(ccs)'.
550
551 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
552
553         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
554
555 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
556
557         * chartab.c (Q_ucs_variants): New variable.
558         (syms_of_chartab): Add new symbol `->ucs-variants'.
559         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
560         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
561         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
562
563         * mule-charset.c (load_char_decoding_entry_maybe): New function.
564
565         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
566         `HAVE_DATABASE' is defined.
567         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
568         `HAVE_DATABASE' is defined.
569
570 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
571
572         * chartab.c (Fsave_char_attribute_table): Don't clear internal
573         attribute-table.
574         (Freset_char_attribute_table): New function.
575         (syms_of_chartab): Add new builtin function
576         `reset-char-attribute-table'.
577
578 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
579
580         * chartab.c (load_char_attribute_maybe): Don't make directories.
581
582 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
583
584         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
585
586         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
587         for decoding-table.
588
589 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
590
591         * mule-charset.c (Fsave_charset_mapping_table): Use
592         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
593
594         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
595         instead of `XCHARSET_CHARS'.
596
597 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
598
599         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
600         (XCHARSET_BYTE_SIZE): Likewise.
601
602         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
603         mule-charset.c].
604         (XCHARSET_BYTE_SIZE): Likewise.
605
606 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
607
608         * chartab.c (Fput_char_attribute): Use exec-directory instead of
609         data-directory to store database.
610         (Fsave_char_attribute_table): Likewise.
611         (load_char_attribute_maybe): Likewise.
612         (Fload_char_attribute_table): Likewise.
613
614 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
615
616         * mule-charset.c (Fsave_charset_mapping_table): New function.
617         (syms_of_mule_charset): Add new builtin function
618         `save-charset-mapping-table'.
619
620 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
621
622         * char-ucs.h (decoding_table_check_elements): Delete prototype.
623         (get_ccs_octet_table): New inline function.
624         (put_ccs_octet_table): Likewise.
625         (decoding_table_put_char): Use `get_ccs_octet_table' and
626         `put_ccs_octet_table'.
627         (decoding_table_remove_char): Use `decoding_table_put_char'.
628         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
629
630         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
631         into encoding_table.
632         (make_charset): Use Qunbound instead Qnil as initial value of
633         decoding_table.
634
635 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
636
637         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
638         element is Qunloaded.
639         (map_over_uint16_byte_table): Likewise.
640         (map_over_byte_table): Likewise.
641         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
642         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
643         database support, load encoding-table of the specified
644         coded-charset if it is not loaded yet.
645         (save_uint8_byte_table): New function of UTF-2000 with external
646         database support.
647         (save_uint16_byte_table): Likewise.
648         (save_byte_table): Likewise.
649         (Fput_char_attribute): Don't store value into external database
650         even if the external database feature is supported in UTF-2000;
651         set `attribute' as name of char-table if the external database
652         feature is supported.
653         (Fsave_char_attribute_table): New function in UTF-2000.
654         (syms_of_chartab): Add new builtin function
655         `save-char-attribute-table' in UTF-2000.
656
657 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
658
659         * chartab.c (char_attribute_table_to_put): New variable in
660         UTF-2000.
661         (Qput_char_table_map_function): Likewise.
662         (value_to_put): Likewise.
663         (Fput_char_table_map_function): New function in UTF-2000.
664         (put_char_table): Use `Fmap_char_attribute' for
665         CHARTAB_RANGE_CHARSET in UTF-2000.
666         (Fput_char_attribute): Store symbol instead of string in
667         `XCHAR_TABLE_NAME (table)'.
668         (load_char_attribute_maybe): Likewise.
669         (syms_of_chartab): Add new symbol/function
670         `put-char-table-map-function'.
671
672 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
673
674         * database.h: Add new EXFUN for `Fmap_database'.
675
676         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
677         (syms_of_database): Likewise.
678
679         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
680         UTF-2000.
681         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
682         (XCHAR_TABLE_UNLOADED): Likewise.
683
684         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
685         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
686         HAVE_DATABASE is defined.
687         (char_attribute_table_to_load): New variable of UTF-2000 with
688         external database support.
689         (Qload_char_attribute_table_map_function): Likewise.
690         (Fload_char_attribute_table_map_function): New function of
691         UTF-2000 with external database support.
692         (Fload_char_attribute_table): New function of UTF-2000.
693         (Fmap_char_attribute): Call Fload_char_attribute_table if
694         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
695         (syms_of_chartab): Add new symbol and function
696         `load-char-attribute-table-map-function' in UTF-2000 with external
697         database support; add new function `load-char-attribute-table' in
698         UTF-2000.
699
700 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
701
702         * chartab.h (load_char_attribute_maybe): New prototype for
703         UTF-2000 with DATABASE support.
704         (get_char_id_table): Use `load_char_attribute_maybe' if
705         HAVE_DATABASE is defined.
706
707         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
708         with DATABASE support.
709
710 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * chartab.c (Fput_char_attribute): Use S-expression as key of
713         external database.
714
715         * chartab.h (get_char_id_table): Use S-expression as key of
716         external database.
717
718 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
719
720         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
721         if an element is not loaded, load the corresponding attributes
722         from an external database.
723         (map_over_uint16_byte_table): Likewise.
724         (map_over_byte_table): Likewise.
725         (map_char_table): Modify for `map_over_uint8_byte_table',
726         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
727         element is not loaded, load the corresponding attributes from an
728         external database.
729         (Fput_char_attribute): Change initial values to Qunloaded.
730
731         * chartab.h (get_char_id_table): If a character attribute is not
732         loaded and the attribute value is not found in an external
733         database, store Qunbound as the attribute value.
734
735 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
736
737         * chartab.c (BT_UINT8_unloaded): New macro.
738         (UINT8_VALUE_P): Accept Qunloaded.
739         (UINT8_ENCODE): Likewise.
740         (UINT8_DECODE): Likewise.
741         (BT_UINT16_unloaded): New macro.
742         (UINT16_VALUE_P): Accept Qunloaded.
743         (UINT16_ENCODE): Likewise.
744         (UINT16_DECODE): Likewise.
745         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
746         BT_UINT16_unloaded.
747         (mark_char_table): Mark `ct->name' in UTF-2000.
748         (char_table_description): Add `name' in UTF-2000.
749         (Fmake_char_table): Initialize `ct->name'.
750         (Fcopy_char_table): Copy `ct->name'.
751         (Fput_char_attribute): Store value into an external database if
752         HAVE_DATABASE is defined.
753
754         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
755         UTF-2000.
756         (CHAR_TABLE_NAME): New macro in UTF-2000.
757         (XCHAR_TABLE_NAME): New macro in UTF-2000.
758         (get_char_id_table): Try to read an external database if Qunloaded
759         is stored in a table.
760
761         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
762         Qunloaded.
763
764 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
765
766         * database.h: Add EXFUN definitions for Fopen_database,
767         Fput_database, Fget_database and Fclose_database.
768
769         * data.c (Qunloaded): New variable in UTF-2000.
770
771         * lisp.h (Qunloaded): New variable in UTF-2000.
772
773 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
774
775         * mule-charset.c (put_char_ccs_code_point): Modify for
776         `decoding_table_remove_char' and `decoding_table_put_char'.
777         (remove_char_ccs): Modify for `decoding_table_remove_char'.
778
779         * char-ucs.h (decoding_table_remove_char): Change arguments to
780         hide decoding_table vector.
781         (decoding_table_put_char): Likewise.
782
783 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * mule-charset.c (decoding_table_remove_char): Moved to
786         char-ucs.h.
787         (decoding_table_put_char): Likewise.
788
789         * char-ucs.h (decoding_table_check_elements): New prototype [moved
790         from mule-charset.c].
791         (decoding_table_remove_char): New inline function [moved from
792         mule-charset.c].
793         (decoding_table_put_char): Likewise.
794
795 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
796
797         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
798         extension.
799
800 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
801
802         * mule-charset.c (decode_builtin_char): Support mother charsets.
803
804 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
805
806         * mule-charset.c (Q94x94x60): New variable.
807         (charset_code_point): Support conversion `94x94x60'.
808         (Fmake_charset): Likewise.
809         (syms_of_mule_charset): Add new symbol `94x94x60'.
810
811         * char-ucs.h (CONVERSION_94x94x60): New macro.
812
813 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
814
815         * mule-charset.c (charset_code_point): Unify code about
816         `code-offset'.
817
818 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
819
820         * mule-charset.c (charset_code_point): Merge code about builtin
821         characters into code about mother charsets; don't use
822         `range_charset_code_point'.
823         (range_charset_code_point): Deleted.
824
825 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
826
827         * mule-charset.c (Qcode_offset): New variable.
828         (Fmake_charset): Use `XUINT' to get value of `min-code' and
829         `max-code'; accept new property `code-offset'.
830         (syms_of_mule_charset): Add new symbol `code-offset'.
831
832 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
833
834         * mule-charset.c (range_charset_code_point): Fixed.
835
836 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
837
838         * mule-charset.c (decode_builtin_char): Change semantics of
839         code-offset of coded-charset.
840         (charset_code_point): Likewise.
841         (range_charset_code_point): Likewise.
842         (complex_vars_of_mule_charset): Modify for the change.
843
844 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
845
846         * mule-charset.c (Fencode_char): Reverse arguments.
847
848         * mule-charset.c (charset_code_point): Fixed.
849
850 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * mule-charset.c (Vcharset_mojikyo): Deleted.
853         (Vcharset_mojikyo_2022_1): Deleted.
854         (Vcharset_mojikyo_pj_{1..21}): Deleted.
855         (Qmin_code): New variable in UTF-2000.
856         (Qmax_code): Likewise.
857         (Qmother): Likewise.
858         (Qconversion): Likewise.
859         (Q94x60): Likewise.
860         (Qmojikyo): Deleted.
861         (Qmojikyo_2022_1): Deleted.
862         (Qmojikyo_pj_{1..22}): Deleted.
863         (mark_charset): Mark `cs->mother'.
864         (charset_description): Add description for `mother'.
865         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
866         new arguments `mother' and `conversion'; use
867         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
868         (charset_code_point): Moved from char-ucs.h; support `mother'
869         charset feature.
870         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
871         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
872         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
873         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
874         allow 2 as the value of `graphic' in UTF-2000; add new properties
875         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
876         require `final' in UTF-2000; modify for `make_charset'.
877         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
878         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
879         (Fcharset_property): Support `mother', `min-code' and `max-code'.
880         (Fencode_char): New function.
881         (syms_of_mule_charset): Add new builtin function `encode-char' in
882         UTF-2000; add new symbols `min-code', `max-code', `mother',
883         `conversion' and `94x60'; delete symbols `mojikyo',
884         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
885         (complex_vars_of_mule_charset): Modify for `make_charset' change;
886         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
887         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
888
889         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
890         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
891
892         * char-ucs.h (Vcharset_mojikyo): Deleted.
893         (Vcharset_mojikyo_2022_1): Deleted.
894         (LEADING_BYTE_MOJIKYO): Deleted.
895         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
896         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
897         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
898         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
899         add new member `mother'; add new member `conversion'.
900         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
901         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
902         (CHARSET_MOTHER): New macro.
903         (CHARSET_CONVERSION): New macro.
904         (CONVERSION_IDENTICAL): New macro.
905         (CONVERSION_94x60): New macro.
906         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
907         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
908         (XCHARSET_MOTHER): New macro.
909         (XCHARSET_CONVERSION): New macro.
910         (MIN_CHAR_MOJIKYO): Deleted.
911         (MAX_CHAR_MOJIKYO): Deleted.
912         (DECODE_MOJIKYO_2022): Deleted.
913         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
914         (charset_code_point): Changed to non-inline function.
915         (encode_char_1): Use `charset_code_point'.
916         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
917
918 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
919
920         * lread.c (read_compiled_function): Fix prototype.
921         (read_vector): Likewise.
922
923 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * lrecord.h (struct lrecord_header): Delete `older'.
926         (set_lheader_implementation): Delete code for `older'.
927         (set_lheader_older_implementation): Deleted.
928         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
929         (OLDER_RECORD_P): Deleted.
930         (OLDER_RECORD_HEADER_P): Deleted.
931         (alloc_older_lcrecord): Deleted.
932         (alloc_older_lcrecord_type): Deleted.
933
934         * alloc.c (all_older_lcrecords): Deleted.
935         (alloc_older_lcrecord): Deleted.
936         (disksave_object_finalization_1): Delete code for older objects.
937         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
938         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
939
940 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
941
942         * mule-charset.c (decoding_table_put_char): Use `make_vector'
943         instead of `make_older_vector'.
944         (put_char_ccs_code_point): Likewise.
945         (mark_charset): Mark `cs->decoding_table'.
946         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
947
948         * lisp.h (make_older_vector): Deleted.
949         (make_vector_newer): Deleted.
950
951         * config.h.in (HAVE_GGC): Deleted.
952
953         * alloc.c (make_older_vector): Deleted.
954         (make_vector_newer_1): Deleted.
955         (make_vector_newer): Deleted.
956
957 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
958
959         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
960         (Qideograph_daikanwa_2): New variable.
961         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
962         (complex_vars_of_mule_charset): Add new coded-charset
963         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
964         `LEADING_BYTE_DAIKANWA'.
965
966         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
967         (LEADING_BYTE_DAIKANWA_1): New macro.
968         (LEADING_BYTE_DAIKANWA_2): New macro.
969         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
970
971 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
972
973         * mule-charset.c (complex_vars_of_mule_charset): Change
974         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
975         the second revised version.
976
977 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
978
979         * mule-charset.c (Vcharset_ucs_smp): New variable.
980         (Vcharset_ucs_sip): New variable.
981         (Qucs_smp): New variable.
982         (Qucs_sip): New variable.
983         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
984         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
985         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
986         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
987         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
988         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
989
990         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
991         (LEADING_BYTE_UCS_SIP): New macro.
992         (MIN_CHAR_SMP): New macro.
993         (MAX_CHAR_SMP): New macro.
994         (MIN_CHAR_SIP): New macro.
995         (MAX_CHAR_SIP): New macro.
996
997 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
998
999         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1000         utf-2000.
1001
1002 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1003
1004         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1005         value; don't store value into `encoding_table' of `Lisp_Charset'.
1006         (mark_charset): `encoding_table' was deleted.
1007         (charset_description): Likewise.
1008         (make_charset): Likewise.
1009         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1010         `put_char_ccs_code_point'.
1011
1012         * chartab.h (Fput_char_attribute): New EXFUN.
1013
1014         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1015         is unified with normal symbol space.
1016         (Fget_char_attribute): Likewise.
1017         (Fput_char_attribute): Likewise; behavior of
1018         `put_char_ccs_code_point' is changed.
1019
1020         * char-ucs.h: Include "elhash.h".
1021         (Vchar_attribute_hash_table): New external variable.
1022         (struct Lisp_Charset): Delete `encoding_table'.
1023         (CHARSET_ENCODING_TABLE): New implementation; refer
1024         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1025         `Lisp_Charset'.
1026
1027 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1028
1029         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1030         (cs) == 0.
1031
1032 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1033
1034         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1035         `chinese-big5'.
1036
1037 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1038
1039         * chartab.c (uint8_byte_table_description): New constant.
1040         (uint8-byte-table): Use `uint8_byte_table_description'.
1041         (uint16_byte_table_description): New constant.
1042         (uint16-byte-table): Use `uint16_byte_table_description'.
1043
1044 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1045
1046         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1047         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1048
1049 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1050
1051         * mule-charset.c (Vcharset_ucs_ks): New variable.
1052         (Qucs_ks): New variable.
1053         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1054         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1055
1056         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1057
1058 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1059
1060         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1061         (Fdecode_char): Likewise.
1062
1063         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1064         chartab.h.
1065         (Fdefine_char): Modify for Fdecode_char.
1066         (Ffind_char): Likewise.
1067
1068         * mule-charset.c (Fdecode_char): Add new optional argument
1069         `defined-only'.
1070         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1071
1072 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1073
1074         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1075         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1076         (allocate_coding_system): Initialize initial-charsets of
1077         CODESYS_BIG5 in XEmacs UTF-2000.
1078         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1079         CODESYS_BIG5 in XEmacs UTF-2000.
1080         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1081         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1082
1083         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1084         variables.
1085         (Qideograph_hanziku_{1 .. 12}): Likewise.
1086         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1087         .. 12}'.
1088         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1089         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1090         `ideograph-hanziku-{1 .. 12}'.
1091
1092         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1093         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1094         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1095         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1096         (DECODE_DEFINED_CHAR): New inline function.
1097         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1098
1099 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1100
1101         * mule-charset.c (Vcharset_china3_jef): Renamed from
1102         `Vcharset_japanese_jef_china3'.
1103         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1104         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1105         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1106         (syms_of_mule_charset): Rename `china3-jef' from
1107         `japanese-jef-china3'.
1108         (complex_vars_of_mule_charset): Likewise; rename
1109         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1110
1111         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1112         `LEADING_BYTE_JEF_CHINA3'.
1113         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1114         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1115
1116 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1117
1118         * mule-charset.c (encode_builtin_char_1): Comment out special code
1119         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1120
1121         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1122         (MAX_CHAR_MOJIKYO_0): Comment out.
1123         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1124         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1125         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1126         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1127
1128 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1129
1130         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1131         (Qideograph_cbeta): New variable.
1132         (encode_builtin_char_1): Comment out special code for
1133         coded-charset `mojikyo' and `japanese-jef-china3'.
1134         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1135         (complex_vars_of_mule_charset): Add new coded-charset
1136         `ideograph-cbeta'.
1137
1138         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1139         (MIN_CHAR_CBETA): New macro.
1140         (MAX_CHAR_CBETA): New macro.
1141
1142 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1143
1144         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1145         (LEADING_BYTE_JEF_CHINA3): New macro.
1146         (MIN_CHAR_JEF_CHINA3): New macro.
1147         (MAX_CHAR_JEF_CHINA3): Likewise.
1148         (DECODE_CHAR): Fixed.
1149
1150 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151
1152         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1153         (Qjapanese_jef_china3): New variable.
1154         (encode_builtin_char_1): Support `japanese-jef-china3'.
1155         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1156         (complex_vars_of_mule_charset): Add new coded-charset
1157         `japanese-jef-china3'.
1158
1159 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1160
1161         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1162         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1163         94^4, 96^3, 96^4, 128^n and 256^n set.
1164         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1165         (map_char_table): Likewise.
1166
1167 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1168
1169         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1170         UTF-2000.
1171
1172 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1173
1174         * chartab.h (get_char_id_table): New inline function.
1175
1176         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1177         function.
1178
1179 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1180
1181         * chartab.h (decode_char_table_range): New prototype in XEmacs
1182         UTF-2000.
1183         (put_char_id_table): New inline function in XEmacs UTF-2000.
1184
1185         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1186         function.
1187         (decode_char_table_range): Delete static declaration in XEmacs
1188         UTF-2000.
1189
1190 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1191
1192         * chartab.c (put_char_id_table): Use `put_char_table'.
1193
1194 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195
1196         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1197         (map_over_uint16_byte_table): Likewise.
1198         (map_over_byte_table): Likewise.
1199         (map_char_table): Modify for `map_over_uint8_byte_table',
1200         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1201         UTF-2000.
1202
1203 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1204
1205         * chartab.c (struct map_char_table_for_charset_arg): New
1206         structure.
1207         (map_char_table_for_charset_fun): New function.
1208         (map_char_table): Use `map_char_table' for encoding_table of
1209         `range->charset'.
1210
1211 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1212
1213         * chartab.c (map_char_table): Check a character is found in
1214         range->charset instead of non default value is defined in
1215         char-table when range is CHARTAB_RANGE_ROW.
1216
1217 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1218
1219         * chartab.c (map_char_id_table): Deleted.
1220         (Fmap_char_attribute): Use `map_char_table' instead of
1221         `map_char_id_table'.
1222
1223 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1224
1225         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1226         UTF-2000.
1227         (update_syntax_table): Deleted in XEmacs UTF-2000.
1228
1229         * syntax.c (find_defun_start): Use `syntax_table' instead of
1230         `mirror_syntax_table' in XEmacs UTF-2000.
1231         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1232         UTF-2000.
1233         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1234         XEmacs UTF-2000.
1235         (Fmatching_paren): Likewise.
1236         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1237         in XEmacs UTF-2000.
1238         (find_start_of_comment): Likewise.
1239         (find_end_of_comment): Likewise.
1240         (Fforward_comment): Likewise.
1241         (scan_lists): Likewise.
1242         (char_quoted): Likewise.
1243         (Fbackward_prefix_chars): Likewise.
1244         (scan_sexps_forward): Likewise.
1245         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1246         (update_syntax_table): Likewise.
1247
1248         * search.c (skip_chars): Use `syntax_table' instead of
1249         `mirror_syntax_table' in XEmacs UTF-2000.
1250         (wordify): Likewise.
1251         (Freplace_match): Likewise.
1252
1253         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1254         `mirror_syntax_table' in XEmacs UTF-2000.
1255         (WORDCHAR_P_UNSAFE): Likewise.
1256         (re_match_2_internal): Likewise.
1257
1258         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1259         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1260
1261         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1262         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1263
1264         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1265         XEmacs UTF-2000.
1266
1267         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1268         UTF-2000.
1269         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1270         (char_table_description): Delete `mirror_table' in XEmacs
1271         UTF-2000.
1272         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1273         UTF-2000.
1274         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1275         (Fcopy_char_table): Likewise.
1276         (put_char_table): Don't call `update_syntax_table' in XEmacs
1277         UTF-2000.
1278
1279         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1280         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1281         (casify_region_internal): Likewise.
1282
1283         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1284
1285         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1286         `mirror_syntax_table' in XEmacs UTF-2000.
1287
1288         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1289         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1290         (Fexpand_abbrev): Likewise.
1291
1292 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1293
1294         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1295
1296 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297
1298         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1299         (map_over_uint16_byte_table): Likewise.
1300         (map_over_byte_table): Likewise.
1301         (get_char_id_table): Refer `cit->default_value'.
1302         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1303         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1304         of character-id ranges.
1305         (mark_char_table): Mark `ct->default_value'.
1306         (char_table_description): Add `default_value'.
1307         (fill_char_table): Use `default_value'.
1308         (decode_char_table_range): Decode `nil' as
1309         `CHARTAB_RANGE_DEFAULT'.
1310         (get_char_id_table): Refer `cit->default_value'.
1311         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1312         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1313         temporary hack; check value of char-table is bound or not.
1314         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1315
1316         * chartab.h (struct Lisp_Char_Table): Add new member
1317         `default_value' in XEmacs UTF-2000.
1318         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1319         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1320         UTF-2000.
1321
1322 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1323
1324         * chartab.h (Lisp_Char_ID_Table): Deleted.
1325
1326         * chartab.c (char_table_description): Fix typo.
1327         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1328         `Lisp_Char_ID_Table'.
1329
1330 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1331
1332         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1333         `CHAR_ID_TABLE_P'.
1334
1335         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1336         `CHAR_ID_TABLE_P'.
1337
1338         * chartab.h (XCHAR_ID_TABLE): Deleted.
1339         (XSETCHAR_ID_TABLE): Deleted.
1340         (CHAR_ID_TABLE_P): Deleted.
1341
1342         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1343         `CHAR_ID_TABLE_P'.
1344         (Fget_composite_char): Likewise.
1345         (put_char_table): Likewise.
1346         (add_char_attribute_alist_mapper): Fixed.
1347         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1348         `CHAR_ID_TABLE_P'.
1349         (Fget_char_attribute): Likewise.
1350         (Fget_char_attribute): Likewise.
1351         (Fmap_char_attribute): Likewise.
1352
1353         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1354         `CHAR_ID_TABLE_P'.
1355         (encode_char_1): Likewise.
1356
1357 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358
1359         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1360         `XCHAR_ID_TABLE'.
1361
1362         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1363         instead of `XCHAR_ID_TABLE'.
1364         (remove_char_ccs): Likewise.
1365
1366         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1367         `XCHAR_ID_TABLE'.
1368         (Fget_composite_char): Likewise.
1369         (Fchar_variants): Likewise.
1370         (put_char_table): Likewise.
1371         (add_char_attribute_alist_mapper): Likewise.
1372         (Fchar_attribute_alist): Likewise.
1373         (Fget_char_attribute): Likewise.
1374         (Fput_char_attribute): Likewise.
1375         (Fmap_char_attribute): Likewise.
1376         (Fmap_char_attribute): Likewise.
1377
1378         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1379         `XCHAR_ID_TABLE'.
1380         (encode_char_1): Likewise.
1381
1382 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1385         `Lisp_Char_ID_Table'.
1386         (mark_char_id_table): Deleted.
1387         (print_char_id_table): Likewise.
1388         (char_id_table_equal): Likewise.
1389         (char_id_table_hash): Likewise.
1390         (char_id_table_description): Likewise.
1391         (char_id_table): Likewise.
1392         (make_char_id_table): Use `Fmake_char_table' and
1393         `fill_char_table'.
1394         (get_char_id_table): Use `Lisp_Char_Table' instead of
1395         `Lisp_Char_ID_Table'.
1396         (put_char_id_table): Likewise.
1397         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1398         `XCHAR_ID_TABLE'.
1399         (Fremove_char_attribute): Likewise.
1400         (syms_of_chartab): Don't define type `char-id-table'.
1401
1402         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1403         (char_id_table): Likewise.
1404         (GC_CHAR_ID_TABLE_P): Likewise.
1405         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1406         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1407         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1408         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1409         (get_char_id_table): Use `Lisp_Char_Table' instead of
1410         `Lisp_Char_ID_Table'.
1411         (put_char_id_table_0): Likewise.
1412         (put_char_id_table): Likewise.
1413
1414 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1415
1416         * chartab.h: Lisp_Byte_Table related codes are moved from
1417         chartab.h.
1418
1419         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1420
1421 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1422
1423         * chartab.h: Don't include "chartab.h".
1424         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1425         (Lisp_Char_ID_Table): Likewise.
1426         (char_id_table): Likewise.
1427         (XCHAR_ID_TABLE): Likewise.
1428         (XSETCHAR_ID_TABLE): Likewise.
1429         (CHAR_ID_TABLE_P): Likewise.
1430         (GC_CHAR_ID_TABLE_P): Likewise.
1431         (get_char_id_table): Likewise.
1432
1433         * char-ucs.h: Include "chartab.h".
1434         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1435         (Lisp_Char_ID_Table): Likewise.
1436         (char_id_table): Likewise.
1437         (XCHAR_ID_TABLE): Likewise.
1438         (XSETCHAR_ID_TABLE): Likewise.
1439         (CHAR_ID_TABLE_P): Likewise.
1440         (GC_CHAR_ID_TABLE_P): Likewise.
1441         (get_char_id_table): Likewise.
1442
1443 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1444
1445         * chartab.c (copy_uint8_byte_table): New function.
1446         (copy_uint16_byte_table): New function.
1447         (copy_byte_table): New function.
1448         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1449         characters to call.
1450         (map_over_uint16_byte_table): Likewise.
1451         (map_over_byte_table): Likewise.
1452         (get_byte_table): Move prototype to chartab.h.
1453         (put_byte_table): Likewise.
1454         (put_char_id_table_0): Moved to chartab.h.
1455         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1456         (char_table_entry_equal): Likewise.
1457         (char_table_entry_hash): Likewise.
1458         (char_table_entry_description): Likewise.
1459         (char_table_entry): Likewise.
1460         (make_char_table_entry): Likewise.
1461         (copy_char_table_entry): Likewise.
1462         (get_non_ascii_char_table_value): Likewise.
1463         (map_over_charset_ascii): Likewise.
1464         (map_over_charset_control_1): Likewise.
1465         (map_over_charset_row): Likewise.
1466         (map_over_other_charset): Likewise.
1467         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1468         (print_char_table): Likewise.
1469         (char_table_equal): Likewise.
1470         (char_table_hash): Likewise.
1471         (char_table_description): Likewise.
1472         (fill_char_table): Likewise.
1473         (Fcopy_char_table): Likewise.
1474         (get_char_table): Likewise.
1475         (Fget_range_char_table): Likewise.
1476         (put_char_table): Likewise.
1477         (map_char_table): Likewise.
1478         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1479         UTF-2000.
1480
1481 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1482
1483         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1484         `Vauto_fill_chars' in XEmacs UTF-2000.
1485
1486         * chartab.h (get_byte_table): New prototype [moved from
1487         chartab.c].
1488         (put_byte_table): Likewise [moved from chartab.c].
1489         (put_char_id_table_0): New inline function [moved from chartab.c].
1490         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1491         (Lisp_Char_Table_Entry): Likewise.
1492         (char_table_entry): Likewise.
1493         (XCHAR_TABLE_ENTRY): Likewise.
1494         (XSETCHAR_TABLE_ENTRY): Likewise.
1495         (CHAR_TABLE_ENTRYP): Likewise.
1496         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1497         (NUM_ASCII_CHARS): Likewise.
1498         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1499         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1500
1501 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502
1503         * chartab.c (get_char_id_table): Change interface.
1504         (put_char_id_table_0): New function.
1505         (put_char_id_table): Change interface; new implementation.
1506         (Fget_composite_char): Modify for interface change of
1507         `get_char_id_table'.
1508         (Fchar_variants): Likewise.
1509         (add_char_attribute_alist_mapper): Likewise.
1510         (Fchar_attribute_alist): Likewise.
1511         (Fget_char_attribute): Likewise.
1512         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1513         as same as character as the first argument like `put-char-table';
1514         modify for interface change of `put_char_id_table'.
1515         (Fremove_char_attribute): Modify for interface change of
1516         `put_char_id_table'.
1517
1518 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1519
1520         * text-coding.c: Sync up with XEmacs 21.2.41.
1521         (COMPOSE_ADD_CHAR): Modify for interface change of
1522         `get_char_id_table'.
1523
1524         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1525         change of `put_char_id_table'.
1526         (remove_char_ccs): Likewise.
1527
1528         * chartab.h (put_char_id_table): Change interface.
1529
1530         * char-ucs.h (get_char_id_table): Change interface.
1531         (charset_code_point): Modify for interface change of
1532         `get_char_id_table'.
1533         (encode_char_1): Likewise.
1534
1535 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1536
1537         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1538         argument `ccs'.
1539         (map_over_uint16_byte_table): Likewise.
1540         (map_over_byte_table): Likewise.
1541         (map_char_id_table): Add new argument `range' like
1542         `map_char_table'.
1543         (Fmap_char_attribute): Add new argument `range' like
1544         `Fmap_char_table'.
1545
1546 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1547
1548         * chartab.c (map_over_uint8_byte_table): Change interface of
1549         mapping function to use struct chartab_range instead of Emchar.
1550         (map_over_uint16_byte_table): Likewise.
1551         (map_over_byte_table): Likewise.
1552         (map_char_id_table): Likewise.
1553         (struct slow_map_char_id_table_arg): Deleted.
1554         (slow_map_char_id_table_fun): Deleted.
1555         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1556         function `slow_map_char_table_fun' instead of struct
1557         `slow_map_char_id_table_arg' and function
1558         `slow_map_char_id_table_fun'.
1559
1560 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1561
1562         * mule-charset.c: Move char-it-table related codes to chartab.c.
1563         (Vutf_2000_version): Moved to chartab.c.
1564         (Fdefine_char): Likewise.
1565         (Ffind_char): Likewise.
1566         (syms_of_mule_charset): Move types `uint8-byte-table',
1567         `uint16-byte-table', `byte-table' and `char-id-table' to
1568         chartab.c; move functions `char_attribute_list,
1569         `find_char_attribute_table, `char_attribute_alist,
1570         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1571         `map_char_attribute, `define_char, `find_char, `char_variants and
1572         `get_composite_char to chartab.c; move symbols `=>ucs',
1573         `->decomposition', `compat', `isolated', `initial', `medial',
1574         `final', `vertical', `noBreak', `fraction', `super', `sub',
1575         `circle', `square', `wide', `narrow', `small' and `font' to
1576         chartab.c.
1577         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1578         setting codes for `Vcharacter_composition_table' and
1579         `Vcharacter_variant_table' to chartab.c.
1580         (complex_vars_of_mule_charset): Move setting code for
1581         `Vchar_attribute_hash_table' to chartab.c.
1582
1583         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1584         (make_char_id_table): New prototype.
1585         (put_char_id_table): Likewise.
1586         (Fget_char_attribute): Likewise.
1587
1588         * chartab.c: Move char-id-table related code from mule-charset.c.
1589         (Vutf_2000_version): Moved from mule-charset.c.
1590
1591         * char-ucs.h (Qucs): New external variable.
1592         (put_char_ccs_code_point): New prototype.
1593         (remove_char_ccs): Likewise.
1594
1595 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1596
1597         * mule-charset.c (Vcharset_ucs_jis): New variable.
1598         (Qucs_jis): Likewise.
1599         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1600         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1601
1602         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1603
1604 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * mule-charset.c (map_over_uint8_byte_table): New function.
1607         (map_over_uint16_byte_table): Likewise.
1608         (map_over_byte_table): Likewise.
1609         (map_char_id_table): Likewise.
1610         (slow_map_char_id_table_fun): Likewise.
1611         (Fmap_char_attribute): Likewise.
1612         (syms_of_mule_charset): Add new function `map-char-attribute'.
1613
1614 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1615
1616         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1617         (syms_of_mule_charset): Add new function `find-char'.
1618
1619 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1620
1621         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1622         XEmacs UTF-2000.
1623         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1624         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1625         XEmacs UTF-2000.
1626         (complex_vars_of_mule_charset): Add new coded-charset
1627         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1628         `ideograph-gt-pj-*'.
1629
1630         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1631
1632 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1633
1634         * mule-charset.c (encode_builtin_char_1): Purge codes about
1635         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1636         {MIN|MAX}_CHAR_HEBREW.
1637         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1638         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1639
1640         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1641         (MAX_CHAR_GREEK): Purged.
1642         (MIN_CHAR_CYRILLIC): Purged.
1643         (MAX_CHAR_CYRILLIC): Purged.
1644         (MIN_CHAR_HEBREW): Commented out.
1645         (MAX_CHAR_HEBREW): Likewise.
1646
1647 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1648
1649         * mule-charset.c (Qto_ucs): New variable.
1650         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1651         (Fdefine_char): Likewise.
1652         (syms_of_mule_charset): Add new symbol `=>ucs'.
1653
1654 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1655
1656         * mule-charset.c (Fdecode_char): Fixed.
1657
1658 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1659
1660         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1661         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1662         "tcvn5712-1".
1663
1664 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1665
1666         * mule-charset.c (Vcharset_ucs_big5): New variable.
1667         (Qucs_big5): Likewise.
1668         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1669         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1670
1671         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1672
1673 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1674
1675         * mule-charset.c (decode_builtin_char): Check Big5 code range
1676         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1677
1678 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1679
1680         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1681         (Qchinese_gb12345): Likewise.
1682         (Fdecode_builtin_char): Fixed.
1683         (syms_of_mule_charset): Add `chinese-gb12345'.
1684         (complex_vars_of_mule_charset): Add coded-charset
1685         `chinese-gb12345'.
1686
1687         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1688         (LEADING_BYTE_CHINESE_GB12345): New macro.
1689
1690 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1691
1692         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1693         and `latin-viscii-upper' for `latin-viscii'.
1694
1695 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1696
1697         * mule-charset.c (Fdecode_builtin_char): Comment out
1698         regularization code for ISO-IR GR representation.
1699
1700 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1701
1702         * mule-charset.c (decode_builtin_char): New function; renamed from
1703         `make_builtin_char'; return -1 instead of signal.
1704         (Fdecode_builtin_char): Use `decode_builtin_char'.
1705
1706         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1707         `make_builtin_char'.
1708         (DECODE_CHAR): Use `decode_builtin_char' instead of
1709         `make_builtin_char'; use mapping table of `chinese-big5' for
1710         `chinese-big5-{1,2}'.
1711
1712 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1713
1714         * text-coding.c (char_encode_big5): New function.
1715         (char_finish_big5): Likewise.
1716         (reset_encoding_stream): Use `char_encode_big5' and
1717         `char_finish_big5' for CODESYS_BIG5.
1718         (mule_encode): Don't use `encode_coding_big5'.
1719         (encode_coding_big5): Deleted.
1720
1721 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1722
1723         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1724         0x81- in XEmacs UTF-2000.
1725         (detect_coding_big5): Likewise.
1726
1727 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1728
1729         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1730         generate character-id if the CCS property does not have
1731         corresponding predefined character.
1732         (make_builtin_char): Return -1 if corresponding predefined
1733         character is not found.
1734         (Fdecode_char): Return nil if corresponding character is not
1735         found.
1736         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1737         don't map to builtin ucs space.
1738
1739 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1740
1741         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1742         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1743
1744 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1745
1746         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1747         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1748         (Qideograph_gt): Likewise.
1749         (Qideograph_gt_pj_{1..11}): Likewise.
1750         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1751         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1752         `ideograph-gt-pj-11'.
1753         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1754         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1755         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1756
1757         * char-ucs.h (LEADING_BYTE_GT): New macro.
1758         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1759         (MIN_CHAR_GT): Likewise.
1760         (MAX_CHAR_GT): Likewise.
1761
1762 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1763
1764         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1765         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1766
1767         * doprnt.c (unsigned_int_converters): Add `c'.
1768         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1769
1770         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1771         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1772         `MIN_CHAR_MOJIKYO'.
1773         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1774         (MAX_CHAR_MOJIKYO_0): New macro.
1775         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1776
1777 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1778
1779         * mule-charset.c (Fdefine_char): Delete cemented out code.
1780         (encode_builtin_char_1): Modify for new allocation of builtin
1781         Mojikyo characters.
1782
1783         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1784
1785 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1786
1787         * mule-charset.c (Vcharset_ucs_cns): New variable.
1788         (Qucs_cns): New variable.
1789         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1790         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1791
1792 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1793
1794         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1795
1796 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1797
1798         * search.c (search_buffer): Make `charset_base_code' as
1799         character-id >> 6 to eliminate the corresponding last byte in
1800         UTF-8 representation [I'm not sure it is right thing].
1801         (boyer_moore): Likewise.
1802
1803 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1804
1805         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1806         representation in MULE.
1807
1808 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1809
1810         * text-coding.c (Fmake_coding_system): Use
1811         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1812         `EXTERNAL_PROPERTY_LIST_LOOP'.
1813
1814 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * text-coding.c (decode_output_utf8_partial_char): New function.
1817         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1818
1819 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820
1821         * text-coding.c (decode_coding_utf8): Output original byte
1822         sequence if it is broken; change order of conditions.
1823
1824         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1825         of conditions.
1826
1827         * mb-multibyte.h (BYTE_ASCII_P):
1828         Use bit ops for char-signedness safety.
1829         (BYTE_C0_P): Use bit ops for char-signedness safety.
1830         (BYTE_C1_P): Use bit ops for char-signedness safety.
1831
1832         * character.h: (XCHAR_OR_CHAR_INT):
1833         Always use inline function.
1834         Remove redundant type checking assert() - XINT will abort quite
1835         nicely.
1836
1837 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1838
1839         * text-coding.c: (Fencode_shift_jis_char):
1840         (Fencode_big5_char):
1841         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1842         Replace 0 with '\0' when working with bytes.
1843         Replace initial "(" with "\(" in docstrings.
1844
1845         (Fmake_coding_system):
1846         When type is ccl and value is vector, register it with a proper
1847         symbol.  And checks whether the given ccl program is valid.
1848         (mule_decode): When calling ccl_driver, if src indicates
1849         NULL pointer, set an empty string instead.
1850         (mule_encode): Likewise.
1851
1852         (detect_eol_type):
1853         (detect_coding_sjis):
1854         (decode_coding_sjis):
1855         (detect_coding_big5):
1856         (decode_coding_big5):
1857         (detect_coding_ucs4):
1858         (decode_coding_ucs4):
1859         (detect_coding_utf8):
1860         (decode_coding_utf8):
1861         (detect_coding_iso2022):
1862         (decode_coding_iso2022):
1863         (decode_coding_no_conversion):
1864         (mule_decode):
1865         Make all detecting and decoding functions take an Extbyte * arg.
1866         (text_encode_generic):
1867         (encode_coding_big5):
1868         (encode_coding_no_conversion):
1869         (mule_encode):
1870         Make all encoding functions take a Bufbyte * arg.
1871         Use size_t instead of unsigned int for memory sizes.
1872         Only cast to unsigned char whenever dereferencing Extbyte *.
1873
1874         (struct lrecord_description fcd_description_1): Use countof.
1875         (complex_vars_of_file_coding):
1876         Use countof instead of sizeof.
1877         Use CHECK_NATNUM instead of CHECK_INT.
1878
1879 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1880
1881         * mule-charset.c (Fget_char_attribute): Add new optional argument
1882         `default-value'.
1883         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1884         (remove_char_ccs): Likewise.
1885
1886 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1887
1888         * text-coding.c (char_encode_shift_jis): New implementation in
1889         UTF-2000.
1890         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1891         ...)'.
1892
1893         * mule-charset.c (Vcharset_chinese_big5): New variable in
1894         UTF-2000.
1895         (Qchinese_big5): New variable in UTF-2000.
1896         (BIG5_SAME_ROW): New macro in UTF-2000.
1897         (make_builtin_char): Use builtin characters of
1898         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1899         characters of `Vcharset_chinese_big5'.
1900         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1901         (complex_vars_of_mule_charset): Add new coded-charset
1902         `chinese-big5' in UTF-2000.
1903
1904         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1905         (Vcharset_chinese_big5): New external variable declaration.
1906         (Vcharset_japanese_jisx0208_1990): Likewise.
1907
1908 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1909
1910         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1911         function.
1912         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1913
1914 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1915
1916         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1917         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1918         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1919         `mojikyo-pj-*'.
1920
1921 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922
1923         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1924
1925 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1926
1927         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1928         to 0.17.
1929
1930 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1931
1932         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1933         for `CHARSET_BY_ATTRIBUTES'.
1934         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1935         `CHARSET_BY_ATTRIBUTES'.
1936
1937         * text-coding.c (struct decoding_stream): Rename member `CH' to
1938         `CPOS'.
1939         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1940         (decode_coding_sjis): Likewise.
1941         (decode_coding_big5): Likewise.
1942         (decode_coding_ucs4): Likewise.
1943         (decode_coding_utf8): Likewise.
1944         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1945         `CHARSET_BY_ATTRIBUTES'.
1946         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1947         `str->counter'; decode 3, 4 bytes sets.
1948         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1949         sets.
1950         (decode_coding_no_conversion): Use `str->cpos' instead of
1951         `str->ch'.
1952
1953         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1954         (Qmojikyo_2022_1): New variable.
1955         (make_charset): Don't use `CHARSET_TYPE_*'.
1956         (range_charset_code_point): Support coded-charset
1957         `mojikyo-2022-1'.
1958         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1959         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1960         `CHARSET_BY_ATTRIBUTES'.
1961         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1962         `CHARSET_BY_ATTRIBUTES'.
1963         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1964         (complex_vars_of_mule_charset): Add new coded-charset
1965         `mojikyo-2022-1'.
1966
1967         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1968         interface; changed to inline function.
1969
1970         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1971         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1972         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1973         (CHARSET_TYPE_94): Deleted.
1974         (CHARSET_TYPE_94X94): Deleted.
1975         (CHARSET_TYPE_96): Deleted.
1976         (CHARSET_TYPE_96X96): Deleted.
1977         (CHARSET_TYPE_128): Deleted.
1978         (CHARSET_TYPE_128X128): Deleted.
1979         (CHARSET_TYPE_256): Deleted.
1980         (CHARSET_TYPE_256X256): Deleted.
1981         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1982         to inline function.
1983         (DECODE_MOJIKYO_2022): New inline function.
1984         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1985         `Vcharset_mojikyo_2022_1'.
1986
1987 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1988
1989         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1990         instead of `EQ'.
1991         (put_byte_table): Likewise.
1992         (char_id_table_equal): Use `get_byte_table' [new implementation].
1993
1994 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1995
1996         * mule-charset.c: Include <limits.h> in UTF-2000.
1997         (BT_UINT8_MIN): New macro in UTF-2000.
1998         (BT_UINT8_MAX): New macro in UTF-2000.
1999         (BT_UINT8_t): New macro in UTF-2000.
2000         (BT_UINT8_nil): New macro in UTF-2000.
2001         (BT_UINT8_unbound): New macro in UTF-2000.
2002         (INT_UINT8_P): New inline function in UTF-2000.
2003         (UINT8_VALUE_P): New inline function in UTF-2000.
2004         (UINT8_ENCODE): New inline function in UTF-2000.
2005         (UINT8_DECODE): New inline function in UTF-2000.
2006         (mark_uint8_byte_table): New function in UTF-2000.
2007         (print_uint8_byte_table): New function in UTF-2000.
2008         (uint8_byte_table_equal): New function in UTF-2000.
2009         (uint8_byte_table_hash): New function in UTF-2000.
2010         (make_uint8_byte_table): New function in UTF-2000.
2011         (uint8_byte_table_same_value_p): New function in UTF-2000.
2012         (BT_UINT16_MIN): New macro in UTF-2000.
2013         (BT_UINT16_MAX): New macro in UTF-2000.
2014         (BT_UINT16_t): New macro in UTF-2000.
2015         (BT_UINT16_nil): New macro in UTF-2000.
2016         (BT_UINT16_unbound): New macro in UTF-2000.
2017         (INT_UINT16_P): New inline function in UTF-2000.
2018         (UINT16_VALUE_P): New inline function in UTF-2000.
2019         (UINT16_ENCODE): New inline function in UTF-2000.
2020         (UINT16_DECODE): New inline function in UTF-2000.
2021         (UINT8_TO_UINT16): New inline function in UTF-2000.
2022         (mark_uint16_byte_table): New function in UTF-2000.
2023         (print_uint16_byte_table): New function in UTF-2000.
2024         (uint16_byte_table_equal): New function in UTF-2000.
2025         (uint16_byte_table_hash): New function in UTF-2000.
2026         (make_uint16_byte_table): New function in UTF-2000.
2027         (uint16_byte_table_same_value_p): New function in UTF-2000.
2028         (print_byte_table): New function in UTF-2000.
2029         (byte-table): Use `print_byte_table' as printer.
2030         (make_byte_table): Delete second argument `older'.
2031         (byte_table_same_value_p): New function in UTF-2000.
2032         (copy_byte_table): Deleted.
2033         (get_byte_table): New function in UTF-2000.
2034         (put_byte_table): New function in UTF-2000.
2035         (print_char_id_table): New function in UTF-2000.
2036         (char-id-table): Use `print_char_id_table' as printer.
2037         (make_char_id_table): Delete second argument `older'.
2038         (get_char_id_table): Use `get_byte_table [new implementation].
2039         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2040         implementation].
2041         (Ffind_char_attribute_table): New function in UTF-2000.
2042         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2043         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2044         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2045         (syms_of_mule_charset): Add new function
2046         `find-char-attribute-table' in UTF-2000.
2047
2048         * lrecord.h (enum lrecord_type): Add
2049         `lrecord_type_uint16_byte_table' and
2050         `lrecord_type_uint8_byte_table'.
2051
2052         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2053         (Lisp_Uint8_Byte_Table): New type.
2054         (XUINT8_BYTE_TABLE): New macro.
2055         (XSETUINT8_BYTE_TABLE): New macro.
2056         (UINT8_BYTE_TABLE_P): New macro.
2057         (GC_UINT8_BYTE_TABLE_P): New macro.
2058         (struct Lisp_Uint16_Byte_Table): New structure.
2059         (Lisp_Uint16_Byte_Table): New type.
2060         (XUINT16_BYTE_TABLE): New macro.
2061         (XSETUINT16_BYTE_TABLE): New macro.
2062         (UINT16_BYTE_TABLE_P): New macro.
2063         (GC_UINT16_BYTE_TABLE_P): New macro.
2064
2065 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2068         (Vcharacter_ideographic_strokes_table): Deleted.
2069         (Vcharacter_total_strokes_table): Deleted.
2070         (Vcharacter_morohashi_daikanwa_table): Deleted.
2071         (Vcharacter_decomposition_table): Deleted.
2072         (Qname): Deleted because it is duplicated.
2073         (Qideographic_radical): Deleted.
2074         (Qideographic_strokes): Deleted.
2075         (Qtotal_strokes): Deleted.
2076         (Qmorohashi_daikanwa): Deleted.
2077         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2078         `ideographic-radical', `ideographic-strokes', `total-strokes',
2079         `morohashi-daikanwa' and `->decomposition'.
2080         (Fget_char_attribute): Likewise.
2081         (Fput_char_attribute): Likewise; use `make-vector' instead of
2082         `make_older_vector' for `->decomposition' value.
2083         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2084         `ideograph-daikanwa'.
2085         (syms_of_mule_charset): Delete builtin symbols `name',
2086         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2087         `morohashi-daikanwa'.
2088         (vars_of_mule_charset): Don't setup
2089         `Vcharacter_ideographic_radical_table',
2090         `Vcharacter_ideographic_strokes_table',
2091         `Vcharacter_total_strokes_table',
2092         `Vcharacter_morohashi_daikanwa_table' and
2093         `Vcharacter_decomposition_table'.
2094
2095 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2096
2097         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2098         `make_older_vector', `make_vector_newer_1' and
2099         `make_vector_newer'.
2100
2101         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2102         `make_older_vector' and `make_vector_newer'.
2103
2104         * config.h.in (HAVE_GGC): New macro.
2105
2106 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * mule-charset.c (struct char_attribute_list_closure): New
2109         structure in UTF-2000.
2110         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2111         (Fchar_attribute_list): Likewise.
2112         (Fset_charset_mapping_table): Use `make_vector_newer'.
2113         (Fdecode_builtin_char): New function in UTF-2000.
2114         (syms_of_mule_charset): Add new function `char-attribute-list' and
2115         `decode-builtin-char' in UTF-2000.
2116
2117         * lisp.h (make_vector_newer): New prototype.
2118
2119         * alloc.c (make_vector_newer_1): New function.
2120         (make_vector_newer): New function.
2121
2122 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2123
2124         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2125         50100)'.
2126
2127 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2130         (Vcharacter_attribute_table): Deleted.
2131         (Vcharacter_name_table): Deleted.
2132         (put_char_attribute): Deleted.
2133         (remove_char_attribute): Deleted.
2134         (struct char_attribute_alist_closure): New structure.
2135         (add_char_attribute_alist_mapper): New function.
2136         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2137         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2138         (Fget_char_attribute): Likewise.
2139         (Fput_char_attribute): Likewise.
2140         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2141         of `remove_char_attribute'.
2142         (Fdefine_char): Return character.
2143         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2144         and `Vcharacter_name_table'.
2145         (complex_vars_of_mule_charset): Likewise
2146         `Vchar_attribute_hash_table'.
2147
2148 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2149
2150         * character.h (CHARC_CHARSET): New macro.
2151         (CHARC_CHARSET_ID): New macro.
2152         (CHARC_CODE_POINT): New macro.
2153         (CHARC_COLUMNS): New macro.
2154         (CHARC_TO_CHAR): New inline function.
2155         (CHARC_EQ): New inline function.
2156         (CHARC_ASCII_EQ): New inline function.
2157         (CHARC_IS_SPACE): New inline function.
2158         (ASCII_TO_CHARC): New inline function.
2159
2160         * char-ucs.h (encode_char_2): Deleted.
2161         (ENCODE_CHAR): Use `encode_char_1' again.
2162         (breakup_char_1): Likewise.
2163         (CHAR_TO_CHARC): New inline function.
2164
2165         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2166
2167 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2170         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2171         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2172         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2173         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2174         `CHARC_IS_SPACE'.
2175         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2176
2177         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2178         `CHARC_CODE_POINT'.
2179         (x_output_display_block): Use `CHARC_CHARSET' and
2180         `CHARC_ASCII_EQ'.
2181
2182         * redisplay-tty.c (tty_output_display_block): Use
2183         `CHARC_ASCII_EQ'.
2184         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2185
2186         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2187
2188         * insdel.c (find_charsets_in_charc_string): Use
2189         `CHARC_CHARSET_ID'.
2190         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2191         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2192         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2193         (convert_charc_string_into_malloced_string): Likewise.
2194
2195 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2196
2197         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2198         instead of <Emchar_dynarr *> for buf; use
2199         `convert_bufbyte_string_into_charc_dynarr' instead of
2200         `convert_bufbyte_string_into_emchar_dynarr'; use
2201         `find_charsets_in_charc_string' instead of
2202         `find_charsets_in_emchar_string'.
2203
2204         * redisplay.h:
2205         - Include "character.h".
2206         (struct rune): New member `cglyph'; delete member `chr'.
2207
2208         * redisplay.c (redisplay_text_width_charc_string): New function;
2209         delete `redisplay_text_width_emchar_string'.
2210         (rtw_charc_dynarr): New variable; renamed from
2211         `rtw_emchar_dynarr'.
2212         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2213         `rtw_emchar_dynarr'; use
2214         `convert_bufbyte_string_into_charc_dynarr' instead of
2215         `convert_bufbyte_string_into_emchar_dynarr'; use
2216         `redisplay_text_width_charc_string' instead of
2217         `redisplay_text_width_emchar_string'.
2218         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2219         instead of `rtw_emchar_dynarr'; use
2220         `convert_bufbyte_string_into_charc_dynarr' instead of
2221         `convert_bufbyte_string_into_emchar_dynarr'.
2222         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2223         `redisplay_text_width_charc_string' instead of
2224         `redisplay_text_width_emchar_string'.
2225         (create_text_block): Modify for <struct rune> change.
2226         (generate_formatted_string_db): Likewise.
2227         (create_string_text_block): Likewise.
2228         (pixel_to_glyph_translation): Likewise.
2229
2230         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2231         instead of <const Emchar *>.
2232         (x_text_width): Likewise.
2233         (x_output_display_block): Use <Charc_dynarr *> instead
2234         <Emchar_dynarr *>; modify for <structure rune> change.
2235         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2236         *>.
2237
2238         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2239         <const Emchar *>; use `charc_string_displayed_columns' instead of
2240         `emchar_string_displayed_columns'.
2241         (tty_output_display_block): Use <Charc_dynarr *> instead of
2242         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2243         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2244         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2245         `tty_output_emchar_dynarr_dynarr'.
2246         (tty_output_charc_dynarr): New function; delete
2247         `tty_output_charc_dynarr'.
2248
2249         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2250         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2251         <Emchar_dynarr *> for buf; use
2252         `convert_bufbyte_string_into_charc_dynarr' instead of
2253         `convert_bufbyte_string_into_emchar_dynarr'.
2254
2255         * frame.c (title_string_charc_dynarr): New variable; renamed from
2256         `title_string_emchar_dynarr'.
2257         (generate_title_string): Use `title_string_charc_dynarr' instead
2258         of `title_string_emchar_dynarr'; use
2259         `convert_charc_string_into_malloced_string' instead of
2260         `convert_emchar_string_into_malloced_string'.
2261         (init_frame): Use `title_string_charc_dynarr' instead of
2262         `title_string_emchar_dynarr'.
2263
2264         * console.h:
2265         - Include "character.h".
2266         (struct console_methods): Use <const Charc *> instead of <const
2267         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2268         <Emchar_dynarr *> in output_string_method.
2269
2270         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2271         <Emchar_dynarr *>.
2272
2273         * console-stream.c (stream_text_width): Use <const Charc *>
2274         instead of <const Emchar *>.
2275
2276         * character.h (Charc_dynarr): New type.
2277
2278         * char-ucs.h (structure Charc): New structure; define new type
2279         `Charc'.
2280
2281         * char-lb.h (DECODE_CHAR): New inline function.
2282         (encode_char_1): New inline function.
2283         (ENCODE_CHAR): New macro.
2284         (structure Charc): New structure; define new type `Charc'.
2285
2286         * char-1byte.h (Vcharset_control_1): New macro.
2287         (Vcharset_latin_iso8859_1): New macro.
2288         (DECODE_CHAR): New inline function.
2289         (encode_char_1): New inline function.
2290         (ENCODE_CHAR): New macro.
2291         (structure Charc): New structure; define new type `Charc'.
2292
2293         * insdel.c (find_charsets_in_charc_string): New function; delete
2294         `find_charsets_in_emchar_string'.
2295         (charc_string_displayed_columns): New function; delete
2296         `emchar_string_displayed_columns'.
2297         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2298         `convert_bufbyte_string_into_emchar_dynarr'.
2299         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2300         `convert_charc_string_into_bufbyte_dynarr'.
2301         (convert_charc_string_into_malloced_string): New function; delete
2302         `convert_charc_string_into_malloced_string'.
2303
2304         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2305         `find_charsets_in_emchar_string'.
2306         (charc_string_displayed_columns): New prototype; delete
2307         `emchar_string_displayed_columns'.
2308         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2309         `convert_charc_string_into_bufbyte_dynarr'.
2310         (convert_charc_string_into_malloced_string): New prototype; delete
2311         `convert_charc_string_into_malloced_string'.
2312
2313 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2314
2315         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2316
2317 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2318
2319         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2320
2321         * char-ucs.h: Use <short> for <Charset_ID>.
2322
2323         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2324         <Charset_ID>.
2325
2326 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2327
2328         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2329         to 0.16.
2330
2331 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2332
2333         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2334         variable.
2335         (Qmorohashi_daikanwa): New variable.
2336         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2337         for `morohashi-daikanwa' attribute.
2338         (Fget_char_attribute): Likewise.
2339         (Fput_char_attribute): Likewise.
2340         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2341         has the same value of `ideograph-daikanwa'.
2342         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2343         (vars_of_mule_charset): Setup
2344         `Vcharacter_morohashi_daikanwa_table'.
2345
2346 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2347
2348         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2349         attributes.
2350         (add_charset_to_list_mapper): Add `key' instead of
2351         `XCHARSET_NAME (value)' to return aliases.
2352
2353 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2354
2355         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2356         variable.
2357         (Vcharacter_ideographic_strokes_table): New variable.
2358         (Qideographic_radical): New variable.
2359         (Qideographic_strokes): New variable.
2360         (Fchar_attribute_alist): Use
2361         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2362         attribute; use `Vcharacter_ideographic_strokes_table' for
2363         `ideographic-strokes' attribute.
2364         (Fget_char_attribute): Likewise.
2365         (Fput_char_attribute): Likewise.
2366         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2367         `ideographic-strokes'.
2368         (vars_of_mule_charset): Setup
2369         `Vcharacter_ideographic_radical_table' and
2370         `Vcharacter_ideographic_strokes_table'.
2371
2372 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2373
2374         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2375         (Qtotal_strokes): New variable.
2376         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2377         `total-strokes' attribute.
2378         (Fget_char_attribute): Likewise.
2379         (Fput_char_attribute): Likewise.
2380         (syms_of_mule_charset): Add new symbol `total-strokes'.
2381         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2382
2383 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2384
2385         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2386         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2387         are found.
2388         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2389         `->decomposition' attribute.
2390         (Fput_char_attribute): Likewise.
2391         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2392
2393 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2394
2395         * mule-charset.c (decoding_table_check_elements): New function.
2396         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2397
2398 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2399
2400         * mule-charset.c (Fset_charset_mapping_table): Use
2401         `put_char_ccs_code_point'.
2402
2403 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2404
2405         * mule-charset.c (decoding_table_put_char): New inline function.
2406         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2407
2408 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2409
2410         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2411         (XCHARSET_BYTE_SIZE): New macro.
2412         (decoding_table_remove_char): New inline function.
2413         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2414         `decoding_table_remove_char'.
2415         (remove_char_ccs): Use `decoding_table_remove_char'.
2416         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2417
2418 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2419
2420         * mule-charset.c (Vcharacter_name_table): New variable.
2421         (Qname): New variable.
2422         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2423         attribute.
2424         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2425         `Vcharacter_name_table' for `name' attribute.
2426         (Fremove_char_attribute): Use function `remove_char_ccs'.
2427         (put_char_ccs_code_point): New function.
2428         (remove_char_ccs): New function.
2429         (syms_of_mule_charset): Add new symbol `name'.
2430         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2431
2432 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2433
2434         * mule-charset.c (make_byte_table): Add new argument `older'.
2435         (make_char_id_table): Likewise.
2436         (copy_char_id_table): Comment out because it is not used.
2437         (put_char_id_table): Modify for `make_byte_table'.
2438         (Fput_char_attribute): Make encoding_table as older object;
2439         inherit older bit of `Vcharacter_composition_table'.
2440         (mark_charset): Don't mark `cs->encoding_table'.
2441         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2442         normal object; make `Vcharacter_composition_table' as an older
2443         object; delete staticpro for `Vcharacter_composition_table'; make
2444         `Vcharacter_variant_table' as a normal object.
2445
2446         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2447         (mark_object): Don't check older object in UTF-2000.
2448
2449         * lrecord.h (struct lrecord_header): Add new member `older' in
2450         UTF-2000.
2451         (set_lheader_implementation): Setup `SLI_header->older' in
2452         UTF-2000.
2453         (set_lheader_older_implementation): New macro in UTF-2000.
2454         (OLDER_RECORD_P): New macro in UTF-2000.
2455         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2456         (alloc_older_lcrecord): New prototype in UTF-2000.
2457         (alloc_older_lcrecord_type): New macro in UTF-2000.
2458
2459 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2460
2461         * mule-charset.c (byte_table_description): Use
2462         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2463         (char_id_table_description): Delete bogus `, 1'.
2464         (Fget_char_attribute): Refer encoding_table of each coded-charset
2465         to get value of coded-charset attribute of a character.
2466         (Fput_char_attribute): Use `make_older_vector' instead of
2467         `make_vector'; use encoding_table of each coded-charset to store
2468         value of coded-charset attribute of a character.
2469         (Fremove_char_attribute): Use encoding_table of each coded-charset
2470         to store value of coded-charset attribute of a character.
2471         (mark_charset): Mark `cs->encoding_table'; don't mark
2472         `cs->decoding_table'.
2473         (charset_description): Add description of new member
2474         `encoding_table'.
2475         (make_charset): Initialize `encoding_table'.
2476
2477         * char-ucs.h (struct Lisp_Charset): Add new member
2478         `encoding_table'.
2479         (CHARSET_ENCODING_TABLE): New macro.
2480         (XCHARSET_ENCODING_TABLE): New macro.
2481         (charset_code_point): New implementation.
2482         (encode_char_1): Likewise.
2483
2484         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2485         (disksave_object_finalization_1): Call finalizers of
2486         `all_older_lcrecords' in UTF-2000.
2487         (make_older_vector): New function in UTF-2000.
2488         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2489         UTF-2000.
2490
2491         * lisp.h (make_older_vector): New prototype in UTF-2000.
2492
2493 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2494
2495         * lrecord.h (enum lrecord_type): Rename
2496         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2497
2498         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2499         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2500         `get_char_code_table'.
2501
2502         * mule-charset.c (mark_char_id_table): Renamed from
2503         `mark_char_code_table'.
2504         (char_id_table_equal): Renamed from `char_code_table_equal'.
2505         (char_id_table_hash): Renamed from `char_code_table_hash'.
2506         (make_char_id_table): Renamed from `make_char_code_table'.
2507         (copy_char_id_table): Renamed from `copy_char_code_table'.
2508         (get_char_id_table): Renamed from `get_char_code_table'.
2509         (put_char_id_table): Renamed from `put_char_code_table'.
2510         (to_char_id): Renamed from `to_char_code'.
2511
2512         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2513         `Lisp_Char_Code_Table'.
2514         (char_id_table): Renamed from `char_code_table'.
2515         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2516         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2517         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2518         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2519         (get_char_id_table): Renamed from `get_char_code_table'.
2520
2521 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2522
2523         * lrecord.h (enum lrecord_type): Rename
2524         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2525
2526         * mule-charset.c (mark_byte_table): Renamed from
2527         `mark_char_byte_table'.
2528         (byte_table_equal): Renamed from `char_byte_table_equal'.
2529         (byte_table_hash): Renamed from `byte_table_hash'.
2530         (make_byte_table): Renamed from `make_byte_table'.
2531         (copy_byte_table): Renamed from `copy_char_byte_table'.
2532
2533         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2534         `Lisp_Char_Byte_Table'.
2535         (byte_table): Renamed from `char_byte_table'.
2536         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2537         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2538         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2539         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2540
2541 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2542
2543         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2544         (dfc_convert_to_internal_format): Likewise.
2545         
2546         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2547         * text-coding.c (Fcoding_system_alias_p): New function.
2548         * text-coding.c (Fcoding_system_aliasee): New function.
2549         * text-coding.c (append_suffix_to_symbol): New function.
2550         * text-coding.c (dangling_coding_system_alias_p): New function.
2551         * text-coding.c (Ffind_coding_system):
2552         * text-coding.c (Fcopy_coding_system):
2553         * text-coding.c (encode_coding_no_conversion):
2554         * text-coding.c (syms_of_file_coding):
2555         * text-coding.c (vars_of_file_coding):
2556         Rewrite coding system alias code.
2557         Allow nested aliases, like symbolic links.
2558         Allow redefinition of coding system aliases.
2559         Prevent existence of dangling coding system aliases.
2560         Eliminate convert_to_external_format.
2561         Eliminate convert_to_internal_format.
2562         
2563         * text-coding.c: Change enum eol_type to eol_type_t.
2564
2565 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2566
2567         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2568         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2569
2570         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2571         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2572
2573 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2574
2575         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2576         `ideograph-daikanwa'.
2577
2578         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2579         (Vcharset_ucs_bmp): Likewise.
2580         (Vcharset_mojikyo): Add new extern variable definition.
2581         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2582         (Vcharset_latin_iso8859_3): Likewise.
2583         (Vcharset_latin_iso8859_4): Likewise.
2584         (Vcharset_latin_iso8859_9): Likewise.
2585         (Vcharset_latin_viscii_lower): Likewise.
2586         (Vcharset_latin_viscii_upper): Likewise.
2587         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2588         `mojikyo' code-point is used to decode.
2589         (encode_char_2): New function [to convert `mojikyo' code-point to
2590         Mojikyo font encoding].
2591         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2592         (breakup_char_1): Likewise.
2593         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2594
2595 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * text-coding.c (Fmake_coding_system): Add document about
2598         `disable-composition' property.
2599
2600 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2601
2602         * text-coding.c (Qdisable_composition): New variable; delete
2603         `Qcomposite'.
2604         (Fmake_coding_system): Add new property `disable-composite';
2605         delete property `composite'.
2606         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2607         instead of `!CODING_SYSTEM_COMPOSITE'.
2608         (syms_of_file_coding): Add new symbol `disable-composition';
2609         delete symbol `composite'.
2610
2611         * file-coding.h (struct Lisp_Coding_System): Add
2612         `disable_composition'; delete `enable_composition'.
2613         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2614         `CODING_SYSTEM_COMPOSITE'.
2615         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2616         `XCODING_SYSTEM_COMPOSITE'.
2617
2618 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2619
2620         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2621         to 0.15.
2622
2623 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2624
2625         * text-coding.c (Qcomposite): New variable.
2626         (Fmake_coding_system): Add new property `composite'.
2627         (struct decoding_stream): Add `combined_char_count',
2628         `combined_chars' and `combining_table' in UTF-2000.
2629         (COMPOSE_FLUSH_CHARS): New macro.
2630         (COMPOSE_ADD_CHAR): New macro.
2631         (reset_decoding_stream): Reset `str->combined_char_count' and
2632         `str->combining_table' in UTF-2000.
2633         (decode_coding_iso2022): Modify for character-decomposition.
2634         (syms_of_file_coding): Add new symbol `composite'.
2635
2636 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2637
2638         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2639         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2640         of `Vcharacter_composition_table' if `->decomposition' property
2641         has only 1 element.
2642         (Qlatin_tcvn5712): New variable.
2643         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2644         (complex_vars_of_mule_charset): Add new coded-charset
2645         `latin-tcvn5712'.
2646
2647         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2648
2649 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2650
2651         * file-coding.h (struct Lisp_Coding_System): Add
2652         `enable_composition'.
2653         (CODING_SYSTEM_COMPOSITE): New macro.
2654         (XCODING_SYSTEM_COMPOSITE): New macro.
2655
2656 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2657
2658         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2659
2660 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2661
2662         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2663         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2664
2665 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2666
2667         * mule-charset.c (Vcharset_mojikyo): New variable.
2668         (Fdefine_char): Don't use coded-charset which does not have
2669         non-builtin character range to allocate character-id.
2670         (Qmojikyo): New variable.
2671         (syms_of_mule_charset): Add new symbol `mojikyo'.
2672         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2673
2674         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2675         (LEADING_BYTE_MOJIKYO): New macro.
2676         (MIN_CHAR_MOJIKYO): New macro.
2677         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2678         (MAX_CHAR_MOJIKYO): New macro.
2679
2680 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2681
2682         * mule-charset.c (remove_char_attribute): Fixed.
2683
2684 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2685
2686         * mule-charset.c (remove_char_attribute): New function.
2687         (Fremove_char_attribute): New function.
2688         (encode_builtin_char_1): Comment out builtin-support for
2689         greek-iso8859-7 and cyrillic-iso8859-5.
2690         (Fdecode_char): Check `code' is an integer.
2691         (syms_of_mule_charset): Add `remove-char-attribute'.
2692         (MIN_CHAR_GREEK): Deleted.
2693         (MAX_CHAR_GREEK): Likewise.
2694         (MIN_CHAR_CYRILLIC): Likewise.
2695         (MAX_CHAR_CYRILLIC): Likewise.
2696         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2697         MAX_CHAR_GREEK for `greek-iso8859-7'.
2698
2699         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2700         (MAX_CHAR_GREEK): Likewise.
2701         (MIN_CHAR_CYRILLIC): Likewise.
2702         (MAX_CHAR_CYRILLIC): Likewise.
2703
2704 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2705
2706         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2707         format is used without `ucs' property.
2708         (Fdecode_char): Fix problem with GR representation.
2709         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2710         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2711
2712 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2713
2714         * mule-charset.c (make_builtin_char): New function.
2715         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2716         (Fset_charset_mapping_table): Modify for new representation of
2717         code-point.
2718         (Fdecode_char): New function.
2719         (syms_of_mule_charset): Add new builtin function `decode-char' in
2720         UTF-2000.
2721
2722         * char-ucs.h (make_builtin_char): New prototype.
2723         (DECODE_CHAR): New inline function.
2724         (MAKE_CHAR): Use `DECODE_CHAR'.
2725
2726 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2727
2728         * text-coding.c (parse_charset_conversion_specs): Use
2729         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2730         `XCHARSET_TYPE'.
2731         (iso2022_designate): Likewise.
2732
2733         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2734         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2735
2736         * mule-charset.c (Vcharset_ucs): New variable.
2737         (print_charset): Change design; use `CHARSET_CHARS' and
2738         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2739         (make_charset): Change signature to specify `chars' and
2740         `dimension' instead of `type'.
2741         (range_charset_code_point): Modify for 256^n-set.
2742         (encode_builtin_char_1): Encode as `ucs' in default.
2743         (Fmake_charset): Modify for `make_charset'.
2744         (Fmake_reverse_direction_charset): Likewise.
2745         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2746         UTF-2000.
2747         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2748         for `make_charset'.
2749
2750         * char-ucs.h (Vcharset_ucs): New variable.
2751         (LEADING_BYTE_UCS): New macro.
2752         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2753         and `chars' to `unsigned short' from `unsigned int'.
2754         (CHARSET_TYPE): Deleted.
2755         (XCHARSET_TYPE): Deleted.
2756
2757 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2758
2759         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2760
2761         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2762         (ENCODE_CHAR): New macro.
2763
2764 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2765
2766         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2767         to 0.14 (Kawachi-Katakami).
2768
2769 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2770
2771         * text-coding.c (char_encode_shift_jis): Modify for
2772         `charset_code_point'.
2773         (char_encode_iso2022): Likewise.
2774
2775         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2776         (integer) instead of list of <Lisp_Object>s (integers) as the
2777         format of code-point of a coded-charset.
2778         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2779         (encode_builtin_char_1): New function; delete
2780         `split_builtin_char'.
2781         (charset_code_point): Return <int> instead of <Lisp_Object>.
2782         (Fsplit_char): Don't use `SPLIT_CHAR'.
2783
2784         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2785         prototype for `split_builtin_char'.
2786         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2787         (charset_code_point): Likewise.
2788         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2789         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2790
2791 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2792
2793         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2794         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2795
2796 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2797
2798         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2799
2800         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2801         (MAX_CHAR_OBS_94x94): Deleted.
2802
2803 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2804
2805         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2806
2807         * char-ucs.h (MAX_CHAR_BMP): New macro.
2808
2809 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2810
2811         * text-coding.c: Sync with r21-2-24.
2812
2813 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2814
2815         * file-coding.c: Modify for UTF-2000.
2816
2817 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2818
2819         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2820         to 0.13 (Takaida).
2821
2822 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2823
2824         * mule-charset.c (split_builtin_char): Delete builtin support for
2825         `katakana-jisx0201'.
2826         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2827         BMP area in builtin representation.
2828
2829         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2830         `Vcharset_katakana_jisx0201'.
2831
2832 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2833
2834         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2835         (Qisolated): New variable.
2836         (Qinitial): New variable.
2837         (Qmedial): New variable.
2838         (Qfinal): New variable.
2839         (Qvertical): New variable.
2840         (Qsmall): New variable.
2841         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2842         `Qvertical' and `Qsmall'.
2843         (Qmojikyo_pj_[1 .. 21]): New variable.
2844         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2845         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2846         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2847         .. 21]'.
2848
2849 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2850
2851         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2852         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2853         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2854
2855 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2856
2857         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2858         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2859         BMP.
2860         (Qjapanese_jisx0208_1990): New variable.
2861         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2862         (complex_vars_of_mule_charset): Add new coded-charset
2863         `japanese-jisx0208-1990'.
2864
2865         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2866         (MIN_CHAR_JIS_X0208_1990): New macro.
2867         (MAX_CHAR_JIS_X0208_1990): New macro.
2868
2869 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2870
2871         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2872         coded-charset is not found.
2873
2874 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2875
2876         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2877         (Fdefine_char): Use `Fmake_char'.
2878
2879 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2880
2881         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2882         (Vcharset_hiragana_jisx0208): Deleted.
2883         (Vcharset_katakana_jisx0208): Deleted.
2884         (Qideograph_daikanwa): New variable.
2885         (Qhiragana_jisx0208): Deleted.
2886         (Qkatakana_jisx0208): Deleted.
2887         (split_builtin_char): Split `ideograph-daikanwa'.
2888         (Fsplit_char): New implementation for UTF-2000.
2889         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2890         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2891         (complex_vars_of_mule_charset): Add new coded-charset
2892         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2893         `katakana-jisx0208'.
2894
2895         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2896         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2897         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2898         (MIN_CHAR_DAIKANWA): New macro.
2899         (MAX_CHAR_DAIKANWA): New macro.
2900
2901 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2902
2903         * data.c (Fstring_to_number): Don't recognize floating point if
2904         base is not 10.
2905
2906 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2907
2908         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2909
2910 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2911
2912         * mule-charset.c (Qsquare): New variable.
2913         (to_char_code): Add `Qsquare'.
2914         (syms_of_mule_charset): Add new symbol `square'.
2915
2916 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2917
2918         * mule-charset.c (Qcircle): New variable.
2919         (to_char_code): Add `Qcircle'.
2920         (syms_of_mule_charset): Add new symbol `circle'.
2921
2922 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2923
2924         * mule-charset.c (Qfont): New variable.
2925         (to_char_code): Add `Qfont'.
2926         (syms_of_mule_charset): Add new symbol `font'.
2927
2928 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2929
2930         * mule-charset.c (Qsub): New variable.
2931         (to_char_code): Add `Qsub'.
2932         (syms_of_mule_charset): Add new symbol `sub'.
2933
2934 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2935
2936         * mule-charset.c (Fput_char_attribute): Convert each element of
2937         VALUE to GL position if ATTRIBUTE is a GR-set,
2938
2939 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2940
2941         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2942         coded-charset is a GR-set.
2943
2944 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2945
2946         * mule-charset.c (Fput_char_attribute): Check each element of
2947         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2948
2949 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2950
2951         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2952         UTF-2000.
2953         (Qethiopic_ucs): New variable in UTF-2000.
2954         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2955         (complex_vars_of_mule_charset): Add new coded-charset
2956         `ethiopic-ucs' in UTF-2000.
2957
2958         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2959         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2960         9)'.
2961         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2962         10)'.
2963         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2964
2965 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2966
2967         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2968         `ascii'.
2969
2970 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2971
2972         * mule-charset.c (Vcharacter_variant_table): New variable.
2973         (Q_ucs): New variable.
2974         (Fchar_variants): New function.
2975         (Fput_char_attribute): Register `->ucs' value to
2976         `Vcharacter_variant_table'.
2977         (syms_of_mule_charset): Add new function `char-variants' and new
2978         symbol `->ucs'.
2979         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2980
2981 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2982
2983         * mule-charset.c (get_char_code_table): Allow negative character
2984         code.
2985         (put_char_code_table): Likewise.
2986         (Vcharacter_composition_table): New variable.
2987         (Q_decomposition): New variable.
2988         (Qwide): New variable.
2989         (Qnarrow): New variable.
2990         (Qcompat): New variable.
2991         (QnoBreak): New variable.
2992         (Qsuper): New variable.
2993         (Qfraction): New variable.
2994         (to_char_code): New function.
2995         (Fget_composite_char): New function.
2996         (Fput_char_attribute): Register `->decomposition' value to
2997         `Vcharacter_composition_table'.
2998         (syms_of_mule_charset): Add new function `get-composite-char', new
2999         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3000         `super' and `fraction'.
3001         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3002
3003 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3004
3005         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3006         character; copy the return value.
3007
3008 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3009
3010         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3011
3012         * mule-charset.c (range_charset_code_point): Must use make_int.
3013         (split_builtin_char): New function.
3014
3015 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3016
3017         * mule-charset.c (char_byte_table): Change name from
3018         "char-code-table" to "char-byte-table".
3019         (mark_char_code_table): New function.
3020         (char_code_table_equal): New function.
3021         (char_code_table_hash): New function.
3022         (char_code_table_description): New constant.
3023         (char_code_table): New type.
3024         (make_char_code_table): New function.
3025         (copy_char_code_table): New function.
3026         (get_char_code_table): Modify for `char_code_table' type.
3027         (put_char_code_table): Likewise.
3028         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3029         (Kashiwara).
3030
3031         * char-ucs.h (char_code_table): New type.
3032         (XCHAR_CODE_TABLE): New macro.
3033         (XSETCHAR_CODE_TABLE): New macro.
3034         (CHAR_CODE_TABLE_P): New macro.
3035         (GC_CHAR_CODE_TABLE_P): New macro.
3036         (struct Lisp_Char_Code_Table): New structure.
3037
3038 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3039
3040         * mule-charset.c (Fmake_charset): Setup byte_offset for
3041         {94|96}^n-set.
3042
3043 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3044
3045         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3046         character.
3047
3048 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3049
3050         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3051         is found.
3052
3053 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3054
3055         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3056         charset, it is regarded as a charset.
3057         (put_char_attribute): New function in UTF-2000.
3058         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3059         charset, mapping-table of the charset is modified.
3060         (Fdefine_char): New function in UTF-2000.
3061         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3062         `Fput_char_attribute'.
3063         (syms_of_mule_charset): Add new function `define-char' and new
3064         symbol `ucs' in UTF-2000.
3065         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3066
3067 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3068
3069         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3070         non-UTF-2000 configuration.
3071
3072 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3073
3074         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3075         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3076
3077         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3078         deleted.
3079         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3080         (Fset_charset_mapping_table): Likewise.
3081
3082         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3083         (CHARSET_ENCODING_TABLE): Delete.
3084         (XCHARSET_ENCODING_TABLE): Delete.
3085         (charset_code_point): New interface.
3086
3087 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3088
3089         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3090         instead of `charset_get_byte1' and `charset_get_byte2'.
3091
3092         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3093         (charset_get_byte2): Deleted.
3094
3095 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3096
3097         * char-ucs.h (SPLIT_CHAR): New inline function.
3098         (breakup_char_1): Use `SPLIT_CHAR'.
3099
3100         * mule-charset.c (range_charset_code_point): New function.
3101         (charset_code_point): New function.
3102
3103         * char-ucs.h (range_charset_code_point): New interface.
3104         (breakup_char_1): Use `range_charset_code_point'.
3105
3106 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3107
3108         * mule-charset.c (Fmake_charset): Delete unused local variable
3109         `code_offset'.
3110
3111         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3112         (breakup_char_1): Find a charset and code-point in
3113         `Vcharacter_attribute_table'.
3114
3115 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3116
3117         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3118         to 0.10 (Yao).
3119
3120 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3121
3122         * mule-charset.c (Vcharacter_attribute_table): New variable.
3123         (Fchar_attribute_alist): New function.
3124         (Fget_char_attribute): New function.
3125         (Fput_char_attribute): New function.
3126         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3127         too.
3128         (syms_of_mule_charset): Add new function `char-attribute-alist',
3129         `get-char-attribute' and `put-char-attribute'.
3130         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3131
3132 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3133
3134         * mule-charset.c (Fmake_charset): Just use
3135         `get_unallocated_leading_byte'.
3136
3137         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3138         sets; don't use final-byte based number for private sets.
3139
3140 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3141
3142         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3143         integer.
3144
3145 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3146
3147         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3148         to 0.9.
3149
3150 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3151
3152         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3153         of `CHAR_LEADING_BYTE' in UTF-2000.
3154
3155         * insdel.c (find_charsets_in_bufbyte_string): Use
3156         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3157         (find_charsets_in_emchar_string): Likewise.
3158
3159         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3160         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3161
3162         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3163         (CHAR_CHARSET_ID): New macro.
3164
3165 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3166
3167         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3168         charset-id - MIN_LEADING_BYTE.
3169         (put_char_table): Likewise.
3170
3171 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3172
3173         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3174         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3175         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3176         (CHARSET_ID_OFFSET): New macro.
3177         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3178         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3179         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3180         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3181         4).
3182         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3183         5).
3184         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3185         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3186         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3187         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3188         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3189
3190 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3191
3192         * mule-charset.c (next_allocated_leading_byte): New variable in
3193         UTF-2000.
3194         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3195         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3196         (get_unallocated_leading_byte): Simply use
3197         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3198         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3199         UTF-2000.
3200
3201         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3202         (MAX_LEADING_BYTE_PRIVATE): New macro.
3203         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3204         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3205
3206 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3207
3208         * mule-charset.c (Fmake_charset): Allocate final-byte based
3209         charset-id for 94-set, 96-set and 94x94-set.
3210
3211 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3212
3213         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3214         ambiguous `else'.
3215         (Fmake_charset): Likewise.
3216         (complex_vars_of_mule_charset): Modify the font registry of
3217         `ucs-bmp' not to match `Ethiopic-Unicode'.
3218
3219 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3220
3221         * mule-charset.c (complex_vars_of_mule_charset): Add font
3222         registory of `ucs-bmp'.
3223
3224 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3225
3226         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3227         coded-charsets in `default-coded-charset-priority-list' when
3228         breaking up a character.
3229
3230         * mule-charset.c (Vcharset_latin_viscii): New variable.
3231         (Qlatin_viscii): New variable.
3232         (make_charset): Don't use `decoding_table'.
3233         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3234         byte_offset.
3235         (Fset_charset_mapping_table): New implementation.
3236         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3237         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3238         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3239         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3240         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3241         charset `latin_viscii'.
3242
3243         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3244         (CHARSET_TYPE_94X94): Change to 1 from 2.
3245         (CHARSET_TYPE_96): Change to 2 from 1.
3246         (CHARSET_TYPE_128): New macro.
3247         (CHARSET_TYPE_128X128): Change to 5 from 4.
3248         (CHARSET_TYPE_256): New macro.
3249         (CHARSET_TYPE_256X256): Change to 7 from 5.
3250         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3251
3252 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3253
3254         * text-coding.c (char_encode_shift_jis): Refer
3255         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3256         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3257
3258         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3259         (char_byte_table_equal): New function in UTF-2000.
3260         (char_byte_table_hash): New function in UTF-2000.
3261         (char_byte_table_description): New constant in UTF-2000.
3262         (char_byte_table): New type in UTF-2000.
3263         (make_char_byte_table): New function in UTF-2000.
3264         (copy_char_byte_table): New function in UTF-2000.
3265         (make_char_code_table): New macro in UTF-2000.
3266         (get_char_code_table): New function in UTF-2000.
3267         (put_char_code_table): New function in UTF-2000.
3268         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3269         (charset_description): Add setting in UTF-2000.
3270         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3271         `CHARSET_TO_BYTE1_TABLE(cs)'.
3272         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3273         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3274         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3275         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3276         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3277         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3278         `CHARSET_TO_BYTE2_TABLE(cs)'.
3279
3280         * char-ucs.h (char_byte_table): New type.
3281         (XCHAR_BYTE_TABLE): New macro.
3282         (XSETCHAR_BYTE_TABLE): New macro.
3283         (CHAR_BYTE_TABLE_P): New macro.
3284         (GC_CHAR_BYTE_TABLE_P): New macro.
3285         (struct Lisp_Char_Byte_Table): New structure.
3286         (get_char_code_table): New interface.
3287         (Emchar_to_byte_table): Deleted.
3288         (get_byte_from_character_table): Deleted.
3289         (struct Lisp_Charset): Add `encoding_table'; delete
3290         `to_byte1_table' and `to_byte2_table'.
3291         (CHARSET_ENCODING_TABLE): New macro.
3292         (CHARSET_TO_BYTE1_TABLE): Deleted.
3293         (CHARSET_TO_BYTE2_TABLE): Deleted.
3294         (XCHARSET_ENCODING_TABLE): New macro.
3295         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3296         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3297
3298 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3299
3300         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3301         `vietnamese-viscii-*'.
3302
3303 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3304
3305         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3306         (Qvietnamese_viscii_upper): New variable.
3307         (Fdefine_charset_alias): New function.
3308         (syms_of_mule_charset): Add new function `define-charset-alias'.
3309         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3310         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3311         `latin-viscii-*'.
3312
3313 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3314
3315         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3316         (MAX_CHAR_OBS_94x94): New macro.
3317         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3318         for 94x94 sets.
3319
3320         * mule-charset.c (put_byte_from_character_table): Change unit size
3321         from 128 to 256.
3322         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3323         not defined.
3324         (Fmake_reverse_direction_charset): Modify dummy argument of
3325         `make_charset' for non-UTF-2000 environment.
3326
3327 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3328
3329         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3330
3331         * mule-charset.c (destroy_byte_from_character_table): New macro.
3332         (latin_jisx0201_to_ucs): Deleted.
3333         (latin_iso8859_2_to_ucs): Deleted.
3334         (latin_iso8859_3_to_ucs): Deleted.
3335         (latin_iso8859_4_to_ucs): Deleted.
3336         (latin_iso8859_9_to_ucs): Deleted.
3337         (latin_viscii_lower_to_ucs): Deleted.
3338         (latin_viscii_upper_to_ucs): Deleted.
3339         (mark_charset): Mark `cs->decoding_table'.
3340         (Fcharset_mapping_table): Fix DOC-string.
3341         (Fset_charset_mapping_table): New function.
3342         (syms_of_mule_charset): Add nwe function
3343         `set-charset-mapping-table'.
3344         (complex_vars_of_mule_charset): Don't setup and use
3345         `latin_*_to_ucs'.
3346
3347 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3348
3349         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3350         charset.
3351
3352 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3353
3354         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3355         (Vcharset_katakana_jisx0208): New variable.
3356         (Qhiragana_jisx0208): New variable.
3357         (Qkatakana_jisx0208): New variable.
3358         (make_charset): Add new argument `byte_offset'.
3359         (charset_get_byte1): Modify for new coded-charset definition; use
3360         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3361         `XCHARSET_BYTE_OFFSET'.
3362         (Fmake_charset): Modify for `make_charset'.
3363         (Fmake_reverse_direction_charset): Likewise.
3364         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3365         `katakana-jisx0208'.
3366         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3367         `.'  in font registry of charset `katakana-jisx0201',
3368         `latin-jisx0201', `vietnamese-viscii-lower' and
3369         `vietnamese-viscii-upper'; modify DOC-string of charset
3370         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3371         registry of charset `japanese-jisx0208' not to use font for JIS
3372         X0208:1990; add new charset `hiragana-jisx0208' and
3373         `katakana-jisx0208'.
3374
3375         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3376         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3377         (struct Lisp_Charset): Add `byte_offset'.
3378         (CHARSET_BYTE_OFFSET): New macro.
3379         (XCHARSET_UCS_MIN): New macro.
3380         (XCHARSET_UCS_MAX): New macro.
3381         (XCHARSET_CODE_OFFSET): New macro.
3382         (XCHARSET_BYTE_OFFSET): New macro.
3383         (MIN_CHAR_HIRAGANA): New macro.
3384         (MAX_CHAR_HIRAGANA): New macro.
3385         (MIN_CHAR_KATAKANA): New macro.
3386         (MAX_CHAR_KATAKANA): New macro.
3387         (MAKE_CHAR): Modify for new coded-charset definition; use
3388         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3389         `XCHARSET_BYTE_OFFSET'.
3390
3391 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3392
3393         * mule-charset.c (CHAR96): Deleted.
3394         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3395         <Lisp_Object>.
3396         (latin_iso8859_2_to_ucs): Likewise.
3397         (latin_iso8859_3_to_ucs): Likewise.
3398         (latin_iso8859_4_to_ucs): Likewise.
3399         (latin_iso8859_9_to_ucs): Likewise.
3400         (latin_viscii_lower_to_ucs): Likewise.
3401         (latin_viscii_upper_to_ucs): Likewise.
3402         (latin_tcvn5712_to_ucs): Commented out.
3403         (make_charset): Change type of argument `decoding_table' from
3404         <Emchar*> to <Lisp_Object> [vector of characters].
3405         (Fmake_charset): Modify for `make_charset'.
3406         (Fmake_reverse_direction_charset): Likewise.
3407         (Fcharset_mapping_table): New function in UTF-2000.
3408         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3409         UTF-2000.
3410         (complex_vars_of_mule_charset): Modify for type change of
3411         `*_to_ucs'; modify for `make_charset'.
3412
3413         * char-ucs.h (struct Lisp_Charset): Change type of
3414         `decoding_table' from <Emchar*> to <Lisp_Object>.
3415         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3416
3417 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3418
3419         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3420         error with non-UTF-2000-Mule.
3421
3422 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3423
3424         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3425         in lisp again].
3426         (Vcharset_chinese_cns11643_4): Likewise.
3427         (Vcharset_chinese_cns11643_5): Likewise.
3428         (Vcharset_chinese_cns11643_6): Likewise.
3429         (Vcharset_chinese_cns11643_7): Likewise.
3430         (Qchinese_cns11643_3): Likewise.
3431         (Qchinese_cns11643_4): Likewise.
3432         (Qchinese_cns11643_5): Likewise.
3433         (Qchinese_cns11643_6): Likewise.
3434         (Qchinese_cns11643_7): Likewise.
3435         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3436         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3437         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3438         (complex_vars_of_mule_charset): Likewise.
3439
3440 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3441
3442         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3443         96-set.
3444         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3445         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3446
3447 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3448
3449         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3450         0xFF60.
3451         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3452         (breakup_char_1): Likewise.
3453
3454         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3455         one of them includes the specified character.
3456
3457 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3458
3459         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3460
3461 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3462
3463         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3464
3465 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3466
3467         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3468         definition for non-UTF-2000 Mule.
3469         (latin_iso8859_3_to_ucs): Likewise.
3470         (latin_iso8859_4_to_ucs): Likewise.
3471         (latin_iso8859_9_to_ucs): Likewise.
3472         (latin_jisx0201_to_ucs): Likewise.
3473         (MIN_CHAR_THAI): Likewise.
3474         (MAX_CHAR_THAI): Likewise.
3475         (MIN_CHAR_GREEK): Likewise.
3476         (MAX_CHAR_GREEK): Likewise.
3477         (MIN_CHAR_HEBREW): Likewise.
3478         (MAX_CHAR_HEBREW): Likewise.
3479         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3480         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3481         (MIN_CHAR_CYRILLIC): Likewise.
3482         (MAX_CHAR_CYRILLIC): Likewise.
3483
3484 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3485
3486         * char-ucs.h (breakup_char_1): Use
3487         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3488         thai-tis620 and katakana-jisx0201 area.
3489
3490 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3491
3492         * char-ucs.h (breakup_char_1): Use
3493         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3494         area.
3495
3496         * text-coding.c (reset_encoding_stream): Fixed.
3497         (char_encode_ucs4): Delete `& 255'.
3498
3499         * char-ucs.h (breakup_char_1): Use
3500         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3501
3502 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3503
3504         * file-coding.c (Fmake_coding_system): Don't set up
3505         `codesys->fixed.size'.
3506         (encode_coding_no_conversion): Don't refer
3507         `str->codesys->fixed.size'.
3508
3509 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3510
3511         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3512         (latin_a_char_to_byte1): Deleted.
3513         (latin_a_char_to_byte2): Deleted.
3514
3515 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3516
3517         * mule-charset.c (make_charset): Add new argument `ucs_min',
3518         `ucs_max' and `code_offset'.
3519         (charset_get_byte1): New implementation [delete specific charset
3520         depended implementations].
3521         (Fmake_charset): Modify for `make_charset'.
3522         (Fmake_reverse_direction_charset): Likewise.
3523         (complex_vars_of_mule_charset): Likewise.
3524
3525         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3526         `code_offset'.
3527         (CHARSET_UCS_MIN): New macro.
3528         (CHARSET_UCS_MAX): New macro.
3529         (CHARSET_CODE_OFFSET): New macro.
3530         (MAKE_CHAR): Delete charset depended definitions [except
3531         katakana-jisx0201].
3532
3533 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3534
3535         * char-ucs.h (breakup_char_1): Use
3536         `Vdefault_coded_charset_priority_list' for C0-Controls,
3537         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3538
3539 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3540
3541         * char-ucs.h (charset_get_byte1): New function.
3542         (XCHARSET_GET_BYTE1): Deleted.
3543         (charset_get_byte2): New function.
3544         (XCHARSET_GET_BYTE2): Deleted.
3545         (Vdefault_coded_charset_priority_list): New external variable.
3546         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3547         `Vdefault_preferred_coded_charset_list'.
3548
3549         * mule-charset.c (charset_get_byte1): New function.
3550         (charset_get_byte2): New function.
3551         (Vdefault_coded_charset_priority_list): New variable.
3552         (vars_of_mule_charset): Add new variable
3553         `default-coded-charset-priority-list'.
3554
3555 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3556
3557         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3558         (XCHARSET_GET_BYTE2): New inline function.
3559         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3560         `XCHARSET_GET_BYTE2'.
3561
3562 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3563
3564         * mule-charset.c (make_charset): Initialize
3565         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3566         NULL if table is not defined.
3567
3568 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3569
3570         * text-coding.c (char_encode_shift_jis): Use
3571         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3572         `ucs_to_latin_jisx0201'.
3573
3574         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3575         (ucs_to_latin_iso8859_2): Deleted.
3576         (ucs_to_latin_iso8859_3): Deleted.
3577         (ucs_to_latin_iso8859_4): Deleted.
3578         (ucs_to_latin_iso8859_9): Deleted.
3579         (ucs_to_latin_viscii_lower): Deleted.
3580         (ucs_to_latin_viscii_upper): Deleted.
3581         (ucs_to_latin_tcvn5712): Deleted.
3582         (make_charset): Add new argument `decoding_table'; set up
3583         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3584         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3585         `decoding_table' is defined in UTF-2000.
3586         (Fmake_charset): Modify for `make_charset'.
3587         (Fmake_reverse_direction_charset): Likewise.
3588         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3589         and `GENERATE_96_SET'.
3590
3591         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3592         (ucs_to_latin_jisx0201): Deleted.
3593         (latin_iso8859_2_to_ucs): Deleted.
3594         (ucs_to_latin_iso8859_2): Deleted.
3595         (latin_iso8859_3_to_ucs): Deleted.
3596         (ucs_to_latin_iso8859_3): Deleted.
3597         (latin_iso8859_4_to_ucs): Deleted.
3598         (ucs_to_latin_iso8859_4): Deleted.
3599         (latin_iso8859_9_to_ucs): Deleted.
3600         (ucs_to_latin_iso8859_9): Deleted.
3601         (latin_viscii_lower_to_ucs): Deleted.
3602         (ucs_to_latin_viscii_lower): Deleted.
3603         (latin_viscii_upper_to_ucs): Deleted.
3604         (ucs_to_latin_viscii_upper): Deleted.
3605         (struct Lisp_Charset): Renamed `encoding_table' to
3606         `to_byte1_table'; add `to_byte2_table'.
3607         (CHARSET_DECODING_TABLE): New macro.
3608         (CHARSET_TO_BYTE1_TABLE): New macro.
3609         (CHARSET_TO_BYTE2_TABLE): New macro.
3610         (XCHARSET_DECODING_TABLE): New macro.
3611         (XCHARSET_TO_BYTE1_TABLE): New macro.
3612         (XCHARSET_TO_BYTE2_TABLE): New macro.
3613         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3614         tables.
3615         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3616         don't use `ucs_to_*' tables.
3617
3618 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3619
3620         * text-coding.c (Fmake_coding_system): Don't set up
3621         `codesys->fixed.size'.
3622         (encode_coding_no_conversion): Use `if' instead of `switch'.
3623
3624         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3625
3626 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3627
3628         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3629         (Fmake_charset): Modify for `make_charset'.
3630         (Fmake_reverse_direction_charset): Likewise.
3631         (complex_vars_of_mule_charset): Likewise.
3632
3633 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3634
3635         * text-coding.c (char_encode_shift_jis): Use table
3636         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3637
3638 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3639
3640         * text-coding.c (text_encode_generic): Use `if' instead of
3641         `switch'.
3642         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3643         decode JIS-Latin.
3644
3645 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3646
3647         * text-coding.c (encode_coding_sjis): Deleted.
3648         (char_encode_shift_jis): New function.
3649         (char_finish_shift_jis): New function.
3650         (reset_encoding_stream): Set up `encode_char' and `finish' for
3651         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3652         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3653         (char_encode_utf8): Treat `eol_type'.
3654
3655 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3656
3657         * file-coding.c (decode_coding_iso2022): Use
3658         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3659
3660 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3661
3662         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3663         to 0.7 (Hirano).
3664
3665 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3666
3667         * char-lb.h (CHAR_COLUMNS): New macro.
3668
3669 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3670
3671         * text-coding.c (char_encode_ucs4): New function.
3672         (char_finish_ucs4): New function.
3673         (encode_coding_ucs4): Deleted.
3674         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3675         (text_encode_generic): Delete local variable `charset' and `half'.
3676         (ucs_to_mule_table): Deleted.
3677         (mule_to_ucs_table): Deleted.
3678         (Fset_ucs_char): Deleted.
3679         (ucs_to_char): Deleted.
3680         (Fucs_char): Deleted.
3681         (Fset_char_ucs): Deleted.
3682         (Fchar_ucs): Deleted.
3683         (decode_ucs4): Deleted.
3684         (mule_char_to_ucs4): Deleted.
3685         (encode_ucs4): Deleted.
3686         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3687         (decode_coding_utf8): Likewise.
3688         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3689         (char_encode_iso2022): Fixed.
3690         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3691         `Fset_char_ucs' and `Fchar_ucs'.
3692         (complex_vars_of_file_coding): Don't initialize
3693         `ucs_to_mule_table'.
3694
3695         * objects-tty.c (tty_initialize_font_instance): Don't use
3696         `XCHARSET_COLUMNS'.
3697
3698         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3699         UTF-2000.
3700
3701         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3702         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3703
3704         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3705         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3706         (emchar_string_displayed_columns): Likewise.
3707
3708         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3709         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3710         (string_column_at_point): Likewise.
3711         (Fmove_to_column): Likewise.
3712
3713         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3714         `encoding_table' and `decoding_table'.
3715         (CHARSET_REP_BYTES): Deleted.
3716         (XCHARSET_REP_BYTES): Deleted.
3717         (XCHARSET_COLUMNS): Deleted.
3718         (CHAR_COLUMNS): New macro.
3719         (lookup_composite_char): Deleted unconditionally.
3720         (composite_char_string): Likewise.
3721
3722 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3723
3724         * char-ucs.h (Emchar_to_byte_table): New type.
3725         (get_byte_from_character_table): New function interface.
3726         (Vcharset_latin_jisx0201): New variable.
3727         (latin_jisx0201_to_ucs): New variable.
3728         (ucs_to_latin_jisx0201): New variable.
3729         (Vcharset_latin_iso8859_2): New variable.
3730         (latin_iso8859_2_to_ucs): New variable.
3731         (ucs_to_latin_iso8859_2): New variable.
3732         (Vcharset_latin_iso8859_3): New variable.
3733         (latin_iso8859_3_to_ucs): New variable.
3734         (ucs_to_latin_iso8859_3): New variable.
3735         (Vcharset_latin_iso8859_4): New variable.
3736         (latin_iso8859_4_to_ucs): New variable.
3737         (ucs_to_latin_iso8859_4): New variable.
3738         (Vcharset_latin_iso8859_9): New variable.
3739         (latin_iso8859_9_to_ucs): New variable.
3740         (ucs_to_latin_iso8859_9): New variable.
3741         (Vcharset_latin_viscii_lower): New variable.
3742         (latin_viscii_lower_to_ucs): New variable.
3743         (ucs_to_latin_viscii_lower): New variable.
3744         (Vcharset_latin_viscii_upper): New variable.
3745         (latin_viscii_upper_to_ucs): New variable.
3746         (ucs_to_latin_viscii_upper): New variable.
3747         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3748         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3749         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3750         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3751         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3752         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3753         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3754         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3755         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3756         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3757
3758         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3759         (Vcharset_latin_viscii_upper): New variable.
3760         (make_byte_from_character_table): New function.
3761         (put_byte_from_character_table): New function.
3762         (get_byte_from_character_table): New function.
3763         (CHAR96): New macro.
3764         (ucs_to_latin_jisx0201): New variable.
3765         (latin_jisx0201_to_ucs): New variable.
3766         (ucs_to_latin_iso8859_2): New variable.
3767         (latin_iso8859_2_to_ucs): New variable.
3768         (ucs_to_latin_iso8859_3): New variable.
3769         (latin_iso8859_3_to_ucs): New variable.
3770         (ucs_to_latin_iso8859_4): New variable.
3771         (latin_iso8859_4_to_ucs): New variable.
3772         (ucs_to_latin_iso8859_9): New variable.
3773         (latin_iso8859_9_to_ucs): New variable.
3774         (ucs_to_latin_viscii_lower): New variable.
3775         (latin_viscii_lower_to_ucs): New variable.
3776         (ucs_to_latin_viscii_upper): New variable.
3777         (latin_viscii_upper_to_ucs): New variable.
3778         (ucs_to_latin_tcvn5712): New variable.
3779         (latin_tcvn5712_to_ucs): New variable.
3780         (Qlatin_viscii_lower): New variable.
3781         (Qlatin_viscii_upper): New variable.
3782         (syms_of_mule_charset): Set up new symbol
3783         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3784         (complex_vars_of_mule_charset): Set up new charset
3785         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3786         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3787         `ucs_to_<CHARSET>' tables.
3788
3789 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3790
3791         * text-coding.c: New file.
3792
3793 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3794
3795         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3796
3797         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3798         (MAKE_CHAR): Modify for `ucs-bmp'.
3799         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3800         non-MULE characters of BMP.
3801
3802 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3803
3804         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3805         to 0.6.
3806
3807 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3808
3809         * lstream.h:
3810         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3811         - Include character.h for `CHAR_ASCII_P'.
3812
3813         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3814
3815         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3816         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3817
3818         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3819         (BYTE_C0_P): Likewise.
3820         (BYTE_C1_P): Likewise.
3821         (Lstream_get_emchar_1): Likewise.
3822         (Lstream_fput_emchar): Likewise.
3823         (Lstream_funget_emchar): Likewise.
3824         (copy_internal_to_external): Likewise.
3825         (copy_external_to_internal): Likewise.
3826
3827         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3828         (BYTE_C0_P): Likewise.
3829         (BYTE_C1_P): Likewise.
3830         (Lstream_get_emchar_1): Likewise.
3831         (Lstream_fput_emchar): Likewise.
3832         (Lstream_funget_emchar): Likewise.
3833         (copy_internal_to_external): Likewise.
3834         (copy_external_to_internal): Likewise.
3835
3836         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3837         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3838
3839         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3840         (BYTE_ASCII_P): Moved to mb-1byte.h.
3841
3842 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3843
3844         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3845
3846         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3847         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3848         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3849         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3850         (VALIDATE_CHARPTR_FORWARD): Likewise.
3851         (simple_charptr_emchar): Moved to mb-multibyte.h.
3852         (simple_set_charptr_emchar): Likewise.
3853         (simple_charptr_copy_char): Likewise.
3854         (non_ascii_charptr_emchar): Likewise.
3855         (non_ascii_set_charptr_emchar): Likewise.
3856         (non_ascii_charptr_copy_char): Likewise.
3857         (charptr_emchar): Moved to mb-*byte.h.
3858         (set_charptr_emchar): Likewise.
3859         (charptr_copy_char): Likewise.
3860
3861         * mb-1byte.h, mb-multibyte.h: New files.
3862
3863 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3864
3865         * mb-utf-8.h (MULTIBYTE): New macro.
3866         (MAX_EMCHAR_LEN): Moved from buffer.h.
3867         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3868
3869         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3870
3871         * mb-lb.h, multibyte.h: New files.
3872
3873         * char-1byte.h (Charset_ID): Moved from buffer.h.
3874         (MIN_LEADING_BYTE): Likewise.
3875         (LEADING_BYTE_ASCII): Likewise.
3876         (NUM_LEADING_BYTES): Likewise.
3877         (CHARSETP): Likewise.
3878         (CHARSET_BY_LEADING_BYTE): Likewise.
3879         (XCHARSET_LEADING_BYTE): Likewise.
3880         (XCHARSET_GRAPHIC): Likewise.
3881         (XCHARSET_COLUMNS): Likewise.
3882         (XCHARSET_DIMENSION): Likewise.
3883         (CHAR_CHARSET): Likewise.
3884         (CHAR_LEADING_BYTE): Likewise.
3885         (BREAKUP_CHAR): Likewise.
3886         (Vcharset_ascii): Likewise.
3887
3888         * buffer.h: Include multibyte.h unconditionally.
3889         (VALID_CHARPTR_P): Moved to multibyte.h.
3890         (ASSERT_VALID_CHARPTR): Likewise.
3891         (REAL_INC_CHARPTR): Likewise.
3892         (REAL_INC_CHARBYTIND): Likewise.
3893         (REAL_DEC_CHARPTR): Likewise.
3894         (INC_CHARPTR): Likewise.
3895         (INC_CHARBYTIND): Likewise.
3896         (DEC_CHARPTR): Likewise.
3897         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3898         (VALIDATE_CHARPTR_FORWARD): Likewise.
3899         (charptr_n_addr): Likewise.
3900         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3901         (simple_charptr_emchar): Moved to multibyte.h.
3902         (simple_set_charptr_emchar): Likewise.
3903         (simple_charptr_copy_char): Likewise.
3904         (non_ascii_charptr_emchar): Likewise.
3905         (non_ascii_set_charptr_emchar): Likewise.
3906         (non_ascii_charptr_copy_char): Likewise.
3907         (charptr_emchar): Likewise.
3908         (set_charptr_emchar): Likewise.
3909         (charptr_copy_char): Likewise.
3910         (charptr_emchar_n): Likewise.
3911         (Charset_ID): Moved to char-1byte.h.
3912         (Vcharset_ascii): Likewise.
3913         (CHAR_CHARSET): Likewise.
3914         (CHAR_LEADING_BYTE): Likewise.
3915         (LEADING_BYTE_ASCII): Likewise.
3916         (NUM_LEADING_BYTES): Likewise.
3917         (MIN_LEADING_BYTE): Likewise.
3918         (CHARSETP): Likewise.
3919         (CHARSET_BY_LEADING_BYTE): Likewise.
3920         (XCHARSET_LEADING_BYTE): Likewise.
3921         (XCHARSET_GRAPHIC): Likewise.
3922         (XCHARSET_COLUMNS): Likewise.
3923         (XCHARSET_DIMENSION): Likewise.
3924         (BREAKUP_CHAR): Likewise.
3925
3926 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3927
3928         * character.h: Add document about interface for characters.
3929
3930         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3931         (MAKE_CHAR): Delete comment about
3932         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3933         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3934         (BREAKUP_CHAR): Modify name of arguments.
3935         (CHAR_CHARSET): Modify name of argument.
3936
3937         * buffer.h: Delete document about Emchar accessors.
3938
3939 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3940
3941         * character.h (CHAR_INTP): Moved from buffer.h
3942         (CHAR_OR_CHAR_INTP): Likewise.
3943         (XCHAR_OR_CHAR_INT): Likewise.
3944         (CHECK_CHAR_COERCE_INT): Likewise.
3945
3946         * buffer.h (CHAR_INTP): Moved to character.h
3947         (CHAR_OR_CHAR_INTP): Likewise.
3948         (XCHAR_OR_CHAR_INT): Likewise.
3949         (CHECK_CHAR_COERCE_INT): Likewise.
3950
3951 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3952
3953         * character.h:
3954         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3955         - Include char-1byte.h, char-lb.h or char-ucs.h.
3956
3957         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3958
3959         * buffer.h: Include character unconditionally.
3960         (valid_char_p): Moved to char-*.h.
3961         (non_ascii_valid_char_p): Moved to char-lb.h.
3962
3963         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3964
3965 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3966
3967         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3968         in UTF-2000 because it is not ported yet and not to use
3969         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3970         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3971         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3972
3973         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3974         (CHAR_ASCII_P): Moved from character.h.
3975
3976         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3977         (CHAR_ASCII_P): Likewise.
3978         (CHAR_FIELD1_MASK): Deleted.
3979         (CHAR_FIELD2_MASK): Deleted.
3980         (CHAR_FIELD3_MASK): Deleted.
3981         (MAX_CHAR_BASIC_LATIN): New macro.
3982         (CHAR_FIELD1): Deleted.
3983         (CHAR_FIELD2_INTERNAL): Deleted.
3984         (CHAR_FIELD3_INTERNAL): Deleted.
3985         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3986         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3987         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3988         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3989         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3990         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3991         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3992         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3993         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3994         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3995         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3996         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3997         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3998         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3999         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4000         (MIN_CHAR_COMPOSITION): Deleted.
4001         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4002         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4003
4004 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4005
4006         * buffer.h: Include mb-utf-8.h in UTF-2000.
4007
4008         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4009
4010         * mb-utf-8.h: New file.
4011
4012 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4013
4014         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4015         instead of `int'.
4016
4017         * mule-charset.h, buffer.h (Charset_ID): New type.
4018
4019 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4020
4021         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4022         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4023         instead of `MULE_CHAR_PRIVATE_OFFSET',
4024         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4025         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4026         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4027
4028         * character.h (Vcharset_japanese_jisx0212): New variable
4029         definition.
4030
4031 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4034         (charset_by_attributes): Delete array about direction.
4035         (latin_a_char_to_charset): New variable in UTF-2000.
4036         (latin_a_char_to_byte1): New variable in UTF-2000.
4037         (latin_a_char_to_byte2): New variable in UTF-2000.
4038         (Qucs_bmp): New variable.
4039         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4040         `Bufbyte'.
4041         (next_allocated_2_byte_leading_byte): Likewise.
4042         (non_ascii_set_charptr_emchar): Likewise.
4043         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4044         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4045         `charset_by_attributes'.
4046         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4047         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4048         and `CHARSET_BY_LEADING_BYTE'.
4049         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4050         `utf-2000-version' to `vars_of_mule_charset'.
4051         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4052         define `leading-code-private-11' in UTF-2000; move setting of
4053         `utf-2000-version' from `syms_of_mule_charset'.
4054         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4055         UTF-2000.
4056
4057         * character.h (Charset_ID): New type.
4058         (LEADING_BYTE_UCS_BMP): New macro.
4059         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4060         (CHARSET_ID_OFFSET_94): New macro.
4061         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4062         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4063         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4064         final-byte.
4065         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4066         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4067         (CHARSET_ID_OFFSET_96): New macro.
4068         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4069         CHARSET_ID_OFFSET_96 and final-byte.
4070         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4071         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4072         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4073         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4074         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4075         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4076         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4077         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4078         (LEADING_BYTE_THAI_TIS620): Likewise.
4079         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4080         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4081         (CHARSET_ID_OFFSET_94x94): New macro.
4082         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4083         CHARSET_ID_OFFSET_94x94 and final-byte.
4084         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4085         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4086         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4087         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4088         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4089         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4090         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4091         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4092         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4093         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4094         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4095         (CHARSET_TYPE_128X128): New macro.
4096         (CHARSET_TYPE_256X256): New macro.
4097         (XCHARSET_PRIVATE_P): Delete unconditionally.
4098         (charset_by_attributes): Delete array about direction.
4099         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4100         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4101         (MIN_CHAR_94): New macro.
4102         (MAX_CHAR_94): New macro.
4103         (MIN_CHAR_96): New macro.
4104         (MAX_CHAR_96): New macro.
4105         (MIN_CHAR_94x94): New macro.
4106         (MAX_CHAR_94x94): New macro.
4107         (MIN_CHAR_96x96): New macro.
4108         (MAX_CHAR_96x96): New macro.
4109         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4110         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4111         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4112         - 32)'.
4113         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4114         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4115         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4116         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4117         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4118         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4119         `XCHARSET_LEADING_BYTE' to make code-point.
4120         (latin_a_char_to_charset): New variable.
4121         (latin_a_char_to_byte1): New variable.
4122         (latin_a_char_to_byte2): New variable.
4123         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4124         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4125         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4126
4127         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4128         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4129         (find_charsets_in_emchar_string): Likewise.
4130         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4131
4132         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4133         `int'.
4134         (decode_coding_iso2022): Likewise.
4135
4136         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4137         of `unsigned char'.
4138
4139         * redisplay.c (redisplay_text_width_emchar_string): Use
4140         `Charset_ID' instead of `unsigned char'.
4141         (redisplay_frame_text_width_string): Likewise.
4142
4143         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4144         `unsigned char'.
4145
4146         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4147         instead of `unsigned char'.
4148         (face_cachel_charset_font_metric_info): Likewise.
4149
4150         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4151         (get_non_ascii_char_table_value): Likewise.
4152         (get_char_table): Likewise.
4153         (put_char_table): Likewise.
4154         (map_over_other_charset): Likewise.
4155         (map_char_table): Likewise.
4156
4157         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4158         instead of `unsigned char'.
4159
4160 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4161
4162         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4163         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4164
4165         * mule-charset.c (leading_code_private_11): Don't define in
4166         UTF-2000.
4167
4168         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4169         in UTF-2000 because it is not ported yet and not to use
4170         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4171
4172 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4173
4174         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4175
4176 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4177
4178         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4179         in UTF-2000.
4180
4181         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4182         of unsigned char to store leading-byte.
4183
4184         * chartab.c (get_non_ascii_char_table_value): Don't use
4185         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4186
4187         * file-coding.c (encode_coding_big5): Delete bogus implementation
4188         in UTF2000.
4189
4190         * character.h (LEADING_BYTE_*): Delete definition for
4191         non-UTF-2000.
4192         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4193         (LEADING_BYTE_PREFIX_P): Deleted.
4194         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4195         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4196         (BUFBYTE_LEADING_BYTE_P): Deleted.
4197         (CHARSET_PRIVATE_P): Deleted unconditionally.
4198         (rep_bytes_by_first_byte): Deleted unconditionally.
4199         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4200         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4201         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4202         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4203         (CHAR_FIELD2): Deleted.
4204         (CHAR_FIELD3): Deleted.
4205         (MAKE_CHAR): Delete definition for non-UTF-2000.
4206         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4207         (breakup_char_1): New implementation.
4208         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4209         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4210
4211 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4212
4213         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4214         condition.
4215
4216 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4217
4218         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4219         (CHARSET_PRIVATE_P): Likewise.
4220         (XCHARSET_PRIVATE_P): Likewise.
4221         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4222
4223         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4224         UTF2000.
4225         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4226
4227 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4228
4229         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4230         (NUM_LEADING_BYTES): Changed from 128 to 256.
4231         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4232         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4233         UTF2000.
4234         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4235
4236         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4237         UTF2000.
4238         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4239         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4240         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4241         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4242         (Qchinese_cns11643_3): New variable in UTF2000.
4243         (Qchinese_cns11643_4): New variable in UTF2000.
4244         (Qchinese_cns11643_5): New variable in UTF2000.
4245         (Qchinese_cns11643_6): New variable in UTF2000.
4246         (Qchinese_cns11643_7): New variable in UTF2000.
4247         (syms_of_mule_charset): Define `chinese-cns11643-3',
4248         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4249         and `chinese-cns11643-7' in UTF2000.
4250         (vars_of_mule_charset): Initialize
4251         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4252         + 1 in UTF2000.
4253         (complex_vars_of_mule_charset): Setup charset
4254         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4255         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4256
4257 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4258
4259         * mule-charset.c: Move setting for `leading-code-private-11' from
4260         `syms_of_mule_charset' to `vars_of_mule_charset'.
4261
4262 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4263
4264         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4265         and `NUM_LEADING_BYTES' in assert.
4266
4267 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4268
4269         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4270         instead of 128.
4271         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4272         `NUM_LEADING_BYTES' instead of 128.
4273
4274 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4275
4276         * mule-charset.h (charset_by_leading_byte): Use
4277         `NUM_LEADING_BYTES' instead of 128.
4278         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4279
4280         * mule-charset.c (charset_by_leading_byte): Use
4281         `NUM_LEADING_BYTES' instead of 128.
4282         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4283
4284         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4285         128.
4286
4287 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4288
4289         * mule-charset.c (syms_of_mule_charset): Update to
4290         0.4 (Shin-Imamiya).
4291
4292 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4293
4294         * file-coding.c (encode_coding_sjis): New implementation for
4295         UTF2000.  (decode_coding_sjis): Ditto.
4296
4297 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4298
4299         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4300         Don't define in UTF2000.
4301
4302         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4303         defined.
4304
4305         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4306         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4307         MULE.
4308
4309 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4310
4311         * config.h.in (CHAR_IS_UCS4): New macro.
4312
4313         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4314         conventional MULE representation.
4315         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4316
4317         * mule-charset.h: Reverted to original.
4318
4319         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4320         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4321         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4322
4323         * character.h: New file.
4324
4325         * file-coding.c (Fmake_coding_system): Set 1 to
4326         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4327         defined.
4328         (encode_coding_no_conversion): New implementation for UTF2000.
4329
4330         * file-coding.h (struct Lisp_Coding_System): Add new member
4331         `fixed.size'.
4332
4333 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4334
4335         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4336         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4337         (encode_coding_iso2022): New implementation for UTF2000.
4338
4339 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4340
4341         * mule-canna.c (c2mu): New implementation for UTF2000.
4342         (m2c): Likewise.
4343
4344 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4345
4346         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4347
4348 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4349
4350         * file-coding.c (reset_encoding_stream): Set 0 to
4351         `str->iso2022.current_char_boundary' in UTF2000.
4352         (encode_utf8): Don't define in UTF2000.
4353         (encode_coding_utf8): New implementation for UTF-8 representation
4354         of UTF2000.
4355         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4356
4357 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4358
4359         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4360
4361         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4362         UTF2000.
4363         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4364
4365         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4366
4367         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4368         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4369         as UTF-8 in UTF2000.
4370         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4371         (non_ascii_valid_char_p): Don't define in UTF2000.
4372         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4373         (Lstream_get_emchar_1): Likewise.
4374         (utf-2000-version): New variable in UTF2000.
4375
4376         * lread.c (read_escape): Add new reader `u'.
4377
4378         * insdel.c (three_to_one_table): Don't define in UTF2000.
4379         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4380         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4381         UTF2000.
4382         (bytind_to_bufpos_func): Likewise.
4383         (buffer_mule_signal_inserted_region): Likewise.
4384         (vars_of_insdel): Don't initialize `three_to_one_table'.
4385         (init_buffer_text): Use `buf->text->mule_size' instead of
4386         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4387         UTF2000.
4388
4389         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4390         UTF-8 representation in UTF2000.
4391         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4392         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4393         (decode_coding_iso2022): Don't define local variable `lb' in
4394         UTF2000; don't use LEADING_BYTE in UTF2000; use
4395         `DECODE_ADD_UCS_CHAR' in UTF2000.
4396         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4397
4398         * config.h.in (UTF2000): New macro.
4399
4400         * buffer.h (struct buffer_text): Add new member `mule_size' and
4401         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4402         (valid_char_p): Return always 1 in UTF2000.
4403         (MAX_EMCHAR_LEN): 6 in UTF2000.
4404         (three_to_one_table): Don't define in UTF2000.
4405         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4406         UTF2000.
4407         (real_bytind_to_bufpos): Likewise.
4408
4409         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4410
4411 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4412
4413         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4414         representation change.
4415         (Vutf_2000_version): New variable.
4416         (leading_code_private_11): New variable.
4417         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4418         `leading-code-private-11'.
4419
4420         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4421         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4422         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4423         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4424         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4425         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4426         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4427         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4428         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4429         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4430         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4431         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4432         (MIN_CHAR_GREEK): New macro.
4433         (MAX_CHAR_GREEK): New macro.
4434         (MIN_CHAR_CYRILLIC): New macro.
4435         (MAX_CHAR_CYRILLIC): New macro.
4436         (MIN_CHAR_HEBREW): New macro.
4437         (MAX_CHAR_HEBREW): New macro.
4438         (MIN_CHAR_THAI): New macro.
4439         (MAX_CHAR_THAI): New macro.
4440         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4441         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4442         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4443         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4444         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4445         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4446         (CHAR_FIELD2): New inline function.
4447         (CHAR_FIELD3): New inline function.
4448         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4449         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4450         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4451         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4452         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4453         (MIN_CHAR_COMPOSITION): Likewise.
4454         (CHAR_LEADING_BYTE): Modified for character representation change.
4455         (MAKE_CHAR): Likewise.
4456
4457         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4458         (Vcharset_greek_iso8859_7): Likewise.
4459         (Vcharset_cyrillic_iso8859_5): Likewise.
4460         (Vcharset_hebrew_iso8859_8): Likewise.
4461         (Vcharset_thai_tis620): Likewise.
4462         (Vcharset_katakana_jisx0201): Likewise.
4463
4464 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
4465
4466         * XEmacs 21.4.9 "Informed Management" is released.
4467
4468 2002-08-19  Andy Piper  <andy@xemacs.org>
4469
4470         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4471         win32 format.
4472
4473         * realpath.c (xrealpath): normalize drive spec also so that dir
4474         sep chars are not mixed on cygwin.
4475
4476 2002-08-06  Jerry James  <james@xemacs.org>
4477
4478         * window.c (Fsplit_window): Count only half of the divider width
4479         against the left window when splitting horizontally. 
4480
4481 2002-06-24  Andy Piper  <andy@xemacs.org>
4482
4483         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4484         toolbar was cleared.
4485
4486         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4487         function. Split out from mswindows_output_frame_toolbars.
4488         (mswindows_output_frame_toolbars): move clear pieces to
4489         mswindows_output_frame_toolbars.
4490
4491         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4492         out from gtk_output_frame_toolbars.
4493         (gtk_output_frame_toolbars): move clear pieces to
4494         gtk_clear_frame_toolbars.
4495
4496         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
4497         the frame is cleared. How this ever worked before is a mystery.
4498         (x_output_frame_toolbars): Only output toolbars.
4499         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
4500
4501         * gutter.c (update_gutter_geometry):
4502         Mark frame layout changed.
4503         (update_frame_gutter_geometry, update_frame_gutters):
4504         Respect frame_layout_changed.
4505
4506         * console.h (struct console_methods): add
4507         clear_frame_toolbars_method.
4508
4509         * redisplay.c (redisplay_frame): call
4510         update_frame_toolbars_geometry and re-order update_frame_toolbars.
4511
4512         * toolbar.h: declare update_frame_toolbars_geometry.
4513
4514         * toolbar.c (update_frame_toolbars_geometry): new function. Split
4515         out from update_frame_toolbars.  Call clear_frame_toolbars.
4516         (update_frame_toolbars): only output, do not change geometry.
4517
4518         * redisplay.c: add frame_layout_changed.
4519
4520         * redisplay.h: add frame_layout_changed.
4521         (CLASS_RESET_CHANGED_FLAGS): set it.
4522         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
4523         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
4524         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
4525
4526         * device.h (struct device): add frame_layout_changed.
4527         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
4528
4529         * frame.h (struct frame): add frame_layout_changed.
4530         (MARK_FRAME_LAYOUT_CHANGED): new.
4531
4532 2002-06-30  Mike Alexander  <mta@arbortext.com>
4533
4534         * event-msw.c (mswindows_need_event): Don't wait for a new message
4535         if the queue is not empty.  Suggested by Paul Moore.
4536
4537 2002-06-12  Andy Piper  <andy@xemacs.org>
4538
4539         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
4540         for printing on accurately.
4541
4542 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
4543
4544         * event-msw.c (mswindows_wnd_proc): Add a handler for the
4545         WM_ACTIVATE message. Make sure that the frame is visible if the
4546         window is visible. This seemss to fix the problem where XEmacs
4547         appears to freeze after switching desktops with certain virtual
4548         window managers.
4549         (debug_output_mswin_message): Added code to output message
4550         parameters for WM_WINDOWPOSCHANGED, 
4551         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
4552
4553 2002-05-25  Andy Piper  <andy@xemacs.org>
4554
4555         * select-x.c (vars_of_select_x): Fix docstring of
4556         x-selection-strict-motif-ownership
4557
4558 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4559
4560         * keymap.c (get_keymap):
4561         Add comment about do_autoload GCPROs own args.
4562
4563 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4564
4565         * bytecode.c (execute_optimized_program): check_opcode ifdef
4566         ERROR_CHECK_BYTE_CODE.
4567
4568 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4569
4570         Thanks to Ben Wing and Michael Sperber.
4571
4572         * eval.c (Fcommand_execute):
4573         (Feval):
4574         (Ffuncall):
4575         (Fmacroexpand_internal):
4576         (function_argcount):
4577         callint.c (Fcall_interactively):
4578         Add comment about do_autoload GCPROs own args.
4579
4580         * (do_autoload): GCPRO both args as well as local Lisp_Object.
4581
4582         * eval.c (Ffuncall): Extra braces to placate GCC.
4583
4584 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
4585
4586         * backtrace.h (grow_specpdl):
4587         (SPECPDL_RESERVE):
4588         * EmacsFrame.c (EmacsFrameSetValues):
4589         * eval.c (grow_specpdl):
4590         * ExternalShell.c (hack_event_masks_1):
4591         * glyphs-x.c (convert_EImage_to_XImage): 
4592         (x_finalize_image_instance):
4593         * ralloc.c (page_size):
4594         (r_alloc_sbrk):
4595         * xgccache.c (gc_cache_hash):
4596         Fix unsigned comparison warnings.
4597
4598 2002-07-29  Jerry James  <james@xemacs.org>
4599
4600         * lread.c (locate_file): Any nonnegative return value indicates
4601         success if MODE is nonnegative.
4602
4603 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
4604
4605         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
4606         argument. 
4607
4608 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
4609
4610         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
4611
4612         * dumper.c (pdump_get_indirect_count):
4613         (pdump_scan_by_alignment):
4614         (pdump_dump_root_struct_ptrs):
4615         (pdump_dump_rtables):
4616         (pdump_dump_root_objects):
4617         (pdump):
4618         * nas.c (WaveOpenDataForReading):
4619         * fns.c (print_bit_vector):
4620         * font-lock.c (SINGLE_SYNTAX_STYLE):
4621         * glyphs.c (check_for_ignored_expose):
4622         (find_matching_subwindow):
4623         * glyphs-eimage.c:
4624         * imgproc.c (get_histogram):
4625         * redisplay.c (point_in_line_start_cache):
4626         * redisplay-output.c (redisplay_unmap_subwindows):
4627         * symbols.c (defsymbol_massage_name_1):
4628         (defkeyword_massage_name):
4629         (deferror_massage_name_and_message):
4630         * redisplay-x.c (x_output_string): 
4631         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
4632         * frame.h (struct frame):
4633         * filelock.c (current_lock_owner):
4634         * doprnt.c (emacs_doprnt_1):
4635         * lisp.h (struct Lisp_Bit_Vector):
4636         (DO_REALLOC):
4637         Fix warnings.
4638
4639 2002-02-13  Ben Wing  <ben@xemacs.org>
4640
4641         * event-stream.c (reset_key_echo):
4642         * event-stream.c (reset_this_command_keys):
4643         * event-stream.c (execute_command_event):
4644         If console is dead as a result of C-x 5 0, then post-command stuff
4645         needs to be careful and do only non-console-specific stuff.
4646
4647 2002-07-01  Mike Sperber <mike@xemacs.org>
4648
4649         * process-unix.c (unix_send_process): Mark coding_outstream as
4650         non-open upon SIGPIPE.
4651
4652         * event-stream.c (Fnext_event): Reorder switch cases to something
4653         that makes sense.
4654
4655 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
4656
4657         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
4658         Don't bogusly reinitialize ascii_character property.
4659
4660 2002-07-08  Mike Sperber <mike@xemacs.org>
4661
4662         * process.c (Fstart_process_internal): Do error checking before we
4663         fork off the child, so the child can't muck with the state of the
4664         parent.
4665
4666 2002-07-08  Mike Sperber <mike@xemacs.org>
4667
4668         * ralloc.c (init_ralloc): Allocate properly for pdump.
4669
4670 2002-06-12  Andy Piper  <andy@xemacs.org>
4671
4672         * glyphs.c (query_string_geometry): check the string.
4673
4674         * glyphs-widget.c (widget_logical_unit_height): cope with nil
4675         widget names.
4676
4677 2002-06-17  Jerry James  <james@xemacs.org>
4678
4679         * sysdll.c: Remove RTLD_GLOBAL initialization.
4680         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
4681
4682 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
4683
4684         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
4685
4686 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
4687
4688         * sysdep.c (sys_rename): Make sys_rename work for the case where
4689         Windows rename sets errno to EACCES if target file exists.
4690
4691 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
4692
4693         * device-msw.c (mswindows_handle_page_setup_dialog_box):
4694         Fix detection of metric units to work on Win95
4695
4696 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
4697
4698         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
4699
4700 2002-04-25  Andy Piper  <andy@xemacs.org>
4701
4702         * redisplay.c (create_text_block): Remove extra comment trailer.
4703
4704 2002-04-24  Andy Piper  <andy@xemacs.org>
4705
4706         * redisplay.c (create_text_block): Don't actually add propagation
4707         data if the line ends after we have added a glyph.
4708
4709 2002-04-22  Andy Piper  <andy@xemacs.org>
4710
4711         * extents.c (extent_fragment_update): check for glyphs we have
4712         previously displayed.
4713         * extents.c (print_extent_1): warning removal.
4714         * extents.h: change prototype.
4715         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
4716         widths correctly for wide glyphs.
4717         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
4718         * redisplay.c (prop_type): add PROP_GLYPH.
4719         * redisplay.c (struct prop_block): add glyph type
4720         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
4721         to the propagation data.
4722         * redisplay.c (create_text_block): if there is a glyph in the
4723         propagation data use it to salt extent_fragment_update.
4724         * redisplay.c (create_string_text_block): ditto.
4725
4726 2002-04-13  Nix  <nix@esperi.demon.co.uk>
4727
4728         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
4729         * redisplay-output.c (compare_runes): Compare them.
4730         * redisplay.c: Update copyright date.
4731         * redisplay.c (pos_data): Add need_baseline_computation field.
4732         * redisplay.c (add_glyph_rune): Update ascent, descent, and
4733         need_baseline_computation; zero yoffset. Set max_pixmap_height
4734         for all pixmaps, not just automatically positioned ones.
4735         * redisplay.c (calculate_yoffset): New, compute yoffset values.
4736         * redisplay.c (calculate_baseline): New, compute textual baseline.
4737         * redisplay.c (add_glyph_rune): Call them.
4738         * redisplay.c (create_text_block): Likewise.
4739         * redisplay.c (create_overlay_glyph_block): Likewise.
4740         * redisplay.c (add_margin_runes): Likewise.
4741         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
4742
4743         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
4744         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
4745         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
4746         * redisplay-msw.c (mswindows_output_string): Likewise.
4747         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
4748         * redisplay-gtk.c (gtk_output_display_block): Likewise.
4749         * redisplay-x.c (x_output_display_block): Likewise.
4750
4751 2002-03-28  Ben Wing  <ben@xemacs.org>
4752
4753         * redisplay.c: Fixed bug in redisplay
4754         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
4755         and down of the lines, since they're bigger than the line
4756         size. (It was seen most obviously when there's a horizontal scroll
4757         bar, e.g. do C-h a glyph or something like that.) The problem was
4758         that the glyph-contrib-p setting on glyphs was ignored even if it
4759         was set properly, which it wasn't until now.
4760
4761 2002-04-24  Andy Piper  <andy@xemacs.org>
4762
4763         * lisp.h (Dynarr_end): Fix definition.
4764
4765 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
4766
4767         * redisplay.c (mark_redisplay): Remove call to
4768         update_frame_window_mirror.
4769
4770 2001-11-15  Andy Piper  <andy@xemacs.org>
4771
4772         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
4773         cygwin (again).
4774
4775 2002-02-13  Andy Piper  <andy@xemacs.org>
4776
4777         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
4778         we did in fact enqueue the XM_MAPFRAME event.
4779
4780 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
4781
4782         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
4783         to fix problem switching between virtual desktops under virtuawin
4784         virtual window manager.
4785
4786 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
4787
4788         * event-msw.c: Typo fix.
4789         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
4790         magic XM_MAPFRAME event has been sent.
4791
4792 2001-11-23  Andy Piper  <andy@xemacs.org>
4793
4794         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
4795
4796 2001-11-21  Andy Piper  <andy@xemacs.org>
4797
4798         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
4799         mouse events outside the frame.
4800
4801 2002-03-20  Andy Piper  <andy@xemacs.org>
4802
4803         * menubar-msw.c (mswindows_popup_menu): warning removal.
4804         * dialog-msw.c (dialog_popped_down): ditto.
4805
4806 2001-12-11  Andy Piper  <andy@xemacs.org>
4807
4808         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
4809         * dialog-msw.c (mswindows_make_dialog_box_internal): set
4810         popup_up_p.
4811         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
4812         * menubar-msw.c (mswindows_handle_wm_command): ditto.
4813         * menubar-msw.c (mswindows_popup_menu): ditto.
4814
4815 2001-10-29  Andy Piper  <andy@xemacs.org>
4816
4817         * dialog-msw.c (handle_directory_dialog_box): quit if the user
4818         cancels.
4819
4820 2002-01-03  Andy Piper  <andy@xemacs.org>
4821
4822         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
4823         letters.
4824         (xrealpath): ditto.
4825
4826 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
4827
4828         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
4829         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
4830         * device-msw.c (mswindows_handle_page_setup_dialog_box):
4831         Detect and handle case where machine is set up for metric units
4832
4833 2002-04-02  Andy Piper  <andy@xemacs.org>
4834
4835         * dired-msw.c (mswindows_get_files): 
4836         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
4837         completely handled by XEmacs. Suggested by Thomas Vogler
4838         <mail@thomas-vogler.de>.
4839
4840 2001-11-14  Andy Piper  <andy@xemacs.org>
4841
4842         * nt.c (REG_ROOT): change registry key to XEmacs.
4843
4844 2002-04-27  Andy Piper  <andy@xemacs.org>
4845
4846         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
4847
4848 2002-04-26  Andy Piper  <andy@xemacs.org>
4849
4850         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
4851         behavior.
4852
4853 2002-03-14  Mike Alexander  <mta@arbortext.com>
4854
4855         * event-msw.c (mswindows_unwait_process): New, remove process from
4856         wait list
4857         * process-nt.c (nt_finalize_process_data): Call
4858         mswindows_unwait_process
4859         * console-msw.h: Declare mswindows_unwait_process
4860
4861 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
4862
4863         * editfns.c (Fdecode_time):
4864         (Fformat_time_string):
4865         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
4866         (make_time): Warning elimination (change arg name).
4867
4868 2001-11-24  Andy Piper  <andy@xemacs.org>
4869
4870         * window.c (Fsplit_window): Doc return type.
4871
4872 2002-04-01  Andy Piper  <andy@xemacs.org>
4873
4874         * emacs.c (Fkill_emacs): Only output message box in interactive
4875         mode.
4876
4877 2002-04-26  Andy Piper  <andy@xemacs.org>
4878  
4879         * config.h.in: pull in 21.5.x change to stop alloca warnings under
4880         cygwin.
4881
4882 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
4883
4884         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
4885         bit platform.
4886
4887 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
4888
4889         * XEmacs 21.4.8 "Honest Recruiter" is released.
4890
4891 2002-05-07  Nix  <nix@esperi.demon.co.uk>
4892
4893         Supersedes 2002-04-17 patch.
4894
4895         * process.h (PROCESS_LIVE_P): Use the process status as
4896         evidence of health, not the state of the input stream.
4897         (PROCESS_READABLE_P): Say if the process is readable
4898         from. (It may be dead nonetheless.)
4899         (CHECK_READABLE_PROCESS): Test for that condition.
4900
4901         * process.c (create_process): Use PROCESS_READABLE_P.
4902         (read_process_output, set_process_filter): Likewise.
4903
4904         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
4905         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
4906
4907         This code is #if 0'd, this is not the time to add new functions:
4908
4909         * process.c (Fprocess_readable_p): Report readability status.
4910         * process.c (Qprocess_readable_p): New, associated symbol...
4911         * process.c (syms_of_process): ... initialize it.
4912
4913 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
4914
4915         * XEmacs 21.4.7 "Economic Science" is released.
4916
4917 2002-04-17  Nix  <nix@esperi.demon.co.uk>
4918
4919         * process.h (PROCESS_LIVE_P): Use the process status as
4920         evidence of health, not the state of the input stream.
4921
4922 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
4923
4924         * sysdep.c (sys_siglist): change "signum" to "signal"
4925
4926 2001-04-21  Martin Buchholz  <martin@xemacs.org>
4927
4928         * s/darwin.h: New file.
4929         Thanks to Greg Parker <gparker@cs.stanford.edu>.
4930         
4931 2002-04-23  Andreas Jaeger  <aj@suse.de>
4932
4933         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
4934         which use lib64 for 64-bit libs.
4935         (START_FILES): Likewise.
4936
4937 2002-02-11  Mike Sperber  <mike@xemacs.org>
4938
4939         * device-x.c: 
4940         (x_IO_error_handler):
4941         (x_init_device): Temporarily keep device in static variable
4942         `device_being_initialized' so we can recover gracefully from
4943         internal XOpenDevice failure.  (XOpenDevice is documented to
4944         return NULL on failure, but sometimes calls the IO error handler
4945         instead.)
4946
4947 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
4948
4949         * dired.c (Ffile_name_all_completions): Change documentation --
4950         remove reference to completion-ignored-extensions.
4951         * dired.c (vars_of_dired): Change documentation for
4952         completion-ignored-extensions -- remove reference to
4953         file-name-all-completions.
4954
4955 2002-03-06  Jerry James  <james@xemacs.org>
4956
4957         * emodules.c (emodules_load): Fix multiple loading of same module.
4958
4959 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
4960         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
4961         RTLD_LAZY to avoid incorrect symbol binding when using nested
4962         shared libraries on Solaris.
4963
4964 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
4965
4966         * fileio.c (Ffind_file_name_handler): Improve docstring.
4967
4968 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
4969
4970         * fns.c (Fmapconcat): Improve docstring.
4971
4972 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
4973
4974         * device-gtk.c: Add prototype for
4975         emacs_gtk_selection_clear_event_handle.
4976         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
4977         selection.  Setup signal handler for "selection_clear_event"
4978         (emacs_gtk_selection_clear_event_handle).
4979
4980         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
4981         other applications owning the clipboard (based on
4982         x_handle_selection_clear).
4983
4984 2001-12-23  William M. Perry  <wmperry@gnu.org>
4985
4986         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
4987         
4988 2002-01-04  Martin Buchholz  <martin@xemacs.org>
4989
4990         * keymap.c (define_key_alternate_name): Parenthesize EQ.
4991
4992 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
4993
4994         * XEmacs 21.4.6 "Common Lisp" is released.
4995
4996 2001-12-16  Torsten Duwe  <duwe@caldera.de>
4997
4998         * search.c (Freplace_match): Add missing sub-expression functionality.
4999
5000         * buffer.c (decode_buffer): Add a check for pointer type to
5001         decode_buffer, before gcc's CSE optimization reorders a
5002         dereference in front of the allow_string test.
5003
5004 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5005
5006         * window.c (window_loop): Fix bug that sometimes prevented
5007         window_loop() from iterating across multiple devices.  Also, at
5008         Ben's request, changed infloop-detecting code to abort() instead
5009         of silently terminating window_loop().
5010
5011 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5012
5013         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5014         * editfns.c (make_time): New function.
5015         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5016         * lisp.h (make_time): Prototype and comment it.
5017         * dired.c (wasteful_word_to_lisp): Deprecate.
5018         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5019
5020 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5021
5022         * fileio.c (auto_save_1): Use current coding system, not
5023         escape-quoted.
5024
5025 2001-11-13  Ben Wing  <ben@xemacs.org>
5026
5027         * window.c:
5028         * window.c (window_truncation_on):
5029         * window.c (syms_of_window):
5030         truncate-partial-width-windows should respect the buffer being
5031         displayed, like other redisplay vars.
5032
5033 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5034
5035         * event-stream.c (Fread_key_sequence): save current buffer.
5036
5037 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5038
5039         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5040
5041 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5042
5043         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5044
5045 2001-10-26  Mike Alexander  <mta@arbortext.com>
5046
5047         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5048
5049 2001-10-25  Andy Piper  <andy@xemacs.org>
5050
5051         * ChangeLog:
5052         * dialog-msw.c (handle_directory_proc): new function.
5053          (handle_directory_dialog_box): new fucntion.
5054          (handle_file_dialog_box): use new directory dialog support.
5055          (mswindows_make_dialog_box_internal): ditto.
5056         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5057         handling.
5058         (mswindows_find_frame): make global.
5059         * fileio.c (Fexpand_file_name): build fix.
5060         * general-slots.h: add Qdirectory.
5061         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5062         handling.
5063         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5064         cygwin not leaving win32 paths unchanged.
5065         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5066         cygwin runtime to do path conversion.
5067         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5068         (syms_of_win32): add new function.
5069         * window.c (window_loop): build fix.
5070
5071 2001-10-15  Andy Piper  <andy@xemacs.org>
5072
5073         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5074
5075 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5076
5077         * XEmacs 21.4.5 "Civil Service" is released.
5078
5079 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5080
5081         * glyphs-x.c: Force buffer-tab highlight update when moving the
5082         buffer, avoiding an ugly black border, used for keyboard focus
5083         indication, on a widget that can never have keyboard focus, the
5084         buffer tab.
5085
5086 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5087
5088         * process-unix.c (unix_open_multicast_group): Remove too much
5089         conversion between host and network byte order.
5090
5091 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5092
5093         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5094         before replacing them.
5095
5096         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5097         operation.
5098
5099         * src/window.c (undedicate_windows): Use it.
5100         * src/window.h: Add prototype.
5101
5102 2001-09-17  Ben Wing  <ben@xemacs.org>
5103
5104         * fileio.c (normalize_filename):
5105         * fileio.c (Fexpand_file_name):
5106         Fix various C++ compile errors in Andy's recent code.
5107         
5108         * callint.c (Fcall_interactively):
5109         * editfns.c (Ftemp_directory):
5110         * editfns.c (Fuser_full_name):
5111         * emacs.c (argmatch):
5112         * lread.c (locate_file_map_suffixes):
5113         * redisplay-x.c (x_ring_bell):
5114         Fix sign-compare warnings.
5115         
5116 2001-09-08  Andy Piper  <andy@xemacs.org>
5117
5118         * fileio.c (normalize_filename): copied from nt.c
5119         * (Ffile_name_directory): enable win32 paths under cygwin.
5120         * (Ffile_name_nondirectory): ditto.
5121         * (directory_file_name): ditto.
5122         * (Fexpand_file_name): ditto.
5123         * (Ffile_truename): ditto.
5124         * (Fsubstitute_in_file_name): ditto.
5125         * (Ffile_name_absolute_p): ditto.
5126         * (Ffile_readable_p): ditto.
5127
5128 2001-09-08  Andy Piper  <andy@xemacs.org>
5129
5130         * device-msw.c (mswindows_finish_init_device): remove dde
5131         initialization.
5132         * device-msw.c (mswindows_init_dde): factor out from
5133         mswindows_finish_init_device()
5134         * device-msw.c (init_mswindows_very_early): new function
5135         initialize but don't enable dde.
5136         * emacs.c (main_1): call init_mswindows_very_early.
5137         * event-msw.c:
5138         * event-msw.c (mswindows_dde_callback): only execute when we are
5139         ready.
5140         * symsinit.h: declare init_mswindows_very_early.
5141
5142 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5143
5144         [sjt: This has been in 21.5 for months with no complaints.]
5145
5146         * console.h (struct console_methods): Added flags member.
5147         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5148         (CONMETH_IMPL_FLAG):
5149         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5150         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5151
5152         * device.c (window_system_pixelated_geometry): Use the above macros.
5153
5154         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5155         implememntation flag.
5156         * device.h (DEVICE_DISPLAY_P): Use it.
5157
5158         * frame.c (delete_frame_internal): Use the above macro.
5159
5160         * redisplay.c (redisplay_device): Use it.
5161         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5162         (redisplay_frame): Ditto.
5163
5164         * device-msw.c (mswindows_device_implementation_flags): Removed.
5165         (msprinter_device_implementation_flags): Removed.
5166         (console_type_create_device_mswindows): Removed references to
5167         implementation_flags methods, set implementation flags here.
5168         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5169
5170         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5171         (console_type_create_device_gtk): Removed method declaration.
5172         Added commented out statement which semantically matches the
5173         commented out statement in the above removed method.
5174
5175 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5176
5177         The attached patch fixes a few warnings. 
5178
5179         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5180         * src/frame-gtk.c: guard against GNOME calls in GTK only
5181         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5182         * src/select-gtk.c: prototype lisp_to_time
5183
5184 2001-06-08  Ben Wing  <ben@xemacs.org>
5185
5186         ------ gc-in-window-procedure fixes ------
5187         
5188         * alloc.c:
5189         * alloc.c (struct post_gc_action):
5190         * alloc.c (register_post_gc_action):
5191         * alloc.c (run_post_gc_actions):
5192         * alloc.c (garbage_collect_1):
5193         Create "post-gc actions", to avoid those dreaded "GC during window
5194         procedure" problems.
5195
5196         * event-msw.c:
5197         Abort, clean and simple, when GC in window procedure.  We want
5198         to flush these puppies out.
5199
5200         * glyphs-msw.c:
5201         * glyphs-msw.c (finalize_destroy_window):
5202         * glyphs-msw.c (mswindows_finalize_image_instance):
5203         Use a post-gc action when destroying subwindows.
5204
5205         * lisp.h:
5206         Declare register_post_gc_action().
5207
5208         * scrollbar-msw.c:
5209         * scrollbar-msw.c (unshow_that_mofo):
5210         Use a post-gc action when unshowing scrollbar windows, if in gc.
5211
5212         * redisplay.c (mark_redisplay):
5213         Add comment about the utter evilness of what's going down here.
5214
5215         ------ cygwin setitimer fixes ------
5216         
5217         * Makefile.in.in (sheap_objs):
5218         * Makefile.in.in (profile_objs):
5219         * Makefile.in.in (objs):
5220         Compile profile.c only when HAVE_SETITIMER.
5221         
5222         * nt.c (mswindows_sigset):
5223         * nt.c (mswindows_sighold):
5224         * nt.c (mswindows_sigrelse):
5225         * nt.c (mswindows_sigpause):
5226         * nt.c (mswindows_raise):
5227         * nt.c (close_file_data):
5228         Style fixes.
5229         
5230         * nt.c:
5231         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5232         
5233         * profile.c:
5234         * profile.c (Fstart_profiling):
5235         * profile.c (Fstop_profiling):
5236         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5237         instead of just plain setitimer().
5238         
5239         * signal.c:
5240         * signal.c (set_one_shot_timer):
5241         * signal.c (alarm):
5242         Define qxe_setitimer() as an encapsulation around setitimer() --
5243         call setitimer() directly unless Cygwin or MS Win, in which case
5244         we use our simulated version in win32.c.
5245         
5246         * systime.h:
5247         * systime.h (struct itimerval):
5248         * systime.h (ITIMER_REAL):
5249         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5250         comment about "qxe" and the policy regarding encapsulation.
5251
5252         * win32.c:
5253         * win32.c (setitimer_helper_proc):
5254         * win32.c (setitimer_helper_period):
5255         * win32.c (setitimer_helper):
5256         * win32.c (mswindows_setitimer):
5257         Move setitimer() emulation here, so Cygwin can use it.
5258         Rename a couple of functions and variables to be longer and more
5259         descriptive.  In setitimer_helper_proc(), send the signal
5260         using either mswindows_raise() or (on Cygwin) kill().  If for
5261         some reason we are still getting lockups, we'll change the kill()
5262         to directly invoke the signal handlers.
5263
5264         ------ windows shell fixes ------
5265         
5266         * callproc.c:
5267         * ntproc.c:
5268         Comments about how these two files must die.
5269
5270         * callproc.c (init_callproc):
5271         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5272         not just COMSPEC. (more correct and closer to FSF.) Don't
5273         force a value for SHELL into the environment. (Comments added
5274         to explain why not.)
5275         
5276         * nt.c (init_user_info):
5277         Don't shove a fabricated SHELL into the environment.  See above.
5278
5279 2001-06-01  Ben Wing  <ben@xemacs.org>
5280
5281         * Makefile.in.in (ldflags):
5282         eliminate that pesky "defaulting to 00401000" warning.
5283         * nt.h:
5284         eliminate warnings.
5285
5286 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5287
5288         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5289         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5290
5291 2001-04-24  Jerry James <james@xemacs.org>
5292
5293         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5294         correct order.
5295
5296 2001-06-01  Ben Wing  <ben@xemacs.org>
5297
5298         * event-msw.c (debug_mswin_messages):
5299         conditionalize the messages that were causing compile errors.
5300         (if only macros could generate #ifdef statements ...)
5301
5302 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5303
5304         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5305
5306 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5307
5308         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5309
5310 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5311
5312         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5313         * process-unix.c (unix_canonicalize_host_name):
5314         sysdep.c (init_system_name):
5315         Use it to conditionally support IPv6 canonicalization.
5316
5317 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5318
5319         * event-msw.c:
5320         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5321
5322 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5323
5324         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5325         attempt is made to scroll when no scroll bar is available.
5326
5327 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5328
5329         * input-method-motif.c (XIM_delete_frame): New callback.
5330         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5331         got deleted from 21.4.3.)
5332
5333 2001-06-01  Ben Wing  <ben@xemacs.org>
5334
5335         * nt.c (mswindows_utime):
5336         * nt.c (close_file_data):
5337         fix off-by-one-indirection error.
5338
5339 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5340
5341         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5342         because set_file_times() now takes Lisp_Object path, instead of
5343         char*.
5344         * nt.c: Include buffer.h.
5345         * nt.c (convert_from_time_t): New.
5346         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5347         not set mtime correctly.
5348         * nt.h: Declare mswindows_utime().
5349         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5350         path, instead of char*.
5351         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5352
5353 2001-05-30  Ben Wing  <ben@xemacs.org>
5354
5355         For 21.4:
5356
5357         (Stephen, just take all event-msw.c patches.  This includes
5358         the "iconify" fix below.)
5359
5360         * event-msw.c:
5361         * event-msw.c (mswindows_dequeue_dispatch_event):
5362         * event-msw.c (assert):
5363         * event-msw.c (emacs_mswindows_quit_p):
5364         * event-msw.c (debug_mswin_messages):
5365         * event-msw.c (debug_output_mswin_message):
5366         * event-msw.c (vars_of_event_mswindows):
5367         Fix yet more problems with C-g handling.
5368         Implement debug-mswindows-events.
5369         
5370 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5371
5372         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5373         
5374 2001-05-23  Ben Wing  <ben@xemacs.org>
5375
5376         * event-msw.c (winsock_writer):
5377         * event-msw.c (winsock_closer):
5378         prior kludgy code was clobbering the buffer, thinking it was
5379         "unused" space to store an unneeded return value; instead, use
5380         the variable we've already got staring us in the face.
5381
5382 2001-05-17  Andy Piper  <andy@xemacs.org>
5383
5384         * sysfile.h: don't assume that file attributes are boolean
5385
5386 2001-05-23  Ben Wing  <ben@xemacs.org>
5387
5388         * device-msw.c (msprinter_init_device):
5389         signal an error rather than crash with an unavailable network
5390         printer (from Mike Alexander).
5391         
5392         * event-msw.c:
5393         * event-msw.c (struct winsock_stream):
5394         * event-msw.c (winsock_writer):
5395         * event-msw.c (winsock_closer):
5396         * event-msw.c (make_winsock_stream_1):
5397         cleanup headers.  fix (hopefully) an error with data corruption
5398         when sending to a network connection.
5399
5400         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5401         to handle the ~user prefix by (a) always assuming we're referencing
5402         ourselves and not even verifying the user -- hence any file with
5403         a tilde as its first char is invalid! (b) if there wasn't a slash
5404         following the filename, the pointer was set *past* the end of
5405         file and we started reading from uninitialized memory.  Now we
5406         simply treat these as files, always.
5407
5408         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5409         
5410 2001-05-19  Ben Wing  <ben@xemacs.org>
5411
5412         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5413
5414         * process-nt.c:
5415         * process-nt.c (vars_of_process_nt):
5416         remove unused mswindows-quote-process-args.  rec for 21.4.
5417         
5418 2001-05-12  Ben Wing  <ben@xemacs.org>
5419
5420         * event-msw.c (mswindows_dde_callback):
5421         * event-msw.c (mswindows_wnd_proc):
5422         eliminate cygwin warnings.
5423
5424 2001-05-06  Ben Wing  <ben@xemacs.org>
5425
5426         * console-msw.h:
5427         * device-msw.c:
5428         * device-msw.c (print_dialog_worker):
5429         * device-msw.c (mswindows_handle_print_dialog_box):
5430         * device-msw.c (syms_of_device_mswindows):
5431         * dialog-msw.c (mswindows_make_dialog_box_internal):
5432         * general-slots.h:
5433         implement printing the selection when it's selected.
5434
5435 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
5436
5437         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5438
5439 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
5440
5441         * lisp.h (EMACS_INT_MAX): This should be one bit less since
5442         EMACS_INT is signed.
5443
5444 2001-04-15  Michael Lausch  <mla@1012surf.net>
5445
5446         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5447         gtk_widget_request_size() to give scrollbar >0 width for
5448         GTK >1.2.8.
5449
5450 2001-05-30  William M. Perry  <wmperry@gnu.org>
5451
5452         * event-gtk.c: Check for buttons as modifier keys.
5453
5454 2001-05-25  Craig Lanning  <CraigL@Knology.net>
5455
5456         * s\mingw32.h:
5457         Properly find MinGW's <process.h> inside Cygwin's restructured
5458         include directories.  Don't try to include <cygwin/version.h>
5459         since we are dropping support for MinGW in versions of Cygwin
5460         earlier than b21.
5461         * nt.c:
5462         Drop support for MinGW in versions of Cygwin before b21.
5463         * sysdep.c:
5464         Properly find MinGW's <process.h> inside Cygwin's restructured
5465         include directories.
5466         * syswindows.h:
5467         Drop support for MinGW in versions of Cygwin before b21.
5468         * unexcw.c:
5469         Even though a.out.h is no longer detected by configure, allow
5470         MinGW to use it until we figure out how to do the job with Win32.
5471
5472 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
5473
5474         * syntax.c (find_start_of_comment):
5475         Fix `unbalanced parentheses' bug when dealing with mixed comment
5476         styles in c++/java/etc. mode
5477
5478 2001-05-29  Mike Alexander  <mta@arbortext.com>
5479
5480         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5481         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5482
5483 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
5484
5485         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5486
5487 2001-03-31  Mike Sperber <mike@xemacs.org>
5488
5489         * search.c (Freplace_match): Support FSF-style specification of
5490         match subexpression when applied to a buffer.
5491
5492 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5493
5494         * event-stream.c (is_scrollbar_event): add missing semicolon
5495
5496 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
5497
5498         * Makefile.in.in: Use TAR macro instead of hardcoding
5499           tar.  Allows use of GNU tar instead of system tar
5500
5501 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5502
5503         * event-stream.c (is_scrollbar_event): add missing semicolon
5504
5505 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5506
5507         * XEmacs 21.4.3 "Academic Rigor" is released.
5508
5509 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5510
5511         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
5512
5513 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
5514
5515         * buffer.c (Vcase_fold_search): Remove obsolete
5516           comment about non ASCII case-fold-search.  This
5517           bug has been fixed by case-table changes.
5518
5519 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
5520
5521         * event-msw.c: Restore include of events-mod.h.
5522
5523 2001-04-22   zhaoway  <zw@debian.org>
5524
5525         * event-stream.c (is_scrollbar_event): Noop returning 0 if
5526         !HAVE_SCROLLBARS.
5527
5528 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
5529
5530         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
5531
5532 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
5533
5534         * mule-charset.c (Fmake_charset): Add missing else.
5535
5536 2001-04-23  Ben Wing  <ben@xemacs.org>
5537
5538         * event-msw.c (FAKE_MOD_QUIT):
5539         * event-msw.c (mswindows_dequeue_dispatch_event):
5540         * event-msw.c (mswindows_wnd_proc):
5541         * event-msw.c (emacs_mswindows_quit_p):
5542         Get critical quit working.
5543
5544 2001-05-05  Ben Wing  <ben@xemacs.org>
5545
5546         * console-msw.h:
5547         * device-msw.c:
5548         * device-msw.c (mswindows_get_default_margin):
5549         * frame-msw.c (mswindows_size_frame_internal):
5550         * frame-msw.c (msprinter_init_frame_1):
5551         * frame-msw.c (vars_of_frame_mswindows):
5552         Change top/bottom margin defaults to 0.5 inches.
5553
5554 2001-05-01  Martin Buchholz  <martin@xemacs.org>
5555
5556         Fix link error with gcc 3.0 on Linux.
5557         * terminfo.c (UP): Remove.
5558         * terminfo.c (BC): Remove.
5559         * terminfo.c (PC): Remove.
5560         They weren't used, and in any case, these symbols should be
5561         defined in the *library*.
5562
5563 2001-05-03  Martin Buchholz  <martin@xemacs.org>
5564
5565         * s/aix4.h: Fix crash with xlc -O3.
5566         Improve comment explaining how -O3 works.
5567
5568 2001-04-15  Ben Wing  <ben@xemacs.org>
5569
5570         * event-stream.c:
5571         * event-stream.c (Fnext_event):
5572         * event-stream.c (is_scrollbar_event):
5573         * event-stream.c (execute_command_event):
5574         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
5575         crash' problem.  His fix introduces other problems.  We filter
5576         out scrollbar events specifically, making them somewhat invisible
5577         to command-building, and not appearing in `this-command-keys'.
5578         More work is still needed (see comments in event-stream.c), but
5579         this fixes all the major problems.
5580
5581 2001-04-20  Ben Wing  <ben@xemacs.org>
5582
5583         * .cvsignore: Added stuff for Windows.
5584
5585 2001-04-28  Ben Wing  <ben@xemacs.org>
5586
5587         * buffer.c (Ferase_buffer):
5588         * editfns.c (buffer_insert1):
5589         * editfns.c (Finsert_before_markers):
5590         * editfns.c (Finsert_string):
5591         * editfns.c (Finsert_char):
5592         * editfns.c (Fdelete_region):
5593         * editfns.c (Fwiden):
5594         * editfns.c (Fnarrow_to_region):
5595         remove bogus lines setting zmacs_region_stays to 0.
5596         
5597 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5598
5599         * process-unix.c (unix_open_network_stream): If connect() fails
5600         invalidate file descriptor after closing it.
5601
5602 2001-03-08  Mike Alexander  <mta@arbortext.com>
5603
5604         * event-msw.c (mswindows_need_event_in_modal_loop):
5605         Don't dispatch a message if we didn't get one.
5606         (mswindows_need_event):
5607         Terminate the correct process when one exits instead of the first
5608         one on Vprocess_list and look for process termination when in
5609         mswindows_protect_modal_loop.
5610
5611 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
5612
5613         * XEmacs 21.4.1 "Copyleft" is released.
5614
5615 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5616
5617         * input-method-motif.c (XIM_delete_frame): New callback.
5618         (XIM_init_frame): Register it.
5619
5620 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
5621
5622         * XEmacs 21.4.0 "Solid Vapor" is released.
5623
5624 2001-04-15  Ben Wing  <ben@xemacs.org>
5625
5626         * cmdloop.c (call_command_loop):
5627         Fix braino in bit-rotting code.
5628         
5629 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
5630
5631         * extents.c (Fset_extent_endpoints): Force creation of extent info
5632         in buffer_or_string.
5633
5634         * extents.c (process_extents_for_insertion_mapper): Correctly
5635         check for open-open zero-length extents.
5636
5637 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
5638
5639         * lisp.h: New typedefs Memory_count, Element_count.
5640         * regex.c:
5641         * regex.h:
5642         Sign-compare warning elimination: several unsigned -> signed.
5643         Based on work by Ben Wing <ben@xemacs.org>.
5644
5645 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
5646
5647         * XEmacs 21.2.47 "Zephir" is released.
5648
5649 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
5650
5651         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
5652
5653 2001-04-03  Mike Sperber <mike@xemacs.org>
5654
5655         * search.c: Revert previous patch due because of release.
5656
5657 2001-03-30  Ben Wing  <ben@xemacs.org>
5658
5659         * s\cygwin32.h:
5660         Add missing killpg prototype.
5661
5662         * elhash.c:
5663         Add a comment about fixing problems when a new entry is added
5664         while mapping.
5665
5666         * frame-msw.c (mswindows_init_frame_1):
5667         Fix compile warnings.
5668
5669         * menubar.c (vars_of_menubar):
5670         Provide `menu-accelerator-support' to indicate that we properly
5671         support %_ in menu specifications, so that package code can
5672         conditionalize on this (and remove %_ from menu specifications
5673         on older versions).
5674
5675         * event-msw.c:
5676         * scrollbar-msw.c:
5677         * scrollbar-msw.c (can_scroll):
5678         * scrollbar-msw.h:
5679         Fix handling of mouse wheel under Windows to follow standards --
5680         now scrolls window under pointer, not selected window.
5681
5682 2001-03-31  Mike Sperber <mike@xemacs.org>
5683
5684         * search.c (Freplace_match): Support FSF-style specification of
5685         match subexpression when applied to a buffer.
5686
5687 2001-03-15  Martin Buchholz  <martin@xemacs.org>
5688
5689         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
5690         function to modify KEYMAP, so map over a copy of the hash table.
5691
5692 2001-03-21  Martin Buchholz <martin@xemacs.org>
5693
5694         * XEmacs 21.2.46 "Urania" is released.
5695
5696 2001-03-20  Dan Holmsand  <dan@eyebee.com>
5697
5698         * realpath.c (xrealpath): Make file-truename work with symlinks to
5699         /cygdrive paths on cygwin. Always lowercase drive-letters on
5700         native windows.
5701         (cygwin_readlink): Don't try to find canonical filename unless
5702         file exists.
5703
5704 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
5705
5706         * ChangeLog: Log GTK merge.
5707
5708         * dumper.c:
5709         * select-x.c:
5710         * specifier.c:
5711         * symeval.h:
5712         Revert gratuitous whitespace changes from GTK merge.
5713
5714         * emacs.c: Document end of complex #ifdef @ l. 1495.
5715
5716
5717 2001-03-12  Andy Piper  <andy@xemacs.org>
5718
5719         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
5720         have to do likewise.
5721
5722 2001-03-12  Andy Piper  <andy@xemacs.org>
5723
5724         * sysdep.c: we only support mingw now.
5725
5726 2001-03-09  Andy Piper  <andy@xemacs.org>
5727
5728         * unexcw.c (copy_executable_and_dump_data_section): making approx
5729         overrun a warning only.
5730
5731 2001-03-10  William M. Perry  <wmperry@aventail.com>
5732
5733         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
5734         satisfy Stephen's identical-after-cpp plea.
5735
5736 2001-03-02  Ben Wing  <ben@xemacs.org>
5737
5738         * cmds.c:
5739         * cmds.c (Fforward_char):
5740         * syntax.c:
5741         * window.c:
5742
5743         Augment documentation of the most common motion commands to make
5744         note of the shifted-motion support.
5745         
5746 2001-03-02  Ben Wing  <ben@xemacs.org>
5747
5748         * nt.c (mswindows_fstat):
5749         * nt.c (mswindows_stat):
5750         * search.c (boyer_moore):
5751         Fix compile warnings under Windows.
5752         
5753         * sysdep.c (sys_readdir):
5754         Fix buggy filename-conversion code under Mule.
5755
5756 2001-03-09  William M. Perry  <wmperry@aventail.com>
5757
5758         * Makefile.in.in:
5759         * config.h.in:
5760         * console.c:
5761         * console.h:
5762         * device.c:
5763         * device.h:
5764         * dragdrop.c:
5765         * emacs.c:
5766         * event-stream.c:
5767         * events.c:
5768         * events.h:
5769         * faces.c:
5770         * frame.h:
5771         * general-slots.h:
5772         * glyphs.c:
5773         * gutter.c:
5774         * inline.c:
5775         * lisp.h:
5776         * lrecord.h:
5777         * make-src-depend:
5778         * redisplay-output.c:
5779         * redisplay.c:
5780         * symsinit.h:
5781         * sysfile.h:
5782         * toolbar.c:
5783         * window.c:
5784         The Great GTK Merge.
5785
5786         * ChangeLog.GTK:
5787         * console-gtk.c:
5788         * console-gtk.h:
5789         * device-gtk.c:
5790         * emacs-marshals.c:
5791         * emacs-widget-accessors.c:
5792         * event-gtk.c:
5793         * frame-gtk.c:
5794         * gccache-gtk.c:
5795         * gccache-gtk.h:
5796         * glade.c:
5797         * glyphs-gtk.c:
5798         * glyphs-gtk.h:
5799         * gtk-glue.c:
5800         * gtk-xemacs.c:
5801         * gtk-xemacs.h:
5802         * gui-gtk.c:
5803         * gui-gtk.h:
5804         * menubar-gtk.c:
5805         * native-gtk-toolbar.c:
5806         * objects-gtk.c:
5807         * objects-gtk.h:
5808         * redisplay-gtk.c:
5809         * scrollbar-gtk.c:
5810         * scrollbar-gtk.h:
5811         * select-gtk.c:
5812         * toolbar-gtk.c:
5813         * ui-byhand.c:
5814         * ui-gtk.c:
5815         * ui-gtk.h:
5816         The Great GTK Merge: new files.
5817
5818 2001-02-26  Ben Wing  <ben@xemacs.org>
5819
5820         Reapplied Lstream change.
5821
5822 2001-02-26  Ben Wing  <ben@xemacs.org>
5823
5824         Undid the last change, since it is more controversial than I
5825         thought.  It should be back in at some point soon.
5826         
5827 2001-02-25  Ben Wing  <ben@xemacs.org>
5828
5829         * buffer.c:
5830         * callproc.c (Fold_call_process_internal):
5831         * event-msw.c (ntpipe_slurp_reader):
5832         * event-msw.c (ntpipe_shove_writer):
5833         * event-msw.c (winsock_reader):
5834         * event-msw.c (winsock_writer):
5835         * file-coding.c:
5836         * file-coding.c (detect_eol_type):
5837         * file-coding.c (detect_coding_type):
5838         * file-coding.c (determine_real_coding_system):
5839         * file-coding.c (Fdetect_coding_region):
5840         * file-coding.c (decoding_reader):
5841         * file-coding.c (decoding_writer):
5842         * file-coding.c (mule_decode):
5843         * file-coding.c (Fdecode_coding_region):
5844         * file-coding.c (encoding_reader):
5845         * file-coding.c (encoding_writer):
5846         * file-coding.c (mule_encode):
5847         * file-coding.c (Fencode_coding_region):
5848         * file-coding.c (detect_coding_sjis):
5849         * file-coding.c (decode_coding_sjis):
5850         * file-coding.c (encode_coding_sjis):
5851         * file-coding.c (detect_coding_big5):
5852         * file-coding.c (decode_coding_big5):
5853         * file-coding.c (encode_coding_big5):
5854         * file-coding.c (detect_coding_ucs4):
5855         * file-coding.c (decode_coding_ucs4):
5856         * file-coding.c (encode_coding_ucs4):
5857         * file-coding.c (detect_coding_utf8):
5858         * file-coding.c (decode_coding_utf8):
5859         * file-coding.c (encode_coding_utf8):
5860         * file-coding.c (detect_coding_iso2022):
5861         * file-coding.c (decode_coding_iso2022):
5862         * file-coding.c (encode_coding_iso2022):
5863         * file-coding.c (decode_coding_no_conversion):
5864         * file-coding.c (encode_coding_no_conversion):
5865         * glyphs-x.c (write_lisp_string_to_temp_file):
5866         * gpmevent.c (tty_get_foreign_selection):
5867         * lisp.h:
5868         * lstream.c:
5869         * lstream.c (Lstream_flush_out):
5870         * lstream.c (Lstream_adding):
5871         * lstream.c (Lstream_write_1):
5872         * lstream.c (Lstream_write):
5873         * lstream.c (Lstream_raw_read):
5874         * lstream.c (Lstream_read_more):
5875         * lstream.c (Lstream_read):
5876         * lstream.c (Lstream_unread):
5877         * lstream.c (Lstream_fputc):
5878         * lstream.c (stdio_reader):
5879         * lstream.c (stdio_writer):
5880         * lstream.c (filedesc_reader):
5881         * lstream.c (filedesc_writer):
5882         * lstream.c (lisp_string_reader):
5883         * lstream.c (struct fixed_buffer_stream):
5884         * lstream.c (make_fixed_buffer_input_stream):
5885         * lstream.c (make_fixed_buffer_output_stream):
5886         * lstream.c (fixed_buffer_reader):
5887         * lstream.c (fixed_buffer_writer):
5888         * lstream.c (struct resizing_buffer_stream):
5889         * lstream.c (resizing_buffer_writer):
5890         * lstream.c (dynarr_writer):
5891         * lstream.c (lisp_buffer_reader):
5892         * lstream.c (lisp_buffer_writer):
5893         * lstream.h:
5894         * lstream.h (lstream_implementation):
5895         * lstream.h (struct lstream):
5896         * md5.c (Fmd5):
5897         * process-nt.c (nt_send_process):
5898         * process-unix.c (unix_send_process):
5899         
5900         Correct Lstream lossage due to mixing of signed and unsigned
5901         quantities.  All Lstream uses of size_t and ssize_t are now a
5902         single signed data type Lstream_data_count.  This fixes problems
5903         under Windows with sending large quantities of data to a process,
5904         and may well fix other subtle bugs.
5905
5906 2001-02-23  Martin Buchholz <martin@xemacs.org>
5907
5908         * XEmacs 21.2.45 "Thelxepeia" is released.
5909
5910 2001-02-21  Martin Buchholz  <martin@xemacs.org>
5911
5912         * lisp-union.h (XSETINT): 
5913         (XSETCHAR):
5914         (XSETOBJ): 
5915         Reverse previous change of 2001-02-06.
5916
5917 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
5918
5919         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
5920         buffers.
5921         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
5922         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
5923         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
5924         * regex.c (POS_AS_IN_BUFFER): removed
5925         * regex.c (re_search_2):
5926         * regex.c (re_match_2):
5927         Don't use an offset of 1 when calculating buffer positions, since
5928         `BI_BUF_BEGV' does it already.
5929
5930 2001-02-18  Wim Dumon  <wim@easics.be>
5931
5932         * insdel.c (prepare_to_modify_buffer): Also check for
5933         supersession when clash-detection is enabled. 
5934
5935 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
5936
5937         * regex.c (re_match_2_internal):
5938         Convert temp characters from 'const unsigned char' to 're_char'.
5939         Fix crashing bug with extended characters under mule.
5940         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
5941         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
5942         font-lock, pdump, and new syntax-table code.
5943         * syntax.c (find_start_of_comment):
5944         (find_end_of_comment):
5945         (forward-comment):
5946         Fix crashing bugs involving moving beyond end of buffer.
5947         * syntax.c (find_start_of_comment):
5948         Fixed logic to allow proper detection of cases where the same
5949         character is used to end both a two-char comment start and a
5950         two-char comment end sequence. Fixes `(forward-comment -1)'.
5951         * syntax.c (find_start_of_comment):
5952         Return position just past last comment-end character for all cases
5953         (previously was only done for two-char comment-end sequences).
5954         * syntax.c (forward-comment):
5955         Take value returned from `find_end_of_comment', rather than
5956         incrementing it.
5957         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
5958         Properly deal with BUFFERP (syntax_cache.object)
5959
5960 2001-02-17  Martin Buchholz  <martin@xemacs.org>
5961
5962         * alloc.c (Fgarbage_collect): 
5963         * alloc.c (make_bit_vector_from_byte_vector):
5964         -Wsign-compare-correctness.
5965
5966 2001-02-16  Martin Buchholz  <martin@xemacs.org>
5967
5968         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
5969         (XSETCHAR): Likewise.
5970         (XSETOBJ): Likewise.
5971
5972 2001-02-15  Martin Buchholz  <martin@xemacs.org>
5973
5974         * mule-canna.c (canna-func-delete_previous): 
5975         Rename to canna-func-delete-previous.
5976
5977 2001-02-14  Martin Buchholz  <martin@xemacs.org>
5978
5979         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
5980
5981 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
5982
5983         * font-lock.c (find_context): Fix C++ compile errors introduced by
5984         recent patch
5985
5986 2001-02-13  Martin Buchholz  <martin@xemacs.org>
5987
5988         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
5989         pragma, but earlier ones barf on the same pragma.
5990
5991 2001-02-06  Mike Sperber <mike@xemacs.org>
5992
5993         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
5994         `configure-mule-lisp-directory'.
5995
5996 2001-02-12  Martin Buchholz  <martin@xemacs.org>
5997
5998         Make sure dump-id.c is compiled in the same way as other .c's.
5999         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6000         * dump-id.h: Remove.
6001         * emacs.c: Move dump-id.h into dumper.h.
6002         * dumper.h: Move dump-id.h into dumper.h.
6003         * Makefile.in.in:
6004         Use standard .c.o rule for building dump-id.o.
6005         Remove preprocessor flags from link command.
6006         Add dump-id.o to ${otherobjs} if PDUMP.
6007
6008 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6009
6010         Port FSF 20.7 syntax table improvements.
6011         * syntax.c.
6012         * syntax.h.
6013
6014         Fixups for new syntax table stuff.
6015         * dired.c: Include syntax.c.
6016         (Fdirectory_files): Initialize regex_match_object and
6017         regex_emacs_buffer.
6018         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6019         and Fget_char_property.
6020
6021         Use ported FSF 20.7 syntax table improvements.
6022         * font-lock.c.
6023         * regex.c.
6024         * search.c.
6025         
6026 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6027
6028         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6029         Unixware's enum boolean from sys/types.h.
6030
6031 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6032
6033         Fix support for building with latest Purify.
6034         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6035         (PURIFY_FLAGS): Likewise.
6036
6037 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6038
6039         * fileio.c (lisp_string_set_file_times): New.
6040         * fileio.c (Fcopy_file): Use it.
6041         Fixes bug:
6042         (copy-file filename non-ascii-filename t t)
6043         ==> No such file or directory, non-ascii-filename
6044
6045 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6046
6047         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6048         USHRT_MAX seems clearer than ~0 anyways.
6049
6050 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6051
6052         dumper improvements.  Inspired by Olivier.
6053         * dumper.c (pdump_max_align): New.
6054         * dumper.c (pdump_add_entry): Use pdump_max_align.
6055         * dumper.c (pdump_get_entry_list): Likewise.
6056         * dumper.c (pdump_scan_by_alignment): Likewise.
6057         Don't iterate through unnecessary alignments.
6058         * dumper.c (pdump_file_get): No need to align result of malloc().
6059         * dumper.c (pdump_mallocadr): Remove.  
6060         The result of malloc() is guaranteed to be maximally aligned.
6061         * dumper.c: s/elmt/elt/g;
6062         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6063         * dumper.c (pdump_alert_undump_object): Likewise.
6064         * dumper.c (pdump_align_table): 
6065         Don't support alignments > 64.
6066         Store ALIGNOF's, not shift counts, in table.
6067
6068 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6069
6070         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6071         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6072         * systime.h: Use HAVE_UTIME.
6073         * sysdep.c (struct utimbuf): Remove.
6074         * sysdep.c (set_file_times): Prefer utime() to utimes().
6075         * config.h.in (HAVE_UTIME): New.
6076         * config.h.in (HAVE_UTIME_H): Remove.
6077         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6078
6079 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6080
6081         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6082
6083 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6084
6085         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6086
6087 2001-02-08  Martin Buchholz <martin@xemacs.org>
6088
6089         * XEmacs 21.2.44 "Thalia" is released.
6090
6091 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6092
6093         Fixes crashes in kill-emacs on some systems.
6094         * process-unix.c (unix_kill_child_process):
6095         It's OK for kill() to fail with ESRCH.
6096
6097 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6098
6099         Contortions to make .gdbinit tricks work on most systems.
6100         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6101         * alloc.c (dbg_valmask): Make non-const.
6102         * alloc.c (dbg_typemask): Make non-const.
6103         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6104         * alloc.c (dbg_valbits): Make non-const.
6105         * alloc.c (dbg_gctypebits): Make non-const.
6106         * .gdbinit (decode_object): Make it work with AIX cc.
6107
6108 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6109
6110         * elhash.c (make_general_lisp_hash_table):
6111         Use simpler and more efficient calloc to clear entries.
6112
6113 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6114
6115         * window.c (window_scroll): Work around an AIX C compiler bug.
6116         Fixes 'scroll-up' does nothing problem with xlC.
6117
6118 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6119
6120         * .gdbinit: Remove obsolete comment.
6121
6122 2001-01-31  Mike Alexander  <mta@arbortext.com>
6123
6124         * select.c (Fown_selection_internal): Set owned_p for device
6125         method correctly.
6126
6127 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6128
6129         Port to g++ 2.97.
6130         "not" cannot be used as a macro name as it is an operator in C++
6131         * config.h.in: Stop #defining `not'.
6132         * chartab.c (check_category_char): not ==> not_p
6133         * chartab.h: Likewise.
6134         * regex.c (re_match_2_internal): Likewise.
6135
6136 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6137
6138         * lisp-disunion.h: Fix up comments.
6139
6140 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6141
6142         * keymap.c (define_key_check_and_coerce_keysym):
6143         (syms_of_keymap):
6144         Support mouse-6 and mouse-7 bindings in the obvious way.
6145
6146 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6147
6148         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6149
6150 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6151
6152         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6153         Previous patch missed DEFVAR_INT_MAGIC.
6154         Make sure future DEFVAR_foo use correct types.
6155         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6156         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6157         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6158         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6159         * (DEFVAR_INT): Likewise.
6160         * redisplay.c (vertical_clip): Should be of type Fixnum.
6161         * redisplay.c (horizontal_clip): Likewise.
6162         * lisp.h (dump_add_opaque_int): New.
6163         (dump_add_opaque_fixnum): New.
6164
6165 2001-01-29  Andy Piper  <andy@xemacs.org>
6166
6167         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6168         since they can be eval'ed
6169
6170 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6171
6172         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6173         Oops, XEmacs redefines `class'.  Use `typename' instead.
6174
6175 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6176
6177         * dumper.c: Fix C++ compile errors.
6178
6179 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6180
6181         * tparam.c: Use correct prototypes.
6182
6183 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6184
6185         * sysproc.h: #include util.h for NetBSD's openpty.
6186
6187 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6188
6189         More 64-bit correctness.
6190         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6191         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6192         Fix up comments.
6193         This finally finishes the 64-bit SGI port.
6194         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6195         * symbols.c: Fix up comments and type casts.
6196         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6197         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6198         * symeval.h (Fixnum): New type.
6199         * symeval.h (symbol_value_type): Fix up comment.
6200
6201         * commands.h:
6202         * nt.c:
6203         * emacs.c:
6204         * data.c:
6205         * redisplay.c:
6206         * abbrev.c:
6207         * dired-msw.c:
6208         * event-Xt.c:
6209         * eldap.c:
6210         * window.c:
6211         * sound.c:
6212         * event-stream.c:
6213         * eval.c:
6214         * buffer.c:
6215         * mule-canna.c: A million DEFVAR_INTs here...
6216         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6217         * extents.c:
6218         * cmdloop.c:
6219         * lisp.h:
6220         * select-x.c:
6221         * console-x.h:
6222         * event-msw.c:
6223         * mule-wnnfns.c:
6224         * hpplay.c:
6225         * ralloc.c:
6226         * alloc.c:
6227         * keymap.c:
6228         * profile.c:
6229         s/int/Fixnum/g in DEFVAR_INT declarations.
6230
6231 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6232
6233         Port pdump to SGI alignment-sensitive environment.
6234         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6235         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6236         properly aligned.
6237         Define and use aligned reading and writing macros.
6238         Use buffered stdio instead of posix i/o for faster dumping.
6239         Eliminate kludgy 256 byte space for header.
6240         Read and write from dump file using structs for alignment safety.
6241         * dumper.c (pdump_align_stream): New.
6242         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6243         * dumper.c (PDUMP_READ_ALIGNED): New.
6244         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6245         * dumper.c (pdump_static_Lisp_Object): New struct.
6246         * dumper.c (pdump_static_pointer): New struct.
6247         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6248         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6249         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6250         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6251
6252         * dumper.c (pdump_backtrace):
6253         * dumper.c (pdump_get_indirect_count):
6254         * dumper.c (pdump_register_object):
6255         * dumper.c (pdump_register_struct):
6256         * dumper.c (pdump_reloc_one):
6257         * dumper.c (pdump_scan_by_alignment):
6258         * dumper.c (pdump_dump_from_root_struct_ptrs):
6259         * dumper.c (pdump_dump_opaques):
6260         * dumper.c (pdump_dump_rtables):
6261         * dumper.c (pdump_dump_from_root_objects):
6262         * dumper.c (pdump):
6263         * dumper.c (pdump_load_finish):
6264         Use aligned reading and writing.
6265
6266         * dumper.c (pdump_free): Make static.
6267         * dumper.c (pdump_hFile): Likewise.
6268         * dumper.c (pdump_hMap): Likewise.
6269
6270 2001-01-26  Martin Buchholz <martin@xemacs.org>
6271
6272         * XEmacs 21.2.43 "Terspichore" is released.
6273
6274 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6275
6276         Type fiddling for window_config.saved_windows_count
6277         * window.c (struct window_config): 
6278         Make saved_windows_count member unsigned.
6279         * window.c (sizeof_window_config_for_n_windows): 
6280         Make parameter unsigned.
6281         * window.c (mark_window_config):
6282         * window.c (window_config_equal):
6283         * window.c (free_window_configuration):
6284         * window.c (Fset_window_configuration):
6285         * window.c (count_windows):
6286         * window.c (Fcurrent_window_configuration):
6287         * window.c (reinit_vars_of_window):
6288         Update all callers and users.
6289
6290 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6291
6292         Alignment correctness for flexible arrays.
6293         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6294         Make alignment-correct. Add interesting comments.
6295         * alloc.c (size_vector):
6296         * alloc.c (make_vector_internal):
6297         * alloc.c (make_bit_vector_internal):
6298         * alloc.c (sweep_bit_vectors_1):
6299         * fns.c (size_bit_vector):
6300         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6301         * window.c (sizeof_window_config_for_n_windows): 
6302         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6303
6304 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6305
6306         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6307
6308 2001-01-23  Andy Piper  <andy@xemacs.org>
6309
6310         * select.c (Fown_selection_internal): pass owned_p
6311
6312         * select-msw.c (mswindows_own_selection): New Signature.
6313
6314         * console.h (struct console_methods): add owned_p to
6315         _own_selection.
6316
6317         * select-x.c (x_own_selection): pass owned_p
6318         (hack_motif_clipboard_selection): use owned_p
6319         (vars_of_select_x): new variable -
6320         x_selection_strict_motif_ownership.
6321
6322 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6323
6324         * specifier.h (specifier_data_offset): Remove pointless parens.
6325         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6326
6327 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6328
6329         Make Lisp_Object sizeof methods be alignment-correct.
6330         pdump must restore objects to the same alignment as the C compiler
6331         assumes.  It really matters on SGIs.
6332         * lstream.c (aligned_sizeof_lstream): New.
6333         (sizeof_lstream): Use aligned_sizeof_lstream.
6334         (Lstream_new): Likewise.
6335         * opaque.c (aligned_sizeof_opaque): New.
6336         (sizeof_opaque): Use aligned_sizeof_opaque.
6337         (make_opaque): Likewise.
6338         * specifier.c (aligned_sizeof_specifier): New.
6339         (sizeof_specifier): Use aligned_sizeof_specifier.
6340         (make_specifier_internal): Likewise.
6341
6342 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6343
6344         * lstream.h (struct lstream): Use max_align_t for trailing data.
6345         * specifier.h (struct Lisp_Specifier): Likewise.
6346
6347 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6348
6349         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6350         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6351         (CCL_SUSPEND): Likewise.
6352         (CCL_INVALID_CMD): Likewise.
6353         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6354         (ccl_driver): Likewise.
6355         (CCL_WRITE_CHAR): Macro hygiene.
6356         (CCL_WRITE_STRING): Macro hygiene.
6357
6358 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6359
6360         Port "portable" dumper to SunOS 4 and HP-UX.
6361         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6362         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6363         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6364
6365 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6366
6367         * lisp.h (ALIGNOF): A better definition for C++.
6368
6369 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6370
6371         Macro hygiene.
6372         Fix printf warnings: int format, long int arg.
6373         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6374         (PUSH_FAILURE_POINT): Use correct printf formats.
6375         (POP_FAILURE_POINT): Use correct printf formats.  
6376         Use do {...} while (0)
6377
6378 2001-01-20  Martin Buchholz <martin@xemacs.org>
6379
6380         * XEmacs 21.2.42 "Poseidon" is released.
6381
6382 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6383
6384         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6385
6386 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6387
6388         De-kludgify FIXED_TYPE free list frobbing.
6389         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6390         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6391         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6392         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6393         * alloc.c (LRECORD_FREE_P): New.
6394         * alloc.c (MARK_LRECORD_AS_FREE): New.
6395         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6396         * alloc.c (STRUCT_FREE_P): Deleted.
6397         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6398         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6399         * alloc.c (STRING_CHARS_FREE_P): New.
6400         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6401         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6402         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6403         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6404         * alloc.c (resize_string): Use new definitions.
6405         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6406         * alloc.c (verify_string_chars_integrity): Use new definitions.
6407         * alloc.c (compact_string_chars): Use new definitions.
6408         * alloc.c: Update monster comments.
6409         * lrecord.h (lrecord_type): Add some new lrecord types for
6410         alloc.c's use.
6411
6412 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6413
6414         Improve alignment hackery.
6415         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6416         (max_align_t): Moved from opaque.h - general purpose.
6417         (ALIGN_PTR): Use size_t, not long.
6418         * opaque.h (max_align_t): Move to lisp.h.
6419
6420 2001-01-18  Norbert Koch  <nk@LF.net>
6421
6422         * gui.h: Fix and add prototypes to fix build problems.
6423
6424 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6425
6426         temacs is going away, so `dump-temacs' is now a bad name.
6427         * .dbxrc (dump-temacs): Rename to `dmp'.
6428         * .gdbinit (dump-temacs): Rename to `dmp'.
6429
6430 2001-01-17  Andy Piper  <andy@xemacs.org>
6431
6432         * glyphs.c (print_image_instance): comment to make martin happy.
6433
6434         * glyphs-x.c (x_redisplay_widget): update faces after a frame
6435         change.
6436
6437         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6438         activation.
6439         (mswindows_tab_control_redisplay): warning suppression.
6440
6441         * glyphs-widget.c (widget_update): re-write to cope with updated
6442         items.
6443         (widget_instantiate): use new gui_item functions.
6444         (tab_control_update): deleted.
6445         (progress_gauge_update): deleted.
6446         (image_instantiator_progress_guage): take out update reference.
6447         (image_instantiator_tree_view): ditto.
6448         (image_instantiator_tab_control): ditto.
6449
6450         * gui.c (widget_gui_parse_item_keywords): new function. Do things
6451         Right the new way.
6452         (gui_item_add_keyval_pair): re-write to cope with descriptors and
6453         return whether anything was changed.
6454         (update_gui_item_keywords): as it sounds.
6455
6456         * gui.h: declare widget_gui_parse_item_keywords.
6457
6458         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6459         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6460
6461 2001-01-17  Martin Buchholz <martin@xemacs.org>
6462
6463         * XEmacs 21.2.41 "Polyhymnia" is released.
6464
6465 2001-01-16  Didier Verna  <didier@xemacs.org>
6466
6467         * glyphs.c (image_instantiate): don't use fallbacks when
6468         instantiating a face's background pixmap by inheritance.
6469
6470 2001-01-14  Mike Sperber <mike@xemacs.org>
6471
6472         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6473         Conditionalize accordingly.
6474
6475 2001-01-16  Martin Buchholz  <martin@xemacs.org>
6476
6477         * dumper.c (pdump_file_get): Fix a compiler warning.
6478
6479 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6480
6481         Make Purify happy when pdumping.
6482         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6483         iniitalizing all bits of new lisp object memory.
6484         * symbols.c (Fmake_local_variable): Likewise.
6485         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6486         * symbols.c (Fdefvaralias): Likewise.
6487         * mule-charset.c (vars_of_mule_charset): Likewise.
6488
6489 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6490         Add the `-nd' flag when running pre-dump operations under the debugger.
6491         * .dbxrc (run-temacs): Add `-nd'.
6492         * .dbxrc (update-elc): Likewise.
6493         * .dbxrc (dump-temacs): Likewise.
6494         * .gdbinit (run-temacs): Likewise.
6495         * .gdbinit (check-temacs): Likewise.
6496         * .gdbinit (update-elc): Likewise.
6497         * .gdbinit (dump-temacs): Likewise.
6498
6499 2001-01-14  Martin Buchholz  <martin@xemacs.org>
6500
6501         Allow building 64-bit executables on AIX with GNU malloc, e.g.
6502         export OBJECT_MODE=64
6503         configure --pdump --use-union-type=no
6504         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
6505         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
6506
6507         * miscplay.c (sndcnv8U_2mono):
6508         Avoid two uses of `++' in the same expression.
6509         Suppresses a GCC warning.
6510
6511 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6512
6513         Make sure future compilers don't miscompile alloc.c.
6514         * alloc.c:
6515         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
6516         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
6517
6518 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6519
6520         * dumper.c: A little post-pdump-rename comment fixup.
6521
6522 2001-01-09  Jerry James  <james@eecs.ku.edu>
6523
6524         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
6525
6526 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6527
6528         * *.[ch]: Globally rename symbols using the following `pdump-rename'
6529         script:
6530         #!/bin/sh
6531         replace_symbol () {
6532           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
6533         }
6534
6535         replace_symbol pdump_wire_lists pdump_weak_object_chains
6536         replace_symbol pdump_wire_list dump_add_weak_object_chain
6537
6538         replace_symbol pdump_wires pdump_root_objects
6539         replace_symbol pdump_wire dump_add_root_object
6540
6541         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
6542         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
6543
6544         replace_symbol dumpstructinfos pdump_root_struct_ptrs
6545         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
6546         replace_symbol dumpstructinfo pdump_root_struct_ptr
6547         replace_symbol dumpstruct dump_add_root_struct_ptr
6548
6549         replace_symbol dumpopaque dump_add_opaque
6550         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
6551         replace_symbol dumpopaqueinfos pdump_opaques
6552         replace_symbol dumpopaqueinfo pdump_opaque
6553
6554         replace_symbol nb_structdump nb_root_struct_ptrs
6555         replace_symbol nb_opaquedump nb_opaques
6556
6557         replace_symbol align_table pdump_align_table
6558         replace_symbol dump_header pdump_header
6559
6560         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
6561         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
6562
6563
6564 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6565
6566         * s/aix4.h: Keep the C for AIX compiler from overaggressively
6567         optimizing bytecount_to_charcount().
6568
6569 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
6570
6571         * config.h.in:
6572         (HAVE_DLFCN_H): Removed.
6573         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
6574
6575 2001-01-06  Martin Buchholz  <martin@xemacs.org>
6576
6577         Portable dumper maintainability improvements.
6578         * alloc.c (staticpro):
6579         * alloc.c (staticpro_nodump):
6580         * alloc.c (garbage_collect_1):
6581         * alloc.c (reinit_alloc_once_early):
6582         * alloc.c (init_alloc_once_early):
6583         * alloc.c: Move dumper functions to alloc.c.
6584         * dumper.c (pdump_backtrace):
6585         * dumper.c (pdump_dump_structs):
6586         * dumper.c (pdump_dump_opaques):
6587         * dumper.c (pdump_dump_rtables):
6588         * dumper.c (pdump_dump_wired):
6589         * dumper.c (pdump):
6590         * dumper.c (pdump_load_check):
6591         * dumper.c (pdump_load_finish):
6592         * dumper.c (pdump_file_unmap):
6593         * dumper.c (pdump_file_get):
6594         * dumper.c (pdump_resource_free):
6595         * dumper.c (pdump_resource_get):
6596         * dumper.c (pdump_file_free):
6597         * dumper.c (pdump_file_try):
6598         * dumper.c (pdump_load):
6599         Remove fixed size limits on staticpro(), staticpro_nodump(),
6600         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
6601         Remove custom code for dumping lrecord_implementations_table - use
6602         dumpopaque instead.
6603         Remove (most of the) custom code for dumping staticpros - dump it
6604         like any other dynarr.
6605
6606         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
6607         * dumper.c: Moved functions from alloc.c.
6608         * alloc.c (dumpstruct): Moved to dumper.c.
6609         * alloc.c (dumpopaque): Likewise.
6610         * alloc.c (pdump_wire): Likewise.
6611         * alloc.c (pdump_wire_list): Likewise.
6612
6613         * lisp.h (Dynarr_sizeof): New.
6614         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
6615         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
6616         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
6617
6618         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
6619         * lisp.h (dumpopaque): ditto.
6620         * lisp.h (pdump_wire): ditto.
6621         * lisp.h (pdump_wire_list): ditto.
6622
6623 2001-01-09  Martin Buchholz  <martin@xemacs.org>
6624
6625         * make-src-depend (PrintPatternDeps):
6626         Use `sort' to make output independent of perl version.
6627
6628 2001-01-08  Martin Buchholz  <martin@xemacs.org>
6629
6630         Port to Netbsd 1.5.
6631         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
6632         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
6633
6634 2001-01-03  Didier Verna  <didier@xemacs.org>
6635
6636         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
6637         that `focus_frame' is alive before thinking of calling
6638         `redisplay_redraw_cursor' on it.
6639
6640 2001-01-08  Martin Buchholz <martin@xemacs.org>
6641
6642         * XEmacs 21.2.40 is released.
6643
6644 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
6645
6646         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
6647
6648 2001-01-06  Martin Buchholz  <martin@xemacs.org>
6649
6650         * alloc.c (dbg_valmask): Make const.
6651         * alloc.c (dbg_typemask): Make const.
6652         * alloc.c (dbg_USE_UNION_TYPE): Make const.
6653         * alloc.c (dbg_valbits): Make const.
6654         * alloc.c (dbg_gctypebits): Make const.
6655
6656 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
6657
6658         * redisplay-x.c (x_bevel_area):
6659         redisplay.h (struct rune):
6660         Typo fixes in comments.
6661
6662 2001-01-05  Andy Piper  <andy@xemacs.org>
6663
6664         * glyphs-x.c (x_redisplay_widget): use size changed for offset
6665         adjustment.
6666
6667         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
6668
6669 2001-01-05  Martin Buchholz  <martin@xemacs.org>
6670
6671         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
6672
6673         * mule-ccl.c (stack_idx_of_map_multiple):
6674         Non const global data must not be initialized!
6675         Found by MIYASHITA Hisashi.
6676
6677 2001-01-02  Andy Piper  <andy@xemacs.org>
6678
6679         * frame.c (change_frame_size): make sure frame size is always
6680         marked as changed.
6681
6682         * glyphs.c (image_instance_layout): minor code reuse.
6683
6684         * window.c (Fcurrent_window_configuration): revert previous
6685         change.
6686
6687 2001-01-02  Martin Buchholz  <martin@xemacs.org>
6688
6689         * glyphs.h:
6690         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
6691
6692 2000-12-31  Andy Piper  <andy@xemacs.org>
6693
6694         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
6695         when widget gets unmapped.
6696
6697         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
6698         function. Make sure widgets losing focus don't just drop it.
6699         (handle_focus_event_1): record the widget with focus.
6700
6701 2000-12-31  Andy Piper  <andy@xemacs.org>
6702
6703         * window.c (allocate_window): use
6704         make_image_instance_cache_hash_table.
6705         (make_dummy_parent): ditto.
6706         (Fset_window_configuration): ditto.
6707
6708         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
6709
6710         * glyphs.c (process_image_string_instantiator): use
6711         INSTANTIATOR_TYPE.
6712         (get_image_instantiator_governing_domain): ditto.
6713         (normalize_image_instantiator): ditto.
6714         (instantiate_image_instantiator): ditto.
6715         (make_image_instance_1): ditto.
6716         (image_instantiate): ditto. Key on glyph *and* instantiator type.
6717         (instantiator_eq_equal): new function for use with instance hash
6718         tables.
6719         (instantiator_eq_hash): ditto.
6720         (make_image_instance_cache_hash_table): create a suitable hash
6721         table for storing image instances.
6722
6723         * elhash.h (hash_table_weakness): new internal weakness type
6724         HASH_TABLE_KEY_CAR_VALUE_WEAK.
6725         declare new functions.
6726
6727         * elhash.c (finish_marking_weak_hash_tables): introduce yet
6728         another weakness type for glyphs.
6729         (make_standard_lisp_hash_table): new function split out from
6730         make_general_lisp_hash_table.
6731         (make_lisp_hash_table): call make_standard_lisp_hash_table.
6732         (hash_table_instantiate): ditto.
6733         (Fmake_hash_table): ditto.
6734
6735 2000-12-31  Martin Buchholz <martin@xemacs.org>
6736
6737         * XEmacs 21.2.39 is released.
6738
6739 2000-12-29  Andy Piper  <andy@xemacs.org>
6740
6741         * menubar.c (menubar_visible_p_changed): signal the frame changed.
6742
6743         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
6744         the frame has changed so that we pick up geometry changes such as
6745         menubar visibility.
6746
6747 2000-12-28  Andy Piper  <andy@xemacs.org>
6748
6749         * lastfile.c (my_ebss): make a char array so we can pad the
6750         bss. Fixes cygwin unexec.
6751
6752         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
6753
6754 2000-12-26  Andy Piper  <andy@xemacs.org>
6755
6756         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
6757         comments and try and be more precise about a non-/SIGIO world.
6758         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
6759         SIGIO.
6760
6761         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
6762         we don't normalize to zero width or height.
6763
6764 2000-12-24  Andy Piper  <andy@xemacs.org>
6765
6766         * Makefile.in.in (ldflags): add -mwindows when appropriate.
6767
6768 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
6769
6770         * s/sco5.h: SCO 5 has pty support.
6771
6772 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
6773
6774         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
6775         input-method-xlib.c contains whole contents of input-method-xfs.c,
6776         so we can use input-method-xlib.c's code for USE_XFONTSET
6777         using #ifdefs.
6778         * input-method-xfs.c: removed.
6779
6780 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
6781
6782         * file-coding.h (enum coding_category_type): reorder enumerators to
6783         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
6784         (now one greater than largest real coding_category_type enumerator).
6785         * file-coding.c (coding_category_symbol, coding_category_by_priority,
6786         coding_category_system, fcd_descriptihon_1, decode_coding_category,
6787         Fcoding_category_list, Fset_coding_priority_list,
6788         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
6789         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
6790
6791 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
6792
6793         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
6794         * redisplay-output.c (redisplay_output_window): Clear top of window
6795         when face is changed.
6796         * redisplay-x.c (x_redraw_exposed_window): Call
6797         redisplay_clear_top_of_window.
6798         * redisplay.h: Publish redisplay_clear_top_of_window.
6799
6800 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
6801
6802         * buffer.c (Fkill_buffer): Map over all devices.
6803         * window.c (window_loop): Remove UNSHOW_BUFFER code.
6804         (list_windows): New function.
6805         (list_all_windows): Ditto.
6806         (Freplace_buffer_in_windows): Use them.
6807
6808 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6809
6810         * database.c (berkdb_subtype): Recognize new subtype `queue'.
6811         (Fopen_database): Use `db_create' instead of `db_open'.
6812         (syms_of_database): Initialize Qqueue.
6813
6814 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
6815
6816         * buffer.c (common_init_complex_vars_of_buffer): Initialize
6817         buffer_local_face_property.
6818         * buffer.h (struct buffer): New member buffer_local_face_property.
6819         * window.c (Fset_window_buffer):  Mark window's face as changed
6820         when buffer has buffer local face.
6821         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
6822         * objects.c (color_after_change): Set buffer_local_face_property
6823         when locale of face specifier is buffer.
6824         * objects.c (font_after_change): Ditto.
6825         * objects.c (face_boolean_after_change): Ditto.
6826         * glyphs.c (image_after_change): Ditto.
6827
6828 2000-12-09  Dan Holmsand  <dan@eyebee.com>
6829
6830         * nt.c (mswindows_fstat): Report file permissions, volume serial
6831         number, etc. Code adapted from FSF Emacs 20.7.
6832
6833 2000-12-09  Dan Holmsand  <dan@eyebee.com>
6834
6835         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
6836         of stat when we don't have symbolic links, to make sure
6837         mswindows_stat is called on mswindows.
6838
6839 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6840
6841         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
6842
6843 2000-12-12  Martin Buchholz  <martin@xemacs.org>
6844
6845         * doprnt.c (emacs_doprnt_1): More printing fixes.
6846         Make printing of numbers compatible with libc and FSF Emacs.
6847         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
6848         Use the system printf to do most of the hard work of formatting,
6849         instead of doprnt_1().
6850         Calculate memory to allocate for format string.
6851         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
6852         (doprnt_1): Cleaner code and documentation.
6853
6854 2000-12-01  Jerry James  <james@eecs.ukans.edu>
6855
6856         * Makefile.in.in: Use the loop variable to install headers.
6857
6858 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
6859
6860         * window.c (Fsplit_window): Don't invalidate face cache.
6861
6862 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
6863
6864         * minibuf.c (Fall_completions): Undo the previous change
6865         which removed checking elements start with space.
6866
6867 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
6868
6869         * mule-canna.c: Didier suppression.
6870
6871 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
6872
6873         * mule-canna.c: rename static unsigned char buf[] to key_buffer
6874         (warning suppression).  Add English comment translations.
6875
6876 2000-12-05  Martin Buchholz  <martin@xemacs.org>
6877
6878         * unexelfsgi.c (unexec): Better test for mmap failure.
6879
6880 2000-12-05  Martin Buchholz <martin@xemacs.org>
6881
6882         * XEmacs 21.2.38 is released.
6883
6884 2000-12-05  Martin Buchholz  <martin@xemacs.org>
6885
6886         * redisplay.c (bar-cursor): Make a user variable.
6887
6888         * symsinit.h: Add init_postgresql_from_environment.
6889
6890 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
6891
6892         * regex.c: Convert to clean C.
6893
6894 2000-12-05  Dan Holmsand  <dan@eyebee.com>
6895
6896         * realpath.c:
6897         Don't #include sysfile.h. Revert to duplicating PATH_MAX
6898         initialization.
6899         (sys_readlink): renamed to system_readlink to avoid conflict with
6900         the other sys_readlink.
6901
6902 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
6903
6904         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
6905
6906 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
6907
6908         * postgresql.c (init_postgresql_from_environment): new function.
6909         (vars_of_postgresql): Move code initializing Lisp variables out and
6910         into init_postgresql_from_environment.
6911         emacs.c (main_1): Call init_postgresql_from_environment if and only
6912         if running a dumped XEmacs.
6913
6914 2000-08-31  Dan Holmsand  <dan@eyebee.com>
6915
6916         * buffer.c: Make find-file-compare-truenames default to true on
6917         windows.
6918
6919         * realpath.c (win32_abs_start):
6920         (cygwin_readlink):
6921         (win32_readlink): New functions.
6922         (xrealpath): Return really real filenames on windows.
6923
6924         * fileio.c (Ffile_truename): Make file-truename work on windows.
6925
6926 2000-11-29  Didier Verna  <didier@xemacs.org>
6927
6928         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
6929         * faces.c (update_face_cachel_data): use it.
6930         * faces.c (add_face_cachel): use it. Complete background pixmap
6931         frobbing in face cache if `update_face_cachel_data' has not done so.
6932
6933 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
6934
6935         * search.c (string_match_1): Don't set last_thing_searched
6936         when search failed.
6937
6938 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
6939
6940         * buffer.c: Include casetab.h
6941         (common_init_complex_vars_of_buffer): Use new case-table object.
6942         * buffer.h: Include casetab.h
6943         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
6944         (DOWNCASE_TABLE_OF): Ditto.
6945         * bufslots.h: Remove char-tables and add case-table.
6946         * casetab.c: Include casetab.h
6947         (CASE_TABLE_P): Removed.
6948         (mark_case_table): New function.
6949         (allocate_case_table): New function.
6950         (Fcase_table_p): Use new case-table.
6951         (case_table_char): New function.
6952         (Fget_case_table): Ditto.
6953         (Fput_case_table): Ditto.
6954         (Fput_case_table_pair): Ditto.
6955         (Fcopy_case_table): Ditto.
6956         (Fcurrent_case_table): Return case-table.
6957         (Fstandard_case_table): Return case-table.
6958         (Fset_case_table): Fix doc-string.
6959         (set_case_table): Use case-table
6960         (syms_of_casetab): DEFSUBR new functions.
6961         (complex_vars_of_casetab): Set up standard case-table.
6962         * casetab.h: New file.
6963         * editfns.c: Include casetab.h
6964         (Fcompare_buffer_substrings): Use case-table.
6965         * inline.c: Include casetab.h
6966         * lisp.h: Remove bogus extern.
6967         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
6968         * search.c: Include casetab.h
6969         (TRANSLATE_ASCII): Removed.
6970         (TRANSLATE): Unconditionally translate character.
6971         (looking_at_1): Use case-table.
6972         (string_match_1): Ditto.
6973         (fast_string_match): Ditto.
6974         (search_command): Ditto.
6975         (search_buffer): Separate boyer_moore.  Check whether
6976         boyer_moore is possible.
6977         (simple_search): New function.
6978         (boyer_moore): Separated from search_buffer. Translate char.
6979
6980 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
6981
6982         * regex.c (RE_TR_ASCII): Removed.
6983         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
6984         (PATFETCH): Call PATFETCH_RAW.
6985         (PATFETCH_RAW): Fetch Emchar.
6986         (PATUNFETCH): Decrement charptr.
6987         (GET_BUFFER_SPACE): Rename b to buf_end.
6988         (BUF_PUSH): Ditto.
6989         (BUF_PUSH_2): Ditto.
6990         (BUF_PUSH_3): Ditto.
6991         (EXTEND_BUFFER): Ditto.
6992         (SET_LIST_BIT): Ditto.
6993         (regex_compile): Ditto.  Translate non ASCII char.
6994         (compile_range): Ditto.
6995         (re_search_2): Ditto.
6996         (re_match_2_internal): Compare Emchar.
6997         (bcmp_translate): Ditto.
6998
6999 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7000
7001         * lisp.h (basic char/int typedefs):  comment improvement.
7002
7003 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7004
7005         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7006         unstomp inhibit_site_lisp.  Improve comments.
7007
7008 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7009
7010         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7011
7012 2000-11-28  Andy Piper  <andy@xemacs.org>
7013
7014         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7015         clipped display for windows in the gutter also.
7016         (redisplay_display_boxes_in_window_p): change semantics of return
7017         codes to be more intuitive.
7018
7019         * gutter.h: declare display_boxes_in_gutter_p.
7020
7021         * gutter.c (display_boxes_in_gutter_p): new function for
7022         redisplay.
7023
7024 2000-11-22  Andy Piper  <andy@xemacs.org>
7025
7026         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7027         autodetect domain.
7028
7029 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7030
7031         * callproc.c (Fold_call_process_internal):
7032         * gpm.c (Freceive_gpm_event):
7033         (tty_get_foreign_selection): Might be just warning supression.
7034         * fileio.c (Fwrite_region_internal):
7035         (Fset_visited_file_modtime):
7036         * keymap.c (event_matches_key_specifier_p):
7037         Initialize GCPROed variable.
7038
7039         * menubar-x.c (command_builder_find_menu_accelerator):
7040         Initialize before use.
7041
7042 2000-11-23  Andy Piper  <andy@xemacs.org>
7043
7044         * unexcw.c (unexec): make the resulting executable executable.
7045
7046 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7047
7048         * doc.c (get_doc_string):
7049         Use size_t, not int, for result of XSTRING_LENGTH.
7050
7051         * cmds.c (Fdelete_char):
7052         * cmds.c (Fpoint_at_eol):
7053         * cmds.c (Fself_insert_command):
7054         Use EMACS_INT, not int, for result of XINT.
7055         Someday, someone will want to insert more than 2**31 identical characters.
7056
7057         * cmds.c (Fdelete_char):
7058         * cmds.c (Fdelete_backward_char):
7059         * syntax.c (Fforward_word):
7060         * syntax.c (Fforward_comment):
7061         Make COUNT argument optional, for consistency with forward-char et al.
7062
7063 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7064
7065         * lisp.h:
7066         * print.c (long_to_string):
7067         Return a useful value: the pointer at end of data written.
7068
7069         * doprnt.c:
7070         Use `static const char * const' for constant strings.
7071         (union printf_arg): Delete `i', `ui' members.
7072         (get_doprnt_args):
7073         (emacs_doprnt_1):
7074         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7075         Do all printf-ing via the `l' specifier.
7076         Use EMACS_INT instead of int.
7077         Optimize.
7078
7079 2000-11-20  Didier Verna  <didier@xemacs.org>
7080
7081         * faces.c (update_face_cachel_data): don't frob the background
7082         pixmap when the window is being created. The face is needed but
7083         does not exist yet.
7084
7085 2000-11-20  Andy Piper  <andy@xemacs.org>
7086
7087         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7088         messing with a debug environment.
7089
7090 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7091
7092         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7093
7094 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7095
7096         * casetab.c (Fcase_table_p): Fix compile error and crash.
7097
7098 2000-11-18  Philip Aston  <philipa@mail.com>
7099
7100         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7101
7102 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7103
7104         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7105         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7106
7107 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7108
7109         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7110         * unexelf.c: Use HAVE_ELF_H.
7111         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7112         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7113         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7114         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7115         for testing.
7116         So this is an unexelfsgi.c from a different line of development.
7117
7118 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7119
7120         * regex.c (RE_TR_ASCII): New function.
7121         (RE_TRANSLATE): Call it.
7122
7123 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7124
7125         * buffer.h (TRT_TABLE_OF): Remove assert.
7126         (IN_TRT_TABLE_DOMAIN): Removed.
7127
7128 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7129
7130         * free-hook.c (log_gcpro):
7131         (show_gcprohist): Add support for GCPRO5.
7132
7133 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7134
7135         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7136
7137 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7138
7139         * symeval.h: Declare flush_all_buffer_local_cache.
7140
7141         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7142         (flush_buffer_local_cache): Added.
7143         (flush_all_buffer_local_cache): Added.
7144
7145         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7146
7147         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7148         (pdump_dump_data): Ditto.
7149         (pdump_reloc_one): Ditto.
7150         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7151         before dumping.
7152
7153
7154 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7155
7156         * buffer.c: Remove if 0'ed entry.
7157         * buffer.h: Rewrite TRT to use char-table.
7158         * bufslots.h: Remove mirror tables.
7159         * casetab.c: Remove mirror tables.
7160         (CASE_TABLE_P): New macro.
7161         (Fcase_table_p): Element of a case table is string or char-table.
7162         (make_mirror_trt_table): Removed.
7163         (set_case_table): Setup char-table from strings for backward
7164         compatibility.
7165         * dired.c (Fdirectory_files):
7166         * dired-msw.c: (mswindows_get_files):
7167         * lisp.h: Change prototype of re_pattern_buffer.
7168         * regex.c: (RE_TRANSLATE): New macro.
7169         (TRANSLATE_P): Ditto.
7170         Change translate to type RE_TRANSLATE_TYPE.
7171         * regex.h: Define RE_TRANSLATE_TYPE
7172         * search.c (TRANSLATE): New macro.
7173         (TRANSLATE_ASCII): New macro.
7174         Translate table is changed to Lisp_Object.
7175         (signal_failure): Inhibit return.
7176
7177 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7178
7179         * device-msw.c:
7180         * eldap.c:
7181         * event-Xt.c:
7182         * event-stream.c:
7183         * print.c:
7184         Do UNGCPRO before return.
7185
7186 2000-11-14  Martin Buchholz <martin@xemacs.org>
7187
7188         * XEmacs 21.2.37 is released.
7189
7190 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7191
7192         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7193         Add comments about discarded return value.
7194
7195 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7196
7197         * callint.c:
7198         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7199
7200 2000-10-27  Andy Piper  <andy@xemacs.org>
7201
7202         * gutter.c (Fset_default_gutter_position): default left and right
7203         gutters to visible.
7204         (calculate_gutter_size): calculate resonable heuristic for left
7205         and right gutter sizes.
7206         (specifier_vars_of_gutter): change left and right gutter sizes to
7207         autodetect.
7208         (calculate_gutter_size_from_display_lines): new function.
7209         (output_gutter): check for resizing on left and right gutters.
7210         (clear_gutter): don't special case top and left gutters.
7211         (specifier_vars_of_gutter): use new signature for
7212         set_specifier_caching.
7213
7214         * glyphs-x.c (x_redisplay_widget): spelling fix.
7215         * glyphs.c (specifier_vars_of_glyphs):
7216         * menubar.c (specifier_vars_of_menubar):
7217         * redisplay.c (specifier_vars_of_redisplay):
7218         * toolbar.c (specifier_vars_of_toolbar):
7219         * window.c (specifier_vars_of_window):
7220         * scrollbar.c (specifier_vars_of_scrollbar):
7221         (complex_vars_of_scrollbar): use new signature for
7222         set_specifier_caching.
7223
7224         * specifier.c (set_specifier_caching): include recompute flag.
7225         (recompute_one_cached_specifier_in_window): always recompute if
7226         flag set.
7227         (recompute_one_cached_specifier_in_frame): ditto.
7228
7229         * specifier.h (struct specifier_caching): add recompute flag.
7230
7231 2000-10-24  Andy Piper  <andy@xemacs.org>
7232
7233         * unexcw.c (copy_executable_and_dump_data_section): add new
7234         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7235         5.0 happy.
7236
7237 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7238
7239         * console-x.h (x_device): New member modifier_release_time.
7240         * event-Xt.c (x_handle_sticky_modifiers):
7241         Bound interval modifier keys are sticky.
7242         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7243         * events.h: extern it.
7244
7245 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7246
7247         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7248
7249 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7250
7251         * event-stream.c (execute_command_event): Preserve current_events
7252         and the like when event is misc-user-event.
7253         Inhibit quit during the call to maybe_echo_keys.
7254
7255 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7256
7257         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7258         symlink when buffer is killed.
7259         (inhibit_clash_detection): New variable.
7260
7261 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7262
7263         * console.c (Fset_input_method): Trigger redisplay on tty.
7264
7265 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7266
7267         * process.c (Fprocess_status): Revert to previous behavior:
7268         (process-status "nosuchprocess") ==> nil
7269
7270 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7271
7272         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7273         Work around another GCC 2.95.2 optimizer bug.
7274
7275 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7276
7277         * process.c (Fget_process): Use LIST_LOOP_2.
7278         (kill_buffer_processes): Use LIST_LOOP_2.
7279
7280         * minibuf.c (Fall_completions):
7281         Delete old non-functional code for FSF fourth argument.
7282
7283         * frame.c (frame_matches_frame_spec):
7284         Renamed from `frame_matches_frametype'.  Update all callers.
7285         (device_matches_device_spec):
7286         Renamed from 'device_matches_console_spec'.  Update all callers.
7287
7288         * doc.c (Fsubstitute_command_keys):
7289         Remove buffer overflow crash.  Small code cleanups.
7290
7291         * casetab.c (check_case_table): Simpler code.
7292
7293         * window.c (Freplace_buffer_in_windows):
7294         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7295         (and similar implementation) as Fdelete_windows_on.
7296         Update all callers.
7297
7298         * alloc.c (Fmake_list):
7299         * alloc.c (make_vector):
7300         * alloc.c (Fmake_vector):
7301         * alloc.c (make_bit_vector):
7302         * alloc.c (Fmake_bit_vector):
7303         * alloc.c (Fbit_vector):
7304         * alloc.c (Fmake_string):
7305         * alloc.c (Fpurecopy):
7306         * alloc.c (Fmemory_limit):
7307         * buffer.c:
7308         * buffer.c (Fget_buffer):
7309         * buffer.c (Fkill_buffer):
7310         * buffer.c (complex_vars_of_buffer):
7311         * bytecode.c (Fcompiled_function_stack_depth):
7312         * callint.c (Fprefix_numeric_value):
7313         * event-stream.c:
7314         * event-stream.c (Fread_key_sequence):
7315         * casetab.c:
7316         * casetab.c (Fcase_table_p):
7317         * casetab.c (check_case_table):
7318         * casetab.c (Fset_case_table):
7319         * casetab.c (Fset_standard_case_table):
7320         * chartab.c:
7321         * chartab.c (Fchar_table_type):
7322         * chartab.c (Freset_char_table):
7323         * chartab.c (Fget_char_table):
7324         * chartab.c (Fget_range_char_table):
7325         * chartab.c (Fput_char_table):
7326         * chartab.c (Fmap_char_table):
7327         * chartab.c (Fcategory_table_p):
7328         * chartab.c (Fcheck_category_at):
7329         * chartab.c (Fchar_in_category_p):
7330         * chartab.c (Fcategory_table):
7331         * chartab.c (Fcopy_category_table):
7332         * chartab.c (Fset_category_table):
7333         * chartab.c (Fcategory_designator_p):
7334         * chartab.c (Fcategory_table_value_p):
7335         * cmds.c (Fdelete_char):
7336         * cmds.c (Fdelete_backward_char):
7337         * cmds.c (Fself_insert_command):
7338         * cmds.c (Fself_insert_internal):
7339         * console.c (Fvalid_console_type_p):
7340         * console.c (Fcdfw_console):
7341         * console.c (Fconsole_type):
7342         * console.c (Fconsole_name):
7343         * console.c (Fconsole_device_list):
7344         * console.c (Fconsole_on_window_system_p):
7345         * data.c:
7346         * data.c (Feq):
7347         * data.c (Fold_eq):
7348         * data.c (Fsubr_interactive):
7349         * data.c (Fchar_to_int):
7350         * data.c (Fint_to_char):
7351         * data.c (Fsetcar):
7352         * data.c (Fsetcdr):
7353         * data.c (Fnumber_to_string):
7354         * data.c (Fstring_to_number):
7355         * data.c (Frem):
7356         * database.c (mark_database):
7357         * database.c (finalize_database):
7358         * database.c (Fdatabase_live_p):
7359         * database.c (Fdatabasep):
7360         * device-x.c (Fx_get_resource):
7361         * device.c (Fdfw_device):
7362         * dired.c:
7363         * dired.c (Ffile_name_completion):
7364         * dired.c (Ffile_name_all_completions):
7365         * dired.c (Fuser_name_completion):
7366         * dired.c (Fuser_name_completion_1):
7367         * dired.c (Fuser_name_all_completions):
7368         * doc.c (Fdocumentation):
7369         * doc.c (Fdocumentation_property):
7370         * doc.c (Fsubstitute_command_keys):
7371         * editfns.c:
7372         * editfns.c (Fchar_to_string):
7373         * editfns.c (Fstring_to_char):
7374         * editfns.c (Ftemp_directory):
7375         * editfns.c (Finsert_char):
7376         * editfns.c (Fbuffer_substring_no_properties):
7377         * editfns.c (Fnarrow_to_region):
7378         * editfns.c (Fchar_equal):
7379         * editfns.c (Fchar_Equal):
7380         * editfns.c (Ftranspose_regions):
7381         * emacs.c (Fdump_emacs):
7382         * eval.c (Fthrow):
7383         * eval.c (Fcommand_execute):
7384         * eval.c (Fautoload):
7385         * eval.c (Fbacktrace):
7386         * eval.c (Fbacktrace_frame):
7387         * events.c:
7388         * events.c (Fcopy_event):
7389         * events.c (Fcharacter_to_event):
7390         * events.c (Fevent_button):
7391         * events.c (Fevent_process):
7392         * extents.c:
7393         * extents.c (Fnext_extent_change):
7394         * extents.c (Fextent_property):
7395         * faces.c (Ffacep):
7396         * faces.c (Fmake_face):
7397         * file-coding.c:
7398         * file-coding.c (Fencode_shift_jis_char):
7399         * file-coding.c (Fencode_big5_char):
7400         * fileio.c (Ffile_name_directory):
7401         * fileio.c (Ffile_name_nondirectory):
7402         * fileio.c (Ffile_name_as_directory):
7403         * fileio.c (Fdirectory_file_name):
7404         * fileio.c (Ffile_truename):
7405         * fileio.c (Fsubstitute_in_file_name):
7406         * fileio.c (Ffile_modes):
7407         * fileio.c (Fset_file_modes):
7408         * fileio.c (Fset_default_file_modes):
7409         * fileio.c (Fverify_visited_file_modtime):
7410         * floatfns.c (Facos):
7411         * floatfns.c (Fasin):
7412         * floatfns.c (Fatan):
7413         * floatfns.c (Fcos):
7414         * floatfns.c (Fsin):
7415         * floatfns.c (Ftan):
7416         * floatfns.c (Fbessel_j0):
7417         * floatfns.c (Fbessel_j1):
7418         * floatfns.c (Fbessel_jn):
7419         * floatfns.c (Fbessel_y0):
7420         * floatfns.c (Fbessel_y1):
7421         * floatfns.c (Fbessel_yn):
7422         * floatfns.c (Ferf):
7423         * floatfns.c (Ferfc):
7424         * floatfns.c (Flog_gamma):
7425         * floatfns.c (Fexp):
7426         * floatfns.c (Fexpt):
7427         * floatfns.c (Flog):
7428         * floatfns.c (Flog10):
7429         * floatfns.c (Fsqrt):
7430         * floatfns.c (Fcube_root):
7431         * floatfns.c (Facosh):
7432         * floatfns.c (Fasinh):
7433         * floatfns.c (Fatanh):
7434         * floatfns.c (Fcosh):
7435         * floatfns.c (Fsinh):
7436         * floatfns.c (Ftanh):
7437         * floatfns.c (Fabs):
7438         * floatfns.c (Ffloat):
7439         * floatfns.c (Flogb):
7440         * floatfns.c (Fceiling):
7441         * floatfns.c (Ffloor):
7442         * floatfns.c (Fround):
7443         * floatfns.c (Ftruncate):
7444         * floatfns.c (Ffceiling):
7445         * floatfns.c (Fffloor):
7446         * floatfns.c (Ffround):
7447         * floatfns.c (Fftruncate):
7448         * fns.c (Fstring_equal):
7449         * fns.c (Fstring_lessp):
7450         * fns.c (concat2):
7451         * fns.c (concat3):
7452         * fns.c (vconcat2):
7453         * fns.c (vconcat3):
7454         * fns.c (Fsubstring):
7455         * fns.c (Fassoc):
7456         * fns.c (Fold_assoc):
7457         * fns.c (assoc_no_quit):
7458         * fns.c (Fassq):
7459         * fns.c (Fold_assq):
7460         * fns.c (assq_no_quit):
7461         * fns.c (Frassoc):
7462         * fns.c (Fold_rassoc):
7463         * fns.c (Frassq):
7464         * fns.c (Fold_rassq):
7465         * fns.c (rassq_no_quit):
7466         * fns.c (Fremassoc):
7467         * fns.c (remassoc_no_quit):
7468         * fns.c (Fremassq):
7469         * fns.c (remassq_no_quit):
7470         * fns.c (Fremrassoc):
7471         * fns.c (Fremrassq):
7472         * fns.c (remrassq_no_quit):
7473         * fns.c (Fsort):
7474         * fns.c (Fplist_get):
7475         * fns.c (Fplist_put):
7476         * fns.c (Fplist_remprop):
7477         * fns.c (Fplist_member):
7478         * fns.c (Flax_plist_get):
7479         * fns.c (Flax_plist_put):
7480         * fns.c (Flax_plist_remprop):
7481         * fns.c (Flax_plist_member):
7482         * fns.c (Fequal):
7483         * fns.c (Fold_equal):
7484         * fns.c (Frequire):
7485         * fns.c (Fbase64_encode_region):
7486         * fns.c (Fbase64_encode_string):
7487         * fns.c (Fbase64_decode_region):
7488         * frame.c:
7489         * frame.c (frame_matches_frame_spec):
7490         * frame.c (device_matches_device_spec):
7491         * frame.c (next_frame):
7492         * frame.c (previous_frame):
7493         * frame.c (Fnext_frame):
7494         * frame.c (Fprevious_frame):
7495         * frame.c (Fframe_property):
7496         * frame.c (Fset_frame_height):
7497         * frame.c (Fset_frame_size):
7498         * frame.h:
7499         * glyphs.c:
7500         * glyphs.c (if):
7501         * glyphs.c (decode_error_behavior_flag):
7502         * glyphs.c (Fmake_image_instance):
7503         * indent.c (Findent_to):
7504         * intl.c (Fignore_defer_gettext):
7505         * keymap.c (Fkeymapp):
7506         * keymap.c (Flookup_key):
7507         * lread.c:
7508         * lread.c (Fload_internal):
7509         * lread.c (Feval_buffer):
7510         * lread.c (Feval_region):
7511         * macros.c (Fexecute_kbd_macro):
7512         * marker.c (set_marker_internal):
7513         * marker.c (Fset_marker):
7514         * marker.c (set_marker_restricted):
7515         * marker.c (Fcopy_marker):
7516         * marker.c (noseeum_copy_marker):
7517         * menubar.c:
7518         * menubar.c (Fpopup_menu):
7519         * minibuf.c:
7520         * mule-charset.c (Fcharset_name):
7521         * mule-charset.c (Fchar_charset):
7522         * mule-charset.c (Fchar_octet):
7523         * mule-charset.c (Fsplit_char):
7524         * mule-wnnfns.c (Fwnn_open):
7525         * mule-wnnfns.c (Fwnn_dict_comment):
7526         * mule-wnnfns.c (Fwnn_quit_henkan):
7527         * mule-wnnfns.c (Fwnn_word_toroku):
7528         * mule-wnnfns.c (Fwnn_word_sakujo):
7529         * mule-wnnfns.c (Fwnn_word_use):
7530         * mule-wnnfns.c (Fwnn_hindo_set):
7531         * objects.c:
7532         * objects.c (Fmake_color_instance):
7533         * objects.c (Fmake_font_instance):
7534         * print.c (Fwrite_char):
7535         * process.c:
7536         * process.c (mark_process):
7537         * process.c (print_process):
7538         * process.c (get_process_from_usid):
7539         * process.c (Fprocessp):
7540         * process.c (Fprocess_live_p):
7541         * process.c (Fget_process):
7542         * process.c (Fget_buffer_process):
7543         * process.c (get_process):
7544         * process.c (Fprocess_id):
7545         * process.c (Fprocess_name):
7546         * process.c (Fprocess_command):
7547         * process.c (init_process_io_handles):
7548         * process.c (start_process_unwind):
7549         * process.c (Fstart_process_internal):
7550         * process.c (Fopen_multicast_group_internal):
7551         * process.c (Fset_process_window_size):
7552         * process.c (read_process_output):
7553         * process.c (send_process):
7554         * process.c (Fprocess_tty_name):
7555         * process.c (Fset_process_buffer):
7556         * process.c (Fprocess_buffer):
7557         * process.c (Fprocess_mark):
7558         * process.c (set_process_filter):
7559         * process.c (Fset_process_filter):
7560         * process.c (Fprocess_filter):
7561         * process.c (Fprocess_send_region):
7562         * process.c (Fprocess_send_string):
7563         * process.c (exec_sentinel):
7564         * process.c (Fset_process_sentinel):
7565         * process.c (Fprocess_sentinel):
7566         * process.c (status_notify):
7567         * process.c (Fprocess_status):
7568         * process.c (Fprocess_exit_status):
7569         * process.c (process_send_signal):
7570         * process.c (Fprocess_send_eof):
7571         * process.c (deactivate_process):
7572         * process.c (remove_process):
7573         * process.c (Fdelete_process):
7574         * process.c (kill_buffer_processes):
7575         * process.c (Fprocess_kill_without_query):
7576         * process.c (Fprocess_kill_without_query_p):
7577         * rangetab.c:
7578         * rangetab.c (Fget_range_table):
7579         * rangetab.c (Fput_range_table):
7580         * rangetab.c (Fremove_range_table):
7581         * rangetab.c (Fclear_range_table):
7582         * search.c:
7583         * search.c (Fskip_chars_forward):
7584         * search.c (Fskip_chars_backward):
7585         * search.c (Fskip_syntax_forward):
7586         * search.c (Fskip_syntax_backward):
7587         * search.c (search_command):
7588         * search.c (Freplace_match):
7589         * search.c (Fregexp_quote):
7590         * select.c (Fown_selection_internal):
7591         * select.c (Fselection_owner_p):
7592         * select.c (Fselection_exists_p):
7593         * select.c (Fget_selection_internal):
7594         * specifier.c:
7595         * symbols.c:
7596         * symbols.c (Fintern):
7597         * symbols.c (Fintern_soft):
7598         * symbols.c (Funintern):
7599         * symbols.c (Fapropos_internal):
7600         * symbols.c (Fset_default):
7601         * syntax.c:
7602         * syntax.c (Fsyntax_table_p):
7603         * syntax.c (Fcopy_syntax_table):
7604         * syntax.c (Fset_syntax_table):
7605         * syntax.c (Fchar_syntax):
7606         * syntax.c (syntax_match):
7607         * syntax.c (Fmatching_paren):
7608         * syntax.c (Fforward_word):
7609         * syntax.c (scan_lists):
7610         * syntax.c (Fscan_lists):
7611         * syntax.c (Fscan_sexps):
7612         * syntax.c (Fparse_partial_sexp):
7613         * toolbar.c (Fcheck_toolbar_button_syntax):
7614         * tooltalk.doc:
7615         * window.c:
7616         * window.c (Fwindowp):
7617         * window.c (Fwindow_live_p):
7618         * window.c (Fwindow_point):
7619         * window.c (Fdelete_window):
7620         * window.c (Fnext_window):
7621         * window.c (Fprevious_window):
7622         * window.c (Fother_window):
7623         * window.c (window_loop):
7624         * window.c (Fget_lru_window):
7625         * window.c (Fsplit_window):
7626         * window.c (Fenlarge_window):
7627         * window.c (Fenlarge_window_pixels):
7628         * window.c (Fshrink_window):
7629         * window.c (Fshrink_window_pixels):
7630         * window.c (change_window_height):
7631         * window.c (Fwindow_configuration_p):
7632         * window.c (Fcurrent_window_configuration):
7633         * window.h:
7634         * casefiddle.c (casify_object):
7635         * casefiddle.c (Fupcase):
7636         * casefiddle.c (Fdowncase):
7637         * casefiddle.c (Fcapitalize):
7638         * casefiddle.c (Fupcase_initials):
7639         * casefiddle.c (casify_region_internal):
7640         * casefiddle.c (casify_region):
7641         * casefiddle.c (Fupcase_region):
7642         * casefiddle.c (Fdowncase_region):
7643         * casefiddle.c (Fcapitalize_region):
7644         * casefiddle.c (Fupcase_initials_region):
7645         * casefiddle.c (Fupcase_word):
7646         * casefiddle.c (Fdowncase_word):
7647         * casefiddle.c (Fcapitalize_word):
7648         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
7649         Replace 0 with '\0' when working with bytes.
7650         Replace initial "(" with "\(" in docstrings.
7651
7652 2000-11-01  Martin Buchholz  <martin@xemacs.org>
7653
7654         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
7655
7656         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
7657
7658 2000-10-31  Martin Buchholz  <martin@xemacs.org>
7659
7660         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
7661
7662 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7663
7664         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
7665         correctly.
7666
7667 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7668
7669         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
7670         (inhibit_auto_save_session): New variable.
7671         (vars_of_fileio): Declare and initialize them.
7672         * fileio.c (Fdo_auto_save): Don't create session file if
7673         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
7674
7675 2000-10-31  Martin Buchholz  <martin@xemacs.org>
7676
7677         * sgiplay.c (play_internal): C++ compilability.
7678         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
7679         * callproc.c (Fold_call_process_internal):
7680         Remove unused vars `env', `first'.
7681         * scrollbar.c (update_scrollbar_instance):
7682         #### unused var `current_window'.
7683         * redisplay-tty.c: Put currently unused vars insert_mode_on,
7684         etc. within #ifdef NOT_YET.
7685         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
7686         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
7687         * specifier.c (specifier_instance):
7688         #### unused var `tag'.
7689         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
7690
7691 2000-10-27  Martin Buchholz  <martin@xemacs.org>
7692
7693         * fns.c (Fbutlast):
7694         * fns.c (list_sort):
7695         * fns.c (Ffillarray):
7696         * fns.c (bytecode_nconc2):
7697         * fns.c (Fnconc):
7698         * fns.c (mapcar1):
7699         * fns.c (Fmapconcat):
7700         Be pedantically 64-bit correct.  For the time when someone will
7701         want to have a list with length > 2**32.
7702
7703         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7704         Work around MIPSpro compiler bug.
7705
7706         * process-unix.c (unix_kill_child_process): Add snarky comment.
7707         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
7708
7709         * config.h.in: Oops, _getpt ==> _getpty
7710
7711 2000-10-26  Martin Buchholz  <martin@xemacs.org>
7712
7713         * config.h.in:
7714         * regex.c:
7715         Use void*, not char*, as return type of alloca().
7716
7717         * alloc.c (free_marker): Side effect inside assert expression!
7718
7719 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
7720
7721         * mule-charset.c (Fset_charset_ccl_program): To check
7722         if the given ccl program is valid, use setup_ccl_program()
7723         instead of CHECK_VECTOR().
7724         (Fmake_charset): Likewise.
7725
7726 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
7727
7728         * faces.c (get_extent_fragment_face_cache_index):
7729         Fix cachel.merged_faces memory leak.
7730
7731 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
7732
7733         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
7734         Reset MSB of octets obtained by DECODE_SJIS
7735         because of the incompatibility with Emacs.
7736         (ccl_driver)<CCL_ENCODE_SJIS>:
7737         Set MSB of octets before passing them to
7738         ENCODE_SJIS because of the incompatibility
7739         with Emacs.
7740
7741 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
7742
7743         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
7744         (DECLARE_LRECORD): Undo the last change.
7745         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
7746
7747 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
7748
7749         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
7750         the implementation to lrecord_implementations_table.
7751
7752 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
7753
7754         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
7755         initial value of `lrecord_type_##c_name' and
7756         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
7757         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
7758         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
7759         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
7760         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
7761
7762 2000-10-17  Martin Buchholz  <martin@xemacs.org>
7763
7764         * miscplay.c (sndcnv8S_2mono):
7765         (sndcnv2monounsigned):
7766         (sndcnvULaw_2linear):
7767         (sndcnv16swap):
7768         Remove implementation-defined behavior.
7769
7770 2000-10-12  Martin Buchholz  <martin@xemacs.org>
7771
7772         * input-method-xlib.c: Warning suppression.
7773
7774 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
7775
7776         * mule-ccl.c: Sync up with Emacs 21.0.90.
7777         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
7778         Do nothing.
7779         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
7780         Likewise.
7781         (ccl_driver[WriteMultibyteChar2]): Bug fix.
7782         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
7783         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
7784         leading char belongs to official 2-dimensional charset.
7785         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
7786         write the given character as is.  Otherwise,
7787         if it is a multibyte char, convert it by
7788         non_ascii_set_charptr_emchar, then write it.
7789         (CCL_WRITE_STRING): Likewise.
7790         (ccl_get_compiled_code): New function.
7791         (setup_ccl_program): When ccl_prog is invalid,
7792         return -1.
7793         (Fregister_code_conversion_map): New function.
7794         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
7795
7796         * mule-ccl.h: Sync up with Emacs 21.0.90.
7797         (Fregister_ccl_program): export it.
7798
7799         * redisplay-msw.c (separate_textual_runs):
7800         If ccl program is not valid, don't do ccl conversion.
7801
7802         * redisplay-x.c (separate_textual_runs): Ditto.
7803
7804         * file-coding.c (Fmake_coding_system):
7805         When type is ccl and value is vector, register it
7806         with a proper symbol.  And checks whether the
7807         given ccl program is valid.
7808         (mule_decode): When calling ccl_driver, if src indicates
7809         NULL pointer, set an empty string instead.
7810         (mule_encode): Likewise.
7811
7812 2000-10-11  Martin Buchholz  <martin@xemacs.org>
7813
7814         The following large batch of changes gets us back to a state of
7815         C++ compilability.  Extbyte is now a char, which means that
7816         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
7817
7818         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
7819
7820         * sound.c (Fplay_sound): Type correctness.
7821
7822         * select-x.c (hack_motif_clipboard_selection): Type correctness.
7823         (x_get_window_property): Type correctness.
7824         (receive_incremental_selection): unsigned char ==> Extbyte
7825         (selection_data_to_lisp_data): unsigned char ==> Extbyte
7826         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
7827         (Fx_store_cutbuffer_internal): Type correctness.
7828
7829         * process-unix.c (try_to_initialize_subtty): Type correctness.
7830
7831         * objects-x.c (x_print_color_instance): Type correctness.
7832         (x_print_font_instance): Type correctness.
7833         (x_list_fonts): SExtbyte ==> Extbyte.
7834         (valid_x_font_name_p): SExtbyte ==> Extbyte.
7835         (x_find_charset_font): SExtbyte ==> Extbyte.
7836         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
7837         (truename_via_XListFonts): SExtbyte ==> Extbyte.
7838         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
7839         Use bufbyte_strcmp.
7840
7841         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
7842         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
7843         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
7844         (BYTE_C0_P): Use bit ops for char-signedness safety.
7845         (BYTE_C1_P): Use bit ops for char-signedness safety.
7846         (CHARSET_BY_LEADING_BYTE):
7847         (CHARSET_BY_ATTRIBUTES):
7848         Always use inline function.
7849         Use type_checking_assert.
7850         Hide chlook.
7851
7852         * mule-charset.c (non_ascii_charptr_copy_char):
7853         Modify to work with both ASCII and non-ASCII characters.
7854         Improve docs and variable names.
7855         Replace over-clever fall-through switch with a simple loop.
7856         (Lstream_get_emchar_1):
7857         Replace over-clever fall-through switch with a simple loop.
7858
7859         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7860         Warning suppression.
7861
7862         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
7863         the return value of Lstream_getc, which could be EOF as well.
7864
7865         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
7866
7867         * lisp.h: Make Extbyte a char, not unsigned char, so that external
7868         APIs can be used on Extbytes without casts.  Risky!
7869         (SExtbyte): Remove.
7870         (UExtbyte): Remove.
7871
7872         * input-method-xlib.c (XIM_init_device):
7873         Use Xlib.h instead of IntrinsicP.h.
7874         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
7875         which will break in X11R7.
7876         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
7877         to call XRegisterIMInstantiateCallback with correct types.
7878
7879         * gui-x.c (button_item_to_widget_value): Type correctness.
7880
7881         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
7882
7883         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
7884         (xbm_instantiate_1): Type correctness.
7885         (BUILD_GLYPH_INST):  Type correctness.
7886
7887         * fileio.c (Fsubstitute_in_file_name): Type correctness.
7888
7889         * file-coding.c:
7890         (decode_coding_sjis):
7891         (decode_coding_big5):
7892         (decode_coding_ucs4):
7893         (decode_coding_utf8):
7894         (decode_coding_iso2022):
7895         (decode_coding_no_conversion):
7896         Make all decoding functions take an Extbyte * arg.
7897         (encode_coding_sjis):
7898         (encode_coding_big5):
7899         (encode_coding_ucs4):
7900         (encode_coding_utf8):
7901         (encode_coding_iso2022):
7902         (encode_coding_no_conversion):
7903         Make all encoding functions take a Bufbyte * arg.
7904         Use size_t instead of unsigned int for memory sizes.
7905         Only cast to unsigned char whenever dereferencing Extbyte *.
7906
7907         * doc.c (unparesseuxify_doc_string): Type correctness.
7908
7909         * console-x.c (split_up_display_spec):
7910         Rewrite without using details of internal string representation.
7911         (x_semi_canonicalize_device_connection): Type correctness.
7912
7913         * config.h.in:
7914         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
7915         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
7916         (HAVE_XFREE386): Removed.
7917
7918         * buffer.h (DEC_CHARPTR): `const' correctness.
7919         (bufbyte_strcmp): New.
7920         (bufbyte_memcmp): New.
7921
7922         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
7923
7924         * buffer.h (XCHAR_OR_CHAR_INT):
7925         Always use inline function.
7926         Remove redundant type checking assert() - XINT will abort quite nicely.
7927
7928 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
7929
7930         * search.c (Freplace_match): Set newtext to an empty string.
7931
7932 2000-10-10  Martin Buchholz  <martin@xemacs.org>
7933
7934         * s/decosf1-3.h: Remove #include of stropts.h
7935         * s/ptx.h: Remove #include of stropts.h
7936         * s/usg5-4.h: Remove #include of stropts.h
7937         * sysproc.h:
7938         * config.h.in:
7939         Use stropts.h, not sys/stropts.h.
7940         Use strtio.h, not sys/strtio.h.
7941
7942 2000-10-04  Martin Buchholz <martin@xemacs.org>
7943
7944         * XEmacs 21.2.36 is released.
7945
7946 2000-09-21  Andy Piper  <andy@xemacs.org>
7947
7948         * glyphs-x.c (x_redisplay_widget): make sure non-structural
7949         changes still involve copying the widget tree.
7950         (update_widget_face): make sure a change is register in the widget
7951         tree. Call update_tab_widget_face appropriately.
7952         (update_tab_widget_face): ditto.
7953         (x_tab_control_redisplay): make sure non-structural changes still
7954         involve copying the widget tree.
7955
7956 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
7957
7958         * lread.c (locate_file): Check the path element is non-nil.
7959
7960 2000-10-02  Martin Buchholz  <martin@xemacs.org>
7961
7962         * lisp.h: Warning suppression for SCO compilers.
7963
7964         * redisplay-tty.c (reset_tty_modes): Fix crash.
7965         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
7966
7967 2000-09-27  Martin Buchholz  <martin@xemacs.org>
7968
7969         Big signal/process handling overhaul.  Bugs fixed:
7970         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
7971         M-x comint-kill-subjob should work for both values nil and t of
7972         process-connection-type. It was broken on most platforms.
7973         Testing on Irix and Cygwin still needed.  Other plaforms tested.
7974         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
7975         * process-unix.c: Signal/Process handling overhaul.
7976         (pty_name): make 64 bytes, as `expect' does, for paranoia.
7977         (allocate_pty): Use all available modern methods of allocating
7978         ptys, falling back to old style BSD allocation as a last resort.
7979         Use allegedly more secure Unix98 pty allocation by default.
7980         (allocate_pty_the_old_fashioned_way): New. the last resort.
7981         (unix_create_process): Push ptem, ldterm, ttcompat where
7982         available.  Autoconfiscate.
7983         (try_to_initialize_subtty): New.
7984         (unix_kill_child_process): Proper signal handling for ptys on most
7985         platforms, using special knowledge of AIX, BSD, etc...
7986         (unix_create_process): Always disconnect_controlling_terminal() for
7987         subprocesses, whether using ptys or not.
7988         * process.h: Remove old getpt-dependent PTY code.
7989         * process.c (Fprocess_send_signal): New, obvious generic function.
7990         (decode_signal): New.
7991         (Finterrupt_process):
7992         (Fkill_process):
7993         (Fquit_process):
7994         (Fstop_process):
7995         (Fcontinue_process):
7996         (Fsignal_process): Use decode_signal.
7997         (process_send_signal):
7998         Many docstring corrections.
7999         Allow any signal to be sent to a process object.
8000         * config.h.in: Add symbols for big signal/process overhaul.
8001         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8002         * sysproc.h: Include process-related headers, where available:
8003         sys/stropts.h sys/strtio.h pty.h libutil.h
8004         * s/irix4-0.h:
8005         * s/irix5-0.h:
8006         * s/cygwin32.h:
8007         * s/gnu.h:
8008         * s/linux.h:
8009         * s/hpux.h:
8010         * s/aix3-1.h:
8011         Remove old S&M pty stuff.
8012         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8013         * systty.h: Simplify cpp hackery, improve comments.
8014         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8015
8016         * editfns.c (Fformat_time_string):
8017         Be a little more paranoid with the return value of ctime.
8018
8019         * fileio.c (check_executable):
8020         (check_writable):
8021         Use symbolic constants X_OK, W_OK.
8022
8023         * console-x.c (split_up_display_spec): Fix a warning.
8024
8025 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8026
8027         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8028         * ntproc.c (sys_spawnve): make_string ==> build_string
8029         Small clarity improvements.
8030
8031 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8032
8033         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8034
8035         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8036
8037         * config.h.in (HAVE_STRCASECMP): Remove.
8038
8039 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8040
8041         * redisplay-output.c (redisplay_output_pixmap):
8042         Cleaner and possibly more 64-bit correct code.
8043
8044 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8045
8046         * dumper.c (pdump_load_finish): move restoration of
8047         `noninteractive1' to emacs.c (main_1).
8048         * emacs.c (main_1): protect LISP-visible command-line flags
8049         from pdump_load().
8050
8051 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8052
8053         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8054         DUMP_TARGET instead of literal program names.
8055
8056 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8057
8058         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8059
8060 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8061
8062         * *: Spelling mega-patch
8063
8064 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8065
8066         * fns.c (bad_bad_turtle):
8067         Delete "Eek!" comment, since we fixed the bug to which it refers.
8068
8069 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8070
8071         * alloca.c: Replace REGISTER with register.
8072
8073 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8074
8075         * file-coding.c (ucs_to_char): Use countof.
8076
8077 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8078
8079         * file-coding.c: (ucs_to_char):
8080         (complex_vars_of_file_coding):
8081         Use countof instead of sizeof.
8082         Use CHECK_NATNUM instead of CHECK_INT.
8083
8084         * sysdep.c (strcasecmp): Remove.
8085         * device-x.c (ascii_strcasecmp): New.
8086         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8087         Avoid using non-standard non-portable strcasecmp.
8088
8089 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8090
8091         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8092         * font-lock.c: remove reference to emacsfns.h.
8093         * search.c: small doc improvement.
8094         * event-Xt.c: correct file names in comments.
8095         * console-x.h Correct file names in comments.
8096         * frame.c: Correct file names in comments.
8097         * event-stream.c: remove Energize from comments.
8098
8099 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8100
8101         * symeval.h (DEFERROR_STANDARD):
8102         (DEFERROR):
8103         (DEFSYMBOL):
8104         (DEFSYMBOL_NO_DUMP):
8105         (DEFSYMBOL_MULTIWORD_PREDICATE):
8106         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8107         (DEFKEYWORD):
8108         The construct &##name is not sensible C.
8109         Fixes compilation errors with Unixware native compiler.
8110
8111 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8112
8113         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8114         (next_frame_internal): Removed.  We now just have next_frame.
8115         (next_frame):
8116         Write a simpler and cleaner one-pass algorithm.
8117         Remove called_from_delete_device arg and #ifdefed-out code.
8118         (previous_frame):
8119         Renamed from prev_frame.  Update callers.
8120         Cleaned up to have an analogous implementation to next_frame.
8121         (other_visible_frames_internal): Remove the
8122         called_from_delete_device bogus arg, and hence, remove this
8123         function.  Just use other_visible_frames().
8124
8125         * window.c (Fnext_window):
8126         Prettify docstring.
8127         Since next_frame() is guaranteed to return a frame, remove check
8128         for nil inserted in previous patch.
8129         (Fprevious_window):
8130         Prettify docstring.
8131         Make code look more like Fnext_window.
8132         (window_loop):
8133         Respect the `console' arg when iterating through windows.
8134         Fixes bug: (get-buffer-window buffer t device) not respecting
8135         the `device' arg.
8136         This function needs more work, as others have pointed out.
8137
8138         * frame.h: Rename prev_frame to previous_frame.
8139         device_matches_console_spec no longer takes a `frame' arg.
8140
8141         * s/gnu.h:
8142         * s/linux.h:
8143         * s/hpux.h:
8144         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8145         From "Golubev I. N." <gin@mo.msk.ru>.
8146
8147         * make-src-depend: Fix typo.
8148
8149 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8150
8151         * window.c (Fnext_window):
8152         next_frame() might return nil, not a frame.
8153         Fixes this crash:
8154         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8155
8156         * frame.c (next_frame_internal):
8157         We've passed a frame if we've passed its device.
8158         Fixes this crash:
8159         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8160 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8161
8162 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8163
8164         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8165         Allow option to suppress accelerators in menu/dialog items.
8166         (populate_or_checksum_helper): Pass dialog title through above.
8167
8168 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8169
8170         * event-msw.c (mswindows_key_to_emacs_keysym):
8171         Add "pause" key, fix "menu" key.
8172
8173 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8174
8175         * eval.c (reinit_vars_of_eval):
8176         Increase max_lisp_eval_depth to 1000,
8177         required for thai-xtis.el to byte-compile under some circumstances.
8178
8179 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8180
8181         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8182         From Kenichi Handa.
8183
8184 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8185
8186         * make-src-depend: Make the generated Makefiles smaller.
8187
8188         * s/hpux.h (SETUP_SLAVE_PTY):
8189         Provide a %d in the format string for the errno argument.
8190
8191         * editfns.c (Ftemp_directory):
8192         Warning fix.
8193         Avoid buffer overrun on very long file name.
8194
8195         * input-method-xlib.c (XIM_init_device):
8196         6th parameter of XRegisterIMInstantiateCallback has different
8197         pointer types on different OSes, so simply cast to (void *).
8198
8199         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8200
8201         * sysdll.c (dll_open):
8202         shl_load will hang hard if passed a NULL filename.
8203         Simply return NULL for compatibility with dlopen.
8204         * sysdll.c: Conform to XEmacs coding standards.
8205
8206         * sysdep.c (get_pty_max_bytes):
8207         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8208
8209 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8210
8211         * tooltalk.c: Add #include <syssignal.h>
8212
8213 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8214
8215         * s/hpux.h: Don't use undefined function sigunblock().
8216
8217 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8218
8219         * config.h.in: Add HAVE_BALLOON_HELP.
8220         * emacs.c: Use HAVE_BALLOON_HELP.
8221         * Makefile.in.in (x_objs):
8222         Make Balloon Help conditional on finding shape.h.
8223
8224 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8225
8226         * syntax.c (regex_emacs_buffer_p): New variable.
8227         * syntax.h (regex_emacs_buffer_p): extern.
8228         * search.c (looking_at_1):
8229         (string_match_1):
8230         (fast_string_match):
8231         (search_buffer): Set regex_emacs_buffer_p.
8232         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8233         when before_dot, at_dot, after_dot.
8234
8235 2000-08-23  Andy Piper  <andy@xemacs.org>
8236
8237         * gui-x.c (popup_selection_callback): Only set action_occurred
8238         when we really have an image instance.
8239         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8240
8241 2000-08-23  Andy Piper  <andy@xemacs.org>
8242
8243         * gui-msw.c (mswindows_handle_gui_wm_command): set
8244         action_occurred.
8245         * gui-x.c (popup_selection_callback): ditto.
8246
8247         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8248         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8249         (struct Lisp_Image_Instance): add action_occurred flag.
8250
8251         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8252         (image_instance_changed): ditto.
8253         (reset_frame_subwindow_instance_cache): only unmap windows - do
8254         not remove them from the cache also.
8255
8256         * glyphs-widget.c (tab_control_update): better debug.
8257         (progress_gauge_update): ditto.
8258         (layout_update): ditto.
8259         (layout_instantiate): ditto.
8260         (tab_control_order_only_changed): cope with null pending items.
8261
8262         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8263         debug. Force selection of an item when an action occurred. Cope
8264         with null pending_items.
8265         (mswindows_progress_gauge_redisplay): better debug.
8266         * glyphs-x.c (x_tab_control_redisplay): ditto.
8267
8268         * redisplay.c (redisplay_frame): reset the frame cache if the
8269         frame is garbaged.
8270
8271         * window.c (Fset_window_configuration): potentially re-enable
8272         frame cache reset.
8273         (window_unmap_subwindows): need to finalize instances here since
8274         it is only used in mark_window_as_deleted.
8275
8276 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8277
8278         * nas.c (SndOpenDataForReading):
8279         nas.c (WaveOpenDataForReading):
8280         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8281         Somehow escaped from the 2000-08-14 patch.
8282
8283 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8284
8285         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8286         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8287
8288 2000-08-21  Andy Piper  <andy@xemacs.org>
8289
8290         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8291         window if it is not already displayed.
8292
8293         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8294         it is not already displayed.
8295
8296         * window.c (Fset_window_configuration): don't reset the frame
8297         cache.
8298
8299         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8300         instances from the frame cache if we are actually finalizing them.
8301         (reset_frame_subwindow_instance_cache): reset frame cache only
8302         after unmapping everything.
8303         (map_subwindow): set displayed flag after mapping.
8304
8305 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8306
8307         * data.c (indirect_function):
8308         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8309
8310         * eval.c (function_argcount):
8311         Use original function when signaling errors.
8312
8313 2000-08-18  Andy Piper  <andy@xemacs.org>
8314
8315         * frame.c (delete_frame_internal): use new
8316         free_frame_subwindow_instances name.
8317
8318         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8319         (add_tab_item): make return type correct.
8320         (mswindows_tab_control_instantiate): assert index of tab.
8321         (mswindows_tab_control_redisplay): Re-code to use
8322         gui_item_equal_sans_selected and gui_item_list_find_selected.
8323
8324         * glyphs-widget.c (tab_control_update): Correct comment.
8325
8326         * window.c (window_unmap_subwindows): use new
8327         unmap_subwindow_instance_cache_mapper.
8328         (window_unmap_subwindows_cache_mapper): deleted.
8329         (Fset_window_configuration): comparisons should now be with
8330         EQ. Preserve the subwindow instance cache across configuration
8331         changes.
8332         (allocate_window): ditto.
8333         (make_dummy_parent): ditto.
8334
8335         * glyphs.c (free_frame_subwindow_instances): rename from
8336         free_frame_subwindow_instance_cache. finalize all instances rather
8337         than just those in the display cache.
8338         (finalize_all_subwindow_instances): walk windows unmapping and
8339         finalizing subwindows.
8340         (unmap_subwindow_instance_cache_mapper): moved from
8341         window.c. Allow finalization as well as unmapping.
8342
8343         * gui.c (gui_item_list_find_selected): new function.
8344
8345         * gui.h (gui_item_list_find_selected): declare.
8346
8347         * glyphs-x.c (x_tab_control_redisplay): pick tab
8348         explicitly. Re-code to use gui_item_equal_sans_selected and
8349         gui_item_list_find_selected.
8350
8351         * glyphs-x.h: add lwlib-utils.h
8352
8353         * buffer.c (Frecord_buffer): undo previous change.
8354
8355 2000-08-09  Vin Shelton  <acs@xemacs.org>
8356
8357         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8358         possible.  Create temporary files more securely.  The patch was
8359         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8360         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8361         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8362         for details.
8363
8364 2000-08-07  Ben Wing  <ben@xemacs.org>
8365
8366         * getloadavg.c: remove duplicate (and windows-breaking)
8367         includes of fcntl.h and sys/file.h.
8368
8369         * nt.c: remove duplicate getloadavg() definition.
8370
8371         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8372         encodings.
8373
8374 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8375
8376         * eval.c (function_argcount): If function needs to be autoloaded
8377         actually use the loaded definition.
8378         GCPRO function.
8379
8380 2000-08-05  Ben Wing  <ben@xemacs.org>
8381
8382         * getloadavg.c: add prototype for getloadavg().  remove
8383         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8384         of the code).  remove duplicate header includes.
8385
8386         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8387
8388         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8389         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8390         useful load average.
8391
8392         * alloc.c (reinit_alloc_once_early): removed references to
8393         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8394         the lisp vars are the only things referencing the malloc_sbrk_*
8395         vars, and they were already if 0'd out.  these vars only exist
8396         in the older malloc.c, which is basically unused, and they're
8397         only for informational purposes.
8398
8399         * m\*.h: removed useless VIRT_ADDR_VARIES.
8400
8401         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8402
8403 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8404
8405         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8406         color if the image is a mono pixmap.
8407
8408 2000-07-30  Ben Wing  <ben@xemacs.org>
8409
8410         * Makefile.in.in (release):
8411         Remove stray @.
8412
8413         * buffer.c (directory_is_current_directory):
8414         * dired-msw.c (mswindows_get_files):
8415         * dired.c:
8416         * dired.c (Fdirectory_files):
8417         * dired.c (file_name_completion_stat):
8418         * dired.c (Ffile_attributes):
8419         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8420         preprocessor tricks, to avoid problems on some machines
8421         (e.g. SCO).
8422
8423         * callproc.c (egetenv): GC docs.
8424
8425         * console-msw.h:
8426         * console-msw.h (struct mswindows_dialog_id):
8427         * lrecord.h (lrecord_type):
8428         New object for use with MSW dialogs.
8429
8430         * console.h (struct console_methods):
8431         New enable/disable frame methods, for proper modal dialogs.
8432
8433         * device-msw.c (msprinter_default_printer): Fix to follow
8434         proper Mule conventions.
8435
8436         * device-msw.c:
8437         * device-msw.c (signal_open_printer_error):
8438         * device-msw.c (msprinter_init_device):
8439         * device-msw.c (ensure_not_printing):
8440         * device-msw.c (plist_get_margin):
8441         * device-msw.c (Fmsprinter_select_settings):
8442         * device-msw.c (finalize_devmode):
8443         * device-msw.c (Fmsprinter_settings_despecialize):
8444         * device-msw.c (signal_enum_priner_error):
8445         * extents.c (decode_extent):
8446         * extents.c (decode_map_extents_flags):
8447         * extents.c (decode_extent_at_flag):
8448         * extents.c (Fextent_at):
8449         * extents.c (Fextents_at):
8450         * extents.c (symbol_to_glyph_layout):
8451         [[[[2]]]] Use structured errors.
8452
8453         * dialog-msw.c:
8454         * dialog-msw.c (mswindows_is_dialog_msg):
8455         * dialog-msw.c (mark_mswindows_dialog_id):
8456         * dialog-msw.c (dialog_proc):
8457         * dialog-msw.c (handle_question_dialog_box):
8458         * dialog-msw.c (syms_of_dialog_mswindows):
8459         Define new object to clean up marking; use it as a dialog identifier.
8460         Call new delete-dialog-box-hook.
8461
8462         * dialog-x.c (dbox_selection_callback):
8463         * dialog-x.c (dbox_descriptor_to_widget_value):
8464         * dialog-x.c (x_make_dialog_box_internal):
8465         Call new delete-dialog-box-hook.
8466         Return an id.
8467
8468         * dialog.c:
8469         * dialog.c (syms_of_dialog):
8470         * dialog.c (vars_of_dialog):
8471         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8472
8473         * eval.c:
8474         * eval.c (signal_call_debugger):
8475         when noninteractive, output stack traces on the console instead
8476         of in a (never-seen) buffer.
8477
8478         * eval.c (signal_type_error):
8479         * eval.c (invalid_argument_2):
8480         * lisp.h:
8481         new funs for use w/structured errors.
8482
8483         * event-Xt.c:
8484         * event-Xt.c (x_to_emacs_keysym):
8485         * event-Xt.c (describe_event):
8486         * event-Xt.c (emacs_Xt_event_handler):
8487         * event-Xt.c (vars_of_event_Xt):
8488         * event-msw.c:
8489         * event-msw.c (mswindows_wnd_proc):
8490         * event-msw.c (vars_of_event_mswindows):
8491         rename {x,mswindows}-debug-events to debug-{}-events for
8492         consistency with other debug-foo variables.
8493
8494         * event-stream.c:
8495         document next-event more clearly.
8496
8497         * fileio.c (Ffile_name_directory):
8498         * fileio.c (Ffile_name_nondirectory):
8499         * fileio.c (Funhandled_file_name_directory):
8500         * fileio.c (file_name_as_directory):
8501         * fileio.c (Ffile_name_as_directory):
8502         * fileio.c (directory_file_name):
8503         * fileio.c (Fdirectory_file_name):
8504         * fileio.c (Fmake_temp_name):
8505         * fileio.c (Ffile_truename):
8506         * fileio.c (Fsubstitute_in_file_name):
8507         * fileio.c (expand_and_dir_to_file):
8508         * fileio.c (barf_or_query_if_file_exists):
8509         * fileio.c (check_executable):
8510         * fileio.c (Ffile_exists_p):
8511         * fileio.c (Ffile_writable_p):
8512         * fileio.c (Ffile_directory_p):
8513         * fileio.c (Ffile_regular_p):
8514         * fileio.c (Ffile_modes):
8515         * fileio.c (Ffile_newer_than_file_p):
8516         * fileio.c (Fverify_visited_file_modtime):
8517         * fileio.c (Fset_visited_file_modtime):
8518         * fileio.c (auto_save_1):
8519         (1). (2).
8520         fix up gcpro's.
8521
8522         * frame-msw.c:
8523         * frame-msw.c (mswindows_init_frame_1):
8524         * frame-msw.c (mswindows_enable_frame):
8525         * frame-msw.c (error_frame_unsizable):
8526         * frame-msw.c (msprinter_init_frame_1):
8527         * frame-msw.c (msprinter_init_frame_3):
8528         * frame-msw.c (console_type_create_frame_mswindows):
8529         (2).
8530         implement new enable/disable frame methods.
8531
8532         * frame-x.c:
8533         * frame-x.c (x_enable_frame):
8534         * frame-x.c (console_type_create_frame_x):
8535         implement new enable/disable frame methods.
8536
8537         * frame.c:
8538         * frame.c (Fdisable_frame):
8539         * frame.c (syms_of_frame):
8540         * frame.h (struct frame):
8541         implement new enable/disable frame methods/functions.
8542
8543         * general-slots.h:
8544         add initial-focus.
8545
8546         * glyphs-msw.c (mswindows_widget_instantiate):
8547         comment that initial-focus should be implemented.
8548
8549         * glyphs-widget.c:
8550         * glyphs-widget.c (check_valid_instantiator):
8551         * glyphs-widget.c (check_valid_orientation):
8552         * glyphs-widget.c (check_valid_tab_orientation):
8553         * glyphs-widget.c (check_valid_justification):
8554         * glyphs-widget.c (check_valid_border):
8555         * glyphs-widget.c (check_valid_callback):
8556         * glyphs-widget.c (check_valid_int_or_function):
8557         * glyphs-widget.c (check_valid_string_or_vector):
8558         * glyphs-widget.c (check_valid_item_list_1):
8559         * glyphs-widget.c (widget_validate):
8560         * glyphs-widget.c (combo_box_validate):
8561         * glyphs-widget.c (widget_instantiate):
8562         * glyphs-widget.c (syms_of_glyphs_widget):
8563         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
8564         * glyphs-widget.c (image_instantiator_combo_box):
8565         * glyphs-widget.c (image_instantiator_scrollbar):
8566         * glyphs-widget.c (image_instantiator_tab_control):
8567         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
8568         (2).
8569         support (unimplemented) keyword initial-focus.
8570         reindent long macros.
8571
8572         * glyphs-x.c (x_redisplay_widget):
8573         * glyphs-x.c (x_button_instantiate):
8574         * glyphs-x.c (x_button_redisplay):
8575         * glyphs-x.c (x_progress_gauge_instantiate):
8576         * glyphs-x.c (x_edit_field_instantiate):
8577         * glyphs-x.c (x_combo_box_instantiate):
8578         * glyphs-x.c (x_tab_control_instantiate):
8579         * glyphs-x.c (x_label_instantiate):
8580         * gui-x.c:
8581         * gui-x.c (button_item_to_widget_value):
8582         * gui-x.c (gui_items_to_widget_values_1):
8583         * gui-x.c (gui_item_children_to_widget_values):
8584         * gui-x.c (gui_items_to_widget_values):
8585         * gui-x.h:
8586         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8587         add new flag to gui-parsing routines to indicate whether
8588         accelerator specs should be supported.
8589
8590         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
8591
8592         * glyphs.h (struct Lisp_Image_Instance):
8593         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
8594         add initial-focus flag.
8595
8596         * gui.c:
8597         * gui.c (syms_of_gui):
8598         * gui.c (vars_of_gui):
8599         clean up menu-no-selection-hook.
8600
8601         * gui.h:
8602         support delete-dialog-box-hook.
8603
8604         * lread.c (Fload_internal):
8605         * lread.c (locate_file_in_directory_mapper):
8606         (1).
8607
8608         * lrecord.h:
8609         * lrecord.h (struct toolbar_button):
8610         * lrecord.h (syms_of_toolbar):
8611         document how to create a new object.
8612
8613         * menubar-msw.c (mswindows_char_is_accelerator):
8614         may be called on frames w/o menus.
8615
8616         * menubar.c (vars_of_menubar):
8617         clean up :filter docs.
8618
8619         * nt.c (readdir):
8620         * ntproc.c:
8621         (1).
8622
8623         * process-nt.c:
8624         * process-nt.c (validate_signal_number):
8625         * process-nt.c (signal_cannot_launch):
8626         * process-nt.c (nt_create_process):
8627         * process-nt.c (nt_send_process):
8628         * process-nt.c (nt_kill_child_process):
8629         * process-nt.c (nt_open_network_stream):
8630         * process-nt.c (syms_of_process_nt):
8631         (2).
8632         delete quote-handling.  call new lisp code that does it better.
8633
8634         * process-unix.c (connect_to_file_descriptor):
8635         * process-unix.c (allocate_pty):
8636         * process-unix.c (unix_send_process):
8637         * process-unix.c (unix_kill_child_process):
8638         * process-unix.c (unix_open_network_stream):
8639         * process-unix.c (unix_open_multicast_group):
8640         (1). (2).
8641
8642         * process.c:
8643         * process.c (Fstart_process_internal):
8644         (2).  need to canonicalize process path even if absolute.
8645
8646         * select-msw.c (symbol_to_ms_cf):
8647         * select-msw.c (ms_cf_to_symbol):
8648         * select-msw.c (cf_is_autofreed):
8649         * select-msw.c (mswindows_destroy_selection):
8650         * select.c:
8651         * select.c (syms_of_select):
8652         * select.h:
8653         support dibv5, fix bugs. (from Mike Alexander)
8654
8655         * select.c (Fget_selection_internal):
8656         * select.c (select_convert_out):
8657
8658         * sysdep.c:
8659         * sysdep.c (xemacs_stat):
8660         renamed.
8661
8662         * sysdep.c (mkdir):
8663         * sysdep.c (rmdir):
8664         but keep original stat() here because we provide encapsulation
8665         around these funs.
8666
8667         * sysfile.h:
8668         * sysfile.h (fstat):
8669         remove stat garbage.
8670
8671         * syswindows.h:
8672         fix X/MSW conflict.
8673         don't include tchar.h.  it's inappropriate because it makes
8674         compile-time distinctions when we want runtime distinctions.
8675         (we provide our own tchar replacements)
8676
8677         * toolbar.c:
8678         use default object printer for toolbar-button.
8679
8680         * unexcw.c:
8681         make sure we don't encapsulate.
8682
8683         * window.c (vars_of_window):
8684         emphasize that temp-buffer-show-hook is obsolete.
8685
8686 2000-08-05  Martin Buchholz  <martin@xemacs.org>
8687
8688         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
8689         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
8690
8691         * events.c (Fevent_timestamp_lessp):
8692         Not 64-bit clean.  Use EMACS_INT, not int.
8693
8694 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
8695
8696         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
8697         unsigned int and changed the last enum to
8698         lrecord_type_last_built_in_type.
8699         (lrecord_implementations_table): changed prototype to know how
8700         long the array is supposed to be.
8701         (lrecord_type_count): new unsigned int to keep track of the
8702         current number of lisp lrecord types.
8703         (DEFINE_EXTERNAL_LRECORD):
8704         (DECLARE_EXTERNAL_LRECORD): Added these two for external
8705         dynamic-modules to declare new lisp types. They are the same
8706         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
8707         int for each new type, and increment lrecord_type_count by 1.
8708
8709         * alloc.c (lrecord_implementations_table): Changed to reference
8710         lrecord_type_last_built_in_type for the size of the array.
8711         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
8712
8713 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8714
8715         * glyphs.h (check_valid_item_list): Renamed from
8716         check_valid_item_list_1.
8717
8718 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
8719
8720         * select.c (Qselect_coerce): New.
8721         * select.c (Vselection_coercion_alist): New.
8722         * select.c (syms_of_select): Declare.
8723         * select.c (get-selection-internal): Use it.
8724         Use the new select-coerce functionality.
8725
8726         * select.c (select_coerce): New.
8727         * select.h (select_coerce): Declare.
8728         New function to coerce one type of data into another.
8729
8730 2000-08-03  Martin Buchholz  <martin@xemacs.org>
8731
8732         * callproc.c (Fcall_process_internal):
8733         (Fcall_process_internal):
8734         * process-unix.c (unix_create_process):
8735         Save and restore the value of errno, so that error messages are accurate.
8736
8737 2000-08-01  Martin Buchholz  <martin@xemacs.org>
8738
8739         * elhash.c (print_hash_table):
8740         Fix printing of hash tables to also use `key-and-value' instead of `t'.
8741         Prettify docstrings and indentation.
8742
8743 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8744
8745         * window.c (Fwindow_pixel_edges): Subtract frame border and
8746         gutter size.
8747
8748 2000-07-31  Andy Piper  <andy@xemacs.org>
8749
8750         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
8751         will acknowledge the change.
8752
8753         * glyphs.h: declare tab_control_order_only_changed.
8754
8755         * glyphs-x.c (x_tab_control_redisplay): use
8756         tab_control_order_only_changed.
8757
8758         * glyphs-widget.c (tab_control_order_only_changed): new function.
8759
8760         * glyphs-msw.c (mswindows_tab_control_redisplay): use
8761         tab_control_order_only_changed.
8762
8763         * gui.c (gui_item_equal_sans_selected): new function.
8764         (gui_item_equal): use it.
8765
8766         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
8767         :properties in favor of :items..
8768
8769         * glyphs-widget.c (check_valid_item_list): rename from
8770         check_valid_item_list_1.
8771         (check_valid_item_list_1): renamed.
8772         (combo_box_validate): deprecate :properties in favor of :items.
8773         (widget_instantiate): ditto.
8774         (tab_control_update): ditto.
8775         (image_instantiator_combo_box): ditto.
8776         (image_instantiator_tree_view): ditto.
8777         (image_instantiator_tab_control): ditto.
8778         (layout_post_instantiate): remove dead code.
8779
8780         * print.c (debug_print_no_newline): only write to debugger if in
8781         WIN32_NATIVE.
8782
8783         * elhash.c (Fmake_hash_table): update doc string.
8784
8785         * event-msw.c (mswindows_wnd_proc): don't allow processing of
8786         messages whilst in GC. This at least stops XEmacs crashing but has
8787         the potential for wierd behaviour.
8788
8789 2000-07-31  Martin Buchholz  <martin@xemacs.org>
8790
8791         * config.h.in:
8792         Make existence of s&m files optional.
8793
8794         * s/bsd386.h: Remove HAVE_GETLOADAVG.
8795         * s/freebsd.h: Remove HAVE_GETLOADAVG.
8796         * s/gnu.h: Remove HAVE_GETLOADAVG.
8797         * s/netbsd.h: Remove HAVE_GETLOADAVG.
8798         * s/sol2.h: Remove HAVE_GETLOADAVG.
8799         * lisp.h: Remove getloadavg() declaration.
8800         * fns.c:
8801         Include <sys/loadavg.h> if available.
8802         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
8803         * config.h.in:  Group together getloadavg()-related macros.
8804         Use only configure-time tests to detect getloadavg().
8805
8806 2000-07-30  Martin Buchholz  <martin@xemacs.org>
8807
8808         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
8809
8810 2000-07-25  Andy Piper  <andy@xemacs.org>
8811
8812         * syswindows.h: add tchar.h for native builds.
8813
8814         * frame.c (syms_of_frame): remove set-glyph-image.
8815
8816         * general-slots.h: add Qset_glyph_image.
8817
8818         * glyphs-widget.c (layout_update): add domain arg to
8819         set-glyph-image.
8820         (syms_of_glyphs_widget): remove set-glyph-image.
8821
8822 2000-07-23  Ben Wing  <ben@xemacs.org>
8823
8824         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
8825         Vpopup_frame_list.
8826
8827 2000-07-22  Andy Piper  <andy@xemacs.org>
8828
8829         * symsinit.h: add syms_of_win32().
8830
8831         * gui-msw.c (syms_of_gui_mswindows): remove
8832         Fmswindows_shell_execute.
8833         (Fmswindows_shell_execute): moved to win32.c.
8834
8835         * emacs.c (main_1): add syms_of_win32 ().
8836
8837         * win32.c (init_potentially_nonexistent_functions): rewrite in
8838         compiler-friendly terms.
8839         (Fmswindows_shell_execute): move here from gui-msw.c.
8840         (syms_of_win32): new.
8841
8842         * device-msw.c (Fmswindows_printer_list): clean up args to
8843         EnumPrinters.
8844         Don't include tchar under cygwin or mingw.
8845         (msprinter_default_printer): make cygwin-friendly.
8846
8847 2000-07-21  Andy Piper  <andy@xemacs.org>
8848
8849         * glyphs-widget.c (image_instantiator_tree_view): use tab
8850         control's update function.
8851         (layout_property): new function. Retrieve items.
8852
8853         * glyphs-msw.c (mswindows_tree_view_redisplay): new
8854         function. Re-populate the tree view from the pending items.
8855
8856         * glyphs.c (instantiate_image_instantiator): Make sure the domain
8857         is designated the parent if the domain is an image instance. This
8858         is needed so that dirtiness can be cascade up the hierarchy and
8859         thus for layout children to be redisplayed correctly.
8860         (allocate_image_instance): rename glyph -> parent.
8861
8862         * redisplay.h: change redisplay_output_layout signature.
8863
8864         * redisplay-msw.c (mswindows_output_display_block): use domain
8865         arg.
8866
8867         * redisplay-x.c (x_output_display_block): use domain arg.
8868
8869 2000-07-10  Andy Piper  <andy@xemacs.org>
8870
8871         * window.c (Fset_window_configuration): add comment.
8872
8873         * redisplay-output.c (compare_runes):
8874         (redisplay_output_subwindow): redisplay rather than update subwindow.
8875         (redisplay_output_layout): ditto.
8876
8877         * redisplay-msw.c (mswindows_frame_output_end):
8878         (mswindows_frame_output_end): make defer window pos optional.
8879
8880         * lisp.h: add Flast.
8881
8882         * glyphs.h (struct image_instantiator_methods): add dest_mask top
8883         normalize method. Change update method to be for changed
8884         instantiators. Add redisplay method. Change signature of layout
8885         method.
8886         (struct Lisp_Image_Instance): add instantiator.
8887         (IMAGE_INSTANCE_INSTANTIATOR): new.
8888         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
8889         (XIMAGE_INSTANCE_INSTANTIATOR): new.
8890         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
8891
8892         * glyphs.c:
8893         (find_instantiator_differences): new function.
8894         (Fset_instantiator_property): new convenience function.
8895         (check_image_instance_structure): strictly check for vector
8896         instantiators.
8897         (normalize_image_instantiator): make non-static.
8898         (instantiate_image_instantiator): pass on dest_mask and use new
8899         signatures for image_instance_layout and friends.
8900         (mark_image_instance): mark the instantiator. Mark the subwindow
8901         face not the widget face.
8902         (image_instance_equal): add instantiator.
8903         (image_instance_hash): ditto.
8904         (allocate_image_instance): ditto.
8905         (Fset_image_instance_property): removed.
8906         (Fimage_instance_file_name): ditto.
8907         (Fcolorize_image_instance): ditto.
8908         (image_instance_layout): add offsets to be set.
8909         (update_image_instance): new function. update an image instance
8910         from its changed instantiator.
8911         (inherit_normalize): add dest_mask.
8912         (xbm_normalize): ditto.
8913         (xface_normalize): ditto.
8914         (xpm_normalize): ditto.
8915         (text_update): set_property -> update.
8916         (image_instantiate): use the glyph identity as a hash key, not the
8917         instantiator.
8918         (glyph_width): use new image_instance_layout signature.
8919         (glyph_ascent): ditto.
8920         (glyph_descent): ditto.
8921         (glyph_height): ditto.
8922         (glyph_query_geometry): ressurrect.
8923         (glyph_layout): ditto.
8924         (redisplay_subwindow): update -> redisplay.
8925         (syms_of_glyphs): add Fset_instantiator_property.
8926         (image_instantiator_format_create): set_property -> update.
8927
8928         * glyphs-x.c:
8929         (autodetect_normalize): add dest_maks to signature.
8930         (x_redisplay_subwindow): update -> redisplay.
8931         (x_redisplay_widget): ditto.
8932         (x_button_redisplay): ditto.
8933         (x_progress_gauge_redisplay): ditto.
8934         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
8935         stacking order.
8936         (console_type_create_glyphs_x): update -> redisplay.
8937         (image_instantiator_format_create_glyphs_x): ditto.
8938
8939         * glyphs-widget.c:
8940         (check_valid_instantiator): disallow glyphs in the instantiator,
8941         they must now be vectors.
8942         (check_valid_instantiator_list): ditto.
8943         (glyph_instantiator_to_glyph): use internal symbol rather than
8944         intern.
8945         (widget_update): renamed from widget_set_property. Call cascaded
8946         update methods.
8947         (redisplay_widget): renamed from update_widget.
8948         (widget_layout): image_instance_layout now takes position as well
8949         as size.
8950         (widget_normalize): ditto.
8951         (widget_instantiate): ditto.
8952         (tab_control_query_geometry) ditto.:
8953         (tab_control_update): renamed from tab_control_set_property.
8954         (progress_gauge_update): set_property -> update.
8955         (layout_normalize): rewrite so that child instantiators are
8956         normalized also.
8957         (layout_update): new function. Create glyphs from the normalized
8958         children and cope with any other layout keywords. We do not
8959         instantiate children here that will be take care of by
8960         redisplay_output_layout.
8961         (layout_instantiate): call layout_update and not much else.
8962         (layout_post_instantiate): not sure whether this is needed
8963         anymore.
8964         (layout_query_geometry): query glyph geometry rather than
8965         image_instance geometry.
8966         (layout_layout): set offsets from pass in parameters. Use glyph
8967         geometry and layout functions rather than image instance ones.
8968         (native_layout_layout): ditto.
8969         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
8970         (image_instantiator_widget): set_property -> update.
8971         (image_instantiator_buttons): ditto.
8972         (image_instantiator_progress_guage): ditto.
8973         (image_instantiator_tab_control): ditto.
8974         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
8975         (image_instantiator_layout): add update method.
8976
8977         * glyphs-msw.c (bmp_normalize):
8978         (mswindows_resource_normalize): add dest_mask so that it can be
8979         proprogated by layout_normalize.
8980         (begin_defer_window_pos): make optional because it may not be the
8981         right thing to do and it introduces differences with X.
8982         (mswindows_unmap_subwindow): ditto.
8983         (mswindows_map_subwindow): ditto.
8984         (mswindows_redisplay_subwindow): renamed from
8985         mswindows_update_subwindow.
8986         (mswindows_redisplay_widget): ditto.
8987         (mswindows_button_redisplay): renamed from
8988         mswindows_button_update. Update is now what the instantiation
8989         function does for a changed instantiator.
8990         (mswindows_progress_gauge_instantiate): set the progress value
8991         here if appropriate.
8992         (mswindows_tab_control_redisplay): cope with re-ordering of the
8993         members of the tab widget by simply selecting the new top
8994         widget. This makes things appear ok if you click on a tab.
8995         (mswindows_combo_box_instantiate): image_instance_layout now takes
8996         position as well as size.
8997         (mswindows_progress_gauge_redisplay): renamed from
8998         mswindows_progress_gauge_update.
8999         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9000         (image_instantiator_format_create_glyphs_mswindows): ditto.
9001
9002         * glyphs-eimage.c (jpeg_normalize):
9003         (gif_normalize):
9004         (png_normalize):
9005         (tiff_normalize): add dest_mask so that it can be proprogated by
9006         layout_normalize.
9007
9008         * elhash.c:
9009         (print_hash_table):
9010         (hash_table_weakness_validate):
9011         (decode_hash_table_weakness):
9012         (Fhash_table_weakness):
9013         (Fhash_table_type):
9014         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9015
9016         * console.h (struct console_methods): move update_* to
9017         redisplay_*.
9018
9019 2000-07-20  Ben Wing  <ben@xemacs.org>
9020
9021         * *.[ch] (XSETOBJ): remove unused middle argument.
9022         lisp-disunion.h: correct wrap_object() to one argument.
9023
9024 2000-07-15  Ben Wing  <ben@xemacs.org>
9025
9026         * s/cygwin32.h:
9027         * s/cygwin32.h (CYGWIN_CONV_PATH):
9028         Add missing logb prototype for v1.1.
9029         Use post-b20 names and alias to pre-b20 names when pre-b20.
9030
9031         * s/windowsnt.h: [5].
9032
9033 2000-07-15  Ben Wing  <ben@xemacs.org>
9034
9035         * Makefile.in.in (x_objs):
9036         * Makefile.in.in (sheap_objs):
9037         * Makefile.in.in (objs):
9038         added win32.o, cosmetic cleanups.
9039
9040         * alloc.c (Fmake_byte_code):
9041         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9042         etc. macros which declare their own args now.
9043
9044         * alloc.c (syms_of_alloc):
9045         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9046
9047         * buffer.c:
9048         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9049
9050         * buffer.c (Fget_file_buffer):
9051         Fixed GCPRO problem.
9052
9053         * buffer.c (get_truename_buffer):
9054         Fixed comment about GC checking.
9055
9056         * buffer.c (syms_of_buffer):
9057         Undeclared those dedicated frame funs.
9058         [2].
9059
9060         * buffer.h:
9061         Define convenience macros for internal/external conversions.
9062         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9063         and Qenvironment_variable_encoding for cleaner code.
9064
9065         * bufslots.h:
9066         Remove dedicated-frame; in lisp.
9067
9068         * bytecode.c (funcall_compiled_function):
9069         [1].
9070
9071         * bytecode.c (syms_of_bytecode):
9072         [2].
9073
9074         * console-msw.c:
9075         * console-msw.c (mswindows_show_console): Rewrote.
9076
9077         * console-msw.c (Fmswindows_debugging_output): New.
9078         Sends to OutputDebugString (special MSWin debugger interface).
9079
9080         * console-msw.c (Fmswindows_message_box):
9081         Fixed stupid bugs so it works when called from kill-emacs.
9082
9083         * console-msw.c (syms_of_console_mswindows):
9084         Declare Fmswindows_debugging_output.
9085
9086         * console-msw.h:
9087         New MSWin prototypes.
9088
9089         * console-msw.h (struct mswindows_frame):
9090         New entry last-click-mods for improved button-modifier support.
9091
9092         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9093         New struct entry `popup' with corresponding accessor.
9094
9095         * console-x.c:
9096         * console-x.c (split_up_display_spec):
9097         * console-x.c (get_display_arg_connection):
9098         * console-x.c (x_semi_canonicalize_console_connection):
9099         * console-x.c (x_canonicalize_device_connection):
9100         [[[6]]]: Change char to more specific type.
9101         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9102
9103         * console-x.c (x_semi_canonicalize_console_connection):
9104         * console-x.c (x_canonicalize_device_connection):
9105         [[[9]]]: Fix up error signalling to use new structured error system.
9106
9107         * console-x.h:
9108         [[[4]]]: Define codesys aliases:
9109         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9110         Qx_color_name_encoding, Qx_display_name_encoding.
9111
9112         * console.h (struct console_methods):
9113         New method make_dialog_box_internal supersedes older
9114         popup_dialog_box method.
9115
9116         * data.c:
9117         Define many new errors, part of new structured errors.
9118
9119         * data.c (init_errors_once_early):
9120         * data.c (syms_of_data):
9121         [2].
9122
9123         * device-msw.c (mswindows_init_device):
9124         [[[5]]]: Cleanup to support NT 3.51.
9125
9126         * device-msw.c (decode_devmode): Cleanup.
9127
9128         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9129         * device-msw.c (mswindows_handle_print_dialog_box):
9130         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9131         * device-msw.c (syms_of_device_mswindows):
9132         Delete the dialog box primitives recently introduced by Kirill and
9133         instead interface to general dialog box interface.
9134
9135         * device-x.c:
9136         * device-x.c (compute_x_app_name):
9137         * device-x.c (x_init_device):
9138         * device-x.c (Fx_valid_keysym_name_p):
9139         * device-x.c (Fx_set_font_path):
9140         [6].
9141         [7].
9142
9143         * device.h (wrap_device): New.
9144         First of its kind; meant to replace XSETDEVICE.
9145
9146         * dialog-msw.c: Many file-dialog symbols.
9147
9148         * dialog-msw.c (mswindows_register_popup_frame): New.
9149         * dialog-msw.c (mswindows_is_dialog_msg): New.
9150         For supporting kbd traversal in dialog boxes.
9151
9152         * dialog-msw.c (dialog_proc):
9153         Support hitting ESC in dialogs.
9154
9155         * dialog-msw.c (struct):
9156         Common dialog box errors.
9157
9158         * dialog-msw.c (handle_file_dialog_box): New.
9159         Add file dialog code.
9160
9161         * dialog-msw.c (handle_question_dialog_box):
9162         Redo existing code to support new question dialog syntax.
9163
9164         * dialog-msw.c (console_type_create_dialog_mswindows):
9165         We support new dialog console method.
9166
9167         * dialog-msw.c (syms_of_dialog_mswindows):
9168         * dialog-msw.c (vars_of_dialog_mswindows):
9169         New file dialog symbols, vars.
9170
9171         * dialog-x.c:
9172         * dialog-x.c (maybe_run_dbox_text_callback):
9173         * dialog-x.c (dbox_descriptor_to_widget_value):
9174         * dialog-x.c (x_make_dialog_box_internal):
9175         * dialog-x.c (console_type_create_dialog_x):
9176         Mule-ize entire file.
9177         Redo to support question dialog syntax.
9178         [6].
9179
9180         * dialog.c:
9181         * dialog.c (Fmake_dialog_box_internal):
9182         * dialog.c (syms_of_dialog):
9183         Kill old popup-dialog-box, replace with new primitive.
9184         Just call device method or signal error.
9185
9186         * eldap.c (Fldap_open):
9187         * eldap.c (Fldap_search_basic):
9188         * eldap.c (Fldap_add):
9189         * eldap.c (Fldap_modify):
9190         [1].
9191         [7].
9192
9193         * emacs.c:
9194         * emacs.c (make_arg_list_1):
9195         * emacs.c (make_arg_list):
9196         Mule-ize call to dll_init().
9197         [6].
9198         [8].
9199
9200         * emacs.c (make_argc_argv):
9201         * emacs.c (free_argc_argv):
9202         * emacs.c (init_cmdargs):
9203         * emacs.c (main_1):
9204         * emacs.c (Fkill_emacs):
9205         * emacs.c (Fdump_emacs):
9206         Update comments about what can be used in syms_* etc.
9207         Call init_win32() when necessary.
9208         Fix up MS Win dialog box in kill-buffer to actually work right.
9209         [7].
9210
9211         * eval.c:
9212         * eval.c (For):
9213         * eval.c (Fand):
9214         * eval.c (Fprogn):
9215         * eval.c (Fprog1):
9216         * eval.c (Fprog2):
9217         * eval.c (FletX):
9218         * eval.c (Flet):
9219         * eval.c (condition_case_3):
9220         * eval.c (Feval):
9221         * eval.c (function_argcount):
9222         * eval.c (funcall_lambda):
9223         [1].
9224
9225         * eval.c (type_error): New.
9226         * eval.c (maybe_type_error): New.
9227         * eval.c (continuable_type_error): New.
9228         * eval.c (maybe_continuable_type_error): New.
9229         * eval.c (type_error_with_frob): New.
9230         * eval.c (maybe_type_error_with_frob): New.
9231         * eval.c (continuable_type_error_with_frob): New.
9232         * eval.c (maybe_continuable_type_error_with_frob): New.
9233         New functions for use with structured errors.
9234
9235         * event-Xt.c:
9236         * event-Xt.c (x_event_to_emacs_event):
9237         Buttons are now modifiers too.
9238
9239         * event-Xt.c (emacs_Xt_current_event_timestamp):
9240         Implement new event method.
9241         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9242
9243         * event-msw.c:
9244         * event-msw.c (ntpipe_shove_writer): [5].
9245         * event-msw.c (mswindows_enqueue_mouse_button_event):
9246         * event-msw.c (mswindows_drain_windows_queue):
9247         * event-msw.c (mswindows_wnd_proc): [7].
9248         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9249         * event-msw.c (mswindows_modifier_state):
9250         Throughout: support new button modifiers.
9251
9252         * event-msw.c (emacs_mswindows_current_event_timestamp):
9253         Implement new event method.
9254         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9255
9256         * event-stream.c:
9257         * event-stream.c (event_stream_current_event_timestamp): New.
9258         * event-stream.c (maybe_kbd_translate): New functionality.
9259         * event-stream.c (vars_of_event_stream):
9260         Document new kbd-translate-table functionality.
9261
9262         * event-stream.c (Fcurrent_event_timestamp): New.
9263         New primitive for use in fabricated events.
9264         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9265
9266         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9267
9268         * events.c:
9269         * events.c (Fmake_event):
9270         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9271         [1].
9272         [9].
9273
9274         * events.c (format_event_object): fix gcc warnings.
9275
9276         * events.c (Fevent_timestamp): Document new primitives.
9277
9278         * events.c (TIMESTAMP_HALFSPACE): New.
9279
9280         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9281         comparing timestamps correctly (half-space algorithm).
9282
9283         * events.c (Fevent_modifier_bits): Doc fix.
9284
9285         * events.c (Fevent_modifiers): Major doc addition.
9286         * events.c (event_x_y_pixel_internal): Typo fix.
9287         * events.c (syms_of_events): Declare new primitives.
9288
9289         * events.h:
9290         Update long comment for button modifiers, timestamps.
9291
9292         * events.h (struct event_stream):
9293         New current_event_timestamp method.
9294
9295         * extents.c:
9296         * extents.c (extent_in_region_p):
9297         * extents.c (decode_extent):
9298         * extents.c (Fset_extent_parent):
9299         * extents.c (decode_map_extents_flags):
9300         Fix gcc warnings.
9301         [9].
9302
9303         * extents.c (struct extent_at_arg):
9304         * extents.c (decode_extent_at_flag):
9305         * extents.c (extent_at_mapper):
9306         * extents.c (extent_at_bytind):
9307         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9308         * extents.c (Fextents_at): New primitive. [9].
9309         * extents.c (symbol_to_glyph_layout): [9].
9310         Support new primitive `extents-at'.
9311
9312
9313         * extents.c (get_text_property_bytind):
9314         extent_at_bytind has another arg.
9315         [9].
9316
9317         * extents.c (syms_of_extents): New primitive.
9318
9319         * file-coding.c (Fmake_coding_system): [1].
9320         * file-coding.c (subsidiary_coding_system): fix gcc warning
9321         * file-coding.c (syms_of_file_coding): [2].
9322
9323         * fileio.c (Fexpand_file_name):
9324         * fileio.c (Fsysnetunam):
9325         * fileio.c (Ffile_exists_p):
9326         * fileio.c (Ffile_executable_p):
9327         * fileio.c (Fverify_visited_file_modtime):
9328         Clean up GCPROing.
9329
9330         * fileio.c (syms_of_fileio): [2].
9331
9332         * filelock.c (lock_file_1):
9333         * filelock.c (current_lock_owner):
9334         * filelock.c (lock_if_free):
9335         * filelock.c (lock_file):
9336         * filelock.c (unlock_file):
9337         Clean up GCPROing.
9338
9339         * fns.c (concat): Fix gcc warning.
9340
9341         * fns.c (Fmember):
9342         * fns.c (Fold_member):
9343         * fns.c (Fmemq):
9344         * fns.c (Fold_memq):
9345         * fns.c (memq_no_quit):
9346         * fns.c (Fassoc):
9347         * fns.c (Fold_assoc):
9348         * fns.c (Fassq):
9349         * fns.c (Fold_assq):
9350         * fns.c (assq_no_quit):
9351         * fns.c (Frassoc):
9352         * fns.c (Fold_rassoc):
9353         * fns.c (Frassq):
9354         * fns.c (Fold_rassq):
9355         * fns.c (rassq_no_quit):
9356         * fns.c (Fdelete):
9357         * fns.c (Fold_delete):
9358         * fns.c (Fdelq):
9359         * fns.c (Fold_delq):
9360         * fns.c (delq_no_quit):
9361         * fns.c (Fremassoc):
9362         * fns.c (Fremassq):
9363         * fns.c (remassq_no_quit):
9364         * fns.c (Fremrassoc):
9365         * fns.c (Fremrassq):
9366         * fns.c (remrassq_no_quit):
9367         * fns.c (Freverse):
9368         * fns.c (mapcar1):
9369         [1].
9370
9371         * frame-msw.c (mswindows_init_frame_1):
9372         * frame-msw.c (mswindows_delete_frame):
9373         Register popups with dialog code so keyboard traversing works.
9374
9375         * frame-tty.c (tty_raise_frame_no_select): [1].
9376
9377         * frame-x.c:
9378         * frame-x.c (x_set_frame_text_value):
9379         * frame-x.c (x_set_frame_properties):
9380         * frame-x.c (x_create_widgets):
9381         [7].
9382
9383         * frame.c:
9384         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9385
9386         * frame.h (wrap_frame): New.
9387         Macro like wrap_device.
9388
9389         * general.c:
9390         * general.c (SYMBOL):
9391         * general.c (syms_of_general):
9392         Major reorg.  This is now just a wrapper and symbols themselves
9393         are listed in general-slots.h.
9394
9395         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9396         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9397
9398         * glyphs-msw.c (mswindows_native_layout_instantiate):
9399         Add DS_CONTROL so keyboard traversal will work.
9400
9401         * glyphs-widget.c:
9402         * glyphs-widget.c (syms_of_glyphs_widget):
9403         Move some symbols to general-slots.h.
9404
9405         * glyphs-x.c:
9406         * glyphs-x.c (xbm_instantiate_1):
9407         * glyphs-x.c (x_xbm_instantiate):
9408         * glyphs-x.c (x_xface_instantiate):
9409         * glyphs-x.c (autodetect_instantiate):
9410         * glyphs-x.c (cursor_font_instantiate):
9411         * glyphs-x.c (x_update_widget):
9412         * glyphs-x.c (x_widget_instantiate):
9413         * glyphs.c (bitmap_to_lisp_data):
9414         * glyphs.c (pixmap_to_lisp_data):
9415         [7].
9416
9417         * glyphs.c (syms_of_glyphs):
9418         [2].
9419
9420         * gui-x.c:
9421         * gui-x.c (print_widget_value):
9422         * gui-x.c (menu_separator_style_and_to_external):
9423         * gui-x.c (add_accel_and_to_external):
9424         * gui-x.c (button_item_to_widget_value):
9425         * gui-x.c (gui_items_to_widget_values_1):
9426         * gui-x.c (gui_items_to_widget_values):
9427         * gui-x.c (syms_of_gui_x):
9428         * gui-x.c (vars_of_gui_x):
9429         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
9430         [9].
9431
9432         * gui-x.h:
9433         Muleize, prototype changes matching gui-x.c.
9434
9435         * gui.c:
9436         * gui.c (separator_string_p):
9437         * gui.c (gui_item_add_keyval_pair):
9438         * gui.c (make_gui_item_from_keywords_internal):
9439         * gui.c (signal_too_long_error):
9440         * gui.c (parse_gui_item_tree_item):
9441         * gui.c (syms_of_gui):
9442         * gui.c (vars_of_gui):
9443         * gui.h:
9444         menu-no-selection-hook moved here (used by MSWin).
9445         Move some symbols to general-slots.h.
9446         [6].
9447         [9].
9448
9449         * insdel.c (get_buffer_pos_char):
9450         * insdel.c (get_buffer_range_char):
9451         Add GC comments.
9452
9453         * keymap.c (keymap_lookup_directly):
9454         * keymap.c (keymap_store):
9455         * keymap.c (ensure_meta_prefix_char_keymapp):
9456         * keymap.c (describe_map):
9457         * keymap.h:
9458         Support new button modifiers.
9459
9460         * lisp-disunion.h (wrap_object):
9461         * lisp-disunion.h (XSETOBJ):
9462         Rename make_obj to wrap_object.
9463
9464         * lisp-union.h:
9465         * lisp-union.h (make_int):
9466         * lisp-union.h (make_char):
9467         Support wrap_object.
9468
9469         * lisp.h:
9470         * lisp.h (LIST_LOOP):
9471         * lisp.h (EXTERNAL_LIST_LOOP):
9472         * lisp.h (LIST_LOOP_2):
9473         * lisp.h (EXTERNAL_LIST_LOOP_1):
9474         * lisp.h (EXTERNAL_LIST_LOOP_2):
9475         * lisp.h (EXTERNAL_LIST_LOOP_3):
9476         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9477         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9478         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9479         * lisp.h (EXTERNAL_ALIST_LOOP_5):
9480         * lisp.h (EXTERNAL_ALIST_LOOP_6):
9481         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9482         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9483         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9484         * lisp.h (struct Lisp_Symbol):
9485         * lisp.h (maybe_continuable_error_with_frob):
9486         Fix up section comments.
9487         Add new types for char to indicate usage.
9488         Delete symbols auto-generated from general-slots.h.
9489         Add prototypes for structured error functions.
9490         Add long comments describing looping macros and change interface
9491         so that lvalues are automatically declared.
9492         Add NO_DECLARE macro in case callers want to declare lvalues
9493         themselves.
9494
9495         * lread.c (read_syntax_error):
9496         * lread.c (continuable_read_syntax_error):
9497         * lread.c (read_structure):
9498         * lread.c (sequence_reader):
9499         * lread.c (read_list_conser):
9500         * lread.c (read_compiled_function):
9501         Rename syntax_error and continuable_syntax_error to avoid clash
9502         with same-named structured error functions.
9503
9504         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9505         * menubar-msw.c (populate_menu_add_item):
9506         * menubar-msw.c (populate_or_checksum_helper):
9507         [5].
9508         [9].
9509
9510         * menubar-x.c:
9511         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9512         Mule-ize whole file.
9513
9514         * menubar.c (Fnormalize_menu_item_name): Add optimization.
9515
9516         * mule-charset.c (Fmake_charset):
9517         * mule-wnnfns.c (Fwnn_set_param):
9518         [1].
9519
9520         * ntproc.c (create_child):
9521         * ntproc.c (Fwin32_set_current_locale):
9522         Add comments portending doom.
9523
9524         * objects-msw.c:
9525         * objects-msw.c (old_font_enum_callback_2):
9526         * objects-msw.c (font_enum_callback_1):
9527         * objects-msw.c (mswindows_enumerate_fonts):
9528         [5].
9529
9530         * objects-x.c:
9531         * objects-x.c (allocate_nearest_color):
9532         * objects-x.c (x_parse_nearest_color):
9533         * objects-x.c (x_initialize_color_instance):
9534         * objects-x.c (x_print_color_instance):
9535         * objects-x.c (x_finalize_color_instance):
9536         * objects-x.c (x_valid_color_name_p):
9537         * objects-x.c (x_initialize_font_instance):
9538         * objects-x.c (x_print_font_instance):
9539         * objects-x.c (valid_x_font_name_p):
9540         * objects-x.c (truename_via_FONT_prop):
9541         * objects-x.c (truename_via_random_props):
9542         * objects-x.c (truename_via_XListFonts):
9543         * objects-x.c (x_font_truename):
9544         * objects-x.c (x_font_instance_truename):
9545         * objects-x.c (x_font_instance_properties):
9546         * objects-x.c (x_list_fonts):
9547         * objects-x.c (x_find_charset_font):
9548         Mule-ize entire file.
9549         [7].
9550
9551         * objects-x.h:
9552         Mule-verify.
9553
9554         * print.c:
9555         * print.c (std_handle_out_external):
9556         * print.c (debug_print_no_newline):
9557         * print.c (syms_of_print):
9558         Output to all debugger kinds in debug-print.
9559         Fix console-output code under MSWin to actually work.
9560
9561         * process-nt.c (send_signal):
9562         * process-nt.c (nt_create_process):
9563         Use newer Unicode macros.
9564
9565         * process-unix.c (unix_create_process):
9566         * process-unix.c (unix_canonicalize_host_name):
9567         * process-unix.c (unix_open_network_stream):
9568         [7].
9569
9570         * scrollbar-x.c:
9571         Mule-verify.
9572
9573         * search.c (syms_of_search):
9574         [2].
9575
9576         * select-msw.c (mswindows_destroy_selection):
9577         Use LIST_LOOP_2.
9578
9579         * select-x.c (symbol_to_x_atom):
9580         [7].
9581
9582         * select.c (syms_of_select):
9583         [2].
9584
9585         * sound.c (Fplay_sound_file):
9586         [7].
9587
9588         * specifier.c:
9589         * specifier.c (decode_specifier_type):
9590         * specifier.c (Fvalid_specifier_locale_type_p):
9591         * specifier.c (check_valid_locale_or_locale_type):
9592         * specifier.c (decode_locale):
9593         * specifier.c (decode_locale_type):
9594         * specifier.c (decode_locale_list):
9595         * specifier.c (check_valid_domain):
9596         * specifier.c (decode_specifier_tag_set):
9597         * specifier.c (Fcanonicalize_tag_set):
9598         * specifier.c (Fdefine_specifier_tag):
9599         * specifier.c (Fspecifier_tag_predicate):
9600         * specifier.c (check_valid_inst_list):
9601         * specifier.c (check_valid_spec_list):
9602         * specifier.c (decode_how_to_add_specification):
9603         * specifier.c (check_modifiable_specifier):
9604         * specifier.c (specifier_add_spec):
9605         * specifier.c (boolean_validate):
9606         * specifier.c (display_table_validate):
9607         [9].
9608
9609         * specifier.c (syms_of_specifier):
9610         Move some symbols to general-slots.h.
9611         [2].
9612
9613         * symbols.c:
9614         * symbols.c (Fmapatoms):
9615         * symbols.c (Fapropos_internal):
9616         Add GCPROs.
9617
9618         * symbols.c (set_default_buffer_slot_variable):
9619         * symbols.c (set_default_console_slot_variable):
9620         [1].
9621
9622         * symbols.c (defsymbol_massage_name_1):
9623         * symbols.c (defkeyword_massage_name):
9624         * symbols.c (deferror_1):
9625         * symbols.c (deferror):
9626         * symbols.c (deferror_massage_name_and_message):
9627         * symeval.h:
9628         * symeval.h (DEFSYMBOL):
9629         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
9630
9631         * symbols.c (syms_of_symbols):
9632         [2].
9633
9634         * symsinit.h:
9635         * symsinit.h (init_win32): New.
9636         Also new is syms_of_dialog_mswindows.
9637
9638         * syswindows.h:
9639         Add new Unicode macros, missing Cygwin wide-char functions,
9640         convenience conversion macros for Qmswindows_tstr, macros for
9641         encapsulating required MSWin <-> Cygwin filename conversions,
9642         prototype for dynamically-extracted (not in NT 3.51) functions.
9643
9644         * toolbar-x.c:
9645         Mule-verify.
9646
9647         * tooltalk.c (Fadd_tooltalk_message_arg):
9648         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
9649         * tooltalk.c (Fadd_tooltalk_pattern_arg):
9650         [7].
9651
9652         * tooltalk.c (syms_of_tooltalk):
9653         [2].
9654
9655         * unexnt.c:
9656         * unexnt.c (unexec):
9657         Fix up headers, declaration of unexec() to be more standard.
9658
9659 2000-07-20  Martin Buchholz  <martin@xemacs.org>
9660
9661         * offix.h: Revert change to guard macros - they're used in offix.c!
9662
9663 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9664
9665         * lisp.h: Defsubred Fdelete.
9666
9667         * console-msw.h:  (msprinter_default_printer): Added.
9668
9669         * console-msw.c (msprinter_canonicalize_console_connection):
9670         (msprinter_canonicalize_device_connection): Added.
9671
9672         * device-msw.c (msprinter_default_printer):
9673         (Fmswingows_get_default_printer):
9674         (signal_enum_priner_error):
9675         (Fmswingows_printer_list): Added.
9676
9677 2000-07-19  Martin Buchholz <martin@xemacs.org>
9678
9679         * XEmacs 21.2.35 is released.
9680
9681 2000-07-19  Martin Buchholz  <martin@xemacs.org>
9682
9683         * select-x.c (x_handle_selection_request):
9684         Text selected in xemacs and pasted into xterm failed to appear.
9685         Spelling fixes and cosmetic changes.
9686
9687 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9688
9689         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
9690         XEmacs frame (fix for doubling chars in dialog boxes).
9691
9692 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9693
9694         * select.c (select_convert_in, select_convert_out):
9695         Don't call intern() every time.
9696
9697         * select.c (Qselect_convert_in, Qselect_convert_out): New.
9698         * select.c (vars_of_select): Initialise them.
9699
9700 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
9701
9702         * select.c (selection-coercible-types): New.
9703
9704         * select.c (own-selection-internal):
9705         * select.c (get-selection-internal):
9706         MULE bug fix - these should default to COMPOUND_TEXT and not
9707         STRING for MULE. I think.
9708
9709         * select.c (select_convert_out): Use selection-coercible-types
9710         to find types that we can attempt to perform coercions on.
9711
9712 2000-07-18  Martin Buchholz  <martin@xemacs.org>
9713
9714         * mule-wnnfns.c:
9715         * mule-canna.c:
9716         Add coding: cookie to identify encoding.
9717
9718         * mule-canna.c (CANNA_mode_keys): make static.
9719         Use proper prototypes, even for functions of no arguments.
9720         Remove external prototype for Fding().
9721
9722         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
9723
9724         * select.c (syms_of_select): Add missing DEFSUBR.
9725
9726 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
9727
9728         * select.c (get_selection_internal, own_selection_internal):
9729         Make the type default to STRING, rather than placing a nil type
9730         into Vselection_alist.
9731
9732 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9733
9734         * gpmevent.c (tty_selection_exists_p):
9735         * gpmevent.c (tty_own_selection):
9736         Updated parameter lists.
9737
9738 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
9739
9740         * select.h (selection-alist): Removed declaration.
9741
9742         * select.h (get_local_selection):
9743         * select.c (get_local_selection):
9744         Made static.
9745
9746         * select.h (convert_selection): Removed declaration.
9747         * select.c (convert_selection): Removed.
9748         This function belongs in Lisp.
9749
9750         * select.h (select_convert_in): Declare.
9751         * select.h (select_convert_out): Declare.
9752         * select.c (select_convert_in): New.
9753         * select.c (select_convert_out): New.
9754         New conversion functions for other files to call.
9755
9756         * select.h (select_notify_buffer_kill): Declare.
9757         * select.c (select_notify_buffer_kill): New.
9758         New functions that get called from kill-buffer.
9759
9760         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
9761         X-specific lisp code.
9762
9763         * select.h: Declare some of the lisp-visible functions for
9764         external use.
9765
9766         * select.c (clean_local_selection_data): Removed. This was
9767         a disgusting function, and previously should have been in
9768         select-x.c in any case. The functionality is now provided
9769         in select-convert-from-integer (select.el).
9770
9771         * select.c (available-selection-types): Fixed stupidity where
9772         INTEGER and ATOM got added twice. Also add STRING when we see an
9773         extent.
9774
9775         * select.c (get-selection-internal): Removed symbol stripping. No
9776         longer causes conversion when data comes from the internal cache.
9777
9778         * select.c (syms_of_select): Added new functions.
9779
9780         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
9781         error checking - previously this called abort!
9782
9783         * select-x.c (x_own_selection): Changed comment.
9784
9785         * select-x.c (x_handle_selection_request): Use select_convert_out.
9786         Don't mess with selection-alist; it's an internal variable of select.c.
9787
9788         * select-x.c (x_get_foreign_selection): Use select_convert_in.
9789
9790         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
9791         rather than messing with selection-alist.
9792
9793         * select-msw.c (mswindows_get_foreign_selection):
9794         Use TO_INTERNAL_FORMAT rather than hacking.
9795
9796 2000-07-14  Martin Buchholz  <martin@xemacs.org>
9797
9798         * process-unix.c (unix_open_multicast_group):
9799         (unix_open_multicast_group): Remove useless casts.
9800
9801 2000-07-13  Martin Buchholz  <martin@xemacs.org>
9802
9803         * sound.c (Fplay_sound): Fix `unused variable' warning.
9804
9805         * emacs.c (main): Use correct type for _environ on SCO5.
9806
9807 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
9808
9809         * console.h (own_selection_method):
9810         * console.h (selection_exists_p_method):
9811         * console.h (available_selection_types_method): New.
9812         * console.h (register_selection_data_type_method): New.
9813         * console.h (selection_data_type_name): New.
9814
9815         * console-msw.h (mswindows_destroy_selection): Declare it.  New
9816         function & alist to track GlobalAlloc()'d handles that need
9817         releasing when the clipboard data gets replaced or emptied.
9818
9819         * event-msw.c (mswindows_wnd_proc): Call it.
9820
9821         * lisp.h, general.c (Qappend): New symbol representing a
9822         `how-to-add' mode.
9823
9824         * select.c (own-selection-internal):
9825         * select.c (selection-exists-p):
9826         * select.c (available-selection-types): New.
9827         * select.c (register-selection-data-type): New.
9828         * select.c (selection-data-type-name): New.  New functions to deal
9829         with device-specific selection data formats.
9830         * select.c (selection-converter-out-alist): Renamed.
9831         * select.c (selection-converter-in-alist): New.
9832         * select.c (selection-appender-alist): New.  Added new alists.
9833         * select.c (syms_of_select, vars_of_select): Added new symbols &
9834         variables.
9835         * select.c (get_local_selection): Split.
9836         * select.c: Removed spurious type checking - selections may now be
9837         of any type, not just strings.
9838         * select.c (own-selection-internal):
9839
9840         * select.h, select.c (convert_selection): New. Created
9841         convert_selection() function based on get_local_selection().
9842         * select.h, select.c (QCF_*): New symbols representing mswindows
9843         clipboard formats.
9844         * select.h, select.c (Qreplace_all, Qreplace_existing): New
9845         symbols representing `how-to-add' modes.
9846
9847         * select-msw.c (x_sym_p): New.
9848         * select-msw.c (symbol_to_ms_cf): New.
9849         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
9850         symbols & clipboard formats. Can also handle string names.
9851         * select-msw.c (mswindows_own_selection):
9852         * select-msw.c (mswindows_selection_exists_p):
9853         Added `data-type' parameter. Use it.
9854         * select-msw.c (mswindows_available_selection_types): New.
9855         * select-msw.c (mswindows_register_selection_data_type): New.
9856         * select-msw.c (mswindows_selection_data_type_name): New.
9857         * select-msw.c (mswindows_own_selection):
9858         * select-msw.c (mswindows_get_foreign_selection):
9859         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
9860         * select-msw.c (console_create_select_mswindows): Added new methods.
9861         * select-msw.c (mswindows_destroy_selection): New.
9862         * select-msw.c (Vhandle_alist): New list.
9863         * select-msw.c (mswindows_own_selection):
9864
9865         * select-x.c (x_own_selection):
9866         * select-x.c (x_selection_exists_p):
9867         * select-x.c: Added some comments about maybe using new
9868         functionality.
9869         * select-x.c (x_own_selection):
9870
9871         * specifier.c: Remove definition of Qappend (now in general.c)
9872         * specifier.c (syms_of_specifier): Remove Qappend.
9873
9874 2000-07-12  Martin Buchholz  <martin@xemacs.org>
9875
9876         * config.h.in: Add socklen_t.
9877
9878         * s/decosf4-0.h: No special compiler flags needed or desired.
9879         In particular, undefine _BSD for DEC OSF 4.0.
9880
9881 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9882
9883         * redisplay-msw.c (msprinter_frame_output_end): Added.
9884         (console_type_create_redisplay_mswindows): Referred the above.
9885
9886         * frame.c (setup_frame_without_minibuffer): Do not create a
9887         default minibuffer frame on a printer device.
9888
9889         * frame-msw.c (apply_dc_geometry): Added.
9890         (msprinter_start_page):
9891         (msprinter_init_frame_3):
9892         (msprinter_eject_page): Use it.
9893
9894         * console-msw.h (struct msprinter_frame): Added pix_left and top,
9895         and removed residual duplex and orientation properties.
9896
9897 2000-07-11  Martin Buchholz  <martin@xemacs.org>
9898
9899         * eval.c (function_argcount): Work around a DEC CC compiler bug.
9900
9901         * unexalpha.c: Remove system prototypes from C sources!
9902
9903 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
9904
9905         * eval.c: Remove references to M-x edit-options in DEFUNs for
9906         `defvar' and `defconst'.
9907
9908 2000-07-09  Martin Buchholz  <martin@xemacs.org>
9909
9910         * config.h.in: Remove SMART_INCLUDE hackery.
9911
9912         PostgreSQL hacking:
9913         * config.h.in: Don't use SMART_INCLUDE.
9914
9915         * postgresql.h: Include libpq-fe.h here.  Fix typo.
9916         * inline.c: Simply #include "postgresql.h"
9917         * postgresql.c:
9918         - Don't use SMART_INCLUDE
9919         - Use simply "const".
9920         - Use standard doc string conventions.
9921         - Use correct type for result of PQstatus.
9922
9923 2000-07-09  Martin Buchholz  <martin@xemacs.org>
9924
9925         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
9926
9927         C++ compilation changes.
9928         * config.h.in (EXTERN_C): Define.
9929         * config.h.in (not): This is also a C++ keyword.
9930         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
9931         * cm.c: Use EXTERN_C.
9932         * redisplay-tty.c: Use EXTERN_C.
9933         * sysdep.c: Use EXTERN_C.  Remove Gould support.
9934
9935 2000-07-09  Martin Buchholz  <martin@xemacs.org>
9936
9937         * general.c: Remove duplicate definition for Qfunction.
9938
9939 2000-07-08  Ben Wing  <ben@xemacs.org>
9940
9941         * device-msw.c (msprinter_init_device):
9942         * device-msw.c (sync_printer_with_devmode):
9943         * device-msw.c (handle_devmode_changes):
9944         * device-msw.c (print_dialog_worker):
9945         * device-msw.c (Fmsprinter_apply_settings):
9946         * device-msw.c (hash_devmode):
9947         * device-msw.c (Fmsprinter_settings_despecialize):
9948         use Qmswindows_tstr, not Qctext.
9949
9950         * vm-limit.c (check_memory_limits):
9951         avoid infinite loop printing warning messages.
9952
9953 2000-07-05  Craig Lanning  <lanning@scra.org>
9954
9955         * Makefile.in.in: Add support for including the Windows resources
9956         when building with the cygwin and mingw targets.
9957
9958         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
9959         not set or not correct.
9960         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
9961         (init_initial_directory): Don't try to use $PWD on the
9962         WIN32_NATIVE target.
9963
9964         * s\cygwin32.h:
9965         [[Add -mwindows to eliminate console window.]] not required --ben
9966         (HAVE_NATIVE_SOUND): removed; now handled by configure.
9967         (MAIL_USE_POP): removed; now handled by configure.
9968
9969         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
9970         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
9971         (HAVE_NATIVE_SOUND): removed; now handled by configure.
9972         (MAIL_USE_POP): removed; now handled by configure.
9973         (ENCAPSULATE_STAT): from Dan Holmsand, added.
9974         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
9975         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
9976         constant string.
9977         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
9978         up from <winsock.h> via systime.h.
9979         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
9980         (getpagesize): from Dan Holmsand, added.
9981         Added #endif which was left dangling by Ben's mega patch; added
9982         comment to help prevent this in the future.
9983
9984         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
9985
9986 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9987
9988         * console-msw.h (struct mswindows_device): Removed unnecessary
9989         cached device geometry values.
9990         Added update_tick and an accessor macro.
9991         (Lisp_Devmode): Added lrecord declaration.
9992         (struct msprinter_device): Contain devmode as a Lisp object.
9993         Added mswindows_get_selected_frame_hwnd();
9994
9995         * console.h (struct console_methods): Indentation nitpicking.
9996
9997         * device-msw.c (mswindows_init_device): Do not initialize geometry
9998         cache. Initialize update tick.
9999         (mswindows_device_system_metrics): Ask the device for its geometry.
10000         (global_free_2_maybe):
10001         (devmode_to_hglobal):
10002         (handle_printer_changes):
10003         (ensure_not_printing):
10004         (print_dialog_worker):
10005         (Fmsprinter_print_setup_dialog):
10006         (Fmsprinter_print_dialog):
10007         (plist_get_margin):
10008         (plist_set_margin):
10009         (Fmsprinter_page_setup_dialog): Added functions.
10010         (sync_printer_with_devmode):
10011         (handle_devmode_changes):
10012         (Fmsprinter_get_settings):
10013         (Fmsprinter_select_settings):
10014         (Fmsprinter_apply_settings):
10015         (allocate_devmode):
10016         (Fmsprinter_settings_copy):
10017         (Fmsprinter_settings_despecialize):
10018         (print_devmode):
10019         (finalize_devmode):
10020         (equal_devmode):
10021         (hash_devmode): Added functions
10022         (syms_of_device_mswindows): Init devmode lrecord class.
10023
10024         * device.h: Added an exfun for find-device.
10025
10026         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10027         geometry; although, recreate the device compatible DC.
10028
10029         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10030         (msprinter_init_frame_3):
10031         (msprinter_frame_property):
10032         (msprinter_internal_frame_property_p):
10033         (msprinter_frame_properties):
10034         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10035         print job properties (will move to device settings).
10036
10037         * lisp.h: Added symbols.
10038
10039         * general.c (syms_of_general): Declared them.
10040
10041         * hash.c (string_hash): Added.
10042
10043         * lrecord.h (lrecord_type): Added devmode lrecord type.
10044
10045 2000-07-02  Mike Sperber <mike@xemacs.org>
10046
10047         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10048         FreeBSD 4.0.
10049
10050 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10051
10052         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10053         integer.
10054
10055 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10056
10057         * data.c (Fstring_to_number): Don't recognize floating point if
10058         base is not 10.
10059
10060 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10061
10062         * glyphs-widget.c (tab_control_query_geometry):
10063         (widget_query_geometry):
10064         (button_query_geometry):
10065         * glyphs.c (text_query_geometry):
10066         Enforce type correctness.
10067
10068 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10069
10070         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10071         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10072
10073 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10074
10075         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10076         conflicts with gcc's fixincluded version of FOO.h.
10077
10078         * glyphs.h (image_instance_geometry): Remove trailing `,'
10079
10080 2000-06-08  Mike Alexander  <mta@arbortext.com>
10081
10082         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10083         (shove_thread): Don't write the same output twice
10084         (make_ntpipe_output_stream): Increase priority of shove thread
10085         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10086         chance to run
10087         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10088         it.
10089
10090 2000-06-12  Ben Wing  <ben@xemacs.org>
10091
10092         * s\mingw32.h (sigset):
10093         * s\windowsnt.h (sigset):
10094         rename msw_ to mswindows_ for consistency with general convention.
10095
10096 2000-06-12  Ben Wing  <ben@xemacs.org>
10097
10098         * console-msw.c:
10099         * console-msw.c (mswindows_get_console_hwnd):
10100         * console-msw.c (mswindows_ensure_console_allocated):
10101         * console-msw.c (mswindows_hide_console):
10102         * console-msw.c (mswindows_show_console):
10103         * console-msw.c (mswindows_ensure_console_buffered):
10104         * console-msw.c (mswindows_output_console_string):
10105         * console-msw.c (mswindows_windows9x_p):
10106         * console-msw.h:
10107         * device-msw.c (mswindows_get_workspace_coords):
10108         * device-msw.c (mswindows_device_system_metrics):
10109         * dialog-msw.c (mswindows_popup_dialog_box):
10110         * event-msw.c (mswindows_wnd_proc):
10111         * frame-msw.c (mswindows_size_frame_internal):
10112         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10113         * menubar-msw.c (displayable_menu_item):
10114         * menubar-msw.c (mswindows_char_is_accelerator):
10115         * nt.c:
10116         * nt.c (mswindows_sigset):
10117         * nt.c (mswindows_sigrelse):
10118         * nt.c (mswindows_sigpause):
10119         * nt.c (mswindows_raise):
10120         * nt.c (timer_proc):
10121         * ntproc.c:
10122         * ntproc.c (find_child_console):
10123         * ntproc.c (sys_kill):
10124         * print.c:
10125         * print.c (std_handle_out_external):
10126         * process-nt.c (find_child_console):
10127         * process-nt.c (send_signal_the_95_way):
10128         * process-nt.c (ensure_console_window_exists):
10129         * process-nt.c (nt_create_process):
10130         * syssignal.h:
10131         rename msw_ to mswindows_ for consistency with general convention.
10132
10133         * emacs.c:
10134         * dumper.c:
10135         include nt.h, not syswindows.h.
10136
10137         * nt.c (mswindows_fstat):
10138         * nt.c (mswindows_stat):
10139         prefix mswindows_ instead of attempting to directly override the
10140         library functions.  fix declarations.
10141
10142         * nt.h:
10143         include syswindows.h.  move some sysdep.h stuff here.
10144
10145         * ntheap.h:
10146         include syswindows.h, not <windows.h>.
10147
10148         * ntplay.c:
10149         clean up headers.
10150
10151         * sysdep.c:
10152         clean up headers.
10153
10154         * sysdep.c (sys_fstat):
10155         * sysdep.c (sys_stat):
10156         call mswindows versions when appropriate.
10157
10158         * sysdep.h:
10159         move mswin decls to nt.h.
10160
10161         * syswindows.h:
10162         add long comment describing appropriate use of the various windows
10163         headers.
10164
10165 2000-06-11  Ben Wing  <ben@xemacs.org>
10166
10167         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10168
10169 2000-06-10  Ben Wing  <ben@xemacs.org>
10170
10171         * Makefile.in.in (release):
10172         Correction to make sure xemacs.exe always dumped when correct.
10173
10174         * alloca.c:
10175         * balloon_help.c:
10176         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10177
10178         * buffer.c (set_buffer_internal):
10179         [[[[2]]]]: Remove HAVE_FEP code.
10180
10181         * buffer.c (init_initial_directory):
10182         [3].
10183
10184         * bytecode.c:
10185         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10186         individual files.
10187
10188         * callproc.c:
10189         * callproc.c (call_process_cleanup):
10190         * callproc.c (Fold_call_process_internal):
10191         * callproc.c (child_setup):
10192         * callproc.c (getenv_internal):
10193         * callproc.c (init_callproc):
10194         * callproc.c (vars_of_callproc):
10195         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10196         __CYGWIN32__ -> CYGWIN.
10197         DOS_NT -> WIN32_NATIVE.
10198         Remove MSDOS support/references, converting to WIN32_NATIVE
10199           where correct.
10200         __MINGW32__ -> MINGW.
10201         Fix windows.h includes.
10202         Remove bogus HAVE_NTGUI.
10203
10204         * config.h.in:
10205         [2].
10206
10207         * console-msw.c:
10208         mswindows_message_outputted added for use in allowing startup
10209         errors on the console to be seen.
10210
10211         * console-msw.c (msw_ensure_console_allocated):
10212         * console-msw.c (msw_output_console_string):
10213         * console-msw.c (DHEADER):
10214         * console-msw.c (DOPAQUE_DATA):
10215         * console-msw.c (DEVENT):
10216         * console-msw.c (DCONS):
10217         * console-msw.c (DCONSCDR):
10218         * console-msw.c (DSTRING):
10219         * console-msw.c (DVECTOR):
10220         * console-msw.c (DSYMBOL):
10221         * console-msw.c (DSYMNAME):
10222         Fix warnings.
10223
10224         * console-stream.c (stream_init_console):
10225         Fix text/binary problems.
10226
10227         * device-msw.c:
10228         * device-msw.c (mswindows_finish_init_device):
10229         * device-msw.c (mswindows_delete_device):
10230         [1].
10231
10232         * device.c (handle_asynch_device_change):
10233         [3].
10234
10235         * dgif_lib.c:
10236         * dgif_lib.c (DGifOpenFileName):
10237         * dgif_lib.c (DGifOpenFileHandle):
10238         * dgif_lib.c (DGifGetLine):
10239         * dgif_lib.c (DGifGetPixel):
10240         Added config.h/lisp.h, fix up includes.
10241         [1].
10242
10243         * dired-msw.c:
10244         [4].
10245
10246         * dired.c:
10247         * dired.c (file_name_completion):
10248         * dired.c (Ffile_attributes):
10249         * dired.c (syms_of_dired):
10250         [1].
10251
10252         * dumper.c:
10253         * dumper.c (pdump_file_unmap):
10254         * dumper.c (pdump_load):
10255         [1].
10256
10257         * editfns.c:
10258         * editfns.c (Ftemp_directory):
10259         * editfns.c (user_login_name):
10260         * editfns.c (Fuser_real_login_name):
10261         * editfns.c (get_home_directory):
10262         [1].
10263
10264         * elhash.c (finish_marking_weak_hash_tables):
10265         [[[[5]]]]: Fix GCC warnings.
10266
10267         * emacs.c:
10268         * emacs.c (mswindows_handle_hardware_exceptions):
10269         * emacs.c (make_arg_list_1):
10270         * emacs.c (main_1):
10271         * emacs.c (Fkill_emacs):
10272         * emacs.c (Fdump_emacs):
10273         [1].
10274         Fix problems with nested crashes, add long comment.
10275
10276         * event-Xt.c (init_event_Xt_late):
10277         [1].
10278
10279         * event-msw.c:
10280         * event-msw.c (mswindows_dde_callback):
10281         * event-msw.c (mswindows_handle_sticky_modifiers):
10282         * event-msw.c (mswindows_wnd_proc):
10283         [1].
10284         [5].
10285
10286         * events.c (character_to_event):
10287         [1].
10288
10289         * fileio.c:
10290         * fileio.c (Ffile_name_directory):
10291         * fileio.c (Ffile_name_nondirectory):
10292         * fileio.c (directory_file_name):
10293         * fileio.c (Fexpand_file_name):
10294         * fileio.c (Fsubstitute_in_file_name):
10295         * fileio.c (Ffile_name_absolute_p):
10296         * fileio.c (check_executable):
10297         * fileio.c (Ffile_readable_p):
10298         * fileio.c (Ffile_accessible_directory_p):
10299         * fileio.c (Ffile_modes):
10300         * fileio.c (Funix_sync):
10301         * fileio.c (vars_of_fileio):
10302         [1]. [4].
10303
10304         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10305
10306         Expand getdefdir defn.
10307         Fix bogus rename() comment.
10308
10309         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10310         to use standard XEmacs include files, e.g. sysfile.h, rather
10311         than system-specific includes.
10312
10313         * fns.c:
10314         * fns.c (Fsubseq):
10315         [5]. [6].
10316
10317         * frame.c (vars_of_frame):
10318         [1].
10319
10320         * getloadavg.c:
10321         * getloadavg.c (getloadavg):
10322         [1]. [6].
10323         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10324         (We don't use it elsewhere in the code; just add a comment.)
10325
10326         * gif_io.c:
10327         [6].
10328         Add config.h.
10329
10330         * glyphs-msw.c:
10331         * glyphs-msw.c (mswindows_resource_instantiate):
10332         [1].
10333
10334         * glyphs-x.c (x_native_layout_instantiate):
10335         [5].
10336
10337         * gui-msw.c (Fmswindows_shell_execute):
10338         [1].
10339
10340         * insdel.c:
10341         [4].
10342
10343         * lisp.h:
10344         [4]. [5].
10345
10346         * lread.c (locate_file_in_directory_mapper):
10347         [1].
10348
10349         * lstream.c:
10350         [4].
10351
10352         * mem-limits.h:
10353         * mem-limits.h (get_lim_data):
10354         [1].
10355
10356         * menubar-msw.c:
10357         [4].
10358
10359         * ndir.h:
10360         [1].
10361
10362         * nt.c:
10363         * nt.c (getwd):
10364         * nt.c (closedir):
10365         * nt.c (rva_to_section):
10366         * nt.c (mswindows_executable_type):
10367         [1]. [6].
10368         Fix closedir() defn.
10369
10370         * nt.h:
10371         [[[[8]]]]: *_OK defs moved to sysfile.h.
10372
10373         * ntproc.c:
10374         [6]. [7].
10375
10376         * objects-x.c:
10377         [4].
10378
10379         * print.c:
10380         * print.c (std_handle_out_external):
10381         [1]. [4].
10382
10383         * process-nt.c:
10384         * process-nt.c (nt_create_process):
10385         [6].
10386         try to fix process quoting somewhat.
10387
10388         * process-unix.c (unix_create_process):
10389         [1].
10390
10391         * process.c:
10392         * process.c (vars_of_process):
10393         Add Vnull_device.
10394
10395         * process.h:
10396         [1].
10397
10398         * realpath.c:
10399         * realpath.c (xrealpath):
10400         [1].
10401
10402         * redisplay-tty.c (init_tty_for_redisplay):
10403         [3].
10404
10405         * redisplay.c:
10406         [4]. [6].
10407
10408         * scrollbar-msw.c:
10409         [4].
10410
10411         * sheap.c:
10412         * sheap.c (more_static_core):
10413         * sheap.c (report_sheap_usage):
10414         [5]. [6].
10415
10416         * signal.c:
10417         * signal.c (alarm_signal):
10418         [1]. [6].
10419
10420         * sound.c:
10421         [6].
10422
10423         * strftime.c:
10424         * strftime.c (zone_name):
10425         [1]. [5].
10426
10427         * symsinit.h (init_sunpro):
10428         [1].
10429
10430         * syscommctrl.h:
10431         commctrl.h not in Cygwin b20.1.
10432
10433         * sysdep.c:
10434         * sysdep.c (endif):
10435         * sysdep.c (sys_subshell):
10436         * sysdep.c (init_baud_rate):
10437         * sysdep.c (emacs_get_tty):
10438         * sysdep.c (emacs_set_tty):
10439         * sysdep.c (tty_init_sys_modes_on_device):
10440         * sysdep.c (init_system_name):
10441         * sysdep.c (sys_open):
10442         * sysdep.c (interruptible_open):
10443         * sysdep.c (sys_fopen):
10444         * sysdep.c (sys_mkdir):
10445         * sysdep.c (sys_rename):
10446         * sysdep.c (get_process_times_1):
10447         [1]. [6].
10448
10449         * sysdep.h:
10450         [1].
10451
10452         * sysdir.h:
10453         * sysdir.h (DIRENTRY_NONEMPTY):
10454         [1]. [6].
10455
10456         * sysdll.c (dll_init):
10457         * sysdll.h:
10458         [1].
10459
10460         * sysfile.h:
10461         [1]. [6]. [8].
10462         added text/binary defs.
10463
10464         * sysfloat.h:
10465         [1].
10466
10467         * sysproc.h:
10468         * sysproc.h (EDESTADDRREQ):
10469         * sysproc.h (poll_fds_for_input):
10470         [1]. [6].
10471
10472         * syspwd.h:
10473         [6].
10474
10475         * syssignal.h:
10476         [1].
10477
10478         * systime.h:
10479         [1]. [6].
10480
10481         * systty.h:
10482         [1].
10483
10484         * syswindows.h:
10485         [1].
10486         Always define WIN32_LEAN_AND_MEAN.
10487
10488         * unexcw.c (unexec):
10489         [5].
10490
10491         * unexec.c:
10492         * unexec.c (copy_text_and_data):
10493         * unexec.c (adjust_lnnoptrs):
10494         [1].
10495
10496         * unexnt.c:
10497         * unexnt.c (_start):
10498         [1].
10499
10500 2000-06-07  Ben Wing  <ben@xemacs.org>
10501
10502         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
10503         was used only as a model.  We've long since extracted any useful
10504         logic or code out of this. (I just did an exhaustive search.)
10505
10506         * s\msdos.h: Removed.
10507
10508         * s\windows95.h: Removed.
10509
10510 2000-06-10  Ben Wing  <ben@xemacs.org>
10511
10512         * s\cygwin32.h:
10513         [1]. [5].
10514         Don't use extern with fun defs.
10515
10516         * s\mingw32.h:
10517         [1]. [7].
10518         Remove nt\inc include.
10519         Remove getdisk, getdefdir. (The former is unused, the latter
10520         expanded in fileio.h.)
10521
10522         * s\windowsnt.h:
10523         * s\windowsnt.h (WIN32_NATIVE):
10524         * s\windowsnt.h (HAVE_STRCASECMP):
10525         [1]. [7].
10526         Add long comment about preprocessor changes.
10527         Remove getdisk, getdefdir. (The former is unused, the latter
10528         expanded in fileio.h.)
10529
10530 2000-06-10  Ben Wing  <ben@xemacs.org>
10531
10532         * m\arm.h:
10533         * m\delta.h:
10534         * m\intel386.h:
10535         * m\sequent.h:
10536         * m\template.h:
10537         * m\windowsnt.h:
10538         [1].
10539         Remove bogus/unused NO_SOCK_SIGIO.
10540
10541 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
10542
10543         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
10544         not an Emchar.
10545
10546 2000-06-04  Mike Sperber <mike@xemacs.org>
10547
10548         * casetab.c (set_case_table): For `set-standard-case-table',
10549         actually deposit the new case tables where the rest of XEmacs can
10550         see them.
10551
10552 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
10553
10554         * data.c (Faset): Don't cast XCHAR() to unsigned char.
10555
10556 2000-06-05  Ben Wing  <ben@xemacs.org>
10557
10558         * callproc.c (child_setup): Don't do close_load_descs() under
10559         MS Windows.  Put in a comment explaining why.
10560
10561 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
10562
10563         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
10564         Toolkit shell" which breaks `kill-compilation' on Windows NT
10565         native, retaining STDERR handling improvements.
10566
10567 2000-06-01  Andreas Jaeger  <aj@suse.de>
10568
10569         * s/s390.h: Support for S390, based on a patch by Martin
10570         Schwidefsky <schwidefsky@de.ibm.com>.
10571
10572 2000-05-30  Andy Piper  <andy@xemacs.org>
10573
10574         * window.c (allocate_window):
10575         (make_dummy_parent):
10576         (Fset_window_configuration): use new hashtable type.
10577
10578         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
10579         (struct image_instantiator_methods):
10580         (struct Lisp_Image_Instance): make instance geometry signed.
10581
10582         * glyphs.c (instantiate_image_instantiator):
10583         (image_instance_query_geometry):
10584         (image_instance_layout):
10585         (image_instance_layout):
10586         (query_string_geometry):
10587         (text_query_geometry):
10588         (image_instantiate):
10589         (image_instantiate):
10590         (cache_subwindow_instance_in_frame_maybe):
10591         (subwindow_query_geometry): make instance geometry signed.
10592
10593         * glyphs-widget.c (widget_query_geometry):
10594         (widget_layout):
10595         (button_query_geometry):
10596         (tree_view_query_geometry):
10597         (tab_control_query_geometry):
10598         (layout_query_geometry):
10599         (layout_layout):
10600         (native_layout_layout): make instance geometry signed.
10601
10602 2000-05-29  Olivier Galibert  <galibert@pobox.com>
10603
10604         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
10605         constant.
10606
10607         * general.c (syms_of_general): Add Qfull_assoc symbol.
10608
10609         * data.c (finish_marking_weak_lists): Mark full-assoc lists
10610         correctly.
10611         (decode_weak_list_type): Decode full-assoc type.
10612         (encode_weak_list_type): Encode full-assoc type.
10613         (Fmake_weak_list): Update doc string.
10614
10615 2000-05-30  Andy Piper  <andy@xemacs.org>
10616
10617         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
10618
10619         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
10620         (decode_hash_table_weakness): ditto.
10621         (Fhash_table_weakness): ditto.
10622         (Fhash_table_type): ditto.
10623         (finish_marking_weak_hash_tables): ditto.
10624         (hash_table_weakness_validate): ditto.
10625         (syms_of_elhash): ditto.
10626
10627 2000-05-28  Martin Buchholz <martin@xemacs.org>
10628
10629         * XEmacs 21.2.34 is released.
10630
10631 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
10632
10633         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
10634         start cache.
10635         (updating_line_start_cache): Gone.
10636         (regenerate_window): Replace resetting of VERTICAL_CLIP by
10637         generic code to force a minimum of 1 line laid out in the
10638         CMOTION_DISP case.
10639
10640 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
10641
10642         * glyphs.c (instantiate_image_instantiator): Check for initialized
10643         height & width no longer special cases IMAGE_NOTHING.
10644         (nothing_instantiate): Set height and width of instance.
10645
10646 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10647
10648         * unexelf.c (unexec): Search for ".data" section.
10649         Initialize new_data2_offset from old_data_index.
10650         Remove redundant check for ElfW.
10651
10652 2000-05-23  Andy Piper  <andy@xemacs.org>
10653
10654         * glyphs.c (get_image_instantiator_governing_domain): allow more
10655         specific domains as the governing domain rather than expecting an
10656         exact match. This fixes problems with layouts.
10657
10658 2000-05-22  Andy Piper  <andy@xemacs.org>
10659
10660         * redisplay-output.c (compare_runes): check for non-images
10661
10662         * glyphs.c (set_glyph_dirty_p): ditto.
10663         (update_glyph_cachel_data): ditto.
10664
10665         * glyphs-widget.c (layout_post_instantiate): ditto.
10666         (layout_post_instantiate): ditto.
10667
10668         * event-msw.c (mswindows_wnd_proc): warning removal.
10669
10670 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
10671
10672         * s\mingw32.h: Added #undef for CLASH_DETECTION.
10673
10674         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
10675
10676         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
10677
10678         * nt.c (rva_to_section): mingw32 needs rva_to_section.
10679         (mswindows_executable_type): mingw32 now has enough headers for
10680         this to work.
10681
10682 2000-05-20  Andy Piper  <andy@xemacs.org>
10683
10684         * console-msw.c (mswindows_output_last_error): ; -> ,
10685
10686 2000-05-12  Andy Piper  <andy@xemacs.org>
10687
10688         * console-msw.c (FROB): compare ints with ints.
10689
10690 2000-05-11  Andy Piper  <andy@xemacs.org>
10691
10692         * glyphs-x.c (x_finalize_image_instance): make minimal build
10693         happy.
10694
10695 2000-05-20  Ben Wing  <ben@xemacs.org>
10696
10697         * event-Xt.c:
10698         * event-Xt.c (vars_of_event_Xt):
10699         move modifier-keys-are-sticky to event-stream.c.
10700
10701         * event-msw.c:
10702         * event-msw.c (mswindows_enqueue_mouse_button_event):
10703         * event-msw.c (key_needs_default_processing_p):
10704         * event-msw.c (XEMSW_LCONTROL):
10705         * event-msw.c (mswindows_handle_sticky_modifiers):
10706         * event-msw.c (FROB):
10707         * event-msw.c (clear_sticky_modifiers):
10708         * event-msw.c (output_modifier_keyboard_state):
10709         * event-msw.c (output_alt_keyboard_state):
10710         * event-msw.c (mswindows_wnd_proc):
10711         * event-msw.c (mswindows_modifier_state):
10712         * event-msw.c (emacs_mswindows_handle_magic_event):
10713         implement sticky modifiers.
10714
10715         * event-stream.c:
10716         * event-stream.c (vars_of_event_stream):
10717         move modifier-keys-are-sticky here.
10718
10719         * lisp.h:
10720         add CHECK_FUNCTION.
10721
10722         * rangetab.c:
10723         implement map-range-table.
10724
10725
10726 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
10727
10728         * redisplay-tty.c (reset_tty_modes):
10729         (tty_redisplay_shutdown): Adjust argument type to
10730         tty_frame_output_end.
10731
10732 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
10733
10734         * eval.c (Fbacktrace): Don't output a line with only right
10735         parenthesis.
10736
10737 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
10738
10739         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
10740         (Fpq_reset_poll): Ditto.
10741
10742 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
10743
10744         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
10745
10746 2000-05-16  Ben Wing  <ben@xemacs.org>
10747
10748         * buffer.c:
10749         * buffer.c (dfc_convert_to/from_internal_format):
10750         * buffer.c (reinit_vars_of_buffer):
10751         Fix conversion functions to allow reentrancy.
10752
10753         * console-msw.c:
10754         * console-msw.c (mswindows_output_last_error):
10755         New fun, generally useful -- output a human-readable
10756         version of GetLastError() on the console.
10757
10758         * console-msw.h:
10759         * console-msw.h (struct mswindows_frame):
10760         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
10761
10762         * console-stream.c (stream_output_begin):
10763         * console-stream.c (stream_output_end):
10764         * console-stream.c (stream_output_vertical_divider):
10765         * console-stream.c (stream_clear_region):
10766         * console-stream.c (stream_flash):
10767         * console-stream.c (console_type_create_stream):
10768         Delete blank stream methods, not needed.
10769
10770         * console.h (struct console_methods):
10771         Split begin/end methods into window and frame.
10772
10773         * event-msw.c:
10774         * event-msw.c (mswindows_handle_paint):
10775         * event-msw.c (output_alt_keyboard_state):
10776         * event-msw.c (mswindows_wnd_proc):
10777         * event-msw.c (vars_of_event_mswindows):
10778         Comment about problems with ignored-expose.
10779         Define mswindows-debug-events; not really implemented.
10780
10781         * frame-msw.c (mswindows_init_frame_1):
10782         random cleanups.
10783
10784         * glyphs-msw.c:
10785         * glyphs-msw.c (begin_defer_window_pos):
10786         * glyphs-msw.c (mswindows_unmap_subwindow):
10787         * glyphs-msw.c (mswindows_map_subwindow):
10788         * glyphs-msw.c (mswindows_resize_subwindow):
10789         Use DeferWindowPos to reduce flashing when mapping/unmapping.
10790
10791         * glyphs.c (make_image_instance_1):
10792         Fix crash.
10793
10794         * gutter.c (Fredisplay_gutter_area):
10795         Use new begin/end methods.
10796
10797         * lisp.h (Dynarr_new2):
10798         New creation fun.
10799
10800         * redisplay-msw.c:
10801         * redisplay-msw.c (mswindows_frame_output_begin):
10802         * redisplay-msw.c (mswindows_frame_output_end):
10803         * redisplay-msw.c (console_type_create_redisplay_mswindows):
10804         New begin/end methods -- handle DeferWindowPos.
10805
10806         * redisplay-output.c (redisplay_move_cursor):
10807         * redisplay-output.c (redraw_cursor_in_window):
10808         * redisplay-output.c (redisplay_update_line):
10809         * redisplay-output.c (redisplay_output_window):
10810         New begin/end methods.
10811
10812         * redisplay-tty.c:
10813         * redisplay-tty.c (tty_frame_output_begin):
10814         * redisplay-tty.c (tty_frame_output_end):
10815         * redisplay-tty.c (console_type_create_redisplay_tty):
10816         New begin/end methods.
10817
10818         * redisplay-x.c:
10819         * redisplay-x.c (x_window_output_begin):
10820         * redisplay-x.c (x_window_output_end):
10821         * redisplay-x.c (console_type_create_redisplay_x):
10822         New begin/end methods.
10823
10824         * redisplay.c (redisplay_frame):
10825         * redisplay.c (Fredisplay_echo_area):
10826         New begin/end methods.
10827         use MAYBE_DEVMETH for clear_frame; it may not exist.
10828
10829         * window.h (WINDOW_XFRAME):
10830         WINDOW_XFOO macros -- get locale and decode struct pointer.
10831
10832
10833 2000-05-12  Ben Wing  <ben@xemacs.org>
10834
10835         * emacs.c:
10836         * emacs.c (ensure_no_quitting_from_now_on):
10837         * emacs.c (fatal_error_signal):
10838         * emacs.c (mswindows_handle_hardware_exceptions):
10839         * emacs.c (main):
10840         * emacs.c (Fkill_emacs):
10841         * emacs.c (shut_down_emacs):
10842         * emacs.c (assert_failed):
10843         various improvements in fatal error handling.
10844
10845         * eval.c:
10846         move preparing_for_armageddon to emacs.c.
10847
10848         * lisp.h:
10849         declare fatal_error_in_progress.
10850
10851         * print.c:
10852         * print.c (std_handle_out_external):
10853         * print.c (std_handle_out_va):
10854         * print.c (stderr_out):
10855         * print.c (stdout_out):
10856         use console under mswin when no standard output.
10857         don't do code conversion during fatal error.
10858
10859         * scrollbar.c (Fscrollbar_page_up):
10860         * scrollbar.c (Fscrollbar_page_down):
10861         fix missing else.  reindent.
10862
10863 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
10864
10865         Emergency fix.
10866
10867         * glyphs.h (GLYPH_CACHEL_DESCENT):
10868         (GLYPH_CACHEL_DESCENT):
10869         (GLYPH_CACHEL_DESCENT):
10870         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
10871         used in case these are inline functions.
10872         Use more absurd values to error check.
10873
10874         include window.h for error check functions.
10875
10876 2000-05-11  Ben Wing  <ben@xemacs.org>
10877
10878         * cmdloop.c (Freally_early_error_handler):
10879         Display message box under windows; otherwise, message will disappear
10880         before it can be viewed.
10881
10882         * console-msw.c:
10883         * console-msw.c (Fmswindows_message_box):
10884         * console-msw.c (FROB):
10885         * console-msw.c (syms_of_console_mswindows):
10886         Define new fun `mswindows-message-box'.
10887         #### I will merge this into `popup-dialog-box'; just give me
10888         a bit of time.
10889
10890         * general.c:
10891         * general.c (syms_of_general):
10892         Some new symbols used in `mswindows-message-box'.
10893
10894         * glyphs.c:
10895         * glyphs.c (Fset_image_instance_property):
10896         put warning in this fun.
10897
10898         * glyphs.h:
10899         * glyphs.h (GLYPH_CACHEL_WIDTH):
10900         * glyphs.h (GLYPH_CACHEL_ASCENT):
10901         * glyphs.h (GLYPH_CACHEL):
10902         * glyphs.h (GLYPH_CACHEL_GLYPH):
10903         define error-checking versions to try to catch a bug i've seen --
10904         redisplay gets in an infinite loop because the glyph width of the
10905         continuation glyph is 65535.
10906
10907         * lisp.h:
10908         Extern message-box stuff.
10909
10910         * window.c (allocate_window):
10911         * window.c (make_dummy_parent):
10912         * window.c (Fset_window_configuration):
10913         Use EQUAL not EQ for subwindow caches to make them work a bit
10914         better. (Something is still very broken.)
10915
10916
10917 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
10918
10919         * glyphs.c (image_instantiate): Suppress gcc warnings.
10920         (Fmake_image_instance): Fix doc string.
10921         * specifier.c (Fmake_specifier): Ditto.
10922
10923 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
10924
10925         * paths.h.in (PATH_LOCK): Removed.
10926         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
10927         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
10928
10929 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10930
10931         * fns.c (Ffeaturep): Update e-mail address in doc-string.
10932         Document (featurep '(and xemacs 21.02)).
10933
10934 2000-05-09  Ben Wing  <ben@xemacs.org>
10935
10936         * buffer.c (complex_vars_of_buffer):
10937         update modeline-format doc.
10938
10939         * device.h:
10940         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
10941
10942         * emacs.c:
10943         timeline of all released versions of Emacs, for use in creating
10944         authorship comments and in synching up.
10945
10946         * glyphs-widget.c (image_instantiator_buttons):
10947         * glyphs-widget.c (image_instantiator_edit_fields):
10948         * glyphs-widget.c (image_instantiator_combo_box):
10949         * glyphs-widget.c (image_instantiator_scrollbar):
10950         * glyphs-widget.c (image_instantiator_progress_guage):
10951         * glyphs-widget.c (image_instantiator_tree_view):
10952         * glyphs-widget.c (image_instantiator_tab_control):
10953         * glyphs-widget.c (image_instantiator_labels):
10954         * glyphs-widget.c (image_instantiator_layout):
10955         * glyphs-widget.c (image_instantiator_native_layout):
10956         rename decode_domain method to governing_domain.
10957
10958         * glyphs.c:
10959         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
10960         * glyphs.c (add_entry_to_device_ii_format_list):
10961         make sure we don't put an entry more than once into the list.
10962         * glyphs.c (check_instance_cache_mapper):
10963         *************************************************************
10964         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
10965         HAVE BEEN GETTING.
10966         *************************************************************
10967         * glyphs.c (get_image_instantiator_governing_domain):
10968         clean up, expand on new concept of governing domain.
10969         * glyphs.c (instantiate_image_instantiator):
10970         * glyphs.c (allocate_image_instance):
10971         use governing_domain instead of cache_domain in naming.
10972         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
10973         * glyphs.c (make_image_instance_1):
10974         * glyphs.c (Fmake_image_instance):
10975         allow for any domain (not just device), and process the
10976         governing domain correctly.  very big doc fix.
10977         * glyphs.c (Fimage_instance_domain):
10978         new primitive, to retrieve the governing domain of an image instance.
10979         * glyphs.c (image_instantiate):
10980         use new governing_domain stuff.  this fixes a crash you could get
10981         by instantiating certain widget glyphs in frame locales. (should
10982         signal an error instead of crashing.)
10983         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
10984         * glyphs.c (Fglyphp): clean up doc.
10985         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
10986         * glyphs.c (syms_of_glyphs):
10987         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
10988         * glyphs.c (image_instantiator_format_create): add some comments about
10989         bogus code.
10990         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
10991         for current-display-table. (Apparently Hrjove implemented in 1998 a
10992         design I wrote up in 1996, but didn't update the doc string.)
10993
10994         * glyphs.h: clean up a doc string.
10995         * glyphs.h (governing_domain):
10996         * glyphs.h (struct image_instantiator_methods):
10997         changes for governing_domain stuff.
10998
10999         * gutter.c:
11000         * gutter.c (Fgutter_specifier_p):
11001         * gutter.c (Fgutter_size_specifier_p):
11002         * gutter.c (Fgutter_visible_specifier_p):
11003         * objects.c:
11004         * objects.c (Fcolor_specifier_p):
11005         * objects.c (Ffont_specifier_p):
11006         * objects.c (Fface_boolean_specifier_p):
11007         doc strings moved to make-*-specifier.
11008
11009         * redisplay.c (add_disp_table_entry_runes_1):
11010         * redisplay.c (generate_fstring_runes):
11011         * redisplay.c (screen):
11012         add random comments and doc strings.
11013
11014         * specifier.c:
11015         * specifier.c (Fmake_specifier):
11016         major overhaul of this doc string.
11017
11018         * specifier.c (Fvalid_specifier_domain_p):
11019         comment about the bogosity of image instances being domains.
11020         * specifier.c (decode_domain):
11021         now non-static, used in glyphs.c.
11022         * specifier.c (specifier_instance):
11023         comment about the bogosity of image instances being domains.
11024         * specifier.c (Fgeneric_specifier_p):
11025         move doc string to make-generic-specifier.
11026         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11027         rebackslashify.
11028
11029         * specifier.h:
11030         * specifier.h (DOMAIN_FRAME):
11031         * specifier.h (DOMAIN_LIVE_P):
11032         * specifier.h (DOMAIN_XDEVICE):
11033         rebackslashify.
11034         add comments about problems with these macros.
11035         prototype for decode_domain.
11036
11037         * toolbar.c:
11038         * toolbar.c (Ftoolbar_specifier_p):
11039         move doc string to `make-toolbar-specifier'.
11040
11041         * window.c (window_unmap_subwindows_cache_mapper):
11042         *************************************************************
11043         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11044         HAVE BEEN GETTING.
11045         *************************************************************
11046
11047 2000-05-09  Andy Piper  <andy@xemacs.org>
11048
11049         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11050
11051         * window.c (Fset_window_configuration): reset the frame subwindow
11052         cache and re-initialize the window subwindow caches.
11053
11054         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11055
11056 2000-05-09  Ben Wing  <ben@xemacs.org>
11057
11058         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11059         DWORD.
11060
11061 2000-04-26  Mike Woolley  <mike@bulsara.com>
11062
11063         * ntheap.c: Changed recreate_heap to limit the amount reserved
11064         for the heap to that which is actually available. Also now
11065         displays a message box (with some dignostics) in the event that
11066         it still can't start.
11067
11068 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11069
11070         * callproc.c (Fold_call_process_internal): GCPRO path
11071
11072 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11073
11074         Patch by Bill Perry.
11075
11076         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11077         back data instead of #ifdef.
11078         (Fscrollbar_page_down): ditto.
11079
11080 2000-05-07  Ben Wing  <ben@xemacs.org>
11081
11082         * buffer.h:
11083         Kludge for defining Qmswindows_tstr.
11084
11085         * nt.c:
11086         * nt.c (open_input_file):
11087         * nt.c (open_output_file):
11088         * nt.c (rva_to_section):
11089         * nt.c (mswindows_executable_type):
11090         Move all memory-mapped-file routines here (some were in unexnt.c,
11091         which is bad because they are used by process-nt.c, and unexnt
11092         won't be around when portable dumping).  Synched the above routines
11093         with FSF 20.6.
11094
11095         * nt.h:
11096         Removed ifdef'd out bogus code.
11097         Fixed some prototypes.
11098
11099         * nt.h (file_data):
11100         * nt.h (OFFSET_TO_RVA):
11101         * nt.h (RVA_TO_OFFSET):
11102         * nt.h (RVA_TO_PTR):
11103         Moved the memory-mapped-file structures, macros and prototypes
11104         here, to parallel nt.c.  ntheap.h should really be removed
11105         entirely, and it's a non-portable-dumper specific file.
11106
11107         * ntheap.h (round_to_next):
11108         Moved the memory-mapped-file structures, macros and prototypes
11109         to nt.h.
11110
11111         * ntproc.c (compare_env):
11112         Moved rva_to_section and mswindows_executable_type to nt.c.
11113         Moved compare_env to process-nt.c.
11114         ntproc.c will die, one day.
11115
11116         * ntproc.c (sys_spawnve):
11117         Account for win32_ -> mswindows_.
11118
11119         * process-nt.c:
11120         * process-nt.c (struct nt_process_data):
11121         * process-nt.c (ensure_console_window_exists):
11122         * process-nt.c (compare_env):
11123         * process-nt.c (nt_create_process):
11124         * process-nt.c (nt_kill_process_by_pid):
11125         * process-nt.c (syms_of_process_nt):
11126         * process-nt.c (vars_of_process_nt):
11127         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11128         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11129         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11130         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11131         Move compare_env here from ntproc.c.
11132
11133         * process.c (Fprocess_send_region):
11134         Takes an optional fourth argument, BUFFER, which should fix some
11135         problems with call-process.
11136
11137         * syscommctrl.h:
11138         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11139
11140         * syswindows.h:
11141         Move ICC_BAR_CLASSES to syscommctrl.h.
11142         Add preliminary macros for MSWindows/Mule.  More to come.
11143
11144         * unexnt.c:
11145         * unexnt.c (unexec):
11146         open_output_file moved to nt.c.
11147
11148
11149 2000-05-05  Andy Piper  <andy@xemacs.org>
11150
11151         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11152         instance from the frame cache also since GC may catch up too late
11153         to make frame deletion sane.
11154
11155 2000-05-04  Andy Piper  <andy@xemacs.org>
11156
11157         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11158         (x_finalize_image_instance): ungcpro on deletion.
11159
11160         * glyphs.c (image_instantiator_format_create): give pointers a
11161         query geometry method so that the geometry is at least set.
11162
11163         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11164         initialize layouts if using widgets.
11165
11166 2000-05-03  Andy Piper  <andy@xemacs.org>
11167
11168         * nt.c: remove bogus reference to sysmmsystem.h
11169
11170         * gui-x.c (popup_selection_callback): fix no selection abort.
11171
11172 2000-05-02  Andy Piper  <andy@xemacs.org>
11173
11174         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11175         (mswindows_widget_instantiate): ditto.
11176
11177         * glyphs-widget.c (initialize_widget_image_instance): initialize
11178         children correctly.
11179         (widget_instantiate): cope with children and items in the same
11180         instance.
11181
11182         * glyphs.c (mark_image_instance): cope with children as a first
11183         class member.
11184         (image_instance_equal): ditto.
11185         (image_instance_hash): ditto.
11186         (image_instance_changed): ditto.
11187
11188 2000-04-30  Andy Piper  <andy@xemacs.org>
11189
11190         * glyphs.c (subwindow_query_geometry): new function. Return some
11191         defaults.
11192         (subwindow_instantiate): don't assign dimensions if none have been
11193         given.
11194         (image_instantiator_format_create): add subwindow_query_geometry.
11195         (print_image_instance): cope with layouts as widgets.
11196
11197 2000-04-29  Andy Piper  <andy@xemacs.org>
11198
11199         * frame.c (delete_frame_internal): call
11200         free_frame_subwindow_instance_cache so that all subwindows are
11201         finalized before their parent.
11202         (mark_frame): remove subwindow_cachels.
11203         (Fmake_frame): remove subwindow_cachel manipulation.
11204         (allocate_frame_core): subwindow_instance_cache is a weak list.
11205         (delete_frame_internal): set subwindow_instance_cache to nil.
11206
11207         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11208         finalization safe.
11209         (mswindows_finalize_image_instance): use the device
11210         not the domain as the domain may have died already.
11211
11212         * glyphs-x.c (x_finalize_image_instance): ditto.
11213         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11214         HEIGHT.
11215
11216         * redisplay-output.c (redisplay_unmap_subwindows): update for
11217         subwindow instance cache as a weak list.
11218         (redisplay_unmap_subwindows_maybe): ditto.
11219         (redisplay_unmap_subwindows_except_us): ditto.
11220
11221         * glyphs.c (unmap_subwindow): error checking will check the domain
11222         so don't deal with it here. Don't use cachels anymore.
11223         (map_subwindow): ditto.
11224         (update_subwindow_cachel_data): remove old accessor names.
11225         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11226         (Fresize_subwindow): don't update cachel.
11227         (mark_subwindow_cachels):
11228         (update_subwindow_cachel_data):
11229         (add_subwindow_cachel):
11230         (get_subwindow_cachel_index):
11231         (update_subwindow_cachel):
11232         (reset_subwindow_cachels):
11233         (mark_subwindow_cachels_as_not_updated): deleted.
11234         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11235         subwindow instance to the frame cache.
11236         (find_matching_subwindow): update for subwindow instance cache as
11237         a weak list.
11238         (update_widget_instances): ditto.
11239         (image_instance_type_to_mask):inlined.
11240         (free_frame_subwindow_instance_cache): new function. finalize all
11241         subwindows that are instantiated.
11242
11243         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11244         of cachel information.
11245         (IMAGE_INSTANCE_DISPLAY_X):
11246         (IMAGE_INSTANCE_DISPLAY_Y):
11247         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11248         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11249         (XIMAGE_INSTANCE_DISPLAY_X):
11250         (XIMAGE_INSTANCE_DISPLAY_Y):
11251         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11252         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11253         remove subwindow_cachel structure and function references.
11254         (image_instance_type_to_mask): inline from glyphs.c
11255
11256         * redisplay.c (redisplay_frame): remove subwindow_cachel
11257         references.
11258
11259         * frame.h (struct frame): remove subwindow_cachels.
11260         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11261
11262         * frameslots.h: add subwindow_instance_cache.
11263
11264         * window.c (replace_window): check subwindow cache of replacement.
11265         (window_unmap_subwindows_cache_mapper):
11266         (window_unmap_subwindows): new functions. Unmap all subwindows
11267         cached on this window.
11268         (mark_window_as_deleted): unmap all subwindows.
11269
11270 2000-04-27  Andy Piper  <andy@xemacs.org>
11271
11272         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11273
11274         * glyphs-widget.c (widget_layout): return something.
11275         (layout_layout): return something. Fail if not initialized.
11276         (layout_query_geometry): ditto.
11277         (image_instantiator_native_layout): new function. Initialized the
11278         native layout type.
11279         (widget_instantiate): don't do layout stuff here.
11280
11281         * glyphs.c (instantiate_image_instantiator): reorded calling or
11282         instantiate and post_instantiate with layout in between.
11283         (image_instance_layout): be more selective about deciding whether
11284         the layout has been done or not.
11285
11286         * glyphs.h (struct image_instantiator_methods): return a value
11287         from layout_method.
11288
11289 2000-04-26  Andy Piper  <andy@xemacs.org>
11290
11291         * glyphs.c (allocate_image_instance): make initial width and
11292         height unspecified. Set initialized to 0.
11293
11294         * syscommctrl.h new file. Encapsulates commctrl.h.
11295
11296         * syswindows.h new file. Encapsulates windows.h.
11297
11298         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11299         * nt.c: ditto.
11300         * console-msw.h: ditto.
11301
11302         * redisplay-tty.c (tty_output_display_block): remove layout references.
11303
11304         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11305         window handle rather than just the frame.
11306
11307         * glyphs.c (mark_image_instance): remove layout references.
11308         (print_image_instance): ditto.
11309         (image_instance_equal): ditto.
11310         (image_instance_hash): ditto.
11311         (decode_image_instance_type): ditto.
11312         (encode_image_instance_type): ditto.
11313         (image_instantiate): ditto.
11314         (allocate_glyph): ditto.
11315         (Fimage_instance_height): ditto.
11316         (Fimage_instance_width): ditto.
11317         (update_subwindow): ditto.
11318
11319         * redisplay-x.c (x_output_display_block): recode for layouts as
11320         widgets.
11321
11322         * redisplay-output.c (redisplay_output_layout): recode for layouts
11323         as widgets.
11324         (compare_runes): remove layout references.
11325
11326         * redisplay-msw.c (mswindows_output_display_block): recode for
11327         layouts as widgets.
11328
11329         * glyphs-widget.c (image_instantiator_layout): remove
11330         layout_possible_dest_types.
11331         (layout_possible_dest_types): deleted.
11332
11333         * glyphs.h (image_instance_type): remove layout references.
11334         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11335         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11336         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11337
11338 2000-04-25  Andy Piper  <andy@xemacs.org>
11339
11340         * glyphs-widget.c (image_instantiator_buttons):
11341         (image_instantiator_edit_fields):
11342         (image_instantiator_combo_box):
11343         (image_instantiator_scrollbar):
11344         (image_instantiator_progress_guage):
11345         (image_instantiator_tree_view):
11346         (image_instantiator_tab_control):
11347         (image_instantiator_labels):
11348         (image_instantiator_layout): call default post_instantiate method.
11349         (widget_post_instantiate): new function. Simply lays out the
11350         widgets.
11351
11352         * glyphs.h (struct image_instantiator_methods): add
11353         post_instantiate method.
11354
11355         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11356         method calls.
11357
11358 2000-04-23  Andy Piper  <andy@xemacs.org>
11359
11360         * glyphs.h (struct image_instantiator_methods): add
11361         decode_domain_method.
11362         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11363         derived from the domain.
11364         (IMAGE_INSTANCE_FRAME): new accessor.
11365         (XIMAGE_INSTANCE_FRAME): ditto.
11366
11367         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11368         instead of _SUBWINDOW_FRAME.
11369         (finalize_image_instance): ditto.
11370         (Fimage_instance_foreground): ditto.
11371         (Fimage_instance_background): ditto.
11372         (image_instantiate): ditto.
11373         (update_subwindow_cachel): ditto.
11374         (update_subwindow): ditto.
11375         (unmap_subwindow): ditto.
11376         (map_subwindow): ditto
11377         (subwindow_instantiate): ditto.
11378         * glyphs-msw.c (mswindows_update_widget): ditto.
11379         (mswindows_progress_gauge_instantiate): ditto.
11380         (mswindows_tab_control_update): ditto.
11381         * glyphs-x.c (x_update_widget): ditto.
11382         (x_widget_instantiate): ditto.
11383         (x_tab_control_instantiate): ditto.
11384         (x_tab_control_update): ditto.
11385         * event-msw.c (mswindows_wnd_proc): ditto
11386
11387         * glyphs-widget.c (image_instantiator_layout): use
11388         subwindow_decode_domain.
11389         (image_instantiator_buttons): ditto.
11390         (image_instantiator_edit_fields): ditto.
11391         (image_instantiator_combo_box): ditto.
11392         (image_instantiator_scrollbar): ditto.
11393         (image_instantiator_progress_guage): ditto.
11394         (image_instantiator_tree_view): ditto.
11395         (image_instantiator_tab_control): ditto.
11396         (image_instantiator_labels): ditto.
11397         (image_instantiator_layout): ditto.
11398
11399         * glyphs.c: add instance error checking to many functions.
11400         (instantiate_image_instantiator): decode device from cache_domain.
11401         (image_instantiate): partially rewrite by using
11402         decode_image_instantiator_domain to determine what domain the
11403         instance needs to be cached in.
11404         (decode_image_instantiator_domain): new function. Determine what
11405         domain the image needs to be cached in.
11406         (check_window_subwindow_cache): new error checking function.
11407         (check_instance_cache_mapper): ditto.
11408         (check_image_instance_structure): ditto.
11409         (subwindow_decode_domain): new function. Encodes a window as a
11410         subwindow's cache domain.
11411         (image_instantiator_format_create): use it for text and
11412         subwindows.
11413
11414 2000-04-21  Andy Piper  <andy@xemacs.org>
11415
11416         * glyphs.c (image_instance_device): new function.
11417         (image_instance_frame): new function.
11418         (image_instance_window): new function.
11419         (image_instance_live_p): new function.
11420
11421         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11422         cache to nil.
11423
11424         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11425         (IMAGE_INSTANCE_DOMAIN): new accessor.
11426         (XIMAGE_INSTANCE_DOMAIN): ditto.
11427
11428         * glyphs-x.c (x_finalize_image_instance): device->domain.
11429
11430         * glyphs-msw.c (init_image_instance_geometry): device->domain.
11431         (mswindows_finalize_image_instance): ditto.
11432
11433         * glyphs-eimage.c (jpeg_instantiate): device->domain.
11434         (gif_instantiate): ditto.
11435         (png_instantiate): ditto.
11436         (tiff_instantiate): ditto.
11437
11438         * glyphs.c (instantiate_image_instantiator): use domain rather
11439         than device.
11440         (mark_image_instance): device -> domain.
11441         (print_image_instance): ditto.
11442         (finalize_image_instance): ditto.
11443         (image_instance_equal): ditto.
11444         (allocate_image_instance): ditto.
11445         (Fcolorize_image_instance): ditto.
11446         (query_string_geometry): ditto.
11447         (image_instantiate): ditto
11448         (query_string_font): ditto.
11449         (image_instantiate): ditto.
11450         (update_subwindow): ditto.
11451         (unmap_subwindow): ditto.
11452         (map_subwindow): ditto.
11453         (subwindow_instantiate): ditto.
11454
11455         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11456         (DOMAIN_FRAME): ditto.
11457         (DOMAIN_WINDOW): ditto.
11458         (DOMAIN_LIVE_P): ditto.
11459         (XDOMAIN_DEVICE): ditto.
11460         (XDOMAIN_FRAME): ditto.
11461         (XDOMAIN_WINDOW): ditto.
11462
11463         * specifier.c (Fvalid_specifier_domain_p): add image instances as
11464         a valid specifier domain.
11465
11466 2000-04-19  Andy Piper  <andy@xemacs.org>
11467
11468         * glyphs-widget.c (syms_of_glyphs_widget): remove
11469         widget-callback-current-channel.
11470         (vars_of_glyphs_widget): ditto.
11471         * glyphs.h: ditto
11472
11473         * gui.c (get_gui_callback): revert to previous behaviour.
11474
11475 2000-04-18  Andy Piper  <andy@xemacs.org>
11476
11477         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11478         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11479         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11480
11481         * glyphs.c (image_instance_equal): add margin_width.
11482         (image_instance_hash): ditto.
11483
11484         * glyphs-widget.c (widget_instantiate): deal with margin-width.
11485         (layout_query_geometry): ditto.
11486         (layout_layout): ditto.
11487         (syms_of_glyphs_widget): add margin-width.
11488         (image_instantiator_layout): allow margin-width.
11489
11490         * glyphs.c (update_widget_instances): make a normal function.
11491         (syms_of_glyphs): remove Qupdate_widget_instances.
11492         * glyphs.h: ditto.
11493
11494         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11495         so that we don't corrupt ideas about the last event or
11496         command. Remove widget-callback-current-channel fiddling.
11497         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11498
11499 2000-05-01  Martin Buchholz <martin@xemacs.org>
11500
11501         * XEmacs 21.2.33 is released.
11502
11503 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
11504
11505         * make-src-depend: Allow dots in header file name.
11506
11507 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
11508
11509         * mule-charset.h (struct charset_lookup): Add
11510         next_allocated_1_byte_leading_byte and
11511         next_allocated_2_byte_leading_byte.
11512         * mule-charset.c: Move above two variables so that those values
11513         will be dumped.
11514
11515 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
11516
11517         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
11518         when string length is zero.
11519         (find_charsets_in_emchar_string): Ditto.
11520
11521 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
11522
11523         * lisp.h: extern Qdialog and Qmenubar.
11524
11525         * gui-x.c: added events.h.
11526                 also fixed typo which made the file uncompilable.
11527
11528         * general.c: Added Qmenubar and Qdialog
11529
11530 2000-04-28  Ben Wing  <ben@xemacs.org>
11531
11532         * frame-msw.c (mswindows_init_frame_1):
11533         * frame-msw.c (mswindows_mark_frame):
11534         * event-msw.c (mswindows_enqueue_dispatch_event):
11535         * console-msw.h:
11536         * console-msw.h (struct mswindows_frame):
11537         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
11538         there are now three hash tables for callbacks.
11539         mswindows_enqueue_dispatch_event is no longer static.
11540
11541         * dialog-x.c (maybe_run_dbox_text_callback):
11542         * dialog-x.c (dbox_descriptor_to_widget_value):
11543         switch to new cons3 form for callbacks.
11544
11545         * glyphs-msw.c (mswindows_register_gui_item):
11546         * glyphs-msw.c (mswindows_widget_instantiate):
11547         * glyphs-msw.c (add_tree_item):
11548         * glyphs-msw.c (add_tab_item):
11549         new image instance parameter, so it can be passed to callback-ex.
11550         respect :callback-ex as well as :callback.
11551
11552         * glyphs-widget.c (VALID_GUI_KEYWORDS):
11553         add :callback-ex.
11554
11555         * glyphs.c (print_image_instance):
11556         prettify, e.g. now prints widget type.
11557
11558         * gui-x.h:
11559         certain funs have new image instance parameter.
11560
11561         * gui.c:
11562         * gui.c (get_gui_callback):
11563         * gui.c (gui_item_add_keyval_pair):
11564         * gui.c (gui_item_init):
11565         * gui.c (gui_add_item_keywords_to_plist):
11566         * gui.c (mark_gui_item):
11567         * gui.c (gui_item_hash):
11568         * gui.c (gui_item_equal):
11569         * gui.c (copy_gui_item):
11570         * gui.c (syms_of_gui):
11571         recognize callback-ex in a number of places.
11572         also, fix the annoying "can't get out of yes-no dialog" bug.
11573
11574         * gui.h:
11575         * gui.h (struct Lisp_Gui_Item):
11576         recognize callback-ex in a number of places.
11577
11578         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11579         new parameter in button_item_to_widget_value.
11580
11581         * glyphs-x.c (x_update_widget):
11582         * glyphs-x.c (x_button_instantiate):
11583         * glyphs-x.c (x_button_update):
11584         * glyphs-x.c (x_progress_gauge_instantiate):
11585         * glyphs-x.c (x_edit_field_instantiate):
11586         * glyphs-x.c (x_combo_box_instantiate):
11587         * glyphs-x.c (x_tab_control_instantiate):
11588         * glyphs-x.c (x_label_instantiate):
11589         new image instance parameter in various places.
11590
11591         * event-Xt.c:
11592         * event-Xt.c (enqueue_Xt_dispatch_event):
11593         this fun gets exported.
11594
11595         * gui-msw.c:
11596         * gui-msw.c (mswindows_handle_gui_wm_command):
11597         handle both :callback and :callback-ex, and generate our own
11598         event because it's one of the callback-ex arguments.
11599
11600         * gui-x.c:
11601         * gui-x.c (popup_selection_callback):
11602         handle both :callback and :callback-ex, and generate our own
11603         event because it's one of the callback-ex arguments.
11604         * gui-x.c (button_item_to_widget_value):
11605         * gui-x.c (gui_items_to_widget_values_1):
11606         * gui-x.c (gui_item_children_to_widget_values):
11607         * gui-x.c (gui_items_to_widget_values):
11608         new image instance parameter in various places.
11609
11610         * fns.c (Freplace_list):
11611         fix small typo in doc string.
11612
11613         * lisp.h:
11614         declare enqueue_Xt_dispatch_event.
11615
11616 2000-04-28  Ben Wing  <ben@xemacs.org>
11617
11618         * buffer.c:
11619         * buffer.c (Frecord_buffer):
11620         * buffer.c (syms_of_buffer):
11621         delete record-buffer-hook.
11622
11623         * fns.c:
11624         * fns.c (Freplace_list):
11625         * fns.c (syms_of_fns):
11626         new primitive replace-list.
11627
11628         * frameslots.h:
11629         slot for old buffer-alist.
11630
11631         * lisp.h:
11632         exfun replace-list.
11633
11634         * redisplay.c:
11635         * redisplay.c (redisplay_frame):
11636         * redisplay.c (syms_of_redisplay):
11637         * redisplay.c (vars_of_redisplay):
11638         new hook buffer-list-changed-hook.
11639         call it.
11640
11641 2000-04-27  Ben Wing  <ben@xemacs.org>
11642
11643         * extents.h: extern in_modeline_generation.
11644
11645         * redisplay.c (generate_formatted_string_db): set
11646         in_modeline_generation.
11647
11648         * extents.c (extent_changed_for_redisplay): don't mark redisplay
11649         flags if in modeline generation.  otherwise frame-modified-tick
11650         is ticked far too often.
11651         Declare in_modeline_generation.
11652
11653 2000-04-26  Ben Wing  <ben@xemacs.org>
11654
11655         * emacs.c (vars_of_emacs): document quick-build "error-checking"
11656         option.
11657         (vars_of_emacs): add quick-build as an error-checking option.
11658         A bit kludgy, but there doesn't seem much point in creating
11659         a real var for this.
11660
11661         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
11662
11663 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11664
11665         * redisplay.h (struct display_line): Add a new variable,
11666         line_continuation.
11667
11668         * redisplay.c (create_text_block): Set dl->line_continuation if
11669         the line continues.
11670         (create_string_text_block): Ditto.
11671         (regenerate_window_incrementally): Use line_continuation instead
11672         of searching continuation glyph.
11673         (add_margin_runes): Call add_glyph_rune.
11674         (add_glyph_rune): Handle margin glyph.
11675
11676 2000-04-20  Martin Buchholz  <martin@xemacs.org>
11677
11678         * filelock.c (fill_in_lock_file_name):
11679         ANSIfy.
11680         Check for IS_ANY_SEP instead of '/'.
11681         (lock_file_1):
11682         Avoid generating gratuitous garbage.  Call user_login_name() directly.
11683         Never check errno without first seeing that system call failed.
11684         (unlock_file): Add GCPRO.
11685         (Flock_buffer): Fix docstring.
11686         (Ffile_locked_p): Fix docstring.  Add GCPRO.
11687
11688 2000-04-19  Martin Buchholz  <martin@xemacs.org>
11689
11690         * sysdep.c (get_pty_max_bytes):
11691         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
11692         strings longer than 252 bytes.
11693
11694         * md5.c: Unconditionally include ANSI header <limits.h>
11695
11696         * glyphs-x.c (convert_EImage_to_XImage):
11697         * lisp-union.h (union Lisp_Object):
11698         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
11699
11700 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
11701
11702         * filelock.c (current_lock_owner): Remove unused variable o, p.
11703
11704 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
11705
11706         * callint.c: Remove multiply defined symbol Qlet
11707         (syms_of_callint): ditto.
11708
11709 2000-04-14  Andy Piper  <andy@xemacs.org>
11710
11711         * general.c (syms_of_general): add last-command, this-command, let
11712         and funcall.
11713
11714         * lisp.h: declare various symbols.
11715
11716         * glyphs.h: declare Qwidget_callback_current_channel;
11717
11718         * glyphs-widget.c (syms_of_glyphs_widget): add
11719         Qgui_callback_current_channel.
11720         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
11721
11722         * gui-msw.c (mswindows_handle_gui_wm_command): bind
11723         widget-callback-current-channel when invoking the interactive
11724         arg. Also bind last-command and next-command when invoking the
11725         widget updates.
11726         * gui-x.c (popup_selection_callback): ditto.
11727
11728         * gui.c (get_gui_callback): massage args so that we are always
11729         calling eval. This allows us to add our own variable bindings
11730         outside.
11731
11732         * glyphs-x.c (x_button_instantiate): use
11733         gui_items_to_widget_values since this is GC safe.
11734         (x_progress_gauge_instantiate): ditto.
11735         (x_edit_field_instantiate): ditto.
11736         (x_label_instantiate): ditto.
11737
11738         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
11739         (emacs_Xt_event_widget_focus_out): new function
11740         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
11741         focus.
11742         (emacs_Xt_event_add_widget_actions): new function. add focus
11743         functions as actions.
11744         (init_event_Xt_late): use it.
11745
11746 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
11747
11748         * event-stream.c (Fdispatch_event): Doc fix.
11749
11750 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
11751
11752         * postgresql.c: Remove all references to PQsetenv*.
11753
11754         * postgresql.h: Remove references to PGsetenvHandler object.
11755         * lrecord.h (lrecord_type): Ditto.
11756
11757 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11758
11759         * glyphs-msw.h (struct mswindows_image_instance_data): Added
11760         real_heigh and real_width members, and accessor macros for these.
11761
11762         * glyphs-msw.c (init_image_instance_geometry): New function.
11763         (init_image_instance_from_dibitmap): Use it.
11764         (mswindows_resource_instantiate): Use it.
11765         (init_image_instance_from_xbm_inline): Use it.
11766         (mswindows_initialize_image_instance_mask): Use real bitmap
11767         geometry.
11768         (mswindows_create_resized_bitmap): Ditto.
11769         (mswindows_create_resized_mask): Ditto.
11770
11771         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
11772         and bitmap to their surface size.
11773
11774 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
11775
11776         * process-unix.c (unix_send_process): Guard against process MIA
11777         after Faccept_process_output.
11778
11779 2000-04-11  Ben Wing  <ben@xemacs.org>
11780
11781         * eval.c (unbind_to_hairy): fix brokenness introduced by
11782         nanosecond speed improvements.
11783
11784 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
11785
11786         * sunplay.c (init_device): To play sounds correctly, the device
11787         apparently needs to be initialized at least once by XEmacs.  Make
11788         it so.
11789
11790 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11791
11792         * redisplay.c (add_margin_runes): Add text image glyph
11793           handling.
11794
11795 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
11796
11797         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
11798         gcc is newer than 2.5.
11799
11800 2000-04-06  Colin Rafferty  <colin@xemacs.org>
11801
11802         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
11803
11804         * fns.c (size_bit_vector):
11805         * alloc.c (size_vector):
11806         (make_vector_internal):
11807         (make_bit_vector_internal):
11808         (sweep_bit_vectors_1):
11809         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
11810
11811 2000-04-06  Andy Piper  <andy@xemacs.org>
11812
11813         * gmalloc.c (malloc): undo previous change.
11814         (malloc): ditto.
11815         (free): ditto.
11816         (realloc): ditto.
11817
11818 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
11819
11820         * line-number.c (buffer_line_number): Revert to former version.
11821
11822 2000-04-06  Andy Piper  <andy@xemacs.org>
11823
11824         * gmalloc.c (malloc): add error checking.
11825         (malloc): ditto.
11826         (free): ditto.
11827         (realloc): ditto.
11828
11829         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
11830         button_item_to_widget_value arg.
11831
11832         * glyphs-x.c (x_button_instantiate): add extra
11833         button_item_to_widget_value arg.
11834         (x_progress_gauge_instantiate): ditto.
11835         (x_edit_field_instantiate): ditto.
11836         (x_label_instantiate): ditto.
11837
11838         * gui-x.c (gui_items_to_widget_values_1): add extra
11839         button_item_to_widget_value arg.
11840         (button_item_to_widget_value): add extra menu_item_p arg.
11841
11842         * gui-x.h: change signature of button_item_to_widget_value.
11843
11844         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
11845         button_item_to_widget_value arg.
11846
11847 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11848
11849         * buffer.h (struct buffer): auto_save_modified should be long.
11850
11851 2000-04-05  Andy Piper  <andy@xemacs.org>
11852
11853         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
11854         type.
11855         (button_query_geometry): give a little more room so that athena
11856         buttons fit.
11857
11858 2000-04-05  Andy Piper  <andy@xemacs.org>
11859
11860         * faces.c (complex_vars_of_faces): The widget face should inherit
11861         the font of the gui-element face.
11862
11863 2000-04-04  Andy Piper  <andy@xemacs.org>
11864
11865         * glyphs-x.c (x_button_update): new function. unconditionally
11866         update a button's state when the instance is dirty.
11867         (image_instantiator_format_create_glyphs_x): add x_button_update.
11868         (x_widget_instantiate): remove old resize cruft.
11869
11870 2000-04-02  Andy Piper  <andy@xemacs.org>
11871
11872         * frame.c (change_frame_size_1): The introduction of gutters means
11873         that we need to allow 0 as a potential frame dimension.
11874
11875 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11876
11877         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
11878         image glyph if allow_cursor.
11879         (add_hscroll_rune): Don't allow cursor to border glyph.
11880         (create_text_block): Ditto.
11881
11882         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
11883         text not in buffer.
11884         (redisplay_output_layout): Call ensure_face_cachel_complete for
11885         text image glyph.
11886
11887
11888 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11889
11890         * redisplay.c (add_glyph_rune): Adding text image as text runes.
11891
11892         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
11893         not in buffer
11894
11895         * redisplay-tty.c (tty_output_display_block): Delete the routine
11896         for text image glyph
11897         * redisplay-x.c (x_output_display_block): ditto
11898         * redisplay-msw.c (mswindows_output_display_block): ditto
11899
11900 2000-02-02  Mike Alexander  <mta@arbortext.com>
11901
11902         Note: Some of these were committed by accident as part of other
11903         patches.
11904
11905         * regex.c (regex_compile): Avoid compiler warnings.
11906
11907         * ntproc.c (sys_spawnve): Avoid compiler warnings.
11908
11909         * nt.h: Declare term_ntproc correctly.
11910
11911         * nt.c: Remove incorrect declaration of get_home_directory which
11912         is declared correctly in lisp.h.
11913
11914         * keymap.c (get_keyelt): Avoid compiler warnings.
11915         (raw_lookup_key_mapper): Avoid compiler warnings.
11916
11917         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
11918
11919         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
11920
11921         * filemode.c (mode_string): Avoid compiler warnings.
11922
11923         * file-coding.c (Fcoding_system_aliasee): Add return statement to
11924         avoid warning.
11925
11926         * events-mod.h: Undef some things that winuser.h defines differently.
11927
11928         * data.c (Faset): Avoid compiler warnings.
11929
11930         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
11931
11932 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11933
11934         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
11935         Fall through to simple beep on error.
11936         Replace "extern" by real header file.
11937
11938         * linuxplay.c: Use nativesound.h
11939         (play_sound_data): Return error code. Be less verbose on error.
11940
11941         * sunplay.c: Use nativesound.h
11942         (play_sound_data): Return error code. Be less verbose on error.
11943
11944         * ntplay.c: Use nativesound.h
11945         (play_sound_data): Return fake error code
11946
11947         * sgiplay.c: Use nativesound.h
11948         (play_sound_data): Return error code
11949
11950         * hpplay.c: Use nativesound.h, partially implement
11951         new error code. Break compilation until finished.
11952         (play_sound_data): error code.
11953
11954         * nativesound.h (play_sound_file):
11955           (play_sound_data): Prototype in new header.
11956
11957 2000-03-31  Andy Piper  <andy@xemacs.org>
11958
11959         * glyphs-widget.c: (button_query_geometry): new function. Adjust
11960         for toggle and radio buttons.
11961         (image_instantiator_buttons): use it.
11962
11963 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11964
11965         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
11966         (x_update_horizontal_scrollbar_callback): Return if no mirror was
11967         found. Scrollbar event probably belonged to some old config.
11968
11969 2000-03-31  Andy Piper  <andy@xemacs.org>
11970
11971         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
11972         than 1.
11973         (initialize_widget_image_instance): default layout to
11974         LAYOUT_HORIZONTAL rather than 0.
11975         (widget_instantiate): reverse the item list at the end rather than
11976         every iteration.
11977         (layout_layout): re-code for the border text at the front of the
11978         item list rather than at the end.
11979         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
11980         provided by the user.
11981         (widget_query_geometry): comment.
11982
11983 2000-03-30  Andy Piper  <andy@xemacs.org>
11984
11985         * glyphs-widget.c (image_instantiator_layout): allow standard
11986         widget keywords in layouts.
11987
11988         * gutter.c (output_gutter): cope with nil gutter contents.
11989
11990         * frame.c (Fset_frame_properties): add gutter docs.
11991
11992 2000-03-29  Andy Piper  <andy@xemacs.org>
11993
11994         * toolbar-msw.c (TBSTYLE_FLAT): add.
11995         (mswindows_output_toolbar): minor fiddling.
11996
11997 2000-03-29  Andy Piper  <andy@xemacs.org>
11998
11999         * gutter.c (output_gutter): force gutter size recalculation if
12000         what we are trying to display won't fit.
12001         (update_gutter_geometry): new function. A per-gutter version of
12002         update_frame_gutter_geometry.
12003         (update_frame_gutter_geometry): use it.
12004         (redraw_exposed_gutter): add extra debugging output.
12005
12006 2000-03-28  Mike Alexander  <mta@arbortext.com>
12007
12008         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12009         (pdump_file_unmap): Implement it on Windows
12010         (pdump_file_get): Save alocated handles for pdump_file_unmap
12011
12012 2000-03-28  Andy Piper  <andy@xemacs.org>
12013
12014         * gui.c (get_gui_callback): treat Quit specially.
12015
12016 2000-03-27  Andy Piper  <andy@xemacs.org>
12017
12018         * glyphs.c (image_instantiate): be careful to check in the same
12019         way we assigned.
12020
12021 2000-03-27  Didier Verna  <didier@xemacs.org>
12022
12023         * config.h.in: define the proper SMART_INCLUDE macro.
12024         handle renaming of `foo_h_path' to `foo_h_file'.
12025
12026         * database.c: ditto.
12027
12028         * emacs.c: ditto.
12029
12030         * linuxplay.c: ditto.
12031
12032         * terminfo.c: ditto.
12033
12034         * tooltalk.h: ditto.
12035
12036 2000-03-27  Andy Piper  <andy@xemacs.org>
12037
12038         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12039         gets updated whenever the face might have changed.
12040
12041 2000-03-26  Mike Alexander  <mta@arbortext.com>
12042
12043         * dumper.c (pdump_resource_free): Fix the comment.
12044
12045 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12046
12047         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12048
12049 2000-03-22  Mike Alexander  <mta@arbortext.com>
12050
12051         * dumper.c: Include Windows headers on Windows
12052         (pdump_resource_free): Add a body to the function
12053         (pdump_load): exe_name -> exe_path and add some comments.
12054
12055 2000-03-25  Mike Alexander  <mta@arbortext.com>
12056
12057         * gui.c (copy_gui_item_tree): Return a value in all cases
12058
12059 2000-03-21  Didier Verna  <didier@xemacs.org>
12060
12061         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12062         lwlib/config.h.in.
12063         (SMART_INCLUDE): new macro.
12064         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12065         the proper location.
12066
12067         * postgresql.c: use it.
12068
12069         * inline.c: ditto.
12070
12071 2000-03-24  Andy Piper  <andy@xemacs.org>
12072
12073         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12074         do this.
12075
12076 2000-03-24  Andy Piper  <andy@xemacs.org>
12077
12078         * redisplay-output.c (compare_runes): use image_instance_changed
12079         to detect changes. Do not depend on glyphs_changed, only depend on
12080         dirtiness.
12081          (redisplay_output_layout): add debug messages.
12082         (compare_runes): ditto.
12083
12084         * glyphs.h: declare new functions.
12085         (struct Lisp_Image_Instance): remove percent and associated
12086         accessors.
12087
12088         * gui.h: declare new copying functions.
12089
12090         * gui.c (copy_gui_item_tree): new function.
12091         (copy_gui_item): new function.
12092         (gui_item_id_hash): revert to standard hash.
12093         (gui_item_hash): ditto.
12094         (gui_item_hash_internal): deleted.
12095         (mark_gui_item): mark value.
12096         (gui_item_add_keyval_pair): add value.
12097         (gui_item_init): ditto.
12098         (gui_add_item_keywords_to_plist): ditto.
12099         (gui_item_equal): ditto.
12100         (syms_of_gui): add Q_value.
12101
12102         * glyphs-x.c (x_progress_gauge_update): use pending items and
12103         value for setting the state.
12104         (x_update_widget): don't set items from pending here.
12105
12106         * glyphs-widget.c (update_widget): update items here.
12107         (progress_gauge_set_property): use items for storing value. Put
12108         new value in pending items.
12109
12110         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12111         items for new value. Convert percent -> value.
12112         (mswindows_tab_control_update): don't update items here.
12113
12114         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12115         (update_subwindow): ditto.
12116         (image_instance_changed): new function. Compare hash values and
12117         past and present widget items.
12118         (image_instantiate): We more careful about where we instantiate
12119         things.
12120         (image_instantiate): add error checking.
12121
12122         * gutter.c (syms_of_gutter): use -hook.
12123
12124 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12125
12126         * console-tty.c (Fset_console_tty_input_coding_system): Use
12127         Qkeyboard.
12128         (Fset_console_tty_output_coding_system): Use Qterminal.
12129         (tty_init_console): Use Qkeyboard and Qterminal.
12130
12131 2000-03-21  Ben Wing  <ben@xemacs.org>
12132
12133         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12134         From Mike Alexander <mta@arbortext.com>.
12135
12136 2000-03-21  Ben Wing  <ben@xemacs.org>
12137
12138         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12139         process brokenness.  Proper implementation to come.
12140         * callproc.c:
12141         Rename call-process-internal to old-call-process-internal.
12142         New impl. in process.el.
12143
12144 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12145
12146         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12147
12148 2000-03-20  Andy Piper  <andy@xemacs.org>
12149
12150         * glyphs.c (full_list_hash): make hashes of the same elements in
12151         different orders return different values.
12152
12153 2000-03-20  Martin Buchholz <martin@xemacs.org>
12154
12155         * XEmacs 21.2.32 is released.
12156
12157 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12158
12159         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12160         (DFC_MALLOC_USE_CONVERTED_DATA):
12161         Add aliasing-safe casts to allow use with char* or unsigned char*
12162         lvalues.
12163
12164         * eldap.c (Fldap_open):
12165         (Fldap_search_basic):
12166         (Fldap_add):
12167         (Fldap_modify):
12168         Make C++-compilable.
12169         Make sure GCPRO'ed variables are initialized.
12170         Use temp variables to avoid repeated calls to Flength.
12171
12172 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12173
12174         * sysfile.h:
12175         Make sure PATH_MAX is always defined.
12176         Include limits.h for PATH_MAX.
12177         Deprecate use of MAXPATHLEN.
12178
12179 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12180
12181         * emacs.c: Add reinit_vars_of_fileio.
12182         * symsinit.h: Add reinit_vars_of_fileio.
12183         * fileio.c (reinit_vars_of_fileio): New.
12184         * fileio.c (Fmake_temp_name):
12185         Initialize temp_name random number from microseconds to make
12186         collisions even less likely.  Initialize always at process startup
12187         time.  (make-temp-name) used to return the same file name twice in
12188         a row when PDUMP.
12189         Random stylistic fiddling.
12190         Comment fixes.
12191
12192 2000-03-20  Andy Piper  <andy@xemacs.org>
12193
12194         * glyphs.c (image_instantiate): allow text glyphs to be
12195         instantiated in the minibuffer window.
12196
12197 2000-03-19  Andy Piper  <andy@xemacs.org>
12198
12199         * glyphs.c (image_instance_hash): be careful about which items we
12200         hash on.
12201
12202         * glyphs-widget.c (tab_control_set_property): record into pending
12203         items rather than the actual items.
12204
12205         * glyphs-x.c (x_update_widget): use pending items to update with.
12206
12207         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12208         to update with.
12209
12210         * glyphs.c (mark_image_instance): mark pending items.
12211
12212         * window.c (Fset_window_configuration): record the buffer.
12213         (Fselect_window): totally revert previous change which breaks many
12214         things.
12215
12216 2000-03-18  Andy Piper  <andy@xemacs.org>
12217
12218         * glyphs-msw.c (mswindows_tab_control_update): force selected
12219         item.
12220
12221         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12222         window domain cache, otherwise we get inconsistencies at
12223         startup. There is something fishy at startup which can lead to the
12224         minibuffer being the selected window when the gutter content is
12225         instantiated.
12226
12227         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12228         gcpros.
12229         (parse_gui_item_tree_children): ditto.
12230         (parse_gui_item_tree_item): ditto.
12231
12232         * glyphs.c (Fupdate_widget_instances): return something.
12233
12234 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12235
12236         * window.c (Fselect_window): Undo 2000-03-17 change.
12237
12238 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12239
12240         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12241         against v7.0 libraries.  Insta-coredump city until the postgres
12242         folks fix it.
12243
12244 2000-03-17  Andy Piper  <andy@xemacs.org>
12245
12246         * faces.c (complex_vars_of_faces): don't give the widget face an
12247         inherited background pixmap.
12248
12249         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12250         selected item.
12251
12252         * event-stream.c (Fdispatch_non_command_events): return something.
12253
12254         * gutter.c (output_gutter): use widget face.
12255         (clear_gutter): ditto.
12256
12257         * NEWS: adjust again.
12258
12259         * window.c (Fselect_window): make sure this runs to completion to
12260         avoid oddities with Fset_window_configuration.
12261         (Fcurrent_window_configuration): in general do not save the
12262         minibuffer as the selected window.
12263
12264         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12265
12266 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12267
12268         * emacs.c (Frunning_temacs_p): Revert previous patch.
12269         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12270
12271 2000-03-16  Andy Piper  <andy@xemacs.org>
12272
12273         * glyphs-x.c (x_tab_control_update): if no widget values then
12274         return.
12275
12276         * NEWS: update for new features.
12277
12278         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12279         synthetic event to the native system.
12280         (reinit_vars_of_event_Xt): set force_event_pending to
12281         emacs_Xt_force_event_pending.
12282
12283         * events.h (struct event_stream): add force_event_pending.
12284
12285         * specifier.c (recompute_one_cached_specifier_in_window): add
12286         comment.
12287
12288         * redisplay.c (redisplay_frame): don't call
12289         update_frame_subwindows. Reset subwindow cachels when
12290         subwindows_changed, removing this was an optimization too far.
12291
12292         * redisplay-output.c (compare_runes): reorganize so that we catch
12293         glyph changes when we want them. Set optimize_output when this
12294         would help layouts.
12295         (redisplay_output_layout): remove frame_really_changed, use
12296         optimize_output instead.
12297
12298         * redisplay-msw.c (mswindows_output_display_block): reset
12299         optimize_output after outputting a glyph.
12300         * redisplay-x.c (x_output_display_block): ditto.
12301         * redisplay-tty.c (tty_output_display_block): ditto.
12302
12303         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12304         functions.
12305         (gutter_specs_changed): do specific gutter positions.
12306         (top_gutter_specs_changed): new function. Only update the
12307         specified gutter specs.
12308         (bottom_gutter_specs_changed): ditto.
12309         (left_gutter_specs_changed): ditto.
12310         (right_gutter_specs_changed): ditto.
12311
12312         * gui.c (gui_item_hash_internal): new function, does a real hash.
12313         (gui_item_id_hash): use it.
12314         (gui_item_hash): hash the eval'ed gui_item.
12315
12316         * gui-x.c (popup_selection_callback): send an eval event to call
12317         Fupdate_widget_instances.
12318
12319         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12320         to call Fupdate_widget_instances.
12321
12322         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12323         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12324
12325         * glyphs.c: (update_frame_subwindows): deleted.
12326         (Fupdate_widget_instances): new function for updating the dirty
12327         state of widgets that might have changed.
12328         (syms_of_glyphs): add Qupdate_widget_instances.
12329         (full_list_hash): hash a list completely.
12330         (image_instance_hash): use it for items and properties.
12331
12332         * frame-msw.c (mswindows_size_frame_internal): remove unused
12333         variable.
12334
12335         * faces.h (struct face_cachel): fix comment.
12336
12337         * event-stream.c (Fdispatch_non_command_events): new
12338         function. Process non-command events, forcing an event cycle
12339         beforehand.
12340         (syms_of_event_stream): declare.
12341         (event_stream_force_event_pending): new function. Force an event
12342         on the native event queue so that an event cycle will occur next
12343         time we check.
12344
12345         * event-msw.c:
12346         (struct ntpipe_shove_stream):
12347         (mswindows_enqueue_dispatch_event):
12348         (mswindows_dequeue_dispatch_event):
12349         (mswindows_cancel_dispatch_event):
12350         (mswindows_pump_outstanding_events):
12351         (mswindows_drain_windows_queue):
12352         (mswindows_handle_paint):
12353         (mswindows_wnd_proc):
12354         (mswindows_key_to_emacs_keysym):
12355         (get_process_input_waitable):
12356         (emacs_mswindows_delete_stream_pair): re-indent file.
12357         (mswindows_need_event): do not process further fds if the windows
12358         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12359         fixes the 100% cpu problem.
12360         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12361
12362 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12363
12364         * alloc.h: New.
12365         * dumper.h: New.
12366         * dumper.c: New.
12367
12368         * emacs.c: Moved dump file searching to dumper.c.
12369         (Frunning_temacs_p): Fixed.
12370
12371         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12372         last_lrecord_type_index_assigned.
12373
12374 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12375
12376         * symsinit.h: Added reinit parameter to init_console_stream
12377         declaration.
12378
12379         * lisp.h: Added file parameter to pdump_load declaration.
12380
12381         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12382         support.  Added dump file searching.
12383
12384         * config.h.in: Added EMACS_PROGNAME.
12385
12386         * console-stream.c (init_console_stream): Fix reinitialisation
12387         when running from temacs.
12388
12389         * alloc.c (pdump): Add id support.
12390         (pdump_load): Add file parameter and signature/id support.
12391
12392         * Makefile.in.in: Add full pdump support.
12393
12394 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12395
12396         * postgresql.c: Update documentation to reflect latest code
12397         status.
12398         (print_result): Show tuple counts in printed representation when
12399         appropriate.
12400         (Fpq_put_nbytes): MULE-ize.
12401         (Fpq_get_line_async): Ditto.
12402
12403 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12404
12405         * postgresql.c (Fpq_lo_import): Fix return value.
12406         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12407
12408 2000-03-13  Ben Wing  <ben@xemacs.org>
12409
12410         * alloc.c (pdump_load):
12411         Fix compile warning under mswin.
12412
12413 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12414
12415         * postgresql.c: Mule-ization, bug fixes.
12416         Use PG_CODING to encapsulate coding system name changes.
12417         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12418         (pg-coding-system): Create.
12419
12420         (Fpq_conn_defaults): Mule-ize.
12421         (Fpq_connectdb): Mule-ize & bug fix.
12422         (Fpq_connect_start): Mule-ize.
12423         (Fpq_set_client_encoding): Mule-ize.
12424         (Fpq_finish): Document `DEAD' connection status.
12425         (Fpq_clear): Ditto.
12426         (Fpq_pgconn): Mule-ize.
12427         (Fpq_exec): Mule-ize & bug fix.
12428         (Fpq_send_query): Ditto.
12429         (Fpq_get_result): Ditto.
12430         (Fpq_res_status): Mule-ize.
12431         (Fpq_result_error_message): Mule-ize.
12432         (Fpq_ntuples): fix comments.
12433         (Fpq_fname): Mule-ize.
12434         (Fpq_fnumber): Mule-ize.
12435         (Fpq_ftype): fix comments.
12436         (Fpq_get_value): Mule-ize.
12437         (Fpq_cmd_status): Ditto.
12438         (Fpq_cmd_tuples): Ditto.
12439         (Fpq_oid_value): Ditto.
12440         (Fpq_notifies): Ditto.
12441         (Fpq_lo_import): Ditto.
12442         (Fpq_lo_export): Ditto.
12443         (Fpq_get_line): Ditto.
12444         (Fpq_put_line): Mule-ize and bug fix.
12445         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12446
12447 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12448
12449         * postgresql.c (vars_of_postgresql): Mule-ize.
12450         (Fpq_conn_defaults): Ditto.
12451
12452 2000-03-12  Ben Wing  <ben@xemacs.org>
12453
12454         * alloc.c (Fmake_byte_code):
12455         * alloc.c (debug_string_purity_print):
12456         * alloc.c (pdump_backtrace):
12457         * alloc.c (pdump_get_indirect_count):
12458         * alloc.c (pdump_register_sub):
12459         * alloc.c (pdump_register_object):
12460         * alloc.c (pdump_register_struct):
12461         * alloc.c (pdump_dump_data):
12462         * alloc.c (pdump_reloc_one):
12463         Minor cleanups.
12464
12465         * console-msw.c:
12466         * console-msw.c (GetConsoleHwnd):
12467         * console-msw.c (msw_hide_console):
12468         * console-msw.c (msw_show_console):
12469         * console-msw.c (msw_ensure_console_buffered):
12470         * console-msw.c (msw_output_console_string):
12471         * console-msw.c (console_type_create_mswindows):
12472
12473         a) Added functions to manipulate the console window for use with
12474         shell support.
12475
12476         b) Added support for writing text to the console, which is now
12477         used under Windows when xemacs is not being run non-interactively,
12478         to write text that would otherwise be destined for stdout because
12479         under these circumstances, text written to stdout tends to
12480         disappear and not be seen.
12481
12482         * console-msw.h:
12483         * event-Xt.c:
12484         * event-Xt.c (x_event_to_emacs_event):
12485         * event-Xt.c (describe_event_window):
12486         * events-mod.h (XEMACS_MOD_CONTROL):
12487         * events.c:
12488         * events.c (Fmake_event):
12489         * events.c (character_to_event):
12490         * events.c (event_to_character):
12491         * events.c (format_event_object):
12492         * events.c (Fevent_modifiers):
12493         * events.h:
12494         * events.h (struct key_data):
12495         * events.h (struct button_data):
12496         * events.h (struct misc_user_data):
12497         * frame-x.c (Fcde_start_drag_internal):
12498         * frame-x.c (Foffix_start_drag_internal):
12499         * gpmevent.c (Freceive_gpm_event):
12500         * keymap.c:
12501         * keymap.c (bucky_sym_to_bucky_bit):
12502         * keymap.c (control_meta_superify):
12503         * keymap.c (make_key_description):
12504         * keymap.c (keymap_lookup_directly):
12505         * keymap.c (create_bucky_submap):
12506         * keymap.c (keymap_store):
12507         * keymap.c (define_key_check_and_coerce_keysym):
12508         * keymap.c (define_key_parser):
12509         * keymap.c (define_key_alternate_name):
12510         * keymap.c (Fdefine_key):
12511         * keymap.c (raw_lookup_key_mapper):
12512         * keymap.c (struct map_keymap_unsorted_closure):
12513         * keymap.c (map_keymap_unsorted_mapper):
12514         * keymap.c (map_keymap_sort_predicate):
12515         * keymap.c (map_keymap_sorted):
12516         * keymap.c (accessible_keymaps_mapper_1):
12517         * keymap.c (where_is_recursive_mapper):
12518         * keymap.c (describe_map_mapper):
12519         * keymap.c (describe_map_sort_predicate):
12520         * keymap.c (describe_map):
12521         * keymap.c (complex_vars_of_keymap):
12522         And a number of other files, the key modifier preprocessor
12523         constants that xemacs uses have names that conflict with constants
12524         defined under MS Windows for other purposes, so they were renamed
12525         to begin with the prefix XEMACS_. The variables that hold such
12526         modifiers were changed to consistently be of type int to fix
12527         various compile warnings.
12528
12529         * console.c (complex_vars_of_console):
12530         * device.c:
12531         * device-msw.c:
12532         * device-msw.c (mswindows_finish_init_device):
12533         * device-msw.c (msw_get_workspace_coords):
12534         * device-msw.c (mswindows_device_system_metrics):
12535         and various other files, added support for a new
12536         device property called offset-workspace which returns the position
12537         of the upper left corner of the workspace area and goes along with
12538         the existing size-workspace property.
12539
12540         * dialog-msw.c:
12541         * dialog-msw.c (push_bufbyte_string_as_unicode):
12542         * dialog-msw.c (mswindows_popup_dialog_box):
12543         Added support for XEmacs-style accelerator specifications in
12544         button text.  Note: I didn't add support for this under X Windows,
12545         and somebody needs to do this.
12546
12547         * dialog.c:
12548         * dialog.c (Fpopup_dialog_box):
12549         Documented the support for accelerators that was just mentioned.
12550
12551         editfns.c (get_home_directory): Changed behavior under Windows
12552         when HOME not defined; former behavior was irretrievably broken.
12553
12554         * emacs.c:
12555         * emacs.c (main_1):
12556         * emacs.c (main):
12557         * minibuf.c (clear_echo_area_internal):
12558         * minibuf.c (echo_area_append):
12559         * print.c:
12560         * print.c (std_handle_out_external):
12561         * print.c (std_handle_out_va):
12562         * print.c (fatal):
12563         * print.c (write_string_to_stdio_stream):
12564         * print.c (output_string):
12565         * print.c (debug_print):
12566         * print.c (debug_backtrace):
12567         * print.c (debug_short_backtrace):
12568         Cleaned up the code that prints text to stdout so that this can be
12569         changed to output into a console window instead under MS Windows,
12570         as described above.
12571
12572         * eval.c:
12573         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
12574         * eval.c (internal_catch):
12575         * eval.c (unwind_to_catch):
12576         * eval.c (throw_or_bomb_out):
12577         * eval.c (condition_case_1):
12578         * eval.c (signal_1):
12579         * eval.c (check_error_state_sanity):
12580         * eval.c (call_with_suspended_errors_1):
12581         * eval.c (call_with_suspended_errors):
12582         * eval.c (reinit_vars_of_eval):
12583         Added code to catch throw loops and check for a pesky bug that may
12584         be gone now.
12585
12586         * event-msw.c:
12587         * event-msw.c (key_needs_default_processing_p):
12588         * event-msw.c (mswindows_wnd_proc):
12589         * event-msw.c (mswindows_modifier_state):
12590         * event-msw.c (emacs_mswindows_quit_p):
12591         * event-msw.c (vars_of_event_mswindows):
12592         a) Added support for using the alt key to select menu items as is
12593         standard under MS Windows.  This is controlled using the variable
12594         menu-accelerator-enabled, just like under X Windows.  There is an
12595         option on the options menu to turn this support on.  I really
12596         think that it should be on by default under Windows, but I'm not
12597         going to make this change yet.
12598
12599         b)  Added support for dynamic display size changes under Windows.
12600
12601         * event-stream.c:
12602         * event-stream.c (maybe_echo_keys):
12603         * event-stream.c (Fnext_event):
12604         * event-stream.c (command_builder_find_leaf):
12605         * event-stream.c (lookup_command_event):
12606         * event-stream.c (execute_command_event):
12607         * event-stream.c (pre_command_hook):
12608         * event-stream.c (post_command_hook):
12609         * event-stream.c (syms_of_event_stream):
12610         * event-stream.c (vars_of_event_stream):
12611         * event-stream.c (complex_vars_of_event_stream):
12612         * events.h (struct command_builder):
12613
12614         a) Tried to clean up a little bit the horribly written x-specific
12615         accelerator code that crept into this file.  I moved this code
12616         into menubar-x.c where it belongs. I also needed to move the
12617         command builder structure into the file events.h because it is
12618         accessed directly by this accelerator code.  What I didn't do, but
12619         which should be done at some point, is to properly abstract this
12620         code using device methods instead of the kludgy way that it
12621         currently hooks into the event code.
12622
12623         b) Added the lisp variables this-command-properties and
12624         last-command- properties, which should be used to synchronize two
12625         adjacent commands in preference to playing games with the variable
12626         this-command, which is typically what happens.
12627
12628         c) Added some slightly nasty code to hook into the lisp support
12629         for shifted- motion-key selection.  This is actually necessary for
12630         somewhat complicated reasons, which are described in
12631         simple.el. (NB: I think the proper thing would be to have the code
12632         that calls the pre and post command hooks also call out to generic
12633         lisp functions in simple.el, where all built-in stuff could be
12634         added.  I will think about this more.)
12635
12636         * event-unixoid.c (poll_fds_for_input):
12637         * lread.c (readchar):
12638         * redisplay-tty.c (tty_clear_frame):
12639         * redisplay-x.c (x_get_gc):
12640         * signal.c (interrupt_signal):
12641         And a whole bunch of other files: fixed up places that printed
12642         directly to stderr to instead call the function stderr_out so that
12643         the changes I made under Windows work correctly.
12644
12645         * filemode.c (mode_string):
12646         Warning fixes.
12647
12648         * frame-msw.c:
12649         * frame-msw.c (mswindows_size_frame_internal):
12650         Fixed the computation of frame size and position to keep the frame
12651         within the workspace area, rather than within the physical
12652         dimensions of the screen, so that the frame doesn't overlap window
12653         manager decorations, such as the start menu and toolbar, typically
12654         at the bottom of the screen.
12655
12656         * frame.c (vars_of_frame):
12657         Changed the default frame title format under MS Windows to consist
12658         of buffername-XEmacs, which is standard under MS Windows.  I think
12659         it might be a good idea to change this everywhere because I think
12660         it is superior to the current frame title format, but this is the
12661         kind of change that is likely to cause some people to get annoyed,
12662         so I'm not making it.
12663
12664         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
12665
12666         * gui-msw.c (mswindows_handle_gui_wm_command):
12667         Fixed compile warnings.
12668
12669         * gui-x.c:
12670         * gui-x.c (strdup_and_add_accel):
12671         * gui-x.c (button_item_to_widget_value):
12672         * gui-x.h:
12673         Added code to automatically put an accelerator onto the beginning
12674         of menu items that don't have one as is now the standard, and is
12675         described more later.  Also fixed things so that the menu item
12676         name can be an evaluated expression, again a new standard.
12677
12678         * gui.c:
12679         * gui.c (gui_item_add_keyval_pair):
12680         * gui.c (make_gui_item_from_keywords_internal):
12681         * gui.c (gui_add_item_keywords_to_plist):
12682         * gui.c (gui_item_accelerator):
12683         * gui.c (gui_name_accelerator):
12684         * gui.c (gui_item_included_p):
12685         * gui.c (gui_item_display_flush_left):
12686         * gui.c (gui_item_display_flush_right):
12687         * gui.c (parse_gui_item_tree_item):
12688         * gui.c (parse_gui_item_tree_children):
12689         * gui.c (parse_gui_item_tree_list):
12690         Mule-ized.  Cleanup.  GCPRO addition.
12691
12692         * line-number.c (buffer_line_number):
12693         * lisp.h:
12694         * lisp.h (EMACS_INT_MAX):
12695         Added the manifest constant EMACS_INT_MIN corresponding to the
12696         existing constant EMACS_INT_MAX.  This is partially to fix compile
12697         warnings under Windows, and partly for cleanliness.
12698
12699         * menubar-msw.c:
12700         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
12701         * menubar-msw.c (msw_translate_menu_or_dialog_item):
12702         * menubar-msw.c (displayable_menu_item):
12703         * menubar-msw.c (populate_menu_add_item):
12704         * menubar-msw.c (populate_or_checksum_helper):
12705         * menubar-msw.c (populate_menu):
12706         * menubar-msw.c (update_frame_menubar_maybe):
12707         * menubar-msw.c (prune_menubar):
12708         * menubar-msw.c (msw_char_is_accelerator):
12709         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
12710         * menubar-msw.c (mswindows_handle_wm_command):
12711         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
12712         * menubar-msw.c (mswindows_handle_wm_initmenu):
12713         * menubar-msw.c (mswindows_update_frame_menubars):
12714         * menubar-msw.c (mswindows_free_frame_menubars):
12715         * menubar-msw.c (mswindows_popup_menu):
12716         Fixed a bug in handling accelerators where an extra character
12717         would be displayed in the menu item.  Also generalized the
12718         function displayable_menu_item because it is now used by the
12719         dialog box code as well.  And finally, added code in the functions
12720         that create the menubar to extract a list of accelerators for the
12721         top level menubar, which is used in the event code to determine
12722         whether a particular alt-key combination should be used to invoke
12723         a menu item, or should be passed through to access the standard
12724         XEmacs keymap binding for this key combination.
12725
12726         Much needed GCPROing.
12727
12728         * menubar-x.c:
12729         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12730         * menubar-x.c (menu_item_descriptor_to_widget_value):
12731         * menubar-x.c (restore_in_menu_callback):
12732         * menubar-x.c (x_popup_menu):
12733         * menubar-x.c (menu_move_up):
12734         * menubar-x.c (menu_move_down):
12735         * menubar-x.c (menu_move_left):
12736         * menubar-x.c (menu_move_right):
12737         * menubar-x.c (menu_select_item):
12738         * menubar-x.c (command_builder_operate_menu_accelerator):
12739         * menubar-x.c (menu_accelerator_junk_on_error):
12740         * menubar-x.c (command_builder_find_menu_accelerator):
12741         * menubar-x.c (Faccelerate_menu):
12742         * menubar.h:
12743         Moved a whole bunch of code here that was previously in
12744         event-stream.c as described above.  There is also code connected
12745         to the new standard of adding an accelerator to the beginning of
12746         menu items that don't have one as described above and below.
12747
12748         * menubar.c:
12749         * menubar.c (menu_parse_submenu_keywords):
12750         * menubar.c (Fmenu_find_real_submenu):
12751         * menubar.c (Fnormalize_menu_item_name):
12752         * menubar.c (syms_of_menubar):
12753         * menubar.c (vars_of_menubar):
12754         * menubar.c (complex_vars_of_menubar):
12755
12756         a) Cleaned up a bunch of documentation and improved it.
12757
12758         b) XEmacs now automatically adds an accelerator onto the beginning
12759         of any menu items that don't have one.  I did this because there
12760         will inevitably be some menu items on the main menubar that don't
12761         have accelerators on them because the package that adds that
12762         particular menu item hasn't yet been fixed up to have accelerators
12763         in them and it looked rather strange to have some items with and
12764         some items without accelerators, especially since even in items
12765         without accelerators, you can, at least under windows, still
12766         access the item through an accelerator corresponding to the first
12767         character in the item's name.  If people don't like this behavior,
12768         I can add a variable to turn it off optionally, but I'm not sure
12769         this is a good idea because we really do need to have accelerators
12770         on all of the menu items, and if a package doesn't like the
12771         accelerators being put on the first character, then it should put
12772         the accelerators where they belong.
12773
12774         c) I made a behavior change, which is that the descriptor that
12775         specifies the text of the menu item, which formerly was just a
12776         string, can now also be an evaluated expression.  This makes this
12777         descriptor parallel with all of the others, which could also be
12778         evaluated expressions.  This also obviates the need for the
12779         keyword :label, which was previously listed in the documentation
12780         as unimplemented, and which was for the same purpose.
12781
12782         d) GCPROing.
12783
12784         * ntproc.c:
12785         * ntproc.c (new_child):
12786         * ntproc.c (sys_spawnve):
12787         * ntproc.c (find_child_console):
12788         * ntproc.c (sys_kill):
12789         Fixed compile warnings.  By the way, this file should really go
12790         away entirely, and this will happen as soon as Kirill makes his
12791         final round of process cleanups, which affect the function
12792         call-process.
12793
12794         * process-nt.c:
12795         * process-nt.c (struct nt_process_data):
12796         * process-nt.c (find_process_from_pid):
12797         * process-nt.c (send_signal_the_nt_way):
12798         * process-nt.c (enable_child_signals):
12799         * process-nt.c (find_child_console):
12800         * process-nt.c (send_signal_the_95_way):
12801         * process-nt.c (nt_finalize_process_data):
12802         * process-nt.c (ensure_console_window_exists):
12803         * process-nt.c (nt_create_process):
12804         * process-nt.c (nt_kill_child_process):
12805         * process-nt.c (nt_kill_process_by_pid):
12806         * process-nt.c (nt_open_network_stream):
12807         * process-nt.c (vars_of_process_nt):
12808         Copied over code from Emacs 20.5 to correctly send signals to sub-
12809         processes under Windows 95.  Also added code to automatically
12810         create and hide console window when a sub-process is created under
12811         Windows 95, which obviates the need for the separate runemacs.exe
12812         executable, and finally implemented some variables that were
12813         implemented in Emacs 20.5, but previously not in XEmacs.  These
12814         include mswindows- start-process-share-console and
12815         mswindows-start-process-inherit-error-mode. (Both of these only
12816         apply to Windows 95.)
12817
12818         * regex.c (regex_compile): Fixed a compile warning.
12819
12820         * select-msw.c:
12821         * select-msw.c (mswindows_own_selection):
12822         * select-msw.c (mswindows_get_foreign_selection):
12823         * select-msw.c (mswindows_disown_selection):
12824         * select-msw.c (console_type_create_select_mswindows):
12825         * select-msw.c (syms_of_select_mswindows):
12826         Cleaned up the file and implemented the device method
12827         selection_exists_p, which had accidentally been left out.  Also
12828         removed four lisp functions that were remnants from before the
12829         time when the selection code was properly device abstracted.
12830         These functions are no longer needed because there are generic
12831         equivalents, and because they were added recently and don't exist
12832         in FSF Emacs, I don't think there's any problem with just deleting
12833         them.
12834
12835         * sysdep.c:
12836         * sysdep.c (sys_subshell):
12837         Fixed a compile warning, although in this case there's probably
12838         something wrong with this code, and it ought to be looked into
12839         more thoroughly by somebody who understands it.
12840
12841         * window.c:
12842         * window.c (Fwindow_text_area_height):
12843         * window.c (Fwindow_width):
12844         * window.c (Fwindow_full_width):
12845         * window.c (Fwindow_pixel_width):
12846         * window.c (debug_print_window):
12847         * window.c (syms_of_window):
12848         Added functions window-text-area-height and window-full-width,
12849         which are functions for returning various width and height
12850         characteristics of a window. (One of these functions is necessary
12851         for making the file dialog box work correctly, and the other one
12852         was added for completeness.)  Also added a table to the
12853         documentation for window-height which describes the entire scheme
12854         for accessing width and height characteristics of a window.
12855
12856 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12857
12858         * nt.c (fstat): Added a comment for another problem with
12859         non-encapsulated [f]stat(), reported by Adrian Aichner
12860         <aichner@ecf.teradyne.com>.
12861
12862 2000-03-11  Andy Piper  <andy@xemacs.org>
12863
12864         * window.c (make_dummy_parent): initialize subwindow instance
12865         cache.
12866         (Fset_window_configuration): zero extent_modiff.
12867
12868 2000-03-10  Andy Piper  <andy@xemacs.org>
12869
12870         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
12871         more changes can be triggered.
12872         (Fredisplay_frame): ditto.
12873         (Fredraw_device): ditto.
12874         (Fredisplay_device): ditto.
12875         (redisplay_frame): make non-static.
12876         (redisplay_frame): call update_frame_gutter_geometry outside of
12877         display proper.
12878
12879         * gutter.h: declare update_frame_gutter_geometry.
12880
12881         * redisplay.h: declare redisplay_frame.
12882
12883         * gutter.c (update_frame_gutter_geometry): move geometry changes
12884         in update_frame_gutters here. Geometry changes can only occur
12885         outside of redisplay.
12886         (update_frame_gutters): remove geometry change code.
12887         (Fredisplay_gutter_area): make sure that we are in display when we
12888         update and that we have flushed any size changes.
12889
12890 2000-03-11  Andy Piper  <andy@xemacs.org>
12891
12892         * alloc.c (pdump_dump_data): remove i & count shadows.
12893
12894 2000-02-27  Mike Alexander  <mta@arbortext.com>
12895
12896         * sysdep.h: Declare pdump_read_file
12897
12898         * sysdep.c (pdump_read_file): New function
12899
12900         * alloc.c (pdump_load): Call pdump_read_file to get the portable
12901         dump data
12902
12903 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12904
12905         * lrecord.h: add `lrecord_type_pgsetenv'.
12906
12907 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
12908
12909         * symsinit.h: declare (vars|syms)_of* functions.
12910         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
12911
12912 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
12913
12914         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
12915
12916         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
12917         GCCs.
12918
12919         * emacs.c (main_1): Call postgres initialization code.
12920
12921         * postgresql.h: New file.  PostgreSQL RDBMS support.
12922         * postgresql.c: New file.
12923
12924 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12925
12926         * redisplay-output.c (redisplay_output_display_block): Disable
12927         redundant code.
12928
12929 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12930
12931         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
12932         (Fcanna_henkan_next): Ditto.
12933         (Fcanna_bunsetu_henkou): Ditto.
12934         (Fcanna_henkan_kakutei): Ditto.
12935         (Fcanna_henkan_end): Ditto.
12936         (Fcanna_henkan_quit): Ditto.
12937         (Fcanna_henkan_next): Set retun value correctly.
12938         (c2mu): Use unsigned char instead of signed char.
12939
12940 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12941
12942         * emacs.c (main_1): Always call syms_of_gui.
12943         * inline.c: include gui.h
12944
12945 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12946
12947         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
12948         converted to Lisp_Object.
12949         (Qtop_bottom): New variable.
12950         (syms_of_redisplay): Initialize it.
12951         * redisplay.h (Vvisible_bell): Ditto.
12952         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
12953         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
12954         only flash top and bottom.
12955
12956 2000-03-08  Andy Piper  <andy@xemacs.org>
12957
12958         * buffer.c (Frename_buffer): record new buffer name the right way.
12959
12960 2000-03-08  Andy Piper  <andy@xemacs.org>
12961
12962         * glyphs.c (update_subwindow): increase hash depth so that widget
12963         items get picked up properly.
12964
12965         * redisplay-output.c (compare_runes): increase hash depth so that
12966         widget items get picked up properly.
12967
12968 2000-03-08  Andy Piper  <andy@xemacs.org>
12969
12970         * gutter.c (output_gutter): add some debug.
12971
12972         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
12973         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
12974         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
12975
12976         * redisplay-output.c (compare_runes): use display_hash to
12977         determine if glyphs really are not the same.
12978
12979         * glyphs.c (update_subwindow): check display_hash to see if
12980         anything really needs to be updated. If not then do
12981         nothing. Record the display_hash after updating.
12982         (image_instance_equal): compare the image_instance face also.
12983
12984 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
12985
12986         * redisplay.h: Fix comment style.
12987
12988 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
12989
12990         * consle-msw.h (struct mswindows_frame):
12991         Added new member paint_pending to indicate whether a WM_PAINT
12992         magic event has been queued for this frame.
12993
12994         * event-msw.c (mswindows_drain_windows_queue):
12995         Don't queue a WM_PAINT magic event if one is already queued.
12996         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
12997
12998         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
12999
13000 2000-03-07  Didier Verna  <didier@xemacs.org>
13001
13002         * dired.c: #include `regex.h' after `sysfile.h'.
13003
13004 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13005
13006         * sound.c (init_nas_sound): Fix compiler warning.
13007
13008         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13009         (FREE_STRUCT_P):
13010         (MARK_STRUCT_AS_FREE):
13011         (MARK_STRUCT_AS_NOT_FREE):
13012         Make `gcc -fstrict-aliasing' work properly.
13013
13014 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13015
13016         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13017         (mswindows_delete_device): Call CoUnnitialize().
13018
13019         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13020
13021 2000-02-25    <CraigL@DyCon.com>
13022
13023         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13024         <errno.h>.
13025
13026         * sysdep.c: This extern declaration for environ prevents MinGW
13027         from finding the variable in CRTDLL.DLL.
13028
13029         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13030         windows headers.
13031         (SHGFI_EXETYPE): ..
13032         (WM_MOUSEWHEEL): ..
13033         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13034         definitions.
13035         (MMRESULT): Removed, now defined in cygwin's windows headers.
13036         (TIMECAPS): ..
13037         (uid_t,gid_t,pid_t,ssize_t): ..
13038         (_timeb): Removed, MinGW defines both _timeb and timeb.
13039         (HAVE_H_ERRNO): Added.
13040         (HAVE_TZNAME): Added, configure is not detecting this.
13041
13042 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13043
13044         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13045         * syntax.c (syntax_match): Use it.
13046
13047         * cmds.c: Import auto-fill-chars from FSF Emacs.
13048         (Vauto_fill_chars): New variables.
13049         (internal_self_insert): Check Vauto_fill_chars.
13050         (vars_of_cmds):
13051         Declare auto-fill-chars as a Lisp variable and initialize it.
13052
13053 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13054
13055         * fileio.c (Fmake_symbolic_link):
13056         (Ffile_symlink_p):
13057         Run handlers even if local machine doesn't have symlinks.
13058
13059 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13060
13061         * event-msw.c (mswindows_drain_windows_queue):
13062         Don't generate paint magic events for non-XEmacs frames.
13063
13064 2000-03-05  Andy Piper  <andy@xemacs.org>
13065
13066         * redisplay.c (redisplay_frame): generate_displayable_area and
13067         friends assumes that we are not in GC, we therefore have to make
13068         sure that this doesn't happen.
13069
13070         * gutter.c (calculate_gutter_size): generate_displayable_area
13071         assumes that we are not in GC, we therefore have to make sure that
13072         this doesn't happen.
13073
13074 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13075
13076         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13077
13078 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13079
13080         * redisplay.c (regenerate_window): Make sure we set a sane value
13081         for end_pos even if we jump out of the loop.
13082         (regenerate_window): Answer Ben's question :-).
13083         (start_end_of_last_line): Add may_error argument.
13084         (start_of_last_line):
13085         (end_of_last_line): Pass may_error = 0.
13086         (end_of_last_line_may_error): New function.
13087         (pixel_to_glyph_translation): Use it, so we don't crash in
13088         event_to_glyph.
13089
13090 2000-03-04  Andy Piper  <andy@xemacs.org>
13091
13092         * window.h (struct window): add gutter_extent_modiff.
13093
13094         * window.c (allocate_window): zero out gutter_extent_modiff.
13095
13096         * redisplay.h: declare sync_display_line_structs.
13097
13098         * redisplay.c (add_glyph_rune): add a better comment.
13099
13100         * redisplay-output.c (sync_display_line_structs): made non-static.
13101         (compare_runes): remove unneccesary glyph cachel access.
13102
13103         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13104
13105         * gutter.c (output_gutter): don't output the gutter if extent
13106         changes only involve extents in buffers. use 4 sets of display
13107         lines.
13108         (gutter_extent_signal_changed_region_maybe): new function. Mark
13109         extents in gutters as changed.
13110         (update_frame_gutters): use 4 sets of display lines.
13111         (reset_gutter_display_lines): ditto.
13112         (free_frame_gutters): ditto.
13113         (redraw_exposed_gutter): force output of gutters.
13114
13115         * frame.h (struct frame): add 4 sets of gutter display lines.
13116
13117         * extents.c: (extent_changed_for_redisplay): signal changes to
13118         extents in strings in the gutter as well as extents in buffers.
13119
13120 2000-03-02  Andy Piper  <andy@xemacs.org>
13121
13122         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13123
13124         * frame.c (Fmake_frame): make sure the gutters get initialized
13125         after the frame is visible.
13126         (set_frame_selected_window): re-arrange compilation macros a
13127         little.
13128         (change_frame_size_1): mark gutters changed.
13129
13130         * device.c (Fset_device_class): mark gutters changed.
13131
13132 2000-03-01  Andy Piper  <andy@xemacs.org>
13133
13134         * window.c (window_top_frame_gutter_height): deleted.
13135         (window_bottom_frame_gutter_height): ditto.
13136         (window_left_frame_gutter_height): ditto.
13137         (window_right_frame_gutter_height): ditto.
13138         (window_top_gutter_height): don't use them.
13139         (window_bottom_gutter_height): ditto.
13140         (window_left_gutter_width): ditto.
13141         (window_right_gutter_width): ditto.
13142         (Fsplit_window): ditto.
13143         (Fwindow_pixel_edges): don't use border dimensions here.
13144
13145         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13146         (update_scrollbar_instance): ditto.
13147
13148         * redisplay.c (generate_modeline): don't take gutters into account.
13149         (generate_modeline): ditto.
13150         (redisplay_frame): small gutter display optimization.
13151
13152         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13153
13154         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13155         gutters into account.
13156
13157         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13158         for window position and type.
13159
13160         * gutter.c (get_gutter_coords): fix for frame gutters.
13161         (update_frame_gutters): update frame geometry if the gutters have
13162         changed.
13163         (init_frame_gutters): record current gutter geometries.
13164
13165         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13166         var.
13167         (mswindows_widget_instantiate): ditto.
13168
13169         * frame.h (struct frame): add current_gutter_bounds.
13170
13171         * frame.c (change_frame_size_1): position window and minibuffer
13172         appropriately taking into account the frame gutters.
13173
13174         * frame-x.c: (x_initialize_frame_size): take into account the
13175         frame gutters.
13176
13177 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13178
13179         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13180
13181 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13182
13183         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13184
13185 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13186
13187         * file-coding.c (reset_decoding_stream): Clear previous
13188         detection state when autodetect.
13189
13190 2000-02-29  Didier Verna  <didier@xemacs.org>
13191
13192         * extents.c (set_extent_glyph_1): don't require extents to be
13193         attached.
13194
13195 2000-02-27  Andy Piper  <andy@xemacs.org>
13196
13197         * gutter.c (Fset_default_gutter_position): don't default left and
13198         right gutter visibility to t.
13199         (Fset_default_gutter_position): run
13200         default-gutter-position-changed-hook.
13201         (syms_of_gutter): add default-gutter-position-changed-hook.
13202
13203 2000-02-26  Andy Piper  <andy@xemacs.org>
13204
13205         * specifier.c (Fmake_specifier): add gutter references.
13206
13207         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13208
13209         * lisp.h: declare Fvalid_plist_p.
13210
13211         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13212         as changed.
13213         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13214         well as its visibility so that it gets reconstructed.
13215         (construct_window_gutter_spec): new function. Construct a string
13216         to be displayed in the gutter from a plist of strings. Take care
13217         to only use elements that are declared as visible.
13218         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13219         WINDOW_GUTTER.
13220         (gutter_validate): allow plists of strings in the specifier.
13221         (gutter_specs_changed): construct the real_gutter from the gutter
13222         specs using construct_window_gutter_spec.
13223         (gutter_visible_validate): gutter-visible is a new specifier type.
13224         (Fgutter_visible_specifier_p): new function for the new specifier.
13225         (syms_of_gutter): declare gutter-visible and
13226         Fgutter_visible_specifier_p.
13227         (specifier_type_create_gutter): intitalize new gutter-visible
13228         specifier.
13229         (reinit_specifier_type_create_gutter): ditto.
13230         (specifier_vars_of_gutter): use new specifier type for gutter
13231         visibility.
13232         (init_frame_gutters): construct real_gutter correctly.
13233         (Fgutter_specifier_p): beef up documentation.
13234         (Fgutter_size_specifier_p): ditto.
13235
13236         * winslots.h: add real_gutter slots.
13237
13238 2000-02-25  Andy Piper  <andy@xemacs.org>
13239
13240         * device-msw.c: Be kind to older cygwin versions. From Raymond
13241         Toy <toy@rtp.ericsson.se>.
13242
13243         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13244         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13245
13246 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13247
13248         * elhash.c (MARK_OBJ): Practice macro hygiene.
13249
13250 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13251
13252         * miscplay.c: s/__inline__/inline/g;
13253         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13254         (get_device_compdc): INLINE ==> static inline
13255         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13256         find -name '*.h' | \
13257         xargs global-replace \
13258         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13259
13260 2000-02-25  Andy Piper  <andy@xemacs.org>
13261
13262         * window.c (window_top_frame_gutter_height): new function.
13263         (window_top_window_gutter_height): ditto.
13264         (window_top_gutter_height): use them.
13265         (window_bottom_frame_gutter_height): new function.
13266         (window_bottom_window_gutter_height): ditto.
13267         (window_bottom_gutter_height): use them.
13268         (window_left_window_gutter_width): new function.
13269         (window_left_frame_gutter_width): ditto.
13270         (window_left_gutter_width): use them.
13271         (window_right_window_gutter_width): new function.
13272         (window_right_frame_gutter_width): ditto.
13273         (window_right_gutter_width): use them.
13274         (window_pixel_height): new function. calulate window pixel height
13275         with frame gutter involvement.
13276         (Fsplit_window): calculate new sizes taking frame gutters into
13277         account.
13278         (window_char_height_to_pixel_height): don't include frame gutters.
13279         (window_char_height): use window_pixel_height.
13280         (window_pixheight): rename from window_pixel_height.
13281         (change_window_height): use it.
13282         (window_pixel_height_to_char_height): don't include frame gutters.
13283         (window_char_width_to_pixel_width): ditto.
13284
13285 2000-02-25  Andy Piper  <andy@xemacs.org>
13286
13287         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13288         if it is.
13289
13290 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13291
13292         * alloc.c (staticpro):
13293         (staticpro_nodump):
13294         (dumpstruct):
13295         (dumpopaque):
13296         (pdump_wire):
13297         (pdump_wire_list):
13298         (compact_string_chars):
13299         (pdump_dump_wired):
13300         Convert:  if (foo) abort();  ==>  assert (! foo);
13301
13302         * eldap.c (Fldap_search_basic):
13303         (Fldap_add):
13304         (Fldap_modify):
13305         (Fldap_delete):
13306         Fix compiler warnings, and possible crashes if (random) return
13307         value were to be used.
13308
13309 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13310
13311         * device-msw.c: Workaround ResetDC failure.
13312
13313         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13314         applying a devmode.
13315
13316         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13317         (mswindows_text_width): Do not start printer page.
13318
13319         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13320
13321         * glyphs-msw.c: Added image methods to msprinter console and
13322         msprinter-specific image instantiation.
13323
13324 2000-02-20  Mike Alexander  <mta@arbortext.com>
13325
13326         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13327         to avoid crashes when selection-sets-clipboard is on
13328         (mswindows_own_selection): ditto
13329
13330 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13331
13332         * glyphs-msw.c:
13333         * redisplay-msw.c (get_frame_dc):
13334         (get_frame_compdc):
13335         * console-msw.h:
13336         * device-msw.c (mswindows_init_device):
13337         (mswindows_delete_device):
13338         (msprinter_init_device):
13339         (msprinter_delete_device):
13340         * frame-msw.c (mswindows_init_frame_1):
13341         (mswindows_delete_frame):
13342         (msprinter_init_frame_3):
13343         (msprinter_delete_frame): Move compatible DC to device object from
13344         frame object, for both mswindows and msprinter. Only one at a time
13345         is needed, it is a real waste to have one per frame!
13346
13347 2000-02-23  Andy Piper  <andy@xemacs.org>
13348
13349         * glyphs.c: add dynamic width and height elements.
13350         (image_instance_equal): ditto.
13351
13352         * glyphs-widget.c (widget_query_geometry): calculate width and
13353         height dynamically if required.
13354         (initialize_widget_image_instance): initialize dynamic dimensions.
13355         (widget_instantiate): pick-up dynamic dimensions.
13356
13357         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13358         dynamic determination. Add appropriate macros.
13359
13360         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13361         dimensions safe.
13362         (WINDOW_GUTTER_SIZE): ditto.
13363         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13364
13365         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13366         inline.
13367         (get_frame_dc): ditto.
13368
13369         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13370         here.
13371
13372 2000-02-23  Martin Buchholz <martin@xemacs.org>
13373
13374         * XEmacs 21.2.31 is released.
13375
13376 2000-02-22  Ben Wing <ben@xemacs.org>
13377
13378         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13379
13380 2000-02-22  Andy Piper  <andy@xemacs.org>
13381
13382         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13383
13384 2000-02-21  Mike Sperber <mike@xemacs.org>
13385
13386         * .dbxrc:
13387         * .gdbinit:
13388         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13389         variables.
13390
13391 2000-02-21  Mike Sperber <mike@xemacs.org>
13392
13393         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13394
13395 2000-02-21  Martin Buchholz <martin@xemacs.org>
13396
13397         * XEmacs 21.2.30 is released.
13398
13399 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13400
13401         Performance hacking.
13402         * *.c (syms_of_*):
13403         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13404         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13405         * emacs.c (main_1):
13406         * lisp.h (DEFUN):
13407         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13408         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13409         * symeval.h (DEFVAR_SYMVAL_FWD):
13410         * symbols.c (guts_of_unbound_marker):
13411         Make all c_readonly objects also lisp_readonly and marked for life.
13412         * lrecord.h (struct lrecord_implementation):
13413         Document flags better.
13414         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13415         * lrecord.h (DECLARE_LRECORD):
13416         * lrecord.h (XSETRECORD):
13417         * lrecord.h (RECORDP):
13418         * lrecord.h (RECORD_TYPEP):
13419         * lrecord.h (RECORD_MARKER): New.
13420         * lrecord.h (error_check_*):
13421         * lrecord.h (CONCHECK_NONRECORD):
13422         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13423         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13424         * lrecord.h (set_lheader_implementation):
13425         * lrecord.h (enum lrecord_type): New.
13426         * symeval.h (SYMBOL_VALUE_MAGIC_P):
13427         * alloc.c (disksave_object_finalization_1):
13428         * alloc.c (mark_object):
13429         * alloc.c (lrecord_type_index):
13430         * alloc.c (tick_lcrecord_stats):
13431         * alloc.c (Fgarbage_collect):
13432         * alloc.c (init_alloc_once_early):
13433         * alloc.c (pdump_load):
13434         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13435         * alloc.c (lrecord_type_index): Delete.
13436         Make lisp object type indexes be constant.
13437           Makes (byte-compile) 5% faster.
13438         Put all marker functions into their own array.
13439           Makes (garbage-collect) 5% faster.
13440         Optimize SYMBOL_VALUE_MAGIC_P.
13441           Makes (byte-compile) 2-3% faster.
13442         * config.h.in (gc_checking_assert): New.
13443         * alloc.c: Use gc_checking_assert().
13444         * .dbxrc: Make compatible with new object type implementation.
13445         * .gdbinit: Make compatible with new object type implementation.
13446         * alloc.c: Delete all symbols defined only for debugging, such as
13447         Lisp_Type_Vector and lrecord_charset.
13448
13449 2000-02-21  Andy Piper  <andy@xemacs.org>
13450
13451         * gui-msw.c (Fmswindows_shell_execute): fix file location
13452         problems.
13453
13454         * buffer.c (Fkill_buffer): remove buffer from alist buffer
13455         unshowing so that set_window_buffer doesn't undo
13456         kill_buffer_hook's hard work.
13457
13458         * glyphs-widget.c (tab_control_query_geometry): don't count the
13459         first item when calculating geometry.
13460
13461         * glyphs.c (map_subwindow): remove redundant code.
13462         (update_frame_subwindows): be more circumspect about when to
13463         update subwindows.
13464
13465         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13466         when items haven't changed. Update faces if faces have changed as
13467         well as just the widget face.
13468         (x_tab_control_update): Update faces if faces have changed as well
13469         as just the widget face.
13470
13471 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13472
13473         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13474         registration.
13475         (build_syscolor_string): Use mswindows_color_to_string to try to
13476         get a named color.
13477         (mswindows_device_system_metrics): Reverse the foreground and
13478         background colors so that they match the documentation.
13479
13480         * objects-msw.c: (mswindows_X_color_map): tweak some values so
13481         they match the default Windows palette.
13482         (mswindows_color_to_string): New function.
13483
13484 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13485
13486         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13487
13488 2000-02-18  Olivier Galibert  <galibert@pobox.com>
13489
13490         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13491         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13492
13493         * symbols.c (init_symbols_once_early): Removed obsolete
13494         DATA_SEG_BITS related kludge.
13495         (defvar_magic): Ditto.
13496
13497         * malloc.c: Removed obsolete DATA_SEG_BITS
13498         * ralloc.c: Ditto.
13499         * mem-limits.h: Ditto.
13500
13501         * Makefile.in.in: Removed obsolete HAVE_SHM
13502         * emacs.c: Ditto.
13503
13504 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13505
13506         *  device-msw.c (mswindows_delete_device): Free DDE string
13507         handles.
13508
13509 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13510
13511         * keymap.c (get_keyelt):
13512         * unexnt.c (unexec):
13513         * vm-limit.c (memory_warnings):
13514         * ntheap.c (recreate_heap):
13515         * ntheap.h (UNINIT_PTR):
13516         * select-msw.c (Fmswindows_get_clipboard):
13517         (Fmswindows_set_clipboard):
13518         * objects-msw.h (MSWINDOWS_BAD_HFONT):
13519         * objects-msw.c:
13520         * menubar-msw.c (displayable_menu_item):
13521         * glyphs-msw.c:
13522         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
13523         * sysdep.c (sys_subshell):
13524         * process-nt.c (nt_create_process):
13525         * nt.c (normalize_filename):
13526         (dostounix_filename):
13527         (unixtodos_filename):
13528         * ntproc.c (win32_executable_type):
13529         * ntplay.c (play_sound_data_1):
13530         (play_sound_file):
13531         * editfns.c (get_home_directory):
13532         * event-msw.c (struct winsock_stream):
13533         (mswindows_dde_callback):
13534         * device-msw.c (msprinter_init_device):
13535         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
13536
13537         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
13538         mswindows_clear_toolbar were swapped!
13539
13540         * objects-msw.c:(colormap_t):
13541         (fontmap_t):
13542         * emacs.c (struct standard_args): Fixed const jumble.
13543
13544         * glyphs-widget.c (update_widget): Fixed comparison notation.
13545
13546         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
13547
13548         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
13549         __declspec(noreturn) syntax.
13550
13551 2000-02-19  Martin Buchholz  <martin@xemacs.org>
13552
13553         * eldap.c (Fldap_open):
13554         (Fldap_search_basic):
13555         (Fldap_add):
13556         (Fldap_modify):
13557         Use new coding system conversion macros.
13558
13559 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13560
13561         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
13562
13563 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
13564
13565         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
13566         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13567
13568         * eldap.c (Qadd, Qreplace): New constant symbols
13569         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
13570         interruptions by XEmacs signals
13571         Remove unnecessary calls to slow_down_interrupts and
13572         speed_up_interrupts
13573         (Fldap_search_basic): Renamed from Fldap_search_internal
13574         Added new optional parameter VERBOSE that triggers the
13575         display of progress messages
13576         Remove unnecessary calls to slow_down_interrupts and
13577         speed_up_interrupts
13578         LDAP result code analysis rewritten
13579         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13580         (syms_of_eldap): Define the new symbols and functions
13581
13582
13583 2000-02-17  Martin Buchholz  <martin@xemacs.org>
13584
13585         * realpath.c: Determine PATH_MAX maximally portably.
13586
13587         * insdel.c (bytecount_to_charcount): Optimize.
13588         The function used to be optimized for entirely ASCII sequences.
13589         Now it is optimized for successive characters from the same
13590         charset.  This also wins big for _mostly_ ASCII sequences.
13591
13592         * fileio.c (Ffile_truename): convert return from realpath() using
13593         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
13594         - Rewrite GCPROing slightly.
13595
13596         * sysdep.c (sys_open): Do filename conversion, like all other
13597         sys_* functions.  Fixes bug:
13598         (let ((file-name-coding-system 'iso-8859-2))
13599            (write-region x y latin2-name))
13600         ==> writes filename using internal encoding.
13601
13602 2000-02-18  Martin Buchholz  <martin@xemacs.org>
13603
13604         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
13605         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
13606         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
13607         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
13608         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
13609         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
13610         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
13611         (CONST_IF_NOT_DEBUG): Delete.
13612         * alloc.c (this_one_is_unmarkable): Delete.
13613         (mark_object): Don't check for this_one_is_unmarkable. Use the
13614         c_readonly flag instead.
13615         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
13616
13617 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13618
13619         * event-msw.c (mswindows_drain_windows_queue):
13620         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
13621         away redundant repaint events.
13622
13623 2000-02-17  Andy Piper  <andy@xemacs.org>
13624
13625         * redisplay.h: declare mark_redisplay_structs.
13626
13627         * redisplay.c (redisplay_window):
13628         (redisplay_frame): don't check subwindows_state_changed.
13629         (mark_redisplay): mark gutters here.
13630
13631         * glyphs.c: (instantiate_image_instantiator): always layout if we
13632         haven't done so already.
13633         (allocate_image_instance): don't mark as dirty.
13634         (update_subwindow): bind inhibit_quit.
13635
13636         * gutter.c (mark_gutters): new function.
13637
13638         * glyphs-x.c (x_update_widget): Always resize to get round a
13639         widget bug.
13640
13641         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
13642         breaking absolutely everything.
13643
13644         * gutter.h: declare mark_gutters.
13645
13646 2000-02-16  Martin Buchholz <martin@xemacs.org>
13647
13648         * XEmacs 21.2.29 is released.
13649
13650 2000-02-15  Olivier Galibert  <galibert@pobox.com>
13651
13652         * fns.c (size_bit_vector): Fix computation of the size.
13653
13654 2000-02-15  Martin Buchholz  <martin@xemacs.org>
13655
13656         * *.[ch]: Change CONST to const globally.
13657         find -name '*.[ch]' | \
13658         xargs global-replace \
13659         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
13660         - Remove vestigial references to CONST_IS_LOSING
13661
13662 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13663
13664         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
13665         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
13666         events instead of dispatching them directly.
13667         (mswindows_handle_paint): New function to do repainting.
13668         (mswindows_wnd_proc):
13669         (emacs_mswindows_handle_magic_event): Call above function.
13670
13671 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13672
13673         * objects-msw.c (mswindows_create_font_variant): Return the new
13674         font handle.
13675         (initialize_font_instance): Get font metrics from the underlined
13676         variant of the font to cope with the case where the underlined
13677         font has a bigger descent.
13678
13679 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
13680
13681         * gui.c (gui_item_accelerator): Return the first underlined
13682         character in item name.
13683
13684 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13685
13686         * lisp.h: Added Qprinter.
13687
13688         * general.c (syms_of_general): Initialized it.
13689
13690         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
13691         (get_frame_dc):
13692         (get_frame_compdc): Made inline.
13693
13694         * console.h (struct console_methods): Added eject_page method.
13695
13696         * frame.h: Added FRAME_DISPLAY_P and friends.
13697         Aligned backslahes in many macros in more readable fashion.
13698         Added page_number to struct frame, and an accessor macro
13699         for it.
13700
13701         * defice.h: Added DEVICE_DISPLAY_P and friends.
13702
13703         * device.c (Fdevice_printer_p): Used these.
13704
13705         * frame.c (allocate_frame_core): Initialize page number.
13706         (Fprint_job_page_number):
13707         (Fprint_job_eject_page): Implemented.
13708
13709         * frame-msw.c (msprinter_eject_page): Added method.
13710         (msprinter_start_page): Added.
13711
13712         * window.c (Fwindow_truncated_p): Fixed docstring.
13713         (Fwindow_last_line_visible_height): Implemented.
13714
13715 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13716
13717         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
13718
13719 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13720
13721         * syntax.c (scan_words): Always advance at least one character.
13722
13723 2000-02-13  Andy Piper  <andy@xemacs.org>
13724
13725         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
13726         to make sure the glyph is in the cachels.
13727
13728         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
13729         global image instance flag.
13730         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
13731         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
13732
13733         * glyphs.c (allocate_image_instance): set dirty bits correctly.
13734         (Fset_image_instance_property): mark layout as changed.
13735         (invalidate_glyph_geometry_maybe): mark layout as changed.
13736         (glyph_width): use new NEEDS_LAYOUT macro.
13737         (glyph_ascent): ditto.
13738         (glyph_descent): ditto.
13739         (glyph_height): ditto.
13740         (image_instance_layout): mark layout as clean after laying out.
13741         (update_subwindow): don't mark layout as clean here.
13742
13743         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
13744         should no longer be needed.
13745
13746         * glyphs-x.c (x_update_widget): sanitize asserts.
13747         (x_finalize_image_instance): sanitize assignment to widgets.
13748
13749         * glyphs-widget.c (widget_instantiate): don't need to clear the
13750         layout flag here.
13751
13752 2000-02-13  Martin Buchholz  <martin@xemacs.org>
13753
13754         * sysdep.c (getcwd): Use standard prototype.
13755         * sysdep.h (getcwd): Use standard prototype.
13756
13757         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
13758         (sequence, start, end).
13759         Remove redundant type checking.
13760         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
13761         view of `caller-protects') to avoid a crash where the real fix was
13762         found elsewhere.
13763
13764 2000-02-12  Martin Buchholz  <martin@xemacs.org>
13765
13766         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
13767
13768         * s/sol2.h: Remove feature macro initialization.
13769
13770         * alloc.c (alloc_lcrecord): Add more type checking assertions.
13771         (vector_hash): New.  Code from internal_hash.
13772         * lrecord.h:
13773         Fix up allocation subsystem comments.
13774
13775         * config.h.in: Add __EXTENSIONS__ for Solaris.
13776
13777         * systime.h (EMACS_GETTIMEOFDAY): New.
13778         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
13779         Remove Solaris-specific code.
13780         Use void* for the (ignored) second arg for gettimeofday().
13781
13782         * elhash.c (hash_table_hash): Implement it, finally.
13783         * elhash.c:  Use hashcode_t.
13784
13785         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
13786         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
13787
13788         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
13789         * fns.c (size_bit_vector):
13790         * alloc.c (size_vector):
13791         (make_vector_internal):
13792         (make_bit_vector_internal):
13793         (sweep_bit_vectors_1):
13794         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
13795
13796 2000-02-10  Martin Buchholz  <martin@xemacs.org>
13797
13798         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
13799         Include strings.h to avoid warnings for bzero and strcasecmp.
13800
13801 2000-02-10  Olivier Galibert  <galibert@pobox.com>
13802
13803         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
13804         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
13805
13806         * fns.c (size_bit_vector): New.  Declare bit vectors as a
13807         sequence.
13808
13809 2000-02-10  Olivier Galibert  <galibert@pobox.com>
13810
13811         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
13812         use a value field instead.
13813         (symbol_value_forward_forward): Use value field.
13814         (DEFVAR_SYMVAL_FWD): Use value field.
13815         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
13816         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
13817         (DEFVAR_CONST_INT): Ditto.
13818         (DEFVAR_BOOL): Ditto.
13819         (DEFVAR_CONST_BOOL): Ditto.
13820         (DEFVAR_INT_MAGIC): Ditto.
13821         (DEFVAR_BOOL_MAGIC): Ditto.
13822
13823         * symbols.c (guts_of_unbound_marker): Use value field.
13824         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
13825         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
13826
13827         * lisp.h: Declare dumpopaque and noninteractive1.
13828
13829         * alloc.c (dumpopaque): Added.
13830         (pdump_dump_opaquevec): Added.
13831         (pdump): Call pdump_dump_opaquevec to dump opaque data.
13832         (pdump_load): Reload opaque data.  Sync noninteractive1 with
13833         noninteractive.
13834
13835 2000-02-10  Andy Piper  <andy@xemacs.org>
13836
13837         * glyphs.c (image_instance_layout): if the size changes, mark it
13838         as such.
13839
13840         * redisplay-output.c (redisplay_output_layout): Update the
13841         subwindow here.
13842         (redisplay_output_subwindow): ditto.
13843
13844         * glyphs.c (update_subwindow): make sure we reset flags for
13845         layouts as well as everything else.
13846
13847         * glyphs-widget.c (layout_layout): don't need to set the instances
13848         dimensions here.
13849
13850 2000-02-09  Martin Buchholz  <martin@xemacs.org>
13851
13852         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
13853         not HAVE_DLOPEN, which is a lower-level thing.
13854
13855         * .cvsignore: Ignore gmon.out
13856
13857 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
13858
13859         * .cvsignore: Ignore portable dumper xemacs.dmp file
13860
13861 2000-02-09  Andy Piper  <andy@xemacs.org>
13862
13863         * redisplay-output.c (redisplay_output_layout): be more clever
13864         about when we output based on the changed flags.
13865
13866         * glyphs.h (struct image_instantiator_methods): add update_method.
13867         (struct Lisp_Image_Instance): add changed flags. Declare new
13868         macros for manipulating them.
13869
13870         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
13871         (image_instance_parent_glyph): find an image_instance's parent
13872         glyph or image_instance.
13873         (image_instance_layout): mark the size as changed.
13874         (set_image_instance_dirty_p): new function. mark an image
13875         instance, plus all of its parents, as dirty.
13876         (Fset_image_instance_property): use it.
13877         (Fglyph_animated_timeout_handler): use it.
13878         (update_subwindow): call update_widget and device methods for
13879         update_subwindow. Mark all changed flags as clean.
13880         (Fresize_subwindow): mark size as changed.
13881
13882         * glyphs-x.c (x_finalize_image_instance): try and detect gc
13883         failures.
13884         (x_update_subwindow): only resize subwindows here.
13885         (x_update_widget): new function. Update all changed properties of
13886         a widget.
13887         (x_resize_subwindow): deleted.
13888         (x_widget_set_property): deleted.
13889         (x_progress_gauge_set_property): deleted.
13890         (x_progress_gauge_update): new function. Implement recorded
13891         changes.
13892         (x_tab_control_update): ditto.
13893         (x_tab_control_set_property): deleted.
13894         (console_type_create_glyphs_x): declare new functions.
13895         (image_instantiator_format_create_glyphs_x): ditto.
13896
13897         * glyphs-widget.c (widget_set_property): mark text changed.
13898         (update_widget): new function. Update properties of a widget.
13899         (widget_instantiate): for layouts make sure we set their
13900         children's parent correctly.
13901         (tab_control_set_property): new function. Record changes that will
13902         take place under redisplay's control.
13903         (progress_gauge_set_property): ditto.
13904         (image_instantiator_progress_guage): declare new functions.
13905         (image_instantiator_tab_control): ditto.
13906
13907         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
13908         now.
13909         (mswindows_update_widget): new function. Update all properties on
13910         a widget that have changed.
13911         (mswindows_button_update): new function. Update a button's set
13912         state.
13913         (mswindows_tab_control_update): new function. Update the items in
13914         a tab.
13915         (mswindows_tab_control_set_property): deleted.
13916         (mswindows_progress_gauge_update): new function. Update the
13917         progress gauge's progress.
13918         (mswindows_widget_set_property): deleted. This is all done
13919         asynchronously now.
13920         (mswindows_progress_gauge_set_property): ditto.
13921         (console_type_create_glyphs_mswindows): declare new methods.
13922         (image_instantiator_format_create_glyphs_mswindows): ditto.
13923
13924         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
13925         (msprinter_set_frame_properties): ditto.
13926
13927         * console.h (struct console_methods): Add update_widget_method.
13928
13929 2000-02-09  Andy Piper  <andy@xemacs.org>
13930
13931         * gui-msw.c (Fmswindows_shell_execute): Make
13932         mswindows-shell-execute industrial strength.
13933
13934 2000-02-08  Martin Buchholz  <martin@xemacs.org>
13935
13936         * lrecord.h: Make macro argument `props' match member function `plist'.
13937         * fns.c (Fget):
13938         * fns.c (Fput):
13939         * fns.c (Fremprop):
13940         * fns.c (Fobject_plist):
13941         * alloc.c:
13942         * symbols.c:
13943         Object property list frobbing cleanup.
13944         - Allow any lisp object (compared with `eq'), not just symbols, as
13945           keys in object plists.
13946         - Move symbol plist frobbing into symbols.c, where it belongs.
13947         - Move string plist frobbing into alloc.c, where it belongs.
13948         - Everything's an lrecord now, so no need to test for symbolp, etc.
13949         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
13950
13951         * extents.c: Reorder code to remove declarations.
13952
13953         * frame.h (store_in_alist): Remove useless declaration.
13954
13955 2000-02-07  Martin Buchholz  <martin@xemacs.org>
13956
13957         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
13958         * config.h.in: Add HAVE_XCONVERTCASE.
13959
13960 2000-02-07  Andy Piper  <andy@xemacs.org>
13961
13962         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
13963         it breaks many things.
13964
13965 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13966
13967         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
13968         actually can start a common comment type.
13969         * src/syntax.h (SYNTAX_END_P): ditto for end.
13970
13971 2000-02-07  Martin Buchholz <martin@xemacs.org>
13972
13973         * XEmacs 21.2.28 is released.
13974
13975 2000-02-06  Martin Buchholz  <martin@xemacs.org>
13976
13977         * event-Xt.c (x_keysym_to_character): New.
13978         (maybe_define_x_key_as_self_inserting_character): New.
13979         (x_has_keysym): New.
13980         Auto-define all keys on the keyboard as self-insert-key.
13981
13982 2000-02-02  Martin Buchholz  <martin@xemacs.org>
13983
13984         * menubar.c (vars_of_menubar): A small code simplification.
13985
13986         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
13987
13988         * ExternalShell.c:
13989         * ExternalClient.c:
13990         * EmacsShell-sub.c:
13991         * EmacsManager.c:
13992         * EmacsFrame.c:
13993         Use consistent style for specifying X resources.
13994
13995         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
13996         This makes (dontusethis-set-symbol-value-handler) actually usable.
13997
13998         * lrecord.h (lrecord_decription_type):
13999         * alloc.c (pdump_register_sub):
14000         (pdump_dump_data):
14001         (pdump_reloc_one):
14002         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14003         Comply with XEmacs coding style.
14004         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14005         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14006
14007         * keymap.c (Faccessible_keymaps):
14008         Make (accessible-keymaps map "\C-h") do the Right Thing.
14009         Make (accessible-keymaps map []) do the Right Thing.
14010         Make (accessible-keymaps map "") do the Right Thing.
14011         (check_keymap_definition_loop): New function.
14012         (keymap_store_internal): Keep luser from shooting self in foot,
14013           via (define-key ctl-x-4-map "p" global-map).
14014         Remove fullness slot from struct Lisp_Keymap, since hash tables
14015         are now reliable.
14016         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14017
14018 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14019
14020         * redisplay.c (init_redisplay): Fix small memory leak.
14021         * elhash.h:
14022         * elhash.c (pdump_reorganize_hash_table):
14023         Rename from reorganize_hash_table. Change prototype.
14024         Reuse the original memory for hentries.  Save 100k.
14025         * alloc.c (PDUMP_READ): new macro.
14026         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14027         * alloc.c: No need to #ifndef before #undef.
14028
14029         * print.c: Allow debug_print() to print readably by modifying
14030         debug_print_readably.  Use consistent variable names.
14031
14032         * .dbxrc: Try to get things to work even if stopped in a function
14033         without source available by explicitly specifying source files.
14034 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14035
14036         * unexnt.c (_start): Removed bogus code which caused loading heap
14037         from differrent executable file.
14038         Removed bogus assignment to _fmode, which caused inconsistencies.
14039
14040 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14041
14042         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14043         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14044         Do not preliminary `#define signal sigset'.
14045
14046         * systime.h: Do not prototype environ on windows nt and cygwin,
14047         this conflicts with system header.
14048
14049         * syssignal.h: Use correct define for WINDOWSNT
14050
14051         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14052         with system header.
14053
14054         * sysdep.c (near start of file): Fixed commentary and rearranged
14055         ifdefs in readable order.
14056         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14057         (start_of_text):
14058         (end_of_text):
14059         (end_of_data): Do not compile in if using PDUMP.
14060
14061         * symsinit.h: Prototyped vars_of_nt().
14062
14063         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14064         (find_child_console): Use it.
14065         (sys_kill): Use it.
14066
14067         * ntheap.h: Do not extern os_subtype.
14068
14069         * ntheap.c (cache_system_info): Do not cache unneeded:
14070         nt_major_version, nt_minor_version and os_subtype.
14071         (recreate_heap): Do not compile in when PDUMPing.
14072
14073         * nt.c (geteuid and friends): Use the new varibale
14074         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14075         (init_user_info): Removed the above mentioned hackery.
14076         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14077         stat has been fixed in the C runtime.
14078         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14079
14080         * file-coding.c (struct file_coding_dump): Do not define
14081         ucs_to_mule_table in the struct if not MULE.
14082         (struct struct lrecord_description fcd_description_1): Do not dump
14083         the above.
14084
14085         * emacs.c (main_1): Call vars_of_nt().
14086         (right before Fdump_emacs_data): Don't need lastfile if using both
14087         portabe dumper and system malloc.
14088
14089         * alloc.c (Fmemory_limit): Conditionalized out.
14090         (pdump): Use OPEN_BINARY for the portable dump file.
14091         (pdump_load): Ditto.
14092
14093 2000-02-02  Mike Alexander  <mta@arbortext.com>
14094
14095         * nt.c (convert_time): Set tm_isdst before calling mktime and
14096         avoid calling it at all if the compiler supports 64 bit integers.
14097         Also initialize utc_base_ft before using it.
14098
14099 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14100
14101         * frame.c (change_frame_size_1): Take f->internal_border_width
14102         into consideration when calculating the width of the frame.
14103
14104 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14105
14106         * window.c (frame_min_height):
14107         (frame_size_valid_p):
14108         (frame_pixsize_valid_p): Added.
14109         (check_frame_size): Generalized.
14110
14111         * window.h: Prototyped the above.
14112
14113         * lisp.h:
14114         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14115         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14116         Deleted Vwin32_* and Vbinary_process_* unused variables.
14117
14118         * device-msw.c (msprinter_init_device): Do not get printer font
14119         list; Added DEVMODE functions.
14120
14121         * frame-msw.c: Added lots of printer code.
14122
14123         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14124         general.c.
14125
14126         * console-msw.h: Added more msprinter device private slots.
14127
14128 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14129
14130         * event-msw.c (key_needs_default_processing_p): Added.
14131         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14132
14133 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14134
14135         * glyphs.c (image_instance_layout): Mark image instance as clean
14136         after layout.
14137         (glyph_dirty_p): Removed redundant function.
14138         (invalidate_glyph_geometry_maybe): Added.
14139         (update_glyph_cachel_data): Call it.
14140
14141         * glyphs.h: Prototyped it.
14142
14143         * redisplay.c (add_glyph_rune): Call it.
14144         (redisplay_window): Reset glyphs cachels when frame faces have
14145         changed, thus forcing recomputation of built-in border glyphs.
14146
14147 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14148
14149         * Makefile.in.in: Make portable dumper and purify play well together.
14150         Add imperfect, but better than nothing, support for pdump.
14151         Remove xemacs.dmp when temacs is re-generated.
14152         Don't ignore errors when dumping xemacs.
14153
14154         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14155
14156 2000-01-28  Andy Piper  <andy@xemacs.org>
14157
14158         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14159         (setup_normal_frame): ditto.
14160         (setup_frame_without_minibuffer): ditto.
14161         (setup_minibuffer_frame): ditto.
14162         (delete_frame_internal): ditto.
14163         (Fmake_frame_invisible): ditto.
14164         (Ficonify_frame): ditto.
14165
14166         * window.h: change Fset_window_buffer signature.
14167
14168         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14169         (Fset_window_buffer): allow recording of buffer if the window is
14170         the selected window.
14171         (window_loop): Use new Fset_window signature.
14172
14173 2000-01-23  Daniel Pittman  <daniel@danann.net>
14174
14175         * config.h.in: Added template for `HAVE_ATHENA_3D'
14176
14177 2000-01-29  Andy Piper  <andy@xemacs.org>
14178
14179         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14180
14181         * gutter.c (output_gutter): Don't output if the window isn't live.
14182
14183 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14184
14185         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14186         of 01/12/00: Moved SetFocus back here where it belongs.
14187
14188 2000-01-23  Andy Piper  <andy@xemacs.org>
14189
14190         * s/cygwin32.h: declare printer things.
14191
14192 2000-01-26  Andy Piper  <andy@xemacs.org>
14193
14194         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14195         Alexander.
14196
14197 2000-01-24  Andy Piper  <andy@xemacs.org>
14198
14199         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14200         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14201
14202         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14203
14204         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14205
14206         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14207
14208         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14209         (mswindows_output_display_block): Avoid local shadows.
14210
14211         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14212         (mswindows_enqueue_mouse_button_event): ditto.
14213         (mswindows_handle_gui_wm_command): remove declaration.
14214
14215         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14216         warnings.
14217
14218         * console-msw.h: Avoid shadows.
14219         (mswindows_get_toolbar_button_text):
14220         (emacs_mswindows_create_stream_pair):
14221         (emacs_mswindows_delete_stream_pair):
14222         (mswindows_handle_toolbar_wm_command): declare.
14223
14224         * device-msw.c (build_syscolor_string): Avoid shadows.
14225
14226 2000-01-23  Andy Piper  <andy@xemacs.org>
14227
14228         * glyphs-widget.c (widget_instantiate): reverse the items for
14229         layouts so that children are in the expected order.
14230
14231 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14232
14233         * ralloc.c: safe_bcopy ==> memmove
14234         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14235         * s/msdos.h: Remove BCOPY macros.
14236         * insdel.c (gap_right): Remove BCOPY conditional code.
14237         * insdel.c (gap_left): Remove BCOPY conditional code.
14238         XEmacs demands a working ANSI C compiler - hence memmove.
14239
14240         * regex.c (regex_compile): Remove accidental use of trigraphs.
14241
14242 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14243
14244         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14245         event timestamp.
14246
14247 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14248
14249         * event-msw.c (mswindows_drain_windows_queue): Added the
14250         parameter.
14251         (mswindows_need_event): Commented the call to
14252         mswindows_drain_windows_queue().
14253         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14254         only.
14255
14256         * console-msw.h: Moved a few function prototypes here from
14257         event-msw.c.
14258
14259         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14260         parameter from unsigned short to unsigned long.
14261         (Fmswindows_shell_execute): Added return value.
14262
14263 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14264
14265         * sysdep.c (init_system_name):
14266           process-unix.c (unix_canonicalized_host_name):
14267         Don't call freeaddrinfo() if getaddrinfo() fails.
14268
14269         * process-unix.c (unix_open_unix_network_stream):
14270         Moved the code to get a port # into address loop.
14271
14272 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14273
14274         * buffer.c (reinit_vars_of_buffer):
14275         The right place to initialize conversion_in_dynarr and
14276         conversion_out_dynarr.
14277
14278         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14279
14280         * process-unix.c (unix_canonicalize_host_name): Muleize.
14281         (unix_open_network_stream): Muleize.
14282
14283         * buffer.h: Fix up prototypes for ralloc.c functions.
14284
14285 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14286         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14287         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14288                 instead of gethostbyname()
14289         * process-unix.c: In unix_canonicalize_host_name() and
14290                 unix_open_network_stream(), add code to use getaddrinfo()
14291                 instead of gethostbyname().
14292
14293 2000-01-27  Daniel Pittman <daniel@danann.net>
14294
14295         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14296         libs when built with flat Athena.
14297
14298 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14299
14300         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14301         Use coding standards for function prototypes.
14302
14303 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14304
14305         * dialog-msw.c (push_lisp_string_as_unicode):
14306         * doc.c (unparesseuxify_doc_string):
14307         * dired.c (Fuser_name_completion_1):
14308         * dired.c (Fuser_name_all_completions):
14309         * dired.c (free_user_cache):
14310         * dired.c (user_name_completion):
14311         * console-x.c (get_display_arg_connection):
14312         * minibuf.c (clear_echo_area_internal):
14313         * minibuf.c (echo_area_append):
14314         * eldap.c (Fldap_open):
14315         * eldap.c (Fldap_search_internal):
14316         * frame-x.c (x_set_frame_text_value):
14317         * frame-x.c (x_set_frame_properties):
14318         * frame-x.c (x_create_widgets):
14319         * redisplay-tty.c (term_get_fkeys_1):
14320         * objects-x.c (x_parse_nearest_color):
14321         * objects-x.c (x_valid_color_name_p):
14322         * objects-x.c (x_initialize_font_instance):
14323         * objects-x.c (x_list_fonts):
14324         * objects-x.c (x_find_charset_font):
14325         * tooltalk.c (Fadd_tooltalk_message_arg):
14326         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14327         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14328         * process-unix.c (unix_create_process):
14329         * ntproc.c (sys_spawnve):
14330         * sound.c (Fplay_sound_file):
14331         * sound.c (Fplay_sound):
14332         * buffer.c (init_initial_directory):
14333         * buffer.c (init_buffer):
14334         * editfns.c (init_editfns):
14335         * editfns.c (Ftemp_directory):
14336         * editfns.c (Fuser_full_name):
14337         * editfns.c (uncache_home_directory):
14338         * editfns.c (get_home_directory):
14339         * editfns.c (Fuser_home_directory):
14340         * editfns.c (Fformat_time_string):
14341         * editfns.c (Fcurrent_time_string):
14342         * gui-x.c (button_item_to_widget_value):
14343         * database.c (Fopen_database):
14344         * event-Xt.c (x_to_emacs_keysym):
14345         * event-Xt.c (x_event_to_emacs_event):
14346         * event-Xt.c (describe_event_window):
14347         * event-msw.c (mswindows_wnd_proc):
14348         * glyphs-eimage.c (jpeg_instantiate):
14349         * glyphs-eimage.c (gif_instantiate):
14350         * glyphs-eimage.c (png_instantiate):
14351         * glyphs-eimage.c (tiff_instantiate):
14352         * glyphs-x.c (xbm_instantiate_1):
14353         * glyphs-x.c (x_xbm_instantiate):
14354         * glyphs-x.c (x_xface_instantiate):
14355         * glyphs-x.c (autodetect_instantiate):
14356         * glyphs-x.c (cursor_font_instantiate):
14357         * glyphs-x.c (x_widget_instantiate):
14358         * glyphs-x.c (x_widget_set_property):
14359         * glyphs-x.c (x_widget_property):
14360         * glyphs-x.c (BUILD_GLYPH_INST):
14361         * print.c (write_string_to_stdio_stream):
14362         * print.c (output_string):
14363         * print.c (Falternate_debugging_output):
14364         * print.c (Fexternal_debugging_output):
14365         * glyphs-msw.c (extract_xpm_color_names):
14366         * glyphs-msw.c (mswindows_xpm_instantiate):
14367         * glyphs-msw.c (bmp_instantiate):
14368         * glyphs-msw.c (resource_name_to_resource):
14369         * glyphs-msw.c (mswindows_resource_instantiate):
14370         * glyphs-msw.c (xbm_instantiate_1):
14371         * glyphs-msw.c (mswindows_xbm_instantiate):
14372         * glyphs-msw.c (mswindows_xface_instantiate):
14373         * glyphs-msw.c (mswindows_widget_instantiate):
14374         * glyphs-msw.c (add_tree_item):
14375         * glyphs-msw.c (add_tab_item):
14376         * glyphs-msw.c (mswindows_combo_box_instantiate):
14377         * glyphs-msw.c (mswindows_widget_property):
14378         * glyphs-msw.c (mswindows_combo_box_property):
14379         * glyphs-msw.c (mswindows_widget_set_property):
14380         * console.c (stuff_buffered_input):
14381         * objects-msw.c (mswindows_initialize_color_instance):
14382         * objects-msw.c (mswindows_valid_color_name_p):
14383         * objects-msw.c (mswindows_list_fonts):
14384         * objects-msw.c (mswindows_font_instance_truename):
14385         * bytecode.c (optimize_compiled_function):
14386         * select-x.c (symbol_to_x_atom):
14387         * select-x.c (x_atom_to_symbol):
14388         * select-x.c (hack_motif_clipboard_selection):
14389         * select-x.c (selection_data_to_lisp_data):
14390         * select-x.c (lisp_data_to_selection_data):
14391         * select-x.c (Fx_get_cutbuffer_internal):
14392         * select-x.c (Fx_store_cutbuffer_internal):
14393         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14394         * buffer.h (TO_INTERNAL_FORMAT): New function.
14395         * emacs.c (make_arg_list_1):
14396         * emacs.c (make_argc_argv):
14397         * emacs.c (main_1):
14398         * emacs.c (Fdump_emacs):
14399         * emacs.c (split_string_by_emchar_1):
14400         * file-coding.h:
14401         * lisp.h:
14402         * lstream.h:
14403         * symsinit.h:
14404         * device-x.c (x_init_device):
14405         * device-x.c (Fx_valid_keysym_name_p):
14406         * device-x.c (Fx_get_font_path):
14407         * device-x.c (Fx_set_font_path):
14408         * glyphs.c (bitmap_to_lisp_data):
14409         * glyphs.c (pixmap_to_lisp_data):
14410         * alloc.c (make_ext_string): Use coding system arguments.  Update
14411         all callers.
14412         * alloc.c (build_string):
14413         * callproc.c (child_setup):
14414         * callproc.c (init_callproc):
14415         * fileio.c (lisp_strerror):
14416         * fileio.c (directory_file_name):
14417         * fileio.c (Fexpand_file_name):
14418         * fileio.c (Ffile_truename):
14419         * fileio.c (Fsysnetunam):
14420         * fileio.c (Fdo_auto_save):
14421         * sysdep.c (sys_readdir):
14422         * tests.c: New file.  Allow adding C tests.
14423         Replace GET_* macros with a more comprehensible and flexible
14424         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14425         Modify all calls.
14426         Any coding system can be used to do format conversion.
14427         Eliminate enum external_data_format.
14428         Eliminate convert_to_external_format.
14429         Eliminate convert_to_internal_format.
14430         Make sure file-name, keyboard, terminal, and ctext are always
14431         defined as coding systems or aliases.  Make
14432         file-name-coding-system, terminal-coding-system, and
14433         keyboard-coding-system magical variables that are equivalent to
14434         defining the corresponding coding system aliases.
14435
14436         * file-coding.c (Fcoding_system_canonical_name_p): New function.
14437         * file-coding.c (Fcoding_system_alias_p): New function.
14438         * file-coding.c (Fcoding_system_aliasee): New function.
14439         * file-coding.c (append_suffix_to_symbol): New function.
14440         * file-coding.c (dangling_coding_system_alias_p): New function.
14441         * file-coding.c (Ffind_coding_system):
14442         * file-coding.c (Fcopy_coding_system):
14443         * file-coding.c (encode_coding_no_conversion):
14444         * file-coding.c (syms_of_file_coding):
14445         * file-coding.c (vars_of_file_coding):
14446         Rewrite coding system alias code.
14447         Allow nested aliases, like symbolic links.
14448         Allow redefinition of coding system aliases.
14449         Prevent existence of dangling coding system aliases.
14450
14451         * dired.c (Fuser_name_completion_1):
14452         * dired.c (Fuser_name_all_completions):
14453         A crash would happen if user did QUIT in the middle of building
14454         user_name_cache.  Remove redundant code in mainline and unwind_protect.
14455
14456         * lisp.h:
14457         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
14458
14459         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14460         an unsigned char *.  Update all callers.
14461
14462 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14463
14464         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14465
14466 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14467
14468         * elhash.c (hentry_description): Use more portable definition.
14469         (resize_hash_table): Initialize new hentries using
14470         xnew_array_and_zero, thereby simplifying the code.
14471
14472         * mule-charset.c (make_charset): Make sure entire object is
14473         initialized, to avoid Purify warnings.
14474
14475         * alloc.c (resize_string): Fix unlikely crash with big strings.
14476
14477 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14478
14479         * realpath.c (xrealpath):
14480         Don't call getwd().
14481
14482 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14483
14484         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14485
14486 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
14487
14488         * unexelfsgi.c (unexec): Change the way we decide which segment
14489         should be extended.
14490
14491         Assumption that .bss section should be outside the PT_LOADable
14492         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14493         it's present) is inside the 'data' segment. This would fail the
14494         test which was used to find a segment to grow and cover new
14495         heap. Instead of this assumption, I created another one - on IRIX
14496         the segment to grow should start below .bss and it's address
14497         should extent above the end of .bss. Once this segment is
14498         identified, it's grown to accommodate the new heap and new
14499         zero-length .bss section is added at the end of .data2.
14500
14501 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14502
14503         * eval.c (Feval): Wrong number of arguments should use original
14504         function, not the indirect_function version of it.
14505
14506 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
14507
14508         * glyphs-x.c (x_button_instantiate): Don't add image if
14509         it is not a pixmap.
14510         (x_locate_pixmap_file): Call Fexpand_file_name when file name
14511         is relative.
14512
14513 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
14514
14515         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
14516         declaration.
14517         (DEFVAR_INT_MAGIC): Ditto.
14518         (DEFVAR_BOOL_MAGIC): Ditto.
14519         * glyphs.h: Reindent backslash.
14520
14521 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14522
14523         * glyphs-widget.c (layout_query_geometry):
14524         (layout_layout): Use correct types for gheight, gwidth.
14525
14526 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14527
14528         * EmacsManager.c (QueryGeometry): Purified.
14529
14530 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14531
14532         * alloc.c (make_float): Make sure entire object is initialized, to
14533         avoid Purify warnings.
14534         (pdump_register_sub): Remove useless assignment.
14535         (pdump): Use xmalloc, not malloc.
14536         (pdump_load): Use xmalloc, not malloc.
14537
14538 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14539
14540         * callproc.c:
14541         * dired-msw.c:
14542         * fileio.c:
14543         * process-nt.c:
14544         * redisplay-msw.c:
14545         * sysdep.c: Removed redundant #include <windows.h>
14546
14547 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14548
14549         * frame.c (delete_frame_internal): Do not delete device when its
14550         implementation so declares.
14551         (delete_frame_internal): Set device selected frame to nil when
14552         last frame goes away.
14553
14554         * device-msw.c (msprinter_device_system_metrics): Implemented.
14555         (mswindows_device_system_metrics): Added 'device-dpi property.
14556
14557         * device.c: (Fdevice_printer_p): Added.
14558         Added 'offset-workspace device metric.
14559
14560         * console.h (device_metrics): Declared DM_offset_workspace.
14561
14562 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14563
14564         * fileio.c (Ffile_truename): Remove pointless and confusing
14565         initialization of elen.
14566
14567         * glyphs-widget.c: Compiler warning fixes.
14568
14569 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
14570
14571         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
14572         instead of a Lisp_Object as argument to make it consistent with
14573         the other LIVE_P macros.
14574         (CHECK_LIVE_PROCESS): New macro.
14575
14576         * process.c: Declare Qprocess_live_p.
14577         (Fprocess_live_p): New function.
14578         (create_process): Use PROCESS_LIVE_P.
14579         (read_process_output): Ditto.
14580         (set_process_filter): Ditto.
14581         (Fdelete_process): Ditto.
14582         (kill_buffer_processes): Ditto
14583         (process_send_signal): Use CHECK_LIVE_PROCESS.
14584         (Fprocess_input_coding_system): Check whether process is still
14585         alive (fix PR#1061).
14586         (Fprocess_output_coding_system): Ditto.
14587         (Fprocess_coding_system): Ditto.
14588         (Fset_process_input_coding_system): Ditto.
14589         (Fset_process_output_coding_system): Ditto.
14590
14591 2000-01-23  Andy Piper  <andy@xemacs.org>
14592
14593         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
14594         layout and widget.
14595
14596         * glyphs.c (mark_image_instance): take into account changed
14597         image_instance format.
14598         (image_instance_equal): ditto.
14599         (image_instance_hash): ditto.
14600
14601         * glyphs-widget.c (widget_instantiate): Incorporate layout
14602         instantiation here. Delay layout of the layout until later.
14603         (layout_instantiate): deleted.
14604         (layout_query_geometry): new function. get the geometry of a
14605         layout.
14606         (layout_layout): layout a layout dynamically.
14607         (image_instantiator_widget): New function - splitting up
14608         image_instantiator_format_create_glyphs_widget for netwinder
14609         compilation.
14610         (image_instantiator_buttons):
14611         (image_instantiator_edit_fields):
14612         (image_instantiator_combo_box):
14613         (image_instantiator_scrollbar):
14614         (image_instantiator_progress_guage):
14615         (image_instantiator_tree_view):
14616         (image_instantiator_tab_control):
14617         (image_instantiator_labels):
14618         (image_instantiator_layout): ditto.
14619         (image_instantiator_format_create_glyphs_widget): Call preceding
14620         functions.
14621
14622 2000-01-22  Martin Buchholz  <martin@xemacs.org>
14623
14624         * process.c (Fset_process_coding_system):
14625         * device-x.c (Fx_keysym_hash_table):
14626         Docstring fixes.
14627
14628         * lstream.c (Lstream_write): Return documented value, not 0.
14629
14630         * fileio.c (directory_file_name):
14631         (Fsubstitute_in_file_name):
14632         (Fsubstitute_insert_file_contents_internal):
14633         (Fwrite_region_internal):
14634         * emacs.c:
14635         * sysdep.c:
14636         * getloadavg.c:
14637         * systty.h:
14638         Remove vestigial APOLLO-conditional code.
14639
14640 2000-01-21  Martin Buchholz  <martin@xemacs.org>
14641
14642         * getpagesize.h: Add guard macros.
14643         * libsst.h: Add guard macros.
14644         * libst.h: Add guard macros.
14645         * line-number.h: Add guard macros.
14646         * ndir.h: Add guard macros.
14647         * sysfloat.h: Add guard macros.
14648         * sysfile.h: Add guard macros.
14649         * sysproc.h: Add guard macros.
14650         * syswait.h: Add guard macros.
14651         * xintrinsic.h: Add guard macros.
14652         * xintrinsicp.h: Add guard macros.
14653         * xmmanager.h: Add guard macros.
14654         * xmmanagerp.h: Add guard macros.
14655         * xmprimitive.h: Add guard macros.
14656         * xmu.h: Add guard macros.
14657         * gpmevent.h: Add copyright statement. Add guard macros.
14658         * miscplay.h: Add guard macros.
14659         * *.h: Use consistent C-standards-approved guard macro names.
14660
14661         * opaque.c (make_opaque): Switch parameter order.
14662         * opaque.h (make_opaque): Switch parameter order.
14663         Update all callers.
14664         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
14665
14666         * config.h.in (type_checking_assert): Added.
14667         (bufpos_checking_assert): Added.
14668
14669 2000-01-21  Martin Buchholz  <martin@xemacs.org>
14670
14671         * alloc.c: Harmless pdump changes.
14672         - Use countof().
14673         - spell alignment correctly.
14674         * sysdep.c: Use countof()
14675
14676 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14677
14678         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
14679         initially_selected_for_input() console method, default to 0.
14680         (semi_canonicalize_console_connection): Try to delegate to
14681         canonicalize_console_connection if no such console method.
14682         (canonicalize_console_connection): Vice versa.
14683         (print_console): Do not print nil connection.
14684
14685         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
14686         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
14687         (XDEVIMPF_FRAMELESS_OK): Added.
14688         (CONSOLE_INHERITS_METHOD): Added.
14689
14690         * console-msw.c (mswindows_canonicalize_console_connection):
14691         Added.
14692         (mswindows_canonicalize_device_connection): Added.
14693
14694         * console-msw.h (struct msprinter_device): Added this struct and
14695         accessor macros.
14696         (mswindows_device): Made fontlist a lisp object.
14697
14698         * device.c (semi_canonicalize_device_connection):  Try to delegate
14699         to canonicalize_device_connection if no such console method.
14700         (canonicalize_device_connection): Vice versa.
14701         (print_device): Do not print nil connection.
14702
14703         * device-msw.c (mswindows_init_device): Call InitCommonControls
14704         when have widgets.
14705         (mswindows_delete_device): Removed fontlist deallocation.
14706         (mswindows_mark_device): Added.
14707
14708         * events.c (event_equal): Added abort() at unreached code.
14709         (event_hash): Ditto.
14710
14711         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
14712         fallback tags of Windows devices.
14713
14714         * general.c (syms_of_general): Initialized Qmsprinter.
14715
14716         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
14717         of fallback tags of Windows devices.
14718
14719         * lisp.h: Declared Qmsprinter.
14720
14721         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
14722         of strings.
14723         (mswindows_list_fonts): Ditto.
14724         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
14725         that it can be used by both mswindows and msprinter devices.
14726         (initialize_font_instance): Added.
14727         (mswindows_initialize_font_instance): Use it.
14728         (msprinter_initialize_font_instance): Added.
14729
14730         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
14731         and implementation flags check.
14732         (redisplay_without_hooks): Changed the call to the above.
14733         (Fredraw_device): Ditto.
14734         (Fredisplay_device): Ditto.
14735
14736         * redisplay-msw.c (get_frame_dc): Implemented.
14737         (get_frame_compdc): Implemented.
14738         (many functions): Use the two functions above to get device
14739         contexts, ether for a window or a printer.
14740
14741 2000-01-21  Olivier Galibert  <galibert@pobox.com>
14742
14743         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
14744         initialization here.
14745         (init_symbols_once_early): Call it.
14746         * emacs.c (main_1): Call it.
14747         * symsinit.h: Declare it.
14748
14749 2000-01-19  Olivier Galibert  <galibert@pobox.com>
14750
14751         * alloc.c: Use a lrecord_header * in the backtrace instead of a
14752         Lisp_Object.
14753         (pdump_backtrace): Ditto.
14754         (pdump_register_object): Ditto.  Cleanup use of the pointers.
14755         (pdump_get_entry): Abort if trying to register a null pointer.
14756         (pdump_dump_data): Cleanup types when relocating.
14757         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
14758         (pdump_dump_rtables): Remove bad casts.
14759         (pdump_load): Cleanup relocation w.r.t union type.  Use a
14760         Lisp_Object instead of a EMACS_INT for the hashtable
14761         reorganization.
14762
14763 2000-01-20  Martin Buchholz  <martin@xemacs.org>
14764
14765         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
14766
14767         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
14768
14769         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
14770
14771         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
14772
14773 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14774
14775         * faces.h (FACE_STRIKETHRU_P): Added.
14776
14777         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
14778         of font variants.
14779
14780         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
14781         (mswindows_set_dc_font): New function, aware of font variants,
14782         separated from mswindows_update_dc.
14783
14784         * objects-msw.h (struct mswindows_font_instance_data): Added
14785         definition.
14786
14787         * objects-msw.c (mswindows_finalize_font_instance): Delete all
14788         cached fonts and the data structure.
14789         (mswindows_initialize_font_instance): Added creation of font data
14790         structure.
14791         (mswindows_print_font_instance): Print at least something.
14792         (mswindows_create_font_variant): Implemented.
14793         (mswindows_get_hfont): Implemented.
14794
14795 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
14796
14797         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
14798         prototyping problem with msvc.
14799
14800         * emacs.c (main_1): added syms_of_gui_mswindows() call
14801
14802         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
14803         syms_of_gui_mswindows() function
14804
14805         * symsinit.h: added the prototype for syms_of_gui_mswindows()
14806
14807 2000-01-18  Martin Buchholz <martin@xemacs.org>
14808
14809         * XEmacs 21.2.27 is released.
14810
14811 2000-01-18  Martin Buchholz  <martin@xemacs.org>
14812
14813         * glyphs-eimage.c (struct tiff_error_struct):
14814         (tiff_error_func):
14815         (tiff_warning_func):
14816         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
14817
14818         * unexmips.c:
14819         * unexhp9k3.c:
14820         * unexfreebsd.c:
14821         * unexec.c: Remove vestigial Lucid C code.
14822         * unexalpha.c:
14823         * unexaix.c:
14824         * termcap.c:
14825         * libsst.c: Ansify.
14826         Remove declarations of errno and strerror().
14827
14828         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
14829
14830         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
14831
14832 2000-01-16  Martin Buchholz  <martin@xemacs.org>
14833
14834         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
14835         Optimize.
14836
14837 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14838
14839         * md5.c:
14840         * file-coding.c:
14841         * file-coding.h:
14842         Change enum eol_type to eol_type_t.
14843
14844 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14845
14846         * gui.c (get_gui_callback): Check cons before accessing car.
14847
14848 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14849
14850         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
14851         (XSETSPECIFIER_TYPE): Ditto.
14852
14853 2000-01-17  Didier Verna  <didier@xemacs.org>
14854
14855         * redisplay.c (generate_fstring_runes): compute string size in
14856         characters, not bytes.
14857
14858 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
14859
14860         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
14861
14862 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
14863
14864         * print.c (print_error_message): Call print_prepare().
14865
14866 2000-01-14  Martin Buchholz  <martin@xemacs.org>
14867
14868         * .dbxrc: Renamed from dbxrc.
14869
14870         * events.c (event_to_character):
14871         Use `assert (foo)' instead of `if (!foo) abort()'
14872
14873         * .gdbinit (xtype): Add documentation.
14874         * .gdbinit (check-temacs): New function.
14875         * .gdbinit (check-xemacs): New function.
14876         * dbxrc (check-xemacs): New function.
14877         * dbxrc (check-xemacs): New function.
14878
14879 2000-01-14  Andy Piper  <andy@xemacs.org>
14880
14881         * glyphs-widget.c (widget_query_geometry): Make sure that we
14882         calculate default dimensions correctly.
14883
14884 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14885
14886         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
14887
14888         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
14889         pdump_wire'd variable.
14890
14891         * emacs.c: (main_1): Conditionalized calls to
14892         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
14893
14894 2000-01-13  Martin Buchholz  <martin@xemacs.org>
14895
14896         * window.c (Fset_window_configuration):
14897         * sysdep.c (_start):
14898         * input-method-motif.c (res):
14899         * event-Xt.c (Xt_process_to_emacs_event):
14900         Simple compiler warning fixes.
14901
14902         * bytecode.c (funcall_compiled_function): Use the original
14903         function symbol on the backtrace list in preference to the
14904         compiled_function object in error messages.
14905
14906 2000-01-13  Andy Piper  <andy@xemacs.org>
14907
14908         * glyphs-x.c (update_widget_face): Make sure we update the widget
14909         background as well as foreground.
14910
14911 2000-01-13  Andy Piper  <andy@xemacs.org>
14912
14913         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
14914         fields to subwindow.
14915         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
14916         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
14917         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
14918         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
14919
14920         * glyphs-widget.c (check_valid_tab_orientation): new function.
14921         (initialize_widget_image_instance): zero orientation and
14922         justification.
14923         (widget_instantiate): pick up orientation.
14924         (tab_control_query_geometry): return appropriate values for
14925         vertical tabs.
14926
14927         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
14928         appropriate creation flags for left, right and bottom tabs.
14929
14930         * s/cygwin32.h: add tab definitions.
14931
14932 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14933
14934         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
14935         frame upon hiding a subwindow.
14936         (mswindows_button_instantiate): Changed the push button style to
14937         BS_PUSHBUTTON.
14938         (mswindows_button_instantiate): Removed button BS_NOTIFY
14939         style.
14940         (mswindows_button_instantiate): Removed redundant check for
14941         a disabled gui item.
14942         (mswindows_button_instantiate): Made use of WS_TABSTOP
14943         consistent: "operable" controls (edit, button, tree, scroll) have
14944         this style, "display-only" ones (static, progress gauge) do
14945         not. This style is currently ignored by XEmacs though. Also,
14946         removed the WS_EX_CONTROLPARENT style - it is not for children,
14947         it is for their parents!
14948         (mswindows_edit_field_instantiate): Ditto.
14949         (mswindows_progress_gauge_instantiate): Ditto.
14950         (mswindows_tree_view_instantiate): Ditto.
14951         (mswindows_tab_control_instantiate): Ditto.
14952         (mswindows_scrollbar_instantiate): Ditto.
14953         (mswindows_combo_box_instantiate): Ditto.
14954         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
14955         style to the "clip" window.
14956         (mswindows_button_instantiate): Removed compilation warning by
14957         equally typing terms of the ?: operator.
14958
14959 2000-01-12  Didier Verna  <didier@xemacs.org>
14960
14961         * redisplay.c (generate_fstring_runes): new parameter holding the
14962         last modeline-format extent.
14963         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
14964         extent, fill the glyph block with it.
14965         (generate_fstring_runes): handle these parameters.
14966         (generate_formatted_string_db): ditto.
14967
14968         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
14969         glyphs'extents in the modeline.
14970
14971 1999-01-11  Mike Woolley  <mike@bulsara.com>
14972
14973         * ntheap.c: Reduced the reserved heap space from 1Gb down to
14974         256Mb, as a workaround for the non-starting problem many people
14975         have experienced.
14976
14977 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14978
14979         * console-tty.c (Fset_console_tty_output_coding_system):
14980         Force redrawing tty frame.
14981
14982 2000-01-10  Didier Verna  <didier@xemacs.org>
14983
14984         * redisplay.c (generate_fstring_runes): fix size computation bug.
14985
14986 2000-01-09  William M. Perry <wmperry@aventail.com>
14987
14988         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
14989
14990 2000-01-09  Andy Piper  <andy@xemacs.org>
14991
14992         * glyphs-msw.c: index -> i to avoid shadows.
14993         (xbm_create_bitmap_from_data): make static.
14994         (check_valid_string_or_int): deleted.
14995         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
14996
14997         * glyphs-x.c (x_update_subwindow): remove unused args.
14998
14999         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15000         back pointer - this is done in allocate_image_instance.
15001         (query_string_font): return Qnil to make the compiler happy.
15002         (unmap_subwindow): set to ~0 to make the compiler happy.
15003         (glyph_query_geometry): comment out until used.
15004         (glyph_layout): ditto.
15005
15006 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15007
15008         * insdel.c (signal_after_change): Remove extraneous unbind_to().