update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Vcharset_ucs_gb): New variable.
4         (Qucs_gb): New variable.
5         (syms_of_mule_charset): Add new symbol `ucs-gb'.
6         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
7
8         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
9
10 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * mule-charset.c (charset_code_point): if a coded-charset has a
13         final-byte, don't inherit the builtin range of the mother CCS.
14
15 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
16
17         * mule-charset.c (charset_code_point): Fix problem about
18         inheritance.
19
20 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
21
22         * mule-charset.c (decode_builtin_char): Reorganized.
23
24 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * text-coding.c (char_encode_as_entity_reference): Modify for
27         `charset_code_point'.
28         (char_encode_shift_jis): Likewise.
29         (char_encode_big5): Likewise.
30         (char_encode_utf8): Likewise.
31         (char_encode_iso2022): Likewise.
32
33         * mule-charset.c (charset_code_point): Add new argument
34         `defined_only'.
35         (Fencode_char): Add new optional argument `defined_only'.
36
37         * chartab.c (put_char_table): Modify for `charset_code_point'.
38
39         * char-ucs.h (charset_code_point): Add new argument
40         `defined_only'.
41         (encode_char_1): Modify for `charset_code_point'.
42
43 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
46         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
47
48 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
49
50         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
51         (Qjis_x0208): Likewise.
52         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
53         XCHARSET_FINAL(charset).
54         (charset_code_point): Modify condition for final-byte based
55         builtin-chars.
56         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
57         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
58         in UTF-2000; specify `=jis-x0208' as the mother of
59         `japanese-jisx0208-1978', `japanese-jisx0208' and
60         `japanese-jisx0208-1990' in UTF-2000.
61
62 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
63
64         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
65
66 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
67
68         * text-coding.c (decode_coding_utf16): Support UTF-16.
69         (char_encode_utf16): Fixed.
70
71 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * text-coding.c (Qutf16): New variable in MULE.
74         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
75         (Fcoding_system_type): Add `utf-16' in MULE.
76         (struct detection_state): Add a structure for utf16 in MULE.
77         (detect_coding_type): Setup st->utf16.mask in MULE.
78         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
79         MULE.
80         (reset_encoding_stream): Use `char_encode_utf16' and
81         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
82         (detect_coding_utf16): New function [incomplete].
83         (decode_coding_utf16): New function [support only UCS-2].
84         (char_encode_utf16): New function.
85         (char_finish_utf16): New function.
86         (syms_of_file_coding): Add new symbol `utf-16'; setup
87         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
88
89         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
90         UTF-2000.
91         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
92         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
93
94 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
95
96         * chartab.c (put_char_table): When a charset is specified as a
97         range in UTF-2000, don't support builtin characters.
98
99 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
100
101         * mule-charset.c (decode_defined_char): Don't refer external
102         database if Qunbound or Qnil are found.
103         (Fsave_charset_mapping_table): Don't define it if
104         HAVE_CHISE_CLIENT is not defined.
105         (Freset_charset_mapping_table): New function.
106         (load_char_decoding_entry_maybe): Store Qnil if a character is not
107         found in external database.
108         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
109         if HAVE_CHISE_CLIENT is not defined; add new builtin function
110         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
111
112 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
113
114         * text-coding.c (decode_coding_utf8): Check CCS is specified or
115         not.
116
117 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
118
119         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
120         Q_lowercase, Q_uppercase in UTF-2000.
121
122         * chartab.c (get_char_table): Add special code for the standard
123         case table to use character attribute `->downcase' and
124         `->uppercase' for case operations in UTF-2000.
125
126         * casetab.c (Qflippedcase): New variable in UTF-2000.
127         (Q_lowercase): Likewise.
128         (Q_uppercase): Likewise.
129         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
130         and `->uppercase' in UTF-2000.
131         (complex_vars_of_casetab): Assign attribute name `downcase' to
132         downcase and CANON table of Vstandard_case_table in UTF-2000;
133         assign attribute name `flippedcase' to upcase and EQV table of
134         Vstandard_case_table in UTF-2000.
135
136 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * text-coding.c (decode_add_er_char): Support isolated-chars.
139         (char_encode_as_entity_reference): Likewise.
140
141 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
142
143         * emacs.c (Vutf_2000_lisp_directory): New variable.
144         (Vconfigure_utf_2000_lisp_directory): Likewise.
145         (complex_vars_of_emacs): Add new variable
146         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
147
148 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
149
150         * char-ucs.h (DECODE_CHAR): Delete special code for
151         `chinese-big5-1' and `chinese-big5-2'.
152
153         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
154         (Qbig5_2): Likewise.
155         (decode_defined_char): Support CONVERSION_BIG5_1 and
156         CONVERSION_BIG5_2.
157         (decode_builtin_char): Likewise.
158         (charset_code_point): Likewise.
159         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
160         'conversion in UTF-2000.
161         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
162         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
163         `chinese-big5-2' as children of `chinese-big5'.
164
165         * char-ucs.h (CONVERSION_BIG5_1): New macro.
166         (CONVERSION_BIG5_2): New macro.
167
168 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
169
170         * text-coding.c (char_encode_big5): Support entity-reference.
171
172 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
173
174         * text-coding.c (char_encode_as_entity_reference): New function.
175         (char_encode_utf8): Use `char_encode_as_entity_reference'.
176
177 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
178
179         * text-coding.c (decode_coding_big5): Support entity-reference
180         decoding feature.
181
182 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
183
184         * text-coding.c (allocate_coding_system): Initialize initial
185         charsets for CODESYS_UTF8.
186         (Fmake_coding_system): Accept charset-g0, charset-g1 and
187         charset-g2 for CODESYS_UTF8.
188         (decode_coding_utf8): Use charset-g0.
189         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
190         to force variants to map to UCS.
191
192 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
193
194         * text-coding.c (Qutf_8_mcs): New variable.
195         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
196         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
197         instead of `utf-8' in UTF-2000.
198
199 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
200
201         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
202         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
203         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
204         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
205         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
206         CONVERSION_96x96x96x96 are introduced.
207         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
208         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
209         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
210
211         * char-ucs.h (CONVERSION_94): New macro.
212         (CONVERSION_96): New macro.
213         (CONVERSION_94x94): New macro.
214         (CONVERSION_96x96): New macro.
215         (CONVERSION_94x94x94): New macro.
216         (CONVERSION_96x96x96): New macro.
217         (CONVERSION_94x94x94x60): New macro.
218         (CONVERSION_94x94x94x94): New macro.
219         (CONVERSION_96x96x96x96): New macro.
220
221 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
222
223         * chartab.c (Vcharacter_variant_table): Deleted.
224         (Fchar_variants): Use character-attribute `->ucs-variants' instead
225         of `Vcharacter_variant_table'.
226         (Fput_char_attribute): Likewise.
227         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
228         (complex_vars_of_chartab): Likewise.
229
230 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
231
232         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
233
234         * fns.c (Qideographic_structure): New variable.
235         (Qkeyword_char): New variable.
236         (ids_format_unit): New function.
237         (Fideographic_structure_to_ids): New function.
238         (syms_of_fns): Add new symbols `ideographic-structure' and
239         `:char'; add new builtin function `ideographic-structure-to-ids'.
240
241         * data.c (Fchar_ref_p): New function.
242         (syms_of_data): Add new builtin function `char-ref-p'.
243
244         * chartab.h: Add an EXFUN for `Ffind_char'.
245
246 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * text-coding.c (Vcharacter_composition_table): Deleted.
249         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
250         in every UTF-2000.
251
252         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
253         UTF-2000.
254         (Vcharacter_composition_table): Deleted.
255         (Fget_composite_char): Use the implementation for external-DB
256         support in every UTF-2000.
257         (Fput_char_attribute): Likewise.
258         (char_attribute_system_db_file): Don't define if external-DB
259         feature is not available.
260         (Fsave_char_attribute_table): Likewise.
261         (Fmount_char_attribute_table): Likewise.
262         (Fclose_char_attribute_table): Likewise.
263         (Freset_char_attribute_table): Likewise.
264         (Fload_char_attribute_table): Likewise.
265         (syms_of_chartab): Don't define `save-char-attribute-table',
266         `mount-char-attribute-table', `reset-char-attribute-table',
267         `close-char-attribute-table' and `load-char-attribute-table' if
268         external-DB feature is not available.
269         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
270
271 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
272
273         * text-coding.c (Qcomposition): Add extern if external-DB feature
274         is supported.
275         (Vcharacter_composition_table): Don't add extern if external-DB
276         feature is supported.
277         (COMPOSE_ADD_CHAR): Modify for new data-representation of
278         character composition rule if external-DB feature is supported.
279
280         * chartab.c (Vcharacter_composition_table): Don't define if
281         external-DB feature is supported.
282         (Qcomposition): New variable.
283         (Fget_composite_char): New implementation for external-DB support.
284         (Fput_char_attribute): Use `composition' property of each
285         character instead of `Vcharacter_composition_table' to store
286         character-composition rules if external-DB feature is supported.
287         (syms_of_chartab): Add new symbol `composition'.
288         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
289         external-DB feature is supported.
290
291 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
292
293         * chartab.c (Vchar_db_stingy_mode): New variable.
294         (load_char_attribute_maybe): Close database if
295         Vchar_db_stingy_mode is not NIL.
296         (Fload_char_attribute_table_map_function): Use
297         `get_char_id_table_0' instead of `get_char_id_table'.
298         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
299
300         * chartab.h (get_char_id_table_0): New inline function.
301         (get_char_id_table): Use `get_char_id_table_0'.
302
303 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
304
305         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
306         and `COMPOSE_ADD_CHAR'.
307         (decode_coding_iso2022): Use `decode_flush_er_chars'.
308
309 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
310
311         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
312         instead of `DECODE_ADD_UCS_CHAR'.
313         (COMPOSE_ADD_CHAR): Likewise.
314
315 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
316
317         * text-coding.c (decode_flush_er_chars): New inline function.
318         (decode_add_er_char): New function.
319         (decode_coding_utf8): Use `decode_flush_er_chars' and
320         `decode_add_er_char'.
321
322 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
323
324         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
325         done before `decode_output_utf8_partial_char'.
326
327         * mule-charset.c (complex_vars_of_mule_charset): Specify
328         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
329         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
330
331 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
332
333         * mule-charset.c (decode_defined_char): New function; search
334         mother.
335         (decode_builtin_char): Don't search mother if
336         XCHARSET_MAX_CODE(charset) == 0.
337         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
338         == 0 even if code >= XCHARSET_MAX_CODE(charset).
339         (Fdecode_char): Use `decode_defined_char' instead of
340         `DECODE_DEFINED_CHAR'.
341         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
342         mother of `Vcharset_ucs_jis'.
343
344         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
345         instead of `DECODE_DEFINED_CHAR'.
346
347         * char-ucs.h (decode_defined_char): Renamed from
348         `DECODE_DEFINED_CHAR'; changed to normal function.
349         (DECODE_CHAR): Use `decode_defined_char' instead of
350         `DECODE_DEFINED_CHAR'.
351
352         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
353
354 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
357
358         * text-coding.c (Vcoded_charset_entity_reference_alist): New
359         variable.
360         (Quse_entity_reference): New variable.
361         (Qd): New variable.
362         (Qx): New variable.
363         (QX): New variable.
364         (coding_system_description): Add description for
365         `ccs_priority_list'.
366         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
367         (allocate_coding_system): Initialize `ccs_priority_list' in
368         UTF-2000.
369         (Fmake_coding_system): Add description about
370         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
371         (codesys).
372         (Fcoding_system_property): Accept `disable-composition' and
373         `use-entity-reference' in UTF-2000.
374         (struct decoding_stream): Add new member `er_counter' and `er_buf'
375         in UTF-2000.
376         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
377         (decode_coding_utf8): Decode entity-reference if
378         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
379         (char_encode_utf8): Encode non-Unicode characters as
380         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
381         (str->codesys).
382         (syms_of_file_coding): Add new symbols `use-entity-reference',
383         `d', `x', `X'.
384         (vars_of_file_coding): Add new variable
385         `coded-charset-entity-reference-alist'.
386         (complex_vars_of_file_coding): Declare `disable-composition' and
387         `use-entity-reference' to be coding-system-properties in UTF-2000.
388
389         * file-coding.h (struct Lisp_Coding_System): Add new member
390         `use_entity_reference' and `ccs_priority_list'.
391         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
392         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
393         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
394
395 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
396
397         * chartab.c (save_uint8_byte_table): Don't clear the table.
398         (save_uint16_byte_table): Likewise.
399         (save_byte_table): Likewise.
400         (Fmount_char_attribute_table): New function.
401         (syms_of_chartab): Add new builtin function
402         `mount-char-attribute-table'.
403
404 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
405
406         * mule-charset.c (Fsave_charset_mapping_table): Open database as
407         "w+" mode.
408         (load_char_decoding_entry_maybe): Open database as read-only mode.
409
410         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
411         open database as "w+" mode.
412         (load_char_attribute_maybe): Open database as read-only mode.
413         (Fload_char_attribute_table): Likewise.
414
415 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
416
417         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
418         (char_table_description): Delete member `db_file'.
419         (Fmake_char_table): Don't refer `ct->db_file'.
420         (Fcopy_char_table): Likewise.
421         (Fsave_char_attribute_table): Likewise.
422         (Fclose_char_attribute_table): Likewise.
423         (Freset_char_attribute_table): Likewise.
424         (load_char_attribute_maybe): Likewise.
425         (Fload_char_attribute_table): Likewise.
426
427         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
428
429 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
430
431         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
432         (Fsave_char_attribute_table): Don't check `ct->db_file' if
433         `ct->db' is living.
434         (load_char_attribute_maybe): Likewise.
435         (Fload_char_attribute_table): Likewise.
436
437 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
438
439         * chartab.c (Fclose_char_attribute_table): Set Qnil on
440         `ct->db_file' unconditionally.
441
442 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
443
444         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
445         UTF-2000.
446         (char_table_description): Add description for `db_file' and `db'
447         in UTF-2000.
448         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
449         UTF-2000.
450         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
451         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
452         (Fclose_char_attribute_table): New function.
453         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
454         (load_char_attribute_maybe): Change interface; use `cit->db_file'
455         and `cit->db'.
456         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
457         (syms_of_chartab): Add new builtin function
458         `Fclose_char_attribute_table'.
459
460 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
461
462         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
463         `db' in UTF-2000.
464         (load_char_attribute_maybe): Change interface.
465         (get_char_id_table): Modify for `load_char_attribute_maybe'.
466
467 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
468
469         * database.h: Add an EXFUN for `Fdatabase_live_p'.
470
471 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
472
473         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
474         instead of `DECODE_CHAR' for mother; don't use special code for
475         chinese-big5 to use code space of chinese-big5-1 and
476         chinese-big5-2.
477         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
478         `MAX_CHAR_BIG5_CDP' for chinese-big5.
479
480         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
481         (MAX_CHAR_BIG5_CDP): Revival.
482
483 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
484
485         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
486         the XLFD registry-encoding name of `chinese-big5'.
487
488 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
489
490         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
491         (Qchinese_big5_cdp): Deleted.
492         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
493         (complex_vars_of_mule_charset): Delete coded-charset
494         `chinese-big5-cdp'.
495
496         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
497         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
498         `CHARSET_ID_OFFSET - n' for private CCS.
499         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
500         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
501         of `MIN_LEADING_BYTE'.
502         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
503         `(CHARSET_ID_OFFSET - 97)'.
504         (MIN_CHAR_BIG5_CDP): Deleted.
505         (MAX_CHAR_BIG5_CDP): Deleted.
506
507 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
508
509         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
510
511 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
512
513         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
514         (vars_of_mule): Add new variable `utf-2000-version' [moved from
515         chartab.c].
516
517         * chartab.c (Vutf_2000_version): Moved to mule.c.
518         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
519
520 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
521
522         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
523         when HAVE_CHISE_CLIENT is not defined.
524
525         * mule.c (vars_of_mule): Provide feature `chise' when
526         HAVE_CHISE_CLIENT is defined.
527
528 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
529
530         * config.h.in (UTF2000): Add comment.
531         (HAVE_CHISE_CLIENT): New macro.
532
533 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
534
535         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
536         CONSP.
537         (Fput_char_attribute): Likewise.
538         (char_attribute_system_db_file): Encode file-name of attribute.
539         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
540         the initial value.
541
542 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
543
544         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
545         (Fsave_charset_mapping_table): Use
546         `char_attribute_system_db_file'.
547         (load_char_decoding_entry_maybe): Likewise.
548
549         * chartab.h (Qsystem_char_id): New external variable.
550         (char_attribute_system_db_file): New prototype.
551
552         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
553         (char_attribute_system_db_file): New function.
554         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
555         (Freset_char_attribute_table): Likewise.
556         (load_char_attribute_maybe): Likewise.
557         (Fload_char_attribute_table): Likewise.
558         (syms_of_chartab): Add new symbol `system-char-id'.
559
560 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
561
562         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
563         `XCHARSET_GRAPHIC(ccs)'.
564
565 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
566
567         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
568
569 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
570
571         * chartab.c (Q_ucs_variants): New variable.
572         (syms_of_chartab): Add new symbol `->ucs-variants'.
573         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
574         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
575         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
576
577         * mule-charset.c (load_char_decoding_entry_maybe): New function.
578
579         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
580         `HAVE_DATABASE' is defined.
581         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
582         `HAVE_DATABASE' is defined.
583
584 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
585
586         * chartab.c (Fsave_char_attribute_table): Don't clear internal
587         attribute-table.
588         (Freset_char_attribute_table): New function.
589         (syms_of_chartab): Add new builtin function
590         `reset-char-attribute-table'.
591
592 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
593
594         * chartab.c (load_char_attribute_maybe): Don't make directories.
595
596 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
597
598         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
599
600         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
601         for decoding-table.
602
603 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * mule-charset.c (Fsave_charset_mapping_table): Use
606         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
607
608         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
609         instead of `XCHARSET_CHARS'.
610
611 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
612
613         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
614         (XCHARSET_BYTE_SIZE): Likewise.
615
616         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
617         mule-charset.c].
618         (XCHARSET_BYTE_SIZE): Likewise.
619
620 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
621
622         * chartab.c (Fput_char_attribute): Use exec-directory instead of
623         data-directory to store database.
624         (Fsave_char_attribute_table): Likewise.
625         (load_char_attribute_maybe): Likewise.
626         (Fload_char_attribute_table): Likewise.
627
628 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
629
630         * mule-charset.c (Fsave_charset_mapping_table): New function.
631         (syms_of_mule_charset): Add new builtin function
632         `save-charset-mapping-table'.
633
634 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
635
636         * char-ucs.h (decoding_table_check_elements): Delete prototype.
637         (get_ccs_octet_table): New inline function.
638         (put_ccs_octet_table): Likewise.
639         (decoding_table_put_char): Use `get_ccs_octet_table' and
640         `put_ccs_octet_table'.
641         (decoding_table_remove_char): Use `decoding_table_put_char'.
642         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
643
644         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
645         into encoding_table.
646         (make_charset): Use Qunbound instead Qnil as initial value of
647         decoding_table.
648
649 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
650
651         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
652         element is Qunloaded.
653         (map_over_uint16_byte_table): Likewise.
654         (map_over_byte_table): Likewise.
655         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
656         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
657         database support, load encoding-table of the specified
658         coded-charset if it is not loaded yet.
659         (save_uint8_byte_table): New function of UTF-2000 with external
660         database support.
661         (save_uint16_byte_table): Likewise.
662         (save_byte_table): Likewise.
663         (Fput_char_attribute): Don't store value into external database
664         even if the external database feature is supported in UTF-2000;
665         set `attribute' as name of char-table if the external database
666         feature is supported.
667         (Fsave_char_attribute_table): New function in UTF-2000.
668         (syms_of_chartab): Add new builtin function
669         `save-char-attribute-table' in UTF-2000.
670
671 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
672
673         * chartab.c (char_attribute_table_to_put): New variable in
674         UTF-2000.
675         (Qput_char_table_map_function): Likewise.
676         (value_to_put): Likewise.
677         (Fput_char_table_map_function): New function in UTF-2000.
678         (put_char_table): Use `Fmap_char_attribute' for
679         CHARTAB_RANGE_CHARSET in UTF-2000.
680         (Fput_char_attribute): Store symbol instead of string in
681         `XCHAR_TABLE_NAME (table)'.
682         (load_char_attribute_maybe): Likewise.
683         (syms_of_chartab): Add new symbol/function
684         `put-char-table-map-function'.
685
686 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
687
688         * database.h: Add new EXFUN for `Fmap_database'.
689
690         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
691         (syms_of_database): Likewise.
692
693         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
694         UTF-2000.
695         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
696         (XCHAR_TABLE_UNLOADED): Likewise.
697
698         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
699         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
700         HAVE_DATABASE is defined.
701         (char_attribute_table_to_load): New variable of UTF-2000 with
702         external database support.
703         (Qload_char_attribute_table_map_function): Likewise.
704         (Fload_char_attribute_table_map_function): New function of
705         UTF-2000 with external database support.
706         (Fload_char_attribute_table): New function of UTF-2000.
707         (Fmap_char_attribute): Call Fload_char_attribute_table if
708         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
709         (syms_of_chartab): Add new symbol and function
710         `load-char-attribute-table-map-function' in UTF-2000 with external
711         database support; add new function `load-char-attribute-table' in
712         UTF-2000.
713
714 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
715
716         * chartab.h (load_char_attribute_maybe): New prototype for
717         UTF-2000 with DATABASE support.
718         (get_char_id_table): Use `load_char_attribute_maybe' if
719         HAVE_DATABASE is defined.
720
721         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
722         with DATABASE support.
723
724 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * chartab.c (Fput_char_attribute): Use S-expression as key of
727         external database.
728
729         * chartab.h (get_char_id_table): Use S-expression as key of
730         external database.
731
732 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
733
734         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
735         if an element is not loaded, load the corresponding attributes
736         from an external database.
737         (map_over_uint16_byte_table): Likewise.
738         (map_over_byte_table): Likewise.
739         (map_char_table): Modify for `map_over_uint8_byte_table',
740         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
741         element is not loaded, load the corresponding attributes from an
742         external database.
743         (Fput_char_attribute): Change initial values to Qunloaded.
744
745         * chartab.h (get_char_id_table): If a character attribute is not
746         loaded and the attribute value is not found in an external
747         database, store Qunbound as the attribute value.
748
749 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
750
751         * chartab.c (BT_UINT8_unloaded): New macro.
752         (UINT8_VALUE_P): Accept Qunloaded.
753         (UINT8_ENCODE): Likewise.
754         (UINT8_DECODE): Likewise.
755         (BT_UINT16_unloaded): New macro.
756         (UINT16_VALUE_P): Accept Qunloaded.
757         (UINT16_ENCODE): Likewise.
758         (UINT16_DECODE): Likewise.
759         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
760         BT_UINT16_unloaded.
761         (mark_char_table): Mark `ct->name' in UTF-2000.
762         (char_table_description): Add `name' in UTF-2000.
763         (Fmake_char_table): Initialize `ct->name'.
764         (Fcopy_char_table): Copy `ct->name'.
765         (Fput_char_attribute): Store value into an external database if
766         HAVE_DATABASE is defined.
767
768         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
769         UTF-2000.
770         (CHAR_TABLE_NAME): New macro in UTF-2000.
771         (XCHAR_TABLE_NAME): New macro in UTF-2000.
772         (get_char_id_table): Try to read an external database if Qunloaded
773         is stored in a table.
774
775         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
776         Qunloaded.
777
778 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
779
780         * database.h: Add EXFUN definitions for Fopen_database,
781         Fput_database, Fget_database and Fclose_database.
782
783         * data.c (Qunloaded): New variable in UTF-2000.
784
785         * lisp.h (Qunloaded): New variable in UTF-2000.
786
787 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
788
789         * mule-charset.c (put_char_ccs_code_point): Modify for
790         `decoding_table_remove_char' and `decoding_table_put_char'.
791         (remove_char_ccs): Modify for `decoding_table_remove_char'.
792
793         * char-ucs.h (decoding_table_remove_char): Change arguments to
794         hide decoding_table vector.
795         (decoding_table_put_char): Likewise.
796
797 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
798
799         * mule-charset.c (decoding_table_remove_char): Moved to
800         char-ucs.h.
801         (decoding_table_put_char): Likewise.
802
803         * char-ucs.h (decoding_table_check_elements): New prototype [moved
804         from mule-charset.c].
805         (decoding_table_remove_char): New inline function [moved from
806         mule-charset.c].
807         (decoding_table_put_char): Likewise.
808
809 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
810
811         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
812         extension.
813
814 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
815
816         * mule-charset.c (decode_builtin_char): Support mother charsets.
817
818 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
819
820         * mule-charset.c (Q94x94x60): New variable.
821         (charset_code_point): Support conversion `94x94x60'.
822         (Fmake_charset): Likewise.
823         (syms_of_mule_charset): Add new symbol `94x94x60'.
824
825         * char-ucs.h (CONVERSION_94x94x60): New macro.
826
827 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
828
829         * mule-charset.c (charset_code_point): Unify code about
830         `code-offset'.
831
832 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
833
834         * mule-charset.c (charset_code_point): Merge code about builtin
835         characters into code about mother charsets; don't use
836         `range_charset_code_point'.
837         (range_charset_code_point): Deleted.
838
839 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
840
841         * mule-charset.c (Qcode_offset): New variable.
842         (Fmake_charset): Use `XUINT' to get value of `min-code' and
843         `max-code'; accept new property `code-offset'.
844         (syms_of_mule_charset): Add new symbol `code-offset'.
845
846 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
847
848         * mule-charset.c (range_charset_code_point): Fixed.
849
850 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * mule-charset.c (decode_builtin_char): Change semantics of
853         code-offset of coded-charset.
854         (charset_code_point): Likewise.
855         (range_charset_code_point): Likewise.
856         (complex_vars_of_mule_charset): Modify for the change.
857
858 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
859
860         * mule-charset.c (Fencode_char): Reverse arguments.
861
862         * mule-charset.c (charset_code_point): Fixed.
863
864 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * mule-charset.c (Vcharset_mojikyo): Deleted.
867         (Vcharset_mojikyo_2022_1): Deleted.
868         (Vcharset_mojikyo_pj_{1..21}): Deleted.
869         (Qmin_code): New variable in UTF-2000.
870         (Qmax_code): Likewise.
871         (Qmother): Likewise.
872         (Qconversion): Likewise.
873         (Q94x60): Likewise.
874         (Qmojikyo): Deleted.
875         (Qmojikyo_2022_1): Deleted.
876         (Qmojikyo_pj_{1..22}): Deleted.
877         (mark_charset): Mark `cs->mother'.
878         (charset_description): Add description for `mother'.
879         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
880         new arguments `mother' and `conversion'; use
881         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
882         (charset_code_point): Moved from char-ucs.h; support `mother'
883         charset feature.
884         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
885         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
886         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
887         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
888         allow 2 as the value of `graphic' in UTF-2000; add new properties
889         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
890         require `final' in UTF-2000; modify for `make_charset'.
891         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
892         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
893         (Fcharset_property): Support `mother', `min-code' and `max-code'.
894         (Fencode_char): New function.
895         (syms_of_mule_charset): Add new builtin function `encode-char' in
896         UTF-2000; add new symbols `min-code', `max-code', `mother',
897         `conversion' and `94x60'; delete symbols `mojikyo',
898         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
899         (complex_vars_of_mule_charset): Modify for `make_charset' change;
900         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
901         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
902
903         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
904         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
905
906         * char-ucs.h (Vcharset_mojikyo): Deleted.
907         (Vcharset_mojikyo_2022_1): Deleted.
908         (LEADING_BYTE_MOJIKYO): Deleted.
909         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
910         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
911         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
912         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
913         add new member `mother'; add new member `conversion'.
914         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
915         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
916         (CHARSET_MOTHER): New macro.
917         (CHARSET_CONVERSION): New macro.
918         (CONVERSION_IDENTICAL): New macro.
919         (CONVERSION_94x60): New macro.
920         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
921         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
922         (XCHARSET_MOTHER): New macro.
923         (XCHARSET_CONVERSION): New macro.
924         (MIN_CHAR_MOJIKYO): Deleted.
925         (MAX_CHAR_MOJIKYO): Deleted.
926         (DECODE_MOJIKYO_2022): Deleted.
927         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
928         (charset_code_point): Changed to non-inline function.
929         (encode_char_1): Use `charset_code_point'.
930         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
931
932 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
933
934         * lread.c (read_compiled_function): Fix prototype.
935         (read_vector): Likewise.
936
937 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
938
939         * lrecord.h (struct lrecord_header): Delete `older'.
940         (set_lheader_implementation): Delete code for `older'.
941         (set_lheader_older_implementation): Deleted.
942         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
943         (OLDER_RECORD_P): Deleted.
944         (OLDER_RECORD_HEADER_P): Deleted.
945         (alloc_older_lcrecord): Deleted.
946         (alloc_older_lcrecord_type): Deleted.
947
948         * alloc.c (all_older_lcrecords): Deleted.
949         (alloc_older_lcrecord): Deleted.
950         (disksave_object_finalization_1): Delete code for older objects.
951         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
952         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
953
954 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
955
956         * mule-charset.c (decoding_table_put_char): Use `make_vector'
957         instead of `make_older_vector'.
958         (put_char_ccs_code_point): Likewise.
959         (mark_charset): Mark `cs->decoding_table'.
960         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
961
962         * lisp.h (make_older_vector): Deleted.
963         (make_vector_newer): Deleted.
964
965         * config.h.in (HAVE_GGC): Deleted.
966
967         * alloc.c (make_older_vector): Deleted.
968         (make_vector_newer_1): Deleted.
969         (make_vector_newer): Deleted.
970
971 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
972
973         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
974         (Qideograph_daikanwa_2): New variable.
975         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
976         (complex_vars_of_mule_charset): Add new coded-charset
977         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
978         `LEADING_BYTE_DAIKANWA'.
979
980         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
981         (LEADING_BYTE_DAIKANWA_1): New macro.
982         (LEADING_BYTE_DAIKANWA_2): New macro.
983         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
984
985 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
986
987         * mule-charset.c (complex_vars_of_mule_charset): Change
988         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
989         the second revised version.
990
991 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
992
993         * mule-charset.c (Vcharset_ucs_smp): New variable.
994         (Vcharset_ucs_sip): New variable.
995         (Qucs_smp): New variable.
996         (Qucs_sip): New variable.
997         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
998         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
999         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1000         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1001         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1002         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1003
1004         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1005         (LEADING_BYTE_UCS_SIP): New macro.
1006         (MIN_CHAR_SMP): New macro.
1007         (MAX_CHAR_SMP): New macro.
1008         (MIN_CHAR_SIP): New macro.
1009         (MAX_CHAR_SIP): New macro.
1010
1011 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1012
1013         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1014         utf-2000.
1015
1016 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1017
1018         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1019         value; don't store value into `encoding_table' of `Lisp_Charset'.
1020         (mark_charset): `encoding_table' was deleted.
1021         (charset_description): Likewise.
1022         (make_charset): Likewise.
1023         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1024         `put_char_ccs_code_point'.
1025
1026         * chartab.h (Fput_char_attribute): New EXFUN.
1027
1028         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1029         is unified with normal symbol space.
1030         (Fget_char_attribute): Likewise.
1031         (Fput_char_attribute): Likewise; behavior of
1032         `put_char_ccs_code_point' is changed.
1033
1034         * char-ucs.h: Include "elhash.h".
1035         (Vchar_attribute_hash_table): New external variable.
1036         (struct Lisp_Charset): Delete `encoding_table'.
1037         (CHARSET_ENCODING_TABLE): New implementation; refer
1038         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1039         `Lisp_Charset'.
1040
1041 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1042
1043         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1044         (cs) == 0.
1045
1046 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1047
1048         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1049         `chinese-big5'.
1050
1051 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1052
1053         * chartab.c (uint8_byte_table_description): New constant.
1054         (uint8-byte-table): Use `uint8_byte_table_description'.
1055         (uint16_byte_table_description): New constant.
1056         (uint16-byte-table): Use `uint16_byte_table_description'.
1057
1058 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1059
1060         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1061         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1062
1063 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1064
1065         * mule-charset.c (Vcharset_ucs_ks): New variable.
1066         (Qucs_ks): New variable.
1067         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1068         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1069
1070         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1071
1072 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1073
1074         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1075         (Fdecode_char): Likewise.
1076
1077         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1078         chartab.h.
1079         (Fdefine_char): Modify for Fdecode_char.
1080         (Ffind_char): Likewise.
1081
1082         * mule-charset.c (Fdecode_char): Add new optional argument
1083         `defined-only'.
1084         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1085
1086 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1087
1088         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1089         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1090         (allocate_coding_system): Initialize initial-charsets of
1091         CODESYS_BIG5 in XEmacs UTF-2000.
1092         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1093         CODESYS_BIG5 in XEmacs UTF-2000.
1094         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1095         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1096
1097         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1098         variables.
1099         (Qideograph_hanziku_{1 .. 12}): Likewise.
1100         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1101         .. 12}'.
1102         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1103         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1104         `ideograph-hanziku-{1 .. 12}'.
1105
1106         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1107         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1108         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1109         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1110         (DECODE_DEFINED_CHAR): New inline function.
1111         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1112
1113 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1114
1115         * mule-charset.c (Vcharset_china3_jef): Renamed from
1116         `Vcharset_japanese_jef_china3'.
1117         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1118         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1119         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1120         (syms_of_mule_charset): Rename `china3-jef' from
1121         `japanese-jef-china3'.
1122         (complex_vars_of_mule_charset): Likewise; rename
1123         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1124
1125         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1126         `LEADING_BYTE_JEF_CHINA3'.
1127         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1128         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1129
1130 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1131
1132         * mule-charset.c (encode_builtin_char_1): Comment out special code
1133         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1134
1135         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1136         (MAX_CHAR_MOJIKYO_0): Comment out.
1137         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1138         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1139         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1140         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1141
1142 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1143
1144         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1145         (Qideograph_cbeta): New variable.
1146         (encode_builtin_char_1): Comment out special code for
1147         coded-charset `mojikyo' and `japanese-jef-china3'.
1148         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1149         (complex_vars_of_mule_charset): Add new coded-charset
1150         `ideograph-cbeta'.
1151
1152         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1153         (MIN_CHAR_CBETA): New macro.
1154         (MAX_CHAR_CBETA): New macro.
1155
1156 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157
1158         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1159         (LEADING_BYTE_JEF_CHINA3): New macro.
1160         (MIN_CHAR_JEF_CHINA3): New macro.
1161         (MAX_CHAR_JEF_CHINA3): Likewise.
1162         (DECODE_CHAR): Fixed.
1163
1164 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1165
1166         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1167         (Qjapanese_jef_china3): New variable.
1168         (encode_builtin_char_1): Support `japanese-jef-china3'.
1169         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1170         (complex_vars_of_mule_charset): Add new coded-charset
1171         `japanese-jef-china3'.
1172
1173 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174
1175         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1176         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1177         94^4, 96^3, 96^4, 128^n and 256^n set.
1178         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1179         (map_char_table): Likewise.
1180
1181 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1182
1183         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1184         UTF-2000.
1185
1186 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1187
1188         * chartab.h (get_char_id_table): New inline function.
1189
1190         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1191         function.
1192
1193 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1194
1195         * chartab.h (decode_char_table_range): New prototype in XEmacs
1196         UTF-2000.
1197         (put_char_id_table): New inline function in XEmacs UTF-2000.
1198
1199         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1200         function.
1201         (decode_char_table_range): Delete static declaration in XEmacs
1202         UTF-2000.
1203
1204 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1205
1206         * chartab.c (put_char_id_table): Use `put_char_table'.
1207
1208 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1209
1210         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1211         (map_over_uint16_byte_table): Likewise.
1212         (map_over_byte_table): Likewise.
1213         (map_char_table): Modify for `map_over_uint8_byte_table',
1214         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1215         UTF-2000.
1216
1217 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1218
1219         * chartab.c (struct map_char_table_for_charset_arg): New
1220         structure.
1221         (map_char_table_for_charset_fun): New function.
1222         (map_char_table): Use `map_char_table' for encoding_table of
1223         `range->charset'.
1224
1225 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1226
1227         * chartab.c (map_char_table): Check a character is found in
1228         range->charset instead of non default value is defined in
1229         char-table when range is CHARTAB_RANGE_ROW.
1230
1231 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232
1233         * chartab.c (map_char_id_table): Deleted.
1234         (Fmap_char_attribute): Use `map_char_table' instead of
1235         `map_char_id_table'.
1236
1237 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1238
1239         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1240         UTF-2000.
1241         (update_syntax_table): Deleted in XEmacs UTF-2000.
1242
1243         * syntax.c (find_defun_start): Use `syntax_table' instead of
1244         `mirror_syntax_table' in XEmacs UTF-2000.
1245         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1246         UTF-2000.
1247         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1248         XEmacs UTF-2000.
1249         (Fmatching_paren): Likewise.
1250         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1251         in XEmacs UTF-2000.
1252         (find_start_of_comment): Likewise.
1253         (find_end_of_comment): Likewise.
1254         (Fforward_comment): Likewise.
1255         (scan_lists): Likewise.
1256         (char_quoted): Likewise.
1257         (Fbackward_prefix_chars): Likewise.
1258         (scan_sexps_forward): Likewise.
1259         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1260         (update_syntax_table): Likewise.
1261
1262         * search.c (skip_chars): Use `syntax_table' instead of
1263         `mirror_syntax_table' in XEmacs UTF-2000.
1264         (wordify): Likewise.
1265         (Freplace_match): Likewise.
1266
1267         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1268         `mirror_syntax_table' in XEmacs UTF-2000.
1269         (WORDCHAR_P_UNSAFE): Likewise.
1270         (re_match_2_internal): Likewise.
1271
1272         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1273         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1274
1275         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1276         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1277
1278         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1279         XEmacs UTF-2000.
1280
1281         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1282         UTF-2000.
1283         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1284         (char_table_description): Delete `mirror_table' in XEmacs
1285         UTF-2000.
1286         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1287         UTF-2000.
1288         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1289         (Fcopy_char_table): Likewise.
1290         (put_char_table): Don't call `update_syntax_table' in XEmacs
1291         UTF-2000.
1292
1293         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1294         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1295         (casify_region_internal): Likewise.
1296
1297         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1298
1299         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1300         `mirror_syntax_table' in XEmacs UTF-2000.
1301
1302         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1303         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1304         (Fexpand_abbrev): Likewise.
1305
1306 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1309
1310 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311
1312         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1313         (map_over_uint16_byte_table): Likewise.
1314         (map_over_byte_table): Likewise.
1315         (get_char_id_table): Refer `cit->default_value'.
1316         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1317         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1318         of character-id ranges.
1319         (mark_char_table): Mark `ct->default_value'.
1320         (char_table_description): Add `default_value'.
1321         (fill_char_table): Use `default_value'.
1322         (decode_char_table_range): Decode `nil' as
1323         `CHARTAB_RANGE_DEFAULT'.
1324         (get_char_id_table): Refer `cit->default_value'.
1325         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1326         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1327         temporary hack; check value of char-table is bound or not.
1328         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1329
1330         * chartab.h (struct Lisp_Char_Table): Add new member
1331         `default_value' in XEmacs UTF-2000.
1332         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1333         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1334         UTF-2000.
1335
1336 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337
1338         * chartab.h (Lisp_Char_ID_Table): Deleted.
1339
1340         * chartab.c (char_table_description): Fix typo.
1341         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1342         `Lisp_Char_ID_Table'.
1343
1344 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1345
1346         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1347         `CHAR_ID_TABLE_P'.
1348
1349         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1350         `CHAR_ID_TABLE_P'.
1351
1352         * chartab.h (XCHAR_ID_TABLE): Deleted.
1353         (XSETCHAR_ID_TABLE): Deleted.
1354         (CHAR_ID_TABLE_P): Deleted.
1355
1356         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1357         `CHAR_ID_TABLE_P'.
1358         (Fget_composite_char): Likewise.
1359         (put_char_table): Likewise.
1360         (add_char_attribute_alist_mapper): Fixed.
1361         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1362         `CHAR_ID_TABLE_P'.
1363         (Fget_char_attribute): Likewise.
1364         (Fget_char_attribute): Likewise.
1365         (Fmap_char_attribute): Likewise.
1366
1367         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1368         `CHAR_ID_TABLE_P'.
1369         (encode_char_1): Likewise.
1370
1371 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1372
1373         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1374         `XCHAR_ID_TABLE'.
1375
1376         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1377         instead of `XCHAR_ID_TABLE'.
1378         (remove_char_ccs): Likewise.
1379
1380         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1381         `XCHAR_ID_TABLE'.
1382         (Fget_composite_char): Likewise.
1383         (Fchar_variants): Likewise.
1384         (put_char_table): Likewise.
1385         (add_char_attribute_alist_mapper): Likewise.
1386         (Fchar_attribute_alist): Likewise.
1387         (Fget_char_attribute): Likewise.
1388         (Fput_char_attribute): Likewise.
1389         (Fmap_char_attribute): Likewise.
1390         (Fmap_char_attribute): Likewise.
1391
1392         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1393         `XCHAR_ID_TABLE'.
1394         (encode_char_1): Likewise.
1395
1396 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1399         `Lisp_Char_ID_Table'.
1400         (mark_char_id_table): Deleted.
1401         (print_char_id_table): Likewise.
1402         (char_id_table_equal): Likewise.
1403         (char_id_table_hash): Likewise.
1404         (char_id_table_description): Likewise.
1405         (char_id_table): Likewise.
1406         (make_char_id_table): Use `Fmake_char_table' and
1407         `fill_char_table'.
1408         (get_char_id_table): Use `Lisp_Char_Table' instead of
1409         `Lisp_Char_ID_Table'.
1410         (put_char_id_table): Likewise.
1411         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1412         `XCHAR_ID_TABLE'.
1413         (Fremove_char_attribute): Likewise.
1414         (syms_of_chartab): Don't define type `char-id-table'.
1415
1416         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1417         (char_id_table): Likewise.
1418         (GC_CHAR_ID_TABLE_P): Likewise.
1419         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1420         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1421         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1422         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1423         (get_char_id_table): Use `Lisp_Char_Table' instead of
1424         `Lisp_Char_ID_Table'.
1425         (put_char_id_table_0): Likewise.
1426         (put_char_id_table): Likewise.
1427
1428 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1429
1430         * chartab.h: Lisp_Byte_Table related codes are moved from
1431         chartab.h.
1432
1433         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1434
1435 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1436
1437         * chartab.h: Don't include "chartab.h".
1438         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1439         (Lisp_Char_ID_Table): Likewise.
1440         (char_id_table): Likewise.
1441         (XCHAR_ID_TABLE): Likewise.
1442         (XSETCHAR_ID_TABLE): Likewise.
1443         (CHAR_ID_TABLE_P): Likewise.
1444         (GC_CHAR_ID_TABLE_P): Likewise.
1445         (get_char_id_table): Likewise.
1446
1447         * char-ucs.h: Include "chartab.h".
1448         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1449         (Lisp_Char_ID_Table): Likewise.
1450         (char_id_table): Likewise.
1451         (XCHAR_ID_TABLE): Likewise.
1452         (XSETCHAR_ID_TABLE): Likewise.
1453         (CHAR_ID_TABLE_P): Likewise.
1454         (GC_CHAR_ID_TABLE_P): Likewise.
1455         (get_char_id_table): Likewise.
1456
1457 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1458
1459         * chartab.c (copy_uint8_byte_table): New function.
1460         (copy_uint16_byte_table): New function.
1461         (copy_byte_table): New function.
1462         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1463         characters to call.
1464         (map_over_uint16_byte_table): Likewise.
1465         (map_over_byte_table): Likewise.
1466         (get_byte_table): Move prototype to chartab.h.
1467         (put_byte_table): Likewise.
1468         (put_char_id_table_0): Moved to chartab.h.
1469         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1470         (char_table_entry_equal): Likewise.
1471         (char_table_entry_hash): Likewise.
1472         (char_table_entry_description): Likewise.
1473         (char_table_entry): Likewise.
1474         (make_char_table_entry): Likewise.
1475         (copy_char_table_entry): Likewise.
1476         (get_non_ascii_char_table_value): Likewise.
1477         (map_over_charset_ascii): Likewise.
1478         (map_over_charset_control_1): Likewise.
1479         (map_over_charset_row): Likewise.
1480         (map_over_other_charset): Likewise.
1481         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1482         (print_char_table): Likewise.
1483         (char_table_equal): Likewise.
1484         (char_table_hash): Likewise.
1485         (char_table_description): Likewise.
1486         (fill_char_table): Likewise.
1487         (Fcopy_char_table): Likewise.
1488         (get_char_table): Likewise.
1489         (Fget_range_char_table): Likewise.
1490         (put_char_table): Likewise.
1491         (map_char_table): Likewise.
1492         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1493         UTF-2000.
1494
1495 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1496
1497         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1498         `Vauto_fill_chars' in XEmacs UTF-2000.
1499
1500         * chartab.h (get_byte_table): New prototype [moved from
1501         chartab.c].
1502         (put_byte_table): Likewise [moved from chartab.c].
1503         (put_char_id_table_0): New inline function [moved from chartab.c].
1504         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1505         (Lisp_Char_Table_Entry): Likewise.
1506         (char_table_entry): Likewise.
1507         (XCHAR_TABLE_ENTRY): Likewise.
1508         (XSETCHAR_TABLE_ENTRY): Likewise.
1509         (CHAR_TABLE_ENTRYP): Likewise.
1510         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1511         (NUM_ASCII_CHARS): Likewise.
1512         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1513         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1514
1515 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1516
1517         * chartab.c (get_char_id_table): Change interface.
1518         (put_char_id_table_0): New function.
1519         (put_char_id_table): Change interface; new implementation.
1520         (Fget_composite_char): Modify for interface change of
1521         `get_char_id_table'.
1522         (Fchar_variants): Likewise.
1523         (add_char_attribute_alist_mapper): Likewise.
1524         (Fchar_attribute_alist): Likewise.
1525         (Fget_char_attribute): Likewise.
1526         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1527         as same as character as the first argument like `put-char-table';
1528         modify for interface change of `put_char_id_table'.
1529         (Fremove_char_attribute): Modify for interface change of
1530         `put_char_id_table'.
1531
1532 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533
1534         * text-coding.c: Sync up with XEmacs 21.2.41.
1535         (COMPOSE_ADD_CHAR): Modify for interface change of
1536         `get_char_id_table'.
1537
1538         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1539         change of `put_char_id_table'.
1540         (remove_char_ccs): Likewise.
1541
1542         * chartab.h (put_char_id_table): Change interface.
1543
1544         * char-ucs.h (get_char_id_table): Change interface.
1545         (charset_code_point): Modify for interface change of
1546         `get_char_id_table'.
1547         (encode_char_1): Likewise.
1548
1549 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1550
1551         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1552         argument `ccs'.
1553         (map_over_uint16_byte_table): Likewise.
1554         (map_over_byte_table): Likewise.
1555         (map_char_id_table): Add new argument `range' like
1556         `map_char_table'.
1557         (Fmap_char_attribute): Add new argument `range' like
1558         `Fmap_char_table'.
1559
1560 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1561
1562         * chartab.c (map_over_uint8_byte_table): Change interface of
1563         mapping function to use struct chartab_range instead of Emchar.
1564         (map_over_uint16_byte_table): Likewise.
1565         (map_over_byte_table): Likewise.
1566         (map_char_id_table): Likewise.
1567         (struct slow_map_char_id_table_arg): Deleted.
1568         (slow_map_char_id_table_fun): Deleted.
1569         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1570         function `slow_map_char_table_fun' instead of struct
1571         `slow_map_char_id_table_arg' and function
1572         `slow_map_char_id_table_fun'.
1573
1574 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1575
1576         * mule-charset.c: Move char-it-table related codes to chartab.c.
1577         (Vutf_2000_version): Moved to chartab.c.
1578         (Fdefine_char): Likewise.
1579         (Ffind_char): Likewise.
1580         (syms_of_mule_charset): Move types `uint8-byte-table',
1581         `uint16-byte-table', `byte-table' and `char-id-table' to
1582         chartab.c; move functions `char_attribute_list,
1583         `find_char_attribute_table, `char_attribute_alist,
1584         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1585         `map_char_attribute, `define_char, `find_char, `char_variants and
1586         `get_composite_char to chartab.c; move symbols `=>ucs',
1587         `->decomposition', `compat', `isolated', `initial', `medial',
1588         `final', `vertical', `noBreak', `fraction', `super', `sub',
1589         `circle', `square', `wide', `narrow', `small' and `font' to
1590         chartab.c.
1591         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1592         setting codes for `Vcharacter_composition_table' and
1593         `Vcharacter_variant_table' to chartab.c.
1594         (complex_vars_of_mule_charset): Move setting code for
1595         `Vchar_attribute_hash_table' to chartab.c.
1596
1597         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1598         (make_char_id_table): New prototype.
1599         (put_char_id_table): Likewise.
1600         (Fget_char_attribute): Likewise.
1601
1602         * chartab.c: Move char-id-table related code from mule-charset.c.
1603         (Vutf_2000_version): Moved from mule-charset.c.
1604
1605         * char-ucs.h (Qucs): New external variable.
1606         (put_char_ccs_code_point): New prototype.
1607         (remove_char_ccs): Likewise.
1608
1609 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1610
1611         * mule-charset.c (Vcharset_ucs_jis): New variable.
1612         (Qucs_jis): Likewise.
1613         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1614         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1615
1616         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1617
1618 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1619
1620         * mule-charset.c (map_over_uint8_byte_table): New function.
1621         (map_over_uint16_byte_table): Likewise.
1622         (map_over_byte_table): Likewise.
1623         (map_char_id_table): Likewise.
1624         (slow_map_char_id_table_fun): Likewise.
1625         (Fmap_char_attribute): Likewise.
1626         (syms_of_mule_charset): Add new function `map-char-attribute'.
1627
1628 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1629
1630         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1631         (syms_of_mule_charset): Add new function `find-char'.
1632
1633 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1634
1635         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1636         XEmacs UTF-2000.
1637         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1638         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1639         XEmacs UTF-2000.
1640         (complex_vars_of_mule_charset): Add new coded-charset
1641         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1642         `ideograph-gt-pj-*'.
1643
1644         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1645
1646 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1647
1648         * mule-charset.c (encode_builtin_char_1): Purge codes about
1649         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1650         {MIN|MAX}_CHAR_HEBREW.
1651         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1652         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1653
1654         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1655         (MAX_CHAR_GREEK): Purged.
1656         (MIN_CHAR_CYRILLIC): Purged.
1657         (MAX_CHAR_CYRILLIC): Purged.
1658         (MIN_CHAR_HEBREW): Commented out.
1659         (MAX_CHAR_HEBREW): Likewise.
1660
1661 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1662
1663         * mule-charset.c (Qto_ucs): New variable.
1664         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1665         (Fdefine_char): Likewise.
1666         (syms_of_mule_charset): Add new symbol `=>ucs'.
1667
1668 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1669
1670         * mule-charset.c (Fdecode_char): Fixed.
1671
1672 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1673
1674         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1675         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1676         "tcvn5712-1".
1677
1678 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1679
1680         * mule-charset.c (Vcharset_ucs_big5): New variable.
1681         (Qucs_big5): Likewise.
1682         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1683         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1684
1685         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1686
1687 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1688
1689         * mule-charset.c (decode_builtin_char): Check Big5 code range
1690         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1691
1692 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1693
1694         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1695         (Qchinese_gb12345): Likewise.
1696         (Fdecode_builtin_char): Fixed.
1697         (syms_of_mule_charset): Add `chinese-gb12345'.
1698         (complex_vars_of_mule_charset): Add coded-charset
1699         `chinese-gb12345'.
1700
1701         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1702         (LEADING_BYTE_CHINESE_GB12345): New macro.
1703
1704 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1705
1706         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1707         and `latin-viscii-upper' for `latin-viscii'.
1708
1709 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1710
1711         * mule-charset.c (Fdecode_builtin_char): Comment out
1712         regularization code for ISO-IR GR representation.
1713
1714 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1715
1716         * mule-charset.c (decode_builtin_char): New function; renamed from
1717         `make_builtin_char'; return -1 instead of signal.
1718         (Fdecode_builtin_char): Use `decode_builtin_char'.
1719
1720         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1721         `make_builtin_char'.
1722         (DECODE_CHAR): Use `decode_builtin_char' instead of
1723         `make_builtin_char'; use mapping table of `chinese-big5' for
1724         `chinese-big5-{1,2}'.
1725
1726 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * text-coding.c (char_encode_big5): New function.
1729         (char_finish_big5): Likewise.
1730         (reset_encoding_stream): Use `char_encode_big5' and
1731         `char_finish_big5' for CODESYS_BIG5.
1732         (mule_encode): Don't use `encode_coding_big5'.
1733         (encode_coding_big5): Deleted.
1734
1735 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1736
1737         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1738         0x81- in XEmacs UTF-2000.
1739         (detect_coding_big5): Likewise.
1740
1741 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1742
1743         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1744         generate character-id if the CCS property does not have
1745         corresponding predefined character.
1746         (make_builtin_char): Return -1 if corresponding predefined
1747         character is not found.
1748         (Fdecode_char): Return nil if corresponding character is not
1749         found.
1750         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1751         don't map to builtin ucs space.
1752
1753 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1756         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1757
1758 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1759
1760         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1761         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1762         (Qideograph_gt): Likewise.
1763         (Qideograph_gt_pj_{1..11}): Likewise.
1764         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1765         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1766         `ideograph-gt-pj-11'.
1767         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1768         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1769         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1770
1771         * char-ucs.h (LEADING_BYTE_GT): New macro.
1772         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1773         (MIN_CHAR_GT): Likewise.
1774         (MAX_CHAR_GT): Likewise.
1775
1776 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1777
1778         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1779         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1780
1781         * doprnt.c (unsigned_int_converters): Add `c'.
1782         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1783
1784         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1785         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1786         `MIN_CHAR_MOJIKYO'.
1787         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1788         (MAX_CHAR_MOJIKYO_0): New macro.
1789         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1790
1791 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * mule-charset.c (Fdefine_char): Delete cemented out code.
1794         (encode_builtin_char_1): Modify for new allocation of builtin
1795         Mojikyo characters.
1796
1797         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1798
1799 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1800
1801         * mule-charset.c (Vcharset_ucs_cns): New variable.
1802         (Qucs_cns): New variable.
1803         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1804         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1805
1806 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1809
1810 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1811
1812         * search.c (search_buffer): Make `charset_base_code' as
1813         character-id >> 6 to eliminate the corresponding last byte in
1814         UTF-8 representation [I'm not sure it is right thing].
1815         (boyer_moore): Likewise.
1816
1817 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1818
1819         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1820         representation in MULE.
1821
1822 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1823
1824         * text-coding.c (Fmake_coding_system): Use
1825         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1826         `EXTERNAL_PROPERTY_LIST_LOOP'.
1827
1828 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1829
1830         * text-coding.c (decode_output_utf8_partial_char): New function.
1831         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1832
1833 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1834
1835         * text-coding.c (decode_coding_utf8): Output original byte
1836         sequence if it is broken; change order of conditions.
1837
1838         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1839         of conditions.
1840
1841         * mb-multibyte.h (BYTE_ASCII_P):
1842         Use bit ops for char-signedness safety.
1843         (BYTE_C0_P): Use bit ops for char-signedness safety.
1844         (BYTE_C1_P): Use bit ops for char-signedness safety.
1845
1846         * character.h: (XCHAR_OR_CHAR_INT):
1847         Always use inline function.
1848         Remove redundant type checking assert() - XINT will abort quite
1849         nicely.
1850
1851 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852
1853         * text-coding.c: (Fencode_shift_jis_char):
1854         (Fencode_big5_char):
1855         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1856         Replace 0 with '\0' when working with bytes.
1857         Replace initial "(" with "\(" in docstrings.
1858
1859         (Fmake_coding_system):
1860         When type is ccl and value is vector, register it with a proper
1861         symbol.  And checks whether the given ccl program is valid.
1862         (mule_decode): When calling ccl_driver, if src indicates
1863         NULL pointer, set an empty string instead.
1864         (mule_encode): Likewise.
1865
1866         (detect_eol_type):
1867         (detect_coding_sjis):
1868         (decode_coding_sjis):
1869         (detect_coding_big5):
1870         (decode_coding_big5):
1871         (detect_coding_ucs4):
1872         (decode_coding_ucs4):
1873         (detect_coding_utf8):
1874         (decode_coding_utf8):
1875         (detect_coding_iso2022):
1876         (decode_coding_iso2022):
1877         (decode_coding_no_conversion):
1878         (mule_decode):
1879         Make all detecting and decoding functions take an Extbyte * arg.
1880         (text_encode_generic):
1881         (encode_coding_big5):
1882         (encode_coding_no_conversion):
1883         (mule_encode):
1884         Make all encoding functions take a Bufbyte * arg.
1885         Use size_t instead of unsigned int for memory sizes.
1886         Only cast to unsigned char whenever dereferencing Extbyte *.
1887
1888         (struct lrecord_description fcd_description_1): Use countof.
1889         (complex_vars_of_file_coding):
1890         Use countof instead of sizeof.
1891         Use CHECK_NATNUM instead of CHECK_INT.
1892
1893 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1894
1895         * mule-charset.c (Fget_char_attribute): Add new optional argument
1896         `default-value'.
1897         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1898         (remove_char_ccs): Likewise.
1899
1900 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1901
1902         * text-coding.c (char_encode_shift_jis): New implementation in
1903         UTF-2000.
1904         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1905         ...)'.
1906
1907         * mule-charset.c (Vcharset_chinese_big5): New variable in
1908         UTF-2000.
1909         (Qchinese_big5): New variable in UTF-2000.
1910         (BIG5_SAME_ROW): New macro in UTF-2000.
1911         (make_builtin_char): Use builtin characters of
1912         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1913         characters of `Vcharset_chinese_big5'.
1914         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1915         (complex_vars_of_mule_charset): Add new coded-charset
1916         `chinese-big5' in UTF-2000.
1917
1918         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1919         (Vcharset_chinese_big5): New external variable declaration.
1920         (Vcharset_japanese_jisx0208_1990): Likewise.
1921
1922 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1923
1924         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1925         function.
1926         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1927
1928 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1929
1930         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1931         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1932         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1933         `mojikyo-pj-*'.
1934
1935 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1936
1937         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1938
1939 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1940
1941         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1942         to 0.17.
1943
1944 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1945
1946         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1947         for `CHARSET_BY_ATTRIBUTES'.
1948         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1949         `CHARSET_BY_ATTRIBUTES'.
1950
1951         * text-coding.c (struct decoding_stream): Rename member `CH' to
1952         `CPOS'.
1953         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1954         (decode_coding_sjis): Likewise.
1955         (decode_coding_big5): Likewise.
1956         (decode_coding_ucs4): Likewise.
1957         (decode_coding_utf8): Likewise.
1958         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1959         `CHARSET_BY_ATTRIBUTES'.
1960         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1961         `str->counter'; decode 3, 4 bytes sets.
1962         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1963         sets.
1964         (decode_coding_no_conversion): Use `str->cpos' instead of
1965         `str->ch'.
1966
1967         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1968         (Qmojikyo_2022_1): New variable.
1969         (make_charset): Don't use `CHARSET_TYPE_*'.
1970         (range_charset_code_point): Support coded-charset
1971         `mojikyo-2022-1'.
1972         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1973         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1974         `CHARSET_BY_ATTRIBUTES'.
1975         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1976         `CHARSET_BY_ATTRIBUTES'.
1977         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1978         (complex_vars_of_mule_charset): Add new coded-charset
1979         `mojikyo-2022-1'.
1980
1981         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1982         interface; changed to inline function.
1983
1984         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1985         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1986         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1987         (CHARSET_TYPE_94): Deleted.
1988         (CHARSET_TYPE_94X94): Deleted.
1989         (CHARSET_TYPE_96): Deleted.
1990         (CHARSET_TYPE_96X96): Deleted.
1991         (CHARSET_TYPE_128): Deleted.
1992         (CHARSET_TYPE_128X128): Deleted.
1993         (CHARSET_TYPE_256): Deleted.
1994         (CHARSET_TYPE_256X256): Deleted.
1995         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1996         to inline function.
1997         (DECODE_MOJIKYO_2022): New inline function.
1998         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1999         `Vcharset_mojikyo_2022_1'.
2000
2001 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2002
2003         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2004         instead of `EQ'.
2005         (put_byte_table): Likewise.
2006         (char_id_table_equal): Use `get_byte_table' [new implementation].
2007
2008 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2009
2010         * mule-charset.c: Include <limits.h> in UTF-2000.
2011         (BT_UINT8_MIN): New macro in UTF-2000.
2012         (BT_UINT8_MAX): New macro in UTF-2000.
2013         (BT_UINT8_t): New macro in UTF-2000.
2014         (BT_UINT8_nil): New macro in UTF-2000.
2015         (BT_UINT8_unbound): New macro in UTF-2000.
2016         (INT_UINT8_P): New inline function in UTF-2000.
2017         (UINT8_VALUE_P): New inline function in UTF-2000.
2018         (UINT8_ENCODE): New inline function in UTF-2000.
2019         (UINT8_DECODE): New inline function in UTF-2000.
2020         (mark_uint8_byte_table): New function in UTF-2000.
2021         (print_uint8_byte_table): New function in UTF-2000.
2022         (uint8_byte_table_equal): New function in UTF-2000.
2023         (uint8_byte_table_hash): New function in UTF-2000.
2024         (make_uint8_byte_table): New function in UTF-2000.
2025         (uint8_byte_table_same_value_p): New function in UTF-2000.
2026         (BT_UINT16_MIN): New macro in UTF-2000.
2027         (BT_UINT16_MAX): New macro in UTF-2000.
2028         (BT_UINT16_t): New macro in UTF-2000.
2029         (BT_UINT16_nil): New macro in UTF-2000.
2030         (BT_UINT16_unbound): New macro in UTF-2000.
2031         (INT_UINT16_P): New inline function in UTF-2000.
2032         (UINT16_VALUE_P): New inline function in UTF-2000.
2033         (UINT16_ENCODE): New inline function in UTF-2000.
2034         (UINT16_DECODE): New inline function in UTF-2000.
2035         (UINT8_TO_UINT16): New inline function in UTF-2000.
2036         (mark_uint16_byte_table): New function in UTF-2000.
2037         (print_uint16_byte_table): New function in UTF-2000.
2038         (uint16_byte_table_equal): New function in UTF-2000.
2039         (uint16_byte_table_hash): New function in UTF-2000.
2040         (make_uint16_byte_table): New function in UTF-2000.
2041         (uint16_byte_table_same_value_p): New function in UTF-2000.
2042         (print_byte_table): New function in UTF-2000.
2043         (byte-table): Use `print_byte_table' as printer.
2044         (make_byte_table): Delete second argument `older'.
2045         (byte_table_same_value_p): New function in UTF-2000.
2046         (copy_byte_table): Deleted.
2047         (get_byte_table): New function in UTF-2000.
2048         (put_byte_table): New function in UTF-2000.
2049         (print_char_id_table): New function in UTF-2000.
2050         (char-id-table): Use `print_char_id_table' as printer.
2051         (make_char_id_table): Delete second argument `older'.
2052         (get_char_id_table): Use `get_byte_table [new implementation].
2053         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2054         implementation].
2055         (Ffind_char_attribute_table): New function in UTF-2000.
2056         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2057         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2058         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2059         (syms_of_mule_charset): Add new function
2060         `find-char-attribute-table' in UTF-2000.
2061
2062         * lrecord.h (enum lrecord_type): Add
2063         `lrecord_type_uint16_byte_table' and
2064         `lrecord_type_uint8_byte_table'.
2065
2066         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2067         (Lisp_Uint8_Byte_Table): New type.
2068         (XUINT8_BYTE_TABLE): New macro.
2069         (XSETUINT8_BYTE_TABLE): New macro.
2070         (UINT8_BYTE_TABLE_P): New macro.
2071         (GC_UINT8_BYTE_TABLE_P): New macro.
2072         (struct Lisp_Uint16_Byte_Table): New structure.
2073         (Lisp_Uint16_Byte_Table): New type.
2074         (XUINT16_BYTE_TABLE): New macro.
2075         (XSETUINT16_BYTE_TABLE): New macro.
2076         (UINT16_BYTE_TABLE_P): New macro.
2077         (GC_UINT16_BYTE_TABLE_P): New macro.
2078
2079 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2080
2081         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2082         (Vcharacter_ideographic_strokes_table): Deleted.
2083         (Vcharacter_total_strokes_table): Deleted.
2084         (Vcharacter_morohashi_daikanwa_table): Deleted.
2085         (Vcharacter_decomposition_table): Deleted.
2086         (Qname): Deleted because it is duplicated.
2087         (Qideographic_radical): Deleted.
2088         (Qideographic_strokes): Deleted.
2089         (Qtotal_strokes): Deleted.
2090         (Qmorohashi_daikanwa): Deleted.
2091         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2092         `ideographic-radical', `ideographic-strokes', `total-strokes',
2093         `morohashi-daikanwa' and `->decomposition'.
2094         (Fget_char_attribute): Likewise.
2095         (Fput_char_attribute): Likewise; use `make-vector' instead of
2096         `make_older_vector' for `->decomposition' value.
2097         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2098         `ideograph-daikanwa'.
2099         (syms_of_mule_charset): Delete builtin symbols `name',
2100         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2101         `morohashi-daikanwa'.
2102         (vars_of_mule_charset): Don't setup
2103         `Vcharacter_ideographic_radical_table',
2104         `Vcharacter_ideographic_strokes_table',
2105         `Vcharacter_total_strokes_table',
2106         `Vcharacter_morohashi_daikanwa_table' and
2107         `Vcharacter_decomposition_table'.
2108
2109 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2112         `make_older_vector', `make_vector_newer_1' and
2113         `make_vector_newer'.
2114
2115         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2116         `make_older_vector' and `make_vector_newer'.
2117
2118         * config.h.in (HAVE_GGC): New macro.
2119
2120 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2121
2122         * mule-charset.c (struct char_attribute_list_closure): New
2123         structure in UTF-2000.
2124         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2125         (Fchar_attribute_list): Likewise.
2126         (Fset_charset_mapping_table): Use `make_vector_newer'.
2127         (Fdecode_builtin_char): New function in UTF-2000.
2128         (syms_of_mule_charset): Add new function `char-attribute-list' and
2129         `decode-builtin-char' in UTF-2000.
2130
2131         * lisp.h (make_vector_newer): New prototype.
2132
2133         * alloc.c (make_vector_newer_1): New function.
2134         (make_vector_newer): New function.
2135
2136 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2137
2138         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2139         50100)'.
2140
2141 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2142
2143         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2144         (Vcharacter_attribute_table): Deleted.
2145         (Vcharacter_name_table): Deleted.
2146         (put_char_attribute): Deleted.
2147         (remove_char_attribute): Deleted.
2148         (struct char_attribute_alist_closure): New structure.
2149         (add_char_attribute_alist_mapper): New function.
2150         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2151         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2152         (Fget_char_attribute): Likewise.
2153         (Fput_char_attribute): Likewise.
2154         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2155         of `remove_char_attribute'.
2156         (Fdefine_char): Return character.
2157         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2158         and `Vcharacter_name_table'.
2159         (complex_vars_of_mule_charset): Likewise
2160         `Vchar_attribute_hash_table'.
2161
2162 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2163
2164         * character.h (CHARC_CHARSET): New macro.
2165         (CHARC_CHARSET_ID): New macro.
2166         (CHARC_CODE_POINT): New macro.
2167         (CHARC_COLUMNS): New macro.
2168         (CHARC_TO_CHAR): New inline function.
2169         (CHARC_EQ): New inline function.
2170         (CHARC_ASCII_EQ): New inline function.
2171         (CHARC_IS_SPACE): New inline function.
2172         (ASCII_TO_CHARC): New inline function.
2173
2174         * char-ucs.h (encode_char_2): Deleted.
2175         (ENCODE_CHAR): Use `encode_char_1' again.
2176         (breakup_char_1): Likewise.
2177         (CHAR_TO_CHARC): New inline function.
2178
2179         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2180
2181 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2182
2183         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2184         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2185         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2186         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2187         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2188         `CHARC_IS_SPACE'.
2189         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2190
2191         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2192         `CHARC_CODE_POINT'.
2193         (x_output_display_block): Use `CHARC_CHARSET' and
2194         `CHARC_ASCII_EQ'.
2195
2196         * redisplay-tty.c (tty_output_display_block): Use
2197         `CHARC_ASCII_EQ'.
2198         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2199
2200         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2201
2202         * insdel.c (find_charsets_in_charc_string): Use
2203         `CHARC_CHARSET_ID'.
2204         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2205         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2206         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2207         (convert_charc_string_into_malloced_string): Likewise.
2208
2209 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2210
2211         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2212         instead of <Emchar_dynarr *> for buf; use
2213         `convert_bufbyte_string_into_charc_dynarr' instead of
2214         `convert_bufbyte_string_into_emchar_dynarr'; use
2215         `find_charsets_in_charc_string' instead of
2216         `find_charsets_in_emchar_string'.
2217
2218         * redisplay.h:
2219         - Include "character.h".
2220         (struct rune): New member `cglyph'; delete member `chr'.
2221
2222         * redisplay.c (redisplay_text_width_charc_string): New function;
2223         delete `redisplay_text_width_emchar_string'.
2224         (rtw_charc_dynarr): New variable; renamed from
2225         `rtw_emchar_dynarr'.
2226         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2227         `rtw_emchar_dynarr'; use
2228         `convert_bufbyte_string_into_charc_dynarr' instead of
2229         `convert_bufbyte_string_into_emchar_dynarr'; use
2230         `redisplay_text_width_charc_string' instead of
2231         `redisplay_text_width_emchar_string'.
2232         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2233         instead of `rtw_emchar_dynarr'; use
2234         `convert_bufbyte_string_into_charc_dynarr' instead of
2235         `convert_bufbyte_string_into_emchar_dynarr'.
2236         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2237         `redisplay_text_width_charc_string' instead of
2238         `redisplay_text_width_emchar_string'.
2239         (create_text_block): Modify for <struct rune> change.
2240         (generate_formatted_string_db): Likewise.
2241         (create_string_text_block): Likewise.
2242         (pixel_to_glyph_translation): Likewise.
2243
2244         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2245         instead of <const Emchar *>.
2246         (x_text_width): Likewise.
2247         (x_output_display_block): Use <Charc_dynarr *> instead
2248         <Emchar_dynarr *>; modify for <structure rune> change.
2249         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2250         *>.
2251
2252         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2253         <const Emchar *>; use `charc_string_displayed_columns' instead of
2254         `emchar_string_displayed_columns'.
2255         (tty_output_display_block): Use <Charc_dynarr *> instead of
2256         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2257         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2258         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2259         `tty_output_emchar_dynarr_dynarr'.
2260         (tty_output_charc_dynarr): New function; delete
2261         `tty_output_charc_dynarr'.
2262
2263         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2264         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2265         <Emchar_dynarr *> for buf; use
2266         `convert_bufbyte_string_into_charc_dynarr' instead of
2267         `convert_bufbyte_string_into_emchar_dynarr'.
2268
2269         * frame.c (title_string_charc_dynarr): New variable; renamed from
2270         `title_string_emchar_dynarr'.
2271         (generate_title_string): Use `title_string_charc_dynarr' instead
2272         of `title_string_emchar_dynarr'; use
2273         `convert_charc_string_into_malloced_string' instead of
2274         `convert_emchar_string_into_malloced_string'.
2275         (init_frame): Use `title_string_charc_dynarr' instead of
2276         `title_string_emchar_dynarr'.
2277
2278         * console.h:
2279         - Include "character.h".
2280         (struct console_methods): Use <const Charc *> instead of <const
2281         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2282         <Emchar_dynarr *> in output_string_method.
2283
2284         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2285         <Emchar_dynarr *>.
2286
2287         * console-stream.c (stream_text_width): Use <const Charc *>
2288         instead of <const Emchar *>.
2289
2290         * character.h (Charc_dynarr): New type.
2291
2292         * char-ucs.h (structure Charc): New structure; define new type
2293         `Charc'.
2294
2295         * char-lb.h (DECODE_CHAR): New inline function.
2296         (encode_char_1): New inline function.
2297         (ENCODE_CHAR): New macro.
2298         (structure Charc): New structure; define new type `Charc'.
2299
2300         * char-1byte.h (Vcharset_control_1): New macro.
2301         (Vcharset_latin_iso8859_1): New macro.
2302         (DECODE_CHAR): New inline function.
2303         (encode_char_1): New inline function.
2304         (ENCODE_CHAR): New macro.
2305         (structure Charc): New structure; define new type `Charc'.
2306
2307         * insdel.c (find_charsets_in_charc_string): New function; delete
2308         `find_charsets_in_emchar_string'.
2309         (charc_string_displayed_columns): New function; delete
2310         `emchar_string_displayed_columns'.
2311         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2312         `convert_bufbyte_string_into_emchar_dynarr'.
2313         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2314         `convert_charc_string_into_bufbyte_dynarr'.
2315         (convert_charc_string_into_malloced_string): New function; delete
2316         `convert_charc_string_into_malloced_string'.
2317
2318         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2319         `find_charsets_in_emchar_string'.
2320         (charc_string_displayed_columns): New prototype; delete
2321         `emchar_string_displayed_columns'.
2322         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2323         `convert_charc_string_into_bufbyte_dynarr'.
2324         (convert_charc_string_into_malloced_string): New prototype; delete
2325         `convert_charc_string_into_malloced_string'.
2326
2327 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328
2329         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2330
2331 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2332
2333         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2334
2335         * char-ucs.h: Use <short> for <Charset_ID>.
2336
2337         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2338         <Charset_ID>.
2339
2340 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2341
2342         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2343         to 0.16.
2344
2345 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2346
2347         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2348         variable.
2349         (Qmorohashi_daikanwa): New variable.
2350         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2351         for `morohashi-daikanwa' attribute.
2352         (Fget_char_attribute): Likewise.
2353         (Fput_char_attribute): Likewise.
2354         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2355         has the same value of `ideograph-daikanwa'.
2356         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2357         (vars_of_mule_charset): Setup
2358         `Vcharacter_morohashi_daikanwa_table'.
2359
2360 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2361
2362         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2363         attributes.
2364         (add_charset_to_list_mapper): Add `key' instead of
2365         `XCHARSET_NAME (value)' to return aliases.
2366
2367 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2368
2369         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2370         variable.
2371         (Vcharacter_ideographic_strokes_table): New variable.
2372         (Qideographic_radical): New variable.
2373         (Qideographic_strokes): New variable.
2374         (Fchar_attribute_alist): Use
2375         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2376         attribute; use `Vcharacter_ideographic_strokes_table' for
2377         `ideographic-strokes' attribute.
2378         (Fget_char_attribute): Likewise.
2379         (Fput_char_attribute): Likewise.
2380         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2381         `ideographic-strokes'.
2382         (vars_of_mule_charset): Setup
2383         `Vcharacter_ideographic_radical_table' and
2384         `Vcharacter_ideographic_strokes_table'.
2385
2386 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2387
2388         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2389         (Qtotal_strokes): New variable.
2390         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2391         `total-strokes' attribute.
2392         (Fget_char_attribute): Likewise.
2393         (Fput_char_attribute): Likewise.
2394         (syms_of_mule_charset): Add new symbol `total-strokes'.
2395         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2396
2397 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2398
2399         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2400         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2401         are found.
2402         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2403         `->decomposition' attribute.
2404         (Fput_char_attribute): Likewise.
2405         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2406
2407 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2408
2409         * mule-charset.c (decoding_table_check_elements): New function.
2410         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2411
2412 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2413
2414         * mule-charset.c (Fset_charset_mapping_table): Use
2415         `put_char_ccs_code_point'.
2416
2417 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2418
2419         * mule-charset.c (decoding_table_put_char): New inline function.
2420         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2421
2422 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2423
2424         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2425         (XCHARSET_BYTE_SIZE): New macro.
2426         (decoding_table_remove_char): New inline function.
2427         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2428         `decoding_table_remove_char'.
2429         (remove_char_ccs): Use `decoding_table_remove_char'.
2430         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2431
2432 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2433
2434         * mule-charset.c (Vcharacter_name_table): New variable.
2435         (Qname): New variable.
2436         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2437         attribute.
2438         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2439         `Vcharacter_name_table' for `name' attribute.
2440         (Fremove_char_attribute): Use function `remove_char_ccs'.
2441         (put_char_ccs_code_point): New function.
2442         (remove_char_ccs): New function.
2443         (syms_of_mule_charset): Add new symbol `name'.
2444         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2445
2446 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2447
2448         * mule-charset.c (make_byte_table): Add new argument `older'.
2449         (make_char_id_table): Likewise.
2450         (copy_char_id_table): Comment out because it is not used.
2451         (put_char_id_table): Modify for `make_byte_table'.
2452         (Fput_char_attribute): Make encoding_table as older object;
2453         inherit older bit of `Vcharacter_composition_table'.
2454         (mark_charset): Don't mark `cs->encoding_table'.
2455         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2456         normal object; make `Vcharacter_composition_table' as an older
2457         object; delete staticpro for `Vcharacter_composition_table'; make
2458         `Vcharacter_variant_table' as a normal object.
2459
2460         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2461         (mark_object): Don't check older object in UTF-2000.
2462
2463         * lrecord.h (struct lrecord_header): Add new member `older' in
2464         UTF-2000.
2465         (set_lheader_implementation): Setup `SLI_header->older' in
2466         UTF-2000.
2467         (set_lheader_older_implementation): New macro in UTF-2000.
2468         (OLDER_RECORD_P): New macro in UTF-2000.
2469         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2470         (alloc_older_lcrecord): New prototype in UTF-2000.
2471         (alloc_older_lcrecord_type): New macro in UTF-2000.
2472
2473 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2474
2475         * mule-charset.c (byte_table_description): Use
2476         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2477         (char_id_table_description): Delete bogus `, 1'.
2478         (Fget_char_attribute): Refer encoding_table of each coded-charset
2479         to get value of coded-charset attribute of a character.
2480         (Fput_char_attribute): Use `make_older_vector' instead of
2481         `make_vector'; use encoding_table of each coded-charset to store
2482         value of coded-charset attribute of a character.
2483         (Fremove_char_attribute): Use encoding_table of each coded-charset
2484         to store value of coded-charset attribute of a character.
2485         (mark_charset): Mark `cs->encoding_table'; don't mark
2486         `cs->decoding_table'.
2487         (charset_description): Add description of new member
2488         `encoding_table'.
2489         (make_charset): Initialize `encoding_table'.
2490
2491         * char-ucs.h (struct Lisp_Charset): Add new member
2492         `encoding_table'.
2493         (CHARSET_ENCODING_TABLE): New macro.
2494         (XCHARSET_ENCODING_TABLE): New macro.
2495         (charset_code_point): New implementation.
2496         (encode_char_1): Likewise.
2497
2498         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2499         (disksave_object_finalization_1): Call finalizers of
2500         `all_older_lcrecords' in UTF-2000.
2501         (make_older_vector): New function in UTF-2000.
2502         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2503         UTF-2000.
2504
2505         * lisp.h (make_older_vector): New prototype in UTF-2000.
2506
2507 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2508
2509         * lrecord.h (enum lrecord_type): Rename
2510         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2511
2512         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2513         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2514         `get_char_code_table'.
2515
2516         * mule-charset.c (mark_char_id_table): Renamed from
2517         `mark_char_code_table'.
2518         (char_id_table_equal): Renamed from `char_code_table_equal'.
2519         (char_id_table_hash): Renamed from `char_code_table_hash'.
2520         (make_char_id_table): Renamed from `make_char_code_table'.
2521         (copy_char_id_table): Renamed from `copy_char_code_table'.
2522         (get_char_id_table): Renamed from `get_char_code_table'.
2523         (put_char_id_table): Renamed from `put_char_code_table'.
2524         (to_char_id): Renamed from `to_char_code'.
2525
2526         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2527         `Lisp_Char_Code_Table'.
2528         (char_id_table): Renamed from `char_code_table'.
2529         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2530         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2531         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2532         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2533         (get_char_id_table): Renamed from `get_char_code_table'.
2534
2535 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2536
2537         * lrecord.h (enum lrecord_type): Rename
2538         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2539
2540         * mule-charset.c (mark_byte_table): Renamed from
2541         `mark_char_byte_table'.
2542         (byte_table_equal): Renamed from `char_byte_table_equal'.
2543         (byte_table_hash): Renamed from `byte_table_hash'.
2544         (make_byte_table): Renamed from `make_byte_table'.
2545         (copy_byte_table): Renamed from `copy_char_byte_table'.
2546
2547         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2548         `Lisp_Char_Byte_Table'.
2549         (byte_table): Renamed from `char_byte_table'.
2550         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2551         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2552         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2553         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2554
2555 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2556
2557         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2558         (dfc_convert_to_internal_format): Likewise.
2559         
2560         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2561         * text-coding.c (Fcoding_system_alias_p): New function.
2562         * text-coding.c (Fcoding_system_aliasee): New function.
2563         * text-coding.c (append_suffix_to_symbol): New function.
2564         * text-coding.c (dangling_coding_system_alias_p): New function.
2565         * text-coding.c (Ffind_coding_system):
2566         * text-coding.c (Fcopy_coding_system):
2567         * text-coding.c (encode_coding_no_conversion):
2568         * text-coding.c (syms_of_file_coding):
2569         * text-coding.c (vars_of_file_coding):
2570         Rewrite coding system alias code.
2571         Allow nested aliases, like symbolic links.
2572         Allow redefinition of coding system aliases.
2573         Prevent existence of dangling coding system aliases.
2574         Eliminate convert_to_external_format.
2575         Eliminate convert_to_internal_format.
2576         
2577         * text-coding.c: Change enum eol_type to eol_type_t.
2578
2579 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580
2581         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2582         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2583
2584         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2585         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2586
2587 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2588
2589         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2590         `ideograph-daikanwa'.
2591
2592         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2593         (Vcharset_ucs_bmp): Likewise.
2594         (Vcharset_mojikyo): Add new extern variable definition.
2595         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2596         (Vcharset_latin_iso8859_3): Likewise.
2597         (Vcharset_latin_iso8859_4): Likewise.
2598         (Vcharset_latin_iso8859_9): Likewise.
2599         (Vcharset_latin_viscii_lower): Likewise.
2600         (Vcharset_latin_viscii_upper): Likewise.
2601         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2602         `mojikyo' code-point is used to decode.
2603         (encode_char_2): New function [to convert `mojikyo' code-point to
2604         Mojikyo font encoding].
2605         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2606         (breakup_char_1): Likewise.
2607         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2608
2609 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2610
2611         * text-coding.c (Fmake_coding_system): Add document about
2612         `disable-composition' property.
2613
2614 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2615
2616         * text-coding.c (Qdisable_composition): New variable; delete
2617         `Qcomposite'.
2618         (Fmake_coding_system): Add new property `disable-composite';
2619         delete property `composite'.
2620         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2621         instead of `!CODING_SYSTEM_COMPOSITE'.
2622         (syms_of_file_coding): Add new symbol `disable-composition';
2623         delete symbol `composite'.
2624
2625         * file-coding.h (struct Lisp_Coding_System): Add
2626         `disable_composition'; delete `enable_composition'.
2627         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2628         `CODING_SYSTEM_COMPOSITE'.
2629         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2630         `XCODING_SYSTEM_COMPOSITE'.
2631
2632 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2633
2634         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2635         to 0.15.
2636
2637 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2638
2639         * text-coding.c (Qcomposite): New variable.
2640         (Fmake_coding_system): Add new property `composite'.
2641         (struct decoding_stream): Add `combined_char_count',
2642         `combined_chars' and `combining_table' in UTF-2000.
2643         (COMPOSE_FLUSH_CHARS): New macro.
2644         (COMPOSE_ADD_CHAR): New macro.
2645         (reset_decoding_stream): Reset `str->combined_char_count' and
2646         `str->combining_table' in UTF-2000.
2647         (decode_coding_iso2022): Modify for character-decomposition.
2648         (syms_of_file_coding): Add new symbol `composite'.
2649
2650 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2651
2652         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2653         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2654         of `Vcharacter_composition_table' if `->decomposition' property
2655         has only 1 element.
2656         (Qlatin_tcvn5712): New variable.
2657         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2658         (complex_vars_of_mule_charset): Add new coded-charset
2659         `latin-tcvn5712'.
2660
2661         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2662
2663 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2664
2665         * file-coding.h (struct Lisp_Coding_System): Add
2666         `enable_composition'.
2667         (CODING_SYSTEM_COMPOSITE): New macro.
2668         (XCODING_SYSTEM_COMPOSITE): New macro.
2669
2670 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2671
2672         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2673
2674 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2675
2676         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2677         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2678
2679 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2680
2681         * mule-charset.c (Vcharset_mojikyo): New variable.
2682         (Fdefine_char): Don't use coded-charset which does not have
2683         non-builtin character range to allocate character-id.
2684         (Qmojikyo): New variable.
2685         (syms_of_mule_charset): Add new symbol `mojikyo'.
2686         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2687
2688         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2689         (LEADING_BYTE_MOJIKYO): New macro.
2690         (MIN_CHAR_MOJIKYO): New macro.
2691         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2692         (MAX_CHAR_MOJIKYO): New macro.
2693
2694 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2695
2696         * mule-charset.c (remove_char_attribute): Fixed.
2697
2698 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2699
2700         * mule-charset.c (remove_char_attribute): New function.
2701         (Fremove_char_attribute): New function.
2702         (encode_builtin_char_1): Comment out builtin-support for
2703         greek-iso8859-7 and cyrillic-iso8859-5.
2704         (Fdecode_char): Check `code' is an integer.
2705         (syms_of_mule_charset): Add `remove-char-attribute'.
2706         (MIN_CHAR_GREEK): Deleted.
2707         (MAX_CHAR_GREEK): Likewise.
2708         (MIN_CHAR_CYRILLIC): Likewise.
2709         (MAX_CHAR_CYRILLIC): Likewise.
2710         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2711         MAX_CHAR_GREEK for `greek-iso8859-7'.
2712
2713         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2714         (MAX_CHAR_GREEK): Likewise.
2715         (MIN_CHAR_CYRILLIC): Likewise.
2716         (MAX_CHAR_CYRILLIC): Likewise.
2717
2718 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2719
2720         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2721         format is used without `ucs' property.
2722         (Fdecode_char): Fix problem with GR representation.
2723         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2724         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2725
2726 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2727
2728         * mule-charset.c (make_builtin_char): New function.
2729         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2730         (Fset_charset_mapping_table): Modify for new representation of
2731         code-point.
2732         (Fdecode_char): New function.
2733         (syms_of_mule_charset): Add new builtin function `decode-char' in
2734         UTF-2000.
2735
2736         * char-ucs.h (make_builtin_char): New prototype.
2737         (DECODE_CHAR): New inline function.
2738         (MAKE_CHAR): Use `DECODE_CHAR'.
2739
2740 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2741
2742         * text-coding.c (parse_charset_conversion_specs): Use
2743         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2744         `XCHARSET_TYPE'.
2745         (iso2022_designate): Likewise.
2746
2747         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2748         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2749
2750         * mule-charset.c (Vcharset_ucs): New variable.
2751         (print_charset): Change design; use `CHARSET_CHARS' and
2752         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2753         (make_charset): Change signature to specify `chars' and
2754         `dimension' instead of `type'.
2755         (range_charset_code_point): Modify for 256^n-set.
2756         (encode_builtin_char_1): Encode as `ucs' in default.
2757         (Fmake_charset): Modify for `make_charset'.
2758         (Fmake_reverse_direction_charset): Likewise.
2759         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2760         UTF-2000.
2761         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2762         for `make_charset'.
2763
2764         * char-ucs.h (Vcharset_ucs): New variable.
2765         (LEADING_BYTE_UCS): New macro.
2766         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2767         and `chars' to `unsigned short' from `unsigned int'.
2768         (CHARSET_TYPE): Deleted.
2769         (XCHARSET_TYPE): Deleted.
2770
2771 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2772
2773         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2774
2775         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2776         (ENCODE_CHAR): New macro.
2777
2778 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2779
2780         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2781         to 0.14 (Kawachi-Katakami).
2782
2783 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2784
2785         * text-coding.c (char_encode_shift_jis): Modify for
2786         `charset_code_point'.
2787         (char_encode_iso2022): Likewise.
2788
2789         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2790         (integer) instead of list of <Lisp_Object>s (integers) as the
2791         format of code-point of a coded-charset.
2792         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2793         (encode_builtin_char_1): New function; delete
2794         `split_builtin_char'.
2795         (charset_code_point): Return <int> instead of <Lisp_Object>.
2796         (Fsplit_char): Don't use `SPLIT_CHAR'.
2797
2798         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2799         prototype for `split_builtin_char'.
2800         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2801         (charset_code_point): Likewise.
2802         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2803         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2804
2805 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2806
2807         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2808         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2809
2810 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2811
2812         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2813
2814         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2815         (MAX_CHAR_OBS_94x94): Deleted.
2816
2817 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2818
2819         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2820
2821         * char-ucs.h (MAX_CHAR_BMP): New macro.
2822
2823 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2824
2825         * text-coding.c: Sync with r21-2-24.
2826
2827 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2828
2829         * file-coding.c: Modify for UTF-2000.
2830
2831 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2832
2833         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2834         to 0.13 (Takaida).
2835
2836 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2837
2838         * mule-charset.c (split_builtin_char): Delete builtin support for
2839         `katakana-jisx0201'.
2840         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2841         BMP area in builtin representation.
2842
2843         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2844         `Vcharset_katakana_jisx0201'.
2845
2846 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2847
2848         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2849         (Qisolated): New variable.
2850         (Qinitial): New variable.
2851         (Qmedial): New variable.
2852         (Qfinal): New variable.
2853         (Qvertical): New variable.
2854         (Qsmall): New variable.
2855         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2856         `Qvertical' and `Qsmall'.
2857         (Qmojikyo_pj_[1 .. 21]): New variable.
2858         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2859         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2860         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2861         .. 21]'.
2862
2863 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2864
2865         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2866         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2867         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2868
2869 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2870
2871         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2872         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2873         BMP.
2874         (Qjapanese_jisx0208_1990): New variable.
2875         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2876         (complex_vars_of_mule_charset): Add new coded-charset
2877         `japanese-jisx0208-1990'.
2878
2879         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2880         (MIN_CHAR_JIS_X0208_1990): New macro.
2881         (MAX_CHAR_JIS_X0208_1990): New macro.
2882
2883 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2884
2885         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2886         coded-charset is not found.
2887
2888 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2889
2890         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2891         (Fdefine_char): Use `Fmake_char'.
2892
2893 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2894
2895         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2896         (Vcharset_hiragana_jisx0208): Deleted.
2897         (Vcharset_katakana_jisx0208): Deleted.
2898         (Qideograph_daikanwa): New variable.
2899         (Qhiragana_jisx0208): Deleted.
2900         (Qkatakana_jisx0208): Deleted.
2901         (split_builtin_char): Split `ideograph-daikanwa'.
2902         (Fsplit_char): New implementation for UTF-2000.
2903         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2904         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2905         (complex_vars_of_mule_charset): Add new coded-charset
2906         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2907         `katakana-jisx0208'.
2908
2909         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2910         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2911         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2912         (MIN_CHAR_DAIKANWA): New macro.
2913         (MAX_CHAR_DAIKANWA): New macro.
2914
2915 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2916
2917         * data.c (Fstring_to_number): Don't recognize floating point if
2918         base is not 10.
2919
2920 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2921
2922         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2923
2924 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2925
2926         * mule-charset.c (Qsquare): New variable.
2927         (to_char_code): Add `Qsquare'.
2928         (syms_of_mule_charset): Add new symbol `square'.
2929
2930 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2931
2932         * mule-charset.c (Qcircle): New variable.
2933         (to_char_code): Add `Qcircle'.
2934         (syms_of_mule_charset): Add new symbol `circle'.
2935
2936 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2937
2938         * mule-charset.c (Qfont): New variable.
2939         (to_char_code): Add `Qfont'.
2940         (syms_of_mule_charset): Add new symbol `font'.
2941
2942 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2943
2944         * mule-charset.c (Qsub): New variable.
2945         (to_char_code): Add `Qsub'.
2946         (syms_of_mule_charset): Add new symbol `sub'.
2947
2948 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2949
2950         * mule-charset.c (Fput_char_attribute): Convert each element of
2951         VALUE to GL position if ATTRIBUTE is a GR-set,
2952
2953 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2954
2955         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2956         coded-charset is a GR-set.
2957
2958 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2959
2960         * mule-charset.c (Fput_char_attribute): Check each element of
2961         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2962
2963 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2964
2965         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2966         UTF-2000.
2967         (Qethiopic_ucs): New variable in UTF-2000.
2968         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2969         (complex_vars_of_mule_charset): Add new coded-charset
2970         `ethiopic-ucs' in UTF-2000.
2971
2972         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2973         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2974         9)'.
2975         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2976         10)'.
2977         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2978
2979 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2980
2981         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2982         `ascii'.
2983
2984 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2985
2986         * mule-charset.c (Vcharacter_variant_table): New variable.
2987         (Q_ucs): New variable.
2988         (Fchar_variants): New function.
2989         (Fput_char_attribute): Register `->ucs' value to
2990         `Vcharacter_variant_table'.
2991         (syms_of_mule_charset): Add new function `char-variants' and new
2992         symbol `->ucs'.
2993         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2994
2995 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2996
2997         * mule-charset.c (get_char_code_table): Allow negative character
2998         code.
2999         (put_char_code_table): Likewise.
3000         (Vcharacter_composition_table): New variable.
3001         (Q_decomposition): New variable.
3002         (Qwide): New variable.
3003         (Qnarrow): New variable.
3004         (Qcompat): New variable.
3005         (QnoBreak): New variable.
3006         (Qsuper): New variable.
3007         (Qfraction): New variable.
3008         (to_char_code): New function.
3009         (Fget_composite_char): New function.
3010         (Fput_char_attribute): Register `->decomposition' value to
3011         `Vcharacter_composition_table'.
3012         (syms_of_mule_charset): Add new function `get-composite-char', new
3013         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3014         `super' and `fraction'.
3015         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3016
3017 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3018
3019         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3020         character; copy the return value.
3021
3022 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3023
3024         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3025
3026         * mule-charset.c (range_charset_code_point): Must use make_int.
3027         (split_builtin_char): New function.
3028
3029 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3030
3031         * mule-charset.c (char_byte_table): Change name from
3032         "char-code-table" to "char-byte-table".
3033         (mark_char_code_table): New function.
3034         (char_code_table_equal): New function.
3035         (char_code_table_hash): New function.
3036         (char_code_table_description): New constant.
3037         (char_code_table): New type.
3038         (make_char_code_table): New function.
3039         (copy_char_code_table): New function.
3040         (get_char_code_table): Modify for `char_code_table' type.
3041         (put_char_code_table): Likewise.
3042         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3043         (Kashiwara).
3044
3045         * char-ucs.h (char_code_table): New type.
3046         (XCHAR_CODE_TABLE): New macro.
3047         (XSETCHAR_CODE_TABLE): New macro.
3048         (CHAR_CODE_TABLE_P): New macro.
3049         (GC_CHAR_CODE_TABLE_P): New macro.
3050         (struct Lisp_Char_Code_Table): New structure.
3051
3052 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3053
3054         * mule-charset.c (Fmake_charset): Setup byte_offset for
3055         {94|96}^n-set.
3056
3057 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3058
3059         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3060         character.
3061
3062 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3063
3064         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3065         is found.
3066
3067 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3068
3069         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3070         charset, it is regarded as a charset.
3071         (put_char_attribute): New function in UTF-2000.
3072         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3073         charset, mapping-table of the charset is modified.
3074         (Fdefine_char): New function in UTF-2000.
3075         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3076         `Fput_char_attribute'.
3077         (syms_of_mule_charset): Add new function `define-char' and new
3078         symbol `ucs' in UTF-2000.
3079         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3080
3081 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3082
3083         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3084         non-UTF-2000 configuration.
3085
3086 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3087
3088         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3089         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3090
3091         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3092         deleted.
3093         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3094         (Fset_charset_mapping_table): Likewise.
3095
3096         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3097         (CHARSET_ENCODING_TABLE): Delete.
3098         (XCHARSET_ENCODING_TABLE): Delete.
3099         (charset_code_point): New interface.
3100
3101 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3102
3103         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3104         instead of `charset_get_byte1' and `charset_get_byte2'.
3105
3106         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3107         (charset_get_byte2): Deleted.
3108
3109 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3110
3111         * char-ucs.h (SPLIT_CHAR): New inline function.
3112         (breakup_char_1): Use `SPLIT_CHAR'.
3113
3114         * mule-charset.c (range_charset_code_point): New function.
3115         (charset_code_point): New function.
3116
3117         * char-ucs.h (range_charset_code_point): New interface.
3118         (breakup_char_1): Use `range_charset_code_point'.
3119
3120 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3121
3122         * mule-charset.c (Fmake_charset): Delete unused local variable
3123         `code_offset'.
3124
3125         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3126         (breakup_char_1): Find a charset and code-point in
3127         `Vcharacter_attribute_table'.
3128
3129 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3130
3131         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3132         to 0.10 (Yao).
3133
3134 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3135
3136         * mule-charset.c (Vcharacter_attribute_table): New variable.
3137         (Fchar_attribute_alist): New function.
3138         (Fget_char_attribute): New function.
3139         (Fput_char_attribute): New function.
3140         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3141         too.
3142         (syms_of_mule_charset): Add new function `char-attribute-alist',
3143         `get-char-attribute' and `put-char-attribute'.
3144         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3145
3146 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3147
3148         * mule-charset.c (Fmake_charset): Just use
3149         `get_unallocated_leading_byte'.
3150
3151         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3152         sets; don't use final-byte based number for private sets.
3153
3154 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3155
3156         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3157         integer.
3158
3159 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3160
3161         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3162         to 0.9.
3163
3164 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3165
3166         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3167         of `CHAR_LEADING_BYTE' in UTF-2000.
3168
3169         * insdel.c (find_charsets_in_bufbyte_string): Use
3170         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3171         (find_charsets_in_emchar_string): Likewise.
3172
3173         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3174         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3175
3176         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3177         (CHAR_CHARSET_ID): New macro.
3178
3179 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3180
3181         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3182         charset-id - MIN_LEADING_BYTE.
3183         (put_char_table): Likewise.
3184
3185 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3186
3187         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3188         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3189         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3190         (CHARSET_ID_OFFSET): New macro.
3191         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3192         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3193         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3194         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3195         4).
3196         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3197         5).
3198         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3199         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3200         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3201         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3202         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3203
3204 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3205
3206         * mule-charset.c (next_allocated_leading_byte): New variable in
3207         UTF-2000.
3208         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3209         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3210         (get_unallocated_leading_byte): Simply use
3211         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3212         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3213         UTF-2000.
3214
3215         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3216         (MAX_LEADING_BYTE_PRIVATE): New macro.
3217         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3218         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3219
3220 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3221
3222         * mule-charset.c (Fmake_charset): Allocate final-byte based
3223         charset-id for 94-set, 96-set and 94x94-set.
3224
3225 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3226
3227         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3228         ambiguous `else'.
3229         (Fmake_charset): Likewise.
3230         (complex_vars_of_mule_charset): Modify the font registry of
3231         `ucs-bmp' not to match `Ethiopic-Unicode'.
3232
3233 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3234
3235         * mule-charset.c (complex_vars_of_mule_charset): Add font
3236         registory of `ucs-bmp'.
3237
3238 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3239
3240         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3241         coded-charsets in `default-coded-charset-priority-list' when
3242         breaking up a character.
3243
3244         * mule-charset.c (Vcharset_latin_viscii): New variable.
3245         (Qlatin_viscii): New variable.
3246         (make_charset): Don't use `decoding_table'.
3247         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3248         byte_offset.
3249         (Fset_charset_mapping_table): New implementation.
3250         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3251         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3252         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3253         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3254         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3255         charset `latin_viscii'.
3256
3257         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3258         (CHARSET_TYPE_94X94): Change to 1 from 2.
3259         (CHARSET_TYPE_96): Change to 2 from 1.
3260         (CHARSET_TYPE_128): New macro.
3261         (CHARSET_TYPE_128X128): Change to 5 from 4.
3262         (CHARSET_TYPE_256): New macro.
3263         (CHARSET_TYPE_256X256): Change to 7 from 5.
3264         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3265
3266 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3267
3268         * text-coding.c (char_encode_shift_jis): Refer
3269         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3270         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3271
3272         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3273         (char_byte_table_equal): New function in UTF-2000.
3274         (char_byte_table_hash): New function in UTF-2000.
3275         (char_byte_table_description): New constant in UTF-2000.
3276         (char_byte_table): New type in UTF-2000.
3277         (make_char_byte_table): New function in UTF-2000.
3278         (copy_char_byte_table): New function in UTF-2000.
3279         (make_char_code_table): New macro in UTF-2000.
3280         (get_char_code_table): New function in UTF-2000.
3281         (put_char_code_table): New function in UTF-2000.
3282         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3283         (charset_description): Add setting in UTF-2000.
3284         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3285         `CHARSET_TO_BYTE1_TABLE(cs)'.
3286         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3287         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3288         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3289         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3290         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3291         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3292         `CHARSET_TO_BYTE2_TABLE(cs)'.
3293
3294         * char-ucs.h (char_byte_table): New type.
3295         (XCHAR_BYTE_TABLE): New macro.
3296         (XSETCHAR_BYTE_TABLE): New macro.
3297         (CHAR_BYTE_TABLE_P): New macro.
3298         (GC_CHAR_BYTE_TABLE_P): New macro.
3299         (struct Lisp_Char_Byte_Table): New structure.
3300         (get_char_code_table): New interface.
3301         (Emchar_to_byte_table): Deleted.
3302         (get_byte_from_character_table): Deleted.
3303         (struct Lisp_Charset): Add `encoding_table'; delete
3304         `to_byte1_table' and `to_byte2_table'.
3305         (CHARSET_ENCODING_TABLE): New macro.
3306         (CHARSET_TO_BYTE1_TABLE): Deleted.
3307         (CHARSET_TO_BYTE2_TABLE): Deleted.
3308         (XCHARSET_ENCODING_TABLE): New macro.
3309         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3310         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3311
3312 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3313
3314         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3315         `vietnamese-viscii-*'.
3316
3317 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3318
3319         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3320         (Qvietnamese_viscii_upper): New variable.
3321         (Fdefine_charset_alias): New function.
3322         (syms_of_mule_charset): Add new function `define-charset-alias'.
3323         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3324         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3325         `latin-viscii-*'.
3326
3327 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3328
3329         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3330         (MAX_CHAR_OBS_94x94): New macro.
3331         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3332         for 94x94 sets.
3333
3334         * mule-charset.c (put_byte_from_character_table): Change unit size
3335         from 128 to 256.
3336         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3337         not defined.
3338         (Fmake_reverse_direction_charset): Modify dummy argument of
3339         `make_charset' for non-UTF-2000 environment.
3340
3341 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3342
3343         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3344
3345         * mule-charset.c (destroy_byte_from_character_table): New macro.
3346         (latin_jisx0201_to_ucs): Deleted.
3347         (latin_iso8859_2_to_ucs): Deleted.
3348         (latin_iso8859_3_to_ucs): Deleted.
3349         (latin_iso8859_4_to_ucs): Deleted.
3350         (latin_iso8859_9_to_ucs): Deleted.
3351         (latin_viscii_lower_to_ucs): Deleted.
3352         (latin_viscii_upper_to_ucs): Deleted.
3353         (mark_charset): Mark `cs->decoding_table'.
3354         (Fcharset_mapping_table): Fix DOC-string.
3355         (Fset_charset_mapping_table): New function.
3356         (syms_of_mule_charset): Add nwe function
3357         `set-charset-mapping-table'.
3358         (complex_vars_of_mule_charset): Don't setup and use
3359         `latin_*_to_ucs'.
3360
3361 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3362
3363         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3364         charset.
3365
3366 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3367
3368         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3369         (Vcharset_katakana_jisx0208): New variable.
3370         (Qhiragana_jisx0208): New variable.
3371         (Qkatakana_jisx0208): New variable.
3372         (make_charset): Add new argument `byte_offset'.
3373         (charset_get_byte1): Modify for new coded-charset definition; use
3374         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3375         `XCHARSET_BYTE_OFFSET'.
3376         (Fmake_charset): Modify for `make_charset'.
3377         (Fmake_reverse_direction_charset): Likewise.
3378         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3379         `katakana-jisx0208'.
3380         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3381         `.'  in font registry of charset `katakana-jisx0201',
3382         `latin-jisx0201', `vietnamese-viscii-lower' and
3383         `vietnamese-viscii-upper'; modify DOC-string of charset
3384         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3385         registry of charset `japanese-jisx0208' not to use font for JIS
3386         X0208:1990; add new charset `hiragana-jisx0208' and
3387         `katakana-jisx0208'.
3388
3389         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3390         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3391         (struct Lisp_Charset): Add `byte_offset'.
3392         (CHARSET_BYTE_OFFSET): New macro.
3393         (XCHARSET_UCS_MIN): New macro.
3394         (XCHARSET_UCS_MAX): New macro.
3395         (XCHARSET_CODE_OFFSET): New macro.
3396         (XCHARSET_BYTE_OFFSET): New macro.
3397         (MIN_CHAR_HIRAGANA): New macro.
3398         (MAX_CHAR_HIRAGANA): New macro.
3399         (MIN_CHAR_KATAKANA): New macro.
3400         (MAX_CHAR_KATAKANA): New macro.
3401         (MAKE_CHAR): Modify for new coded-charset definition; use
3402         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3403         `XCHARSET_BYTE_OFFSET'.
3404
3405 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3406
3407         * mule-charset.c (CHAR96): Deleted.
3408         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3409         <Lisp_Object>.
3410         (latin_iso8859_2_to_ucs): Likewise.
3411         (latin_iso8859_3_to_ucs): Likewise.
3412         (latin_iso8859_4_to_ucs): Likewise.
3413         (latin_iso8859_9_to_ucs): Likewise.
3414         (latin_viscii_lower_to_ucs): Likewise.
3415         (latin_viscii_upper_to_ucs): Likewise.
3416         (latin_tcvn5712_to_ucs): Commented out.
3417         (make_charset): Change type of argument `decoding_table' from
3418         <Emchar*> to <Lisp_Object> [vector of characters].
3419         (Fmake_charset): Modify for `make_charset'.
3420         (Fmake_reverse_direction_charset): Likewise.
3421         (Fcharset_mapping_table): New function in UTF-2000.
3422         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3423         UTF-2000.
3424         (complex_vars_of_mule_charset): Modify for type change of
3425         `*_to_ucs'; modify for `make_charset'.
3426
3427         * char-ucs.h (struct Lisp_Charset): Change type of
3428         `decoding_table' from <Emchar*> to <Lisp_Object>.
3429         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3430
3431 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3432
3433         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3434         error with non-UTF-2000-Mule.
3435
3436 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3437
3438         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3439         in lisp again].
3440         (Vcharset_chinese_cns11643_4): Likewise.
3441         (Vcharset_chinese_cns11643_5): Likewise.
3442         (Vcharset_chinese_cns11643_6): Likewise.
3443         (Vcharset_chinese_cns11643_7): Likewise.
3444         (Qchinese_cns11643_3): Likewise.
3445         (Qchinese_cns11643_4): Likewise.
3446         (Qchinese_cns11643_5): Likewise.
3447         (Qchinese_cns11643_6): Likewise.
3448         (Qchinese_cns11643_7): Likewise.
3449         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3450         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3451         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3452         (complex_vars_of_mule_charset): Likewise.
3453
3454 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3455
3456         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3457         96-set.
3458         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3459         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3460
3461 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3462
3463         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3464         0xFF60.
3465         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3466         (breakup_char_1): Likewise.
3467
3468         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3469         one of them includes the specified character.
3470
3471 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3472
3473         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3474
3475 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3476
3477         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3478
3479 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3480
3481         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3482         definition for non-UTF-2000 Mule.
3483         (latin_iso8859_3_to_ucs): Likewise.
3484         (latin_iso8859_4_to_ucs): Likewise.
3485         (latin_iso8859_9_to_ucs): Likewise.
3486         (latin_jisx0201_to_ucs): Likewise.
3487         (MIN_CHAR_THAI): Likewise.
3488         (MAX_CHAR_THAI): Likewise.
3489         (MIN_CHAR_GREEK): Likewise.
3490         (MAX_CHAR_GREEK): Likewise.
3491         (MIN_CHAR_HEBREW): Likewise.
3492         (MAX_CHAR_HEBREW): Likewise.
3493         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3494         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3495         (MIN_CHAR_CYRILLIC): Likewise.
3496         (MAX_CHAR_CYRILLIC): Likewise.
3497
3498 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3499
3500         * char-ucs.h (breakup_char_1): Use
3501         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3502         thai-tis620 and katakana-jisx0201 area.
3503
3504 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3505
3506         * char-ucs.h (breakup_char_1): Use
3507         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3508         area.
3509
3510         * text-coding.c (reset_encoding_stream): Fixed.
3511         (char_encode_ucs4): Delete `& 255'.
3512
3513         * char-ucs.h (breakup_char_1): Use
3514         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3515
3516 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3517
3518         * file-coding.c (Fmake_coding_system): Don't set up
3519         `codesys->fixed.size'.
3520         (encode_coding_no_conversion): Don't refer
3521         `str->codesys->fixed.size'.
3522
3523 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3524
3525         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3526         (latin_a_char_to_byte1): Deleted.
3527         (latin_a_char_to_byte2): Deleted.
3528
3529 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3530
3531         * mule-charset.c (make_charset): Add new argument `ucs_min',
3532         `ucs_max' and `code_offset'.
3533         (charset_get_byte1): New implementation [delete specific charset
3534         depended implementations].
3535         (Fmake_charset): Modify for `make_charset'.
3536         (Fmake_reverse_direction_charset): Likewise.
3537         (complex_vars_of_mule_charset): Likewise.
3538
3539         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3540         `code_offset'.
3541         (CHARSET_UCS_MIN): New macro.
3542         (CHARSET_UCS_MAX): New macro.
3543         (CHARSET_CODE_OFFSET): New macro.
3544         (MAKE_CHAR): Delete charset depended definitions [except
3545         katakana-jisx0201].
3546
3547 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3548
3549         * char-ucs.h (breakup_char_1): Use
3550         `Vdefault_coded_charset_priority_list' for C0-Controls,
3551         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3552
3553 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3554
3555         * char-ucs.h (charset_get_byte1): New function.
3556         (XCHARSET_GET_BYTE1): Deleted.
3557         (charset_get_byte2): New function.
3558         (XCHARSET_GET_BYTE2): Deleted.
3559         (Vdefault_coded_charset_priority_list): New external variable.
3560         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3561         `Vdefault_preferred_coded_charset_list'.
3562
3563         * mule-charset.c (charset_get_byte1): New function.
3564         (charset_get_byte2): New function.
3565         (Vdefault_coded_charset_priority_list): New variable.
3566         (vars_of_mule_charset): Add new variable
3567         `default-coded-charset-priority-list'.
3568
3569 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3570
3571         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3572         (XCHARSET_GET_BYTE2): New inline function.
3573         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3574         `XCHARSET_GET_BYTE2'.
3575
3576 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3577
3578         * mule-charset.c (make_charset): Initialize
3579         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3580         NULL if table is not defined.
3581
3582 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3583
3584         * text-coding.c (char_encode_shift_jis): Use
3585         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3586         `ucs_to_latin_jisx0201'.
3587
3588         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3589         (ucs_to_latin_iso8859_2): Deleted.
3590         (ucs_to_latin_iso8859_3): Deleted.
3591         (ucs_to_latin_iso8859_4): Deleted.
3592         (ucs_to_latin_iso8859_9): Deleted.
3593         (ucs_to_latin_viscii_lower): Deleted.
3594         (ucs_to_latin_viscii_upper): Deleted.
3595         (ucs_to_latin_tcvn5712): Deleted.
3596         (make_charset): Add new argument `decoding_table'; set up
3597         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3598         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3599         `decoding_table' is defined in UTF-2000.
3600         (Fmake_charset): Modify for `make_charset'.
3601         (Fmake_reverse_direction_charset): Likewise.
3602         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3603         and `GENERATE_96_SET'.
3604
3605         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3606         (ucs_to_latin_jisx0201): Deleted.
3607         (latin_iso8859_2_to_ucs): Deleted.
3608         (ucs_to_latin_iso8859_2): Deleted.
3609         (latin_iso8859_3_to_ucs): Deleted.
3610         (ucs_to_latin_iso8859_3): Deleted.
3611         (latin_iso8859_4_to_ucs): Deleted.
3612         (ucs_to_latin_iso8859_4): Deleted.
3613         (latin_iso8859_9_to_ucs): Deleted.
3614         (ucs_to_latin_iso8859_9): Deleted.
3615         (latin_viscii_lower_to_ucs): Deleted.
3616         (ucs_to_latin_viscii_lower): Deleted.
3617         (latin_viscii_upper_to_ucs): Deleted.
3618         (ucs_to_latin_viscii_upper): Deleted.
3619         (struct Lisp_Charset): Renamed `encoding_table' to
3620         `to_byte1_table'; add `to_byte2_table'.
3621         (CHARSET_DECODING_TABLE): New macro.
3622         (CHARSET_TO_BYTE1_TABLE): New macro.
3623         (CHARSET_TO_BYTE2_TABLE): New macro.
3624         (XCHARSET_DECODING_TABLE): New macro.
3625         (XCHARSET_TO_BYTE1_TABLE): New macro.
3626         (XCHARSET_TO_BYTE2_TABLE): New macro.
3627         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3628         tables.
3629         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3630         don't use `ucs_to_*' tables.
3631
3632 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3633
3634         * text-coding.c (Fmake_coding_system): Don't set up
3635         `codesys->fixed.size'.
3636         (encode_coding_no_conversion): Use `if' instead of `switch'.
3637
3638         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3639
3640 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3641
3642         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3643         (Fmake_charset): Modify for `make_charset'.
3644         (Fmake_reverse_direction_charset): Likewise.
3645         (complex_vars_of_mule_charset): Likewise.
3646
3647 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3648
3649         * text-coding.c (char_encode_shift_jis): Use table
3650         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3651
3652 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3653
3654         * text-coding.c (text_encode_generic): Use `if' instead of
3655         `switch'.
3656         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3657         decode JIS-Latin.
3658
3659 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3660
3661         * text-coding.c (encode_coding_sjis): Deleted.
3662         (char_encode_shift_jis): New function.
3663         (char_finish_shift_jis): New function.
3664         (reset_encoding_stream): Set up `encode_char' and `finish' for
3665         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3666         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3667         (char_encode_utf8): Treat `eol_type'.
3668
3669 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3670
3671         * file-coding.c (decode_coding_iso2022): Use
3672         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3673
3674 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3675
3676         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3677         to 0.7 (Hirano).
3678
3679 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3680
3681         * char-lb.h (CHAR_COLUMNS): New macro.
3682
3683 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3684
3685         * text-coding.c (char_encode_ucs4): New function.
3686         (char_finish_ucs4): New function.
3687         (encode_coding_ucs4): Deleted.
3688         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3689         (text_encode_generic): Delete local variable `charset' and `half'.
3690         (ucs_to_mule_table): Deleted.
3691         (mule_to_ucs_table): Deleted.
3692         (Fset_ucs_char): Deleted.
3693         (ucs_to_char): Deleted.
3694         (Fucs_char): Deleted.
3695         (Fset_char_ucs): Deleted.
3696         (Fchar_ucs): Deleted.
3697         (decode_ucs4): Deleted.
3698         (mule_char_to_ucs4): Deleted.
3699         (encode_ucs4): Deleted.
3700         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3701         (decode_coding_utf8): Likewise.
3702         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3703         (char_encode_iso2022): Fixed.
3704         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3705         `Fset_char_ucs' and `Fchar_ucs'.
3706         (complex_vars_of_file_coding): Don't initialize
3707         `ucs_to_mule_table'.
3708
3709         * objects-tty.c (tty_initialize_font_instance): Don't use
3710         `XCHARSET_COLUMNS'.
3711
3712         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3713         UTF-2000.
3714
3715         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3716         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3717
3718         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3719         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3720         (emchar_string_displayed_columns): Likewise.
3721
3722         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3723         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3724         (string_column_at_point): Likewise.
3725         (Fmove_to_column): Likewise.
3726
3727         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3728         `encoding_table' and `decoding_table'.
3729         (CHARSET_REP_BYTES): Deleted.
3730         (XCHARSET_REP_BYTES): Deleted.
3731         (XCHARSET_COLUMNS): Deleted.
3732         (CHAR_COLUMNS): New macro.
3733         (lookup_composite_char): Deleted unconditionally.
3734         (composite_char_string): Likewise.
3735
3736 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3737
3738         * char-ucs.h (Emchar_to_byte_table): New type.
3739         (get_byte_from_character_table): New function interface.
3740         (Vcharset_latin_jisx0201): New variable.
3741         (latin_jisx0201_to_ucs): New variable.
3742         (ucs_to_latin_jisx0201): New variable.
3743         (Vcharset_latin_iso8859_2): New variable.
3744         (latin_iso8859_2_to_ucs): New variable.
3745         (ucs_to_latin_iso8859_2): New variable.
3746         (Vcharset_latin_iso8859_3): New variable.
3747         (latin_iso8859_3_to_ucs): New variable.
3748         (ucs_to_latin_iso8859_3): New variable.
3749         (Vcharset_latin_iso8859_4): New variable.
3750         (latin_iso8859_4_to_ucs): New variable.
3751         (ucs_to_latin_iso8859_4): New variable.
3752         (Vcharset_latin_iso8859_9): New variable.
3753         (latin_iso8859_9_to_ucs): New variable.
3754         (ucs_to_latin_iso8859_9): New variable.
3755         (Vcharset_latin_viscii_lower): New variable.
3756         (latin_viscii_lower_to_ucs): New variable.
3757         (ucs_to_latin_viscii_lower): New variable.
3758         (Vcharset_latin_viscii_upper): New variable.
3759         (latin_viscii_upper_to_ucs): New variable.
3760         (ucs_to_latin_viscii_upper): New variable.
3761         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3762         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3763         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3764         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3765         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3766         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3767         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3768         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3769         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3770         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3771
3772         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3773         (Vcharset_latin_viscii_upper): New variable.
3774         (make_byte_from_character_table): New function.
3775         (put_byte_from_character_table): New function.
3776         (get_byte_from_character_table): New function.
3777         (CHAR96): New macro.
3778         (ucs_to_latin_jisx0201): New variable.
3779         (latin_jisx0201_to_ucs): New variable.
3780         (ucs_to_latin_iso8859_2): New variable.
3781         (latin_iso8859_2_to_ucs): New variable.
3782         (ucs_to_latin_iso8859_3): New variable.
3783         (latin_iso8859_3_to_ucs): New variable.
3784         (ucs_to_latin_iso8859_4): New variable.
3785         (latin_iso8859_4_to_ucs): New variable.
3786         (ucs_to_latin_iso8859_9): New variable.
3787         (latin_iso8859_9_to_ucs): New variable.
3788         (ucs_to_latin_viscii_lower): New variable.
3789         (latin_viscii_lower_to_ucs): New variable.
3790         (ucs_to_latin_viscii_upper): New variable.
3791         (latin_viscii_upper_to_ucs): New variable.
3792         (ucs_to_latin_tcvn5712): New variable.
3793         (latin_tcvn5712_to_ucs): New variable.
3794         (Qlatin_viscii_lower): New variable.
3795         (Qlatin_viscii_upper): New variable.
3796         (syms_of_mule_charset): Set up new symbol
3797         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3798         (complex_vars_of_mule_charset): Set up new charset
3799         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3800         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3801         `ucs_to_<CHARSET>' tables.
3802
3803 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3804
3805         * text-coding.c: New file.
3806
3807 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3808
3809         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3810
3811         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3812         (MAKE_CHAR): Modify for `ucs-bmp'.
3813         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3814         non-MULE characters of BMP.
3815
3816 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3817
3818         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3819         to 0.6.
3820
3821 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3822
3823         * lstream.h:
3824         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3825         - Include character.h for `CHAR_ASCII_P'.
3826
3827         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3828
3829         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3830         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3831
3832         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3833         (BYTE_C0_P): Likewise.
3834         (BYTE_C1_P): Likewise.
3835         (Lstream_get_emchar_1): Likewise.
3836         (Lstream_fput_emchar): Likewise.
3837         (Lstream_funget_emchar): Likewise.
3838         (copy_internal_to_external): Likewise.
3839         (copy_external_to_internal): Likewise.
3840
3841         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3842         (BYTE_C0_P): Likewise.
3843         (BYTE_C1_P): Likewise.
3844         (Lstream_get_emchar_1): Likewise.
3845         (Lstream_fput_emchar): Likewise.
3846         (Lstream_funget_emchar): Likewise.
3847         (copy_internal_to_external): Likewise.
3848         (copy_external_to_internal): Likewise.
3849
3850         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3851         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3852
3853         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3854         (BYTE_ASCII_P): Moved to mb-1byte.h.
3855
3856 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3857
3858         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3859
3860         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3861         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3862         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3863         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3864         (VALIDATE_CHARPTR_FORWARD): Likewise.
3865         (simple_charptr_emchar): Moved to mb-multibyte.h.
3866         (simple_set_charptr_emchar): Likewise.
3867         (simple_charptr_copy_char): Likewise.
3868         (non_ascii_charptr_emchar): Likewise.
3869         (non_ascii_set_charptr_emchar): Likewise.
3870         (non_ascii_charptr_copy_char): Likewise.
3871         (charptr_emchar): Moved to mb-*byte.h.
3872         (set_charptr_emchar): Likewise.
3873         (charptr_copy_char): Likewise.
3874
3875         * mb-1byte.h, mb-multibyte.h: New files.
3876
3877 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3878
3879         * mb-utf-8.h (MULTIBYTE): New macro.
3880         (MAX_EMCHAR_LEN): Moved from buffer.h.
3881         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3882
3883         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3884
3885         * mb-lb.h, multibyte.h: New files.
3886
3887         * char-1byte.h (Charset_ID): Moved from buffer.h.
3888         (MIN_LEADING_BYTE): Likewise.
3889         (LEADING_BYTE_ASCII): Likewise.
3890         (NUM_LEADING_BYTES): Likewise.
3891         (CHARSETP): Likewise.
3892         (CHARSET_BY_LEADING_BYTE): Likewise.
3893         (XCHARSET_LEADING_BYTE): Likewise.
3894         (XCHARSET_GRAPHIC): Likewise.
3895         (XCHARSET_COLUMNS): Likewise.
3896         (XCHARSET_DIMENSION): Likewise.
3897         (CHAR_CHARSET): Likewise.
3898         (CHAR_LEADING_BYTE): Likewise.
3899         (BREAKUP_CHAR): Likewise.
3900         (Vcharset_ascii): Likewise.
3901
3902         * buffer.h: Include multibyte.h unconditionally.
3903         (VALID_CHARPTR_P): Moved to multibyte.h.
3904         (ASSERT_VALID_CHARPTR): Likewise.
3905         (REAL_INC_CHARPTR): Likewise.
3906         (REAL_INC_CHARBYTIND): Likewise.
3907         (REAL_DEC_CHARPTR): Likewise.
3908         (INC_CHARPTR): Likewise.
3909         (INC_CHARBYTIND): Likewise.
3910         (DEC_CHARPTR): Likewise.
3911         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3912         (VALIDATE_CHARPTR_FORWARD): Likewise.
3913         (charptr_n_addr): Likewise.
3914         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3915         (simple_charptr_emchar): Moved to multibyte.h.
3916         (simple_set_charptr_emchar): Likewise.
3917         (simple_charptr_copy_char): Likewise.
3918         (non_ascii_charptr_emchar): Likewise.
3919         (non_ascii_set_charptr_emchar): Likewise.
3920         (non_ascii_charptr_copy_char): Likewise.
3921         (charptr_emchar): Likewise.
3922         (set_charptr_emchar): Likewise.
3923         (charptr_copy_char): Likewise.
3924         (charptr_emchar_n): Likewise.
3925         (Charset_ID): Moved to char-1byte.h.
3926         (Vcharset_ascii): Likewise.
3927         (CHAR_CHARSET): Likewise.
3928         (CHAR_LEADING_BYTE): Likewise.
3929         (LEADING_BYTE_ASCII): Likewise.
3930         (NUM_LEADING_BYTES): Likewise.
3931         (MIN_LEADING_BYTE): Likewise.
3932         (CHARSETP): Likewise.
3933         (CHARSET_BY_LEADING_BYTE): Likewise.
3934         (XCHARSET_LEADING_BYTE): Likewise.
3935         (XCHARSET_GRAPHIC): Likewise.
3936         (XCHARSET_COLUMNS): Likewise.
3937         (XCHARSET_DIMENSION): Likewise.
3938         (BREAKUP_CHAR): Likewise.
3939
3940 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3941
3942         * character.h: Add document about interface for characters.
3943
3944         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3945         (MAKE_CHAR): Delete comment about
3946         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3947         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3948         (BREAKUP_CHAR): Modify name of arguments.
3949         (CHAR_CHARSET): Modify name of argument.
3950
3951         * buffer.h: Delete document about Emchar accessors.
3952
3953 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3954
3955         * character.h (CHAR_INTP): Moved from buffer.h
3956         (CHAR_OR_CHAR_INTP): Likewise.
3957         (XCHAR_OR_CHAR_INT): Likewise.
3958         (CHECK_CHAR_COERCE_INT): Likewise.
3959
3960         * buffer.h (CHAR_INTP): Moved to character.h
3961         (CHAR_OR_CHAR_INTP): Likewise.
3962         (XCHAR_OR_CHAR_INT): Likewise.
3963         (CHECK_CHAR_COERCE_INT): Likewise.
3964
3965 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3966
3967         * character.h:
3968         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3969         - Include char-1byte.h, char-lb.h or char-ucs.h.
3970
3971         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3972
3973         * buffer.h: Include character unconditionally.
3974         (valid_char_p): Moved to char-*.h.
3975         (non_ascii_valid_char_p): Moved to char-lb.h.
3976
3977         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3978
3979 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3980
3981         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3982         in UTF-2000 because it is not ported yet and not to use
3983         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3984         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3985         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3986
3987         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3988         (CHAR_ASCII_P): Moved from character.h.
3989
3990         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3991         (CHAR_ASCII_P): Likewise.
3992         (CHAR_FIELD1_MASK): Deleted.
3993         (CHAR_FIELD2_MASK): Deleted.
3994         (CHAR_FIELD3_MASK): Deleted.
3995         (MAX_CHAR_BASIC_LATIN): New macro.
3996         (CHAR_FIELD1): Deleted.
3997         (CHAR_FIELD2_INTERNAL): Deleted.
3998         (CHAR_FIELD3_INTERNAL): Deleted.
3999         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4000         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4001         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4002         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4003         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4004         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4005         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4006         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4007         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4008         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4009         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4010         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4011         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4012         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4013         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4014         (MIN_CHAR_COMPOSITION): Deleted.
4015         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4016         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4017
4018 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4019
4020         * buffer.h: Include mb-utf-8.h in UTF-2000.
4021
4022         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4023
4024         * mb-utf-8.h: New file.
4025
4026 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4027
4028         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4029         instead of `int'.
4030
4031         * mule-charset.h, buffer.h (Charset_ID): New type.
4032
4033 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4034
4035         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4036         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4037         instead of `MULE_CHAR_PRIVATE_OFFSET',
4038         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4039         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4040         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4041
4042         * character.h (Vcharset_japanese_jisx0212): New variable
4043         definition.
4044
4045 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4046
4047         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4048         (charset_by_attributes): Delete array about direction.
4049         (latin_a_char_to_charset): New variable in UTF-2000.
4050         (latin_a_char_to_byte1): New variable in UTF-2000.
4051         (latin_a_char_to_byte2): New variable in UTF-2000.
4052         (Qucs_bmp): New variable.
4053         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4054         `Bufbyte'.
4055         (next_allocated_2_byte_leading_byte): Likewise.
4056         (non_ascii_set_charptr_emchar): Likewise.
4057         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4058         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4059         `charset_by_attributes'.
4060         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4061         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4062         and `CHARSET_BY_LEADING_BYTE'.
4063         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4064         `utf-2000-version' to `vars_of_mule_charset'.
4065         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4066         define `leading-code-private-11' in UTF-2000; move setting of
4067         `utf-2000-version' from `syms_of_mule_charset'.
4068         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4069         UTF-2000.
4070
4071         * character.h (Charset_ID): New type.
4072         (LEADING_BYTE_UCS_BMP): New macro.
4073         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4074         (CHARSET_ID_OFFSET_94): New macro.
4075         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4076         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4077         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4078         final-byte.
4079         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4080         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4081         (CHARSET_ID_OFFSET_96): New macro.
4082         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4083         CHARSET_ID_OFFSET_96 and final-byte.
4084         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4085         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4086         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4087         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4088         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4089         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4090         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4091         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4092         (LEADING_BYTE_THAI_TIS620): Likewise.
4093         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4094         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4095         (CHARSET_ID_OFFSET_94x94): New macro.
4096         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4097         CHARSET_ID_OFFSET_94x94 and final-byte.
4098         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4099         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4100         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4101         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4102         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4103         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4104         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4105         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4106         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4107         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4108         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4109         (CHARSET_TYPE_128X128): New macro.
4110         (CHARSET_TYPE_256X256): New macro.
4111         (XCHARSET_PRIVATE_P): Delete unconditionally.
4112         (charset_by_attributes): Delete array about direction.
4113         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4114         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4115         (MIN_CHAR_94): New macro.
4116         (MAX_CHAR_94): New macro.
4117         (MIN_CHAR_96): New macro.
4118         (MAX_CHAR_96): New macro.
4119         (MIN_CHAR_94x94): New macro.
4120         (MAX_CHAR_94x94): New macro.
4121         (MIN_CHAR_96x96): New macro.
4122         (MAX_CHAR_96x96): New macro.
4123         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4124         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4125         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4126         - 32)'.
4127         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4128         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4129         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4130         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4131         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4132         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4133         `XCHARSET_LEADING_BYTE' to make code-point.
4134         (latin_a_char_to_charset): New variable.
4135         (latin_a_char_to_byte1): New variable.
4136         (latin_a_char_to_byte2): New variable.
4137         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4138         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4139         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4140
4141         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4142         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4143         (find_charsets_in_emchar_string): Likewise.
4144         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4145
4146         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4147         `int'.
4148         (decode_coding_iso2022): Likewise.
4149
4150         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4151         of `unsigned char'.
4152
4153         * redisplay.c (redisplay_text_width_emchar_string): Use
4154         `Charset_ID' instead of `unsigned char'.
4155         (redisplay_frame_text_width_string): Likewise.
4156
4157         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4158         `unsigned char'.
4159
4160         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4161         instead of `unsigned char'.
4162         (face_cachel_charset_font_metric_info): Likewise.
4163
4164         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4165         (get_non_ascii_char_table_value): Likewise.
4166         (get_char_table): Likewise.
4167         (put_char_table): Likewise.
4168         (map_over_other_charset): Likewise.
4169         (map_char_table): Likewise.
4170
4171         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4172         instead of `unsigned char'.
4173
4174 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4175
4176         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4177         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4178
4179         * mule-charset.c (leading_code_private_11): Don't define in
4180         UTF-2000.
4181
4182         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4183         in UTF-2000 because it is not ported yet and not to use
4184         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4185
4186 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4187
4188         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4189
4190 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4191
4192         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4193         in UTF-2000.
4194
4195         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4196         of unsigned char to store leading-byte.
4197
4198         * chartab.c (get_non_ascii_char_table_value): Don't use
4199         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4200
4201         * file-coding.c (encode_coding_big5): Delete bogus implementation
4202         in UTF2000.
4203
4204         * character.h (LEADING_BYTE_*): Delete definition for
4205         non-UTF-2000.
4206         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4207         (LEADING_BYTE_PREFIX_P): Deleted.
4208         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4209         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4210         (BUFBYTE_LEADING_BYTE_P): Deleted.
4211         (CHARSET_PRIVATE_P): Deleted unconditionally.
4212         (rep_bytes_by_first_byte): Deleted unconditionally.
4213         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4214         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4215         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4216         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4217         (CHAR_FIELD2): Deleted.
4218         (CHAR_FIELD3): Deleted.
4219         (MAKE_CHAR): Delete definition for non-UTF-2000.
4220         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4221         (breakup_char_1): New implementation.
4222         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4223         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4224
4225 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4226
4227         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4228         condition.
4229
4230 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4231
4232         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4233         (CHARSET_PRIVATE_P): Likewise.
4234         (XCHARSET_PRIVATE_P): Likewise.
4235         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4236
4237         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4238         UTF2000.
4239         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4240
4241 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4242
4243         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4244         (NUM_LEADING_BYTES): Changed from 128 to 256.
4245         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4246         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4247         UTF2000.
4248         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4249
4250         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4251         UTF2000.
4252         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4253         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4254         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4255         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4256         (Qchinese_cns11643_3): New variable in UTF2000.
4257         (Qchinese_cns11643_4): New variable in UTF2000.
4258         (Qchinese_cns11643_5): New variable in UTF2000.
4259         (Qchinese_cns11643_6): New variable in UTF2000.
4260         (Qchinese_cns11643_7): New variable in UTF2000.
4261         (syms_of_mule_charset): Define `chinese-cns11643-3',
4262         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4263         and `chinese-cns11643-7' in UTF2000.
4264         (vars_of_mule_charset): Initialize
4265         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4266         + 1 in UTF2000.
4267         (complex_vars_of_mule_charset): Setup charset
4268         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4269         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4270
4271 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4272
4273         * mule-charset.c: Move setting for `leading-code-private-11' from
4274         `syms_of_mule_charset' to `vars_of_mule_charset'.
4275
4276 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4277
4278         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4279         and `NUM_LEADING_BYTES' in assert.
4280
4281 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4282
4283         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4284         instead of 128.
4285         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4286         `NUM_LEADING_BYTES' instead of 128.
4287
4288 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4289
4290         * mule-charset.h (charset_by_leading_byte): Use
4291         `NUM_LEADING_BYTES' instead of 128.
4292         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4293
4294         * mule-charset.c (charset_by_leading_byte): Use
4295         `NUM_LEADING_BYTES' instead of 128.
4296         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4297
4298         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4299         128.
4300
4301 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4302
4303         * mule-charset.c (syms_of_mule_charset): Update to
4304         0.4 (Shin-Imamiya).
4305
4306 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4307
4308         * file-coding.c (encode_coding_sjis): New implementation for
4309         UTF2000.  (decode_coding_sjis): Ditto.
4310
4311 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4312
4313         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4314         Don't define in UTF2000.
4315
4316         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4317         defined.
4318
4319         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4320         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4321         MULE.
4322
4323 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4324
4325         * config.h.in (CHAR_IS_UCS4): New macro.
4326
4327         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4328         conventional MULE representation.
4329         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4330
4331         * mule-charset.h: Reverted to original.
4332
4333         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4334         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4335         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4336
4337         * character.h: New file.
4338
4339         * file-coding.c (Fmake_coding_system): Set 1 to
4340         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4341         defined.
4342         (encode_coding_no_conversion): New implementation for UTF2000.
4343
4344         * file-coding.h (struct Lisp_Coding_System): Add new member
4345         `fixed.size'.
4346
4347 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4348
4349         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4350         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4351         (encode_coding_iso2022): New implementation for UTF2000.
4352
4353 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4354
4355         * mule-canna.c (c2mu): New implementation for UTF2000.
4356         (m2c): Likewise.
4357
4358 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4359
4360         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4361
4362 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4363
4364         * file-coding.c (reset_encoding_stream): Set 0 to
4365         `str->iso2022.current_char_boundary' in UTF2000.
4366         (encode_utf8): Don't define in UTF2000.
4367         (encode_coding_utf8): New implementation for UTF-8 representation
4368         of UTF2000.
4369         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4370
4371 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4372
4373         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4374
4375         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4376         UTF2000.
4377         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4378
4379         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4380
4381         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4382         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4383         as UTF-8 in UTF2000.
4384         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4385         (non_ascii_valid_char_p): Don't define in UTF2000.
4386         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4387         (Lstream_get_emchar_1): Likewise.
4388         (utf-2000-version): New variable in UTF2000.
4389
4390         * lread.c (read_escape): Add new reader `u'.
4391
4392         * insdel.c (three_to_one_table): Don't define in UTF2000.
4393         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4394         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4395         UTF2000.
4396         (bytind_to_bufpos_func): Likewise.
4397         (buffer_mule_signal_inserted_region): Likewise.
4398         (vars_of_insdel): Don't initialize `three_to_one_table'.
4399         (init_buffer_text): Use `buf->text->mule_size' instead of
4400         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4401         UTF2000.
4402
4403         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4404         UTF-8 representation in UTF2000.
4405         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4406         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4407         (decode_coding_iso2022): Don't define local variable `lb' in
4408         UTF2000; don't use LEADING_BYTE in UTF2000; use
4409         `DECODE_ADD_UCS_CHAR' in UTF2000.
4410         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4411
4412         * config.h.in (UTF2000): New macro.
4413
4414         * buffer.h (struct buffer_text): Add new member `mule_size' and
4415         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4416         (valid_char_p): Return always 1 in UTF2000.
4417         (MAX_EMCHAR_LEN): 6 in UTF2000.
4418         (three_to_one_table): Don't define in UTF2000.
4419         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4420         UTF2000.
4421         (real_bytind_to_bufpos): Likewise.
4422
4423         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4424
4425 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4426
4427         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4428         representation change.
4429         (Vutf_2000_version): New variable.
4430         (leading_code_private_11): New variable.
4431         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4432         `leading-code-private-11'.
4433
4434         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4435         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4436         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4437         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4438         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4439         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4440         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4441         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4442         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4443         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4444         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4445         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4446         (MIN_CHAR_GREEK): New macro.
4447         (MAX_CHAR_GREEK): New macro.
4448         (MIN_CHAR_CYRILLIC): New macro.
4449         (MAX_CHAR_CYRILLIC): New macro.
4450         (MIN_CHAR_HEBREW): New macro.
4451         (MAX_CHAR_HEBREW): New macro.
4452         (MIN_CHAR_THAI): New macro.
4453         (MAX_CHAR_THAI): New macro.
4454         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4455         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4456         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4457         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4458         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4459         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4460         (CHAR_FIELD2): New inline function.
4461         (CHAR_FIELD3): New inline function.
4462         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4463         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4464         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4465         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4466         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4467         (MIN_CHAR_COMPOSITION): Likewise.
4468         (CHAR_LEADING_BYTE): Modified for character representation change.
4469         (MAKE_CHAR): Likewise.
4470
4471         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4472         (Vcharset_greek_iso8859_7): Likewise.
4473         (Vcharset_cyrillic_iso8859_5): Likewise.
4474         (Vcharset_hebrew_iso8859_8): Likewise.
4475         (Vcharset_thai_tis620): Likewise.
4476         (Vcharset_katakana_jisx0201): Likewise.
4477
4478 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
4479
4480         * XEmacs 21.4.9 "Informed Management" is released.
4481
4482 2002-08-19  Andy Piper  <andy@xemacs.org>
4483
4484         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4485         win32 format.
4486
4487         * realpath.c (xrealpath): normalize drive spec also so that dir
4488         sep chars are not mixed on cygwin.
4489
4490 2002-08-06  Jerry James  <james@xemacs.org>
4491
4492         * window.c (Fsplit_window): Count only half of the divider width
4493         against the left window when splitting horizontally. 
4494
4495 2002-06-24  Andy Piper  <andy@xemacs.org>
4496
4497         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4498         toolbar was cleared.
4499
4500         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4501         function. Split out from mswindows_output_frame_toolbars.
4502         (mswindows_output_frame_toolbars): move clear pieces to
4503         mswindows_output_frame_toolbars.
4504
4505         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4506         out from gtk_output_frame_toolbars.
4507         (gtk_output_frame_toolbars): move clear pieces to
4508         gtk_clear_frame_toolbars.
4509
4510         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
4511         the frame is cleared. How this ever worked before is a mystery.
4512         (x_output_frame_toolbars): Only output toolbars.
4513         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
4514
4515         * gutter.c (update_gutter_geometry):
4516         Mark frame layout changed.
4517         (update_frame_gutter_geometry, update_frame_gutters):
4518         Respect frame_layout_changed.
4519
4520         * console.h (struct console_methods): add
4521         clear_frame_toolbars_method.
4522
4523         * redisplay.c (redisplay_frame): call
4524         update_frame_toolbars_geometry and re-order update_frame_toolbars.
4525
4526         * toolbar.h: declare update_frame_toolbars_geometry.
4527
4528         * toolbar.c (update_frame_toolbars_geometry): new function. Split
4529         out from update_frame_toolbars.  Call clear_frame_toolbars.
4530         (update_frame_toolbars): only output, do not change geometry.
4531
4532         * redisplay.c: add frame_layout_changed.
4533
4534         * redisplay.h: add frame_layout_changed.
4535         (CLASS_RESET_CHANGED_FLAGS): set it.
4536         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
4537         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
4538         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
4539
4540         * device.h (struct device): add frame_layout_changed.
4541         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
4542
4543         * frame.h (struct frame): add frame_layout_changed.
4544         (MARK_FRAME_LAYOUT_CHANGED): new.
4545
4546 2002-06-30  Mike Alexander  <mta@arbortext.com>
4547
4548         * event-msw.c (mswindows_need_event): Don't wait for a new message
4549         if the queue is not empty.  Suggested by Paul Moore.
4550
4551 2002-06-12  Andy Piper  <andy@xemacs.org>
4552
4553         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
4554         for printing on accurately.
4555
4556 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
4557
4558         * event-msw.c (mswindows_wnd_proc): Add a handler for the
4559         WM_ACTIVATE message. Make sure that the frame is visible if the
4560         window is visible. This seemss to fix the problem where XEmacs
4561         appears to freeze after switching desktops with certain virtual
4562         window managers.
4563         (debug_output_mswin_message): Added code to output message
4564         parameters for WM_WINDOWPOSCHANGED, 
4565         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
4566
4567 2002-05-25  Andy Piper  <andy@xemacs.org>
4568
4569         * select-x.c (vars_of_select_x): Fix docstring of
4570         x-selection-strict-motif-ownership
4571
4572 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4573
4574         * keymap.c (get_keymap):
4575         Add comment about do_autoload GCPROs own args.
4576
4577 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4578
4579         * bytecode.c (execute_optimized_program): check_opcode ifdef
4580         ERROR_CHECK_BYTE_CODE.
4581
4582 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4583
4584         Thanks to Ben Wing and Michael Sperber.
4585
4586         * eval.c (Fcommand_execute):
4587         (Feval):
4588         (Ffuncall):
4589         (Fmacroexpand_internal):
4590         (function_argcount):
4591         callint.c (Fcall_interactively):
4592         Add comment about do_autoload GCPROs own args.
4593
4594         * (do_autoload): GCPRO both args as well as local Lisp_Object.
4595
4596         * eval.c (Ffuncall): Extra braces to placate GCC.
4597
4598 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
4599
4600         * backtrace.h (grow_specpdl):
4601         (SPECPDL_RESERVE):
4602         * EmacsFrame.c (EmacsFrameSetValues):
4603         * eval.c (grow_specpdl):
4604         * ExternalShell.c (hack_event_masks_1):
4605         * glyphs-x.c (convert_EImage_to_XImage): 
4606         (x_finalize_image_instance):
4607         * ralloc.c (page_size):
4608         (r_alloc_sbrk):
4609         * xgccache.c (gc_cache_hash):
4610         Fix unsigned comparison warnings.
4611
4612 2002-07-29  Jerry James  <james@xemacs.org>
4613
4614         * lread.c (locate_file): Any nonnegative return value indicates
4615         success if MODE is nonnegative.
4616
4617 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
4618
4619         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
4620         argument. 
4621
4622 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
4623
4624         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
4625
4626         * dumper.c (pdump_get_indirect_count):
4627         (pdump_scan_by_alignment):
4628         (pdump_dump_root_struct_ptrs):
4629         (pdump_dump_rtables):
4630         (pdump_dump_root_objects):
4631         (pdump):
4632         * nas.c (WaveOpenDataForReading):
4633         * fns.c (print_bit_vector):
4634         * font-lock.c (SINGLE_SYNTAX_STYLE):
4635         * glyphs.c (check_for_ignored_expose):
4636         (find_matching_subwindow):
4637         * glyphs-eimage.c:
4638         * imgproc.c (get_histogram):
4639         * redisplay.c (point_in_line_start_cache):
4640         * redisplay-output.c (redisplay_unmap_subwindows):
4641         * symbols.c (defsymbol_massage_name_1):
4642         (defkeyword_massage_name):
4643         (deferror_massage_name_and_message):
4644         * redisplay-x.c (x_output_string): 
4645         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
4646         * frame.h (struct frame):
4647         * filelock.c (current_lock_owner):
4648         * doprnt.c (emacs_doprnt_1):
4649         * lisp.h (struct Lisp_Bit_Vector):
4650         (DO_REALLOC):
4651         Fix warnings.
4652
4653 2002-02-13  Ben Wing  <ben@xemacs.org>
4654
4655         * event-stream.c (reset_key_echo):
4656         * event-stream.c (reset_this_command_keys):
4657         * event-stream.c (execute_command_event):
4658         If console is dead as a result of C-x 5 0, then post-command stuff
4659         needs to be careful and do only non-console-specific stuff.
4660
4661 2002-07-01  Mike Sperber <mike@xemacs.org>
4662
4663         * process-unix.c (unix_send_process): Mark coding_outstream as
4664         non-open upon SIGPIPE.
4665
4666         * event-stream.c (Fnext_event): Reorder switch cases to something
4667         that makes sense.
4668
4669 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
4670
4671         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
4672         Don't bogusly reinitialize ascii_character property.
4673
4674 2002-07-08  Mike Sperber <mike@xemacs.org>
4675
4676         * process.c (Fstart_process_internal): Do error checking before we
4677         fork off the child, so the child can't muck with the state of the
4678         parent.
4679
4680 2002-07-08  Mike Sperber <mike@xemacs.org>
4681
4682         * ralloc.c (init_ralloc): Allocate properly for pdump.
4683
4684 2002-06-12  Andy Piper  <andy@xemacs.org>
4685
4686         * glyphs.c (query_string_geometry): check the string.
4687
4688         * glyphs-widget.c (widget_logical_unit_height): cope with nil
4689         widget names.
4690
4691 2002-06-17  Jerry James  <james@xemacs.org>
4692
4693         * sysdll.c: Remove RTLD_GLOBAL initialization.
4694         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
4695
4696 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
4697
4698         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
4699
4700 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
4701
4702         * sysdep.c (sys_rename): Make sys_rename work for the case where
4703         Windows rename sets errno to EACCES if target file exists.
4704
4705 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
4706
4707         * device-msw.c (mswindows_handle_page_setup_dialog_box):
4708         Fix detection of metric units to work on Win95
4709
4710 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
4711
4712         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
4713
4714 2002-04-25  Andy Piper  <andy@xemacs.org>
4715
4716         * redisplay.c (create_text_block): Remove extra comment trailer.
4717
4718 2002-04-24  Andy Piper  <andy@xemacs.org>
4719
4720         * redisplay.c (create_text_block): Don't actually add propagation
4721         data if the line ends after we have added a glyph.
4722
4723 2002-04-22  Andy Piper  <andy@xemacs.org>
4724
4725         * extents.c (extent_fragment_update): check for glyphs we have
4726         previously displayed.
4727         * extents.c (print_extent_1): warning removal.
4728         * extents.h: change prototype.
4729         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
4730         widths correctly for wide glyphs.
4731         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
4732         * redisplay.c (prop_type): add PROP_GLYPH.
4733         * redisplay.c (struct prop_block): add glyph type
4734         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
4735         to the propagation data.
4736         * redisplay.c (create_text_block): if there is a glyph in the
4737         propagation data use it to salt extent_fragment_update.
4738         * redisplay.c (create_string_text_block): ditto.
4739
4740 2002-04-13  Nix  <nix@esperi.demon.co.uk>
4741
4742         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
4743         * redisplay-output.c (compare_runes): Compare them.
4744         * redisplay.c: Update copyright date.
4745         * redisplay.c (pos_data): Add need_baseline_computation field.
4746         * redisplay.c (add_glyph_rune): Update ascent, descent, and
4747         need_baseline_computation; zero yoffset. Set max_pixmap_height
4748         for all pixmaps, not just automatically positioned ones.
4749         * redisplay.c (calculate_yoffset): New, compute yoffset values.
4750         * redisplay.c (calculate_baseline): New, compute textual baseline.
4751         * redisplay.c (add_glyph_rune): Call them.
4752         * redisplay.c (create_text_block): Likewise.
4753         * redisplay.c (create_overlay_glyph_block): Likewise.
4754         * redisplay.c (add_margin_runes): Likewise.
4755         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
4756
4757         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
4758         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
4759         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
4760         * redisplay-msw.c (mswindows_output_string): Likewise.
4761         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
4762         * redisplay-gtk.c (gtk_output_display_block): Likewise.
4763         * redisplay-x.c (x_output_display_block): Likewise.
4764
4765 2002-03-28  Ben Wing  <ben@xemacs.org>
4766
4767         * redisplay.c: Fixed bug in redisplay
4768         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
4769         and down of the lines, since they're bigger than the line
4770         size. (It was seen most obviously when there's a horizontal scroll
4771         bar, e.g. do C-h a glyph or something like that.) The problem was
4772         that the glyph-contrib-p setting on glyphs was ignored even if it
4773         was set properly, which it wasn't until now.
4774
4775 2002-04-24  Andy Piper  <andy@xemacs.org>
4776
4777         * lisp.h (Dynarr_end): Fix definition.
4778
4779 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
4780
4781         * redisplay.c (mark_redisplay): Remove call to
4782         update_frame_window_mirror.
4783
4784 2001-11-15  Andy Piper  <andy@xemacs.org>
4785
4786         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
4787         cygwin (again).
4788
4789 2002-02-13  Andy Piper  <andy@xemacs.org>
4790
4791         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
4792         we did in fact enqueue the XM_MAPFRAME event.
4793
4794 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
4795
4796         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
4797         to fix problem switching between virtual desktops under virtuawin
4798         virtual window manager.
4799
4800 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
4801
4802         * event-msw.c: Typo fix.
4803         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
4804         magic XM_MAPFRAME event has been sent.
4805
4806 2001-11-23  Andy Piper  <andy@xemacs.org>
4807
4808         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
4809
4810 2001-11-21  Andy Piper  <andy@xemacs.org>
4811
4812         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
4813         mouse events outside the frame.
4814
4815 2002-03-20  Andy Piper  <andy@xemacs.org>
4816
4817         * menubar-msw.c (mswindows_popup_menu): warning removal.
4818         * dialog-msw.c (dialog_popped_down): ditto.
4819
4820 2001-12-11  Andy Piper  <andy@xemacs.org>
4821
4822         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
4823         * dialog-msw.c (mswindows_make_dialog_box_internal): set
4824         popup_up_p.
4825         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
4826         * menubar-msw.c (mswindows_handle_wm_command): ditto.
4827         * menubar-msw.c (mswindows_popup_menu): ditto.
4828
4829 2001-10-29  Andy Piper  <andy@xemacs.org>
4830
4831         * dialog-msw.c (handle_directory_dialog_box): quit if the user
4832         cancels.
4833
4834 2002-01-03  Andy Piper  <andy@xemacs.org>
4835
4836         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
4837         letters.
4838         (xrealpath): ditto.
4839
4840 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
4841
4842         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
4843         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
4844         * device-msw.c (mswindows_handle_page_setup_dialog_box):
4845         Detect and handle case where machine is set up for metric units
4846
4847 2002-04-02  Andy Piper  <andy@xemacs.org>
4848
4849         * dired-msw.c (mswindows_get_files): 
4850         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
4851         completely handled by XEmacs. Suggested by Thomas Vogler
4852         <mail@thomas-vogler.de>.
4853
4854 2001-11-14  Andy Piper  <andy@xemacs.org>
4855
4856         * nt.c (REG_ROOT): change registry key to XEmacs.
4857
4858 2002-04-27  Andy Piper  <andy@xemacs.org>
4859
4860         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
4861
4862 2002-04-26  Andy Piper  <andy@xemacs.org>
4863
4864         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
4865         behavior.
4866
4867 2002-03-14  Mike Alexander  <mta@arbortext.com>
4868
4869         * event-msw.c (mswindows_unwait_process): New, remove process from
4870         wait list
4871         * process-nt.c (nt_finalize_process_data): Call
4872         mswindows_unwait_process
4873         * console-msw.h: Declare mswindows_unwait_process
4874
4875 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
4876
4877         * editfns.c (Fdecode_time):
4878         (Fformat_time_string):
4879         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
4880         (make_time): Warning elimination (change arg name).
4881
4882 2001-11-24  Andy Piper  <andy@xemacs.org>
4883
4884         * window.c (Fsplit_window): Doc return type.
4885
4886 2002-04-01  Andy Piper  <andy@xemacs.org>
4887
4888         * emacs.c (Fkill_emacs): Only output message box in interactive
4889         mode.
4890
4891 2002-04-26  Andy Piper  <andy@xemacs.org>
4892  
4893         * config.h.in: pull in 21.5.x change to stop alloca warnings under
4894         cygwin.
4895
4896 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
4897
4898         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
4899         bit platform.
4900
4901 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
4902
4903         * XEmacs 21.4.8 "Honest Recruiter" is released.
4904
4905 2002-05-07  Nix  <nix@esperi.demon.co.uk>
4906
4907         Supersedes 2002-04-17 patch.
4908
4909         * process.h (PROCESS_LIVE_P): Use the process status as
4910         evidence of health, not the state of the input stream.
4911         (PROCESS_READABLE_P): Say if the process is readable
4912         from. (It may be dead nonetheless.)
4913         (CHECK_READABLE_PROCESS): Test for that condition.
4914
4915         * process.c (create_process): Use PROCESS_READABLE_P.
4916         (read_process_output, set_process_filter): Likewise.
4917
4918         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
4919         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
4920
4921         This code is #if 0'd, this is not the time to add new functions:
4922
4923         * process.c (Fprocess_readable_p): Report readability status.
4924         * process.c (Qprocess_readable_p): New, associated symbol...
4925         * process.c (syms_of_process): ... initialize it.
4926
4927 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
4928
4929         * XEmacs 21.4.7 "Economic Science" is released.
4930
4931 2002-04-17  Nix  <nix@esperi.demon.co.uk>
4932
4933         * process.h (PROCESS_LIVE_P): Use the process status as
4934         evidence of health, not the state of the input stream.
4935
4936 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
4937
4938         * sysdep.c (sys_siglist): change "signum" to "signal"
4939
4940 2001-04-21  Martin Buchholz  <martin@xemacs.org>
4941
4942         * s/darwin.h: New file.
4943         Thanks to Greg Parker <gparker@cs.stanford.edu>.
4944         
4945 2002-04-23  Andreas Jaeger  <aj@suse.de>
4946
4947         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
4948         which use lib64 for 64-bit libs.
4949         (START_FILES): Likewise.
4950
4951 2002-02-11  Mike Sperber  <mike@xemacs.org>
4952
4953         * device-x.c: 
4954         (x_IO_error_handler):
4955         (x_init_device): Temporarily keep device in static variable
4956         `device_being_initialized' so we can recover gracefully from
4957         internal XOpenDevice failure.  (XOpenDevice is documented to
4958         return NULL on failure, but sometimes calls the IO error handler
4959         instead.)
4960
4961 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
4962
4963         * dired.c (Ffile_name_all_completions): Change documentation --
4964         remove reference to completion-ignored-extensions.
4965         * dired.c (vars_of_dired): Change documentation for
4966         completion-ignored-extensions -- remove reference to
4967         file-name-all-completions.
4968
4969 2002-03-06  Jerry James  <james@xemacs.org>
4970
4971         * emodules.c (emodules_load): Fix multiple loading of same module.
4972
4973 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
4974         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
4975         RTLD_LAZY to avoid incorrect symbol binding when using nested
4976         shared libraries on Solaris.
4977
4978 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
4979
4980         * fileio.c (Ffind_file_name_handler): Improve docstring.
4981
4982 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
4983
4984         * fns.c (Fmapconcat): Improve docstring.
4985
4986 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
4987
4988         * device-gtk.c: Add prototype for
4989         emacs_gtk_selection_clear_event_handle.
4990         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
4991         selection.  Setup signal handler for "selection_clear_event"
4992         (emacs_gtk_selection_clear_event_handle).
4993
4994         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
4995         other applications owning the clipboard (based on
4996         x_handle_selection_clear).
4997
4998 2001-12-23  William M. Perry  <wmperry@gnu.org>
4999
5000         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5001         
5002 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5003
5004         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5005
5006 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5007
5008         * XEmacs 21.4.6 "Common Lisp" is released.
5009
5010 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5011
5012         * search.c (Freplace_match): Add missing sub-expression functionality.
5013
5014         * buffer.c (decode_buffer): Add a check for pointer type to
5015         decode_buffer, before gcc's CSE optimization reorders a
5016         dereference in front of the allow_string test.
5017
5018 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5019
5020         * window.c (window_loop): Fix bug that sometimes prevented
5021         window_loop() from iterating across multiple devices.  Also, at
5022         Ben's request, changed infloop-detecting code to abort() instead
5023         of silently terminating window_loop().
5024
5025 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5026
5027         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5028         * editfns.c (make_time): New function.
5029         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5030         * lisp.h (make_time): Prototype and comment it.
5031         * dired.c (wasteful_word_to_lisp): Deprecate.
5032         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5033
5034 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5035
5036         * fileio.c (auto_save_1): Use current coding system, not
5037         escape-quoted.
5038
5039 2001-11-13  Ben Wing  <ben@xemacs.org>
5040
5041         * window.c:
5042         * window.c (window_truncation_on):
5043         * window.c (syms_of_window):
5044         truncate-partial-width-windows should respect the buffer being
5045         displayed, like other redisplay vars.
5046
5047 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5048
5049         * event-stream.c (Fread_key_sequence): save current buffer.
5050
5051 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5052
5053         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5054
5055 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5056
5057         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5058
5059 2001-10-26  Mike Alexander  <mta@arbortext.com>
5060
5061         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5062
5063 2001-10-25  Andy Piper  <andy@xemacs.org>
5064
5065         * ChangeLog:
5066         * dialog-msw.c (handle_directory_proc): new function.
5067          (handle_directory_dialog_box): new fucntion.
5068          (handle_file_dialog_box): use new directory dialog support.
5069          (mswindows_make_dialog_box_internal): ditto.
5070         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5071         handling.
5072         (mswindows_find_frame): make global.
5073         * fileio.c (Fexpand_file_name): build fix.
5074         * general-slots.h: add Qdirectory.
5075         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5076         handling.
5077         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5078         cygwin not leaving win32 paths unchanged.
5079         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5080         cygwin runtime to do path conversion.
5081         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5082         (syms_of_win32): add new function.
5083         * window.c (window_loop): build fix.
5084
5085 2001-10-15  Andy Piper  <andy@xemacs.org>
5086
5087         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5088
5089 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5090
5091         * XEmacs 21.4.5 "Civil Service" is released.
5092
5093 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5094
5095         * glyphs-x.c: Force buffer-tab highlight update when moving the
5096         buffer, avoiding an ugly black border, used for keyboard focus
5097         indication, on a widget that can never have keyboard focus, the
5098         buffer tab.
5099
5100 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5101
5102         * process-unix.c (unix_open_multicast_group): Remove too much
5103         conversion between host and network byte order.
5104
5105 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5106
5107         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5108         before replacing them.
5109
5110         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5111         operation.
5112
5113         * src/window.c (undedicate_windows): Use it.
5114         * src/window.h: Add prototype.
5115
5116 2001-09-17  Ben Wing  <ben@xemacs.org>
5117
5118         * fileio.c (normalize_filename):
5119         * fileio.c (Fexpand_file_name):
5120         Fix various C++ compile errors in Andy's recent code.
5121         
5122         * callint.c (Fcall_interactively):
5123         * editfns.c (Ftemp_directory):
5124         * editfns.c (Fuser_full_name):
5125         * emacs.c (argmatch):
5126         * lread.c (locate_file_map_suffixes):
5127         * redisplay-x.c (x_ring_bell):
5128         Fix sign-compare warnings.
5129         
5130 2001-09-08  Andy Piper  <andy@xemacs.org>
5131
5132         * fileio.c (normalize_filename): copied from nt.c
5133         * (Ffile_name_directory): enable win32 paths under cygwin.
5134         * (Ffile_name_nondirectory): ditto.
5135         * (directory_file_name): ditto.
5136         * (Fexpand_file_name): ditto.
5137         * (Ffile_truename): ditto.
5138         * (Fsubstitute_in_file_name): ditto.
5139         * (Ffile_name_absolute_p): ditto.
5140         * (Ffile_readable_p): ditto.
5141
5142 2001-09-08  Andy Piper  <andy@xemacs.org>
5143
5144         * device-msw.c (mswindows_finish_init_device): remove dde
5145         initialization.
5146         * device-msw.c (mswindows_init_dde): factor out from
5147         mswindows_finish_init_device()
5148         * device-msw.c (init_mswindows_very_early): new function
5149         initialize but don't enable dde.
5150         * emacs.c (main_1): call init_mswindows_very_early.
5151         * event-msw.c:
5152         * event-msw.c (mswindows_dde_callback): only execute when we are
5153         ready.
5154         * symsinit.h: declare init_mswindows_very_early.
5155
5156 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5157
5158         [sjt: This has been in 21.5 for months with no complaints.]
5159
5160         * console.h (struct console_methods): Added flags member.
5161         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5162         (CONMETH_IMPL_FLAG):
5163         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5164         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5165
5166         * device.c (window_system_pixelated_geometry): Use the above macros.
5167
5168         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5169         implememntation flag.
5170         * device.h (DEVICE_DISPLAY_P): Use it.
5171
5172         * frame.c (delete_frame_internal): Use the above macro.
5173
5174         * redisplay.c (redisplay_device): Use it.
5175         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5176         (redisplay_frame): Ditto.
5177
5178         * device-msw.c (mswindows_device_implementation_flags): Removed.
5179         (msprinter_device_implementation_flags): Removed.
5180         (console_type_create_device_mswindows): Removed references to
5181         implementation_flags methods, set implementation flags here.
5182         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5183
5184         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5185         (console_type_create_device_gtk): Removed method declaration.
5186         Added commented out statement which semantically matches the
5187         commented out statement in the above removed method.
5188
5189 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5190
5191         The attached patch fixes a few warnings. 
5192
5193         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5194         * src/frame-gtk.c: guard against GNOME calls in GTK only
5195         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5196         * src/select-gtk.c: prototype lisp_to_time
5197
5198 2001-06-08  Ben Wing  <ben@xemacs.org>
5199
5200         ------ gc-in-window-procedure fixes ------
5201         
5202         * alloc.c:
5203         * alloc.c (struct post_gc_action):
5204         * alloc.c (register_post_gc_action):
5205         * alloc.c (run_post_gc_actions):
5206         * alloc.c (garbage_collect_1):
5207         Create "post-gc actions", to avoid those dreaded "GC during window
5208         procedure" problems.
5209
5210         * event-msw.c:
5211         Abort, clean and simple, when GC in window procedure.  We want
5212         to flush these puppies out.
5213
5214         * glyphs-msw.c:
5215         * glyphs-msw.c (finalize_destroy_window):
5216         * glyphs-msw.c (mswindows_finalize_image_instance):
5217         Use a post-gc action when destroying subwindows.
5218
5219         * lisp.h:
5220         Declare register_post_gc_action().
5221
5222         * scrollbar-msw.c:
5223         * scrollbar-msw.c (unshow_that_mofo):
5224         Use a post-gc action when unshowing scrollbar windows, if in gc.
5225
5226         * redisplay.c (mark_redisplay):
5227         Add comment about the utter evilness of what's going down here.
5228
5229         ------ cygwin setitimer fixes ------
5230         
5231         * Makefile.in.in (sheap_objs):
5232         * Makefile.in.in (profile_objs):
5233         * Makefile.in.in (objs):
5234         Compile profile.c only when HAVE_SETITIMER.
5235         
5236         * nt.c (mswindows_sigset):
5237         * nt.c (mswindows_sighold):
5238         * nt.c (mswindows_sigrelse):
5239         * nt.c (mswindows_sigpause):
5240         * nt.c (mswindows_raise):
5241         * nt.c (close_file_data):
5242         Style fixes.
5243         
5244         * nt.c:
5245         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5246         
5247         * profile.c:
5248         * profile.c (Fstart_profiling):
5249         * profile.c (Fstop_profiling):
5250         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5251         instead of just plain setitimer().
5252         
5253         * signal.c:
5254         * signal.c (set_one_shot_timer):
5255         * signal.c (alarm):
5256         Define qxe_setitimer() as an encapsulation around setitimer() --
5257         call setitimer() directly unless Cygwin or MS Win, in which case
5258         we use our simulated version in win32.c.
5259         
5260         * systime.h:
5261         * systime.h (struct itimerval):
5262         * systime.h (ITIMER_REAL):
5263         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5264         comment about "qxe" and the policy regarding encapsulation.
5265
5266         * win32.c:
5267         * win32.c (setitimer_helper_proc):
5268         * win32.c (setitimer_helper_period):
5269         * win32.c (setitimer_helper):
5270         * win32.c (mswindows_setitimer):
5271         Move setitimer() emulation here, so Cygwin can use it.
5272         Rename a couple of functions and variables to be longer and more
5273         descriptive.  In setitimer_helper_proc(), send the signal
5274         using either mswindows_raise() or (on Cygwin) kill().  If for
5275         some reason we are still getting lockups, we'll change the kill()
5276         to directly invoke the signal handlers.
5277
5278         ------ windows shell fixes ------
5279         
5280         * callproc.c:
5281         * ntproc.c:
5282         Comments about how these two files must die.
5283
5284         * callproc.c (init_callproc):
5285         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5286         not just COMSPEC. (more correct and closer to FSF.) Don't
5287         force a value for SHELL into the environment. (Comments added
5288         to explain why not.)
5289         
5290         * nt.c (init_user_info):
5291         Don't shove a fabricated SHELL into the environment.  See above.
5292
5293 2001-06-01  Ben Wing  <ben@xemacs.org>
5294
5295         * Makefile.in.in (ldflags):
5296         eliminate that pesky "defaulting to 00401000" warning.
5297         * nt.h:
5298         eliminate warnings.
5299
5300 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5301
5302         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5303         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5304
5305 2001-04-24  Jerry James <james@xemacs.org>
5306
5307         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5308         correct order.
5309
5310 2001-06-01  Ben Wing  <ben@xemacs.org>
5311
5312         * event-msw.c (debug_mswin_messages):
5313         conditionalize the messages that were causing compile errors.
5314         (if only macros could generate #ifdef statements ...)
5315
5316 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5317
5318         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5319
5320 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5321
5322         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5323
5324 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5325
5326         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5327         * process-unix.c (unix_canonicalize_host_name):
5328         sysdep.c (init_system_name):
5329         Use it to conditionally support IPv6 canonicalization.
5330
5331 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5332
5333         * event-msw.c:
5334         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5335
5336 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5337
5338         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5339         attempt is made to scroll when no scroll bar is available.
5340
5341 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5342
5343         * input-method-motif.c (XIM_delete_frame): New callback.
5344         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5345         got deleted from 21.4.3.)
5346
5347 2001-06-01  Ben Wing  <ben@xemacs.org>
5348
5349         * nt.c (mswindows_utime):
5350         * nt.c (close_file_data):
5351         fix off-by-one-indirection error.
5352
5353 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5354
5355         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5356         because set_file_times() now takes Lisp_Object path, instead of
5357         char*.
5358         * nt.c: Include buffer.h.
5359         * nt.c (convert_from_time_t): New.
5360         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5361         not set mtime correctly.
5362         * nt.h: Declare mswindows_utime().
5363         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5364         path, instead of char*.
5365         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5366
5367 2001-05-30  Ben Wing  <ben@xemacs.org>
5368
5369         For 21.4:
5370
5371         (Stephen, just take all event-msw.c patches.  This includes
5372         the "iconify" fix below.)
5373
5374         * event-msw.c:
5375         * event-msw.c (mswindows_dequeue_dispatch_event):
5376         * event-msw.c (assert):
5377         * event-msw.c (emacs_mswindows_quit_p):
5378         * event-msw.c (debug_mswin_messages):
5379         * event-msw.c (debug_output_mswin_message):
5380         * event-msw.c (vars_of_event_mswindows):
5381         Fix yet more problems with C-g handling.
5382         Implement debug-mswindows-events.
5383         
5384 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5385
5386         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5387         
5388 2001-05-23  Ben Wing  <ben@xemacs.org>
5389
5390         * event-msw.c (winsock_writer):
5391         * event-msw.c (winsock_closer):
5392         prior kludgy code was clobbering the buffer, thinking it was
5393         "unused" space to store an unneeded return value; instead, use
5394         the variable we've already got staring us in the face.
5395
5396 2001-05-17  Andy Piper  <andy@xemacs.org>
5397
5398         * sysfile.h: don't assume that file attributes are boolean
5399
5400 2001-05-23  Ben Wing  <ben@xemacs.org>
5401
5402         * device-msw.c (msprinter_init_device):
5403         signal an error rather than crash with an unavailable network
5404         printer (from Mike Alexander).
5405         
5406         * event-msw.c:
5407         * event-msw.c (struct winsock_stream):
5408         * event-msw.c (winsock_writer):
5409         * event-msw.c (winsock_closer):
5410         * event-msw.c (make_winsock_stream_1):
5411         cleanup headers.  fix (hopefully) an error with data corruption
5412         when sending to a network connection.
5413
5414         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5415         to handle the ~user prefix by (a) always assuming we're referencing
5416         ourselves and not even verifying the user -- hence any file with
5417         a tilde as its first char is invalid! (b) if there wasn't a slash
5418         following the filename, the pointer was set *past* the end of
5419         file and we started reading from uninitialized memory.  Now we
5420         simply treat these as files, always.
5421
5422         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5423         
5424 2001-05-19  Ben Wing  <ben@xemacs.org>
5425
5426         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5427
5428         * process-nt.c:
5429         * process-nt.c (vars_of_process_nt):
5430         remove unused mswindows-quote-process-args.  rec for 21.4.
5431         
5432 2001-05-12  Ben Wing  <ben@xemacs.org>
5433
5434         * event-msw.c (mswindows_dde_callback):
5435         * event-msw.c (mswindows_wnd_proc):
5436         eliminate cygwin warnings.
5437
5438 2001-05-06  Ben Wing  <ben@xemacs.org>
5439
5440         * console-msw.h:
5441         * device-msw.c:
5442         * device-msw.c (print_dialog_worker):
5443         * device-msw.c (mswindows_handle_print_dialog_box):
5444         * device-msw.c (syms_of_device_mswindows):
5445         * dialog-msw.c (mswindows_make_dialog_box_internal):
5446         * general-slots.h:
5447         implement printing the selection when it's selected.
5448
5449 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
5450
5451         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5452
5453 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
5454
5455         * lisp.h (EMACS_INT_MAX): This should be one bit less since
5456         EMACS_INT is signed.
5457
5458 2001-04-15  Michael Lausch  <mla@1012surf.net>
5459
5460         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5461         gtk_widget_request_size() to give scrollbar >0 width for
5462         GTK >1.2.8.
5463
5464 2001-05-30  William M. Perry  <wmperry@gnu.org>
5465
5466         * event-gtk.c: Check for buttons as modifier keys.
5467
5468 2001-05-25  Craig Lanning  <CraigL@Knology.net>
5469
5470         * s\mingw32.h:
5471         Properly find MinGW's <process.h> inside Cygwin's restructured
5472         include directories.  Don't try to include <cygwin/version.h>
5473         since we are dropping support for MinGW in versions of Cygwin
5474         earlier than b21.
5475         * nt.c:
5476         Drop support for MinGW in versions of Cygwin before b21.
5477         * sysdep.c:
5478         Properly find MinGW's <process.h> inside Cygwin's restructured
5479         include directories.
5480         * syswindows.h:
5481         Drop support for MinGW in versions of Cygwin before b21.
5482         * unexcw.c:
5483         Even though a.out.h is no longer detected by configure, allow
5484         MinGW to use it until we figure out how to do the job with Win32.
5485
5486 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
5487
5488         * syntax.c (find_start_of_comment):
5489         Fix `unbalanced parentheses' bug when dealing with mixed comment
5490         styles in c++/java/etc. mode
5491
5492 2001-05-29  Mike Alexander  <mta@arbortext.com>
5493
5494         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5495         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5496
5497 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
5498
5499         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5500
5501 2001-03-31  Mike Sperber <mike@xemacs.org>
5502
5503         * search.c (Freplace_match): Support FSF-style specification of
5504         match subexpression when applied to a buffer.
5505
5506 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5507
5508         * event-stream.c (is_scrollbar_event): add missing semicolon
5509
5510 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
5511
5512         * Makefile.in.in: Use TAR macro instead of hardcoding
5513           tar.  Allows use of GNU tar instead of system tar
5514
5515 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5516
5517         * event-stream.c (is_scrollbar_event): add missing semicolon
5518
5519 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5520
5521         * XEmacs 21.4.3 "Academic Rigor" is released.
5522
5523 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5524
5525         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
5526
5527 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
5528
5529         * buffer.c (Vcase_fold_search): Remove obsolete
5530           comment about non ASCII case-fold-search.  This
5531           bug has been fixed by case-table changes.
5532
5533 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
5534
5535         * event-msw.c: Restore include of events-mod.h.
5536
5537 2001-04-22   zhaoway  <zw@debian.org>
5538
5539         * event-stream.c (is_scrollbar_event): Noop returning 0 if
5540         !HAVE_SCROLLBARS.
5541
5542 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
5543
5544         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
5545
5546 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
5547
5548         * mule-charset.c (Fmake_charset): Add missing else.
5549
5550 2001-04-23  Ben Wing  <ben@xemacs.org>
5551
5552         * event-msw.c (FAKE_MOD_QUIT):
5553         * event-msw.c (mswindows_dequeue_dispatch_event):
5554         * event-msw.c (mswindows_wnd_proc):
5555         * event-msw.c (emacs_mswindows_quit_p):
5556         Get critical quit working.
5557
5558 2001-05-05  Ben Wing  <ben@xemacs.org>
5559
5560         * console-msw.h:
5561         * device-msw.c:
5562         * device-msw.c (mswindows_get_default_margin):
5563         * frame-msw.c (mswindows_size_frame_internal):
5564         * frame-msw.c (msprinter_init_frame_1):
5565         * frame-msw.c (vars_of_frame_mswindows):
5566         Change top/bottom margin defaults to 0.5 inches.
5567
5568 2001-05-01  Martin Buchholz  <martin@xemacs.org>
5569
5570         Fix link error with gcc 3.0 on Linux.
5571         * terminfo.c (UP): Remove.
5572         * terminfo.c (BC): Remove.
5573         * terminfo.c (PC): Remove.
5574         They weren't used, and in any case, these symbols should be
5575         defined in the *library*.
5576
5577 2001-05-03  Martin Buchholz  <martin@xemacs.org>
5578
5579         * s/aix4.h: Fix crash with xlc -O3.
5580         Improve comment explaining how -O3 works.
5581
5582 2001-04-15  Ben Wing  <ben@xemacs.org>
5583
5584         * event-stream.c:
5585         * event-stream.c (Fnext_event):
5586         * event-stream.c (is_scrollbar_event):
5587         * event-stream.c (execute_command_event):
5588         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
5589         crash' problem.  His fix introduces other problems.  We filter
5590         out scrollbar events specifically, making them somewhat invisible
5591         to command-building, and not appearing in `this-command-keys'.
5592         More work is still needed (see comments in event-stream.c), but
5593         this fixes all the major problems.
5594
5595 2001-04-20  Ben Wing  <ben@xemacs.org>
5596
5597         * .cvsignore: Added stuff for Windows.
5598
5599 2001-04-28  Ben Wing  <ben@xemacs.org>
5600
5601         * buffer.c (Ferase_buffer):
5602         * editfns.c (buffer_insert1):
5603         * editfns.c (Finsert_before_markers):
5604         * editfns.c (Finsert_string):
5605         * editfns.c (Finsert_char):
5606         * editfns.c (Fdelete_region):
5607         * editfns.c (Fwiden):
5608         * editfns.c (Fnarrow_to_region):
5609         remove bogus lines setting zmacs_region_stays to 0.
5610         
5611 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5612
5613         * process-unix.c (unix_open_network_stream): If connect() fails
5614         invalidate file descriptor after closing it.
5615
5616 2001-03-08  Mike Alexander  <mta@arbortext.com>
5617
5618         * event-msw.c (mswindows_need_event_in_modal_loop):
5619         Don't dispatch a message if we didn't get one.
5620         (mswindows_need_event):
5621         Terminate the correct process when one exits instead of the first
5622         one on Vprocess_list and look for process termination when in
5623         mswindows_protect_modal_loop.
5624
5625 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
5626
5627         * XEmacs 21.4.1 "Copyleft" is released.
5628
5629 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5630
5631         * input-method-motif.c (XIM_delete_frame): New callback.
5632         (XIM_init_frame): Register it.
5633
5634 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
5635
5636         * XEmacs 21.4.0 "Solid Vapor" is released.
5637
5638 2001-04-15  Ben Wing  <ben@xemacs.org>
5639
5640         * cmdloop.c (call_command_loop):
5641         Fix braino in bit-rotting code.
5642         
5643 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
5644
5645         * extents.c (Fset_extent_endpoints): Force creation of extent info
5646         in buffer_or_string.
5647
5648         * extents.c (process_extents_for_insertion_mapper): Correctly
5649         check for open-open zero-length extents.
5650
5651 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
5652
5653         * lisp.h: New typedefs Memory_count, Element_count.
5654         * regex.c:
5655         * regex.h:
5656         Sign-compare warning elimination: several unsigned -> signed.
5657         Based on work by Ben Wing <ben@xemacs.org>.
5658
5659 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
5660
5661         * XEmacs 21.2.47 "Zephir" is released.
5662
5663 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
5664
5665         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
5666
5667 2001-04-03  Mike Sperber <mike@xemacs.org>
5668
5669         * search.c: Revert previous patch due because of release.
5670
5671 2001-03-30  Ben Wing  <ben@xemacs.org>
5672
5673         * s\cygwin32.h:
5674         Add missing killpg prototype.
5675
5676         * elhash.c:
5677         Add a comment about fixing problems when a new entry is added
5678         while mapping.
5679
5680         * frame-msw.c (mswindows_init_frame_1):
5681         Fix compile warnings.
5682
5683         * menubar.c (vars_of_menubar):
5684         Provide `menu-accelerator-support' to indicate that we properly
5685         support %_ in menu specifications, so that package code can
5686         conditionalize on this (and remove %_ from menu specifications
5687         on older versions).
5688
5689         * event-msw.c:
5690         * scrollbar-msw.c:
5691         * scrollbar-msw.c (can_scroll):
5692         * scrollbar-msw.h:
5693         Fix handling of mouse wheel under Windows to follow standards --
5694         now scrolls window under pointer, not selected window.
5695
5696 2001-03-31  Mike Sperber <mike@xemacs.org>
5697
5698         * search.c (Freplace_match): Support FSF-style specification of
5699         match subexpression when applied to a buffer.
5700
5701 2001-03-15  Martin Buchholz  <martin@xemacs.org>
5702
5703         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
5704         function to modify KEYMAP, so map over a copy of the hash table.
5705
5706 2001-03-21  Martin Buchholz <martin@xemacs.org>
5707
5708         * XEmacs 21.2.46 "Urania" is released.
5709
5710 2001-03-20  Dan Holmsand  <dan@eyebee.com>
5711
5712         * realpath.c (xrealpath): Make file-truename work with symlinks to
5713         /cygdrive paths on cygwin. Always lowercase drive-letters on
5714         native windows.
5715         (cygwin_readlink): Don't try to find canonical filename unless
5716         file exists.
5717
5718 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
5719
5720         * ChangeLog: Log GTK merge.
5721
5722         * dumper.c:
5723         * select-x.c:
5724         * specifier.c:
5725         * symeval.h:
5726         Revert gratuitous whitespace changes from GTK merge.
5727
5728         * emacs.c: Document end of complex #ifdef @ l. 1495.
5729
5730
5731 2001-03-12  Andy Piper  <andy@xemacs.org>
5732
5733         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
5734         have to do likewise.
5735
5736 2001-03-12  Andy Piper  <andy@xemacs.org>
5737
5738         * sysdep.c: we only support mingw now.
5739
5740 2001-03-09  Andy Piper  <andy@xemacs.org>
5741
5742         * unexcw.c (copy_executable_and_dump_data_section): making approx
5743         overrun a warning only.
5744
5745 2001-03-10  William M. Perry  <wmperry@aventail.com>
5746
5747         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
5748         satisfy Stephen's identical-after-cpp plea.
5749
5750 2001-03-02  Ben Wing  <ben@xemacs.org>
5751
5752         * cmds.c:
5753         * cmds.c (Fforward_char):
5754         * syntax.c:
5755         * window.c:
5756
5757         Augment documentation of the most common motion commands to make
5758         note of the shifted-motion support.
5759         
5760 2001-03-02  Ben Wing  <ben@xemacs.org>
5761
5762         * nt.c (mswindows_fstat):
5763         * nt.c (mswindows_stat):
5764         * search.c (boyer_moore):
5765         Fix compile warnings under Windows.
5766         
5767         * sysdep.c (sys_readdir):
5768         Fix buggy filename-conversion code under Mule.
5769
5770 2001-03-09  William M. Perry  <wmperry@aventail.com>
5771
5772         * Makefile.in.in:
5773         * config.h.in:
5774         * console.c:
5775         * console.h:
5776         * device.c:
5777         * device.h:
5778         * dragdrop.c:
5779         * emacs.c:
5780         * event-stream.c:
5781         * events.c:
5782         * events.h:
5783         * faces.c:
5784         * frame.h:
5785         * general-slots.h:
5786         * glyphs.c:
5787         * gutter.c:
5788         * inline.c:
5789         * lisp.h:
5790         * lrecord.h:
5791         * make-src-depend:
5792         * redisplay-output.c:
5793         * redisplay.c:
5794         * symsinit.h:
5795         * sysfile.h:
5796         * toolbar.c:
5797         * window.c:
5798         The Great GTK Merge.
5799
5800         * ChangeLog.GTK:
5801         * console-gtk.c:
5802         * console-gtk.h:
5803         * device-gtk.c:
5804         * emacs-marshals.c:
5805         * emacs-widget-accessors.c:
5806         * event-gtk.c:
5807         * frame-gtk.c:
5808         * gccache-gtk.c:
5809         * gccache-gtk.h:
5810         * glade.c:
5811         * glyphs-gtk.c:
5812         * glyphs-gtk.h:
5813         * gtk-glue.c:
5814         * gtk-xemacs.c:
5815         * gtk-xemacs.h:
5816         * gui-gtk.c:
5817         * gui-gtk.h:
5818         * menubar-gtk.c:
5819         * native-gtk-toolbar.c:
5820         * objects-gtk.c:
5821         * objects-gtk.h:
5822         * redisplay-gtk.c:
5823         * scrollbar-gtk.c:
5824         * scrollbar-gtk.h:
5825         * select-gtk.c:
5826         * toolbar-gtk.c:
5827         * ui-byhand.c:
5828         * ui-gtk.c:
5829         * ui-gtk.h:
5830         The Great GTK Merge: new files.
5831
5832 2001-02-26  Ben Wing  <ben@xemacs.org>
5833
5834         Reapplied Lstream change.
5835
5836 2001-02-26  Ben Wing  <ben@xemacs.org>
5837
5838         Undid the last change, since it is more controversial than I
5839         thought.  It should be back in at some point soon.
5840         
5841 2001-02-25  Ben Wing  <ben@xemacs.org>
5842
5843         * buffer.c:
5844         * callproc.c (Fold_call_process_internal):
5845         * event-msw.c (ntpipe_slurp_reader):
5846         * event-msw.c (ntpipe_shove_writer):
5847         * event-msw.c (winsock_reader):
5848         * event-msw.c (winsock_writer):
5849         * file-coding.c:
5850         * file-coding.c (detect_eol_type):
5851         * file-coding.c (detect_coding_type):
5852         * file-coding.c (determine_real_coding_system):
5853         * file-coding.c (Fdetect_coding_region):
5854         * file-coding.c (decoding_reader):
5855         * file-coding.c (decoding_writer):
5856         * file-coding.c (mule_decode):
5857         * file-coding.c (Fdecode_coding_region):
5858         * file-coding.c (encoding_reader):
5859         * file-coding.c (encoding_writer):
5860         * file-coding.c (mule_encode):
5861         * file-coding.c (Fencode_coding_region):
5862         * file-coding.c (detect_coding_sjis):
5863         * file-coding.c (decode_coding_sjis):
5864         * file-coding.c (encode_coding_sjis):
5865         * file-coding.c (detect_coding_big5):
5866         * file-coding.c (decode_coding_big5):
5867         * file-coding.c (encode_coding_big5):
5868         * file-coding.c (detect_coding_ucs4):
5869         * file-coding.c (decode_coding_ucs4):
5870         * file-coding.c (encode_coding_ucs4):
5871         * file-coding.c (detect_coding_utf8):
5872         * file-coding.c (decode_coding_utf8):
5873         * file-coding.c (encode_coding_utf8):
5874         * file-coding.c (detect_coding_iso2022):
5875         * file-coding.c (decode_coding_iso2022):
5876         * file-coding.c (encode_coding_iso2022):
5877         * file-coding.c (decode_coding_no_conversion):
5878         * file-coding.c (encode_coding_no_conversion):
5879         * glyphs-x.c (write_lisp_string_to_temp_file):
5880         * gpmevent.c (tty_get_foreign_selection):
5881         * lisp.h:
5882         * lstream.c:
5883         * lstream.c (Lstream_flush_out):
5884         * lstream.c (Lstream_adding):
5885         * lstream.c (Lstream_write_1):
5886         * lstream.c (Lstream_write):
5887         * lstream.c (Lstream_raw_read):
5888         * lstream.c (Lstream_read_more):
5889         * lstream.c (Lstream_read):
5890         * lstream.c (Lstream_unread):
5891         * lstream.c (Lstream_fputc):
5892         * lstream.c (stdio_reader):
5893         * lstream.c (stdio_writer):
5894         * lstream.c (filedesc_reader):
5895         * lstream.c (filedesc_writer):
5896         * lstream.c (lisp_string_reader):
5897         * lstream.c (struct fixed_buffer_stream):
5898         * lstream.c (make_fixed_buffer_input_stream):
5899         * lstream.c (make_fixed_buffer_output_stream):
5900         * lstream.c (fixed_buffer_reader):
5901         * lstream.c (fixed_buffer_writer):
5902         * lstream.c (struct resizing_buffer_stream):
5903         * lstream.c (resizing_buffer_writer):
5904         * lstream.c (dynarr_writer):
5905         * lstream.c (lisp_buffer_reader):
5906         * lstream.c (lisp_buffer_writer):
5907         * lstream.h:
5908         * lstream.h (lstream_implementation):
5909         * lstream.h (struct lstream):
5910         * md5.c (Fmd5):
5911         * process-nt.c (nt_send_process):
5912         * process-unix.c (unix_send_process):
5913         
5914         Correct Lstream lossage due to mixing of signed and unsigned
5915         quantities.  All Lstream uses of size_t and ssize_t are now a
5916         single signed data type Lstream_data_count.  This fixes problems
5917         under Windows with sending large quantities of data to a process,
5918         and may well fix other subtle bugs.
5919
5920 2001-02-23  Martin Buchholz <martin@xemacs.org>
5921
5922         * XEmacs 21.2.45 "Thelxepeia" is released.
5923
5924 2001-02-21  Martin Buchholz  <martin@xemacs.org>
5925
5926         * lisp-union.h (XSETINT): 
5927         (XSETCHAR):
5928         (XSETOBJ): 
5929         Reverse previous change of 2001-02-06.
5930
5931 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
5932
5933         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
5934         buffers.
5935         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
5936         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
5937         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
5938         * regex.c (POS_AS_IN_BUFFER): removed
5939         * regex.c (re_search_2):
5940         * regex.c (re_match_2):
5941         Don't use an offset of 1 when calculating buffer positions, since
5942         `BI_BUF_BEGV' does it already.
5943
5944 2001-02-18  Wim Dumon  <wim@easics.be>
5945
5946         * insdel.c (prepare_to_modify_buffer): Also check for
5947         supersession when clash-detection is enabled. 
5948
5949 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
5950
5951         * regex.c (re_match_2_internal):
5952         Convert temp characters from 'const unsigned char' to 're_char'.
5953         Fix crashing bug with extended characters under mule.
5954         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
5955         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
5956         font-lock, pdump, and new syntax-table code.
5957         * syntax.c (find_start_of_comment):
5958         (find_end_of_comment):
5959         (forward-comment):
5960         Fix crashing bugs involving moving beyond end of buffer.
5961         * syntax.c (find_start_of_comment):
5962         Fixed logic to allow proper detection of cases where the same
5963         character is used to end both a two-char comment start and a
5964         two-char comment end sequence. Fixes `(forward-comment -1)'.
5965         * syntax.c (find_start_of_comment):
5966         Return position just past last comment-end character for all cases
5967         (previously was only done for two-char comment-end sequences).
5968         * syntax.c (forward-comment):
5969         Take value returned from `find_end_of_comment', rather than
5970         incrementing it.
5971         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
5972         Properly deal with BUFFERP (syntax_cache.object)
5973
5974 2001-02-17  Martin Buchholz  <martin@xemacs.org>
5975
5976         * alloc.c (Fgarbage_collect): 
5977         * alloc.c (make_bit_vector_from_byte_vector):
5978         -Wsign-compare-correctness.
5979
5980 2001-02-16  Martin Buchholz  <martin@xemacs.org>
5981
5982         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
5983         (XSETCHAR): Likewise.
5984         (XSETOBJ): Likewise.
5985
5986 2001-02-15  Martin Buchholz  <martin@xemacs.org>
5987
5988         * mule-canna.c (canna-func-delete_previous): 
5989         Rename to canna-func-delete-previous.
5990
5991 2001-02-14  Martin Buchholz  <martin@xemacs.org>
5992
5993         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
5994
5995 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
5996
5997         * font-lock.c (find_context): Fix C++ compile errors introduced by
5998         recent patch
5999
6000 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6001
6002         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6003         pragma, but earlier ones barf on the same pragma.
6004
6005 2001-02-06  Mike Sperber <mike@xemacs.org>
6006
6007         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6008         `configure-mule-lisp-directory'.
6009
6010 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6011
6012         Make sure dump-id.c is compiled in the same way as other .c's.
6013         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6014         * dump-id.h: Remove.
6015         * emacs.c: Move dump-id.h into dumper.h.
6016         * dumper.h: Move dump-id.h into dumper.h.
6017         * Makefile.in.in:
6018         Use standard .c.o rule for building dump-id.o.
6019         Remove preprocessor flags from link command.
6020         Add dump-id.o to ${otherobjs} if PDUMP.
6021
6022 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6023
6024         Port FSF 20.7 syntax table improvements.
6025         * syntax.c.
6026         * syntax.h.
6027
6028         Fixups for new syntax table stuff.
6029         * dired.c: Include syntax.c.
6030         (Fdirectory_files): Initialize regex_match_object and
6031         regex_emacs_buffer.
6032         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6033         and Fget_char_property.
6034
6035         Use ported FSF 20.7 syntax table improvements.
6036         * font-lock.c.
6037         * regex.c.
6038         * search.c.
6039         
6040 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6041
6042         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6043         Unixware's enum boolean from sys/types.h.
6044
6045 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6046
6047         Fix support for building with latest Purify.
6048         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6049         (PURIFY_FLAGS): Likewise.
6050
6051 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6052
6053         * fileio.c (lisp_string_set_file_times): New.
6054         * fileio.c (Fcopy_file): Use it.
6055         Fixes bug:
6056         (copy-file filename non-ascii-filename t t)
6057         ==> No such file or directory, non-ascii-filename
6058
6059 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6060
6061         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6062         USHRT_MAX seems clearer than ~0 anyways.
6063
6064 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6065
6066         dumper improvements.  Inspired by Olivier.
6067         * dumper.c (pdump_max_align): New.
6068         * dumper.c (pdump_add_entry): Use pdump_max_align.
6069         * dumper.c (pdump_get_entry_list): Likewise.
6070         * dumper.c (pdump_scan_by_alignment): Likewise.
6071         Don't iterate through unnecessary alignments.
6072         * dumper.c (pdump_file_get): No need to align result of malloc().
6073         * dumper.c (pdump_mallocadr): Remove.  
6074         The result of malloc() is guaranteed to be maximally aligned.
6075         * dumper.c: s/elmt/elt/g;
6076         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6077         * dumper.c (pdump_alert_undump_object): Likewise.
6078         * dumper.c (pdump_align_table): 
6079         Don't support alignments > 64.
6080         Store ALIGNOF's, not shift counts, in table.
6081
6082 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6083
6084         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6085         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6086         * systime.h: Use HAVE_UTIME.
6087         * sysdep.c (struct utimbuf): Remove.
6088         * sysdep.c (set_file_times): Prefer utime() to utimes().
6089         * config.h.in (HAVE_UTIME): New.
6090         * config.h.in (HAVE_UTIME_H): Remove.
6091         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6092
6093 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6094
6095         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6096
6097 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6098
6099         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6100
6101 2001-02-08  Martin Buchholz <martin@xemacs.org>
6102
6103         * XEmacs 21.2.44 "Thalia" is released.
6104
6105 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6106
6107         Fixes crashes in kill-emacs on some systems.
6108         * process-unix.c (unix_kill_child_process):
6109         It's OK for kill() to fail with ESRCH.
6110
6111 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6112
6113         Contortions to make .gdbinit tricks work on most systems.
6114         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6115         * alloc.c (dbg_valmask): Make non-const.
6116         * alloc.c (dbg_typemask): Make non-const.
6117         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6118         * alloc.c (dbg_valbits): Make non-const.
6119         * alloc.c (dbg_gctypebits): Make non-const.
6120         * .gdbinit (decode_object): Make it work with AIX cc.
6121
6122 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6123
6124         * elhash.c (make_general_lisp_hash_table):
6125         Use simpler and more efficient calloc to clear entries.
6126
6127 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6128
6129         * window.c (window_scroll): Work around an AIX C compiler bug.
6130         Fixes 'scroll-up' does nothing problem with xlC.
6131
6132 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6133
6134         * .gdbinit: Remove obsolete comment.
6135
6136 2001-01-31  Mike Alexander  <mta@arbortext.com>
6137
6138         * select.c (Fown_selection_internal): Set owned_p for device
6139         method correctly.
6140
6141 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6142
6143         Port to g++ 2.97.
6144         "not" cannot be used as a macro name as it is an operator in C++
6145         * config.h.in: Stop #defining `not'.
6146         * chartab.c (check_category_char): not ==> not_p
6147         * chartab.h: Likewise.
6148         * regex.c (re_match_2_internal): Likewise.
6149
6150 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6151
6152         * lisp-disunion.h: Fix up comments.
6153
6154 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6155
6156         * keymap.c (define_key_check_and_coerce_keysym):
6157         (syms_of_keymap):
6158         Support mouse-6 and mouse-7 bindings in the obvious way.
6159
6160 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6161
6162         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6163
6164 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6165
6166         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6167         Previous patch missed DEFVAR_INT_MAGIC.
6168         Make sure future DEFVAR_foo use correct types.
6169         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6170         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6171         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6172         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6173         * (DEFVAR_INT): Likewise.
6174         * redisplay.c (vertical_clip): Should be of type Fixnum.
6175         * redisplay.c (horizontal_clip): Likewise.
6176         * lisp.h (dump_add_opaque_int): New.
6177         (dump_add_opaque_fixnum): New.
6178
6179 2001-01-29  Andy Piper  <andy@xemacs.org>
6180
6181         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6182         since they can be eval'ed
6183
6184 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6185
6186         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6187         Oops, XEmacs redefines `class'.  Use `typename' instead.
6188
6189 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6190
6191         * dumper.c: Fix C++ compile errors.
6192
6193 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6194
6195         * tparam.c: Use correct prototypes.
6196
6197 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6198
6199         * sysproc.h: #include util.h for NetBSD's openpty.
6200
6201 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6202
6203         More 64-bit correctness.
6204         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6205         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6206         Fix up comments.
6207         This finally finishes the 64-bit SGI port.
6208         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6209         * symbols.c: Fix up comments and type casts.
6210         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6211         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6212         * symeval.h (Fixnum): New type.
6213         * symeval.h (symbol_value_type): Fix up comment.
6214
6215         * commands.h:
6216         * nt.c:
6217         * emacs.c:
6218         * data.c:
6219         * redisplay.c:
6220         * abbrev.c:
6221         * dired-msw.c:
6222         * event-Xt.c:
6223         * eldap.c:
6224         * window.c:
6225         * sound.c:
6226         * event-stream.c:
6227         * eval.c:
6228         * buffer.c:
6229         * mule-canna.c: A million DEFVAR_INTs here...
6230         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6231         * extents.c:
6232         * cmdloop.c:
6233         * lisp.h:
6234         * select-x.c:
6235         * console-x.h:
6236         * event-msw.c:
6237         * mule-wnnfns.c:
6238         * hpplay.c:
6239         * ralloc.c:
6240         * alloc.c:
6241         * keymap.c:
6242         * profile.c:
6243         s/int/Fixnum/g in DEFVAR_INT declarations.
6244
6245 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6246
6247         Port pdump to SGI alignment-sensitive environment.
6248         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6249         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6250         properly aligned.
6251         Define and use aligned reading and writing macros.
6252         Use buffered stdio instead of posix i/o for faster dumping.
6253         Eliminate kludgy 256 byte space for header.
6254         Read and write from dump file using structs for alignment safety.
6255         * dumper.c (pdump_align_stream): New.
6256         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6257         * dumper.c (PDUMP_READ_ALIGNED): New.
6258         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6259         * dumper.c (pdump_static_Lisp_Object): New struct.
6260         * dumper.c (pdump_static_pointer): New struct.
6261         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6262         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6263         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6264         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6265
6266         * dumper.c (pdump_backtrace):
6267         * dumper.c (pdump_get_indirect_count):
6268         * dumper.c (pdump_register_object):
6269         * dumper.c (pdump_register_struct):
6270         * dumper.c (pdump_reloc_one):
6271         * dumper.c (pdump_scan_by_alignment):
6272         * dumper.c (pdump_dump_from_root_struct_ptrs):
6273         * dumper.c (pdump_dump_opaques):
6274         * dumper.c (pdump_dump_rtables):
6275         * dumper.c (pdump_dump_from_root_objects):
6276         * dumper.c (pdump):
6277         * dumper.c (pdump_load_finish):
6278         Use aligned reading and writing.
6279
6280         * dumper.c (pdump_free): Make static.
6281         * dumper.c (pdump_hFile): Likewise.
6282         * dumper.c (pdump_hMap): Likewise.
6283
6284 2001-01-26  Martin Buchholz <martin@xemacs.org>
6285
6286         * XEmacs 21.2.43 "Terspichore" is released.
6287
6288 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6289
6290         Type fiddling for window_config.saved_windows_count
6291         * window.c (struct window_config): 
6292         Make saved_windows_count member unsigned.
6293         * window.c (sizeof_window_config_for_n_windows): 
6294         Make parameter unsigned.
6295         * window.c (mark_window_config):
6296         * window.c (window_config_equal):
6297         * window.c (free_window_configuration):
6298         * window.c (Fset_window_configuration):
6299         * window.c (count_windows):
6300         * window.c (Fcurrent_window_configuration):
6301         * window.c (reinit_vars_of_window):
6302         Update all callers and users.
6303
6304 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6305
6306         Alignment correctness for flexible arrays.
6307         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6308         Make alignment-correct. Add interesting comments.
6309         * alloc.c (size_vector):
6310         * alloc.c (make_vector_internal):
6311         * alloc.c (make_bit_vector_internal):
6312         * alloc.c (sweep_bit_vectors_1):
6313         * fns.c (size_bit_vector):
6314         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6315         * window.c (sizeof_window_config_for_n_windows): 
6316         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6317
6318 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6319
6320         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6321
6322 2001-01-23  Andy Piper  <andy@xemacs.org>
6323
6324         * select.c (Fown_selection_internal): pass owned_p
6325
6326         * select-msw.c (mswindows_own_selection): New Signature.
6327
6328         * console.h (struct console_methods): add owned_p to
6329         _own_selection.
6330
6331         * select-x.c (x_own_selection): pass owned_p
6332         (hack_motif_clipboard_selection): use owned_p
6333         (vars_of_select_x): new variable -
6334         x_selection_strict_motif_ownership.
6335
6336 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6337
6338         * specifier.h (specifier_data_offset): Remove pointless parens.
6339         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6340
6341 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6342
6343         Make Lisp_Object sizeof methods be alignment-correct.
6344         pdump must restore objects to the same alignment as the C compiler
6345         assumes.  It really matters on SGIs.
6346         * lstream.c (aligned_sizeof_lstream): New.
6347         (sizeof_lstream): Use aligned_sizeof_lstream.
6348         (Lstream_new): Likewise.
6349         * opaque.c (aligned_sizeof_opaque): New.
6350         (sizeof_opaque): Use aligned_sizeof_opaque.
6351         (make_opaque): Likewise.
6352         * specifier.c (aligned_sizeof_specifier): New.
6353         (sizeof_specifier): Use aligned_sizeof_specifier.
6354         (make_specifier_internal): Likewise.
6355
6356 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6357
6358         * lstream.h (struct lstream): Use max_align_t for trailing data.
6359         * specifier.h (struct Lisp_Specifier): Likewise.
6360
6361 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6362
6363         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6364         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6365         (CCL_SUSPEND): Likewise.
6366         (CCL_INVALID_CMD): Likewise.
6367         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6368         (ccl_driver): Likewise.
6369         (CCL_WRITE_CHAR): Macro hygiene.
6370         (CCL_WRITE_STRING): Macro hygiene.
6371
6372 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6373
6374         Port "portable" dumper to SunOS 4 and HP-UX.
6375         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6376         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6377         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6378
6379 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6380
6381         * lisp.h (ALIGNOF): A better definition for C++.
6382
6383 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6384
6385         Macro hygiene.
6386         Fix printf warnings: int format, long int arg.
6387         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6388         (PUSH_FAILURE_POINT): Use correct printf formats.
6389         (POP_FAILURE_POINT): Use correct printf formats.  
6390         Use do {...} while (0)
6391
6392 2001-01-20  Martin Buchholz <martin@xemacs.org>
6393
6394         * XEmacs 21.2.42 "Poseidon" is released.
6395
6396 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6397
6398         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6399
6400 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6401
6402         De-kludgify FIXED_TYPE free list frobbing.
6403         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6404         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6405         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6406         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6407         * alloc.c (LRECORD_FREE_P): New.
6408         * alloc.c (MARK_LRECORD_AS_FREE): New.
6409         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6410         * alloc.c (STRUCT_FREE_P): Deleted.
6411         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6412         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6413         * alloc.c (STRING_CHARS_FREE_P): New.
6414         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6415         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6416         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6417         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6418         * alloc.c (resize_string): Use new definitions.
6419         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6420         * alloc.c (verify_string_chars_integrity): Use new definitions.
6421         * alloc.c (compact_string_chars): Use new definitions.
6422         * alloc.c: Update monster comments.
6423         * lrecord.h (lrecord_type): Add some new lrecord types for
6424         alloc.c's use.
6425
6426 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6427
6428         Improve alignment hackery.
6429         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6430         (max_align_t): Moved from opaque.h - general purpose.
6431         (ALIGN_PTR): Use size_t, not long.
6432         * opaque.h (max_align_t): Move to lisp.h.
6433
6434 2001-01-18  Norbert Koch  <nk@LF.net>
6435
6436         * gui.h: Fix and add prototypes to fix build problems.
6437
6438 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6439
6440         temacs is going away, so `dump-temacs' is now a bad name.
6441         * .dbxrc (dump-temacs): Rename to `dmp'.
6442         * .gdbinit (dump-temacs): Rename to `dmp'.
6443
6444 2001-01-17  Andy Piper  <andy@xemacs.org>
6445
6446         * glyphs.c (print_image_instance): comment to make martin happy.
6447
6448         * glyphs-x.c (x_redisplay_widget): update faces after a frame
6449         change.
6450
6451         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6452         activation.
6453         (mswindows_tab_control_redisplay): warning suppression.
6454
6455         * glyphs-widget.c (widget_update): re-write to cope with updated
6456         items.
6457         (widget_instantiate): use new gui_item functions.
6458         (tab_control_update): deleted.
6459         (progress_gauge_update): deleted.
6460         (image_instantiator_progress_guage): take out update reference.
6461         (image_instantiator_tree_view): ditto.
6462         (image_instantiator_tab_control): ditto.
6463
6464         * gui.c (widget_gui_parse_item_keywords): new function. Do things
6465         Right the new way.
6466         (gui_item_add_keyval_pair): re-write to cope with descriptors and
6467         return whether anything was changed.
6468         (update_gui_item_keywords): as it sounds.
6469
6470         * gui.h: declare widget_gui_parse_item_keywords.
6471
6472         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6473         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6474
6475 2001-01-17  Martin Buchholz <martin@xemacs.org>
6476
6477         * XEmacs 21.2.41 "Polyhymnia" is released.
6478
6479 2001-01-16  Didier Verna  <didier@xemacs.org>
6480
6481         * glyphs.c (image_instantiate): don't use fallbacks when
6482         instantiating a face's background pixmap by inheritance.
6483
6484 2001-01-14  Mike Sperber <mike@xemacs.org>
6485
6486         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6487         Conditionalize accordingly.
6488
6489 2001-01-16  Martin Buchholz  <martin@xemacs.org>
6490
6491         * dumper.c (pdump_file_get): Fix a compiler warning.
6492
6493 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6494
6495         Make Purify happy when pdumping.
6496         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6497         iniitalizing all bits of new lisp object memory.
6498         * symbols.c (Fmake_local_variable): Likewise.
6499         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6500         * symbols.c (Fdefvaralias): Likewise.
6501         * mule-charset.c (vars_of_mule_charset): Likewise.
6502
6503 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6504         Add the `-nd' flag when running pre-dump operations under the debugger.
6505         * .dbxrc (run-temacs): Add `-nd'.
6506         * .dbxrc (update-elc): Likewise.
6507         * .dbxrc (dump-temacs): Likewise.
6508         * .gdbinit (run-temacs): Likewise.
6509         * .gdbinit (check-temacs): Likewise.
6510         * .gdbinit (update-elc): Likewise.
6511         * .gdbinit (dump-temacs): Likewise.
6512
6513 2001-01-14  Martin Buchholz  <martin@xemacs.org>
6514
6515         Allow building 64-bit executables on AIX with GNU malloc, e.g.
6516         export OBJECT_MODE=64
6517         configure --pdump --use-union-type=no
6518         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
6519         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
6520
6521         * miscplay.c (sndcnv8U_2mono):
6522         Avoid two uses of `++' in the same expression.
6523         Suppresses a GCC warning.
6524
6525 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6526
6527         Make sure future compilers don't miscompile alloc.c.
6528         * alloc.c:
6529         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
6530         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
6531
6532 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6533
6534         * dumper.c: A little post-pdump-rename comment fixup.
6535
6536 2001-01-09  Jerry James  <james@eecs.ku.edu>
6537
6538         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
6539
6540 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6541
6542         * *.[ch]: Globally rename symbols using the following `pdump-rename'
6543         script:
6544         #!/bin/sh
6545         replace_symbol () {
6546           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
6547         }
6548
6549         replace_symbol pdump_wire_lists pdump_weak_object_chains
6550         replace_symbol pdump_wire_list dump_add_weak_object_chain
6551
6552         replace_symbol pdump_wires pdump_root_objects
6553         replace_symbol pdump_wire dump_add_root_object
6554
6555         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
6556         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
6557
6558         replace_symbol dumpstructinfos pdump_root_struct_ptrs
6559         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
6560         replace_symbol dumpstructinfo pdump_root_struct_ptr
6561         replace_symbol dumpstruct dump_add_root_struct_ptr
6562
6563         replace_symbol dumpopaque dump_add_opaque
6564         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
6565         replace_symbol dumpopaqueinfos pdump_opaques
6566         replace_symbol dumpopaqueinfo pdump_opaque
6567
6568         replace_symbol nb_structdump nb_root_struct_ptrs
6569         replace_symbol nb_opaquedump nb_opaques
6570
6571         replace_symbol align_table pdump_align_table
6572         replace_symbol dump_header pdump_header
6573
6574         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
6575         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
6576
6577
6578 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6579
6580         * s/aix4.h: Keep the C for AIX compiler from overaggressively
6581         optimizing bytecount_to_charcount().
6582
6583 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
6584
6585         * config.h.in:
6586         (HAVE_DLFCN_H): Removed.
6587         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
6588
6589 2001-01-06  Martin Buchholz  <martin@xemacs.org>
6590
6591         Portable dumper maintainability improvements.
6592         * alloc.c (staticpro):
6593         * alloc.c (staticpro_nodump):
6594         * alloc.c (garbage_collect_1):
6595         * alloc.c (reinit_alloc_once_early):
6596         * alloc.c (init_alloc_once_early):
6597         * alloc.c: Move dumper functions to alloc.c.
6598         * dumper.c (pdump_backtrace):
6599         * dumper.c (pdump_dump_structs):
6600         * dumper.c (pdump_dump_opaques):
6601         * dumper.c (pdump_dump_rtables):
6602         * dumper.c (pdump_dump_wired):
6603         * dumper.c (pdump):
6604         * dumper.c (pdump_load_check):
6605         * dumper.c (pdump_load_finish):
6606         * dumper.c (pdump_file_unmap):
6607         * dumper.c (pdump_file_get):
6608         * dumper.c (pdump_resource_free):
6609         * dumper.c (pdump_resource_get):
6610         * dumper.c (pdump_file_free):
6611         * dumper.c (pdump_file_try):
6612         * dumper.c (pdump_load):
6613         Remove fixed size limits on staticpro(), staticpro_nodump(),
6614         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
6615         Remove custom code for dumping lrecord_implementations_table - use
6616         dumpopaque instead.
6617         Remove (most of the) custom code for dumping staticpros - dump it
6618         like any other dynarr.
6619
6620         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
6621         * dumper.c: Moved functions from alloc.c.
6622         * alloc.c (dumpstruct): Moved to dumper.c.
6623         * alloc.c (dumpopaque): Likewise.
6624         * alloc.c (pdump_wire): Likewise.
6625         * alloc.c (pdump_wire_list): Likewise.
6626
6627         * lisp.h (Dynarr_sizeof): New.
6628         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
6629         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
6630         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
6631
6632         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
6633         * lisp.h (dumpopaque): ditto.
6634         * lisp.h (pdump_wire): ditto.
6635         * lisp.h (pdump_wire_list): ditto.
6636
6637 2001-01-09  Martin Buchholz  <martin@xemacs.org>
6638
6639         * make-src-depend (PrintPatternDeps):
6640         Use `sort' to make output independent of perl version.
6641
6642 2001-01-08  Martin Buchholz  <martin@xemacs.org>
6643
6644         Port to Netbsd 1.5.
6645         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
6646         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
6647
6648 2001-01-03  Didier Verna  <didier@xemacs.org>
6649
6650         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
6651         that `focus_frame' is alive before thinking of calling
6652         `redisplay_redraw_cursor' on it.
6653
6654 2001-01-08  Martin Buchholz <martin@xemacs.org>
6655
6656         * XEmacs 21.2.40 is released.
6657
6658 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
6659
6660         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
6661
6662 2001-01-06  Martin Buchholz  <martin@xemacs.org>
6663
6664         * alloc.c (dbg_valmask): Make const.
6665         * alloc.c (dbg_typemask): Make const.
6666         * alloc.c (dbg_USE_UNION_TYPE): Make const.
6667         * alloc.c (dbg_valbits): Make const.
6668         * alloc.c (dbg_gctypebits): Make const.
6669
6670 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
6671
6672         * redisplay-x.c (x_bevel_area):
6673         redisplay.h (struct rune):
6674         Typo fixes in comments.
6675
6676 2001-01-05  Andy Piper  <andy@xemacs.org>
6677
6678         * glyphs-x.c (x_redisplay_widget): use size changed for offset
6679         adjustment.
6680
6681         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
6682
6683 2001-01-05  Martin Buchholz  <martin@xemacs.org>
6684
6685         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
6686
6687         * mule-ccl.c (stack_idx_of_map_multiple):
6688         Non const global data must not be initialized!
6689         Found by MIYASHITA Hisashi.
6690
6691 2001-01-02  Andy Piper  <andy@xemacs.org>
6692
6693         * frame.c (change_frame_size): make sure frame size is always
6694         marked as changed.
6695
6696         * glyphs.c (image_instance_layout): minor code reuse.
6697
6698         * window.c (Fcurrent_window_configuration): revert previous
6699         change.
6700
6701 2001-01-02  Martin Buchholz  <martin@xemacs.org>
6702
6703         * glyphs.h:
6704         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
6705
6706 2000-12-31  Andy Piper  <andy@xemacs.org>
6707
6708         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
6709         when widget gets unmapped.
6710
6711         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
6712         function. Make sure widgets losing focus don't just drop it.
6713         (handle_focus_event_1): record the widget with focus.
6714
6715 2000-12-31  Andy Piper  <andy@xemacs.org>
6716
6717         * window.c (allocate_window): use
6718         make_image_instance_cache_hash_table.
6719         (make_dummy_parent): ditto.
6720         (Fset_window_configuration): ditto.
6721
6722         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
6723
6724         * glyphs.c (process_image_string_instantiator): use
6725         INSTANTIATOR_TYPE.
6726         (get_image_instantiator_governing_domain): ditto.
6727         (normalize_image_instantiator): ditto.
6728         (instantiate_image_instantiator): ditto.
6729         (make_image_instance_1): ditto.
6730         (image_instantiate): ditto. Key on glyph *and* instantiator type.
6731         (instantiator_eq_equal): new function for use with instance hash
6732         tables.
6733         (instantiator_eq_hash): ditto.
6734         (make_image_instance_cache_hash_table): create a suitable hash
6735         table for storing image instances.
6736
6737         * elhash.h (hash_table_weakness): new internal weakness type
6738         HASH_TABLE_KEY_CAR_VALUE_WEAK.
6739         declare new functions.
6740
6741         * elhash.c (finish_marking_weak_hash_tables): introduce yet
6742         another weakness type for glyphs.
6743         (make_standard_lisp_hash_table): new function split out from
6744         make_general_lisp_hash_table.
6745         (make_lisp_hash_table): call make_standard_lisp_hash_table.
6746         (hash_table_instantiate): ditto.
6747         (Fmake_hash_table): ditto.
6748
6749 2000-12-31  Martin Buchholz <martin@xemacs.org>
6750
6751         * XEmacs 21.2.39 is released.
6752
6753 2000-12-29  Andy Piper  <andy@xemacs.org>
6754
6755         * menubar.c (menubar_visible_p_changed): signal the frame changed.
6756
6757         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
6758         the frame has changed so that we pick up geometry changes such as
6759         menubar visibility.
6760
6761 2000-12-28  Andy Piper  <andy@xemacs.org>
6762
6763         * lastfile.c (my_ebss): make a char array so we can pad the
6764         bss. Fixes cygwin unexec.
6765
6766         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
6767
6768 2000-12-26  Andy Piper  <andy@xemacs.org>
6769
6770         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
6771         comments and try and be more precise about a non-/SIGIO world.
6772         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
6773         SIGIO.
6774
6775         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
6776         we don't normalize to zero width or height.
6777
6778 2000-12-24  Andy Piper  <andy@xemacs.org>
6779
6780         * Makefile.in.in (ldflags): add -mwindows when appropriate.
6781
6782 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
6783
6784         * s/sco5.h: SCO 5 has pty support.
6785
6786 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
6787
6788         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
6789         input-method-xlib.c contains whole contents of input-method-xfs.c,
6790         so we can use input-method-xlib.c's code for USE_XFONTSET
6791         using #ifdefs.
6792         * input-method-xfs.c: removed.
6793
6794 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
6795
6796         * file-coding.h (enum coding_category_type): reorder enumerators to
6797         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
6798         (now one greater than largest real coding_category_type enumerator).
6799         * file-coding.c (coding_category_symbol, coding_category_by_priority,
6800         coding_category_system, fcd_descriptihon_1, decode_coding_category,
6801         Fcoding_category_list, Fset_coding_priority_list,
6802         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
6803         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
6804
6805 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
6806
6807         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
6808         * redisplay-output.c (redisplay_output_window): Clear top of window
6809         when face is changed.
6810         * redisplay-x.c (x_redraw_exposed_window): Call
6811         redisplay_clear_top_of_window.
6812         * redisplay.h: Publish redisplay_clear_top_of_window.
6813
6814 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
6815
6816         * buffer.c (Fkill_buffer): Map over all devices.
6817         * window.c (window_loop): Remove UNSHOW_BUFFER code.
6818         (list_windows): New function.
6819         (list_all_windows): Ditto.
6820         (Freplace_buffer_in_windows): Use them.
6821
6822 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
6823
6824         * database.c (berkdb_subtype): Recognize new subtype `queue'.
6825         (Fopen_database): Use `db_create' instead of `db_open'.
6826         (syms_of_database): Initialize Qqueue.
6827
6828 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
6829
6830         * buffer.c (common_init_complex_vars_of_buffer): Initialize
6831         buffer_local_face_property.
6832         * buffer.h (struct buffer): New member buffer_local_face_property.
6833         * window.c (Fset_window_buffer):  Mark window's face as changed
6834         when buffer has buffer local face.
6835         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
6836         * objects.c (color_after_change): Set buffer_local_face_property
6837         when locale of face specifier is buffer.
6838         * objects.c (font_after_change): Ditto.
6839         * objects.c (face_boolean_after_change): Ditto.
6840         * glyphs.c (image_after_change): Ditto.
6841
6842 2000-12-09  Dan Holmsand  <dan@eyebee.com>
6843
6844         * nt.c (mswindows_fstat): Report file permissions, volume serial
6845         number, etc. Code adapted from FSF Emacs 20.7.
6846
6847 2000-12-09  Dan Holmsand  <dan@eyebee.com>
6848
6849         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
6850         of stat when we don't have symbolic links, to make sure
6851         mswindows_stat is called on mswindows.
6852
6853 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6854
6855         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
6856
6857 2000-12-12  Martin Buchholz  <martin@xemacs.org>
6858
6859         * doprnt.c (emacs_doprnt_1): More printing fixes.
6860         Make printing of numbers compatible with libc and FSF Emacs.
6861         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
6862         Use the system printf to do most of the hard work of formatting,
6863         instead of doprnt_1().
6864         Calculate memory to allocate for format string.
6865         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
6866         (doprnt_1): Cleaner code and documentation.
6867
6868 2000-12-01  Jerry James  <james@eecs.ukans.edu>
6869
6870         * Makefile.in.in: Use the loop variable to install headers.
6871
6872 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
6873
6874         * window.c (Fsplit_window): Don't invalidate face cache.
6875
6876 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
6877
6878         * minibuf.c (Fall_completions): Undo the previous change
6879         which removed checking elements start with space.
6880
6881 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
6882
6883         * mule-canna.c: Didier suppression.
6884
6885 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
6886
6887         * mule-canna.c: rename static unsigned char buf[] to key_buffer
6888         (warning suppression).  Add English comment translations.
6889
6890 2000-12-05  Martin Buchholz  <martin@xemacs.org>
6891
6892         * unexelfsgi.c (unexec): Better test for mmap failure.
6893
6894 2000-12-05  Martin Buchholz <martin@xemacs.org>
6895
6896         * XEmacs 21.2.38 is released.
6897
6898 2000-12-05  Martin Buchholz  <martin@xemacs.org>
6899
6900         * redisplay.c (bar-cursor): Make a user variable.
6901
6902         * symsinit.h: Add init_postgresql_from_environment.
6903
6904 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
6905
6906         * regex.c: Convert to clean C.
6907
6908 2000-12-05  Dan Holmsand  <dan@eyebee.com>
6909
6910         * realpath.c:
6911         Don't #include sysfile.h. Revert to duplicating PATH_MAX
6912         initialization.
6913         (sys_readlink): renamed to system_readlink to avoid conflict with
6914         the other sys_readlink.
6915
6916 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
6917
6918         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
6919
6920 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
6921
6922         * postgresql.c (init_postgresql_from_environment): new function.
6923         (vars_of_postgresql): Move code initializing Lisp variables out and
6924         into init_postgresql_from_environment.
6925         emacs.c (main_1): Call init_postgresql_from_environment if and only
6926         if running a dumped XEmacs.
6927
6928 2000-08-31  Dan Holmsand  <dan@eyebee.com>
6929
6930         * buffer.c: Make find-file-compare-truenames default to true on
6931         windows.
6932
6933         * realpath.c (win32_abs_start):
6934         (cygwin_readlink):
6935         (win32_readlink): New functions.
6936         (xrealpath): Return really real filenames on windows.
6937
6938         * fileio.c (Ffile_truename): Make file-truename work on windows.
6939
6940 2000-11-29  Didier Verna  <didier@xemacs.org>
6941
6942         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
6943         * faces.c (update_face_cachel_data): use it.
6944         * faces.c (add_face_cachel): use it. Complete background pixmap
6945         frobbing in face cache if `update_face_cachel_data' has not done so.
6946
6947 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
6948
6949         * search.c (string_match_1): Don't set last_thing_searched
6950         when search failed.
6951
6952 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
6953
6954         * buffer.c: Include casetab.h
6955         (common_init_complex_vars_of_buffer): Use new case-table object.
6956         * buffer.h: Include casetab.h
6957         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
6958         (DOWNCASE_TABLE_OF): Ditto.
6959         * bufslots.h: Remove char-tables and add case-table.
6960         * casetab.c: Include casetab.h
6961         (CASE_TABLE_P): Removed.
6962         (mark_case_table): New function.
6963         (allocate_case_table): New function.
6964         (Fcase_table_p): Use new case-table.
6965         (case_table_char): New function.
6966         (Fget_case_table): Ditto.
6967         (Fput_case_table): Ditto.
6968         (Fput_case_table_pair): Ditto.
6969         (Fcopy_case_table): Ditto.
6970         (Fcurrent_case_table): Return case-table.
6971         (Fstandard_case_table): Return case-table.
6972         (Fset_case_table): Fix doc-string.
6973         (set_case_table): Use case-table
6974         (syms_of_casetab): DEFSUBR new functions.
6975         (complex_vars_of_casetab): Set up standard case-table.
6976         * casetab.h: New file.
6977         * editfns.c: Include casetab.h
6978         (Fcompare_buffer_substrings): Use case-table.
6979         * inline.c: Include casetab.h
6980         * lisp.h: Remove bogus extern.
6981         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
6982         * search.c: Include casetab.h
6983         (TRANSLATE_ASCII): Removed.
6984         (TRANSLATE): Unconditionally translate character.
6985         (looking_at_1): Use case-table.
6986         (string_match_1): Ditto.
6987         (fast_string_match): Ditto.
6988         (search_command): Ditto.
6989         (search_buffer): Separate boyer_moore.  Check whether
6990         boyer_moore is possible.
6991         (simple_search): New function.
6992         (boyer_moore): Separated from search_buffer. Translate char.
6993
6994 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
6995
6996         * regex.c (RE_TR_ASCII): Removed.
6997         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
6998         (PATFETCH): Call PATFETCH_RAW.
6999         (PATFETCH_RAW): Fetch Emchar.
7000         (PATUNFETCH): Decrement charptr.
7001         (GET_BUFFER_SPACE): Rename b to buf_end.
7002         (BUF_PUSH): Ditto.
7003         (BUF_PUSH_2): Ditto.
7004         (BUF_PUSH_3): Ditto.
7005         (EXTEND_BUFFER): Ditto.
7006         (SET_LIST_BIT): Ditto.
7007         (regex_compile): Ditto.  Translate non ASCII char.
7008         (compile_range): Ditto.
7009         (re_search_2): Ditto.
7010         (re_match_2_internal): Compare Emchar.
7011         (bcmp_translate): Ditto.
7012
7013 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7014
7015         * lisp.h (basic char/int typedefs):  comment improvement.
7016
7017 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7018
7019         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7020         unstomp inhibit_site_lisp.  Improve comments.
7021
7022 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7023
7024         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7025
7026 2000-11-28  Andy Piper  <andy@xemacs.org>
7027
7028         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7029         clipped display for windows in the gutter also.
7030         (redisplay_display_boxes_in_window_p): change semantics of return
7031         codes to be more intuitive.
7032
7033         * gutter.h: declare display_boxes_in_gutter_p.
7034
7035         * gutter.c (display_boxes_in_gutter_p): new function for
7036         redisplay.
7037
7038 2000-11-22  Andy Piper  <andy@xemacs.org>
7039
7040         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7041         autodetect domain.
7042
7043 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7044
7045         * callproc.c (Fold_call_process_internal):
7046         * gpm.c (Freceive_gpm_event):
7047         (tty_get_foreign_selection): Might be just warning supression.
7048         * fileio.c (Fwrite_region_internal):
7049         (Fset_visited_file_modtime):
7050         * keymap.c (event_matches_key_specifier_p):
7051         Initialize GCPROed variable.
7052
7053         * menubar-x.c (command_builder_find_menu_accelerator):
7054         Initialize before use.
7055
7056 2000-11-23  Andy Piper  <andy@xemacs.org>
7057
7058         * unexcw.c (unexec): make the resulting executable executable.
7059
7060 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7061
7062         * doc.c (get_doc_string):
7063         Use size_t, not int, for result of XSTRING_LENGTH.
7064
7065         * cmds.c (Fdelete_char):
7066         * cmds.c (Fpoint_at_eol):
7067         * cmds.c (Fself_insert_command):
7068         Use EMACS_INT, not int, for result of XINT.
7069         Someday, someone will want to insert more than 2**31 identical characters.
7070
7071         * cmds.c (Fdelete_char):
7072         * cmds.c (Fdelete_backward_char):
7073         * syntax.c (Fforward_word):
7074         * syntax.c (Fforward_comment):
7075         Make COUNT argument optional, for consistency with forward-char et al.
7076
7077 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7078
7079         * lisp.h:
7080         * print.c (long_to_string):
7081         Return a useful value: the pointer at end of data written.
7082
7083         * doprnt.c:
7084         Use `static const char * const' for constant strings.
7085         (union printf_arg): Delete `i', `ui' members.
7086         (get_doprnt_args):
7087         (emacs_doprnt_1):
7088         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7089         Do all printf-ing via the `l' specifier.
7090         Use EMACS_INT instead of int.
7091         Optimize.
7092
7093 2000-11-20  Didier Verna  <didier@xemacs.org>
7094
7095         * faces.c (update_face_cachel_data): don't frob the background
7096         pixmap when the window is being created. The face is needed but
7097         does not exist yet.
7098
7099 2000-11-20  Andy Piper  <andy@xemacs.org>
7100
7101         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7102         messing with a debug environment.
7103
7104 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7105
7106         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7107
7108 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7109
7110         * casetab.c (Fcase_table_p): Fix compile error and crash.
7111
7112 2000-11-18  Philip Aston  <philipa@mail.com>
7113
7114         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7115
7116 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7117
7118         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7119         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7120
7121 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7122
7123         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7124         * unexelf.c: Use HAVE_ELF_H.
7125         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7126         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7127         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7128         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7129         for testing.
7130         So this is an unexelfsgi.c from a different line of development.
7131
7132 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7133
7134         * regex.c (RE_TR_ASCII): New function.
7135         (RE_TRANSLATE): Call it.
7136
7137 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7138
7139         * buffer.h (TRT_TABLE_OF): Remove assert.
7140         (IN_TRT_TABLE_DOMAIN): Removed.
7141
7142 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7143
7144         * free-hook.c (log_gcpro):
7145         (show_gcprohist): Add support for GCPRO5.
7146
7147 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7148
7149         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7150
7151 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7152
7153         * symeval.h: Declare flush_all_buffer_local_cache.
7154
7155         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7156         (flush_buffer_local_cache): Added.
7157         (flush_all_buffer_local_cache): Added.
7158
7159         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7160
7161         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7162         (pdump_dump_data): Ditto.
7163         (pdump_reloc_one): Ditto.
7164         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7165         before dumping.
7166
7167
7168 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7169
7170         * buffer.c: Remove if 0'ed entry.
7171         * buffer.h: Rewrite TRT to use char-table.
7172         * bufslots.h: Remove mirror tables.
7173         * casetab.c: Remove mirror tables.
7174         (CASE_TABLE_P): New macro.
7175         (Fcase_table_p): Element of a case table is string or char-table.
7176         (make_mirror_trt_table): Removed.
7177         (set_case_table): Setup char-table from strings for backward
7178         compatibility.
7179         * dired.c (Fdirectory_files):
7180         * dired-msw.c: (mswindows_get_files):
7181         * lisp.h: Change prototype of re_pattern_buffer.
7182         * regex.c: (RE_TRANSLATE): New macro.
7183         (TRANSLATE_P): Ditto.
7184         Change translate to type RE_TRANSLATE_TYPE.
7185         * regex.h: Define RE_TRANSLATE_TYPE
7186         * search.c (TRANSLATE): New macro.
7187         (TRANSLATE_ASCII): New macro.
7188         Translate table is changed to Lisp_Object.
7189         (signal_failure): Inhibit return.
7190
7191 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7192
7193         * device-msw.c:
7194         * eldap.c:
7195         * event-Xt.c:
7196         * event-stream.c:
7197         * print.c:
7198         Do UNGCPRO before return.
7199
7200 2000-11-14  Martin Buchholz <martin@xemacs.org>
7201
7202         * XEmacs 21.2.37 is released.
7203
7204 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7205
7206         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7207         Add comments about discarded return value.
7208
7209 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7210
7211         * callint.c:
7212         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7213
7214 2000-10-27  Andy Piper  <andy@xemacs.org>
7215
7216         * gutter.c (Fset_default_gutter_position): default left and right
7217         gutters to visible.
7218         (calculate_gutter_size): calculate resonable heuristic for left
7219         and right gutter sizes.
7220         (specifier_vars_of_gutter): change left and right gutter sizes to
7221         autodetect.
7222         (calculate_gutter_size_from_display_lines): new function.
7223         (output_gutter): check for resizing on left and right gutters.
7224         (clear_gutter): don't special case top and left gutters.
7225         (specifier_vars_of_gutter): use new signature for
7226         set_specifier_caching.
7227
7228         * glyphs-x.c (x_redisplay_widget): spelling fix.
7229         * glyphs.c (specifier_vars_of_glyphs):
7230         * menubar.c (specifier_vars_of_menubar):
7231         * redisplay.c (specifier_vars_of_redisplay):
7232         * toolbar.c (specifier_vars_of_toolbar):
7233         * window.c (specifier_vars_of_window):
7234         * scrollbar.c (specifier_vars_of_scrollbar):
7235         (complex_vars_of_scrollbar): use new signature for
7236         set_specifier_caching.
7237
7238         * specifier.c (set_specifier_caching): include recompute flag.
7239         (recompute_one_cached_specifier_in_window): always recompute if
7240         flag set.
7241         (recompute_one_cached_specifier_in_frame): ditto.
7242
7243         * specifier.h (struct specifier_caching): add recompute flag.
7244
7245 2000-10-24  Andy Piper  <andy@xemacs.org>
7246
7247         * unexcw.c (copy_executable_and_dump_data_section): add new
7248         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7249         5.0 happy.
7250
7251 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7252
7253         * console-x.h (x_device): New member modifier_release_time.
7254         * event-Xt.c (x_handle_sticky_modifiers):
7255         Bound interval modifier keys are sticky.
7256         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7257         * events.h: extern it.
7258
7259 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7260
7261         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7262
7263 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7264
7265         * event-stream.c (execute_command_event): Preserve current_events
7266         and the like when event is misc-user-event.
7267         Inhibit quit during the call to maybe_echo_keys.
7268
7269 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7270
7271         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7272         symlink when buffer is killed.
7273         (inhibit_clash_detection): New variable.
7274
7275 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7276
7277         * console.c (Fset_input_method): Trigger redisplay on tty.
7278
7279 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7280
7281         * process.c (Fprocess_status): Revert to previous behavior:
7282         (process-status "nosuchprocess") ==> nil
7283
7284 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7285
7286         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7287         Work around another GCC 2.95.2 optimizer bug.
7288
7289 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7290
7291         * process.c (Fget_process): Use LIST_LOOP_2.
7292         (kill_buffer_processes): Use LIST_LOOP_2.
7293
7294         * minibuf.c (Fall_completions):
7295         Delete old non-functional code for FSF fourth argument.
7296
7297         * frame.c (frame_matches_frame_spec):
7298         Renamed from `frame_matches_frametype'.  Update all callers.
7299         (device_matches_device_spec):
7300         Renamed from 'device_matches_console_spec'.  Update all callers.
7301
7302         * doc.c (Fsubstitute_command_keys):
7303         Remove buffer overflow crash.  Small code cleanups.
7304
7305         * casetab.c (check_case_table): Simpler code.
7306
7307         * window.c (Freplace_buffer_in_windows):
7308         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7309         (and similar implementation) as Fdelete_windows_on.
7310         Update all callers.
7311
7312         * alloc.c (Fmake_list):
7313         * alloc.c (make_vector):
7314         * alloc.c (Fmake_vector):
7315         * alloc.c (make_bit_vector):
7316         * alloc.c (Fmake_bit_vector):
7317         * alloc.c (Fbit_vector):
7318         * alloc.c (Fmake_string):
7319         * alloc.c (Fpurecopy):
7320         * alloc.c (Fmemory_limit):
7321         * buffer.c:
7322         * buffer.c (Fget_buffer):
7323         * buffer.c (Fkill_buffer):
7324         * buffer.c (complex_vars_of_buffer):
7325         * bytecode.c (Fcompiled_function_stack_depth):
7326         * callint.c (Fprefix_numeric_value):
7327         * event-stream.c:
7328         * event-stream.c (Fread_key_sequence):
7329         * casetab.c:
7330         * casetab.c (Fcase_table_p):
7331         * casetab.c (check_case_table):
7332         * casetab.c (Fset_case_table):
7333         * casetab.c (Fset_standard_case_table):
7334         * chartab.c:
7335         * chartab.c (Fchar_table_type):
7336         * chartab.c (Freset_char_table):
7337         * chartab.c (Fget_char_table):
7338         * chartab.c (Fget_range_char_table):
7339         * chartab.c (Fput_char_table):
7340         * chartab.c (Fmap_char_table):
7341         * chartab.c (Fcategory_table_p):
7342         * chartab.c (Fcheck_category_at):
7343         * chartab.c (Fchar_in_category_p):
7344         * chartab.c (Fcategory_table):
7345         * chartab.c (Fcopy_category_table):
7346         * chartab.c (Fset_category_table):
7347         * chartab.c (Fcategory_designator_p):
7348         * chartab.c (Fcategory_table_value_p):
7349         * cmds.c (Fdelete_char):
7350         * cmds.c (Fdelete_backward_char):
7351         * cmds.c (Fself_insert_command):
7352         * cmds.c (Fself_insert_internal):
7353         * console.c (Fvalid_console_type_p):
7354         * console.c (Fcdfw_console):
7355         * console.c (Fconsole_type):
7356         * console.c (Fconsole_name):
7357         * console.c (Fconsole_device_list):
7358         * console.c (Fconsole_on_window_system_p):
7359         * data.c:
7360         * data.c (Feq):
7361         * data.c (Fold_eq):
7362         * data.c (Fsubr_interactive):
7363         * data.c (Fchar_to_int):
7364         * data.c (Fint_to_char):
7365         * data.c (Fsetcar):
7366         * data.c (Fsetcdr):
7367         * data.c (Fnumber_to_string):
7368         * data.c (Fstring_to_number):
7369         * data.c (Frem):
7370         * database.c (mark_database):
7371         * database.c (finalize_database):
7372         * database.c (Fdatabase_live_p):
7373         * database.c (Fdatabasep):
7374         * device-x.c (Fx_get_resource):
7375         * device.c (Fdfw_device):
7376         * dired.c:
7377         * dired.c (Ffile_name_completion):
7378         * dired.c (Ffile_name_all_completions):
7379         * dired.c (Fuser_name_completion):
7380         * dired.c (Fuser_name_completion_1):
7381         * dired.c (Fuser_name_all_completions):
7382         * doc.c (Fdocumentation):
7383         * doc.c (Fdocumentation_property):
7384         * doc.c (Fsubstitute_command_keys):
7385         * editfns.c:
7386         * editfns.c (Fchar_to_string):
7387         * editfns.c (Fstring_to_char):
7388         * editfns.c (Ftemp_directory):
7389         * editfns.c (Finsert_char):
7390         * editfns.c (Fbuffer_substring_no_properties):
7391         * editfns.c (Fnarrow_to_region):
7392         * editfns.c (Fchar_equal):
7393         * editfns.c (Fchar_Equal):
7394         * editfns.c (Ftranspose_regions):
7395         * emacs.c (Fdump_emacs):
7396         * eval.c (Fthrow):
7397         * eval.c (Fcommand_execute):
7398         * eval.c (Fautoload):
7399         * eval.c (Fbacktrace):
7400         * eval.c (Fbacktrace_frame):
7401         * events.c:
7402         * events.c (Fcopy_event):
7403         * events.c (Fcharacter_to_event):
7404         * events.c (Fevent_button):
7405         * events.c (Fevent_process):
7406         * extents.c:
7407         * extents.c (Fnext_extent_change):
7408         * extents.c (Fextent_property):
7409         * faces.c (Ffacep):
7410         * faces.c (Fmake_face):
7411         * file-coding.c:
7412         * file-coding.c (Fencode_shift_jis_char):
7413         * file-coding.c (Fencode_big5_char):
7414         * fileio.c (Ffile_name_directory):
7415         * fileio.c (Ffile_name_nondirectory):
7416         * fileio.c (Ffile_name_as_directory):
7417         * fileio.c (Fdirectory_file_name):
7418         * fileio.c (Ffile_truename):
7419         * fileio.c (Fsubstitute_in_file_name):
7420         * fileio.c (Ffile_modes):
7421         * fileio.c (Fset_file_modes):
7422         * fileio.c (Fset_default_file_modes):
7423         * fileio.c (Fverify_visited_file_modtime):
7424         * floatfns.c (Facos):
7425         * floatfns.c (Fasin):
7426         * floatfns.c (Fatan):
7427         * floatfns.c (Fcos):
7428         * floatfns.c (Fsin):
7429         * floatfns.c (Ftan):
7430         * floatfns.c (Fbessel_j0):
7431         * floatfns.c (Fbessel_j1):
7432         * floatfns.c (Fbessel_jn):
7433         * floatfns.c (Fbessel_y0):
7434         * floatfns.c (Fbessel_y1):
7435         * floatfns.c (Fbessel_yn):
7436         * floatfns.c (Ferf):
7437         * floatfns.c (Ferfc):
7438         * floatfns.c (Flog_gamma):
7439         * floatfns.c (Fexp):
7440         * floatfns.c (Fexpt):
7441         * floatfns.c (Flog):
7442         * floatfns.c (Flog10):
7443         * floatfns.c (Fsqrt):
7444         * floatfns.c (Fcube_root):
7445         * floatfns.c (Facosh):
7446         * floatfns.c (Fasinh):
7447         * floatfns.c (Fatanh):
7448         * floatfns.c (Fcosh):
7449         * floatfns.c (Fsinh):
7450         * floatfns.c (Ftanh):
7451         * floatfns.c (Fabs):
7452         * floatfns.c (Ffloat):
7453         * floatfns.c (Flogb):
7454         * floatfns.c (Fceiling):
7455         * floatfns.c (Ffloor):
7456         * floatfns.c (Fround):
7457         * floatfns.c (Ftruncate):
7458         * floatfns.c (Ffceiling):
7459         * floatfns.c (Fffloor):
7460         * floatfns.c (Ffround):
7461         * floatfns.c (Fftruncate):
7462         * fns.c (Fstring_equal):
7463         * fns.c (Fstring_lessp):
7464         * fns.c (concat2):
7465         * fns.c (concat3):
7466         * fns.c (vconcat2):
7467         * fns.c (vconcat3):
7468         * fns.c (Fsubstring):
7469         * fns.c (Fassoc):
7470         * fns.c (Fold_assoc):
7471         * fns.c (assoc_no_quit):
7472         * fns.c (Fassq):
7473         * fns.c (Fold_assq):
7474         * fns.c (assq_no_quit):
7475         * fns.c (Frassoc):
7476         * fns.c (Fold_rassoc):
7477         * fns.c (Frassq):
7478         * fns.c (Fold_rassq):
7479         * fns.c (rassq_no_quit):
7480         * fns.c (Fremassoc):
7481         * fns.c (remassoc_no_quit):
7482         * fns.c (Fremassq):
7483         * fns.c (remassq_no_quit):
7484         * fns.c (Fremrassoc):
7485         * fns.c (Fremrassq):
7486         * fns.c (remrassq_no_quit):
7487         * fns.c (Fsort):
7488         * fns.c (Fplist_get):
7489         * fns.c (Fplist_put):
7490         * fns.c (Fplist_remprop):
7491         * fns.c (Fplist_member):
7492         * fns.c (Flax_plist_get):
7493         * fns.c (Flax_plist_put):
7494         * fns.c (Flax_plist_remprop):
7495         * fns.c (Flax_plist_member):
7496         * fns.c (Fequal):
7497         * fns.c (Fold_equal):
7498         * fns.c (Frequire):
7499         * fns.c (Fbase64_encode_region):
7500         * fns.c (Fbase64_encode_string):
7501         * fns.c (Fbase64_decode_region):
7502         * frame.c:
7503         * frame.c (frame_matches_frame_spec):
7504         * frame.c (device_matches_device_spec):
7505         * frame.c (next_frame):
7506         * frame.c (previous_frame):
7507         * frame.c (Fnext_frame):
7508         * frame.c (Fprevious_frame):
7509         * frame.c (Fframe_property):
7510         * frame.c (Fset_frame_height):
7511         * frame.c (Fset_frame_size):
7512         * frame.h:
7513         * glyphs.c:
7514         * glyphs.c (if):
7515         * glyphs.c (decode_error_behavior_flag):
7516         * glyphs.c (Fmake_image_instance):
7517         * indent.c (Findent_to):
7518         * intl.c (Fignore_defer_gettext):
7519         * keymap.c (Fkeymapp):
7520         * keymap.c (Flookup_key):
7521         * lread.c:
7522         * lread.c (Fload_internal):
7523         * lread.c (Feval_buffer):
7524         * lread.c (Feval_region):
7525         * macros.c (Fexecute_kbd_macro):
7526         * marker.c (set_marker_internal):
7527         * marker.c (Fset_marker):
7528         * marker.c (set_marker_restricted):
7529         * marker.c (Fcopy_marker):
7530         * marker.c (noseeum_copy_marker):
7531         * menubar.c:
7532         * menubar.c (Fpopup_menu):
7533         * minibuf.c:
7534         * mule-charset.c (Fcharset_name):
7535         * mule-charset.c (Fchar_charset):
7536         * mule-charset.c (Fchar_octet):
7537         * mule-charset.c (Fsplit_char):
7538         * mule-wnnfns.c (Fwnn_open):
7539         * mule-wnnfns.c (Fwnn_dict_comment):
7540         * mule-wnnfns.c (Fwnn_quit_henkan):
7541         * mule-wnnfns.c (Fwnn_word_toroku):
7542         * mule-wnnfns.c (Fwnn_word_sakujo):
7543         * mule-wnnfns.c (Fwnn_word_use):
7544         * mule-wnnfns.c (Fwnn_hindo_set):
7545         * objects.c:
7546         * objects.c (Fmake_color_instance):
7547         * objects.c (Fmake_font_instance):
7548         * print.c (Fwrite_char):
7549         * process.c:
7550         * process.c (mark_process):
7551         * process.c (print_process):
7552         * process.c (get_process_from_usid):
7553         * process.c (Fprocessp):
7554         * process.c (Fprocess_live_p):
7555         * process.c (Fget_process):
7556         * process.c (Fget_buffer_process):
7557         * process.c (get_process):
7558         * process.c (Fprocess_id):
7559         * process.c (Fprocess_name):
7560         * process.c (Fprocess_command):
7561         * process.c (init_process_io_handles):
7562         * process.c (start_process_unwind):
7563         * process.c (Fstart_process_internal):
7564         * process.c (Fopen_multicast_group_internal):
7565         * process.c (Fset_process_window_size):
7566         * process.c (read_process_output):
7567         * process.c (send_process):
7568         * process.c (Fprocess_tty_name):
7569         * process.c (Fset_process_buffer):
7570         * process.c (Fprocess_buffer):
7571         * process.c (Fprocess_mark):
7572         * process.c (set_process_filter):
7573         * process.c (Fset_process_filter):
7574         * process.c (Fprocess_filter):
7575         * process.c (Fprocess_send_region):
7576         * process.c (Fprocess_send_string):
7577         * process.c (exec_sentinel):
7578         * process.c (Fset_process_sentinel):
7579         * process.c (Fprocess_sentinel):
7580         * process.c (status_notify):
7581         * process.c (Fprocess_status):
7582         * process.c (Fprocess_exit_status):
7583         * process.c (process_send_signal):
7584         * process.c (Fprocess_send_eof):
7585         * process.c (deactivate_process):
7586         * process.c (remove_process):
7587         * process.c (Fdelete_process):
7588         * process.c (kill_buffer_processes):
7589         * process.c (Fprocess_kill_without_query):
7590         * process.c (Fprocess_kill_without_query_p):
7591         * rangetab.c:
7592         * rangetab.c (Fget_range_table):
7593         * rangetab.c (Fput_range_table):
7594         * rangetab.c (Fremove_range_table):
7595         * rangetab.c (Fclear_range_table):
7596         * search.c:
7597         * search.c (Fskip_chars_forward):
7598         * search.c (Fskip_chars_backward):
7599         * search.c (Fskip_syntax_forward):
7600         * search.c (Fskip_syntax_backward):
7601         * search.c (search_command):
7602         * search.c (Freplace_match):
7603         * search.c (Fregexp_quote):
7604         * select.c (Fown_selection_internal):
7605         * select.c (Fselection_owner_p):
7606         * select.c (Fselection_exists_p):
7607         * select.c (Fget_selection_internal):
7608         * specifier.c:
7609         * symbols.c:
7610         * symbols.c (Fintern):
7611         * symbols.c (Fintern_soft):
7612         * symbols.c (Funintern):
7613         * symbols.c (Fapropos_internal):
7614         * symbols.c (Fset_default):
7615         * syntax.c:
7616         * syntax.c (Fsyntax_table_p):
7617         * syntax.c (Fcopy_syntax_table):
7618         * syntax.c (Fset_syntax_table):
7619         * syntax.c (Fchar_syntax):
7620         * syntax.c (syntax_match):
7621         * syntax.c (Fmatching_paren):
7622         * syntax.c (Fforward_word):
7623         * syntax.c (scan_lists):
7624         * syntax.c (Fscan_lists):
7625         * syntax.c (Fscan_sexps):
7626         * syntax.c (Fparse_partial_sexp):
7627         * toolbar.c (Fcheck_toolbar_button_syntax):
7628         * tooltalk.doc:
7629         * window.c:
7630         * window.c (Fwindowp):
7631         * window.c (Fwindow_live_p):
7632         * window.c (Fwindow_point):
7633         * window.c (Fdelete_window):
7634         * window.c (Fnext_window):
7635         * window.c (Fprevious_window):
7636         * window.c (Fother_window):
7637         * window.c (window_loop):
7638         * window.c (Fget_lru_window):
7639         * window.c (Fsplit_window):
7640         * window.c (Fenlarge_window):
7641         * window.c (Fenlarge_window_pixels):
7642         * window.c (Fshrink_window):
7643         * window.c (Fshrink_window_pixels):
7644         * window.c (change_window_height):
7645         * window.c (Fwindow_configuration_p):
7646         * window.c (Fcurrent_window_configuration):
7647         * window.h:
7648         * casefiddle.c (casify_object):
7649         * casefiddle.c (Fupcase):
7650         * casefiddle.c (Fdowncase):
7651         * casefiddle.c (Fcapitalize):
7652         * casefiddle.c (Fupcase_initials):
7653         * casefiddle.c (casify_region_internal):
7654         * casefiddle.c (casify_region):
7655         * casefiddle.c (Fupcase_region):
7656         * casefiddle.c (Fdowncase_region):
7657         * casefiddle.c (Fcapitalize_region):
7658         * casefiddle.c (Fupcase_initials_region):
7659         * casefiddle.c (Fupcase_word):
7660         * casefiddle.c (Fdowncase_word):
7661         * casefiddle.c (Fcapitalize_word):
7662         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
7663         Replace 0 with '\0' when working with bytes.
7664         Replace initial "(" with "\(" in docstrings.
7665
7666 2000-11-01  Martin Buchholz  <martin@xemacs.org>
7667
7668         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
7669
7670         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
7671
7672 2000-10-31  Martin Buchholz  <martin@xemacs.org>
7673
7674         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
7675
7676 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7677
7678         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
7679         correctly.
7680
7681 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7682
7683         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
7684         (inhibit_auto_save_session): New variable.
7685         (vars_of_fileio): Declare and initialize them.
7686         * fileio.c (Fdo_auto_save): Don't create session file if
7687         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
7688
7689 2000-10-31  Martin Buchholz  <martin@xemacs.org>
7690
7691         * sgiplay.c (play_internal): C++ compilability.
7692         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
7693         * callproc.c (Fold_call_process_internal):
7694         Remove unused vars `env', `first'.
7695         * scrollbar.c (update_scrollbar_instance):
7696         #### unused var `current_window'.
7697         * redisplay-tty.c: Put currently unused vars insert_mode_on,
7698         etc. within #ifdef NOT_YET.
7699         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
7700         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
7701         * specifier.c (specifier_instance):
7702         #### unused var `tag'.
7703         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
7704
7705 2000-10-27  Martin Buchholz  <martin@xemacs.org>
7706
7707         * fns.c (Fbutlast):
7708         * fns.c (list_sort):
7709         * fns.c (Ffillarray):
7710         * fns.c (bytecode_nconc2):
7711         * fns.c (Fnconc):
7712         * fns.c (mapcar1):
7713         * fns.c (Fmapconcat):
7714         Be pedantically 64-bit correct.  For the time when someone will
7715         want to have a list with length > 2**32.
7716
7717         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7718         Work around MIPSpro compiler bug.
7719
7720         * process-unix.c (unix_kill_child_process): Add snarky comment.
7721         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
7722
7723         * config.h.in: Oops, _getpt ==> _getpty
7724
7725 2000-10-26  Martin Buchholz  <martin@xemacs.org>
7726
7727         * config.h.in:
7728         * regex.c:
7729         Use void*, not char*, as return type of alloca().
7730
7731         * alloc.c (free_marker): Side effect inside assert expression!
7732
7733 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
7734
7735         * mule-charset.c (Fset_charset_ccl_program): To check
7736         if the given ccl program is valid, use setup_ccl_program()
7737         instead of CHECK_VECTOR().
7738         (Fmake_charset): Likewise.
7739
7740 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
7741
7742         * faces.c (get_extent_fragment_face_cache_index):
7743         Fix cachel.merged_faces memory leak.
7744
7745 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
7746
7747         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
7748         Reset MSB of octets obtained by DECODE_SJIS
7749         because of the incompatibility with Emacs.
7750         (ccl_driver)<CCL_ENCODE_SJIS>:
7751         Set MSB of octets before passing them to
7752         ENCODE_SJIS because of the incompatibility
7753         with Emacs.
7754
7755 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
7756
7757         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
7758         (DECLARE_LRECORD): Undo the last change.
7759         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
7760
7761 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
7762
7763         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
7764         the implementation to lrecord_implementations_table.
7765
7766 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
7767
7768         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
7769         initial value of `lrecord_type_##c_name' and
7770         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
7771         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
7772         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
7773         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
7774         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
7775
7776 2000-10-17  Martin Buchholz  <martin@xemacs.org>
7777
7778         * miscplay.c (sndcnv8S_2mono):
7779         (sndcnv2monounsigned):
7780         (sndcnvULaw_2linear):
7781         (sndcnv16swap):
7782         Remove implementation-defined behavior.
7783
7784 2000-10-12  Martin Buchholz  <martin@xemacs.org>
7785
7786         * input-method-xlib.c: Warning suppression.
7787
7788 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
7789
7790         * mule-ccl.c: Sync up with Emacs 21.0.90.
7791         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
7792         Do nothing.
7793         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
7794         Likewise.
7795         (ccl_driver[WriteMultibyteChar2]): Bug fix.
7796         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
7797         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
7798         leading char belongs to official 2-dimensional charset.
7799         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
7800         write the given character as is.  Otherwise,
7801         if it is a multibyte char, convert it by
7802         non_ascii_set_charptr_emchar, then write it.
7803         (CCL_WRITE_STRING): Likewise.
7804         (ccl_get_compiled_code): New function.
7805         (setup_ccl_program): When ccl_prog is invalid,
7806         return -1.
7807         (Fregister_code_conversion_map): New function.
7808         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
7809
7810         * mule-ccl.h: Sync up with Emacs 21.0.90.
7811         (Fregister_ccl_program): export it.
7812
7813         * redisplay-msw.c (separate_textual_runs):
7814         If ccl program is not valid, don't do ccl conversion.
7815
7816         * redisplay-x.c (separate_textual_runs): Ditto.
7817
7818         * file-coding.c (Fmake_coding_system):
7819         When type is ccl and value is vector, register it
7820         with a proper symbol.  And checks whether the
7821         given ccl program is valid.
7822         (mule_decode): When calling ccl_driver, if src indicates
7823         NULL pointer, set an empty string instead.
7824         (mule_encode): Likewise.
7825
7826 2000-10-11  Martin Buchholz  <martin@xemacs.org>
7827
7828         The following large batch of changes gets us back to a state of
7829         C++ compilability.  Extbyte is now a char, which means that
7830         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
7831
7832         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
7833
7834         * sound.c (Fplay_sound): Type correctness.
7835
7836         * select-x.c (hack_motif_clipboard_selection): Type correctness.
7837         (x_get_window_property): Type correctness.
7838         (receive_incremental_selection): unsigned char ==> Extbyte
7839         (selection_data_to_lisp_data): unsigned char ==> Extbyte
7840         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
7841         (Fx_store_cutbuffer_internal): Type correctness.
7842
7843         * process-unix.c (try_to_initialize_subtty): Type correctness.
7844
7845         * objects-x.c (x_print_color_instance): Type correctness.
7846         (x_print_font_instance): Type correctness.
7847         (x_list_fonts): SExtbyte ==> Extbyte.
7848         (valid_x_font_name_p): SExtbyte ==> Extbyte.
7849         (x_find_charset_font): SExtbyte ==> Extbyte.
7850         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
7851         (truename_via_XListFonts): SExtbyte ==> Extbyte.
7852         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
7853         Use bufbyte_strcmp.
7854
7855         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
7856         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
7857         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
7858         (BYTE_C0_P): Use bit ops for char-signedness safety.
7859         (BYTE_C1_P): Use bit ops for char-signedness safety.
7860         (CHARSET_BY_LEADING_BYTE):
7861         (CHARSET_BY_ATTRIBUTES):
7862         Always use inline function.
7863         Use type_checking_assert.
7864         Hide chlook.
7865
7866         * mule-charset.c (non_ascii_charptr_copy_char):
7867         Modify to work with both ASCII and non-ASCII characters.
7868         Improve docs and variable names.
7869         Replace over-clever fall-through switch with a simple loop.
7870         (Lstream_get_emchar_1):
7871         Replace over-clever fall-through switch with a simple loop.
7872
7873         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7874         Warning suppression.
7875
7876         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
7877         the return value of Lstream_getc, which could be EOF as well.
7878
7879         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
7880
7881         * lisp.h: Make Extbyte a char, not unsigned char, so that external
7882         APIs can be used on Extbytes without casts.  Risky!
7883         (SExtbyte): Remove.
7884         (UExtbyte): Remove.
7885
7886         * input-method-xlib.c (XIM_init_device):
7887         Use Xlib.h instead of IntrinsicP.h.
7888         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
7889         which will break in X11R7.
7890         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
7891         to call XRegisterIMInstantiateCallback with correct types.
7892
7893         * gui-x.c (button_item_to_widget_value): Type correctness.
7894
7895         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
7896
7897         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
7898         (xbm_instantiate_1): Type correctness.
7899         (BUILD_GLYPH_INST):  Type correctness.
7900
7901         * fileio.c (Fsubstitute_in_file_name): Type correctness.
7902
7903         * file-coding.c:
7904         (decode_coding_sjis):
7905         (decode_coding_big5):
7906         (decode_coding_ucs4):
7907         (decode_coding_utf8):
7908         (decode_coding_iso2022):
7909         (decode_coding_no_conversion):
7910         Make all decoding functions take an Extbyte * arg.
7911         (encode_coding_sjis):
7912         (encode_coding_big5):
7913         (encode_coding_ucs4):
7914         (encode_coding_utf8):
7915         (encode_coding_iso2022):
7916         (encode_coding_no_conversion):
7917         Make all encoding functions take a Bufbyte * arg.
7918         Use size_t instead of unsigned int for memory sizes.
7919         Only cast to unsigned char whenever dereferencing Extbyte *.
7920
7921         * doc.c (unparesseuxify_doc_string): Type correctness.
7922
7923         * console-x.c (split_up_display_spec):
7924         Rewrite without using details of internal string representation.
7925         (x_semi_canonicalize_device_connection): Type correctness.
7926
7927         * config.h.in:
7928         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
7929         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
7930         (HAVE_XFREE386): Removed.
7931
7932         * buffer.h (DEC_CHARPTR): `const' correctness.
7933         (bufbyte_strcmp): New.
7934         (bufbyte_memcmp): New.
7935
7936         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
7937
7938         * buffer.h (XCHAR_OR_CHAR_INT):
7939         Always use inline function.
7940         Remove redundant type checking assert() - XINT will abort quite nicely.
7941
7942 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
7943
7944         * search.c (Freplace_match): Set newtext to an empty string.
7945
7946 2000-10-10  Martin Buchholz  <martin@xemacs.org>
7947
7948         * s/decosf1-3.h: Remove #include of stropts.h
7949         * s/ptx.h: Remove #include of stropts.h
7950         * s/usg5-4.h: Remove #include of stropts.h
7951         * sysproc.h:
7952         * config.h.in:
7953         Use stropts.h, not sys/stropts.h.
7954         Use strtio.h, not sys/strtio.h.
7955
7956 2000-10-04  Martin Buchholz <martin@xemacs.org>
7957
7958         * XEmacs 21.2.36 is released.
7959
7960 2000-09-21  Andy Piper  <andy@xemacs.org>
7961
7962         * glyphs-x.c (x_redisplay_widget): make sure non-structural
7963         changes still involve copying the widget tree.
7964         (update_widget_face): make sure a change is register in the widget
7965         tree. Call update_tab_widget_face appropriately.
7966         (update_tab_widget_face): ditto.
7967         (x_tab_control_redisplay): make sure non-structural changes still
7968         involve copying the widget tree.
7969
7970 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
7971
7972         * lread.c (locate_file): Check the path element is non-nil.
7973
7974 2000-10-02  Martin Buchholz  <martin@xemacs.org>
7975
7976         * lisp.h: Warning suppression for SCO compilers.
7977
7978         * redisplay-tty.c (reset_tty_modes): Fix crash.
7979         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
7980
7981 2000-09-27  Martin Buchholz  <martin@xemacs.org>
7982
7983         Big signal/process handling overhaul.  Bugs fixed:
7984         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
7985         M-x comint-kill-subjob should work for both values nil and t of
7986         process-connection-type. It was broken on most platforms.
7987         Testing on Irix and Cygwin still needed.  Other plaforms tested.
7988         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
7989         * process-unix.c: Signal/Process handling overhaul.
7990         (pty_name): make 64 bytes, as `expect' does, for paranoia.
7991         (allocate_pty): Use all available modern methods of allocating
7992         ptys, falling back to old style BSD allocation as a last resort.
7993         Use allegedly more secure Unix98 pty allocation by default.
7994         (allocate_pty_the_old_fashioned_way): New. the last resort.
7995         (unix_create_process): Push ptem, ldterm, ttcompat where
7996         available.  Autoconfiscate.
7997         (try_to_initialize_subtty): New.
7998         (unix_kill_child_process): Proper signal handling for ptys on most
7999         platforms, using special knowledge of AIX, BSD, etc...
8000         (unix_create_process): Always disconnect_controlling_terminal() for
8001         subprocesses, whether using ptys or not.
8002         * process.h: Remove old getpt-dependent PTY code.
8003         * process.c (Fprocess_send_signal): New, obvious generic function.
8004         (decode_signal): New.
8005         (Finterrupt_process):
8006         (Fkill_process):
8007         (Fquit_process):
8008         (Fstop_process):
8009         (Fcontinue_process):
8010         (Fsignal_process): Use decode_signal.
8011         (process_send_signal):
8012         Many docstring corrections.
8013         Allow any signal to be sent to a process object.
8014         * config.h.in: Add symbols for big signal/process overhaul.
8015         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8016         * sysproc.h: Include process-related headers, where available:
8017         sys/stropts.h sys/strtio.h pty.h libutil.h
8018         * s/irix4-0.h:
8019         * s/irix5-0.h:
8020         * s/cygwin32.h:
8021         * s/gnu.h:
8022         * s/linux.h:
8023         * s/hpux.h:
8024         * s/aix3-1.h:
8025         Remove old S&M pty stuff.
8026         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8027         * systty.h: Simplify cpp hackery, improve comments.
8028         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8029
8030         * editfns.c (Fformat_time_string):
8031         Be a little more paranoid with the return value of ctime.
8032
8033         * fileio.c (check_executable):
8034         (check_writable):
8035         Use symbolic constants X_OK, W_OK.
8036
8037         * console-x.c (split_up_display_spec): Fix a warning.
8038
8039 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8040
8041         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8042         * ntproc.c (sys_spawnve): make_string ==> build_string
8043         Small clarity improvements.
8044
8045 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8046
8047         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8048
8049         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8050
8051         * config.h.in (HAVE_STRCASECMP): Remove.
8052
8053 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8054
8055         * redisplay-output.c (redisplay_output_pixmap):
8056         Cleaner and possibly more 64-bit correct code.
8057
8058 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8059
8060         * dumper.c (pdump_load_finish): move restoration of
8061         `noninteractive1' to emacs.c (main_1).
8062         * emacs.c (main_1): protect LISP-visible command-line flags
8063         from pdump_load().
8064
8065 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8066
8067         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8068         DUMP_TARGET instead of literal program names.
8069
8070 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8071
8072         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8073
8074 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8075
8076         * *: Spelling mega-patch
8077
8078 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8079
8080         * fns.c (bad_bad_turtle):
8081         Delete "Eek!" comment, since we fixed the bug to which it refers.
8082
8083 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8084
8085         * alloca.c: Replace REGISTER with register.
8086
8087 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8088
8089         * file-coding.c (ucs_to_char): Use countof.
8090
8091 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8092
8093         * file-coding.c: (ucs_to_char):
8094         (complex_vars_of_file_coding):
8095         Use countof instead of sizeof.
8096         Use CHECK_NATNUM instead of CHECK_INT.
8097
8098         * sysdep.c (strcasecmp): Remove.
8099         * device-x.c (ascii_strcasecmp): New.
8100         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8101         Avoid using non-standard non-portable strcasecmp.
8102
8103 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8104
8105         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8106         * font-lock.c: remove reference to emacsfns.h.
8107         * search.c: small doc improvement.
8108         * event-Xt.c: correct file names in comments.
8109         * console-x.h Correct file names in comments.
8110         * frame.c: Correct file names in comments.
8111         * event-stream.c: remove Energize from comments.
8112
8113 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8114
8115         * symeval.h (DEFERROR_STANDARD):
8116         (DEFERROR):
8117         (DEFSYMBOL):
8118         (DEFSYMBOL_NO_DUMP):
8119         (DEFSYMBOL_MULTIWORD_PREDICATE):
8120         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8121         (DEFKEYWORD):
8122         The construct &##name is not sensible C.
8123         Fixes compilation errors with Unixware native compiler.
8124
8125 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8126
8127         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8128         (next_frame_internal): Removed.  We now just have next_frame.
8129         (next_frame):
8130         Write a simpler and cleaner one-pass algorithm.
8131         Remove called_from_delete_device arg and #ifdefed-out code.
8132         (previous_frame):
8133         Renamed from prev_frame.  Update callers.
8134         Cleaned up to have an analogous implementation to next_frame.
8135         (other_visible_frames_internal): Remove the
8136         called_from_delete_device bogus arg, and hence, remove this
8137         function.  Just use other_visible_frames().
8138
8139         * window.c (Fnext_window):
8140         Prettify docstring.
8141         Since next_frame() is guaranteed to return a frame, remove check
8142         for nil inserted in previous patch.
8143         (Fprevious_window):
8144         Prettify docstring.
8145         Make code look more like Fnext_window.
8146         (window_loop):
8147         Respect the `console' arg when iterating through windows.
8148         Fixes bug: (get-buffer-window buffer t device) not respecting
8149         the `device' arg.
8150         This function needs more work, as others have pointed out.
8151
8152         * frame.h: Rename prev_frame to previous_frame.
8153         device_matches_console_spec no longer takes a `frame' arg.
8154
8155         * s/gnu.h:
8156         * s/linux.h:
8157         * s/hpux.h:
8158         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8159         From "Golubev I. N." <gin@mo.msk.ru>.
8160
8161         * make-src-depend: Fix typo.
8162
8163 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8164
8165         * window.c (Fnext_window):
8166         next_frame() might return nil, not a frame.
8167         Fixes this crash:
8168         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8169
8170         * frame.c (next_frame_internal):
8171         We've passed a frame if we've passed its device.
8172         Fixes this crash:
8173         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8174 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8175
8176 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8177
8178         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8179         Allow option to suppress accelerators in menu/dialog items.
8180         (populate_or_checksum_helper): Pass dialog title through above.
8181
8182 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8183
8184         * event-msw.c (mswindows_key_to_emacs_keysym):
8185         Add "pause" key, fix "menu" key.
8186
8187 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8188
8189         * eval.c (reinit_vars_of_eval):
8190         Increase max_lisp_eval_depth to 1000,
8191         required for thai-xtis.el to byte-compile under some circumstances.
8192
8193 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8194
8195         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8196         From Kenichi Handa.
8197
8198 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8199
8200         * make-src-depend: Make the generated Makefiles smaller.
8201
8202         * s/hpux.h (SETUP_SLAVE_PTY):
8203         Provide a %d in the format string for the errno argument.
8204
8205         * editfns.c (Ftemp_directory):
8206         Warning fix.
8207         Avoid buffer overrun on very long file name.
8208
8209         * input-method-xlib.c (XIM_init_device):
8210         6th parameter of XRegisterIMInstantiateCallback has different
8211         pointer types on different OSes, so simply cast to (void *).
8212
8213         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8214
8215         * sysdll.c (dll_open):
8216         shl_load will hang hard if passed a NULL filename.
8217         Simply return NULL for compatibility with dlopen.
8218         * sysdll.c: Conform to XEmacs coding standards.
8219
8220         * sysdep.c (get_pty_max_bytes):
8221         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8222
8223 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8224
8225         * tooltalk.c: Add #include <syssignal.h>
8226
8227 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8228
8229         * s/hpux.h: Don't use undefined function sigunblock().
8230
8231 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8232
8233         * config.h.in: Add HAVE_BALLOON_HELP.
8234         * emacs.c: Use HAVE_BALLOON_HELP.
8235         * Makefile.in.in (x_objs):
8236         Make Balloon Help conditional on finding shape.h.
8237
8238 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8239
8240         * syntax.c (regex_emacs_buffer_p): New variable.
8241         * syntax.h (regex_emacs_buffer_p): extern.
8242         * search.c (looking_at_1):
8243         (string_match_1):
8244         (fast_string_match):
8245         (search_buffer): Set regex_emacs_buffer_p.
8246         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8247         when before_dot, at_dot, after_dot.
8248
8249 2000-08-23  Andy Piper  <andy@xemacs.org>
8250
8251         * gui-x.c (popup_selection_callback): Only set action_occurred
8252         when we really have an image instance.
8253         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8254
8255 2000-08-23  Andy Piper  <andy@xemacs.org>
8256
8257         * gui-msw.c (mswindows_handle_gui_wm_command): set
8258         action_occurred.
8259         * gui-x.c (popup_selection_callback): ditto.
8260
8261         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8262         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8263         (struct Lisp_Image_Instance): add action_occurred flag.
8264
8265         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8266         (image_instance_changed): ditto.
8267         (reset_frame_subwindow_instance_cache): only unmap windows - do
8268         not remove them from the cache also.
8269
8270         * glyphs-widget.c (tab_control_update): better debug.
8271         (progress_gauge_update): ditto.
8272         (layout_update): ditto.
8273         (layout_instantiate): ditto.
8274         (tab_control_order_only_changed): cope with null pending items.
8275
8276         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8277         debug. Force selection of an item when an action occurred. Cope
8278         with null pending_items.
8279         (mswindows_progress_gauge_redisplay): better debug.
8280         * glyphs-x.c (x_tab_control_redisplay): ditto.
8281
8282         * redisplay.c (redisplay_frame): reset the frame cache if the
8283         frame is garbaged.
8284
8285         * window.c (Fset_window_configuration): potentially re-enable
8286         frame cache reset.
8287         (window_unmap_subwindows): need to finalize instances here since
8288         it is only used in mark_window_as_deleted.
8289
8290 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8291
8292         * nas.c (SndOpenDataForReading):
8293         nas.c (WaveOpenDataForReading):
8294         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8295         Somehow escaped from the 2000-08-14 patch.
8296
8297 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8298
8299         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8300         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8301
8302 2000-08-21  Andy Piper  <andy@xemacs.org>
8303
8304         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8305         window if it is not already displayed.
8306
8307         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8308         it is not already displayed.
8309
8310         * window.c (Fset_window_configuration): don't reset the frame
8311         cache.
8312
8313         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8314         instances from the frame cache if we are actually finalizing them.
8315         (reset_frame_subwindow_instance_cache): reset frame cache only
8316         after unmapping everything.
8317         (map_subwindow): set displayed flag after mapping.
8318
8319 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8320
8321         * data.c (indirect_function):
8322         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8323
8324         * eval.c (function_argcount):
8325         Use original function when signaling errors.
8326
8327 2000-08-18  Andy Piper  <andy@xemacs.org>
8328
8329         * frame.c (delete_frame_internal): use new
8330         free_frame_subwindow_instances name.
8331
8332         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8333         (add_tab_item): make return type correct.
8334         (mswindows_tab_control_instantiate): assert index of tab.
8335         (mswindows_tab_control_redisplay): Re-code to use
8336         gui_item_equal_sans_selected and gui_item_list_find_selected.
8337
8338         * glyphs-widget.c (tab_control_update): Correct comment.
8339
8340         * window.c (window_unmap_subwindows): use new
8341         unmap_subwindow_instance_cache_mapper.
8342         (window_unmap_subwindows_cache_mapper): deleted.
8343         (Fset_window_configuration): comparisons should now be with
8344         EQ. Preserve the subwindow instance cache across configuration
8345         changes.
8346         (allocate_window): ditto.
8347         (make_dummy_parent): ditto.
8348
8349         * glyphs.c (free_frame_subwindow_instances): rename from
8350         free_frame_subwindow_instance_cache. finalize all instances rather
8351         than just those in the display cache.
8352         (finalize_all_subwindow_instances): walk windows unmapping and
8353         finalizing subwindows.
8354         (unmap_subwindow_instance_cache_mapper): moved from
8355         window.c. Allow finalization as well as unmapping.
8356
8357         * gui.c (gui_item_list_find_selected): new function.
8358
8359         * gui.h (gui_item_list_find_selected): declare.
8360
8361         * glyphs-x.c (x_tab_control_redisplay): pick tab
8362         explicitly. Re-code to use gui_item_equal_sans_selected and
8363         gui_item_list_find_selected.
8364
8365         * glyphs-x.h: add lwlib-utils.h
8366
8367         * buffer.c (Frecord_buffer): undo previous change.
8368
8369 2000-08-09  Vin Shelton  <acs@xemacs.org>
8370
8371         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8372         possible.  Create temporary files more securely.  The patch was
8373         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8374         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8375         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8376         for details.
8377
8378 2000-08-07  Ben Wing  <ben@xemacs.org>
8379
8380         * getloadavg.c: remove duplicate (and windows-breaking)
8381         includes of fcntl.h and sys/file.h.
8382
8383         * nt.c: remove duplicate getloadavg() definition.
8384
8385         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8386         encodings.
8387
8388 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8389
8390         * eval.c (function_argcount): If function needs to be autoloaded
8391         actually use the loaded definition.
8392         GCPRO function.
8393
8394 2000-08-05  Ben Wing  <ben@xemacs.org>
8395
8396         * getloadavg.c: add prototype for getloadavg().  remove
8397         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8398         of the code).  remove duplicate header includes.
8399
8400         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8401
8402         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8403         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8404         useful load average.
8405
8406         * alloc.c (reinit_alloc_once_early): removed references to
8407         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8408         the lisp vars are the only things referencing the malloc_sbrk_*
8409         vars, and they were already if 0'd out.  these vars only exist
8410         in the older malloc.c, which is basically unused, and they're
8411         only for informational purposes.
8412
8413         * m\*.h: removed useless VIRT_ADDR_VARIES.
8414
8415         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8416
8417 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8418
8419         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8420         color if the image is a mono pixmap.
8421
8422 2000-07-30  Ben Wing  <ben@xemacs.org>
8423
8424         * Makefile.in.in (release):
8425         Remove stray @.
8426
8427         * buffer.c (directory_is_current_directory):
8428         * dired-msw.c (mswindows_get_files):
8429         * dired.c:
8430         * dired.c (Fdirectory_files):
8431         * dired.c (file_name_completion_stat):
8432         * dired.c (Ffile_attributes):
8433         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8434         preprocessor tricks, to avoid problems on some machines
8435         (e.g. SCO).
8436
8437         * callproc.c (egetenv): GC docs.
8438
8439         * console-msw.h:
8440         * console-msw.h (struct mswindows_dialog_id):
8441         * lrecord.h (lrecord_type):
8442         New object for use with MSW dialogs.
8443
8444         * console.h (struct console_methods):
8445         New enable/disable frame methods, for proper modal dialogs.
8446
8447         * device-msw.c (msprinter_default_printer): Fix to follow
8448         proper Mule conventions.
8449
8450         * device-msw.c:
8451         * device-msw.c (signal_open_printer_error):
8452         * device-msw.c (msprinter_init_device):
8453         * device-msw.c (ensure_not_printing):
8454         * device-msw.c (plist_get_margin):
8455         * device-msw.c (Fmsprinter_select_settings):
8456         * device-msw.c (finalize_devmode):
8457         * device-msw.c (Fmsprinter_settings_despecialize):
8458         * device-msw.c (signal_enum_priner_error):
8459         * extents.c (decode_extent):
8460         * extents.c (decode_map_extents_flags):
8461         * extents.c (decode_extent_at_flag):
8462         * extents.c (Fextent_at):
8463         * extents.c (Fextents_at):
8464         * extents.c (symbol_to_glyph_layout):
8465         [[[[2]]]] Use structured errors.
8466
8467         * dialog-msw.c:
8468         * dialog-msw.c (mswindows_is_dialog_msg):
8469         * dialog-msw.c (mark_mswindows_dialog_id):
8470         * dialog-msw.c (dialog_proc):
8471         * dialog-msw.c (handle_question_dialog_box):
8472         * dialog-msw.c (syms_of_dialog_mswindows):
8473         Define new object to clean up marking; use it as a dialog identifier.
8474         Call new delete-dialog-box-hook.
8475
8476         * dialog-x.c (dbox_selection_callback):
8477         * dialog-x.c (dbox_descriptor_to_widget_value):
8478         * dialog-x.c (x_make_dialog_box_internal):
8479         Call new delete-dialog-box-hook.
8480         Return an id.
8481
8482         * dialog.c:
8483         * dialog.c (syms_of_dialog):
8484         * dialog.c (vars_of_dialog):
8485         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8486
8487         * eval.c:
8488         * eval.c (signal_call_debugger):
8489         when noninteractive, output stack traces on the console instead
8490         of in a (never-seen) buffer.
8491
8492         * eval.c (signal_type_error):
8493         * eval.c (invalid_argument_2):
8494         * lisp.h:
8495         new funs for use w/structured errors.
8496
8497         * event-Xt.c:
8498         * event-Xt.c (x_to_emacs_keysym):
8499         * event-Xt.c (describe_event):
8500         * event-Xt.c (emacs_Xt_event_handler):
8501         * event-Xt.c (vars_of_event_Xt):
8502         * event-msw.c:
8503         * event-msw.c (mswindows_wnd_proc):
8504         * event-msw.c (vars_of_event_mswindows):
8505         rename {x,mswindows}-debug-events to debug-{}-events for
8506         consistency with other debug-foo variables.
8507
8508         * event-stream.c:
8509         document next-event more clearly.
8510
8511         * fileio.c (Ffile_name_directory):
8512         * fileio.c (Ffile_name_nondirectory):
8513         * fileio.c (Funhandled_file_name_directory):
8514         * fileio.c (file_name_as_directory):
8515         * fileio.c (Ffile_name_as_directory):
8516         * fileio.c (directory_file_name):
8517         * fileio.c (Fdirectory_file_name):
8518         * fileio.c (Fmake_temp_name):
8519         * fileio.c (Ffile_truename):
8520         * fileio.c (Fsubstitute_in_file_name):
8521         * fileio.c (expand_and_dir_to_file):
8522         * fileio.c (barf_or_query_if_file_exists):
8523         * fileio.c (check_executable):
8524         * fileio.c (Ffile_exists_p):
8525         * fileio.c (Ffile_writable_p):
8526         * fileio.c (Ffile_directory_p):
8527         * fileio.c (Ffile_regular_p):
8528         * fileio.c (Ffile_modes):
8529         * fileio.c (Ffile_newer_than_file_p):
8530         * fileio.c (Fverify_visited_file_modtime):
8531         * fileio.c (Fset_visited_file_modtime):
8532         * fileio.c (auto_save_1):
8533         (1). (2).
8534         fix up gcpro's.
8535
8536         * frame-msw.c:
8537         * frame-msw.c (mswindows_init_frame_1):
8538         * frame-msw.c (mswindows_enable_frame):
8539         * frame-msw.c (error_frame_unsizable):
8540         * frame-msw.c (msprinter_init_frame_1):
8541         * frame-msw.c (msprinter_init_frame_3):
8542         * frame-msw.c (console_type_create_frame_mswindows):
8543         (2).
8544         implement new enable/disable frame methods.
8545
8546         * frame-x.c:
8547         * frame-x.c (x_enable_frame):
8548         * frame-x.c (console_type_create_frame_x):
8549         implement new enable/disable frame methods.
8550
8551         * frame.c:
8552         * frame.c (Fdisable_frame):
8553         * frame.c (syms_of_frame):
8554         * frame.h (struct frame):
8555         implement new enable/disable frame methods/functions.
8556
8557         * general-slots.h:
8558         add initial-focus.
8559
8560         * glyphs-msw.c (mswindows_widget_instantiate):
8561         comment that initial-focus should be implemented.
8562
8563         * glyphs-widget.c:
8564         * glyphs-widget.c (check_valid_instantiator):
8565         * glyphs-widget.c (check_valid_orientation):
8566         * glyphs-widget.c (check_valid_tab_orientation):
8567         * glyphs-widget.c (check_valid_justification):
8568         * glyphs-widget.c (check_valid_border):
8569         * glyphs-widget.c (check_valid_callback):
8570         * glyphs-widget.c (check_valid_int_or_function):
8571         * glyphs-widget.c (check_valid_string_or_vector):
8572         * glyphs-widget.c (check_valid_item_list_1):
8573         * glyphs-widget.c (widget_validate):
8574         * glyphs-widget.c (combo_box_validate):
8575         * glyphs-widget.c (widget_instantiate):
8576         * glyphs-widget.c (syms_of_glyphs_widget):
8577         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
8578         * glyphs-widget.c (image_instantiator_combo_box):
8579         * glyphs-widget.c (image_instantiator_scrollbar):
8580         * glyphs-widget.c (image_instantiator_tab_control):
8581         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
8582         (2).
8583         support (unimplemented) keyword initial-focus.
8584         reindent long macros.
8585
8586         * glyphs-x.c (x_redisplay_widget):
8587         * glyphs-x.c (x_button_instantiate):
8588         * glyphs-x.c (x_button_redisplay):
8589         * glyphs-x.c (x_progress_gauge_instantiate):
8590         * glyphs-x.c (x_edit_field_instantiate):
8591         * glyphs-x.c (x_combo_box_instantiate):
8592         * glyphs-x.c (x_tab_control_instantiate):
8593         * glyphs-x.c (x_label_instantiate):
8594         * gui-x.c:
8595         * gui-x.c (button_item_to_widget_value):
8596         * gui-x.c (gui_items_to_widget_values_1):
8597         * gui-x.c (gui_item_children_to_widget_values):
8598         * gui-x.c (gui_items_to_widget_values):
8599         * gui-x.h:
8600         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8601         add new flag to gui-parsing routines to indicate whether
8602         accelerator specs should be supported.
8603
8604         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
8605
8606         * glyphs.h (struct Lisp_Image_Instance):
8607         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
8608         add initial-focus flag.
8609
8610         * gui.c:
8611         * gui.c (syms_of_gui):
8612         * gui.c (vars_of_gui):
8613         clean up menu-no-selection-hook.
8614
8615         * gui.h:
8616         support delete-dialog-box-hook.
8617
8618         * lread.c (Fload_internal):
8619         * lread.c (locate_file_in_directory_mapper):
8620         (1).
8621
8622         * lrecord.h:
8623         * lrecord.h (struct toolbar_button):
8624         * lrecord.h (syms_of_toolbar):
8625         document how to create a new object.
8626
8627         * menubar-msw.c (mswindows_char_is_accelerator):
8628         may be called on frames w/o menus.
8629
8630         * menubar.c (vars_of_menubar):
8631         clean up :filter docs.
8632
8633         * nt.c (readdir):
8634         * ntproc.c:
8635         (1).
8636
8637         * process-nt.c:
8638         * process-nt.c (validate_signal_number):
8639         * process-nt.c (signal_cannot_launch):
8640         * process-nt.c (nt_create_process):
8641         * process-nt.c (nt_send_process):
8642         * process-nt.c (nt_kill_child_process):
8643         * process-nt.c (nt_open_network_stream):
8644         * process-nt.c (syms_of_process_nt):
8645         (2).
8646         delete quote-handling.  call new lisp code that does it better.
8647
8648         * process-unix.c (connect_to_file_descriptor):
8649         * process-unix.c (allocate_pty):
8650         * process-unix.c (unix_send_process):
8651         * process-unix.c (unix_kill_child_process):
8652         * process-unix.c (unix_open_network_stream):
8653         * process-unix.c (unix_open_multicast_group):
8654         (1). (2).
8655
8656         * process.c:
8657         * process.c (Fstart_process_internal):
8658         (2).  need to canonicalize process path even if absolute.
8659
8660         * select-msw.c (symbol_to_ms_cf):
8661         * select-msw.c (ms_cf_to_symbol):
8662         * select-msw.c (cf_is_autofreed):
8663         * select-msw.c (mswindows_destroy_selection):
8664         * select.c:
8665         * select.c (syms_of_select):
8666         * select.h:
8667         support dibv5, fix bugs. (from Mike Alexander)
8668
8669         * select.c (Fget_selection_internal):
8670         * select.c (select_convert_out):
8671
8672         * sysdep.c:
8673         * sysdep.c (xemacs_stat):
8674         renamed.
8675
8676         * sysdep.c (mkdir):
8677         * sysdep.c (rmdir):
8678         but keep original stat() here because we provide encapsulation
8679         around these funs.
8680
8681         * sysfile.h:
8682         * sysfile.h (fstat):
8683         remove stat garbage.
8684
8685         * syswindows.h:
8686         fix X/MSW conflict.
8687         don't include tchar.h.  it's inappropriate because it makes
8688         compile-time distinctions when we want runtime distinctions.
8689         (we provide our own tchar replacements)
8690
8691         * toolbar.c:
8692         use default object printer for toolbar-button.
8693
8694         * unexcw.c:
8695         make sure we don't encapsulate.
8696
8697         * window.c (vars_of_window):
8698         emphasize that temp-buffer-show-hook is obsolete.
8699
8700 2000-08-05  Martin Buchholz  <martin@xemacs.org>
8701
8702         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
8703         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
8704
8705         * events.c (Fevent_timestamp_lessp):
8706         Not 64-bit clean.  Use EMACS_INT, not int.
8707
8708 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
8709
8710         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
8711         unsigned int and changed the last enum to
8712         lrecord_type_last_built_in_type.
8713         (lrecord_implementations_table): changed prototype to know how
8714         long the array is supposed to be.
8715         (lrecord_type_count): new unsigned int to keep track of the
8716         current number of lisp lrecord types.
8717         (DEFINE_EXTERNAL_LRECORD):
8718         (DECLARE_EXTERNAL_LRECORD): Added these two for external
8719         dynamic-modules to declare new lisp types. They are the same
8720         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
8721         int for each new type, and increment lrecord_type_count by 1.
8722
8723         * alloc.c (lrecord_implementations_table): Changed to reference
8724         lrecord_type_last_built_in_type for the size of the array.
8725         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
8726
8727 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8728
8729         * glyphs.h (check_valid_item_list): Renamed from
8730         check_valid_item_list_1.
8731
8732 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
8733
8734         * select.c (Qselect_coerce): New.
8735         * select.c (Vselection_coercion_alist): New.
8736         * select.c (syms_of_select): Declare.
8737         * select.c (get-selection-internal): Use it.
8738         Use the new select-coerce functionality.
8739
8740         * select.c (select_coerce): New.
8741         * select.h (select_coerce): Declare.
8742         New function to coerce one type of data into another.
8743
8744 2000-08-03  Martin Buchholz  <martin@xemacs.org>
8745
8746         * callproc.c (Fcall_process_internal):
8747         (Fcall_process_internal):
8748         * process-unix.c (unix_create_process):
8749         Save and restore the value of errno, so that error messages are accurate.
8750
8751 2000-08-01  Martin Buchholz  <martin@xemacs.org>
8752
8753         * elhash.c (print_hash_table):
8754         Fix printing of hash tables to also use `key-and-value' instead of `t'.
8755         Prettify docstrings and indentation.
8756
8757 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8758
8759         * window.c (Fwindow_pixel_edges): Subtract frame border and
8760         gutter size.
8761
8762 2000-07-31  Andy Piper  <andy@xemacs.org>
8763
8764         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
8765         will acknowledge the change.
8766
8767         * glyphs.h: declare tab_control_order_only_changed.
8768
8769         * glyphs-x.c (x_tab_control_redisplay): use
8770         tab_control_order_only_changed.
8771
8772         * glyphs-widget.c (tab_control_order_only_changed): new function.
8773
8774         * glyphs-msw.c (mswindows_tab_control_redisplay): use
8775         tab_control_order_only_changed.
8776
8777         * gui.c (gui_item_equal_sans_selected): new function.
8778         (gui_item_equal): use it.
8779
8780         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
8781         :properties in favor of :items..
8782
8783         * glyphs-widget.c (check_valid_item_list): rename from
8784         check_valid_item_list_1.
8785         (check_valid_item_list_1): renamed.
8786         (combo_box_validate): deprecate :properties in favor of :items.
8787         (widget_instantiate): ditto.
8788         (tab_control_update): ditto.
8789         (image_instantiator_combo_box): ditto.
8790         (image_instantiator_tree_view): ditto.
8791         (image_instantiator_tab_control): ditto.
8792         (layout_post_instantiate): remove dead code.
8793
8794         * print.c (debug_print_no_newline): only write to debugger if in
8795         WIN32_NATIVE.
8796
8797         * elhash.c (Fmake_hash_table): update doc string.
8798
8799         * event-msw.c (mswindows_wnd_proc): don't allow processing of
8800         messages whilst in GC. This at least stops XEmacs crashing but has
8801         the potential for wierd behaviour.
8802
8803 2000-07-31  Martin Buchholz  <martin@xemacs.org>
8804
8805         * config.h.in:
8806         Make existence of s&m files optional.
8807
8808         * s/bsd386.h: Remove HAVE_GETLOADAVG.
8809         * s/freebsd.h: Remove HAVE_GETLOADAVG.
8810         * s/gnu.h: Remove HAVE_GETLOADAVG.
8811         * s/netbsd.h: Remove HAVE_GETLOADAVG.
8812         * s/sol2.h: Remove HAVE_GETLOADAVG.
8813         * lisp.h: Remove getloadavg() declaration.
8814         * fns.c:
8815         Include <sys/loadavg.h> if available.
8816         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
8817         * config.h.in:  Group together getloadavg()-related macros.
8818         Use only configure-time tests to detect getloadavg().
8819
8820 2000-07-30  Martin Buchholz  <martin@xemacs.org>
8821
8822         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
8823
8824 2000-07-25  Andy Piper  <andy@xemacs.org>
8825
8826         * syswindows.h: add tchar.h for native builds.
8827
8828         * frame.c (syms_of_frame): remove set-glyph-image.
8829
8830         * general-slots.h: add Qset_glyph_image.
8831
8832         * glyphs-widget.c (layout_update): add domain arg to
8833         set-glyph-image.
8834         (syms_of_glyphs_widget): remove set-glyph-image.
8835
8836 2000-07-23  Ben Wing  <ben@xemacs.org>
8837
8838         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
8839         Vpopup_frame_list.
8840
8841 2000-07-22  Andy Piper  <andy@xemacs.org>
8842
8843         * symsinit.h: add syms_of_win32().
8844
8845         * gui-msw.c (syms_of_gui_mswindows): remove
8846         Fmswindows_shell_execute.
8847         (Fmswindows_shell_execute): moved to win32.c.
8848
8849         * emacs.c (main_1): add syms_of_win32 ().
8850
8851         * win32.c (init_potentially_nonexistent_functions): rewrite in
8852         compiler-friendly terms.
8853         (Fmswindows_shell_execute): move here from gui-msw.c.
8854         (syms_of_win32): new.
8855
8856         * device-msw.c (Fmswindows_printer_list): clean up args to
8857         EnumPrinters.
8858         Don't include tchar under cygwin or mingw.
8859         (msprinter_default_printer): make cygwin-friendly.
8860
8861 2000-07-21  Andy Piper  <andy@xemacs.org>
8862
8863         * glyphs-widget.c (image_instantiator_tree_view): use tab
8864         control's update function.
8865         (layout_property): new function. Retrieve items.
8866
8867         * glyphs-msw.c (mswindows_tree_view_redisplay): new
8868         function. Re-populate the tree view from the pending items.
8869
8870         * glyphs.c (instantiate_image_instantiator): Make sure the domain
8871         is designated the parent if the domain is an image instance. This
8872         is needed so that dirtiness can be cascade up the hierarchy and
8873         thus for layout children to be redisplayed correctly.
8874         (allocate_image_instance): rename glyph -> parent.
8875
8876         * redisplay.h: change redisplay_output_layout signature.
8877
8878         * redisplay-msw.c (mswindows_output_display_block): use domain
8879         arg.
8880
8881         * redisplay-x.c (x_output_display_block): use domain arg.
8882
8883 2000-07-10  Andy Piper  <andy@xemacs.org>
8884
8885         * window.c (Fset_window_configuration): add comment.
8886
8887         * redisplay-output.c (compare_runes):
8888         (redisplay_output_subwindow): redisplay rather than update subwindow.
8889         (redisplay_output_layout): ditto.
8890
8891         * redisplay-msw.c (mswindows_frame_output_end):
8892         (mswindows_frame_output_end): make defer window pos optional.
8893
8894         * lisp.h: add Flast.
8895
8896         * glyphs.h (struct image_instantiator_methods): add dest_mask top
8897         normalize method. Change update method to be for changed
8898         instantiators. Add redisplay method. Change signature of layout
8899         method.
8900         (struct Lisp_Image_Instance): add instantiator.
8901         (IMAGE_INSTANCE_INSTANTIATOR): new.
8902         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
8903         (XIMAGE_INSTANCE_INSTANTIATOR): new.
8904         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
8905
8906         * glyphs.c:
8907         (find_instantiator_differences): new function.
8908         (Fset_instantiator_property): new convenience function.
8909         (check_image_instance_structure): strictly check for vector
8910         instantiators.
8911         (normalize_image_instantiator): make non-static.
8912         (instantiate_image_instantiator): pass on dest_mask and use new
8913         signatures for image_instance_layout and friends.
8914         (mark_image_instance): mark the instantiator. Mark the subwindow
8915         face not the widget face.
8916         (image_instance_equal): add instantiator.
8917         (image_instance_hash): ditto.
8918         (allocate_image_instance): ditto.
8919         (Fset_image_instance_property): removed.
8920         (Fimage_instance_file_name): ditto.
8921         (Fcolorize_image_instance): ditto.
8922         (image_instance_layout): add offsets to be set.
8923         (update_image_instance): new function. update an image instance
8924         from its changed instantiator.
8925         (inherit_normalize): add dest_mask.
8926         (xbm_normalize): ditto.
8927         (xface_normalize): ditto.
8928         (xpm_normalize): ditto.
8929         (text_update): set_property -> update.
8930         (image_instantiate): use the glyph identity as a hash key, not the
8931         instantiator.
8932         (glyph_width): use new image_instance_layout signature.
8933         (glyph_ascent): ditto.
8934         (glyph_descent): ditto.
8935         (glyph_height): ditto.
8936         (glyph_query_geometry): ressurrect.
8937         (glyph_layout): ditto.
8938         (redisplay_subwindow): update -> redisplay.
8939         (syms_of_glyphs): add Fset_instantiator_property.
8940         (image_instantiator_format_create): set_property -> update.
8941
8942         * glyphs-x.c:
8943         (autodetect_normalize): add dest_maks to signature.
8944         (x_redisplay_subwindow): update -> redisplay.
8945         (x_redisplay_widget): ditto.
8946         (x_button_redisplay): ditto.
8947         (x_progress_gauge_redisplay): ditto.
8948         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
8949         stacking order.
8950         (console_type_create_glyphs_x): update -> redisplay.
8951         (image_instantiator_format_create_glyphs_x): ditto.
8952
8953         * glyphs-widget.c:
8954         (check_valid_instantiator): disallow glyphs in the instantiator,
8955         they must now be vectors.
8956         (check_valid_instantiator_list): ditto.
8957         (glyph_instantiator_to_glyph): use internal symbol rather than
8958         intern.
8959         (widget_update): renamed from widget_set_property. Call cascaded
8960         update methods.
8961         (redisplay_widget): renamed from update_widget.
8962         (widget_layout): image_instance_layout now takes position as well
8963         as size.
8964         (widget_normalize): ditto.
8965         (widget_instantiate): ditto.
8966         (tab_control_query_geometry) ditto.:
8967         (tab_control_update): renamed from tab_control_set_property.
8968         (progress_gauge_update): set_property -> update.
8969         (layout_normalize): rewrite so that child instantiators are
8970         normalized also.
8971         (layout_update): new function. Create glyphs from the normalized
8972         children and cope with any other layout keywords. We do not
8973         instantiate children here that will be take care of by
8974         redisplay_output_layout.
8975         (layout_instantiate): call layout_update and not much else.
8976         (layout_post_instantiate): not sure whether this is needed
8977         anymore.
8978         (layout_query_geometry): query glyph geometry rather than
8979         image_instance geometry.
8980         (layout_layout): set offsets from pass in parameters. Use glyph
8981         geometry and layout functions rather than image instance ones.
8982         (native_layout_layout): ditto.
8983         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
8984         (image_instantiator_widget): set_property -> update.
8985         (image_instantiator_buttons): ditto.
8986         (image_instantiator_progress_guage): ditto.
8987         (image_instantiator_tab_control): ditto.
8988         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
8989         (image_instantiator_layout): add update method.
8990
8991         * glyphs-msw.c (bmp_normalize):
8992         (mswindows_resource_normalize): add dest_mask so that it can be
8993         proprogated by layout_normalize.
8994         (begin_defer_window_pos): make optional because it may not be the
8995         right thing to do and it introduces differences with X.
8996         (mswindows_unmap_subwindow): ditto.
8997         (mswindows_map_subwindow): ditto.
8998         (mswindows_redisplay_subwindow): renamed from
8999         mswindows_update_subwindow.
9000         (mswindows_redisplay_widget): ditto.
9001         (mswindows_button_redisplay): renamed from
9002         mswindows_button_update. Update is now what the instantiation
9003         function does for a changed instantiator.
9004         (mswindows_progress_gauge_instantiate): set the progress value
9005         here if appropriate.
9006         (mswindows_tab_control_redisplay): cope with re-ordering of the
9007         members of the tab widget by simply selecting the new top
9008         widget. This makes things appear ok if you click on a tab.
9009         (mswindows_combo_box_instantiate): image_instance_layout now takes
9010         position as well as size.
9011         (mswindows_progress_gauge_redisplay): renamed from
9012         mswindows_progress_gauge_update.
9013         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9014         (image_instantiator_format_create_glyphs_mswindows): ditto.
9015
9016         * glyphs-eimage.c (jpeg_normalize):
9017         (gif_normalize):
9018         (png_normalize):
9019         (tiff_normalize): add dest_mask so that it can be proprogated by
9020         layout_normalize.
9021
9022         * elhash.c:
9023         (print_hash_table):
9024         (hash_table_weakness_validate):
9025         (decode_hash_table_weakness):
9026         (Fhash_table_weakness):
9027         (Fhash_table_type):
9028         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9029
9030         * console.h (struct console_methods): move update_* to
9031         redisplay_*.
9032
9033 2000-07-20  Ben Wing  <ben@xemacs.org>
9034
9035         * *.[ch] (XSETOBJ): remove unused middle argument.
9036         lisp-disunion.h: correct wrap_object() to one argument.
9037
9038 2000-07-15  Ben Wing  <ben@xemacs.org>
9039
9040         * s/cygwin32.h:
9041         * s/cygwin32.h (CYGWIN_CONV_PATH):
9042         Add missing logb prototype for v1.1.
9043         Use post-b20 names and alias to pre-b20 names when pre-b20.
9044
9045         * s/windowsnt.h: [5].
9046
9047 2000-07-15  Ben Wing  <ben@xemacs.org>
9048
9049         * Makefile.in.in (x_objs):
9050         * Makefile.in.in (sheap_objs):
9051         * Makefile.in.in (objs):
9052         added win32.o, cosmetic cleanups.
9053
9054         * alloc.c (Fmake_byte_code):
9055         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9056         etc. macros which declare their own args now.
9057
9058         * alloc.c (syms_of_alloc):
9059         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9060
9061         * buffer.c:
9062         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9063
9064         * buffer.c (Fget_file_buffer):
9065         Fixed GCPRO problem.
9066
9067         * buffer.c (get_truename_buffer):
9068         Fixed comment about GC checking.
9069
9070         * buffer.c (syms_of_buffer):
9071         Undeclared those dedicated frame funs.
9072         [2].
9073
9074         * buffer.h:
9075         Define convenience macros for internal/external conversions.
9076         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9077         and Qenvironment_variable_encoding for cleaner code.
9078
9079         * bufslots.h:
9080         Remove dedicated-frame; in lisp.
9081
9082         * bytecode.c (funcall_compiled_function):
9083         [1].
9084
9085         * bytecode.c (syms_of_bytecode):
9086         [2].
9087
9088         * console-msw.c:
9089         * console-msw.c (mswindows_show_console): Rewrote.
9090
9091         * console-msw.c (Fmswindows_debugging_output): New.
9092         Sends to OutputDebugString (special MSWin debugger interface).
9093
9094         * console-msw.c (Fmswindows_message_box):
9095         Fixed stupid bugs so it works when called from kill-emacs.
9096
9097         * console-msw.c (syms_of_console_mswindows):
9098         Declare Fmswindows_debugging_output.
9099
9100         * console-msw.h:
9101         New MSWin prototypes.
9102
9103         * console-msw.h (struct mswindows_frame):
9104         New entry last-click-mods for improved button-modifier support.
9105
9106         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9107         New struct entry `popup' with corresponding accessor.
9108
9109         * console-x.c:
9110         * console-x.c (split_up_display_spec):
9111         * console-x.c (get_display_arg_connection):
9112         * console-x.c (x_semi_canonicalize_console_connection):
9113         * console-x.c (x_canonicalize_device_connection):
9114         [[[6]]]: Change char to more specific type.
9115         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9116
9117         * console-x.c (x_semi_canonicalize_console_connection):
9118         * console-x.c (x_canonicalize_device_connection):
9119         [[[9]]]: Fix up error signalling to use new structured error system.
9120
9121         * console-x.h:
9122         [[[4]]]: Define codesys aliases:
9123         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9124         Qx_color_name_encoding, Qx_display_name_encoding.
9125
9126         * console.h (struct console_methods):
9127         New method make_dialog_box_internal supersedes older
9128         popup_dialog_box method.
9129
9130         * data.c:
9131         Define many new errors, part of new structured errors.
9132
9133         * data.c (init_errors_once_early):
9134         * data.c (syms_of_data):
9135         [2].
9136
9137         * device-msw.c (mswindows_init_device):
9138         [[[5]]]: Cleanup to support NT 3.51.
9139
9140         * device-msw.c (decode_devmode): Cleanup.
9141
9142         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9143         * device-msw.c (mswindows_handle_print_dialog_box):
9144         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9145         * device-msw.c (syms_of_device_mswindows):
9146         Delete the dialog box primitives recently introduced by Kirill and
9147         instead interface to general dialog box interface.
9148
9149         * device-x.c:
9150         * device-x.c (compute_x_app_name):
9151         * device-x.c (x_init_device):
9152         * device-x.c (Fx_valid_keysym_name_p):
9153         * device-x.c (Fx_set_font_path):
9154         [6].
9155         [7].
9156
9157         * device.h (wrap_device): New.
9158         First of its kind; meant to replace XSETDEVICE.
9159
9160         * dialog-msw.c: Many file-dialog symbols.
9161
9162         * dialog-msw.c (mswindows_register_popup_frame): New.
9163         * dialog-msw.c (mswindows_is_dialog_msg): New.
9164         For supporting kbd traversal in dialog boxes.
9165
9166         * dialog-msw.c (dialog_proc):
9167         Support hitting ESC in dialogs.
9168
9169         * dialog-msw.c (struct):
9170         Common dialog box errors.
9171
9172         * dialog-msw.c (handle_file_dialog_box): New.
9173         Add file dialog code.
9174
9175         * dialog-msw.c (handle_question_dialog_box):
9176         Redo existing code to support new question dialog syntax.
9177
9178         * dialog-msw.c (console_type_create_dialog_mswindows):
9179         We support new dialog console method.
9180
9181         * dialog-msw.c (syms_of_dialog_mswindows):
9182         * dialog-msw.c (vars_of_dialog_mswindows):
9183         New file dialog symbols, vars.
9184
9185         * dialog-x.c:
9186         * dialog-x.c (maybe_run_dbox_text_callback):
9187         * dialog-x.c (dbox_descriptor_to_widget_value):
9188         * dialog-x.c (x_make_dialog_box_internal):
9189         * dialog-x.c (console_type_create_dialog_x):
9190         Mule-ize entire file.
9191         Redo to support question dialog syntax.
9192         [6].
9193
9194         * dialog.c:
9195         * dialog.c (Fmake_dialog_box_internal):
9196         * dialog.c (syms_of_dialog):
9197         Kill old popup-dialog-box, replace with new primitive.
9198         Just call device method or signal error.
9199
9200         * eldap.c (Fldap_open):
9201         * eldap.c (Fldap_search_basic):
9202         * eldap.c (Fldap_add):
9203         * eldap.c (Fldap_modify):
9204         [1].
9205         [7].
9206
9207         * emacs.c:
9208         * emacs.c (make_arg_list_1):
9209         * emacs.c (make_arg_list):
9210         Mule-ize call to dll_init().
9211         [6].
9212         [8].
9213
9214         * emacs.c (make_argc_argv):
9215         * emacs.c (free_argc_argv):
9216         * emacs.c (init_cmdargs):
9217         * emacs.c (main_1):
9218         * emacs.c (Fkill_emacs):
9219         * emacs.c (Fdump_emacs):
9220         Update comments about what can be used in syms_* etc.
9221         Call init_win32() when necessary.
9222         Fix up MS Win dialog box in kill-buffer to actually work right.
9223         [7].
9224
9225         * eval.c:
9226         * eval.c (For):
9227         * eval.c (Fand):
9228         * eval.c (Fprogn):
9229         * eval.c (Fprog1):
9230         * eval.c (Fprog2):
9231         * eval.c (FletX):
9232         * eval.c (Flet):
9233         * eval.c (condition_case_3):
9234         * eval.c (Feval):
9235         * eval.c (function_argcount):
9236         * eval.c (funcall_lambda):
9237         [1].
9238
9239         * eval.c (type_error): New.
9240         * eval.c (maybe_type_error): New.
9241         * eval.c (continuable_type_error): New.
9242         * eval.c (maybe_continuable_type_error): New.
9243         * eval.c (type_error_with_frob): New.
9244         * eval.c (maybe_type_error_with_frob): New.
9245         * eval.c (continuable_type_error_with_frob): New.
9246         * eval.c (maybe_continuable_type_error_with_frob): New.
9247         New functions for use with structured errors.
9248
9249         * event-Xt.c:
9250         * event-Xt.c (x_event_to_emacs_event):
9251         Buttons are now modifiers too.
9252
9253         * event-Xt.c (emacs_Xt_current_event_timestamp):
9254         Implement new event method.
9255         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9256
9257         * event-msw.c:
9258         * event-msw.c (ntpipe_shove_writer): [5].
9259         * event-msw.c (mswindows_enqueue_mouse_button_event):
9260         * event-msw.c (mswindows_drain_windows_queue):
9261         * event-msw.c (mswindows_wnd_proc): [7].
9262         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9263         * event-msw.c (mswindows_modifier_state):
9264         Throughout: support new button modifiers.
9265
9266         * event-msw.c (emacs_mswindows_current_event_timestamp):
9267         Implement new event method.
9268         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9269
9270         * event-stream.c:
9271         * event-stream.c (event_stream_current_event_timestamp): New.
9272         * event-stream.c (maybe_kbd_translate): New functionality.
9273         * event-stream.c (vars_of_event_stream):
9274         Document new kbd-translate-table functionality.
9275
9276         * event-stream.c (Fcurrent_event_timestamp): New.
9277         New primitive for use in fabricated events.
9278         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9279
9280         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9281
9282         * events.c:
9283         * events.c (Fmake_event):
9284         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9285         [1].
9286         [9].
9287
9288         * events.c (format_event_object): fix gcc warnings.
9289
9290         * events.c (Fevent_timestamp): Document new primitives.
9291
9292         * events.c (TIMESTAMP_HALFSPACE): New.
9293
9294         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9295         comparing timestamps correctly (half-space algorithm).
9296
9297         * events.c (Fevent_modifier_bits): Doc fix.
9298
9299         * events.c (Fevent_modifiers): Major doc addition.
9300         * events.c (event_x_y_pixel_internal): Typo fix.
9301         * events.c (syms_of_events): Declare new primitives.
9302
9303         * events.h:
9304         Update long comment for button modifiers, timestamps.
9305
9306         * events.h (struct event_stream):
9307         New current_event_timestamp method.
9308
9309         * extents.c:
9310         * extents.c (extent_in_region_p):
9311         * extents.c (decode_extent):
9312         * extents.c (Fset_extent_parent):
9313         * extents.c (decode_map_extents_flags):
9314         Fix gcc warnings.
9315         [9].
9316
9317         * extents.c (struct extent_at_arg):
9318         * extents.c (decode_extent_at_flag):
9319         * extents.c (extent_at_mapper):
9320         * extents.c (extent_at_bytind):
9321         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9322         * extents.c (Fextents_at): New primitive. [9].
9323         * extents.c (symbol_to_glyph_layout): [9].
9324         Support new primitive `extents-at'.
9325
9326
9327         * extents.c (get_text_property_bytind):
9328         extent_at_bytind has another arg.
9329         [9].
9330
9331         * extents.c (syms_of_extents): New primitive.
9332
9333         * file-coding.c (Fmake_coding_system): [1].
9334         * file-coding.c (subsidiary_coding_system): fix gcc warning
9335         * file-coding.c (syms_of_file_coding): [2].
9336
9337         * fileio.c (Fexpand_file_name):
9338         * fileio.c (Fsysnetunam):
9339         * fileio.c (Ffile_exists_p):
9340         * fileio.c (Ffile_executable_p):
9341         * fileio.c (Fverify_visited_file_modtime):
9342         Clean up GCPROing.
9343
9344         * fileio.c (syms_of_fileio): [2].
9345
9346         * filelock.c (lock_file_1):
9347         * filelock.c (current_lock_owner):
9348         * filelock.c (lock_if_free):
9349         * filelock.c (lock_file):
9350         * filelock.c (unlock_file):
9351         Clean up GCPROing.
9352
9353         * fns.c (concat): Fix gcc warning.
9354
9355         * fns.c (Fmember):
9356         * fns.c (Fold_member):
9357         * fns.c (Fmemq):
9358         * fns.c (Fold_memq):
9359         * fns.c (memq_no_quit):
9360         * fns.c (Fassoc):
9361         * fns.c (Fold_assoc):
9362         * fns.c (Fassq):
9363         * fns.c (Fold_assq):
9364         * fns.c (assq_no_quit):
9365         * fns.c (Frassoc):
9366         * fns.c (Fold_rassoc):
9367         * fns.c (Frassq):
9368         * fns.c (Fold_rassq):
9369         * fns.c (rassq_no_quit):
9370         * fns.c (Fdelete):
9371         * fns.c (Fold_delete):
9372         * fns.c (Fdelq):
9373         * fns.c (Fold_delq):
9374         * fns.c (delq_no_quit):
9375         * fns.c (Fremassoc):
9376         * fns.c (Fremassq):
9377         * fns.c (remassq_no_quit):
9378         * fns.c (Fremrassoc):
9379         * fns.c (Fremrassq):
9380         * fns.c (remrassq_no_quit):
9381         * fns.c (Freverse):
9382         * fns.c (mapcar1):
9383         [1].
9384
9385         * frame-msw.c (mswindows_init_frame_1):
9386         * frame-msw.c (mswindows_delete_frame):
9387         Register popups with dialog code so keyboard traversing works.
9388
9389         * frame-tty.c (tty_raise_frame_no_select): [1].
9390
9391         * frame-x.c:
9392         * frame-x.c (x_set_frame_text_value):
9393         * frame-x.c (x_set_frame_properties):
9394         * frame-x.c (x_create_widgets):
9395         [7].
9396
9397         * frame.c:
9398         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9399
9400         * frame.h (wrap_frame): New.
9401         Macro like wrap_device.
9402
9403         * general.c:
9404         * general.c (SYMBOL):
9405         * general.c (syms_of_general):
9406         Major reorg.  This is now just a wrapper and symbols themselves
9407         are listed in general-slots.h.
9408
9409         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9410         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9411
9412         * glyphs-msw.c (mswindows_native_layout_instantiate):
9413         Add DS_CONTROL so keyboard traversal will work.
9414
9415         * glyphs-widget.c:
9416         * glyphs-widget.c (syms_of_glyphs_widget):
9417         Move some symbols to general-slots.h.
9418
9419         * glyphs-x.c:
9420         * glyphs-x.c (xbm_instantiate_1):
9421         * glyphs-x.c (x_xbm_instantiate):
9422         * glyphs-x.c (x_xface_instantiate):
9423         * glyphs-x.c (autodetect_instantiate):
9424         * glyphs-x.c (cursor_font_instantiate):
9425         * glyphs-x.c (x_update_widget):
9426         * glyphs-x.c (x_widget_instantiate):
9427         * glyphs.c (bitmap_to_lisp_data):
9428         * glyphs.c (pixmap_to_lisp_data):
9429         [7].
9430
9431         * glyphs.c (syms_of_glyphs):
9432         [2].
9433
9434         * gui-x.c:
9435         * gui-x.c (print_widget_value):
9436         * gui-x.c (menu_separator_style_and_to_external):
9437         * gui-x.c (add_accel_and_to_external):
9438         * gui-x.c (button_item_to_widget_value):
9439         * gui-x.c (gui_items_to_widget_values_1):
9440         * gui-x.c (gui_items_to_widget_values):
9441         * gui-x.c (syms_of_gui_x):
9442         * gui-x.c (vars_of_gui_x):
9443         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
9444         [9].
9445
9446         * gui-x.h:
9447         Muleize, prototype changes matching gui-x.c.
9448
9449         * gui.c:
9450         * gui.c (separator_string_p):
9451         * gui.c (gui_item_add_keyval_pair):
9452         * gui.c (make_gui_item_from_keywords_internal):
9453         * gui.c (signal_too_long_error):
9454         * gui.c (parse_gui_item_tree_item):
9455         * gui.c (syms_of_gui):
9456         * gui.c (vars_of_gui):
9457         * gui.h:
9458         menu-no-selection-hook moved here (used by MSWin).
9459         Move some symbols to general-slots.h.
9460         [6].
9461         [9].
9462
9463         * insdel.c (get_buffer_pos_char):
9464         * insdel.c (get_buffer_range_char):
9465         Add GC comments.
9466
9467         * keymap.c (keymap_lookup_directly):
9468         * keymap.c (keymap_store):
9469         * keymap.c (ensure_meta_prefix_char_keymapp):
9470         * keymap.c (describe_map):
9471         * keymap.h:
9472         Support new button modifiers.
9473
9474         * lisp-disunion.h (wrap_object):
9475         * lisp-disunion.h (XSETOBJ):
9476         Rename make_obj to wrap_object.
9477
9478         * lisp-union.h:
9479         * lisp-union.h (make_int):
9480         * lisp-union.h (make_char):
9481         Support wrap_object.
9482
9483         * lisp.h:
9484         * lisp.h (LIST_LOOP):
9485         * lisp.h (EXTERNAL_LIST_LOOP):
9486         * lisp.h (LIST_LOOP_2):
9487         * lisp.h (EXTERNAL_LIST_LOOP_1):
9488         * lisp.h (EXTERNAL_LIST_LOOP_2):
9489         * lisp.h (EXTERNAL_LIST_LOOP_3):
9490         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9491         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9492         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9493         * lisp.h (EXTERNAL_ALIST_LOOP_5):
9494         * lisp.h (EXTERNAL_ALIST_LOOP_6):
9495         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9496         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9497         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9498         * lisp.h (struct Lisp_Symbol):
9499         * lisp.h (maybe_continuable_error_with_frob):
9500         Fix up section comments.
9501         Add new types for char to indicate usage.
9502         Delete symbols auto-generated from general-slots.h.
9503         Add prototypes for structured error functions.
9504         Add long comments describing looping macros and change interface
9505         so that lvalues are automatically declared.
9506         Add NO_DECLARE macro in case callers want to declare lvalues
9507         themselves.
9508
9509         * lread.c (read_syntax_error):
9510         * lread.c (continuable_read_syntax_error):
9511         * lread.c (read_structure):
9512         * lread.c (sequence_reader):
9513         * lread.c (read_list_conser):
9514         * lread.c (read_compiled_function):
9515         Rename syntax_error and continuable_syntax_error to avoid clash
9516         with same-named structured error functions.
9517
9518         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9519         * menubar-msw.c (populate_menu_add_item):
9520         * menubar-msw.c (populate_or_checksum_helper):
9521         [5].
9522         [9].
9523
9524         * menubar-x.c:
9525         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9526         Mule-ize whole file.
9527
9528         * menubar.c (Fnormalize_menu_item_name): Add optimization.
9529
9530         * mule-charset.c (Fmake_charset):
9531         * mule-wnnfns.c (Fwnn_set_param):
9532         [1].
9533
9534         * ntproc.c (create_child):
9535         * ntproc.c (Fwin32_set_current_locale):
9536         Add comments portending doom.
9537
9538         * objects-msw.c:
9539         * objects-msw.c (old_font_enum_callback_2):
9540         * objects-msw.c (font_enum_callback_1):
9541         * objects-msw.c (mswindows_enumerate_fonts):
9542         [5].
9543
9544         * objects-x.c:
9545         * objects-x.c (allocate_nearest_color):
9546         * objects-x.c (x_parse_nearest_color):
9547         * objects-x.c (x_initialize_color_instance):
9548         * objects-x.c (x_print_color_instance):
9549         * objects-x.c (x_finalize_color_instance):
9550         * objects-x.c (x_valid_color_name_p):
9551         * objects-x.c (x_initialize_font_instance):
9552         * objects-x.c (x_print_font_instance):
9553         * objects-x.c (valid_x_font_name_p):
9554         * objects-x.c (truename_via_FONT_prop):
9555         * objects-x.c (truename_via_random_props):
9556         * objects-x.c (truename_via_XListFonts):
9557         * objects-x.c (x_font_truename):
9558         * objects-x.c (x_font_instance_truename):
9559         * objects-x.c (x_font_instance_properties):
9560         * objects-x.c (x_list_fonts):
9561         * objects-x.c (x_find_charset_font):
9562         Mule-ize entire file.
9563         [7].
9564
9565         * objects-x.h:
9566         Mule-verify.
9567
9568         * print.c:
9569         * print.c (std_handle_out_external):
9570         * print.c (debug_print_no_newline):
9571         * print.c (syms_of_print):
9572         Output to all debugger kinds in debug-print.
9573         Fix console-output code under MSWin to actually work.
9574
9575         * process-nt.c (send_signal):
9576         * process-nt.c (nt_create_process):
9577         Use newer Unicode macros.
9578
9579         * process-unix.c (unix_create_process):
9580         * process-unix.c (unix_canonicalize_host_name):
9581         * process-unix.c (unix_open_network_stream):
9582         [7].
9583
9584         * scrollbar-x.c:
9585         Mule-verify.
9586
9587         * search.c (syms_of_search):
9588         [2].
9589
9590         * select-msw.c (mswindows_destroy_selection):
9591         Use LIST_LOOP_2.
9592
9593         * select-x.c (symbol_to_x_atom):
9594         [7].
9595
9596         * select.c (syms_of_select):
9597         [2].
9598
9599         * sound.c (Fplay_sound_file):
9600         [7].
9601
9602         * specifier.c:
9603         * specifier.c (decode_specifier_type):
9604         * specifier.c (Fvalid_specifier_locale_type_p):
9605         * specifier.c (check_valid_locale_or_locale_type):
9606         * specifier.c (decode_locale):
9607         * specifier.c (decode_locale_type):
9608         * specifier.c (decode_locale_list):
9609         * specifier.c (check_valid_domain):
9610         * specifier.c (decode_specifier_tag_set):
9611         * specifier.c (Fcanonicalize_tag_set):
9612         * specifier.c (Fdefine_specifier_tag):
9613         * specifier.c (Fspecifier_tag_predicate):
9614         * specifier.c (check_valid_inst_list):
9615         * specifier.c (check_valid_spec_list):
9616         * specifier.c (decode_how_to_add_specification):
9617         * specifier.c (check_modifiable_specifier):
9618         * specifier.c (specifier_add_spec):
9619         * specifier.c (boolean_validate):
9620         * specifier.c (display_table_validate):
9621         [9].
9622
9623         * specifier.c (syms_of_specifier):
9624         Move some symbols to general-slots.h.
9625         [2].
9626
9627         * symbols.c:
9628         * symbols.c (Fmapatoms):
9629         * symbols.c (Fapropos_internal):
9630         Add GCPROs.
9631
9632         * symbols.c (set_default_buffer_slot_variable):
9633         * symbols.c (set_default_console_slot_variable):
9634         [1].
9635
9636         * symbols.c (defsymbol_massage_name_1):
9637         * symbols.c (defkeyword_massage_name):
9638         * symbols.c (deferror_1):
9639         * symbols.c (deferror):
9640         * symbols.c (deferror_massage_name_and_message):
9641         * symeval.h:
9642         * symeval.h (DEFSYMBOL):
9643         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
9644
9645         * symbols.c (syms_of_symbols):
9646         [2].
9647
9648         * symsinit.h:
9649         * symsinit.h (init_win32): New.
9650         Also new is syms_of_dialog_mswindows.
9651
9652         * syswindows.h:
9653         Add new Unicode macros, missing Cygwin wide-char functions,
9654         convenience conversion macros for Qmswindows_tstr, macros for
9655         encapsulating required MSWin <-> Cygwin filename conversions,
9656         prototype for dynamically-extracted (not in NT 3.51) functions.
9657
9658         * toolbar-x.c:
9659         Mule-verify.
9660
9661         * tooltalk.c (Fadd_tooltalk_message_arg):
9662         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
9663         * tooltalk.c (Fadd_tooltalk_pattern_arg):
9664         [7].
9665
9666         * tooltalk.c (syms_of_tooltalk):
9667         [2].
9668
9669         * unexnt.c:
9670         * unexnt.c (unexec):
9671         Fix up headers, declaration of unexec() to be more standard.
9672
9673 2000-07-20  Martin Buchholz  <martin@xemacs.org>
9674
9675         * offix.h: Revert change to guard macros - they're used in offix.c!
9676
9677 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9678
9679         * lisp.h: Defsubred Fdelete.
9680
9681         * console-msw.h:  (msprinter_default_printer): Added.
9682
9683         * console-msw.c (msprinter_canonicalize_console_connection):
9684         (msprinter_canonicalize_device_connection): Added.
9685
9686         * device-msw.c (msprinter_default_printer):
9687         (Fmswingows_get_default_printer):
9688         (signal_enum_priner_error):
9689         (Fmswingows_printer_list): Added.
9690
9691 2000-07-19  Martin Buchholz <martin@xemacs.org>
9692
9693         * XEmacs 21.2.35 is released.
9694
9695 2000-07-19  Martin Buchholz  <martin@xemacs.org>
9696
9697         * select-x.c (x_handle_selection_request):
9698         Text selected in xemacs and pasted into xterm failed to appear.
9699         Spelling fixes and cosmetic changes.
9700
9701 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9702
9703         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
9704         XEmacs frame (fix for doubling chars in dialog boxes).
9705
9706 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9707
9708         * select.c (select_convert_in, select_convert_out):
9709         Don't call intern() every time.
9710
9711         * select.c (Qselect_convert_in, Qselect_convert_out): New.
9712         * select.c (vars_of_select): Initialise them.
9713
9714 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
9715
9716         * select.c (selection-coercible-types): New.
9717
9718         * select.c (own-selection-internal):
9719         * select.c (get-selection-internal):
9720         MULE bug fix - these should default to COMPOUND_TEXT and not
9721         STRING for MULE. I think.
9722
9723         * select.c (select_convert_out): Use selection-coercible-types
9724         to find types that we can attempt to perform coercions on.
9725
9726 2000-07-18  Martin Buchholz  <martin@xemacs.org>
9727
9728         * mule-wnnfns.c:
9729         * mule-canna.c:
9730         Add coding: cookie to identify encoding.
9731
9732         * mule-canna.c (CANNA_mode_keys): make static.
9733         Use proper prototypes, even for functions of no arguments.
9734         Remove external prototype for Fding().
9735
9736         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
9737
9738         * select.c (syms_of_select): Add missing DEFSUBR.
9739
9740 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
9741
9742         * select.c (get_selection_internal, own_selection_internal):
9743         Make the type default to STRING, rather than placing a nil type
9744         into Vselection_alist.
9745
9746 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9747
9748         * gpmevent.c (tty_selection_exists_p):
9749         * gpmevent.c (tty_own_selection):
9750         Updated parameter lists.
9751
9752 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
9753
9754         * select.h (selection-alist): Removed declaration.
9755
9756         * select.h (get_local_selection):
9757         * select.c (get_local_selection):
9758         Made static.
9759
9760         * select.h (convert_selection): Removed declaration.
9761         * select.c (convert_selection): Removed.
9762         This function belongs in Lisp.
9763
9764         * select.h (select_convert_in): Declare.
9765         * select.h (select_convert_out): Declare.
9766         * select.c (select_convert_in): New.
9767         * select.c (select_convert_out): New.
9768         New conversion functions for other files to call.
9769
9770         * select.h (select_notify_buffer_kill): Declare.
9771         * select.c (select_notify_buffer_kill): New.
9772         New functions that get called from kill-buffer.
9773
9774         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
9775         X-specific lisp code.
9776
9777         * select.h: Declare some of the lisp-visible functions for
9778         external use.
9779
9780         * select.c (clean_local_selection_data): Removed. This was
9781         a disgusting function, and previously should have been in
9782         select-x.c in any case. The functionality is now provided
9783         in select-convert-from-integer (select.el).
9784
9785         * select.c (available-selection-types): Fixed stupidity where
9786         INTEGER and ATOM got added twice. Also add STRING when we see an
9787         extent.
9788
9789         * select.c (get-selection-internal): Removed symbol stripping. No
9790         longer causes conversion when data comes from the internal cache.
9791
9792         * select.c (syms_of_select): Added new functions.
9793
9794         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
9795         error checking - previously this called abort!
9796
9797         * select-x.c (x_own_selection): Changed comment.
9798
9799         * select-x.c (x_handle_selection_request): Use select_convert_out.
9800         Don't mess with selection-alist; it's an internal variable of select.c.
9801
9802         * select-x.c (x_get_foreign_selection): Use select_convert_in.
9803
9804         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
9805         rather than messing with selection-alist.
9806
9807         * select-msw.c (mswindows_get_foreign_selection):
9808         Use TO_INTERNAL_FORMAT rather than hacking.
9809
9810 2000-07-14  Martin Buchholz  <martin@xemacs.org>
9811
9812         * process-unix.c (unix_open_multicast_group):
9813         (unix_open_multicast_group): Remove useless casts.
9814
9815 2000-07-13  Martin Buchholz  <martin@xemacs.org>
9816
9817         * sound.c (Fplay_sound): Fix `unused variable' warning.
9818
9819         * emacs.c (main): Use correct type for _environ on SCO5.
9820
9821 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
9822
9823         * console.h (own_selection_method):
9824         * console.h (selection_exists_p_method):
9825         * console.h (available_selection_types_method): New.
9826         * console.h (register_selection_data_type_method): New.
9827         * console.h (selection_data_type_name): New.
9828
9829         * console-msw.h (mswindows_destroy_selection): Declare it.  New
9830         function & alist to track GlobalAlloc()'d handles that need
9831         releasing when the clipboard data gets replaced or emptied.
9832
9833         * event-msw.c (mswindows_wnd_proc): Call it.
9834
9835         * lisp.h, general.c (Qappend): New symbol representing a
9836         `how-to-add' mode.
9837
9838         * select.c (own-selection-internal):
9839         * select.c (selection-exists-p):
9840         * select.c (available-selection-types): New.
9841         * select.c (register-selection-data-type): New.
9842         * select.c (selection-data-type-name): New.  New functions to deal
9843         with device-specific selection data formats.
9844         * select.c (selection-converter-out-alist): Renamed.
9845         * select.c (selection-converter-in-alist): New.
9846         * select.c (selection-appender-alist): New.  Added new alists.
9847         * select.c (syms_of_select, vars_of_select): Added new symbols &
9848         variables.
9849         * select.c (get_local_selection): Split.
9850         * select.c: Removed spurious type checking - selections may now be
9851         of any type, not just strings.
9852         * select.c (own-selection-internal):
9853
9854         * select.h, select.c (convert_selection): New. Created
9855         convert_selection() function based on get_local_selection().
9856         * select.h, select.c (QCF_*): New symbols representing mswindows
9857         clipboard formats.
9858         * select.h, select.c (Qreplace_all, Qreplace_existing): New
9859         symbols representing `how-to-add' modes.
9860
9861         * select-msw.c (x_sym_p): New.
9862         * select-msw.c (symbol_to_ms_cf): New.
9863         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
9864         symbols & clipboard formats. Can also handle string names.
9865         * select-msw.c (mswindows_own_selection):
9866         * select-msw.c (mswindows_selection_exists_p):
9867         Added `data-type' parameter. Use it.
9868         * select-msw.c (mswindows_available_selection_types): New.
9869         * select-msw.c (mswindows_register_selection_data_type): New.
9870         * select-msw.c (mswindows_selection_data_type_name): New.
9871         * select-msw.c (mswindows_own_selection):
9872         * select-msw.c (mswindows_get_foreign_selection):
9873         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
9874         * select-msw.c (console_create_select_mswindows): Added new methods.
9875         * select-msw.c (mswindows_destroy_selection): New.
9876         * select-msw.c (Vhandle_alist): New list.
9877         * select-msw.c (mswindows_own_selection):
9878
9879         * select-x.c (x_own_selection):
9880         * select-x.c (x_selection_exists_p):
9881         * select-x.c: Added some comments about maybe using new
9882         functionality.
9883         * select-x.c (x_own_selection):
9884
9885         * specifier.c: Remove definition of Qappend (now in general.c)
9886         * specifier.c (syms_of_specifier): Remove Qappend.
9887
9888 2000-07-12  Martin Buchholz  <martin@xemacs.org>
9889
9890         * config.h.in: Add socklen_t.
9891
9892         * s/decosf4-0.h: No special compiler flags needed or desired.
9893         In particular, undefine _BSD for DEC OSF 4.0.
9894
9895 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9896
9897         * redisplay-msw.c (msprinter_frame_output_end): Added.
9898         (console_type_create_redisplay_mswindows): Referred the above.
9899
9900         * frame.c (setup_frame_without_minibuffer): Do not create a
9901         default minibuffer frame on a printer device.
9902
9903         * frame-msw.c (apply_dc_geometry): Added.
9904         (msprinter_start_page):
9905         (msprinter_init_frame_3):
9906         (msprinter_eject_page): Use it.
9907
9908         * console-msw.h (struct msprinter_frame): Added pix_left and top,
9909         and removed residual duplex and orientation properties.
9910
9911 2000-07-11  Martin Buchholz  <martin@xemacs.org>
9912
9913         * eval.c (function_argcount): Work around a DEC CC compiler bug.
9914
9915         * unexalpha.c: Remove system prototypes from C sources!
9916
9917 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
9918
9919         * eval.c: Remove references to M-x edit-options in DEFUNs for
9920         `defvar' and `defconst'.
9921
9922 2000-07-09  Martin Buchholz  <martin@xemacs.org>
9923
9924         * config.h.in: Remove SMART_INCLUDE hackery.
9925
9926         PostgreSQL hacking:
9927         * config.h.in: Don't use SMART_INCLUDE.
9928
9929         * postgresql.h: Include libpq-fe.h here.  Fix typo.
9930         * inline.c: Simply #include "postgresql.h"
9931         * postgresql.c:
9932         - Don't use SMART_INCLUDE
9933         - Use simply "const".
9934         - Use standard doc string conventions.
9935         - Use correct type for result of PQstatus.
9936
9937 2000-07-09  Martin Buchholz  <martin@xemacs.org>
9938
9939         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
9940
9941         C++ compilation changes.
9942         * config.h.in (EXTERN_C): Define.
9943         * config.h.in (not): This is also a C++ keyword.
9944         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
9945         * cm.c: Use EXTERN_C.
9946         * redisplay-tty.c: Use EXTERN_C.
9947         * sysdep.c: Use EXTERN_C.  Remove Gould support.
9948
9949 2000-07-09  Martin Buchholz  <martin@xemacs.org>
9950
9951         * general.c: Remove duplicate definition for Qfunction.
9952
9953 2000-07-08  Ben Wing  <ben@xemacs.org>
9954
9955         * device-msw.c (msprinter_init_device):
9956         * device-msw.c (sync_printer_with_devmode):
9957         * device-msw.c (handle_devmode_changes):
9958         * device-msw.c (print_dialog_worker):
9959         * device-msw.c (Fmsprinter_apply_settings):
9960         * device-msw.c (hash_devmode):
9961         * device-msw.c (Fmsprinter_settings_despecialize):
9962         use Qmswindows_tstr, not Qctext.
9963
9964         * vm-limit.c (check_memory_limits):
9965         avoid infinite loop printing warning messages.
9966
9967 2000-07-05  Craig Lanning  <lanning@scra.org>
9968
9969         * Makefile.in.in: Add support for including the Windows resources
9970         when building with the cygwin and mingw targets.
9971
9972         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
9973         not set or not correct.
9974         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
9975         (init_initial_directory): Don't try to use $PWD on the
9976         WIN32_NATIVE target.
9977
9978         * s\cygwin32.h:
9979         [[Add -mwindows to eliminate console window.]] not required --ben
9980         (HAVE_NATIVE_SOUND): removed; now handled by configure.
9981         (MAIL_USE_POP): removed; now handled by configure.
9982
9983         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
9984         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
9985         (HAVE_NATIVE_SOUND): removed; now handled by configure.
9986         (MAIL_USE_POP): removed; now handled by configure.
9987         (ENCAPSULATE_STAT): from Dan Holmsand, added.
9988         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
9989         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
9990         constant string.
9991         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
9992         up from <winsock.h> via systime.h.
9993         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
9994         (getpagesize): from Dan Holmsand, added.
9995         Added #endif which was left dangling by Ben's mega patch; added
9996         comment to help prevent this in the future.
9997
9998         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
9999
10000 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10001
10002         * console-msw.h (struct mswindows_device): Removed unnecessary
10003         cached device geometry values.
10004         Added update_tick and an accessor macro.
10005         (Lisp_Devmode): Added lrecord declaration.
10006         (struct msprinter_device): Contain devmode as a Lisp object.
10007         Added mswindows_get_selected_frame_hwnd();
10008
10009         * console.h (struct console_methods): Indentation nitpicking.
10010
10011         * device-msw.c (mswindows_init_device): Do not initialize geometry
10012         cache. Initialize update tick.
10013         (mswindows_device_system_metrics): Ask the device for its geometry.
10014         (global_free_2_maybe):
10015         (devmode_to_hglobal):
10016         (handle_printer_changes):
10017         (ensure_not_printing):
10018         (print_dialog_worker):
10019         (Fmsprinter_print_setup_dialog):
10020         (Fmsprinter_print_dialog):
10021         (plist_get_margin):
10022         (plist_set_margin):
10023         (Fmsprinter_page_setup_dialog): Added functions.
10024         (sync_printer_with_devmode):
10025         (handle_devmode_changes):
10026         (Fmsprinter_get_settings):
10027         (Fmsprinter_select_settings):
10028         (Fmsprinter_apply_settings):
10029         (allocate_devmode):
10030         (Fmsprinter_settings_copy):
10031         (Fmsprinter_settings_despecialize):
10032         (print_devmode):
10033         (finalize_devmode):
10034         (equal_devmode):
10035         (hash_devmode): Added functions
10036         (syms_of_device_mswindows): Init devmode lrecord class.
10037
10038         * device.h: Added an exfun for find-device.
10039
10040         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10041         geometry; although, recreate the device compatible DC.
10042
10043         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10044         (msprinter_init_frame_3):
10045         (msprinter_frame_property):
10046         (msprinter_internal_frame_property_p):
10047         (msprinter_frame_properties):
10048         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10049         print job properties (will move to device settings).
10050
10051         * lisp.h: Added symbols.
10052
10053         * general.c (syms_of_general): Declared them.
10054
10055         * hash.c (string_hash): Added.
10056
10057         * lrecord.h (lrecord_type): Added devmode lrecord type.
10058
10059 2000-07-02  Mike Sperber <mike@xemacs.org>
10060
10061         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10062         FreeBSD 4.0.
10063
10064 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10065
10066         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10067         integer.
10068
10069 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10070
10071         * data.c (Fstring_to_number): Don't recognize floating point if
10072         base is not 10.
10073
10074 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10075
10076         * glyphs-widget.c (tab_control_query_geometry):
10077         (widget_query_geometry):
10078         (button_query_geometry):
10079         * glyphs.c (text_query_geometry):
10080         Enforce type correctness.
10081
10082 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10083
10084         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10085         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10086
10087 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10088
10089         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10090         conflicts with gcc's fixincluded version of FOO.h.
10091
10092         * glyphs.h (image_instance_geometry): Remove trailing `,'
10093
10094 2000-06-08  Mike Alexander  <mta@arbortext.com>
10095
10096         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10097         (shove_thread): Don't write the same output twice
10098         (make_ntpipe_output_stream): Increase priority of shove thread
10099         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10100         chance to run
10101         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10102         it.
10103
10104 2000-06-12  Ben Wing  <ben@xemacs.org>
10105
10106         * s\mingw32.h (sigset):
10107         * s\windowsnt.h (sigset):
10108         rename msw_ to mswindows_ for consistency with general convention.
10109
10110 2000-06-12  Ben Wing  <ben@xemacs.org>
10111
10112         * console-msw.c:
10113         * console-msw.c (mswindows_get_console_hwnd):
10114         * console-msw.c (mswindows_ensure_console_allocated):
10115         * console-msw.c (mswindows_hide_console):
10116         * console-msw.c (mswindows_show_console):
10117         * console-msw.c (mswindows_ensure_console_buffered):
10118         * console-msw.c (mswindows_output_console_string):
10119         * console-msw.c (mswindows_windows9x_p):
10120         * console-msw.h:
10121         * device-msw.c (mswindows_get_workspace_coords):
10122         * device-msw.c (mswindows_device_system_metrics):
10123         * dialog-msw.c (mswindows_popup_dialog_box):
10124         * event-msw.c (mswindows_wnd_proc):
10125         * frame-msw.c (mswindows_size_frame_internal):
10126         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10127         * menubar-msw.c (displayable_menu_item):
10128         * menubar-msw.c (mswindows_char_is_accelerator):
10129         * nt.c:
10130         * nt.c (mswindows_sigset):
10131         * nt.c (mswindows_sigrelse):
10132         * nt.c (mswindows_sigpause):
10133         * nt.c (mswindows_raise):
10134         * nt.c (timer_proc):
10135         * ntproc.c:
10136         * ntproc.c (find_child_console):
10137         * ntproc.c (sys_kill):
10138         * print.c:
10139         * print.c (std_handle_out_external):
10140         * process-nt.c (find_child_console):
10141         * process-nt.c (send_signal_the_95_way):
10142         * process-nt.c (ensure_console_window_exists):
10143         * process-nt.c (nt_create_process):
10144         * syssignal.h:
10145         rename msw_ to mswindows_ for consistency with general convention.
10146
10147         * emacs.c:
10148         * dumper.c:
10149         include nt.h, not syswindows.h.
10150
10151         * nt.c (mswindows_fstat):
10152         * nt.c (mswindows_stat):
10153         prefix mswindows_ instead of attempting to directly override the
10154         library functions.  fix declarations.
10155
10156         * nt.h:
10157         include syswindows.h.  move some sysdep.h stuff here.
10158
10159         * ntheap.h:
10160         include syswindows.h, not <windows.h>.
10161
10162         * ntplay.c:
10163         clean up headers.
10164
10165         * sysdep.c:
10166         clean up headers.
10167
10168         * sysdep.c (sys_fstat):
10169         * sysdep.c (sys_stat):
10170         call mswindows versions when appropriate.
10171
10172         * sysdep.h:
10173         move mswin decls to nt.h.
10174
10175         * syswindows.h:
10176         add long comment describing appropriate use of the various windows
10177         headers.
10178
10179 2000-06-11  Ben Wing  <ben@xemacs.org>
10180
10181         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10182
10183 2000-06-10  Ben Wing  <ben@xemacs.org>
10184
10185         * Makefile.in.in (release):
10186         Correction to make sure xemacs.exe always dumped when correct.
10187
10188         * alloca.c:
10189         * balloon_help.c:
10190         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10191
10192         * buffer.c (set_buffer_internal):
10193         [[[[2]]]]: Remove HAVE_FEP code.
10194
10195         * buffer.c (init_initial_directory):
10196         [3].
10197
10198         * bytecode.c:
10199         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10200         individual files.
10201
10202         * callproc.c:
10203         * callproc.c (call_process_cleanup):
10204         * callproc.c (Fold_call_process_internal):
10205         * callproc.c (child_setup):
10206         * callproc.c (getenv_internal):
10207         * callproc.c (init_callproc):
10208         * callproc.c (vars_of_callproc):
10209         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10210         __CYGWIN32__ -> CYGWIN.
10211         DOS_NT -> WIN32_NATIVE.
10212         Remove MSDOS support/references, converting to WIN32_NATIVE
10213           where correct.
10214         __MINGW32__ -> MINGW.
10215         Fix windows.h includes.
10216         Remove bogus HAVE_NTGUI.
10217
10218         * config.h.in:
10219         [2].
10220
10221         * console-msw.c:
10222         mswindows_message_outputted added for use in allowing startup
10223         errors on the console to be seen.
10224
10225         * console-msw.c (msw_ensure_console_allocated):
10226         * console-msw.c (msw_output_console_string):
10227         * console-msw.c (DHEADER):
10228         * console-msw.c (DOPAQUE_DATA):
10229         * console-msw.c (DEVENT):
10230         * console-msw.c (DCONS):
10231         * console-msw.c (DCONSCDR):
10232         * console-msw.c (DSTRING):
10233         * console-msw.c (DVECTOR):
10234         * console-msw.c (DSYMBOL):
10235         * console-msw.c (DSYMNAME):
10236         Fix warnings.
10237
10238         * console-stream.c (stream_init_console):
10239         Fix text/binary problems.
10240
10241         * device-msw.c:
10242         * device-msw.c (mswindows_finish_init_device):
10243         * device-msw.c (mswindows_delete_device):
10244         [1].
10245
10246         * device.c (handle_asynch_device_change):
10247         [3].
10248
10249         * dgif_lib.c:
10250         * dgif_lib.c (DGifOpenFileName):
10251         * dgif_lib.c (DGifOpenFileHandle):
10252         * dgif_lib.c (DGifGetLine):
10253         * dgif_lib.c (DGifGetPixel):
10254         Added config.h/lisp.h, fix up includes.
10255         [1].
10256
10257         * dired-msw.c:
10258         [4].
10259
10260         * dired.c:
10261         * dired.c (file_name_completion):
10262         * dired.c (Ffile_attributes):
10263         * dired.c (syms_of_dired):
10264         [1].
10265
10266         * dumper.c:
10267         * dumper.c (pdump_file_unmap):
10268         * dumper.c (pdump_load):
10269         [1].
10270
10271         * editfns.c:
10272         * editfns.c (Ftemp_directory):
10273         * editfns.c (user_login_name):
10274         * editfns.c (Fuser_real_login_name):
10275         * editfns.c (get_home_directory):
10276         [1].
10277
10278         * elhash.c (finish_marking_weak_hash_tables):
10279         [[[[5]]]]: Fix GCC warnings.
10280
10281         * emacs.c:
10282         * emacs.c (mswindows_handle_hardware_exceptions):
10283         * emacs.c (make_arg_list_1):
10284         * emacs.c (main_1):
10285         * emacs.c (Fkill_emacs):
10286         * emacs.c (Fdump_emacs):
10287         [1].
10288         Fix problems with nested crashes, add long comment.
10289
10290         * event-Xt.c (init_event_Xt_late):
10291         [1].
10292
10293         * event-msw.c:
10294         * event-msw.c (mswindows_dde_callback):
10295         * event-msw.c (mswindows_handle_sticky_modifiers):
10296         * event-msw.c (mswindows_wnd_proc):
10297         [1].
10298         [5].
10299
10300         * events.c (character_to_event):
10301         [1].
10302
10303         * fileio.c:
10304         * fileio.c (Ffile_name_directory):
10305         * fileio.c (Ffile_name_nondirectory):
10306         * fileio.c (directory_file_name):
10307         * fileio.c (Fexpand_file_name):
10308         * fileio.c (Fsubstitute_in_file_name):
10309         * fileio.c (Ffile_name_absolute_p):
10310         * fileio.c (check_executable):
10311         * fileio.c (Ffile_readable_p):
10312         * fileio.c (Ffile_accessible_directory_p):
10313         * fileio.c (Ffile_modes):
10314         * fileio.c (Funix_sync):
10315         * fileio.c (vars_of_fileio):
10316         [1]. [4].
10317
10318         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10319
10320         Expand getdefdir defn.
10321         Fix bogus rename() comment.
10322
10323         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10324         to use standard XEmacs include files, e.g. sysfile.h, rather
10325         than system-specific includes.
10326
10327         * fns.c:
10328         * fns.c (Fsubseq):
10329         [5]. [6].
10330
10331         * frame.c (vars_of_frame):
10332         [1].
10333
10334         * getloadavg.c:
10335         * getloadavg.c (getloadavg):
10336         [1]. [6].
10337         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10338         (We don't use it elsewhere in the code; just add a comment.)
10339
10340         * gif_io.c:
10341         [6].
10342         Add config.h.
10343
10344         * glyphs-msw.c:
10345         * glyphs-msw.c (mswindows_resource_instantiate):
10346         [1].
10347
10348         * glyphs-x.c (x_native_layout_instantiate):
10349         [5].
10350
10351         * gui-msw.c (Fmswindows_shell_execute):
10352         [1].
10353
10354         * insdel.c:
10355         [4].
10356
10357         * lisp.h:
10358         [4]. [5].
10359
10360         * lread.c (locate_file_in_directory_mapper):
10361         [1].
10362
10363         * lstream.c:
10364         [4].
10365
10366         * mem-limits.h:
10367         * mem-limits.h (get_lim_data):
10368         [1].
10369
10370         * menubar-msw.c:
10371         [4].
10372
10373         * ndir.h:
10374         [1].
10375
10376         * nt.c:
10377         * nt.c (getwd):
10378         * nt.c (closedir):
10379         * nt.c (rva_to_section):
10380         * nt.c (mswindows_executable_type):
10381         [1]. [6].
10382         Fix closedir() defn.
10383
10384         * nt.h:
10385         [[[[8]]]]: *_OK defs moved to sysfile.h.
10386
10387         * ntproc.c:
10388         [6]. [7].
10389
10390         * objects-x.c:
10391         [4].
10392
10393         * print.c:
10394         * print.c (std_handle_out_external):
10395         [1]. [4].
10396
10397         * process-nt.c:
10398         * process-nt.c (nt_create_process):
10399         [6].
10400         try to fix process quoting somewhat.
10401
10402         * process-unix.c (unix_create_process):
10403         [1].
10404
10405         * process.c:
10406         * process.c (vars_of_process):
10407         Add Vnull_device.
10408
10409         * process.h:
10410         [1].
10411
10412         * realpath.c:
10413         * realpath.c (xrealpath):
10414         [1].
10415
10416         * redisplay-tty.c (init_tty_for_redisplay):
10417         [3].
10418
10419         * redisplay.c:
10420         [4]. [6].
10421
10422         * scrollbar-msw.c:
10423         [4].
10424
10425         * sheap.c:
10426         * sheap.c (more_static_core):
10427         * sheap.c (report_sheap_usage):
10428         [5]. [6].
10429
10430         * signal.c:
10431         * signal.c (alarm_signal):
10432         [1]. [6].
10433
10434         * sound.c:
10435         [6].
10436
10437         * strftime.c:
10438         * strftime.c (zone_name):
10439         [1]. [5].
10440
10441         * symsinit.h (init_sunpro):
10442         [1].
10443
10444         * syscommctrl.h:
10445         commctrl.h not in Cygwin b20.1.
10446
10447         * sysdep.c:
10448         * sysdep.c (endif):
10449         * sysdep.c (sys_subshell):
10450         * sysdep.c (init_baud_rate):
10451         * sysdep.c (emacs_get_tty):
10452         * sysdep.c (emacs_set_tty):
10453         * sysdep.c (tty_init_sys_modes_on_device):
10454         * sysdep.c (init_system_name):
10455         * sysdep.c (sys_open):
10456         * sysdep.c (interruptible_open):
10457         * sysdep.c (sys_fopen):
10458         * sysdep.c (sys_mkdir):
10459         * sysdep.c (sys_rename):
10460         * sysdep.c (get_process_times_1):
10461         [1]. [6].
10462
10463         * sysdep.h:
10464         [1].
10465
10466         * sysdir.h:
10467         * sysdir.h (DIRENTRY_NONEMPTY):
10468         [1]. [6].
10469
10470         * sysdll.c (dll_init):
10471         * sysdll.h:
10472         [1].
10473
10474         * sysfile.h:
10475         [1]. [6]. [8].
10476         added text/binary defs.
10477
10478         * sysfloat.h:
10479         [1].
10480
10481         * sysproc.h:
10482         * sysproc.h (EDESTADDRREQ):
10483         * sysproc.h (poll_fds_for_input):
10484         [1]. [6].
10485
10486         * syspwd.h:
10487         [6].
10488
10489         * syssignal.h:
10490         [1].
10491
10492         * systime.h:
10493         [1]. [6].
10494
10495         * systty.h:
10496         [1].
10497
10498         * syswindows.h:
10499         [1].
10500         Always define WIN32_LEAN_AND_MEAN.
10501
10502         * unexcw.c (unexec):
10503         [5].
10504
10505         * unexec.c:
10506         * unexec.c (copy_text_and_data):
10507         * unexec.c (adjust_lnnoptrs):
10508         [1].
10509
10510         * unexnt.c:
10511         * unexnt.c (_start):
10512         [1].
10513
10514 2000-06-07  Ben Wing  <ben@xemacs.org>
10515
10516         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
10517         was used only as a model.  We've long since extracted any useful
10518         logic or code out of this. (I just did an exhaustive search.)
10519
10520         * s\msdos.h: Removed.
10521
10522         * s\windows95.h: Removed.
10523
10524 2000-06-10  Ben Wing  <ben@xemacs.org>
10525
10526         * s\cygwin32.h:
10527         [1]. [5].
10528         Don't use extern with fun defs.
10529
10530         * s\mingw32.h:
10531         [1]. [7].
10532         Remove nt\inc include.
10533         Remove getdisk, getdefdir. (The former is unused, the latter
10534         expanded in fileio.h.)
10535
10536         * s\windowsnt.h:
10537         * s\windowsnt.h (WIN32_NATIVE):
10538         * s\windowsnt.h (HAVE_STRCASECMP):
10539         [1]. [7].
10540         Add long comment about preprocessor changes.
10541         Remove getdisk, getdefdir. (The former is unused, the latter
10542         expanded in fileio.h.)
10543
10544 2000-06-10  Ben Wing  <ben@xemacs.org>
10545
10546         * m\arm.h:
10547         * m\delta.h:
10548         * m\intel386.h:
10549         * m\sequent.h:
10550         * m\template.h:
10551         * m\windowsnt.h:
10552         [1].
10553         Remove bogus/unused NO_SOCK_SIGIO.
10554
10555 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
10556
10557         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
10558         not an Emchar.
10559
10560 2000-06-04  Mike Sperber <mike@xemacs.org>
10561
10562         * casetab.c (set_case_table): For `set-standard-case-table',
10563         actually deposit the new case tables where the rest of XEmacs can
10564         see them.
10565
10566 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
10567
10568         * data.c (Faset): Don't cast XCHAR() to unsigned char.
10569
10570 2000-06-05  Ben Wing  <ben@xemacs.org>
10571
10572         * callproc.c (child_setup): Don't do close_load_descs() under
10573         MS Windows.  Put in a comment explaining why.
10574
10575 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
10576
10577         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
10578         Toolkit shell" which breaks `kill-compilation' on Windows NT
10579         native, retaining STDERR handling improvements.
10580
10581 2000-06-01  Andreas Jaeger  <aj@suse.de>
10582
10583         * s/s390.h: Support for S390, based on a patch by Martin
10584         Schwidefsky <schwidefsky@de.ibm.com>.
10585
10586 2000-05-30  Andy Piper  <andy@xemacs.org>
10587
10588         * window.c (allocate_window):
10589         (make_dummy_parent):
10590         (Fset_window_configuration): use new hashtable type.
10591
10592         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
10593         (struct image_instantiator_methods):
10594         (struct Lisp_Image_Instance): make instance geometry signed.
10595
10596         * glyphs.c (instantiate_image_instantiator):
10597         (image_instance_query_geometry):
10598         (image_instance_layout):
10599         (image_instance_layout):
10600         (query_string_geometry):
10601         (text_query_geometry):
10602         (image_instantiate):
10603         (image_instantiate):
10604         (cache_subwindow_instance_in_frame_maybe):
10605         (subwindow_query_geometry): make instance geometry signed.
10606
10607         * glyphs-widget.c (widget_query_geometry):
10608         (widget_layout):
10609         (button_query_geometry):
10610         (tree_view_query_geometry):
10611         (tab_control_query_geometry):
10612         (layout_query_geometry):
10613         (layout_layout):
10614         (native_layout_layout): make instance geometry signed.
10615
10616 2000-05-29  Olivier Galibert  <galibert@pobox.com>
10617
10618         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
10619         constant.
10620
10621         * general.c (syms_of_general): Add Qfull_assoc symbol.
10622
10623         * data.c (finish_marking_weak_lists): Mark full-assoc lists
10624         correctly.
10625         (decode_weak_list_type): Decode full-assoc type.
10626         (encode_weak_list_type): Encode full-assoc type.
10627         (Fmake_weak_list): Update doc string.
10628
10629 2000-05-30  Andy Piper  <andy@xemacs.org>
10630
10631         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
10632
10633         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
10634         (decode_hash_table_weakness): ditto.
10635         (Fhash_table_weakness): ditto.
10636         (Fhash_table_type): ditto.
10637         (finish_marking_weak_hash_tables): ditto.
10638         (hash_table_weakness_validate): ditto.
10639         (syms_of_elhash): ditto.
10640
10641 2000-05-28  Martin Buchholz <martin@xemacs.org>
10642
10643         * XEmacs 21.2.34 is released.
10644
10645 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
10646
10647         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
10648         start cache.
10649         (updating_line_start_cache): Gone.
10650         (regenerate_window): Replace resetting of VERTICAL_CLIP by
10651         generic code to force a minimum of 1 line laid out in the
10652         CMOTION_DISP case.
10653
10654 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
10655
10656         * glyphs.c (instantiate_image_instantiator): Check for initialized
10657         height & width no longer special cases IMAGE_NOTHING.
10658         (nothing_instantiate): Set height and width of instance.
10659
10660 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10661
10662         * unexelf.c (unexec): Search for ".data" section.
10663         Initialize new_data2_offset from old_data_index.
10664         Remove redundant check for ElfW.
10665
10666 2000-05-23  Andy Piper  <andy@xemacs.org>
10667
10668         * glyphs.c (get_image_instantiator_governing_domain): allow more
10669         specific domains as the governing domain rather than expecting an
10670         exact match. This fixes problems with layouts.
10671
10672 2000-05-22  Andy Piper  <andy@xemacs.org>
10673
10674         * redisplay-output.c (compare_runes): check for non-images
10675
10676         * glyphs.c (set_glyph_dirty_p): ditto.
10677         (update_glyph_cachel_data): ditto.
10678
10679         * glyphs-widget.c (layout_post_instantiate): ditto.
10680         (layout_post_instantiate): ditto.
10681
10682         * event-msw.c (mswindows_wnd_proc): warning removal.
10683
10684 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
10685
10686         * s\mingw32.h: Added #undef for CLASH_DETECTION.
10687
10688         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
10689
10690         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
10691
10692         * nt.c (rva_to_section): mingw32 needs rva_to_section.
10693         (mswindows_executable_type): mingw32 now has enough headers for
10694         this to work.
10695
10696 2000-05-20  Andy Piper  <andy@xemacs.org>
10697
10698         * console-msw.c (mswindows_output_last_error): ; -> ,
10699
10700 2000-05-12  Andy Piper  <andy@xemacs.org>
10701
10702         * console-msw.c (FROB): compare ints with ints.
10703
10704 2000-05-11  Andy Piper  <andy@xemacs.org>
10705
10706         * glyphs-x.c (x_finalize_image_instance): make minimal build
10707         happy.
10708
10709 2000-05-20  Ben Wing  <ben@xemacs.org>
10710
10711         * event-Xt.c:
10712         * event-Xt.c (vars_of_event_Xt):
10713         move modifier-keys-are-sticky to event-stream.c.
10714
10715         * event-msw.c:
10716         * event-msw.c (mswindows_enqueue_mouse_button_event):
10717         * event-msw.c (key_needs_default_processing_p):
10718         * event-msw.c (XEMSW_LCONTROL):
10719         * event-msw.c (mswindows_handle_sticky_modifiers):
10720         * event-msw.c (FROB):
10721         * event-msw.c (clear_sticky_modifiers):
10722         * event-msw.c (output_modifier_keyboard_state):
10723         * event-msw.c (output_alt_keyboard_state):
10724         * event-msw.c (mswindows_wnd_proc):
10725         * event-msw.c (mswindows_modifier_state):
10726         * event-msw.c (emacs_mswindows_handle_magic_event):
10727         implement sticky modifiers.
10728
10729         * event-stream.c:
10730         * event-stream.c (vars_of_event_stream):
10731         move modifier-keys-are-sticky here.
10732
10733         * lisp.h:
10734         add CHECK_FUNCTION.
10735
10736         * rangetab.c:
10737         implement map-range-table.
10738
10739
10740 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
10741
10742         * redisplay-tty.c (reset_tty_modes):
10743         (tty_redisplay_shutdown): Adjust argument type to
10744         tty_frame_output_end.
10745
10746 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
10747
10748         * eval.c (Fbacktrace): Don't output a line with only right
10749         parenthesis.
10750
10751 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
10752
10753         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
10754         (Fpq_reset_poll): Ditto.
10755
10756 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
10757
10758         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
10759
10760 2000-05-16  Ben Wing  <ben@xemacs.org>
10761
10762         * buffer.c:
10763         * buffer.c (dfc_convert_to/from_internal_format):
10764         * buffer.c (reinit_vars_of_buffer):
10765         Fix conversion functions to allow reentrancy.
10766
10767         * console-msw.c:
10768         * console-msw.c (mswindows_output_last_error):
10769         New fun, generally useful -- output a human-readable
10770         version of GetLastError() on the console.
10771
10772         * console-msw.h:
10773         * console-msw.h (struct mswindows_frame):
10774         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
10775
10776         * console-stream.c (stream_output_begin):
10777         * console-stream.c (stream_output_end):
10778         * console-stream.c (stream_output_vertical_divider):
10779         * console-stream.c (stream_clear_region):
10780         * console-stream.c (stream_flash):
10781         * console-stream.c (console_type_create_stream):
10782         Delete blank stream methods, not needed.
10783
10784         * console.h (struct console_methods):
10785         Split begin/end methods into window and frame.
10786
10787         * event-msw.c:
10788         * event-msw.c (mswindows_handle_paint):
10789         * event-msw.c (output_alt_keyboard_state):
10790         * event-msw.c (mswindows_wnd_proc):
10791         * event-msw.c (vars_of_event_mswindows):
10792         Comment about problems with ignored-expose.
10793         Define mswindows-debug-events; not really implemented.
10794
10795         * frame-msw.c (mswindows_init_frame_1):
10796         random cleanups.
10797
10798         * glyphs-msw.c:
10799         * glyphs-msw.c (begin_defer_window_pos):
10800         * glyphs-msw.c (mswindows_unmap_subwindow):
10801         * glyphs-msw.c (mswindows_map_subwindow):
10802         * glyphs-msw.c (mswindows_resize_subwindow):
10803         Use DeferWindowPos to reduce flashing when mapping/unmapping.
10804
10805         * glyphs.c (make_image_instance_1):
10806         Fix crash.
10807
10808         * gutter.c (Fredisplay_gutter_area):
10809         Use new begin/end methods.
10810
10811         * lisp.h (Dynarr_new2):
10812         New creation fun.
10813
10814         * redisplay-msw.c:
10815         * redisplay-msw.c (mswindows_frame_output_begin):
10816         * redisplay-msw.c (mswindows_frame_output_end):
10817         * redisplay-msw.c (console_type_create_redisplay_mswindows):
10818         New begin/end methods -- handle DeferWindowPos.
10819
10820         * redisplay-output.c (redisplay_move_cursor):
10821         * redisplay-output.c (redraw_cursor_in_window):
10822         * redisplay-output.c (redisplay_update_line):
10823         * redisplay-output.c (redisplay_output_window):
10824         New begin/end methods.
10825
10826         * redisplay-tty.c:
10827         * redisplay-tty.c (tty_frame_output_begin):
10828         * redisplay-tty.c (tty_frame_output_end):
10829         * redisplay-tty.c (console_type_create_redisplay_tty):
10830         New begin/end methods.
10831
10832         * redisplay-x.c:
10833         * redisplay-x.c (x_window_output_begin):
10834         * redisplay-x.c (x_window_output_end):
10835         * redisplay-x.c (console_type_create_redisplay_x):
10836         New begin/end methods.
10837
10838         * redisplay.c (redisplay_frame):
10839         * redisplay.c (Fredisplay_echo_area):
10840         New begin/end methods.
10841         use MAYBE_DEVMETH for clear_frame; it may not exist.
10842
10843         * window.h (WINDOW_XFRAME):
10844         WINDOW_XFOO macros -- get locale and decode struct pointer.
10845
10846
10847 2000-05-12  Ben Wing  <ben@xemacs.org>
10848
10849         * emacs.c:
10850         * emacs.c (ensure_no_quitting_from_now_on):
10851         * emacs.c (fatal_error_signal):
10852         * emacs.c (mswindows_handle_hardware_exceptions):
10853         * emacs.c (main):
10854         * emacs.c (Fkill_emacs):
10855         * emacs.c (shut_down_emacs):
10856         * emacs.c (assert_failed):
10857         various improvements in fatal error handling.
10858
10859         * eval.c:
10860         move preparing_for_armageddon to emacs.c.
10861
10862         * lisp.h:
10863         declare fatal_error_in_progress.
10864
10865         * print.c:
10866         * print.c (std_handle_out_external):
10867         * print.c (std_handle_out_va):
10868         * print.c (stderr_out):
10869         * print.c (stdout_out):
10870         use console under mswin when no standard output.
10871         don't do code conversion during fatal error.
10872
10873         * scrollbar.c (Fscrollbar_page_up):
10874         * scrollbar.c (Fscrollbar_page_down):
10875         fix missing else.  reindent.
10876
10877 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
10878
10879         Emergency fix.
10880
10881         * glyphs.h (GLYPH_CACHEL_DESCENT):
10882         (GLYPH_CACHEL_DESCENT):
10883         (GLYPH_CACHEL_DESCENT):
10884         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
10885         used in case these are inline functions.
10886         Use more absurd values to error check.
10887
10888         include window.h for error check functions.
10889
10890 2000-05-11  Ben Wing  <ben@xemacs.org>
10891
10892         * cmdloop.c (Freally_early_error_handler):
10893         Display message box under windows; otherwise, message will disappear
10894         before it can be viewed.
10895
10896         * console-msw.c:
10897         * console-msw.c (Fmswindows_message_box):
10898         * console-msw.c (FROB):
10899         * console-msw.c (syms_of_console_mswindows):
10900         Define new fun `mswindows-message-box'.
10901         #### I will merge this into `popup-dialog-box'; just give me
10902         a bit of time.
10903
10904         * general.c:
10905         * general.c (syms_of_general):
10906         Some new symbols used in `mswindows-message-box'.
10907
10908         * glyphs.c:
10909         * glyphs.c (Fset_image_instance_property):
10910         put warning in this fun.
10911
10912         * glyphs.h:
10913         * glyphs.h (GLYPH_CACHEL_WIDTH):
10914         * glyphs.h (GLYPH_CACHEL_ASCENT):
10915         * glyphs.h (GLYPH_CACHEL):
10916         * glyphs.h (GLYPH_CACHEL_GLYPH):
10917         define error-checking versions to try to catch a bug i've seen --
10918         redisplay gets in an infinite loop because the glyph width of the
10919         continuation glyph is 65535.
10920
10921         * lisp.h:
10922         Extern message-box stuff.
10923
10924         * window.c (allocate_window):
10925         * window.c (make_dummy_parent):
10926         * window.c (Fset_window_configuration):
10927         Use EQUAL not EQ for subwindow caches to make them work a bit
10928         better. (Something is still very broken.)
10929
10930
10931 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
10932
10933         * glyphs.c (image_instantiate): Suppress gcc warnings.
10934         (Fmake_image_instance): Fix doc string.
10935         * specifier.c (Fmake_specifier): Ditto.
10936
10937 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
10938
10939         * paths.h.in (PATH_LOCK): Removed.
10940         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
10941         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
10942
10943 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10944
10945         * fns.c (Ffeaturep): Update e-mail address in doc-string.
10946         Document (featurep '(and xemacs 21.02)).
10947
10948 2000-05-09  Ben Wing  <ben@xemacs.org>
10949
10950         * buffer.c (complex_vars_of_buffer):
10951         update modeline-format doc.
10952
10953         * device.h:
10954         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
10955
10956         * emacs.c:
10957         timeline of all released versions of Emacs, for use in creating
10958         authorship comments and in synching up.
10959
10960         * glyphs-widget.c (image_instantiator_buttons):
10961         * glyphs-widget.c (image_instantiator_edit_fields):
10962         * glyphs-widget.c (image_instantiator_combo_box):
10963         * glyphs-widget.c (image_instantiator_scrollbar):
10964         * glyphs-widget.c (image_instantiator_progress_guage):
10965         * glyphs-widget.c (image_instantiator_tree_view):
10966         * glyphs-widget.c (image_instantiator_tab_control):
10967         * glyphs-widget.c (image_instantiator_labels):
10968         * glyphs-widget.c (image_instantiator_layout):
10969         * glyphs-widget.c (image_instantiator_native_layout):
10970         rename decode_domain method to governing_domain.
10971
10972         * glyphs.c:
10973         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
10974         * glyphs.c (add_entry_to_device_ii_format_list):
10975         make sure we don't put an entry more than once into the list.
10976         * glyphs.c (check_instance_cache_mapper):
10977         *************************************************************
10978         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
10979         HAVE BEEN GETTING.
10980         *************************************************************
10981         * glyphs.c (get_image_instantiator_governing_domain):
10982         clean up, expand on new concept of governing domain.
10983         * glyphs.c (instantiate_image_instantiator):
10984         * glyphs.c (allocate_image_instance):
10985         use governing_domain instead of cache_domain in naming.
10986         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
10987         * glyphs.c (make_image_instance_1):
10988         * glyphs.c (Fmake_image_instance):
10989         allow for any domain (not just device), and process the
10990         governing domain correctly.  very big doc fix.
10991         * glyphs.c (Fimage_instance_domain):
10992         new primitive, to retrieve the governing domain of an image instance.
10993         * glyphs.c (image_instantiate):
10994         use new governing_domain stuff.  this fixes a crash you could get
10995         by instantiating certain widget glyphs in frame locales. (should
10996         signal an error instead of crashing.)
10997         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
10998         * glyphs.c (Fglyphp): clean up doc.
10999         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11000         * glyphs.c (syms_of_glyphs):
11001         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11002         * glyphs.c (image_instantiator_format_create): add some comments about
11003         bogus code.
11004         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11005         for current-display-table. (Apparently Hrjove implemented in 1998 a
11006         design I wrote up in 1996, but didn't update the doc string.)
11007
11008         * glyphs.h: clean up a doc string.
11009         * glyphs.h (governing_domain):
11010         * glyphs.h (struct image_instantiator_methods):
11011         changes for governing_domain stuff.
11012
11013         * gutter.c:
11014         * gutter.c (Fgutter_specifier_p):
11015         * gutter.c (Fgutter_size_specifier_p):
11016         * gutter.c (Fgutter_visible_specifier_p):
11017         * objects.c:
11018         * objects.c (Fcolor_specifier_p):
11019         * objects.c (Ffont_specifier_p):
11020         * objects.c (Fface_boolean_specifier_p):
11021         doc strings moved to make-*-specifier.
11022
11023         * redisplay.c (add_disp_table_entry_runes_1):
11024         * redisplay.c (generate_fstring_runes):
11025         * redisplay.c (screen):
11026         add random comments and doc strings.
11027
11028         * specifier.c:
11029         * specifier.c (Fmake_specifier):
11030         major overhaul of this doc string.
11031
11032         * specifier.c (Fvalid_specifier_domain_p):
11033         comment about the bogosity of image instances being domains.
11034         * specifier.c (decode_domain):
11035         now non-static, used in glyphs.c.
11036         * specifier.c (specifier_instance):
11037         comment about the bogosity of image instances being domains.
11038         * specifier.c (Fgeneric_specifier_p):
11039         move doc string to make-generic-specifier.
11040         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11041         rebackslashify.
11042
11043         * specifier.h:
11044         * specifier.h (DOMAIN_FRAME):
11045         * specifier.h (DOMAIN_LIVE_P):
11046         * specifier.h (DOMAIN_XDEVICE):
11047         rebackslashify.
11048         add comments about problems with these macros.
11049         prototype for decode_domain.
11050
11051         * toolbar.c:
11052         * toolbar.c (Ftoolbar_specifier_p):
11053         move doc string to `make-toolbar-specifier'.
11054
11055         * window.c (window_unmap_subwindows_cache_mapper):
11056         *************************************************************
11057         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11058         HAVE BEEN GETTING.
11059         *************************************************************
11060
11061 2000-05-09  Andy Piper  <andy@xemacs.org>
11062
11063         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11064
11065         * window.c (Fset_window_configuration): reset the frame subwindow
11066         cache and re-initialize the window subwindow caches.
11067
11068         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11069
11070 2000-05-09  Ben Wing  <ben@xemacs.org>
11071
11072         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11073         DWORD.
11074
11075 2000-04-26  Mike Woolley  <mike@bulsara.com>
11076
11077         * ntheap.c: Changed recreate_heap to limit the amount reserved
11078         for the heap to that which is actually available. Also now
11079         displays a message box (with some dignostics) in the event that
11080         it still can't start.
11081
11082 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11083
11084         * callproc.c (Fold_call_process_internal): GCPRO path
11085
11086 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11087
11088         Patch by Bill Perry.
11089
11090         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11091         back data instead of #ifdef.
11092         (Fscrollbar_page_down): ditto.
11093
11094 2000-05-07  Ben Wing  <ben@xemacs.org>
11095
11096         * buffer.h:
11097         Kludge for defining Qmswindows_tstr.
11098
11099         * nt.c:
11100         * nt.c (open_input_file):
11101         * nt.c (open_output_file):
11102         * nt.c (rva_to_section):
11103         * nt.c (mswindows_executable_type):
11104         Move all memory-mapped-file routines here (some were in unexnt.c,
11105         which is bad because they are used by process-nt.c, and unexnt
11106         won't be around when portable dumping).  Synched the above routines
11107         with FSF 20.6.
11108
11109         * nt.h:
11110         Removed ifdef'd out bogus code.
11111         Fixed some prototypes.
11112
11113         * nt.h (file_data):
11114         * nt.h (OFFSET_TO_RVA):
11115         * nt.h (RVA_TO_OFFSET):
11116         * nt.h (RVA_TO_PTR):
11117         Moved the memory-mapped-file structures, macros and prototypes
11118         here, to parallel nt.c.  ntheap.h should really be removed
11119         entirely, and it's a non-portable-dumper specific file.
11120
11121         * ntheap.h (round_to_next):
11122         Moved the memory-mapped-file structures, macros and prototypes
11123         to nt.h.
11124
11125         * ntproc.c (compare_env):
11126         Moved rva_to_section and mswindows_executable_type to nt.c.
11127         Moved compare_env to process-nt.c.
11128         ntproc.c will die, one day.
11129
11130         * ntproc.c (sys_spawnve):
11131         Account for win32_ -> mswindows_.
11132
11133         * process-nt.c:
11134         * process-nt.c (struct nt_process_data):
11135         * process-nt.c (ensure_console_window_exists):
11136         * process-nt.c (compare_env):
11137         * process-nt.c (nt_create_process):
11138         * process-nt.c (nt_kill_process_by_pid):
11139         * process-nt.c (syms_of_process_nt):
11140         * process-nt.c (vars_of_process_nt):
11141         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11142         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11143         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11144         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11145         Move compare_env here from ntproc.c.
11146
11147         * process.c (Fprocess_send_region):
11148         Takes an optional fourth argument, BUFFER, which should fix some
11149         problems with call-process.
11150
11151         * syscommctrl.h:
11152         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11153
11154         * syswindows.h:
11155         Move ICC_BAR_CLASSES to syscommctrl.h.
11156         Add preliminary macros for MSWindows/Mule.  More to come.
11157
11158         * unexnt.c:
11159         * unexnt.c (unexec):
11160         open_output_file moved to nt.c.
11161
11162
11163 2000-05-05  Andy Piper  <andy@xemacs.org>
11164
11165         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11166         instance from the frame cache also since GC may catch up too late
11167         to make frame deletion sane.
11168
11169 2000-05-04  Andy Piper  <andy@xemacs.org>
11170
11171         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11172         (x_finalize_image_instance): ungcpro on deletion.
11173
11174         * glyphs.c (image_instantiator_format_create): give pointers a
11175         query geometry method so that the geometry is at least set.
11176
11177         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11178         initialize layouts if using widgets.
11179
11180 2000-05-03  Andy Piper  <andy@xemacs.org>
11181
11182         * nt.c: remove bogus reference to sysmmsystem.h
11183
11184         * gui-x.c (popup_selection_callback): fix no selection abort.
11185
11186 2000-05-02  Andy Piper  <andy@xemacs.org>
11187
11188         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11189         (mswindows_widget_instantiate): ditto.
11190
11191         * glyphs-widget.c (initialize_widget_image_instance): initialize
11192         children correctly.
11193         (widget_instantiate): cope with children and items in the same
11194         instance.
11195
11196         * glyphs.c (mark_image_instance): cope with children as a first
11197         class member.
11198         (image_instance_equal): ditto.
11199         (image_instance_hash): ditto.
11200         (image_instance_changed): ditto.
11201
11202 2000-04-30  Andy Piper  <andy@xemacs.org>
11203
11204         * glyphs.c (subwindow_query_geometry): new function. Return some
11205         defaults.
11206         (subwindow_instantiate): don't assign dimensions if none have been
11207         given.
11208         (image_instantiator_format_create): add subwindow_query_geometry.
11209         (print_image_instance): cope with layouts as widgets.
11210
11211 2000-04-29  Andy Piper  <andy@xemacs.org>
11212
11213         * frame.c (delete_frame_internal): call
11214         free_frame_subwindow_instance_cache so that all subwindows are
11215         finalized before their parent.
11216         (mark_frame): remove subwindow_cachels.
11217         (Fmake_frame): remove subwindow_cachel manipulation.
11218         (allocate_frame_core): subwindow_instance_cache is a weak list.
11219         (delete_frame_internal): set subwindow_instance_cache to nil.
11220
11221         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11222         finalization safe.
11223         (mswindows_finalize_image_instance): use the device
11224         not the domain as the domain may have died already.
11225
11226         * glyphs-x.c (x_finalize_image_instance): ditto.
11227         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11228         HEIGHT.
11229
11230         * redisplay-output.c (redisplay_unmap_subwindows): update for
11231         subwindow instance cache as a weak list.
11232         (redisplay_unmap_subwindows_maybe): ditto.
11233         (redisplay_unmap_subwindows_except_us): ditto.
11234
11235         * glyphs.c (unmap_subwindow): error checking will check the domain
11236         so don't deal with it here. Don't use cachels anymore.
11237         (map_subwindow): ditto.
11238         (update_subwindow_cachel_data): remove old accessor names.
11239         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11240         (Fresize_subwindow): don't update cachel.
11241         (mark_subwindow_cachels):
11242         (update_subwindow_cachel_data):
11243         (add_subwindow_cachel):
11244         (get_subwindow_cachel_index):
11245         (update_subwindow_cachel):
11246         (reset_subwindow_cachels):
11247         (mark_subwindow_cachels_as_not_updated): deleted.
11248         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11249         subwindow instance to the frame cache.
11250         (find_matching_subwindow): update for subwindow instance cache as
11251         a weak list.
11252         (update_widget_instances): ditto.
11253         (image_instance_type_to_mask):inlined.
11254         (free_frame_subwindow_instance_cache): new function. finalize all
11255         subwindows that are instantiated.
11256
11257         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11258         of cachel information.
11259         (IMAGE_INSTANCE_DISPLAY_X):
11260         (IMAGE_INSTANCE_DISPLAY_Y):
11261         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11262         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11263         (XIMAGE_INSTANCE_DISPLAY_X):
11264         (XIMAGE_INSTANCE_DISPLAY_Y):
11265         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11266         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11267         remove subwindow_cachel structure and function references.
11268         (image_instance_type_to_mask): inline from glyphs.c
11269
11270         * redisplay.c (redisplay_frame): remove subwindow_cachel
11271         references.
11272
11273         * frame.h (struct frame): remove subwindow_cachels.
11274         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11275
11276         * frameslots.h: add subwindow_instance_cache.
11277
11278         * window.c (replace_window): check subwindow cache of replacement.
11279         (window_unmap_subwindows_cache_mapper):
11280         (window_unmap_subwindows): new functions. Unmap all subwindows
11281         cached on this window.
11282         (mark_window_as_deleted): unmap all subwindows.
11283
11284 2000-04-27  Andy Piper  <andy@xemacs.org>
11285
11286         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11287
11288         * glyphs-widget.c (widget_layout): return something.
11289         (layout_layout): return something. Fail if not initialized.
11290         (layout_query_geometry): ditto.
11291         (image_instantiator_native_layout): new function. Initialized the
11292         native layout type.
11293         (widget_instantiate): don't do layout stuff here.
11294
11295         * glyphs.c (instantiate_image_instantiator): reorded calling or
11296         instantiate and post_instantiate with layout in between.
11297         (image_instance_layout): be more selective about deciding whether
11298         the layout has been done or not.
11299
11300         * glyphs.h (struct image_instantiator_methods): return a value
11301         from layout_method.
11302
11303 2000-04-26  Andy Piper  <andy@xemacs.org>
11304
11305         * glyphs.c (allocate_image_instance): make initial width and
11306         height unspecified. Set initialized to 0.
11307
11308         * syscommctrl.h new file. Encapsulates commctrl.h.
11309
11310         * syswindows.h new file. Encapsulates windows.h.
11311
11312         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11313         * nt.c: ditto.
11314         * console-msw.h: ditto.
11315
11316         * redisplay-tty.c (tty_output_display_block): remove layout references.
11317
11318         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11319         window handle rather than just the frame.
11320
11321         * glyphs.c (mark_image_instance): remove layout references.
11322         (print_image_instance): ditto.
11323         (image_instance_equal): ditto.
11324         (image_instance_hash): ditto.
11325         (decode_image_instance_type): ditto.
11326         (encode_image_instance_type): ditto.
11327         (image_instantiate): ditto.
11328         (allocate_glyph): ditto.
11329         (Fimage_instance_height): ditto.
11330         (Fimage_instance_width): ditto.
11331         (update_subwindow): ditto.
11332
11333         * redisplay-x.c (x_output_display_block): recode for layouts as
11334         widgets.
11335
11336         * redisplay-output.c (redisplay_output_layout): recode for layouts
11337         as widgets.
11338         (compare_runes): remove layout references.
11339
11340         * redisplay-msw.c (mswindows_output_display_block): recode for
11341         layouts as widgets.
11342
11343         * glyphs-widget.c (image_instantiator_layout): remove
11344         layout_possible_dest_types.
11345         (layout_possible_dest_types): deleted.
11346
11347         * glyphs.h (image_instance_type): remove layout references.
11348         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11349         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11350         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11351
11352 2000-04-25  Andy Piper  <andy@xemacs.org>
11353
11354         * glyphs-widget.c (image_instantiator_buttons):
11355         (image_instantiator_edit_fields):
11356         (image_instantiator_combo_box):
11357         (image_instantiator_scrollbar):
11358         (image_instantiator_progress_guage):
11359         (image_instantiator_tree_view):
11360         (image_instantiator_tab_control):
11361         (image_instantiator_labels):
11362         (image_instantiator_layout): call default post_instantiate method.
11363         (widget_post_instantiate): new function. Simply lays out the
11364         widgets.
11365
11366         * glyphs.h (struct image_instantiator_methods): add
11367         post_instantiate method.
11368
11369         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11370         method calls.
11371
11372 2000-04-23  Andy Piper  <andy@xemacs.org>
11373
11374         * glyphs.h (struct image_instantiator_methods): add
11375         decode_domain_method.
11376         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11377         derived from the domain.
11378         (IMAGE_INSTANCE_FRAME): new accessor.
11379         (XIMAGE_INSTANCE_FRAME): ditto.
11380
11381         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11382         instead of _SUBWINDOW_FRAME.
11383         (finalize_image_instance): ditto.
11384         (Fimage_instance_foreground): ditto.
11385         (Fimage_instance_background): ditto.
11386         (image_instantiate): ditto.
11387         (update_subwindow_cachel): ditto.
11388         (update_subwindow): ditto.
11389         (unmap_subwindow): ditto.
11390         (map_subwindow): ditto
11391         (subwindow_instantiate): ditto.
11392         * glyphs-msw.c (mswindows_update_widget): ditto.
11393         (mswindows_progress_gauge_instantiate): ditto.
11394         (mswindows_tab_control_update): ditto.
11395         * glyphs-x.c (x_update_widget): ditto.
11396         (x_widget_instantiate): ditto.
11397         (x_tab_control_instantiate): ditto.
11398         (x_tab_control_update): ditto.
11399         * event-msw.c (mswindows_wnd_proc): ditto
11400
11401         * glyphs-widget.c (image_instantiator_layout): use
11402         subwindow_decode_domain.
11403         (image_instantiator_buttons): ditto.
11404         (image_instantiator_edit_fields): ditto.
11405         (image_instantiator_combo_box): ditto.
11406         (image_instantiator_scrollbar): ditto.
11407         (image_instantiator_progress_guage): ditto.
11408         (image_instantiator_tree_view): ditto.
11409         (image_instantiator_tab_control): ditto.
11410         (image_instantiator_labels): ditto.
11411         (image_instantiator_layout): ditto.
11412
11413         * glyphs.c: add instance error checking to many functions.
11414         (instantiate_image_instantiator): decode device from cache_domain.
11415         (image_instantiate): partially rewrite by using
11416         decode_image_instantiator_domain to determine what domain the
11417         instance needs to be cached in.
11418         (decode_image_instantiator_domain): new function. Determine what
11419         domain the image needs to be cached in.
11420         (check_window_subwindow_cache): new error checking function.
11421         (check_instance_cache_mapper): ditto.
11422         (check_image_instance_structure): ditto.
11423         (subwindow_decode_domain): new function. Encodes a window as a
11424         subwindow's cache domain.
11425         (image_instantiator_format_create): use it for text and
11426         subwindows.
11427
11428 2000-04-21  Andy Piper  <andy@xemacs.org>
11429
11430         * glyphs.c (image_instance_device): new function.
11431         (image_instance_frame): new function.
11432         (image_instance_window): new function.
11433         (image_instance_live_p): new function.
11434
11435         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11436         cache to nil.
11437
11438         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11439         (IMAGE_INSTANCE_DOMAIN): new accessor.
11440         (XIMAGE_INSTANCE_DOMAIN): ditto.
11441
11442         * glyphs-x.c (x_finalize_image_instance): device->domain.
11443
11444         * glyphs-msw.c (init_image_instance_geometry): device->domain.
11445         (mswindows_finalize_image_instance): ditto.
11446
11447         * glyphs-eimage.c (jpeg_instantiate): device->domain.
11448         (gif_instantiate): ditto.
11449         (png_instantiate): ditto.
11450         (tiff_instantiate): ditto.
11451
11452         * glyphs.c (instantiate_image_instantiator): use domain rather
11453         than device.
11454         (mark_image_instance): device -> domain.
11455         (print_image_instance): ditto.
11456         (finalize_image_instance): ditto.
11457         (image_instance_equal): ditto.
11458         (allocate_image_instance): ditto.
11459         (Fcolorize_image_instance): ditto.
11460         (query_string_geometry): ditto.
11461         (image_instantiate): ditto
11462         (query_string_font): ditto.
11463         (image_instantiate): ditto.
11464         (update_subwindow): ditto.
11465         (unmap_subwindow): ditto.
11466         (map_subwindow): ditto.
11467         (subwindow_instantiate): ditto.
11468
11469         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11470         (DOMAIN_FRAME): ditto.
11471         (DOMAIN_WINDOW): ditto.
11472         (DOMAIN_LIVE_P): ditto.
11473         (XDOMAIN_DEVICE): ditto.
11474         (XDOMAIN_FRAME): ditto.
11475         (XDOMAIN_WINDOW): ditto.
11476
11477         * specifier.c (Fvalid_specifier_domain_p): add image instances as
11478         a valid specifier domain.
11479
11480 2000-04-19  Andy Piper  <andy@xemacs.org>
11481
11482         * glyphs-widget.c (syms_of_glyphs_widget): remove
11483         widget-callback-current-channel.
11484         (vars_of_glyphs_widget): ditto.
11485         * glyphs.h: ditto
11486
11487         * gui.c (get_gui_callback): revert to previous behaviour.
11488
11489 2000-04-18  Andy Piper  <andy@xemacs.org>
11490
11491         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11492         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11493         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11494
11495         * glyphs.c (image_instance_equal): add margin_width.
11496         (image_instance_hash): ditto.
11497
11498         * glyphs-widget.c (widget_instantiate): deal with margin-width.
11499         (layout_query_geometry): ditto.
11500         (layout_layout): ditto.
11501         (syms_of_glyphs_widget): add margin-width.
11502         (image_instantiator_layout): allow margin-width.
11503
11504         * glyphs.c (update_widget_instances): make a normal function.
11505         (syms_of_glyphs): remove Qupdate_widget_instances.
11506         * glyphs.h: ditto.
11507
11508         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11509         so that we don't corrupt ideas about the last event or
11510         command. Remove widget-callback-current-channel fiddling.
11511         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11512
11513 2000-05-01  Martin Buchholz <martin@xemacs.org>
11514
11515         * XEmacs 21.2.33 is released.
11516
11517 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
11518
11519         * make-src-depend: Allow dots in header file name.
11520
11521 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
11522
11523         * mule-charset.h (struct charset_lookup): Add
11524         next_allocated_1_byte_leading_byte and
11525         next_allocated_2_byte_leading_byte.
11526         * mule-charset.c: Move above two variables so that those values
11527         will be dumped.
11528
11529 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
11530
11531         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
11532         when string length is zero.
11533         (find_charsets_in_emchar_string): Ditto.
11534
11535 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
11536
11537         * lisp.h: extern Qdialog and Qmenubar.
11538
11539         * gui-x.c: added events.h.
11540                 also fixed typo which made the file uncompilable.
11541
11542         * general.c: Added Qmenubar and Qdialog
11543
11544 2000-04-28  Ben Wing  <ben@xemacs.org>
11545
11546         * frame-msw.c (mswindows_init_frame_1):
11547         * frame-msw.c (mswindows_mark_frame):
11548         * event-msw.c (mswindows_enqueue_dispatch_event):
11549         * console-msw.h:
11550         * console-msw.h (struct mswindows_frame):
11551         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
11552         there are now three hash tables for callbacks.
11553         mswindows_enqueue_dispatch_event is no longer static.
11554
11555         * dialog-x.c (maybe_run_dbox_text_callback):
11556         * dialog-x.c (dbox_descriptor_to_widget_value):
11557         switch to new cons3 form for callbacks.
11558
11559         * glyphs-msw.c (mswindows_register_gui_item):
11560         * glyphs-msw.c (mswindows_widget_instantiate):
11561         * glyphs-msw.c (add_tree_item):
11562         * glyphs-msw.c (add_tab_item):
11563         new image instance parameter, so it can be passed to callback-ex.
11564         respect :callback-ex as well as :callback.
11565
11566         * glyphs-widget.c (VALID_GUI_KEYWORDS):
11567         add :callback-ex.
11568
11569         * glyphs.c (print_image_instance):
11570         prettify, e.g. now prints widget type.
11571
11572         * gui-x.h:
11573         certain funs have new image instance parameter.
11574
11575         * gui.c:
11576         * gui.c (get_gui_callback):
11577         * gui.c (gui_item_add_keyval_pair):
11578         * gui.c (gui_item_init):
11579         * gui.c (gui_add_item_keywords_to_plist):
11580         * gui.c (mark_gui_item):
11581         * gui.c (gui_item_hash):
11582         * gui.c (gui_item_equal):
11583         * gui.c (copy_gui_item):
11584         * gui.c (syms_of_gui):
11585         recognize callback-ex in a number of places.
11586         also, fix the annoying "can't get out of yes-no dialog" bug.
11587
11588         * gui.h:
11589         * gui.h (struct Lisp_Gui_Item):
11590         recognize callback-ex in a number of places.
11591
11592         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11593         new parameter in button_item_to_widget_value.
11594
11595         * glyphs-x.c (x_update_widget):
11596         * glyphs-x.c (x_button_instantiate):
11597         * glyphs-x.c (x_button_update):
11598         * glyphs-x.c (x_progress_gauge_instantiate):
11599         * glyphs-x.c (x_edit_field_instantiate):
11600         * glyphs-x.c (x_combo_box_instantiate):
11601         * glyphs-x.c (x_tab_control_instantiate):
11602         * glyphs-x.c (x_label_instantiate):
11603         new image instance parameter in various places.
11604
11605         * event-Xt.c:
11606         * event-Xt.c (enqueue_Xt_dispatch_event):
11607         this fun gets exported.
11608
11609         * gui-msw.c:
11610         * gui-msw.c (mswindows_handle_gui_wm_command):
11611         handle both :callback and :callback-ex, and generate our own
11612         event because it's one of the callback-ex arguments.
11613
11614         * gui-x.c:
11615         * gui-x.c (popup_selection_callback):
11616         handle both :callback and :callback-ex, and generate our own
11617         event because it's one of the callback-ex arguments.
11618         * gui-x.c (button_item_to_widget_value):
11619         * gui-x.c (gui_items_to_widget_values_1):
11620         * gui-x.c (gui_item_children_to_widget_values):
11621         * gui-x.c (gui_items_to_widget_values):
11622         new image instance parameter in various places.
11623
11624         * fns.c (Freplace_list):
11625         fix small typo in doc string.
11626
11627         * lisp.h:
11628         declare enqueue_Xt_dispatch_event.
11629
11630 2000-04-28  Ben Wing  <ben@xemacs.org>
11631
11632         * buffer.c:
11633         * buffer.c (Frecord_buffer):
11634         * buffer.c (syms_of_buffer):
11635         delete record-buffer-hook.
11636
11637         * fns.c:
11638         * fns.c (Freplace_list):
11639         * fns.c (syms_of_fns):
11640         new primitive replace-list.
11641
11642         * frameslots.h:
11643         slot for old buffer-alist.
11644
11645         * lisp.h:
11646         exfun replace-list.
11647
11648         * redisplay.c:
11649         * redisplay.c (redisplay_frame):
11650         * redisplay.c (syms_of_redisplay):
11651         * redisplay.c (vars_of_redisplay):
11652         new hook buffer-list-changed-hook.
11653         call it.
11654
11655 2000-04-27  Ben Wing  <ben@xemacs.org>
11656
11657         * extents.h: extern in_modeline_generation.
11658
11659         * redisplay.c (generate_formatted_string_db): set
11660         in_modeline_generation.
11661
11662         * extents.c (extent_changed_for_redisplay): don't mark redisplay
11663         flags if in modeline generation.  otherwise frame-modified-tick
11664         is ticked far too often.
11665         Declare in_modeline_generation.
11666
11667 2000-04-26  Ben Wing  <ben@xemacs.org>
11668
11669         * emacs.c (vars_of_emacs): document quick-build "error-checking"
11670         option.
11671         (vars_of_emacs): add quick-build as an error-checking option.
11672         A bit kludgy, but there doesn't seem much point in creating
11673         a real var for this.
11674
11675         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
11676
11677 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11678
11679         * redisplay.h (struct display_line): Add a new variable,
11680         line_continuation.
11681
11682         * redisplay.c (create_text_block): Set dl->line_continuation if
11683         the line continues.
11684         (create_string_text_block): Ditto.
11685         (regenerate_window_incrementally): Use line_continuation instead
11686         of searching continuation glyph.
11687         (add_margin_runes): Call add_glyph_rune.
11688         (add_glyph_rune): Handle margin glyph.
11689
11690 2000-04-20  Martin Buchholz  <martin@xemacs.org>
11691
11692         * filelock.c (fill_in_lock_file_name):
11693         ANSIfy.
11694         Check for IS_ANY_SEP instead of '/'.
11695         (lock_file_1):
11696         Avoid generating gratuitous garbage.  Call user_login_name() directly.
11697         Never check errno without first seeing that system call failed.
11698         (unlock_file): Add GCPRO.
11699         (Flock_buffer): Fix docstring.
11700         (Ffile_locked_p): Fix docstring.  Add GCPRO.
11701
11702 2000-04-19  Martin Buchholz  <martin@xemacs.org>
11703
11704         * sysdep.c (get_pty_max_bytes):
11705         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
11706         strings longer than 252 bytes.
11707
11708         * md5.c: Unconditionally include ANSI header <limits.h>
11709
11710         * glyphs-x.c (convert_EImage_to_XImage):
11711         * lisp-union.h (union Lisp_Object):
11712         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
11713
11714 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
11715
11716         * filelock.c (current_lock_owner): Remove unused variable o, p.
11717
11718 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
11719
11720         * callint.c: Remove multiply defined symbol Qlet
11721         (syms_of_callint): ditto.
11722
11723 2000-04-14  Andy Piper  <andy@xemacs.org>
11724
11725         * general.c (syms_of_general): add last-command, this-command, let
11726         and funcall.
11727
11728         * lisp.h: declare various symbols.
11729
11730         * glyphs.h: declare Qwidget_callback_current_channel;
11731
11732         * glyphs-widget.c (syms_of_glyphs_widget): add
11733         Qgui_callback_current_channel.
11734         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
11735
11736         * gui-msw.c (mswindows_handle_gui_wm_command): bind
11737         widget-callback-current-channel when invoking the interactive
11738         arg. Also bind last-command and next-command when invoking the
11739         widget updates.
11740         * gui-x.c (popup_selection_callback): ditto.
11741
11742         * gui.c (get_gui_callback): massage args so that we are always
11743         calling eval. This allows us to add our own variable bindings
11744         outside.
11745
11746         * glyphs-x.c (x_button_instantiate): use
11747         gui_items_to_widget_values since this is GC safe.
11748         (x_progress_gauge_instantiate): ditto.
11749         (x_edit_field_instantiate): ditto.
11750         (x_label_instantiate): ditto.
11751
11752         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
11753         (emacs_Xt_event_widget_focus_out): new function
11754         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
11755         focus.
11756         (emacs_Xt_event_add_widget_actions): new function. add focus
11757         functions as actions.
11758         (init_event_Xt_late): use it.
11759
11760 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
11761
11762         * event-stream.c (Fdispatch_event): Doc fix.
11763
11764 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
11765
11766         * postgresql.c: Remove all references to PQsetenv*.
11767
11768         * postgresql.h: Remove references to PGsetenvHandler object.
11769         * lrecord.h (lrecord_type): Ditto.
11770
11771 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11772
11773         * glyphs-msw.h (struct mswindows_image_instance_data): Added
11774         real_heigh and real_width members, and accessor macros for these.
11775
11776         * glyphs-msw.c (init_image_instance_geometry): New function.
11777         (init_image_instance_from_dibitmap): Use it.
11778         (mswindows_resource_instantiate): Use it.
11779         (init_image_instance_from_xbm_inline): Use it.
11780         (mswindows_initialize_image_instance_mask): Use real bitmap
11781         geometry.
11782         (mswindows_create_resized_bitmap): Ditto.
11783         (mswindows_create_resized_mask): Ditto.
11784
11785         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
11786         and bitmap to their surface size.
11787
11788 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
11789
11790         * process-unix.c (unix_send_process): Guard against process MIA
11791         after Faccept_process_output.
11792
11793 2000-04-11  Ben Wing  <ben@xemacs.org>
11794
11795         * eval.c (unbind_to_hairy): fix brokenness introduced by
11796         nanosecond speed improvements.
11797
11798 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
11799
11800         * sunplay.c (init_device): To play sounds correctly, the device
11801         apparently needs to be initialized at least once by XEmacs.  Make
11802         it so.
11803
11804 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11805
11806         * redisplay.c (add_margin_runes): Add text image glyph
11807           handling.
11808
11809 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
11810
11811         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
11812         gcc is newer than 2.5.
11813
11814 2000-04-06  Colin Rafferty  <colin@xemacs.org>
11815
11816         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
11817
11818         * fns.c (size_bit_vector):
11819         * alloc.c (size_vector):
11820         (make_vector_internal):
11821         (make_bit_vector_internal):
11822         (sweep_bit_vectors_1):
11823         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
11824
11825 2000-04-06  Andy Piper  <andy@xemacs.org>
11826
11827         * gmalloc.c (malloc): undo previous change.
11828         (malloc): ditto.
11829         (free): ditto.
11830         (realloc): ditto.
11831
11832 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
11833
11834         * line-number.c (buffer_line_number): Revert to former version.
11835
11836 2000-04-06  Andy Piper  <andy@xemacs.org>
11837
11838         * gmalloc.c (malloc): add error checking.
11839         (malloc): ditto.
11840         (free): ditto.
11841         (realloc): ditto.
11842
11843         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
11844         button_item_to_widget_value arg.
11845
11846         * glyphs-x.c (x_button_instantiate): add extra
11847         button_item_to_widget_value arg.
11848         (x_progress_gauge_instantiate): ditto.
11849         (x_edit_field_instantiate): ditto.
11850         (x_label_instantiate): ditto.
11851
11852         * gui-x.c (gui_items_to_widget_values_1): add extra
11853         button_item_to_widget_value arg.
11854         (button_item_to_widget_value): add extra menu_item_p arg.
11855
11856         * gui-x.h: change signature of button_item_to_widget_value.
11857
11858         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
11859         button_item_to_widget_value arg.
11860
11861 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11862
11863         * buffer.h (struct buffer): auto_save_modified should be long.
11864
11865 2000-04-05  Andy Piper  <andy@xemacs.org>
11866
11867         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
11868         type.
11869         (button_query_geometry): give a little more room so that athena
11870         buttons fit.
11871
11872 2000-04-05  Andy Piper  <andy@xemacs.org>
11873
11874         * faces.c (complex_vars_of_faces): The widget face should inherit
11875         the font of the gui-element face.
11876
11877 2000-04-04  Andy Piper  <andy@xemacs.org>
11878
11879         * glyphs-x.c (x_button_update): new function. unconditionally
11880         update a button's state when the instance is dirty.
11881         (image_instantiator_format_create_glyphs_x): add x_button_update.
11882         (x_widget_instantiate): remove old resize cruft.
11883
11884 2000-04-02  Andy Piper  <andy@xemacs.org>
11885
11886         * frame.c (change_frame_size_1): The introduction of gutters means
11887         that we need to allow 0 as a potential frame dimension.
11888
11889 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11890
11891         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
11892         image glyph if allow_cursor.
11893         (add_hscroll_rune): Don't allow cursor to border glyph.
11894         (create_text_block): Ditto.
11895
11896         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
11897         text not in buffer.
11898         (redisplay_output_layout): Call ensure_face_cachel_complete for
11899         text image glyph.
11900
11901
11902 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11903
11904         * redisplay.c (add_glyph_rune): Adding text image as text runes.
11905
11906         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
11907         not in buffer
11908
11909         * redisplay-tty.c (tty_output_display_block): Delete the routine
11910         for text image glyph
11911         * redisplay-x.c (x_output_display_block): ditto
11912         * redisplay-msw.c (mswindows_output_display_block): ditto
11913
11914 2000-02-02  Mike Alexander  <mta@arbortext.com>
11915
11916         Note: Some of these were committed by accident as part of other
11917         patches.
11918
11919         * regex.c (regex_compile): Avoid compiler warnings.
11920
11921         * ntproc.c (sys_spawnve): Avoid compiler warnings.
11922
11923         * nt.h: Declare term_ntproc correctly.
11924
11925         * nt.c: Remove incorrect declaration of get_home_directory which
11926         is declared correctly in lisp.h.
11927
11928         * keymap.c (get_keyelt): Avoid compiler warnings.
11929         (raw_lookup_key_mapper): Avoid compiler warnings.
11930
11931         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
11932
11933         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
11934
11935         * filemode.c (mode_string): Avoid compiler warnings.
11936
11937         * file-coding.c (Fcoding_system_aliasee): Add return statement to
11938         avoid warning.
11939
11940         * events-mod.h: Undef some things that winuser.h defines differently.
11941
11942         * data.c (Faset): Avoid compiler warnings.
11943
11944         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
11945
11946 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11947
11948         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
11949         Fall through to simple beep on error.
11950         Replace "extern" by real header file.
11951
11952         * linuxplay.c: Use nativesound.h
11953         (play_sound_data): Return error code. Be less verbose on error.
11954
11955         * sunplay.c: Use nativesound.h
11956         (play_sound_data): Return error code. Be less verbose on error.
11957
11958         * ntplay.c: Use nativesound.h
11959         (play_sound_data): Return fake error code
11960
11961         * sgiplay.c: Use nativesound.h
11962         (play_sound_data): Return error code
11963
11964         * hpplay.c: Use nativesound.h, partially implement
11965         new error code. Break compilation until finished.
11966         (play_sound_data): error code.
11967
11968         * nativesound.h (play_sound_file):
11969           (play_sound_data): Prototype in new header.
11970
11971 2000-03-31  Andy Piper  <andy@xemacs.org>
11972
11973         * glyphs-widget.c: (button_query_geometry): new function. Adjust
11974         for toggle and radio buttons.
11975         (image_instantiator_buttons): use it.
11976
11977 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11978
11979         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
11980         (x_update_horizontal_scrollbar_callback): Return if no mirror was
11981         found. Scrollbar event probably belonged to some old config.
11982
11983 2000-03-31  Andy Piper  <andy@xemacs.org>
11984
11985         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
11986         than 1.
11987         (initialize_widget_image_instance): default layout to
11988         LAYOUT_HORIZONTAL rather than 0.
11989         (widget_instantiate): reverse the item list at the end rather than
11990         every iteration.
11991         (layout_layout): re-code for the border text at the front of the
11992         item list rather than at the end.
11993         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
11994         provided by the user.
11995         (widget_query_geometry): comment.
11996
11997 2000-03-30  Andy Piper  <andy@xemacs.org>
11998
11999         * glyphs-widget.c (image_instantiator_layout): allow standard
12000         widget keywords in layouts.
12001
12002         * gutter.c (output_gutter): cope with nil gutter contents.
12003
12004         * frame.c (Fset_frame_properties): add gutter docs.
12005
12006 2000-03-29  Andy Piper  <andy@xemacs.org>
12007
12008         * toolbar-msw.c (TBSTYLE_FLAT): add.
12009         (mswindows_output_toolbar): minor fiddling.
12010
12011 2000-03-29  Andy Piper  <andy@xemacs.org>
12012
12013         * gutter.c (output_gutter): force gutter size recalculation if
12014         what we are trying to display won't fit.
12015         (update_gutter_geometry): new function. A per-gutter version of
12016         update_frame_gutter_geometry.
12017         (update_frame_gutter_geometry): use it.
12018         (redraw_exposed_gutter): add extra debugging output.
12019
12020 2000-03-28  Mike Alexander  <mta@arbortext.com>
12021
12022         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12023         (pdump_file_unmap): Implement it on Windows
12024         (pdump_file_get): Save alocated handles for pdump_file_unmap
12025
12026 2000-03-28  Andy Piper  <andy@xemacs.org>
12027
12028         * gui.c (get_gui_callback): treat Quit specially.
12029
12030 2000-03-27  Andy Piper  <andy@xemacs.org>
12031
12032         * glyphs.c (image_instantiate): be careful to check in the same
12033         way we assigned.
12034
12035 2000-03-27  Didier Verna  <didier@xemacs.org>
12036
12037         * config.h.in: define the proper SMART_INCLUDE macro.
12038         handle renaming of `foo_h_path' to `foo_h_file'.
12039
12040         * database.c: ditto.
12041
12042         * emacs.c: ditto.
12043
12044         * linuxplay.c: ditto.
12045
12046         * terminfo.c: ditto.
12047
12048         * tooltalk.h: ditto.
12049
12050 2000-03-27  Andy Piper  <andy@xemacs.org>
12051
12052         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12053         gets updated whenever the face might have changed.
12054
12055 2000-03-26  Mike Alexander  <mta@arbortext.com>
12056
12057         * dumper.c (pdump_resource_free): Fix the comment.
12058
12059 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12060
12061         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12062
12063 2000-03-22  Mike Alexander  <mta@arbortext.com>
12064
12065         * dumper.c: Include Windows headers on Windows
12066         (pdump_resource_free): Add a body to the function
12067         (pdump_load): exe_name -> exe_path and add some comments.
12068
12069 2000-03-25  Mike Alexander  <mta@arbortext.com>
12070
12071         * gui.c (copy_gui_item_tree): Return a value in all cases
12072
12073 2000-03-21  Didier Verna  <didier@xemacs.org>
12074
12075         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12076         lwlib/config.h.in.
12077         (SMART_INCLUDE): new macro.
12078         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12079         the proper location.
12080
12081         * postgresql.c: use it.
12082
12083         * inline.c: ditto.
12084
12085 2000-03-24  Andy Piper  <andy@xemacs.org>
12086
12087         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12088         do this.
12089
12090 2000-03-24  Andy Piper  <andy@xemacs.org>
12091
12092         * redisplay-output.c (compare_runes): use image_instance_changed
12093         to detect changes. Do not depend on glyphs_changed, only depend on
12094         dirtiness.
12095          (redisplay_output_layout): add debug messages.
12096         (compare_runes): ditto.
12097
12098         * glyphs.h: declare new functions.
12099         (struct Lisp_Image_Instance): remove percent and associated
12100         accessors.
12101
12102         * gui.h: declare new copying functions.
12103
12104         * gui.c (copy_gui_item_tree): new function.
12105         (copy_gui_item): new function.
12106         (gui_item_id_hash): revert to standard hash.
12107         (gui_item_hash): ditto.
12108         (gui_item_hash_internal): deleted.
12109         (mark_gui_item): mark value.
12110         (gui_item_add_keyval_pair): add value.
12111         (gui_item_init): ditto.
12112         (gui_add_item_keywords_to_plist): ditto.
12113         (gui_item_equal): ditto.
12114         (syms_of_gui): add Q_value.
12115
12116         * glyphs-x.c (x_progress_gauge_update): use pending items and
12117         value for setting the state.
12118         (x_update_widget): don't set items from pending here.
12119
12120         * glyphs-widget.c (update_widget): update items here.
12121         (progress_gauge_set_property): use items for storing value. Put
12122         new value in pending items.
12123
12124         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12125         items for new value. Convert percent -> value.
12126         (mswindows_tab_control_update): don't update items here.
12127
12128         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12129         (update_subwindow): ditto.
12130         (image_instance_changed): new function. Compare hash values and
12131         past and present widget items.
12132         (image_instantiate): We more careful about where we instantiate
12133         things.
12134         (image_instantiate): add error checking.
12135
12136         * gutter.c (syms_of_gutter): use -hook.
12137
12138 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12139
12140         * console-tty.c (Fset_console_tty_input_coding_system): Use
12141         Qkeyboard.
12142         (Fset_console_tty_output_coding_system): Use Qterminal.
12143         (tty_init_console): Use Qkeyboard and Qterminal.
12144
12145 2000-03-21  Ben Wing  <ben@xemacs.org>
12146
12147         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12148         From Mike Alexander <mta@arbortext.com>.
12149
12150 2000-03-21  Ben Wing  <ben@xemacs.org>
12151
12152         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12153         process brokenness.  Proper implementation to come.
12154         * callproc.c:
12155         Rename call-process-internal to old-call-process-internal.
12156         New impl. in process.el.
12157
12158 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12159
12160         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12161
12162 2000-03-20  Andy Piper  <andy@xemacs.org>
12163
12164         * glyphs.c (full_list_hash): make hashes of the same elements in
12165         different orders return different values.
12166
12167 2000-03-20  Martin Buchholz <martin@xemacs.org>
12168
12169         * XEmacs 21.2.32 is released.
12170
12171 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12172
12173         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12174         (DFC_MALLOC_USE_CONVERTED_DATA):
12175         Add aliasing-safe casts to allow use with char* or unsigned char*
12176         lvalues.
12177
12178         * eldap.c (Fldap_open):
12179         (Fldap_search_basic):
12180         (Fldap_add):
12181         (Fldap_modify):
12182         Make C++-compilable.
12183         Make sure GCPRO'ed variables are initialized.
12184         Use temp variables to avoid repeated calls to Flength.
12185
12186 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12187
12188         * sysfile.h:
12189         Make sure PATH_MAX is always defined.
12190         Include limits.h for PATH_MAX.
12191         Deprecate use of MAXPATHLEN.
12192
12193 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12194
12195         * emacs.c: Add reinit_vars_of_fileio.
12196         * symsinit.h: Add reinit_vars_of_fileio.
12197         * fileio.c (reinit_vars_of_fileio): New.
12198         * fileio.c (Fmake_temp_name):
12199         Initialize temp_name random number from microseconds to make
12200         collisions even less likely.  Initialize always at process startup
12201         time.  (make-temp-name) used to return the same file name twice in
12202         a row when PDUMP.
12203         Random stylistic fiddling.
12204         Comment fixes.
12205
12206 2000-03-20  Andy Piper  <andy@xemacs.org>
12207
12208         * glyphs.c (image_instantiate): allow text glyphs to be
12209         instantiated in the minibuffer window.
12210
12211 2000-03-19  Andy Piper  <andy@xemacs.org>
12212
12213         * glyphs.c (image_instance_hash): be careful about which items we
12214         hash on.
12215
12216         * glyphs-widget.c (tab_control_set_property): record into pending
12217         items rather than the actual items.
12218
12219         * glyphs-x.c (x_update_widget): use pending items to update with.
12220
12221         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12222         to update with.
12223
12224         * glyphs.c (mark_image_instance): mark pending items.
12225
12226         * window.c (Fset_window_configuration): record the buffer.
12227         (Fselect_window): totally revert previous change which breaks many
12228         things.
12229
12230 2000-03-18  Andy Piper  <andy@xemacs.org>
12231
12232         * glyphs-msw.c (mswindows_tab_control_update): force selected
12233         item.
12234
12235         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12236         window domain cache, otherwise we get inconsistencies at
12237         startup. There is something fishy at startup which can lead to the
12238         minibuffer being the selected window when the gutter content is
12239         instantiated.
12240
12241         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12242         gcpros.
12243         (parse_gui_item_tree_children): ditto.
12244         (parse_gui_item_tree_item): ditto.
12245
12246         * glyphs.c (Fupdate_widget_instances): return something.
12247
12248 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12249
12250         * window.c (Fselect_window): Undo 2000-03-17 change.
12251
12252 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12253
12254         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12255         against v7.0 libraries.  Insta-coredump city until the postgres
12256         folks fix it.
12257
12258 2000-03-17  Andy Piper  <andy@xemacs.org>
12259
12260         * faces.c (complex_vars_of_faces): don't give the widget face an
12261         inherited background pixmap.
12262
12263         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12264         selected item.
12265
12266         * event-stream.c (Fdispatch_non_command_events): return something.
12267
12268         * gutter.c (output_gutter): use widget face.
12269         (clear_gutter): ditto.
12270
12271         * NEWS: adjust again.
12272
12273         * window.c (Fselect_window): make sure this runs to completion to
12274         avoid oddities with Fset_window_configuration.
12275         (Fcurrent_window_configuration): in general do not save the
12276         minibuffer as the selected window.
12277
12278         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12279
12280 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12281
12282         * emacs.c (Frunning_temacs_p): Revert previous patch.
12283         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12284
12285 2000-03-16  Andy Piper  <andy@xemacs.org>
12286
12287         * glyphs-x.c (x_tab_control_update): if no widget values then
12288         return.
12289
12290         * NEWS: update for new features.
12291
12292         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12293         synthetic event to the native system.
12294         (reinit_vars_of_event_Xt): set force_event_pending to
12295         emacs_Xt_force_event_pending.
12296
12297         * events.h (struct event_stream): add force_event_pending.
12298
12299         * specifier.c (recompute_one_cached_specifier_in_window): add
12300         comment.
12301
12302         * redisplay.c (redisplay_frame): don't call
12303         update_frame_subwindows. Reset subwindow cachels when
12304         subwindows_changed, removing this was an optimization too far.
12305
12306         * redisplay-output.c (compare_runes): reorganize so that we catch
12307         glyph changes when we want them. Set optimize_output when this
12308         would help layouts.
12309         (redisplay_output_layout): remove frame_really_changed, use
12310         optimize_output instead.
12311
12312         * redisplay-msw.c (mswindows_output_display_block): reset
12313         optimize_output after outputting a glyph.
12314         * redisplay-x.c (x_output_display_block): ditto.
12315         * redisplay-tty.c (tty_output_display_block): ditto.
12316
12317         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12318         functions.
12319         (gutter_specs_changed): do specific gutter positions.
12320         (top_gutter_specs_changed): new function. Only update the
12321         specified gutter specs.
12322         (bottom_gutter_specs_changed): ditto.
12323         (left_gutter_specs_changed): ditto.
12324         (right_gutter_specs_changed): ditto.
12325
12326         * gui.c (gui_item_hash_internal): new function, does a real hash.
12327         (gui_item_id_hash): use it.
12328         (gui_item_hash): hash the eval'ed gui_item.
12329
12330         * gui-x.c (popup_selection_callback): send an eval event to call
12331         Fupdate_widget_instances.
12332
12333         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12334         to call Fupdate_widget_instances.
12335
12336         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12337         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12338
12339         * glyphs.c: (update_frame_subwindows): deleted.
12340         (Fupdate_widget_instances): new function for updating the dirty
12341         state of widgets that might have changed.
12342         (syms_of_glyphs): add Qupdate_widget_instances.
12343         (full_list_hash): hash a list completely.
12344         (image_instance_hash): use it for items and properties.
12345
12346         * frame-msw.c (mswindows_size_frame_internal): remove unused
12347         variable.
12348
12349         * faces.h (struct face_cachel): fix comment.
12350
12351         * event-stream.c (Fdispatch_non_command_events): new
12352         function. Process non-command events, forcing an event cycle
12353         beforehand.
12354         (syms_of_event_stream): declare.
12355         (event_stream_force_event_pending): new function. Force an event
12356         on the native event queue so that an event cycle will occur next
12357         time we check.
12358
12359         * event-msw.c:
12360         (struct ntpipe_shove_stream):
12361         (mswindows_enqueue_dispatch_event):
12362         (mswindows_dequeue_dispatch_event):
12363         (mswindows_cancel_dispatch_event):
12364         (mswindows_pump_outstanding_events):
12365         (mswindows_drain_windows_queue):
12366         (mswindows_handle_paint):
12367         (mswindows_wnd_proc):
12368         (mswindows_key_to_emacs_keysym):
12369         (get_process_input_waitable):
12370         (emacs_mswindows_delete_stream_pair): re-indent file.
12371         (mswindows_need_event): do not process further fds if the windows
12372         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12373         fixes the 100% cpu problem.
12374         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12375
12376 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12377
12378         * alloc.h: New.
12379         * dumper.h: New.
12380         * dumper.c: New.
12381
12382         * emacs.c: Moved dump file searching to dumper.c.
12383         (Frunning_temacs_p): Fixed.
12384
12385         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12386         last_lrecord_type_index_assigned.
12387
12388 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12389
12390         * symsinit.h: Added reinit parameter to init_console_stream
12391         declaration.
12392
12393         * lisp.h: Added file parameter to pdump_load declaration.
12394
12395         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12396         support.  Added dump file searching.
12397
12398         * config.h.in: Added EMACS_PROGNAME.
12399
12400         * console-stream.c (init_console_stream): Fix reinitialisation
12401         when running from temacs.
12402
12403         * alloc.c (pdump): Add id support.
12404         (pdump_load): Add file parameter and signature/id support.
12405
12406         * Makefile.in.in: Add full pdump support.
12407
12408 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12409
12410         * postgresql.c: Update documentation to reflect latest code
12411         status.
12412         (print_result): Show tuple counts in printed representation when
12413         appropriate.
12414         (Fpq_put_nbytes): MULE-ize.
12415         (Fpq_get_line_async): Ditto.
12416
12417 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12418
12419         * postgresql.c (Fpq_lo_import): Fix return value.
12420         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12421
12422 2000-03-13  Ben Wing  <ben@xemacs.org>
12423
12424         * alloc.c (pdump_load):
12425         Fix compile warning under mswin.
12426
12427 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12428
12429         * postgresql.c: Mule-ization, bug fixes.
12430         Use PG_CODING to encapsulate coding system name changes.
12431         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12432         (pg-coding-system): Create.
12433
12434         (Fpq_conn_defaults): Mule-ize.
12435         (Fpq_connectdb): Mule-ize & bug fix.
12436         (Fpq_connect_start): Mule-ize.
12437         (Fpq_set_client_encoding): Mule-ize.
12438         (Fpq_finish): Document `DEAD' connection status.
12439         (Fpq_clear): Ditto.
12440         (Fpq_pgconn): Mule-ize.
12441         (Fpq_exec): Mule-ize & bug fix.
12442         (Fpq_send_query): Ditto.
12443         (Fpq_get_result): Ditto.
12444         (Fpq_res_status): Mule-ize.
12445         (Fpq_result_error_message): Mule-ize.
12446         (Fpq_ntuples): fix comments.
12447         (Fpq_fname): Mule-ize.
12448         (Fpq_fnumber): Mule-ize.
12449         (Fpq_ftype): fix comments.
12450         (Fpq_get_value): Mule-ize.
12451         (Fpq_cmd_status): Ditto.
12452         (Fpq_cmd_tuples): Ditto.
12453         (Fpq_oid_value): Ditto.
12454         (Fpq_notifies): Ditto.
12455         (Fpq_lo_import): Ditto.
12456         (Fpq_lo_export): Ditto.
12457         (Fpq_get_line): Ditto.
12458         (Fpq_put_line): Mule-ize and bug fix.
12459         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12460
12461 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12462
12463         * postgresql.c (vars_of_postgresql): Mule-ize.
12464         (Fpq_conn_defaults): Ditto.
12465
12466 2000-03-12  Ben Wing  <ben@xemacs.org>
12467
12468         * alloc.c (Fmake_byte_code):
12469         * alloc.c (debug_string_purity_print):
12470         * alloc.c (pdump_backtrace):
12471         * alloc.c (pdump_get_indirect_count):
12472         * alloc.c (pdump_register_sub):
12473         * alloc.c (pdump_register_object):
12474         * alloc.c (pdump_register_struct):
12475         * alloc.c (pdump_dump_data):
12476         * alloc.c (pdump_reloc_one):
12477         Minor cleanups.
12478
12479         * console-msw.c:
12480         * console-msw.c (GetConsoleHwnd):
12481         * console-msw.c (msw_hide_console):
12482         * console-msw.c (msw_show_console):
12483         * console-msw.c (msw_ensure_console_buffered):
12484         * console-msw.c (msw_output_console_string):
12485         * console-msw.c (console_type_create_mswindows):
12486
12487         a) Added functions to manipulate the console window for use with
12488         shell support.
12489
12490         b) Added support for writing text to the console, which is now
12491         used under Windows when xemacs is not being run non-interactively,
12492         to write text that would otherwise be destined for stdout because
12493         under these circumstances, text written to stdout tends to
12494         disappear and not be seen.
12495
12496         * console-msw.h:
12497         * event-Xt.c:
12498         * event-Xt.c (x_event_to_emacs_event):
12499         * event-Xt.c (describe_event_window):
12500         * events-mod.h (XEMACS_MOD_CONTROL):
12501         * events.c:
12502         * events.c (Fmake_event):
12503         * events.c (character_to_event):
12504         * events.c (event_to_character):
12505         * events.c (format_event_object):
12506         * events.c (Fevent_modifiers):
12507         * events.h:
12508         * events.h (struct key_data):
12509         * events.h (struct button_data):
12510         * events.h (struct misc_user_data):
12511         * frame-x.c (Fcde_start_drag_internal):
12512         * frame-x.c (Foffix_start_drag_internal):
12513         * gpmevent.c (Freceive_gpm_event):
12514         * keymap.c:
12515         * keymap.c (bucky_sym_to_bucky_bit):
12516         * keymap.c (control_meta_superify):
12517         * keymap.c (make_key_description):
12518         * keymap.c (keymap_lookup_directly):
12519         * keymap.c (create_bucky_submap):
12520         * keymap.c (keymap_store):
12521         * keymap.c (define_key_check_and_coerce_keysym):
12522         * keymap.c (define_key_parser):
12523         * keymap.c (define_key_alternate_name):
12524         * keymap.c (Fdefine_key):
12525         * keymap.c (raw_lookup_key_mapper):
12526         * keymap.c (struct map_keymap_unsorted_closure):
12527         * keymap.c (map_keymap_unsorted_mapper):
12528         * keymap.c (map_keymap_sort_predicate):
12529         * keymap.c (map_keymap_sorted):
12530         * keymap.c (accessible_keymaps_mapper_1):
12531         * keymap.c (where_is_recursive_mapper):
12532         * keymap.c (describe_map_mapper):
12533         * keymap.c (describe_map_sort_predicate):
12534         * keymap.c (describe_map):
12535         * keymap.c (complex_vars_of_keymap):
12536         And a number of other files, the key modifier preprocessor
12537         constants that xemacs uses have names that conflict with constants
12538         defined under MS Windows for other purposes, so they were renamed
12539         to begin with the prefix XEMACS_. The variables that hold such
12540         modifiers were changed to consistently be of type int to fix
12541         various compile warnings.
12542
12543         * console.c (complex_vars_of_console):
12544         * device.c:
12545         * device-msw.c:
12546         * device-msw.c (mswindows_finish_init_device):
12547         * device-msw.c (msw_get_workspace_coords):
12548         * device-msw.c (mswindows_device_system_metrics):
12549         and various other files, added support for a new
12550         device property called offset-workspace which returns the position
12551         of the upper left corner of the workspace area and goes along with
12552         the existing size-workspace property.
12553
12554         * dialog-msw.c:
12555         * dialog-msw.c (push_bufbyte_string_as_unicode):
12556         * dialog-msw.c (mswindows_popup_dialog_box):
12557         Added support for XEmacs-style accelerator specifications in
12558         button text.  Note: I didn't add support for this under X Windows,
12559         and somebody needs to do this.
12560
12561         * dialog.c:
12562         * dialog.c (Fpopup_dialog_box):
12563         Documented the support for accelerators that was just mentioned.
12564
12565         editfns.c (get_home_directory): Changed behavior under Windows
12566         when HOME not defined; former behavior was irretrievably broken.
12567
12568         * emacs.c:
12569         * emacs.c (main_1):
12570         * emacs.c (main):
12571         * minibuf.c (clear_echo_area_internal):
12572         * minibuf.c (echo_area_append):
12573         * print.c:
12574         * print.c (std_handle_out_external):
12575         * print.c (std_handle_out_va):
12576         * print.c (fatal):
12577         * print.c (write_string_to_stdio_stream):
12578         * print.c (output_string):
12579         * print.c (debug_print):
12580         * print.c (debug_backtrace):
12581         * print.c (debug_short_backtrace):
12582         Cleaned up the code that prints text to stdout so that this can be
12583         changed to output into a console window instead under MS Windows,
12584         as described above.
12585
12586         * eval.c:
12587         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
12588         * eval.c (internal_catch):
12589         * eval.c (unwind_to_catch):
12590         * eval.c (throw_or_bomb_out):
12591         * eval.c (condition_case_1):
12592         * eval.c (signal_1):
12593         * eval.c (check_error_state_sanity):
12594         * eval.c (call_with_suspended_errors_1):
12595         * eval.c (call_with_suspended_errors):
12596         * eval.c (reinit_vars_of_eval):
12597         Added code to catch throw loops and check for a pesky bug that may
12598         be gone now.
12599
12600         * event-msw.c:
12601         * event-msw.c (key_needs_default_processing_p):
12602         * event-msw.c (mswindows_wnd_proc):
12603         * event-msw.c (mswindows_modifier_state):
12604         * event-msw.c (emacs_mswindows_quit_p):
12605         * event-msw.c (vars_of_event_mswindows):
12606         a) Added support for using the alt key to select menu items as is
12607         standard under MS Windows.  This is controlled using the variable
12608         menu-accelerator-enabled, just like under X Windows.  There is an
12609         option on the options menu to turn this support on.  I really
12610         think that it should be on by default under Windows, but I'm not
12611         going to make this change yet.
12612
12613         b)  Added support for dynamic display size changes under Windows.
12614
12615         * event-stream.c:
12616         * event-stream.c (maybe_echo_keys):
12617         * event-stream.c (Fnext_event):
12618         * event-stream.c (command_builder_find_leaf):
12619         * event-stream.c (lookup_command_event):
12620         * event-stream.c (execute_command_event):
12621         * event-stream.c (pre_command_hook):
12622         * event-stream.c (post_command_hook):
12623         * event-stream.c (syms_of_event_stream):
12624         * event-stream.c (vars_of_event_stream):
12625         * event-stream.c (complex_vars_of_event_stream):
12626         * events.h (struct command_builder):
12627
12628         a) Tried to clean up a little bit the horribly written x-specific
12629         accelerator code that crept into this file.  I moved this code
12630         into menubar-x.c where it belongs. I also needed to move the
12631         command builder structure into the file events.h because it is
12632         accessed directly by this accelerator code.  What I didn't do, but
12633         which should be done at some point, is to properly abstract this
12634         code using device methods instead of the kludgy way that it
12635         currently hooks into the event code.
12636
12637         b) Added the lisp variables this-command-properties and
12638         last-command- properties, which should be used to synchronize two
12639         adjacent commands in preference to playing games with the variable
12640         this-command, which is typically what happens.
12641
12642         c) Added some slightly nasty code to hook into the lisp support
12643         for shifted- motion-key selection.  This is actually necessary for
12644         somewhat complicated reasons, which are described in
12645         simple.el. (NB: I think the proper thing would be to have the code
12646         that calls the pre and post command hooks also call out to generic
12647         lisp functions in simple.el, where all built-in stuff could be
12648         added.  I will think about this more.)
12649
12650         * event-unixoid.c (poll_fds_for_input):
12651         * lread.c (readchar):
12652         * redisplay-tty.c (tty_clear_frame):
12653         * redisplay-x.c (x_get_gc):
12654         * signal.c (interrupt_signal):
12655         And a whole bunch of other files: fixed up places that printed
12656         directly to stderr to instead call the function stderr_out so that
12657         the changes I made under Windows work correctly.
12658
12659         * filemode.c (mode_string):
12660         Warning fixes.
12661
12662         * frame-msw.c:
12663         * frame-msw.c (mswindows_size_frame_internal):
12664         Fixed the computation of frame size and position to keep the frame
12665         within the workspace area, rather than within the physical
12666         dimensions of the screen, so that the frame doesn't overlap window
12667         manager decorations, such as the start menu and toolbar, typically
12668         at the bottom of the screen.
12669
12670         * frame.c (vars_of_frame):
12671         Changed the default frame title format under MS Windows to consist
12672         of buffername-XEmacs, which is standard under MS Windows.  I think
12673         it might be a good idea to change this everywhere because I think
12674         it is superior to the current frame title format, but this is the
12675         kind of change that is likely to cause some people to get annoyed,
12676         so I'm not making it.
12677
12678         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
12679
12680         * gui-msw.c (mswindows_handle_gui_wm_command):
12681         Fixed compile warnings.
12682
12683         * gui-x.c:
12684         * gui-x.c (strdup_and_add_accel):
12685         * gui-x.c (button_item_to_widget_value):
12686         * gui-x.h:
12687         Added code to automatically put an accelerator onto the beginning
12688         of menu items that don't have one as is now the standard, and is
12689         described more later.  Also fixed things so that the menu item
12690         name can be an evaluated expression, again a new standard.
12691
12692         * gui.c:
12693         * gui.c (gui_item_add_keyval_pair):
12694         * gui.c (make_gui_item_from_keywords_internal):
12695         * gui.c (gui_add_item_keywords_to_plist):
12696         * gui.c (gui_item_accelerator):
12697         * gui.c (gui_name_accelerator):
12698         * gui.c (gui_item_included_p):
12699         * gui.c (gui_item_display_flush_left):
12700         * gui.c (gui_item_display_flush_right):
12701         * gui.c (parse_gui_item_tree_item):
12702         * gui.c (parse_gui_item_tree_children):
12703         * gui.c (parse_gui_item_tree_list):
12704         Mule-ized.  Cleanup.  GCPRO addition.
12705
12706         * line-number.c (buffer_line_number):
12707         * lisp.h:
12708         * lisp.h (EMACS_INT_MAX):
12709         Added the manifest constant EMACS_INT_MIN corresponding to the
12710         existing constant EMACS_INT_MAX.  This is partially to fix compile
12711         warnings under Windows, and partly for cleanliness.
12712
12713         * menubar-msw.c:
12714         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
12715         * menubar-msw.c (msw_translate_menu_or_dialog_item):
12716         * menubar-msw.c (displayable_menu_item):
12717         * menubar-msw.c (populate_menu_add_item):
12718         * menubar-msw.c (populate_or_checksum_helper):
12719         * menubar-msw.c (populate_menu):
12720         * menubar-msw.c (update_frame_menubar_maybe):
12721         * menubar-msw.c (prune_menubar):
12722         * menubar-msw.c (msw_char_is_accelerator):
12723         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
12724         * menubar-msw.c (mswindows_handle_wm_command):
12725         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
12726         * menubar-msw.c (mswindows_handle_wm_initmenu):
12727         * menubar-msw.c (mswindows_update_frame_menubars):
12728         * menubar-msw.c (mswindows_free_frame_menubars):
12729         * menubar-msw.c (mswindows_popup_menu):
12730         Fixed a bug in handling accelerators where an extra character
12731         would be displayed in the menu item.  Also generalized the
12732         function displayable_menu_item because it is now used by the
12733         dialog box code as well.  And finally, added code in the functions
12734         that create the menubar to extract a list of accelerators for the
12735         top level menubar, which is used in the event code to determine
12736         whether a particular alt-key combination should be used to invoke
12737         a menu item, or should be passed through to access the standard
12738         XEmacs keymap binding for this key combination.
12739
12740         Much needed GCPROing.
12741
12742         * menubar-x.c:
12743         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12744         * menubar-x.c (menu_item_descriptor_to_widget_value):
12745         * menubar-x.c (restore_in_menu_callback):
12746         * menubar-x.c (x_popup_menu):
12747         * menubar-x.c (menu_move_up):
12748         * menubar-x.c (menu_move_down):
12749         * menubar-x.c (menu_move_left):
12750         * menubar-x.c (menu_move_right):
12751         * menubar-x.c (menu_select_item):
12752         * menubar-x.c (command_builder_operate_menu_accelerator):
12753         * menubar-x.c (menu_accelerator_junk_on_error):
12754         * menubar-x.c (command_builder_find_menu_accelerator):
12755         * menubar-x.c (Faccelerate_menu):
12756         * menubar.h:
12757         Moved a whole bunch of code here that was previously in
12758         event-stream.c as described above.  There is also code connected
12759         to the new standard of adding an accelerator to the beginning of
12760         menu items that don't have one as described above and below.
12761
12762         * menubar.c:
12763         * menubar.c (menu_parse_submenu_keywords):
12764         * menubar.c (Fmenu_find_real_submenu):
12765         * menubar.c (Fnormalize_menu_item_name):
12766         * menubar.c (syms_of_menubar):
12767         * menubar.c (vars_of_menubar):
12768         * menubar.c (complex_vars_of_menubar):
12769
12770         a) Cleaned up a bunch of documentation and improved it.
12771
12772         b) XEmacs now automatically adds an accelerator onto the beginning
12773         of any menu items that don't have one.  I did this because there
12774         will inevitably be some menu items on the main menubar that don't
12775         have accelerators on them because the package that adds that
12776         particular menu item hasn't yet been fixed up to have accelerators
12777         in them and it looked rather strange to have some items with and
12778         some items without accelerators, especially since even in items
12779         without accelerators, you can, at least under windows, still
12780         access the item through an accelerator corresponding to the first
12781         character in the item's name.  If people don't like this behavior,
12782         I can add a variable to turn it off optionally, but I'm not sure
12783         this is a good idea because we really do need to have accelerators
12784         on all of the menu items, and if a package doesn't like the
12785         accelerators being put on the first character, then it should put
12786         the accelerators where they belong.
12787
12788         c) I made a behavior change, which is that the descriptor that
12789         specifies the text of the menu item, which formerly was just a
12790         string, can now also be an evaluated expression.  This makes this
12791         descriptor parallel with all of the others, which could also be
12792         evaluated expressions.  This also obviates the need for the
12793         keyword :label, which was previously listed in the documentation
12794         as unimplemented, and which was for the same purpose.
12795
12796         d) GCPROing.
12797
12798         * ntproc.c:
12799         * ntproc.c (new_child):
12800         * ntproc.c (sys_spawnve):
12801         * ntproc.c (find_child_console):
12802         * ntproc.c (sys_kill):
12803         Fixed compile warnings.  By the way, this file should really go
12804         away entirely, and this will happen as soon as Kirill makes his
12805         final round of process cleanups, which affect the function
12806         call-process.
12807
12808         * process-nt.c:
12809         * process-nt.c (struct nt_process_data):
12810         * process-nt.c (find_process_from_pid):
12811         * process-nt.c (send_signal_the_nt_way):
12812         * process-nt.c (enable_child_signals):
12813         * process-nt.c (find_child_console):
12814         * process-nt.c (send_signal_the_95_way):
12815         * process-nt.c (nt_finalize_process_data):
12816         * process-nt.c (ensure_console_window_exists):
12817         * process-nt.c (nt_create_process):
12818         * process-nt.c (nt_kill_child_process):
12819         * process-nt.c (nt_kill_process_by_pid):
12820         * process-nt.c (nt_open_network_stream):
12821         * process-nt.c (vars_of_process_nt):
12822         Copied over code from Emacs 20.5 to correctly send signals to sub-
12823         processes under Windows 95.  Also added code to automatically
12824         create and hide console window when a sub-process is created under
12825         Windows 95, which obviates the need for the separate runemacs.exe
12826         executable, and finally implemented some variables that were
12827         implemented in Emacs 20.5, but previously not in XEmacs.  These
12828         include mswindows- start-process-share-console and
12829         mswindows-start-process-inherit-error-mode. (Both of these only
12830         apply to Windows 95.)
12831
12832         * regex.c (regex_compile): Fixed a compile warning.
12833
12834         * select-msw.c:
12835         * select-msw.c (mswindows_own_selection):
12836         * select-msw.c (mswindows_get_foreign_selection):
12837         * select-msw.c (mswindows_disown_selection):
12838         * select-msw.c (console_type_create_select_mswindows):
12839         * select-msw.c (syms_of_select_mswindows):
12840         Cleaned up the file and implemented the device method
12841         selection_exists_p, which had accidentally been left out.  Also
12842         removed four lisp functions that were remnants from before the
12843         time when the selection code was properly device abstracted.
12844         These functions are no longer needed because there are generic
12845         equivalents, and because they were added recently and don't exist
12846         in FSF Emacs, I don't think there's any problem with just deleting
12847         them.
12848
12849         * sysdep.c:
12850         * sysdep.c (sys_subshell):
12851         Fixed a compile warning, although in this case there's probably
12852         something wrong with this code, and it ought to be looked into
12853         more thoroughly by somebody who understands it.
12854
12855         * window.c:
12856         * window.c (Fwindow_text_area_height):
12857         * window.c (Fwindow_width):
12858         * window.c (Fwindow_full_width):
12859         * window.c (Fwindow_pixel_width):
12860         * window.c (debug_print_window):
12861         * window.c (syms_of_window):
12862         Added functions window-text-area-height and window-full-width,
12863         which are functions for returning various width and height
12864         characteristics of a window. (One of these functions is necessary
12865         for making the file dialog box work correctly, and the other one
12866         was added for completeness.)  Also added a table to the
12867         documentation for window-height which describes the entire scheme
12868         for accessing width and height characteristics of a window.
12869
12870 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12871
12872         * nt.c (fstat): Added a comment for another problem with
12873         non-encapsulated [f]stat(), reported by Adrian Aichner
12874         <aichner@ecf.teradyne.com>.
12875
12876 2000-03-11  Andy Piper  <andy@xemacs.org>
12877
12878         * window.c (make_dummy_parent): initialize subwindow instance
12879         cache.
12880         (Fset_window_configuration): zero extent_modiff.
12881
12882 2000-03-10  Andy Piper  <andy@xemacs.org>
12883
12884         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
12885         more changes can be triggered.
12886         (Fredisplay_frame): ditto.
12887         (Fredraw_device): ditto.
12888         (Fredisplay_device): ditto.
12889         (redisplay_frame): make non-static.
12890         (redisplay_frame): call update_frame_gutter_geometry outside of
12891         display proper.
12892
12893         * gutter.h: declare update_frame_gutter_geometry.
12894
12895         * redisplay.h: declare redisplay_frame.
12896
12897         * gutter.c (update_frame_gutter_geometry): move geometry changes
12898         in update_frame_gutters here. Geometry changes can only occur
12899         outside of redisplay.
12900         (update_frame_gutters): remove geometry change code.
12901         (Fredisplay_gutter_area): make sure that we are in display when we
12902         update and that we have flushed any size changes.
12903
12904 2000-03-11  Andy Piper  <andy@xemacs.org>
12905
12906         * alloc.c (pdump_dump_data): remove i & count shadows.
12907
12908 2000-02-27  Mike Alexander  <mta@arbortext.com>
12909
12910         * sysdep.h: Declare pdump_read_file
12911
12912         * sysdep.c (pdump_read_file): New function
12913
12914         * alloc.c (pdump_load): Call pdump_read_file to get the portable
12915         dump data
12916
12917 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12918
12919         * lrecord.h: add `lrecord_type_pgsetenv'.
12920
12921 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
12922
12923         * symsinit.h: declare (vars|syms)_of* functions.
12924         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
12925
12926 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
12927
12928         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
12929
12930         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
12931         GCCs.
12932
12933         * emacs.c (main_1): Call postgres initialization code.
12934
12935         * postgresql.h: New file.  PostgreSQL RDBMS support.
12936         * postgresql.c: New file.
12937
12938 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12939
12940         * redisplay-output.c (redisplay_output_display_block): Disable
12941         redundant code.
12942
12943 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12944
12945         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
12946         (Fcanna_henkan_next): Ditto.
12947         (Fcanna_bunsetu_henkou): Ditto.
12948         (Fcanna_henkan_kakutei): Ditto.
12949         (Fcanna_henkan_end): Ditto.
12950         (Fcanna_henkan_quit): Ditto.
12951         (Fcanna_henkan_next): Set retun value correctly.
12952         (c2mu): Use unsigned char instead of signed char.
12953
12954 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12955
12956         * emacs.c (main_1): Always call syms_of_gui.
12957         * inline.c: include gui.h
12958
12959 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
12960
12961         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
12962         converted to Lisp_Object.
12963         (Qtop_bottom): New variable.
12964         (syms_of_redisplay): Initialize it.
12965         * redisplay.h (Vvisible_bell): Ditto.
12966         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
12967         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
12968         only flash top and bottom.
12969
12970 2000-03-08  Andy Piper  <andy@xemacs.org>
12971
12972         * buffer.c (Frename_buffer): record new buffer name the right way.
12973
12974 2000-03-08  Andy Piper  <andy@xemacs.org>
12975
12976         * glyphs.c (update_subwindow): increase hash depth so that widget
12977         items get picked up properly.
12978
12979         * redisplay-output.c (compare_runes): increase hash depth so that
12980         widget items get picked up properly.
12981
12982 2000-03-08  Andy Piper  <andy@xemacs.org>
12983
12984         * gutter.c (output_gutter): add some debug.
12985
12986         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
12987         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
12988         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
12989
12990         * redisplay-output.c (compare_runes): use display_hash to
12991         determine if glyphs really are not the same.
12992
12993         * glyphs.c (update_subwindow): check display_hash to see if
12994         anything really needs to be updated. If not then do
12995         nothing. Record the display_hash after updating.
12996         (image_instance_equal): compare the image_instance face also.
12997
12998 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
12999
13000         * redisplay.h: Fix comment style.
13001
13002 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13003
13004         * consle-msw.h (struct mswindows_frame):
13005         Added new member paint_pending to indicate whether a WM_PAINT
13006         magic event has been queued for this frame.
13007
13008         * event-msw.c (mswindows_drain_windows_queue):
13009         Don't queue a WM_PAINT magic event if one is already queued.
13010         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13011
13012         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13013
13014 2000-03-07  Didier Verna  <didier@xemacs.org>
13015
13016         * dired.c: #include `regex.h' after `sysfile.h'.
13017
13018 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13019
13020         * sound.c (init_nas_sound): Fix compiler warning.
13021
13022         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13023         (FREE_STRUCT_P):
13024         (MARK_STRUCT_AS_FREE):
13025         (MARK_STRUCT_AS_NOT_FREE):
13026         Make `gcc -fstrict-aliasing' work properly.
13027
13028 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13029
13030         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13031         (mswindows_delete_device): Call CoUnnitialize().
13032
13033         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13034
13035 2000-02-25    <CraigL@DyCon.com>
13036
13037         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13038         <errno.h>.
13039
13040         * sysdep.c: This extern declaration for environ prevents MinGW
13041         from finding the variable in CRTDLL.DLL.
13042
13043         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13044         windows headers.
13045         (SHGFI_EXETYPE): ..
13046         (WM_MOUSEWHEEL): ..
13047         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13048         definitions.
13049         (MMRESULT): Removed, now defined in cygwin's windows headers.
13050         (TIMECAPS): ..
13051         (uid_t,gid_t,pid_t,ssize_t): ..
13052         (_timeb): Removed, MinGW defines both _timeb and timeb.
13053         (HAVE_H_ERRNO): Added.
13054         (HAVE_TZNAME): Added, configure is not detecting this.
13055
13056 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13057
13058         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13059         * syntax.c (syntax_match): Use it.
13060
13061         * cmds.c: Import auto-fill-chars from FSF Emacs.
13062         (Vauto_fill_chars): New variables.
13063         (internal_self_insert): Check Vauto_fill_chars.
13064         (vars_of_cmds):
13065         Declare auto-fill-chars as a Lisp variable and initialize it.
13066
13067 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13068
13069         * fileio.c (Fmake_symbolic_link):
13070         (Ffile_symlink_p):
13071         Run handlers even if local machine doesn't have symlinks.
13072
13073 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13074
13075         * event-msw.c (mswindows_drain_windows_queue):
13076         Don't generate paint magic events for non-XEmacs frames.
13077
13078 2000-03-05  Andy Piper  <andy@xemacs.org>
13079
13080         * redisplay.c (redisplay_frame): generate_displayable_area and
13081         friends assumes that we are not in GC, we therefore have to make
13082         sure that this doesn't happen.
13083
13084         * gutter.c (calculate_gutter_size): generate_displayable_area
13085         assumes that we are not in GC, we therefore have to make sure that
13086         this doesn't happen.
13087
13088 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13089
13090         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13091
13092 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13093
13094         * redisplay.c (regenerate_window): Make sure we set a sane value
13095         for end_pos even if we jump out of the loop.
13096         (regenerate_window): Answer Ben's question :-).
13097         (start_end_of_last_line): Add may_error argument.
13098         (start_of_last_line):
13099         (end_of_last_line): Pass may_error = 0.
13100         (end_of_last_line_may_error): New function.
13101         (pixel_to_glyph_translation): Use it, so we don't crash in
13102         event_to_glyph.
13103
13104 2000-03-04  Andy Piper  <andy@xemacs.org>
13105
13106         * window.h (struct window): add gutter_extent_modiff.
13107
13108         * window.c (allocate_window): zero out gutter_extent_modiff.
13109
13110         * redisplay.h: declare sync_display_line_structs.
13111
13112         * redisplay.c (add_glyph_rune): add a better comment.
13113
13114         * redisplay-output.c (sync_display_line_structs): made non-static.
13115         (compare_runes): remove unneccesary glyph cachel access.
13116
13117         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13118
13119         * gutter.c (output_gutter): don't output the gutter if extent
13120         changes only involve extents in buffers. use 4 sets of display
13121         lines.
13122         (gutter_extent_signal_changed_region_maybe): new function. Mark
13123         extents in gutters as changed.
13124         (update_frame_gutters): use 4 sets of display lines.
13125         (reset_gutter_display_lines): ditto.
13126         (free_frame_gutters): ditto.
13127         (redraw_exposed_gutter): force output of gutters.
13128
13129         * frame.h (struct frame): add 4 sets of gutter display lines.
13130
13131         * extents.c: (extent_changed_for_redisplay): signal changes to
13132         extents in strings in the gutter as well as extents in buffers.
13133
13134 2000-03-02  Andy Piper  <andy@xemacs.org>
13135
13136         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13137
13138         * frame.c (Fmake_frame): make sure the gutters get initialized
13139         after the frame is visible.
13140         (set_frame_selected_window): re-arrange compilation macros a
13141         little.
13142         (change_frame_size_1): mark gutters changed.
13143
13144         * device.c (Fset_device_class): mark gutters changed.
13145
13146 2000-03-01  Andy Piper  <andy@xemacs.org>
13147
13148         * window.c (window_top_frame_gutter_height): deleted.
13149         (window_bottom_frame_gutter_height): ditto.
13150         (window_left_frame_gutter_height): ditto.
13151         (window_right_frame_gutter_height): ditto.
13152         (window_top_gutter_height): don't use them.
13153         (window_bottom_gutter_height): ditto.
13154         (window_left_gutter_width): ditto.
13155         (window_right_gutter_width): ditto.
13156         (Fsplit_window): ditto.
13157         (Fwindow_pixel_edges): don't use border dimensions here.
13158
13159         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13160         (update_scrollbar_instance): ditto.
13161
13162         * redisplay.c (generate_modeline): don't take gutters into account.
13163         (generate_modeline): ditto.
13164         (redisplay_frame): small gutter display optimization.
13165
13166         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13167
13168         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13169         gutters into account.
13170
13171         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13172         for window position and type.
13173
13174         * gutter.c (get_gutter_coords): fix for frame gutters.
13175         (update_frame_gutters): update frame geometry if the gutters have
13176         changed.
13177         (init_frame_gutters): record current gutter geometries.
13178
13179         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13180         var.
13181         (mswindows_widget_instantiate): ditto.
13182
13183         * frame.h (struct frame): add current_gutter_bounds.
13184
13185         * frame.c (change_frame_size_1): position window and minibuffer
13186         appropriately taking into account the frame gutters.
13187
13188         * frame-x.c: (x_initialize_frame_size): take into account the
13189         frame gutters.
13190
13191 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13192
13193         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13194
13195 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13196
13197         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13198
13199 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13200
13201         * file-coding.c (reset_decoding_stream): Clear previous
13202         detection state when autodetect.
13203
13204 2000-02-29  Didier Verna  <didier@xemacs.org>
13205
13206         * extents.c (set_extent_glyph_1): don't require extents to be
13207         attached.
13208
13209 2000-02-27  Andy Piper  <andy@xemacs.org>
13210
13211         * gutter.c (Fset_default_gutter_position): don't default left and
13212         right gutter visibility to t.
13213         (Fset_default_gutter_position): run
13214         default-gutter-position-changed-hook.
13215         (syms_of_gutter): add default-gutter-position-changed-hook.
13216
13217 2000-02-26  Andy Piper  <andy@xemacs.org>
13218
13219         * specifier.c (Fmake_specifier): add gutter references.
13220
13221         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13222
13223         * lisp.h: declare Fvalid_plist_p.
13224
13225         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13226         as changed.
13227         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13228         well as its visibility so that it gets reconstructed.
13229         (construct_window_gutter_spec): new function. Construct a string
13230         to be displayed in the gutter from a plist of strings. Take care
13231         to only use elements that are declared as visible.
13232         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13233         WINDOW_GUTTER.
13234         (gutter_validate): allow plists of strings in the specifier.
13235         (gutter_specs_changed): construct the real_gutter from the gutter
13236         specs using construct_window_gutter_spec.
13237         (gutter_visible_validate): gutter-visible is a new specifier type.
13238         (Fgutter_visible_specifier_p): new function for the new specifier.
13239         (syms_of_gutter): declare gutter-visible and
13240         Fgutter_visible_specifier_p.
13241         (specifier_type_create_gutter): intitalize new gutter-visible
13242         specifier.
13243         (reinit_specifier_type_create_gutter): ditto.
13244         (specifier_vars_of_gutter): use new specifier type for gutter
13245         visibility.
13246         (init_frame_gutters): construct real_gutter correctly.
13247         (Fgutter_specifier_p): beef up documentation.
13248         (Fgutter_size_specifier_p): ditto.
13249
13250         * winslots.h: add real_gutter slots.
13251
13252 2000-02-25  Andy Piper  <andy@xemacs.org>
13253
13254         * device-msw.c: Be kind to older cygwin versions. From Raymond
13255         Toy <toy@rtp.ericsson.se>.
13256
13257         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13258         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13259
13260 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13261
13262         * elhash.c (MARK_OBJ): Practice macro hygiene.
13263
13264 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13265
13266         * miscplay.c: s/__inline__/inline/g;
13267         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13268         (get_device_compdc): INLINE ==> static inline
13269         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13270         find -name '*.h' | \
13271         xargs global-replace \
13272         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13273
13274 2000-02-25  Andy Piper  <andy@xemacs.org>
13275
13276         * window.c (window_top_frame_gutter_height): new function.
13277         (window_top_window_gutter_height): ditto.
13278         (window_top_gutter_height): use them.
13279         (window_bottom_frame_gutter_height): new function.
13280         (window_bottom_window_gutter_height): ditto.
13281         (window_bottom_gutter_height): use them.
13282         (window_left_window_gutter_width): new function.
13283         (window_left_frame_gutter_width): ditto.
13284         (window_left_gutter_width): use them.
13285         (window_right_window_gutter_width): new function.
13286         (window_right_frame_gutter_width): ditto.
13287         (window_right_gutter_width): use them.
13288         (window_pixel_height): new function. calulate window pixel height
13289         with frame gutter involvement.
13290         (Fsplit_window): calculate new sizes taking frame gutters into
13291         account.
13292         (window_char_height_to_pixel_height): don't include frame gutters.
13293         (window_char_height): use window_pixel_height.
13294         (window_pixheight): rename from window_pixel_height.
13295         (change_window_height): use it.
13296         (window_pixel_height_to_char_height): don't include frame gutters.
13297         (window_char_width_to_pixel_width): ditto.
13298
13299 2000-02-25  Andy Piper  <andy@xemacs.org>
13300
13301         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13302         if it is.
13303
13304 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13305
13306         * alloc.c (staticpro):
13307         (staticpro_nodump):
13308         (dumpstruct):
13309         (dumpopaque):
13310         (pdump_wire):
13311         (pdump_wire_list):
13312         (compact_string_chars):
13313         (pdump_dump_wired):
13314         Convert:  if (foo) abort();  ==>  assert (! foo);
13315
13316         * eldap.c (Fldap_search_basic):
13317         (Fldap_add):
13318         (Fldap_modify):
13319         (Fldap_delete):
13320         Fix compiler warnings, and possible crashes if (random) return
13321         value were to be used.
13322
13323 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13324
13325         * device-msw.c: Workaround ResetDC failure.
13326
13327         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13328         applying a devmode.
13329
13330         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13331         (mswindows_text_width): Do not start printer page.
13332
13333         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13334
13335         * glyphs-msw.c: Added image methods to msprinter console and
13336         msprinter-specific image instantiation.
13337
13338 2000-02-20  Mike Alexander  <mta@arbortext.com>
13339
13340         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13341         to avoid crashes when selection-sets-clipboard is on
13342         (mswindows_own_selection): ditto
13343
13344 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13345
13346         * glyphs-msw.c:
13347         * redisplay-msw.c (get_frame_dc):
13348         (get_frame_compdc):
13349         * console-msw.h:
13350         * device-msw.c (mswindows_init_device):
13351         (mswindows_delete_device):
13352         (msprinter_init_device):
13353         (msprinter_delete_device):
13354         * frame-msw.c (mswindows_init_frame_1):
13355         (mswindows_delete_frame):
13356         (msprinter_init_frame_3):
13357         (msprinter_delete_frame): Move compatible DC to device object from
13358         frame object, for both mswindows and msprinter. Only one at a time
13359         is needed, it is a real waste to have one per frame!
13360
13361 2000-02-23  Andy Piper  <andy@xemacs.org>
13362
13363         * glyphs.c: add dynamic width and height elements.
13364         (image_instance_equal): ditto.
13365
13366         * glyphs-widget.c (widget_query_geometry): calculate width and
13367         height dynamically if required.
13368         (initialize_widget_image_instance): initialize dynamic dimensions.
13369         (widget_instantiate): pick-up dynamic dimensions.
13370
13371         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13372         dynamic determination. Add appropriate macros.
13373
13374         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13375         dimensions safe.
13376         (WINDOW_GUTTER_SIZE): ditto.
13377         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13378
13379         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13380         inline.
13381         (get_frame_dc): ditto.
13382
13383         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13384         here.
13385
13386 2000-02-23  Martin Buchholz <martin@xemacs.org>
13387
13388         * XEmacs 21.2.31 is released.
13389
13390 2000-02-22  Ben Wing <ben@xemacs.org>
13391
13392         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13393
13394 2000-02-22  Andy Piper  <andy@xemacs.org>
13395
13396         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13397
13398 2000-02-21  Mike Sperber <mike@xemacs.org>
13399
13400         * .dbxrc:
13401         * .gdbinit:
13402         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13403         variables.
13404
13405 2000-02-21  Mike Sperber <mike@xemacs.org>
13406
13407         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13408
13409 2000-02-21  Martin Buchholz <martin@xemacs.org>
13410
13411         * XEmacs 21.2.30 is released.
13412
13413 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13414
13415         Performance hacking.
13416         * *.c (syms_of_*):
13417         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13418         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13419         * emacs.c (main_1):
13420         * lisp.h (DEFUN):
13421         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13422         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13423         * symeval.h (DEFVAR_SYMVAL_FWD):
13424         * symbols.c (guts_of_unbound_marker):
13425         Make all c_readonly objects also lisp_readonly and marked for life.
13426         * lrecord.h (struct lrecord_implementation):
13427         Document flags better.
13428         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13429         * lrecord.h (DECLARE_LRECORD):
13430         * lrecord.h (XSETRECORD):
13431         * lrecord.h (RECORDP):
13432         * lrecord.h (RECORD_TYPEP):
13433         * lrecord.h (RECORD_MARKER): New.
13434         * lrecord.h (error_check_*):
13435         * lrecord.h (CONCHECK_NONRECORD):
13436         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13437         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13438         * lrecord.h (set_lheader_implementation):
13439         * lrecord.h (enum lrecord_type): New.
13440         * symeval.h (SYMBOL_VALUE_MAGIC_P):
13441         * alloc.c (disksave_object_finalization_1):
13442         * alloc.c (mark_object):
13443         * alloc.c (lrecord_type_index):
13444         * alloc.c (tick_lcrecord_stats):
13445         * alloc.c (Fgarbage_collect):
13446         * alloc.c (init_alloc_once_early):
13447         * alloc.c (pdump_load):
13448         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13449         * alloc.c (lrecord_type_index): Delete.
13450         Make lisp object type indexes be constant.
13451           Makes (byte-compile) 5% faster.
13452         Put all marker functions into their own array.
13453           Makes (garbage-collect) 5% faster.
13454         Optimize SYMBOL_VALUE_MAGIC_P.
13455           Makes (byte-compile) 2-3% faster.
13456         * config.h.in (gc_checking_assert): New.
13457         * alloc.c: Use gc_checking_assert().
13458         * .dbxrc: Make compatible with new object type implementation.
13459         * .gdbinit: Make compatible with new object type implementation.
13460         * alloc.c: Delete all symbols defined only for debugging, such as
13461         Lisp_Type_Vector and lrecord_charset.
13462
13463 2000-02-21  Andy Piper  <andy@xemacs.org>
13464
13465         * gui-msw.c (Fmswindows_shell_execute): fix file location
13466         problems.
13467
13468         * buffer.c (Fkill_buffer): remove buffer from alist buffer
13469         unshowing so that set_window_buffer doesn't undo
13470         kill_buffer_hook's hard work.
13471
13472         * glyphs-widget.c (tab_control_query_geometry): don't count the
13473         first item when calculating geometry.
13474
13475         * glyphs.c (map_subwindow): remove redundant code.
13476         (update_frame_subwindows): be more circumspect about when to
13477         update subwindows.
13478
13479         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13480         when items haven't changed. Update faces if faces have changed as
13481         well as just the widget face.
13482         (x_tab_control_update): Update faces if faces have changed as well
13483         as just the widget face.
13484
13485 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13486
13487         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13488         registration.
13489         (build_syscolor_string): Use mswindows_color_to_string to try to
13490         get a named color.
13491         (mswindows_device_system_metrics): Reverse the foreground and
13492         background colors so that they match the documentation.
13493
13494         * objects-msw.c: (mswindows_X_color_map): tweak some values so
13495         they match the default Windows palette.
13496         (mswindows_color_to_string): New function.
13497
13498 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13499
13500         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13501
13502 2000-02-18  Olivier Galibert  <galibert@pobox.com>
13503
13504         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13505         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13506
13507         * symbols.c (init_symbols_once_early): Removed obsolete
13508         DATA_SEG_BITS related kludge.
13509         (defvar_magic): Ditto.
13510
13511         * malloc.c: Removed obsolete DATA_SEG_BITS
13512         * ralloc.c: Ditto.
13513         * mem-limits.h: Ditto.
13514
13515         * Makefile.in.in: Removed obsolete HAVE_SHM
13516         * emacs.c: Ditto.
13517
13518 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13519
13520         *  device-msw.c (mswindows_delete_device): Free DDE string
13521         handles.
13522
13523 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13524
13525         * keymap.c (get_keyelt):
13526         * unexnt.c (unexec):
13527         * vm-limit.c (memory_warnings):
13528         * ntheap.c (recreate_heap):
13529         * ntheap.h (UNINIT_PTR):
13530         * select-msw.c (Fmswindows_get_clipboard):
13531         (Fmswindows_set_clipboard):
13532         * objects-msw.h (MSWINDOWS_BAD_HFONT):
13533         * objects-msw.c:
13534         * menubar-msw.c (displayable_menu_item):
13535         * glyphs-msw.c:
13536         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
13537         * sysdep.c (sys_subshell):
13538         * process-nt.c (nt_create_process):
13539         * nt.c (normalize_filename):
13540         (dostounix_filename):
13541         (unixtodos_filename):
13542         * ntproc.c (win32_executable_type):
13543         * ntplay.c (play_sound_data_1):
13544         (play_sound_file):
13545         * editfns.c (get_home_directory):
13546         * event-msw.c (struct winsock_stream):
13547         (mswindows_dde_callback):
13548         * device-msw.c (msprinter_init_device):
13549         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
13550
13551         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
13552         mswindows_clear_toolbar were swapped!
13553
13554         * objects-msw.c:(colormap_t):
13555         (fontmap_t):
13556         * emacs.c (struct standard_args): Fixed const jumble.
13557
13558         * glyphs-widget.c (update_widget): Fixed comparison notation.
13559
13560         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
13561
13562         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
13563         __declspec(noreturn) syntax.
13564
13565 2000-02-19  Martin Buchholz  <martin@xemacs.org>
13566
13567         * eldap.c (Fldap_open):
13568         (Fldap_search_basic):
13569         (Fldap_add):
13570         (Fldap_modify):
13571         Use new coding system conversion macros.
13572
13573 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13574
13575         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
13576
13577 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
13578
13579         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
13580         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13581
13582         * eldap.c (Qadd, Qreplace): New constant symbols
13583         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
13584         interruptions by XEmacs signals
13585         Remove unnecessary calls to slow_down_interrupts and
13586         speed_up_interrupts
13587         (Fldap_search_basic): Renamed from Fldap_search_internal
13588         Added new optional parameter VERBOSE that triggers the
13589         display of progress messages
13590         Remove unnecessary calls to slow_down_interrupts and
13591         speed_up_interrupts
13592         LDAP result code analysis rewritten
13593         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13594         (syms_of_eldap): Define the new symbols and functions
13595
13596
13597 2000-02-17  Martin Buchholz  <martin@xemacs.org>
13598
13599         * realpath.c: Determine PATH_MAX maximally portably.
13600
13601         * insdel.c (bytecount_to_charcount): Optimize.
13602         The function used to be optimized for entirely ASCII sequences.
13603         Now it is optimized for successive characters from the same
13604         charset.  This also wins big for _mostly_ ASCII sequences.
13605
13606         * fileio.c (Ffile_truename): convert return from realpath() using
13607         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
13608         - Rewrite GCPROing slightly.
13609
13610         * sysdep.c (sys_open): Do filename conversion, like all other
13611         sys_* functions.  Fixes bug:
13612         (let ((file-name-coding-system 'iso-8859-2))
13613            (write-region x y latin2-name))
13614         ==> writes filename using internal encoding.
13615
13616 2000-02-18  Martin Buchholz  <martin@xemacs.org>
13617
13618         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
13619         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
13620         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
13621         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
13622         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
13623         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
13624         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
13625         (CONST_IF_NOT_DEBUG): Delete.
13626         * alloc.c (this_one_is_unmarkable): Delete.
13627         (mark_object): Don't check for this_one_is_unmarkable. Use the
13628         c_readonly flag instead.
13629         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
13630
13631 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13632
13633         * event-msw.c (mswindows_drain_windows_queue):
13634         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
13635         away redundant repaint events.
13636
13637 2000-02-17  Andy Piper  <andy@xemacs.org>
13638
13639         * redisplay.h: declare mark_redisplay_structs.
13640
13641         * redisplay.c (redisplay_window):
13642         (redisplay_frame): don't check subwindows_state_changed.
13643         (mark_redisplay): mark gutters here.
13644
13645         * glyphs.c: (instantiate_image_instantiator): always layout if we
13646         haven't done so already.
13647         (allocate_image_instance): don't mark as dirty.
13648         (update_subwindow): bind inhibit_quit.
13649
13650         * gutter.c (mark_gutters): new function.
13651
13652         * glyphs-x.c (x_update_widget): Always resize to get round a
13653         widget bug.
13654
13655         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
13656         breaking absolutely everything.
13657
13658         * gutter.h: declare mark_gutters.
13659
13660 2000-02-16  Martin Buchholz <martin@xemacs.org>
13661
13662         * XEmacs 21.2.29 is released.
13663
13664 2000-02-15  Olivier Galibert  <galibert@pobox.com>
13665
13666         * fns.c (size_bit_vector): Fix computation of the size.
13667
13668 2000-02-15  Martin Buchholz  <martin@xemacs.org>
13669
13670         * *.[ch]: Change CONST to const globally.
13671         find -name '*.[ch]' | \
13672         xargs global-replace \
13673         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
13674         - Remove vestigial references to CONST_IS_LOSING
13675
13676 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13677
13678         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
13679         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
13680         events instead of dispatching them directly.
13681         (mswindows_handle_paint): New function to do repainting.
13682         (mswindows_wnd_proc):
13683         (emacs_mswindows_handle_magic_event): Call above function.
13684
13685 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13686
13687         * objects-msw.c (mswindows_create_font_variant): Return the new
13688         font handle.
13689         (initialize_font_instance): Get font metrics from the underlined
13690         variant of the font to cope with the case where the underlined
13691         font has a bigger descent.
13692
13693 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
13694
13695         * gui.c (gui_item_accelerator): Return the first underlined
13696         character in item name.
13697
13698 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13699
13700         * lisp.h: Added Qprinter.
13701
13702         * general.c (syms_of_general): Initialized it.
13703
13704         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
13705         (get_frame_dc):
13706         (get_frame_compdc): Made inline.
13707
13708         * console.h (struct console_methods): Added eject_page method.
13709
13710         * frame.h: Added FRAME_DISPLAY_P and friends.
13711         Aligned backslahes in many macros in more readable fashion.
13712         Added page_number to struct frame, and an accessor macro
13713         for it.
13714
13715         * defice.h: Added DEVICE_DISPLAY_P and friends.
13716
13717         * device.c (Fdevice_printer_p): Used these.
13718
13719         * frame.c (allocate_frame_core): Initialize page number.
13720         (Fprint_job_page_number):
13721         (Fprint_job_eject_page): Implemented.
13722
13723         * frame-msw.c (msprinter_eject_page): Added method.
13724         (msprinter_start_page): Added.
13725
13726         * window.c (Fwindow_truncated_p): Fixed docstring.
13727         (Fwindow_last_line_visible_height): Implemented.
13728
13729 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13730
13731         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
13732
13733 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13734
13735         * syntax.c (scan_words): Always advance at least one character.
13736
13737 2000-02-13  Andy Piper  <andy@xemacs.org>
13738
13739         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
13740         to make sure the glyph is in the cachels.
13741
13742         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
13743         global image instance flag.
13744         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
13745         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
13746
13747         * glyphs.c (allocate_image_instance): set dirty bits correctly.
13748         (Fset_image_instance_property): mark layout as changed.
13749         (invalidate_glyph_geometry_maybe): mark layout as changed.
13750         (glyph_width): use new NEEDS_LAYOUT macro.
13751         (glyph_ascent): ditto.
13752         (glyph_descent): ditto.
13753         (glyph_height): ditto.
13754         (image_instance_layout): mark layout as clean after laying out.
13755         (update_subwindow): don't mark layout as clean here.
13756
13757         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
13758         should no longer be needed.
13759
13760         * glyphs-x.c (x_update_widget): sanitize asserts.
13761         (x_finalize_image_instance): sanitize assignment to widgets.
13762
13763         * glyphs-widget.c (widget_instantiate): don't need to clear the
13764         layout flag here.
13765
13766 2000-02-13  Martin Buchholz  <martin@xemacs.org>
13767
13768         * sysdep.c (getcwd): Use standard prototype.
13769         * sysdep.h (getcwd): Use standard prototype.
13770
13771         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
13772         (sequence, start, end).
13773         Remove redundant type checking.
13774         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
13775         view of `caller-protects') to avoid a crash where the real fix was
13776         found elsewhere.
13777
13778 2000-02-12  Martin Buchholz  <martin@xemacs.org>
13779
13780         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
13781
13782         * s/sol2.h: Remove feature macro initialization.
13783
13784         * alloc.c (alloc_lcrecord): Add more type checking assertions.
13785         (vector_hash): New.  Code from internal_hash.
13786         * lrecord.h:
13787         Fix up allocation subsystem comments.
13788
13789         * config.h.in: Add __EXTENSIONS__ for Solaris.
13790
13791         * systime.h (EMACS_GETTIMEOFDAY): New.
13792         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
13793         Remove Solaris-specific code.
13794         Use void* for the (ignored) second arg for gettimeofday().
13795
13796         * elhash.c (hash_table_hash): Implement it, finally.
13797         * elhash.c:  Use hashcode_t.
13798
13799         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
13800         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
13801
13802         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
13803         * fns.c (size_bit_vector):
13804         * alloc.c (size_vector):
13805         (make_vector_internal):
13806         (make_bit_vector_internal):
13807         (sweep_bit_vectors_1):
13808         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
13809
13810 2000-02-10  Martin Buchholz  <martin@xemacs.org>
13811
13812         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
13813         Include strings.h to avoid warnings for bzero and strcasecmp.
13814
13815 2000-02-10  Olivier Galibert  <galibert@pobox.com>
13816
13817         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
13818         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
13819
13820         * fns.c (size_bit_vector): New.  Declare bit vectors as a
13821         sequence.
13822
13823 2000-02-10  Olivier Galibert  <galibert@pobox.com>
13824
13825         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
13826         use a value field instead.
13827         (symbol_value_forward_forward): Use value field.
13828         (DEFVAR_SYMVAL_FWD): Use value field.
13829         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
13830         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
13831         (DEFVAR_CONST_INT): Ditto.
13832         (DEFVAR_BOOL): Ditto.
13833         (DEFVAR_CONST_BOOL): Ditto.
13834         (DEFVAR_INT_MAGIC): Ditto.
13835         (DEFVAR_BOOL_MAGIC): Ditto.
13836
13837         * symbols.c (guts_of_unbound_marker): Use value field.
13838         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
13839         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
13840
13841         * lisp.h: Declare dumpopaque and noninteractive1.
13842
13843         * alloc.c (dumpopaque): Added.
13844         (pdump_dump_opaquevec): Added.
13845         (pdump): Call pdump_dump_opaquevec to dump opaque data.
13846         (pdump_load): Reload opaque data.  Sync noninteractive1 with
13847         noninteractive.
13848
13849 2000-02-10  Andy Piper  <andy@xemacs.org>
13850
13851         * glyphs.c (image_instance_layout): if the size changes, mark it
13852         as such.
13853
13854         * redisplay-output.c (redisplay_output_layout): Update the
13855         subwindow here.
13856         (redisplay_output_subwindow): ditto.
13857
13858         * glyphs.c (update_subwindow): make sure we reset flags for
13859         layouts as well as everything else.
13860
13861         * glyphs-widget.c (layout_layout): don't need to set the instances
13862         dimensions here.
13863
13864 2000-02-09  Martin Buchholz  <martin@xemacs.org>
13865
13866         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
13867         not HAVE_DLOPEN, which is a lower-level thing.
13868
13869         * .cvsignore: Ignore gmon.out
13870
13871 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
13872
13873         * .cvsignore: Ignore portable dumper xemacs.dmp file
13874
13875 2000-02-09  Andy Piper  <andy@xemacs.org>
13876
13877         * redisplay-output.c (redisplay_output_layout): be more clever
13878         about when we output based on the changed flags.
13879
13880         * glyphs.h (struct image_instantiator_methods): add update_method.
13881         (struct Lisp_Image_Instance): add changed flags. Declare new
13882         macros for manipulating them.
13883
13884         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
13885         (image_instance_parent_glyph): find an image_instance's parent
13886         glyph or image_instance.
13887         (image_instance_layout): mark the size as changed.
13888         (set_image_instance_dirty_p): new function. mark an image
13889         instance, plus all of its parents, as dirty.
13890         (Fset_image_instance_property): use it.
13891         (Fglyph_animated_timeout_handler): use it.
13892         (update_subwindow): call update_widget and device methods for
13893         update_subwindow. Mark all changed flags as clean.
13894         (Fresize_subwindow): mark size as changed.
13895
13896         * glyphs-x.c (x_finalize_image_instance): try and detect gc
13897         failures.
13898         (x_update_subwindow): only resize subwindows here.
13899         (x_update_widget): new function. Update all changed properties of
13900         a widget.
13901         (x_resize_subwindow): deleted.
13902         (x_widget_set_property): deleted.
13903         (x_progress_gauge_set_property): deleted.
13904         (x_progress_gauge_update): new function. Implement recorded
13905         changes.
13906         (x_tab_control_update): ditto.
13907         (x_tab_control_set_property): deleted.
13908         (console_type_create_glyphs_x): declare new functions.
13909         (image_instantiator_format_create_glyphs_x): ditto.
13910
13911         * glyphs-widget.c (widget_set_property): mark text changed.
13912         (update_widget): new function. Update properties of a widget.
13913         (widget_instantiate): for layouts make sure we set their
13914         children's parent correctly.
13915         (tab_control_set_property): new function. Record changes that will
13916         take place under redisplay's control.
13917         (progress_gauge_set_property): ditto.
13918         (image_instantiator_progress_guage): declare new functions.
13919         (image_instantiator_tab_control): ditto.
13920
13921         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
13922         now.
13923         (mswindows_update_widget): new function. Update all properties on
13924         a widget that have changed.
13925         (mswindows_button_update): new function. Update a button's set
13926         state.
13927         (mswindows_tab_control_update): new function. Update the items in
13928         a tab.
13929         (mswindows_tab_control_set_property): deleted.
13930         (mswindows_progress_gauge_update): new function. Update the
13931         progress gauge's progress.
13932         (mswindows_widget_set_property): deleted. This is all done
13933         asynchronously now.
13934         (mswindows_progress_gauge_set_property): ditto.
13935         (console_type_create_glyphs_mswindows): declare new methods.
13936         (image_instantiator_format_create_glyphs_mswindows): ditto.
13937
13938         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
13939         (msprinter_set_frame_properties): ditto.
13940
13941         * console.h (struct console_methods): Add update_widget_method.
13942
13943 2000-02-09  Andy Piper  <andy@xemacs.org>
13944
13945         * gui-msw.c (Fmswindows_shell_execute): Make
13946         mswindows-shell-execute industrial strength.
13947
13948 2000-02-08  Martin Buchholz  <martin@xemacs.org>
13949
13950         * lrecord.h: Make macro argument `props' match member function `plist'.
13951         * fns.c (Fget):
13952         * fns.c (Fput):
13953         * fns.c (Fremprop):
13954         * fns.c (Fobject_plist):
13955         * alloc.c:
13956         * symbols.c:
13957         Object property list frobbing cleanup.
13958         - Allow any lisp object (compared with `eq'), not just symbols, as
13959           keys in object plists.
13960         - Move symbol plist frobbing into symbols.c, where it belongs.
13961         - Move string plist frobbing into alloc.c, where it belongs.
13962         - Everything's an lrecord now, so no need to test for symbolp, etc.
13963         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
13964
13965         * extents.c: Reorder code to remove declarations.
13966
13967         * frame.h (store_in_alist): Remove useless declaration.
13968
13969 2000-02-07  Martin Buchholz  <martin@xemacs.org>
13970
13971         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
13972         * config.h.in: Add HAVE_XCONVERTCASE.
13973
13974 2000-02-07  Andy Piper  <andy@xemacs.org>
13975
13976         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
13977         it breaks many things.
13978
13979 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13980
13981         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
13982         actually can start a common comment type.
13983         * src/syntax.h (SYNTAX_END_P): ditto for end.
13984
13985 2000-02-07  Martin Buchholz <martin@xemacs.org>
13986
13987         * XEmacs 21.2.28 is released.
13988
13989 2000-02-06  Martin Buchholz  <martin@xemacs.org>
13990
13991         * event-Xt.c (x_keysym_to_character): New.
13992         (maybe_define_x_key_as_self_inserting_character): New.
13993         (x_has_keysym): New.
13994         Auto-define all keys on the keyboard as self-insert-key.
13995
13996 2000-02-02  Martin Buchholz  <martin@xemacs.org>
13997
13998         * menubar.c (vars_of_menubar): A small code simplification.
13999
14000         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14001
14002         * ExternalShell.c:
14003         * ExternalClient.c:
14004         * EmacsShell-sub.c:
14005         * EmacsManager.c:
14006         * EmacsFrame.c:
14007         Use consistent style for specifying X resources.
14008
14009         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14010         This makes (dontusethis-set-symbol-value-handler) actually usable.
14011
14012         * lrecord.h (lrecord_decription_type):
14013         * alloc.c (pdump_register_sub):
14014         (pdump_dump_data):
14015         (pdump_reloc_one):
14016         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14017         Comply with XEmacs coding style.
14018         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14019         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14020
14021         * keymap.c (Faccessible_keymaps):
14022         Make (accessible-keymaps map "\C-h") do the Right Thing.
14023         Make (accessible-keymaps map []) do the Right Thing.
14024         Make (accessible-keymaps map "") do the Right Thing.
14025         (check_keymap_definition_loop): New function.
14026         (keymap_store_internal): Keep luser from shooting self in foot,
14027           via (define-key ctl-x-4-map "p" global-map).
14028         Remove fullness slot from struct Lisp_Keymap, since hash tables
14029         are now reliable.
14030         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14031
14032 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14033
14034         * redisplay.c (init_redisplay): Fix small memory leak.
14035         * elhash.h:
14036         * elhash.c (pdump_reorganize_hash_table):
14037         Rename from reorganize_hash_table. Change prototype.
14038         Reuse the original memory for hentries.  Save 100k.
14039         * alloc.c (PDUMP_READ): new macro.
14040         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14041         * alloc.c: No need to #ifndef before #undef.
14042
14043         * print.c: Allow debug_print() to print readably by modifying
14044         debug_print_readably.  Use consistent variable names.
14045
14046         * .dbxrc: Try to get things to work even if stopped in a function
14047         without source available by explicitly specifying source files.
14048 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14049
14050         * unexnt.c (_start): Removed bogus code which caused loading heap
14051         from differrent executable file.
14052         Removed bogus assignment to _fmode, which caused inconsistencies.
14053
14054 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14055
14056         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14057         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14058         Do not preliminary `#define signal sigset'.
14059
14060         * systime.h: Do not prototype environ on windows nt and cygwin,
14061         this conflicts with system header.
14062
14063         * syssignal.h: Use correct define for WINDOWSNT
14064
14065         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14066         with system header.
14067
14068         * sysdep.c (near start of file): Fixed commentary and rearranged
14069         ifdefs in readable order.
14070         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14071         (start_of_text):
14072         (end_of_text):
14073         (end_of_data): Do not compile in if using PDUMP.
14074
14075         * symsinit.h: Prototyped vars_of_nt().
14076
14077         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14078         (find_child_console): Use it.
14079         (sys_kill): Use it.
14080
14081         * ntheap.h: Do not extern os_subtype.
14082
14083         * ntheap.c (cache_system_info): Do not cache unneeded:
14084         nt_major_version, nt_minor_version and os_subtype.
14085         (recreate_heap): Do not compile in when PDUMPing.
14086
14087         * nt.c (geteuid and friends): Use the new varibale
14088         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14089         (init_user_info): Removed the above mentioned hackery.
14090         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14091         stat has been fixed in the C runtime.
14092         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14093
14094         * file-coding.c (struct file_coding_dump): Do not define
14095         ucs_to_mule_table in the struct if not MULE.
14096         (struct struct lrecord_description fcd_description_1): Do not dump
14097         the above.
14098
14099         * emacs.c (main_1): Call vars_of_nt().
14100         (right before Fdump_emacs_data): Don't need lastfile if using both
14101         portabe dumper and system malloc.
14102
14103         * alloc.c (Fmemory_limit): Conditionalized out.
14104         (pdump): Use OPEN_BINARY for the portable dump file.
14105         (pdump_load): Ditto.
14106
14107 2000-02-02  Mike Alexander  <mta@arbortext.com>
14108
14109         * nt.c (convert_time): Set tm_isdst before calling mktime and
14110         avoid calling it at all if the compiler supports 64 bit integers.
14111         Also initialize utc_base_ft before using it.
14112
14113 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14114
14115         * frame.c (change_frame_size_1): Take f->internal_border_width
14116         into consideration when calculating the width of the frame.
14117
14118 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14119
14120         * window.c (frame_min_height):
14121         (frame_size_valid_p):
14122         (frame_pixsize_valid_p): Added.
14123         (check_frame_size): Generalized.
14124
14125         * window.h: Prototyped the above.
14126
14127         * lisp.h:
14128         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14129         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14130         Deleted Vwin32_* and Vbinary_process_* unused variables.
14131
14132         * device-msw.c (msprinter_init_device): Do not get printer font
14133         list; Added DEVMODE functions.
14134
14135         * frame-msw.c: Added lots of printer code.
14136
14137         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14138         general.c.
14139
14140         * console-msw.h: Added more msprinter device private slots.
14141
14142 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14143
14144         * event-msw.c (key_needs_default_processing_p): Added.
14145         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14146
14147 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14148
14149         * glyphs.c (image_instance_layout): Mark image instance as clean
14150         after layout.
14151         (glyph_dirty_p): Removed redundant function.
14152         (invalidate_glyph_geometry_maybe): Added.
14153         (update_glyph_cachel_data): Call it.
14154
14155         * glyphs.h: Prototyped it.
14156
14157         * redisplay.c (add_glyph_rune): Call it.
14158         (redisplay_window): Reset glyphs cachels when frame faces have
14159         changed, thus forcing recomputation of built-in border glyphs.
14160
14161 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14162
14163         * Makefile.in.in: Make portable dumper and purify play well together.
14164         Add imperfect, but better than nothing, support for pdump.
14165         Remove xemacs.dmp when temacs is re-generated.
14166         Don't ignore errors when dumping xemacs.
14167
14168         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14169
14170 2000-01-28  Andy Piper  <andy@xemacs.org>
14171
14172         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14173         (setup_normal_frame): ditto.
14174         (setup_frame_without_minibuffer): ditto.
14175         (setup_minibuffer_frame): ditto.
14176         (delete_frame_internal): ditto.
14177         (Fmake_frame_invisible): ditto.
14178         (Ficonify_frame): ditto.
14179
14180         * window.h: change Fset_window_buffer signature.
14181
14182         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14183         (Fset_window_buffer): allow recording of buffer if the window is
14184         the selected window.
14185         (window_loop): Use new Fset_window signature.
14186
14187 2000-01-23  Daniel Pittman  <daniel@danann.net>
14188
14189         * config.h.in: Added template for `HAVE_ATHENA_3D'
14190
14191 2000-01-29  Andy Piper  <andy@xemacs.org>
14192
14193         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14194
14195         * gutter.c (output_gutter): Don't output if the window isn't live.
14196
14197 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14198
14199         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14200         of 01/12/00: Moved SetFocus back here where it belongs.
14201
14202 2000-01-23  Andy Piper  <andy@xemacs.org>
14203
14204         * s/cygwin32.h: declare printer things.
14205
14206 2000-01-26  Andy Piper  <andy@xemacs.org>
14207
14208         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14209         Alexander.
14210
14211 2000-01-24  Andy Piper  <andy@xemacs.org>
14212
14213         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14214         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14215
14216         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14217
14218         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14219
14220         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14221
14222         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14223         (mswindows_output_display_block): Avoid local shadows.
14224
14225         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14226         (mswindows_enqueue_mouse_button_event): ditto.
14227         (mswindows_handle_gui_wm_command): remove declaration.
14228
14229         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14230         warnings.
14231
14232         * console-msw.h: Avoid shadows.
14233         (mswindows_get_toolbar_button_text):
14234         (emacs_mswindows_create_stream_pair):
14235         (emacs_mswindows_delete_stream_pair):
14236         (mswindows_handle_toolbar_wm_command): declare.
14237
14238         * device-msw.c (build_syscolor_string): Avoid shadows.
14239
14240 2000-01-23  Andy Piper  <andy@xemacs.org>
14241
14242         * glyphs-widget.c (widget_instantiate): reverse the items for
14243         layouts so that children are in the expected order.
14244
14245 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14246
14247         * ralloc.c: safe_bcopy ==> memmove
14248         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14249         * s/msdos.h: Remove BCOPY macros.
14250         * insdel.c (gap_right): Remove BCOPY conditional code.
14251         * insdel.c (gap_left): Remove BCOPY conditional code.
14252         XEmacs demands a working ANSI C compiler - hence memmove.
14253
14254         * regex.c (regex_compile): Remove accidental use of trigraphs.
14255
14256 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14257
14258         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14259         event timestamp.
14260
14261 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14262
14263         * event-msw.c (mswindows_drain_windows_queue): Added the
14264         parameter.
14265         (mswindows_need_event): Commented the call to
14266         mswindows_drain_windows_queue().
14267         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14268         only.
14269
14270         * console-msw.h: Moved a few function prototypes here from
14271         event-msw.c.
14272
14273         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14274         parameter from unsigned short to unsigned long.
14275         (Fmswindows_shell_execute): Added return value.
14276
14277 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14278
14279         * sysdep.c (init_system_name):
14280           process-unix.c (unix_canonicalized_host_name):
14281         Don't call freeaddrinfo() if getaddrinfo() fails.
14282
14283         * process-unix.c (unix_open_unix_network_stream):
14284         Moved the code to get a port # into address loop.
14285
14286 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14287
14288         * buffer.c (reinit_vars_of_buffer):
14289         The right place to initialize conversion_in_dynarr and
14290         conversion_out_dynarr.
14291
14292         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14293
14294         * process-unix.c (unix_canonicalize_host_name): Muleize.
14295         (unix_open_network_stream): Muleize.
14296
14297         * buffer.h: Fix up prototypes for ralloc.c functions.
14298
14299 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14300         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14301         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14302                 instead of gethostbyname()
14303         * process-unix.c: In unix_canonicalize_host_name() and
14304                 unix_open_network_stream(), add code to use getaddrinfo()
14305                 instead of gethostbyname().
14306
14307 2000-01-27  Daniel Pittman <daniel@danann.net>
14308
14309         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14310         libs when built with flat Athena.
14311
14312 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14313
14314         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14315         Use coding standards for function prototypes.
14316
14317 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14318
14319         * dialog-msw.c (push_lisp_string_as_unicode):
14320         * doc.c (unparesseuxify_doc_string):
14321         * dired.c (Fuser_name_completion_1):
14322         * dired.c (Fuser_name_all_completions):
14323         * dired.c (free_user_cache):
14324         * dired.c (user_name_completion):
14325         * console-x.c (get_display_arg_connection):
14326         * minibuf.c (clear_echo_area_internal):
14327         * minibuf.c (echo_area_append):
14328         * eldap.c (Fldap_open):
14329         * eldap.c (Fldap_search_internal):
14330         * frame-x.c (x_set_frame_text_value):
14331         * frame-x.c (x_set_frame_properties):
14332         * frame-x.c (x_create_widgets):
14333         * redisplay-tty.c (term_get_fkeys_1):
14334         * objects-x.c (x_parse_nearest_color):
14335         * objects-x.c (x_valid_color_name_p):
14336         * objects-x.c (x_initialize_font_instance):
14337         * objects-x.c (x_list_fonts):
14338         * objects-x.c (x_find_charset_font):
14339         * tooltalk.c (Fadd_tooltalk_message_arg):
14340         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14341         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14342         * process-unix.c (unix_create_process):
14343         * ntproc.c (sys_spawnve):
14344         * sound.c (Fplay_sound_file):
14345         * sound.c (Fplay_sound):
14346         * buffer.c (init_initial_directory):
14347         * buffer.c (init_buffer):
14348         * editfns.c (init_editfns):
14349         * editfns.c (Ftemp_directory):
14350         * editfns.c (Fuser_full_name):
14351         * editfns.c (uncache_home_directory):
14352         * editfns.c (get_home_directory):
14353         * editfns.c (Fuser_home_directory):
14354         * editfns.c (Fformat_time_string):
14355         * editfns.c (Fcurrent_time_string):
14356         * gui-x.c (button_item_to_widget_value):
14357         * database.c (Fopen_database):
14358         * event-Xt.c (x_to_emacs_keysym):
14359         * event-Xt.c (x_event_to_emacs_event):
14360         * event-Xt.c (describe_event_window):
14361         * event-msw.c (mswindows_wnd_proc):
14362         * glyphs-eimage.c (jpeg_instantiate):
14363         * glyphs-eimage.c (gif_instantiate):
14364         * glyphs-eimage.c (png_instantiate):
14365         * glyphs-eimage.c (tiff_instantiate):
14366         * glyphs-x.c (xbm_instantiate_1):
14367         * glyphs-x.c (x_xbm_instantiate):
14368         * glyphs-x.c (x_xface_instantiate):
14369         * glyphs-x.c (autodetect_instantiate):
14370         * glyphs-x.c (cursor_font_instantiate):
14371         * glyphs-x.c (x_widget_instantiate):
14372         * glyphs-x.c (x_widget_set_property):
14373         * glyphs-x.c (x_widget_property):
14374         * glyphs-x.c (BUILD_GLYPH_INST):
14375         * print.c (write_string_to_stdio_stream):
14376         * print.c (output_string):
14377         * print.c (Falternate_debugging_output):
14378         * print.c (Fexternal_debugging_output):
14379         * glyphs-msw.c (extract_xpm_color_names):
14380         * glyphs-msw.c (mswindows_xpm_instantiate):
14381         * glyphs-msw.c (bmp_instantiate):
14382         * glyphs-msw.c (resource_name_to_resource):
14383         * glyphs-msw.c (mswindows_resource_instantiate):
14384         * glyphs-msw.c (xbm_instantiate_1):
14385         * glyphs-msw.c (mswindows_xbm_instantiate):
14386         * glyphs-msw.c (mswindows_xface_instantiate):
14387         * glyphs-msw.c (mswindows_widget_instantiate):
14388         * glyphs-msw.c (add_tree_item):
14389         * glyphs-msw.c (add_tab_item):
14390         * glyphs-msw.c (mswindows_combo_box_instantiate):
14391         * glyphs-msw.c (mswindows_widget_property):
14392         * glyphs-msw.c (mswindows_combo_box_property):
14393         * glyphs-msw.c (mswindows_widget_set_property):
14394         * console.c (stuff_buffered_input):
14395         * objects-msw.c (mswindows_initialize_color_instance):
14396         * objects-msw.c (mswindows_valid_color_name_p):
14397         * objects-msw.c (mswindows_list_fonts):
14398         * objects-msw.c (mswindows_font_instance_truename):
14399         * bytecode.c (optimize_compiled_function):
14400         * select-x.c (symbol_to_x_atom):
14401         * select-x.c (x_atom_to_symbol):
14402         * select-x.c (hack_motif_clipboard_selection):
14403         * select-x.c (selection_data_to_lisp_data):
14404         * select-x.c (lisp_data_to_selection_data):
14405         * select-x.c (Fx_get_cutbuffer_internal):
14406         * select-x.c (Fx_store_cutbuffer_internal):
14407         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14408         * buffer.h (TO_INTERNAL_FORMAT): New function.
14409         * emacs.c (make_arg_list_1):
14410         * emacs.c (make_argc_argv):
14411         * emacs.c (main_1):
14412         * emacs.c (Fdump_emacs):
14413         * emacs.c (split_string_by_emchar_1):
14414         * file-coding.h:
14415         * lisp.h:
14416         * lstream.h:
14417         * symsinit.h:
14418         * device-x.c (x_init_device):
14419         * device-x.c (Fx_valid_keysym_name_p):
14420         * device-x.c (Fx_get_font_path):
14421         * device-x.c (Fx_set_font_path):
14422         * glyphs.c (bitmap_to_lisp_data):
14423         * glyphs.c (pixmap_to_lisp_data):
14424         * alloc.c (make_ext_string): Use coding system arguments.  Update
14425         all callers.
14426         * alloc.c (build_string):
14427         * callproc.c (child_setup):
14428         * callproc.c (init_callproc):
14429         * fileio.c (lisp_strerror):
14430         * fileio.c (directory_file_name):
14431         * fileio.c (Fexpand_file_name):
14432         * fileio.c (Ffile_truename):
14433         * fileio.c (Fsysnetunam):
14434         * fileio.c (Fdo_auto_save):
14435         * sysdep.c (sys_readdir):
14436         * tests.c: New file.  Allow adding C tests.
14437         Replace GET_* macros with a more comprehensible and flexible
14438         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14439         Modify all calls.
14440         Any coding system can be used to do format conversion.
14441         Eliminate enum external_data_format.
14442         Eliminate convert_to_external_format.
14443         Eliminate convert_to_internal_format.
14444         Make sure file-name, keyboard, terminal, and ctext are always
14445         defined as coding systems or aliases.  Make
14446         file-name-coding-system, terminal-coding-system, and
14447         keyboard-coding-system magical variables that are equivalent to
14448         defining the corresponding coding system aliases.
14449
14450         * file-coding.c (Fcoding_system_canonical_name_p): New function.
14451         * file-coding.c (Fcoding_system_alias_p): New function.
14452         * file-coding.c (Fcoding_system_aliasee): New function.
14453         * file-coding.c (append_suffix_to_symbol): New function.
14454         * file-coding.c (dangling_coding_system_alias_p): New function.
14455         * file-coding.c (Ffind_coding_system):
14456         * file-coding.c (Fcopy_coding_system):
14457         * file-coding.c (encode_coding_no_conversion):
14458         * file-coding.c (syms_of_file_coding):
14459         * file-coding.c (vars_of_file_coding):
14460         Rewrite coding system alias code.
14461         Allow nested aliases, like symbolic links.
14462         Allow redefinition of coding system aliases.
14463         Prevent existence of dangling coding system aliases.
14464
14465         * dired.c (Fuser_name_completion_1):
14466         * dired.c (Fuser_name_all_completions):
14467         A crash would happen if user did QUIT in the middle of building
14468         user_name_cache.  Remove redundant code in mainline and unwind_protect.
14469
14470         * lisp.h:
14471         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
14472
14473         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14474         an unsigned char *.  Update all callers.
14475
14476 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14477
14478         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14479
14480 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14481
14482         * elhash.c (hentry_description): Use more portable definition.
14483         (resize_hash_table): Initialize new hentries using
14484         xnew_array_and_zero, thereby simplifying the code.
14485
14486         * mule-charset.c (make_charset): Make sure entire object is
14487         initialized, to avoid Purify warnings.
14488
14489         * alloc.c (resize_string): Fix unlikely crash with big strings.
14490
14491 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14492
14493         * realpath.c (xrealpath):
14494         Don't call getwd().
14495
14496 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14497
14498         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14499
14500 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
14501
14502         * unexelfsgi.c (unexec): Change the way we decide which segment
14503         should be extended.
14504
14505         Assumption that .bss section should be outside the PT_LOADable
14506         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14507         it's present) is inside the 'data' segment. This would fail the
14508         test which was used to find a segment to grow and cover new
14509         heap. Instead of this assumption, I created another one - on IRIX
14510         the segment to grow should start below .bss and it's address
14511         should extent above the end of .bss. Once this segment is
14512         identified, it's grown to accommodate the new heap and new
14513         zero-length .bss section is added at the end of .data2.
14514
14515 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14516
14517         * eval.c (Feval): Wrong number of arguments should use original
14518         function, not the indirect_function version of it.
14519
14520 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
14521
14522         * glyphs-x.c (x_button_instantiate): Don't add image if
14523         it is not a pixmap.
14524         (x_locate_pixmap_file): Call Fexpand_file_name when file name
14525         is relative.
14526
14527 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
14528
14529         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
14530         declaration.
14531         (DEFVAR_INT_MAGIC): Ditto.
14532         (DEFVAR_BOOL_MAGIC): Ditto.
14533         * glyphs.h: Reindent backslash.
14534
14535 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14536
14537         * glyphs-widget.c (layout_query_geometry):
14538         (layout_layout): Use correct types for gheight, gwidth.
14539
14540 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14541
14542         * EmacsManager.c (QueryGeometry): Purified.
14543
14544 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14545
14546         * alloc.c (make_float): Make sure entire object is initialized, to
14547         avoid Purify warnings.
14548         (pdump_register_sub): Remove useless assignment.
14549         (pdump): Use xmalloc, not malloc.
14550         (pdump_load): Use xmalloc, not malloc.
14551
14552 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14553
14554         * callproc.c:
14555         * dired-msw.c:
14556         * fileio.c:
14557         * process-nt.c:
14558         * redisplay-msw.c:
14559         * sysdep.c: Removed redundant #include <windows.h>
14560
14561 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14562
14563         * frame.c (delete_frame_internal): Do not delete device when its
14564         implementation so declares.
14565         (delete_frame_internal): Set device selected frame to nil when
14566         last frame goes away.
14567
14568         * device-msw.c (msprinter_device_system_metrics): Implemented.
14569         (mswindows_device_system_metrics): Added 'device-dpi property.
14570
14571         * device.c: (Fdevice_printer_p): Added.
14572         Added 'offset-workspace device metric.
14573
14574         * console.h (device_metrics): Declared DM_offset_workspace.
14575
14576 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14577
14578         * fileio.c (Ffile_truename): Remove pointless and confusing
14579         initialization of elen.
14580
14581         * glyphs-widget.c: Compiler warning fixes.
14582
14583 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
14584
14585         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
14586         instead of a Lisp_Object as argument to make it consistent with
14587         the other LIVE_P macros.
14588         (CHECK_LIVE_PROCESS): New macro.
14589
14590         * process.c: Declare Qprocess_live_p.
14591         (Fprocess_live_p): New function.
14592         (create_process): Use PROCESS_LIVE_P.
14593         (read_process_output): Ditto.
14594         (set_process_filter): Ditto.
14595         (Fdelete_process): Ditto.
14596         (kill_buffer_processes): Ditto
14597         (process_send_signal): Use CHECK_LIVE_PROCESS.
14598         (Fprocess_input_coding_system): Check whether process is still
14599         alive (fix PR#1061).
14600         (Fprocess_output_coding_system): Ditto.
14601         (Fprocess_coding_system): Ditto.
14602         (Fset_process_input_coding_system): Ditto.
14603         (Fset_process_output_coding_system): Ditto.
14604
14605 2000-01-23  Andy Piper  <andy@xemacs.org>
14606
14607         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
14608         layout and widget.
14609
14610         * glyphs.c (mark_image_instance): take into account changed
14611         image_instance format.
14612         (image_instance_equal): ditto.
14613         (image_instance_hash): ditto.
14614
14615         * glyphs-widget.c (widget_instantiate): Incorporate layout
14616         instantiation here. Delay layout of the layout until later.
14617         (layout_instantiate): deleted.
14618         (layout_query_geometry): new function. get the geometry of a
14619         layout.
14620         (layout_layout): layout a layout dynamically.
14621         (image_instantiator_widget): New function - splitting up
14622         image_instantiator_format_create_glyphs_widget for netwinder
14623         compilation.
14624         (image_instantiator_buttons):
14625         (image_instantiator_edit_fields):
14626         (image_instantiator_combo_box):
14627         (image_instantiator_scrollbar):
14628         (image_instantiator_progress_guage):
14629         (image_instantiator_tree_view):
14630         (image_instantiator_tab_control):
14631         (image_instantiator_labels):
14632         (image_instantiator_layout): ditto.
14633         (image_instantiator_format_create_glyphs_widget): Call preceding
14634         functions.
14635
14636 2000-01-22  Martin Buchholz  <martin@xemacs.org>
14637
14638         * process.c (Fset_process_coding_system):
14639         * device-x.c (Fx_keysym_hash_table):
14640         Docstring fixes.
14641
14642         * lstream.c (Lstream_write): Return documented value, not 0.
14643
14644         * fileio.c (directory_file_name):
14645         (Fsubstitute_in_file_name):
14646         (Fsubstitute_insert_file_contents_internal):
14647         (Fwrite_region_internal):
14648         * emacs.c:
14649         * sysdep.c:
14650         * getloadavg.c:
14651         * systty.h:
14652         Remove vestigial APOLLO-conditional code.
14653
14654 2000-01-21  Martin Buchholz  <martin@xemacs.org>
14655
14656         * getpagesize.h: Add guard macros.
14657         * libsst.h: Add guard macros.
14658         * libst.h: Add guard macros.
14659         * line-number.h: Add guard macros.
14660         * ndir.h: Add guard macros.
14661         * sysfloat.h: Add guard macros.
14662         * sysfile.h: Add guard macros.
14663         * sysproc.h: Add guard macros.
14664         * syswait.h: Add guard macros.
14665         * xintrinsic.h: Add guard macros.
14666         * xintrinsicp.h: Add guard macros.
14667         * xmmanager.h: Add guard macros.
14668         * xmmanagerp.h: Add guard macros.
14669         * xmprimitive.h: Add guard macros.
14670         * xmu.h: Add guard macros.
14671         * gpmevent.h: Add copyright statement. Add guard macros.
14672         * miscplay.h: Add guard macros.
14673         * *.h: Use consistent C-standards-approved guard macro names.
14674
14675         * opaque.c (make_opaque): Switch parameter order.
14676         * opaque.h (make_opaque): Switch parameter order.
14677         Update all callers.
14678         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
14679
14680         * config.h.in (type_checking_assert): Added.
14681         (bufpos_checking_assert): Added.
14682
14683 2000-01-21  Martin Buchholz  <martin@xemacs.org>
14684
14685         * alloc.c: Harmless pdump changes.
14686         - Use countof().
14687         - spell alignment correctly.
14688         * sysdep.c: Use countof()
14689
14690 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14691
14692         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
14693         initially_selected_for_input() console method, default to 0.
14694         (semi_canonicalize_console_connection): Try to delegate to
14695         canonicalize_console_connection if no such console method.
14696         (canonicalize_console_connection): Vice versa.
14697         (print_console): Do not print nil connection.
14698
14699         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
14700         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
14701         (XDEVIMPF_FRAMELESS_OK): Added.
14702         (CONSOLE_INHERITS_METHOD): Added.
14703
14704         * console-msw.c (mswindows_canonicalize_console_connection):
14705         Added.
14706         (mswindows_canonicalize_device_connection): Added.
14707
14708         * console-msw.h (struct msprinter_device): Added this struct and
14709         accessor macros.
14710         (mswindows_device): Made fontlist a lisp object.
14711
14712         * device.c (semi_canonicalize_device_connection):  Try to delegate
14713         to canonicalize_device_connection if no such console method.
14714         (canonicalize_device_connection): Vice versa.
14715         (print_device): Do not print nil connection.
14716
14717         * device-msw.c (mswindows_init_device): Call InitCommonControls
14718         when have widgets.
14719         (mswindows_delete_device): Removed fontlist deallocation.
14720         (mswindows_mark_device): Added.
14721
14722         * events.c (event_equal): Added abort() at unreached code.
14723         (event_hash): Ditto.
14724
14725         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
14726         fallback tags of Windows devices.
14727
14728         * general.c (syms_of_general): Initialized Qmsprinter.
14729
14730         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
14731         of fallback tags of Windows devices.
14732
14733         * lisp.h: Declared Qmsprinter.
14734
14735         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
14736         of strings.
14737         (mswindows_list_fonts): Ditto.
14738         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
14739         that it can be used by both mswindows and msprinter devices.
14740         (initialize_font_instance): Added.
14741         (mswindows_initialize_font_instance): Use it.
14742         (msprinter_initialize_font_instance): Added.
14743
14744         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
14745         and implementation flags check.
14746         (redisplay_without_hooks): Changed the call to the above.
14747         (Fredraw_device): Ditto.
14748         (Fredisplay_device): Ditto.
14749
14750         * redisplay-msw.c (get_frame_dc): Implemented.
14751         (get_frame_compdc): Implemented.
14752         (many functions): Use the two functions above to get device
14753         contexts, ether for a window or a printer.
14754
14755 2000-01-21  Olivier Galibert  <galibert@pobox.com>
14756
14757         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
14758         initialization here.
14759         (init_symbols_once_early): Call it.
14760         * emacs.c (main_1): Call it.
14761         * symsinit.h: Declare it.
14762
14763 2000-01-19  Olivier Galibert  <galibert@pobox.com>
14764
14765         * alloc.c: Use a lrecord_header * in the backtrace instead of a
14766         Lisp_Object.
14767         (pdump_backtrace): Ditto.
14768         (pdump_register_object): Ditto.  Cleanup use of the pointers.
14769         (pdump_get_entry): Abort if trying to register a null pointer.
14770         (pdump_dump_data): Cleanup types when relocating.
14771         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
14772         (pdump_dump_rtables): Remove bad casts.
14773         (pdump_load): Cleanup relocation w.r.t union type.  Use a
14774         Lisp_Object instead of a EMACS_INT for the hashtable
14775         reorganization.
14776
14777 2000-01-20  Martin Buchholz  <martin@xemacs.org>
14778
14779         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
14780
14781         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
14782
14783         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
14784
14785         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
14786
14787 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14788
14789         * faces.h (FACE_STRIKETHRU_P): Added.
14790
14791         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
14792         of font variants.
14793
14794         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
14795         (mswindows_set_dc_font): New function, aware of font variants,
14796         separated from mswindows_update_dc.
14797
14798         * objects-msw.h (struct mswindows_font_instance_data): Added
14799         definition.
14800
14801         * objects-msw.c (mswindows_finalize_font_instance): Delete all
14802         cached fonts and the data structure.
14803         (mswindows_initialize_font_instance): Added creation of font data
14804         structure.
14805         (mswindows_print_font_instance): Print at least something.
14806         (mswindows_create_font_variant): Implemented.
14807         (mswindows_get_hfont): Implemented.
14808
14809 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
14810
14811         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
14812         prototyping problem with msvc.
14813
14814         * emacs.c (main_1): added syms_of_gui_mswindows() call
14815
14816         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
14817         syms_of_gui_mswindows() function
14818
14819         * symsinit.h: added the prototype for syms_of_gui_mswindows()
14820
14821 2000-01-18  Martin Buchholz <martin@xemacs.org>
14822
14823         * XEmacs 21.2.27 is released.
14824
14825 2000-01-18  Martin Buchholz  <martin@xemacs.org>
14826
14827         * glyphs-eimage.c (struct tiff_error_struct):
14828         (tiff_error_func):
14829         (tiff_warning_func):
14830         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
14831
14832         * unexmips.c:
14833         * unexhp9k3.c:
14834         * unexfreebsd.c:
14835         * unexec.c: Remove vestigial Lucid C code.
14836         * unexalpha.c:
14837         * unexaix.c:
14838         * termcap.c:
14839         * libsst.c: Ansify.
14840         Remove declarations of errno and strerror().
14841
14842         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
14843
14844         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
14845
14846 2000-01-16  Martin Buchholz  <martin@xemacs.org>
14847
14848         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
14849         Optimize.
14850
14851 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14852
14853         * md5.c:
14854         * file-coding.c:
14855         * file-coding.h:
14856         Change enum eol_type to eol_type_t.
14857
14858 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14859
14860         * gui.c (get_gui_callback): Check cons before accessing car.
14861
14862 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14863
14864         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
14865         (XSETSPECIFIER_TYPE): Ditto.
14866
14867 2000-01-17  Didier Verna  <didier@xemacs.org>
14868
14869         * redisplay.c (generate_fstring_runes): compute string size in
14870         characters, not bytes.
14871
14872 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
14873
14874         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
14875
14876 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
14877
14878         * print.c (print_error_message): Call print_prepare().
14879
14880 2000-01-14  Martin Buchholz  <martin@xemacs.org>
14881
14882         * .dbxrc: Renamed from dbxrc.
14883
14884         * events.c (event_to_character):
14885         Use `assert (foo)' instead of `if (!foo) abort()'
14886
14887         * .gdbinit (xtype): Add documentation.
14888         * .gdbinit (check-temacs): New function.
14889         * .gdbinit (check-xemacs): New function.
14890         * dbxrc (check-xemacs): New function.
14891         * dbxrc (check-xemacs): New function.
14892
14893 2000-01-14  Andy Piper  <andy@xemacs.org>
14894
14895         * glyphs-widget.c (widget_query_geometry): Make sure that we
14896         calculate default dimensions correctly.
14897
14898 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14899
14900         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
14901
14902         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
14903         pdump_wire'd variable.
14904
14905         * emacs.c: (main_1): Conditionalized calls to
14906         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
14907
14908 2000-01-13  Martin Buchholz  <martin@xemacs.org>
14909
14910         * window.c (Fset_window_configuration):
14911         * sysdep.c (_start):
14912         * input-method-motif.c (res):
14913         * event-Xt.c (Xt_process_to_emacs_event):
14914         Simple compiler warning fixes.
14915
14916         * bytecode.c (funcall_compiled_function): Use the original
14917         function symbol on the backtrace list in preference to the
14918         compiled_function object in error messages.
14919
14920 2000-01-13  Andy Piper  <andy@xemacs.org>
14921
14922         * glyphs-x.c (update_widget_face): Make sure we update the widget
14923         background as well as foreground.
14924
14925 2000-01-13  Andy Piper  <andy@xemacs.org>
14926
14927         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
14928         fields to subwindow.
14929         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
14930         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
14931         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
14932         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
14933
14934         * glyphs-widget.c (check_valid_tab_orientation): new function.
14935         (initialize_widget_image_instance): zero orientation and
14936         justification.
14937         (widget_instantiate): pick up orientation.
14938         (tab_control_query_geometry): return appropriate values for
14939         vertical tabs.
14940
14941         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
14942         appropriate creation flags for left, right and bottom tabs.
14943
14944         * s/cygwin32.h: add tab definitions.
14945
14946 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14947
14948         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
14949         frame upon hiding a subwindow.
14950         (mswindows_button_instantiate): Changed the push button style to
14951         BS_PUSHBUTTON.
14952         (mswindows_button_instantiate): Removed button BS_NOTIFY
14953         style.
14954         (mswindows_button_instantiate): Removed redundant check for
14955         a disabled gui item.
14956         (mswindows_button_instantiate): Made use of WS_TABSTOP
14957         consistent: "operable" controls (edit, button, tree, scroll) have
14958         this style, "display-only" ones (static, progress gauge) do
14959         not. This style is currently ignored by XEmacs though. Also,
14960         removed the WS_EX_CONTROLPARENT style - it is not for children,
14961         it is for their parents!
14962         (mswindows_edit_field_instantiate): Ditto.
14963         (mswindows_progress_gauge_instantiate): Ditto.
14964         (mswindows_tree_view_instantiate): Ditto.
14965         (mswindows_tab_control_instantiate): Ditto.
14966         (mswindows_scrollbar_instantiate): Ditto.
14967         (mswindows_combo_box_instantiate): Ditto.
14968         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
14969         style to the "clip" window.
14970         (mswindows_button_instantiate): Removed compilation warning by
14971         equally typing terms of the ?: operator.
14972
14973 2000-01-12  Didier Verna  <didier@xemacs.org>
14974
14975         * redisplay.c (generate_fstring_runes): new parameter holding the
14976         last modeline-format extent.
14977         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
14978         extent, fill the glyph block with it.
14979         (generate_fstring_runes): handle these parameters.
14980         (generate_formatted_string_db): ditto.
14981
14982         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
14983         glyphs'extents in the modeline.
14984
14985 1999-01-11  Mike Woolley  <mike@bulsara.com>
14986
14987         * ntheap.c: Reduced the reserved heap space from 1Gb down to
14988         256Mb, as a workaround for the non-starting problem many people
14989         have experienced.
14990
14991 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14992
14993         * console-tty.c (Fset_console_tty_output_coding_system):
14994         Force redrawing tty frame.
14995
14996 2000-01-10  Didier Verna  <didier@xemacs.org>
14997
14998         * redisplay.c (generate_fstring_runes): fix size computation bug.
14999
15000 2000-01-09  William M. Perry <wmperry@aventail.com>
15001
15002         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15003
15004 2000-01-09  Andy Piper  <andy@xemacs.org>
15005
15006         * glyphs-msw.c: index -> i to avoid shadows.
15007         (xbm_create_bitmap_from_data): make static.
15008         (check_valid_string_or_int): deleted.
15009         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15010
15011         * glyphs-x.c (x_update_subwindow): remove unused args.
15012
15013         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15014         back pointer - this is done in allocate_image_instance.
15015         (query_string_font): return Qnil to make the compiler happy.
15016         (unmap_subwindow): set to ~0 to make the compiler happy.
15017         (glyph_query_geometry): comment out until used.
15018         (glyph_layout): ditto.
15019
15020 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15021
15022         * insdel.c (signal_after_change): Remove extraneous unbind_to().