update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Vcharset_china3_jef): Deleted.
4         (Qchina3_jef): Deleted.
5         (syms_of_mule_charset): Don't define `china3-jef'.
6         (complex_vars_of_mule_charset): Likewise.
7
8         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
9         (MIN_CHAR_CHINA3_JEF): Comment out.
10         (MAX_CHAR_CHINA3_JEF): Comment out.
11
12 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * mule-charset.c (Vcharset_ucs_gb): New variable.
15         (Qucs_gb): New variable.
16         (syms_of_mule_charset): Add new symbol `ucs-gb'.
17         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
18
19         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
20
21 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
22
23         * mule-charset.c (charset_code_point): if a coded-charset has a
24         final-byte, don't inherit the builtin range of the mother CCS.
25
26 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * mule-charset.c (charset_code_point): Fix problem about
29         inheritance.
30
31 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
32
33         * mule-charset.c (decode_builtin_char): Reorganized.
34
35 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
36
37         * text-coding.c (char_encode_as_entity_reference): Modify for
38         `charset_code_point'.
39         (char_encode_shift_jis): Likewise.
40         (char_encode_big5): Likewise.
41         (char_encode_utf8): Likewise.
42         (char_encode_iso2022): Likewise.
43
44         * mule-charset.c (charset_code_point): Add new argument
45         `defined_only'.
46         (Fencode_char): Add new optional argument `defined_only'.
47
48         * chartab.c (put_char_table): Modify for `charset_code_point'.
49
50         * char-ucs.h (charset_code_point): Add new argument
51         `defined_only'.
52         (encode_char_1): Modify for `charset_code_point'.
53
54 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
57         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
58
59 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
62         (Qjis_x0208): Likewise.
63         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
64         XCHARSET_FINAL(charset).
65         (charset_code_point): Modify condition for final-byte based
66         builtin-chars.
67         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
68         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
69         in UTF-2000; specify `=jis-x0208' as the mother of
70         `japanese-jisx0208-1978', `japanese-jisx0208' and
71         `japanese-jisx0208-1990' in UTF-2000.
72
73 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
74
75         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
76
77 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
78
79         * text-coding.c (decode_coding_utf16): Support UTF-16.
80         (char_encode_utf16): Fixed.
81
82 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
83
84         * text-coding.c (Qutf16): New variable in MULE.
85         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
86         (Fcoding_system_type): Add `utf-16' in MULE.
87         (struct detection_state): Add a structure for utf16 in MULE.
88         (detect_coding_type): Setup st->utf16.mask in MULE.
89         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
90         MULE.
91         (reset_encoding_stream): Use `char_encode_utf16' and
92         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
93         (detect_coding_utf16): New function [incomplete].
94         (decode_coding_utf16): New function [support only UCS-2].
95         (char_encode_utf16): New function.
96         (char_finish_utf16): New function.
97         (syms_of_file_coding): Add new symbol `utf-16'; setup
98         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
99
100         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
101         UTF-2000.
102         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
103         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
104
105 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
106
107         * chartab.c (put_char_table): When a charset is specified as a
108         range in UTF-2000, don't support builtin characters.
109
110 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
111
112         * mule-charset.c (decode_defined_char): Don't refer external
113         database if Qunbound or Qnil are found.
114         (Fsave_charset_mapping_table): Don't define it if
115         HAVE_CHISE_CLIENT is not defined.
116         (Freset_charset_mapping_table): New function.
117         (load_char_decoding_entry_maybe): Store Qnil if a character is not
118         found in external database.
119         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
120         if HAVE_CHISE_CLIENT is not defined; add new builtin function
121         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
122
123 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
124
125         * text-coding.c (decode_coding_utf8): Check CCS is specified or
126         not.
127
128 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
129
130         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
131         Q_lowercase, Q_uppercase in UTF-2000.
132
133         * chartab.c (get_char_table): Add special code for the standard
134         case table to use character attribute `->downcase' and
135         `->uppercase' for case operations in UTF-2000.
136
137         * casetab.c (Qflippedcase): New variable in UTF-2000.
138         (Q_lowercase): Likewise.
139         (Q_uppercase): Likewise.
140         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
141         and `->uppercase' in UTF-2000.
142         (complex_vars_of_casetab): Assign attribute name `downcase' to
143         downcase and CANON table of Vstandard_case_table in UTF-2000;
144         assign attribute name `flippedcase' to upcase and EQV table of
145         Vstandard_case_table in UTF-2000.
146
147 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * text-coding.c (decode_add_er_char): Support isolated-chars.
150         (char_encode_as_entity_reference): Likewise.
151
152 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
153
154         * emacs.c (Vutf_2000_lisp_directory): New variable.
155         (Vconfigure_utf_2000_lisp_directory): Likewise.
156         (complex_vars_of_emacs): Add new variable
157         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
158
159 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
160
161         * char-ucs.h (DECODE_CHAR): Delete special code for
162         `chinese-big5-1' and `chinese-big5-2'.
163
164         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
165         (Qbig5_2): Likewise.
166         (decode_defined_char): Support CONVERSION_BIG5_1 and
167         CONVERSION_BIG5_2.
168         (decode_builtin_char): Likewise.
169         (charset_code_point): Likewise.
170         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
171         'conversion in UTF-2000.
172         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
173         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
174         `chinese-big5-2' as children of `chinese-big5'.
175
176         * char-ucs.h (CONVERSION_BIG5_1): New macro.
177         (CONVERSION_BIG5_2): New macro.
178
179 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
180
181         * text-coding.c (char_encode_big5): Support entity-reference.
182
183 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
184
185         * text-coding.c (char_encode_as_entity_reference): New function.
186         (char_encode_utf8): Use `char_encode_as_entity_reference'.
187
188 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
189
190         * text-coding.c (decode_coding_big5): Support entity-reference
191         decoding feature.
192
193 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * text-coding.c (allocate_coding_system): Initialize initial
196         charsets for CODESYS_UTF8.
197         (Fmake_coding_system): Accept charset-g0, charset-g1 and
198         charset-g2 for CODESYS_UTF8.
199         (decode_coding_utf8): Use charset-g0.
200         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
201         to force variants to map to UCS.
202
203 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
204
205         * text-coding.c (Qutf_8_mcs): New variable.
206         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
207         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
208         instead of `utf-8' in UTF-2000.
209
210 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
211
212         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
213         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
214         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
215         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
216         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
217         CONVERSION_96x96x96x96 are introduced.
218         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
219         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
220         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
221
222         * char-ucs.h (CONVERSION_94): New macro.
223         (CONVERSION_96): New macro.
224         (CONVERSION_94x94): New macro.
225         (CONVERSION_96x96): New macro.
226         (CONVERSION_94x94x94): New macro.
227         (CONVERSION_96x96x96): New macro.
228         (CONVERSION_94x94x94x60): New macro.
229         (CONVERSION_94x94x94x94): New macro.
230         (CONVERSION_96x96x96x96): New macro.
231
232 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
233
234         * chartab.c (Vcharacter_variant_table): Deleted.
235         (Fchar_variants): Use character-attribute `->ucs-variants' instead
236         of `Vcharacter_variant_table'.
237         (Fput_char_attribute): Likewise.
238         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
239         (complex_vars_of_chartab): Likewise.
240
241 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
242
243         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
244
245         * fns.c (Qideographic_structure): New variable.
246         (Qkeyword_char): New variable.
247         (ids_format_unit): New function.
248         (Fideographic_structure_to_ids): New function.
249         (syms_of_fns): Add new symbols `ideographic-structure' and
250         `:char'; add new builtin function `ideographic-structure-to-ids'.
251
252         * data.c (Fchar_ref_p): New function.
253         (syms_of_data): Add new builtin function `char-ref-p'.
254
255         * chartab.h: Add an EXFUN for `Ffind_char'.
256
257 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * text-coding.c (Vcharacter_composition_table): Deleted.
260         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
261         in every UTF-2000.
262
263         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
264         UTF-2000.
265         (Vcharacter_composition_table): Deleted.
266         (Fget_composite_char): Use the implementation for external-DB
267         support in every UTF-2000.
268         (Fput_char_attribute): Likewise.
269         (char_attribute_system_db_file): Don't define if external-DB
270         feature is not available.
271         (Fsave_char_attribute_table): Likewise.
272         (Fmount_char_attribute_table): Likewise.
273         (Fclose_char_attribute_table): Likewise.
274         (Freset_char_attribute_table): Likewise.
275         (Fload_char_attribute_table): Likewise.
276         (syms_of_chartab): Don't define `save-char-attribute-table',
277         `mount-char-attribute-table', `reset-char-attribute-table',
278         `close-char-attribute-table' and `load-char-attribute-table' if
279         external-DB feature is not available.
280         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
281
282 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
283
284         * text-coding.c (Qcomposition): Add extern if external-DB feature
285         is supported.
286         (Vcharacter_composition_table): Don't add extern if external-DB
287         feature is supported.
288         (COMPOSE_ADD_CHAR): Modify for new data-representation of
289         character composition rule if external-DB feature is supported.
290
291         * chartab.c (Vcharacter_composition_table): Don't define if
292         external-DB feature is supported.
293         (Qcomposition): New variable.
294         (Fget_composite_char): New implementation for external-DB support.
295         (Fput_char_attribute): Use `composition' property of each
296         character instead of `Vcharacter_composition_table' to store
297         character-composition rules if external-DB feature is supported.
298         (syms_of_chartab): Add new symbol `composition'.
299         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
300         external-DB feature is supported.
301
302 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
303
304         * chartab.c (Vchar_db_stingy_mode): New variable.
305         (load_char_attribute_maybe): Close database if
306         Vchar_db_stingy_mode is not NIL.
307         (Fload_char_attribute_table_map_function): Use
308         `get_char_id_table_0' instead of `get_char_id_table'.
309         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
310
311         * chartab.h (get_char_id_table_0): New inline function.
312         (get_char_id_table): Use `get_char_id_table_0'.
313
314 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
315
316         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
317         and `COMPOSE_ADD_CHAR'.
318         (decode_coding_iso2022): Use `decode_flush_er_chars'.
319
320 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
321
322         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
323         instead of `DECODE_ADD_UCS_CHAR'.
324         (COMPOSE_ADD_CHAR): Likewise.
325
326 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
327
328         * text-coding.c (decode_flush_er_chars): New inline function.
329         (decode_add_er_char): New function.
330         (decode_coding_utf8): Use `decode_flush_er_chars' and
331         `decode_add_er_char'.
332
333 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
334
335         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
336         done before `decode_output_utf8_partial_char'.
337
338         * mule-charset.c (complex_vars_of_mule_charset): Specify
339         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
340         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
341
342 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
343
344         * mule-charset.c (decode_defined_char): New function; search
345         mother.
346         (decode_builtin_char): Don't search mother if
347         XCHARSET_MAX_CODE(charset) == 0.
348         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
349         == 0 even if code >= XCHARSET_MAX_CODE(charset).
350         (Fdecode_char): Use `decode_defined_char' instead of
351         `DECODE_DEFINED_CHAR'.
352         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
353         mother of `Vcharset_ucs_jis'.
354
355         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
356         instead of `DECODE_DEFINED_CHAR'.
357
358         * char-ucs.h (decode_defined_char): Renamed from
359         `DECODE_DEFINED_CHAR'; changed to normal function.
360         (DECODE_CHAR): Use `decode_defined_char' instead of
361         `DECODE_DEFINED_CHAR'.
362
363         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
364
365 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
368
369         * text-coding.c (Vcoded_charset_entity_reference_alist): New
370         variable.
371         (Quse_entity_reference): New variable.
372         (Qd): New variable.
373         (Qx): New variable.
374         (QX): New variable.
375         (coding_system_description): Add description for
376         `ccs_priority_list'.
377         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
378         (allocate_coding_system): Initialize `ccs_priority_list' in
379         UTF-2000.
380         (Fmake_coding_system): Add description about
381         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
382         (codesys).
383         (Fcoding_system_property): Accept `disable-composition' and
384         `use-entity-reference' in UTF-2000.
385         (struct decoding_stream): Add new member `er_counter' and `er_buf'
386         in UTF-2000.
387         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
388         (decode_coding_utf8): Decode entity-reference if
389         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
390         (char_encode_utf8): Encode non-Unicode characters as
391         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
392         (str->codesys).
393         (syms_of_file_coding): Add new symbols `use-entity-reference',
394         `d', `x', `X'.
395         (vars_of_file_coding): Add new variable
396         `coded-charset-entity-reference-alist'.
397         (complex_vars_of_file_coding): Declare `disable-composition' and
398         `use-entity-reference' to be coding-system-properties in UTF-2000.
399
400         * file-coding.h (struct Lisp_Coding_System): Add new member
401         `use_entity_reference' and `ccs_priority_list'.
402         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
403         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
404         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
405
406 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
407
408         * chartab.c (save_uint8_byte_table): Don't clear the table.
409         (save_uint16_byte_table): Likewise.
410         (save_byte_table): Likewise.
411         (Fmount_char_attribute_table): New function.
412         (syms_of_chartab): Add new builtin function
413         `mount-char-attribute-table'.
414
415 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
416
417         * mule-charset.c (Fsave_charset_mapping_table): Open database as
418         "w+" mode.
419         (load_char_decoding_entry_maybe): Open database as read-only mode.
420
421         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
422         open database as "w+" mode.
423         (load_char_attribute_maybe): Open database as read-only mode.
424         (Fload_char_attribute_table): Likewise.
425
426 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
429         (char_table_description): Delete member `db_file'.
430         (Fmake_char_table): Don't refer `ct->db_file'.
431         (Fcopy_char_table): Likewise.
432         (Fsave_char_attribute_table): Likewise.
433         (Fclose_char_attribute_table): Likewise.
434         (Freset_char_attribute_table): Likewise.
435         (load_char_attribute_maybe): Likewise.
436         (Fload_char_attribute_table): Likewise.
437
438         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
439
440 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
441
442         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
443         (Fsave_char_attribute_table): Don't check `ct->db_file' if
444         `ct->db' is living.
445         (load_char_attribute_maybe): Likewise.
446         (Fload_char_attribute_table): Likewise.
447
448 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
449
450         * chartab.c (Fclose_char_attribute_table): Set Qnil on
451         `ct->db_file' unconditionally.
452
453 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
454
455         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
456         UTF-2000.
457         (char_table_description): Add description for `db_file' and `db'
458         in UTF-2000.
459         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
460         UTF-2000.
461         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
462         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
463         (Fclose_char_attribute_table): New function.
464         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
465         (load_char_attribute_maybe): Change interface; use `cit->db_file'
466         and `cit->db'.
467         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
468         (syms_of_chartab): Add new builtin function
469         `Fclose_char_attribute_table'.
470
471 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
472
473         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
474         `db' in UTF-2000.
475         (load_char_attribute_maybe): Change interface.
476         (get_char_id_table): Modify for `load_char_attribute_maybe'.
477
478 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
479
480         * database.h: Add an EXFUN for `Fdatabase_live_p'.
481
482 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
483
484         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
485         instead of `DECODE_CHAR' for mother; don't use special code for
486         chinese-big5 to use code space of chinese-big5-1 and
487         chinese-big5-2.
488         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
489         `MAX_CHAR_BIG5_CDP' for chinese-big5.
490
491         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
492         (MAX_CHAR_BIG5_CDP): Revival.
493
494 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
497         the XLFD registry-encoding name of `chinese-big5'.
498
499 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
500
501         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
502         (Qchinese_big5_cdp): Deleted.
503         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
504         (complex_vars_of_mule_charset): Delete coded-charset
505         `chinese-big5-cdp'.
506
507         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
508         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
509         `CHARSET_ID_OFFSET - n' for private CCS.
510         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
511         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
512         of `MIN_LEADING_BYTE'.
513         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
514         `(CHARSET_ID_OFFSET - 97)'.
515         (MIN_CHAR_BIG5_CDP): Deleted.
516         (MAX_CHAR_BIG5_CDP): Deleted.
517
518 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
521
522 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
523
524         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
525         (vars_of_mule): Add new variable `utf-2000-version' [moved from
526         chartab.c].
527
528         * chartab.c (Vutf_2000_version): Moved to mule.c.
529         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
530
531 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
532
533         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
534         when HAVE_CHISE_CLIENT is not defined.
535
536         * mule.c (vars_of_mule): Provide feature `chise' when
537         HAVE_CHISE_CLIENT is defined.
538
539 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
540
541         * config.h.in (UTF2000): Add comment.
542         (HAVE_CHISE_CLIENT): New macro.
543
544 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
545
546         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
547         CONSP.
548         (Fput_char_attribute): Likewise.
549         (char_attribute_system_db_file): Encode file-name of attribute.
550         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
551         the initial value.
552
553 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
554
555         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
556         (Fsave_charset_mapping_table): Use
557         `char_attribute_system_db_file'.
558         (load_char_decoding_entry_maybe): Likewise.
559
560         * chartab.h (Qsystem_char_id): New external variable.
561         (char_attribute_system_db_file): New prototype.
562
563         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
564         (char_attribute_system_db_file): New function.
565         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
566         (Freset_char_attribute_table): Likewise.
567         (load_char_attribute_maybe): Likewise.
568         (Fload_char_attribute_table): Likewise.
569         (syms_of_chartab): Add new symbol `system-char-id'.
570
571 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
572
573         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
574         `XCHARSET_GRAPHIC(ccs)'.
575
576 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
579
580 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
581
582         * chartab.c (Q_ucs_variants): New variable.
583         (syms_of_chartab): Add new symbol `->ucs-variants'.
584         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
585         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
586         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
587
588         * mule-charset.c (load_char_decoding_entry_maybe): New function.
589
590         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
591         `HAVE_DATABASE' is defined.
592         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
593         `HAVE_DATABASE' is defined.
594
595 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
596
597         * chartab.c (Fsave_char_attribute_table): Don't clear internal
598         attribute-table.
599         (Freset_char_attribute_table): New function.
600         (syms_of_chartab): Add new builtin function
601         `reset-char-attribute-table'.
602
603 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * chartab.c (load_char_attribute_maybe): Don't make directories.
606
607 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
608
609         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
610
611         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
612         for decoding-table.
613
614 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
615
616         * mule-charset.c (Fsave_charset_mapping_table): Use
617         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
618
619         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
620         instead of `XCHARSET_CHARS'.
621
622 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
623
624         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
625         (XCHARSET_BYTE_SIZE): Likewise.
626
627         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
628         mule-charset.c].
629         (XCHARSET_BYTE_SIZE): Likewise.
630
631 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
632
633         * chartab.c (Fput_char_attribute): Use exec-directory instead of
634         data-directory to store database.
635         (Fsave_char_attribute_table): Likewise.
636         (load_char_attribute_maybe): Likewise.
637         (Fload_char_attribute_table): Likewise.
638
639 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
640
641         * mule-charset.c (Fsave_charset_mapping_table): New function.
642         (syms_of_mule_charset): Add new builtin function
643         `save-charset-mapping-table'.
644
645 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * char-ucs.h (decoding_table_check_elements): Delete prototype.
648         (get_ccs_octet_table): New inline function.
649         (put_ccs_octet_table): Likewise.
650         (decoding_table_put_char): Use `get_ccs_octet_table' and
651         `put_ccs_octet_table'.
652         (decoding_table_remove_char): Use `decoding_table_put_char'.
653         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
654
655         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
656         into encoding_table.
657         (make_charset): Use Qunbound instead Qnil as initial value of
658         decoding_table.
659
660 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
661
662         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
663         element is Qunloaded.
664         (map_over_uint16_byte_table): Likewise.
665         (map_over_byte_table): Likewise.
666         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
667         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
668         database support, load encoding-table of the specified
669         coded-charset if it is not loaded yet.
670         (save_uint8_byte_table): New function of UTF-2000 with external
671         database support.
672         (save_uint16_byte_table): Likewise.
673         (save_byte_table): Likewise.
674         (Fput_char_attribute): Don't store value into external database
675         even if the external database feature is supported in UTF-2000;
676         set `attribute' as name of char-table if the external database
677         feature is supported.
678         (Fsave_char_attribute_table): New function in UTF-2000.
679         (syms_of_chartab): Add new builtin function
680         `save-char-attribute-table' in UTF-2000.
681
682 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
683
684         * chartab.c (char_attribute_table_to_put): New variable in
685         UTF-2000.
686         (Qput_char_table_map_function): Likewise.
687         (value_to_put): Likewise.
688         (Fput_char_table_map_function): New function in UTF-2000.
689         (put_char_table): Use `Fmap_char_attribute' for
690         CHARTAB_RANGE_CHARSET in UTF-2000.
691         (Fput_char_attribute): Store symbol instead of string in
692         `XCHAR_TABLE_NAME (table)'.
693         (load_char_attribute_maybe): Likewise.
694         (syms_of_chartab): Add new symbol/function
695         `put-char-table-map-function'.
696
697 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
698
699         * database.h: Add new EXFUN for `Fmap_database'.
700
701         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
702         (syms_of_database): Likewise.
703
704         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
705         UTF-2000.
706         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
707         (XCHAR_TABLE_UNLOADED): Likewise.
708
709         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
710         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
711         HAVE_DATABASE is defined.
712         (char_attribute_table_to_load): New variable of UTF-2000 with
713         external database support.
714         (Qload_char_attribute_table_map_function): Likewise.
715         (Fload_char_attribute_table_map_function): New function of
716         UTF-2000 with external database support.
717         (Fload_char_attribute_table): New function of UTF-2000.
718         (Fmap_char_attribute): Call Fload_char_attribute_table if
719         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
720         (syms_of_chartab): Add new symbol and function
721         `load-char-attribute-table-map-function' in UTF-2000 with external
722         database support; add new function `load-char-attribute-table' in
723         UTF-2000.
724
725 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
726
727         * chartab.h (load_char_attribute_maybe): New prototype for
728         UTF-2000 with DATABASE support.
729         (get_char_id_table): Use `load_char_attribute_maybe' if
730         HAVE_DATABASE is defined.
731
732         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
733         with DATABASE support.
734
735 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
736
737         * chartab.c (Fput_char_attribute): Use S-expression as key of
738         external database.
739
740         * chartab.h (get_char_id_table): Use S-expression as key of
741         external database.
742
743 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
744
745         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
746         if an element is not loaded, load the corresponding attributes
747         from an external database.
748         (map_over_uint16_byte_table): Likewise.
749         (map_over_byte_table): Likewise.
750         (map_char_table): Modify for `map_over_uint8_byte_table',
751         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
752         element is not loaded, load the corresponding attributes from an
753         external database.
754         (Fput_char_attribute): Change initial values to Qunloaded.
755
756         * chartab.h (get_char_id_table): If a character attribute is not
757         loaded and the attribute value is not found in an external
758         database, store Qunbound as the attribute value.
759
760 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
761
762         * chartab.c (BT_UINT8_unloaded): New macro.
763         (UINT8_VALUE_P): Accept Qunloaded.
764         (UINT8_ENCODE): Likewise.
765         (UINT8_DECODE): Likewise.
766         (BT_UINT16_unloaded): New macro.
767         (UINT16_VALUE_P): Accept Qunloaded.
768         (UINT16_ENCODE): Likewise.
769         (UINT16_DECODE): Likewise.
770         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
771         BT_UINT16_unloaded.
772         (mark_char_table): Mark `ct->name' in UTF-2000.
773         (char_table_description): Add `name' in UTF-2000.
774         (Fmake_char_table): Initialize `ct->name'.
775         (Fcopy_char_table): Copy `ct->name'.
776         (Fput_char_attribute): Store value into an external database if
777         HAVE_DATABASE is defined.
778
779         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
780         UTF-2000.
781         (CHAR_TABLE_NAME): New macro in UTF-2000.
782         (XCHAR_TABLE_NAME): New macro in UTF-2000.
783         (get_char_id_table): Try to read an external database if Qunloaded
784         is stored in a table.
785
786         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
787         Qunloaded.
788
789 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
790
791         * database.h: Add EXFUN definitions for Fopen_database,
792         Fput_database, Fget_database and Fclose_database.
793
794         * data.c (Qunloaded): New variable in UTF-2000.
795
796         * lisp.h (Qunloaded): New variable in UTF-2000.
797
798 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * mule-charset.c (put_char_ccs_code_point): Modify for
801         `decoding_table_remove_char' and `decoding_table_put_char'.
802         (remove_char_ccs): Modify for `decoding_table_remove_char'.
803
804         * char-ucs.h (decoding_table_remove_char): Change arguments to
805         hide decoding_table vector.
806         (decoding_table_put_char): Likewise.
807
808 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
809
810         * mule-charset.c (decoding_table_remove_char): Moved to
811         char-ucs.h.
812         (decoding_table_put_char): Likewise.
813
814         * char-ucs.h (decoding_table_check_elements): New prototype [moved
815         from mule-charset.c].
816         (decoding_table_remove_char): New inline function [moved from
817         mule-charset.c].
818         (decoding_table_put_char): Likewise.
819
820 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
821
822         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
823         extension.
824
825 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
826
827         * mule-charset.c (decode_builtin_char): Support mother charsets.
828
829 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
830
831         * mule-charset.c (Q94x94x60): New variable.
832         (charset_code_point): Support conversion `94x94x60'.
833         (Fmake_charset): Likewise.
834         (syms_of_mule_charset): Add new symbol `94x94x60'.
835
836         * char-ucs.h (CONVERSION_94x94x60): New macro.
837
838 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
839
840         * mule-charset.c (charset_code_point): Unify code about
841         `code-offset'.
842
843 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
844
845         * mule-charset.c (charset_code_point): Merge code about builtin
846         characters into code about mother charsets; don't use
847         `range_charset_code_point'.
848         (range_charset_code_point): Deleted.
849
850 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * mule-charset.c (Qcode_offset): New variable.
853         (Fmake_charset): Use `XUINT' to get value of `min-code' and
854         `max-code'; accept new property `code-offset'.
855         (syms_of_mule_charset): Add new symbol `code-offset'.
856
857 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
858
859         * mule-charset.c (range_charset_code_point): Fixed.
860
861 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
862
863         * mule-charset.c (decode_builtin_char): Change semantics of
864         code-offset of coded-charset.
865         (charset_code_point): Likewise.
866         (range_charset_code_point): Likewise.
867         (complex_vars_of_mule_charset): Modify for the change.
868
869 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
870
871         * mule-charset.c (Fencode_char): Reverse arguments.
872
873         * mule-charset.c (charset_code_point): Fixed.
874
875 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
876
877         * mule-charset.c (Vcharset_mojikyo): Deleted.
878         (Vcharset_mojikyo_2022_1): Deleted.
879         (Vcharset_mojikyo_pj_{1..21}): Deleted.
880         (Qmin_code): New variable in UTF-2000.
881         (Qmax_code): Likewise.
882         (Qmother): Likewise.
883         (Qconversion): Likewise.
884         (Q94x60): Likewise.
885         (Qmojikyo): Deleted.
886         (Qmojikyo_2022_1): Deleted.
887         (Qmojikyo_pj_{1..22}): Deleted.
888         (mark_charset): Mark `cs->mother'.
889         (charset_description): Add description for `mother'.
890         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
891         new arguments `mother' and `conversion'; use
892         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
893         (charset_code_point): Moved from char-ucs.h; support `mother'
894         charset feature.
895         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
896         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
897         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
898         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
899         allow 2 as the value of `graphic' in UTF-2000; add new properties
900         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
901         require `final' in UTF-2000; modify for `make_charset'.
902         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
903         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
904         (Fcharset_property): Support `mother', `min-code' and `max-code'.
905         (Fencode_char): New function.
906         (syms_of_mule_charset): Add new builtin function `encode-char' in
907         UTF-2000; add new symbols `min-code', `max-code', `mother',
908         `conversion' and `94x60'; delete symbols `mojikyo',
909         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
910         (complex_vars_of_mule_charset): Modify for `make_charset' change;
911         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
912         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
913
914         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
915         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
916
917         * char-ucs.h (Vcharset_mojikyo): Deleted.
918         (Vcharset_mojikyo_2022_1): Deleted.
919         (LEADING_BYTE_MOJIKYO): Deleted.
920         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
921         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
922         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
923         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
924         add new member `mother'; add new member `conversion'.
925         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
926         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
927         (CHARSET_MOTHER): New macro.
928         (CHARSET_CONVERSION): New macro.
929         (CONVERSION_IDENTICAL): New macro.
930         (CONVERSION_94x60): New macro.
931         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
932         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
933         (XCHARSET_MOTHER): New macro.
934         (XCHARSET_CONVERSION): New macro.
935         (MIN_CHAR_MOJIKYO): Deleted.
936         (MAX_CHAR_MOJIKYO): Deleted.
937         (DECODE_MOJIKYO_2022): Deleted.
938         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
939         (charset_code_point): Changed to non-inline function.
940         (encode_char_1): Use `charset_code_point'.
941         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
942
943 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
944
945         * lread.c (read_compiled_function): Fix prototype.
946         (read_vector): Likewise.
947
948 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
949
950         * lrecord.h (struct lrecord_header): Delete `older'.
951         (set_lheader_implementation): Delete code for `older'.
952         (set_lheader_older_implementation): Deleted.
953         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
954         (OLDER_RECORD_P): Deleted.
955         (OLDER_RECORD_HEADER_P): Deleted.
956         (alloc_older_lcrecord): Deleted.
957         (alloc_older_lcrecord_type): Deleted.
958
959         * alloc.c (all_older_lcrecords): Deleted.
960         (alloc_older_lcrecord): Deleted.
961         (disksave_object_finalization_1): Delete code for older objects.
962         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
963         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
964
965 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
966
967         * mule-charset.c (decoding_table_put_char): Use `make_vector'
968         instead of `make_older_vector'.
969         (put_char_ccs_code_point): Likewise.
970         (mark_charset): Mark `cs->decoding_table'.
971         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
972
973         * lisp.h (make_older_vector): Deleted.
974         (make_vector_newer): Deleted.
975
976         * config.h.in (HAVE_GGC): Deleted.
977
978         * alloc.c (make_older_vector): Deleted.
979         (make_vector_newer_1): Deleted.
980         (make_vector_newer): Deleted.
981
982 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
983
984         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
985         (Qideograph_daikanwa_2): New variable.
986         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
987         (complex_vars_of_mule_charset): Add new coded-charset
988         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
989         `LEADING_BYTE_DAIKANWA'.
990
991         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
992         (LEADING_BYTE_DAIKANWA_1): New macro.
993         (LEADING_BYTE_DAIKANWA_2): New macro.
994         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
995
996 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
997
998         * mule-charset.c (complex_vars_of_mule_charset): Change
999         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1000         the second revised version.
1001
1002 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1003
1004         * mule-charset.c (Vcharset_ucs_smp): New variable.
1005         (Vcharset_ucs_sip): New variable.
1006         (Qucs_smp): New variable.
1007         (Qucs_sip): New variable.
1008         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1009         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1010         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1011         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1012         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1013         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1014
1015         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1016         (LEADING_BYTE_UCS_SIP): New macro.
1017         (MIN_CHAR_SMP): New macro.
1018         (MAX_CHAR_SMP): New macro.
1019         (MIN_CHAR_SIP): New macro.
1020         (MAX_CHAR_SIP): New macro.
1021
1022 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1023
1024         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1025         utf-2000.
1026
1027 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1028
1029         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1030         value; don't store value into `encoding_table' of `Lisp_Charset'.
1031         (mark_charset): `encoding_table' was deleted.
1032         (charset_description): Likewise.
1033         (make_charset): Likewise.
1034         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1035         `put_char_ccs_code_point'.
1036
1037         * chartab.h (Fput_char_attribute): New EXFUN.
1038
1039         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1040         is unified with normal symbol space.
1041         (Fget_char_attribute): Likewise.
1042         (Fput_char_attribute): Likewise; behavior of
1043         `put_char_ccs_code_point' is changed.
1044
1045         * char-ucs.h: Include "elhash.h".
1046         (Vchar_attribute_hash_table): New external variable.
1047         (struct Lisp_Charset): Delete `encoding_table'.
1048         (CHARSET_ENCODING_TABLE): New implementation; refer
1049         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1050         `Lisp_Charset'.
1051
1052 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1053
1054         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1055         (cs) == 0.
1056
1057 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1058
1059         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1060         `chinese-big5'.
1061
1062 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1063
1064         * chartab.c (uint8_byte_table_description): New constant.
1065         (uint8-byte-table): Use `uint8_byte_table_description'.
1066         (uint16_byte_table_description): New constant.
1067         (uint16-byte-table): Use `uint16_byte_table_description'.
1068
1069 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1070
1071         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1072         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1073
1074 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1075
1076         * mule-charset.c (Vcharset_ucs_ks): New variable.
1077         (Qucs_ks): New variable.
1078         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1079         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1080
1081         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1082
1083 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1084
1085         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1086         (Fdecode_char): Likewise.
1087
1088         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1089         chartab.h.
1090         (Fdefine_char): Modify for Fdecode_char.
1091         (Ffind_char): Likewise.
1092
1093         * mule-charset.c (Fdecode_char): Add new optional argument
1094         `defined-only'.
1095         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1096
1097 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1098
1099         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1100         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1101         (allocate_coding_system): Initialize initial-charsets of
1102         CODESYS_BIG5 in XEmacs UTF-2000.
1103         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1104         CODESYS_BIG5 in XEmacs UTF-2000.
1105         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1106         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1107
1108         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1109         variables.
1110         (Qideograph_hanziku_{1 .. 12}): Likewise.
1111         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1112         .. 12}'.
1113         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1114         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1115         `ideograph-hanziku-{1 .. 12}'.
1116
1117         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1118         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1119         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1120         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1121         (DECODE_DEFINED_CHAR): New inline function.
1122         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1123
1124 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1125
1126         * mule-charset.c (Vcharset_china3_jef): Renamed from
1127         `Vcharset_japanese_jef_china3'.
1128         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1129         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1130         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1131         (syms_of_mule_charset): Rename `china3-jef' from
1132         `japanese-jef-china3'.
1133         (complex_vars_of_mule_charset): Likewise; rename
1134         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1135
1136         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1137         `LEADING_BYTE_JEF_CHINA3'.
1138         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1139         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1140
1141 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1142
1143         * mule-charset.c (encode_builtin_char_1): Comment out special code
1144         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1145
1146         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1147         (MAX_CHAR_MOJIKYO_0): Comment out.
1148         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1149         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1150         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1151         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1152
1153 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1154
1155         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1156         (Qideograph_cbeta): New variable.
1157         (encode_builtin_char_1): Comment out special code for
1158         coded-charset `mojikyo' and `japanese-jef-china3'.
1159         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1160         (complex_vars_of_mule_charset): Add new coded-charset
1161         `ideograph-cbeta'.
1162
1163         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1164         (MIN_CHAR_CBETA): New macro.
1165         (MAX_CHAR_CBETA): New macro.
1166
1167 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1168
1169         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1170         (LEADING_BYTE_JEF_CHINA3): New macro.
1171         (MIN_CHAR_JEF_CHINA3): New macro.
1172         (MAX_CHAR_JEF_CHINA3): Likewise.
1173         (DECODE_CHAR): Fixed.
1174
1175 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1176
1177         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1178         (Qjapanese_jef_china3): New variable.
1179         (encode_builtin_char_1): Support `japanese-jef-china3'.
1180         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1181         (complex_vars_of_mule_charset): Add new coded-charset
1182         `japanese-jef-china3'.
1183
1184 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1185
1186         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1187         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1188         94^4, 96^3, 96^4, 128^n and 256^n set.
1189         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1190         (map_char_table): Likewise.
1191
1192 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1195         UTF-2000.
1196
1197 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1198
1199         * chartab.h (get_char_id_table): New inline function.
1200
1201         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1202         function.
1203
1204 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1205
1206         * chartab.h (decode_char_table_range): New prototype in XEmacs
1207         UTF-2000.
1208         (put_char_id_table): New inline function in XEmacs UTF-2000.
1209
1210         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1211         function.
1212         (decode_char_table_range): Delete static declaration in XEmacs
1213         UTF-2000.
1214
1215 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216
1217         * chartab.c (put_char_id_table): Use `put_char_table'.
1218
1219 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1220
1221         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1222         (map_over_uint16_byte_table): Likewise.
1223         (map_over_byte_table): Likewise.
1224         (map_char_table): Modify for `map_over_uint8_byte_table',
1225         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1226         UTF-2000.
1227
1228 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229
1230         * chartab.c (struct map_char_table_for_charset_arg): New
1231         structure.
1232         (map_char_table_for_charset_fun): New function.
1233         (map_char_table): Use `map_char_table' for encoding_table of
1234         `range->charset'.
1235
1236 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1237
1238         * chartab.c (map_char_table): Check a character is found in
1239         range->charset instead of non default value is defined in
1240         char-table when range is CHARTAB_RANGE_ROW.
1241
1242 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1243
1244         * chartab.c (map_char_id_table): Deleted.
1245         (Fmap_char_attribute): Use `map_char_table' instead of
1246         `map_char_id_table'.
1247
1248 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1249
1250         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1251         UTF-2000.
1252         (update_syntax_table): Deleted in XEmacs UTF-2000.
1253
1254         * syntax.c (find_defun_start): Use `syntax_table' instead of
1255         `mirror_syntax_table' in XEmacs UTF-2000.
1256         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1257         UTF-2000.
1258         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1259         XEmacs UTF-2000.
1260         (Fmatching_paren): Likewise.
1261         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1262         in XEmacs UTF-2000.
1263         (find_start_of_comment): Likewise.
1264         (find_end_of_comment): Likewise.
1265         (Fforward_comment): Likewise.
1266         (scan_lists): Likewise.
1267         (char_quoted): Likewise.
1268         (Fbackward_prefix_chars): Likewise.
1269         (scan_sexps_forward): Likewise.
1270         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1271         (update_syntax_table): Likewise.
1272
1273         * search.c (skip_chars): Use `syntax_table' instead of
1274         `mirror_syntax_table' in XEmacs UTF-2000.
1275         (wordify): Likewise.
1276         (Freplace_match): Likewise.
1277
1278         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1279         `mirror_syntax_table' in XEmacs UTF-2000.
1280         (WORDCHAR_P_UNSAFE): Likewise.
1281         (re_match_2_internal): Likewise.
1282
1283         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1284         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1285
1286         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1287         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1288
1289         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1290         XEmacs UTF-2000.
1291
1292         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1293         UTF-2000.
1294         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1295         (char_table_description): Delete `mirror_table' in XEmacs
1296         UTF-2000.
1297         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1298         UTF-2000.
1299         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1300         (Fcopy_char_table): Likewise.
1301         (put_char_table): Don't call `update_syntax_table' in XEmacs
1302         UTF-2000.
1303
1304         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1305         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1306         (casify_region_internal): Likewise.
1307
1308         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1309
1310         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1311         `mirror_syntax_table' in XEmacs UTF-2000.
1312
1313         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1314         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1315         (Fexpand_abbrev): Likewise.
1316
1317 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1318
1319         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1320
1321 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322
1323         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1324         (map_over_uint16_byte_table): Likewise.
1325         (map_over_byte_table): Likewise.
1326         (get_char_id_table): Refer `cit->default_value'.
1327         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1328         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1329         of character-id ranges.
1330         (mark_char_table): Mark `ct->default_value'.
1331         (char_table_description): Add `default_value'.
1332         (fill_char_table): Use `default_value'.
1333         (decode_char_table_range): Decode `nil' as
1334         `CHARTAB_RANGE_DEFAULT'.
1335         (get_char_id_table): Refer `cit->default_value'.
1336         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1337         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1338         temporary hack; check value of char-table is bound or not.
1339         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1340
1341         * chartab.h (struct Lisp_Char_Table): Add new member
1342         `default_value' in XEmacs UTF-2000.
1343         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1344         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1345         UTF-2000.
1346
1347 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1348
1349         * chartab.h (Lisp_Char_ID_Table): Deleted.
1350
1351         * chartab.c (char_table_description): Fix typo.
1352         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1353         `Lisp_Char_ID_Table'.
1354
1355 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1358         `CHAR_ID_TABLE_P'.
1359
1360         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1361         `CHAR_ID_TABLE_P'.
1362
1363         * chartab.h (XCHAR_ID_TABLE): Deleted.
1364         (XSETCHAR_ID_TABLE): Deleted.
1365         (CHAR_ID_TABLE_P): Deleted.
1366
1367         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1368         `CHAR_ID_TABLE_P'.
1369         (Fget_composite_char): Likewise.
1370         (put_char_table): Likewise.
1371         (add_char_attribute_alist_mapper): Fixed.
1372         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1373         `CHAR_ID_TABLE_P'.
1374         (Fget_char_attribute): Likewise.
1375         (Fget_char_attribute): Likewise.
1376         (Fmap_char_attribute): Likewise.
1377
1378         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1379         `CHAR_ID_TABLE_P'.
1380         (encode_char_1): Likewise.
1381
1382 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1385         `XCHAR_ID_TABLE'.
1386
1387         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1388         instead of `XCHAR_ID_TABLE'.
1389         (remove_char_ccs): Likewise.
1390
1391         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1392         `XCHAR_ID_TABLE'.
1393         (Fget_composite_char): Likewise.
1394         (Fchar_variants): Likewise.
1395         (put_char_table): Likewise.
1396         (add_char_attribute_alist_mapper): Likewise.
1397         (Fchar_attribute_alist): Likewise.
1398         (Fget_char_attribute): Likewise.
1399         (Fput_char_attribute): Likewise.
1400         (Fmap_char_attribute): Likewise.
1401         (Fmap_char_attribute): Likewise.
1402
1403         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1404         `XCHAR_ID_TABLE'.
1405         (encode_char_1): Likewise.
1406
1407 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408
1409         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1410         `Lisp_Char_ID_Table'.
1411         (mark_char_id_table): Deleted.
1412         (print_char_id_table): Likewise.
1413         (char_id_table_equal): Likewise.
1414         (char_id_table_hash): Likewise.
1415         (char_id_table_description): Likewise.
1416         (char_id_table): Likewise.
1417         (make_char_id_table): Use `Fmake_char_table' and
1418         `fill_char_table'.
1419         (get_char_id_table): Use `Lisp_Char_Table' instead of
1420         `Lisp_Char_ID_Table'.
1421         (put_char_id_table): Likewise.
1422         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1423         `XCHAR_ID_TABLE'.
1424         (Fremove_char_attribute): Likewise.
1425         (syms_of_chartab): Don't define type `char-id-table'.
1426
1427         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1428         (char_id_table): Likewise.
1429         (GC_CHAR_ID_TABLE_P): Likewise.
1430         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1431         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1432         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1433         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1434         (get_char_id_table): Use `Lisp_Char_Table' instead of
1435         `Lisp_Char_ID_Table'.
1436         (put_char_id_table_0): Likewise.
1437         (put_char_id_table): Likewise.
1438
1439 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1440
1441         * chartab.h: Lisp_Byte_Table related codes are moved from
1442         chartab.h.
1443
1444         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1445
1446 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1447
1448         * chartab.h: Don't include "chartab.h".
1449         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1450         (Lisp_Char_ID_Table): Likewise.
1451         (char_id_table): Likewise.
1452         (XCHAR_ID_TABLE): Likewise.
1453         (XSETCHAR_ID_TABLE): Likewise.
1454         (CHAR_ID_TABLE_P): Likewise.
1455         (GC_CHAR_ID_TABLE_P): Likewise.
1456         (get_char_id_table): Likewise.
1457
1458         * char-ucs.h: Include "chartab.h".
1459         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1460         (Lisp_Char_ID_Table): Likewise.
1461         (char_id_table): Likewise.
1462         (XCHAR_ID_TABLE): Likewise.
1463         (XSETCHAR_ID_TABLE): Likewise.
1464         (CHAR_ID_TABLE_P): Likewise.
1465         (GC_CHAR_ID_TABLE_P): Likewise.
1466         (get_char_id_table): Likewise.
1467
1468 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1469
1470         * chartab.c (copy_uint8_byte_table): New function.
1471         (copy_uint16_byte_table): New function.
1472         (copy_byte_table): New function.
1473         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1474         characters to call.
1475         (map_over_uint16_byte_table): Likewise.
1476         (map_over_byte_table): Likewise.
1477         (get_byte_table): Move prototype to chartab.h.
1478         (put_byte_table): Likewise.
1479         (put_char_id_table_0): Moved to chartab.h.
1480         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1481         (char_table_entry_equal): Likewise.
1482         (char_table_entry_hash): Likewise.
1483         (char_table_entry_description): Likewise.
1484         (char_table_entry): Likewise.
1485         (make_char_table_entry): Likewise.
1486         (copy_char_table_entry): Likewise.
1487         (get_non_ascii_char_table_value): Likewise.
1488         (map_over_charset_ascii): Likewise.
1489         (map_over_charset_control_1): Likewise.
1490         (map_over_charset_row): Likewise.
1491         (map_over_other_charset): Likewise.
1492         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1493         (print_char_table): Likewise.
1494         (char_table_equal): Likewise.
1495         (char_table_hash): Likewise.
1496         (char_table_description): Likewise.
1497         (fill_char_table): Likewise.
1498         (Fcopy_char_table): Likewise.
1499         (get_char_table): Likewise.
1500         (Fget_range_char_table): Likewise.
1501         (put_char_table): Likewise.
1502         (map_char_table): Likewise.
1503         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1504         UTF-2000.
1505
1506 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1507
1508         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1509         `Vauto_fill_chars' in XEmacs UTF-2000.
1510
1511         * chartab.h (get_byte_table): New prototype [moved from
1512         chartab.c].
1513         (put_byte_table): Likewise [moved from chartab.c].
1514         (put_char_id_table_0): New inline function [moved from chartab.c].
1515         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1516         (Lisp_Char_Table_Entry): Likewise.
1517         (char_table_entry): Likewise.
1518         (XCHAR_TABLE_ENTRY): Likewise.
1519         (XSETCHAR_TABLE_ENTRY): Likewise.
1520         (CHAR_TABLE_ENTRYP): Likewise.
1521         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1522         (NUM_ASCII_CHARS): Likewise.
1523         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1524         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1525
1526 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1527
1528         * chartab.c (get_char_id_table): Change interface.
1529         (put_char_id_table_0): New function.
1530         (put_char_id_table): Change interface; new implementation.
1531         (Fget_composite_char): Modify for interface change of
1532         `get_char_id_table'.
1533         (Fchar_variants): Likewise.
1534         (add_char_attribute_alist_mapper): Likewise.
1535         (Fchar_attribute_alist): Likewise.
1536         (Fget_char_attribute): Likewise.
1537         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1538         as same as character as the first argument like `put-char-table';
1539         modify for interface change of `put_char_id_table'.
1540         (Fremove_char_attribute): Modify for interface change of
1541         `put_char_id_table'.
1542
1543 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * text-coding.c: Sync up with XEmacs 21.2.41.
1546         (COMPOSE_ADD_CHAR): Modify for interface change of
1547         `get_char_id_table'.
1548
1549         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1550         change of `put_char_id_table'.
1551         (remove_char_ccs): Likewise.
1552
1553         * chartab.h (put_char_id_table): Change interface.
1554
1555         * char-ucs.h (get_char_id_table): Change interface.
1556         (charset_code_point): Modify for interface change of
1557         `get_char_id_table'.
1558         (encode_char_1): Likewise.
1559
1560 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1561
1562         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1563         argument `ccs'.
1564         (map_over_uint16_byte_table): Likewise.
1565         (map_over_byte_table): Likewise.
1566         (map_char_id_table): Add new argument `range' like
1567         `map_char_table'.
1568         (Fmap_char_attribute): Add new argument `range' like
1569         `Fmap_char_table'.
1570
1571 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1572
1573         * chartab.c (map_over_uint8_byte_table): Change interface of
1574         mapping function to use struct chartab_range instead of Emchar.
1575         (map_over_uint16_byte_table): Likewise.
1576         (map_over_byte_table): Likewise.
1577         (map_char_id_table): Likewise.
1578         (struct slow_map_char_id_table_arg): Deleted.
1579         (slow_map_char_id_table_fun): Deleted.
1580         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1581         function `slow_map_char_table_fun' instead of struct
1582         `slow_map_char_id_table_arg' and function
1583         `slow_map_char_id_table_fun'.
1584
1585 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1586
1587         * mule-charset.c: Move char-it-table related codes to chartab.c.
1588         (Vutf_2000_version): Moved to chartab.c.
1589         (Fdefine_char): Likewise.
1590         (Ffind_char): Likewise.
1591         (syms_of_mule_charset): Move types `uint8-byte-table',
1592         `uint16-byte-table', `byte-table' and `char-id-table' to
1593         chartab.c; move functions `char_attribute_list,
1594         `find_char_attribute_table, `char_attribute_alist,
1595         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1596         `map_char_attribute, `define_char, `find_char, `char_variants and
1597         `get_composite_char to chartab.c; move symbols `=>ucs',
1598         `->decomposition', `compat', `isolated', `initial', `medial',
1599         `final', `vertical', `noBreak', `fraction', `super', `sub',
1600         `circle', `square', `wide', `narrow', `small' and `font' to
1601         chartab.c.
1602         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1603         setting codes for `Vcharacter_composition_table' and
1604         `Vcharacter_variant_table' to chartab.c.
1605         (complex_vars_of_mule_charset): Move setting code for
1606         `Vchar_attribute_hash_table' to chartab.c.
1607
1608         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1609         (make_char_id_table): New prototype.
1610         (put_char_id_table): Likewise.
1611         (Fget_char_attribute): Likewise.
1612
1613         * chartab.c: Move char-id-table related code from mule-charset.c.
1614         (Vutf_2000_version): Moved from mule-charset.c.
1615
1616         * char-ucs.h (Qucs): New external variable.
1617         (put_char_ccs_code_point): New prototype.
1618         (remove_char_ccs): Likewise.
1619
1620 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1621
1622         * mule-charset.c (Vcharset_ucs_jis): New variable.
1623         (Qucs_jis): Likewise.
1624         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1625         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1626
1627         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1628
1629 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1630
1631         * mule-charset.c (map_over_uint8_byte_table): New function.
1632         (map_over_uint16_byte_table): Likewise.
1633         (map_over_byte_table): Likewise.
1634         (map_char_id_table): Likewise.
1635         (slow_map_char_id_table_fun): Likewise.
1636         (Fmap_char_attribute): Likewise.
1637         (syms_of_mule_charset): Add new function `map-char-attribute'.
1638
1639 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1640
1641         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1642         (syms_of_mule_charset): Add new function `find-char'.
1643
1644 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1645
1646         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1647         XEmacs UTF-2000.
1648         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1649         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1650         XEmacs UTF-2000.
1651         (complex_vars_of_mule_charset): Add new coded-charset
1652         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1653         `ideograph-gt-pj-*'.
1654
1655         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1656
1657 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1658
1659         * mule-charset.c (encode_builtin_char_1): Purge codes about
1660         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1661         {MIN|MAX}_CHAR_HEBREW.
1662         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1663         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1664
1665         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1666         (MAX_CHAR_GREEK): Purged.
1667         (MIN_CHAR_CYRILLIC): Purged.
1668         (MAX_CHAR_CYRILLIC): Purged.
1669         (MIN_CHAR_HEBREW): Commented out.
1670         (MAX_CHAR_HEBREW): Likewise.
1671
1672 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1673
1674         * mule-charset.c (Qto_ucs): New variable.
1675         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1676         (Fdefine_char): Likewise.
1677         (syms_of_mule_charset): Add new symbol `=>ucs'.
1678
1679 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1680
1681         * mule-charset.c (Fdecode_char): Fixed.
1682
1683 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1684
1685         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1686         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1687         "tcvn5712-1".
1688
1689 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690
1691         * mule-charset.c (Vcharset_ucs_big5): New variable.
1692         (Qucs_big5): Likewise.
1693         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1694         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1695
1696         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1697
1698 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1699
1700         * mule-charset.c (decode_builtin_char): Check Big5 code range
1701         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1702
1703 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1704
1705         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1706         (Qchinese_gb12345): Likewise.
1707         (Fdecode_builtin_char): Fixed.
1708         (syms_of_mule_charset): Add `chinese-gb12345'.
1709         (complex_vars_of_mule_charset): Add coded-charset
1710         `chinese-gb12345'.
1711
1712         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1713         (LEADING_BYTE_CHINESE_GB12345): New macro.
1714
1715 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1716
1717         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1718         and `latin-viscii-upper' for `latin-viscii'.
1719
1720 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1721
1722         * mule-charset.c (Fdecode_builtin_char): Comment out
1723         regularization code for ISO-IR GR representation.
1724
1725 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1726
1727         * mule-charset.c (decode_builtin_char): New function; renamed from
1728         `make_builtin_char'; return -1 instead of signal.
1729         (Fdecode_builtin_char): Use `decode_builtin_char'.
1730
1731         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1732         `make_builtin_char'.
1733         (DECODE_CHAR): Use `decode_builtin_char' instead of
1734         `make_builtin_char'; use mapping table of `chinese-big5' for
1735         `chinese-big5-{1,2}'.
1736
1737 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1738
1739         * text-coding.c (char_encode_big5): New function.
1740         (char_finish_big5): Likewise.
1741         (reset_encoding_stream): Use `char_encode_big5' and
1742         `char_finish_big5' for CODESYS_BIG5.
1743         (mule_encode): Don't use `encode_coding_big5'.
1744         (encode_coding_big5): Deleted.
1745
1746 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1747
1748         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1749         0x81- in XEmacs UTF-2000.
1750         (detect_coding_big5): Likewise.
1751
1752 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1753
1754         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1755         generate character-id if the CCS property does not have
1756         corresponding predefined character.
1757         (make_builtin_char): Return -1 if corresponding predefined
1758         character is not found.
1759         (Fdecode_char): Return nil if corresponding character is not
1760         found.
1761         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1762         don't map to builtin ucs space.
1763
1764 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1765
1766         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1767         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1768
1769 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770
1771         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1772         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1773         (Qideograph_gt): Likewise.
1774         (Qideograph_gt_pj_{1..11}): Likewise.
1775         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1776         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1777         `ideograph-gt-pj-11'.
1778         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1779         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1780         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1781
1782         * char-ucs.h (LEADING_BYTE_GT): New macro.
1783         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1784         (MIN_CHAR_GT): Likewise.
1785         (MAX_CHAR_GT): Likewise.
1786
1787 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1788
1789         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1790         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1791
1792         * doprnt.c (unsigned_int_converters): Add `c'.
1793         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1794
1795         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1796         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1797         `MIN_CHAR_MOJIKYO'.
1798         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1799         (MAX_CHAR_MOJIKYO_0): New macro.
1800         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1801
1802 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1803
1804         * mule-charset.c (Fdefine_char): Delete cemented out code.
1805         (encode_builtin_char_1): Modify for new allocation of builtin
1806         Mojikyo characters.
1807
1808         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1809
1810 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1811
1812         * mule-charset.c (Vcharset_ucs_cns): New variable.
1813         (Qucs_cns): New variable.
1814         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1815         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1816
1817 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1818
1819         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1820
1821 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1822
1823         * search.c (search_buffer): Make `charset_base_code' as
1824         character-id >> 6 to eliminate the corresponding last byte in
1825         UTF-8 representation [I'm not sure it is right thing].
1826         (boyer_moore): Likewise.
1827
1828 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1829
1830         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1831         representation in MULE.
1832
1833 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1834
1835         * text-coding.c (Fmake_coding_system): Use
1836         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1837         `EXTERNAL_PROPERTY_LIST_LOOP'.
1838
1839 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1840
1841         * text-coding.c (decode_output_utf8_partial_char): New function.
1842         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1843
1844 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1845
1846         * text-coding.c (decode_coding_utf8): Output original byte
1847         sequence if it is broken; change order of conditions.
1848
1849         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1850         of conditions.
1851
1852         * mb-multibyte.h (BYTE_ASCII_P):
1853         Use bit ops for char-signedness safety.
1854         (BYTE_C0_P): Use bit ops for char-signedness safety.
1855         (BYTE_C1_P): Use bit ops for char-signedness safety.
1856
1857         * character.h: (XCHAR_OR_CHAR_INT):
1858         Always use inline function.
1859         Remove redundant type checking assert() - XINT will abort quite
1860         nicely.
1861
1862 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1863
1864         * text-coding.c: (Fencode_shift_jis_char):
1865         (Fencode_big5_char):
1866         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1867         Replace 0 with '\0' when working with bytes.
1868         Replace initial "(" with "\(" in docstrings.
1869
1870         (Fmake_coding_system):
1871         When type is ccl and value is vector, register it with a proper
1872         symbol.  And checks whether the given ccl program is valid.
1873         (mule_decode): When calling ccl_driver, if src indicates
1874         NULL pointer, set an empty string instead.
1875         (mule_encode): Likewise.
1876
1877         (detect_eol_type):
1878         (detect_coding_sjis):
1879         (decode_coding_sjis):
1880         (detect_coding_big5):
1881         (decode_coding_big5):
1882         (detect_coding_ucs4):
1883         (decode_coding_ucs4):
1884         (detect_coding_utf8):
1885         (decode_coding_utf8):
1886         (detect_coding_iso2022):
1887         (decode_coding_iso2022):
1888         (decode_coding_no_conversion):
1889         (mule_decode):
1890         Make all detecting and decoding functions take an Extbyte * arg.
1891         (text_encode_generic):
1892         (encode_coding_big5):
1893         (encode_coding_no_conversion):
1894         (mule_encode):
1895         Make all encoding functions take a Bufbyte * arg.
1896         Use size_t instead of unsigned int for memory sizes.
1897         Only cast to unsigned char whenever dereferencing Extbyte *.
1898
1899         (struct lrecord_description fcd_description_1): Use countof.
1900         (complex_vars_of_file_coding):
1901         Use countof instead of sizeof.
1902         Use CHECK_NATNUM instead of CHECK_INT.
1903
1904 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * mule-charset.c (Fget_char_attribute): Add new optional argument
1907         `default-value'.
1908         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1909         (remove_char_ccs): Likewise.
1910
1911 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1912
1913         * text-coding.c (char_encode_shift_jis): New implementation in
1914         UTF-2000.
1915         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1916         ...)'.
1917
1918         * mule-charset.c (Vcharset_chinese_big5): New variable in
1919         UTF-2000.
1920         (Qchinese_big5): New variable in UTF-2000.
1921         (BIG5_SAME_ROW): New macro in UTF-2000.
1922         (make_builtin_char): Use builtin characters of
1923         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1924         characters of `Vcharset_chinese_big5'.
1925         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1926         (complex_vars_of_mule_charset): Add new coded-charset
1927         `chinese-big5' in UTF-2000.
1928
1929         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1930         (Vcharset_chinese_big5): New external variable declaration.
1931         (Vcharset_japanese_jisx0208_1990): Likewise.
1932
1933 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1934
1935         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1936         function.
1937         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1938
1939 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1940
1941         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1942         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1943         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1944         `mojikyo-pj-*'.
1945
1946 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1947
1948         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1949
1950 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1951
1952         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1953         to 0.17.
1954
1955 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1956
1957         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1958         for `CHARSET_BY_ATTRIBUTES'.
1959         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1960         `CHARSET_BY_ATTRIBUTES'.
1961
1962         * text-coding.c (struct decoding_stream): Rename member `CH' to
1963         `CPOS'.
1964         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1965         (decode_coding_sjis): Likewise.
1966         (decode_coding_big5): Likewise.
1967         (decode_coding_ucs4): Likewise.
1968         (decode_coding_utf8): Likewise.
1969         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1970         `CHARSET_BY_ATTRIBUTES'.
1971         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1972         `str->counter'; decode 3, 4 bytes sets.
1973         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1974         sets.
1975         (decode_coding_no_conversion): Use `str->cpos' instead of
1976         `str->ch'.
1977
1978         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1979         (Qmojikyo_2022_1): New variable.
1980         (make_charset): Don't use `CHARSET_TYPE_*'.
1981         (range_charset_code_point): Support coded-charset
1982         `mojikyo-2022-1'.
1983         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1984         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1985         `CHARSET_BY_ATTRIBUTES'.
1986         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1987         `CHARSET_BY_ATTRIBUTES'.
1988         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1989         (complex_vars_of_mule_charset): Add new coded-charset
1990         `mojikyo-2022-1'.
1991
1992         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1993         interface; changed to inline function.
1994
1995         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1996         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1997         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1998         (CHARSET_TYPE_94): Deleted.
1999         (CHARSET_TYPE_94X94): Deleted.
2000         (CHARSET_TYPE_96): Deleted.
2001         (CHARSET_TYPE_96X96): Deleted.
2002         (CHARSET_TYPE_128): Deleted.
2003         (CHARSET_TYPE_128X128): Deleted.
2004         (CHARSET_TYPE_256): Deleted.
2005         (CHARSET_TYPE_256X256): Deleted.
2006         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2007         to inline function.
2008         (DECODE_MOJIKYO_2022): New inline function.
2009         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2010         `Vcharset_mojikyo_2022_1'.
2011
2012 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2013
2014         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2015         instead of `EQ'.
2016         (put_byte_table): Likewise.
2017         (char_id_table_equal): Use `get_byte_table' [new implementation].
2018
2019 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020
2021         * mule-charset.c: Include <limits.h> in UTF-2000.
2022         (BT_UINT8_MIN): New macro in UTF-2000.
2023         (BT_UINT8_MAX): New macro in UTF-2000.
2024         (BT_UINT8_t): New macro in UTF-2000.
2025         (BT_UINT8_nil): New macro in UTF-2000.
2026         (BT_UINT8_unbound): New macro in UTF-2000.
2027         (INT_UINT8_P): New inline function in UTF-2000.
2028         (UINT8_VALUE_P): New inline function in UTF-2000.
2029         (UINT8_ENCODE): New inline function in UTF-2000.
2030         (UINT8_DECODE): New inline function in UTF-2000.
2031         (mark_uint8_byte_table): New function in UTF-2000.
2032         (print_uint8_byte_table): New function in UTF-2000.
2033         (uint8_byte_table_equal): New function in UTF-2000.
2034         (uint8_byte_table_hash): New function in UTF-2000.
2035         (make_uint8_byte_table): New function in UTF-2000.
2036         (uint8_byte_table_same_value_p): New function in UTF-2000.
2037         (BT_UINT16_MIN): New macro in UTF-2000.
2038         (BT_UINT16_MAX): New macro in UTF-2000.
2039         (BT_UINT16_t): New macro in UTF-2000.
2040         (BT_UINT16_nil): New macro in UTF-2000.
2041         (BT_UINT16_unbound): New macro in UTF-2000.
2042         (INT_UINT16_P): New inline function in UTF-2000.
2043         (UINT16_VALUE_P): New inline function in UTF-2000.
2044         (UINT16_ENCODE): New inline function in UTF-2000.
2045         (UINT16_DECODE): New inline function in UTF-2000.
2046         (UINT8_TO_UINT16): New inline function in UTF-2000.
2047         (mark_uint16_byte_table): New function in UTF-2000.
2048         (print_uint16_byte_table): New function in UTF-2000.
2049         (uint16_byte_table_equal): New function in UTF-2000.
2050         (uint16_byte_table_hash): New function in UTF-2000.
2051         (make_uint16_byte_table): New function in UTF-2000.
2052         (uint16_byte_table_same_value_p): New function in UTF-2000.
2053         (print_byte_table): New function in UTF-2000.
2054         (byte-table): Use `print_byte_table' as printer.
2055         (make_byte_table): Delete second argument `older'.
2056         (byte_table_same_value_p): New function in UTF-2000.
2057         (copy_byte_table): Deleted.
2058         (get_byte_table): New function in UTF-2000.
2059         (put_byte_table): New function in UTF-2000.
2060         (print_char_id_table): New function in UTF-2000.
2061         (char-id-table): Use `print_char_id_table' as printer.
2062         (make_char_id_table): Delete second argument `older'.
2063         (get_char_id_table): Use `get_byte_table [new implementation].
2064         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2065         implementation].
2066         (Ffind_char_attribute_table): New function in UTF-2000.
2067         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2068         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2069         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2070         (syms_of_mule_charset): Add new function
2071         `find-char-attribute-table' in UTF-2000.
2072
2073         * lrecord.h (enum lrecord_type): Add
2074         `lrecord_type_uint16_byte_table' and
2075         `lrecord_type_uint8_byte_table'.
2076
2077         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2078         (Lisp_Uint8_Byte_Table): New type.
2079         (XUINT8_BYTE_TABLE): New macro.
2080         (XSETUINT8_BYTE_TABLE): New macro.
2081         (UINT8_BYTE_TABLE_P): New macro.
2082         (GC_UINT8_BYTE_TABLE_P): New macro.
2083         (struct Lisp_Uint16_Byte_Table): New structure.
2084         (Lisp_Uint16_Byte_Table): New type.
2085         (XUINT16_BYTE_TABLE): New macro.
2086         (XSETUINT16_BYTE_TABLE): New macro.
2087         (UINT16_BYTE_TABLE_P): New macro.
2088         (GC_UINT16_BYTE_TABLE_P): New macro.
2089
2090 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2091
2092         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2093         (Vcharacter_ideographic_strokes_table): Deleted.
2094         (Vcharacter_total_strokes_table): Deleted.
2095         (Vcharacter_morohashi_daikanwa_table): Deleted.
2096         (Vcharacter_decomposition_table): Deleted.
2097         (Qname): Deleted because it is duplicated.
2098         (Qideographic_radical): Deleted.
2099         (Qideographic_strokes): Deleted.
2100         (Qtotal_strokes): Deleted.
2101         (Qmorohashi_daikanwa): Deleted.
2102         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2103         `ideographic-radical', `ideographic-strokes', `total-strokes',
2104         `morohashi-daikanwa' and `->decomposition'.
2105         (Fget_char_attribute): Likewise.
2106         (Fput_char_attribute): Likewise; use `make-vector' instead of
2107         `make_older_vector' for `->decomposition' value.
2108         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2109         `ideograph-daikanwa'.
2110         (syms_of_mule_charset): Delete builtin symbols `name',
2111         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2112         `morohashi-daikanwa'.
2113         (vars_of_mule_charset): Don't setup
2114         `Vcharacter_ideographic_radical_table',
2115         `Vcharacter_ideographic_strokes_table',
2116         `Vcharacter_total_strokes_table',
2117         `Vcharacter_morohashi_daikanwa_table' and
2118         `Vcharacter_decomposition_table'.
2119
2120 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2121
2122         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2123         `make_older_vector', `make_vector_newer_1' and
2124         `make_vector_newer'.
2125
2126         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2127         `make_older_vector' and `make_vector_newer'.
2128
2129         * config.h.in (HAVE_GGC): New macro.
2130
2131 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2132
2133         * mule-charset.c (struct char_attribute_list_closure): New
2134         structure in UTF-2000.
2135         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2136         (Fchar_attribute_list): Likewise.
2137         (Fset_charset_mapping_table): Use `make_vector_newer'.
2138         (Fdecode_builtin_char): New function in UTF-2000.
2139         (syms_of_mule_charset): Add new function `char-attribute-list' and
2140         `decode-builtin-char' in UTF-2000.
2141
2142         * lisp.h (make_vector_newer): New prototype.
2143
2144         * alloc.c (make_vector_newer_1): New function.
2145         (make_vector_newer): New function.
2146
2147 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2148
2149         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2150         50100)'.
2151
2152 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2153
2154         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2155         (Vcharacter_attribute_table): Deleted.
2156         (Vcharacter_name_table): Deleted.
2157         (put_char_attribute): Deleted.
2158         (remove_char_attribute): Deleted.
2159         (struct char_attribute_alist_closure): New structure.
2160         (add_char_attribute_alist_mapper): New function.
2161         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2162         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2163         (Fget_char_attribute): Likewise.
2164         (Fput_char_attribute): Likewise.
2165         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2166         of `remove_char_attribute'.
2167         (Fdefine_char): Return character.
2168         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2169         and `Vcharacter_name_table'.
2170         (complex_vars_of_mule_charset): Likewise
2171         `Vchar_attribute_hash_table'.
2172
2173 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2174
2175         * character.h (CHARC_CHARSET): New macro.
2176         (CHARC_CHARSET_ID): New macro.
2177         (CHARC_CODE_POINT): New macro.
2178         (CHARC_COLUMNS): New macro.
2179         (CHARC_TO_CHAR): New inline function.
2180         (CHARC_EQ): New inline function.
2181         (CHARC_ASCII_EQ): New inline function.
2182         (CHARC_IS_SPACE): New inline function.
2183         (ASCII_TO_CHARC): New inline function.
2184
2185         * char-ucs.h (encode_char_2): Deleted.
2186         (ENCODE_CHAR): Use `encode_char_1' again.
2187         (breakup_char_1): Likewise.
2188         (CHAR_TO_CHARC): New inline function.
2189
2190         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2191
2192 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2193
2194         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2195         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2196         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2197         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2198         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2199         `CHARC_IS_SPACE'.
2200         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2201
2202         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2203         `CHARC_CODE_POINT'.
2204         (x_output_display_block): Use `CHARC_CHARSET' and
2205         `CHARC_ASCII_EQ'.
2206
2207         * redisplay-tty.c (tty_output_display_block): Use
2208         `CHARC_ASCII_EQ'.
2209         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2210
2211         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2212
2213         * insdel.c (find_charsets_in_charc_string): Use
2214         `CHARC_CHARSET_ID'.
2215         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2216         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2217         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2218         (convert_charc_string_into_malloced_string): Likewise.
2219
2220 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2221
2222         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2223         instead of <Emchar_dynarr *> for buf; use
2224         `convert_bufbyte_string_into_charc_dynarr' instead of
2225         `convert_bufbyte_string_into_emchar_dynarr'; use
2226         `find_charsets_in_charc_string' instead of
2227         `find_charsets_in_emchar_string'.
2228
2229         * redisplay.h:
2230         - Include "character.h".
2231         (struct rune): New member `cglyph'; delete member `chr'.
2232
2233         * redisplay.c (redisplay_text_width_charc_string): New function;
2234         delete `redisplay_text_width_emchar_string'.
2235         (rtw_charc_dynarr): New variable; renamed from
2236         `rtw_emchar_dynarr'.
2237         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2238         `rtw_emchar_dynarr'; use
2239         `convert_bufbyte_string_into_charc_dynarr' instead of
2240         `convert_bufbyte_string_into_emchar_dynarr'; use
2241         `redisplay_text_width_charc_string' instead of
2242         `redisplay_text_width_emchar_string'.
2243         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2244         instead of `rtw_emchar_dynarr'; use
2245         `convert_bufbyte_string_into_charc_dynarr' instead of
2246         `convert_bufbyte_string_into_emchar_dynarr'.
2247         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2248         `redisplay_text_width_charc_string' instead of
2249         `redisplay_text_width_emchar_string'.
2250         (create_text_block): Modify for <struct rune> change.
2251         (generate_formatted_string_db): Likewise.
2252         (create_string_text_block): Likewise.
2253         (pixel_to_glyph_translation): Likewise.
2254
2255         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2256         instead of <const Emchar *>.
2257         (x_text_width): Likewise.
2258         (x_output_display_block): Use <Charc_dynarr *> instead
2259         <Emchar_dynarr *>; modify for <structure rune> change.
2260         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2261         *>.
2262
2263         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2264         <const Emchar *>; use `charc_string_displayed_columns' instead of
2265         `emchar_string_displayed_columns'.
2266         (tty_output_display_block): Use <Charc_dynarr *> instead of
2267         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2268         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2269         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2270         `tty_output_emchar_dynarr_dynarr'.
2271         (tty_output_charc_dynarr): New function; delete
2272         `tty_output_charc_dynarr'.
2273
2274         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2275         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2276         <Emchar_dynarr *> for buf; use
2277         `convert_bufbyte_string_into_charc_dynarr' instead of
2278         `convert_bufbyte_string_into_emchar_dynarr'.
2279
2280         * frame.c (title_string_charc_dynarr): New variable; renamed from
2281         `title_string_emchar_dynarr'.
2282         (generate_title_string): Use `title_string_charc_dynarr' instead
2283         of `title_string_emchar_dynarr'; use
2284         `convert_charc_string_into_malloced_string' instead of
2285         `convert_emchar_string_into_malloced_string'.
2286         (init_frame): Use `title_string_charc_dynarr' instead of
2287         `title_string_emchar_dynarr'.
2288
2289         * console.h:
2290         - Include "character.h".
2291         (struct console_methods): Use <const Charc *> instead of <const
2292         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2293         <Emchar_dynarr *> in output_string_method.
2294
2295         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2296         <Emchar_dynarr *>.
2297
2298         * console-stream.c (stream_text_width): Use <const Charc *>
2299         instead of <const Emchar *>.
2300
2301         * character.h (Charc_dynarr): New type.
2302
2303         * char-ucs.h (structure Charc): New structure; define new type
2304         `Charc'.
2305
2306         * char-lb.h (DECODE_CHAR): New inline function.
2307         (encode_char_1): New inline function.
2308         (ENCODE_CHAR): New macro.
2309         (structure Charc): New structure; define new type `Charc'.
2310
2311         * char-1byte.h (Vcharset_control_1): New macro.
2312         (Vcharset_latin_iso8859_1): New macro.
2313         (DECODE_CHAR): New inline function.
2314         (encode_char_1): New inline function.
2315         (ENCODE_CHAR): New macro.
2316         (structure Charc): New structure; define new type `Charc'.
2317
2318         * insdel.c (find_charsets_in_charc_string): New function; delete
2319         `find_charsets_in_emchar_string'.
2320         (charc_string_displayed_columns): New function; delete
2321         `emchar_string_displayed_columns'.
2322         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2323         `convert_bufbyte_string_into_emchar_dynarr'.
2324         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2325         `convert_charc_string_into_bufbyte_dynarr'.
2326         (convert_charc_string_into_malloced_string): New function; delete
2327         `convert_charc_string_into_malloced_string'.
2328
2329         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2330         `find_charsets_in_emchar_string'.
2331         (charc_string_displayed_columns): New prototype; delete
2332         `emchar_string_displayed_columns'.
2333         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2334         `convert_charc_string_into_bufbyte_dynarr'.
2335         (convert_charc_string_into_malloced_string): New prototype; delete
2336         `convert_charc_string_into_malloced_string'.
2337
2338 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2339
2340         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2341
2342 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2343
2344         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2345
2346         * char-ucs.h: Use <short> for <Charset_ID>.
2347
2348         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2349         <Charset_ID>.
2350
2351 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2352
2353         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2354         to 0.16.
2355
2356 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2357
2358         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2359         variable.
2360         (Qmorohashi_daikanwa): New variable.
2361         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2362         for `morohashi-daikanwa' attribute.
2363         (Fget_char_attribute): Likewise.
2364         (Fput_char_attribute): Likewise.
2365         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2366         has the same value of `ideograph-daikanwa'.
2367         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2368         (vars_of_mule_charset): Setup
2369         `Vcharacter_morohashi_daikanwa_table'.
2370
2371 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2372
2373         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2374         attributes.
2375         (add_charset_to_list_mapper): Add `key' instead of
2376         `XCHARSET_NAME (value)' to return aliases.
2377
2378 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2379
2380         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2381         variable.
2382         (Vcharacter_ideographic_strokes_table): New variable.
2383         (Qideographic_radical): New variable.
2384         (Qideographic_strokes): New variable.
2385         (Fchar_attribute_alist): Use
2386         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2387         attribute; use `Vcharacter_ideographic_strokes_table' for
2388         `ideographic-strokes' attribute.
2389         (Fget_char_attribute): Likewise.
2390         (Fput_char_attribute): Likewise.
2391         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2392         `ideographic-strokes'.
2393         (vars_of_mule_charset): Setup
2394         `Vcharacter_ideographic_radical_table' and
2395         `Vcharacter_ideographic_strokes_table'.
2396
2397 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2398
2399         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2400         (Qtotal_strokes): New variable.
2401         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2402         `total-strokes' attribute.
2403         (Fget_char_attribute): Likewise.
2404         (Fput_char_attribute): Likewise.
2405         (syms_of_mule_charset): Add new symbol `total-strokes'.
2406         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2407
2408 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2409
2410         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2411         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2412         are found.
2413         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2414         `->decomposition' attribute.
2415         (Fput_char_attribute): Likewise.
2416         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2417
2418 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2419
2420         * mule-charset.c (decoding_table_check_elements): New function.
2421         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2422
2423 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2424
2425         * mule-charset.c (Fset_charset_mapping_table): Use
2426         `put_char_ccs_code_point'.
2427
2428 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2429
2430         * mule-charset.c (decoding_table_put_char): New inline function.
2431         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2432
2433 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2434
2435         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2436         (XCHARSET_BYTE_SIZE): New macro.
2437         (decoding_table_remove_char): New inline function.
2438         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2439         `decoding_table_remove_char'.
2440         (remove_char_ccs): Use `decoding_table_remove_char'.
2441         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2442
2443 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2444
2445         * mule-charset.c (Vcharacter_name_table): New variable.
2446         (Qname): New variable.
2447         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2448         attribute.
2449         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2450         `Vcharacter_name_table' for `name' attribute.
2451         (Fremove_char_attribute): Use function `remove_char_ccs'.
2452         (put_char_ccs_code_point): New function.
2453         (remove_char_ccs): New function.
2454         (syms_of_mule_charset): Add new symbol `name'.
2455         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2456
2457 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2458
2459         * mule-charset.c (make_byte_table): Add new argument `older'.
2460         (make_char_id_table): Likewise.
2461         (copy_char_id_table): Comment out because it is not used.
2462         (put_char_id_table): Modify for `make_byte_table'.
2463         (Fput_char_attribute): Make encoding_table as older object;
2464         inherit older bit of `Vcharacter_composition_table'.
2465         (mark_charset): Don't mark `cs->encoding_table'.
2466         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2467         normal object; make `Vcharacter_composition_table' as an older
2468         object; delete staticpro for `Vcharacter_composition_table'; make
2469         `Vcharacter_variant_table' as a normal object.
2470
2471         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2472         (mark_object): Don't check older object in UTF-2000.
2473
2474         * lrecord.h (struct lrecord_header): Add new member `older' in
2475         UTF-2000.
2476         (set_lheader_implementation): Setup `SLI_header->older' in
2477         UTF-2000.
2478         (set_lheader_older_implementation): New macro in UTF-2000.
2479         (OLDER_RECORD_P): New macro in UTF-2000.
2480         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2481         (alloc_older_lcrecord): New prototype in UTF-2000.
2482         (alloc_older_lcrecord_type): New macro in UTF-2000.
2483
2484 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2485
2486         * mule-charset.c (byte_table_description): Use
2487         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2488         (char_id_table_description): Delete bogus `, 1'.
2489         (Fget_char_attribute): Refer encoding_table of each coded-charset
2490         to get value of coded-charset attribute of a character.
2491         (Fput_char_attribute): Use `make_older_vector' instead of
2492         `make_vector'; use encoding_table of each coded-charset to store
2493         value of coded-charset attribute of a character.
2494         (Fremove_char_attribute): Use encoding_table of each coded-charset
2495         to store value of coded-charset attribute of a character.
2496         (mark_charset): Mark `cs->encoding_table'; don't mark
2497         `cs->decoding_table'.
2498         (charset_description): Add description of new member
2499         `encoding_table'.
2500         (make_charset): Initialize `encoding_table'.
2501
2502         * char-ucs.h (struct Lisp_Charset): Add new member
2503         `encoding_table'.
2504         (CHARSET_ENCODING_TABLE): New macro.
2505         (XCHARSET_ENCODING_TABLE): New macro.
2506         (charset_code_point): New implementation.
2507         (encode_char_1): Likewise.
2508
2509         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2510         (disksave_object_finalization_1): Call finalizers of
2511         `all_older_lcrecords' in UTF-2000.
2512         (make_older_vector): New function in UTF-2000.
2513         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2514         UTF-2000.
2515
2516         * lisp.h (make_older_vector): New prototype in UTF-2000.
2517
2518 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2519
2520         * lrecord.h (enum lrecord_type): Rename
2521         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2522
2523         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2524         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2525         `get_char_code_table'.
2526
2527         * mule-charset.c (mark_char_id_table): Renamed from
2528         `mark_char_code_table'.
2529         (char_id_table_equal): Renamed from `char_code_table_equal'.
2530         (char_id_table_hash): Renamed from `char_code_table_hash'.
2531         (make_char_id_table): Renamed from `make_char_code_table'.
2532         (copy_char_id_table): Renamed from `copy_char_code_table'.
2533         (get_char_id_table): Renamed from `get_char_code_table'.
2534         (put_char_id_table): Renamed from `put_char_code_table'.
2535         (to_char_id): Renamed from `to_char_code'.
2536
2537         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2538         `Lisp_Char_Code_Table'.
2539         (char_id_table): Renamed from `char_code_table'.
2540         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2541         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2542         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2543         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2544         (get_char_id_table): Renamed from `get_char_code_table'.
2545
2546 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2547
2548         * lrecord.h (enum lrecord_type): Rename
2549         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2550
2551         * mule-charset.c (mark_byte_table): Renamed from
2552         `mark_char_byte_table'.
2553         (byte_table_equal): Renamed from `char_byte_table_equal'.
2554         (byte_table_hash): Renamed from `byte_table_hash'.
2555         (make_byte_table): Renamed from `make_byte_table'.
2556         (copy_byte_table): Renamed from `copy_char_byte_table'.
2557
2558         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2559         `Lisp_Char_Byte_Table'.
2560         (byte_table): Renamed from `char_byte_table'.
2561         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2562         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2563         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2564         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2565
2566 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2567
2568         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2569         (dfc_convert_to_internal_format): Likewise.
2570         
2571         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2572         * text-coding.c (Fcoding_system_alias_p): New function.
2573         * text-coding.c (Fcoding_system_aliasee): New function.
2574         * text-coding.c (append_suffix_to_symbol): New function.
2575         * text-coding.c (dangling_coding_system_alias_p): New function.
2576         * text-coding.c (Ffind_coding_system):
2577         * text-coding.c (Fcopy_coding_system):
2578         * text-coding.c (encode_coding_no_conversion):
2579         * text-coding.c (syms_of_file_coding):
2580         * text-coding.c (vars_of_file_coding):
2581         Rewrite coding system alias code.
2582         Allow nested aliases, like symbolic links.
2583         Allow redefinition of coding system aliases.
2584         Prevent existence of dangling coding system aliases.
2585         Eliminate convert_to_external_format.
2586         Eliminate convert_to_internal_format.
2587         
2588         * text-coding.c: Change enum eol_type to eol_type_t.
2589
2590 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2591
2592         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2593         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2594
2595         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2596         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2597
2598 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2599
2600         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2601         `ideograph-daikanwa'.
2602
2603         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2604         (Vcharset_ucs_bmp): Likewise.
2605         (Vcharset_mojikyo): Add new extern variable definition.
2606         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2607         (Vcharset_latin_iso8859_3): Likewise.
2608         (Vcharset_latin_iso8859_4): Likewise.
2609         (Vcharset_latin_iso8859_9): Likewise.
2610         (Vcharset_latin_viscii_lower): Likewise.
2611         (Vcharset_latin_viscii_upper): Likewise.
2612         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2613         `mojikyo' code-point is used to decode.
2614         (encode_char_2): New function [to convert `mojikyo' code-point to
2615         Mojikyo font encoding].
2616         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2617         (breakup_char_1): Likewise.
2618         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2619
2620 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2621
2622         * text-coding.c (Fmake_coding_system): Add document about
2623         `disable-composition' property.
2624
2625 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2626
2627         * text-coding.c (Qdisable_composition): New variable; delete
2628         `Qcomposite'.
2629         (Fmake_coding_system): Add new property `disable-composite';
2630         delete property `composite'.
2631         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2632         instead of `!CODING_SYSTEM_COMPOSITE'.
2633         (syms_of_file_coding): Add new symbol `disable-composition';
2634         delete symbol `composite'.
2635
2636         * file-coding.h (struct Lisp_Coding_System): Add
2637         `disable_composition'; delete `enable_composition'.
2638         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2639         `CODING_SYSTEM_COMPOSITE'.
2640         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2641         `XCODING_SYSTEM_COMPOSITE'.
2642
2643 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2644
2645         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2646         to 0.15.
2647
2648 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649
2650         * text-coding.c (Qcomposite): New variable.
2651         (Fmake_coding_system): Add new property `composite'.
2652         (struct decoding_stream): Add `combined_char_count',
2653         `combined_chars' and `combining_table' in UTF-2000.
2654         (COMPOSE_FLUSH_CHARS): New macro.
2655         (COMPOSE_ADD_CHAR): New macro.
2656         (reset_decoding_stream): Reset `str->combined_char_count' and
2657         `str->combining_table' in UTF-2000.
2658         (decode_coding_iso2022): Modify for character-decomposition.
2659         (syms_of_file_coding): Add new symbol `composite'.
2660
2661 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2662
2663         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2664         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2665         of `Vcharacter_composition_table' if `->decomposition' property
2666         has only 1 element.
2667         (Qlatin_tcvn5712): New variable.
2668         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2669         (complex_vars_of_mule_charset): Add new coded-charset
2670         `latin-tcvn5712'.
2671
2672         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2673
2674 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * file-coding.h (struct Lisp_Coding_System): Add
2677         `enable_composition'.
2678         (CODING_SYSTEM_COMPOSITE): New macro.
2679         (XCODING_SYSTEM_COMPOSITE): New macro.
2680
2681 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2682
2683         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2684
2685 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2686
2687         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2688         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2689
2690 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2691
2692         * mule-charset.c (Vcharset_mojikyo): New variable.
2693         (Fdefine_char): Don't use coded-charset which does not have
2694         non-builtin character range to allocate character-id.
2695         (Qmojikyo): New variable.
2696         (syms_of_mule_charset): Add new symbol `mojikyo'.
2697         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2698
2699         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2700         (LEADING_BYTE_MOJIKYO): New macro.
2701         (MIN_CHAR_MOJIKYO): New macro.
2702         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2703         (MAX_CHAR_MOJIKYO): New macro.
2704
2705 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2706
2707         * mule-charset.c (remove_char_attribute): Fixed.
2708
2709 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2710
2711         * mule-charset.c (remove_char_attribute): New function.
2712         (Fremove_char_attribute): New function.
2713         (encode_builtin_char_1): Comment out builtin-support for
2714         greek-iso8859-7 and cyrillic-iso8859-5.
2715         (Fdecode_char): Check `code' is an integer.
2716         (syms_of_mule_charset): Add `remove-char-attribute'.
2717         (MIN_CHAR_GREEK): Deleted.
2718         (MAX_CHAR_GREEK): Likewise.
2719         (MIN_CHAR_CYRILLIC): Likewise.
2720         (MAX_CHAR_CYRILLIC): Likewise.
2721         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2722         MAX_CHAR_GREEK for `greek-iso8859-7'.
2723
2724         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2725         (MAX_CHAR_GREEK): Likewise.
2726         (MIN_CHAR_CYRILLIC): Likewise.
2727         (MAX_CHAR_CYRILLIC): Likewise.
2728
2729 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2730
2731         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2732         format is used without `ucs' property.
2733         (Fdecode_char): Fix problem with GR representation.
2734         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2735         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2736
2737 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2738
2739         * mule-charset.c (make_builtin_char): New function.
2740         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2741         (Fset_charset_mapping_table): Modify for new representation of
2742         code-point.
2743         (Fdecode_char): New function.
2744         (syms_of_mule_charset): Add new builtin function `decode-char' in
2745         UTF-2000.
2746
2747         * char-ucs.h (make_builtin_char): New prototype.
2748         (DECODE_CHAR): New inline function.
2749         (MAKE_CHAR): Use `DECODE_CHAR'.
2750
2751 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2752
2753         * text-coding.c (parse_charset_conversion_specs): Use
2754         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2755         `XCHARSET_TYPE'.
2756         (iso2022_designate): Likewise.
2757
2758         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2759         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2760
2761         * mule-charset.c (Vcharset_ucs): New variable.
2762         (print_charset): Change design; use `CHARSET_CHARS' and
2763         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2764         (make_charset): Change signature to specify `chars' and
2765         `dimension' instead of `type'.
2766         (range_charset_code_point): Modify for 256^n-set.
2767         (encode_builtin_char_1): Encode as `ucs' in default.
2768         (Fmake_charset): Modify for `make_charset'.
2769         (Fmake_reverse_direction_charset): Likewise.
2770         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2771         UTF-2000.
2772         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2773         for `make_charset'.
2774
2775         * char-ucs.h (Vcharset_ucs): New variable.
2776         (LEADING_BYTE_UCS): New macro.
2777         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2778         and `chars' to `unsigned short' from `unsigned int'.
2779         (CHARSET_TYPE): Deleted.
2780         (XCHARSET_TYPE): Deleted.
2781
2782 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2783
2784         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2785
2786         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2787         (ENCODE_CHAR): New macro.
2788
2789 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2790
2791         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2792         to 0.14 (Kawachi-Katakami).
2793
2794 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2795
2796         * text-coding.c (char_encode_shift_jis): Modify for
2797         `charset_code_point'.
2798         (char_encode_iso2022): Likewise.
2799
2800         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2801         (integer) instead of list of <Lisp_Object>s (integers) as the
2802         format of code-point of a coded-charset.
2803         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2804         (encode_builtin_char_1): New function; delete
2805         `split_builtin_char'.
2806         (charset_code_point): Return <int> instead of <Lisp_Object>.
2807         (Fsplit_char): Don't use `SPLIT_CHAR'.
2808
2809         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2810         prototype for `split_builtin_char'.
2811         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2812         (charset_code_point): Likewise.
2813         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2814         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2815
2816 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2817
2818         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2819         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2820
2821 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2822
2823         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2824
2825         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2826         (MAX_CHAR_OBS_94x94): Deleted.
2827
2828 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2829
2830         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2831
2832         * char-ucs.h (MAX_CHAR_BMP): New macro.
2833
2834 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2835
2836         * text-coding.c: Sync with r21-2-24.
2837
2838 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2839
2840         * file-coding.c: Modify for UTF-2000.
2841
2842 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2843
2844         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2845         to 0.13 (Takaida).
2846
2847 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2848
2849         * mule-charset.c (split_builtin_char): Delete builtin support for
2850         `katakana-jisx0201'.
2851         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2852         BMP area in builtin representation.
2853
2854         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2855         `Vcharset_katakana_jisx0201'.
2856
2857 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2858
2859         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2860         (Qisolated): New variable.
2861         (Qinitial): New variable.
2862         (Qmedial): New variable.
2863         (Qfinal): New variable.
2864         (Qvertical): New variable.
2865         (Qsmall): New variable.
2866         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2867         `Qvertical' and `Qsmall'.
2868         (Qmojikyo_pj_[1 .. 21]): New variable.
2869         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2870         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2871         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2872         .. 21]'.
2873
2874 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2875
2876         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2877         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2878         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2879
2880 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2881
2882         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2883         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2884         BMP.
2885         (Qjapanese_jisx0208_1990): New variable.
2886         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2887         (complex_vars_of_mule_charset): Add new coded-charset
2888         `japanese-jisx0208-1990'.
2889
2890         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2891         (MIN_CHAR_JIS_X0208_1990): New macro.
2892         (MAX_CHAR_JIS_X0208_1990): New macro.
2893
2894 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2895
2896         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2897         coded-charset is not found.
2898
2899 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2900
2901         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2902         (Fdefine_char): Use `Fmake_char'.
2903
2904 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2905
2906         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2907         (Vcharset_hiragana_jisx0208): Deleted.
2908         (Vcharset_katakana_jisx0208): Deleted.
2909         (Qideograph_daikanwa): New variable.
2910         (Qhiragana_jisx0208): Deleted.
2911         (Qkatakana_jisx0208): Deleted.
2912         (split_builtin_char): Split `ideograph-daikanwa'.
2913         (Fsplit_char): New implementation for UTF-2000.
2914         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2915         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2916         (complex_vars_of_mule_charset): Add new coded-charset
2917         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2918         `katakana-jisx0208'.
2919
2920         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2921         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2922         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2923         (MIN_CHAR_DAIKANWA): New macro.
2924         (MAX_CHAR_DAIKANWA): New macro.
2925
2926 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2927
2928         * data.c (Fstring_to_number): Don't recognize floating point if
2929         base is not 10.
2930
2931 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2932
2933         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2934
2935 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2936
2937         * mule-charset.c (Qsquare): New variable.
2938         (to_char_code): Add `Qsquare'.
2939         (syms_of_mule_charset): Add new symbol `square'.
2940
2941 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2942
2943         * mule-charset.c (Qcircle): New variable.
2944         (to_char_code): Add `Qcircle'.
2945         (syms_of_mule_charset): Add new symbol `circle'.
2946
2947 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2948
2949         * mule-charset.c (Qfont): New variable.
2950         (to_char_code): Add `Qfont'.
2951         (syms_of_mule_charset): Add new symbol `font'.
2952
2953 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2954
2955         * mule-charset.c (Qsub): New variable.
2956         (to_char_code): Add `Qsub'.
2957         (syms_of_mule_charset): Add new symbol `sub'.
2958
2959 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2960
2961         * mule-charset.c (Fput_char_attribute): Convert each element of
2962         VALUE to GL position if ATTRIBUTE is a GR-set,
2963
2964 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2965
2966         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2967         coded-charset is a GR-set.
2968
2969 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2970
2971         * mule-charset.c (Fput_char_attribute): Check each element of
2972         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2973
2974 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2975
2976         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2977         UTF-2000.
2978         (Qethiopic_ucs): New variable in UTF-2000.
2979         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2980         (complex_vars_of_mule_charset): Add new coded-charset
2981         `ethiopic-ucs' in UTF-2000.
2982
2983         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2984         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2985         9)'.
2986         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2987         10)'.
2988         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2989
2990 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2991
2992         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2993         `ascii'.
2994
2995 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2996
2997         * mule-charset.c (Vcharacter_variant_table): New variable.
2998         (Q_ucs): New variable.
2999         (Fchar_variants): New function.
3000         (Fput_char_attribute): Register `->ucs' value to
3001         `Vcharacter_variant_table'.
3002         (syms_of_mule_charset): Add new function `char-variants' and new
3003         symbol `->ucs'.
3004         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3005
3006 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3007
3008         * mule-charset.c (get_char_code_table): Allow negative character
3009         code.
3010         (put_char_code_table): Likewise.
3011         (Vcharacter_composition_table): New variable.
3012         (Q_decomposition): New variable.
3013         (Qwide): New variable.
3014         (Qnarrow): New variable.
3015         (Qcompat): New variable.
3016         (QnoBreak): New variable.
3017         (Qsuper): New variable.
3018         (Qfraction): New variable.
3019         (to_char_code): New function.
3020         (Fget_composite_char): New function.
3021         (Fput_char_attribute): Register `->decomposition' value to
3022         `Vcharacter_composition_table'.
3023         (syms_of_mule_charset): Add new function `get-composite-char', new
3024         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3025         `super' and `fraction'.
3026         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3027
3028 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3029
3030         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3031         character; copy the return value.
3032
3033 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3034
3035         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3036
3037         * mule-charset.c (range_charset_code_point): Must use make_int.
3038         (split_builtin_char): New function.
3039
3040 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3041
3042         * mule-charset.c (char_byte_table): Change name from
3043         "char-code-table" to "char-byte-table".
3044         (mark_char_code_table): New function.
3045         (char_code_table_equal): New function.
3046         (char_code_table_hash): New function.
3047         (char_code_table_description): New constant.
3048         (char_code_table): New type.
3049         (make_char_code_table): New function.
3050         (copy_char_code_table): New function.
3051         (get_char_code_table): Modify for `char_code_table' type.
3052         (put_char_code_table): Likewise.
3053         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3054         (Kashiwara).
3055
3056         * char-ucs.h (char_code_table): New type.
3057         (XCHAR_CODE_TABLE): New macro.
3058         (XSETCHAR_CODE_TABLE): New macro.
3059         (CHAR_CODE_TABLE_P): New macro.
3060         (GC_CHAR_CODE_TABLE_P): New macro.
3061         (struct Lisp_Char_Code_Table): New structure.
3062
3063 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3064
3065         * mule-charset.c (Fmake_charset): Setup byte_offset for
3066         {94|96}^n-set.
3067
3068 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3069
3070         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3071         character.
3072
3073 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3074
3075         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3076         is found.
3077
3078 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3079
3080         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3081         charset, it is regarded as a charset.
3082         (put_char_attribute): New function in UTF-2000.
3083         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3084         charset, mapping-table of the charset is modified.
3085         (Fdefine_char): New function in UTF-2000.
3086         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3087         `Fput_char_attribute'.
3088         (syms_of_mule_charset): Add new function `define-char' and new
3089         symbol `ucs' in UTF-2000.
3090         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3091
3092 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3093
3094         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3095         non-UTF-2000 configuration.
3096
3097 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3098
3099         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3100         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3101
3102         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3103         deleted.
3104         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3105         (Fset_charset_mapping_table): Likewise.
3106
3107         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3108         (CHARSET_ENCODING_TABLE): Delete.
3109         (XCHARSET_ENCODING_TABLE): Delete.
3110         (charset_code_point): New interface.
3111
3112 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3113
3114         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3115         instead of `charset_get_byte1' and `charset_get_byte2'.
3116
3117         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3118         (charset_get_byte2): Deleted.
3119
3120 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3121
3122         * char-ucs.h (SPLIT_CHAR): New inline function.
3123         (breakup_char_1): Use `SPLIT_CHAR'.
3124
3125         * mule-charset.c (range_charset_code_point): New function.
3126         (charset_code_point): New function.
3127
3128         * char-ucs.h (range_charset_code_point): New interface.
3129         (breakup_char_1): Use `range_charset_code_point'.
3130
3131 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3132
3133         * mule-charset.c (Fmake_charset): Delete unused local variable
3134         `code_offset'.
3135
3136         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3137         (breakup_char_1): Find a charset and code-point in
3138         `Vcharacter_attribute_table'.
3139
3140 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3141
3142         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3143         to 0.10 (Yao).
3144
3145 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3146
3147         * mule-charset.c (Vcharacter_attribute_table): New variable.
3148         (Fchar_attribute_alist): New function.
3149         (Fget_char_attribute): New function.
3150         (Fput_char_attribute): New function.
3151         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3152         too.
3153         (syms_of_mule_charset): Add new function `char-attribute-alist',
3154         `get-char-attribute' and `put-char-attribute'.
3155         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3156
3157 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3158
3159         * mule-charset.c (Fmake_charset): Just use
3160         `get_unallocated_leading_byte'.
3161
3162         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3163         sets; don't use final-byte based number for private sets.
3164
3165 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3166
3167         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3168         integer.
3169
3170 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3171
3172         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3173         to 0.9.
3174
3175 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3176
3177         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3178         of `CHAR_LEADING_BYTE' in UTF-2000.
3179
3180         * insdel.c (find_charsets_in_bufbyte_string): Use
3181         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3182         (find_charsets_in_emchar_string): Likewise.
3183
3184         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3185         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3186
3187         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3188         (CHAR_CHARSET_ID): New macro.
3189
3190 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3191
3192         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3193         charset-id - MIN_LEADING_BYTE.
3194         (put_char_table): Likewise.
3195
3196 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3197
3198         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3199         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3200         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3201         (CHARSET_ID_OFFSET): New macro.
3202         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3203         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3204         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3205         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3206         4).
3207         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3208         5).
3209         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3210         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3211         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3212         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3213         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3214
3215 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3216
3217         * mule-charset.c (next_allocated_leading_byte): New variable in
3218         UTF-2000.
3219         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3220         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3221         (get_unallocated_leading_byte): Simply use
3222         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3223         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3224         UTF-2000.
3225
3226         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3227         (MAX_LEADING_BYTE_PRIVATE): New macro.
3228         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3229         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3230
3231 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3232
3233         * mule-charset.c (Fmake_charset): Allocate final-byte based
3234         charset-id for 94-set, 96-set and 94x94-set.
3235
3236 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3237
3238         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3239         ambiguous `else'.
3240         (Fmake_charset): Likewise.
3241         (complex_vars_of_mule_charset): Modify the font registry of
3242         `ucs-bmp' not to match `Ethiopic-Unicode'.
3243
3244 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3245
3246         * mule-charset.c (complex_vars_of_mule_charset): Add font
3247         registory of `ucs-bmp'.
3248
3249 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3250
3251         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3252         coded-charsets in `default-coded-charset-priority-list' when
3253         breaking up a character.
3254
3255         * mule-charset.c (Vcharset_latin_viscii): New variable.
3256         (Qlatin_viscii): New variable.
3257         (make_charset): Don't use `decoding_table'.
3258         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3259         byte_offset.
3260         (Fset_charset_mapping_table): New implementation.
3261         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3262         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3263         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3264         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3265         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3266         charset `latin_viscii'.
3267
3268         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3269         (CHARSET_TYPE_94X94): Change to 1 from 2.
3270         (CHARSET_TYPE_96): Change to 2 from 1.
3271         (CHARSET_TYPE_128): New macro.
3272         (CHARSET_TYPE_128X128): Change to 5 from 4.
3273         (CHARSET_TYPE_256): New macro.
3274         (CHARSET_TYPE_256X256): Change to 7 from 5.
3275         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3276
3277 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3278
3279         * text-coding.c (char_encode_shift_jis): Refer
3280         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3281         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3282
3283         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3284         (char_byte_table_equal): New function in UTF-2000.
3285         (char_byte_table_hash): New function in UTF-2000.
3286         (char_byte_table_description): New constant in UTF-2000.
3287         (char_byte_table): New type in UTF-2000.
3288         (make_char_byte_table): New function in UTF-2000.
3289         (copy_char_byte_table): New function in UTF-2000.
3290         (make_char_code_table): New macro in UTF-2000.
3291         (get_char_code_table): New function in UTF-2000.
3292         (put_char_code_table): New function in UTF-2000.
3293         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3294         (charset_description): Add setting in UTF-2000.
3295         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3296         `CHARSET_TO_BYTE1_TABLE(cs)'.
3297         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3298         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3299         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3300         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3301         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3302         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3303         `CHARSET_TO_BYTE2_TABLE(cs)'.
3304
3305         * char-ucs.h (char_byte_table): New type.
3306         (XCHAR_BYTE_TABLE): New macro.
3307         (XSETCHAR_BYTE_TABLE): New macro.
3308         (CHAR_BYTE_TABLE_P): New macro.
3309         (GC_CHAR_BYTE_TABLE_P): New macro.
3310         (struct Lisp_Char_Byte_Table): New structure.
3311         (get_char_code_table): New interface.
3312         (Emchar_to_byte_table): Deleted.
3313         (get_byte_from_character_table): Deleted.
3314         (struct Lisp_Charset): Add `encoding_table'; delete
3315         `to_byte1_table' and `to_byte2_table'.
3316         (CHARSET_ENCODING_TABLE): New macro.
3317         (CHARSET_TO_BYTE1_TABLE): Deleted.
3318         (CHARSET_TO_BYTE2_TABLE): Deleted.
3319         (XCHARSET_ENCODING_TABLE): New macro.
3320         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3321         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3322
3323 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3324
3325         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3326         `vietnamese-viscii-*'.
3327
3328 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3329
3330         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3331         (Qvietnamese_viscii_upper): New variable.
3332         (Fdefine_charset_alias): New function.
3333         (syms_of_mule_charset): Add new function `define-charset-alias'.
3334         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3335         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3336         `latin-viscii-*'.
3337
3338 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3339
3340         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3341         (MAX_CHAR_OBS_94x94): New macro.
3342         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3343         for 94x94 sets.
3344
3345         * mule-charset.c (put_byte_from_character_table): Change unit size
3346         from 128 to 256.
3347         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3348         not defined.
3349         (Fmake_reverse_direction_charset): Modify dummy argument of
3350         `make_charset' for non-UTF-2000 environment.
3351
3352 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3353
3354         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3355
3356         * mule-charset.c (destroy_byte_from_character_table): New macro.
3357         (latin_jisx0201_to_ucs): Deleted.
3358         (latin_iso8859_2_to_ucs): Deleted.
3359         (latin_iso8859_3_to_ucs): Deleted.
3360         (latin_iso8859_4_to_ucs): Deleted.
3361         (latin_iso8859_9_to_ucs): Deleted.
3362         (latin_viscii_lower_to_ucs): Deleted.
3363         (latin_viscii_upper_to_ucs): Deleted.
3364         (mark_charset): Mark `cs->decoding_table'.
3365         (Fcharset_mapping_table): Fix DOC-string.
3366         (Fset_charset_mapping_table): New function.
3367         (syms_of_mule_charset): Add nwe function
3368         `set-charset-mapping-table'.
3369         (complex_vars_of_mule_charset): Don't setup and use
3370         `latin_*_to_ucs'.
3371
3372 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3373
3374         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3375         charset.
3376
3377 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3378
3379         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3380         (Vcharset_katakana_jisx0208): New variable.
3381         (Qhiragana_jisx0208): New variable.
3382         (Qkatakana_jisx0208): New variable.
3383         (make_charset): Add new argument `byte_offset'.
3384         (charset_get_byte1): Modify for new coded-charset definition; use
3385         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3386         `XCHARSET_BYTE_OFFSET'.
3387         (Fmake_charset): Modify for `make_charset'.
3388         (Fmake_reverse_direction_charset): Likewise.
3389         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3390         `katakana-jisx0208'.
3391         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3392         `.'  in font registry of charset `katakana-jisx0201',
3393         `latin-jisx0201', `vietnamese-viscii-lower' and
3394         `vietnamese-viscii-upper'; modify DOC-string of charset
3395         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3396         registry of charset `japanese-jisx0208' not to use font for JIS
3397         X0208:1990; add new charset `hiragana-jisx0208' and
3398         `katakana-jisx0208'.
3399
3400         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3401         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3402         (struct Lisp_Charset): Add `byte_offset'.
3403         (CHARSET_BYTE_OFFSET): New macro.
3404         (XCHARSET_UCS_MIN): New macro.
3405         (XCHARSET_UCS_MAX): New macro.
3406         (XCHARSET_CODE_OFFSET): New macro.
3407         (XCHARSET_BYTE_OFFSET): New macro.
3408         (MIN_CHAR_HIRAGANA): New macro.
3409         (MAX_CHAR_HIRAGANA): New macro.
3410         (MIN_CHAR_KATAKANA): New macro.
3411         (MAX_CHAR_KATAKANA): New macro.
3412         (MAKE_CHAR): Modify for new coded-charset definition; use
3413         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3414         `XCHARSET_BYTE_OFFSET'.
3415
3416 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3417
3418         * mule-charset.c (CHAR96): Deleted.
3419         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3420         <Lisp_Object>.
3421         (latin_iso8859_2_to_ucs): Likewise.
3422         (latin_iso8859_3_to_ucs): Likewise.
3423         (latin_iso8859_4_to_ucs): Likewise.
3424         (latin_iso8859_9_to_ucs): Likewise.
3425         (latin_viscii_lower_to_ucs): Likewise.
3426         (latin_viscii_upper_to_ucs): Likewise.
3427         (latin_tcvn5712_to_ucs): Commented out.
3428         (make_charset): Change type of argument `decoding_table' from
3429         <Emchar*> to <Lisp_Object> [vector of characters].
3430         (Fmake_charset): Modify for `make_charset'.
3431         (Fmake_reverse_direction_charset): Likewise.
3432         (Fcharset_mapping_table): New function in UTF-2000.
3433         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3434         UTF-2000.
3435         (complex_vars_of_mule_charset): Modify for type change of
3436         `*_to_ucs'; modify for `make_charset'.
3437
3438         * char-ucs.h (struct Lisp_Charset): Change type of
3439         `decoding_table' from <Emchar*> to <Lisp_Object>.
3440         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3441
3442 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3443
3444         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3445         error with non-UTF-2000-Mule.
3446
3447 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3448
3449         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3450         in lisp again].
3451         (Vcharset_chinese_cns11643_4): Likewise.
3452         (Vcharset_chinese_cns11643_5): Likewise.
3453         (Vcharset_chinese_cns11643_6): Likewise.
3454         (Vcharset_chinese_cns11643_7): Likewise.
3455         (Qchinese_cns11643_3): Likewise.
3456         (Qchinese_cns11643_4): Likewise.
3457         (Qchinese_cns11643_5): Likewise.
3458         (Qchinese_cns11643_6): Likewise.
3459         (Qchinese_cns11643_7): Likewise.
3460         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3461         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3462         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3463         (complex_vars_of_mule_charset): Likewise.
3464
3465 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3466
3467         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3468         96-set.
3469         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3470         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3471
3472 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3473
3474         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3475         0xFF60.
3476         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3477         (breakup_char_1): Likewise.
3478
3479         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3480         one of them includes the specified character.
3481
3482 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3483
3484         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3485
3486 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3487
3488         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3489
3490 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3491
3492         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3493         definition for non-UTF-2000 Mule.
3494         (latin_iso8859_3_to_ucs): Likewise.
3495         (latin_iso8859_4_to_ucs): Likewise.
3496         (latin_iso8859_9_to_ucs): Likewise.
3497         (latin_jisx0201_to_ucs): Likewise.
3498         (MIN_CHAR_THAI): Likewise.
3499         (MAX_CHAR_THAI): Likewise.
3500         (MIN_CHAR_GREEK): Likewise.
3501         (MAX_CHAR_GREEK): Likewise.
3502         (MIN_CHAR_HEBREW): Likewise.
3503         (MAX_CHAR_HEBREW): Likewise.
3504         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3505         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3506         (MIN_CHAR_CYRILLIC): Likewise.
3507         (MAX_CHAR_CYRILLIC): Likewise.
3508
3509 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3510
3511         * char-ucs.h (breakup_char_1): Use
3512         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3513         thai-tis620 and katakana-jisx0201 area.
3514
3515 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3516
3517         * char-ucs.h (breakup_char_1): Use
3518         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3519         area.
3520
3521         * text-coding.c (reset_encoding_stream): Fixed.
3522         (char_encode_ucs4): Delete `& 255'.
3523
3524         * char-ucs.h (breakup_char_1): Use
3525         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3526
3527 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3528
3529         * file-coding.c (Fmake_coding_system): Don't set up
3530         `codesys->fixed.size'.
3531         (encode_coding_no_conversion): Don't refer
3532         `str->codesys->fixed.size'.
3533
3534 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3535
3536         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3537         (latin_a_char_to_byte1): Deleted.
3538         (latin_a_char_to_byte2): Deleted.
3539
3540 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3541
3542         * mule-charset.c (make_charset): Add new argument `ucs_min',
3543         `ucs_max' and `code_offset'.
3544         (charset_get_byte1): New implementation [delete specific charset
3545         depended implementations].
3546         (Fmake_charset): Modify for `make_charset'.
3547         (Fmake_reverse_direction_charset): Likewise.
3548         (complex_vars_of_mule_charset): Likewise.
3549
3550         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3551         `code_offset'.
3552         (CHARSET_UCS_MIN): New macro.
3553         (CHARSET_UCS_MAX): New macro.
3554         (CHARSET_CODE_OFFSET): New macro.
3555         (MAKE_CHAR): Delete charset depended definitions [except
3556         katakana-jisx0201].
3557
3558 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3559
3560         * char-ucs.h (breakup_char_1): Use
3561         `Vdefault_coded_charset_priority_list' for C0-Controls,
3562         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3563
3564 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3565
3566         * char-ucs.h (charset_get_byte1): New function.
3567         (XCHARSET_GET_BYTE1): Deleted.
3568         (charset_get_byte2): New function.
3569         (XCHARSET_GET_BYTE2): Deleted.
3570         (Vdefault_coded_charset_priority_list): New external variable.
3571         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3572         `Vdefault_preferred_coded_charset_list'.
3573
3574         * mule-charset.c (charset_get_byte1): New function.
3575         (charset_get_byte2): New function.
3576         (Vdefault_coded_charset_priority_list): New variable.
3577         (vars_of_mule_charset): Add new variable
3578         `default-coded-charset-priority-list'.
3579
3580 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3581
3582         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3583         (XCHARSET_GET_BYTE2): New inline function.
3584         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3585         `XCHARSET_GET_BYTE2'.
3586
3587 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3588
3589         * mule-charset.c (make_charset): Initialize
3590         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3591         NULL if table is not defined.
3592
3593 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3594
3595         * text-coding.c (char_encode_shift_jis): Use
3596         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3597         `ucs_to_latin_jisx0201'.
3598
3599         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3600         (ucs_to_latin_iso8859_2): Deleted.
3601         (ucs_to_latin_iso8859_3): Deleted.
3602         (ucs_to_latin_iso8859_4): Deleted.
3603         (ucs_to_latin_iso8859_9): Deleted.
3604         (ucs_to_latin_viscii_lower): Deleted.
3605         (ucs_to_latin_viscii_upper): Deleted.
3606         (ucs_to_latin_tcvn5712): Deleted.
3607         (make_charset): Add new argument `decoding_table'; set up
3608         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3609         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3610         `decoding_table' is defined in UTF-2000.
3611         (Fmake_charset): Modify for `make_charset'.
3612         (Fmake_reverse_direction_charset): Likewise.
3613         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3614         and `GENERATE_96_SET'.
3615
3616         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3617         (ucs_to_latin_jisx0201): Deleted.
3618         (latin_iso8859_2_to_ucs): Deleted.
3619         (ucs_to_latin_iso8859_2): Deleted.
3620         (latin_iso8859_3_to_ucs): Deleted.
3621         (ucs_to_latin_iso8859_3): Deleted.
3622         (latin_iso8859_4_to_ucs): Deleted.
3623         (ucs_to_latin_iso8859_4): Deleted.
3624         (latin_iso8859_9_to_ucs): Deleted.
3625         (ucs_to_latin_iso8859_9): Deleted.
3626         (latin_viscii_lower_to_ucs): Deleted.
3627         (ucs_to_latin_viscii_lower): Deleted.
3628         (latin_viscii_upper_to_ucs): Deleted.
3629         (ucs_to_latin_viscii_upper): Deleted.
3630         (struct Lisp_Charset): Renamed `encoding_table' to
3631         `to_byte1_table'; add `to_byte2_table'.
3632         (CHARSET_DECODING_TABLE): New macro.
3633         (CHARSET_TO_BYTE1_TABLE): New macro.
3634         (CHARSET_TO_BYTE2_TABLE): New macro.
3635         (XCHARSET_DECODING_TABLE): New macro.
3636         (XCHARSET_TO_BYTE1_TABLE): New macro.
3637         (XCHARSET_TO_BYTE2_TABLE): New macro.
3638         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3639         tables.
3640         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3641         don't use `ucs_to_*' tables.
3642
3643 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3644
3645         * text-coding.c (Fmake_coding_system): Don't set up
3646         `codesys->fixed.size'.
3647         (encode_coding_no_conversion): Use `if' instead of `switch'.
3648
3649         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3650
3651 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3652
3653         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3654         (Fmake_charset): Modify for `make_charset'.
3655         (Fmake_reverse_direction_charset): Likewise.
3656         (complex_vars_of_mule_charset): Likewise.
3657
3658 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3659
3660         * text-coding.c (char_encode_shift_jis): Use table
3661         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3662
3663 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3664
3665         * text-coding.c (text_encode_generic): Use `if' instead of
3666         `switch'.
3667         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3668         decode JIS-Latin.
3669
3670 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3671
3672         * text-coding.c (encode_coding_sjis): Deleted.
3673         (char_encode_shift_jis): New function.
3674         (char_finish_shift_jis): New function.
3675         (reset_encoding_stream): Set up `encode_char' and `finish' for
3676         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3677         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3678         (char_encode_utf8): Treat `eol_type'.
3679
3680 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3681
3682         * file-coding.c (decode_coding_iso2022): Use
3683         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3684
3685 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3686
3687         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3688         to 0.7 (Hirano).
3689
3690 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3691
3692         * char-lb.h (CHAR_COLUMNS): New macro.
3693
3694 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3695
3696         * text-coding.c (char_encode_ucs4): New function.
3697         (char_finish_ucs4): New function.
3698         (encode_coding_ucs4): Deleted.
3699         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3700         (text_encode_generic): Delete local variable `charset' and `half'.
3701         (ucs_to_mule_table): Deleted.
3702         (mule_to_ucs_table): Deleted.
3703         (Fset_ucs_char): Deleted.
3704         (ucs_to_char): Deleted.
3705         (Fucs_char): Deleted.
3706         (Fset_char_ucs): Deleted.
3707         (Fchar_ucs): Deleted.
3708         (decode_ucs4): Deleted.
3709         (mule_char_to_ucs4): Deleted.
3710         (encode_ucs4): Deleted.
3711         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3712         (decode_coding_utf8): Likewise.
3713         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3714         (char_encode_iso2022): Fixed.
3715         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3716         `Fset_char_ucs' and `Fchar_ucs'.
3717         (complex_vars_of_file_coding): Don't initialize
3718         `ucs_to_mule_table'.
3719
3720         * objects-tty.c (tty_initialize_font_instance): Don't use
3721         `XCHARSET_COLUMNS'.
3722
3723         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3724         UTF-2000.
3725
3726         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3727         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3728
3729         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3730         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3731         (emchar_string_displayed_columns): Likewise.
3732
3733         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3734         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3735         (string_column_at_point): Likewise.
3736         (Fmove_to_column): Likewise.
3737
3738         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3739         `encoding_table' and `decoding_table'.
3740         (CHARSET_REP_BYTES): Deleted.
3741         (XCHARSET_REP_BYTES): Deleted.
3742         (XCHARSET_COLUMNS): Deleted.
3743         (CHAR_COLUMNS): New macro.
3744         (lookup_composite_char): Deleted unconditionally.
3745         (composite_char_string): Likewise.
3746
3747 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3748
3749         * char-ucs.h (Emchar_to_byte_table): New type.
3750         (get_byte_from_character_table): New function interface.
3751         (Vcharset_latin_jisx0201): New variable.
3752         (latin_jisx0201_to_ucs): New variable.
3753         (ucs_to_latin_jisx0201): New variable.
3754         (Vcharset_latin_iso8859_2): New variable.
3755         (latin_iso8859_2_to_ucs): New variable.
3756         (ucs_to_latin_iso8859_2): New variable.
3757         (Vcharset_latin_iso8859_3): New variable.
3758         (latin_iso8859_3_to_ucs): New variable.
3759         (ucs_to_latin_iso8859_3): New variable.
3760         (Vcharset_latin_iso8859_4): New variable.
3761         (latin_iso8859_4_to_ucs): New variable.
3762         (ucs_to_latin_iso8859_4): New variable.
3763         (Vcharset_latin_iso8859_9): New variable.
3764         (latin_iso8859_9_to_ucs): New variable.
3765         (ucs_to_latin_iso8859_9): New variable.
3766         (Vcharset_latin_viscii_lower): New variable.
3767         (latin_viscii_lower_to_ucs): New variable.
3768         (ucs_to_latin_viscii_lower): New variable.
3769         (Vcharset_latin_viscii_upper): New variable.
3770         (latin_viscii_upper_to_ucs): New variable.
3771         (ucs_to_latin_viscii_upper): New variable.
3772         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3773         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3774         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3775         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3776         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3777         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3778         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3779         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3780         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3781         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3782
3783         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3784         (Vcharset_latin_viscii_upper): New variable.
3785         (make_byte_from_character_table): New function.
3786         (put_byte_from_character_table): New function.
3787         (get_byte_from_character_table): New function.
3788         (CHAR96): New macro.
3789         (ucs_to_latin_jisx0201): New variable.
3790         (latin_jisx0201_to_ucs): New variable.
3791         (ucs_to_latin_iso8859_2): New variable.
3792         (latin_iso8859_2_to_ucs): New variable.
3793         (ucs_to_latin_iso8859_3): New variable.
3794         (latin_iso8859_3_to_ucs): New variable.
3795         (ucs_to_latin_iso8859_4): New variable.
3796         (latin_iso8859_4_to_ucs): New variable.
3797         (ucs_to_latin_iso8859_9): New variable.
3798         (latin_iso8859_9_to_ucs): New variable.
3799         (ucs_to_latin_viscii_lower): New variable.
3800         (latin_viscii_lower_to_ucs): New variable.
3801         (ucs_to_latin_viscii_upper): New variable.
3802         (latin_viscii_upper_to_ucs): New variable.
3803         (ucs_to_latin_tcvn5712): New variable.
3804         (latin_tcvn5712_to_ucs): New variable.
3805         (Qlatin_viscii_lower): New variable.
3806         (Qlatin_viscii_upper): New variable.
3807         (syms_of_mule_charset): Set up new symbol
3808         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3809         (complex_vars_of_mule_charset): Set up new charset
3810         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3811         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3812         `ucs_to_<CHARSET>' tables.
3813
3814 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3815
3816         * text-coding.c: New file.
3817
3818 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3819
3820         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3821
3822         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3823         (MAKE_CHAR): Modify for `ucs-bmp'.
3824         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3825         non-MULE characters of BMP.
3826
3827 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3828
3829         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3830         to 0.6.
3831
3832 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3833
3834         * lstream.h:
3835         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3836         - Include character.h for `CHAR_ASCII_P'.
3837
3838         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3839
3840         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3841         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3842
3843         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3844         (BYTE_C0_P): Likewise.
3845         (BYTE_C1_P): Likewise.
3846         (Lstream_get_emchar_1): Likewise.
3847         (Lstream_fput_emchar): Likewise.
3848         (Lstream_funget_emchar): Likewise.
3849         (copy_internal_to_external): Likewise.
3850         (copy_external_to_internal): Likewise.
3851
3852         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3853         (BYTE_C0_P): Likewise.
3854         (BYTE_C1_P): Likewise.
3855         (Lstream_get_emchar_1): Likewise.
3856         (Lstream_fput_emchar): Likewise.
3857         (Lstream_funget_emchar): Likewise.
3858         (copy_internal_to_external): Likewise.
3859         (copy_external_to_internal): Likewise.
3860
3861         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3862         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3863
3864         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3865         (BYTE_ASCII_P): Moved to mb-1byte.h.
3866
3867 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3868
3869         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3870
3871         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3872         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3873         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3874         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3875         (VALIDATE_CHARPTR_FORWARD): Likewise.
3876         (simple_charptr_emchar): Moved to mb-multibyte.h.
3877         (simple_set_charptr_emchar): Likewise.
3878         (simple_charptr_copy_char): Likewise.
3879         (non_ascii_charptr_emchar): Likewise.
3880         (non_ascii_set_charptr_emchar): Likewise.
3881         (non_ascii_charptr_copy_char): Likewise.
3882         (charptr_emchar): Moved to mb-*byte.h.
3883         (set_charptr_emchar): Likewise.
3884         (charptr_copy_char): Likewise.
3885
3886         * mb-1byte.h, mb-multibyte.h: New files.
3887
3888 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3889
3890         * mb-utf-8.h (MULTIBYTE): New macro.
3891         (MAX_EMCHAR_LEN): Moved from buffer.h.
3892         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3893
3894         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3895
3896         * mb-lb.h, multibyte.h: New files.
3897
3898         * char-1byte.h (Charset_ID): Moved from buffer.h.
3899         (MIN_LEADING_BYTE): Likewise.
3900         (LEADING_BYTE_ASCII): Likewise.
3901         (NUM_LEADING_BYTES): Likewise.
3902         (CHARSETP): Likewise.
3903         (CHARSET_BY_LEADING_BYTE): Likewise.
3904         (XCHARSET_LEADING_BYTE): Likewise.
3905         (XCHARSET_GRAPHIC): Likewise.
3906         (XCHARSET_COLUMNS): Likewise.
3907         (XCHARSET_DIMENSION): Likewise.
3908         (CHAR_CHARSET): Likewise.
3909         (CHAR_LEADING_BYTE): Likewise.
3910         (BREAKUP_CHAR): Likewise.
3911         (Vcharset_ascii): Likewise.
3912
3913         * buffer.h: Include multibyte.h unconditionally.
3914         (VALID_CHARPTR_P): Moved to multibyte.h.
3915         (ASSERT_VALID_CHARPTR): Likewise.
3916         (REAL_INC_CHARPTR): Likewise.
3917         (REAL_INC_CHARBYTIND): Likewise.
3918         (REAL_DEC_CHARPTR): Likewise.
3919         (INC_CHARPTR): Likewise.
3920         (INC_CHARBYTIND): Likewise.
3921         (DEC_CHARPTR): Likewise.
3922         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3923         (VALIDATE_CHARPTR_FORWARD): Likewise.
3924         (charptr_n_addr): Likewise.
3925         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3926         (simple_charptr_emchar): Moved to multibyte.h.
3927         (simple_set_charptr_emchar): Likewise.
3928         (simple_charptr_copy_char): Likewise.
3929         (non_ascii_charptr_emchar): Likewise.
3930         (non_ascii_set_charptr_emchar): Likewise.
3931         (non_ascii_charptr_copy_char): Likewise.
3932         (charptr_emchar): Likewise.
3933         (set_charptr_emchar): Likewise.
3934         (charptr_copy_char): Likewise.
3935         (charptr_emchar_n): Likewise.
3936         (Charset_ID): Moved to char-1byte.h.
3937         (Vcharset_ascii): Likewise.
3938         (CHAR_CHARSET): Likewise.
3939         (CHAR_LEADING_BYTE): Likewise.
3940         (LEADING_BYTE_ASCII): Likewise.
3941         (NUM_LEADING_BYTES): Likewise.
3942         (MIN_LEADING_BYTE): Likewise.
3943         (CHARSETP): Likewise.
3944         (CHARSET_BY_LEADING_BYTE): Likewise.
3945         (XCHARSET_LEADING_BYTE): Likewise.
3946         (XCHARSET_GRAPHIC): Likewise.
3947         (XCHARSET_COLUMNS): Likewise.
3948         (XCHARSET_DIMENSION): Likewise.
3949         (BREAKUP_CHAR): Likewise.
3950
3951 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3952
3953         * character.h: Add document about interface for characters.
3954
3955         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3956         (MAKE_CHAR): Delete comment about
3957         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3958         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3959         (BREAKUP_CHAR): Modify name of arguments.
3960         (CHAR_CHARSET): Modify name of argument.
3961
3962         * buffer.h: Delete document about Emchar accessors.
3963
3964 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3965
3966         * character.h (CHAR_INTP): Moved from buffer.h
3967         (CHAR_OR_CHAR_INTP): Likewise.
3968         (XCHAR_OR_CHAR_INT): Likewise.
3969         (CHECK_CHAR_COERCE_INT): Likewise.
3970
3971         * buffer.h (CHAR_INTP): Moved to character.h
3972         (CHAR_OR_CHAR_INTP): Likewise.
3973         (XCHAR_OR_CHAR_INT): Likewise.
3974         (CHECK_CHAR_COERCE_INT): Likewise.
3975
3976 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3977
3978         * character.h:
3979         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3980         - Include char-1byte.h, char-lb.h or char-ucs.h.
3981
3982         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3983
3984         * buffer.h: Include character unconditionally.
3985         (valid_char_p): Moved to char-*.h.
3986         (non_ascii_valid_char_p): Moved to char-lb.h.
3987
3988         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3989
3990 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3991
3992         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3993         in UTF-2000 because it is not ported yet and not to use
3994         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3995         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3996         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3997
3998         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3999         (CHAR_ASCII_P): Moved from character.h.
4000
4001         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4002         (CHAR_ASCII_P): Likewise.
4003         (CHAR_FIELD1_MASK): Deleted.
4004         (CHAR_FIELD2_MASK): Deleted.
4005         (CHAR_FIELD3_MASK): Deleted.
4006         (MAX_CHAR_BASIC_LATIN): New macro.
4007         (CHAR_FIELD1): Deleted.
4008         (CHAR_FIELD2_INTERNAL): Deleted.
4009         (CHAR_FIELD3_INTERNAL): Deleted.
4010         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4011         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4012         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4013         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4014         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4015         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4016         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4017         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4018         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4019         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4020         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4021         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4022         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4023         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4024         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4025         (MIN_CHAR_COMPOSITION): Deleted.
4026         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4027         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4028
4029 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4030
4031         * buffer.h: Include mb-utf-8.h in UTF-2000.
4032
4033         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4034
4035         * mb-utf-8.h: New file.
4036
4037 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4038
4039         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4040         instead of `int'.
4041
4042         * mule-charset.h, buffer.h (Charset_ID): New type.
4043
4044 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4045
4046         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4047         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4048         instead of `MULE_CHAR_PRIVATE_OFFSET',
4049         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4050         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4051         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4052
4053         * character.h (Vcharset_japanese_jisx0212): New variable
4054         definition.
4055
4056 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4057
4058         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4059         (charset_by_attributes): Delete array about direction.
4060         (latin_a_char_to_charset): New variable in UTF-2000.
4061         (latin_a_char_to_byte1): New variable in UTF-2000.
4062         (latin_a_char_to_byte2): New variable in UTF-2000.
4063         (Qucs_bmp): New variable.
4064         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4065         `Bufbyte'.
4066         (next_allocated_2_byte_leading_byte): Likewise.
4067         (non_ascii_set_charptr_emchar): Likewise.
4068         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4069         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4070         `charset_by_attributes'.
4071         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4072         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4073         and `CHARSET_BY_LEADING_BYTE'.
4074         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4075         `utf-2000-version' to `vars_of_mule_charset'.
4076         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4077         define `leading-code-private-11' in UTF-2000; move setting of
4078         `utf-2000-version' from `syms_of_mule_charset'.
4079         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4080         UTF-2000.
4081
4082         * character.h (Charset_ID): New type.
4083         (LEADING_BYTE_UCS_BMP): New macro.
4084         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4085         (CHARSET_ID_OFFSET_94): New macro.
4086         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4087         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4088         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4089         final-byte.
4090         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4091         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4092         (CHARSET_ID_OFFSET_96): New macro.
4093         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4094         CHARSET_ID_OFFSET_96 and final-byte.
4095         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4096         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4097         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4098         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4099         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4100         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4101         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4102         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4103         (LEADING_BYTE_THAI_TIS620): Likewise.
4104         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4105         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4106         (CHARSET_ID_OFFSET_94x94): New macro.
4107         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4108         CHARSET_ID_OFFSET_94x94 and final-byte.
4109         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4110         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4111         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4112         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4113         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4114         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4115         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4116         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4117         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4118         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4119         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4120         (CHARSET_TYPE_128X128): New macro.
4121         (CHARSET_TYPE_256X256): New macro.
4122         (XCHARSET_PRIVATE_P): Delete unconditionally.
4123         (charset_by_attributes): Delete array about direction.
4124         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4125         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4126         (MIN_CHAR_94): New macro.
4127         (MAX_CHAR_94): New macro.
4128         (MIN_CHAR_96): New macro.
4129         (MAX_CHAR_96): New macro.
4130         (MIN_CHAR_94x94): New macro.
4131         (MAX_CHAR_94x94): New macro.
4132         (MIN_CHAR_96x96): New macro.
4133         (MAX_CHAR_96x96): New macro.
4134         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4135         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4136         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4137         - 32)'.
4138         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4139         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4140         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4141         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4142         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4143         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4144         `XCHARSET_LEADING_BYTE' to make code-point.
4145         (latin_a_char_to_charset): New variable.
4146         (latin_a_char_to_byte1): New variable.
4147         (latin_a_char_to_byte2): New variable.
4148         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4149         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4150         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4151
4152         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4153         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4154         (find_charsets_in_emchar_string): Likewise.
4155         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4156
4157         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4158         `int'.
4159         (decode_coding_iso2022): Likewise.
4160
4161         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4162         of `unsigned char'.
4163
4164         * redisplay.c (redisplay_text_width_emchar_string): Use
4165         `Charset_ID' instead of `unsigned char'.
4166         (redisplay_frame_text_width_string): Likewise.
4167
4168         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4169         `unsigned char'.
4170
4171         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4172         instead of `unsigned char'.
4173         (face_cachel_charset_font_metric_info): Likewise.
4174
4175         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4176         (get_non_ascii_char_table_value): Likewise.
4177         (get_char_table): Likewise.
4178         (put_char_table): Likewise.
4179         (map_over_other_charset): Likewise.
4180         (map_char_table): Likewise.
4181
4182         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4183         instead of `unsigned char'.
4184
4185 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4186
4187         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4188         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4189
4190         * mule-charset.c (leading_code_private_11): Don't define in
4191         UTF-2000.
4192
4193         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4194         in UTF-2000 because it is not ported yet and not to use
4195         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4196
4197 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4198
4199         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4200
4201 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4202
4203         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4204         in UTF-2000.
4205
4206         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4207         of unsigned char to store leading-byte.
4208
4209         * chartab.c (get_non_ascii_char_table_value): Don't use
4210         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4211
4212         * file-coding.c (encode_coding_big5): Delete bogus implementation
4213         in UTF2000.
4214
4215         * character.h (LEADING_BYTE_*): Delete definition for
4216         non-UTF-2000.
4217         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4218         (LEADING_BYTE_PREFIX_P): Deleted.
4219         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4220         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4221         (BUFBYTE_LEADING_BYTE_P): Deleted.
4222         (CHARSET_PRIVATE_P): Deleted unconditionally.
4223         (rep_bytes_by_first_byte): Deleted unconditionally.
4224         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4225         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4226         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4227         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4228         (CHAR_FIELD2): Deleted.
4229         (CHAR_FIELD3): Deleted.
4230         (MAKE_CHAR): Delete definition for non-UTF-2000.
4231         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4232         (breakup_char_1): New implementation.
4233         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4234         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4235
4236 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4237
4238         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4239         condition.
4240
4241 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4242
4243         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4244         (CHARSET_PRIVATE_P): Likewise.
4245         (XCHARSET_PRIVATE_P): Likewise.
4246         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4247
4248         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4249         UTF2000.
4250         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4251
4252 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4253
4254         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4255         (NUM_LEADING_BYTES): Changed from 128 to 256.
4256         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4257         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4258         UTF2000.
4259         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4260
4261         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4262         UTF2000.
4263         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4264         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4265         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4266         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4267         (Qchinese_cns11643_3): New variable in UTF2000.
4268         (Qchinese_cns11643_4): New variable in UTF2000.
4269         (Qchinese_cns11643_5): New variable in UTF2000.
4270         (Qchinese_cns11643_6): New variable in UTF2000.
4271         (Qchinese_cns11643_7): New variable in UTF2000.
4272         (syms_of_mule_charset): Define `chinese-cns11643-3',
4273         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4274         and `chinese-cns11643-7' in UTF2000.
4275         (vars_of_mule_charset): Initialize
4276         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4277         + 1 in UTF2000.
4278         (complex_vars_of_mule_charset): Setup charset
4279         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4280         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4281
4282 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4283
4284         * mule-charset.c: Move setting for `leading-code-private-11' from
4285         `syms_of_mule_charset' to `vars_of_mule_charset'.
4286
4287 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4288
4289         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4290         and `NUM_LEADING_BYTES' in assert.
4291
4292 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4293
4294         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4295         instead of 128.
4296         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4297         `NUM_LEADING_BYTES' instead of 128.
4298
4299 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4300
4301         * mule-charset.h (charset_by_leading_byte): Use
4302         `NUM_LEADING_BYTES' instead of 128.
4303         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4304
4305         * mule-charset.c (charset_by_leading_byte): Use
4306         `NUM_LEADING_BYTES' instead of 128.
4307         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4308
4309         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4310         128.
4311
4312 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4313
4314         * mule-charset.c (syms_of_mule_charset): Update to
4315         0.4 (Shin-Imamiya).
4316
4317 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4318
4319         * file-coding.c (encode_coding_sjis): New implementation for
4320         UTF2000.  (decode_coding_sjis): Ditto.
4321
4322 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4323
4324         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4325         Don't define in UTF2000.
4326
4327         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4328         defined.
4329
4330         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4331         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4332         MULE.
4333
4334 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4335
4336         * config.h.in (CHAR_IS_UCS4): New macro.
4337
4338         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4339         conventional MULE representation.
4340         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4341
4342         * mule-charset.h: Reverted to original.
4343
4344         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4345         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4346         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4347
4348         * character.h: New file.
4349
4350         * file-coding.c (Fmake_coding_system): Set 1 to
4351         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4352         defined.
4353         (encode_coding_no_conversion): New implementation for UTF2000.
4354
4355         * file-coding.h (struct Lisp_Coding_System): Add new member
4356         `fixed.size'.
4357
4358 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4359
4360         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4361         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4362         (encode_coding_iso2022): New implementation for UTF2000.
4363
4364 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4365
4366         * mule-canna.c (c2mu): New implementation for UTF2000.
4367         (m2c): Likewise.
4368
4369 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4370
4371         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4372
4373 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4374
4375         * file-coding.c (reset_encoding_stream): Set 0 to
4376         `str->iso2022.current_char_boundary' in UTF2000.
4377         (encode_utf8): Don't define in UTF2000.
4378         (encode_coding_utf8): New implementation for UTF-8 representation
4379         of UTF2000.
4380         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4381
4382 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4383
4384         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4385
4386         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4387         UTF2000.
4388         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4389
4390         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4391
4392         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4393         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4394         as UTF-8 in UTF2000.
4395         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4396         (non_ascii_valid_char_p): Don't define in UTF2000.
4397         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4398         (Lstream_get_emchar_1): Likewise.
4399         (utf-2000-version): New variable in UTF2000.
4400
4401         * lread.c (read_escape): Add new reader `u'.
4402
4403         * insdel.c (three_to_one_table): Don't define in UTF2000.
4404         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4405         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4406         UTF2000.
4407         (bytind_to_bufpos_func): Likewise.
4408         (buffer_mule_signal_inserted_region): Likewise.
4409         (vars_of_insdel): Don't initialize `three_to_one_table'.
4410         (init_buffer_text): Use `buf->text->mule_size' instead of
4411         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4412         UTF2000.
4413
4414         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4415         UTF-8 representation in UTF2000.
4416         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4417         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4418         (decode_coding_iso2022): Don't define local variable `lb' in
4419         UTF2000; don't use LEADING_BYTE in UTF2000; use
4420         `DECODE_ADD_UCS_CHAR' in UTF2000.
4421         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4422
4423         * config.h.in (UTF2000): New macro.
4424
4425         * buffer.h (struct buffer_text): Add new member `mule_size' and
4426         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4427         (valid_char_p): Return always 1 in UTF2000.
4428         (MAX_EMCHAR_LEN): 6 in UTF2000.
4429         (three_to_one_table): Don't define in UTF2000.
4430         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4431         UTF2000.
4432         (real_bytind_to_bufpos): Likewise.
4433
4434         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4435
4436 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4437
4438         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4439         representation change.
4440         (Vutf_2000_version): New variable.
4441         (leading_code_private_11): New variable.
4442         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4443         `leading-code-private-11'.
4444
4445         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4446         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4447         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4448         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4449         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4450         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4451         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4452         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4453         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4454         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4455         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4456         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4457         (MIN_CHAR_GREEK): New macro.
4458         (MAX_CHAR_GREEK): New macro.
4459         (MIN_CHAR_CYRILLIC): New macro.
4460         (MAX_CHAR_CYRILLIC): New macro.
4461         (MIN_CHAR_HEBREW): New macro.
4462         (MAX_CHAR_HEBREW): New macro.
4463         (MIN_CHAR_THAI): New macro.
4464         (MAX_CHAR_THAI): New macro.
4465         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4466         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4467         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4468         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4469         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4470         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4471         (CHAR_FIELD2): New inline function.
4472         (CHAR_FIELD3): New inline function.
4473         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4474         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4475         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4476         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4477         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4478         (MIN_CHAR_COMPOSITION): Likewise.
4479         (CHAR_LEADING_BYTE): Modified for character representation change.
4480         (MAKE_CHAR): Likewise.
4481
4482         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4483         (Vcharset_greek_iso8859_7): Likewise.
4484         (Vcharset_cyrillic_iso8859_5): Likewise.
4485         (Vcharset_hebrew_iso8859_8): Likewise.
4486         (Vcharset_thai_tis620): Likewise.
4487         (Vcharset_katakana_jisx0201): Likewise.
4488
4489 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
4490
4491         * XEmacs 21.4.9 "Informed Management" is released.
4492
4493 2002-08-19  Andy Piper  <andy@xemacs.org>
4494
4495         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4496         win32 format.
4497
4498         * realpath.c (xrealpath): normalize drive spec also so that dir
4499         sep chars are not mixed on cygwin.
4500
4501 2002-08-06  Jerry James  <james@xemacs.org>
4502
4503         * window.c (Fsplit_window): Count only half of the divider width
4504         against the left window when splitting horizontally. 
4505
4506 2002-06-24  Andy Piper  <andy@xemacs.org>
4507
4508         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4509         toolbar was cleared.
4510
4511         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4512         function. Split out from mswindows_output_frame_toolbars.
4513         (mswindows_output_frame_toolbars): move clear pieces to
4514         mswindows_output_frame_toolbars.
4515
4516         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4517         out from gtk_output_frame_toolbars.
4518         (gtk_output_frame_toolbars): move clear pieces to
4519         gtk_clear_frame_toolbars.
4520
4521         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
4522         the frame is cleared. How this ever worked before is a mystery.
4523         (x_output_frame_toolbars): Only output toolbars.
4524         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
4525
4526         * gutter.c (update_gutter_geometry):
4527         Mark frame layout changed.
4528         (update_frame_gutter_geometry, update_frame_gutters):
4529         Respect frame_layout_changed.
4530
4531         * console.h (struct console_methods): add
4532         clear_frame_toolbars_method.
4533
4534         * redisplay.c (redisplay_frame): call
4535         update_frame_toolbars_geometry and re-order update_frame_toolbars.
4536
4537         * toolbar.h: declare update_frame_toolbars_geometry.
4538
4539         * toolbar.c (update_frame_toolbars_geometry): new function. Split
4540         out from update_frame_toolbars.  Call clear_frame_toolbars.
4541         (update_frame_toolbars): only output, do not change geometry.
4542
4543         * redisplay.c: add frame_layout_changed.
4544
4545         * redisplay.h: add frame_layout_changed.
4546         (CLASS_RESET_CHANGED_FLAGS): set it.
4547         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
4548         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
4549         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
4550
4551         * device.h (struct device): add frame_layout_changed.
4552         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
4553
4554         * frame.h (struct frame): add frame_layout_changed.
4555         (MARK_FRAME_LAYOUT_CHANGED): new.
4556
4557 2002-06-30  Mike Alexander  <mta@arbortext.com>
4558
4559         * event-msw.c (mswindows_need_event): Don't wait for a new message
4560         if the queue is not empty.  Suggested by Paul Moore.
4561
4562 2002-06-12  Andy Piper  <andy@xemacs.org>
4563
4564         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
4565         for printing on accurately.
4566
4567 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
4568
4569         * event-msw.c (mswindows_wnd_proc): Add a handler for the
4570         WM_ACTIVATE message. Make sure that the frame is visible if the
4571         window is visible. This seemss to fix the problem where XEmacs
4572         appears to freeze after switching desktops with certain virtual
4573         window managers.
4574         (debug_output_mswin_message): Added code to output message
4575         parameters for WM_WINDOWPOSCHANGED, 
4576         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
4577
4578 2002-05-25  Andy Piper  <andy@xemacs.org>
4579
4580         * select-x.c (vars_of_select_x): Fix docstring of
4581         x-selection-strict-motif-ownership
4582
4583 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4584
4585         * keymap.c (get_keymap):
4586         Add comment about do_autoload GCPROs own args.
4587
4588 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4589
4590         * bytecode.c (execute_optimized_program): check_opcode ifdef
4591         ERROR_CHECK_BYTE_CODE.
4592
4593 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4594
4595         Thanks to Ben Wing and Michael Sperber.
4596
4597         * eval.c (Fcommand_execute):
4598         (Feval):
4599         (Ffuncall):
4600         (Fmacroexpand_internal):
4601         (function_argcount):
4602         callint.c (Fcall_interactively):
4603         Add comment about do_autoload GCPROs own args.
4604
4605         * (do_autoload): GCPRO both args as well as local Lisp_Object.
4606
4607         * eval.c (Ffuncall): Extra braces to placate GCC.
4608
4609 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
4610
4611         * backtrace.h (grow_specpdl):
4612         (SPECPDL_RESERVE):
4613         * EmacsFrame.c (EmacsFrameSetValues):
4614         * eval.c (grow_specpdl):
4615         * ExternalShell.c (hack_event_masks_1):
4616         * glyphs-x.c (convert_EImage_to_XImage): 
4617         (x_finalize_image_instance):
4618         * ralloc.c (page_size):
4619         (r_alloc_sbrk):
4620         * xgccache.c (gc_cache_hash):
4621         Fix unsigned comparison warnings.
4622
4623 2002-07-29  Jerry James  <james@xemacs.org>
4624
4625         * lread.c (locate_file): Any nonnegative return value indicates
4626         success if MODE is nonnegative.
4627
4628 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
4629
4630         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
4631         argument. 
4632
4633 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
4634
4635         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
4636
4637         * dumper.c (pdump_get_indirect_count):
4638         (pdump_scan_by_alignment):
4639         (pdump_dump_root_struct_ptrs):
4640         (pdump_dump_rtables):
4641         (pdump_dump_root_objects):
4642         (pdump):
4643         * nas.c (WaveOpenDataForReading):
4644         * fns.c (print_bit_vector):
4645         * font-lock.c (SINGLE_SYNTAX_STYLE):
4646         * glyphs.c (check_for_ignored_expose):
4647         (find_matching_subwindow):
4648         * glyphs-eimage.c:
4649         * imgproc.c (get_histogram):
4650         * redisplay.c (point_in_line_start_cache):
4651         * redisplay-output.c (redisplay_unmap_subwindows):
4652         * symbols.c (defsymbol_massage_name_1):
4653         (defkeyword_massage_name):
4654         (deferror_massage_name_and_message):
4655         * redisplay-x.c (x_output_string): 
4656         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
4657         * frame.h (struct frame):
4658         * filelock.c (current_lock_owner):
4659         * doprnt.c (emacs_doprnt_1):
4660         * lisp.h (struct Lisp_Bit_Vector):
4661         (DO_REALLOC):
4662         Fix warnings.
4663
4664 2002-02-13  Ben Wing  <ben@xemacs.org>
4665
4666         * event-stream.c (reset_key_echo):
4667         * event-stream.c (reset_this_command_keys):
4668         * event-stream.c (execute_command_event):
4669         If console is dead as a result of C-x 5 0, then post-command stuff
4670         needs to be careful and do only non-console-specific stuff.
4671
4672 2002-07-01  Mike Sperber <mike@xemacs.org>
4673
4674         * process-unix.c (unix_send_process): Mark coding_outstream as
4675         non-open upon SIGPIPE.
4676
4677         * event-stream.c (Fnext_event): Reorder switch cases to something
4678         that makes sense.
4679
4680 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
4681
4682         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
4683         Don't bogusly reinitialize ascii_character property.
4684
4685 2002-07-08  Mike Sperber <mike@xemacs.org>
4686
4687         * process.c (Fstart_process_internal): Do error checking before we
4688         fork off the child, so the child can't muck with the state of the
4689         parent.
4690
4691 2002-07-08  Mike Sperber <mike@xemacs.org>
4692
4693         * ralloc.c (init_ralloc): Allocate properly for pdump.
4694
4695 2002-06-12  Andy Piper  <andy@xemacs.org>
4696
4697         * glyphs.c (query_string_geometry): check the string.
4698
4699         * glyphs-widget.c (widget_logical_unit_height): cope with nil
4700         widget names.
4701
4702 2002-06-17  Jerry James  <james@xemacs.org>
4703
4704         * sysdll.c: Remove RTLD_GLOBAL initialization.
4705         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
4706
4707 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
4708
4709         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
4710
4711 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
4712
4713         * sysdep.c (sys_rename): Make sys_rename work for the case where
4714         Windows rename sets errno to EACCES if target file exists.
4715
4716 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
4717
4718         * device-msw.c (mswindows_handle_page_setup_dialog_box):
4719         Fix detection of metric units to work on Win95
4720
4721 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
4722
4723         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
4724
4725 2002-04-25  Andy Piper  <andy@xemacs.org>
4726
4727         * redisplay.c (create_text_block): Remove extra comment trailer.
4728
4729 2002-04-24  Andy Piper  <andy@xemacs.org>
4730
4731         * redisplay.c (create_text_block): Don't actually add propagation
4732         data if the line ends after we have added a glyph.
4733
4734 2002-04-22  Andy Piper  <andy@xemacs.org>
4735
4736         * extents.c (extent_fragment_update): check for glyphs we have
4737         previously displayed.
4738         * extents.c (print_extent_1): warning removal.
4739         * extents.h: change prototype.
4740         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
4741         widths correctly for wide glyphs.
4742         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
4743         * redisplay.c (prop_type): add PROP_GLYPH.
4744         * redisplay.c (struct prop_block): add glyph type
4745         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
4746         to the propagation data.
4747         * redisplay.c (create_text_block): if there is a glyph in the
4748         propagation data use it to salt extent_fragment_update.
4749         * redisplay.c (create_string_text_block): ditto.
4750
4751 2002-04-13  Nix  <nix@esperi.demon.co.uk>
4752
4753         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
4754         * redisplay-output.c (compare_runes): Compare them.
4755         * redisplay.c: Update copyright date.
4756         * redisplay.c (pos_data): Add need_baseline_computation field.
4757         * redisplay.c (add_glyph_rune): Update ascent, descent, and
4758         need_baseline_computation; zero yoffset. Set max_pixmap_height
4759         for all pixmaps, not just automatically positioned ones.
4760         * redisplay.c (calculate_yoffset): New, compute yoffset values.
4761         * redisplay.c (calculate_baseline): New, compute textual baseline.
4762         * redisplay.c (add_glyph_rune): Call them.
4763         * redisplay.c (create_text_block): Likewise.
4764         * redisplay.c (create_overlay_glyph_block): Likewise.
4765         * redisplay.c (add_margin_runes): Likewise.
4766         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
4767
4768         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
4769         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
4770         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
4771         * redisplay-msw.c (mswindows_output_string): Likewise.
4772         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
4773         * redisplay-gtk.c (gtk_output_display_block): Likewise.
4774         * redisplay-x.c (x_output_display_block): Likewise.
4775
4776 2002-03-28  Ben Wing  <ben@xemacs.org>
4777
4778         * redisplay.c: Fixed bug in redisplay
4779         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
4780         and down of the lines, since they're bigger than the line
4781         size. (It was seen most obviously when there's a horizontal scroll
4782         bar, e.g. do C-h a glyph or something like that.) The problem was
4783         that the glyph-contrib-p setting on glyphs was ignored even if it
4784         was set properly, which it wasn't until now.
4785
4786 2002-04-24  Andy Piper  <andy@xemacs.org>
4787
4788         * lisp.h (Dynarr_end): Fix definition.
4789
4790 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
4791
4792         * redisplay.c (mark_redisplay): Remove call to
4793         update_frame_window_mirror.
4794
4795 2001-11-15  Andy Piper  <andy@xemacs.org>
4796
4797         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
4798         cygwin (again).
4799
4800 2002-02-13  Andy Piper  <andy@xemacs.org>
4801
4802         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
4803         we did in fact enqueue the XM_MAPFRAME event.
4804
4805 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
4806
4807         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
4808         to fix problem switching between virtual desktops under virtuawin
4809         virtual window manager.
4810
4811 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
4812
4813         * event-msw.c: Typo fix.
4814         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
4815         magic XM_MAPFRAME event has been sent.
4816
4817 2001-11-23  Andy Piper  <andy@xemacs.org>
4818
4819         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
4820
4821 2001-11-21  Andy Piper  <andy@xemacs.org>
4822
4823         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
4824         mouse events outside the frame.
4825
4826 2002-03-20  Andy Piper  <andy@xemacs.org>
4827
4828         * menubar-msw.c (mswindows_popup_menu): warning removal.
4829         * dialog-msw.c (dialog_popped_down): ditto.
4830
4831 2001-12-11  Andy Piper  <andy@xemacs.org>
4832
4833         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
4834         * dialog-msw.c (mswindows_make_dialog_box_internal): set
4835         popup_up_p.
4836         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
4837         * menubar-msw.c (mswindows_handle_wm_command): ditto.
4838         * menubar-msw.c (mswindows_popup_menu): ditto.
4839
4840 2001-10-29  Andy Piper  <andy@xemacs.org>
4841
4842         * dialog-msw.c (handle_directory_dialog_box): quit if the user
4843         cancels.
4844
4845 2002-01-03  Andy Piper  <andy@xemacs.org>
4846
4847         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
4848         letters.
4849         (xrealpath): ditto.
4850
4851 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
4852
4853         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
4854         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
4855         * device-msw.c (mswindows_handle_page_setup_dialog_box):
4856         Detect and handle case where machine is set up for metric units
4857
4858 2002-04-02  Andy Piper  <andy@xemacs.org>
4859
4860         * dired-msw.c (mswindows_get_files): 
4861         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
4862         completely handled by XEmacs. Suggested by Thomas Vogler
4863         <mail@thomas-vogler.de>.
4864
4865 2001-11-14  Andy Piper  <andy@xemacs.org>
4866
4867         * nt.c (REG_ROOT): change registry key to XEmacs.
4868
4869 2002-04-27  Andy Piper  <andy@xemacs.org>
4870
4871         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
4872
4873 2002-04-26  Andy Piper  <andy@xemacs.org>
4874
4875         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
4876         behavior.
4877
4878 2002-03-14  Mike Alexander  <mta@arbortext.com>
4879
4880         * event-msw.c (mswindows_unwait_process): New, remove process from
4881         wait list
4882         * process-nt.c (nt_finalize_process_data): Call
4883         mswindows_unwait_process
4884         * console-msw.h: Declare mswindows_unwait_process
4885
4886 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
4887
4888         * editfns.c (Fdecode_time):
4889         (Fformat_time_string):
4890         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
4891         (make_time): Warning elimination (change arg name).
4892
4893 2001-11-24  Andy Piper  <andy@xemacs.org>
4894
4895         * window.c (Fsplit_window): Doc return type.
4896
4897 2002-04-01  Andy Piper  <andy@xemacs.org>
4898
4899         * emacs.c (Fkill_emacs): Only output message box in interactive
4900         mode.
4901
4902 2002-04-26  Andy Piper  <andy@xemacs.org>
4903  
4904         * config.h.in: pull in 21.5.x change to stop alloca warnings under
4905         cygwin.
4906
4907 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
4908
4909         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
4910         bit platform.
4911
4912 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
4913
4914         * XEmacs 21.4.8 "Honest Recruiter" is released.
4915
4916 2002-05-07  Nix  <nix@esperi.demon.co.uk>
4917
4918         Supersedes 2002-04-17 patch.
4919
4920         * process.h (PROCESS_LIVE_P): Use the process status as
4921         evidence of health, not the state of the input stream.
4922         (PROCESS_READABLE_P): Say if the process is readable
4923         from. (It may be dead nonetheless.)
4924         (CHECK_READABLE_PROCESS): Test for that condition.
4925
4926         * process.c (create_process): Use PROCESS_READABLE_P.
4927         (read_process_output, set_process_filter): Likewise.
4928
4929         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
4930         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
4931
4932         This code is #if 0'd, this is not the time to add new functions:
4933
4934         * process.c (Fprocess_readable_p): Report readability status.
4935         * process.c (Qprocess_readable_p): New, associated symbol...
4936         * process.c (syms_of_process): ... initialize it.
4937
4938 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
4939
4940         * XEmacs 21.4.7 "Economic Science" is released.
4941
4942 2002-04-17  Nix  <nix@esperi.demon.co.uk>
4943
4944         * process.h (PROCESS_LIVE_P): Use the process status as
4945         evidence of health, not the state of the input stream.
4946
4947 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
4948
4949         * sysdep.c (sys_siglist): change "signum" to "signal"
4950
4951 2001-04-21  Martin Buchholz  <martin@xemacs.org>
4952
4953         * s/darwin.h: New file.
4954         Thanks to Greg Parker <gparker@cs.stanford.edu>.
4955         
4956 2002-04-23  Andreas Jaeger  <aj@suse.de>
4957
4958         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
4959         which use lib64 for 64-bit libs.
4960         (START_FILES): Likewise.
4961
4962 2002-02-11  Mike Sperber  <mike@xemacs.org>
4963
4964         * device-x.c: 
4965         (x_IO_error_handler):
4966         (x_init_device): Temporarily keep device in static variable
4967         `device_being_initialized' so we can recover gracefully from
4968         internal XOpenDevice failure.  (XOpenDevice is documented to
4969         return NULL on failure, but sometimes calls the IO error handler
4970         instead.)
4971
4972 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
4973
4974         * dired.c (Ffile_name_all_completions): Change documentation --
4975         remove reference to completion-ignored-extensions.
4976         * dired.c (vars_of_dired): Change documentation for
4977         completion-ignored-extensions -- remove reference to
4978         file-name-all-completions.
4979
4980 2002-03-06  Jerry James  <james@xemacs.org>
4981
4982         * emodules.c (emodules_load): Fix multiple loading of same module.
4983
4984 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
4985         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
4986         RTLD_LAZY to avoid incorrect symbol binding when using nested
4987         shared libraries on Solaris.
4988
4989 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
4990
4991         * fileio.c (Ffind_file_name_handler): Improve docstring.
4992
4993 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
4994
4995         * fns.c (Fmapconcat): Improve docstring.
4996
4997 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
4998
4999         * device-gtk.c: Add prototype for
5000         emacs_gtk_selection_clear_event_handle.
5001         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5002         selection.  Setup signal handler for "selection_clear_event"
5003         (emacs_gtk_selection_clear_event_handle).
5004
5005         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5006         other applications owning the clipboard (based on
5007         x_handle_selection_clear).
5008
5009 2001-12-23  William M. Perry  <wmperry@gnu.org>
5010
5011         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5012         
5013 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5014
5015         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5016
5017 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5018
5019         * XEmacs 21.4.6 "Common Lisp" is released.
5020
5021 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5022
5023         * search.c (Freplace_match): Add missing sub-expression functionality.
5024
5025         * buffer.c (decode_buffer): Add a check for pointer type to
5026         decode_buffer, before gcc's CSE optimization reorders a
5027         dereference in front of the allow_string test.
5028
5029 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5030
5031         * window.c (window_loop): Fix bug that sometimes prevented
5032         window_loop() from iterating across multiple devices.  Also, at
5033         Ben's request, changed infloop-detecting code to abort() instead
5034         of silently terminating window_loop().
5035
5036 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5037
5038         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5039         * editfns.c (make_time): New function.
5040         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5041         * lisp.h (make_time): Prototype and comment it.
5042         * dired.c (wasteful_word_to_lisp): Deprecate.
5043         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5044
5045 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5046
5047         * fileio.c (auto_save_1): Use current coding system, not
5048         escape-quoted.
5049
5050 2001-11-13  Ben Wing  <ben@xemacs.org>
5051
5052         * window.c:
5053         * window.c (window_truncation_on):
5054         * window.c (syms_of_window):
5055         truncate-partial-width-windows should respect the buffer being
5056         displayed, like other redisplay vars.
5057
5058 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5059
5060         * event-stream.c (Fread_key_sequence): save current buffer.
5061
5062 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5063
5064         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5065
5066 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5067
5068         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5069
5070 2001-10-26  Mike Alexander  <mta@arbortext.com>
5071
5072         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5073
5074 2001-10-25  Andy Piper  <andy@xemacs.org>
5075
5076         * ChangeLog:
5077         * dialog-msw.c (handle_directory_proc): new function.
5078          (handle_directory_dialog_box): new fucntion.
5079          (handle_file_dialog_box): use new directory dialog support.
5080          (mswindows_make_dialog_box_internal): ditto.
5081         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5082         handling.
5083         (mswindows_find_frame): make global.
5084         * fileio.c (Fexpand_file_name): build fix.
5085         * general-slots.h: add Qdirectory.
5086         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5087         handling.
5088         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5089         cygwin not leaving win32 paths unchanged.
5090         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5091         cygwin runtime to do path conversion.
5092         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5093         (syms_of_win32): add new function.
5094         * window.c (window_loop): build fix.
5095
5096 2001-10-15  Andy Piper  <andy@xemacs.org>
5097
5098         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5099
5100 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5101
5102         * XEmacs 21.4.5 "Civil Service" is released.
5103
5104 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5105
5106         * glyphs-x.c: Force buffer-tab highlight update when moving the
5107         buffer, avoiding an ugly black border, used for keyboard focus
5108         indication, on a widget that can never have keyboard focus, the
5109         buffer tab.
5110
5111 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5112
5113         * process-unix.c (unix_open_multicast_group): Remove too much
5114         conversion between host and network byte order.
5115
5116 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5117
5118         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5119         before replacing them.
5120
5121         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5122         operation.
5123
5124         * src/window.c (undedicate_windows): Use it.
5125         * src/window.h: Add prototype.
5126
5127 2001-09-17  Ben Wing  <ben@xemacs.org>
5128
5129         * fileio.c (normalize_filename):
5130         * fileio.c (Fexpand_file_name):
5131         Fix various C++ compile errors in Andy's recent code.
5132         
5133         * callint.c (Fcall_interactively):
5134         * editfns.c (Ftemp_directory):
5135         * editfns.c (Fuser_full_name):
5136         * emacs.c (argmatch):
5137         * lread.c (locate_file_map_suffixes):
5138         * redisplay-x.c (x_ring_bell):
5139         Fix sign-compare warnings.
5140         
5141 2001-09-08  Andy Piper  <andy@xemacs.org>
5142
5143         * fileio.c (normalize_filename): copied from nt.c
5144         * (Ffile_name_directory): enable win32 paths under cygwin.
5145         * (Ffile_name_nondirectory): ditto.
5146         * (directory_file_name): ditto.
5147         * (Fexpand_file_name): ditto.
5148         * (Ffile_truename): ditto.
5149         * (Fsubstitute_in_file_name): ditto.
5150         * (Ffile_name_absolute_p): ditto.
5151         * (Ffile_readable_p): ditto.
5152
5153 2001-09-08  Andy Piper  <andy@xemacs.org>
5154
5155         * device-msw.c (mswindows_finish_init_device): remove dde
5156         initialization.
5157         * device-msw.c (mswindows_init_dde): factor out from
5158         mswindows_finish_init_device()
5159         * device-msw.c (init_mswindows_very_early): new function
5160         initialize but don't enable dde.
5161         * emacs.c (main_1): call init_mswindows_very_early.
5162         * event-msw.c:
5163         * event-msw.c (mswindows_dde_callback): only execute when we are
5164         ready.
5165         * symsinit.h: declare init_mswindows_very_early.
5166
5167 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5168
5169         [sjt: This has been in 21.5 for months with no complaints.]
5170
5171         * console.h (struct console_methods): Added flags member.
5172         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5173         (CONMETH_IMPL_FLAG):
5174         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5175         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5176
5177         * device.c (window_system_pixelated_geometry): Use the above macros.
5178
5179         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5180         implememntation flag.
5181         * device.h (DEVICE_DISPLAY_P): Use it.
5182
5183         * frame.c (delete_frame_internal): Use the above macro.
5184
5185         * redisplay.c (redisplay_device): Use it.
5186         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5187         (redisplay_frame): Ditto.
5188
5189         * device-msw.c (mswindows_device_implementation_flags): Removed.
5190         (msprinter_device_implementation_flags): Removed.
5191         (console_type_create_device_mswindows): Removed references to
5192         implementation_flags methods, set implementation flags here.
5193         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5194
5195         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5196         (console_type_create_device_gtk): Removed method declaration.
5197         Added commented out statement which semantically matches the
5198         commented out statement in the above removed method.
5199
5200 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5201
5202         The attached patch fixes a few warnings. 
5203
5204         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5205         * src/frame-gtk.c: guard against GNOME calls in GTK only
5206         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5207         * src/select-gtk.c: prototype lisp_to_time
5208
5209 2001-06-08  Ben Wing  <ben@xemacs.org>
5210
5211         ------ gc-in-window-procedure fixes ------
5212         
5213         * alloc.c:
5214         * alloc.c (struct post_gc_action):
5215         * alloc.c (register_post_gc_action):
5216         * alloc.c (run_post_gc_actions):
5217         * alloc.c (garbage_collect_1):
5218         Create "post-gc actions", to avoid those dreaded "GC during window
5219         procedure" problems.
5220
5221         * event-msw.c:
5222         Abort, clean and simple, when GC in window procedure.  We want
5223         to flush these puppies out.
5224
5225         * glyphs-msw.c:
5226         * glyphs-msw.c (finalize_destroy_window):
5227         * glyphs-msw.c (mswindows_finalize_image_instance):
5228         Use a post-gc action when destroying subwindows.
5229
5230         * lisp.h:
5231         Declare register_post_gc_action().
5232
5233         * scrollbar-msw.c:
5234         * scrollbar-msw.c (unshow_that_mofo):
5235         Use a post-gc action when unshowing scrollbar windows, if in gc.
5236
5237         * redisplay.c (mark_redisplay):
5238         Add comment about the utter evilness of what's going down here.
5239
5240         ------ cygwin setitimer fixes ------
5241         
5242         * Makefile.in.in (sheap_objs):
5243         * Makefile.in.in (profile_objs):
5244         * Makefile.in.in (objs):
5245         Compile profile.c only when HAVE_SETITIMER.
5246         
5247         * nt.c (mswindows_sigset):
5248         * nt.c (mswindows_sighold):
5249         * nt.c (mswindows_sigrelse):
5250         * nt.c (mswindows_sigpause):
5251         * nt.c (mswindows_raise):
5252         * nt.c (close_file_data):
5253         Style fixes.
5254         
5255         * nt.c:
5256         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5257         
5258         * profile.c:
5259         * profile.c (Fstart_profiling):
5260         * profile.c (Fstop_profiling):
5261         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5262         instead of just plain setitimer().
5263         
5264         * signal.c:
5265         * signal.c (set_one_shot_timer):
5266         * signal.c (alarm):
5267         Define qxe_setitimer() as an encapsulation around setitimer() --
5268         call setitimer() directly unless Cygwin or MS Win, in which case
5269         we use our simulated version in win32.c.
5270         
5271         * systime.h:
5272         * systime.h (struct itimerval):
5273         * systime.h (ITIMER_REAL):
5274         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5275         comment about "qxe" and the policy regarding encapsulation.
5276
5277         * win32.c:
5278         * win32.c (setitimer_helper_proc):
5279         * win32.c (setitimer_helper_period):
5280         * win32.c (setitimer_helper):
5281         * win32.c (mswindows_setitimer):
5282         Move setitimer() emulation here, so Cygwin can use it.
5283         Rename a couple of functions and variables to be longer and more
5284         descriptive.  In setitimer_helper_proc(), send the signal
5285         using either mswindows_raise() or (on Cygwin) kill().  If for
5286         some reason we are still getting lockups, we'll change the kill()
5287         to directly invoke the signal handlers.
5288
5289         ------ windows shell fixes ------
5290         
5291         * callproc.c:
5292         * ntproc.c:
5293         Comments about how these two files must die.
5294
5295         * callproc.c (init_callproc):
5296         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5297         not just COMSPEC. (more correct and closer to FSF.) Don't
5298         force a value for SHELL into the environment. (Comments added
5299         to explain why not.)
5300         
5301         * nt.c (init_user_info):
5302         Don't shove a fabricated SHELL into the environment.  See above.
5303
5304 2001-06-01  Ben Wing  <ben@xemacs.org>
5305
5306         * Makefile.in.in (ldflags):
5307         eliminate that pesky "defaulting to 00401000" warning.
5308         * nt.h:
5309         eliminate warnings.
5310
5311 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5312
5313         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5314         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5315
5316 2001-04-24  Jerry James <james@xemacs.org>
5317
5318         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5319         correct order.
5320
5321 2001-06-01  Ben Wing  <ben@xemacs.org>
5322
5323         * event-msw.c (debug_mswin_messages):
5324         conditionalize the messages that were causing compile errors.
5325         (if only macros could generate #ifdef statements ...)
5326
5327 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5328
5329         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5330
5331 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5332
5333         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5334
5335 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5336
5337         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5338         * process-unix.c (unix_canonicalize_host_name):
5339         sysdep.c (init_system_name):
5340         Use it to conditionally support IPv6 canonicalization.
5341
5342 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5343
5344         * event-msw.c:
5345         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5346
5347 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5348
5349         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5350         attempt is made to scroll when no scroll bar is available.
5351
5352 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5353
5354         * input-method-motif.c (XIM_delete_frame): New callback.
5355         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5356         got deleted from 21.4.3.)
5357
5358 2001-06-01  Ben Wing  <ben@xemacs.org>
5359
5360         * nt.c (mswindows_utime):
5361         * nt.c (close_file_data):
5362         fix off-by-one-indirection error.
5363
5364 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5365
5366         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5367         because set_file_times() now takes Lisp_Object path, instead of
5368         char*.
5369         * nt.c: Include buffer.h.
5370         * nt.c (convert_from_time_t): New.
5371         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5372         not set mtime correctly.
5373         * nt.h: Declare mswindows_utime().
5374         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5375         path, instead of char*.
5376         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5377
5378 2001-05-30  Ben Wing  <ben@xemacs.org>
5379
5380         For 21.4:
5381
5382         (Stephen, just take all event-msw.c patches.  This includes
5383         the "iconify" fix below.)
5384
5385         * event-msw.c:
5386         * event-msw.c (mswindows_dequeue_dispatch_event):
5387         * event-msw.c (assert):
5388         * event-msw.c (emacs_mswindows_quit_p):
5389         * event-msw.c (debug_mswin_messages):
5390         * event-msw.c (debug_output_mswin_message):
5391         * event-msw.c (vars_of_event_mswindows):
5392         Fix yet more problems with C-g handling.
5393         Implement debug-mswindows-events.
5394         
5395 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5396
5397         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5398         
5399 2001-05-23  Ben Wing  <ben@xemacs.org>
5400
5401         * event-msw.c (winsock_writer):
5402         * event-msw.c (winsock_closer):
5403         prior kludgy code was clobbering the buffer, thinking it was
5404         "unused" space to store an unneeded return value; instead, use
5405         the variable we've already got staring us in the face.
5406
5407 2001-05-17  Andy Piper  <andy@xemacs.org>
5408
5409         * sysfile.h: don't assume that file attributes are boolean
5410
5411 2001-05-23  Ben Wing  <ben@xemacs.org>
5412
5413         * device-msw.c (msprinter_init_device):
5414         signal an error rather than crash with an unavailable network
5415         printer (from Mike Alexander).
5416         
5417         * event-msw.c:
5418         * event-msw.c (struct winsock_stream):
5419         * event-msw.c (winsock_writer):
5420         * event-msw.c (winsock_closer):
5421         * event-msw.c (make_winsock_stream_1):
5422         cleanup headers.  fix (hopefully) an error with data corruption
5423         when sending to a network connection.
5424
5425         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5426         to handle the ~user prefix by (a) always assuming we're referencing
5427         ourselves and not even verifying the user -- hence any file with
5428         a tilde as its first char is invalid! (b) if there wasn't a slash
5429         following the filename, the pointer was set *past* the end of
5430         file and we started reading from uninitialized memory.  Now we
5431         simply treat these as files, always.
5432
5433         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5434         
5435 2001-05-19  Ben Wing  <ben@xemacs.org>
5436
5437         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5438
5439         * process-nt.c:
5440         * process-nt.c (vars_of_process_nt):
5441         remove unused mswindows-quote-process-args.  rec for 21.4.
5442         
5443 2001-05-12  Ben Wing  <ben@xemacs.org>
5444
5445         * event-msw.c (mswindows_dde_callback):
5446         * event-msw.c (mswindows_wnd_proc):
5447         eliminate cygwin warnings.
5448
5449 2001-05-06  Ben Wing  <ben@xemacs.org>
5450
5451         * console-msw.h:
5452         * device-msw.c:
5453         * device-msw.c (print_dialog_worker):
5454         * device-msw.c (mswindows_handle_print_dialog_box):
5455         * device-msw.c (syms_of_device_mswindows):
5456         * dialog-msw.c (mswindows_make_dialog_box_internal):
5457         * general-slots.h:
5458         implement printing the selection when it's selected.
5459
5460 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
5461
5462         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5463
5464 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
5465
5466         * lisp.h (EMACS_INT_MAX): This should be one bit less since
5467         EMACS_INT is signed.
5468
5469 2001-04-15  Michael Lausch  <mla@1012surf.net>
5470
5471         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5472         gtk_widget_request_size() to give scrollbar >0 width for
5473         GTK >1.2.8.
5474
5475 2001-05-30  William M. Perry  <wmperry@gnu.org>
5476
5477         * event-gtk.c: Check for buttons as modifier keys.
5478
5479 2001-05-25  Craig Lanning  <CraigL@Knology.net>
5480
5481         * s\mingw32.h:
5482         Properly find MinGW's <process.h> inside Cygwin's restructured
5483         include directories.  Don't try to include <cygwin/version.h>
5484         since we are dropping support for MinGW in versions of Cygwin
5485         earlier than b21.
5486         * nt.c:
5487         Drop support for MinGW in versions of Cygwin before b21.
5488         * sysdep.c:
5489         Properly find MinGW's <process.h> inside Cygwin's restructured
5490         include directories.
5491         * syswindows.h:
5492         Drop support for MinGW in versions of Cygwin before b21.
5493         * unexcw.c:
5494         Even though a.out.h is no longer detected by configure, allow
5495         MinGW to use it until we figure out how to do the job with Win32.
5496
5497 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
5498
5499         * syntax.c (find_start_of_comment):
5500         Fix `unbalanced parentheses' bug when dealing with mixed comment
5501         styles in c++/java/etc. mode
5502
5503 2001-05-29  Mike Alexander  <mta@arbortext.com>
5504
5505         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5506         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5507
5508 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
5509
5510         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5511
5512 2001-03-31  Mike Sperber <mike@xemacs.org>
5513
5514         * search.c (Freplace_match): Support FSF-style specification of
5515         match subexpression when applied to a buffer.
5516
5517 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5518
5519         * event-stream.c (is_scrollbar_event): add missing semicolon
5520
5521 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
5522
5523         * Makefile.in.in: Use TAR macro instead of hardcoding
5524           tar.  Allows use of GNU tar instead of system tar
5525
5526 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5527
5528         * event-stream.c (is_scrollbar_event): add missing semicolon
5529
5530 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5531
5532         * XEmacs 21.4.3 "Academic Rigor" is released.
5533
5534 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5535
5536         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
5537
5538 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
5539
5540         * buffer.c (Vcase_fold_search): Remove obsolete
5541           comment about non ASCII case-fold-search.  This
5542           bug has been fixed by case-table changes.
5543
5544 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
5545
5546         * event-msw.c: Restore include of events-mod.h.
5547
5548 2001-04-22   zhaoway  <zw@debian.org>
5549
5550         * event-stream.c (is_scrollbar_event): Noop returning 0 if
5551         !HAVE_SCROLLBARS.
5552
5553 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
5554
5555         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
5556
5557 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
5558
5559         * mule-charset.c (Fmake_charset): Add missing else.
5560
5561 2001-04-23  Ben Wing  <ben@xemacs.org>
5562
5563         * event-msw.c (FAKE_MOD_QUIT):
5564         * event-msw.c (mswindows_dequeue_dispatch_event):
5565         * event-msw.c (mswindows_wnd_proc):
5566         * event-msw.c (emacs_mswindows_quit_p):
5567         Get critical quit working.
5568
5569 2001-05-05  Ben Wing  <ben@xemacs.org>
5570
5571         * console-msw.h:
5572         * device-msw.c:
5573         * device-msw.c (mswindows_get_default_margin):
5574         * frame-msw.c (mswindows_size_frame_internal):
5575         * frame-msw.c (msprinter_init_frame_1):
5576         * frame-msw.c (vars_of_frame_mswindows):
5577         Change top/bottom margin defaults to 0.5 inches.
5578
5579 2001-05-01  Martin Buchholz  <martin@xemacs.org>
5580
5581         Fix link error with gcc 3.0 on Linux.
5582         * terminfo.c (UP): Remove.
5583         * terminfo.c (BC): Remove.
5584         * terminfo.c (PC): Remove.
5585         They weren't used, and in any case, these symbols should be
5586         defined in the *library*.
5587
5588 2001-05-03  Martin Buchholz  <martin@xemacs.org>
5589
5590         * s/aix4.h: Fix crash with xlc -O3.
5591         Improve comment explaining how -O3 works.
5592
5593 2001-04-15  Ben Wing  <ben@xemacs.org>
5594
5595         * event-stream.c:
5596         * event-stream.c (Fnext_event):
5597         * event-stream.c (is_scrollbar_event):
5598         * event-stream.c (execute_command_event):
5599         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
5600         crash' problem.  His fix introduces other problems.  We filter
5601         out scrollbar events specifically, making them somewhat invisible
5602         to command-building, and not appearing in `this-command-keys'.
5603         More work is still needed (see comments in event-stream.c), but
5604         this fixes all the major problems.
5605
5606 2001-04-20  Ben Wing  <ben@xemacs.org>
5607
5608         * .cvsignore: Added stuff for Windows.
5609
5610 2001-04-28  Ben Wing  <ben@xemacs.org>
5611
5612         * buffer.c (Ferase_buffer):
5613         * editfns.c (buffer_insert1):
5614         * editfns.c (Finsert_before_markers):
5615         * editfns.c (Finsert_string):
5616         * editfns.c (Finsert_char):
5617         * editfns.c (Fdelete_region):
5618         * editfns.c (Fwiden):
5619         * editfns.c (Fnarrow_to_region):
5620         remove bogus lines setting zmacs_region_stays to 0.
5621         
5622 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5623
5624         * process-unix.c (unix_open_network_stream): If connect() fails
5625         invalidate file descriptor after closing it.
5626
5627 2001-03-08  Mike Alexander  <mta@arbortext.com>
5628
5629         * event-msw.c (mswindows_need_event_in_modal_loop):
5630         Don't dispatch a message if we didn't get one.
5631         (mswindows_need_event):
5632         Terminate the correct process when one exits instead of the first
5633         one on Vprocess_list and look for process termination when in
5634         mswindows_protect_modal_loop.
5635
5636 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
5637
5638         * XEmacs 21.4.1 "Copyleft" is released.
5639
5640 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5641
5642         * input-method-motif.c (XIM_delete_frame): New callback.
5643         (XIM_init_frame): Register it.
5644
5645 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
5646
5647         * XEmacs 21.4.0 "Solid Vapor" is released.
5648
5649 2001-04-15  Ben Wing  <ben@xemacs.org>
5650
5651         * cmdloop.c (call_command_loop):
5652         Fix braino in bit-rotting code.
5653         
5654 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
5655
5656         * extents.c (Fset_extent_endpoints): Force creation of extent info
5657         in buffer_or_string.
5658
5659         * extents.c (process_extents_for_insertion_mapper): Correctly
5660         check for open-open zero-length extents.
5661
5662 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
5663
5664         * lisp.h: New typedefs Memory_count, Element_count.
5665         * regex.c:
5666         * regex.h:
5667         Sign-compare warning elimination: several unsigned -> signed.
5668         Based on work by Ben Wing <ben@xemacs.org>.
5669
5670 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
5671
5672         * XEmacs 21.2.47 "Zephir" is released.
5673
5674 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
5675
5676         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
5677
5678 2001-04-03  Mike Sperber <mike@xemacs.org>
5679
5680         * search.c: Revert previous patch due because of release.
5681
5682 2001-03-30  Ben Wing  <ben@xemacs.org>
5683
5684         * s\cygwin32.h:
5685         Add missing killpg prototype.
5686
5687         * elhash.c:
5688         Add a comment about fixing problems when a new entry is added
5689         while mapping.
5690
5691         * frame-msw.c (mswindows_init_frame_1):
5692         Fix compile warnings.
5693
5694         * menubar.c (vars_of_menubar):
5695         Provide `menu-accelerator-support' to indicate that we properly
5696         support %_ in menu specifications, so that package code can
5697         conditionalize on this (and remove %_ from menu specifications
5698         on older versions).
5699
5700         * event-msw.c:
5701         * scrollbar-msw.c:
5702         * scrollbar-msw.c (can_scroll):
5703         * scrollbar-msw.h:
5704         Fix handling of mouse wheel under Windows to follow standards --
5705         now scrolls window under pointer, not selected window.
5706
5707 2001-03-31  Mike Sperber <mike@xemacs.org>
5708
5709         * search.c (Freplace_match): Support FSF-style specification of
5710         match subexpression when applied to a buffer.
5711
5712 2001-03-15  Martin Buchholz  <martin@xemacs.org>
5713
5714         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
5715         function to modify KEYMAP, so map over a copy of the hash table.
5716
5717 2001-03-21  Martin Buchholz <martin@xemacs.org>
5718
5719         * XEmacs 21.2.46 "Urania" is released.
5720
5721 2001-03-20  Dan Holmsand  <dan@eyebee.com>
5722
5723         * realpath.c (xrealpath): Make file-truename work with symlinks to
5724         /cygdrive paths on cygwin. Always lowercase drive-letters on
5725         native windows.
5726         (cygwin_readlink): Don't try to find canonical filename unless
5727         file exists.
5728
5729 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
5730
5731         * ChangeLog: Log GTK merge.
5732
5733         * dumper.c:
5734         * select-x.c:
5735         * specifier.c:
5736         * symeval.h:
5737         Revert gratuitous whitespace changes from GTK merge.
5738
5739         * emacs.c: Document end of complex #ifdef @ l. 1495.
5740
5741
5742 2001-03-12  Andy Piper  <andy@xemacs.org>
5743
5744         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
5745         have to do likewise.
5746
5747 2001-03-12  Andy Piper  <andy@xemacs.org>
5748
5749         * sysdep.c: we only support mingw now.
5750
5751 2001-03-09  Andy Piper  <andy@xemacs.org>
5752
5753         * unexcw.c (copy_executable_and_dump_data_section): making approx
5754         overrun a warning only.
5755
5756 2001-03-10  William M. Perry  <wmperry@aventail.com>
5757
5758         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
5759         satisfy Stephen's identical-after-cpp plea.
5760
5761 2001-03-02  Ben Wing  <ben@xemacs.org>
5762
5763         * cmds.c:
5764         * cmds.c (Fforward_char):
5765         * syntax.c:
5766         * window.c:
5767
5768         Augment documentation of the most common motion commands to make
5769         note of the shifted-motion support.
5770         
5771 2001-03-02  Ben Wing  <ben@xemacs.org>
5772
5773         * nt.c (mswindows_fstat):
5774         * nt.c (mswindows_stat):
5775         * search.c (boyer_moore):
5776         Fix compile warnings under Windows.
5777         
5778         * sysdep.c (sys_readdir):
5779         Fix buggy filename-conversion code under Mule.
5780
5781 2001-03-09  William M. Perry  <wmperry@aventail.com>
5782
5783         * Makefile.in.in:
5784         * config.h.in:
5785         * console.c:
5786         * console.h:
5787         * device.c:
5788         * device.h:
5789         * dragdrop.c:
5790         * emacs.c:
5791         * event-stream.c:
5792         * events.c:
5793         * events.h:
5794         * faces.c:
5795         * frame.h:
5796         * general-slots.h:
5797         * glyphs.c:
5798         * gutter.c:
5799         * inline.c:
5800         * lisp.h:
5801         * lrecord.h:
5802         * make-src-depend:
5803         * redisplay-output.c:
5804         * redisplay.c:
5805         * symsinit.h:
5806         * sysfile.h:
5807         * toolbar.c:
5808         * window.c:
5809         The Great GTK Merge.
5810
5811         * ChangeLog.GTK:
5812         * console-gtk.c:
5813         * console-gtk.h:
5814         * device-gtk.c:
5815         * emacs-marshals.c:
5816         * emacs-widget-accessors.c:
5817         * event-gtk.c:
5818         * frame-gtk.c:
5819         * gccache-gtk.c:
5820         * gccache-gtk.h:
5821         * glade.c:
5822         * glyphs-gtk.c:
5823         * glyphs-gtk.h:
5824         * gtk-glue.c:
5825         * gtk-xemacs.c:
5826         * gtk-xemacs.h:
5827         * gui-gtk.c:
5828         * gui-gtk.h:
5829         * menubar-gtk.c:
5830         * native-gtk-toolbar.c:
5831         * objects-gtk.c:
5832         * objects-gtk.h:
5833         * redisplay-gtk.c:
5834         * scrollbar-gtk.c:
5835         * scrollbar-gtk.h:
5836         * select-gtk.c:
5837         * toolbar-gtk.c:
5838         * ui-byhand.c:
5839         * ui-gtk.c:
5840         * ui-gtk.h:
5841         The Great GTK Merge: new files.
5842
5843 2001-02-26  Ben Wing  <ben@xemacs.org>
5844
5845         Reapplied Lstream change.
5846
5847 2001-02-26  Ben Wing  <ben@xemacs.org>
5848
5849         Undid the last change, since it is more controversial than I
5850         thought.  It should be back in at some point soon.
5851         
5852 2001-02-25  Ben Wing  <ben@xemacs.org>
5853
5854         * buffer.c:
5855         * callproc.c (Fold_call_process_internal):
5856         * event-msw.c (ntpipe_slurp_reader):
5857         * event-msw.c (ntpipe_shove_writer):
5858         * event-msw.c (winsock_reader):
5859         * event-msw.c (winsock_writer):
5860         * file-coding.c:
5861         * file-coding.c (detect_eol_type):
5862         * file-coding.c (detect_coding_type):
5863         * file-coding.c (determine_real_coding_system):
5864         * file-coding.c (Fdetect_coding_region):
5865         * file-coding.c (decoding_reader):
5866         * file-coding.c (decoding_writer):
5867         * file-coding.c (mule_decode):
5868         * file-coding.c (Fdecode_coding_region):
5869         * file-coding.c (encoding_reader):
5870         * file-coding.c (encoding_writer):
5871         * file-coding.c (mule_encode):
5872         * file-coding.c (Fencode_coding_region):
5873         * file-coding.c (detect_coding_sjis):
5874         * file-coding.c (decode_coding_sjis):
5875         * file-coding.c (encode_coding_sjis):
5876         * file-coding.c (detect_coding_big5):
5877         * file-coding.c (decode_coding_big5):
5878         * file-coding.c (encode_coding_big5):
5879         * file-coding.c (detect_coding_ucs4):
5880         * file-coding.c (decode_coding_ucs4):
5881         * file-coding.c (encode_coding_ucs4):
5882         * file-coding.c (detect_coding_utf8):
5883         * file-coding.c (decode_coding_utf8):
5884         * file-coding.c (encode_coding_utf8):
5885         * file-coding.c (detect_coding_iso2022):
5886         * file-coding.c (decode_coding_iso2022):
5887         * file-coding.c (encode_coding_iso2022):
5888         * file-coding.c (decode_coding_no_conversion):
5889         * file-coding.c (encode_coding_no_conversion):
5890         * glyphs-x.c (write_lisp_string_to_temp_file):
5891         * gpmevent.c (tty_get_foreign_selection):
5892         * lisp.h:
5893         * lstream.c:
5894         * lstream.c (Lstream_flush_out):
5895         * lstream.c (Lstream_adding):
5896         * lstream.c (Lstream_write_1):
5897         * lstream.c (Lstream_write):
5898         * lstream.c (Lstream_raw_read):
5899         * lstream.c (Lstream_read_more):
5900         * lstream.c (Lstream_read):
5901         * lstream.c (Lstream_unread):
5902         * lstream.c (Lstream_fputc):
5903         * lstream.c (stdio_reader):
5904         * lstream.c (stdio_writer):
5905         * lstream.c (filedesc_reader):
5906         * lstream.c (filedesc_writer):
5907         * lstream.c (lisp_string_reader):
5908         * lstream.c (struct fixed_buffer_stream):
5909         * lstream.c (make_fixed_buffer_input_stream):
5910         * lstream.c (make_fixed_buffer_output_stream):
5911         * lstream.c (fixed_buffer_reader):
5912         * lstream.c (fixed_buffer_writer):
5913         * lstream.c (struct resizing_buffer_stream):
5914         * lstream.c (resizing_buffer_writer):
5915         * lstream.c (dynarr_writer):
5916         * lstream.c (lisp_buffer_reader):
5917         * lstream.c (lisp_buffer_writer):
5918         * lstream.h:
5919         * lstream.h (lstream_implementation):
5920         * lstream.h (struct lstream):
5921         * md5.c (Fmd5):
5922         * process-nt.c (nt_send_process):
5923         * process-unix.c (unix_send_process):
5924         
5925         Correct Lstream lossage due to mixing of signed and unsigned
5926         quantities.  All Lstream uses of size_t and ssize_t are now a
5927         single signed data type Lstream_data_count.  This fixes problems
5928         under Windows with sending large quantities of data to a process,
5929         and may well fix other subtle bugs.
5930
5931 2001-02-23  Martin Buchholz <martin@xemacs.org>
5932
5933         * XEmacs 21.2.45 "Thelxepeia" is released.
5934
5935 2001-02-21  Martin Buchholz  <martin@xemacs.org>
5936
5937         * lisp-union.h (XSETINT): 
5938         (XSETCHAR):
5939         (XSETOBJ): 
5940         Reverse previous change of 2001-02-06.
5941
5942 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
5943
5944         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
5945         buffers.
5946         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
5947         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
5948         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
5949         * regex.c (POS_AS_IN_BUFFER): removed
5950         * regex.c (re_search_2):
5951         * regex.c (re_match_2):
5952         Don't use an offset of 1 when calculating buffer positions, since
5953         `BI_BUF_BEGV' does it already.
5954
5955 2001-02-18  Wim Dumon  <wim@easics.be>
5956
5957         * insdel.c (prepare_to_modify_buffer): Also check for
5958         supersession when clash-detection is enabled. 
5959
5960 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
5961
5962         * regex.c (re_match_2_internal):
5963         Convert temp characters from 'const unsigned char' to 're_char'.
5964         Fix crashing bug with extended characters under mule.
5965         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
5966         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
5967         font-lock, pdump, and new syntax-table code.
5968         * syntax.c (find_start_of_comment):
5969         (find_end_of_comment):
5970         (forward-comment):
5971         Fix crashing bugs involving moving beyond end of buffer.
5972         * syntax.c (find_start_of_comment):
5973         Fixed logic to allow proper detection of cases where the same
5974         character is used to end both a two-char comment start and a
5975         two-char comment end sequence. Fixes `(forward-comment -1)'.
5976         * syntax.c (find_start_of_comment):
5977         Return position just past last comment-end character for all cases
5978         (previously was only done for two-char comment-end sequences).
5979         * syntax.c (forward-comment):
5980         Take value returned from `find_end_of_comment', rather than
5981         incrementing it.
5982         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
5983         Properly deal with BUFFERP (syntax_cache.object)
5984
5985 2001-02-17  Martin Buchholz  <martin@xemacs.org>
5986
5987         * alloc.c (Fgarbage_collect): 
5988         * alloc.c (make_bit_vector_from_byte_vector):
5989         -Wsign-compare-correctness.
5990
5991 2001-02-16  Martin Buchholz  <martin@xemacs.org>
5992
5993         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
5994         (XSETCHAR): Likewise.
5995         (XSETOBJ): Likewise.
5996
5997 2001-02-15  Martin Buchholz  <martin@xemacs.org>
5998
5999         * mule-canna.c (canna-func-delete_previous): 
6000         Rename to canna-func-delete-previous.
6001
6002 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6003
6004         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6005
6006 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6007
6008         * font-lock.c (find_context): Fix C++ compile errors introduced by
6009         recent patch
6010
6011 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6012
6013         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6014         pragma, but earlier ones barf on the same pragma.
6015
6016 2001-02-06  Mike Sperber <mike@xemacs.org>
6017
6018         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6019         `configure-mule-lisp-directory'.
6020
6021 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6022
6023         Make sure dump-id.c is compiled in the same way as other .c's.
6024         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6025         * dump-id.h: Remove.
6026         * emacs.c: Move dump-id.h into dumper.h.
6027         * dumper.h: Move dump-id.h into dumper.h.
6028         * Makefile.in.in:
6029         Use standard .c.o rule for building dump-id.o.
6030         Remove preprocessor flags from link command.
6031         Add dump-id.o to ${otherobjs} if PDUMP.
6032
6033 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6034
6035         Port FSF 20.7 syntax table improvements.
6036         * syntax.c.
6037         * syntax.h.
6038
6039         Fixups for new syntax table stuff.
6040         * dired.c: Include syntax.c.
6041         (Fdirectory_files): Initialize regex_match_object and
6042         regex_emacs_buffer.
6043         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6044         and Fget_char_property.
6045
6046         Use ported FSF 20.7 syntax table improvements.
6047         * font-lock.c.
6048         * regex.c.
6049         * search.c.
6050         
6051 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6052
6053         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6054         Unixware's enum boolean from sys/types.h.
6055
6056 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6057
6058         Fix support for building with latest Purify.
6059         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6060         (PURIFY_FLAGS): Likewise.
6061
6062 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6063
6064         * fileio.c (lisp_string_set_file_times): New.
6065         * fileio.c (Fcopy_file): Use it.
6066         Fixes bug:
6067         (copy-file filename non-ascii-filename t t)
6068         ==> No such file or directory, non-ascii-filename
6069
6070 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6071
6072         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6073         USHRT_MAX seems clearer than ~0 anyways.
6074
6075 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6076
6077         dumper improvements.  Inspired by Olivier.
6078         * dumper.c (pdump_max_align): New.
6079         * dumper.c (pdump_add_entry): Use pdump_max_align.
6080         * dumper.c (pdump_get_entry_list): Likewise.
6081         * dumper.c (pdump_scan_by_alignment): Likewise.
6082         Don't iterate through unnecessary alignments.
6083         * dumper.c (pdump_file_get): No need to align result of malloc().
6084         * dumper.c (pdump_mallocadr): Remove.  
6085         The result of malloc() is guaranteed to be maximally aligned.
6086         * dumper.c: s/elmt/elt/g;
6087         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6088         * dumper.c (pdump_alert_undump_object): Likewise.
6089         * dumper.c (pdump_align_table): 
6090         Don't support alignments > 64.
6091         Store ALIGNOF's, not shift counts, in table.
6092
6093 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6094
6095         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6096         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6097         * systime.h: Use HAVE_UTIME.
6098         * sysdep.c (struct utimbuf): Remove.
6099         * sysdep.c (set_file_times): Prefer utime() to utimes().
6100         * config.h.in (HAVE_UTIME): New.
6101         * config.h.in (HAVE_UTIME_H): Remove.
6102         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6103
6104 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6105
6106         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6107
6108 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6109
6110         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6111
6112 2001-02-08  Martin Buchholz <martin@xemacs.org>
6113
6114         * XEmacs 21.2.44 "Thalia" is released.
6115
6116 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6117
6118         Fixes crashes in kill-emacs on some systems.
6119         * process-unix.c (unix_kill_child_process):
6120         It's OK for kill() to fail with ESRCH.
6121
6122 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6123
6124         Contortions to make .gdbinit tricks work on most systems.
6125         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6126         * alloc.c (dbg_valmask): Make non-const.
6127         * alloc.c (dbg_typemask): Make non-const.
6128         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6129         * alloc.c (dbg_valbits): Make non-const.
6130         * alloc.c (dbg_gctypebits): Make non-const.
6131         * .gdbinit (decode_object): Make it work with AIX cc.
6132
6133 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6134
6135         * elhash.c (make_general_lisp_hash_table):
6136         Use simpler and more efficient calloc to clear entries.
6137
6138 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6139
6140         * window.c (window_scroll): Work around an AIX C compiler bug.
6141         Fixes 'scroll-up' does nothing problem with xlC.
6142
6143 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6144
6145         * .gdbinit: Remove obsolete comment.
6146
6147 2001-01-31  Mike Alexander  <mta@arbortext.com>
6148
6149         * select.c (Fown_selection_internal): Set owned_p for device
6150         method correctly.
6151
6152 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6153
6154         Port to g++ 2.97.
6155         "not" cannot be used as a macro name as it is an operator in C++
6156         * config.h.in: Stop #defining `not'.
6157         * chartab.c (check_category_char): not ==> not_p
6158         * chartab.h: Likewise.
6159         * regex.c (re_match_2_internal): Likewise.
6160
6161 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6162
6163         * lisp-disunion.h: Fix up comments.
6164
6165 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6166
6167         * keymap.c (define_key_check_and_coerce_keysym):
6168         (syms_of_keymap):
6169         Support mouse-6 and mouse-7 bindings in the obvious way.
6170
6171 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6172
6173         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6174
6175 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6176
6177         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6178         Previous patch missed DEFVAR_INT_MAGIC.
6179         Make sure future DEFVAR_foo use correct types.
6180         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6181         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6182         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6183         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6184         * (DEFVAR_INT): Likewise.
6185         * redisplay.c (vertical_clip): Should be of type Fixnum.
6186         * redisplay.c (horizontal_clip): Likewise.
6187         * lisp.h (dump_add_opaque_int): New.
6188         (dump_add_opaque_fixnum): New.
6189
6190 2001-01-29  Andy Piper  <andy@xemacs.org>
6191
6192         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6193         since they can be eval'ed
6194
6195 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6196
6197         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6198         Oops, XEmacs redefines `class'.  Use `typename' instead.
6199
6200 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6201
6202         * dumper.c: Fix C++ compile errors.
6203
6204 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6205
6206         * tparam.c: Use correct prototypes.
6207
6208 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6209
6210         * sysproc.h: #include util.h for NetBSD's openpty.
6211
6212 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6213
6214         More 64-bit correctness.
6215         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6216         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6217         Fix up comments.
6218         This finally finishes the 64-bit SGI port.
6219         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6220         * symbols.c: Fix up comments and type casts.
6221         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6222         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6223         * symeval.h (Fixnum): New type.
6224         * symeval.h (symbol_value_type): Fix up comment.
6225
6226         * commands.h:
6227         * nt.c:
6228         * emacs.c:
6229         * data.c:
6230         * redisplay.c:
6231         * abbrev.c:
6232         * dired-msw.c:
6233         * event-Xt.c:
6234         * eldap.c:
6235         * window.c:
6236         * sound.c:
6237         * event-stream.c:
6238         * eval.c:
6239         * buffer.c:
6240         * mule-canna.c: A million DEFVAR_INTs here...
6241         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6242         * extents.c:
6243         * cmdloop.c:
6244         * lisp.h:
6245         * select-x.c:
6246         * console-x.h:
6247         * event-msw.c:
6248         * mule-wnnfns.c:
6249         * hpplay.c:
6250         * ralloc.c:
6251         * alloc.c:
6252         * keymap.c:
6253         * profile.c:
6254         s/int/Fixnum/g in DEFVAR_INT declarations.
6255
6256 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6257
6258         Port pdump to SGI alignment-sensitive environment.
6259         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6260         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6261         properly aligned.
6262         Define and use aligned reading and writing macros.
6263         Use buffered stdio instead of posix i/o for faster dumping.
6264         Eliminate kludgy 256 byte space for header.
6265         Read and write from dump file using structs for alignment safety.
6266         * dumper.c (pdump_align_stream): New.
6267         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6268         * dumper.c (PDUMP_READ_ALIGNED): New.
6269         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6270         * dumper.c (pdump_static_Lisp_Object): New struct.
6271         * dumper.c (pdump_static_pointer): New struct.
6272         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6273         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6274         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6275         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6276
6277         * dumper.c (pdump_backtrace):
6278         * dumper.c (pdump_get_indirect_count):
6279         * dumper.c (pdump_register_object):
6280         * dumper.c (pdump_register_struct):
6281         * dumper.c (pdump_reloc_one):
6282         * dumper.c (pdump_scan_by_alignment):
6283         * dumper.c (pdump_dump_from_root_struct_ptrs):
6284         * dumper.c (pdump_dump_opaques):
6285         * dumper.c (pdump_dump_rtables):
6286         * dumper.c (pdump_dump_from_root_objects):
6287         * dumper.c (pdump):
6288         * dumper.c (pdump_load_finish):
6289         Use aligned reading and writing.
6290
6291         * dumper.c (pdump_free): Make static.
6292         * dumper.c (pdump_hFile): Likewise.
6293         * dumper.c (pdump_hMap): Likewise.
6294
6295 2001-01-26  Martin Buchholz <martin@xemacs.org>
6296
6297         * XEmacs 21.2.43 "Terspichore" is released.
6298
6299 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6300
6301         Type fiddling for window_config.saved_windows_count
6302         * window.c (struct window_config): 
6303         Make saved_windows_count member unsigned.
6304         * window.c (sizeof_window_config_for_n_windows): 
6305         Make parameter unsigned.
6306         * window.c (mark_window_config):
6307         * window.c (window_config_equal):
6308         * window.c (free_window_configuration):
6309         * window.c (Fset_window_configuration):
6310         * window.c (count_windows):
6311         * window.c (Fcurrent_window_configuration):
6312         * window.c (reinit_vars_of_window):
6313         Update all callers and users.
6314
6315 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6316
6317         Alignment correctness for flexible arrays.
6318         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6319         Make alignment-correct. Add interesting comments.
6320         * alloc.c (size_vector):
6321         * alloc.c (make_vector_internal):
6322         * alloc.c (make_bit_vector_internal):
6323         * alloc.c (sweep_bit_vectors_1):
6324         * fns.c (size_bit_vector):
6325         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6326         * window.c (sizeof_window_config_for_n_windows): 
6327         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6328
6329 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6330
6331         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6332
6333 2001-01-23  Andy Piper  <andy@xemacs.org>
6334
6335         * select.c (Fown_selection_internal): pass owned_p
6336
6337         * select-msw.c (mswindows_own_selection): New Signature.
6338
6339         * console.h (struct console_methods): add owned_p to
6340         _own_selection.
6341
6342         * select-x.c (x_own_selection): pass owned_p
6343         (hack_motif_clipboard_selection): use owned_p
6344         (vars_of_select_x): new variable -
6345         x_selection_strict_motif_ownership.
6346
6347 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6348
6349         * specifier.h (specifier_data_offset): Remove pointless parens.
6350         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6351
6352 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6353
6354         Make Lisp_Object sizeof methods be alignment-correct.
6355         pdump must restore objects to the same alignment as the C compiler
6356         assumes.  It really matters on SGIs.
6357         * lstream.c (aligned_sizeof_lstream): New.
6358         (sizeof_lstream): Use aligned_sizeof_lstream.
6359         (Lstream_new): Likewise.
6360         * opaque.c (aligned_sizeof_opaque): New.
6361         (sizeof_opaque): Use aligned_sizeof_opaque.
6362         (make_opaque): Likewise.
6363         * specifier.c (aligned_sizeof_specifier): New.
6364         (sizeof_specifier): Use aligned_sizeof_specifier.
6365         (make_specifier_internal): Likewise.
6366
6367 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6368
6369         * lstream.h (struct lstream): Use max_align_t for trailing data.
6370         * specifier.h (struct Lisp_Specifier): Likewise.
6371
6372 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6373
6374         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6375         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6376         (CCL_SUSPEND): Likewise.
6377         (CCL_INVALID_CMD): Likewise.
6378         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6379         (ccl_driver): Likewise.
6380         (CCL_WRITE_CHAR): Macro hygiene.
6381         (CCL_WRITE_STRING): Macro hygiene.
6382
6383 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6384
6385         Port "portable" dumper to SunOS 4 and HP-UX.
6386         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6387         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6388         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6389
6390 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6391
6392         * lisp.h (ALIGNOF): A better definition for C++.
6393
6394 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6395
6396         Macro hygiene.
6397         Fix printf warnings: int format, long int arg.
6398         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6399         (PUSH_FAILURE_POINT): Use correct printf formats.
6400         (POP_FAILURE_POINT): Use correct printf formats.  
6401         Use do {...} while (0)
6402
6403 2001-01-20  Martin Buchholz <martin@xemacs.org>
6404
6405         * XEmacs 21.2.42 "Poseidon" is released.
6406
6407 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6408
6409         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6410
6411 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6412
6413         De-kludgify FIXED_TYPE free list frobbing.
6414         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6415         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6416         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6417         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6418         * alloc.c (LRECORD_FREE_P): New.
6419         * alloc.c (MARK_LRECORD_AS_FREE): New.
6420         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6421         * alloc.c (STRUCT_FREE_P): Deleted.
6422         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6423         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6424         * alloc.c (STRING_CHARS_FREE_P): New.
6425         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6426         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6427         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6428         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6429         * alloc.c (resize_string): Use new definitions.
6430         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6431         * alloc.c (verify_string_chars_integrity): Use new definitions.
6432         * alloc.c (compact_string_chars): Use new definitions.
6433         * alloc.c: Update monster comments.
6434         * lrecord.h (lrecord_type): Add some new lrecord types for
6435         alloc.c's use.
6436
6437 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6438
6439         Improve alignment hackery.
6440         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6441         (max_align_t): Moved from opaque.h - general purpose.
6442         (ALIGN_PTR): Use size_t, not long.
6443         * opaque.h (max_align_t): Move to lisp.h.
6444
6445 2001-01-18  Norbert Koch  <nk@LF.net>
6446
6447         * gui.h: Fix and add prototypes to fix build problems.
6448
6449 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6450
6451         temacs is going away, so `dump-temacs' is now a bad name.
6452         * .dbxrc (dump-temacs): Rename to `dmp'.
6453         * .gdbinit (dump-temacs): Rename to `dmp'.
6454
6455 2001-01-17  Andy Piper  <andy@xemacs.org>
6456
6457         * glyphs.c (print_image_instance): comment to make martin happy.
6458
6459         * glyphs-x.c (x_redisplay_widget): update faces after a frame
6460         change.
6461
6462         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6463         activation.
6464         (mswindows_tab_control_redisplay): warning suppression.
6465
6466         * glyphs-widget.c (widget_update): re-write to cope with updated
6467         items.
6468         (widget_instantiate): use new gui_item functions.
6469         (tab_control_update): deleted.
6470         (progress_gauge_update): deleted.
6471         (image_instantiator_progress_guage): take out update reference.
6472         (image_instantiator_tree_view): ditto.
6473         (image_instantiator_tab_control): ditto.
6474
6475         * gui.c (widget_gui_parse_item_keywords): new function. Do things
6476         Right the new way.
6477         (gui_item_add_keyval_pair): re-write to cope with descriptors and
6478         return whether anything was changed.
6479         (update_gui_item_keywords): as it sounds.
6480
6481         * gui.h: declare widget_gui_parse_item_keywords.
6482
6483         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6484         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6485
6486 2001-01-17  Martin Buchholz <martin@xemacs.org>
6487
6488         * XEmacs 21.2.41 "Polyhymnia" is released.
6489
6490 2001-01-16  Didier Verna  <didier@xemacs.org>
6491
6492         * glyphs.c (image_instantiate): don't use fallbacks when
6493         instantiating a face's background pixmap by inheritance.
6494
6495 2001-01-14  Mike Sperber <mike@xemacs.org>
6496
6497         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6498         Conditionalize accordingly.
6499
6500 2001-01-16  Martin Buchholz  <martin@xemacs.org>
6501
6502         * dumper.c (pdump_file_get): Fix a compiler warning.
6503
6504 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6505
6506         Make Purify happy when pdumping.
6507         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6508         iniitalizing all bits of new lisp object memory.
6509         * symbols.c (Fmake_local_variable): Likewise.
6510         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6511         * symbols.c (Fdefvaralias): Likewise.
6512         * mule-charset.c (vars_of_mule_charset): Likewise.
6513
6514 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6515         Add the `-nd' flag when running pre-dump operations under the debugger.
6516         * .dbxrc (run-temacs): Add `-nd'.
6517         * .dbxrc (update-elc): Likewise.
6518         * .dbxrc (dump-temacs): Likewise.
6519         * .gdbinit (run-temacs): Likewise.
6520         * .gdbinit (check-temacs): Likewise.
6521         * .gdbinit (update-elc): Likewise.
6522         * .gdbinit (dump-temacs): Likewise.
6523
6524 2001-01-14  Martin Buchholz  <martin@xemacs.org>
6525
6526         Allow building 64-bit executables on AIX with GNU malloc, e.g.
6527         export OBJECT_MODE=64
6528         configure --pdump --use-union-type=no
6529         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
6530         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
6531
6532         * miscplay.c (sndcnv8U_2mono):
6533         Avoid two uses of `++' in the same expression.
6534         Suppresses a GCC warning.
6535
6536 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6537
6538         Make sure future compilers don't miscompile alloc.c.
6539         * alloc.c:
6540         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
6541         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
6542
6543 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6544
6545         * dumper.c: A little post-pdump-rename comment fixup.
6546
6547 2001-01-09  Jerry James  <james@eecs.ku.edu>
6548
6549         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
6550
6551 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6552
6553         * *.[ch]: Globally rename symbols using the following `pdump-rename'
6554         script:
6555         #!/bin/sh
6556         replace_symbol () {
6557           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
6558         }
6559
6560         replace_symbol pdump_wire_lists pdump_weak_object_chains
6561         replace_symbol pdump_wire_list dump_add_weak_object_chain
6562
6563         replace_symbol pdump_wires pdump_root_objects
6564         replace_symbol pdump_wire dump_add_root_object
6565
6566         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
6567         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
6568
6569         replace_symbol dumpstructinfos pdump_root_struct_ptrs
6570         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
6571         replace_symbol dumpstructinfo pdump_root_struct_ptr
6572         replace_symbol dumpstruct dump_add_root_struct_ptr
6573
6574         replace_symbol dumpopaque dump_add_opaque
6575         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
6576         replace_symbol dumpopaqueinfos pdump_opaques
6577         replace_symbol dumpopaqueinfo pdump_opaque
6578
6579         replace_symbol nb_structdump nb_root_struct_ptrs
6580         replace_symbol nb_opaquedump nb_opaques
6581
6582         replace_symbol align_table pdump_align_table
6583         replace_symbol dump_header pdump_header
6584
6585         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
6586         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
6587
6588
6589 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6590
6591         * s/aix4.h: Keep the C for AIX compiler from overaggressively
6592         optimizing bytecount_to_charcount().
6593
6594 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
6595
6596         * config.h.in:
6597         (HAVE_DLFCN_H): Removed.
6598         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
6599
6600 2001-01-06  Martin Buchholz  <martin@xemacs.org>
6601
6602         Portable dumper maintainability improvements.
6603         * alloc.c (staticpro):
6604         * alloc.c (staticpro_nodump):
6605         * alloc.c (garbage_collect_1):
6606         * alloc.c (reinit_alloc_once_early):
6607         * alloc.c (init_alloc_once_early):
6608         * alloc.c: Move dumper functions to alloc.c.
6609         * dumper.c (pdump_backtrace):
6610         * dumper.c (pdump_dump_structs):
6611         * dumper.c (pdump_dump_opaques):
6612         * dumper.c (pdump_dump_rtables):
6613         * dumper.c (pdump_dump_wired):
6614         * dumper.c (pdump):
6615         * dumper.c (pdump_load_check):
6616         * dumper.c (pdump_load_finish):
6617         * dumper.c (pdump_file_unmap):
6618         * dumper.c (pdump_file_get):
6619         * dumper.c (pdump_resource_free):
6620         * dumper.c (pdump_resource_get):
6621         * dumper.c (pdump_file_free):
6622         * dumper.c (pdump_file_try):
6623         * dumper.c (pdump_load):
6624         Remove fixed size limits on staticpro(), staticpro_nodump(),
6625         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
6626         Remove custom code for dumping lrecord_implementations_table - use
6627         dumpopaque instead.
6628         Remove (most of the) custom code for dumping staticpros - dump it
6629         like any other dynarr.
6630
6631         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
6632         * dumper.c: Moved functions from alloc.c.
6633         * alloc.c (dumpstruct): Moved to dumper.c.
6634         * alloc.c (dumpopaque): Likewise.
6635         * alloc.c (pdump_wire): Likewise.
6636         * alloc.c (pdump_wire_list): Likewise.
6637
6638         * lisp.h (Dynarr_sizeof): New.
6639         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
6640         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
6641         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
6642
6643         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
6644         * lisp.h (dumpopaque): ditto.
6645         * lisp.h (pdump_wire): ditto.
6646         * lisp.h (pdump_wire_list): ditto.
6647
6648 2001-01-09  Martin Buchholz  <martin@xemacs.org>
6649
6650         * make-src-depend (PrintPatternDeps):
6651         Use `sort' to make output independent of perl version.
6652
6653 2001-01-08  Martin Buchholz  <martin@xemacs.org>
6654
6655         Port to Netbsd 1.5.
6656         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
6657         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
6658
6659 2001-01-03  Didier Verna  <didier@xemacs.org>
6660
6661         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
6662         that `focus_frame' is alive before thinking of calling
6663         `redisplay_redraw_cursor' on it.
6664
6665 2001-01-08  Martin Buchholz <martin@xemacs.org>
6666
6667         * XEmacs 21.2.40 is released.
6668
6669 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
6670
6671         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
6672
6673 2001-01-06  Martin Buchholz  <martin@xemacs.org>
6674
6675         * alloc.c (dbg_valmask): Make const.
6676         * alloc.c (dbg_typemask): Make const.
6677         * alloc.c (dbg_USE_UNION_TYPE): Make const.
6678         * alloc.c (dbg_valbits): Make const.
6679         * alloc.c (dbg_gctypebits): Make const.
6680
6681 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
6682
6683         * redisplay-x.c (x_bevel_area):
6684         redisplay.h (struct rune):
6685         Typo fixes in comments.
6686
6687 2001-01-05  Andy Piper  <andy@xemacs.org>
6688
6689         * glyphs-x.c (x_redisplay_widget): use size changed for offset
6690         adjustment.
6691
6692         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
6693
6694 2001-01-05  Martin Buchholz  <martin@xemacs.org>
6695
6696         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
6697
6698         * mule-ccl.c (stack_idx_of_map_multiple):
6699         Non const global data must not be initialized!
6700         Found by MIYASHITA Hisashi.
6701
6702 2001-01-02  Andy Piper  <andy@xemacs.org>
6703
6704         * frame.c (change_frame_size): make sure frame size is always
6705         marked as changed.
6706
6707         * glyphs.c (image_instance_layout): minor code reuse.
6708
6709         * window.c (Fcurrent_window_configuration): revert previous
6710         change.
6711
6712 2001-01-02  Martin Buchholz  <martin@xemacs.org>
6713
6714         * glyphs.h:
6715         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
6716
6717 2000-12-31  Andy Piper  <andy@xemacs.org>
6718
6719         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
6720         when widget gets unmapped.
6721
6722         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
6723         function. Make sure widgets losing focus don't just drop it.
6724         (handle_focus_event_1): record the widget with focus.
6725
6726 2000-12-31  Andy Piper  <andy@xemacs.org>
6727
6728         * window.c (allocate_window): use
6729         make_image_instance_cache_hash_table.
6730         (make_dummy_parent): ditto.
6731         (Fset_window_configuration): ditto.
6732
6733         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
6734
6735         * glyphs.c (process_image_string_instantiator): use
6736         INSTANTIATOR_TYPE.
6737         (get_image_instantiator_governing_domain): ditto.
6738         (normalize_image_instantiator): ditto.
6739         (instantiate_image_instantiator): ditto.
6740         (make_image_instance_1): ditto.
6741         (image_instantiate): ditto. Key on glyph *and* instantiator type.
6742         (instantiator_eq_equal): new function for use with instance hash
6743         tables.
6744         (instantiator_eq_hash): ditto.
6745         (make_image_instance_cache_hash_table): create a suitable hash
6746         table for storing image instances.
6747
6748         * elhash.h (hash_table_weakness): new internal weakness type
6749         HASH_TABLE_KEY_CAR_VALUE_WEAK.
6750         declare new functions.
6751
6752         * elhash.c (finish_marking_weak_hash_tables): introduce yet
6753         another weakness type for glyphs.
6754         (make_standard_lisp_hash_table): new function split out from
6755         make_general_lisp_hash_table.
6756         (make_lisp_hash_table): call make_standard_lisp_hash_table.
6757         (hash_table_instantiate): ditto.
6758         (Fmake_hash_table): ditto.
6759
6760 2000-12-31  Martin Buchholz <martin@xemacs.org>
6761
6762         * XEmacs 21.2.39 is released.
6763
6764 2000-12-29  Andy Piper  <andy@xemacs.org>
6765
6766         * menubar.c (menubar_visible_p_changed): signal the frame changed.
6767
6768         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
6769         the frame has changed so that we pick up geometry changes such as
6770         menubar visibility.
6771
6772 2000-12-28  Andy Piper  <andy@xemacs.org>
6773
6774         * lastfile.c (my_ebss): make a char array so we can pad the
6775         bss. Fixes cygwin unexec.
6776
6777         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
6778
6779 2000-12-26  Andy Piper  <andy@xemacs.org>
6780
6781         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
6782         comments and try and be more precise about a non-/SIGIO world.
6783         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
6784         SIGIO.
6785
6786         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
6787         we don't normalize to zero width or height.
6788
6789 2000-12-24  Andy Piper  <andy@xemacs.org>
6790
6791         * Makefile.in.in (ldflags): add -mwindows when appropriate.
6792
6793 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
6794
6795         * s/sco5.h: SCO 5 has pty support.
6796
6797 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
6798
6799         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
6800         input-method-xlib.c contains whole contents of input-method-xfs.c,
6801         so we can use input-method-xlib.c's code for USE_XFONTSET
6802         using #ifdefs.
6803         * input-method-xfs.c: removed.
6804
6805 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
6806
6807         * file-coding.h (enum coding_category_type): reorder enumerators to
6808         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
6809         (now one greater than largest real coding_category_type enumerator).
6810         * file-coding.c (coding_category_symbol, coding_category_by_priority,
6811         coding_category_system, fcd_descriptihon_1, decode_coding_category,
6812         Fcoding_category_list, Fset_coding_priority_list,
6813         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
6814         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
6815
6816 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
6817
6818         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
6819         * redisplay-output.c (redisplay_output_window): Clear top of window
6820         when face is changed.
6821         * redisplay-x.c (x_redraw_exposed_window): Call
6822         redisplay_clear_top_of_window.
6823         * redisplay.h: Publish redisplay_clear_top_of_window.
6824
6825 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
6826
6827         * buffer.c (Fkill_buffer): Map over all devices.
6828         * window.c (window_loop): Remove UNSHOW_BUFFER code.
6829         (list_windows): New function.
6830         (list_all_windows): Ditto.
6831         (Freplace_buffer_in_windows): Use them.
6832
6833 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6834
6835         * database.c (berkdb_subtype): Recognize new subtype `queue'.
6836         (Fopen_database): Use `db_create' instead of `db_open'.
6837         (syms_of_database): Initialize Qqueue.
6838
6839 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
6840
6841         * buffer.c (common_init_complex_vars_of_buffer): Initialize
6842         buffer_local_face_property.
6843         * buffer.h (struct buffer): New member buffer_local_face_property.
6844         * window.c (Fset_window_buffer):  Mark window's face as changed
6845         when buffer has buffer local face.
6846         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
6847         * objects.c (color_after_change): Set buffer_local_face_property
6848         when locale of face specifier is buffer.
6849         * objects.c (font_after_change): Ditto.
6850         * objects.c (face_boolean_after_change): Ditto.
6851         * glyphs.c (image_after_change): Ditto.
6852
6853 2000-12-09  Dan Holmsand  <dan@eyebee.com>
6854
6855         * nt.c (mswindows_fstat): Report file permissions, volume serial
6856         number, etc. Code adapted from FSF Emacs 20.7.
6857
6858 2000-12-09  Dan Holmsand  <dan@eyebee.com>
6859
6860         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
6861         of stat when we don't have symbolic links, to make sure
6862         mswindows_stat is called on mswindows.
6863
6864 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6865
6866         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
6867
6868 2000-12-12  Martin Buchholz  <martin@xemacs.org>
6869
6870         * doprnt.c (emacs_doprnt_1): More printing fixes.
6871         Make printing of numbers compatible with libc and FSF Emacs.
6872         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
6873         Use the system printf to do most of the hard work of formatting,
6874         instead of doprnt_1().
6875         Calculate memory to allocate for format string.
6876         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
6877         (doprnt_1): Cleaner code and documentation.
6878
6879 2000-12-01  Jerry James  <james@eecs.ukans.edu>
6880
6881         * Makefile.in.in: Use the loop variable to install headers.
6882
6883 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
6884
6885         * window.c (Fsplit_window): Don't invalidate face cache.
6886
6887 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
6888
6889         * minibuf.c (Fall_completions): Undo the previous change
6890         which removed checking elements start with space.
6891
6892 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
6893
6894         * mule-canna.c: Didier suppression.
6895
6896 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
6897
6898         * mule-canna.c: rename static unsigned char buf[] to key_buffer
6899         (warning suppression).  Add English comment translations.
6900
6901 2000-12-05  Martin Buchholz  <martin@xemacs.org>
6902
6903         * unexelfsgi.c (unexec): Better test for mmap failure.
6904
6905 2000-12-05  Martin Buchholz <martin@xemacs.org>
6906
6907         * XEmacs 21.2.38 is released.
6908
6909 2000-12-05  Martin Buchholz  <martin@xemacs.org>
6910
6911         * redisplay.c (bar-cursor): Make a user variable.
6912
6913         * symsinit.h: Add init_postgresql_from_environment.
6914
6915 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
6916
6917         * regex.c: Convert to clean C.
6918
6919 2000-12-05  Dan Holmsand  <dan@eyebee.com>
6920
6921         * realpath.c:
6922         Don't #include sysfile.h. Revert to duplicating PATH_MAX
6923         initialization.
6924         (sys_readlink): renamed to system_readlink to avoid conflict with
6925         the other sys_readlink.
6926
6927 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
6928
6929         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
6930
6931 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
6932
6933         * postgresql.c (init_postgresql_from_environment): new function.
6934         (vars_of_postgresql): Move code initializing Lisp variables out and
6935         into init_postgresql_from_environment.
6936         emacs.c (main_1): Call init_postgresql_from_environment if and only
6937         if running a dumped XEmacs.
6938
6939 2000-08-31  Dan Holmsand  <dan@eyebee.com>
6940
6941         * buffer.c: Make find-file-compare-truenames default to true on
6942         windows.
6943
6944         * realpath.c (win32_abs_start):
6945         (cygwin_readlink):
6946         (win32_readlink): New functions.
6947         (xrealpath): Return really real filenames on windows.
6948
6949         * fileio.c (Ffile_truename): Make file-truename work on windows.
6950
6951 2000-11-29  Didier Verna  <didier@xemacs.org>
6952
6953         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
6954         * faces.c (update_face_cachel_data): use it.
6955         * faces.c (add_face_cachel): use it. Complete background pixmap
6956         frobbing in face cache if `update_face_cachel_data' has not done so.
6957
6958 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
6959
6960         * search.c (string_match_1): Don't set last_thing_searched
6961         when search failed.
6962
6963 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
6964
6965         * buffer.c: Include casetab.h
6966         (common_init_complex_vars_of_buffer): Use new case-table object.
6967         * buffer.h: Include casetab.h
6968         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
6969         (DOWNCASE_TABLE_OF): Ditto.
6970         * bufslots.h: Remove char-tables and add case-table.
6971         * casetab.c: Include casetab.h
6972         (CASE_TABLE_P): Removed.
6973         (mark_case_table): New function.
6974         (allocate_case_table): New function.
6975         (Fcase_table_p): Use new case-table.
6976         (case_table_char): New function.
6977         (Fget_case_table): Ditto.
6978         (Fput_case_table): Ditto.
6979         (Fput_case_table_pair): Ditto.
6980         (Fcopy_case_table): Ditto.
6981         (Fcurrent_case_table): Return case-table.
6982         (Fstandard_case_table): Return case-table.
6983         (Fset_case_table): Fix doc-string.
6984         (set_case_table): Use case-table
6985         (syms_of_casetab): DEFSUBR new functions.
6986         (complex_vars_of_casetab): Set up standard case-table.
6987         * casetab.h: New file.
6988         * editfns.c: Include casetab.h
6989         (Fcompare_buffer_substrings): Use case-table.
6990         * inline.c: Include casetab.h
6991         * lisp.h: Remove bogus extern.
6992         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
6993         * search.c: Include casetab.h
6994         (TRANSLATE_ASCII): Removed.
6995         (TRANSLATE): Unconditionally translate character.
6996         (looking_at_1): Use case-table.
6997         (string_match_1): Ditto.
6998         (fast_string_match): Ditto.
6999         (search_command): Ditto.
7000         (search_buffer): Separate boyer_moore.  Check whether
7001         boyer_moore is possible.
7002         (simple_search): New function.
7003         (boyer_moore): Separated from search_buffer. Translate char.
7004
7005 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7006
7007         * regex.c (RE_TR_ASCII): Removed.
7008         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7009         (PATFETCH): Call PATFETCH_RAW.
7010         (PATFETCH_RAW): Fetch Emchar.
7011         (PATUNFETCH): Decrement charptr.
7012         (GET_BUFFER_SPACE): Rename b to buf_end.
7013         (BUF_PUSH): Ditto.
7014         (BUF_PUSH_2): Ditto.
7015         (BUF_PUSH_3): Ditto.
7016         (EXTEND_BUFFER): Ditto.
7017         (SET_LIST_BIT): Ditto.
7018         (regex_compile): Ditto.  Translate non ASCII char.
7019         (compile_range): Ditto.
7020         (re_search_2): Ditto.
7021         (re_match_2_internal): Compare Emchar.
7022         (bcmp_translate): Ditto.
7023
7024 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7025
7026         * lisp.h (basic char/int typedefs):  comment improvement.
7027
7028 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7029
7030         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7031         unstomp inhibit_site_lisp.  Improve comments.
7032
7033 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7034
7035         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7036
7037 2000-11-28  Andy Piper  <andy@xemacs.org>
7038
7039         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7040         clipped display for windows in the gutter also.
7041         (redisplay_display_boxes_in_window_p): change semantics of return
7042         codes to be more intuitive.
7043
7044         * gutter.h: declare display_boxes_in_gutter_p.
7045
7046         * gutter.c (display_boxes_in_gutter_p): new function for
7047         redisplay.
7048
7049 2000-11-22  Andy Piper  <andy@xemacs.org>
7050
7051         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7052         autodetect domain.
7053
7054 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7055
7056         * callproc.c (Fold_call_process_internal):
7057         * gpm.c (Freceive_gpm_event):
7058         (tty_get_foreign_selection): Might be just warning supression.
7059         * fileio.c (Fwrite_region_internal):
7060         (Fset_visited_file_modtime):
7061         * keymap.c (event_matches_key_specifier_p):
7062         Initialize GCPROed variable.
7063
7064         * menubar-x.c (command_builder_find_menu_accelerator):
7065         Initialize before use.
7066
7067 2000-11-23  Andy Piper  <andy@xemacs.org>
7068
7069         * unexcw.c (unexec): make the resulting executable executable.
7070
7071 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7072
7073         * doc.c (get_doc_string):
7074         Use size_t, not int, for result of XSTRING_LENGTH.
7075
7076         * cmds.c (Fdelete_char):
7077         * cmds.c (Fpoint_at_eol):
7078         * cmds.c (Fself_insert_command):
7079         Use EMACS_INT, not int, for result of XINT.
7080         Someday, someone will want to insert more than 2**31 identical characters.
7081
7082         * cmds.c (Fdelete_char):
7083         * cmds.c (Fdelete_backward_char):
7084         * syntax.c (Fforward_word):
7085         * syntax.c (Fforward_comment):
7086         Make COUNT argument optional, for consistency with forward-char et al.
7087
7088 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7089
7090         * lisp.h:
7091         * print.c (long_to_string):
7092         Return a useful value: the pointer at end of data written.
7093
7094         * doprnt.c:
7095         Use `static const char * const' for constant strings.
7096         (union printf_arg): Delete `i', `ui' members.
7097         (get_doprnt_args):
7098         (emacs_doprnt_1):
7099         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7100         Do all printf-ing via the `l' specifier.
7101         Use EMACS_INT instead of int.
7102         Optimize.
7103
7104 2000-11-20  Didier Verna  <didier@xemacs.org>
7105
7106         * faces.c (update_face_cachel_data): don't frob the background
7107         pixmap when the window is being created. The face is needed but
7108         does not exist yet.
7109
7110 2000-11-20  Andy Piper  <andy@xemacs.org>
7111
7112         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7113         messing with a debug environment.
7114
7115 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7116
7117         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7118
7119 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7120
7121         * casetab.c (Fcase_table_p): Fix compile error and crash.
7122
7123 2000-11-18  Philip Aston  <philipa@mail.com>
7124
7125         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7126
7127 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7128
7129         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7130         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7131
7132 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7133
7134         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7135         * unexelf.c: Use HAVE_ELF_H.
7136         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7137         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7138         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7139         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7140         for testing.
7141         So this is an unexelfsgi.c from a different line of development.
7142
7143 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7144
7145         * regex.c (RE_TR_ASCII): New function.
7146         (RE_TRANSLATE): Call it.
7147
7148 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7149
7150         * buffer.h (TRT_TABLE_OF): Remove assert.
7151         (IN_TRT_TABLE_DOMAIN): Removed.
7152
7153 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7154
7155         * free-hook.c (log_gcpro):
7156         (show_gcprohist): Add support for GCPRO5.
7157
7158 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7159
7160         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7161
7162 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7163
7164         * symeval.h: Declare flush_all_buffer_local_cache.
7165
7166         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7167         (flush_buffer_local_cache): Added.
7168         (flush_all_buffer_local_cache): Added.
7169
7170         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7171
7172         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7173         (pdump_dump_data): Ditto.
7174         (pdump_reloc_one): Ditto.
7175         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7176         before dumping.
7177
7178
7179 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7180
7181         * buffer.c: Remove if 0'ed entry.
7182         * buffer.h: Rewrite TRT to use char-table.
7183         * bufslots.h: Remove mirror tables.
7184         * casetab.c: Remove mirror tables.
7185         (CASE_TABLE_P): New macro.
7186         (Fcase_table_p): Element of a case table is string or char-table.
7187         (make_mirror_trt_table): Removed.
7188         (set_case_table): Setup char-table from strings for backward
7189         compatibility.
7190         * dired.c (Fdirectory_files):
7191         * dired-msw.c: (mswindows_get_files):
7192         * lisp.h: Change prototype of re_pattern_buffer.
7193         * regex.c: (RE_TRANSLATE): New macro.
7194         (TRANSLATE_P): Ditto.
7195         Change translate to type RE_TRANSLATE_TYPE.
7196         * regex.h: Define RE_TRANSLATE_TYPE
7197         * search.c (TRANSLATE): New macro.
7198         (TRANSLATE_ASCII): New macro.
7199         Translate table is changed to Lisp_Object.
7200         (signal_failure): Inhibit return.
7201
7202 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7203
7204         * device-msw.c:
7205         * eldap.c:
7206         * event-Xt.c:
7207         * event-stream.c:
7208         * print.c:
7209         Do UNGCPRO before return.
7210
7211 2000-11-14  Martin Buchholz <martin@xemacs.org>
7212
7213         * XEmacs 21.2.37 is released.
7214
7215 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7216
7217         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7218         Add comments about discarded return value.
7219
7220 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7221
7222         * callint.c:
7223         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7224
7225 2000-10-27  Andy Piper  <andy@xemacs.org>
7226
7227         * gutter.c (Fset_default_gutter_position): default left and right
7228         gutters to visible.
7229         (calculate_gutter_size): calculate resonable heuristic for left
7230         and right gutter sizes.
7231         (specifier_vars_of_gutter): change left and right gutter sizes to
7232         autodetect.
7233         (calculate_gutter_size_from_display_lines): new function.
7234         (output_gutter): check for resizing on left and right gutters.
7235         (clear_gutter): don't special case top and left gutters.
7236         (specifier_vars_of_gutter): use new signature for
7237         set_specifier_caching.
7238
7239         * glyphs-x.c (x_redisplay_widget): spelling fix.
7240         * glyphs.c (specifier_vars_of_glyphs):
7241         * menubar.c (specifier_vars_of_menubar):
7242         * redisplay.c (specifier_vars_of_redisplay):
7243         * toolbar.c (specifier_vars_of_toolbar):
7244         * window.c (specifier_vars_of_window):
7245         * scrollbar.c (specifier_vars_of_scrollbar):
7246         (complex_vars_of_scrollbar): use new signature for
7247         set_specifier_caching.
7248
7249         * specifier.c (set_specifier_caching): include recompute flag.
7250         (recompute_one_cached_specifier_in_window): always recompute if
7251         flag set.
7252         (recompute_one_cached_specifier_in_frame): ditto.
7253
7254         * specifier.h (struct specifier_caching): add recompute flag.
7255
7256 2000-10-24  Andy Piper  <andy@xemacs.org>
7257
7258         * unexcw.c (copy_executable_and_dump_data_section): add new
7259         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7260         5.0 happy.
7261
7262 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7263
7264         * console-x.h (x_device): New member modifier_release_time.
7265         * event-Xt.c (x_handle_sticky_modifiers):
7266         Bound interval modifier keys are sticky.
7267         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7268         * events.h: extern it.
7269
7270 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7271
7272         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7273
7274 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7275
7276         * event-stream.c (execute_command_event): Preserve current_events
7277         and the like when event is misc-user-event.
7278         Inhibit quit during the call to maybe_echo_keys.
7279
7280 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7281
7282         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7283         symlink when buffer is killed.
7284         (inhibit_clash_detection): New variable.
7285
7286 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7287
7288         * console.c (Fset_input_method): Trigger redisplay on tty.
7289
7290 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7291
7292         * process.c (Fprocess_status): Revert to previous behavior:
7293         (process-status "nosuchprocess") ==> nil
7294
7295 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7296
7297         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7298         Work around another GCC 2.95.2 optimizer bug.
7299
7300 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7301
7302         * process.c (Fget_process): Use LIST_LOOP_2.
7303         (kill_buffer_processes): Use LIST_LOOP_2.
7304
7305         * minibuf.c (Fall_completions):
7306         Delete old non-functional code for FSF fourth argument.
7307
7308         * frame.c (frame_matches_frame_spec):
7309         Renamed from `frame_matches_frametype'.  Update all callers.
7310         (device_matches_device_spec):
7311         Renamed from 'device_matches_console_spec'.  Update all callers.
7312
7313         * doc.c (Fsubstitute_command_keys):
7314         Remove buffer overflow crash.  Small code cleanups.
7315
7316         * casetab.c (check_case_table): Simpler code.
7317
7318         * window.c (Freplace_buffer_in_windows):
7319         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7320         (and similar implementation) as Fdelete_windows_on.
7321         Update all callers.
7322
7323         * alloc.c (Fmake_list):
7324         * alloc.c (make_vector):
7325         * alloc.c (Fmake_vector):
7326         * alloc.c (make_bit_vector):
7327         * alloc.c (Fmake_bit_vector):
7328         * alloc.c (Fbit_vector):
7329         * alloc.c (Fmake_string):
7330         * alloc.c (Fpurecopy):
7331         * alloc.c (Fmemory_limit):
7332         * buffer.c:
7333         * buffer.c (Fget_buffer):
7334         * buffer.c (Fkill_buffer):
7335         * buffer.c (complex_vars_of_buffer):
7336         * bytecode.c (Fcompiled_function_stack_depth):
7337         * callint.c (Fprefix_numeric_value):
7338         * event-stream.c:
7339         * event-stream.c (Fread_key_sequence):
7340         * casetab.c:
7341         * casetab.c (Fcase_table_p):
7342         * casetab.c (check_case_table):
7343         * casetab.c (Fset_case_table):
7344         * casetab.c (Fset_standard_case_table):
7345         * chartab.c:
7346         * chartab.c (Fchar_table_type):
7347         * chartab.c (Freset_char_table):
7348         * chartab.c (Fget_char_table):
7349         * chartab.c (Fget_range_char_table):
7350         * chartab.c (Fput_char_table):
7351         * chartab.c (Fmap_char_table):
7352         * chartab.c (Fcategory_table_p):
7353         * chartab.c (Fcheck_category_at):
7354         * chartab.c (Fchar_in_category_p):
7355         * chartab.c (Fcategory_table):
7356         * chartab.c (Fcopy_category_table):
7357         * chartab.c (Fset_category_table):
7358         * chartab.c (Fcategory_designator_p):
7359         * chartab.c (Fcategory_table_value_p):
7360         * cmds.c (Fdelete_char):
7361         * cmds.c (Fdelete_backward_char):
7362         * cmds.c (Fself_insert_command):
7363         * cmds.c (Fself_insert_internal):
7364         * console.c (Fvalid_console_type_p):
7365         * console.c (Fcdfw_console):
7366         * console.c (Fconsole_type):
7367         * console.c (Fconsole_name):
7368         * console.c (Fconsole_device_list):
7369         * console.c (Fconsole_on_window_system_p):
7370         * data.c:
7371         * data.c (Feq):
7372         * data.c (Fold_eq):
7373         * data.c (Fsubr_interactive):
7374         * data.c (Fchar_to_int):
7375         * data.c (Fint_to_char):
7376         * data.c (Fsetcar):
7377         * data.c (Fsetcdr):
7378         * data.c (Fnumber_to_string):
7379         * data.c (Fstring_to_number):
7380         * data.c (Frem):
7381         * database.c (mark_database):
7382         * database.c (finalize_database):
7383         * database.c (Fdatabase_live_p):
7384         * database.c (Fdatabasep):
7385         * device-x.c (Fx_get_resource):
7386         * device.c (Fdfw_device):
7387         * dired.c:
7388         * dired.c (Ffile_name_completion):
7389         * dired.c (Ffile_name_all_completions):
7390         * dired.c (Fuser_name_completion):
7391         * dired.c (Fuser_name_completion_1):
7392         * dired.c (Fuser_name_all_completions):
7393         * doc.c (Fdocumentation):
7394         * doc.c (Fdocumentation_property):
7395         * doc.c (Fsubstitute_command_keys):
7396         * editfns.c:
7397         * editfns.c (Fchar_to_string):
7398         * editfns.c (Fstring_to_char):
7399         * editfns.c (Ftemp_directory):
7400         * editfns.c (Finsert_char):
7401         * editfns.c (Fbuffer_substring_no_properties):
7402         * editfns.c (Fnarrow_to_region):
7403         * editfns.c (Fchar_equal):
7404         * editfns.c (Fchar_Equal):
7405         * editfns.c (Ftranspose_regions):
7406         * emacs.c (Fdump_emacs):
7407         * eval.c (Fthrow):
7408         * eval.c (Fcommand_execute):
7409         * eval.c (Fautoload):
7410         * eval.c (Fbacktrace):
7411         * eval.c (Fbacktrace_frame):
7412         * events.c:
7413         * events.c (Fcopy_event):
7414         * events.c (Fcharacter_to_event):
7415         * events.c (Fevent_button):
7416         * events.c (Fevent_process):
7417         * extents.c:
7418         * extents.c (Fnext_extent_change):
7419         * extents.c (Fextent_property):
7420         * faces.c (Ffacep):
7421         * faces.c (Fmake_face):
7422         * file-coding.c:
7423         * file-coding.c (Fencode_shift_jis_char):
7424         * file-coding.c (Fencode_big5_char):
7425         * fileio.c (Ffile_name_directory):
7426         * fileio.c (Ffile_name_nondirectory):
7427         * fileio.c (Ffile_name_as_directory):
7428         * fileio.c (Fdirectory_file_name):
7429         * fileio.c (Ffile_truename):
7430         * fileio.c (Fsubstitute_in_file_name):
7431         * fileio.c (Ffile_modes):
7432         * fileio.c (Fset_file_modes):
7433         * fileio.c (Fset_default_file_modes):
7434         * fileio.c (Fverify_visited_file_modtime):
7435         * floatfns.c (Facos):
7436         * floatfns.c (Fasin):
7437         * floatfns.c (Fatan):
7438         * floatfns.c (Fcos):
7439         * floatfns.c (Fsin):
7440         * floatfns.c (Ftan):
7441         * floatfns.c (Fbessel_j0):
7442         * floatfns.c (Fbessel_j1):
7443         * floatfns.c (Fbessel_jn):
7444         * floatfns.c (Fbessel_y0):
7445         * floatfns.c (Fbessel_y1):
7446         * floatfns.c (Fbessel_yn):
7447         * floatfns.c (Ferf):
7448         * floatfns.c (Ferfc):
7449         * floatfns.c (Flog_gamma):
7450         * floatfns.c (Fexp):
7451         * floatfns.c (Fexpt):
7452         * floatfns.c (Flog):
7453         * floatfns.c (Flog10):
7454         * floatfns.c (Fsqrt):
7455         * floatfns.c (Fcube_root):
7456         * floatfns.c (Facosh):
7457         * floatfns.c (Fasinh):
7458         * floatfns.c (Fatanh):
7459         * floatfns.c (Fcosh):
7460         * floatfns.c (Fsinh):
7461         * floatfns.c (Ftanh):
7462         * floatfns.c (Fabs):
7463         * floatfns.c (Ffloat):
7464         * floatfns.c (Flogb):
7465         * floatfns.c (Fceiling):
7466         * floatfns.c (Ffloor):
7467         * floatfns.c (Fround):
7468         * floatfns.c (Ftruncate):
7469         * floatfns.c (Ffceiling):
7470         * floatfns.c (Fffloor):
7471         * floatfns.c (Ffround):
7472         * floatfns.c (Fftruncate):
7473         * fns.c (Fstring_equal):
7474         * fns.c (Fstring_lessp):
7475         * fns.c (concat2):
7476         * fns.c (concat3):
7477         * fns.c (vconcat2):
7478         * fns.c (vconcat3):
7479         * fns.c (Fsubstring):
7480         * fns.c (Fassoc):
7481         * fns.c (Fold_assoc):
7482         * fns.c (assoc_no_quit):
7483         * fns.c (Fassq):
7484         * fns.c (Fold_assq):
7485         * fns.c (assq_no_quit):
7486         * fns.c (Frassoc):
7487         * fns.c (Fold_rassoc):
7488         * fns.c (Frassq):
7489         * fns.c (Fold_rassq):
7490         * fns.c (rassq_no_quit):
7491         * fns.c (Fremassoc):
7492         * fns.c (remassoc_no_quit):
7493         * fns.c (Fremassq):
7494         * fns.c (remassq_no_quit):
7495         * fns.c (Fremrassoc):
7496         * fns.c (Fremrassq):
7497         * fns.c (remrassq_no_quit):
7498         * fns.c (Fsort):
7499         * fns.c (Fplist_get):
7500         * fns.c (Fplist_put):
7501         * fns.c (Fplist_remprop):
7502         * fns.c (Fplist_member):
7503         * fns.c (Flax_plist_get):
7504         * fns.c (Flax_plist_put):
7505         * fns.c (Flax_plist_remprop):
7506         * fns.c (Flax_plist_member):
7507         * fns.c (Fequal):
7508         * fns.c (Fold_equal):
7509         * fns.c (Frequire):
7510         * fns.c (Fbase64_encode_region):
7511         * fns.c (Fbase64_encode_string):
7512         * fns.c (Fbase64_decode_region):
7513         * frame.c:
7514         * frame.c (frame_matches_frame_spec):
7515         * frame.c (device_matches_device_spec):
7516         * frame.c (next_frame):
7517         * frame.c (previous_frame):
7518         * frame.c (Fnext_frame):
7519         * frame.c (Fprevious_frame):
7520         * frame.c (Fframe_property):
7521         * frame.c (Fset_frame_height):
7522         * frame.c (Fset_frame_size):
7523         * frame.h:
7524         * glyphs.c:
7525         * glyphs.c (if):
7526         * glyphs.c (decode_error_behavior_flag):
7527         * glyphs.c (Fmake_image_instance):
7528         * indent.c (Findent_to):
7529         * intl.c (Fignore_defer_gettext):
7530         * keymap.c (Fkeymapp):
7531         * keymap.c (Flookup_key):
7532         * lread.c:
7533         * lread.c (Fload_internal):
7534         * lread.c (Feval_buffer):
7535         * lread.c (Feval_region):
7536         * macros.c (Fexecute_kbd_macro):
7537         * marker.c (set_marker_internal):
7538         * marker.c (Fset_marker):
7539         * marker.c (set_marker_restricted):
7540         * marker.c (Fcopy_marker):
7541         * marker.c (noseeum_copy_marker):
7542         * menubar.c:
7543         * menubar.c (Fpopup_menu):
7544         * minibuf.c:
7545         * mule-charset.c (Fcharset_name):
7546         * mule-charset.c (Fchar_charset):
7547         * mule-charset.c (Fchar_octet):
7548         * mule-charset.c (Fsplit_char):
7549         * mule-wnnfns.c (Fwnn_open):
7550         * mule-wnnfns.c (Fwnn_dict_comment):
7551         * mule-wnnfns.c (Fwnn_quit_henkan):
7552         * mule-wnnfns.c (Fwnn_word_toroku):
7553         * mule-wnnfns.c (Fwnn_word_sakujo):
7554         * mule-wnnfns.c (Fwnn_word_use):
7555         * mule-wnnfns.c (Fwnn_hindo_set):
7556         * objects.c:
7557         * objects.c (Fmake_color_instance):
7558         * objects.c (Fmake_font_instance):
7559         * print.c (Fwrite_char):
7560         * process.c:
7561         * process.c (mark_process):
7562         * process.c (print_process):
7563         * process.c (get_process_from_usid):
7564         * process.c (Fprocessp):
7565         * process.c (Fprocess_live_p):
7566         * process.c (Fget_process):
7567         * process.c (Fget_buffer_process):
7568         * process.c (get_process):
7569         * process.c (Fprocess_id):
7570         * process.c (Fprocess_name):
7571         * process.c (Fprocess_command):
7572         * process.c (init_process_io_handles):
7573         * process.c (start_process_unwind):
7574         * process.c (Fstart_process_internal):
7575         * process.c (Fopen_multicast_group_internal):
7576         * process.c (Fset_process_window_size):
7577         * process.c (read_process_output):
7578         * process.c (send_process):
7579         * process.c (Fprocess_tty_name):
7580         * process.c (Fset_process_buffer):
7581         * process.c (Fprocess_buffer):
7582         * process.c (Fprocess_mark):
7583         * process.c (set_process_filter):
7584         * process.c (Fset_process_filter):
7585         * process.c (Fprocess_filter):
7586         * process.c (Fprocess_send_region):
7587         * process.c (Fprocess_send_string):
7588         * process.c (exec_sentinel):
7589         * process.c (Fset_process_sentinel):
7590         * process.c (Fprocess_sentinel):
7591         * process.c (status_notify):
7592         * process.c (Fprocess_status):
7593         * process.c (Fprocess_exit_status):
7594         * process.c (process_send_signal):
7595         * process.c (Fprocess_send_eof):
7596         * process.c (deactivate_process):
7597         * process.c (remove_process):
7598         * process.c (Fdelete_process):
7599         * process.c (kill_buffer_processes):
7600         * process.c (Fprocess_kill_without_query):
7601         * process.c (Fprocess_kill_without_query_p):
7602         * rangetab.c:
7603         * rangetab.c (Fget_range_table):
7604         * rangetab.c (Fput_range_table):
7605         * rangetab.c (Fremove_range_table):
7606         * rangetab.c (Fclear_range_table):
7607         * search.c:
7608         * search.c (Fskip_chars_forward):
7609         * search.c (Fskip_chars_backward):
7610         * search.c (Fskip_syntax_forward):
7611         * search.c (Fskip_syntax_backward):
7612         * search.c (search_command):
7613         * search.c (Freplace_match):
7614         * search.c (Fregexp_quote):
7615         * select.c (Fown_selection_internal):
7616         * select.c (Fselection_owner_p):
7617         * select.c (Fselection_exists_p):
7618         * select.c (Fget_selection_internal):
7619         * specifier.c:
7620         * symbols.c:
7621         * symbols.c (Fintern):
7622         * symbols.c (Fintern_soft):
7623         * symbols.c (Funintern):
7624         * symbols.c (Fapropos_internal):
7625         * symbols.c (Fset_default):
7626         * syntax.c:
7627         * syntax.c (Fsyntax_table_p):
7628         * syntax.c (Fcopy_syntax_table):
7629         * syntax.c (Fset_syntax_table):
7630         * syntax.c (Fchar_syntax):
7631         * syntax.c (syntax_match):
7632         * syntax.c (Fmatching_paren):
7633         * syntax.c (Fforward_word):
7634         * syntax.c (scan_lists):
7635         * syntax.c (Fscan_lists):
7636         * syntax.c (Fscan_sexps):
7637         * syntax.c (Fparse_partial_sexp):
7638         * toolbar.c (Fcheck_toolbar_button_syntax):
7639         * tooltalk.doc:
7640         * window.c:
7641         * window.c (Fwindowp):
7642         * window.c (Fwindow_live_p):
7643         * window.c (Fwindow_point):
7644         * window.c (Fdelete_window):
7645         * window.c (Fnext_window):
7646         * window.c (Fprevious_window):
7647         * window.c (Fother_window):
7648         * window.c (window_loop):
7649         * window.c (Fget_lru_window):
7650         * window.c (Fsplit_window):
7651         * window.c (Fenlarge_window):
7652         * window.c (Fenlarge_window_pixels):
7653         * window.c (Fshrink_window):
7654         * window.c (Fshrink_window_pixels):
7655         * window.c (change_window_height):
7656         * window.c (Fwindow_configuration_p):
7657         * window.c (Fcurrent_window_configuration):
7658         * window.h:
7659         * casefiddle.c (casify_object):
7660         * casefiddle.c (Fupcase):
7661         * casefiddle.c (Fdowncase):
7662         * casefiddle.c (Fcapitalize):
7663         * casefiddle.c (Fupcase_initials):
7664         * casefiddle.c (casify_region_internal):
7665         * casefiddle.c (casify_region):
7666         * casefiddle.c (Fupcase_region):
7667         * casefiddle.c (Fdowncase_region):
7668         * casefiddle.c (Fcapitalize_region):
7669         * casefiddle.c (Fupcase_initials_region):
7670         * casefiddle.c (Fupcase_word):
7671         * casefiddle.c (Fdowncase_word):
7672         * casefiddle.c (Fcapitalize_word):
7673         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
7674         Replace 0 with '\0' when working with bytes.
7675         Replace initial "(" with "\(" in docstrings.
7676
7677 2000-11-01  Martin Buchholz  <martin@xemacs.org>
7678
7679         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
7680
7681         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
7682
7683 2000-10-31  Martin Buchholz  <martin@xemacs.org>
7684
7685         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
7686
7687 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7688
7689         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
7690         correctly.
7691
7692 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7693
7694         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
7695         (inhibit_auto_save_session): New variable.
7696         (vars_of_fileio): Declare and initialize them.
7697         * fileio.c (Fdo_auto_save): Don't create session file if
7698         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
7699
7700 2000-10-31  Martin Buchholz  <martin@xemacs.org>
7701
7702         * sgiplay.c (play_internal): C++ compilability.
7703         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
7704         * callproc.c (Fold_call_process_internal):
7705         Remove unused vars `env', `first'.
7706         * scrollbar.c (update_scrollbar_instance):
7707         #### unused var `current_window'.
7708         * redisplay-tty.c: Put currently unused vars insert_mode_on,
7709         etc. within #ifdef NOT_YET.
7710         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
7711         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
7712         * specifier.c (specifier_instance):
7713         #### unused var `tag'.
7714         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
7715
7716 2000-10-27  Martin Buchholz  <martin@xemacs.org>
7717
7718         * fns.c (Fbutlast):
7719         * fns.c (list_sort):
7720         * fns.c (Ffillarray):
7721         * fns.c (bytecode_nconc2):
7722         * fns.c (Fnconc):
7723         * fns.c (mapcar1):
7724         * fns.c (Fmapconcat):
7725         Be pedantically 64-bit correct.  For the time when someone will
7726         want to have a list with length > 2**32.
7727
7728         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7729         Work around MIPSpro compiler bug.
7730
7731         * process-unix.c (unix_kill_child_process): Add snarky comment.
7732         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
7733
7734         * config.h.in: Oops, _getpt ==> _getpty
7735
7736 2000-10-26  Martin Buchholz  <martin@xemacs.org>
7737
7738         * config.h.in:
7739         * regex.c:
7740         Use void*, not char*, as return type of alloca().
7741
7742         * alloc.c (free_marker): Side effect inside assert expression!
7743
7744 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
7745
7746         * mule-charset.c (Fset_charset_ccl_program): To check
7747         if the given ccl program is valid, use setup_ccl_program()
7748         instead of CHECK_VECTOR().
7749         (Fmake_charset): Likewise.
7750
7751 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
7752
7753         * faces.c (get_extent_fragment_face_cache_index):
7754         Fix cachel.merged_faces memory leak.
7755
7756 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
7757
7758         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
7759         Reset MSB of octets obtained by DECODE_SJIS
7760         because of the incompatibility with Emacs.
7761         (ccl_driver)<CCL_ENCODE_SJIS>:
7762         Set MSB of octets before passing them to
7763         ENCODE_SJIS because of the incompatibility
7764         with Emacs.
7765
7766 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
7767
7768         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
7769         (DECLARE_LRECORD): Undo the last change.
7770         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
7771
7772 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
7773
7774         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
7775         the implementation to lrecord_implementations_table.
7776
7777 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
7778
7779         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
7780         initial value of `lrecord_type_##c_name' and
7781         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
7782         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
7783         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
7784         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
7785         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
7786
7787 2000-10-17  Martin Buchholz  <martin@xemacs.org>
7788
7789         * miscplay.c (sndcnv8S_2mono):
7790         (sndcnv2monounsigned):
7791         (sndcnvULaw_2linear):
7792         (sndcnv16swap):
7793         Remove implementation-defined behavior.
7794
7795 2000-10-12  Martin Buchholz  <martin@xemacs.org>
7796
7797         * input-method-xlib.c: Warning suppression.
7798
7799 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
7800
7801         * mule-ccl.c: Sync up with Emacs 21.0.90.
7802         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
7803         Do nothing.
7804         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
7805         Likewise.
7806         (ccl_driver[WriteMultibyteChar2]): Bug fix.
7807         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
7808         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
7809         leading char belongs to official 2-dimensional charset.
7810         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
7811         write the given character as is.  Otherwise,
7812         if it is a multibyte char, convert it by
7813         non_ascii_set_charptr_emchar, then write it.
7814         (CCL_WRITE_STRING): Likewise.
7815         (ccl_get_compiled_code): New function.
7816         (setup_ccl_program): When ccl_prog is invalid,
7817         return -1.
7818         (Fregister_code_conversion_map): New function.
7819         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
7820
7821         * mule-ccl.h: Sync up with Emacs 21.0.90.
7822         (Fregister_ccl_program): export it.
7823
7824         * redisplay-msw.c (separate_textual_runs):
7825         If ccl program is not valid, don't do ccl conversion.
7826
7827         * redisplay-x.c (separate_textual_runs): Ditto.
7828
7829         * file-coding.c (Fmake_coding_system):
7830         When type is ccl and value is vector, register it
7831         with a proper symbol.  And checks whether the
7832         given ccl program is valid.
7833         (mule_decode): When calling ccl_driver, if src indicates
7834         NULL pointer, set an empty string instead.
7835         (mule_encode): Likewise.
7836
7837 2000-10-11  Martin Buchholz  <martin@xemacs.org>
7838
7839         The following large batch of changes gets us back to a state of
7840         C++ compilability.  Extbyte is now a char, which means that
7841         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
7842
7843         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
7844
7845         * sound.c (Fplay_sound): Type correctness.
7846
7847         * select-x.c (hack_motif_clipboard_selection): Type correctness.
7848         (x_get_window_property): Type correctness.
7849         (receive_incremental_selection): unsigned char ==> Extbyte
7850         (selection_data_to_lisp_data): unsigned char ==> Extbyte
7851         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
7852         (Fx_store_cutbuffer_internal): Type correctness.
7853
7854         * process-unix.c (try_to_initialize_subtty): Type correctness.
7855
7856         * objects-x.c (x_print_color_instance): Type correctness.
7857         (x_print_font_instance): Type correctness.
7858         (x_list_fonts): SExtbyte ==> Extbyte.
7859         (valid_x_font_name_p): SExtbyte ==> Extbyte.
7860         (x_find_charset_font): SExtbyte ==> Extbyte.
7861         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
7862         (truename_via_XListFonts): SExtbyte ==> Extbyte.
7863         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
7864         Use bufbyte_strcmp.
7865
7866         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
7867         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
7868         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
7869         (BYTE_C0_P): Use bit ops for char-signedness safety.
7870         (BYTE_C1_P): Use bit ops for char-signedness safety.
7871         (CHARSET_BY_LEADING_BYTE):
7872         (CHARSET_BY_ATTRIBUTES):
7873         Always use inline function.
7874         Use type_checking_assert.
7875         Hide chlook.
7876
7877         * mule-charset.c (non_ascii_charptr_copy_char):
7878         Modify to work with both ASCII and non-ASCII characters.
7879         Improve docs and variable names.
7880         Replace over-clever fall-through switch with a simple loop.
7881         (Lstream_get_emchar_1):
7882         Replace over-clever fall-through switch with a simple loop.
7883
7884         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7885         Warning suppression.
7886
7887         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
7888         the return value of Lstream_getc, which could be EOF as well.
7889
7890         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
7891
7892         * lisp.h: Make Extbyte a char, not unsigned char, so that external
7893         APIs can be used on Extbytes without casts.  Risky!
7894         (SExtbyte): Remove.
7895         (UExtbyte): Remove.
7896
7897         * input-method-xlib.c (XIM_init_device):
7898         Use Xlib.h instead of IntrinsicP.h.
7899         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
7900         which will break in X11R7.
7901         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
7902         to call XRegisterIMInstantiateCallback with correct types.
7903
7904         * gui-x.c (button_item_to_widget_value): Type correctness.
7905
7906         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
7907
7908         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
7909         (xbm_instantiate_1): Type correctness.
7910         (BUILD_GLYPH_INST):  Type correctness.
7911
7912         * fileio.c (Fsubstitute_in_file_name): Type correctness.
7913
7914         * file-coding.c:
7915         (decode_coding_sjis):
7916         (decode_coding_big5):
7917         (decode_coding_ucs4):
7918         (decode_coding_utf8):
7919         (decode_coding_iso2022):
7920         (decode_coding_no_conversion):
7921         Make all decoding functions take an Extbyte * arg.
7922         (encode_coding_sjis):
7923         (encode_coding_big5):
7924         (encode_coding_ucs4):
7925         (encode_coding_utf8):
7926         (encode_coding_iso2022):
7927         (encode_coding_no_conversion):
7928         Make all encoding functions take a Bufbyte * arg.
7929         Use size_t instead of unsigned int for memory sizes.
7930         Only cast to unsigned char whenever dereferencing Extbyte *.
7931
7932         * doc.c (unparesseuxify_doc_string): Type correctness.
7933
7934         * console-x.c (split_up_display_spec):
7935         Rewrite without using details of internal string representation.
7936         (x_semi_canonicalize_device_connection): Type correctness.
7937
7938         * config.h.in:
7939         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
7940         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
7941         (HAVE_XFREE386): Removed.
7942
7943         * buffer.h (DEC_CHARPTR): `const' correctness.
7944         (bufbyte_strcmp): New.
7945         (bufbyte_memcmp): New.
7946
7947         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
7948
7949         * buffer.h (XCHAR_OR_CHAR_INT):
7950         Always use inline function.
7951         Remove redundant type checking assert() - XINT will abort quite nicely.
7952
7953 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
7954
7955         * search.c (Freplace_match): Set newtext to an empty string.
7956
7957 2000-10-10  Martin Buchholz  <martin@xemacs.org>
7958
7959         * s/decosf1-3.h: Remove #include of stropts.h
7960         * s/ptx.h: Remove #include of stropts.h
7961         * s/usg5-4.h: Remove #include of stropts.h
7962         * sysproc.h:
7963         * config.h.in:
7964         Use stropts.h, not sys/stropts.h.
7965         Use strtio.h, not sys/strtio.h.
7966
7967 2000-10-04  Martin Buchholz <martin@xemacs.org>
7968
7969         * XEmacs 21.2.36 is released.
7970
7971 2000-09-21  Andy Piper  <andy@xemacs.org>
7972
7973         * glyphs-x.c (x_redisplay_widget): make sure non-structural
7974         changes still involve copying the widget tree.
7975         (update_widget_face): make sure a change is register in the widget
7976         tree. Call update_tab_widget_face appropriately.
7977         (update_tab_widget_face): ditto.
7978         (x_tab_control_redisplay): make sure non-structural changes still
7979         involve copying the widget tree.
7980
7981 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
7982
7983         * lread.c (locate_file): Check the path element is non-nil.
7984
7985 2000-10-02  Martin Buchholz  <martin@xemacs.org>
7986
7987         * lisp.h: Warning suppression for SCO compilers.
7988
7989         * redisplay-tty.c (reset_tty_modes): Fix crash.
7990         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
7991
7992 2000-09-27  Martin Buchholz  <martin@xemacs.org>
7993
7994         Big signal/process handling overhaul.  Bugs fixed:
7995         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
7996         M-x comint-kill-subjob should work for both values nil and t of
7997         process-connection-type. It was broken on most platforms.
7998         Testing on Irix and Cygwin still needed.  Other plaforms tested.
7999         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8000         * process-unix.c: Signal/Process handling overhaul.
8001         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8002         (allocate_pty): Use all available modern methods of allocating
8003         ptys, falling back to old style BSD allocation as a last resort.
8004         Use allegedly more secure Unix98 pty allocation by default.
8005         (allocate_pty_the_old_fashioned_way): New. the last resort.
8006         (unix_create_process): Push ptem, ldterm, ttcompat where
8007         available.  Autoconfiscate.
8008         (try_to_initialize_subtty): New.
8009         (unix_kill_child_process): Proper signal handling for ptys on most
8010         platforms, using special knowledge of AIX, BSD, etc...
8011         (unix_create_process): Always disconnect_controlling_terminal() for
8012         subprocesses, whether using ptys or not.
8013         * process.h: Remove old getpt-dependent PTY code.
8014         * process.c (Fprocess_send_signal): New, obvious generic function.
8015         (decode_signal): New.
8016         (Finterrupt_process):
8017         (Fkill_process):
8018         (Fquit_process):
8019         (Fstop_process):
8020         (Fcontinue_process):
8021         (Fsignal_process): Use decode_signal.
8022         (process_send_signal):
8023         Many docstring corrections.
8024         Allow any signal to be sent to a process object.
8025         * config.h.in: Add symbols for big signal/process overhaul.
8026         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8027         * sysproc.h: Include process-related headers, where available:
8028         sys/stropts.h sys/strtio.h pty.h libutil.h
8029         * s/irix4-0.h:
8030         * s/irix5-0.h:
8031         * s/cygwin32.h:
8032         * s/gnu.h:
8033         * s/linux.h:
8034         * s/hpux.h:
8035         * s/aix3-1.h:
8036         Remove old S&M pty stuff.
8037         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8038         * systty.h: Simplify cpp hackery, improve comments.
8039         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8040
8041         * editfns.c (Fformat_time_string):
8042         Be a little more paranoid with the return value of ctime.
8043
8044         * fileio.c (check_executable):
8045         (check_writable):
8046         Use symbolic constants X_OK, W_OK.
8047
8048         * console-x.c (split_up_display_spec): Fix a warning.
8049
8050 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8051
8052         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8053         * ntproc.c (sys_spawnve): make_string ==> build_string
8054         Small clarity improvements.
8055
8056 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8057
8058         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8059
8060         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8061
8062         * config.h.in (HAVE_STRCASECMP): Remove.
8063
8064 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8065
8066         * redisplay-output.c (redisplay_output_pixmap):
8067         Cleaner and possibly more 64-bit correct code.
8068
8069 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8070
8071         * dumper.c (pdump_load_finish): move restoration of
8072         `noninteractive1' to emacs.c (main_1).
8073         * emacs.c (main_1): protect LISP-visible command-line flags
8074         from pdump_load().
8075
8076 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8077
8078         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8079         DUMP_TARGET instead of literal program names.
8080
8081 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8082
8083         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8084
8085 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8086
8087         * *: Spelling mega-patch
8088
8089 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8090
8091         * fns.c (bad_bad_turtle):
8092         Delete "Eek!" comment, since we fixed the bug to which it refers.
8093
8094 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8095
8096         * alloca.c: Replace REGISTER with register.
8097
8098 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8099
8100         * file-coding.c (ucs_to_char): Use countof.
8101
8102 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8103
8104         * file-coding.c: (ucs_to_char):
8105         (complex_vars_of_file_coding):
8106         Use countof instead of sizeof.
8107         Use CHECK_NATNUM instead of CHECK_INT.
8108
8109         * sysdep.c (strcasecmp): Remove.
8110         * device-x.c (ascii_strcasecmp): New.
8111         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8112         Avoid using non-standard non-portable strcasecmp.
8113
8114 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8115
8116         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8117         * font-lock.c: remove reference to emacsfns.h.
8118         * search.c: small doc improvement.
8119         * event-Xt.c: correct file names in comments.
8120         * console-x.h Correct file names in comments.
8121         * frame.c: Correct file names in comments.
8122         * event-stream.c: remove Energize from comments.
8123
8124 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8125
8126         * symeval.h (DEFERROR_STANDARD):
8127         (DEFERROR):
8128         (DEFSYMBOL):
8129         (DEFSYMBOL_NO_DUMP):
8130         (DEFSYMBOL_MULTIWORD_PREDICATE):
8131         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8132         (DEFKEYWORD):
8133         The construct &##name is not sensible C.
8134         Fixes compilation errors with Unixware native compiler.
8135
8136 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8137
8138         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8139         (next_frame_internal): Removed.  We now just have next_frame.
8140         (next_frame):
8141         Write a simpler and cleaner one-pass algorithm.
8142         Remove called_from_delete_device arg and #ifdefed-out code.
8143         (previous_frame):
8144         Renamed from prev_frame.  Update callers.
8145         Cleaned up to have an analogous implementation to next_frame.
8146         (other_visible_frames_internal): Remove the
8147         called_from_delete_device bogus arg, and hence, remove this
8148         function.  Just use other_visible_frames().
8149
8150         * window.c (Fnext_window):
8151         Prettify docstring.
8152         Since next_frame() is guaranteed to return a frame, remove check
8153         for nil inserted in previous patch.
8154         (Fprevious_window):
8155         Prettify docstring.
8156         Make code look more like Fnext_window.
8157         (window_loop):
8158         Respect the `console' arg when iterating through windows.
8159         Fixes bug: (get-buffer-window buffer t device) not respecting
8160         the `device' arg.
8161         This function needs more work, as others have pointed out.
8162
8163         * frame.h: Rename prev_frame to previous_frame.
8164         device_matches_console_spec no longer takes a `frame' arg.
8165
8166         * s/gnu.h:
8167         * s/linux.h:
8168         * s/hpux.h:
8169         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8170         From "Golubev I. N." <gin@mo.msk.ru>.
8171
8172         * make-src-depend: Fix typo.
8173
8174 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8175
8176         * window.c (Fnext_window):
8177         next_frame() might return nil, not a frame.
8178         Fixes this crash:
8179         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8180
8181         * frame.c (next_frame_internal):
8182         We've passed a frame if we've passed its device.
8183         Fixes this crash:
8184         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8185 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8186
8187 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8188
8189         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8190         Allow option to suppress accelerators in menu/dialog items.
8191         (populate_or_checksum_helper): Pass dialog title through above.
8192
8193 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8194
8195         * event-msw.c (mswindows_key_to_emacs_keysym):
8196         Add "pause" key, fix "menu" key.
8197
8198 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8199
8200         * eval.c (reinit_vars_of_eval):
8201         Increase max_lisp_eval_depth to 1000,
8202         required for thai-xtis.el to byte-compile under some circumstances.
8203
8204 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8205
8206         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8207         From Kenichi Handa.
8208
8209 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8210
8211         * make-src-depend: Make the generated Makefiles smaller.
8212
8213         * s/hpux.h (SETUP_SLAVE_PTY):
8214         Provide a %d in the format string for the errno argument.
8215
8216         * editfns.c (Ftemp_directory):
8217         Warning fix.
8218         Avoid buffer overrun on very long file name.
8219
8220         * input-method-xlib.c (XIM_init_device):
8221         6th parameter of XRegisterIMInstantiateCallback has different
8222         pointer types on different OSes, so simply cast to (void *).
8223
8224         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8225
8226         * sysdll.c (dll_open):
8227         shl_load will hang hard if passed a NULL filename.
8228         Simply return NULL for compatibility with dlopen.
8229         * sysdll.c: Conform to XEmacs coding standards.
8230
8231         * sysdep.c (get_pty_max_bytes):
8232         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8233
8234 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8235
8236         * tooltalk.c: Add #include <syssignal.h>
8237
8238 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8239
8240         * s/hpux.h: Don't use undefined function sigunblock().
8241
8242 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8243
8244         * config.h.in: Add HAVE_BALLOON_HELP.
8245         * emacs.c: Use HAVE_BALLOON_HELP.
8246         * Makefile.in.in (x_objs):
8247         Make Balloon Help conditional on finding shape.h.
8248
8249 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8250
8251         * syntax.c (regex_emacs_buffer_p): New variable.
8252         * syntax.h (regex_emacs_buffer_p): extern.
8253         * search.c (looking_at_1):
8254         (string_match_1):
8255         (fast_string_match):
8256         (search_buffer): Set regex_emacs_buffer_p.
8257         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8258         when before_dot, at_dot, after_dot.
8259
8260 2000-08-23  Andy Piper  <andy@xemacs.org>
8261
8262         * gui-x.c (popup_selection_callback): Only set action_occurred
8263         when we really have an image instance.
8264         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8265
8266 2000-08-23  Andy Piper  <andy@xemacs.org>
8267
8268         * gui-msw.c (mswindows_handle_gui_wm_command): set
8269         action_occurred.
8270         * gui-x.c (popup_selection_callback): ditto.
8271
8272         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8273         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8274         (struct Lisp_Image_Instance): add action_occurred flag.
8275
8276         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8277         (image_instance_changed): ditto.
8278         (reset_frame_subwindow_instance_cache): only unmap windows - do
8279         not remove them from the cache also.
8280
8281         * glyphs-widget.c (tab_control_update): better debug.
8282         (progress_gauge_update): ditto.
8283         (layout_update): ditto.
8284         (layout_instantiate): ditto.
8285         (tab_control_order_only_changed): cope with null pending items.
8286
8287         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8288         debug. Force selection of an item when an action occurred. Cope
8289         with null pending_items.
8290         (mswindows_progress_gauge_redisplay): better debug.
8291         * glyphs-x.c (x_tab_control_redisplay): ditto.
8292
8293         * redisplay.c (redisplay_frame): reset the frame cache if the
8294         frame is garbaged.
8295
8296         * window.c (Fset_window_configuration): potentially re-enable
8297         frame cache reset.
8298         (window_unmap_subwindows): need to finalize instances here since
8299         it is only used in mark_window_as_deleted.
8300
8301 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8302
8303         * nas.c (SndOpenDataForReading):
8304         nas.c (WaveOpenDataForReading):
8305         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8306         Somehow escaped from the 2000-08-14 patch.
8307
8308 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8309
8310         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8311         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8312
8313 2000-08-21  Andy Piper  <andy@xemacs.org>
8314
8315         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8316         window if it is not already displayed.
8317
8318         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8319         it is not already displayed.
8320
8321         * window.c (Fset_window_configuration): don't reset the frame
8322         cache.
8323
8324         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8325         instances from the frame cache if we are actually finalizing them.
8326         (reset_frame_subwindow_instance_cache): reset frame cache only
8327         after unmapping everything.
8328         (map_subwindow): set displayed flag after mapping.
8329
8330 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8331
8332         * data.c (indirect_function):
8333         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8334
8335         * eval.c (function_argcount):
8336         Use original function when signaling errors.
8337
8338 2000-08-18  Andy Piper  <andy@xemacs.org>
8339
8340         * frame.c (delete_frame_internal): use new
8341         free_frame_subwindow_instances name.
8342
8343         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8344         (add_tab_item): make return type correct.
8345         (mswindows_tab_control_instantiate): assert index of tab.
8346         (mswindows_tab_control_redisplay): Re-code to use
8347         gui_item_equal_sans_selected and gui_item_list_find_selected.
8348
8349         * glyphs-widget.c (tab_control_update): Correct comment.
8350
8351         * window.c (window_unmap_subwindows): use new
8352         unmap_subwindow_instance_cache_mapper.
8353         (window_unmap_subwindows_cache_mapper): deleted.
8354         (Fset_window_configuration): comparisons should now be with
8355         EQ. Preserve the subwindow instance cache across configuration
8356         changes.
8357         (allocate_window): ditto.
8358         (make_dummy_parent): ditto.
8359
8360         * glyphs.c (free_frame_subwindow_instances): rename from
8361         free_frame_subwindow_instance_cache. finalize all instances rather
8362         than just those in the display cache.
8363         (finalize_all_subwindow_instances): walk windows unmapping and
8364         finalizing subwindows.
8365         (unmap_subwindow_instance_cache_mapper): moved from
8366         window.c. Allow finalization as well as unmapping.
8367
8368         * gui.c (gui_item_list_find_selected): new function.
8369
8370         * gui.h (gui_item_list_find_selected): declare.
8371
8372         * glyphs-x.c (x_tab_control_redisplay): pick tab
8373         explicitly. Re-code to use gui_item_equal_sans_selected and
8374         gui_item_list_find_selected.
8375
8376         * glyphs-x.h: add lwlib-utils.h
8377
8378         * buffer.c (Frecord_buffer): undo previous change.
8379
8380 2000-08-09  Vin Shelton  <acs@xemacs.org>
8381
8382         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8383         possible.  Create temporary files more securely.  The patch was
8384         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8385         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8386         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8387         for details.
8388
8389 2000-08-07  Ben Wing  <ben@xemacs.org>
8390
8391         * getloadavg.c: remove duplicate (and windows-breaking)
8392         includes of fcntl.h and sys/file.h.
8393
8394         * nt.c: remove duplicate getloadavg() definition.
8395
8396         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8397         encodings.
8398
8399 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8400
8401         * eval.c (function_argcount): If function needs to be autoloaded
8402         actually use the loaded definition.
8403         GCPRO function.
8404
8405 2000-08-05  Ben Wing  <ben@xemacs.org>
8406
8407         * getloadavg.c: add prototype for getloadavg().  remove
8408         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8409         of the code).  remove duplicate header includes.
8410
8411         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8412
8413         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8414         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8415         useful load average.
8416
8417         * alloc.c (reinit_alloc_once_early): removed references to
8418         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8419         the lisp vars are the only things referencing the malloc_sbrk_*
8420         vars, and they were already if 0'd out.  these vars only exist
8421         in the older malloc.c, which is basically unused, and they're
8422         only for informational purposes.
8423
8424         * m\*.h: removed useless VIRT_ADDR_VARIES.
8425
8426         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8427
8428 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8429
8430         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8431         color if the image is a mono pixmap.
8432
8433 2000-07-30  Ben Wing  <ben@xemacs.org>
8434
8435         * Makefile.in.in (release):
8436         Remove stray @.
8437
8438         * buffer.c (directory_is_current_directory):
8439         * dired-msw.c (mswindows_get_files):
8440         * dired.c:
8441         * dired.c (Fdirectory_files):
8442         * dired.c (file_name_completion_stat):
8443         * dired.c (Ffile_attributes):
8444         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8445         preprocessor tricks, to avoid problems on some machines
8446         (e.g. SCO).
8447
8448         * callproc.c (egetenv): GC docs.
8449
8450         * console-msw.h:
8451         * console-msw.h (struct mswindows_dialog_id):
8452         * lrecord.h (lrecord_type):
8453         New object for use with MSW dialogs.
8454
8455         * console.h (struct console_methods):
8456         New enable/disable frame methods, for proper modal dialogs.
8457
8458         * device-msw.c (msprinter_default_printer): Fix to follow
8459         proper Mule conventions.
8460
8461         * device-msw.c:
8462         * device-msw.c (signal_open_printer_error):
8463         * device-msw.c (msprinter_init_device):
8464         * device-msw.c (ensure_not_printing):
8465         * device-msw.c (plist_get_margin):
8466         * device-msw.c (Fmsprinter_select_settings):
8467         * device-msw.c (finalize_devmode):
8468         * device-msw.c (Fmsprinter_settings_despecialize):
8469         * device-msw.c (signal_enum_priner_error):
8470         * extents.c (decode_extent):
8471         * extents.c (decode_map_extents_flags):
8472         * extents.c (decode_extent_at_flag):
8473         * extents.c (Fextent_at):
8474         * extents.c (Fextents_at):
8475         * extents.c (symbol_to_glyph_layout):
8476         [[[[2]]]] Use structured errors.
8477
8478         * dialog-msw.c:
8479         * dialog-msw.c (mswindows_is_dialog_msg):
8480         * dialog-msw.c (mark_mswindows_dialog_id):
8481         * dialog-msw.c (dialog_proc):
8482         * dialog-msw.c (handle_question_dialog_box):
8483         * dialog-msw.c (syms_of_dialog_mswindows):
8484         Define new object to clean up marking; use it as a dialog identifier.
8485         Call new delete-dialog-box-hook.
8486
8487         * dialog-x.c (dbox_selection_callback):
8488         * dialog-x.c (dbox_descriptor_to_widget_value):
8489         * dialog-x.c (x_make_dialog_box_internal):
8490         Call new delete-dialog-box-hook.
8491         Return an id.
8492
8493         * dialog.c:
8494         * dialog.c (syms_of_dialog):
8495         * dialog.c (vars_of_dialog):
8496         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8497
8498         * eval.c:
8499         * eval.c (signal_call_debugger):
8500         when noninteractive, output stack traces on the console instead
8501         of in a (never-seen) buffer.
8502
8503         * eval.c (signal_type_error):
8504         * eval.c (invalid_argument_2):
8505         * lisp.h:
8506         new funs for use w/structured errors.
8507
8508         * event-Xt.c:
8509         * event-Xt.c (x_to_emacs_keysym):
8510         * event-Xt.c (describe_event):
8511         * event-Xt.c (emacs_Xt_event_handler):
8512         * event-Xt.c (vars_of_event_Xt):
8513         * event-msw.c:
8514         * event-msw.c (mswindows_wnd_proc):
8515         * event-msw.c (vars_of_event_mswindows):
8516         rename {x,mswindows}-debug-events to debug-{}-events for
8517         consistency with other debug-foo variables.
8518
8519         * event-stream.c:
8520         document next-event more clearly.
8521
8522         * fileio.c (Ffile_name_directory):
8523         * fileio.c (Ffile_name_nondirectory):
8524         * fileio.c (Funhandled_file_name_directory):
8525         * fileio.c (file_name_as_directory):
8526         * fileio.c (Ffile_name_as_directory):
8527         * fileio.c (directory_file_name):
8528         * fileio.c (Fdirectory_file_name):
8529         * fileio.c (Fmake_temp_name):
8530         * fileio.c (Ffile_truename):
8531         * fileio.c (Fsubstitute_in_file_name):
8532         * fileio.c (expand_and_dir_to_file):
8533         * fileio.c (barf_or_query_if_file_exists):
8534         * fileio.c (check_executable):
8535         * fileio.c (Ffile_exists_p):
8536         * fileio.c (Ffile_writable_p):
8537         * fileio.c (Ffile_directory_p):
8538         * fileio.c (Ffile_regular_p):
8539         * fileio.c (Ffile_modes):
8540         * fileio.c (Ffile_newer_than_file_p):
8541         * fileio.c (Fverify_visited_file_modtime):
8542         * fileio.c (Fset_visited_file_modtime):
8543         * fileio.c (auto_save_1):
8544         (1). (2).
8545         fix up gcpro's.
8546
8547         * frame-msw.c:
8548         * frame-msw.c (mswindows_init_frame_1):
8549         * frame-msw.c (mswindows_enable_frame):
8550         * frame-msw.c (error_frame_unsizable):
8551         * frame-msw.c (msprinter_init_frame_1):
8552         * frame-msw.c (msprinter_init_frame_3):
8553         * frame-msw.c (console_type_create_frame_mswindows):
8554         (2).
8555         implement new enable/disable frame methods.
8556
8557         * frame-x.c:
8558         * frame-x.c (x_enable_frame):
8559         * frame-x.c (console_type_create_frame_x):
8560         implement new enable/disable frame methods.
8561
8562         * frame.c:
8563         * frame.c (Fdisable_frame):
8564         * frame.c (syms_of_frame):
8565         * frame.h (struct frame):
8566         implement new enable/disable frame methods/functions.
8567
8568         * general-slots.h:
8569         add initial-focus.
8570
8571         * glyphs-msw.c (mswindows_widget_instantiate):
8572         comment that initial-focus should be implemented.
8573
8574         * glyphs-widget.c:
8575         * glyphs-widget.c (check_valid_instantiator):
8576         * glyphs-widget.c (check_valid_orientation):
8577         * glyphs-widget.c (check_valid_tab_orientation):
8578         * glyphs-widget.c (check_valid_justification):
8579         * glyphs-widget.c (check_valid_border):
8580         * glyphs-widget.c (check_valid_callback):
8581         * glyphs-widget.c (check_valid_int_or_function):
8582         * glyphs-widget.c (check_valid_string_or_vector):
8583         * glyphs-widget.c (check_valid_item_list_1):
8584         * glyphs-widget.c (widget_validate):
8585         * glyphs-widget.c (combo_box_validate):
8586         * glyphs-widget.c (widget_instantiate):
8587         * glyphs-widget.c (syms_of_glyphs_widget):
8588         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
8589         * glyphs-widget.c (image_instantiator_combo_box):
8590         * glyphs-widget.c (image_instantiator_scrollbar):
8591         * glyphs-widget.c (image_instantiator_tab_control):
8592         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
8593         (2).
8594         support (unimplemented) keyword initial-focus.
8595         reindent long macros.
8596
8597         * glyphs-x.c (x_redisplay_widget):
8598         * glyphs-x.c (x_button_instantiate):
8599         * glyphs-x.c (x_button_redisplay):
8600         * glyphs-x.c (x_progress_gauge_instantiate):
8601         * glyphs-x.c (x_edit_field_instantiate):
8602         * glyphs-x.c (x_combo_box_instantiate):
8603         * glyphs-x.c (x_tab_control_instantiate):
8604         * glyphs-x.c (x_label_instantiate):
8605         * gui-x.c:
8606         * gui-x.c (button_item_to_widget_value):
8607         * gui-x.c (gui_items_to_widget_values_1):
8608         * gui-x.c (gui_item_children_to_widget_values):
8609         * gui-x.c (gui_items_to_widget_values):
8610         * gui-x.h:
8611         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8612         add new flag to gui-parsing routines to indicate whether
8613         accelerator specs should be supported.
8614
8615         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
8616
8617         * glyphs.h (struct Lisp_Image_Instance):
8618         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
8619         add initial-focus flag.
8620
8621         * gui.c:
8622         * gui.c (syms_of_gui):
8623         * gui.c (vars_of_gui):
8624         clean up menu-no-selection-hook.
8625
8626         * gui.h:
8627         support delete-dialog-box-hook.
8628
8629         * lread.c (Fload_internal):
8630         * lread.c (locate_file_in_directory_mapper):
8631         (1).
8632
8633         * lrecord.h:
8634         * lrecord.h (struct toolbar_button):
8635         * lrecord.h (syms_of_toolbar):
8636         document how to create a new object.
8637
8638         * menubar-msw.c (mswindows_char_is_accelerator):
8639         may be called on frames w/o menus.
8640
8641         * menubar.c (vars_of_menubar):
8642         clean up :filter docs.
8643
8644         * nt.c (readdir):
8645         * ntproc.c:
8646         (1).
8647
8648         * process-nt.c:
8649         * process-nt.c (validate_signal_number):
8650         * process-nt.c (signal_cannot_launch):
8651         * process-nt.c (nt_create_process):
8652         * process-nt.c (nt_send_process):
8653         * process-nt.c (nt_kill_child_process):
8654         * process-nt.c (nt_open_network_stream):
8655         * process-nt.c (syms_of_process_nt):
8656         (2).
8657         delete quote-handling.  call new lisp code that does it better.
8658
8659         * process-unix.c (connect_to_file_descriptor):
8660         * process-unix.c (allocate_pty):
8661         * process-unix.c (unix_send_process):
8662         * process-unix.c (unix_kill_child_process):
8663         * process-unix.c (unix_open_network_stream):
8664         * process-unix.c (unix_open_multicast_group):
8665         (1). (2).
8666
8667         * process.c:
8668         * process.c (Fstart_process_internal):
8669         (2).  need to canonicalize process path even if absolute.
8670
8671         * select-msw.c (symbol_to_ms_cf):
8672         * select-msw.c (ms_cf_to_symbol):
8673         * select-msw.c (cf_is_autofreed):
8674         * select-msw.c (mswindows_destroy_selection):
8675         * select.c:
8676         * select.c (syms_of_select):
8677         * select.h:
8678         support dibv5, fix bugs. (from Mike Alexander)
8679
8680         * select.c (Fget_selection_internal):
8681         * select.c (select_convert_out):
8682
8683         * sysdep.c:
8684         * sysdep.c (xemacs_stat):
8685         renamed.
8686
8687         * sysdep.c (mkdir):
8688         * sysdep.c (rmdir):
8689         but keep original stat() here because we provide encapsulation
8690         around these funs.
8691
8692         * sysfile.h:
8693         * sysfile.h (fstat):
8694         remove stat garbage.
8695
8696         * syswindows.h:
8697         fix X/MSW conflict.
8698         don't include tchar.h.  it's inappropriate because it makes
8699         compile-time distinctions when we want runtime distinctions.
8700         (we provide our own tchar replacements)
8701
8702         * toolbar.c:
8703         use default object printer for toolbar-button.
8704
8705         * unexcw.c:
8706         make sure we don't encapsulate.
8707
8708         * window.c (vars_of_window):
8709         emphasize that temp-buffer-show-hook is obsolete.
8710
8711 2000-08-05  Martin Buchholz  <martin@xemacs.org>
8712
8713         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
8714         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
8715
8716         * events.c (Fevent_timestamp_lessp):
8717         Not 64-bit clean.  Use EMACS_INT, not int.
8718
8719 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
8720
8721         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
8722         unsigned int and changed the last enum to
8723         lrecord_type_last_built_in_type.
8724         (lrecord_implementations_table): changed prototype to know how
8725         long the array is supposed to be.
8726         (lrecord_type_count): new unsigned int to keep track of the
8727         current number of lisp lrecord types.
8728         (DEFINE_EXTERNAL_LRECORD):
8729         (DECLARE_EXTERNAL_LRECORD): Added these two for external
8730         dynamic-modules to declare new lisp types. They are the same
8731         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
8732         int for each new type, and increment lrecord_type_count by 1.
8733
8734         * alloc.c (lrecord_implementations_table): Changed to reference
8735         lrecord_type_last_built_in_type for the size of the array.
8736         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
8737
8738 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8739
8740         * glyphs.h (check_valid_item_list): Renamed from
8741         check_valid_item_list_1.
8742
8743 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
8744
8745         * select.c (Qselect_coerce): New.
8746         * select.c (Vselection_coercion_alist): New.
8747         * select.c (syms_of_select): Declare.
8748         * select.c (get-selection-internal): Use it.
8749         Use the new select-coerce functionality.
8750
8751         * select.c (select_coerce): New.
8752         * select.h (select_coerce): Declare.
8753         New function to coerce one type of data into another.
8754
8755 2000-08-03  Martin Buchholz  <martin@xemacs.org>
8756
8757         * callproc.c (Fcall_process_internal):
8758         (Fcall_process_internal):
8759         * process-unix.c (unix_create_process):
8760         Save and restore the value of errno, so that error messages are accurate.
8761
8762 2000-08-01  Martin Buchholz  <martin@xemacs.org>
8763
8764         * elhash.c (print_hash_table):
8765         Fix printing of hash tables to also use `key-and-value' instead of `t'.
8766         Prettify docstrings and indentation.
8767
8768 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8769
8770         * window.c (Fwindow_pixel_edges): Subtract frame border and
8771         gutter size.
8772
8773 2000-07-31  Andy Piper  <andy@xemacs.org>
8774
8775         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
8776         will acknowledge the change.
8777
8778         * glyphs.h: declare tab_control_order_only_changed.
8779
8780         * glyphs-x.c (x_tab_control_redisplay): use
8781         tab_control_order_only_changed.
8782
8783         * glyphs-widget.c (tab_control_order_only_changed): new function.
8784
8785         * glyphs-msw.c (mswindows_tab_control_redisplay): use
8786         tab_control_order_only_changed.
8787
8788         * gui.c (gui_item_equal_sans_selected): new function.
8789         (gui_item_equal): use it.
8790
8791         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
8792         :properties in favor of :items..
8793
8794         * glyphs-widget.c (check_valid_item_list): rename from
8795         check_valid_item_list_1.
8796         (check_valid_item_list_1): renamed.
8797         (combo_box_validate): deprecate :properties in favor of :items.
8798         (widget_instantiate): ditto.
8799         (tab_control_update): ditto.
8800         (image_instantiator_combo_box): ditto.
8801         (image_instantiator_tree_view): ditto.
8802         (image_instantiator_tab_control): ditto.
8803         (layout_post_instantiate): remove dead code.
8804
8805         * print.c (debug_print_no_newline): only write to debugger if in
8806         WIN32_NATIVE.
8807
8808         * elhash.c (Fmake_hash_table): update doc string.
8809
8810         * event-msw.c (mswindows_wnd_proc): don't allow processing of
8811         messages whilst in GC. This at least stops XEmacs crashing but has
8812         the potential for wierd behaviour.
8813
8814 2000-07-31  Martin Buchholz  <martin@xemacs.org>
8815
8816         * config.h.in:
8817         Make existence of s&m files optional.
8818
8819         * s/bsd386.h: Remove HAVE_GETLOADAVG.
8820         * s/freebsd.h: Remove HAVE_GETLOADAVG.
8821         * s/gnu.h: Remove HAVE_GETLOADAVG.
8822         * s/netbsd.h: Remove HAVE_GETLOADAVG.
8823         * s/sol2.h: Remove HAVE_GETLOADAVG.
8824         * lisp.h: Remove getloadavg() declaration.
8825         * fns.c:
8826         Include <sys/loadavg.h> if available.
8827         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
8828         * config.h.in:  Group together getloadavg()-related macros.
8829         Use only configure-time tests to detect getloadavg().
8830
8831 2000-07-30  Martin Buchholz  <martin@xemacs.org>
8832
8833         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
8834
8835 2000-07-25  Andy Piper  <andy@xemacs.org>
8836
8837         * syswindows.h: add tchar.h for native builds.
8838
8839         * frame.c (syms_of_frame): remove set-glyph-image.
8840
8841         * general-slots.h: add Qset_glyph_image.
8842
8843         * glyphs-widget.c (layout_update): add domain arg to
8844         set-glyph-image.
8845         (syms_of_glyphs_widget): remove set-glyph-image.
8846
8847 2000-07-23  Ben Wing  <ben@xemacs.org>
8848
8849         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
8850         Vpopup_frame_list.
8851
8852 2000-07-22  Andy Piper  <andy@xemacs.org>
8853
8854         * symsinit.h: add syms_of_win32().
8855
8856         * gui-msw.c (syms_of_gui_mswindows): remove
8857         Fmswindows_shell_execute.
8858         (Fmswindows_shell_execute): moved to win32.c.
8859
8860         * emacs.c (main_1): add syms_of_win32 ().
8861
8862         * win32.c (init_potentially_nonexistent_functions): rewrite in
8863         compiler-friendly terms.
8864         (Fmswindows_shell_execute): move here from gui-msw.c.
8865         (syms_of_win32): new.
8866
8867         * device-msw.c (Fmswindows_printer_list): clean up args to
8868         EnumPrinters.
8869         Don't include tchar under cygwin or mingw.
8870         (msprinter_default_printer): make cygwin-friendly.
8871
8872 2000-07-21  Andy Piper  <andy@xemacs.org>
8873
8874         * glyphs-widget.c (image_instantiator_tree_view): use tab
8875         control's update function.
8876         (layout_property): new function. Retrieve items.
8877
8878         * glyphs-msw.c (mswindows_tree_view_redisplay): new
8879         function. Re-populate the tree view from the pending items.
8880
8881         * glyphs.c (instantiate_image_instantiator): Make sure the domain
8882         is designated the parent if the domain is an image instance. This
8883         is needed so that dirtiness can be cascade up the hierarchy and
8884         thus for layout children to be redisplayed correctly.
8885         (allocate_image_instance): rename glyph -> parent.
8886
8887         * redisplay.h: change redisplay_output_layout signature.
8888
8889         * redisplay-msw.c (mswindows_output_display_block): use domain
8890         arg.
8891
8892         * redisplay-x.c (x_output_display_block): use domain arg.
8893
8894 2000-07-10  Andy Piper  <andy@xemacs.org>
8895
8896         * window.c (Fset_window_configuration): add comment.
8897
8898         * redisplay-output.c (compare_runes):
8899         (redisplay_output_subwindow): redisplay rather than update subwindow.
8900         (redisplay_output_layout): ditto.
8901
8902         * redisplay-msw.c (mswindows_frame_output_end):
8903         (mswindows_frame_output_end): make defer window pos optional.
8904
8905         * lisp.h: add Flast.
8906
8907         * glyphs.h (struct image_instantiator_methods): add dest_mask top
8908         normalize method. Change update method to be for changed
8909         instantiators. Add redisplay method. Change signature of layout
8910         method.
8911         (struct Lisp_Image_Instance): add instantiator.
8912         (IMAGE_INSTANCE_INSTANTIATOR): new.
8913         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
8914         (XIMAGE_INSTANCE_INSTANTIATOR): new.
8915         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
8916
8917         * glyphs.c:
8918         (find_instantiator_differences): new function.
8919         (Fset_instantiator_property): new convenience function.
8920         (check_image_instance_structure): strictly check for vector
8921         instantiators.
8922         (normalize_image_instantiator): make non-static.
8923         (instantiate_image_instantiator): pass on dest_mask and use new
8924         signatures for image_instance_layout and friends.
8925         (mark_image_instance): mark the instantiator. Mark the subwindow
8926         face not the widget face.
8927         (image_instance_equal): add instantiator.
8928         (image_instance_hash): ditto.
8929         (allocate_image_instance): ditto.
8930         (Fset_image_instance_property): removed.
8931         (Fimage_instance_file_name): ditto.
8932         (Fcolorize_image_instance): ditto.
8933         (image_instance_layout): add offsets to be set.
8934         (update_image_instance): new function. update an image instance
8935         from its changed instantiator.
8936         (inherit_normalize): add dest_mask.
8937         (xbm_normalize): ditto.
8938         (xface_normalize): ditto.
8939         (xpm_normalize): ditto.
8940         (text_update): set_property -> update.
8941         (image_instantiate): use the glyph identity as a hash key, not the
8942         instantiator.
8943         (glyph_width): use new image_instance_layout signature.
8944         (glyph_ascent): ditto.
8945         (glyph_descent): ditto.
8946         (glyph_height): ditto.
8947         (glyph_query_geometry): ressurrect.
8948         (glyph_layout): ditto.
8949         (redisplay_subwindow): update -> redisplay.
8950         (syms_of_glyphs): add Fset_instantiator_property.
8951         (image_instantiator_format_create): set_property -> update.
8952
8953         * glyphs-x.c:
8954         (autodetect_normalize): add dest_maks to signature.
8955         (x_redisplay_subwindow): update -> redisplay.
8956         (x_redisplay_widget): ditto.
8957         (x_button_redisplay): ditto.
8958         (x_progress_gauge_redisplay): ditto.
8959         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
8960         stacking order.
8961         (console_type_create_glyphs_x): update -> redisplay.
8962         (image_instantiator_format_create_glyphs_x): ditto.
8963
8964         * glyphs-widget.c:
8965         (check_valid_instantiator): disallow glyphs in the instantiator,
8966         they must now be vectors.
8967         (check_valid_instantiator_list): ditto.
8968         (glyph_instantiator_to_glyph): use internal symbol rather than
8969         intern.
8970         (widget_update): renamed from widget_set_property. Call cascaded
8971         update methods.
8972         (redisplay_widget): renamed from update_widget.
8973         (widget_layout): image_instance_layout now takes position as well
8974         as size.
8975         (widget_normalize): ditto.
8976         (widget_instantiate): ditto.
8977         (tab_control_query_geometry) ditto.:
8978         (tab_control_update): renamed from tab_control_set_property.
8979         (progress_gauge_update): set_property -> update.
8980         (layout_normalize): rewrite so that child instantiators are
8981         normalized also.
8982         (layout_update): new function. Create glyphs from the normalized
8983         children and cope with any other layout keywords. We do not
8984         instantiate children here that will be take care of by
8985         redisplay_output_layout.
8986         (layout_instantiate): call layout_update and not much else.
8987         (layout_post_instantiate): not sure whether this is needed
8988         anymore.
8989         (layout_query_geometry): query glyph geometry rather than
8990         image_instance geometry.
8991         (layout_layout): set offsets from pass in parameters. Use glyph
8992         geometry and layout functions rather than image instance ones.
8993         (native_layout_layout): ditto.
8994         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
8995         (image_instantiator_widget): set_property -> update.
8996         (image_instantiator_buttons): ditto.
8997         (image_instantiator_progress_guage): ditto.
8998         (image_instantiator_tab_control): ditto.
8999         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9000         (image_instantiator_layout): add update method.
9001
9002         * glyphs-msw.c (bmp_normalize):
9003         (mswindows_resource_normalize): add dest_mask so that it can be
9004         proprogated by layout_normalize.
9005         (begin_defer_window_pos): make optional because it may not be the
9006         right thing to do and it introduces differences with X.
9007         (mswindows_unmap_subwindow): ditto.
9008         (mswindows_map_subwindow): ditto.
9009         (mswindows_redisplay_subwindow): renamed from
9010         mswindows_update_subwindow.
9011         (mswindows_redisplay_widget): ditto.
9012         (mswindows_button_redisplay): renamed from
9013         mswindows_button_update. Update is now what the instantiation
9014         function does for a changed instantiator.
9015         (mswindows_progress_gauge_instantiate): set the progress value
9016         here if appropriate.
9017         (mswindows_tab_control_redisplay): cope with re-ordering of the
9018         members of the tab widget by simply selecting the new top
9019         widget. This makes things appear ok if you click on a tab.
9020         (mswindows_combo_box_instantiate): image_instance_layout now takes
9021         position as well as size.
9022         (mswindows_progress_gauge_redisplay): renamed from
9023         mswindows_progress_gauge_update.
9024         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9025         (image_instantiator_format_create_glyphs_mswindows): ditto.
9026
9027         * glyphs-eimage.c (jpeg_normalize):
9028         (gif_normalize):
9029         (png_normalize):
9030         (tiff_normalize): add dest_mask so that it can be proprogated by
9031         layout_normalize.
9032
9033         * elhash.c:
9034         (print_hash_table):
9035         (hash_table_weakness_validate):
9036         (decode_hash_table_weakness):
9037         (Fhash_table_weakness):
9038         (Fhash_table_type):
9039         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9040
9041         * console.h (struct console_methods): move update_* to
9042         redisplay_*.
9043
9044 2000-07-20  Ben Wing  <ben@xemacs.org>
9045
9046         * *.[ch] (XSETOBJ): remove unused middle argument.
9047         lisp-disunion.h: correct wrap_object() to one argument.
9048
9049 2000-07-15  Ben Wing  <ben@xemacs.org>
9050
9051         * s/cygwin32.h:
9052         * s/cygwin32.h (CYGWIN_CONV_PATH):
9053         Add missing logb prototype for v1.1.
9054         Use post-b20 names and alias to pre-b20 names when pre-b20.
9055
9056         * s/windowsnt.h: [5].
9057
9058 2000-07-15  Ben Wing  <ben@xemacs.org>
9059
9060         * Makefile.in.in (x_objs):
9061         * Makefile.in.in (sheap_objs):
9062         * Makefile.in.in (objs):
9063         added win32.o, cosmetic cleanups.
9064
9065         * alloc.c (Fmake_byte_code):
9066         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9067         etc. macros which declare their own args now.
9068
9069         * alloc.c (syms_of_alloc):
9070         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9071
9072         * buffer.c:
9073         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9074
9075         * buffer.c (Fget_file_buffer):
9076         Fixed GCPRO problem.
9077
9078         * buffer.c (get_truename_buffer):
9079         Fixed comment about GC checking.
9080
9081         * buffer.c (syms_of_buffer):
9082         Undeclared those dedicated frame funs.
9083         [2].
9084
9085         * buffer.h:
9086         Define convenience macros for internal/external conversions.
9087         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9088         and Qenvironment_variable_encoding for cleaner code.
9089
9090         * bufslots.h:
9091         Remove dedicated-frame; in lisp.
9092
9093         * bytecode.c (funcall_compiled_function):
9094         [1].
9095
9096         * bytecode.c (syms_of_bytecode):
9097         [2].
9098
9099         * console-msw.c:
9100         * console-msw.c (mswindows_show_console): Rewrote.
9101
9102         * console-msw.c (Fmswindows_debugging_output): New.
9103         Sends to OutputDebugString (special MSWin debugger interface).
9104
9105         * console-msw.c (Fmswindows_message_box):
9106         Fixed stupid bugs so it works when called from kill-emacs.
9107
9108         * console-msw.c (syms_of_console_mswindows):
9109         Declare Fmswindows_debugging_output.
9110
9111         * console-msw.h:
9112         New MSWin prototypes.
9113
9114         * console-msw.h (struct mswindows_frame):
9115         New entry last-click-mods for improved button-modifier support.
9116
9117         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9118         New struct entry `popup' with corresponding accessor.
9119
9120         * console-x.c:
9121         * console-x.c (split_up_display_spec):
9122         * console-x.c (get_display_arg_connection):
9123         * console-x.c (x_semi_canonicalize_console_connection):
9124         * console-x.c (x_canonicalize_device_connection):
9125         [[[6]]]: Change char to more specific type.
9126         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9127
9128         * console-x.c (x_semi_canonicalize_console_connection):
9129         * console-x.c (x_canonicalize_device_connection):
9130         [[[9]]]: Fix up error signalling to use new structured error system.
9131
9132         * console-x.h:
9133         [[[4]]]: Define codesys aliases:
9134         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9135         Qx_color_name_encoding, Qx_display_name_encoding.
9136
9137         * console.h (struct console_methods):
9138         New method make_dialog_box_internal supersedes older
9139         popup_dialog_box method.
9140
9141         * data.c:
9142         Define many new errors, part of new structured errors.
9143
9144         * data.c (init_errors_once_early):
9145         * data.c (syms_of_data):
9146         [2].
9147
9148         * device-msw.c (mswindows_init_device):
9149         [[[5]]]: Cleanup to support NT 3.51.
9150
9151         * device-msw.c (decode_devmode): Cleanup.
9152
9153         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9154         * device-msw.c (mswindows_handle_print_dialog_box):
9155         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9156         * device-msw.c (syms_of_device_mswindows):
9157         Delete the dialog box primitives recently introduced by Kirill and
9158         instead interface to general dialog box interface.
9159
9160         * device-x.c:
9161         * device-x.c (compute_x_app_name):
9162         * device-x.c (x_init_device):
9163         * device-x.c (Fx_valid_keysym_name_p):
9164         * device-x.c (Fx_set_font_path):
9165         [6].
9166         [7].
9167
9168         * device.h (wrap_device): New.
9169         First of its kind; meant to replace XSETDEVICE.
9170
9171         * dialog-msw.c: Many file-dialog symbols.
9172
9173         * dialog-msw.c (mswindows_register_popup_frame): New.
9174         * dialog-msw.c (mswindows_is_dialog_msg): New.
9175         For supporting kbd traversal in dialog boxes.
9176
9177         * dialog-msw.c (dialog_proc):
9178         Support hitting ESC in dialogs.
9179
9180         * dialog-msw.c (struct):
9181         Common dialog box errors.
9182
9183         * dialog-msw.c (handle_file_dialog_box): New.
9184         Add file dialog code.
9185
9186         * dialog-msw.c (handle_question_dialog_box):
9187         Redo existing code to support new question dialog syntax.
9188
9189         * dialog-msw.c (console_type_create_dialog_mswindows):
9190         We support new dialog console method.
9191
9192         * dialog-msw.c (syms_of_dialog_mswindows):
9193         * dialog-msw.c (vars_of_dialog_mswindows):
9194         New file dialog symbols, vars.
9195
9196         * dialog-x.c:
9197         * dialog-x.c (maybe_run_dbox_text_callback):
9198         * dialog-x.c (dbox_descriptor_to_widget_value):
9199         * dialog-x.c (x_make_dialog_box_internal):
9200         * dialog-x.c (console_type_create_dialog_x):
9201         Mule-ize entire file.
9202         Redo to support question dialog syntax.
9203         [6].
9204
9205         * dialog.c:
9206         * dialog.c (Fmake_dialog_box_internal):
9207         * dialog.c (syms_of_dialog):
9208         Kill old popup-dialog-box, replace with new primitive.
9209         Just call device method or signal error.
9210
9211         * eldap.c (Fldap_open):
9212         * eldap.c (Fldap_search_basic):
9213         * eldap.c (Fldap_add):
9214         * eldap.c (Fldap_modify):
9215         [1].
9216         [7].
9217
9218         * emacs.c:
9219         * emacs.c (make_arg_list_1):
9220         * emacs.c (make_arg_list):
9221         Mule-ize call to dll_init().
9222         [6].
9223         [8].
9224
9225         * emacs.c (make_argc_argv):
9226         * emacs.c (free_argc_argv):
9227         * emacs.c (init_cmdargs):
9228         * emacs.c (main_1):
9229         * emacs.c (Fkill_emacs):
9230         * emacs.c (Fdump_emacs):
9231         Update comments about what can be used in syms_* etc.
9232         Call init_win32() when necessary.
9233         Fix up MS Win dialog box in kill-buffer to actually work right.
9234         [7].
9235
9236         * eval.c:
9237         * eval.c (For):
9238         * eval.c (Fand):
9239         * eval.c (Fprogn):
9240         * eval.c (Fprog1):
9241         * eval.c (Fprog2):
9242         * eval.c (FletX):
9243         * eval.c (Flet):
9244         * eval.c (condition_case_3):
9245         * eval.c (Feval):
9246         * eval.c (function_argcount):
9247         * eval.c (funcall_lambda):
9248         [1].
9249
9250         * eval.c (type_error): New.
9251         * eval.c (maybe_type_error): New.
9252         * eval.c (continuable_type_error): New.
9253         * eval.c (maybe_continuable_type_error): New.
9254         * eval.c (type_error_with_frob): New.
9255         * eval.c (maybe_type_error_with_frob): New.
9256         * eval.c (continuable_type_error_with_frob): New.
9257         * eval.c (maybe_continuable_type_error_with_frob): New.
9258         New functions for use with structured errors.
9259
9260         * event-Xt.c:
9261         * event-Xt.c (x_event_to_emacs_event):
9262         Buttons are now modifiers too.
9263
9264         * event-Xt.c (emacs_Xt_current_event_timestamp):
9265         Implement new event method.
9266         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9267
9268         * event-msw.c:
9269         * event-msw.c (ntpipe_shove_writer): [5].
9270         * event-msw.c (mswindows_enqueue_mouse_button_event):
9271         * event-msw.c (mswindows_drain_windows_queue):
9272         * event-msw.c (mswindows_wnd_proc): [7].
9273         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9274         * event-msw.c (mswindows_modifier_state):
9275         Throughout: support new button modifiers.
9276
9277         * event-msw.c (emacs_mswindows_current_event_timestamp):
9278         Implement new event method.
9279         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9280
9281         * event-stream.c:
9282         * event-stream.c (event_stream_current_event_timestamp): New.
9283         * event-stream.c (maybe_kbd_translate): New functionality.
9284         * event-stream.c (vars_of_event_stream):
9285         Document new kbd-translate-table functionality.
9286
9287         * event-stream.c (Fcurrent_event_timestamp): New.
9288         New primitive for use in fabricated events.
9289         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9290
9291         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9292
9293         * events.c:
9294         * events.c (Fmake_event):
9295         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9296         [1].
9297         [9].
9298
9299         * events.c (format_event_object): fix gcc warnings.
9300
9301         * events.c (Fevent_timestamp): Document new primitives.
9302
9303         * events.c (TIMESTAMP_HALFSPACE): New.
9304
9305         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9306         comparing timestamps correctly (half-space algorithm).
9307
9308         * events.c (Fevent_modifier_bits): Doc fix.
9309
9310         * events.c (Fevent_modifiers): Major doc addition.
9311         * events.c (event_x_y_pixel_internal): Typo fix.
9312         * events.c (syms_of_events): Declare new primitives.
9313
9314         * events.h:
9315         Update long comment for button modifiers, timestamps.
9316
9317         * events.h (struct event_stream):
9318         New current_event_timestamp method.
9319
9320         * extents.c:
9321         * extents.c (extent_in_region_p):
9322         * extents.c (decode_extent):
9323         * extents.c (Fset_extent_parent):
9324         * extents.c (decode_map_extents_flags):
9325         Fix gcc warnings.
9326         [9].
9327
9328         * extents.c (struct extent_at_arg):
9329         * extents.c (decode_extent_at_flag):
9330         * extents.c (extent_at_mapper):
9331         * extents.c (extent_at_bytind):
9332         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9333         * extents.c (Fextents_at): New primitive. [9].
9334         * extents.c (symbol_to_glyph_layout): [9].
9335         Support new primitive `extents-at'.
9336
9337
9338         * extents.c (get_text_property_bytind):
9339         extent_at_bytind has another arg.
9340         [9].
9341
9342         * extents.c (syms_of_extents): New primitive.
9343
9344         * file-coding.c (Fmake_coding_system): [1].
9345         * file-coding.c (subsidiary_coding_system): fix gcc warning
9346         * file-coding.c (syms_of_file_coding): [2].
9347
9348         * fileio.c (Fexpand_file_name):
9349         * fileio.c (Fsysnetunam):
9350         * fileio.c (Ffile_exists_p):
9351         * fileio.c (Ffile_executable_p):
9352         * fileio.c (Fverify_visited_file_modtime):
9353         Clean up GCPROing.
9354
9355         * fileio.c (syms_of_fileio): [2].
9356
9357         * filelock.c (lock_file_1):
9358         * filelock.c (current_lock_owner):
9359         * filelock.c (lock_if_free):
9360         * filelock.c (lock_file):
9361         * filelock.c (unlock_file):
9362         Clean up GCPROing.
9363
9364         * fns.c (concat): Fix gcc warning.
9365
9366         * fns.c (Fmember):
9367         * fns.c (Fold_member):
9368         * fns.c (Fmemq):
9369         * fns.c (Fold_memq):
9370         * fns.c (memq_no_quit):
9371         * fns.c (Fassoc):
9372         * fns.c (Fold_assoc):
9373         * fns.c (Fassq):
9374         * fns.c (Fold_assq):
9375         * fns.c (assq_no_quit):
9376         * fns.c (Frassoc):
9377         * fns.c (Fold_rassoc):
9378         * fns.c (Frassq):
9379         * fns.c (Fold_rassq):
9380         * fns.c (rassq_no_quit):
9381         * fns.c (Fdelete):
9382         * fns.c (Fold_delete):
9383         * fns.c (Fdelq):
9384         * fns.c (Fold_delq):
9385         * fns.c (delq_no_quit):
9386         * fns.c (Fremassoc):
9387         * fns.c (Fremassq):
9388         * fns.c (remassq_no_quit):
9389         * fns.c (Fremrassoc):
9390         * fns.c (Fremrassq):
9391         * fns.c (remrassq_no_quit):
9392         * fns.c (Freverse):
9393         * fns.c (mapcar1):
9394         [1].
9395
9396         * frame-msw.c (mswindows_init_frame_1):
9397         * frame-msw.c (mswindows_delete_frame):
9398         Register popups with dialog code so keyboard traversing works.
9399
9400         * frame-tty.c (tty_raise_frame_no_select): [1].
9401
9402         * frame-x.c:
9403         * frame-x.c (x_set_frame_text_value):
9404         * frame-x.c (x_set_frame_properties):
9405         * frame-x.c (x_create_widgets):
9406         [7].
9407
9408         * frame.c:
9409         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9410
9411         * frame.h (wrap_frame): New.
9412         Macro like wrap_device.
9413
9414         * general.c:
9415         * general.c (SYMBOL):
9416         * general.c (syms_of_general):
9417         Major reorg.  This is now just a wrapper and symbols themselves
9418         are listed in general-slots.h.
9419
9420         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9421         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9422
9423         * glyphs-msw.c (mswindows_native_layout_instantiate):
9424         Add DS_CONTROL so keyboard traversal will work.
9425
9426         * glyphs-widget.c:
9427         * glyphs-widget.c (syms_of_glyphs_widget):
9428         Move some symbols to general-slots.h.
9429
9430         * glyphs-x.c:
9431         * glyphs-x.c (xbm_instantiate_1):
9432         * glyphs-x.c (x_xbm_instantiate):
9433         * glyphs-x.c (x_xface_instantiate):
9434         * glyphs-x.c (autodetect_instantiate):
9435         * glyphs-x.c (cursor_font_instantiate):
9436         * glyphs-x.c (x_update_widget):
9437         * glyphs-x.c (x_widget_instantiate):
9438         * glyphs.c (bitmap_to_lisp_data):
9439         * glyphs.c (pixmap_to_lisp_data):
9440         [7].
9441
9442         * glyphs.c (syms_of_glyphs):
9443         [2].
9444
9445         * gui-x.c:
9446         * gui-x.c (print_widget_value):
9447         * gui-x.c (menu_separator_style_and_to_external):
9448         * gui-x.c (add_accel_and_to_external):
9449         * gui-x.c (button_item_to_widget_value):
9450         * gui-x.c (gui_items_to_widget_values_1):
9451         * gui-x.c (gui_items_to_widget_values):
9452         * gui-x.c (syms_of_gui_x):
9453         * gui-x.c (vars_of_gui_x):
9454         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
9455         [9].
9456
9457         * gui-x.h:
9458         Muleize, prototype changes matching gui-x.c.
9459
9460         * gui.c:
9461         * gui.c (separator_string_p):
9462         * gui.c (gui_item_add_keyval_pair):
9463         * gui.c (make_gui_item_from_keywords_internal):
9464         * gui.c (signal_too_long_error):
9465         * gui.c (parse_gui_item_tree_item):
9466         * gui.c (syms_of_gui):
9467         * gui.c (vars_of_gui):
9468         * gui.h:
9469         menu-no-selection-hook moved here (used by MSWin).
9470         Move some symbols to general-slots.h.
9471         [6].
9472         [9].
9473
9474         * insdel.c (get_buffer_pos_char):
9475         * insdel.c (get_buffer_range_char):
9476         Add GC comments.
9477
9478         * keymap.c (keymap_lookup_directly):
9479         * keymap.c (keymap_store):
9480         * keymap.c (ensure_meta_prefix_char_keymapp):
9481         * keymap.c (describe_map):
9482         * keymap.h:
9483         Support new button modifiers.
9484
9485         * lisp-disunion.h (wrap_object):
9486         * lisp-disunion.h (XSETOBJ):
9487         Rename make_obj to wrap_object.
9488
9489         * lisp-union.h:
9490         * lisp-union.h (make_int):
9491         * lisp-union.h (make_char):
9492         Support wrap_object.
9493
9494         * lisp.h:
9495         * lisp.h (LIST_LOOP):
9496         * lisp.h (EXTERNAL_LIST_LOOP):
9497         * lisp.h (LIST_LOOP_2):
9498         * lisp.h (EXTERNAL_LIST_LOOP_1):
9499         * lisp.h (EXTERNAL_LIST_LOOP_2):
9500         * lisp.h (EXTERNAL_LIST_LOOP_3):
9501         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9502         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9503         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9504         * lisp.h (EXTERNAL_ALIST_LOOP_5):
9505         * lisp.h (EXTERNAL_ALIST_LOOP_6):
9506         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9507         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9508         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9509         * lisp.h (struct Lisp_Symbol):
9510         * lisp.h (maybe_continuable_error_with_frob):
9511         Fix up section comments.
9512         Add new types for char to indicate usage.
9513         Delete symbols auto-generated from general-slots.h.
9514         Add prototypes for structured error functions.
9515         Add long comments describing looping macros and change interface
9516         so that lvalues are automatically declared.
9517         Add NO_DECLARE macro in case callers want to declare lvalues
9518         themselves.
9519
9520         * lread.c (read_syntax_error):
9521         * lread.c (continuable_read_syntax_error):
9522         * lread.c (read_structure):
9523         * lread.c (sequence_reader):
9524         * lread.c (read_list_conser):
9525         * lread.c (read_compiled_function):
9526         Rename syntax_error and continuable_syntax_error to avoid clash
9527         with same-named structured error functions.
9528
9529         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9530         * menubar-msw.c (populate_menu_add_item):
9531         * menubar-msw.c (populate_or_checksum_helper):
9532         [5].
9533         [9].
9534
9535         * menubar-x.c:
9536         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9537         Mule-ize whole file.
9538
9539         * menubar.c (Fnormalize_menu_item_name): Add optimization.
9540
9541         * mule-charset.c (Fmake_charset):
9542         * mule-wnnfns.c (Fwnn_set_param):
9543         [1].
9544
9545         * ntproc.c (create_child):
9546         * ntproc.c (Fwin32_set_current_locale):
9547         Add comments portending doom.
9548
9549         * objects-msw.c:
9550         * objects-msw.c (old_font_enum_callback_2):
9551         * objects-msw.c (font_enum_callback_1):
9552         * objects-msw.c (mswindows_enumerate_fonts):
9553         [5].
9554
9555         * objects-x.c:
9556         * objects-x.c (allocate_nearest_color):
9557         * objects-x.c (x_parse_nearest_color):
9558         * objects-x.c (x_initialize_color_instance):
9559         * objects-x.c (x_print_color_instance):
9560         * objects-x.c (x_finalize_color_instance):
9561         * objects-x.c (x_valid_color_name_p):
9562         * objects-x.c (x_initialize_font_instance):
9563         * objects-x.c (x_print_font_instance):
9564         * objects-x.c (valid_x_font_name_p):
9565         * objects-x.c (truename_via_FONT_prop):
9566         * objects-x.c (truename_via_random_props):
9567         * objects-x.c (truename_via_XListFonts):
9568         * objects-x.c (x_font_truename):
9569         * objects-x.c (x_font_instance_truename):
9570         * objects-x.c (x_font_instance_properties):
9571         * objects-x.c (x_list_fonts):
9572         * objects-x.c (x_find_charset_font):
9573         Mule-ize entire file.
9574         [7].
9575
9576         * objects-x.h:
9577         Mule-verify.
9578
9579         * print.c:
9580         * print.c (std_handle_out_external):
9581         * print.c (debug_print_no_newline):
9582         * print.c (syms_of_print):
9583         Output to all debugger kinds in debug-print.
9584         Fix console-output code under MSWin to actually work.
9585
9586         * process-nt.c (send_signal):
9587         * process-nt.c (nt_create_process):
9588         Use newer Unicode macros.
9589
9590         * process-unix.c (unix_create_process):
9591         * process-unix.c (unix_canonicalize_host_name):
9592         * process-unix.c (unix_open_network_stream):
9593         [7].
9594
9595         * scrollbar-x.c:
9596         Mule-verify.
9597
9598         * search.c (syms_of_search):
9599         [2].
9600
9601         * select-msw.c (mswindows_destroy_selection):
9602         Use LIST_LOOP_2.
9603
9604         * select-x.c (symbol_to_x_atom):
9605         [7].
9606
9607         * select.c (syms_of_select):
9608         [2].
9609
9610         * sound.c (Fplay_sound_file):
9611         [7].
9612
9613         * specifier.c:
9614         * specifier.c (decode_specifier_type):
9615         * specifier.c (Fvalid_specifier_locale_type_p):
9616         * specifier.c (check_valid_locale_or_locale_type):
9617         * specifier.c (decode_locale):
9618         * specifier.c (decode_locale_type):
9619         * specifier.c (decode_locale_list):
9620         * specifier.c (check_valid_domain):
9621         * specifier.c (decode_specifier_tag_set):
9622         * specifier.c (Fcanonicalize_tag_set):
9623         * specifier.c (Fdefine_specifier_tag):
9624         * specifier.c (Fspecifier_tag_predicate):
9625         * specifier.c (check_valid_inst_list):
9626         * specifier.c (check_valid_spec_list):
9627         * specifier.c (decode_how_to_add_specification):
9628         * specifier.c (check_modifiable_specifier):
9629         * specifier.c (specifier_add_spec):
9630         * specifier.c (boolean_validate):
9631         * specifier.c (display_table_validate):
9632         [9].
9633
9634         * specifier.c (syms_of_specifier):
9635         Move some symbols to general-slots.h.
9636         [2].
9637
9638         * symbols.c:
9639         * symbols.c (Fmapatoms):
9640         * symbols.c (Fapropos_internal):
9641         Add GCPROs.
9642
9643         * symbols.c (set_default_buffer_slot_variable):
9644         * symbols.c (set_default_console_slot_variable):
9645         [1].
9646
9647         * symbols.c (defsymbol_massage_name_1):
9648         * symbols.c (defkeyword_massage_name):
9649         * symbols.c (deferror_1):
9650         * symbols.c (deferror):
9651         * symbols.c (deferror_massage_name_and_message):
9652         * symeval.h:
9653         * symeval.h (DEFSYMBOL):
9654         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
9655
9656         * symbols.c (syms_of_symbols):
9657         [2].
9658
9659         * symsinit.h:
9660         * symsinit.h (init_win32): New.
9661         Also new is syms_of_dialog_mswindows.
9662
9663         * syswindows.h:
9664         Add new Unicode macros, missing Cygwin wide-char functions,
9665         convenience conversion macros for Qmswindows_tstr, macros for
9666         encapsulating required MSWin <-> Cygwin filename conversions,
9667         prototype for dynamically-extracted (not in NT 3.51) functions.
9668
9669         * toolbar-x.c:
9670         Mule-verify.
9671
9672         * tooltalk.c (Fadd_tooltalk_message_arg):
9673         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
9674         * tooltalk.c (Fadd_tooltalk_pattern_arg):
9675         [7].
9676
9677         * tooltalk.c (syms_of_tooltalk):
9678         [2].
9679
9680         * unexnt.c:
9681         * unexnt.c (unexec):
9682         Fix up headers, declaration of unexec() to be more standard.
9683
9684 2000-07-20  Martin Buchholz  <martin@xemacs.org>
9685
9686         * offix.h: Revert change to guard macros - they're used in offix.c!
9687
9688 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9689
9690         * lisp.h: Defsubred Fdelete.
9691
9692         * console-msw.h:  (msprinter_default_printer): Added.
9693
9694         * console-msw.c (msprinter_canonicalize_console_connection):
9695         (msprinter_canonicalize_device_connection): Added.
9696
9697         * device-msw.c (msprinter_default_printer):
9698         (Fmswingows_get_default_printer):
9699         (signal_enum_priner_error):
9700         (Fmswingows_printer_list): Added.
9701
9702 2000-07-19  Martin Buchholz <martin@xemacs.org>
9703
9704         * XEmacs 21.2.35 is released.
9705
9706 2000-07-19  Martin Buchholz  <martin@xemacs.org>
9707
9708         * select-x.c (x_handle_selection_request):
9709         Text selected in xemacs and pasted into xterm failed to appear.
9710         Spelling fixes and cosmetic changes.
9711
9712 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9713
9714         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
9715         XEmacs frame (fix for doubling chars in dialog boxes).
9716
9717 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9718
9719         * select.c (select_convert_in, select_convert_out):
9720         Don't call intern() every time.
9721
9722         * select.c (Qselect_convert_in, Qselect_convert_out): New.
9723         * select.c (vars_of_select): Initialise them.
9724
9725 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
9726
9727         * select.c (selection-coercible-types): New.
9728
9729         * select.c (own-selection-internal):
9730         * select.c (get-selection-internal):
9731         MULE bug fix - these should default to COMPOUND_TEXT and not
9732         STRING for MULE. I think.
9733
9734         * select.c (select_convert_out): Use selection-coercible-types
9735         to find types that we can attempt to perform coercions on.
9736
9737 2000-07-18  Martin Buchholz  <martin@xemacs.org>
9738
9739         * mule-wnnfns.c:
9740         * mule-canna.c:
9741         Add coding: cookie to identify encoding.
9742
9743         * mule-canna.c (CANNA_mode_keys): make static.
9744         Use proper prototypes, even for functions of no arguments.
9745         Remove external prototype for Fding().
9746
9747         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
9748
9749         * select.c (syms_of_select): Add missing DEFSUBR.
9750
9751 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
9752
9753         * select.c (get_selection_internal, own_selection_internal):
9754         Make the type default to STRING, rather than placing a nil type
9755         into Vselection_alist.
9756
9757 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9758
9759         * gpmevent.c (tty_selection_exists_p):
9760         * gpmevent.c (tty_own_selection):
9761         Updated parameter lists.
9762
9763 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
9764
9765         * select.h (selection-alist): Removed declaration.
9766
9767         * select.h (get_local_selection):
9768         * select.c (get_local_selection):
9769         Made static.
9770
9771         * select.h (convert_selection): Removed declaration.
9772         * select.c (convert_selection): Removed.
9773         This function belongs in Lisp.
9774
9775         * select.h (select_convert_in): Declare.
9776         * select.h (select_convert_out): Declare.
9777         * select.c (select_convert_in): New.
9778         * select.c (select_convert_out): New.
9779         New conversion functions for other files to call.
9780
9781         * select.h (select_notify_buffer_kill): Declare.
9782         * select.c (select_notify_buffer_kill): New.
9783         New functions that get called from kill-buffer.
9784
9785         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
9786         X-specific lisp code.
9787
9788         * select.h: Declare some of the lisp-visible functions for
9789         external use.
9790
9791         * select.c (clean_local_selection_data): Removed. This was
9792         a disgusting function, and previously should have been in
9793         select-x.c in any case. The functionality is now provided
9794         in select-convert-from-integer (select.el).
9795
9796         * select.c (available-selection-types): Fixed stupidity where
9797         INTEGER and ATOM got added twice. Also add STRING when we see an
9798         extent.
9799
9800         * select.c (get-selection-internal): Removed symbol stripping. No
9801         longer causes conversion when data comes from the internal cache.
9802
9803         * select.c (syms_of_select): Added new functions.
9804
9805         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
9806         error checking - previously this called abort!
9807
9808         * select-x.c (x_own_selection): Changed comment.
9809
9810         * select-x.c (x_handle_selection_request): Use select_convert_out.
9811         Don't mess with selection-alist; it's an internal variable of select.c.
9812
9813         * select-x.c (x_get_foreign_selection): Use select_convert_in.
9814
9815         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
9816         rather than messing with selection-alist.
9817
9818         * select-msw.c (mswindows_get_foreign_selection):
9819         Use TO_INTERNAL_FORMAT rather than hacking.
9820
9821 2000-07-14  Martin Buchholz  <martin@xemacs.org>
9822
9823         * process-unix.c (unix_open_multicast_group):
9824         (unix_open_multicast_group): Remove useless casts.
9825
9826 2000-07-13  Martin Buchholz  <martin@xemacs.org>
9827
9828         * sound.c (Fplay_sound): Fix `unused variable' warning.
9829
9830         * emacs.c (main): Use correct type for _environ on SCO5.
9831
9832 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
9833
9834         * console.h (own_selection_method):
9835         * console.h (selection_exists_p_method):
9836         * console.h (available_selection_types_method): New.
9837         * console.h (register_selection_data_type_method): New.
9838         * console.h (selection_data_type_name): New.
9839
9840         * console-msw.h (mswindows_destroy_selection): Declare it.  New
9841         function & alist to track GlobalAlloc()'d handles that need
9842         releasing when the clipboard data gets replaced or emptied.
9843
9844         * event-msw.c (mswindows_wnd_proc): Call it.
9845
9846         * lisp.h, general.c (Qappend): New symbol representing a
9847         `how-to-add' mode.
9848
9849         * select.c (own-selection-internal):
9850         * select.c (selection-exists-p):
9851         * select.c (available-selection-types): New.
9852         * select.c (register-selection-data-type): New.
9853         * select.c (selection-data-type-name): New.  New functions to deal
9854         with device-specific selection data formats.
9855         * select.c (selection-converter-out-alist): Renamed.
9856         * select.c (selection-converter-in-alist): New.
9857         * select.c (selection-appender-alist): New.  Added new alists.
9858         * select.c (syms_of_select, vars_of_select): Added new symbols &
9859         variables.
9860         * select.c (get_local_selection): Split.
9861         * select.c: Removed spurious type checking - selections may now be
9862         of any type, not just strings.
9863         * select.c (own-selection-internal):
9864
9865         * select.h, select.c (convert_selection): New. Created
9866         convert_selection() function based on get_local_selection().
9867         * select.h, select.c (QCF_*): New symbols representing mswindows
9868         clipboard formats.
9869         * select.h, select.c (Qreplace_all, Qreplace_existing): New
9870         symbols representing `how-to-add' modes.
9871
9872         * select-msw.c (x_sym_p): New.
9873         * select-msw.c (symbol_to_ms_cf): New.
9874         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
9875         symbols & clipboard formats. Can also handle string names.
9876         * select-msw.c (mswindows_own_selection):
9877         * select-msw.c (mswindows_selection_exists_p):
9878         Added `data-type' parameter. Use it.
9879         * select-msw.c (mswindows_available_selection_types): New.
9880         * select-msw.c (mswindows_register_selection_data_type): New.
9881         * select-msw.c (mswindows_selection_data_type_name): New.
9882         * select-msw.c (mswindows_own_selection):
9883         * select-msw.c (mswindows_get_foreign_selection):
9884         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
9885         * select-msw.c (console_create_select_mswindows): Added new methods.
9886         * select-msw.c (mswindows_destroy_selection): New.
9887         * select-msw.c (Vhandle_alist): New list.
9888         * select-msw.c (mswindows_own_selection):
9889
9890         * select-x.c (x_own_selection):
9891         * select-x.c (x_selection_exists_p):
9892         * select-x.c: Added some comments about maybe using new
9893         functionality.
9894         * select-x.c (x_own_selection):
9895
9896         * specifier.c: Remove definition of Qappend (now in general.c)
9897         * specifier.c (syms_of_specifier): Remove Qappend.
9898
9899 2000-07-12  Martin Buchholz  <martin@xemacs.org>
9900
9901         * config.h.in: Add socklen_t.
9902
9903         * s/decosf4-0.h: No special compiler flags needed or desired.
9904         In particular, undefine _BSD for DEC OSF 4.0.
9905
9906 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9907
9908         * redisplay-msw.c (msprinter_frame_output_end): Added.
9909         (console_type_create_redisplay_mswindows): Referred the above.
9910
9911         * frame.c (setup_frame_without_minibuffer): Do not create a
9912         default minibuffer frame on a printer device.
9913
9914         * frame-msw.c (apply_dc_geometry): Added.
9915         (msprinter_start_page):
9916         (msprinter_init_frame_3):
9917         (msprinter_eject_page): Use it.
9918
9919         * console-msw.h (struct msprinter_frame): Added pix_left and top,
9920         and removed residual duplex and orientation properties.
9921
9922 2000-07-11  Martin Buchholz  <martin@xemacs.org>
9923
9924         * eval.c (function_argcount): Work around a DEC CC compiler bug.
9925
9926         * unexalpha.c: Remove system prototypes from C sources!
9927
9928 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
9929
9930         * eval.c: Remove references to M-x edit-options in DEFUNs for
9931         `defvar' and `defconst'.
9932
9933 2000-07-09  Martin Buchholz  <martin@xemacs.org>
9934
9935         * config.h.in: Remove SMART_INCLUDE hackery.
9936
9937         PostgreSQL hacking:
9938         * config.h.in: Don't use SMART_INCLUDE.
9939
9940         * postgresql.h: Include libpq-fe.h here.  Fix typo.
9941         * inline.c: Simply #include "postgresql.h"
9942         * postgresql.c:
9943         - Don't use SMART_INCLUDE
9944         - Use simply "const".
9945         - Use standard doc string conventions.
9946         - Use correct type for result of PQstatus.
9947
9948 2000-07-09  Martin Buchholz  <martin@xemacs.org>
9949
9950         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
9951
9952         C++ compilation changes.
9953         * config.h.in (EXTERN_C): Define.
9954         * config.h.in (not): This is also a C++ keyword.
9955         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
9956         * cm.c: Use EXTERN_C.
9957         * redisplay-tty.c: Use EXTERN_C.
9958         * sysdep.c: Use EXTERN_C.  Remove Gould support.
9959
9960 2000-07-09  Martin Buchholz  <martin@xemacs.org>
9961
9962         * general.c: Remove duplicate definition for Qfunction.
9963
9964 2000-07-08  Ben Wing  <ben@xemacs.org>
9965
9966         * device-msw.c (msprinter_init_device):
9967         * device-msw.c (sync_printer_with_devmode):
9968         * device-msw.c (handle_devmode_changes):
9969         * device-msw.c (print_dialog_worker):
9970         * device-msw.c (Fmsprinter_apply_settings):
9971         * device-msw.c (hash_devmode):
9972         * device-msw.c (Fmsprinter_settings_despecialize):
9973         use Qmswindows_tstr, not Qctext.
9974
9975         * vm-limit.c (check_memory_limits):
9976         avoid infinite loop printing warning messages.
9977
9978 2000-07-05  Craig Lanning  <lanning@scra.org>
9979
9980         * Makefile.in.in: Add support for including the Windows resources
9981         when building with the cygwin and mingw targets.
9982
9983         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
9984         not set or not correct.
9985         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
9986         (init_initial_directory): Don't try to use $PWD on the
9987         WIN32_NATIVE target.
9988
9989         * s\cygwin32.h:
9990         [[Add -mwindows to eliminate console window.]] not required --ben
9991         (HAVE_NATIVE_SOUND): removed; now handled by configure.
9992         (MAIL_USE_POP): removed; now handled by configure.
9993
9994         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
9995         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
9996         (HAVE_NATIVE_SOUND): removed; now handled by configure.
9997         (MAIL_USE_POP): removed; now handled by configure.
9998         (ENCAPSULATE_STAT): from Dan Holmsand, added.
9999         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10000         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10001         constant string.
10002         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10003         up from <winsock.h> via systime.h.
10004         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10005         (getpagesize): from Dan Holmsand, added.
10006         Added #endif which was left dangling by Ben's mega patch; added
10007         comment to help prevent this in the future.
10008
10009         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10010
10011 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10012
10013         * console-msw.h (struct mswindows_device): Removed unnecessary
10014         cached device geometry values.
10015         Added update_tick and an accessor macro.
10016         (Lisp_Devmode): Added lrecord declaration.
10017         (struct msprinter_device): Contain devmode as a Lisp object.
10018         Added mswindows_get_selected_frame_hwnd();
10019
10020         * console.h (struct console_methods): Indentation nitpicking.
10021
10022         * device-msw.c (mswindows_init_device): Do not initialize geometry
10023         cache. Initialize update tick.
10024         (mswindows_device_system_metrics): Ask the device for its geometry.
10025         (global_free_2_maybe):
10026         (devmode_to_hglobal):
10027         (handle_printer_changes):
10028         (ensure_not_printing):
10029         (print_dialog_worker):
10030         (Fmsprinter_print_setup_dialog):
10031         (Fmsprinter_print_dialog):
10032         (plist_get_margin):
10033         (plist_set_margin):
10034         (Fmsprinter_page_setup_dialog): Added functions.
10035         (sync_printer_with_devmode):
10036         (handle_devmode_changes):
10037         (Fmsprinter_get_settings):
10038         (Fmsprinter_select_settings):
10039         (Fmsprinter_apply_settings):
10040         (allocate_devmode):
10041         (Fmsprinter_settings_copy):
10042         (Fmsprinter_settings_despecialize):
10043         (print_devmode):
10044         (finalize_devmode):
10045         (equal_devmode):
10046         (hash_devmode): Added functions
10047         (syms_of_device_mswindows): Init devmode lrecord class.
10048
10049         * device.h: Added an exfun for find-device.
10050
10051         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10052         geometry; although, recreate the device compatible DC.
10053
10054         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10055         (msprinter_init_frame_3):
10056         (msprinter_frame_property):
10057         (msprinter_internal_frame_property_p):
10058         (msprinter_frame_properties):
10059         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10060         print job properties (will move to device settings).
10061
10062         * lisp.h: Added symbols.
10063
10064         * general.c (syms_of_general): Declared them.
10065
10066         * hash.c (string_hash): Added.
10067
10068         * lrecord.h (lrecord_type): Added devmode lrecord type.
10069
10070 2000-07-02  Mike Sperber <mike@xemacs.org>
10071
10072         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10073         FreeBSD 4.0.
10074
10075 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10076
10077         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10078         integer.
10079
10080 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10081
10082         * data.c (Fstring_to_number): Don't recognize floating point if
10083         base is not 10.
10084
10085 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10086
10087         * glyphs-widget.c (tab_control_query_geometry):
10088         (widget_query_geometry):
10089         (button_query_geometry):
10090         * glyphs.c (text_query_geometry):
10091         Enforce type correctness.
10092
10093 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10094
10095         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10096         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10097
10098 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10099
10100         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10101         conflicts with gcc's fixincluded version of FOO.h.
10102
10103         * glyphs.h (image_instance_geometry): Remove trailing `,'
10104
10105 2000-06-08  Mike Alexander  <mta@arbortext.com>
10106
10107         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10108         (shove_thread): Don't write the same output twice
10109         (make_ntpipe_output_stream): Increase priority of shove thread
10110         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10111         chance to run
10112         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10113         it.
10114
10115 2000-06-12  Ben Wing  <ben@xemacs.org>
10116
10117         * s\mingw32.h (sigset):
10118         * s\windowsnt.h (sigset):
10119         rename msw_ to mswindows_ for consistency with general convention.
10120
10121 2000-06-12  Ben Wing  <ben@xemacs.org>
10122
10123         * console-msw.c:
10124         * console-msw.c (mswindows_get_console_hwnd):
10125         * console-msw.c (mswindows_ensure_console_allocated):
10126         * console-msw.c (mswindows_hide_console):
10127         * console-msw.c (mswindows_show_console):
10128         * console-msw.c (mswindows_ensure_console_buffered):
10129         * console-msw.c (mswindows_output_console_string):
10130         * console-msw.c (mswindows_windows9x_p):
10131         * console-msw.h:
10132         * device-msw.c (mswindows_get_workspace_coords):
10133         * device-msw.c (mswindows_device_system_metrics):
10134         * dialog-msw.c (mswindows_popup_dialog_box):
10135         * event-msw.c (mswindows_wnd_proc):
10136         * frame-msw.c (mswindows_size_frame_internal):
10137         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10138         * menubar-msw.c (displayable_menu_item):
10139         * menubar-msw.c (mswindows_char_is_accelerator):
10140         * nt.c:
10141         * nt.c (mswindows_sigset):
10142         * nt.c (mswindows_sigrelse):
10143         * nt.c (mswindows_sigpause):
10144         * nt.c (mswindows_raise):
10145         * nt.c (timer_proc):
10146         * ntproc.c:
10147         * ntproc.c (find_child_console):
10148         * ntproc.c (sys_kill):
10149         * print.c:
10150         * print.c (std_handle_out_external):
10151         * process-nt.c (find_child_console):
10152         * process-nt.c (send_signal_the_95_way):
10153         * process-nt.c (ensure_console_window_exists):
10154         * process-nt.c (nt_create_process):
10155         * syssignal.h:
10156         rename msw_ to mswindows_ for consistency with general convention.
10157
10158         * emacs.c:
10159         * dumper.c:
10160         include nt.h, not syswindows.h.
10161
10162         * nt.c (mswindows_fstat):
10163         * nt.c (mswindows_stat):
10164         prefix mswindows_ instead of attempting to directly override the
10165         library functions.  fix declarations.
10166
10167         * nt.h:
10168         include syswindows.h.  move some sysdep.h stuff here.
10169
10170         * ntheap.h:
10171         include syswindows.h, not <windows.h>.
10172
10173         * ntplay.c:
10174         clean up headers.
10175
10176         * sysdep.c:
10177         clean up headers.
10178
10179         * sysdep.c (sys_fstat):
10180         * sysdep.c (sys_stat):
10181         call mswindows versions when appropriate.
10182
10183         * sysdep.h:
10184         move mswin decls to nt.h.
10185
10186         * syswindows.h:
10187         add long comment describing appropriate use of the various windows
10188         headers.
10189
10190 2000-06-11  Ben Wing  <ben@xemacs.org>
10191
10192         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10193
10194 2000-06-10  Ben Wing  <ben@xemacs.org>
10195
10196         * Makefile.in.in (release):
10197         Correction to make sure xemacs.exe always dumped when correct.
10198
10199         * alloca.c:
10200         * balloon_help.c:
10201         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10202
10203         * buffer.c (set_buffer_internal):
10204         [[[[2]]]]: Remove HAVE_FEP code.
10205
10206         * buffer.c (init_initial_directory):
10207         [3].
10208
10209         * bytecode.c:
10210         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10211         individual files.
10212
10213         * callproc.c:
10214         * callproc.c (call_process_cleanup):
10215         * callproc.c (Fold_call_process_internal):
10216         * callproc.c (child_setup):
10217         * callproc.c (getenv_internal):
10218         * callproc.c (init_callproc):
10219         * callproc.c (vars_of_callproc):
10220         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10221         __CYGWIN32__ -> CYGWIN.
10222         DOS_NT -> WIN32_NATIVE.
10223         Remove MSDOS support/references, converting to WIN32_NATIVE
10224           where correct.
10225         __MINGW32__ -> MINGW.
10226         Fix windows.h includes.
10227         Remove bogus HAVE_NTGUI.
10228
10229         * config.h.in:
10230         [2].
10231
10232         * console-msw.c:
10233         mswindows_message_outputted added for use in allowing startup
10234         errors on the console to be seen.
10235
10236         * console-msw.c (msw_ensure_console_allocated):
10237         * console-msw.c (msw_output_console_string):
10238         * console-msw.c (DHEADER):
10239         * console-msw.c (DOPAQUE_DATA):
10240         * console-msw.c (DEVENT):
10241         * console-msw.c (DCONS):
10242         * console-msw.c (DCONSCDR):
10243         * console-msw.c (DSTRING):
10244         * console-msw.c (DVECTOR):
10245         * console-msw.c (DSYMBOL):
10246         * console-msw.c (DSYMNAME):
10247         Fix warnings.
10248
10249         * console-stream.c (stream_init_console):
10250         Fix text/binary problems.
10251
10252         * device-msw.c:
10253         * device-msw.c (mswindows_finish_init_device):
10254         * device-msw.c (mswindows_delete_device):
10255         [1].
10256
10257         * device.c (handle_asynch_device_change):
10258         [3].
10259
10260         * dgif_lib.c:
10261         * dgif_lib.c (DGifOpenFileName):
10262         * dgif_lib.c (DGifOpenFileHandle):
10263         * dgif_lib.c (DGifGetLine):
10264         * dgif_lib.c (DGifGetPixel):
10265         Added config.h/lisp.h, fix up includes.
10266         [1].
10267
10268         * dired-msw.c:
10269         [4].
10270
10271         * dired.c:
10272         * dired.c (file_name_completion):
10273         * dired.c (Ffile_attributes):
10274         * dired.c (syms_of_dired):
10275         [1].
10276
10277         * dumper.c:
10278         * dumper.c (pdump_file_unmap):
10279         * dumper.c (pdump_load):
10280         [1].
10281
10282         * editfns.c:
10283         * editfns.c (Ftemp_directory):
10284         * editfns.c (user_login_name):
10285         * editfns.c (Fuser_real_login_name):
10286         * editfns.c (get_home_directory):
10287         [1].
10288
10289         * elhash.c (finish_marking_weak_hash_tables):
10290         [[[[5]]]]: Fix GCC warnings.
10291
10292         * emacs.c:
10293         * emacs.c (mswindows_handle_hardware_exceptions):
10294         * emacs.c (make_arg_list_1):
10295         * emacs.c (main_1):
10296         * emacs.c (Fkill_emacs):
10297         * emacs.c (Fdump_emacs):
10298         [1].
10299         Fix problems with nested crashes, add long comment.
10300
10301         * event-Xt.c (init_event_Xt_late):
10302         [1].
10303
10304         * event-msw.c:
10305         * event-msw.c (mswindows_dde_callback):
10306         * event-msw.c (mswindows_handle_sticky_modifiers):
10307         * event-msw.c (mswindows_wnd_proc):
10308         [1].
10309         [5].
10310
10311         * events.c (character_to_event):
10312         [1].
10313
10314         * fileio.c:
10315         * fileio.c (Ffile_name_directory):
10316         * fileio.c (Ffile_name_nondirectory):
10317         * fileio.c (directory_file_name):
10318         * fileio.c (Fexpand_file_name):
10319         * fileio.c (Fsubstitute_in_file_name):
10320         * fileio.c (Ffile_name_absolute_p):
10321         * fileio.c (check_executable):
10322         * fileio.c (Ffile_readable_p):
10323         * fileio.c (Ffile_accessible_directory_p):
10324         * fileio.c (Ffile_modes):
10325         * fileio.c (Funix_sync):
10326         * fileio.c (vars_of_fileio):
10327         [1]. [4].
10328
10329         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10330
10331         Expand getdefdir defn.
10332         Fix bogus rename() comment.
10333
10334         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10335         to use standard XEmacs include files, e.g. sysfile.h, rather
10336         than system-specific includes.
10337
10338         * fns.c:
10339         * fns.c (Fsubseq):
10340         [5]. [6].
10341
10342         * frame.c (vars_of_frame):
10343         [1].
10344
10345         * getloadavg.c:
10346         * getloadavg.c (getloadavg):
10347         [1]. [6].
10348         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10349         (We don't use it elsewhere in the code; just add a comment.)
10350
10351         * gif_io.c:
10352         [6].
10353         Add config.h.
10354
10355         * glyphs-msw.c:
10356         * glyphs-msw.c (mswindows_resource_instantiate):
10357         [1].
10358
10359         * glyphs-x.c (x_native_layout_instantiate):
10360         [5].
10361
10362         * gui-msw.c (Fmswindows_shell_execute):
10363         [1].
10364
10365         * insdel.c:
10366         [4].
10367
10368         * lisp.h:
10369         [4]. [5].
10370
10371         * lread.c (locate_file_in_directory_mapper):
10372         [1].
10373
10374         * lstream.c:
10375         [4].
10376
10377         * mem-limits.h:
10378         * mem-limits.h (get_lim_data):
10379         [1].
10380
10381         * menubar-msw.c:
10382         [4].
10383
10384         * ndir.h:
10385         [1].
10386
10387         * nt.c:
10388         * nt.c (getwd):
10389         * nt.c (closedir):
10390         * nt.c (rva_to_section):
10391         * nt.c (mswindows_executable_type):
10392         [1]. [6].
10393         Fix closedir() defn.
10394
10395         * nt.h:
10396         [[[[8]]]]: *_OK defs moved to sysfile.h.
10397
10398         * ntproc.c:
10399         [6]. [7].
10400
10401         * objects-x.c:
10402         [4].
10403
10404         * print.c:
10405         * print.c (std_handle_out_external):
10406         [1]. [4].
10407
10408         * process-nt.c:
10409         * process-nt.c (nt_create_process):
10410         [6].
10411         try to fix process quoting somewhat.
10412
10413         * process-unix.c (unix_create_process):
10414         [1].
10415
10416         * process.c:
10417         * process.c (vars_of_process):
10418         Add Vnull_device.
10419
10420         * process.h:
10421         [1].
10422
10423         * realpath.c:
10424         * realpath.c (xrealpath):
10425         [1].
10426
10427         * redisplay-tty.c (init_tty_for_redisplay):
10428         [3].
10429
10430         * redisplay.c:
10431         [4]. [6].
10432
10433         * scrollbar-msw.c:
10434         [4].
10435
10436         * sheap.c:
10437         * sheap.c (more_static_core):
10438         * sheap.c (report_sheap_usage):
10439         [5]. [6].
10440
10441         * signal.c:
10442         * signal.c (alarm_signal):
10443         [1]. [6].
10444
10445         * sound.c:
10446         [6].
10447
10448         * strftime.c:
10449         * strftime.c (zone_name):
10450         [1]. [5].
10451
10452         * symsinit.h (init_sunpro):
10453         [1].
10454
10455         * syscommctrl.h:
10456         commctrl.h not in Cygwin b20.1.
10457
10458         * sysdep.c:
10459         * sysdep.c (endif):
10460         * sysdep.c (sys_subshell):
10461         * sysdep.c (init_baud_rate):
10462         * sysdep.c (emacs_get_tty):
10463         * sysdep.c (emacs_set_tty):
10464         * sysdep.c (tty_init_sys_modes_on_device):
10465         * sysdep.c (init_system_name):
10466         * sysdep.c (sys_open):
10467         * sysdep.c (interruptible_open):
10468         * sysdep.c (sys_fopen):
10469         * sysdep.c (sys_mkdir):
10470         * sysdep.c (sys_rename):
10471         * sysdep.c (get_process_times_1):
10472         [1]. [6].
10473
10474         * sysdep.h:
10475         [1].
10476
10477         * sysdir.h:
10478         * sysdir.h (DIRENTRY_NONEMPTY):
10479         [1]. [6].
10480
10481         * sysdll.c (dll_init):
10482         * sysdll.h:
10483         [1].
10484
10485         * sysfile.h:
10486         [1]. [6]. [8].
10487         added text/binary defs.
10488
10489         * sysfloat.h:
10490         [1].
10491
10492         * sysproc.h:
10493         * sysproc.h (EDESTADDRREQ):
10494         * sysproc.h (poll_fds_for_input):
10495         [1]. [6].
10496
10497         * syspwd.h:
10498         [6].
10499
10500         * syssignal.h:
10501         [1].
10502
10503         * systime.h:
10504         [1]. [6].
10505
10506         * systty.h:
10507         [1].
10508
10509         * syswindows.h:
10510         [1].
10511         Always define WIN32_LEAN_AND_MEAN.
10512
10513         * unexcw.c (unexec):
10514         [5].
10515
10516         * unexec.c:
10517         * unexec.c (copy_text_and_data):
10518         * unexec.c (adjust_lnnoptrs):
10519         [1].
10520
10521         * unexnt.c:
10522         * unexnt.c (_start):
10523         [1].
10524
10525 2000-06-07  Ben Wing  <ben@xemacs.org>
10526
10527         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
10528         was used only as a model.  We've long since extracted any useful
10529         logic or code out of this. (I just did an exhaustive search.)
10530
10531         * s\msdos.h: Removed.
10532
10533         * s\windows95.h: Removed.
10534
10535 2000-06-10  Ben Wing  <ben@xemacs.org>
10536
10537         * s\cygwin32.h:
10538         [1]. [5].
10539         Don't use extern with fun defs.
10540
10541         * s\mingw32.h:
10542         [1]. [7].
10543         Remove nt\inc include.
10544         Remove getdisk, getdefdir. (The former is unused, the latter
10545         expanded in fileio.h.)
10546
10547         * s\windowsnt.h:
10548         * s\windowsnt.h (WIN32_NATIVE):
10549         * s\windowsnt.h (HAVE_STRCASECMP):
10550         [1]. [7].
10551         Add long comment about preprocessor changes.
10552         Remove getdisk, getdefdir. (The former is unused, the latter
10553         expanded in fileio.h.)
10554
10555 2000-06-10  Ben Wing  <ben@xemacs.org>
10556
10557         * m\arm.h:
10558         * m\delta.h:
10559         * m\intel386.h:
10560         * m\sequent.h:
10561         * m\template.h:
10562         * m\windowsnt.h:
10563         [1].
10564         Remove bogus/unused NO_SOCK_SIGIO.
10565
10566 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
10567
10568         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
10569         not an Emchar.
10570
10571 2000-06-04  Mike Sperber <mike@xemacs.org>
10572
10573         * casetab.c (set_case_table): For `set-standard-case-table',
10574         actually deposit the new case tables where the rest of XEmacs can
10575         see them.
10576
10577 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
10578
10579         * data.c (Faset): Don't cast XCHAR() to unsigned char.
10580
10581 2000-06-05  Ben Wing  <ben@xemacs.org>
10582
10583         * callproc.c (child_setup): Don't do close_load_descs() under
10584         MS Windows.  Put in a comment explaining why.
10585
10586 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
10587
10588         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
10589         Toolkit shell" which breaks `kill-compilation' on Windows NT
10590         native, retaining STDERR handling improvements.
10591
10592 2000-06-01  Andreas Jaeger  <aj@suse.de>
10593
10594         * s/s390.h: Support for S390, based on a patch by Martin
10595         Schwidefsky <schwidefsky@de.ibm.com>.
10596
10597 2000-05-30  Andy Piper  <andy@xemacs.org>
10598
10599         * window.c (allocate_window):
10600         (make_dummy_parent):
10601         (Fset_window_configuration): use new hashtable type.
10602
10603         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
10604         (struct image_instantiator_methods):
10605         (struct Lisp_Image_Instance): make instance geometry signed.
10606
10607         * glyphs.c (instantiate_image_instantiator):
10608         (image_instance_query_geometry):
10609         (image_instance_layout):
10610         (image_instance_layout):
10611         (query_string_geometry):
10612         (text_query_geometry):
10613         (image_instantiate):
10614         (image_instantiate):
10615         (cache_subwindow_instance_in_frame_maybe):
10616         (subwindow_query_geometry): make instance geometry signed.
10617
10618         * glyphs-widget.c (widget_query_geometry):
10619         (widget_layout):
10620         (button_query_geometry):
10621         (tree_view_query_geometry):
10622         (tab_control_query_geometry):
10623         (layout_query_geometry):
10624         (layout_layout):
10625         (native_layout_layout): make instance geometry signed.
10626
10627 2000-05-29  Olivier Galibert  <galibert@pobox.com>
10628
10629         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
10630         constant.
10631
10632         * general.c (syms_of_general): Add Qfull_assoc symbol.
10633
10634         * data.c (finish_marking_weak_lists): Mark full-assoc lists
10635         correctly.
10636         (decode_weak_list_type): Decode full-assoc type.
10637         (encode_weak_list_type): Encode full-assoc type.
10638         (Fmake_weak_list): Update doc string.
10639
10640 2000-05-30  Andy Piper  <andy@xemacs.org>
10641
10642         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
10643
10644         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
10645         (decode_hash_table_weakness): ditto.
10646         (Fhash_table_weakness): ditto.
10647         (Fhash_table_type): ditto.
10648         (finish_marking_weak_hash_tables): ditto.
10649         (hash_table_weakness_validate): ditto.
10650         (syms_of_elhash): ditto.
10651
10652 2000-05-28  Martin Buchholz <martin@xemacs.org>
10653
10654         * XEmacs 21.2.34 is released.
10655
10656 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
10657
10658         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
10659         start cache.
10660         (updating_line_start_cache): Gone.
10661         (regenerate_window): Replace resetting of VERTICAL_CLIP by
10662         generic code to force a minimum of 1 line laid out in the
10663         CMOTION_DISP case.
10664
10665 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
10666
10667         * glyphs.c (instantiate_image_instantiator): Check for initialized
10668         height & width no longer special cases IMAGE_NOTHING.
10669         (nothing_instantiate): Set height and width of instance.
10670
10671 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10672
10673         * unexelf.c (unexec): Search for ".data" section.
10674         Initialize new_data2_offset from old_data_index.
10675         Remove redundant check for ElfW.
10676
10677 2000-05-23  Andy Piper  <andy@xemacs.org>
10678
10679         * glyphs.c (get_image_instantiator_governing_domain): allow more
10680         specific domains as the governing domain rather than expecting an
10681         exact match. This fixes problems with layouts.
10682
10683 2000-05-22  Andy Piper  <andy@xemacs.org>
10684
10685         * redisplay-output.c (compare_runes): check for non-images
10686
10687         * glyphs.c (set_glyph_dirty_p): ditto.
10688         (update_glyph_cachel_data): ditto.
10689
10690         * glyphs-widget.c (layout_post_instantiate): ditto.
10691         (layout_post_instantiate): ditto.
10692
10693         * event-msw.c (mswindows_wnd_proc): warning removal.
10694
10695 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
10696
10697         * s\mingw32.h: Added #undef for CLASH_DETECTION.
10698
10699         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
10700
10701         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
10702
10703         * nt.c (rva_to_section): mingw32 needs rva_to_section.
10704         (mswindows_executable_type): mingw32 now has enough headers for
10705         this to work.
10706
10707 2000-05-20  Andy Piper  <andy@xemacs.org>
10708
10709         * console-msw.c (mswindows_output_last_error): ; -> ,
10710
10711 2000-05-12  Andy Piper  <andy@xemacs.org>
10712
10713         * console-msw.c (FROB): compare ints with ints.
10714
10715 2000-05-11  Andy Piper  <andy@xemacs.org>
10716
10717         * glyphs-x.c (x_finalize_image_instance): make minimal build
10718         happy.
10719
10720 2000-05-20  Ben Wing  <ben@xemacs.org>
10721
10722         * event-Xt.c:
10723         * event-Xt.c (vars_of_event_Xt):
10724         move modifier-keys-are-sticky to event-stream.c.
10725
10726         * event-msw.c:
10727         * event-msw.c (mswindows_enqueue_mouse_button_event):
10728         * event-msw.c (key_needs_default_processing_p):
10729         * event-msw.c (XEMSW_LCONTROL):
10730         * event-msw.c (mswindows_handle_sticky_modifiers):
10731         * event-msw.c (FROB):
10732         * event-msw.c (clear_sticky_modifiers):
10733         * event-msw.c (output_modifier_keyboard_state):
10734         * event-msw.c (output_alt_keyboard_state):
10735         * event-msw.c (mswindows_wnd_proc):
10736         * event-msw.c (mswindows_modifier_state):
10737         * event-msw.c (emacs_mswindows_handle_magic_event):
10738         implement sticky modifiers.
10739
10740         * event-stream.c:
10741         * event-stream.c (vars_of_event_stream):
10742         move modifier-keys-are-sticky here.
10743
10744         * lisp.h:
10745         add CHECK_FUNCTION.
10746
10747         * rangetab.c:
10748         implement map-range-table.
10749
10750
10751 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
10752
10753         * redisplay-tty.c (reset_tty_modes):
10754         (tty_redisplay_shutdown): Adjust argument type to
10755         tty_frame_output_end.
10756
10757 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
10758
10759         * eval.c (Fbacktrace): Don't output a line with only right
10760         parenthesis.
10761
10762 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
10763
10764         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
10765         (Fpq_reset_poll): Ditto.
10766
10767 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
10768
10769         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
10770
10771 2000-05-16  Ben Wing  <ben@xemacs.org>
10772
10773         * buffer.c:
10774         * buffer.c (dfc_convert_to/from_internal_format):
10775         * buffer.c (reinit_vars_of_buffer):
10776         Fix conversion functions to allow reentrancy.
10777
10778         * console-msw.c:
10779         * console-msw.c (mswindows_output_last_error):
10780         New fun, generally useful -- output a human-readable
10781         version of GetLastError() on the console.
10782
10783         * console-msw.h:
10784         * console-msw.h (struct mswindows_frame):
10785         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
10786
10787         * console-stream.c (stream_output_begin):
10788         * console-stream.c (stream_output_end):
10789         * console-stream.c (stream_output_vertical_divider):
10790         * console-stream.c (stream_clear_region):
10791         * console-stream.c (stream_flash):
10792         * console-stream.c (console_type_create_stream):
10793         Delete blank stream methods, not needed.
10794
10795         * console.h (struct console_methods):
10796         Split begin/end methods into window and frame.
10797
10798         * event-msw.c:
10799         * event-msw.c (mswindows_handle_paint):
10800         * event-msw.c (output_alt_keyboard_state):
10801         * event-msw.c (mswindows_wnd_proc):
10802         * event-msw.c (vars_of_event_mswindows):
10803         Comment about problems with ignored-expose.
10804         Define mswindows-debug-events; not really implemented.
10805
10806         * frame-msw.c (mswindows_init_frame_1):
10807         random cleanups.
10808
10809         * glyphs-msw.c:
10810         * glyphs-msw.c (begin_defer_window_pos):
10811         * glyphs-msw.c (mswindows_unmap_subwindow):
10812         * glyphs-msw.c (mswindows_map_subwindow):
10813         * glyphs-msw.c (mswindows_resize_subwindow):
10814         Use DeferWindowPos to reduce flashing when mapping/unmapping.
10815
10816         * glyphs.c (make_image_instance_1):
10817         Fix crash.
10818
10819         * gutter.c (Fredisplay_gutter_area):
10820         Use new begin/end methods.
10821
10822         * lisp.h (Dynarr_new2):
10823         New creation fun.
10824
10825         * redisplay-msw.c:
10826         * redisplay-msw.c (mswindows_frame_output_begin):
10827         * redisplay-msw.c (mswindows_frame_output_end):
10828         * redisplay-msw.c (console_type_create_redisplay_mswindows):
10829         New begin/end methods -- handle DeferWindowPos.
10830
10831         * redisplay-output.c (redisplay_move_cursor):
10832         * redisplay-output.c (redraw_cursor_in_window):
10833         * redisplay-output.c (redisplay_update_line):
10834         * redisplay-output.c (redisplay_output_window):
10835         New begin/end methods.
10836
10837         * redisplay-tty.c:
10838         * redisplay-tty.c (tty_frame_output_begin):
10839         * redisplay-tty.c (tty_frame_output_end):
10840         * redisplay-tty.c (console_type_create_redisplay_tty):
10841         New begin/end methods.
10842
10843         * redisplay-x.c:
10844         * redisplay-x.c (x_window_output_begin):
10845         * redisplay-x.c (x_window_output_end):
10846         * redisplay-x.c (console_type_create_redisplay_x):
10847         New begin/end methods.
10848
10849         * redisplay.c (redisplay_frame):
10850         * redisplay.c (Fredisplay_echo_area):
10851         New begin/end methods.
10852         use MAYBE_DEVMETH for clear_frame; it may not exist.
10853
10854         * window.h (WINDOW_XFRAME):
10855         WINDOW_XFOO macros -- get locale and decode struct pointer.
10856
10857
10858 2000-05-12  Ben Wing  <ben@xemacs.org>
10859
10860         * emacs.c:
10861         * emacs.c (ensure_no_quitting_from_now_on):
10862         * emacs.c (fatal_error_signal):
10863         * emacs.c (mswindows_handle_hardware_exceptions):
10864         * emacs.c (main):
10865         * emacs.c (Fkill_emacs):
10866         * emacs.c (shut_down_emacs):
10867         * emacs.c (assert_failed):
10868         various improvements in fatal error handling.
10869
10870         * eval.c:
10871         move preparing_for_armageddon to emacs.c.
10872
10873         * lisp.h:
10874         declare fatal_error_in_progress.
10875
10876         * print.c:
10877         * print.c (std_handle_out_external):
10878         * print.c (std_handle_out_va):
10879         * print.c (stderr_out):
10880         * print.c (stdout_out):
10881         use console under mswin when no standard output.
10882         don't do code conversion during fatal error.
10883
10884         * scrollbar.c (Fscrollbar_page_up):
10885         * scrollbar.c (Fscrollbar_page_down):
10886         fix missing else.  reindent.
10887
10888 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
10889
10890         Emergency fix.
10891
10892         * glyphs.h (GLYPH_CACHEL_DESCENT):
10893         (GLYPH_CACHEL_DESCENT):
10894         (GLYPH_CACHEL_DESCENT):
10895         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
10896         used in case these are inline functions.
10897         Use more absurd values to error check.
10898
10899         include window.h for error check functions.
10900
10901 2000-05-11  Ben Wing  <ben@xemacs.org>
10902
10903         * cmdloop.c (Freally_early_error_handler):
10904         Display message box under windows; otherwise, message will disappear
10905         before it can be viewed.
10906
10907         * console-msw.c:
10908         * console-msw.c (Fmswindows_message_box):
10909         * console-msw.c (FROB):
10910         * console-msw.c (syms_of_console_mswindows):
10911         Define new fun `mswindows-message-box'.
10912         #### I will merge this into `popup-dialog-box'; just give me
10913         a bit of time.
10914
10915         * general.c:
10916         * general.c (syms_of_general):
10917         Some new symbols used in `mswindows-message-box'.
10918
10919         * glyphs.c:
10920         * glyphs.c (Fset_image_instance_property):
10921         put warning in this fun.
10922
10923         * glyphs.h:
10924         * glyphs.h (GLYPH_CACHEL_WIDTH):
10925         * glyphs.h (GLYPH_CACHEL_ASCENT):
10926         * glyphs.h (GLYPH_CACHEL):
10927         * glyphs.h (GLYPH_CACHEL_GLYPH):
10928         define error-checking versions to try to catch a bug i've seen --
10929         redisplay gets in an infinite loop because the glyph width of the
10930         continuation glyph is 65535.
10931
10932         * lisp.h:
10933         Extern message-box stuff.
10934
10935         * window.c (allocate_window):
10936         * window.c (make_dummy_parent):
10937         * window.c (Fset_window_configuration):
10938         Use EQUAL not EQ for subwindow caches to make them work a bit
10939         better. (Something is still very broken.)
10940
10941
10942 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
10943
10944         * glyphs.c (image_instantiate): Suppress gcc warnings.
10945         (Fmake_image_instance): Fix doc string.
10946         * specifier.c (Fmake_specifier): Ditto.
10947
10948 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
10949
10950         * paths.h.in (PATH_LOCK): Removed.
10951         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
10952         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
10953
10954 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10955
10956         * fns.c (Ffeaturep): Update e-mail address in doc-string.
10957         Document (featurep '(and xemacs 21.02)).
10958
10959 2000-05-09  Ben Wing  <ben@xemacs.org>
10960
10961         * buffer.c (complex_vars_of_buffer):
10962         update modeline-format doc.
10963
10964         * device.h:
10965         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
10966
10967         * emacs.c:
10968         timeline of all released versions of Emacs, for use in creating
10969         authorship comments and in synching up.
10970
10971         * glyphs-widget.c (image_instantiator_buttons):
10972         * glyphs-widget.c (image_instantiator_edit_fields):
10973         * glyphs-widget.c (image_instantiator_combo_box):
10974         * glyphs-widget.c (image_instantiator_scrollbar):
10975         * glyphs-widget.c (image_instantiator_progress_guage):
10976         * glyphs-widget.c (image_instantiator_tree_view):
10977         * glyphs-widget.c (image_instantiator_tab_control):
10978         * glyphs-widget.c (image_instantiator_labels):
10979         * glyphs-widget.c (image_instantiator_layout):
10980         * glyphs-widget.c (image_instantiator_native_layout):
10981         rename decode_domain method to governing_domain.
10982
10983         * glyphs.c:
10984         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
10985         * glyphs.c (add_entry_to_device_ii_format_list):
10986         make sure we don't put an entry more than once into the list.
10987         * glyphs.c (check_instance_cache_mapper):
10988         *************************************************************
10989         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
10990         HAVE BEEN GETTING.
10991         *************************************************************
10992         * glyphs.c (get_image_instantiator_governing_domain):
10993         clean up, expand on new concept of governing domain.
10994         * glyphs.c (instantiate_image_instantiator):
10995         * glyphs.c (allocate_image_instance):
10996         use governing_domain instead of cache_domain in naming.
10997         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
10998         * glyphs.c (make_image_instance_1):
10999         * glyphs.c (Fmake_image_instance):
11000         allow for any domain (not just device), and process the
11001         governing domain correctly.  very big doc fix.
11002         * glyphs.c (Fimage_instance_domain):
11003         new primitive, to retrieve the governing domain of an image instance.
11004         * glyphs.c (image_instantiate):
11005         use new governing_domain stuff.  this fixes a crash you could get
11006         by instantiating certain widget glyphs in frame locales. (should
11007         signal an error instead of crashing.)
11008         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11009         * glyphs.c (Fglyphp): clean up doc.
11010         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11011         * glyphs.c (syms_of_glyphs):
11012         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11013         * glyphs.c (image_instantiator_format_create): add some comments about
11014         bogus code.
11015         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11016         for current-display-table. (Apparently Hrjove implemented in 1998 a
11017         design I wrote up in 1996, but didn't update the doc string.)
11018
11019         * glyphs.h: clean up a doc string.
11020         * glyphs.h (governing_domain):
11021         * glyphs.h (struct image_instantiator_methods):
11022         changes for governing_domain stuff.
11023
11024         * gutter.c:
11025         * gutter.c (Fgutter_specifier_p):
11026         * gutter.c (Fgutter_size_specifier_p):
11027         * gutter.c (Fgutter_visible_specifier_p):
11028         * objects.c:
11029         * objects.c (Fcolor_specifier_p):
11030         * objects.c (Ffont_specifier_p):
11031         * objects.c (Fface_boolean_specifier_p):
11032         doc strings moved to make-*-specifier.
11033
11034         * redisplay.c (add_disp_table_entry_runes_1):
11035         * redisplay.c (generate_fstring_runes):
11036         * redisplay.c (screen):
11037         add random comments and doc strings.
11038
11039         * specifier.c:
11040         * specifier.c (Fmake_specifier):
11041         major overhaul of this doc string.
11042
11043         * specifier.c (Fvalid_specifier_domain_p):
11044         comment about the bogosity of image instances being domains.
11045         * specifier.c (decode_domain):
11046         now non-static, used in glyphs.c.
11047         * specifier.c (specifier_instance):
11048         comment about the bogosity of image instances being domains.
11049         * specifier.c (Fgeneric_specifier_p):
11050         move doc string to make-generic-specifier.
11051         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11052         rebackslashify.
11053
11054         * specifier.h:
11055         * specifier.h (DOMAIN_FRAME):
11056         * specifier.h (DOMAIN_LIVE_P):
11057         * specifier.h (DOMAIN_XDEVICE):
11058         rebackslashify.
11059         add comments about problems with these macros.
11060         prototype for decode_domain.
11061
11062         * toolbar.c:
11063         * toolbar.c (Ftoolbar_specifier_p):
11064         move doc string to `make-toolbar-specifier'.
11065
11066         * window.c (window_unmap_subwindows_cache_mapper):
11067         *************************************************************
11068         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11069         HAVE BEEN GETTING.
11070         *************************************************************
11071
11072 2000-05-09  Andy Piper  <andy@xemacs.org>
11073
11074         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11075
11076         * window.c (Fset_window_configuration): reset the frame subwindow
11077         cache and re-initialize the window subwindow caches.
11078
11079         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11080
11081 2000-05-09  Ben Wing  <ben@xemacs.org>
11082
11083         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11084         DWORD.
11085
11086 2000-04-26  Mike Woolley  <mike@bulsara.com>
11087
11088         * ntheap.c: Changed recreate_heap to limit the amount reserved
11089         for the heap to that which is actually available. Also now
11090         displays a message box (with some dignostics) in the event that
11091         it still can't start.
11092
11093 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11094
11095         * callproc.c (Fold_call_process_internal): GCPRO path
11096
11097 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11098
11099         Patch by Bill Perry.
11100
11101         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11102         back data instead of #ifdef.
11103         (Fscrollbar_page_down): ditto.
11104
11105 2000-05-07  Ben Wing  <ben@xemacs.org>
11106
11107         * buffer.h:
11108         Kludge for defining Qmswindows_tstr.
11109
11110         * nt.c:
11111         * nt.c (open_input_file):
11112         * nt.c (open_output_file):
11113         * nt.c (rva_to_section):
11114         * nt.c (mswindows_executable_type):
11115         Move all memory-mapped-file routines here (some were in unexnt.c,
11116         which is bad because they are used by process-nt.c, and unexnt
11117         won't be around when portable dumping).  Synched the above routines
11118         with FSF 20.6.
11119
11120         * nt.h:
11121         Removed ifdef'd out bogus code.
11122         Fixed some prototypes.
11123
11124         * nt.h (file_data):
11125         * nt.h (OFFSET_TO_RVA):
11126         * nt.h (RVA_TO_OFFSET):
11127         * nt.h (RVA_TO_PTR):
11128         Moved the memory-mapped-file structures, macros and prototypes
11129         here, to parallel nt.c.  ntheap.h should really be removed
11130         entirely, and it's a non-portable-dumper specific file.
11131
11132         * ntheap.h (round_to_next):
11133         Moved the memory-mapped-file structures, macros and prototypes
11134         to nt.h.
11135
11136         * ntproc.c (compare_env):
11137         Moved rva_to_section and mswindows_executable_type to nt.c.
11138         Moved compare_env to process-nt.c.
11139         ntproc.c will die, one day.
11140
11141         * ntproc.c (sys_spawnve):
11142         Account for win32_ -> mswindows_.
11143
11144         * process-nt.c:
11145         * process-nt.c (struct nt_process_data):
11146         * process-nt.c (ensure_console_window_exists):
11147         * process-nt.c (compare_env):
11148         * process-nt.c (nt_create_process):
11149         * process-nt.c (nt_kill_process_by_pid):
11150         * process-nt.c (syms_of_process_nt):
11151         * process-nt.c (vars_of_process_nt):
11152         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11153         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11154         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11155         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11156         Move compare_env here from ntproc.c.
11157
11158         * process.c (Fprocess_send_region):
11159         Takes an optional fourth argument, BUFFER, which should fix some
11160         problems with call-process.
11161
11162         * syscommctrl.h:
11163         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11164
11165         * syswindows.h:
11166         Move ICC_BAR_CLASSES to syscommctrl.h.
11167         Add preliminary macros for MSWindows/Mule.  More to come.
11168
11169         * unexnt.c:
11170         * unexnt.c (unexec):
11171         open_output_file moved to nt.c.
11172
11173
11174 2000-05-05  Andy Piper  <andy@xemacs.org>
11175
11176         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11177         instance from the frame cache also since GC may catch up too late
11178         to make frame deletion sane.
11179
11180 2000-05-04  Andy Piper  <andy@xemacs.org>
11181
11182         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11183         (x_finalize_image_instance): ungcpro on deletion.
11184
11185         * glyphs.c (image_instantiator_format_create): give pointers a
11186         query geometry method so that the geometry is at least set.
11187
11188         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11189         initialize layouts if using widgets.
11190
11191 2000-05-03  Andy Piper  <andy@xemacs.org>
11192
11193         * nt.c: remove bogus reference to sysmmsystem.h
11194
11195         * gui-x.c (popup_selection_callback): fix no selection abort.
11196
11197 2000-05-02  Andy Piper  <andy@xemacs.org>
11198
11199         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11200         (mswindows_widget_instantiate): ditto.
11201
11202         * glyphs-widget.c (initialize_widget_image_instance): initialize
11203         children correctly.
11204         (widget_instantiate): cope with children and items in the same
11205         instance.
11206
11207         * glyphs.c (mark_image_instance): cope with children as a first
11208         class member.
11209         (image_instance_equal): ditto.
11210         (image_instance_hash): ditto.
11211         (image_instance_changed): ditto.
11212
11213 2000-04-30  Andy Piper  <andy@xemacs.org>
11214
11215         * glyphs.c (subwindow_query_geometry): new function. Return some
11216         defaults.
11217         (subwindow_instantiate): don't assign dimensions if none have been
11218         given.
11219         (image_instantiator_format_create): add subwindow_query_geometry.
11220         (print_image_instance): cope with layouts as widgets.
11221
11222 2000-04-29  Andy Piper  <andy@xemacs.org>
11223
11224         * frame.c (delete_frame_internal): call
11225         free_frame_subwindow_instance_cache so that all subwindows are
11226         finalized before their parent.
11227         (mark_frame): remove subwindow_cachels.
11228         (Fmake_frame): remove subwindow_cachel manipulation.
11229         (allocate_frame_core): subwindow_instance_cache is a weak list.
11230         (delete_frame_internal): set subwindow_instance_cache to nil.
11231
11232         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11233         finalization safe.
11234         (mswindows_finalize_image_instance): use the device
11235         not the domain as the domain may have died already.
11236
11237         * glyphs-x.c (x_finalize_image_instance): ditto.
11238         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11239         HEIGHT.
11240
11241         * redisplay-output.c (redisplay_unmap_subwindows): update for
11242         subwindow instance cache as a weak list.
11243         (redisplay_unmap_subwindows_maybe): ditto.
11244         (redisplay_unmap_subwindows_except_us): ditto.
11245
11246         * glyphs.c (unmap_subwindow): error checking will check the domain
11247         so don't deal with it here. Don't use cachels anymore.
11248         (map_subwindow): ditto.
11249         (update_subwindow_cachel_data): remove old accessor names.
11250         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11251         (Fresize_subwindow): don't update cachel.
11252         (mark_subwindow_cachels):
11253         (update_subwindow_cachel_data):
11254         (add_subwindow_cachel):
11255         (get_subwindow_cachel_index):
11256         (update_subwindow_cachel):
11257         (reset_subwindow_cachels):
11258         (mark_subwindow_cachels_as_not_updated): deleted.
11259         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11260         subwindow instance to the frame cache.
11261         (find_matching_subwindow): update for subwindow instance cache as
11262         a weak list.
11263         (update_widget_instances): ditto.
11264         (image_instance_type_to_mask):inlined.
11265         (free_frame_subwindow_instance_cache): new function. finalize all
11266         subwindows that are instantiated.
11267
11268         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11269         of cachel information.
11270         (IMAGE_INSTANCE_DISPLAY_X):
11271         (IMAGE_INSTANCE_DISPLAY_Y):
11272         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11273         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11274         (XIMAGE_INSTANCE_DISPLAY_X):
11275         (XIMAGE_INSTANCE_DISPLAY_Y):
11276         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11277         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11278         remove subwindow_cachel structure and function references.
11279         (image_instance_type_to_mask): inline from glyphs.c
11280
11281         * redisplay.c (redisplay_frame): remove subwindow_cachel
11282         references.
11283
11284         * frame.h (struct frame): remove subwindow_cachels.
11285         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11286
11287         * frameslots.h: add subwindow_instance_cache.
11288
11289         * window.c (replace_window): check subwindow cache of replacement.
11290         (window_unmap_subwindows_cache_mapper):
11291         (window_unmap_subwindows): new functions. Unmap all subwindows
11292         cached on this window.
11293         (mark_window_as_deleted): unmap all subwindows.
11294
11295 2000-04-27  Andy Piper  <andy@xemacs.org>
11296
11297         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11298
11299         * glyphs-widget.c (widget_layout): return something.
11300         (layout_layout): return something. Fail if not initialized.
11301         (layout_query_geometry): ditto.
11302         (image_instantiator_native_layout): new function. Initialized the
11303         native layout type.
11304         (widget_instantiate): don't do layout stuff here.
11305
11306         * glyphs.c (instantiate_image_instantiator): reorded calling or
11307         instantiate and post_instantiate with layout in between.
11308         (image_instance_layout): be more selective about deciding whether
11309         the layout has been done or not.
11310
11311         * glyphs.h (struct image_instantiator_methods): return a value
11312         from layout_method.
11313
11314 2000-04-26  Andy Piper  <andy@xemacs.org>
11315
11316         * glyphs.c (allocate_image_instance): make initial width and
11317         height unspecified. Set initialized to 0.
11318
11319         * syscommctrl.h new file. Encapsulates commctrl.h.
11320
11321         * syswindows.h new file. Encapsulates windows.h.
11322
11323         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11324         * nt.c: ditto.
11325         * console-msw.h: ditto.
11326
11327         * redisplay-tty.c (tty_output_display_block): remove layout references.
11328
11329         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11330         window handle rather than just the frame.
11331
11332         * glyphs.c (mark_image_instance): remove layout references.
11333         (print_image_instance): ditto.
11334         (image_instance_equal): ditto.
11335         (image_instance_hash): ditto.
11336         (decode_image_instance_type): ditto.
11337         (encode_image_instance_type): ditto.
11338         (image_instantiate): ditto.
11339         (allocate_glyph): ditto.
11340         (Fimage_instance_height): ditto.
11341         (Fimage_instance_width): ditto.
11342         (update_subwindow): ditto.
11343
11344         * redisplay-x.c (x_output_display_block): recode for layouts as
11345         widgets.
11346
11347         * redisplay-output.c (redisplay_output_layout): recode for layouts
11348         as widgets.
11349         (compare_runes): remove layout references.
11350
11351         * redisplay-msw.c (mswindows_output_display_block): recode for
11352         layouts as widgets.
11353
11354         * glyphs-widget.c (image_instantiator_layout): remove
11355         layout_possible_dest_types.
11356         (layout_possible_dest_types): deleted.
11357
11358         * glyphs.h (image_instance_type): remove layout references.
11359         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11360         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11361         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11362
11363 2000-04-25  Andy Piper  <andy@xemacs.org>
11364
11365         * glyphs-widget.c (image_instantiator_buttons):
11366         (image_instantiator_edit_fields):
11367         (image_instantiator_combo_box):
11368         (image_instantiator_scrollbar):
11369         (image_instantiator_progress_guage):
11370         (image_instantiator_tree_view):
11371         (image_instantiator_tab_control):
11372         (image_instantiator_labels):
11373         (image_instantiator_layout): call default post_instantiate method.
11374         (widget_post_instantiate): new function. Simply lays out the
11375         widgets.
11376
11377         * glyphs.h (struct image_instantiator_methods): add
11378         post_instantiate method.
11379
11380         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11381         method calls.
11382
11383 2000-04-23  Andy Piper  <andy@xemacs.org>
11384
11385         * glyphs.h (struct image_instantiator_methods): add
11386         decode_domain_method.
11387         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11388         derived from the domain.
11389         (IMAGE_INSTANCE_FRAME): new accessor.
11390         (XIMAGE_INSTANCE_FRAME): ditto.
11391
11392         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11393         instead of _SUBWINDOW_FRAME.
11394         (finalize_image_instance): ditto.
11395         (Fimage_instance_foreground): ditto.
11396         (Fimage_instance_background): ditto.
11397         (image_instantiate): ditto.
11398         (update_subwindow_cachel): ditto.
11399         (update_subwindow): ditto.
11400         (unmap_subwindow): ditto.
11401         (map_subwindow): ditto
11402         (subwindow_instantiate): ditto.
11403         * glyphs-msw.c (mswindows_update_widget): ditto.
11404         (mswindows_progress_gauge_instantiate): ditto.
11405         (mswindows_tab_control_update): ditto.
11406         * glyphs-x.c (x_update_widget): ditto.
11407         (x_widget_instantiate): ditto.
11408         (x_tab_control_instantiate): ditto.
11409         (x_tab_control_update): ditto.
11410         * event-msw.c (mswindows_wnd_proc): ditto
11411
11412         * glyphs-widget.c (image_instantiator_layout): use
11413         subwindow_decode_domain.
11414         (image_instantiator_buttons): ditto.
11415         (image_instantiator_edit_fields): ditto.
11416         (image_instantiator_combo_box): ditto.
11417         (image_instantiator_scrollbar): ditto.
11418         (image_instantiator_progress_guage): ditto.
11419         (image_instantiator_tree_view): ditto.
11420         (image_instantiator_tab_control): ditto.
11421         (image_instantiator_labels): ditto.
11422         (image_instantiator_layout): ditto.
11423
11424         * glyphs.c: add instance error checking to many functions.
11425         (instantiate_image_instantiator): decode device from cache_domain.
11426         (image_instantiate): partially rewrite by using
11427         decode_image_instantiator_domain to determine what domain the
11428         instance needs to be cached in.
11429         (decode_image_instantiator_domain): new function. Determine what
11430         domain the image needs to be cached in.
11431         (check_window_subwindow_cache): new error checking function.
11432         (check_instance_cache_mapper): ditto.
11433         (check_image_instance_structure): ditto.
11434         (subwindow_decode_domain): new function. Encodes a window as a
11435         subwindow's cache domain.
11436         (image_instantiator_format_create): use it for text and
11437         subwindows.
11438
11439 2000-04-21  Andy Piper  <andy@xemacs.org>
11440
11441         * glyphs.c (image_instance_device): new function.
11442         (image_instance_frame): new function.
11443         (image_instance_window): new function.
11444         (image_instance_live_p): new function.
11445
11446         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11447         cache to nil.
11448
11449         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11450         (IMAGE_INSTANCE_DOMAIN): new accessor.
11451         (XIMAGE_INSTANCE_DOMAIN): ditto.
11452
11453         * glyphs-x.c (x_finalize_image_instance): device->domain.
11454
11455         * glyphs-msw.c (init_image_instance_geometry): device->domain.
11456         (mswindows_finalize_image_instance): ditto.
11457
11458         * glyphs-eimage.c (jpeg_instantiate): device->domain.
11459         (gif_instantiate): ditto.
11460         (png_instantiate): ditto.
11461         (tiff_instantiate): ditto.
11462
11463         * glyphs.c (instantiate_image_instantiator): use domain rather
11464         than device.
11465         (mark_image_instance): device -> domain.
11466         (print_image_instance): ditto.
11467         (finalize_image_instance): ditto.
11468         (image_instance_equal): ditto.
11469         (allocate_image_instance): ditto.
11470         (Fcolorize_image_instance): ditto.
11471         (query_string_geometry): ditto.
11472         (image_instantiate): ditto
11473         (query_string_font): ditto.
11474         (image_instantiate): ditto.
11475         (update_subwindow): ditto.
11476         (unmap_subwindow): ditto.
11477         (map_subwindow): ditto.
11478         (subwindow_instantiate): ditto.
11479
11480         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11481         (DOMAIN_FRAME): ditto.
11482         (DOMAIN_WINDOW): ditto.
11483         (DOMAIN_LIVE_P): ditto.
11484         (XDOMAIN_DEVICE): ditto.
11485         (XDOMAIN_FRAME): ditto.
11486         (XDOMAIN_WINDOW): ditto.
11487
11488         * specifier.c (Fvalid_specifier_domain_p): add image instances as
11489         a valid specifier domain.
11490
11491 2000-04-19  Andy Piper  <andy@xemacs.org>
11492
11493         * glyphs-widget.c (syms_of_glyphs_widget): remove
11494         widget-callback-current-channel.
11495         (vars_of_glyphs_widget): ditto.
11496         * glyphs.h: ditto
11497
11498         * gui.c (get_gui_callback): revert to previous behaviour.
11499
11500 2000-04-18  Andy Piper  <andy@xemacs.org>
11501
11502         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11503         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11504         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11505
11506         * glyphs.c (image_instance_equal): add margin_width.
11507         (image_instance_hash): ditto.
11508
11509         * glyphs-widget.c (widget_instantiate): deal with margin-width.
11510         (layout_query_geometry): ditto.
11511         (layout_layout): ditto.
11512         (syms_of_glyphs_widget): add margin-width.
11513         (image_instantiator_layout): allow margin-width.
11514
11515         * glyphs.c (update_widget_instances): make a normal function.
11516         (syms_of_glyphs): remove Qupdate_widget_instances.
11517         * glyphs.h: ditto.
11518
11519         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11520         so that we don't corrupt ideas about the last event or
11521         command. Remove widget-callback-current-channel fiddling.
11522         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11523
11524 2000-05-01  Martin Buchholz <martin@xemacs.org>
11525
11526         * XEmacs 21.2.33 is released.
11527
11528 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
11529
11530         * make-src-depend: Allow dots in header file name.
11531
11532 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
11533
11534         * mule-charset.h (struct charset_lookup): Add
11535         next_allocated_1_byte_leading_byte and
11536         next_allocated_2_byte_leading_byte.
11537         * mule-charset.c: Move above two variables so that those values
11538         will be dumped.
11539
11540 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
11541
11542         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
11543         when string length is zero.
11544         (find_charsets_in_emchar_string): Ditto.
11545
11546 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
11547
11548         * lisp.h: extern Qdialog and Qmenubar.
11549
11550         * gui-x.c: added events.h.
11551                 also fixed typo which made the file uncompilable.
11552
11553         * general.c: Added Qmenubar and Qdialog
11554
11555 2000-04-28  Ben Wing  <ben@xemacs.org>
11556
11557         * frame-msw.c (mswindows_init_frame_1):
11558         * frame-msw.c (mswindows_mark_frame):
11559         * event-msw.c (mswindows_enqueue_dispatch_event):
11560         * console-msw.h:
11561         * console-msw.h (struct mswindows_frame):
11562         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
11563         there are now three hash tables for callbacks.
11564         mswindows_enqueue_dispatch_event is no longer static.
11565
11566         * dialog-x.c (maybe_run_dbox_text_callback):
11567         * dialog-x.c (dbox_descriptor_to_widget_value):
11568         switch to new cons3 form for callbacks.
11569
11570         * glyphs-msw.c (mswindows_register_gui_item):
11571         * glyphs-msw.c (mswindows_widget_instantiate):
11572         * glyphs-msw.c (add_tree_item):
11573         * glyphs-msw.c (add_tab_item):
11574         new image instance parameter, so it can be passed to callback-ex.
11575         respect :callback-ex as well as :callback.
11576
11577         * glyphs-widget.c (VALID_GUI_KEYWORDS):
11578         add :callback-ex.
11579
11580         * glyphs.c (print_image_instance):
11581         prettify, e.g. now prints widget type.
11582
11583         * gui-x.h:
11584         certain funs have new image instance parameter.
11585
11586         * gui.c:
11587         * gui.c (get_gui_callback):
11588         * gui.c (gui_item_add_keyval_pair):
11589         * gui.c (gui_item_init):
11590         * gui.c (gui_add_item_keywords_to_plist):
11591         * gui.c (mark_gui_item):
11592         * gui.c (gui_item_hash):
11593         * gui.c (gui_item_equal):
11594         * gui.c (copy_gui_item):
11595         * gui.c (syms_of_gui):
11596         recognize callback-ex in a number of places.
11597         also, fix the annoying "can't get out of yes-no dialog" bug.
11598
11599         * gui.h:
11600         * gui.h (struct Lisp_Gui_Item):
11601         recognize callback-ex in a number of places.
11602
11603         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11604         new parameter in button_item_to_widget_value.
11605
11606         * glyphs-x.c (x_update_widget):
11607         * glyphs-x.c (x_button_instantiate):
11608         * glyphs-x.c (x_button_update):
11609         * glyphs-x.c (x_progress_gauge_instantiate):
11610         * glyphs-x.c (x_edit_field_instantiate):
11611         * glyphs-x.c (x_combo_box_instantiate):
11612         * glyphs-x.c (x_tab_control_instantiate):
11613         * glyphs-x.c (x_label_instantiate):
11614         new image instance parameter in various places.
11615
11616         * event-Xt.c:
11617         * event-Xt.c (enqueue_Xt_dispatch_event):
11618         this fun gets exported.
11619
11620         * gui-msw.c:
11621         * gui-msw.c (mswindows_handle_gui_wm_command):
11622         handle both :callback and :callback-ex, and generate our own
11623         event because it's one of the callback-ex arguments.
11624
11625         * gui-x.c:
11626         * gui-x.c (popup_selection_callback):
11627         handle both :callback and :callback-ex, and generate our own
11628         event because it's one of the callback-ex arguments.
11629         * gui-x.c (button_item_to_widget_value):
11630         * gui-x.c (gui_items_to_widget_values_1):
11631         * gui-x.c (gui_item_children_to_widget_values):
11632         * gui-x.c (gui_items_to_widget_values):
11633         new image instance parameter in various places.
11634
11635         * fns.c (Freplace_list):
11636         fix small typo in doc string.
11637
11638         * lisp.h:
11639         declare enqueue_Xt_dispatch_event.
11640
11641 2000-04-28  Ben Wing  <ben@xemacs.org>
11642
11643         * buffer.c:
11644         * buffer.c (Frecord_buffer):
11645         * buffer.c (syms_of_buffer):
11646         delete record-buffer-hook.
11647
11648         * fns.c:
11649         * fns.c (Freplace_list):
11650         * fns.c (syms_of_fns):
11651         new primitive replace-list.
11652
11653         * frameslots.h:
11654         slot for old buffer-alist.
11655
11656         * lisp.h:
11657         exfun replace-list.
11658
11659         * redisplay.c:
11660         * redisplay.c (redisplay_frame):
11661         * redisplay.c (syms_of_redisplay):
11662         * redisplay.c (vars_of_redisplay):
11663         new hook buffer-list-changed-hook.
11664         call it.
11665
11666 2000-04-27  Ben Wing  <ben@xemacs.org>
11667
11668         * extents.h: extern in_modeline_generation.
11669
11670         * redisplay.c (generate_formatted_string_db): set
11671         in_modeline_generation.
11672
11673         * extents.c (extent_changed_for_redisplay): don't mark redisplay
11674         flags if in modeline generation.  otherwise frame-modified-tick
11675         is ticked far too often.
11676         Declare in_modeline_generation.
11677
11678 2000-04-26  Ben Wing  <ben@xemacs.org>
11679
11680         * emacs.c (vars_of_emacs): document quick-build "error-checking"
11681         option.
11682         (vars_of_emacs): add quick-build as an error-checking option.
11683         A bit kludgy, but there doesn't seem much point in creating
11684         a real var for this.
11685
11686         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
11687
11688 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11689
11690         * redisplay.h (struct display_line): Add a new variable,
11691         line_continuation.
11692
11693         * redisplay.c (create_text_block): Set dl->line_continuation if
11694         the line continues.
11695         (create_string_text_block): Ditto.
11696         (regenerate_window_incrementally): Use line_continuation instead
11697         of searching continuation glyph.
11698         (add_margin_runes): Call add_glyph_rune.
11699         (add_glyph_rune): Handle margin glyph.
11700
11701 2000-04-20  Martin Buchholz  <martin@xemacs.org>
11702
11703         * filelock.c (fill_in_lock_file_name):
11704         ANSIfy.
11705         Check for IS_ANY_SEP instead of '/'.
11706         (lock_file_1):
11707         Avoid generating gratuitous garbage.  Call user_login_name() directly.
11708         Never check errno without first seeing that system call failed.
11709         (unlock_file): Add GCPRO.
11710         (Flock_buffer): Fix docstring.
11711         (Ffile_locked_p): Fix docstring.  Add GCPRO.
11712
11713 2000-04-19  Martin Buchholz  <martin@xemacs.org>
11714
11715         * sysdep.c (get_pty_max_bytes):
11716         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
11717         strings longer than 252 bytes.
11718
11719         * md5.c: Unconditionally include ANSI header <limits.h>
11720
11721         * glyphs-x.c (convert_EImage_to_XImage):
11722         * lisp-union.h (union Lisp_Object):
11723         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
11724
11725 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
11726
11727         * filelock.c (current_lock_owner): Remove unused variable o, p.
11728
11729 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
11730
11731         * callint.c: Remove multiply defined symbol Qlet
11732         (syms_of_callint): ditto.
11733
11734 2000-04-14  Andy Piper  <andy@xemacs.org>
11735
11736         * general.c (syms_of_general): add last-command, this-command, let
11737         and funcall.
11738
11739         * lisp.h: declare various symbols.
11740
11741         * glyphs.h: declare Qwidget_callback_current_channel;
11742
11743         * glyphs-widget.c (syms_of_glyphs_widget): add
11744         Qgui_callback_current_channel.
11745         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
11746
11747         * gui-msw.c (mswindows_handle_gui_wm_command): bind
11748         widget-callback-current-channel when invoking the interactive
11749         arg. Also bind last-command and next-command when invoking the
11750         widget updates.
11751         * gui-x.c (popup_selection_callback): ditto.
11752
11753         * gui.c (get_gui_callback): massage args so that we are always
11754         calling eval. This allows us to add our own variable bindings
11755         outside.
11756
11757         * glyphs-x.c (x_button_instantiate): use
11758         gui_items_to_widget_values since this is GC safe.
11759         (x_progress_gauge_instantiate): ditto.
11760         (x_edit_field_instantiate): ditto.
11761         (x_label_instantiate): ditto.
11762
11763         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
11764         (emacs_Xt_event_widget_focus_out): new function
11765         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
11766         focus.
11767         (emacs_Xt_event_add_widget_actions): new function. add focus
11768         functions as actions.
11769         (init_event_Xt_late): use it.
11770
11771 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
11772
11773         * event-stream.c (Fdispatch_event): Doc fix.
11774
11775 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
11776
11777         * postgresql.c: Remove all references to PQsetenv*.
11778
11779         * postgresql.h: Remove references to PGsetenvHandler object.
11780         * lrecord.h (lrecord_type): Ditto.
11781
11782 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11783
11784         * glyphs-msw.h (struct mswindows_image_instance_data): Added
11785         real_heigh and real_width members, and accessor macros for these.
11786
11787         * glyphs-msw.c (init_image_instance_geometry): New function.
11788         (init_image_instance_from_dibitmap): Use it.
11789         (mswindows_resource_instantiate): Use it.
11790         (init_image_instance_from_xbm_inline): Use it.
11791         (mswindows_initialize_image_instance_mask): Use real bitmap
11792         geometry.
11793         (mswindows_create_resized_bitmap): Ditto.
11794         (mswindows_create_resized_mask): Ditto.
11795
11796         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
11797         and bitmap to their surface size.
11798
11799 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
11800
11801         * process-unix.c (unix_send_process): Guard against process MIA
11802         after Faccept_process_output.
11803
11804 2000-04-11  Ben Wing  <ben@xemacs.org>
11805
11806         * eval.c (unbind_to_hairy): fix brokenness introduced by
11807         nanosecond speed improvements.
11808
11809 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
11810
11811         * sunplay.c (init_device): To play sounds correctly, the device
11812         apparently needs to be initialized at least once by XEmacs.  Make
11813         it so.
11814
11815 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11816
11817         * redisplay.c (add_margin_runes): Add text image glyph
11818           handling.
11819
11820 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
11821
11822         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
11823         gcc is newer than 2.5.
11824
11825 2000-04-06  Colin Rafferty  <colin@xemacs.org>
11826
11827         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
11828
11829         * fns.c (size_bit_vector):
11830         * alloc.c (size_vector):
11831         (make_vector_internal):
11832         (make_bit_vector_internal):
11833         (sweep_bit_vectors_1):
11834         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
11835
11836 2000-04-06  Andy Piper  <andy@xemacs.org>
11837
11838         * gmalloc.c (malloc): undo previous change.
11839         (malloc): ditto.
11840         (free): ditto.
11841         (realloc): ditto.
11842
11843 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
11844
11845         * line-number.c (buffer_line_number): Revert to former version.
11846
11847 2000-04-06  Andy Piper  <andy@xemacs.org>
11848
11849         * gmalloc.c (malloc): add error checking.
11850         (malloc): ditto.
11851         (free): ditto.
11852         (realloc): ditto.
11853
11854         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
11855         button_item_to_widget_value arg.
11856
11857         * glyphs-x.c (x_button_instantiate): add extra
11858         button_item_to_widget_value arg.
11859         (x_progress_gauge_instantiate): ditto.
11860         (x_edit_field_instantiate): ditto.
11861         (x_label_instantiate): ditto.
11862
11863         * gui-x.c (gui_items_to_widget_values_1): add extra
11864         button_item_to_widget_value arg.
11865         (button_item_to_widget_value): add extra menu_item_p arg.
11866
11867         * gui-x.h: change signature of button_item_to_widget_value.
11868
11869         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
11870         button_item_to_widget_value arg.
11871
11872 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11873
11874         * buffer.h (struct buffer): auto_save_modified should be long.
11875
11876 2000-04-05  Andy Piper  <andy@xemacs.org>
11877
11878         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
11879         type.
11880         (button_query_geometry): give a little more room so that athena
11881         buttons fit.
11882
11883 2000-04-05  Andy Piper  <andy@xemacs.org>
11884
11885         * faces.c (complex_vars_of_faces): The widget face should inherit
11886         the font of the gui-element face.
11887
11888 2000-04-04  Andy Piper  <andy@xemacs.org>
11889
11890         * glyphs-x.c (x_button_update): new function. unconditionally
11891         update a button's state when the instance is dirty.
11892         (image_instantiator_format_create_glyphs_x): add x_button_update.
11893         (x_widget_instantiate): remove old resize cruft.
11894
11895 2000-04-02  Andy Piper  <andy@xemacs.org>
11896
11897         * frame.c (change_frame_size_1): The introduction of gutters means
11898         that we need to allow 0 as a potential frame dimension.
11899
11900 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11901
11902         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
11903         image glyph if allow_cursor.
11904         (add_hscroll_rune): Don't allow cursor to border glyph.
11905         (create_text_block): Ditto.
11906
11907         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
11908         text not in buffer.
11909         (redisplay_output_layout): Call ensure_face_cachel_complete for
11910         text image glyph.
11911
11912
11913 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11914
11915         * redisplay.c (add_glyph_rune): Adding text image as text runes.
11916
11917         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
11918         not in buffer
11919
11920         * redisplay-tty.c (tty_output_display_block): Delete the routine
11921         for text image glyph
11922         * redisplay-x.c (x_output_display_block): ditto
11923         * redisplay-msw.c (mswindows_output_display_block): ditto
11924
11925 2000-02-02  Mike Alexander  <mta@arbortext.com>
11926
11927         Note: Some of these were committed by accident as part of other
11928         patches.
11929
11930         * regex.c (regex_compile): Avoid compiler warnings.
11931
11932         * ntproc.c (sys_spawnve): Avoid compiler warnings.
11933
11934         * nt.h: Declare term_ntproc correctly.
11935
11936         * nt.c: Remove incorrect declaration of get_home_directory which
11937         is declared correctly in lisp.h.
11938
11939         * keymap.c (get_keyelt): Avoid compiler warnings.
11940         (raw_lookup_key_mapper): Avoid compiler warnings.
11941
11942         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
11943
11944         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
11945
11946         * filemode.c (mode_string): Avoid compiler warnings.
11947
11948         * file-coding.c (Fcoding_system_aliasee): Add return statement to
11949         avoid warning.
11950
11951         * events-mod.h: Undef some things that winuser.h defines differently.
11952
11953         * data.c (Faset): Avoid compiler warnings.
11954
11955         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
11956
11957 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11958
11959         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
11960         Fall through to simple beep on error.
11961         Replace "extern" by real header file.
11962
11963         * linuxplay.c: Use nativesound.h
11964         (play_sound_data): Return error code. Be less verbose on error.
11965
11966         * sunplay.c: Use nativesound.h
11967         (play_sound_data): Return error code. Be less verbose on error.
11968
11969         * ntplay.c: Use nativesound.h
11970         (play_sound_data): Return fake error code
11971
11972         * sgiplay.c: Use nativesound.h
11973         (play_sound_data): Return error code
11974
11975         * hpplay.c: Use nativesound.h, partially implement
11976         new error code. Break compilation until finished.
11977         (play_sound_data): error code.
11978
11979         * nativesound.h (play_sound_file):
11980           (play_sound_data): Prototype in new header.
11981
11982 2000-03-31  Andy Piper  <andy@xemacs.org>
11983
11984         * glyphs-widget.c: (button_query_geometry): new function. Adjust
11985         for toggle and radio buttons.
11986         (image_instantiator_buttons): use it.
11987
11988 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11989
11990         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
11991         (x_update_horizontal_scrollbar_callback): Return if no mirror was
11992         found. Scrollbar event probably belonged to some old config.
11993
11994 2000-03-31  Andy Piper  <andy@xemacs.org>
11995
11996         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
11997         than 1.
11998         (initialize_widget_image_instance): default layout to
11999         LAYOUT_HORIZONTAL rather than 0.
12000         (widget_instantiate): reverse the item list at the end rather than
12001         every iteration.
12002         (layout_layout): re-code for the border text at the front of the
12003         item list rather than at the end.
12004         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12005         provided by the user.
12006         (widget_query_geometry): comment.
12007
12008 2000-03-30  Andy Piper  <andy@xemacs.org>
12009
12010         * glyphs-widget.c (image_instantiator_layout): allow standard
12011         widget keywords in layouts.
12012
12013         * gutter.c (output_gutter): cope with nil gutter contents.
12014
12015         * frame.c (Fset_frame_properties): add gutter docs.
12016
12017 2000-03-29  Andy Piper  <andy@xemacs.org>
12018
12019         * toolbar-msw.c (TBSTYLE_FLAT): add.
12020         (mswindows_output_toolbar): minor fiddling.
12021
12022 2000-03-29  Andy Piper  <andy@xemacs.org>
12023
12024         * gutter.c (output_gutter): force gutter size recalculation if
12025         what we are trying to display won't fit.
12026         (update_gutter_geometry): new function. A per-gutter version of
12027         update_frame_gutter_geometry.
12028         (update_frame_gutter_geometry): use it.
12029         (redraw_exposed_gutter): add extra debugging output.
12030
12031 2000-03-28  Mike Alexander  <mta@arbortext.com>
12032
12033         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12034         (pdump_file_unmap): Implement it on Windows
12035         (pdump_file_get): Save alocated handles for pdump_file_unmap
12036
12037 2000-03-28  Andy Piper  <andy@xemacs.org>
12038
12039         * gui.c (get_gui_callback): treat Quit specially.
12040
12041 2000-03-27  Andy Piper  <andy@xemacs.org>
12042
12043         * glyphs.c (image_instantiate): be careful to check in the same
12044         way we assigned.
12045
12046 2000-03-27  Didier Verna  <didier@xemacs.org>
12047
12048         * config.h.in: define the proper SMART_INCLUDE macro.
12049         handle renaming of `foo_h_path' to `foo_h_file'.
12050
12051         * database.c: ditto.
12052
12053         * emacs.c: ditto.
12054
12055         * linuxplay.c: ditto.
12056
12057         * terminfo.c: ditto.
12058
12059         * tooltalk.h: ditto.
12060
12061 2000-03-27  Andy Piper  <andy@xemacs.org>
12062
12063         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12064         gets updated whenever the face might have changed.
12065
12066 2000-03-26  Mike Alexander  <mta@arbortext.com>
12067
12068         * dumper.c (pdump_resource_free): Fix the comment.
12069
12070 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12071
12072         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12073
12074 2000-03-22  Mike Alexander  <mta@arbortext.com>
12075
12076         * dumper.c: Include Windows headers on Windows
12077         (pdump_resource_free): Add a body to the function
12078         (pdump_load): exe_name -> exe_path and add some comments.
12079
12080 2000-03-25  Mike Alexander  <mta@arbortext.com>
12081
12082         * gui.c (copy_gui_item_tree): Return a value in all cases
12083
12084 2000-03-21  Didier Verna  <didier@xemacs.org>
12085
12086         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12087         lwlib/config.h.in.
12088         (SMART_INCLUDE): new macro.
12089         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12090         the proper location.
12091
12092         * postgresql.c: use it.
12093
12094         * inline.c: ditto.
12095
12096 2000-03-24  Andy Piper  <andy@xemacs.org>
12097
12098         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12099         do this.
12100
12101 2000-03-24  Andy Piper  <andy@xemacs.org>
12102
12103         * redisplay-output.c (compare_runes): use image_instance_changed
12104         to detect changes. Do not depend on glyphs_changed, only depend on
12105         dirtiness.
12106          (redisplay_output_layout): add debug messages.
12107         (compare_runes): ditto.
12108
12109         * glyphs.h: declare new functions.
12110         (struct Lisp_Image_Instance): remove percent and associated
12111         accessors.
12112
12113         * gui.h: declare new copying functions.
12114
12115         * gui.c (copy_gui_item_tree): new function.
12116         (copy_gui_item): new function.
12117         (gui_item_id_hash): revert to standard hash.
12118         (gui_item_hash): ditto.
12119         (gui_item_hash_internal): deleted.
12120         (mark_gui_item): mark value.
12121         (gui_item_add_keyval_pair): add value.
12122         (gui_item_init): ditto.
12123         (gui_add_item_keywords_to_plist): ditto.
12124         (gui_item_equal): ditto.
12125         (syms_of_gui): add Q_value.
12126
12127         * glyphs-x.c (x_progress_gauge_update): use pending items and
12128         value for setting the state.
12129         (x_update_widget): don't set items from pending here.
12130
12131         * glyphs-widget.c (update_widget): update items here.
12132         (progress_gauge_set_property): use items for storing value. Put
12133         new value in pending items.
12134
12135         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12136         items for new value. Convert percent -> value.
12137         (mswindows_tab_control_update): don't update items here.
12138
12139         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12140         (update_subwindow): ditto.
12141         (image_instance_changed): new function. Compare hash values and
12142         past and present widget items.
12143         (image_instantiate): We more careful about where we instantiate
12144         things.
12145         (image_instantiate): add error checking.
12146
12147         * gutter.c (syms_of_gutter): use -hook.
12148
12149 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12150
12151         * console-tty.c (Fset_console_tty_input_coding_system): Use
12152         Qkeyboard.
12153         (Fset_console_tty_output_coding_system): Use Qterminal.
12154         (tty_init_console): Use Qkeyboard and Qterminal.
12155
12156 2000-03-21  Ben Wing  <ben@xemacs.org>
12157
12158         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12159         From Mike Alexander <mta@arbortext.com>.
12160
12161 2000-03-21  Ben Wing  <ben@xemacs.org>
12162
12163         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12164         process brokenness.  Proper implementation to come.
12165         * callproc.c:
12166         Rename call-process-internal to old-call-process-internal.
12167         New impl. in process.el.
12168
12169 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12170
12171         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12172
12173 2000-03-20  Andy Piper  <andy@xemacs.org>
12174
12175         * glyphs.c (full_list_hash): make hashes of the same elements in
12176         different orders return different values.
12177
12178 2000-03-20  Martin Buchholz <martin@xemacs.org>
12179
12180         * XEmacs 21.2.32 is released.
12181
12182 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12183
12184         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12185         (DFC_MALLOC_USE_CONVERTED_DATA):
12186         Add aliasing-safe casts to allow use with char* or unsigned char*
12187         lvalues.
12188
12189         * eldap.c (Fldap_open):
12190         (Fldap_search_basic):
12191         (Fldap_add):
12192         (Fldap_modify):
12193         Make C++-compilable.
12194         Make sure GCPRO'ed variables are initialized.
12195         Use temp variables to avoid repeated calls to Flength.
12196
12197 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12198
12199         * sysfile.h:
12200         Make sure PATH_MAX is always defined.
12201         Include limits.h for PATH_MAX.
12202         Deprecate use of MAXPATHLEN.
12203
12204 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12205
12206         * emacs.c: Add reinit_vars_of_fileio.
12207         * symsinit.h: Add reinit_vars_of_fileio.
12208         * fileio.c (reinit_vars_of_fileio): New.
12209         * fileio.c (Fmake_temp_name):
12210         Initialize temp_name random number from microseconds to make
12211         collisions even less likely.  Initialize always at process startup
12212         time.  (make-temp-name) used to return the same file name twice in
12213         a row when PDUMP.
12214         Random stylistic fiddling.
12215         Comment fixes.
12216
12217 2000-03-20  Andy Piper  <andy@xemacs.org>
12218
12219         * glyphs.c (image_instantiate): allow text glyphs to be
12220         instantiated in the minibuffer window.
12221
12222 2000-03-19  Andy Piper  <andy@xemacs.org>
12223
12224         * glyphs.c (image_instance_hash): be careful about which items we
12225         hash on.
12226
12227         * glyphs-widget.c (tab_control_set_property): record into pending
12228         items rather than the actual items.
12229
12230         * glyphs-x.c (x_update_widget): use pending items to update with.
12231
12232         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12233         to update with.
12234
12235         * glyphs.c (mark_image_instance): mark pending items.
12236
12237         * window.c (Fset_window_configuration): record the buffer.
12238         (Fselect_window): totally revert previous change which breaks many
12239         things.
12240
12241 2000-03-18  Andy Piper  <andy@xemacs.org>
12242
12243         * glyphs-msw.c (mswindows_tab_control_update): force selected
12244         item.
12245
12246         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12247         window domain cache, otherwise we get inconsistencies at
12248         startup. There is something fishy at startup which can lead to the
12249         minibuffer being the selected window when the gutter content is
12250         instantiated.
12251
12252         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12253         gcpros.
12254         (parse_gui_item_tree_children): ditto.
12255         (parse_gui_item_tree_item): ditto.
12256
12257         * glyphs.c (Fupdate_widget_instances): return something.
12258
12259 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12260
12261         * window.c (Fselect_window): Undo 2000-03-17 change.
12262
12263 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12264
12265         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12266         against v7.0 libraries.  Insta-coredump city until the postgres
12267         folks fix it.
12268
12269 2000-03-17  Andy Piper  <andy@xemacs.org>
12270
12271         * faces.c (complex_vars_of_faces): don't give the widget face an
12272         inherited background pixmap.
12273
12274         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12275         selected item.
12276
12277         * event-stream.c (Fdispatch_non_command_events): return something.
12278
12279         * gutter.c (output_gutter): use widget face.
12280         (clear_gutter): ditto.
12281
12282         * NEWS: adjust again.
12283
12284         * window.c (Fselect_window): make sure this runs to completion to
12285         avoid oddities with Fset_window_configuration.
12286         (Fcurrent_window_configuration): in general do not save the
12287         minibuffer as the selected window.
12288
12289         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12290
12291 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12292
12293         * emacs.c (Frunning_temacs_p): Revert previous patch.
12294         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12295
12296 2000-03-16  Andy Piper  <andy@xemacs.org>
12297
12298         * glyphs-x.c (x_tab_control_update): if no widget values then
12299         return.
12300
12301         * NEWS: update for new features.
12302
12303         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12304         synthetic event to the native system.
12305         (reinit_vars_of_event_Xt): set force_event_pending to
12306         emacs_Xt_force_event_pending.
12307
12308         * events.h (struct event_stream): add force_event_pending.
12309
12310         * specifier.c (recompute_one_cached_specifier_in_window): add
12311         comment.
12312
12313         * redisplay.c (redisplay_frame): don't call
12314         update_frame_subwindows. Reset subwindow cachels when
12315         subwindows_changed, removing this was an optimization too far.
12316
12317         * redisplay-output.c (compare_runes): reorganize so that we catch
12318         glyph changes when we want them. Set optimize_output when this
12319         would help layouts.
12320         (redisplay_output_layout): remove frame_really_changed, use
12321         optimize_output instead.
12322
12323         * redisplay-msw.c (mswindows_output_display_block): reset
12324         optimize_output after outputting a glyph.
12325         * redisplay-x.c (x_output_display_block): ditto.
12326         * redisplay-tty.c (tty_output_display_block): ditto.
12327
12328         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12329         functions.
12330         (gutter_specs_changed): do specific gutter positions.
12331         (top_gutter_specs_changed): new function. Only update the
12332         specified gutter specs.
12333         (bottom_gutter_specs_changed): ditto.
12334         (left_gutter_specs_changed): ditto.
12335         (right_gutter_specs_changed): ditto.
12336
12337         * gui.c (gui_item_hash_internal): new function, does a real hash.
12338         (gui_item_id_hash): use it.
12339         (gui_item_hash): hash the eval'ed gui_item.
12340
12341         * gui-x.c (popup_selection_callback): send an eval event to call
12342         Fupdate_widget_instances.
12343
12344         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12345         to call Fupdate_widget_instances.
12346
12347         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12348         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12349
12350         * glyphs.c: (update_frame_subwindows): deleted.
12351         (Fupdate_widget_instances): new function for updating the dirty
12352         state of widgets that might have changed.
12353         (syms_of_glyphs): add Qupdate_widget_instances.
12354         (full_list_hash): hash a list completely.
12355         (image_instance_hash): use it for items and properties.
12356
12357         * frame-msw.c (mswindows_size_frame_internal): remove unused
12358         variable.
12359
12360         * faces.h (struct face_cachel): fix comment.
12361
12362         * event-stream.c (Fdispatch_non_command_events): new
12363         function. Process non-command events, forcing an event cycle
12364         beforehand.
12365         (syms_of_event_stream): declare.
12366         (event_stream_force_event_pending): new function. Force an event
12367         on the native event queue so that an event cycle will occur next
12368         time we check.
12369
12370         * event-msw.c:
12371         (struct ntpipe_shove_stream):
12372         (mswindows_enqueue_dispatch_event):
12373         (mswindows_dequeue_dispatch_event):
12374         (mswindows_cancel_dispatch_event):
12375         (mswindows_pump_outstanding_events):
12376         (mswindows_drain_windows_queue):
12377         (mswindows_handle_paint):
12378         (mswindows_wnd_proc):
12379         (mswindows_key_to_emacs_keysym):
12380         (get_process_input_waitable):
12381         (emacs_mswindows_delete_stream_pair): re-indent file.
12382         (mswindows_need_event): do not process further fds if the windows
12383         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12384         fixes the 100% cpu problem.
12385         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12386
12387 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12388
12389         * alloc.h: New.
12390         * dumper.h: New.
12391         * dumper.c: New.
12392
12393         * emacs.c: Moved dump file searching to dumper.c.
12394         (Frunning_temacs_p): Fixed.
12395
12396         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12397         last_lrecord_type_index_assigned.
12398
12399 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12400
12401         * symsinit.h: Added reinit parameter to init_console_stream
12402         declaration.
12403
12404         * lisp.h: Added file parameter to pdump_load declaration.
12405
12406         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12407         support.  Added dump file searching.
12408
12409         * config.h.in: Added EMACS_PROGNAME.
12410
12411         * console-stream.c (init_console_stream): Fix reinitialisation
12412         when running from temacs.
12413
12414         * alloc.c (pdump): Add id support.
12415         (pdump_load): Add file parameter and signature/id support.
12416
12417         * Makefile.in.in: Add full pdump support.
12418
12419 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12420
12421         * postgresql.c: Update documentation to reflect latest code
12422         status.
12423         (print_result): Show tuple counts in printed representation when
12424         appropriate.
12425         (Fpq_put_nbytes): MULE-ize.
12426         (Fpq_get_line_async): Ditto.
12427
12428 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12429
12430         * postgresql.c (Fpq_lo_import): Fix return value.
12431         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12432
12433 2000-03-13  Ben Wing  <ben@xemacs.org>
12434
12435         * alloc.c (pdump_load):
12436         Fix compile warning under mswin.
12437
12438 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12439
12440         * postgresql.c: Mule-ization, bug fixes.
12441         Use PG_CODING to encapsulate coding system name changes.
12442         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12443         (pg-coding-system): Create.
12444
12445         (Fpq_conn_defaults): Mule-ize.
12446         (Fpq_connectdb): Mule-ize & bug fix.
12447         (Fpq_connect_start): Mule-ize.
12448         (Fpq_set_client_encoding): Mule-ize.
12449         (Fpq_finish): Document `DEAD' connection status.
12450         (Fpq_clear): Ditto.
12451         (Fpq_pgconn): Mule-ize.
12452         (Fpq_exec): Mule-ize & bug fix.
12453         (Fpq_send_query): Ditto.
12454         (Fpq_get_result): Ditto.
12455         (Fpq_res_status): Mule-ize.
12456         (Fpq_result_error_message): Mule-ize.
12457         (Fpq_ntuples): fix comments.
12458         (Fpq_fname): Mule-ize.
12459         (Fpq_fnumber): Mule-ize.
12460         (Fpq_ftype): fix comments.
12461         (Fpq_get_value): Mule-ize.
12462         (Fpq_cmd_status): Ditto.
12463         (Fpq_cmd_tuples): Ditto.
12464         (Fpq_oid_value): Ditto.
12465         (Fpq_notifies): Ditto.
12466         (Fpq_lo_import): Ditto.
12467         (Fpq_lo_export): Ditto.
12468         (Fpq_get_line): Ditto.
12469         (Fpq_put_line): Mule-ize and bug fix.
12470         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12471
12472 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12473
12474         * postgresql.c (vars_of_postgresql): Mule-ize.
12475         (Fpq_conn_defaults): Ditto.
12476
12477 2000-03-12  Ben Wing  <ben@xemacs.org>
12478
12479         * alloc.c (Fmake_byte_code):
12480         * alloc.c (debug_string_purity_print):
12481         * alloc.c (pdump_backtrace):
12482         * alloc.c (pdump_get_indirect_count):
12483         * alloc.c (pdump_register_sub):
12484         * alloc.c (pdump_register_object):
12485         * alloc.c (pdump_register_struct):
12486         * alloc.c (pdump_dump_data):
12487         * alloc.c (pdump_reloc_one):
12488         Minor cleanups.
12489
12490         * console-msw.c:
12491         * console-msw.c (GetConsoleHwnd):
12492         * console-msw.c (msw_hide_console):
12493         * console-msw.c (msw_show_console):
12494         * console-msw.c (msw_ensure_console_buffered):
12495         * console-msw.c (msw_output_console_string):
12496         * console-msw.c (console_type_create_mswindows):
12497
12498         a) Added functions to manipulate the console window for use with
12499         shell support.
12500
12501         b) Added support for writing text to the console, which is now
12502         used under Windows when xemacs is not being run non-interactively,
12503         to write text that would otherwise be destined for stdout because
12504         under these circumstances, text written to stdout tends to
12505         disappear and not be seen.
12506
12507         * console-msw.h:
12508         * event-Xt.c:
12509         * event-Xt.c (x_event_to_emacs_event):
12510         * event-Xt.c (describe_event_window):
12511         * events-mod.h (XEMACS_MOD_CONTROL):
12512         * events.c:
12513         * events.c (Fmake_event):
12514         * events.c (character_to_event):
12515         * events.c (event_to_character):
12516         * events.c (format_event_object):
12517         * events.c (Fevent_modifiers):
12518         * events.h:
12519         * events.h (struct key_data):
12520         * events.h (struct button_data):
12521         * events.h (struct misc_user_data):
12522         * frame-x.c (Fcde_start_drag_internal):
12523         * frame-x.c (Foffix_start_drag_internal):
12524         * gpmevent.c (Freceive_gpm_event):
12525         * keymap.c:
12526         * keymap.c (bucky_sym_to_bucky_bit):
12527         * keymap.c (control_meta_superify):
12528         * keymap.c (make_key_description):
12529         * keymap.c (keymap_lookup_directly):
12530         * keymap.c (create_bucky_submap):
12531         * keymap.c (keymap_store):
12532         * keymap.c (define_key_check_and_coerce_keysym):
12533         * keymap.c (define_key_parser):
12534         * keymap.c (define_key_alternate_name):
12535         * keymap.c (Fdefine_key):
12536         * keymap.c (raw_lookup_key_mapper):
12537         * keymap.c (struct map_keymap_unsorted_closure):
12538         * keymap.c (map_keymap_unsorted_mapper):
12539         * keymap.c (map_keymap_sort_predicate):
12540         * keymap.c (map_keymap_sorted):
12541         * keymap.c (accessible_keymaps_mapper_1):
12542         * keymap.c (where_is_recursive_mapper):
12543         * keymap.c (describe_map_mapper):
12544         * keymap.c (describe_map_sort_predicate):
12545         * keymap.c (describe_map):
12546         * keymap.c (complex_vars_of_keymap):
12547         And a number of other files, the key modifier preprocessor
12548         constants that xemacs uses have names that conflict with constants
12549         defined under MS Windows for other purposes, so they were renamed
12550         to begin with the prefix XEMACS_. The variables that hold such
12551         modifiers were changed to consistently be of type int to fix
12552         various compile warnings.
12553
12554         * console.c (complex_vars_of_console):
12555         * device.c:
12556         * device-msw.c:
12557         * device-msw.c (mswindows_finish_init_device):
12558         * device-msw.c (msw_get_workspace_coords):
12559         * device-msw.c (mswindows_device_system_metrics):
12560         and various other files, added support for a new
12561         device property called offset-workspace which returns the position
12562         of the upper left corner of the workspace area and goes along with
12563         the existing size-workspace property.
12564
12565         * dialog-msw.c:
12566         * dialog-msw.c (push_bufbyte_string_as_unicode):
12567         * dialog-msw.c (mswindows_popup_dialog_box):
12568         Added support for XEmacs-style accelerator specifications in
12569         button text.  Note: I didn't add support for this under X Windows,
12570         and somebody needs to do this.
12571
12572         * dialog.c:
12573         * dialog.c (Fpopup_dialog_box):
12574         Documented the support for accelerators that was just mentioned.
12575
12576         editfns.c (get_home_directory): Changed behavior under Windows
12577         when HOME not defined; former behavior was irretrievably broken.
12578
12579         * emacs.c:
12580         * emacs.c (main_1):
12581         * emacs.c (main):
12582         * minibuf.c (clear_echo_area_internal):
12583         * minibuf.c (echo_area_append):
12584         * print.c:
12585         * print.c (std_handle_out_external):
12586         * print.c (std_handle_out_va):
12587         * print.c (fatal):
12588         * print.c (write_string_to_stdio_stream):
12589         * print.c (output_string):
12590         * print.c (debug_print):
12591         * print.c (debug_backtrace):
12592         * print.c (debug_short_backtrace):
12593         Cleaned up the code that prints text to stdout so that this can be
12594         changed to output into a console window instead under MS Windows,
12595         as described above.
12596
12597         * eval.c:
12598         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
12599         * eval.c (internal_catch):
12600         * eval.c (unwind_to_catch):
12601         * eval.c (throw_or_bomb_out):
12602         * eval.c (condition_case_1):
12603         * eval.c (signal_1):
12604         * eval.c (check_error_state_sanity):
12605         * eval.c (call_with_suspended_errors_1):
12606         * eval.c (call_with_suspended_errors):
12607         * eval.c (reinit_vars_of_eval):
12608         Added code to catch throw loops and check for a pesky bug that may
12609         be gone now.
12610
12611         * event-msw.c:
12612         * event-msw.c (key_needs_default_processing_p):
12613         * event-msw.c (mswindows_wnd_proc):
12614         * event-msw.c (mswindows_modifier_state):
12615         * event-msw.c (emacs_mswindows_quit_p):
12616         * event-msw.c (vars_of_event_mswindows):
12617         a) Added support for using the alt key to select menu items as is
12618         standard under MS Windows.  This is controlled using the variable
12619         menu-accelerator-enabled, just like under X Windows.  There is an
12620         option on the options menu to turn this support on.  I really
12621         think that it should be on by default under Windows, but I'm not
12622         going to make this change yet.
12623
12624         b)  Added support for dynamic display size changes under Windows.
12625
12626         * event-stream.c:
12627         * event-stream.c (maybe_echo_keys):
12628         * event-stream.c (Fnext_event):
12629         * event-stream.c (command_builder_find_leaf):
12630         * event-stream.c (lookup_command_event):
12631         * event-stream.c (execute_command_event):
12632         * event-stream.c (pre_command_hook):
12633         * event-stream.c (post_command_hook):
12634         * event-stream.c (syms_of_event_stream):
12635         * event-stream.c (vars_of_event_stream):
12636         * event-stream.c (complex_vars_of_event_stream):
12637         * events.h (struct command_builder):
12638
12639         a) Tried to clean up a little bit the horribly written x-specific
12640         accelerator code that crept into this file.  I moved this code
12641         into menubar-x.c where it belongs. I also needed to move the
12642         command builder structure into the file events.h because it is
12643         accessed directly by this accelerator code.  What I didn't do, but
12644         which should be done at some point, is to properly abstract this
12645         code using device methods instead of the kludgy way that it
12646         currently hooks into the event code.
12647
12648         b) Added the lisp variables this-command-properties and
12649         last-command- properties, which should be used to synchronize two
12650         adjacent commands in preference to playing games with the variable
12651         this-command, which is typically what happens.
12652
12653         c) Added some slightly nasty code to hook into the lisp support
12654         for shifted- motion-key selection.  This is actually necessary for
12655         somewhat complicated reasons, which are described in
12656         simple.el. (NB: I think the proper thing would be to have the code
12657         that calls the pre and post command hooks also call out to generic
12658         lisp functions in simple.el, where all built-in stuff could be
12659         added.  I will think about this more.)
12660
12661         * event-unixoid.c (poll_fds_for_input):
12662         * lread.c (readchar):
12663         * redisplay-tty.c (tty_clear_frame):
12664         * redisplay-x.c (x_get_gc):
12665         * signal.c (interrupt_signal):
12666         And a whole bunch of other files: fixed up places that printed
12667         directly to stderr to instead call the function stderr_out so that
12668         the changes I made under Windows work correctly.
12669
12670         * filemode.c (mode_string):
12671         Warning fixes.
12672
12673         * frame-msw.c:
12674         * frame-msw.c (mswindows_size_frame_internal):
12675         Fixed the computation of frame size and position to keep the frame
12676         within the workspace area, rather than within the physical
12677         dimensions of the screen, so that the frame doesn't overlap window
12678         manager decorations, such as the start menu and toolbar, typically
12679         at the bottom of the screen.
12680
12681         * frame.c (vars_of_frame):
12682         Changed the default frame title format under MS Windows to consist
12683         of buffername-XEmacs, which is standard under MS Windows.  I think
12684         it might be a good idea to change this everywhere because I think
12685         it is superior to the current frame title format, but this is the
12686         kind of change that is likely to cause some people to get annoyed,
12687         so I'm not making it.
12688
12689         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
12690
12691         * gui-msw.c (mswindows_handle_gui_wm_command):
12692         Fixed compile warnings.
12693
12694         * gui-x.c:
12695         * gui-x.c (strdup_and_add_accel):
12696         * gui-x.c (button_item_to_widget_value):
12697         * gui-x.h:
12698         Added code to automatically put an accelerator onto the beginning
12699         of menu items that don't have one as is now the standard, and is
12700         described more later.  Also fixed things so that the menu item
12701         name can be an evaluated expression, again a new standard.
12702
12703         * gui.c:
12704         * gui.c (gui_item_add_keyval_pair):
12705         * gui.c (make_gui_item_from_keywords_internal):
12706         * gui.c (gui_add_item_keywords_to_plist):
12707         * gui.c (gui_item_accelerator):
12708         * gui.c (gui_name_accelerator):
12709         * gui.c (gui_item_included_p):
12710         * gui.c (gui_item_display_flush_left):
12711         * gui.c (gui_item_display_flush_right):
12712         * gui.c (parse_gui_item_tree_item):
12713         * gui.c (parse_gui_item_tree_children):
12714         * gui.c (parse_gui_item_tree_list):
12715         Mule-ized.  Cleanup.  GCPRO addition.
12716
12717         * line-number.c (buffer_line_number):
12718         * lisp.h:
12719         * lisp.h (EMACS_INT_MAX):
12720         Added the manifest constant EMACS_INT_MIN corresponding to the
12721         existing constant EMACS_INT_MAX.  This is partially to fix compile
12722         warnings under Windows, and partly for cleanliness.
12723
12724         * menubar-msw.c:
12725         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
12726         * menubar-msw.c (msw_translate_menu_or_dialog_item):
12727         * menubar-msw.c (displayable_menu_item):
12728         * menubar-msw.c (populate_menu_add_item):
12729         * menubar-msw.c (populate_or_checksum_helper):
12730         * menubar-msw.c (populate_menu):
12731         * menubar-msw.c (update_frame_menubar_maybe):
12732         * menubar-msw.c (prune_menubar):
12733         * menubar-msw.c (msw_char_is_accelerator):
12734         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
12735         * menubar-msw.c (mswindows_handle_wm_command):
12736         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
12737         * menubar-msw.c (mswindows_handle_wm_initmenu):
12738         * menubar-msw.c (mswindows_update_frame_menubars):
12739         * menubar-msw.c (mswindows_free_frame_menubars):
12740         * menubar-msw.c (mswindows_popup_menu):
12741         Fixed a bug in handling accelerators where an extra character
12742         would be displayed in the menu item.  Also generalized the
12743         function displayable_menu_item because it is now used by the
12744         dialog box code as well.  And finally, added code in the functions
12745         that create the menubar to extract a list of accelerators for the
12746         top level menubar, which is used in the event code to determine
12747         whether a particular alt-key combination should be used to invoke
12748         a menu item, or should be passed through to access the standard
12749         XEmacs keymap binding for this key combination.
12750
12751         Much needed GCPROing.
12752
12753         * menubar-x.c:
12754         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12755         * menubar-x.c (menu_item_descriptor_to_widget_value):
12756         * menubar-x.c (restore_in_menu_callback):
12757         * menubar-x.c (x_popup_menu):
12758         * menubar-x.c (menu_move_up):
12759         * menubar-x.c (menu_move_down):
12760         * menubar-x.c (menu_move_left):
12761         * menubar-x.c (menu_move_right):
12762         * menubar-x.c (menu_select_item):
12763         * menubar-x.c (command_builder_operate_menu_accelerator):
12764         * menubar-x.c (menu_accelerator_junk_on_error):
12765         * menubar-x.c (command_builder_find_menu_accelerator):
12766         * menubar-x.c (Faccelerate_menu):
12767         * menubar.h:
12768         Moved a whole bunch of code here that was previously in
12769         event-stream.c as described above.  There is also code connected
12770         to the new standard of adding an accelerator to the beginning of
12771         menu items that don't have one as described above and below.
12772
12773         * menubar.c:
12774         * menubar.c (menu_parse_submenu_keywords):
12775         * menubar.c (Fmenu_find_real_submenu):
12776         * menubar.c (Fnormalize_menu_item_name):
12777         * menubar.c (syms_of_menubar):
12778         * menubar.c (vars_of_menubar):
12779         * menubar.c (complex_vars_of_menubar):
12780
12781         a) Cleaned up a bunch of documentation and improved it.
12782
12783         b) XEmacs now automatically adds an accelerator onto the beginning
12784         of any menu items that don't have one.  I did this because there
12785         will inevitably be some menu items on the main menubar that don't
12786         have accelerators on them because the package that adds that
12787         particular menu item hasn't yet been fixed up to have accelerators
12788         in them and it looked rather strange to have some items with and
12789         some items without accelerators, especially since even in items
12790         without accelerators, you can, at least under windows, still
12791         access the item through an accelerator corresponding to the first
12792         character in the item's name.  If people don't like this behavior,
12793         I can add a variable to turn it off optionally, but I'm not sure
12794         this is a good idea because we really do need to have accelerators
12795         on all of the menu items, and if a package doesn't like the
12796         accelerators being put on the first character, then it should put
12797         the accelerators where they belong.
12798
12799         c) I made a behavior change, which is that the descriptor that
12800         specifies the text of the menu item, which formerly was just a
12801         string, can now also be an evaluated expression.  This makes this
12802         descriptor parallel with all of the others, which could also be
12803         evaluated expressions.  This also obviates the need for the
12804         keyword :label, which was previously listed in the documentation
12805         as unimplemented, and which was for the same purpose.
12806
12807         d) GCPROing.
12808
12809         * ntproc.c:
12810         * ntproc.c (new_child):
12811         * ntproc.c (sys_spawnve):
12812         * ntproc.c (find_child_console):
12813         * ntproc.c (sys_kill):
12814         Fixed compile warnings.  By the way, this file should really go
12815         away entirely, and this will happen as soon as Kirill makes his
12816         final round of process cleanups, which affect the function
12817         call-process.
12818
12819         * process-nt.c:
12820         * process-nt.c (struct nt_process_data):
12821         * process-nt.c (find_process_from_pid):
12822         * process-nt.c (send_signal_the_nt_way):
12823         * process-nt.c (enable_child_signals):
12824         * process-nt.c (find_child_console):
12825         * process-nt.c (send_signal_the_95_way):
12826         * process-nt.c (nt_finalize_process_data):
12827         * process-nt.c (ensure_console_window_exists):
12828         * process-nt.c (nt_create_process):
12829         * process-nt.c (nt_kill_child_process):
12830         * process-nt.c (nt_kill_process_by_pid):
12831         * process-nt.c (nt_open_network_stream):
12832         * process-nt.c (vars_of_process_nt):
12833         Copied over code from Emacs 20.5 to correctly send signals to sub-
12834         processes under Windows 95.  Also added code to automatically
12835         create and hide console window when a sub-process is created under
12836         Windows 95, which obviates the need for the separate runemacs.exe
12837         executable, and finally implemented some variables that were
12838         implemented in Emacs 20.5, but previously not in XEmacs.  These
12839         include mswindows- start-process-share-console and
12840         mswindows-start-process-inherit-error-mode. (Both of these only
12841         apply to Windows 95.)
12842
12843         * regex.c (regex_compile): Fixed a compile warning.
12844
12845         * select-msw.c:
12846         * select-msw.c (mswindows_own_selection):
12847         * select-msw.c (mswindows_get_foreign_selection):
12848         * select-msw.c (mswindows_disown_selection):
12849         * select-msw.c (console_type_create_select_mswindows):
12850         * select-msw.c (syms_of_select_mswindows):
12851         Cleaned up the file and implemented the device method
12852         selection_exists_p, which had accidentally been left out.  Also
12853         removed four lisp functions that were remnants from before the
12854         time when the selection code was properly device abstracted.
12855         These functions are no longer needed because there are generic
12856         equivalents, and because they were added recently and don't exist
12857         in FSF Emacs, I don't think there's any problem with just deleting
12858         them.
12859
12860         * sysdep.c:
12861         * sysdep.c (sys_subshell):
12862         Fixed a compile warning, although in this case there's probably
12863         something wrong with this code, and it ought to be looked into
12864         more thoroughly by somebody who understands it.
12865
12866         * window.c:
12867         * window.c (Fwindow_text_area_height):
12868         * window.c (Fwindow_width):
12869         * window.c (Fwindow_full_width):
12870         * window.c (Fwindow_pixel_width):
12871         * window.c (debug_print_window):
12872         * window.c (syms_of_window):
12873         Added functions window-text-area-height and window-full-width,
12874         which are functions for returning various width and height
12875         characteristics of a window. (One of these functions is necessary
12876         for making the file dialog box work correctly, and the other one
12877         was added for completeness.)  Also added a table to the
12878         documentation for window-height which describes the entire scheme
12879         for accessing width and height characteristics of a window.
12880
12881 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12882
12883         * nt.c (fstat): Added a comment for another problem with
12884         non-encapsulated [f]stat(), reported by Adrian Aichner
12885         <aichner@ecf.teradyne.com>.
12886
12887 2000-03-11  Andy Piper  <andy@xemacs.org>
12888
12889         * window.c (make_dummy_parent): initialize subwindow instance
12890         cache.
12891         (Fset_window_configuration): zero extent_modiff.
12892
12893 2000-03-10  Andy Piper  <andy@xemacs.org>
12894
12895         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
12896         more changes can be triggered.
12897         (Fredisplay_frame): ditto.
12898         (Fredraw_device): ditto.
12899         (Fredisplay_device): ditto.
12900         (redisplay_frame): make non-static.
12901         (redisplay_frame): call update_frame_gutter_geometry outside of
12902         display proper.
12903
12904         * gutter.h: declare update_frame_gutter_geometry.
12905
12906         * redisplay.h: declare redisplay_frame.
12907
12908         * gutter.c (update_frame_gutter_geometry): move geometry changes
12909         in update_frame_gutters here. Geometry changes can only occur
12910         outside of redisplay.
12911         (update_frame_gutters): remove geometry change code.
12912         (Fredisplay_gutter_area): make sure that we are in display when we
12913         update and that we have flushed any size changes.
12914
12915 2000-03-11  Andy Piper  <andy@xemacs.org>
12916
12917         * alloc.c (pdump_dump_data): remove i & count shadows.
12918
12919 2000-02-27  Mike Alexander  <mta@arbortext.com>
12920
12921         * sysdep.h: Declare pdump_read_file
12922
12923         * sysdep.c (pdump_read_file): New function
12924
12925         * alloc.c (pdump_load): Call pdump_read_file to get the portable
12926         dump data
12927
12928 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12929
12930         * lrecord.h: add `lrecord_type_pgsetenv'.
12931
12932 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
12933
12934         * symsinit.h: declare (vars|syms)_of* functions.
12935         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
12936
12937 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
12938
12939         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
12940
12941         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
12942         GCCs.
12943
12944         * emacs.c (main_1): Call postgres initialization code.
12945
12946         * postgresql.h: New file.  PostgreSQL RDBMS support.
12947         * postgresql.c: New file.
12948
12949 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12950
12951         * redisplay-output.c (redisplay_output_display_block): Disable
12952         redundant code.
12953
12954 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12955
12956         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
12957         (Fcanna_henkan_next): Ditto.
12958         (Fcanna_bunsetu_henkou): Ditto.
12959         (Fcanna_henkan_kakutei): Ditto.
12960         (Fcanna_henkan_end): Ditto.
12961         (Fcanna_henkan_quit): Ditto.
12962         (Fcanna_henkan_next): Set retun value correctly.
12963         (c2mu): Use unsigned char instead of signed char.
12964
12965 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12966
12967         * emacs.c (main_1): Always call syms_of_gui.
12968         * inline.c: include gui.h
12969
12970 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12971
12972         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
12973         converted to Lisp_Object.
12974         (Qtop_bottom): New variable.
12975         (syms_of_redisplay): Initialize it.
12976         * redisplay.h (Vvisible_bell): Ditto.
12977         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
12978         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
12979         only flash top and bottom.
12980
12981 2000-03-08  Andy Piper  <andy@xemacs.org>
12982
12983         * buffer.c (Frename_buffer): record new buffer name the right way.
12984
12985 2000-03-08  Andy Piper  <andy@xemacs.org>
12986
12987         * glyphs.c (update_subwindow): increase hash depth so that widget
12988         items get picked up properly.
12989
12990         * redisplay-output.c (compare_runes): increase hash depth so that
12991         widget items get picked up properly.
12992
12993 2000-03-08  Andy Piper  <andy@xemacs.org>
12994
12995         * gutter.c (output_gutter): add some debug.
12996
12997         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
12998         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
12999         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13000
13001         * redisplay-output.c (compare_runes): use display_hash to
13002         determine if glyphs really are not the same.
13003
13004         * glyphs.c (update_subwindow): check display_hash to see if
13005         anything really needs to be updated. If not then do
13006         nothing. Record the display_hash after updating.
13007         (image_instance_equal): compare the image_instance face also.
13008
13009 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13010
13011         * redisplay.h: Fix comment style.
13012
13013 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13014
13015         * consle-msw.h (struct mswindows_frame):
13016         Added new member paint_pending to indicate whether a WM_PAINT
13017         magic event has been queued for this frame.
13018
13019         * event-msw.c (mswindows_drain_windows_queue):
13020         Don't queue a WM_PAINT magic event if one is already queued.
13021         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13022
13023         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13024
13025 2000-03-07  Didier Verna  <didier@xemacs.org>
13026
13027         * dired.c: #include `regex.h' after `sysfile.h'.
13028
13029 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13030
13031         * sound.c (init_nas_sound): Fix compiler warning.
13032
13033         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13034         (FREE_STRUCT_P):
13035         (MARK_STRUCT_AS_FREE):
13036         (MARK_STRUCT_AS_NOT_FREE):
13037         Make `gcc -fstrict-aliasing' work properly.
13038
13039 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13040
13041         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13042         (mswindows_delete_device): Call CoUnnitialize().
13043
13044         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13045
13046 2000-02-25    <CraigL@DyCon.com>
13047
13048         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13049         <errno.h>.
13050
13051         * sysdep.c: This extern declaration for environ prevents MinGW
13052         from finding the variable in CRTDLL.DLL.
13053
13054         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13055         windows headers.
13056         (SHGFI_EXETYPE): ..
13057         (WM_MOUSEWHEEL): ..
13058         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13059         definitions.
13060         (MMRESULT): Removed, now defined in cygwin's windows headers.
13061         (TIMECAPS): ..
13062         (uid_t,gid_t,pid_t,ssize_t): ..
13063         (_timeb): Removed, MinGW defines both _timeb and timeb.
13064         (HAVE_H_ERRNO): Added.
13065         (HAVE_TZNAME): Added, configure is not detecting this.
13066
13067 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13068
13069         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13070         * syntax.c (syntax_match): Use it.
13071
13072         * cmds.c: Import auto-fill-chars from FSF Emacs.
13073         (Vauto_fill_chars): New variables.
13074         (internal_self_insert): Check Vauto_fill_chars.
13075         (vars_of_cmds):
13076         Declare auto-fill-chars as a Lisp variable and initialize it.
13077
13078 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13079
13080         * fileio.c (Fmake_symbolic_link):
13081         (Ffile_symlink_p):
13082         Run handlers even if local machine doesn't have symlinks.
13083
13084 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13085
13086         * event-msw.c (mswindows_drain_windows_queue):
13087         Don't generate paint magic events for non-XEmacs frames.
13088
13089 2000-03-05  Andy Piper  <andy@xemacs.org>
13090
13091         * redisplay.c (redisplay_frame): generate_displayable_area and
13092         friends assumes that we are not in GC, we therefore have to make
13093         sure that this doesn't happen.
13094
13095         * gutter.c (calculate_gutter_size): generate_displayable_area
13096         assumes that we are not in GC, we therefore have to make sure that
13097         this doesn't happen.
13098
13099 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13100
13101         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13102
13103 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13104
13105         * redisplay.c (regenerate_window): Make sure we set a sane value
13106         for end_pos even if we jump out of the loop.
13107         (regenerate_window): Answer Ben's question :-).
13108         (start_end_of_last_line): Add may_error argument.
13109         (start_of_last_line):
13110         (end_of_last_line): Pass may_error = 0.
13111         (end_of_last_line_may_error): New function.
13112         (pixel_to_glyph_translation): Use it, so we don't crash in
13113         event_to_glyph.
13114
13115 2000-03-04  Andy Piper  <andy@xemacs.org>
13116
13117         * window.h (struct window): add gutter_extent_modiff.
13118
13119         * window.c (allocate_window): zero out gutter_extent_modiff.
13120
13121         * redisplay.h: declare sync_display_line_structs.
13122
13123         * redisplay.c (add_glyph_rune): add a better comment.
13124
13125         * redisplay-output.c (sync_display_line_structs): made non-static.
13126         (compare_runes): remove unneccesary glyph cachel access.
13127
13128         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13129
13130         * gutter.c (output_gutter): don't output the gutter if extent
13131         changes only involve extents in buffers. use 4 sets of display
13132         lines.
13133         (gutter_extent_signal_changed_region_maybe): new function. Mark
13134         extents in gutters as changed.
13135         (update_frame_gutters): use 4 sets of display lines.
13136         (reset_gutter_display_lines): ditto.
13137         (free_frame_gutters): ditto.
13138         (redraw_exposed_gutter): force output of gutters.
13139
13140         * frame.h (struct frame): add 4 sets of gutter display lines.
13141
13142         * extents.c: (extent_changed_for_redisplay): signal changes to
13143         extents in strings in the gutter as well as extents in buffers.
13144
13145 2000-03-02  Andy Piper  <andy@xemacs.org>
13146
13147         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13148
13149         * frame.c (Fmake_frame): make sure the gutters get initialized
13150         after the frame is visible.
13151         (set_frame_selected_window): re-arrange compilation macros a
13152         little.
13153         (change_frame_size_1): mark gutters changed.
13154
13155         * device.c (Fset_device_class): mark gutters changed.
13156
13157 2000-03-01  Andy Piper  <andy@xemacs.org>
13158
13159         * window.c (window_top_frame_gutter_height): deleted.
13160         (window_bottom_frame_gutter_height): ditto.
13161         (window_left_frame_gutter_height): ditto.
13162         (window_right_frame_gutter_height): ditto.
13163         (window_top_gutter_height): don't use them.
13164         (window_bottom_gutter_height): ditto.
13165         (window_left_gutter_width): ditto.
13166         (window_right_gutter_width): ditto.
13167         (Fsplit_window): ditto.
13168         (Fwindow_pixel_edges): don't use border dimensions here.
13169
13170         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13171         (update_scrollbar_instance): ditto.
13172
13173         * redisplay.c (generate_modeline): don't take gutters into account.
13174         (generate_modeline): ditto.
13175         (redisplay_frame): small gutter display optimization.
13176
13177         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13178
13179         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13180         gutters into account.
13181
13182         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13183         for window position and type.
13184
13185         * gutter.c (get_gutter_coords): fix for frame gutters.
13186         (update_frame_gutters): update frame geometry if the gutters have
13187         changed.
13188         (init_frame_gutters): record current gutter geometries.
13189
13190         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13191         var.
13192         (mswindows_widget_instantiate): ditto.
13193
13194         * frame.h (struct frame): add current_gutter_bounds.
13195
13196         * frame.c (change_frame_size_1): position window and minibuffer
13197         appropriately taking into account the frame gutters.
13198
13199         * frame-x.c: (x_initialize_frame_size): take into account the
13200         frame gutters.
13201
13202 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13203
13204         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13205
13206 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13207
13208         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13209
13210 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13211
13212         * file-coding.c (reset_decoding_stream): Clear previous
13213         detection state when autodetect.
13214
13215 2000-02-29  Didier Verna  <didier@xemacs.org>
13216
13217         * extents.c (set_extent_glyph_1): don't require extents to be
13218         attached.
13219
13220 2000-02-27  Andy Piper  <andy@xemacs.org>
13221
13222         * gutter.c (Fset_default_gutter_position): don't default left and
13223         right gutter visibility to t.
13224         (Fset_default_gutter_position): run
13225         default-gutter-position-changed-hook.
13226         (syms_of_gutter): add default-gutter-position-changed-hook.
13227
13228 2000-02-26  Andy Piper  <andy@xemacs.org>
13229
13230         * specifier.c (Fmake_specifier): add gutter references.
13231
13232         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13233
13234         * lisp.h: declare Fvalid_plist_p.
13235
13236         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13237         as changed.
13238         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13239         well as its visibility so that it gets reconstructed.
13240         (construct_window_gutter_spec): new function. Construct a string
13241         to be displayed in the gutter from a plist of strings. Take care
13242         to only use elements that are declared as visible.
13243         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13244         WINDOW_GUTTER.
13245         (gutter_validate): allow plists of strings in the specifier.
13246         (gutter_specs_changed): construct the real_gutter from the gutter
13247         specs using construct_window_gutter_spec.
13248         (gutter_visible_validate): gutter-visible is a new specifier type.
13249         (Fgutter_visible_specifier_p): new function for the new specifier.
13250         (syms_of_gutter): declare gutter-visible and
13251         Fgutter_visible_specifier_p.
13252         (specifier_type_create_gutter): intitalize new gutter-visible
13253         specifier.
13254         (reinit_specifier_type_create_gutter): ditto.
13255         (specifier_vars_of_gutter): use new specifier type for gutter
13256         visibility.
13257         (init_frame_gutters): construct real_gutter correctly.
13258         (Fgutter_specifier_p): beef up documentation.
13259         (Fgutter_size_specifier_p): ditto.
13260
13261         * winslots.h: add real_gutter slots.
13262
13263 2000-02-25  Andy Piper  <andy@xemacs.org>
13264
13265         * device-msw.c: Be kind to older cygwin versions. From Raymond
13266         Toy <toy@rtp.ericsson.se>.
13267
13268         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13269         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13270
13271 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13272
13273         * elhash.c (MARK_OBJ): Practice macro hygiene.
13274
13275 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13276
13277         * miscplay.c: s/__inline__/inline/g;
13278         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13279         (get_device_compdc): INLINE ==> static inline
13280         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13281         find -name '*.h' | \
13282         xargs global-replace \
13283         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13284
13285 2000-02-25  Andy Piper  <andy@xemacs.org>
13286
13287         * window.c (window_top_frame_gutter_height): new function.
13288         (window_top_window_gutter_height): ditto.
13289         (window_top_gutter_height): use them.
13290         (window_bottom_frame_gutter_height): new function.
13291         (window_bottom_window_gutter_height): ditto.
13292         (window_bottom_gutter_height): use them.
13293         (window_left_window_gutter_width): new function.
13294         (window_left_frame_gutter_width): ditto.
13295         (window_left_gutter_width): use them.
13296         (window_right_window_gutter_width): new function.
13297         (window_right_frame_gutter_width): ditto.
13298         (window_right_gutter_width): use them.
13299         (window_pixel_height): new function. calulate window pixel height
13300         with frame gutter involvement.
13301         (Fsplit_window): calculate new sizes taking frame gutters into
13302         account.
13303         (window_char_height_to_pixel_height): don't include frame gutters.
13304         (window_char_height): use window_pixel_height.
13305         (window_pixheight): rename from window_pixel_height.
13306         (change_window_height): use it.
13307         (window_pixel_height_to_char_height): don't include frame gutters.
13308         (window_char_width_to_pixel_width): ditto.
13309
13310 2000-02-25  Andy Piper  <andy@xemacs.org>
13311
13312         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13313         if it is.
13314
13315 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13316
13317         * alloc.c (staticpro):
13318         (staticpro_nodump):
13319         (dumpstruct):
13320         (dumpopaque):
13321         (pdump_wire):
13322         (pdump_wire_list):
13323         (compact_string_chars):
13324         (pdump_dump_wired):
13325         Convert:  if (foo) abort();  ==>  assert (! foo);
13326
13327         * eldap.c (Fldap_search_basic):
13328         (Fldap_add):
13329         (Fldap_modify):
13330         (Fldap_delete):
13331         Fix compiler warnings, and possible crashes if (random) return
13332         value were to be used.
13333
13334 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13335
13336         * device-msw.c: Workaround ResetDC failure.
13337
13338         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13339         applying a devmode.
13340
13341         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13342         (mswindows_text_width): Do not start printer page.
13343
13344         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13345
13346         * glyphs-msw.c: Added image methods to msprinter console and
13347         msprinter-specific image instantiation.
13348
13349 2000-02-20  Mike Alexander  <mta@arbortext.com>
13350
13351         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13352         to avoid crashes when selection-sets-clipboard is on
13353         (mswindows_own_selection): ditto
13354
13355 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13356
13357         * glyphs-msw.c:
13358         * redisplay-msw.c (get_frame_dc):
13359         (get_frame_compdc):
13360         * console-msw.h:
13361         * device-msw.c (mswindows_init_device):
13362         (mswindows_delete_device):
13363         (msprinter_init_device):
13364         (msprinter_delete_device):
13365         * frame-msw.c (mswindows_init_frame_1):
13366         (mswindows_delete_frame):
13367         (msprinter_init_frame_3):
13368         (msprinter_delete_frame): Move compatible DC to device object from
13369         frame object, for both mswindows and msprinter. Only one at a time
13370         is needed, it is a real waste to have one per frame!
13371
13372 2000-02-23  Andy Piper  <andy@xemacs.org>
13373
13374         * glyphs.c: add dynamic width and height elements.
13375         (image_instance_equal): ditto.
13376
13377         * glyphs-widget.c (widget_query_geometry): calculate width and
13378         height dynamically if required.
13379         (initialize_widget_image_instance): initialize dynamic dimensions.
13380         (widget_instantiate): pick-up dynamic dimensions.
13381
13382         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13383         dynamic determination. Add appropriate macros.
13384
13385         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13386         dimensions safe.
13387         (WINDOW_GUTTER_SIZE): ditto.
13388         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13389
13390         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13391         inline.
13392         (get_frame_dc): ditto.
13393
13394         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13395         here.
13396
13397 2000-02-23  Martin Buchholz <martin@xemacs.org>
13398
13399         * XEmacs 21.2.31 is released.
13400
13401 2000-02-22  Ben Wing <ben@xemacs.org>
13402
13403         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13404
13405 2000-02-22  Andy Piper  <andy@xemacs.org>
13406
13407         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13408
13409 2000-02-21  Mike Sperber <mike@xemacs.org>
13410
13411         * .dbxrc:
13412         * .gdbinit:
13413         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13414         variables.
13415
13416 2000-02-21  Mike Sperber <mike@xemacs.org>
13417
13418         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13419
13420 2000-02-21  Martin Buchholz <martin@xemacs.org>
13421
13422         * XEmacs 21.2.30 is released.
13423
13424 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13425
13426         Performance hacking.
13427         * *.c (syms_of_*):
13428         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13429         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13430         * emacs.c (main_1):
13431         * lisp.h (DEFUN):
13432         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13433         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13434         * symeval.h (DEFVAR_SYMVAL_FWD):
13435         * symbols.c (guts_of_unbound_marker):
13436         Make all c_readonly objects also lisp_readonly and marked for life.
13437         * lrecord.h (struct lrecord_implementation):
13438         Document flags better.
13439         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13440         * lrecord.h (DECLARE_LRECORD):
13441         * lrecord.h (XSETRECORD):
13442         * lrecord.h (RECORDP):
13443         * lrecord.h (RECORD_TYPEP):
13444         * lrecord.h (RECORD_MARKER): New.
13445         * lrecord.h (error_check_*):
13446         * lrecord.h (CONCHECK_NONRECORD):
13447         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13448         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13449         * lrecord.h (set_lheader_implementation):
13450         * lrecord.h (enum lrecord_type): New.
13451         * symeval.h (SYMBOL_VALUE_MAGIC_P):
13452         * alloc.c (disksave_object_finalization_1):
13453         * alloc.c (mark_object):
13454         * alloc.c (lrecord_type_index):
13455         * alloc.c (tick_lcrecord_stats):
13456         * alloc.c (Fgarbage_collect):
13457         * alloc.c (init_alloc_once_early):
13458         * alloc.c (pdump_load):
13459         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13460         * alloc.c (lrecord_type_index): Delete.
13461         Make lisp object type indexes be constant.
13462           Makes (byte-compile) 5% faster.
13463         Put all marker functions into their own array.
13464           Makes (garbage-collect) 5% faster.
13465         Optimize SYMBOL_VALUE_MAGIC_P.
13466           Makes (byte-compile) 2-3% faster.
13467         * config.h.in (gc_checking_assert): New.
13468         * alloc.c: Use gc_checking_assert().
13469         * .dbxrc: Make compatible with new object type implementation.
13470         * .gdbinit: Make compatible with new object type implementation.
13471         * alloc.c: Delete all symbols defined only for debugging, such as
13472         Lisp_Type_Vector and lrecord_charset.
13473
13474 2000-02-21  Andy Piper  <andy@xemacs.org>
13475
13476         * gui-msw.c (Fmswindows_shell_execute): fix file location
13477         problems.
13478
13479         * buffer.c (Fkill_buffer): remove buffer from alist buffer
13480         unshowing so that set_window_buffer doesn't undo
13481         kill_buffer_hook's hard work.
13482
13483         * glyphs-widget.c (tab_control_query_geometry): don't count the
13484         first item when calculating geometry.
13485
13486         * glyphs.c (map_subwindow): remove redundant code.
13487         (update_frame_subwindows): be more circumspect about when to
13488         update subwindows.
13489
13490         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13491         when items haven't changed. Update faces if faces have changed as
13492         well as just the widget face.
13493         (x_tab_control_update): Update faces if faces have changed as well
13494         as just the widget face.
13495
13496 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13497
13498         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13499         registration.
13500         (build_syscolor_string): Use mswindows_color_to_string to try to
13501         get a named color.
13502         (mswindows_device_system_metrics): Reverse the foreground and
13503         background colors so that they match the documentation.
13504
13505         * objects-msw.c: (mswindows_X_color_map): tweak some values so
13506         they match the default Windows palette.
13507         (mswindows_color_to_string): New function.
13508
13509 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13510
13511         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13512
13513 2000-02-18  Olivier Galibert  <galibert@pobox.com>
13514
13515         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13516         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13517
13518         * symbols.c (init_symbols_once_early): Removed obsolete
13519         DATA_SEG_BITS related kludge.
13520         (defvar_magic): Ditto.
13521
13522         * malloc.c: Removed obsolete DATA_SEG_BITS
13523         * ralloc.c: Ditto.
13524         * mem-limits.h: Ditto.
13525
13526         * Makefile.in.in: Removed obsolete HAVE_SHM
13527         * emacs.c: Ditto.
13528
13529 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13530
13531         *  device-msw.c (mswindows_delete_device): Free DDE string
13532         handles.
13533
13534 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13535
13536         * keymap.c (get_keyelt):
13537         * unexnt.c (unexec):
13538         * vm-limit.c (memory_warnings):
13539         * ntheap.c (recreate_heap):
13540         * ntheap.h (UNINIT_PTR):
13541         * select-msw.c (Fmswindows_get_clipboard):
13542         (Fmswindows_set_clipboard):
13543         * objects-msw.h (MSWINDOWS_BAD_HFONT):
13544         * objects-msw.c:
13545         * menubar-msw.c (displayable_menu_item):
13546         * glyphs-msw.c:
13547         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
13548         * sysdep.c (sys_subshell):
13549         * process-nt.c (nt_create_process):
13550         * nt.c (normalize_filename):
13551         (dostounix_filename):
13552         (unixtodos_filename):
13553         * ntproc.c (win32_executable_type):
13554         * ntplay.c (play_sound_data_1):
13555         (play_sound_file):
13556         * editfns.c (get_home_directory):
13557         * event-msw.c (struct winsock_stream):
13558         (mswindows_dde_callback):
13559         * device-msw.c (msprinter_init_device):
13560         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
13561
13562         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
13563         mswindows_clear_toolbar were swapped!
13564
13565         * objects-msw.c:(colormap_t):
13566         (fontmap_t):
13567         * emacs.c (struct standard_args): Fixed const jumble.
13568
13569         * glyphs-widget.c (update_widget): Fixed comparison notation.
13570
13571         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
13572
13573         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
13574         __declspec(noreturn) syntax.
13575
13576 2000-02-19  Martin Buchholz  <martin@xemacs.org>
13577
13578         * eldap.c (Fldap_open):
13579         (Fldap_search_basic):
13580         (Fldap_add):
13581         (Fldap_modify):
13582         Use new coding system conversion macros.
13583
13584 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13585
13586         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
13587
13588 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
13589
13590         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
13591         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13592
13593         * eldap.c (Qadd, Qreplace): New constant symbols
13594         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
13595         interruptions by XEmacs signals
13596         Remove unnecessary calls to slow_down_interrupts and
13597         speed_up_interrupts
13598         (Fldap_search_basic): Renamed from Fldap_search_internal
13599         Added new optional parameter VERBOSE that triggers the
13600         display of progress messages
13601         Remove unnecessary calls to slow_down_interrupts and
13602         speed_up_interrupts
13603         LDAP result code analysis rewritten
13604         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13605         (syms_of_eldap): Define the new symbols and functions
13606
13607
13608 2000-02-17  Martin Buchholz  <martin@xemacs.org>
13609
13610         * realpath.c: Determine PATH_MAX maximally portably.
13611
13612         * insdel.c (bytecount_to_charcount): Optimize.
13613         The function used to be optimized for entirely ASCII sequences.
13614         Now it is optimized for successive characters from the same
13615         charset.  This also wins big for _mostly_ ASCII sequences.
13616
13617         * fileio.c (Ffile_truename): convert return from realpath() using
13618         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
13619         - Rewrite GCPROing slightly.
13620
13621         * sysdep.c (sys_open): Do filename conversion, like all other
13622         sys_* functions.  Fixes bug:
13623         (let ((file-name-coding-system 'iso-8859-2))
13624            (write-region x y latin2-name))
13625         ==> writes filename using internal encoding.
13626
13627 2000-02-18  Martin Buchholz  <martin@xemacs.org>
13628
13629         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
13630         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
13631         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
13632         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
13633         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
13634         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
13635         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
13636         (CONST_IF_NOT_DEBUG): Delete.
13637         * alloc.c (this_one_is_unmarkable): Delete.
13638         (mark_object): Don't check for this_one_is_unmarkable. Use the
13639         c_readonly flag instead.
13640         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
13641
13642 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13643
13644         * event-msw.c (mswindows_drain_windows_queue):
13645         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
13646         away redundant repaint events.
13647
13648 2000-02-17  Andy Piper  <andy@xemacs.org>
13649
13650         * redisplay.h: declare mark_redisplay_structs.
13651
13652         * redisplay.c (redisplay_window):
13653         (redisplay_frame): don't check subwindows_state_changed.
13654         (mark_redisplay): mark gutters here.
13655
13656         * glyphs.c: (instantiate_image_instantiator): always layout if we
13657         haven't done so already.
13658         (allocate_image_instance): don't mark as dirty.
13659         (update_subwindow): bind inhibit_quit.
13660
13661         * gutter.c (mark_gutters): new function.
13662
13663         * glyphs-x.c (x_update_widget): Always resize to get round a
13664         widget bug.
13665
13666         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
13667         breaking absolutely everything.
13668
13669         * gutter.h: declare mark_gutters.
13670
13671 2000-02-16  Martin Buchholz <martin@xemacs.org>
13672
13673         * XEmacs 21.2.29 is released.
13674
13675 2000-02-15  Olivier Galibert  <galibert@pobox.com>
13676
13677         * fns.c (size_bit_vector): Fix computation of the size.
13678
13679 2000-02-15  Martin Buchholz  <martin@xemacs.org>
13680
13681         * *.[ch]: Change CONST to const globally.
13682         find -name '*.[ch]' | \
13683         xargs global-replace \
13684         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
13685         - Remove vestigial references to CONST_IS_LOSING
13686
13687 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13688
13689         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
13690         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
13691         events instead of dispatching them directly.
13692         (mswindows_handle_paint): New function to do repainting.
13693         (mswindows_wnd_proc):
13694         (emacs_mswindows_handle_magic_event): Call above function.
13695
13696 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13697
13698         * objects-msw.c (mswindows_create_font_variant): Return the new
13699         font handle.
13700         (initialize_font_instance): Get font metrics from the underlined
13701         variant of the font to cope with the case where the underlined
13702         font has a bigger descent.
13703
13704 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
13705
13706         * gui.c (gui_item_accelerator): Return the first underlined
13707         character in item name.
13708
13709 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13710
13711         * lisp.h: Added Qprinter.
13712
13713         * general.c (syms_of_general): Initialized it.
13714
13715         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
13716         (get_frame_dc):
13717         (get_frame_compdc): Made inline.
13718
13719         * console.h (struct console_methods): Added eject_page method.
13720
13721         * frame.h: Added FRAME_DISPLAY_P and friends.
13722         Aligned backslahes in many macros in more readable fashion.
13723         Added page_number to struct frame, and an accessor macro
13724         for it.
13725
13726         * defice.h: Added DEVICE_DISPLAY_P and friends.
13727
13728         * device.c (Fdevice_printer_p): Used these.
13729
13730         * frame.c (allocate_frame_core): Initialize page number.
13731         (Fprint_job_page_number):
13732         (Fprint_job_eject_page): Implemented.
13733
13734         * frame-msw.c (msprinter_eject_page): Added method.
13735         (msprinter_start_page): Added.
13736
13737         * window.c (Fwindow_truncated_p): Fixed docstring.
13738         (Fwindow_last_line_visible_height): Implemented.
13739
13740 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13741
13742         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
13743
13744 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13745
13746         * syntax.c (scan_words): Always advance at least one character.
13747
13748 2000-02-13  Andy Piper  <andy@xemacs.org>
13749
13750         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
13751         to make sure the glyph is in the cachels.
13752
13753         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
13754         global image instance flag.
13755         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
13756         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
13757
13758         * glyphs.c (allocate_image_instance): set dirty bits correctly.
13759         (Fset_image_instance_property): mark layout as changed.
13760         (invalidate_glyph_geometry_maybe): mark layout as changed.
13761         (glyph_width): use new NEEDS_LAYOUT macro.
13762         (glyph_ascent): ditto.
13763         (glyph_descent): ditto.
13764         (glyph_height): ditto.
13765         (image_instance_layout): mark layout as clean after laying out.
13766         (update_subwindow): don't mark layout as clean here.
13767
13768         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
13769         should no longer be needed.
13770
13771         * glyphs-x.c (x_update_widget): sanitize asserts.
13772         (x_finalize_image_instance): sanitize assignment to widgets.
13773
13774         * glyphs-widget.c (widget_instantiate): don't need to clear the
13775         layout flag here.
13776
13777 2000-02-13  Martin Buchholz  <martin@xemacs.org>
13778
13779         * sysdep.c (getcwd): Use standard prototype.
13780         * sysdep.h (getcwd): Use standard prototype.
13781
13782         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
13783         (sequence, start, end).
13784         Remove redundant type checking.
13785         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
13786         view of `caller-protects') to avoid a crash where the real fix was
13787         found elsewhere.
13788
13789 2000-02-12  Martin Buchholz  <martin@xemacs.org>
13790
13791         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
13792
13793         * s/sol2.h: Remove feature macro initialization.
13794
13795         * alloc.c (alloc_lcrecord): Add more type checking assertions.
13796         (vector_hash): New.  Code from internal_hash.
13797         * lrecord.h:
13798         Fix up allocation subsystem comments.
13799
13800         * config.h.in: Add __EXTENSIONS__ for Solaris.
13801
13802         * systime.h (EMACS_GETTIMEOFDAY): New.
13803         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
13804         Remove Solaris-specific code.
13805         Use void* for the (ignored) second arg for gettimeofday().
13806
13807         * elhash.c (hash_table_hash): Implement it, finally.
13808         * elhash.c:  Use hashcode_t.
13809
13810         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
13811         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
13812
13813         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
13814         * fns.c (size_bit_vector):
13815         * alloc.c (size_vector):
13816         (make_vector_internal):
13817         (make_bit_vector_internal):
13818         (sweep_bit_vectors_1):
13819         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
13820
13821 2000-02-10  Martin Buchholz  <martin@xemacs.org>
13822
13823         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
13824         Include strings.h to avoid warnings for bzero and strcasecmp.
13825
13826 2000-02-10  Olivier Galibert  <galibert@pobox.com>
13827
13828         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
13829         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
13830
13831         * fns.c (size_bit_vector): New.  Declare bit vectors as a
13832         sequence.
13833
13834 2000-02-10  Olivier Galibert  <galibert@pobox.com>
13835
13836         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
13837         use a value field instead.
13838         (symbol_value_forward_forward): Use value field.
13839         (DEFVAR_SYMVAL_FWD): Use value field.
13840         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
13841         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
13842         (DEFVAR_CONST_INT): Ditto.
13843         (DEFVAR_BOOL): Ditto.
13844         (DEFVAR_CONST_BOOL): Ditto.
13845         (DEFVAR_INT_MAGIC): Ditto.
13846         (DEFVAR_BOOL_MAGIC): Ditto.
13847
13848         * symbols.c (guts_of_unbound_marker): Use value field.
13849         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
13850         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
13851
13852         * lisp.h: Declare dumpopaque and noninteractive1.
13853
13854         * alloc.c (dumpopaque): Added.
13855         (pdump_dump_opaquevec): Added.
13856         (pdump): Call pdump_dump_opaquevec to dump opaque data.
13857         (pdump_load): Reload opaque data.  Sync noninteractive1 with
13858         noninteractive.
13859
13860 2000-02-10  Andy Piper  <andy@xemacs.org>
13861
13862         * glyphs.c (image_instance_layout): if the size changes, mark it
13863         as such.
13864
13865         * redisplay-output.c (redisplay_output_layout): Update the
13866         subwindow here.
13867         (redisplay_output_subwindow): ditto.
13868
13869         * glyphs.c (update_subwindow): make sure we reset flags for
13870         layouts as well as everything else.
13871
13872         * glyphs-widget.c (layout_layout): don't need to set the instances
13873         dimensions here.
13874
13875 2000-02-09  Martin Buchholz  <martin@xemacs.org>
13876
13877         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
13878         not HAVE_DLOPEN, which is a lower-level thing.
13879
13880         * .cvsignore: Ignore gmon.out
13881
13882 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
13883
13884         * .cvsignore: Ignore portable dumper xemacs.dmp file
13885
13886 2000-02-09  Andy Piper  <andy@xemacs.org>
13887
13888         * redisplay-output.c (redisplay_output_layout): be more clever
13889         about when we output based on the changed flags.
13890
13891         * glyphs.h (struct image_instantiator_methods): add update_method.
13892         (struct Lisp_Image_Instance): add changed flags. Declare new
13893         macros for manipulating them.
13894
13895         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
13896         (image_instance_parent_glyph): find an image_instance's parent
13897         glyph or image_instance.
13898         (image_instance_layout): mark the size as changed.
13899         (set_image_instance_dirty_p): new function. mark an image
13900         instance, plus all of its parents, as dirty.
13901         (Fset_image_instance_property): use it.
13902         (Fglyph_animated_timeout_handler): use it.
13903         (update_subwindow): call update_widget and device methods for
13904         update_subwindow. Mark all changed flags as clean.
13905         (Fresize_subwindow): mark size as changed.
13906
13907         * glyphs-x.c (x_finalize_image_instance): try and detect gc
13908         failures.
13909         (x_update_subwindow): only resize subwindows here.
13910         (x_update_widget): new function. Update all changed properties of
13911         a widget.
13912         (x_resize_subwindow): deleted.
13913         (x_widget_set_property): deleted.
13914         (x_progress_gauge_set_property): deleted.
13915         (x_progress_gauge_update): new function. Implement recorded
13916         changes.
13917         (x_tab_control_update): ditto.
13918         (x_tab_control_set_property): deleted.
13919         (console_type_create_glyphs_x): declare new functions.
13920         (image_instantiator_format_create_glyphs_x): ditto.
13921
13922         * glyphs-widget.c (widget_set_property): mark text changed.
13923         (update_widget): new function. Update properties of a widget.
13924         (widget_instantiate): for layouts make sure we set their
13925         children's parent correctly.
13926         (tab_control_set_property): new function. Record changes that will
13927         take place under redisplay's control.
13928         (progress_gauge_set_property): ditto.
13929         (image_instantiator_progress_guage): declare new functions.
13930         (image_instantiator_tab_control): ditto.
13931
13932         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
13933         now.
13934         (mswindows_update_widget): new function. Update all properties on
13935         a widget that have changed.
13936         (mswindows_button_update): new function. Update a button's set
13937         state.
13938         (mswindows_tab_control_update): new function. Update the items in
13939         a tab.
13940         (mswindows_tab_control_set_property): deleted.
13941         (mswindows_progress_gauge_update): new function. Update the
13942         progress gauge's progress.
13943         (mswindows_widget_set_property): deleted. This is all done
13944         asynchronously now.
13945         (mswindows_progress_gauge_set_property): ditto.
13946         (console_type_create_glyphs_mswindows): declare new methods.
13947         (image_instantiator_format_create_glyphs_mswindows): ditto.
13948
13949         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
13950         (msprinter_set_frame_properties): ditto.
13951
13952         * console.h (struct console_methods): Add update_widget_method.
13953
13954 2000-02-09  Andy Piper  <andy@xemacs.org>
13955
13956         * gui-msw.c (Fmswindows_shell_execute): Make
13957         mswindows-shell-execute industrial strength.
13958
13959 2000-02-08  Martin Buchholz  <martin@xemacs.org>
13960
13961         * lrecord.h: Make macro argument `props' match member function `plist'.
13962         * fns.c (Fget):
13963         * fns.c (Fput):
13964         * fns.c (Fremprop):
13965         * fns.c (Fobject_plist):
13966         * alloc.c:
13967         * symbols.c:
13968         Object property list frobbing cleanup.
13969         - Allow any lisp object (compared with `eq'), not just symbols, as
13970           keys in object plists.
13971         - Move symbol plist frobbing into symbols.c, where it belongs.
13972         - Move string plist frobbing into alloc.c, where it belongs.
13973         - Everything's an lrecord now, so no need to test for symbolp, etc.
13974         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
13975
13976         * extents.c: Reorder code to remove declarations.
13977
13978         * frame.h (store_in_alist): Remove useless declaration.
13979
13980 2000-02-07  Martin Buchholz  <martin@xemacs.org>
13981
13982         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
13983         * config.h.in: Add HAVE_XCONVERTCASE.
13984
13985 2000-02-07  Andy Piper  <andy@xemacs.org>
13986
13987         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
13988         it breaks many things.
13989
13990 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13991
13992         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
13993         actually can start a common comment type.
13994         * src/syntax.h (SYNTAX_END_P): ditto for end.
13995
13996 2000-02-07  Martin Buchholz <martin@xemacs.org>
13997
13998         * XEmacs 21.2.28 is released.
13999
14000 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14001
14002         * event-Xt.c (x_keysym_to_character): New.
14003         (maybe_define_x_key_as_self_inserting_character): New.
14004         (x_has_keysym): New.
14005         Auto-define all keys on the keyboard as self-insert-key.
14006
14007 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14008
14009         * menubar.c (vars_of_menubar): A small code simplification.
14010
14011         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14012
14013         * ExternalShell.c:
14014         * ExternalClient.c:
14015         * EmacsShell-sub.c:
14016         * EmacsManager.c:
14017         * EmacsFrame.c:
14018         Use consistent style for specifying X resources.
14019
14020         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14021         This makes (dontusethis-set-symbol-value-handler) actually usable.
14022
14023         * lrecord.h (lrecord_decription_type):
14024         * alloc.c (pdump_register_sub):
14025         (pdump_dump_data):
14026         (pdump_reloc_one):
14027         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14028         Comply with XEmacs coding style.
14029         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14030         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14031
14032         * keymap.c (Faccessible_keymaps):
14033         Make (accessible-keymaps map "\C-h") do the Right Thing.
14034         Make (accessible-keymaps map []) do the Right Thing.
14035         Make (accessible-keymaps map "") do the Right Thing.
14036         (check_keymap_definition_loop): New function.
14037         (keymap_store_internal): Keep luser from shooting self in foot,
14038           via (define-key ctl-x-4-map "p" global-map).
14039         Remove fullness slot from struct Lisp_Keymap, since hash tables
14040         are now reliable.
14041         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14042
14043 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14044
14045         * redisplay.c (init_redisplay): Fix small memory leak.
14046         * elhash.h:
14047         * elhash.c (pdump_reorganize_hash_table):
14048         Rename from reorganize_hash_table. Change prototype.
14049         Reuse the original memory for hentries.  Save 100k.
14050         * alloc.c (PDUMP_READ): new macro.
14051         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14052         * alloc.c: No need to #ifndef before #undef.
14053
14054         * print.c: Allow debug_print() to print readably by modifying
14055         debug_print_readably.  Use consistent variable names.
14056
14057         * .dbxrc: Try to get things to work even if stopped in a function
14058         without source available by explicitly specifying source files.
14059 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14060
14061         * unexnt.c (_start): Removed bogus code which caused loading heap
14062         from differrent executable file.
14063         Removed bogus assignment to _fmode, which caused inconsistencies.
14064
14065 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14066
14067         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14068         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14069         Do not preliminary `#define signal sigset'.
14070
14071         * systime.h: Do not prototype environ on windows nt and cygwin,
14072         this conflicts with system header.
14073
14074         * syssignal.h: Use correct define for WINDOWSNT
14075
14076         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14077         with system header.
14078
14079         * sysdep.c (near start of file): Fixed commentary and rearranged
14080         ifdefs in readable order.
14081         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14082         (start_of_text):
14083         (end_of_text):
14084         (end_of_data): Do not compile in if using PDUMP.
14085
14086         * symsinit.h: Prototyped vars_of_nt().
14087
14088         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14089         (find_child_console): Use it.
14090         (sys_kill): Use it.
14091
14092         * ntheap.h: Do not extern os_subtype.
14093
14094         * ntheap.c (cache_system_info): Do not cache unneeded:
14095         nt_major_version, nt_minor_version and os_subtype.
14096         (recreate_heap): Do not compile in when PDUMPing.
14097
14098         * nt.c (geteuid and friends): Use the new varibale
14099         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14100         (init_user_info): Removed the above mentioned hackery.
14101         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14102         stat has been fixed in the C runtime.
14103         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14104
14105         * file-coding.c (struct file_coding_dump): Do not define
14106         ucs_to_mule_table in the struct if not MULE.
14107         (struct struct lrecord_description fcd_description_1): Do not dump
14108         the above.
14109
14110         * emacs.c (main_1): Call vars_of_nt().
14111         (right before Fdump_emacs_data): Don't need lastfile if using both
14112         portabe dumper and system malloc.
14113
14114         * alloc.c (Fmemory_limit): Conditionalized out.
14115         (pdump): Use OPEN_BINARY for the portable dump file.
14116         (pdump_load): Ditto.
14117
14118 2000-02-02  Mike Alexander  <mta@arbortext.com>
14119
14120         * nt.c (convert_time): Set tm_isdst before calling mktime and
14121         avoid calling it at all if the compiler supports 64 bit integers.
14122         Also initialize utc_base_ft before using it.
14123
14124 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14125
14126         * frame.c (change_frame_size_1): Take f->internal_border_width
14127         into consideration when calculating the width of the frame.
14128
14129 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14130
14131         * window.c (frame_min_height):
14132         (frame_size_valid_p):
14133         (frame_pixsize_valid_p): Added.
14134         (check_frame_size): Generalized.
14135
14136         * window.h: Prototyped the above.
14137
14138         * lisp.h:
14139         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14140         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14141         Deleted Vwin32_* and Vbinary_process_* unused variables.
14142
14143         * device-msw.c (msprinter_init_device): Do not get printer font
14144         list; Added DEVMODE functions.
14145
14146         * frame-msw.c: Added lots of printer code.
14147
14148         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14149         general.c.
14150
14151         * console-msw.h: Added more msprinter device private slots.
14152
14153 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14154
14155         * event-msw.c (key_needs_default_processing_p): Added.
14156         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14157
14158 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14159
14160         * glyphs.c (image_instance_layout): Mark image instance as clean
14161         after layout.
14162         (glyph_dirty_p): Removed redundant function.
14163         (invalidate_glyph_geometry_maybe): Added.
14164         (update_glyph_cachel_data): Call it.
14165
14166         * glyphs.h: Prototyped it.
14167
14168         * redisplay.c (add_glyph_rune): Call it.
14169         (redisplay_window): Reset glyphs cachels when frame faces have
14170         changed, thus forcing recomputation of built-in border glyphs.
14171
14172 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14173
14174         * Makefile.in.in: Make portable dumper and purify play well together.
14175         Add imperfect, but better than nothing, support for pdump.
14176         Remove xemacs.dmp when temacs is re-generated.
14177         Don't ignore errors when dumping xemacs.
14178
14179         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14180
14181 2000-01-28  Andy Piper  <andy@xemacs.org>
14182
14183         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14184         (setup_normal_frame): ditto.
14185         (setup_frame_without_minibuffer): ditto.
14186         (setup_minibuffer_frame): ditto.
14187         (delete_frame_internal): ditto.
14188         (Fmake_frame_invisible): ditto.
14189         (Ficonify_frame): ditto.
14190
14191         * window.h: change Fset_window_buffer signature.
14192
14193         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14194         (Fset_window_buffer): allow recording of buffer if the window is
14195         the selected window.
14196         (window_loop): Use new Fset_window signature.
14197
14198 2000-01-23  Daniel Pittman  <daniel@danann.net>
14199
14200         * config.h.in: Added template for `HAVE_ATHENA_3D'
14201
14202 2000-01-29  Andy Piper  <andy@xemacs.org>
14203
14204         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14205
14206         * gutter.c (output_gutter): Don't output if the window isn't live.
14207
14208 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14209
14210         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14211         of 01/12/00: Moved SetFocus back here where it belongs.
14212
14213 2000-01-23  Andy Piper  <andy@xemacs.org>
14214
14215         * s/cygwin32.h: declare printer things.
14216
14217 2000-01-26  Andy Piper  <andy@xemacs.org>
14218
14219         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14220         Alexander.
14221
14222 2000-01-24  Andy Piper  <andy@xemacs.org>
14223
14224         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14225         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14226
14227         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14228
14229         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14230
14231         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14232
14233         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14234         (mswindows_output_display_block): Avoid local shadows.
14235
14236         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14237         (mswindows_enqueue_mouse_button_event): ditto.
14238         (mswindows_handle_gui_wm_command): remove declaration.
14239
14240         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14241         warnings.
14242
14243         * console-msw.h: Avoid shadows.
14244         (mswindows_get_toolbar_button_text):
14245         (emacs_mswindows_create_stream_pair):
14246         (emacs_mswindows_delete_stream_pair):
14247         (mswindows_handle_toolbar_wm_command): declare.
14248
14249         * device-msw.c (build_syscolor_string): Avoid shadows.
14250
14251 2000-01-23  Andy Piper  <andy@xemacs.org>
14252
14253         * glyphs-widget.c (widget_instantiate): reverse the items for
14254         layouts so that children are in the expected order.
14255
14256 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14257
14258         * ralloc.c: safe_bcopy ==> memmove
14259         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14260         * s/msdos.h: Remove BCOPY macros.
14261         * insdel.c (gap_right): Remove BCOPY conditional code.
14262         * insdel.c (gap_left): Remove BCOPY conditional code.
14263         XEmacs demands a working ANSI C compiler - hence memmove.
14264
14265         * regex.c (regex_compile): Remove accidental use of trigraphs.
14266
14267 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14268
14269         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14270         event timestamp.
14271
14272 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14273
14274         * event-msw.c (mswindows_drain_windows_queue): Added the
14275         parameter.
14276         (mswindows_need_event): Commented the call to
14277         mswindows_drain_windows_queue().
14278         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14279         only.
14280
14281         * console-msw.h: Moved a few function prototypes here from
14282         event-msw.c.
14283
14284         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14285         parameter from unsigned short to unsigned long.
14286         (Fmswindows_shell_execute): Added return value.
14287
14288 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14289
14290         * sysdep.c (init_system_name):
14291           process-unix.c (unix_canonicalized_host_name):
14292         Don't call freeaddrinfo() if getaddrinfo() fails.
14293
14294         * process-unix.c (unix_open_unix_network_stream):
14295         Moved the code to get a port # into address loop.
14296
14297 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14298
14299         * buffer.c (reinit_vars_of_buffer):
14300         The right place to initialize conversion_in_dynarr and
14301         conversion_out_dynarr.
14302
14303         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14304
14305         * process-unix.c (unix_canonicalize_host_name): Muleize.
14306         (unix_open_network_stream): Muleize.
14307
14308         * buffer.h: Fix up prototypes for ralloc.c functions.
14309
14310 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14311         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14312         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14313                 instead of gethostbyname()
14314         * process-unix.c: In unix_canonicalize_host_name() and
14315                 unix_open_network_stream(), add code to use getaddrinfo()
14316                 instead of gethostbyname().
14317
14318 2000-01-27  Daniel Pittman <daniel@danann.net>
14319
14320         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14321         libs when built with flat Athena.
14322
14323 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14324
14325         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14326         Use coding standards for function prototypes.
14327
14328 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14329
14330         * dialog-msw.c (push_lisp_string_as_unicode):
14331         * doc.c (unparesseuxify_doc_string):
14332         * dired.c (Fuser_name_completion_1):
14333         * dired.c (Fuser_name_all_completions):
14334         * dired.c (free_user_cache):
14335         * dired.c (user_name_completion):
14336         * console-x.c (get_display_arg_connection):
14337         * minibuf.c (clear_echo_area_internal):
14338         * minibuf.c (echo_area_append):
14339         * eldap.c (Fldap_open):
14340         * eldap.c (Fldap_search_internal):
14341         * frame-x.c (x_set_frame_text_value):
14342         * frame-x.c (x_set_frame_properties):
14343         * frame-x.c (x_create_widgets):
14344         * redisplay-tty.c (term_get_fkeys_1):
14345         * objects-x.c (x_parse_nearest_color):
14346         * objects-x.c (x_valid_color_name_p):
14347         * objects-x.c (x_initialize_font_instance):
14348         * objects-x.c (x_list_fonts):
14349         * objects-x.c (x_find_charset_font):
14350         * tooltalk.c (Fadd_tooltalk_message_arg):
14351         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14352         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14353         * process-unix.c (unix_create_process):
14354         * ntproc.c (sys_spawnve):
14355         * sound.c (Fplay_sound_file):
14356         * sound.c (Fplay_sound):
14357         * buffer.c (init_initial_directory):
14358         * buffer.c (init_buffer):
14359         * editfns.c (init_editfns):
14360         * editfns.c (Ftemp_directory):
14361         * editfns.c (Fuser_full_name):
14362         * editfns.c (uncache_home_directory):
14363         * editfns.c (get_home_directory):
14364         * editfns.c (Fuser_home_directory):
14365         * editfns.c (Fformat_time_string):
14366         * editfns.c (Fcurrent_time_string):
14367         * gui-x.c (button_item_to_widget_value):
14368         * database.c (Fopen_database):
14369         * event-Xt.c (x_to_emacs_keysym):
14370         * event-Xt.c (x_event_to_emacs_event):
14371         * event-Xt.c (describe_event_window):
14372         * event-msw.c (mswindows_wnd_proc):
14373         * glyphs-eimage.c (jpeg_instantiate):
14374         * glyphs-eimage.c (gif_instantiate):
14375         * glyphs-eimage.c (png_instantiate):
14376         * glyphs-eimage.c (tiff_instantiate):
14377         * glyphs-x.c (xbm_instantiate_1):
14378         * glyphs-x.c (x_xbm_instantiate):
14379         * glyphs-x.c (x_xface_instantiate):
14380         * glyphs-x.c (autodetect_instantiate):
14381         * glyphs-x.c (cursor_font_instantiate):
14382         * glyphs-x.c (x_widget_instantiate):
14383         * glyphs-x.c (x_widget_set_property):
14384         * glyphs-x.c (x_widget_property):
14385         * glyphs-x.c (BUILD_GLYPH_INST):
14386         * print.c (write_string_to_stdio_stream):
14387         * print.c (output_string):
14388         * print.c (Falternate_debugging_output):
14389         * print.c (Fexternal_debugging_output):
14390         * glyphs-msw.c (extract_xpm_color_names):
14391         * glyphs-msw.c (mswindows_xpm_instantiate):
14392         * glyphs-msw.c (bmp_instantiate):
14393         * glyphs-msw.c (resource_name_to_resource):
14394         * glyphs-msw.c (mswindows_resource_instantiate):
14395         * glyphs-msw.c (xbm_instantiate_1):
14396         * glyphs-msw.c (mswindows_xbm_instantiate):
14397         * glyphs-msw.c (mswindows_xface_instantiate):
14398         * glyphs-msw.c (mswindows_widget_instantiate):
14399         * glyphs-msw.c (add_tree_item):
14400         * glyphs-msw.c (add_tab_item):
14401         * glyphs-msw.c (mswindows_combo_box_instantiate):
14402         * glyphs-msw.c (mswindows_widget_property):
14403         * glyphs-msw.c (mswindows_combo_box_property):
14404         * glyphs-msw.c (mswindows_widget_set_property):
14405         * console.c (stuff_buffered_input):
14406         * objects-msw.c (mswindows_initialize_color_instance):
14407         * objects-msw.c (mswindows_valid_color_name_p):
14408         * objects-msw.c (mswindows_list_fonts):
14409         * objects-msw.c (mswindows_font_instance_truename):
14410         * bytecode.c (optimize_compiled_function):
14411         * select-x.c (symbol_to_x_atom):
14412         * select-x.c (x_atom_to_symbol):
14413         * select-x.c (hack_motif_clipboard_selection):
14414         * select-x.c (selection_data_to_lisp_data):
14415         * select-x.c (lisp_data_to_selection_data):
14416         * select-x.c (Fx_get_cutbuffer_internal):
14417         * select-x.c (Fx_store_cutbuffer_internal):
14418         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14419         * buffer.h (TO_INTERNAL_FORMAT): New function.
14420         * emacs.c (make_arg_list_1):
14421         * emacs.c (make_argc_argv):
14422         * emacs.c (main_1):
14423         * emacs.c (Fdump_emacs):
14424         * emacs.c (split_string_by_emchar_1):
14425         * file-coding.h:
14426         * lisp.h:
14427         * lstream.h:
14428         * symsinit.h:
14429         * device-x.c (x_init_device):
14430         * device-x.c (Fx_valid_keysym_name_p):
14431         * device-x.c (Fx_get_font_path):
14432         * device-x.c (Fx_set_font_path):
14433         * glyphs.c (bitmap_to_lisp_data):
14434         * glyphs.c (pixmap_to_lisp_data):
14435         * alloc.c (make_ext_string): Use coding system arguments.  Update
14436         all callers.
14437         * alloc.c (build_string):
14438         * callproc.c (child_setup):
14439         * callproc.c (init_callproc):
14440         * fileio.c (lisp_strerror):
14441         * fileio.c (directory_file_name):
14442         * fileio.c (Fexpand_file_name):
14443         * fileio.c (Ffile_truename):
14444         * fileio.c (Fsysnetunam):
14445         * fileio.c (Fdo_auto_save):
14446         * sysdep.c (sys_readdir):
14447         * tests.c: New file.  Allow adding C tests.
14448         Replace GET_* macros with a more comprehensible and flexible
14449         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14450         Modify all calls.
14451         Any coding system can be used to do format conversion.
14452         Eliminate enum external_data_format.
14453         Eliminate convert_to_external_format.
14454         Eliminate convert_to_internal_format.
14455         Make sure file-name, keyboard, terminal, and ctext are always
14456         defined as coding systems or aliases.  Make
14457         file-name-coding-system, terminal-coding-system, and
14458         keyboard-coding-system magical variables that are equivalent to
14459         defining the corresponding coding system aliases.
14460
14461         * file-coding.c (Fcoding_system_canonical_name_p): New function.
14462         * file-coding.c (Fcoding_system_alias_p): New function.
14463         * file-coding.c (Fcoding_system_aliasee): New function.
14464         * file-coding.c (append_suffix_to_symbol): New function.
14465         * file-coding.c (dangling_coding_system_alias_p): New function.
14466         * file-coding.c (Ffind_coding_system):
14467         * file-coding.c (Fcopy_coding_system):
14468         * file-coding.c (encode_coding_no_conversion):
14469         * file-coding.c (syms_of_file_coding):
14470         * file-coding.c (vars_of_file_coding):
14471         Rewrite coding system alias code.
14472         Allow nested aliases, like symbolic links.
14473         Allow redefinition of coding system aliases.
14474         Prevent existence of dangling coding system aliases.
14475
14476         * dired.c (Fuser_name_completion_1):
14477         * dired.c (Fuser_name_all_completions):
14478         A crash would happen if user did QUIT in the middle of building
14479         user_name_cache.  Remove redundant code in mainline and unwind_protect.
14480
14481         * lisp.h:
14482         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
14483
14484         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14485         an unsigned char *.  Update all callers.
14486
14487 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14488
14489         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14490
14491 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14492
14493         * elhash.c (hentry_description): Use more portable definition.
14494         (resize_hash_table): Initialize new hentries using
14495         xnew_array_and_zero, thereby simplifying the code.
14496
14497         * mule-charset.c (make_charset): Make sure entire object is
14498         initialized, to avoid Purify warnings.
14499
14500         * alloc.c (resize_string): Fix unlikely crash with big strings.
14501
14502 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14503
14504         * realpath.c (xrealpath):
14505         Don't call getwd().
14506
14507 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14508
14509         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14510
14511 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
14512
14513         * unexelfsgi.c (unexec): Change the way we decide which segment
14514         should be extended.
14515
14516         Assumption that .bss section should be outside the PT_LOADable
14517         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14518         it's present) is inside the 'data' segment. This would fail the
14519         test which was used to find a segment to grow and cover new
14520         heap. Instead of this assumption, I created another one - on IRIX
14521         the segment to grow should start below .bss and it's address
14522         should extent above the end of .bss. Once this segment is
14523         identified, it's grown to accommodate the new heap and new
14524         zero-length .bss section is added at the end of .data2.
14525
14526 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14527
14528         * eval.c (Feval): Wrong number of arguments should use original
14529         function, not the indirect_function version of it.
14530
14531 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
14532
14533         * glyphs-x.c (x_button_instantiate): Don't add image if
14534         it is not a pixmap.
14535         (x_locate_pixmap_file): Call Fexpand_file_name when file name
14536         is relative.
14537
14538 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
14539
14540         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
14541         declaration.
14542         (DEFVAR_INT_MAGIC): Ditto.
14543         (DEFVAR_BOOL_MAGIC): Ditto.
14544         * glyphs.h: Reindent backslash.
14545
14546 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14547
14548         * glyphs-widget.c (layout_query_geometry):
14549         (layout_layout): Use correct types for gheight, gwidth.
14550
14551 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14552
14553         * EmacsManager.c (QueryGeometry): Purified.
14554
14555 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14556
14557         * alloc.c (make_float): Make sure entire object is initialized, to
14558         avoid Purify warnings.
14559         (pdump_register_sub): Remove useless assignment.
14560         (pdump): Use xmalloc, not malloc.
14561         (pdump_load): Use xmalloc, not malloc.
14562
14563 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14564
14565         * callproc.c:
14566         * dired-msw.c:
14567         * fileio.c:
14568         * process-nt.c:
14569         * redisplay-msw.c:
14570         * sysdep.c: Removed redundant #include <windows.h>
14571
14572 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14573
14574         * frame.c (delete_frame_internal): Do not delete device when its
14575         implementation so declares.
14576         (delete_frame_internal): Set device selected frame to nil when
14577         last frame goes away.
14578
14579         * device-msw.c (msprinter_device_system_metrics): Implemented.
14580         (mswindows_device_system_metrics): Added 'device-dpi property.
14581
14582         * device.c: (Fdevice_printer_p): Added.
14583         Added 'offset-workspace device metric.
14584
14585         * console.h (device_metrics): Declared DM_offset_workspace.
14586
14587 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14588
14589         * fileio.c (Ffile_truename): Remove pointless and confusing
14590         initialization of elen.
14591
14592         * glyphs-widget.c: Compiler warning fixes.
14593
14594 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
14595
14596         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
14597         instead of a Lisp_Object as argument to make it consistent with
14598         the other LIVE_P macros.
14599         (CHECK_LIVE_PROCESS): New macro.
14600
14601         * process.c: Declare Qprocess_live_p.
14602         (Fprocess_live_p): New function.
14603         (create_process): Use PROCESS_LIVE_P.
14604         (read_process_output): Ditto.
14605         (set_process_filter): Ditto.
14606         (Fdelete_process): Ditto.
14607         (kill_buffer_processes): Ditto
14608         (process_send_signal): Use CHECK_LIVE_PROCESS.
14609         (Fprocess_input_coding_system): Check whether process is still
14610         alive (fix PR#1061).
14611         (Fprocess_output_coding_system): Ditto.
14612         (Fprocess_coding_system): Ditto.
14613         (Fset_process_input_coding_system): Ditto.
14614         (Fset_process_output_coding_system): Ditto.
14615
14616 2000-01-23  Andy Piper  <andy@xemacs.org>
14617
14618         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
14619         layout and widget.
14620
14621         * glyphs.c (mark_image_instance): take into account changed
14622         image_instance format.
14623         (image_instance_equal): ditto.
14624         (image_instance_hash): ditto.
14625
14626         * glyphs-widget.c (widget_instantiate): Incorporate layout
14627         instantiation here. Delay layout of the layout until later.
14628         (layout_instantiate): deleted.
14629         (layout_query_geometry): new function. get the geometry of a
14630         layout.
14631         (layout_layout): layout a layout dynamically.
14632         (image_instantiator_widget): New function - splitting up
14633         image_instantiator_format_create_glyphs_widget for netwinder
14634         compilation.
14635         (image_instantiator_buttons):
14636         (image_instantiator_edit_fields):
14637         (image_instantiator_combo_box):
14638         (image_instantiator_scrollbar):
14639         (image_instantiator_progress_guage):
14640         (image_instantiator_tree_view):
14641         (image_instantiator_tab_control):
14642         (image_instantiator_labels):
14643         (image_instantiator_layout): ditto.
14644         (image_instantiator_format_create_glyphs_widget): Call preceding
14645         functions.
14646
14647 2000-01-22  Martin Buchholz  <martin@xemacs.org>
14648
14649         * process.c (Fset_process_coding_system):
14650         * device-x.c (Fx_keysym_hash_table):
14651         Docstring fixes.
14652
14653         * lstream.c (Lstream_write): Return documented value, not 0.
14654
14655         * fileio.c (directory_file_name):
14656         (Fsubstitute_in_file_name):
14657         (Fsubstitute_insert_file_contents_internal):
14658         (Fwrite_region_internal):
14659         * emacs.c:
14660         * sysdep.c:
14661         * getloadavg.c:
14662         * systty.h:
14663         Remove vestigial APOLLO-conditional code.
14664
14665 2000-01-21  Martin Buchholz  <martin@xemacs.org>
14666
14667         * getpagesize.h: Add guard macros.
14668         * libsst.h: Add guard macros.
14669         * libst.h: Add guard macros.
14670         * line-number.h: Add guard macros.
14671         * ndir.h: Add guard macros.
14672         * sysfloat.h: Add guard macros.
14673         * sysfile.h: Add guard macros.
14674         * sysproc.h: Add guard macros.
14675         * syswait.h: Add guard macros.
14676         * xintrinsic.h: Add guard macros.
14677         * xintrinsicp.h: Add guard macros.
14678         * xmmanager.h: Add guard macros.
14679         * xmmanagerp.h: Add guard macros.
14680         * xmprimitive.h: Add guard macros.
14681         * xmu.h: Add guard macros.
14682         * gpmevent.h: Add copyright statement. Add guard macros.
14683         * miscplay.h: Add guard macros.
14684         * *.h: Use consistent C-standards-approved guard macro names.
14685
14686         * opaque.c (make_opaque): Switch parameter order.
14687         * opaque.h (make_opaque): Switch parameter order.
14688         Update all callers.
14689         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
14690
14691         * config.h.in (type_checking_assert): Added.
14692         (bufpos_checking_assert): Added.
14693
14694 2000-01-21  Martin Buchholz  <martin@xemacs.org>
14695
14696         * alloc.c: Harmless pdump changes.
14697         - Use countof().
14698         - spell alignment correctly.
14699         * sysdep.c: Use countof()
14700
14701 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14702
14703         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
14704         initially_selected_for_input() console method, default to 0.
14705         (semi_canonicalize_console_connection): Try to delegate to
14706         canonicalize_console_connection if no such console method.
14707         (canonicalize_console_connection): Vice versa.
14708         (print_console): Do not print nil connection.
14709
14710         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
14711         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
14712         (XDEVIMPF_FRAMELESS_OK): Added.
14713         (CONSOLE_INHERITS_METHOD): Added.
14714
14715         * console-msw.c (mswindows_canonicalize_console_connection):
14716         Added.
14717         (mswindows_canonicalize_device_connection): Added.
14718
14719         * console-msw.h (struct msprinter_device): Added this struct and
14720         accessor macros.
14721         (mswindows_device): Made fontlist a lisp object.
14722
14723         * device.c (semi_canonicalize_device_connection):  Try to delegate
14724         to canonicalize_device_connection if no such console method.
14725         (canonicalize_device_connection): Vice versa.
14726         (print_device): Do not print nil connection.
14727
14728         * device-msw.c (mswindows_init_device): Call InitCommonControls
14729         when have widgets.
14730         (mswindows_delete_device): Removed fontlist deallocation.
14731         (mswindows_mark_device): Added.
14732
14733         * events.c (event_equal): Added abort() at unreached code.
14734         (event_hash): Ditto.
14735
14736         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
14737         fallback tags of Windows devices.
14738
14739         * general.c (syms_of_general): Initialized Qmsprinter.
14740
14741         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
14742         of fallback tags of Windows devices.
14743
14744         * lisp.h: Declared Qmsprinter.
14745
14746         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
14747         of strings.
14748         (mswindows_list_fonts): Ditto.
14749         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
14750         that it can be used by both mswindows and msprinter devices.
14751         (initialize_font_instance): Added.
14752         (mswindows_initialize_font_instance): Use it.
14753         (msprinter_initialize_font_instance): Added.
14754
14755         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
14756         and implementation flags check.
14757         (redisplay_without_hooks): Changed the call to the above.
14758         (Fredraw_device): Ditto.
14759         (Fredisplay_device): Ditto.
14760
14761         * redisplay-msw.c (get_frame_dc): Implemented.
14762         (get_frame_compdc): Implemented.
14763         (many functions): Use the two functions above to get device
14764         contexts, ether for a window or a printer.
14765
14766 2000-01-21  Olivier Galibert  <galibert@pobox.com>
14767
14768         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
14769         initialization here.
14770         (init_symbols_once_early): Call it.
14771         * emacs.c (main_1): Call it.
14772         * symsinit.h: Declare it.
14773
14774 2000-01-19  Olivier Galibert  <galibert@pobox.com>
14775
14776         * alloc.c: Use a lrecord_header * in the backtrace instead of a
14777         Lisp_Object.
14778         (pdump_backtrace): Ditto.
14779         (pdump_register_object): Ditto.  Cleanup use of the pointers.
14780         (pdump_get_entry): Abort if trying to register a null pointer.
14781         (pdump_dump_data): Cleanup types when relocating.
14782         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
14783         (pdump_dump_rtables): Remove bad casts.
14784         (pdump_load): Cleanup relocation w.r.t union type.  Use a
14785         Lisp_Object instead of a EMACS_INT for the hashtable
14786         reorganization.
14787
14788 2000-01-20  Martin Buchholz  <martin@xemacs.org>
14789
14790         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
14791
14792         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
14793
14794         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
14795
14796         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
14797
14798 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14799
14800         * faces.h (FACE_STRIKETHRU_P): Added.
14801
14802         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
14803         of font variants.
14804
14805         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
14806         (mswindows_set_dc_font): New function, aware of font variants,
14807         separated from mswindows_update_dc.
14808
14809         * objects-msw.h (struct mswindows_font_instance_data): Added
14810         definition.
14811
14812         * objects-msw.c (mswindows_finalize_font_instance): Delete all
14813         cached fonts and the data structure.
14814         (mswindows_initialize_font_instance): Added creation of font data
14815         structure.
14816         (mswindows_print_font_instance): Print at least something.
14817         (mswindows_create_font_variant): Implemented.
14818         (mswindows_get_hfont): Implemented.
14819
14820 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
14821
14822         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
14823         prototyping problem with msvc.
14824
14825         * emacs.c (main_1): added syms_of_gui_mswindows() call
14826
14827         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
14828         syms_of_gui_mswindows() function
14829
14830         * symsinit.h: added the prototype for syms_of_gui_mswindows()
14831
14832 2000-01-18  Martin Buchholz <martin@xemacs.org>
14833
14834         * XEmacs 21.2.27 is released.
14835
14836 2000-01-18  Martin Buchholz  <martin@xemacs.org>
14837
14838         * glyphs-eimage.c (struct tiff_error_struct):
14839         (tiff_error_func):
14840         (tiff_warning_func):
14841         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
14842
14843         * unexmips.c:
14844         * unexhp9k3.c:
14845         * unexfreebsd.c:
14846         * unexec.c: Remove vestigial Lucid C code.
14847         * unexalpha.c:
14848         * unexaix.c:
14849         * termcap.c:
14850         * libsst.c: Ansify.
14851         Remove declarations of errno and strerror().
14852
14853         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
14854
14855         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
14856
14857 2000-01-16  Martin Buchholz  <martin@xemacs.org>
14858
14859         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
14860         Optimize.
14861
14862 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14863
14864         * md5.c:
14865         * file-coding.c:
14866         * file-coding.h:
14867         Change enum eol_type to eol_type_t.
14868
14869 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14870
14871         * gui.c (get_gui_callback): Check cons before accessing car.
14872
14873 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14874
14875         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
14876         (XSETSPECIFIER_TYPE): Ditto.
14877
14878 2000-01-17  Didier Verna  <didier@xemacs.org>
14879
14880         * redisplay.c (generate_fstring_runes): compute string size in
14881         characters, not bytes.
14882
14883 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
14884
14885         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
14886
14887 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
14888
14889         * print.c (print_error_message): Call print_prepare().
14890
14891 2000-01-14  Martin Buchholz  <martin@xemacs.org>
14892
14893         * .dbxrc: Renamed from dbxrc.
14894
14895         * events.c (event_to_character):
14896         Use `assert (foo)' instead of `if (!foo) abort()'
14897
14898         * .gdbinit (xtype): Add documentation.
14899         * .gdbinit (check-temacs): New function.
14900         * .gdbinit (check-xemacs): New function.
14901         * dbxrc (check-xemacs): New function.
14902         * dbxrc (check-xemacs): New function.
14903
14904 2000-01-14  Andy Piper  <andy@xemacs.org>
14905
14906         * glyphs-widget.c (widget_query_geometry): Make sure that we
14907         calculate default dimensions correctly.
14908
14909 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14910
14911         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
14912
14913         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
14914         pdump_wire'd variable.
14915
14916         * emacs.c: (main_1): Conditionalized calls to
14917         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
14918
14919 2000-01-13  Martin Buchholz  <martin@xemacs.org>
14920
14921         * window.c (Fset_window_configuration):
14922         * sysdep.c (_start):
14923         * input-method-motif.c (res):
14924         * event-Xt.c (Xt_process_to_emacs_event):
14925         Simple compiler warning fixes.
14926
14927         * bytecode.c (funcall_compiled_function): Use the original
14928         function symbol on the backtrace list in preference to the
14929         compiled_function object in error messages.
14930
14931 2000-01-13  Andy Piper  <andy@xemacs.org>
14932
14933         * glyphs-x.c (update_widget_face): Make sure we update the widget
14934         background as well as foreground.
14935
14936 2000-01-13  Andy Piper  <andy@xemacs.org>
14937
14938         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
14939         fields to subwindow.
14940         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
14941         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
14942         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
14943         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
14944
14945         * glyphs-widget.c (check_valid_tab_orientation): new function.
14946         (initialize_widget_image_instance): zero orientation and
14947         justification.
14948         (widget_instantiate): pick up orientation.
14949         (tab_control_query_geometry): return appropriate values for
14950         vertical tabs.
14951
14952         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
14953         appropriate creation flags for left, right and bottom tabs.
14954
14955         * s/cygwin32.h: add tab definitions.
14956
14957 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14958
14959         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
14960         frame upon hiding a subwindow.
14961         (mswindows_button_instantiate): Changed the push button style to
14962         BS_PUSHBUTTON.
14963         (mswindows_button_instantiate): Removed button BS_NOTIFY
14964         style.
14965         (mswindows_button_instantiate): Removed redundant check for
14966         a disabled gui item.
14967         (mswindows_button_instantiate): Made use of WS_TABSTOP
14968         consistent: "operable" controls (edit, button, tree, scroll) have
14969         this style, "display-only" ones (static, progress gauge) do
14970         not. This style is currently ignored by XEmacs though. Also,
14971         removed the WS_EX_CONTROLPARENT style - it is not for children,
14972         it is for their parents!
14973         (mswindows_edit_field_instantiate): Ditto.
14974         (mswindows_progress_gauge_instantiate): Ditto.
14975         (mswindows_tree_view_instantiate): Ditto.
14976         (mswindows_tab_control_instantiate): Ditto.
14977         (mswindows_scrollbar_instantiate): Ditto.
14978         (mswindows_combo_box_instantiate): Ditto.
14979         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
14980         style to the "clip" window.
14981         (mswindows_button_instantiate): Removed compilation warning by
14982         equally typing terms of the ?: operator.
14983
14984 2000-01-12  Didier Verna  <didier@xemacs.org>
14985
14986         * redisplay.c (generate_fstring_runes): new parameter holding the
14987         last modeline-format extent.
14988         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
14989         extent, fill the glyph block with it.
14990         (generate_fstring_runes): handle these parameters.
14991         (generate_formatted_string_db): ditto.
14992
14993         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
14994         glyphs'extents in the modeline.
14995
14996 1999-01-11  Mike Woolley  <mike@bulsara.com>
14997
14998         * ntheap.c: Reduced the reserved heap space from 1Gb down to
14999         256Mb, as a workaround for the non-starting problem many people
15000         have experienced.
15001
15002 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15003
15004         * console-tty.c (Fset_console_tty_output_coding_system):
15005         Force redrawing tty frame.
15006
15007 2000-01-10  Didier Verna  <didier@xemacs.org>
15008
15009         * redisplay.c (generate_fstring_runes): fix size computation bug.
15010
15011 2000-01-09  William M. Perry <wmperry@aventail.com>
15012
15013         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15014
15015 2000-01-09  Andy Piper  <andy@xemacs.org>
15016
15017         * glyphs-msw.c: index -> i to avoid shadows.
15018         (xbm_create_bitmap_from_data): make static.
15019         (check_valid_string_or_int): deleted.
15020         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15021
15022         * glyphs-x.c (x_update_subwindow): remove unused args.
15023
15024         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15025         back pointer - this is done in allocate_image_instance.
15026         (query_string_font): return Qnil to make the compiler happy.
15027         (unmap_subwindow): set to ~0 to make the compiler happy.
15028         (glyph_query_geometry): comment out until used.
15029         (glyph_layout): ditto.
15030
15031 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15032
15033         * insdel.c (signal_after_change): Remove extraneous unbind_to().