(complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the mother
[chise/xemacs-chise.git-] / src / ChangeLog
1 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (decode_defined_char): New function; search
4         mother.
5         (decode_builtin_char): Don't search mother if
6         XCHARSET_MAX_CODE(charset) == 0.
7         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
8         == 0 even if code >= XCHARSET_MAX_CODE(charset).
9         (Fdecode_char): Use `decode_defined_char' instead of
10         `DECODE_DEFINED_CHAR'.
11         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
12         mother of `Vcharset_ucs_jis'.
13
14         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
15         instead of `DECODE_DEFINED_CHAR'.
16
17         * char-ucs.h (decode_defined_char): Renamed from
18         `DECODE_DEFINED_CHAR'; changed to normal function.
19         (DECODE_CHAR): Use `decode_defined_char' instead of
20         `DECODE_DEFINED_CHAR'.
21
22         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
23
24 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
27
28         * text-coding.c (Vcoded_charset_entity_reference_alist): New
29         variable.
30         (Quse_entity_reference): New variable.
31         (Qd): New variable.
32         (Qx): New variable.
33         (QX): New variable.
34         (coding_system_description): Add description for
35         `ccs_priority_list'.
36         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
37         (allocate_coding_system): Initialize `ccs_priority_list' in
38         UTF-2000.
39         (Fmake_coding_system): Add description about
40         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
41         (codesys).
42         (Fcoding_system_property): Accept `disable-composition' and
43         `use-entity-reference' in UTF-2000.
44         (struct decoding_stream): Add new member `er_counter' and `er_buf'
45         in UTF-2000.
46         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
47         (decode_coding_utf8): Decode entity-reference if
48         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
49         (char_encode_utf8): Encode non-Unicode characters as
50         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
51         (str->codesys).
52         (syms_of_file_coding): Add new symbols `use-entity-reference',
53         `d', `x', `X'.
54         (vars_of_file_coding): Add new variable
55         `coded-charset-entity-reference-alist'.
56         (complex_vars_of_file_coding): Declare `disable-composition' and
57         `use-entity-reference' to be coding-system-properties in UTF-2000.
58
59         * file-coding.h (struct Lisp_Coding_System): Add new member
60         `use_entity_reference' and `ccs_priority_list'.
61         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
62         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
63         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
64
65 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
66
67         * chartab.c (save_uint8_byte_table): Don't clear the table.
68         (save_uint16_byte_table): Likewise.
69         (save_byte_table): Likewise.
70         (Fmount_char_attribute_table): New function.
71         (syms_of_chartab): Add new builtin function
72         `mount-char-attribute-table'.
73
74 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * mule-charset.c (Fsave_charset_mapping_table): Open database as
77         "w+" mode.
78         (load_char_decoding_entry_maybe): Open database as read-only mode.
79
80         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
81         open database as "w+" mode.
82         (load_char_attribute_maybe): Open database as read-only mode.
83         (Fload_char_attribute_table): Likewise.
84
85 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
88         (char_table_description): Delete member `db_file'.
89         (Fmake_char_table): Don't refer `ct->db_file'.
90         (Fcopy_char_table): Likewise.
91         (Fsave_char_attribute_table): Likewise.
92         (Fclose_char_attribute_table): Likewise.
93         (Freset_char_attribute_table): Likewise.
94         (load_char_attribute_maybe): Likewise.
95         (Fload_char_attribute_table): Likewise.
96
97         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
98
99 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
102         (Fsave_char_attribute_table): Don't check `ct->db_file' if
103         `ct->db' is living.
104         (load_char_attribute_maybe): Likewise.
105         (Fload_char_attribute_table): Likewise.
106
107 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
108
109         * chartab.c (Fclose_char_attribute_table): Set Qnil on
110         `ct->db_file' unconditionally.
111
112 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
113
114         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
115         UTF-2000.
116         (char_table_description): Add description for `db_file' and `db'
117         in UTF-2000.
118         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
119         UTF-2000.
120         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
121         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
122         (Fclose_char_attribute_table): New function.
123         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
124         (load_char_attribute_maybe): Change interface; use `cit->db_file'
125         and `cit->db'.
126         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
127         (syms_of_chartab): Add new builtin function
128         `Fclose_char_attribute_table'.
129
130 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
131
132         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
133         `db' in UTF-2000.
134         (load_char_attribute_maybe): Change interface.
135         (get_char_id_table): Modify for `load_char_attribute_maybe'.
136
137 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
138
139         * database.h: Add an EXFUN for `Fdatabase_live_p'.
140
141 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
144         instead of `DECODE_CHAR' for mother; don't use special code for
145         chinese-big5 to use code space of chinese-big5-1 and
146         chinese-big5-2.
147         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
148         `MAX_CHAR_BIG5_CDP' for chinese-big5.
149
150         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
151         (MAX_CHAR_BIG5_CDP): Revival.
152
153 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
154
155         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
156         the XLFD registry-encoding name of `chinese-big5'.
157
158 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
159
160         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
161         (Qchinese_big5_cdp): Deleted.
162         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
163         (complex_vars_of_mule_charset): Delete coded-charset
164         `chinese-big5-cdp'.
165
166         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
167         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
168         `CHARSET_ID_OFFSET - n' for private CCS.
169         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
170         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
171         of `MIN_LEADING_BYTE'.
172         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
173         `(CHARSET_ID_OFFSET - 97)'.
174         (MIN_CHAR_BIG5_CDP): Deleted.
175         (MAX_CHAR_BIG5_CDP): Deleted.
176
177 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
180
181 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
184         (vars_of_mule): Add new variable `utf-2000-version' [moved from
185         chartab.c].
186
187         * chartab.c (Vutf_2000_version): Moved to mule.c.
188         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
189
190 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
191
192         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
193         when HAVE_CHISE_CLIENT is not defined.
194
195         * mule.c (vars_of_mule): Provide feature `chise' when
196         HAVE_CHISE_CLIENT is defined.
197
198 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
199
200         * config.h.in (UTF2000): Add comment.
201         (HAVE_CHISE_CLIENT): New macro.
202
203 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
204
205         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
206         CONSP.
207         (Fput_char_attribute): Likewise.
208         (char_attribute_system_db_file): Encode file-name of attribute.
209         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
210         the initial value.
211
212 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
213
214         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
215         (Fsave_charset_mapping_table): Use
216         `char_attribute_system_db_file'.
217         (load_char_decoding_entry_maybe): Likewise.
218
219         * chartab.h (Qsystem_char_id): New external variable.
220         (char_attribute_system_db_file): New prototype.
221
222         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
223         (char_attribute_system_db_file): New function.
224         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
225         (Freset_char_attribute_table): Likewise.
226         (load_char_attribute_maybe): Likewise.
227         (Fload_char_attribute_table): Likewise.
228         (syms_of_chartab): Add new symbol `system-char-id'.
229
230 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
231
232         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
233         `XCHARSET_GRAPHIC(ccs)'.
234
235 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
236
237         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
238
239 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
240
241         * chartab.c (Q_ucs_variants): New variable.
242         (syms_of_chartab): Add new symbol `->ucs-variants'.
243         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
244         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
245         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
246
247         * mule-charset.c (load_char_decoding_entry_maybe): New function.
248
249         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
250         `HAVE_DATABASE' is defined.
251         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
252         `HAVE_DATABASE' is defined.
253
254 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
255
256         * chartab.c (Fsave_char_attribute_table): Don't clear internal
257         attribute-table.
258         (Freset_char_attribute_table): New function.
259         (syms_of_chartab): Add new builtin function
260         `reset-char-attribute-table'.
261
262 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
263
264         * chartab.c (load_char_attribute_maybe): Don't make directories.
265
266 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
267
268         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
269
270         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
271         for decoding-table.
272
273 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
274
275         * mule-charset.c (Fsave_charset_mapping_table): Use
276         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
277
278         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
279         instead of `XCHARSET_CHARS'.
280
281 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
282
283         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
284         (XCHARSET_BYTE_SIZE): Likewise.
285
286         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
287         mule-charset.c].
288         (XCHARSET_BYTE_SIZE): Likewise.
289
290 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
291
292         * chartab.c (Fput_char_attribute): Use exec-directory instead of
293         data-directory to store database.
294         (Fsave_char_attribute_table): Likewise.
295         (load_char_attribute_maybe): Likewise.
296         (Fload_char_attribute_table): Likewise.
297
298 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
299
300         * mule-charset.c (Fsave_charset_mapping_table): New function.
301         (syms_of_mule_charset): Add new builtin function
302         `save-charset-mapping-table'.
303
304 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * char-ucs.h (decoding_table_check_elements): Delete prototype.
307         (get_ccs_octet_table): New inline function.
308         (put_ccs_octet_table): Likewise.
309         (decoding_table_put_char): Use `get_ccs_octet_table' and
310         `put_ccs_octet_table'.
311         (decoding_table_remove_char): Use `decoding_table_put_char'.
312         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
313
314         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
315         into encoding_table.
316         (make_charset): Use Qunbound instead Qnil as initial value of
317         decoding_table.
318
319 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
320
321         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
322         element is Qunloaded.
323         (map_over_uint16_byte_table): Likewise.
324         (map_over_byte_table): Likewise.
325         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
326         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
327         database support, load encoding-table of the specified
328         coded-charset if it is not loaded yet.
329         (save_uint8_byte_table): New function of UTF-2000 with external
330         database support.
331         (save_uint16_byte_table): Likewise.
332         (save_byte_table): Likewise.
333         (Fput_char_attribute): Don't store value into external database
334         even if the external database feature is supported in UTF-2000;
335         set `attribute' as name of char-table if the external database
336         feature is supported.
337         (Fsave_char_attribute_table): New function in UTF-2000.
338         (syms_of_chartab): Add new builtin function
339         `save-char-attribute-table' in UTF-2000.
340
341 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
342
343         * chartab.c (char_attribute_table_to_put): New variable in
344         UTF-2000.
345         (Qput_char_table_map_function): Likewise.
346         (value_to_put): Likewise.
347         (Fput_char_table_map_function): New function in UTF-2000.
348         (put_char_table): Use `Fmap_char_attribute' for
349         CHARTAB_RANGE_CHARSET in UTF-2000.
350         (Fput_char_attribute): Store symbol instead of string in
351         `XCHAR_TABLE_NAME (table)'.
352         (load_char_attribute_maybe): Likewise.
353         (syms_of_chartab): Add new symbol/function
354         `put-char-table-map-function'.
355
356 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
357
358         * database.h: Add new EXFUN for `Fmap_database'.
359
360         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
361         (syms_of_database): Likewise.
362
363         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
364         UTF-2000.
365         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
366         (XCHAR_TABLE_UNLOADED): Likewise.
367
368         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
369         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
370         HAVE_DATABASE is defined.
371         (char_attribute_table_to_load): New variable of UTF-2000 with
372         external database support.
373         (Qload_char_attribute_table_map_function): Likewise.
374         (Fload_char_attribute_table_map_function): New function of
375         UTF-2000 with external database support.
376         (Fload_char_attribute_table): New function of UTF-2000.
377         (Fmap_char_attribute): Call Fload_char_attribute_table if
378         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
379         (syms_of_chartab): Add new symbol and function
380         `load-char-attribute-table-map-function' in UTF-2000 with external
381         database support; add new function `load-char-attribute-table' in
382         UTF-2000.
383
384 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
385
386         * chartab.h (load_char_attribute_maybe): New prototype for
387         UTF-2000 with DATABASE support.
388         (get_char_id_table): Use `load_char_attribute_maybe' if
389         HAVE_DATABASE is defined.
390
391         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
392         with DATABASE support.
393
394 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * chartab.c (Fput_char_attribute): Use S-expression as key of
397         external database.
398
399         * chartab.h (get_char_id_table): Use S-expression as key of
400         external database.
401
402 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
403
404         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
405         if an element is not loaded, load the corresponding attributes
406         from an external database.
407         (map_over_uint16_byte_table): Likewise.
408         (map_over_byte_table): Likewise.
409         (map_char_table): Modify for `map_over_uint8_byte_table',
410         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
411         element is not loaded, load the corresponding attributes from an
412         external database.
413         (Fput_char_attribute): Change initial values to Qunloaded.
414
415         * chartab.h (get_char_id_table): If a character attribute is not
416         loaded and the attribute value is not found in an external
417         database, store Qunbound as the attribute value.
418
419 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
420
421         * chartab.c (BT_UINT8_unloaded): New macro.
422         (UINT8_VALUE_P): Accept Qunloaded.
423         (UINT8_ENCODE): Likewise.
424         (UINT8_DECODE): Likewise.
425         (BT_UINT16_unloaded): New macro.
426         (UINT16_VALUE_P): Accept Qunloaded.
427         (UINT16_ENCODE): Likewise.
428         (UINT16_DECODE): Likewise.
429         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
430         BT_UINT16_unloaded.
431         (mark_char_table): Mark `ct->name' in UTF-2000.
432         (char_table_description): Add `name' in UTF-2000.
433         (Fmake_char_table): Initialize `ct->name'.
434         (Fcopy_char_table): Copy `ct->name'.
435         (Fput_char_attribute): Store value into an external database if
436         HAVE_DATABASE is defined.
437
438         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
439         UTF-2000.
440         (CHAR_TABLE_NAME): New macro in UTF-2000.
441         (XCHAR_TABLE_NAME): New macro in UTF-2000.
442         (get_char_id_table): Try to read an external database if Qunloaded
443         is stored in a table.
444
445         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
446         Qunloaded.
447
448 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
449
450         * database.h: Add EXFUN definitions for Fopen_database,
451         Fput_database, Fget_database and Fclose_database.
452
453         * data.c (Qunloaded): New variable in UTF-2000.
454
455         * lisp.h (Qunloaded): New variable in UTF-2000.
456
457 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
458
459         * mule-charset.c (put_char_ccs_code_point): Modify for
460         `decoding_table_remove_char' and `decoding_table_put_char'.
461         (remove_char_ccs): Modify for `decoding_table_remove_char'.
462
463         * char-ucs.h (decoding_table_remove_char): Change arguments to
464         hide decoding_table vector.
465         (decoding_table_put_char): Likewise.
466
467 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
468
469         * mule-charset.c (decoding_table_remove_char): Moved to
470         char-ucs.h.
471         (decoding_table_put_char): Likewise.
472
473         * char-ucs.h (decoding_table_check_elements): New prototype [moved
474         from mule-charset.c].
475         (decoding_table_remove_char): New inline function [moved from
476         mule-charset.c].
477         (decoding_table_put_char): Likewise.
478
479 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
480
481         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
482         extension.
483
484 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
485
486         * mule-charset.c (decode_builtin_char): Support mother charsets.
487
488 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
489
490         * mule-charset.c (Q94x94x60): New variable.
491         (charset_code_point): Support conversion `94x94x60'.
492         (Fmake_charset): Likewise.
493         (syms_of_mule_charset): Add new symbol `94x94x60'.
494
495         * char-ucs.h (CONVERSION_94x94x60): New macro.
496
497 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
498
499         * mule-charset.c (charset_code_point): Unify code about
500         `code-offset'.
501
502 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
503
504         * mule-charset.c (charset_code_point): Merge code about builtin
505         characters into code about mother charsets; don't use
506         `range_charset_code_point'.
507         (range_charset_code_point): Deleted.
508
509 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
510
511         * mule-charset.c (Qcode_offset): New variable.
512         (Fmake_charset): Use `XUINT' to get value of `min-code' and
513         `max-code'; accept new property `code-offset'.
514         (syms_of_mule_charset): Add new symbol `code-offset'.
515
516 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
517
518         * mule-charset.c (range_charset_code_point): Fixed.
519
520 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
521
522         * mule-charset.c (decode_builtin_char): Change semantics of
523         code-offset of coded-charset.
524         (charset_code_point): Likewise.
525         (range_charset_code_point): Likewise.
526         (complex_vars_of_mule_charset): Modify for the change.
527
528 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * mule-charset.c (Fencode_char): Reverse arguments.
531
532         * mule-charset.c (charset_code_point): Fixed.
533
534 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
535
536         * mule-charset.c (Vcharset_mojikyo): Deleted.
537         (Vcharset_mojikyo_2022_1): Deleted.
538         (Vcharset_mojikyo_pj_{1..21}): Deleted.
539         (Qmin_code): New variable in UTF-2000.
540         (Qmax_code): Likewise.
541         (Qmother): Likewise.
542         (Qconversion): Likewise.
543         (Q94x60): Likewise.
544         (Qmojikyo): Deleted.
545         (Qmojikyo_2022_1): Deleted.
546         (Qmojikyo_pj_{1..22}): Deleted.
547         (mark_charset): Mark `cs->mother'.
548         (charset_description): Add description for `mother'.
549         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
550         new arguments `mother' and `conversion'; use
551         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
552         (charset_code_point): Moved from char-ucs.h; support `mother'
553         charset feature.
554         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
555         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
556         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
557         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
558         allow 2 as the value of `graphic' in UTF-2000; add new properties
559         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
560         require `final' in UTF-2000; modify for `make_charset'.
561         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
562         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
563         (Fcharset_property): Support `mother', `min-code' and `max-code'.
564         (Fencode_char): New function.
565         (syms_of_mule_charset): Add new builtin function `encode-char' in
566         UTF-2000; add new symbols `min-code', `max-code', `mother',
567         `conversion' and `94x60'; delete symbols `mojikyo',
568         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
569         (complex_vars_of_mule_charset): Modify for `make_charset' change;
570         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
571         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
572
573         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
574         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
575
576         * char-ucs.h (Vcharset_mojikyo): Deleted.
577         (Vcharset_mojikyo_2022_1): Deleted.
578         (LEADING_BYTE_MOJIKYO): Deleted.
579         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
580         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
581         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
582         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
583         add new member `mother'; add new member `conversion'.
584         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
585         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
586         (CHARSET_MOTHER): New macro.
587         (CHARSET_CONVERSION): New macro.
588         (CONVERSION_IDENTICAL): New macro.
589         (CONVERSION_94x60): New macro.
590         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
591         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
592         (XCHARSET_MOTHER): New macro.
593         (XCHARSET_CONVERSION): New macro.
594         (MIN_CHAR_MOJIKYO): Deleted.
595         (MAX_CHAR_MOJIKYO): Deleted.
596         (DECODE_MOJIKYO_2022): Deleted.
597         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
598         (charset_code_point): Changed to non-inline function.
599         (encode_char_1): Use `charset_code_point'.
600         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
601
602 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
603
604         * lread.c (read_compiled_function): Fix prototype.
605         (read_vector): Likewise.
606
607 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
608
609         * lrecord.h (struct lrecord_header): Delete `older'.
610         (set_lheader_implementation): Delete code for `older'.
611         (set_lheader_older_implementation): Deleted.
612         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
613         (OLDER_RECORD_P): Deleted.
614         (OLDER_RECORD_HEADER_P): Deleted.
615         (alloc_older_lcrecord): Deleted.
616         (alloc_older_lcrecord_type): Deleted.
617
618         * alloc.c (all_older_lcrecords): Deleted.
619         (alloc_older_lcrecord): Deleted.
620         (disksave_object_finalization_1): Delete code for older objects.
621         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
622         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
623
624 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * mule-charset.c (decoding_table_put_char): Use `make_vector'
627         instead of `make_older_vector'.
628         (put_char_ccs_code_point): Likewise.
629         (mark_charset): Mark `cs->decoding_table'.
630         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
631
632         * lisp.h (make_older_vector): Deleted.
633         (make_vector_newer): Deleted.
634
635         * config.h.in (HAVE_GGC): Deleted.
636
637         * alloc.c (make_older_vector): Deleted.
638         (make_vector_newer_1): Deleted.
639         (make_vector_newer): Deleted.
640
641 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
642
643         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
644         (Qideograph_daikanwa_2): New variable.
645         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
646         (complex_vars_of_mule_charset): Add new coded-charset
647         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
648         `LEADING_BYTE_DAIKANWA'.
649
650         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
651         (LEADING_BYTE_DAIKANWA_1): New macro.
652         (LEADING_BYTE_DAIKANWA_2): New macro.
653         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
654
655 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * mule-charset.c (complex_vars_of_mule_charset): Change
658         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
659         the second revised version.
660
661 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
662
663         * mule-charset.c (Vcharset_ucs_smp): New variable.
664         (Vcharset_ucs_sip): New variable.
665         (Qucs_smp): New variable.
666         (Qucs_sip): New variable.
667         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
668         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
669         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
670         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
671         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
672         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
673
674         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
675         (LEADING_BYTE_UCS_SIP): New macro.
676         (MIN_CHAR_SMP): New macro.
677         (MAX_CHAR_SMP): New macro.
678         (MIN_CHAR_SIP): New macro.
679         (MAX_CHAR_SIP): New macro.
680
681 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
682
683         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
684         utf-2000.
685
686 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
689         value; don't store value into `encoding_table' of `Lisp_Charset'.
690         (mark_charset): `encoding_table' was deleted.
691         (charset_description): Likewise.
692         (make_charset): Likewise.
693         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
694         `put_char_ccs_code_point'.
695
696         * chartab.h (Fput_char_attribute): New EXFUN.
697
698         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
699         is unified with normal symbol space.
700         (Fget_char_attribute): Likewise.
701         (Fput_char_attribute): Likewise; behavior of
702         `put_char_ccs_code_point' is changed.
703
704         * char-ucs.h: Include "elhash.h".
705         (Vchar_attribute_hash_table): New external variable.
706         (struct Lisp_Charset): Delete `encoding_table'.
707         (CHARSET_ENCODING_TABLE): New implementation; refer
708         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
709         `Lisp_Charset'.
710
711 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
712
713         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
714         (cs) == 0.
715
716 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * text-coding.c (char_encode_big5): Prefer charset-g1 than
719         `chinese-big5'.
720
721 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
722
723         * chartab.c (uint8_byte_table_description): New constant.
724         (uint8-byte-table): Use `uint8_byte_table_description'.
725         (uint16_byte_table_description): New constant.
726         (uint16-byte-table): Use `uint16_byte_table_description'.
727
728 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
731         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
732
733 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
734
735         * mule-charset.c (Vcharset_ucs_ks): New variable.
736         (Qucs_ks): New variable.
737         (syms_of_mule_charset): Add new symbol `ucs-ks'.
738         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
739
740         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
741
742 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
743
744         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
745         (Fdecode_char): Likewise.
746
747         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
748         chartab.h.
749         (Fdefine_char): Modify for Fdecode_char.
750         (Ffind_char): Likewise.
751
752         * mule-charset.c (Fdecode_char): Add new optional argument
753         `defined-only'.
754         (Fdecode_builtin_char): Modify for `Fdecode_char'.
755
756 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
757
758         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
759         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
760         (allocate_coding_system): Initialize initial-charsets of
761         CODESYS_BIG5 in XEmacs UTF-2000.
762         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
763         CODESYS_BIG5 in XEmacs UTF-2000.
764         (decode_coding_big5): Use initial-charset-g0 and -g1 of
765         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
766
767         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
768         variables.
769         (Qideograph_hanziku_{1 .. 12}): Likewise.
770         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
771         .. 12}'.
772         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
773         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
774         `ideograph-hanziku-{1 .. 12}'.
775
776         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
777         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
778         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
779         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
780         (DECODE_DEFINED_CHAR): New inline function.
781         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
782
783 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * mule-charset.c (Vcharset_china3_jef): Renamed from
786         `Vcharset_japanese_jef_china3'.
787         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
788         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
789         `{MIN|MAX}_CHAR_JEF_CHINA3'..
790         (syms_of_mule_charset): Rename `china3-jef' from
791         `japanese-jef-china3'.
792         (complex_vars_of_mule_charset): Likewise; rename
793         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
794
795         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
796         `LEADING_BYTE_JEF_CHINA3'.
797         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
798         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
799
800 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
801
802         * mule-charset.c (encode_builtin_char_1): Comment out special code
803         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
804
805         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
806         (MAX_CHAR_MOJIKYO_0): Comment out.
807         (MIN_CHAR_CBETA): Changed to 0x00E20000.
808         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
809         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
810         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
811
812 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
813
814         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
815         (Qideograph_cbeta): New variable.
816         (encode_builtin_char_1): Comment out special code for
817         coded-charset `mojikyo' and `japanese-jef-china3'.
818         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
819         (complex_vars_of_mule_charset): Add new coded-charset
820         `ideograph-cbeta'.
821
822         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
823         (MIN_CHAR_CBETA): New macro.
824         (MAX_CHAR_CBETA): New macro.
825
826 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
827
828         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
829         (LEADING_BYTE_JEF_CHINA3): New macro.
830         (MIN_CHAR_JEF_CHINA3): New macro.
831         (MAX_CHAR_JEF_CHINA3): Likewise.
832         (DECODE_CHAR): Fixed.
833
834 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
835
836         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
837         (Qjapanese_jef_china3): New variable.
838         (encode_builtin_char_1): Support `japanese-jef-china3'.
839         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
840         (complex_vars_of_mule_charset): Add new coded-charset
841         `japanese-jef-china3'.
842
843 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
844
845         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
846         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
847         94^4, 96^3, 96^4, 128^n and 256^n set.
848         (put_char_table): Use `XCHARSET_CELL_RANGE'.
849         (map_char_table): Likewise.
850
851 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
854         UTF-2000.
855
856 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
857
858         * chartab.h (get_char_id_table): New inline function.
859
860         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
861         function.
862
863 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
864
865         * chartab.h (decode_char_table_range): New prototype in XEmacs
866         UTF-2000.
867         (put_char_id_table): New inline function in XEmacs UTF-2000.
868
869         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
870         function.
871         (decode_char_table_range): Delete static declaration in XEmacs
872         UTF-2000.
873
874 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
875
876         * chartab.c (put_char_id_table): Use `put_char_table'.
877
878 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
881         (map_over_uint16_byte_table): Likewise.
882         (map_over_byte_table): Likewise.
883         (map_char_table): Modify for `map_over_uint8_byte_table',
884         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
885         UTF-2000.
886
887 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
888
889         * chartab.c (struct map_char_table_for_charset_arg): New
890         structure.
891         (map_char_table_for_charset_fun): New function.
892         (map_char_table): Use `map_char_table' for encoding_table of
893         `range->charset'.
894
895 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
896
897         * chartab.c (map_char_table): Check a character is found in
898         range->charset instead of non default value is defined in
899         char-table when range is CHARTAB_RANGE_ROW.
900
901 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * chartab.c (map_char_id_table): Deleted.
904         (Fmap_char_attribute): Use `map_char_table' instead of
905         `map_char_id_table'.
906
907 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
908
909         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
910         UTF-2000.
911         (update_syntax_table): Deleted in XEmacs UTF-2000.
912
913         * syntax.c (find_defun_start): Use `syntax_table' instead of
914         `mirror_syntax_table' in XEmacs UTF-2000.
915         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
916         UTF-2000.
917         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
918         XEmacs UTF-2000.
919         (Fmatching_paren): Likewise.
920         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
921         in XEmacs UTF-2000.
922         (find_start_of_comment): Likewise.
923         (find_end_of_comment): Likewise.
924         (Fforward_comment): Likewise.
925         (scan_lists): Likewise.
926         (char_quoted): Likewise.
927         (Fbackward_prefix_chars): Likewise.
928         (scan_sexps_forward): Likewise.
929         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
930         (update_syntax_table): Likewise.
931
932         * search.c (skip_chars): Use `syntax_table' instead of
933         `mirror_syntax_table' in XEmacs UTF-2000.
934         (wordify): Likewise.
935         (Freplace_match): Likewise.
936
937         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
938         `mirror_syntax_table' in XEmacs UTF-2000.
939         (WORDCHAR_P_UNSAFE): Likewise.
940         (re_match_2_internal): Likewise.
941
942         * font-lock.c (find_context): Use `buf->syntax_table' instead of
943         `buf->mirror_syntax_table' in XEmacs UTF-2000.
944
945         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
946         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
947
948         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
949         XEmacs UTF-2000.
950
951         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
952         UTF-2000.
953         (print_char_table): Print `default_value' in XEmacs UTF-2000.
954         (char_table_description): Delete `mirror_table' in XEmacs
955         UTF-2000.
956         (fill_char_table): Don't call `update_syntax_table' in XEmacs
957         UTF-2000.
958         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
959         (Fcopy_char_table): Likewise.
960         (put_char_table): Don't call `update_syntax_table' in XEmacs
961         UTF-2000.
962
963         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
964         `buf->mirror_syntax_table' in XEmacs UTF-2000.
965         (casify_region_internal): Likewise.
966
967         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
968
969         * buffer.c (common_init_complex_vars_of_buffer): Don't use
970         `mirror_syntax_table' in XEmacs UTF-2000.
971
972         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
973         `buf->mirror_syntax_table' in XEmacs UTF-2000.
974         (Fexpand_abbrev): Likewise.
975
976 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
977
978         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
979
980 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
981
982         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
983         (map_over_uint16_byte_table): Likewise.
984         (map_over_byte_table): Likewise.
985         (get_char_id_table): Refer `cit->default_value'.
986         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
987         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
988         of character-id ranges.
989         (mark_char_table): Mark `ct->default_value'.
990         (char_table_description): Add `default_value'.
991         (fill_char_table): Use `default_value'.
992         (decode_char_table_range): Decode `nil' as
993         `CHARTAB_RANGE_DEFAULT'.
994         (get_char_id_table): Refer `cit->default_value'.
995         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
996         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
997         temporary hack; check value of char-table is bound or not.
998         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
999
1000         * chartab.h (struct Lisp_Char_Table): Add new member
1001         `default_value' in XEmacs UTF-2000.
1002         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1003         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1004         UTF-2000.
1005
1006 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1007
1008         * chartab.h (Lisp_Char_ID_Table): Deleted.
1009
1010         * chartab.c (char_table_description): Fix typo.
1011         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1012         `Lisp_Char_ID_Table'.
1013
1014 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1015
1016         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1017         `CHAR_ID_TABLE_P'.
1018
1019         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1020         `CHAR_ID_TABLE_P'.
1021
1022         * chartab.h (XCHAR_ID_TABLE): Deleted.
1023         (XSETCHAR_ID_TABLE): Deleted.
1024         (CHAR_ID_TABLE_P): Deleted.
1025
1026         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1027         `CHAR_ID_TABLE_P'.
1028         (Fget_composite_char): Likewise.
1029         (put_char_table): Likewise.
1030         (add_char_attribute_alist_mapper): Fixed.
1031         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1032         `CHAR_ID_TABLE_P'.
1033         (Fget_char_attribute): Likewise.
1034         (Fget_char_attribute): Likewise.
1035         (Fmap_char_attribute): Likewise.
1036
1037         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1038         `CHAR_ID_TABLE_P'.
1039         (encode_char_1): Likewise.
1040
1041 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1042
1043         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1044         `XCHAR_ID_TABLE'.
1045
1046         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1047         instead of `XCHAR_ID_TABLE'.
1048         (remove_char_ccs): Likewise.
1049
1050         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1051         `XCHAR_ID_TABLE'.
1052         (Fget_composite_char): Likewise.
1053         (Fchar_variants): Likewise.
1054         (put_char_table): Likewise.
1055         (add_char_attribute_alist_mapper): Likewise.
1056         (Fchar_attribute_alist): Likewise.
1057         (Fget_char_attribute): Likewise.
1058         (Fput_char_attribute): Likewise.
1059         (Fmap_char_attribute): Likewise.
1060         (Fmap_char_attribute): Likewise.
1061
1062         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1063         `XCHAR_ID_TABLE'.
1064         (encode_char_1): Likewise.
1065
1066 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1067
1068         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1069         `Lisp_Char_ID_Table'.
1070         (mark_char_id_table): Deleted.
1071         (print_char_id_table): Likewise.
1072         (char_id_table_equal): Likewise.
1073         (char_id_table_hash): Likewise.
1074         (char_id_table_description): Likewise.
1075         (char_id_table): Likewise.
1076         (make_char_id_table): Use `Fmake_char_table' and
1077         `fill_char_table'.
1078         (get_char_id_table): Use `Lisp_Char_Table' instead of
1079         `Lisp_Char_ID_Table'.
1080         (put_char_id_table): Likewise.
1081         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1082         `XCHAR_ID_TABLE'.
1083         (Fremove_char_attribute): Likewise.
1084         (syms_of_chartab): Don't define type `char-id-table'.
1085
1086         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1087         (char_id_table): Likewise.
1088         (GC_CHAR_ID_TABLE_P): Likewise.
1089         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1090         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1091         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1092         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1093         (get_char_id_table): Use `Lisp_Char_Table' instead of
1094         `Lisp_Char_ID_Table'.
1095         (put_char_id_table_0): Likewise.
1096         (put_char_id_table): Likewise.
1097
1098 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1099
1100         * chartab.h: Lisp_Byte_Table related codes are moved from
1101         chartab.h.
1102
1103         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1104
1105 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1106
1107         * chartab.h: Don't include "chartab.h".
1108         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1109         (Lisp_Char_ID_Table): Likewise.
1110         (char_id_table): Likewise.
1111         (XCHAR_ID_TABLE): Likewise.
1112         (XSETCHAR_ID_TABLE): Likewise.
1113         (CHAR_ID_TABLE_P): Likewise.
1114         (GC_CHAR_ID_TABLE_P): Likewise.
1115         (get_char_id_table): Likewise.
1116
1117         * char-ucs.h: Include "chartab.h".
1118         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1119         (Lisp_Char_ID_Table): Likewise.
1120         (char_id_table): Likewise.
1121         (XCHAR_ID_TABLE): Likewise.
1122         (XSETCHAR_ID_TABLE): Likewise.
1123         (CHAR_ID_TABLE_P): Likewise.
1124         (GC_CHAR_ID_TABLE_P): Likewise.
1125         (get_char_id_table): Likewise.
1126
1127 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1128
1129         * chartab.c (copy_uint8_byte_table): New function.
1130         (copy_uint16_byte_table): New function.
1131         (copy_byte_table): New function.
1132         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1133         characters to call.
1134         (map_over_uint16_byte_table): Likewise.
1135         (map_over_byte_table): Likewise.
1136         (get_byte_table): Move prototype to chartab.h.
1137         (put_byte_table): Likewise.
1138         (put_char_id_table_0): Moved to chartab.h.
1139         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1140         (char_table_entry_equal): Likewise.
1141         (char_table_entry_hash): Likewise.
1142         (char_table_entry_description): Likewise.
1143         (char_table_entry): Likewise.
1144         (make_char_table_entry): Likewise.
1145         (copy_char_table_entry): Likewise.
1146         (get_non_ascii_char_table_value): Likewise.
1147         (map_over_charset_ascii): Likewise.
1148         (map_over_charset_control_1): Likewise.
1149         (map_over_charset_row): Likewise.
1150         (map_over_other_charset): Likewise.
1151         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1152         (print_char_table): Likewise.
1153         (char_table_equal): Likewise.
1154         (char_table_hash): Likewise.
1155         (char_table_description): Likewise.
1156         (fill_char_table): Likewise.
1157         (Fcopy_char_table): Likewise.
1158         (get_char_table): Likewise.
1159         (Fget_range_char_table): Likewise.
1160         (put_char_table): Likewise.
1161         (map_char_table): Likewise.
1162         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1163         UTF-2000.
1164
1165 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1166
1167         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1168         `Vauto_fill_chars' in XEmacs UTF-2000.
1169
1170         * chartab.h (get_byte_table): New prototype [moved from
1171         chartab.c].
1172         (put_byte_table): Likewise [moved from chartab.c].
1173         (put_char_id_table_0): New inline function [moved from chartab.c].
1174         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1175         (Lisp_Char_Table_Entry): Likewise.
1176         (char_table_entry): Likewise.
1177         (XCHAR_TABLE_ENTRY): Likewise.
1178         (XSETCHAR_TABLE_ENTRY): Likewise.
1179         (CHAR_TABLE_ENTRYP): Likewise.
1180         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1181         (NUM_ASCII_CHARS): Likewise.
1182         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1183         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1184
1185 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1186
1187         * chartab.c (get_char_id_table): Change interface.
1188         (put_char_id_table_0): New function.
1189         (put_char_id_table): Change interface; new implementation.
1190         (Fget_composite_char): Modify for interface change of
1191         `get_char_id_table'.
1192         (Fchar_variants): Likewise.
1193         (add_char_attribute_alist_mapper): Likewise.
1194         (Fchar_attribute_alist): Likewise.
1195         (Fget_char_attribute): Likewise.
1196         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1197         as same as character as the first argument like `put-char-table';
1198         modify for interface change of `put_char_id_table'.
1199         (Fremove_char_attribute): Modify for interface change of
1200         `put_char_id_table'.
1201
1202 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * text-coding.c: Sync up with XEmacs 21.2.41.
1205         (COMPOSE_ADD_CHAR): Modify for interface change of
1206         `get_char_id_table'.
1207
1208         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1209         change of `put_char_id_table'.
1210         (remove_char_ccs): Likewise.
1211
1212         * chartab.h (put_char_id_table): Change interface.
1213
1214         * char-ucs.h (get_char_id_table): Change interface.
1215         (charset_code_point): Modify for interface change of
1216         `get_char_id_table'.
1217         (encode_char_1): Likewise.
1218
1219 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1220
1221         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1222         argument `ccs'.
1223         (map_over_uint16_byte_table): Likewise.
1224         (map_over_byte_table): Likewise.
1225         (map_char_id_table): Add new argument `range' like
1226         `map_char_table'.
1227         (Fmap_char_attribute): Add new argument `range' like
1228         `Fmap_char_table'.
1229
1230 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1231
1232         * chartab.c (map_over_uint8_byte_table): Change interface of
1233         mapping function to use struct chartab_range instead of Emchar.
1234         (map_over_uint16_byte_table): Likewise.
1235         (map_over_byte_table): Likewise.
1236         (map_char_id_table): Likewise.
1237         (struct slow_map_char_id_table_arg): Deleted.
1238         (slow_map_char_id_table_fun): Deleted.
1239         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1240         function `slow_map_char_table_fun' instead of struct
1241         `slow_map_char_id_table_arg' and function
1242         `slow_map_char_id_table_fun'.
1243
1244 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1245
1246         * mule-charset.c: Move char-it-table related codes to chartab.c.
1247         (Vutf_2000_version): Moved to chartab.c.
1248         (Fdefine_char): Likewise.
1249         (Ffind_char): Likewise.
1250         (syms_of_mule_charset): Move types `uint8-byte-table',
1251         `uint16-byte-table', `byte-table' and `char-id-table' to
1252         chartab.c; move functions `char_attribute_list,
1253         `find_char_attribute_table, `char_attribute_alist,
1254         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1255         `map_char_attribute, `define_char, `find_char, `char_variants and
1256         `get_composite_char to chartab.c; move symbols `=>ucs',
1257         `->decomposition', `compat', `isolated', `initial', `medial',
1258         `final', `vertical', `noBreak', `fraction', `super', `sub',
1259         `circle', `square', `wide', `narrow', `small' and `font' to
1260         chartab.c.
1261         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1262         setting codes for `Vcharacter_composition_table' and
1263         `Vcharacter_variant_table' to chartab.c.
1264         (complex_vars_of_mule_charset): Move setting code for
1265         `Vchar_attribute_hash_table' to chartab.c.
1266
1267         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1268         (make_char_id_table): New prototype.
1269         (put_char_id_table): Likewise.
1270         (Fget_char_attribute): Likewise.
1271
1272         * chartab.c: Move char-id-table related code from mule-charset.c.
1273         (Vutf_2000_version): Moved from mule-charset.c.
1274
1275         * char-ucs.h (Qucs): New external variable.
1276         (put_char_ccs_code_point): New prototype.
1277         (remove_char_ccs): Likewise.
1278
1279 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1280
1281         * mule-charset.c (Vcharset_ucs_jis): New variable.
1282         (Qucs_jis): Likewise.
1283         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1284         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1285
1286         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1287
1288 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1289
1290         * mule-charset.c (map_over_uint8_byte_table): New function.
1291         (map_over_uint16_byte_table): Likewise.
1292         (map_over_byte_table): Likewise.
1293         (map_char_id_table): Likewise.
1294         (slow_map_char_id_table_fun): Likewise.
1295         (Fmap_char_attribute): Likewise.
1296         (syms_of_mule_charset): Add new function `map-char-attribute'.
1297
1298 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1299
1300         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1301         (syms_of_mule_charset): Add new function `find-char'.
1302
1303 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304
1305         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1306         XEmacs UTF-2000.
1307         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1308         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1309         XEmacs UTF-2000.
1310         (complex_vars_of_mule_charset): Add new coded-charset
1311         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1312         `ideograph-gt-pj-*'.
1313
1314         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1315
1316 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1317
1318         * mule-charset.c (encode_builtin_char_1): Purge codes about
1319         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1320         {MIN|MAX}_CHAR_HEBREW.
1321         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1322         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1323
1324         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1325         (MAX_CHAR_GREEK): Purged.
1326         (MIN_CHAR_CYRILLIC): Purged.
1327         (MAX_CHAR_CYRILLIC): Purged.
1328         (MIN_CHAR_HEBREW): Commented out.
1329         (MAX_CHAR_HEBREW): Likewise.
1330
1331 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1332
1333         * mule-charset.c (Qto_ucs): New variable.
1334         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1335         (Fdefine_char): Likewise.
1336         (syms_of_mule_charset): Add new symbol `=>ucs'.
1337
1338 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1339
1340         * mule-charset.c (Fdecode_char): Fixed.
1341
1342 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1343
1344         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1345         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1346         "tcvn5712-1".
1347
1348 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349
1350         * mule-charset.c (Vcharset_ucs_big5): New variable.
1351         (Qucs_big5): Likewise.
1352         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1353         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1354
1355         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1356
1357 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358
1359         * mule-charset.c (decode_builtin_char): Check Big5 code range
1360         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1361
1362 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1365         (Qchinese_gb12345): Likewise.
1366         (Fdecode_builtin_char): Fixed.
1367         (syms_of_mule_charset): Add `chinese-gb12345'.
1368         (complex_vars_of_mule_charset): Add coded-charset
1369         `chinese-gb12345'.
1370
1371         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1372         (LEADING_BYTE_CHINESE_GB12345): New macro.
1373
1374 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1375
1376         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1377         and `latin-viscii-upper' for `latin-viscii'.
1378
1379 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1380
1381         * mule-charset.c (Fdecode_builtin_char): Comment out
1382         regularization code for ISO-IR GR representation.
1383
1384 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1385
1386         * mule-charset.c (decode_builtin_char): New function; renamed from
1387         `make_builtin_char'; return -1 instead of signal.
1388         (Fdecode_builtin_char): Use `decode_builtin_char'.
1389
1390         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1391         `make_builtin_char'.
1392         (DECODE_CHAR): Use `decode_builtin_char' instead of
1393         `make_builtin_char'; use mapping table of `chinese-big5' for
1394         `chinese-big5-{1,2}'.
1395
1396 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * text-coding.c (char_encode_big5): New function.
1399         (char_finish_big5): Likewise.
1400         (reset_encoding_stream): Use `char_encode_big5' and
1401         `char_finish_big5' for CODESYS_BIG5.
1402         (mule_encode): Don't use `encode_coding_big5'.
1403         (encode_coding_big5): Deleted.
1404
1405 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406
1407         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1408         0x81- in XEmacs UTF-2000.
1409         (detect_coding_big5): Likewise.
1410
1411 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1412
1413         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1414         generate character-id if the CCS property does not have
1415         corresponding predefined character.
1416         (make_builtin_char): Return -1 if corresponding predefined
1417         character is not found.
1418         (Fdecode_char): Return nil if corresponding character is not
1419         found.
1420         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1421         don't map to builtin ucs space.
1422
1423 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424
1425         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1426         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1427
1428 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1429
1430         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1431         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1432         (Qideograph_gt): Likewise.
1433         (Qideograph_gt_pj_{1..11}): Likewise.
1434         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1435         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1436         `ideograph-gt-pj-11'.
1437         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1438         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1439         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1440
1441         * char-ucs.h (LEADING_BYTE_GT): New macro.
1442         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1443         (MIN_CHAR_GT): Likewise.
1444         (MAX_CHAR_GT): Likewise.
1445
1446 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1447
1448         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1449         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1450
1451         * doprnt.c (unsigned_int_converters): Add `c'.
1452         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1453
1454         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1455         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1456         `MIN_CHAR_MOJIKYO'.
1457         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1458         (MAX_CHAR_MOJIKYO_0): New macro.
1459         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1460
1461 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462
1463         * mule-charset.c (Fdefine_char): Delete cemented out code.
1464         (encode_builtin_char_1): Modify for new allocation of builtin
1465         Mojikyo characters.
1466
1467         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1468
1469 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1470
1471         * mule-charset.c (Vcharset_ucs_cns): New variable.
1472         (Qucs_cns): New variable.
1473         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1474         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1475
1476 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477
1478         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1479
1480 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1481
1482         * search.c (search_buffer): Make `charset_base_code' as
1483         character-id >> 6 to eliminate the corresponding last byte in
1484         UTF-8 representation [I'm not sure it is right thing].
1485         (boyer_moore): Likewise.
1486
1487 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1488
1489         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1490         representation in MULE.
1491
1492 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1493
1494         * text-coding.c (Fmake_coding_system): Use
1495         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1496         `EXTERNAL_PROPERTY_LIST_LOOP'.
1497
1498 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499
1500         * text-coding.c (decode_output_utf8_partial_char): New function.
1501         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1502
1503 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504
1505         * text-coding.c (decode_coding_utf8): Output original byte
1506         sequence if it is broken; change order of conditions.
1507
1508         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1509         of conditions.
1510
1511         * mb-multibyte.h (BYTE_ASCII_P):
1512         Use bit ops for char-signedness safety.
1513         (BYTE_C0_P): Use bit ops for char-signedness safety.
1514         (BYTE_C1_P): Use bit ops for char-signedness safety.
1515
1516         * character.h: (XCHAR_OR_CHAR_INT):
1517         Always use inline function.
1518         Remove redundant type checking assert() - XINT will abort quite
1519         nicely.
1520
1521 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1522
1523         * text-coding.c: (Fencode_shift_jis_char):
1524         (Fencode_big5_char):
1525         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1526         Replace 0 with '\0' when working with bytes.
1527         Replace initial "(" with "\(" in docstrings.
1528
1529         (Fmake_coding_system):
1530         When type is ccl and value is vector, register it with a proper
1531         symbol.  And checks whether the given ccl program is valid.
1532         (mule_decode): When calling ccl_driver, if src indicates
1533         NULL pointer, set an empty string instead.
1534         (mule_encode): Likewise.
1535
1536         (detect_eol_type):
1537         (detect_coding_sjis):
1538         (decode_coding_sjis):
1539         (detect_coding_big5):
1540         (decode_coding_big5):
1541         (detect_coding_ucs4):
1542         (decode_coding_ucs4):
1543         (detect_coding_utf8):
1544         (decode_coding_utf8):
1545         (detect_coding_iso2022):
1546         (decode_coding_iso2022):
1547         (decode_coding_no_conversion):
1548         (mule_decode):
1549         Make all detecting and decoding functions take an Extbyte * arg.
1550         (text_encode_generic):
1551         (encode_coding_big5):
1552         (encode_coding_no_conversion):
1553         (mule_encode):
1554         Make all encoding functions take a Bufbyte * arg.
1555         Use size_t instead of unsigned int for memory sizes.
1556         Only cast to unsigned char whenever dereferencing Extbyte *.
1557
1558         (struct lrecord_description fcd_description_1): Use countof.
1559         (complex_vars_of_file_coding):
1560         Use countof instead of sizeof.
1561         Use CHECK_NATNUM instead of CHECK_INT.
1562
1563 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1564
1565         * mule-charset.c (Fget_char_attribute): Add new optional argument
1566         `default-value'.
1567         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1568         (remove_char_ccs): Likewise.
1569
1570 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1571
1572         * text-coding.c (char_encode_shift_jis): New implementation in
1573         UTF-2000.
1574         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1575         ...)'.
1576
1577         * mule-charset.c (Vcharset_chinese_big5): New variable in
1578         UTF-2000.
1579         (Qchinese_big5): New variable in UTF-2000.
1580         (BIG5_SAME_ROW): New macro in UTF-2000.
1581         (make_builtin_char): Use builtin characters of
1582         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1583         characters of `Vcharset_chinese_big5'.
1584         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1585         (complex_vars_of_mule_charset): Add new coded-charset
1586         `chinese-big5' in UTF-2000.
1587
1588         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1589         (Vcharset_chinese_big5): New external variable declaration.
1590         (Vcharset_japanese_jisx0208_1990): Likewise.
1591
1592 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1593
1594         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1595         function.
1596         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1597
1598 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1599
1600         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1601         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1602         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1603         `mojikyo-pj-*'.
1604
1605 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1608
1609 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1612         to 0.17.
1613
1614 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1615
1616         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1617         for `CHARSET_BY_ATTRIBUTES'.
1618         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1619         `CHARSET_BY_ATTRIBUTES'.
1620
1621         * text-coding.c (struct decoding_stream): Rename member `CH' to
1622         `CPOS'.
1623         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1624         (decode_coding_sjis): Likewise.
1625         (decode_coding_big5): Likewise.
1626         (decode_coding_ucs4): Likewise.
1627         (decode_coding_utf8): Likewise.
1628         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1629         `CHARSET_BY_ATTRIBUTES'.
1630         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1631         `str->counter'; decode 3, 4 bytes sets.
1632         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1633         sets.
1634         (decode_coding_no_conversion): Use `str->cpos' instead of
1635         `str->ch'.
1636
1637         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1638         (Qmojikyo_2022_1): New variable.
1639         (make_charset): Don't use `CHARSET_TYPE_*'.
1640         (range_charset_code_point): Support coded-charset
1641         `mojikyo-2022-1'.
1642         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1643         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1644         `CHARSET_BY_ATTRIBUTES'.
1645         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1646         `CHARSET_BY_ATTRIBUTES'.
1647         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1648         (complex_vars_of_mule_charset): Add new coded-charset
1649         `mojikyo-2022-1'.
1650
1651         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1652         interface; changed to inline function.
1653
1654         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1655         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1656         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1657         (CHARSET_TYPE_94): Deleted.
1658         (CHARSET_TYPE_94X94): Deleted.
1659         (CHARSET_TYPE_96): Deleted.
1660         (CHARSET_TYPE_96X96): Deleted.
1661         (CHARSET_TYPE_128): Deleted.
1662         (CHARSET_TYPE_128X128): Deleted.
1663         (CHARSET_TYPE_256): Deleted.
1664         (CHARSET_TYPE_256X256): Deleted.
1665         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1666         to inline function.
1667         (DECODE_MOJIKYO_2022): New inline function.
1668         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1669         `Vcharset_mojikyo_2022_1'.
1670
1671 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1672
1673         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1674         instead of `EQ'.
1675         (put_byte_table): Likewise.
1676         (char_id_table_equal): Use `get_byte_table' [new implementation].
1677
1678 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1679
1680         * mule-charset.c: Include <limits.h> in UTF-2000.
1681         (BT_UINT8_MIN): New macro in UTF-2000.
1682         (BT_UINT8_MAX): New macro in UTF-2000.
1683         (BT_UINT8_t): New macro in UTF-2000.
1684         (BT_UINT8_nil): New macro in UTF-2000.
1685         (BT_UINT8_unbound): New macro in UTF-2000.
1686         (INT_UINT8_P): New inline function in UTF-2000.
1687         (UINT8_VALUE_P): New inline function in UTF-2000.
1688         (UINT8_ENCODE): New inline function in UTF-2000.
1689         (UINT8_DECODE): New inline function in UTF-2000.
1690         (mark_uint8_byte_table): New function in UTF-2000.
1691         (print_uint8_byte_table): New function in UTF-2000.
1692         (uint8_byte_table_equal): New function in UTF-2000.
1693         (uint8_byte_table_hash): New function in UTF-2000.
1694         (make_uint8_byte_table): New function in UTF-2000.
1695         (uint8_byte_table_same_value_p): New function in UTF-2000.
1696         (BT_UINT16_MIN): New macro in UTF-2000.
1697         (BT_UINT16_MAX): New macro in UTF-2000.
1698         (BT_UINT16_t): New macro in UTF-2000.
1699         (BT_UINT16_nil): New macro in UTF-2000.
1700         (BT_UINT16_unbound): New macro in UTF-2000.
1701         (INT_UINT16_P): New inline function in UTF-2000.
1702         (UINT16_VALUE_P): New inline function in UTF-2000.
1703         (UINT16_ENCODE): New inline function in UTF-2000.
1704         (UINT16_DECODE): New inline function in UTF-2000.
1705         (UINT8_TO_UINT16): New inline function in UTF-2000.
1706         (mark_uint16_byte_table): New function in UTF-2000.
1707         (print_uint16_byte_table): New function in UTF-2000.
1708         (uint16_byte_table_equal): New function in UTF-2000.
1709         (uint16_byte_table_hash): New function in UTF-2000.
1710         (make_uint16_byte_table): New function in UTF-2000.
1711         (uint16_byte_table_same_value_p): New function in UTF-2000.
1712         (print_byte_table): New function in UTF-2000.
1713         (byte-table): Use `print_byte_table' as printer.
1714         (make_byte_table): Delete second argument `older'.
1715         (byte_table_same_value_p): New function in UTF-2000.
1716         (copy_byte_table): Deleted.
1717         (get_byte_table): New function in UTF-2000.
1718         (put_byte_table): New function in UTF-2000.
1719         (print_char_id_table): New function in UTF-2000.
1720         (char-id-table): Use `print_char_id_table' as printer.
1721         (make_char_id_table): Delete second argument `older'.
1722         (get_char_id_table): Use `get_byte_table [new implementation].
1723         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1724         implementation].
1725         (Ffind_char_attribute_table): New function in UTF-2000.
1726         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1727         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1728         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1729         (syms_of_mule_charset): Add new function
1730         `find-char-attribute-table' in UTF-2000.
1731
1732         * lrecord.h (enum lrecord_type): Add
1733         `lrecord_type_uint16_byte_table' and
1734         `lrecord_type_uint8_byte_table'.
1735
1736         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1737         (Lisp_Uint8_Byte_Table): New type.
1738         (XUINT8_BYTE_TABLE): New macro.
1739         (XSETUINT8_BYTE_TABLE): New macro.
1740         (UINT8_BYTE_TABLE_P): New macro.
1741         (GC_UINT8_BYTE_TABLE_P): New macro.
1742         (struct Lisp_Uint16_Byte_Table): New structure.
1743         (Lisp_Uint16_Byte_Table): New type.
1744         (XUINT16_BYTE_TABLE): New macro.
1745         (XSETUINT16_BYTE_TABLE): New macro.
1746         (UINT16_BYTE_TABLE_P): New macro.
1747         (GC_UINT16_BYTE_TABLE_P): New macro.
1748
1749 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1750
1751         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1752         (Vcharacter_ideographic_strokes_table): Deleted.
1753         (Vcharacter_total_strokes_table): Deleted.
1754         (Vcharacter_morohashi_daikanwa_table): Deleted.
1755         (Vcharacter_decomposition_table): Deleted.
1756         (Qname): Deleted because it is duplicated.
1757         (Qideographic_radical): Deleted.
1758         (Qideographic_strokes): Deleted.
1759         (Qtotal_strokes): Deleted.
1760         (Qmorohashi_daikanwa): Deleted.
1761         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1762         `ideographic-radical', `ideographic-strokes', `total-strokes',
1763         `morohashi-daikanwa' and `->decomposition'.
1764         (Fget_char_attribute): Likewise.
1765         (Fput_char_attribute): Likewise; use `make-vector' instead of
1766         `make_older_vector' for `->decomposition' value.
1767         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1768         `ideograph-daikanwa'.
1769         (syms_of_mule_charset): Delete builtin symbols `name',
1770         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1771         `morohashi-daikanwa'.
1772         (vars_of_mule_charset): Don't setup
1773         `Vcharacter_ideographic_radical_table',
1774         `Vcharacter_ideographic_strokes_table',
1775         `Vcharacter_total_strokes_table',
1776         `Vcharacter_morohashi_daikanwa_table' and
1777         `Vcharacter_decomposition_table'.
1778
1779 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1780
1781         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1782         `make_older_vector', `make_vector_newer_1' and
1783         `make_vector_newer'.
1784
1785         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1786         `make_older_vector' and `make_vector_newer'.
1787
1788         * config.h.in (HAVE_GGC): New macro.
1789
1790 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1791
1792         * mule-charset.c (struct char_attribute_list_closure): New
1793         structure in UTF-2000.
1794         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1795         (Fchar_attribute_list): Likewise.
1796         (Fset_charset_mapping_table): Use `make_vector_newer'.
1797         (Fdecode_builtin_char): New function in UTF-2000.
1798         (syms_of_mule_charset): Add new function `char-attribute-list' and
1799         `decode-builtin-char' in UTF-2000.
1800
1801         * lisp.h (make_vector_newer): New prototype.
1802
1803         * alloc.c (make_vector_newer_1): New function.
1804         (make_vector_newer): New function.
1805
1806 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1809         50100)'.
1810
1811 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1812
1813         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1814         (Vcharacter_attribute_table): Deleted.
1815         (Vcharacter_name_table): Deleted.
1816         (put_char_attribute): Deleted.
1817         (remove_char_attribute): Deleted.
1818         (struct char_attribute_alist_closure): New structure.
1819         (add_char_attribute_alist_mapper): New function.
1820         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1821         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1822         (Fget_char_attribute): Likewise.
1823         (Fput_char_attribute): Likewise.
1824         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1825         of `remove_char_attribute'.
1826         (Fdefine_char): Return character.
1827         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1828         and `Vcharacter_name_table'.
1829         (complex_vars_of_mule_charset): Likewise
1830         `Vchar_attribute_hash_table'.
1831
1832 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1833
1834         * character.h (CHARC_CHARSET): New macro.
1835         (CHARC_CHARSET_ID): New macro.
1836         (CHARC_CODE_POINT): New macro.
1837         (CHARC_COLUMNS): New macro.
1838         (CHARC_TO_CHAR): New inline function.
1839         (CHARC_EQ): New inline function.
1840         (CHARC_ASCII_EQ): New inline function.
1841         (CHARC_IS_SPACE): New inline function.
1842         (ASCII_TO_CHARC): New inline function.
1843
1844         * char-ucs.h (encode_char_2): Deleted.
1845         (ENCODE_CHAR): Use `encode_char_1' again.
1846         (breakup_char_1): Likewise.
1847         (CHAR_TO_CHARC): New inline function.
1848
1849         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1850
1851 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852
1853         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1854         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1855         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1856         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1857         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1858         `CHARC_IS_SPACE'.
1859         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1860
1861         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1862         `CHARC_CODE_POINT'.
1863         (x_output_display_block): Use `CHARC_CHARSET' and
1864         `CHARC_ASCII_EQ'.
1865
1866         * redisplay-tty.c (tty_output_display_block): Use
1867         `CHARC_ASCII_EQ'.
1868         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1869
1870         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1871
1872         * insdel.c (find_charsets_in_charc_string): Use
1873         `CHARC_CHARSET_ID'.
1874         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1875         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1876         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1877         (convert_charc_string_into_malloced_string): Likewise.
1878
1879 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1880
1881         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1882         instead of <Emchar_dynarr *> for buf; use
1883         `convert_bufbyte_string_into_charc_dynarr' instead of
1884         `convert_bufbyte_string_into_emchar_dynarr'; use
1885         `find_charsets_in_charc_string' instead of
1886         `find_charsets_in_emchar_string'.
1887
1888         * redisplay.h:
1889         - Include "character.h".
1890         (struct rune): New member `cglyph'; delete member `chr'.
1891
1892         * redisplay.c (redisplay_text_width_charc_string): New function;
1893         delete `redisplay_text_width_emchar_string'.
1894         (rtw_charc_dynarr): New variable; renamed from
1895         `rtw_emchar_dynarr'.
1896         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1897         `rtw_emchar_dynarr'; use
1898         `convert_bufbyte_string_into_charc_dynarr' instead of
1899         `convert_bufbyte_string_into_emchar_dynarr'; use
1900         `redisplay_text_width_charc_string' instead of
1901         `redisplay_text_width_emchar_string'.
1902         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1903         instead of `rtw_emchar_dynarr'; use
1904         `convert_bufbyte_string_into_charc_dynarr' instead of
1905         `convert_bufbyte_string_into_emchar_dynarr'.
1906         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1907         `redisplay_text_width_charc_string' instead of
1908         `redisplay_text_width_emchar_string'.
1909         (create_text_block): Modify for <struct rune> change.
1910         (generate_formatted_string_db): Likewise.
1911         (create_string_text_block): Likewise.
1912         (pixel_to_glyph_translation): Likewise.
1913
1914         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1915         instead of <const Emchar *>.
1916         (x_text_width): Likewise.
1917         (x_output_display_block): Use <Charc_dynarr *> instead
1918         <Emchar_dynarr *>; modify for <structure rune> change.
1919         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1920         *>.
1921
1922         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1923         <const Emchar *>; use `charc_string_displayed_columns' instead of
1924         `emchar_string_displayed_columns'.
1925         (tty_output_display_block): Use <Charc_dynarr *> instead of
1926         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1927         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1928         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1929         `tty_output_emchar_dynarr_dynarr'.
1930         (tty_output_charc_dynarr): New function; delete
1931         `tty_output_charc_dynarr'.
1932
1933         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1934         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1935         <Emchar_dynarr *> for buf; use
1936         `convert_bufbyte_string_into_charc_dynarr' instead of
1937         `convert_bufbyte_string_into_emchar_dynarr'.
1938
1939         * frame.c (title_string_charc_dynarr): New variable; renamed from
1940         `title_string_emchar_dynarr'.
1941         (generate_title_string): Use `title_string_charc_dynarr' instead
1942         of `title_string_emchar_dynarr'; use
1943         `convert_charc_string_into_malloced_string' instead of
1944         `convert_emchar_string_into_malloced_string'.
1945         (init_frame): Use `title_string_charc_dynarr' instead of
1946         `title_string_emchar_dynarr'.
1947
1948         * console.h:
1949         - Include "character.h".
1950         (struct console_methods): Use <const Charc *> instead of <const
1951         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1952         <Emchar_dynarr *> in output_string_method.
1953
1954         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1955         <Emchar_dynarr *>.
1956
1957         * console-stream.c (stream_text_width): Use <const Charc *>
1958         instead of <const Emchar *>.
1959
1960         * character.h (Charc_dynarr): New type.
1961
1962         * char-ucs.h (structure Charc): New structure; define new type
1963         `Charc'.
1964
1965         * char-lb.h (DECODE_CHAR): New inline function.
1966         (encode_char_1): New inline function.
1967         (ENCODE_CHAR): New macro.
1968         (structure Charc): New structure; define new type `Charc'.
1969
1970         * char-1byte.h (Vcharset_control_1): New macro.
1971         (Vcharset_latin_iso8859_1): New macro.
1972         (DECODE_CHAR): New inline function.
1973         (encode_char_1): New inline function.
1974         (ENCODE_CHAR): New macro.
1975         (structure Charc): New structure; define new type `Charc'.
1976
1977         * insdel.c (find_charsets_in_charc_string): New function; delete
1978         `find_charsets_in_emchar_string'.
1979         (charc_string_displayed_columns): New function; delete
1980         `emchar_string_displayed_columns'.
1981         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1982         `convert_bufbyte_string_into_emchar_dynarr'.
1983         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1984         `convert_charc_string_into_bufbyte_dynarr'.
1985         (convert_charc_string_into_malloced_string): New function; delete
1986         `convert_charc_string_into_malloced_string'.
1987
1988         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1989         `find_charsets_in_emchar_string'.
1990         (charc_string_displayed_columns): New prototype; delete
1991         `emchar_string_displayed_columns'.
1992         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1993         `convert_charc_string_into_bufbyte_dynarr'.
1994         (convert_charc_string_into_malloced_string): New prototype; delete
1995         `convert_charc_string_into_malloced_string'.
1996
1997 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1998
1999         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2000
2001 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2002
2003         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2004
2005         * char-ucs.h: Use <short> for <Charset_ID>.
2006
2007         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2008         <Charset_ID>.
2009
2010 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2011
2012         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2013         to 0.16.
2014
2015 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2016
2017         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2018         variable.
2019         (Qmorohashi_daikanwa): New variable.
2020         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2021         for `morohashi-daikanwa' attribute.
2022         (Fget_char_attribute): Likewise.
2023         (Fput_char_attribute): Likewise.
2024         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2025         has the same value of `ideograph-daikanwa'.
2026         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2027         (vars_of_mule_charset): Setup
2028         `Vcharacter_morohashi_daikanwa_table'.
2029
2030 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2031
2032         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2033         attributes.
2034         (add_charset_to_list_mapper): Add `key' instead of
2035         `XCHARSET_NAME (value)' to return aliases.
2036
2037 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2038
2039         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2040         variable.
2041         (Vcharacter_ideographic_strokes_table): New variable.
2042         (Qideographic_radical): New variable.
2043         (Qideographic_strokes): New variable.
2044         (Fchar_attribute_alist): Use
2045         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2046         attribute; use `Vcharacter_ideographic_strokes_table' for
2047         `ideographic-strokes' attribute.
2048         (Fget_char_attribute): Likewise.
2049         (Fput_char_attribute): Likewise.
2050         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2051         `ideographic-strokes'.
2052         (vars_of_mule_charset): Setup
2053         `Vcharacter_ideographic_radical_table' and
2054         `Vcharacter_ideographic_strokes_table'.
2055
2056 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2057
2058         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2059         (Qtotal_strokes): New variable.
2060         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2061         `total-strokes' attribute.
2062         (Fget_char_attribute): Likewise.
2063         (Fput_char_attribute): Likewise.
2064         (syms_of_mule_charset): Add new symbol `total-strokes'.
2065         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2066
2067 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2068
2069         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2070         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2071         are found.
2072         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2073         `->decomposition' attribute.
2074         (Fput_char_attribute): Likewise.
2075         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2076
2077 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2078
2079         * mule-charset.c (decoding_table_check_elements): New function.
2080         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2081
2082 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083
2084         * mule-charset.c (Fset_charset_mapping_table): Use
2085         `put_char_ccs_code_point'.
2086
2087 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2088
2089         * mule-charset.c (decoding_table_put_char): New inline function.
2090         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2091
2092 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2093
2094         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2095         (XCHARSET_BYTE_SIZE): New macro.
2096         (decoding_table_remove_char): New inline function.
2097         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2098         `decoding_table_remove_char'.
2099         (remove_char_ccs): Use `decoding_table_remove_char'.
2100         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2101
2102 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2103
2104         * mule-charset.c (Vcharacter_name_table): New variable.
2105         (Qname): New variable.
2106         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2107         attribute.
2108         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2109         `Vcharacter_name_table' for `name' attribute.
2110         (Fremove_char_attribute): Use function `remove_char_ccs'.
2111         (put_char_ccs_code_point): New function.
2112         (remove_char_ccs): New function.
2113         (syms_of_mule_charset): Add new symbol `name'.
2114         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2115
2116 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2117
2118         * mule-charset.c (make_byte_table): Add new argument `older'.
2119         (make_char_id_table): Likewise.
2120         (copy_char_id_table): Comment out because it is not used.
2121         (put_char_id_table): Modify for `make_byte_table'.
2122         (Fput_char_attribute): Make encoding_table as older object;
2123         inherit older bit of `Vcharacter_composition_table'.
2124         (mark_charset): Don't mark `cs->encoding_table'.
2125         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2126         normal object; make `Vcharacter_composition_table' as an older
2127         object; delete staticpro for `Vcharacter_composition_table'; make
2128         `Vcharacter_variant_table' as a normal object.
2129
2130         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2131         (mark_object): Don't check older object in UTF-2000.
2132
2133         * lrecord.h (struct lrecord_header): Add new member `older' in
2134         UTF-2000.
2135         (set_lheader_implementation): Setup `SLI_header->older' in
2136         UTF-2000.
2137         (set_lheader_older_implementation): New macro in UTF-2000.
2138         (OLDER_RECORD_P): New macro in UTF-2000.
2139         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2140         (alloc_older_lcrecord): New prototype in UTF-2000.
2141         (alloc_older_lcrecord_type): New macro in UTF-2000.
2142
2143 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2144
2145         * mule-charset.c (byte_table_description): Use
2146         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2147         (char_id_table_description): Delete bogus `, 1'.
2148         (Fget_char_attribute): Refer encoding_table of each coded-charset
2149         to get value of coded-charset attribute of a character.
2150         (Fput_char_attribute): Use `make_older_vector' instead of
2151         `make_vector'; use encoding_table of each coded-charset to store
2152         value of coded-charset attribute of a character.
2153         (Fremove_char_attribute): Use encoding_table of each coded-charset
2154         to store value of coded-charset attribute of a character.
2155         (mark_charset): Mark `cs->encoding_table'; don't mark
2156         `cs->decoding_table'.
2157         (charset_description): Add description of new member
2158         `encoding_table'.
2159         (make_charset): Initialize `encoding_table'.
2160
2161         * char-ucs.h (struct Lisp_Charset): Add new member
2162         `encoding_table'.
2163         (CHARSET_ENCODING_TABLE): New macro.
2164         (XCHARSET_ENCODING_TABLE): New macro.
2165         (charset_code_point): New implementation.
2166         (encode_char_1): Likewise.
2167
2168         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2169         (disksave_object_finalization_1): Call finalizers of
2170         `all_older_lcrecords' in UTF-2000.
2171         (make_older_vector): New function in UTF-2000.
2172         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2173         UTF-2000.
2174
2175         * lisp.h (make_older_vector): New prototype in UTF-2000.
2176
2177 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2178
2179         * lrecord.h (enum lrecord_type): Rename
2180         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2181
2182         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2183         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2184         `get_char_code_table'.
2185
2186         * mule-charset.c (mark_char_id_table): Renamed from
2187         `mark_char_code_table'.
2188         (char_id_table_equal): Renamed from `char_code_table_equal'.
2189         (char_id_table_hash): Renamed from `char_code_table_hash'.
2190         (make_char_id_table): Renamed from `make_char_code_table'.
2191         (copy_char_id_table): Renamed from `copy_char_code_table'.
2192         (get_char_id_table): Renamed from `get_char_code_table'.
2193         (put_char_id_table): Renamed from `put_char_code_table'.
2194         (to_char_id): Renamed from `to_char_code'.
2195
2196         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2197         `Lisp_Char_Code_Table'.
2198         (char_id_table): Renamed from `char_code_table'.
2199         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2200         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2201         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2202         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2203         (get_char_id_table): Renamed from `get_char_code_table'.
2204
2205 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2206
2207         * lrecord.h (enum lrecord_type): Rename
2208         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2209
2210         * mule-charset.c (mark_byte_table): Renamed from
2211         `mark_char_byte_table'.
2212         (byte_table_equal): Renamed from `char_byte_table_equal'.
2213         (byte_table_hash): Renamed from `byte_table_hash'.
2214         (make_byte_table): Renamed from `make_byte_table'.
2215         (copy_byte_table): Renamed from `copy_char_byte_table'.
2216
2217         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2218         `Lisp_Char_Byte_Table'.
2219         (byte_table): Renamed from `char_byte_table'.
2220         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2221         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2222         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2223         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2224
2225 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2226
2227         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2228         (dfc_convert_to_internal_format): Likewise.
2229         
2230         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2231         * text-coding.c (Fcoding_system_alias_p): New function.
2232         * text-coding.c (Fcoding_system_aliasee): New function.
2233         * text-coding.c (append_suffix_to_symbol): New function.
2234         * text-coding.c (dangling_coding_system_alias_p): New function.
2235         * text-coding.c (Ffind_coding_system):
2236         * text-coding.c (Fcopy_coding_system):
2237         * text-coding.c (encode_coding_no_conversion):
2238         * text-coding.c (syms_of_file_coding):
2239         * text-coding.c (vars_of_file_coding):
2240         Rewrite coding system alias code.
2241         Allow nested aliases, like symbolic links.
2242         Allow redefinition of coding system aliases.
2243         Prevent existence of dangling coding system aliases.
2244         Eliminate convert_to_external_format.
2245         Eliminate convert_to_internal_format.
2246         
2247         * text-coding.c: Change enum eol_type to eol_type_t.
2248
2249 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2250
2251         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2252         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2253
2254         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2255         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2256
2257 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2258
2259         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2260         `ideograph-daikanwa'.
2261
2262         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2263         (Vcharset_ucs_bmp): Likewise.
2264         (Vcharset_mojikyo): Add new extern variable definition.
2265         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2266         (Vcharset_latin_iso8859_3): Likewise.
2267         (Vcharset_latin_iso8859_4): Likewise.
2268         (Vcharset_latin_iso8859_9): Likewise.
2269         (Vcharset_latin_viscii_lower): Likewise.
2270         (Vcharset_latin_viscii_upper): Likewise.
2271         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2272         `mojikyo' code-point is used to decode.
2273         (encode_char_2): New function [to convert `mojikyo' code-point to
2274         Mojikyo font encoding].
2275         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2276         (breakup_char_1): Likewise.
2277         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2278
2279 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2280
2281         * text-coding.c (Fmake_coding_system): Add document about
2282         `disable-composition' property.
2283
2284 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2285
2286         * text-coding.c (Qdisable_composition): New variable; delete
2287         `Qcomposite'.
2288         (Fmake_coding_system): Add new property `disable-composite';
2289         delete property `composite'.
2290         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2291         instead of `!CODING_SYSTEM_COMPOSITE'.
2292         (syms_of_file_coding): Add new symbol `disable-composition';
2293         delete symbol `composite'.
2294
2295         * file-coding.h (struct Lisp_Coding_System): Add
2296         `disable_composition'; delete `enable_composition'.
2297         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2298         `CODING_SYSTEM_COMPOSITE'.
2299         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2300         `XCODING_SYSTEM_COMPOSITE'.
2301
2302 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2303
2304         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2305         to 0.15.
2306
2307 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2308
2309         * text-coding.c (Qcomposite): New variable.
2310         (Fmake_coding_system): Add new property `composite'.
2311         (struct decoding_stream): Add `combined_char_count',
2312         `combined_chars' and `combining_table' in UTF-2000.
2313         (COMPOSE_FLUSH_CHARS): New macro.
2314         (COMPOSE_ADD_CHAR): New macro.
2315         (reset_decoding_stream): Reset `str->combined_char_count' and
2316         `str->combining_table' in UTF-2000.
2317         (decode_coding_iso2022): Modify for character-decomposition.
2318         (syms_of_file_coding): Add new symbol `composite'.
2319
2320 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2321
2322         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2323         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2324         of `Vcharacter_composition_table' if `->decomposition' property
2325         has only 1 element.
2326         (Qlatin_tcvn5712): New variable.
2327         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2328         (complex_vars_of_mule_charset): Add new coded-charset
2329         `latin-tcvn5712'.
2330
2331         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2332
2333 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2334
2335         * file-coding.h (struct Lisp_Coding_System): Add
2336         `enable_composition'.
2337         (CODING_SYSTEM_COMPOSITE): New macro.
2338         (XCODING_SYSTEM_COMPOSITE): New macro.
2339
2340 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2341
2342         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2343
2344 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2345
2346         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2347         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2348
2349 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2350
2351         * mule-charset.c (Vcharset_mojikyo): New variable.
2352         (Fdefine_char): Don't use coded-charset which does not have
2353         non-builtin character range to allocate character-id.
2354         (Qmojikyo): New variable.
2355         (syms_of_mule_charset): Add new symbol `mojikyo'.
2356         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2357
2358         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2359         (LEADING_BYTE_MOJIKYO): New macro.
2360         (MIN_CHAR_MOJIKYO): New macro.
2361         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2362         (MAX_CHAR_MOJIKYO): New macro.
2363
2364 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2365
2366         * mule-charset.c (remove_char_attribute): Fixed.
2367
2368 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2369
2370         * mule-charset.c (remove_char_attribute): New function.
2371         (Fremove_char_attribute): New function.
2372         (encode_builtin_char_1): Comment out builtin-support for
2373         greek-iso8859-7 and cyrillic-iso8859-5.
2374         (Fdecode_char): Check `code' is an integer.
2375         (syms_of_mule_charset): Add `remove-char-attribute'.
2376         (MIN_CHAR_GREEK): Deleted.
2377         (MAX_CHAR_GREEK): Likewise.
2378         (MIN_CHAR_CYRILLIC): Likewise.
2379         (MAX_CHAR_CYRILLIC): Likewise.
2380         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2381         MAX_CHAR_GREEK for `greek-iso8859-7'.
2382
2383         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2384         (MAX_CHAR_GREEK): Likewise.
2385         (MIN_CHAR_CYRILLIC): Likewise.
2386         (MAX_CHAR_CYRILLIC): Likewise.
2387
2388 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2389
2390         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2391         format is used without `ucs' property.
2392         (Fdecode_char): Fix problem with GR representation.
2393         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2394         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2395
2396 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2397
2398         * mule-charset.c (make_builtin_char): New function.
2399         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2400         (Fset_charset_mapping_table): Modify for new representation of
2401         code-point.
2402         (Fdecode_char): New function.
2403         (syms_of_mule_charset): Add new builtin function `decode-char' in
2404         UTF-2000.
2405
2406         * char-ucs.h (make_builtin_char): New prototype.
2407         (DECODE_CHAR): New inline function.
2408         (MAKE_CHAR): Use `DECODE_CHAR'.
2409
2410 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2411
2412         * text-coding.c (parse_charset_conversion_specs): Use
2413         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2414         `XCHARSET_TYPE'.
2415         (iso2022_designate): Likewise.
2416
2417         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2418         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2419
2420         * mule-charset.c (Vcharset_ucs): New variable.
2421         (print_charset): Change design; use `CHARSET_CHARS' and
2422         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2423         (make_charset): Change signature to specify `chars' and
2424         `dimension' instead of `type'.
2425         (range_charset_code_point): Modify for 256^n-set.
2426         (encode_builtin_char_1): Encode as `ucs' in default.
2427         (Fmake_charset): Modify for `make_charset'.
2428         (Fmake_reverse_direction_charset): Likewise.
2429         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2430         UTF-2000.
2431         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2432         for `make_charset'.
2433
2434         * char-ucs.h (Vcharset_ucs): New variable.
2435         (LEADING_BYTE_UCS): New macro.
2436         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2437         and `chars' to `unsigned short' from `unsigned int'.
2438         (CHARSET_TYPE): Deleted.
2439         (XCHARSET_TYPE): Deleted.
2440
2441 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2442
2443         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2444
2445         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2446         (ENCODE_CHAR): New macro.
2447
2448 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2449
2450         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2451         to 0.14 (Kawachi-Katakami).
2452
2453 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2454
2455         * text-coding.c (char_encode_shift_jis): Modify for
2456         `charset_code_point'.
2457         (char_encode_iso2022): Likewise.
2458
2459         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2460         (integer) instead of list of <Lisp_Object>s (integers) as the
2461         format of code-point of a coded-charset.
2462         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2463         (encode_builtin_char_1): New function; delete
2464         `split_builtin_char'.
2465         (charset_code_point): Return <int> instead of <Lisp_Object>.
2466         (Fsplit_char): Don't use `SPLIT_CHAR'.
2467
2468         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2469         prototype for `split_builtin_char'.
2470         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2471         (charset_code_point): Likewise.
2472         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2473         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2474
2475 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2476
2477         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2478         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2479
2480 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2481
2482         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2483
2484         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2485         (MAX_CHAR_OBS_94x94): Deleted.
2486
2487 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2488
2489         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2490
2491         * char-ucs.h (MAX_CHAR_BMP): New macro.
2492
2493 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2494
2495         * text-coding.c: Sync with r21-2-24.
2496
2497 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2498
2499         * file-coding.c: Modify for UTF-2000.
2500
2501 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2502
2503         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2504         to 0.13 (Takaida).
2505
2506 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2507
2508         * mule-charset.c (split_builtin_char): Delete builtin support for
2509         `katakana-jisx0201'.
2510         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2511         BMP area in builtin representation.
2512
2513         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2514         `Vcharset_katakana_jisx0201'.
2515
2516 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2517
2518         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2519         (Qisolated): New variable.
2520         (Qinitial): New variable.
2521         (Qmedial): New variable.
2522         (Qfinal): New variable.
2523         (Qvertical): New variable.
2524         (Qsmall): New variable.
2525         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2526         `Qvertical' and `Qsmall'.
2527         (Qmojikyo_pj_[1 .. 21]): New variable.
2528         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2529         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2530         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2531         .. 21]'.
2532
2533 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2534
2535         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2536         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2537         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2538
2539 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2540
2541         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2542         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2543         BMP.
2544         (Qjapanese_jisx0208_1990): New variable.
2545         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2546         (complex_vars_of_mule_charset): Add new coded-charset
2547         `japanese-jisx0208-1990'.
2548
2549         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2550         (MIN_CHAR_JIS_X0208_1990): New macro.
2551         (MAX_CHAR_JIS_X0208_1990): New macro.
2552
2553 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2554
2555         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2556         coded-charset is not found.
2557
2558 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2559
2560         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2561         (Fdefine_char): Use `Fmake_char'.
2562
2563 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2564
2565         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2566         (Vcharset_hiragana_jisx0208): Deleted.
2567         (Vcharset_katakana_jisx0208): Deleted.
2568         (Qideograph_daikanwa): New variable.
2569         (Qhiragana_jisx0208): Deleted.
2570         (Qkatakana_jisx0208): Deleted.
2571         (split_builtin_char): Split `ideograph-daikanwa'.
2572         (Fsplit_char): New implementation for UTF-2000.
2573         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2574         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2575         (complex_vars_of_mule_charset): Add new coded-charset
2576         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2577         `katakana-jisx0208'.
2578
2579         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2580         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2581         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2582         (MIN_CHAR_DAIKANWA): New macro.
2583         (MAX_CHAR_DAIKANWA): New macro.
2584
2585 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2586
2587         * data.c (Fstring_to_number): Don't recognize floating point if
2588         base is not 10.
2589
2590 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2591
2592         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2593
2594 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2595
2596         * mule-charset.c (Qsquare): New variable.
2597         (to_char_code): Add `Qsquare'.
2598         (syms_of_mule_charset): Add new symbol `square'.
2599
2600 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2601
2602         * mule-charset.c (Qcircle): New variable.
2603         (to_char_code): Add `Qcircle'.
2604         (syms_of_mule_charset): Add new symbol `circle'.
2605
2606 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2607
2608         * mule-charset.c (Qfont): New variable.
2609         (to_char_code): Add `Qfont'.
2610         (syms_of_mule_charset): Add new symbol `font'.
2611
2612 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2613
2614         * mule-charset.c (Qsub): New variable.
2615         (to_char_code): Add `Qsub'.
2616         (syms_of_mule_charset): Add new symbol `sub'.
2617
2618 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2619
2620         * mule-charset.c (Fput_char_attribute): Convert each element of
2621         VALUE to GL position if ATTRIBUTE is a GR-set,
2622
2623 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2624
2625         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2626         coded-charset is a GR-set.
2627
2628 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2629
2630         * mule-charset.c (Fput_char_attribute): Check each element of
2631         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2632
2633 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2634
2635         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2636         UTF-2000.
2637         (Qethiopic_ucs): New variable in UTF-2000.
2638         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2639         (complex_vars_of_mule_charset): Add new coded-charset
2640         `ethiopic-ucs' in UTF-2000.
2641
2642         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2643         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2644         9)'.
2645         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2646         10)'.
2647         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2648
2649 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2650
2651         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2652         `ascii'.
2653
2654 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2655
2656         * mule-charset.c (Vcharacter_variant_table): New variable.
2657         (Q_ucs): New variable.
2658         (Fchar_variants): New function.
2659         (Fput_char_attribute): Register `->ucs' value to
2660         `Vcharacter_variant_table'.
2661         (syms_of_mule_charset): Add new function `char-variants' and new
2662         symbol `->ucs'.
2663         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2664
2665 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2666
2667         * mule-charset.c (get_char_code_table): Allow negative character
2668         code.
2669         (put_char_code_table): Likewise.
2670         (Vcharacter_composition_table): New variable.
2671         (Q_decomposition): New variable.
2672         (Qwide): New variable.
2673         (Qnarrow): New variable.
2674         (Qcompat): New variable.
2675         (QnoBreak): New variable.
2676         (Qsuper): New variable.
2677         (Qfraction): New variable.
2678         (to_char_code): New function.
2679         (Fget_composite_char): New function.
2680         (Fput_char_attribute): Register `->decomposition' value to
2681         `Vcharacter_composition_table'.
2682         (syms_of_mule_charset): Add new function `get-composite-char', new
2683         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2684         `super' and `fraction'.
2685         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2686
2687 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2688
2689         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2690         character; copy the return value.
2691
2692 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2693
2694         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2695
2696         * mule-charset.c (range_charset_code_point): Must use make_int.
2697         (split_builtin_char): New function.
2698
2699 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2700
2701         * mule-charset.c (char_byte_table): Change name from
2702         "char-code-table" to "char-byte-table".
2703         (mark_char_code_table): New function.
2704         (char_code_table_equal): New function.
2705         (char_code_table_hash): New function.
2706         (char_code_table_description): New constant.
2707         (char_code_table): New type.
2708         (make_char_code_table): New function.
2709         (copy_char_code_table): New function.
2710         (get_char_code_table): Modify for `char_code_table' type.
2711         (put_char_code_table): Likewise.
2712         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2713         (Kashiwara).
2714
2715         * char-ucs.h (char_code_table): New type.
2716         (XCHAR_CODE_TABLE): New macro.
2717         (XSETCHAR_CODE_TABLE): New macro.
2718         (CHAR_CODE_TABLE_P): New macro.
2719         (GC_CHAR_CODE_TABLE_P): New macro.
2720         (struct Lisp_Char_Code_Table): New structure.
2721
2722 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2723
2724         * mule-charset.c (Fmake_charset): Setup byte_offset for
2725         {94|96}^n-set.
2726
2727 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2728
2729         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2730         character.
2731
2732 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2733
2734         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2735         is found.
2736
2737 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2738
2739         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2740         charset, it is regarded as a charset.
2741         (put_char_attribute): New function in UTF-2000.
2742         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2743         charset, mapping-table of the charset is modified.
2744         (Fdefine_char): New function in UTF-2000.
2745         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2746         `Fput_char_attribute'.
2747         (syms_of_mule_charset): Add new function `define-char' and new
2748         symbol `ucs' in UTF-2000.
2749         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2750
2751 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2752
2753         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2754         non-UTF-2000 configuration.
2755
2756 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2757
2758         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2759         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2760
2761         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2762         deleted.
2763         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2764         (Fset_charset_mapping_table): Likewise.
2765
2766         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2767         (CHARSET_ENCODING_TABLE): Delete.
2768         (XCHARSET_ENCODING_TABLE): Delete.
2769         (charset_code_point): New interface.
2770
2771 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2772
2773         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2774         instead of `charset_get_byte1' and `charset_get_byte2'.
2775
2776         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2777         (charset_get_byte2): Deleted.
2778
2779 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2780
2781         * char-ucs.h (SPLIT_CHAR): New inline function.
2782         (breakup_char_1): Use `SPLIT_CHAR'.
2783
2784         * mule-charset.c (range_charset_code_point): New function.
2785         (charset_code_point): New function.
2786
2787         * char-ucs.h (range_charset_code_point): New interface.
2788         (breakup_char_1): Use `range_charset_code_point'.
2789
2790 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2791
2792         * mule-charset.c (Fmake_charset): Delete unused local variable
2793         `code_offset'.
2794
2795         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2796         (breakup_char_1): Find a charset and code-point in
2797         `Vcharacter_attribute_table'.
2798
2799 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2800
2801         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2802         to 0.10 (Yao).
2803
2804 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2805
2806         * mule-charset.c (Vcharacter_attribute_table): New variable.
2807         (Fchar_attribute_alist): New function.
2808         (Fget_char_attribute): New function.
2809         (Fput_char_attribute): New function.
2810         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2811         too.
2812         (syms_of_mule_charset): Add new function `char-attribute-alist',
2813         `get-char-attribute' and `put-char-attribute'.
2814         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2815
2816 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2817
2818         * mule-charset.c (Fmake_charset): Just use
2819         `get_unallocated_leading_byte'.
2820
2821         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2822         sets; don't use final-byte based number for private sets.
2823
2824 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2825
2826         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2827         integer.
2828
2829 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2830
2831         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2832         to 0.9.
2833
2834 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2835
2836         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2837         of `CHAR_LEADING_BYTE' in UTF-2000.
2838
2839         * insdel.c (find_charsets_in_bufbyte_string): Use
2840         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2841         (find_charsets_in_emchar_string): Likewise.
2842
2843         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2844         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2845
2846         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2847         (CHAR_CHARSET_ID): New macro.
2848
2849 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2850
2851         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2852         charset-id - MIN_LEADING_BYTE.
2853         (put_char_table): Likewise.
2854
2855 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2856
2857         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2858         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2859         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2860         (CHARSET_ID_OFFSET): New macro.
2861         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2862         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2863         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2864         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2865         4).
2866         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2867         5).
2868         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2869         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2870         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2871         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2872         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2873
2874 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2875
2876         * mule-charset.c (next_allocated_leading_byte): New variable in
2877         UTF-2000.
2878         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2879         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2880         (get_unallocated_leading_byte): Simply use
2881         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2882         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2883         UTF-2000.
2884
2885         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2886         (MAX_LEADING_BYTE_PRIVATE): New macro.
2887         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2888         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2889
2890 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2891
2892         * mule-charset.c (Fmake_charset): Allocate final-byte based
2893         charset-id for 94-set, 96-set and 94x94-set.
2894
2895 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2896
2897         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2898         ambiguous `else'.
2899         (Fmake_charset): Likewise.
2900         (complex_vars_of_mule_charset): Modify the font registry of
2901         `ucs-bmp' not to match `Ethiopic-Unicode'.
2902
2903 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2904
2905         * mule-charset.c (complex_vars_of_mule_charset): Add font
2906         registory of `ucs-bmp'.
2907
2908 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2909
2910         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2911         coded-charsets in `default-coded-charset-priority-list' when
2912         breaking up a character.
2913
2914         * mule-charset.c (Vcharset_latin_viscii): New variable.
2915         (Qlatin_viscii): New variable.
2916         (make_charset): Don't use `decoding_table'.
2917         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2918         byte_offset.
2919         (Fset_charset_mapping_table): New implementation.
2920         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2921         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2922         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2923         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2924         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2925         charset `latin_viscii'.
2926
2927         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2928         (CHARSET_TYPE_94X94): Change to 1 from 2.
2929         (CHARSET_TYPE_96): Change to 2 from 1.
2930         (CHARSET_TYPE_128): New macro.
2931         (CHARSET_TYPE_128X128): Change to 5 from 4.
2932         (CHARSET_TYPE_256): New macro.
2933         (CHARSET_TYPE_256X256): Change to 7 from 5.
2934         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2935
2936 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2937
2938         * text-coding.c (char_encode_shift_jis): Refer
2939         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2940         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2941
2942         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2943         (char_byte_table_equal): New function in UTF-2000.
2944         (char_byte_table_hash): New function in UTF-2000.
2945         (char_byte_table_description): New constant in UTF-2000.
2946         (char_byte_table): New type in UTF-2000.
2947         (make_char_byte_table): New function in UTF-2000.
2948         (copy_char_byte_table): New function in UTF-2000.
2949         (make_char_code_table): New macro in UTF-2000.
2950         (get_char_code_table): New function in UTF-2000.
2951         (put_char_code_table): New function in UTF-2000.
2952         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2953         (charset_description): Add setting in UTF-2000.
2954         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2955         `CHARSET_TO_BYTE1_TABLE(cs)'.
2956         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2957         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2958         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2959         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2960         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2961         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2962         `CHARSET_TO_BYTE2_TABLE(cs)'.
2963
2964         * char-ucs.h (char_byte_table): New type.
2965         (XCHAR_BYTE_TABLE): New macro.
2966         (XSETCHAR_BYTE_TABLE): New macro.
2967         (CHAR_BYTE_TABLE_P): New macro.
2968         (GC_CHAR_BYTE_TABLE_P): New macro.
2969         (struct Lisp_Char_Byte_Table): New structure.
2970         (get_char_code_table): New interface.
2971         (Emchar_to_byte_table): Deleted.
2972         (get_byte_from_character_table): Deleted.
2973         (struct Lisp_Charset): Add `encoding_table'; delete
2974         `to_byte1_table' and `to_byte2_table'.
2975         (CHARSET_ENCODING_TABLE): New macro.
2976         (CHARSET_TO_BYTE1_TABLE): Deleted.
2977         (CHARSET_TO_BYTE2_TABLE): Deleted.
2978         (XCHARSET_ENCODING_TABLE): New macro.
2979         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2980         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2981
2982 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2983
2984         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2985         `vietnamese-viscii-*'.
2986
2987 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2988
2989         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2990         (Qvietnamese_viscii_upper): New variable.
2991         (Fdefine_charset_alias): New function.
2992         (syms_of_mule_charset): Add new function `define-charset-alias'.
2993         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2994         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2995         `latin-viscii-*'.
2996
2997 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2998
2999         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3000         (MAX_CHAR_OBS_94x94): New macro.
3001         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3002         for 94x94 sets.
3003
3004         * mule-charset.c (put_byte_from_character_table): Change unit size
3005         from 128 to 256.
3006         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3007         not defined.
3008         (Fmake_reverse_direction_charset): Modify dummy argument of
3009         `make_charset' for non-UTF-2000 environment.
3010
3011 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3012
3013         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3014
3015         * mule-charset.c (destroy_byte_from_character_table): New macro.
3016         (latin_jisx0201_to_ucs): Deleted.
3017         (latin_iso8859_2_to_ucs): Deleted.
3018         (latin_iso8859_3_to_ucs): Deleted.
3019         (latin_iso8859_4_to_ucs): Deleted.
3020         (latin_iso8859_9_to_ucs): Deleted.
3021         (latin_viscii_lower_to_ucs): Deleted.
3022         (latin_viscii_upper_to_ucs): Deleted.
3023         (mark_charset): Mark `cs->decoding_table'.
3024         (Fcharset_mapping_table): Fix DOC-string.
3025         (Fset_charset_mapping_table): New function.
3026         (syms_of_mule_charset): Add nwe function
3027         `set-charset-mapping-table'.
3028         (complex_vars_of_mule_charset): Don't setup and use
3029         `latin_*_to_ucs'.
3030
3031 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3032
3033         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3034         charset.
3035
3036 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3037
3038         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3039         (Vcharset_katakana_jisx0208): New variable.
3040         (Qhiragana_jisx0208): New variable.
3041         (Qkatakana_jisx0208): New variable.
3042         (make_charset): Add new argument `byte_offset'.
3043         (charset_get_byte1): Modify for new coded-charset definition; use
3044         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3045         `XCHARSET_BYTE_OFFSET'.
3046         (Fmake_charset): Modify for `make_charset'.
3047         (Fmake_reverse_direction_charset): Likewise.
3048         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3049         `katakana-jisx0208'.
3050         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3051         `.'  in font registry of charset `katakana-jisx0201',
3052         `latin-jisx0201', `vietnamese-viscii-lower' and
3053         `vietnamese-viscii-upper'; modify DOC-string of charset
3054         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3055         registry of charset `japanese-jisx0208' not to use font for JIS
3056         X0208:1990; add new charset `hiragana-jisx0208' and
3057         `katakana-jisx0208'.
3058
3059         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3060         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3061         (struct Lisp_Charset): Add `byte_offset'.
3062         (CHARSET_BYTE_OFFSET): New macro.
3063         (XCHARSET_UCS_MIN): New macro.
3064         (XCHARSET_UCS_MAX): New macro.
3065         (XCHARSET_CODE_OFFSET): New macro.
3066         (XCHARSET_BYTE_OFFSET): New macro.
3067         (MIN_CHAR_HIRAGANA): New macro.
3068         (MAX_CHAR_HIRAGANA): New macro.
3069         (MIN_CHAR_KATAKANA): New macro.
3070         (MAX_CHAR_KATAKANA): New macro.
3071         (MAKE_CHAR): Modify for new coded-charset definition; use
3072         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3073         `XCHARSET_BYTE_OFFSET'.
3074
3075 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3076
3077         * mule-charset.c (CHAR96): Deleted.
3078         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3079         <Lisp_Object>.
3080         (latin_iso8859_2_to_ucs): Likewise.
3081         (latin_iso8859_3_to_ucs): Likewise.
3082         (latin_iso8859_4_to_ucs): Likewise.
3083         (latin_iso8859_9_to_ucs): Likewise.
3084         (latin_viscii_lower_to_ucs): Likewise.
3085         (latin_viscii_upper_to_ucs): Likewise.
3086         (latin_tcvn5712_to_ucs): Commented out.
3087         (make_charset): Change type of argument `decoding_table' from
3088         <Emchar*> to <Lisp_Object> [vector of characters].
3089         (Fmake_charset): Modify for `make_charset'.
3090         (Fmake_reverse_direction_charset): Likewise.
3091         (Fcharset_mapping_table): New function in UTF-2000.
3092         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3093         UTF-2000.
3094         (complex_vars_of_mule_charset): Modify for type change of
3095         `*_to_ucs'; modify for `make_charset'.
3096
3097         * char-ucs.h (struct Lisp_Charset): Change type of
3098         `decoding_table' from <Emchar*> to <Lisp_Object>.
3099         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3100
3101 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3102
3103         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3104         error with non-UTF-2000-Mule.
3105
3106 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3107
3108         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3109         in lisp again].
3110         (Vcharset_chinese_cns11643_4): Likewise.
3111         (Vcharset_chinese_cns11643_5): Likewise.
3112         (Vcharset_chinese_cns11643_6): Likewise.
3113         (Vcharset_chinese_cns11643_7): Likewise.
3114         (Qchinese_cns11643_3): Likewise.
3115         (Qchinese_cns11643_4): Likewise.
3116         (Qchinese_cns11643_5): Likewise.
3117         (Qchinese_cns11643_6): Likewise.
3118         (Qchinese_cns11643_7): Likewise.
3119         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3120         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3121         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3122         (complex_vars_of_mule_charset): Likewise.
3123
3124 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3125
3126         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3127         96-set.
3128         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3129         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3130
3131 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3132
3133         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3134         0xFF60.
3135         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3136         (breakup_char_1): Likewise.
3137
3138         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3139         one of them includes the specified character.
3140
3141 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3142
3143         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3144
3145 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3146
3147         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3148
3149 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3150
3151         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3152         definition for non-UTF-2000 Mule.
3153         (latin_iso8859_3_to_ucs): Likewise.
3154         (latin_iso8859_4_to_ucs): Likewise.
3155         (latin_iso8859_9_to_ucs): Likewise.
3156         (latin_jisx0201_to_ucs): Likewise.
3157         (MIN_CHAR_THAI): Likewise.
3158         (MAX_CHAR_THAI): Likewise.
3159         (MIN_CHAR_GREEK): Likewise.
3160         (MAX_CHAR_GREEK): Likewise.
3161         (MIN_CHAR_HEBREW): Likewise.
3162         (MAX_CHAR_HEBREW): Likewise.
3163         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3164         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3165         (MIN_CHAR_CYRILLIC): Likewise.
3166         (MAX_CHAR_CYRILLIC): Likewise.
3167
3168 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3169
3170         * char-ucs.h (breakup_char_1): Use
3171         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3172         thai-tis620 and katakana-jisx0201 area.
3173
3174 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3175
3176         * char-ucs.h (breakup_char_1): Use
3177         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3178         area.
3179
3180         * text-coding.c (reset_encoding_stream): Fixed.
3181         (char_encode_ucs4): Delete `& 255'.
3182
3183         * char-ucs.h (breakup_char_1): Use
3184         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3185
3186 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3187
3188         * file-coding.c (Fmake_coding_system): Don't set up
3189         `codesys->fixed.size'.
3190         (encode_coding_no_conversion): Don't refer
3191         `str->codesys->fixed.size'.
3192
3193 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3194
3195         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3196         (latin_a_char_to_byte1): Deleted.
3197         (latin_a_char_to_byte2): Deleted.
3198
3199 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3200
3201         * mule-charset.c (make_charset): Add new argument `ucs_min',
3202         `ucs_max' and `code_offset'.
3203         (charset_get_byte1): New implementation [delete specific charset
3204         depended implementations].
3205         (Fmake_charset): Modify for `make_charset'.
3206         (Fmake_reverse_direction_charset): Likewise.
3207         (complex_vars_of_mule_charset): Likewise.
3208
3209         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3210         `code_offset'.
3211         (CHARSET_UCS_MIN): New macro.
3212         (CHARSET_UCS_MAX): New macro.
3213         (CHARSET_CODE_OFFSET): New macro.
3214         (MAKE_CHAR): Delete charset depended definitions [except
3215         katakana-jisx0201].
3216
3217 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3218
3219         * char-ucs.h (breakup_char_1): Use
3220         `Vdefault_coded_charset_priority_list' for C0-Controls,
3221         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3222
3223 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3224
3225         * char-ucs.h (charset_get_byte1): New function.
3226         (XCHARSET_GET_BYTE1): Deleted.
3227         (charset_get_byte2): New function.
3228         (XCHARSET_GET_BYTE2): Deleted.
3229         (Vdefault_coded_charset_priority_list): New external variable.
3230         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3231         `Vdefault_preferred_coded_charset_list'.
3232
3233         * mule-charset.c (charset_get_byte1): New function.
3234         (charset_get_byte2): New function.
3235         (Vdefault_coded_charset_priority_list): New variable.
3236         (vars_of_mule_charset): Add new variable
3237         `default-coded-charset-priority-list'.
3238
3239 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3240
3241         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3242         (XCHARSET_GET_BYTE2): New inline function.
3243         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3244         `XCHARSET_GET_BYTE2'.
3245
3246 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3247
3248         * mule-charset.c (make_charset): Initialize
3249         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3250         NULL if table is not defined.
3251
3252 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3253
3254         * text-coding.c (char_encode_shift_jis): Use
3255         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3256         `ucs_to_latin_jisx0201'.
3257
3258         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3259         (ucs_to_latin_iso8859_2): Deleted.
3260         (ucs_to_latin_iso8859_3): Deleted.
3261         (ucs_to_latin_iso8859_4): Deleted.
3262         (ucs_to_latin_iso8859_9): Deleted.
3263         (ucs_to_latin_viscii_lower): Deleted.
3264         (ucs_to_latin_viscii_upper): Deleted.
3265         (ucs_to_latin_tcvn5712): Deleted.
3266         (make_charset): Add new argument `decoding_table'; set up
3267         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3268         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3269         `decoding_table' is defined in UTF-2000.
3270         (Fmake_charset): Modify for `make_charset'.
3271         (Fmake_reverse_direction_charset): Likewise.
3272         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3273         and `GENERATE_96_SET'.
3274
3275         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3276         (ucs_to_latin_jisx0201): Deleted.
3277         (latin_iso8859_2_to_ucs): Deleted.
3278         (ucs_to_latin_iso8859_2): Deleted.
3279         (latin_iso8859_3_to_ucs): Deleted.
3280         (ucs_to_latin_iso8859_3): Deleted.
3281         (latin_iso8859_4_to_ucs): Deleted.
3282         (ucs_to_latin_iso8859_4): Deleted.
3283         (latin_iso8859_9_to_ucs): Deleted.
3284         (ucs_to_latin_iso8859_9): Deleted.
3285         (latin_viscii_lower_to_ucs): Deleted.
3286         (ucs_to_latin_viscii_lower): Deleted.
3287         (latin_viscii_upper_to_ucs): Deleted.
3288         (ucs_to_latin_viscii_upper): Deleted.
3289         (struct Lisp_Charset): Renamed `encoding_table' to
3290         `to_byte1_table'; add `to_byte2_table'.
3291         (CHARSET_DECODING_TABLE): New macro.
3292         (CHARSET_TO_BYTE1_TABLE): New macro.
3293         (CHARSET_TO_BYTE2_TABLE): New macro.
3294         (XCHARSET_DECODING_TABLE): New macro.
3295         (XCHARSET_TO_BYTE1_TABLE): New macro.
3296         (XCHARSET_TO_BYTE2_TABLE): New macro.
3297         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3298         tables.
3299         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3300         don't use `ucs_to_*' tables.
3301
3302 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3303
3304         * text-coding.c (Fmake_coding_system): Don't set up
3305         `codesys->fixed.size'.
3306         (encode_coding_no_conversion): Use `if' instead of `switch'.
3307
3308         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3309
3310 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3311
3312         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3313         (Fmake_charset): Modify for `make_charset'.
3314         (Fmake_reverse_direction_charset): Likewise.
3315         (complex_vars_of_mule_charset): Likewise.
3316
3317 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3318
3319         * text-coding.c (char_encode_shift_jis): Use table
3320         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3321
3322 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3323
3324         * text-coding.c (text_encode_generic): Use `if' instead of
3325         `switch'.
3326         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3327         decode JIS-Latin.
3328
3329 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3330
3331         * text-coding.c (encode_coding_sjis): Deleted.
3332         (char_encode_shift_jis): New function.
3333         (char_finish_shift_jis): New function.
3334         (reset_encoding_stream): Set up `encode_char' and `finish' for
3335         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3336         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3337         (char_encode_utf8): Treat `eol_type'.
3338
3339 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3340
3341         * file-coding.c (decode_coding_iso2022): Use
3342         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3343
3344 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3345
3346         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3347         to 0.7 (Hirano).
3348
3349 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3350
3351         * char-lb.h (CHAR_COLUMNS): New macro.
3352
3353 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3354
3355         * text-coding.c (char_encode_ucs4): New function.
3356         (char_finish_ucs4): New function.
3357         (encode_coding_ucs4): Deleted.
3358         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3359         (text_encode_generic): Delete local variable `charset' and `half'.
3360         (ucs_to_mule_table): Deleted.
3361         (mule_to_ucs_table): Deleted.
3362         (Fset_ucs_char): Deleted.
3363         (ucs_to_char): Deleted.
3364         (Fucs_char): Deleted.
3365         (Fset_char_ucs): Deleted.
3366         (Fchar_ucs): Deleted.
3367         (decode_ucs4): Deleted.
3368         (mule_char_to_ucs4): Deleted.
3369         (encode_ucs4): Deleted.
3370         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3371         (decode_coding_utf8): Likewise.
3372         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3373         (char_encode_iso2022): Fixed.
3374         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3375         `Fset_char_ucs' and `Fchar_ucs'.
3376         (complex_vars_of_file_coding): Don't initialize
3377         `ucs_to_mule_table'.
3378
3379         * objects-tty.c (tty_initialize_font_instance): Don't use
3380         `XCHARSET_COLUMNS'.
3381
3382         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3383         UTF-2000.
3384
3385         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3386         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3387
3388         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3389         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3390         (emchar_string_displayed_columns): Likewise.
3391
3392         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3393         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3394         (string_column_at_point): Likewise.
3395         (Fmove_to_column): Likewise.
3396
3397         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3398         `encoding_table' and `decoding_table'.
3399         (CHARSET_REP_BYTES): Deleted.
3400         (XCHARSET_REP_BYTES): Deleted.
3401         (XCHARSET_COLUMNS): Deleted.
3402         (CHAR_COLUMNS): New macro.
3403         (lookup_composite_char): Deleted unconditionally.
3404         (composite_char_string): Likewise.
3405
3406 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3407
3408         * char-ucs.h (Emchar_to_byte_table): New type.
3409         (get_byte_from_character_table): New function interface.
3410         (Vcharset_latin_jisx0201): New variable.
3411         (latin_jisx0201_to_ucs): New variable.
3412         (ucs_to_latin_jisx0201): New variable.
3413         (Vcharset_latin_iso8859_2): New variable.
3414         (latin_iso8859_2_to_ucs): New variable.
3415         (ucs_to_latin_iso8859_2): New variable.
3416         (Vcharset_latin_iso8859_3): New variable.
3417         (latin_iso8859_3_to_ucs): New variable.
3418         (ucs_to_latin_iso8859_3): New variable.
3419         (Vcharset_latin_iso8859_4): New variable.
3420         (latin_iso8859_4_to_ucs): New variable.
3421         (ucs_to_latin_iso8859_4): New variable.
3422         (Vcharset_latin_iso8859_9): New variable.
3423         (latin_iso8859_9_to_ucs): New variable.
3424         (ucs_to_latin_iso8859_9): New variable.
3425         (Vcharset_latin_viscii_lower): New variable.
3426         (latin_viscii_lower_to_ucs): New variable.
3427         (ucs_to_latin_viscii_lower): New variable.
3428         (Vcharset_latin_viscii_upper): New variable.
3429         (latin_viscii_upper_to_ucs): New variable.
3430         (ucs_to_latin_viscii_upper): New variable.
3431         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3432         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3433         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3434         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3435         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3436         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3437         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3438         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3439         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3440         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3441
3442         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3443         (Vcharset_latin_viscii_upper): New variable.
3444         (make_byte_from_character_table): New function.
3445         (put_byte_from_character_table): New function.
3446         (get_byte_from_character_table): New function.
3447         (CHAR96): New macro.
3448         (ucs_to_latin_jisx0201): New variable.
3449         (latin_jisx0201_to_ucs): New variable.
3450         (ucs_to_latin_iso8859_2): New variable.
3451         (latin_iso8859_2_to_ucs): New variable.
3452         (ucs_to_latin_iso8859_3): New variable.
3453         (latin_iso8859_3_to_ucs): New variable.
3454         (ucs_to_latin_iso8859_4): New variable.
3455         (latin_iso8859_4_to_ucs): New variable.
3456         (ucs_to_latin_iso8859_9): New variable.
3457         (latin_iso8859_9_to_ucs): New variable.
3458         (ucs_to_latin_viscii_lower): New variable.
3459         (latin_viscii_lower_to_ucs): New variable.
3460         (ucs_to_latin_viscii_upper): New variable.
3461         (latin_viscii_upper_to_ucs): New variable.
3462         (ucs_to_latin_tcvn5712): New variable.
3463         (latin_tcvn5712_to_ucs): New variable.
3464         (Qlatin_viscii_lower): New variable.
3465         (Qlatin_viscii_upper): New variable.
3466         (syms_of_mule_charset): Set up new symbol
3467         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3468         (complex_vars_of_mule_charset): Set up new charset
3469         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3470         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3471         `ucs_to_<CHARSET>' tables.
3472
3473 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3474
3475         * text-coding.c: New file.
3476
3477 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3478
3479         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3480
3481         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3482         (MAKE_CHAR): Modify for `ucs-bmp'.
3483         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3484         non-MULE characters of BMP.
3485
3486 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3487
3488         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3489         to 0.6.
3490
3491 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3492
3493         * lstream.h:
3494         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3495         - Include character.h for `CHAR_ASCII_P'.
3496
3497         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3498
3499         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3500         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3501
3502         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3503         (BYTE_C0_P): Likewise.
3504         (BYTE_C1_P): Likewise.
3505         (Lstream_get_emchar_1): Likewise.
3506         (Lstream_fput_emchar): Likewise.
3507         (Lstream_funget_emchar): Likewise.
3508         (copy_internal_to_external): Likewise.
3509         (copy_external_to_internal): Likewise.
3510
3511         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3512         (BYTE_C0_P): Likewise.
3513         (BYTE_C1_P): Likewise.
3514         (Lstream_get_emchar_1): Likewise.
3515         (Lstream_fput_emchar): Likewise.
3516         (Lstream_funget_emchar): Likewise.
3517         (copy_internal_to_external): Likewise.
3518         (copy_external_to_internal): Likewise.
3519
3520         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3521         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3522
3523         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3524         (BYTE_ASCII_P): Moved to mb-1byte.h.
3525
3526 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3527
3528         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3529
3530         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3531         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3532         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3533         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3534         (VALIDATE_CHARPTR_FORWARD): Likewise.
3535         (simple_charptr_emchar): Moved to mb-multibyte.h.
3536         (simple_set_charptr_emchar): Likewise.
3537         (simple_charptr_copy_char): Likewise.
3538         (non_ascii_charptr_emchar): Likewise.
3539         (non_ascii_set_charptr_emchar): Likewise.
3540         (non_ascii_charptr_copy_char): Likewise.
3541         (charptr_emchar): Moved to mb-*byte.h.
3542         (set_charptr_emchar): Likewise.
3543         (charptr_copy_char): Likewise.
3544
3545         * mb-1byte.h, mb-multibyte.h: New files.
3546
3547 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3548
3549         * mb-utf-8.h (MULTIBYTE): New macro.
3550         (MAX_EMCHAR_LEN): Moved from buffer.h.
3551         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3552
3553         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3554
3555         * mb-lb.h, multibyte.h: New files.
3556
3557         * char-1byte.h (Charset_ID): Moved from buffer.h.
3558         (MIN_LEADING_BYTE): Likewise.
3559         (LEADING_BYTE_ASCII): Likewise.
3560         (NUM_LEADING_BYTES): Likewise.
3561         (CHARSETP): Likewise.
3562         (CHARSET_BY_LEADING_BYTE): Likewise.
3563         (XCHARSET_LEADING_BYTE): Likewise.
3564         (XCHARSET_GRAPHIC): Likewise.
3565         (XCHARSET_COLUMNS): Likewise.
3566         (XCHARSET_DIMENSION): Likewise.
3567         (CHAR_CHARSET): Likewise.
3568         (CHAR_LEADING_BYTE): Likewise.
3569         (BREAKUP_CHAR): Likewise.
3570         (Vcharset_ascii): Likewise.
3571
3572         * buffer.h: Include multibyte.h unconditionally.
3573         (VALID_CHARPTR_P): Moved to multibyte.h.
3574         (ASSERT_VALID_CHARPTR): Likewise.
3575         (REAL_INC_CHARPTR): Likewise.
3576         (REAL_INC_CHARBYTIND): Likewise.
3577         (REAL_DEC_CHARPTR): Likewise.
3578         (INC_CHARPTR): Likewise.
3579         (INC_CHARBYTIND): Likewise.
3580         (DEC_CHARPTR): Likewise.
3581         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3582         (VALIDATE_CHARPTR_FORWARD): Likewise.
3583         (charptr_n_addr): Likewise.
3584         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3585         (simple_charptr_emchar): Moved to multibyte.h.
3586         (simple_set_charptr_emchar): Likewise.
3587         (simple_charptr_copy_char): Likewise.
3588         (non_ascii_charptr_emchar): Likewise.
3589         (non_ascii_set_charptr_emchar): Likewise.
3590         (non_ascii_charptr_copy_char): Likewise.
3591         (charptr_emchar): Likewise.
3592         (set_charptr_emchar): Likewise.
3593         (charptr_copy_char): Likewise.
3594         (charptr_emchar_n): Likewise.
3595         (Charset_ID): Moved to char-1byte.h.
3596         (Vcharset_ascii): Likewise.
3597         (CHAR_CHARSET): Likewise.
3598         (CHAR_LEADING_BYTE): Likewise.
3599         (LEADING_BYTE_ASCII): Likewise.
3600         (NUM_LEADING_BYTES): Likewise.
3601         (MIN_LEADING_BYTE): Likewise.
3602         (CHARSETP): Likewise.
3603         (CHARSET_BY_LEADING_BYTE): Likewise.
3604         (XCHARSET_LEADING_BYTE): Likewise.
3605         (XCHARSET_GRAPHIC): Likewise.
3606         (XCHARSET_COLUMNS): Likewise.
3607         (XCHARSET_DIMENSION): Likewise.
3608         (BREAKUP_CHAR): Likewise.
3609
3610 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3611
3612         * character.h: Add document about interface for characters.
3613
3614         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3615         (MAKE_CHAR): Delete comment about
3616         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3617         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3618         (BREAKUP_CHAR): Modify name of arguments.
3619         (CHAR_CHARSET): Modify name of argument.
3620
3621         * buffer.h: Delete document about Emchar accessors.
3622
3623 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3624
3625         * character.h (CHAR_INTP): Moved from buffer.h
3626         (CHAR_OR_CHAR_INTP): Likewise.
3627         (XCHAR_OR_CHAR_INT): Likewise.
3628         (CHECK_CHAR_COERCE_INT): Likewise.
3629
3630         * buffer.h (CHAR_INTP): Moved to character.h
3631         (CHAR_OR_CHAR_INTP): Likewise.
3632         (XCHAR_OR_CHAR_INT): Likewise.
3633         (CHECK_CHAR_COERCE_INT): Likewise.
3634
3635 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3636
3637         * character.h:
3638         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3639         - Include char-1byte.h, char-lb.h or char-ucs.h.
3640
3641         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3642
3643         * buffer.h: Include character unconditionally.
3644         (valid_char_p): Moved to char-*.h.
3645         (non_ascii_valid_char_p): Moved to char-lb.h.
3646
3647         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3648
3649 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3650
3651         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3652         in UTF-2000 because it is not ported yet and not to use
3653         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3654         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3655         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3656
3657         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3658         (CHAR_ASCII_P): Moved from character.h.
3659
3660         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3661         (CHAR_ASCII_P): Likewise.
3662         (CHAR_FIELD1_MASK): Deleted.
3663         (CHAR_FIELD2_MASK): Deleted.
3664         (CHAR_FIELD3_MASK): Deleted.
3665         (MAX_CHAR_BASIC_LATIN): New macro.
3666         (CHAR_FIELD1): Deleted.
3667         (CHAR_FIELD2_INTERNAL): Deleted.
3668         (CHAR_FIELD3_INTERNAL): Deleted.
3669         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3670         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3671         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3672         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3673         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3674         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3675         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3676         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3677         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3678         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3679         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3680         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3681         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3682         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3683         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3684         (MIN_CHAR_COMPOSITION): Deleted.
3685         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3686         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3687
3688 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3689
3690         * buffer.h: Include mb-utf-8.h in UTF-2000.
3691
3692         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3693
3694         * mb-utf-8.h: New file.
3695
3696 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3697
3698         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3699         instead of `int'.
3700
3701         * mule-charset.h, buffer.h (Charset_ID): New type.
3702
3703 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3704
3705         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3706         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3707         instead of `MULE_CHAR_PRIVATE_OFFSET',
3708         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3709         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3710         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3711
3712         * character.h (Vcharset_japanese_jisx0212): New variable
3713         definition.
3714
3715 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3716
3717         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3718         (charset_by_attributes): Delete array about direction.
3719         (latin_a_char_to_charset): New variable in UTF-2000.
3720         (latin_a_char_to_byte1): New variable in UTF-2000.
3721         (latin_a_char_to_byte2): New variable in UTF-2000.
3722         (Qucs_bmp): New variable.
3723         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3724         `Bufbyte'.
3725         (next_allocated_2_byte_leading_byte): Likewise.
3726         (non_ascii_set_charptr_emchar): Likewise.
3727         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3728         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3729         `charset_by_attributes'.
3730         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3731         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3732         and `CHARSET_BY_LEADING_BYTE'.
3733         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3734         `utf-2000-version' to `vars_of_mule_charset'.
3735         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3736         define `leading-code-private-11' in UTF-2000; move setting of
3737         `utf-2000-version' from `syms_of_mule_charset'.
3738         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3739         UTF-2000.
3740
3741         * character.h (Charset_ID): New type.
3742         (LEADING_BYTE_UCS_BMP): New macro.
3743         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3744         (CHARSET_ID_OFFSET_94): New macro.
3745         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3746         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3747         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3748         final-byte.
3749         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3750         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3751         (CHARSET_ID_OFFSET_96): New macro.
3752         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3753         CHARSET_ID_OFFSET_96 and final-byte.
3754         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3755         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3756         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3757         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3758         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3759         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3760         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3761         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3762         (LEADING_BYTE_THAI_TIS620): Likewise.
3763         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3764         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3765         (CHARSET_ID_OFFSET_94x94): New macro.
3766         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3767         CHARSET_ID_OFFSET_94x94 and final-byte.
3768         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3769         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3770         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3771         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3772         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3773         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3774         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3775         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3776         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3777         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3778         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3779         (CHARSET_TYPE_128X128): New macro.
3780         (CHARSET_TYPE_256X256): New macro.
3781         (XCHARSET_PRIVATE_P): Delete unconditionally.
3782         (charset_by_attributes): Delete array about direction.
3783         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3784         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3785         (MIN_CHAR_94): New macro.
3786         (MAX_CHAR_94): New macro.
3787         (MIN_CHAR_96): New macro.
3788         (MAX_CHAR_96): New macro.
3789         (MIN_CHAR_94x94): New macro.
3790         (MAX_CHAR_94x94): New macro.
3791         (MIN_CHAR_96x96): New macro.
3792         (MAX_CHAR_96x96): New macro.
3793         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3794         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3795         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3796         - 32)'.
3797         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3798         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3799         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3800         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3801         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3802         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3803         `XCHARSET_LEADING_BYTE' to make code-point.
3804         (latin_a_char_to_charset): New variable.
3805         (latin_a_char_to_byte1): New variable.
3806         (latin_a_char_to_byte2): New variable.
3807         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3808         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3809         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3810
3811         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3812         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3813         (find_charsets_in_emchar_string): Likewise.
3814         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3815
3816         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3817         `int'.
3818         (decode_coding_iso2022): Likewise.
3819
3820         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3821         of `unsigned char'.
3822
3823         * redisplay.c (redisplay_text_width_emchar_string): Use
3824         `Charset_ID' instead of `unsigned char'.
3825         (redisplay_frame_text_width_string): Likewise.
3826
3827         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3828         `unsigned char'.
3829
3830         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3831         instead of `unsigned char'.
3832         (face_cachel_charset_font_metric_info): Likewise.
3833
3834         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3835         (get_non_ascii_char_table_value): Likewise.
3836         (get_char_table): Likewise.
3837         (put_char_table): Likewise.
3838         (map_over_other_charset): Likewise.
3839         (map_char_table): Likewise.
3840
3841         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3842         instead of `unsigned char'.
3843
3844 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3845
3846         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3847         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3848
3849         * mule-charset.c (leading_code_private_11): Don't define in
3850         UTF-2000.
3851
3852         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3853         in UTF-2000 because it is not ported yet and not to use
3854         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3855
3856 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3857
3858         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3859
3860 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3861
3862         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3863         in UTF-2000.
3864
3865         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3866         of unsigned char to store leading-byte.
3867
3868         * chartab.c (get_non_ascii_char_table_value): Don't use
3869         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3870
3871         * file-coding.c (encode_coding_big5): Delete bogus implementation
3872         in UTF2000.
3873
3874         * character.h (LEADING_BYTE_*): Delete definition for
3875         non-UTF-2000.
3876         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3877         (LEADING_BYTE_PREFIX_P): Deleted.
3878         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3879         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3880         (BUFBYTE_LEADING_BYTE_P): Deleted.
3881         (CHARSET_PRIVATE_P): Deleted unconditionally.
3882         (rep_bytes_by_first_byte): Deleted unconditionally.
3883         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3884         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3885         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3886         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3887         (CHAR_FIELD2): Deleted.
3888         (CHAR_FIELD3): Deleted.
3889         (MAKE_CHAR): Delete definition for non-UTF-2000.
3890         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3891         (breakup_char_1): New implementation.
3892         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3893         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3894
3895 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3896
3897         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3898         condition.
3899
3900 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3901
3902         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3903         (CHARSET_PRIVATE_P): Likewise.
3904         (XCHARSET_PRIVATE_P): Likewise.
3905         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3906
3907         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3908         UTF2000.
3909         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3910
3911 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3912
3913         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3914         (NUM_LEADING_BYTES): Changed from 128 to 256.
3915         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3916         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3917         UTF2000.
3918         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3919
3920         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3921         UTF2000.
3922         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3923         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3924         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3925         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3926         (Qchinese_cns11643_3): New variable in UTF2000.
3927         (Qchinese_cns11643_4): New variable in UTF2000.
3928         (Qchinese_cns11643_5): New variable in UTF2000.
3929         (Qchinese_cns11643_6): New variable in UTF2000.
3930         (Qchinese_cns11643_7): New variable in UTF2000.
3931         (syms_of_mule_charset): Define `chinese-cns11643-3',
3932         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3933         and `chinese-cns11643-7' in UTF2000.
3934         (vars_of_mule_charset): Initialize
3935         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3936         + 1 in UTF2000.
3937         (complex_vars_of_mule_charset): Setup charset
3938         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3939         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3940
3941 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3942
3943         * mule-charset.c: Move setting for `leading-code-private-11' from
3944         `syms_of_mule_charset' to `vars_of_mule_charset'.
3945
3946 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3947
3948         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3949         and `NUM_LEADING_BYTES' in assert.
3950
3951 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3952
3953         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3954         instead of 128.
3955         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3956         `NUM_LEADING_BYTES' instead of 128.
3957
3958 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3959
3960         * mule-charset.h (charset_by_leading_byte): Use
3961         `NUM_LEADING_BYTES' instead of 128.
3962         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3963
3964         * mule-charset.c (charset_by_leading_byte): Use
3965         `NUM_LEADING_BYTES' instead of 128.
3966         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3967
3968         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3969         128.
3970
3971 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3972
3973         * mule-charset.c (syms_of_mule_charset): Update to
3974         0.4 (Shin-Imamiya).
3975
3976 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3977
3978         * file-coding.c (encode_coding_sjis): New implementation for
3979         UTF2000.  (decode_coding_sjis): Ditto.
3980
3981 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3982
3983         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3984         Don't define in UTF2000.
3985
3986         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3987         defined.
3988
3989         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3990         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3991         MULE.
3992
3993 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3994
3995         * config.h.in (CHAR_IS_UCS4): New macro.
3996
3997         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3998         conventional MULE representation.
3999         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4000
4001         * mule-charset.h: Reverted to original.
4002
4003         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4004         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4005         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4006
4007         * character.h: New file.
4008
4009         * file-coding.c (Fmake_coding_system): Set 1 to
4010         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4011         defined.
4012         (encode_coding_no_conversion): New implementation for UTF2000.
4013
4014         * file-coding.h (struct Lisp_Coding_System): Add new member
4015         `fixed.size'.
4016
4017 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4018
4019         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4020         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4021         (encode_coding_iso2022): New implementation for UTF2000.
4022
4023 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4024
4025         * mule-canna.c (c2mu): New implementation for UTF2000.
4026         (m2c): Likewise.
4027
4028 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4029
4030         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4031
4032 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4033
4034         * file-coding.c (reset_encoding_stream): Set 0 to
4035         `str->iso2022.current_char_boundary' in UTF2000.
4036         (encode_utf8): Don't define in UTF2000.
4037         (encode_coding_utf8): New implementation for UTF-8 representation
4038         of UTF2000.
4039         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4040
4041 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4042
4043         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4044
4045         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4046         UTF2000.
4047         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4048
4049         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4050
4051         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4052         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4053         as UTF-8 in UTF2000.
4054         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4055         (non_ascii_valid_char_p): Don't define in UTF2000.
4056         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4057         (Lstream_get_emchar_1): Likewise.
4058         (utf-2000-version): New variable in UTF2000.
4059
4060         * lread.c (read_escape): Add new reader `u'.
4061
4062         * insdel.c (three_to_one_table): Don't define in UTF2000.
4063         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4064         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4065         UTF2000.
4066         (bytind_to_bufpos_func): Likewise.
4067         (buffer_mule_signal_inserted_region): Likewise.
4068         (vars_of_insdel): Don't initialize `three_to_one_table'.
4069         (init_buffer_text): Use `buf->text->mule_size' instead of
4070         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4071         UTF2000.
4072
4073         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4074         UTF-8 representation in UTF2000.
4075         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4076         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4077         (decode_coding_iso2022): Don't define local variable `lb' in
4078         UTF2000; don't use LEADING_BYTE in UTF2000; use
4079         `DECODE_ADD_UCS_CHAR' in UTF2000.
4080         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4081
4082         * config.h.in (UTF2000): New macro.
4083
4084         * buffer.h (struct buffer_text): Add new member `mule_size' and
4085         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4086         (valid_char_p): Return always 1 in UTF2000.
4087         (MAX_EMCHAR_LEN): 6 in UTF2000.
4088         (three_to_one_table): Don't define in UTF2000.
4089         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4090         UTF2000.
4091         (real_bytind_to_bufpos): Likewise.
4092
4093         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4094
4095 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4096
4097         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4098         representation change.
4099         (Vutf_2000_version): New variable.
4100         (leading_code_private_11): New variable.
4101         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4102         `leading-code-private-11'.
4103
4104         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4105         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4106         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4107         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4108         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4109         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4110         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4111         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4112         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4113         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4114         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4115         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4116         (MIN_CHAR_GREEK): New macro.
4117         (MAX_CHAR_GREEK): New macro.
4118         (MIN_CHAR_CYRILLIC): New macro.
4119         (MAX_CHAR_CYRILLIC): New macro.
4120         (MIN_CHAR_HEBREW): New macro.
4121         (MAX_CHAR_HEBREW): New macro.
4122         (MIN_CHAR_THAI): New macro.
4123         (MAX_CHAR_THAI): New macro.
4124         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4125         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4126         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4127         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4128         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4129         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4130         (CHAR_FIELD2): New inline function.
4131         (CHAR_FIELD3): New inline function.
4132         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4133         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4134         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4135         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4136         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4137         (MIN_CHAR_COMPOSITION): Likewise.
4138         (CHAR_LEADING_BYTE): Modified for character representation change.
4139         (MAKE_CHAR): Likewise.
4140
4141         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4142         (Vcharset_greek_iso8859_7): Likewise.
4143         (Vcharset_cyrillic_iso8859_5): Likewise.
4144         (Vcharset_hebrew_iso8859_8): Likewise.
4145         (Vcharset_thai_tis620): Likewise.
4146         (Vcharset_katakana_jisx0201): Likewise.
4147
4148 2001-02-08  Martin Buchholz <martin@xemacs.org>
4149
4150         * XEmacs 21.2.44 "Thalia" is released.
4151
4152 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4153
4154         Fixes crashes in kill-emacs on some systems.
4155         * process-unix.c (unix_kill_child_process):
4156         It's OK for kill() to fail with ESRCH.
4157
4158 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4159
4160         Contortions to make .gdbinit tricks work on most systems.
4161         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4162         * alloc.c (dbg_valmask): Make non-const.
4163         * alloc.c (dbg_typemask): Make non-const.
4164         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4165         * alloc.c (dbg_valbits): Make non-const.
4166         * alloc.c (dbg_gctypebits): Make non-const.
4167         * .gdbinit (decode_object): Make it work with AIX cc.
4168
4169 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4170
4171         * elhash.c (make_general_lisp_hash_table):
4172         Use simpler and more efficient calloc to clear entries.
4173
4174 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4175
4176         * window.c (window_scroll): Work around an AIX C compiler bug.
4177         Fixes 'scroll-up' does nothing problem with xlC.
4178
4179 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4180
4181         * .gdbinit: Remove obsolete comment.
4182
4183 2001-01-31  Mike Alexander  <mta@arbortext.com>
4184
4185         * select.c (Fown_selection_internal): Set owned_p for device
4186         method correctly.
4187
4188 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4189
4190         Port to g++ 2.97.
4191         "not" cannot be used as a macro name as it is an operator in C++
4192         * config.h.in: Stop #defining `not'.
4193         * chartab.c (check_category_char): not ==> not_p
4194         * chartab.h: Likewise.
4195         * regex.c (re_match_2_internal): Likewise.
4196
4197 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4198
4199         * lisp-disunion.h: Fix up comments.
4200
4201 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4202
4203         * keymap.c (define_key_check_and_coerce_keysym):
4204         (syms_of_keymap):
4205         Support mouse-6 and mouse-7 bindings in the obvious way.
4206
4207 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4208
4209         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4210
4211 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4212
4213         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4214         Previous patch missed DEFVAR_INT_MAGIC.
4215         Make sure future DEFVAR_foo use correct types.
4216         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4217         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4218         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4219         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4220         * (DEFVAR_INT): Likewise.
4221         * redisplay.c (vertical_clip): Should be of type Fixnum.
4222         * redisplay.c (horizontal_clip): Likewise.
4223         * lisp.h (dump_add_opaque_int): New.
4224         (dump_add_opaque_fixnum): New.
4225
4226 2001-01-29  Andy Piper  <andy@xemacs.org>
4227
4228         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4229         since they can be eval'ed
4230
4231 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4232
4233         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4234         Oops, XEmacs redefines `class'.  Use `typename' instead.
4235
4236 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4237
4238         * dumper.c: Fix C++ compile errors.
4239
4240 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4241
4242         * tparam.c: Use correct prototypes.
4243
4244 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4245
4246         * sysproc.h: #include util.h for NetBSD's openpty.
4247
4248 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4249
4250         More 64-bit correctness.
4251         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4252         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4253         Fix up comments.
4254         This finally finishes the 64-bit SGI port.
4255         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4256         * symbols.c: Fix up comments and type casts.
4257         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4258         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4259         * symeval.h (Fixnum): New type.
4260         * symeval.h (symbol_value_type): Fix up comment.
4261
4262         * commands.h:
4263         * nt.c:
4264         * emacs.c:
4265         * data.c:
4266         * redisplay.c:
4267         * abbrev.c:
4268         * dired-msw.c:
4269         * event-Xt.c:
4270         * eldap.c:
4271         * window.c:
4272         * sound.c:
4273         * event-stream.c:
4274         * eval.c:
4275         * buffer.c:
4276         * mule-canna.c: A million DEFVAR_INTs here...
4277         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4278         * extents.c:
4279         * cmdloop.c:
4280         * lisp.h:
4281         * select-x.c:
4282         * console-x.h:
4283         * event-msw.c:
4284         * mule-wnnfns.c:
4285         * hpplay.c:
4286         * ralloc.c:
4287         * alloc.c:
4288         * keymap.c:
4289         * profile.c:
4290         s/int/Fixnum/g in DEFVAR_INT declarations.
4291
4292 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4293
4294         Port pdump to SGI alignment-sensitive environment.
4295         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4296         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4297         properly aligned.
4298         Define and use aligned reading and writing macros.
4299         Use buffered stdio instead of posix i/o for faster dumping.
4300         Eliminate kludgy 256 byte space for header.
4301         Read and write from dump file using structs for alignment safety.
4302         * dumper.c (pdump_align_stream): New.
4303         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4304         * dumper.c (PDUMP_READ_ALIGNED): New.
4305         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4306         * dumper.c (pdump_static_Lisp_Object): New struct.
4307         * dumper.c (pdump_static_pointer): New struct.
4308         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4309         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4310         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4311         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4312
4313         * dumper.c (pdump_backtrace):
4314         * dumper.c (pdump_get_indirect_count):
4315         * dumper.c (pdump_register_object):
4316         * dumper.c (pdump_register_struct):
4317         * dumper.c (pdump_reloc_one):
4318         * dumper.c (pdump_scan_by_alignment):
4319         * dumper.c (pdump_dump_from_root_struct_ptrs):
4320         * dumper.c (pdump_dump_opaques):
4321         * dumper.c (pdump_dump_rtables):
4322         * dumper.c (pdump_dump_from_root_objects):
4323         * dumper.c (pdump):
4324         * dumper.c (pdump_load_finish):
4325         Use aligned reading and writing.
4326
4327         * dumper.c (pdump_free): Make static.
4328         * dumper.c (pdump_hFile): Likewise.
4329         * dumper.c (pdump_hMap): Likewise.
4330
4331 2001-01-26  Martin Buchholz <martin@xemacs.org>
4332
4333         * XEmacs 21.2.43 "Terspichore" is released.
4334
4335 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4336
4337         Type fiddling for window_config.saved_windows_count
4338         * window.c (struct window_config): 
4339         Make saved_windows_count member unsigned.
4340         * window.c (sizeof_window_config_for_n_windows): 
4341         Make parameter unsigned.
4342         * window.c (mark_window_config):
4343         * window.c (window_config_equal):
4344         * window.c (free_window_configuration):
4345         * window.c (Fset_window_configuration):
4346         * window.c (count_windows):
4347         * window.c (Fcurrent_window_configuration):
4348         * window.c (reinit_vars_of_window):
4349         Update all callers and users.
4350
4351 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4352
4353         Alignment correctness for flexible arrays.
4354         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4355         Make alignment-correct. Add interesting comments.
4356         * alloc.c (size_vector):
4357         * alloc.c (make_vector_internal):
4358         * alloc.c (make_bit_vector_internal):
4359         * alloc.c (sweep_bit_vectors_1):
4360         * fns.c (size_bit_vector):
4361         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4362         * window.c (sizeof_window_config_for_n_windows): 
4363         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4364
4365 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4366
4367         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4368
4369 2001-01-23  Andy Piper  <andy@xemacs.org>
4370
4371         * select.c (Fown_selection_internal): pass owned_p
4372
4373         * select-msw.c (mswindows_own_selection): New Signature.
4374
4375         * console.h (struct console_methods): add owned_p to
4376         _own_selection.
4377
4378         * select-x.c (x_own_selection): pass owned_p
4379         (hack_motif_clipboard_selection): use owned_p
4380         (vars_of_select_x): new variable -
4381         x_selection_strict_motif_ownership.
4382
4383 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4384
4385         * specifier.h (specifier_data_offset): Remove pointless parens.
4386         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4387
4388 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4389
4390         Make Lisp_Object sizeof methods be alignment-correct.
4391         pdump must restore objects to the same alignment as the C compiler
4392         assumes.  It really matters on SGIs.
4393         * lstream.c (aligned_sizeof_lstream): New.
4394         (sizeof_lstream): Use aligned_sizeof_lstream.
4395         (Lstream_new): Likewise.
4396         * opaque.c (aligned_sizeof_opaque): New.
4397         (sizeof_opaque): Use aligned_sizeof_opaque.
4398         (make_opaque): Likewise.
4399         * specifier.c (aligned_sizeof_specifier): New.
4400         (sizeof_specifier): Use aligned_sizeof_specifier.
4401         (make_specifier_internal): Likewise.
4402
4403 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4404
4405         * lstream.h (struct lstream): Use max_align_t for trailing data.
4406         * specifier.h (struct Lisp_Specifier): Likewise.
4407
4408 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4409
4410         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4411         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4412         (CCL_SUSPEND): Likewise.
4413         (CCL_INVALID_CMD): Likewise.
4414         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4415         (ccl_driver): Likewise.
4416         (CCL_WRITE_CHAR): Macro hygiene.
4417         (CCL_WRITE_STRING): Macro hygiene.
4418
4419 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4420
4421         Port "portable" dumper to SunOS 4 and HP-UX.
4422         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4423         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4424         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4425
4426 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4427
4428         * lisp.h (ALIGNOF): A better definition for C++.
4429
4430 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4431
4432         Macro hygiene.
4433         Fix printf warnings: int format, long int arg.
4434         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4435         (PUSH_FAILURE_POINT): Use correct printf formats.
4436         (POP_FAILURE_POINT): Use correct printf formats.  
4437         Use do {...} while (0)
4438
4439 2001-01-20  Martin Buchholz <martin@xemacs.org>
4440
4441         * XEmacs 21.2.42 "Poseidon" is released.
4442
4443 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4444
4445         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4446
4447 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4448
4449         De-kludgify FIXED_TYPE free list frobbing.
4450         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4451         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4452         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4453         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4454         * alloc.c (LRECORD_FREE_P): New.
4455         * alloc.c (MARK_LRECORD_AS_FREE): New.
4456         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4457         * alloc.c (STRUCT_FREE_P): Deleted.
4458         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4459         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4460         * alloc.c (STRING_CHARS_FREE_P): New.
4461         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4462         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4463         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4464         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4465         * alloc.c (resize_string): Use new definitions.
4466         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4467         * alloc.c (verify_string_chars_integrity): Use new definitions.
4468         * alloc.c (compact_string_chars): Use new definitions.
4469         * alloc.c: Update monster comments.
4470         * lrecord.h (lrecord_type): Add some new lrecord types for
4471         alloc.c's use.
4472
4473 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4474
4475         Improve alignment hackery.
4476         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4477         (max_align_t): Moved from opaque.h - general purpose.
4478         (ALIGN_PTR): Use size_t, not long.
4479         * opaque.h (max_align_t): Move to lisp.h.
4480
4481 2001-01-18  Norbert Koch  <nk@LF.net>
4482
4483         * gui.h: Fix and add prototypes to fix build problems.
4484
4485 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4486
4487         temacs is going away, so `dump-temacs' is now a bad name.
4488         * .dbxrc (dump-temacs): Rename to `dmp'.
4489         * .gdbinit (dump-temacs): Rename to `dmp'.
4490
4491 2001-01-17  Andy Piper  <andy@xemacs.org>
4492
4493         * glyphs.c (print_image_instance): comment to make martin happy.
4494
4495         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4496         change.
4497
4498         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4499         activation.
4500         (mswindows_tab_control_redisplay): warning suppression.
4501
4502         * glyphs-widget.c (widget_update): re-write to cope with updated
4503         items.
4504         (widget_instantiate): use new gui_item functions.
4505         (tab_control_update): deleted.
4506         (progress_gauge_update): deleted.
4507         (image_instantiator_progress_guage): take out update reference.
4508         (image_instantiator_tree_view): ditto.
4509         (image_instantiator_tab_control): ditto.
4510
4511         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4512         Right the new way.
4513         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4514         return whether anything was changed.
4515         (update_gui_item_keywords): as it sounds.
4516
4517         * gui.h: declare widget_gui_parse_item_keywords.
4518
4519         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4520         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4521
4522 2001-01-17  Martin Buchholz <martin@xemacs.org>
4523
4524         * XEmacs 21.2.41 "Polyhymnia" is released.
4525
4526 2001-01-16  Didier Verna  <didier@xemacs.org>
4527
4528         * glyphs.c (image_instantiate): don't use fallbacks when
4529         instantiating a face's background pixmap by inheritance.
4530
4531 2001-01-14  Mike Sperber <mike@xemacs.org>
4532
4533         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4534         Conditionalize accordingly.
4535
4536 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4537
4538         * dumper.c (pdump_file_get): Fix a compiler warning.
4539
4540 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4541
4542         Make Purify happy when pdumping.
4543         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4544         iniitalizing all bits of new lisp object memory.
4545         * symbols.c (Fmake_local_variable): Likewise.
4546         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4547         * symbols.c (Fdefvaralias): Likewise.
4548         * mule-charset.c (vars_of_mule_charset): Likewise.
4549
4550 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4551         Add the `-nd' flag when running pre-dump operations under the debugger.
4552         * .dbxrc (run-temacs): Add `-nd'.
4553         * .dbxrc (update-elc): Likewise.
4554         * .dbxrc (dump-temacs): Likewise.
4555         * .gdbinit (run-temacs): Likewise.
4556         * .gdbinit (check-temacs): Likewise.
4557         * .gdbinit (update-elc): Likewise.
4558         * .gdbinit (dump-temacs): Likewise.
4559
4560 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4561
4562         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4563         export OBJECT_MODE=64
4564         configure --pdump --use-union-type=no
4565         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4566         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4567
4568         * miscplay.c (sndcnv8U_2mono):
4569         Avoid two uses of `++' in the same expression.
4570         Suppresses a GCC warning.
4571
4572 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4573
4574         Make sure future compilers don't miscompile alloc.c.
4575         * alloc.c:
4576         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4577         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4578
4579 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4580
4581         * dumper.c: A little post-pdump-rename comment fixup.
4582
4583 2001-01-09  Jerry James  <james@eecs.ku.edu>
4584
4585         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4586
4587 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4588
4589         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4590         script:
4591         #!/bin/sh
4592         replace_symbol () {
4593           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4594         }
4595
4596         replace_symbol pdump_wire_lists pdump_weak_object_chains
4597         replace_symbol pdump_wire_list dump_add_weak_object_chain
4598
4599         replace_symbol pdump_wires pdump_root_objects
4600         replace_symbol pdump_wire dump_add_root_object
4601
4602         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4603         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4604
4605         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4606         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4607         replace_symbol dumpstructinfo pdump_root_struct_ptr
4608         replace_symbol dumpstruct dump_add_root_struct_ptr
4609
4610         replace_symbol dumpopaque dump_add_opaque
4611         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4612         replace_symbol dumpopaqueinfos pdump_opaques
4613         replace_symbol dumpopaqueinfo pdump_opaque
4614
4615         replace_symbol nb_structdump nb_root_struct_ptrs
4616         replace_symbol nb_opaquedump nb_opaques
4617
4618         replace_symbol align_table pdump_align_table
4619         replace_symbol dump_header pdump_header
4620
4621         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4622         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4623
4624
4625 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4626
4627         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4628         optimizing bytecount_to_charcount().
4629
4630 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4631
4632         * config.h.in:
4633         (HAVE_DLFCN_H): Removed.
4634         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4635
4636 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4637
4638         Portable dumper maintainability improvements.
4639         * alloc.c (staticpro):
4640         * alloc.c (staticpro_nodump):
4641         * alloc.c (garbage_collect_1):
4642         * alloc.c (reinit_alloc_once_early):
4643         * alloc.c (init_alloc_once_early):
4644         * alloc.c: Move dumper functions to alloc.c.
4645         * dumper.c (pdump_backtrace):
4646         * dumper.c (pdump_dump_structs):
4647         * dumper.c (pdump_dump_opaques):
4648         * dumper.c (pdump_dump_rtables):
4649         * dumper.c (pdump_dump_wired):
4650         * dumper.c (pdump):
4651         * dumper.c (pdump_load_check):
4652         * dumper.c (pdump_load_finish):
4653         * dumper.c (pdump_file_unmap):
4654         * dumper.c (pdump_file_get):
4655         * dumper.c (pdump_resource_free):
4656         * dumper.c (pdump_resource_get):
4657         * dumper.c (pdump_file_free):
4658         * dumper.c (pdump_file_try):
4659         * dumper.c (pdump_load):
4660         Remove fixed size limits on staticpro(), staticpro_nodump(),
4661         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4662         Remove custom code for dumping lrecord_implementations_table - use
4663         dumpopaque instead.
4664         Remove (most of the) custom code for dumping staticpros - dump it
4665         like any other dynarr.
4666
4667         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4668         * dumper.c: Moved functions from alloc.c.
4669         * alloc.c (dumpstruct): Moved to dumper.c.
4670         * alloc.c (dumpopaque): Likewise.
4671         * alloc.c (pdump_wire): Likewise.
4672         * alloc.c (pdump_wire_list): Likewise.
4673
4674         * lisp.h (Dynarr_sizeof): New.
4675         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4676         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4677         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4678
4679         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4680         * lisp.h (dumpopaque): ditto.
4681         * lisp.h (pdump_wire): ditto.
4682         * lisp.h (pdump_wire_list): ditto.
4683
4684 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4685
4686         * make-src-depend (PrintPatternDeps):
4687         Use `sort' to make output independent of perl version.
4688
4689 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4690
4691         Port to Netbsd 1.5.
4692         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4693         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4694
4695 2001-01-03  Didier Verna  <didier@xemacs.org>
4696
4697         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4698         that `focus_frame' is alive before thinking of calling
4699         `redisplay_redraw_cursor' on it.
4700
4701 2001-01-08  Martin Buchholz <martin@xemacs.org>
4702
4703         * XEmacs 21.2.40 is released.
4704
4705 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4706
4707         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4708
4709 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4710
4711         * alloc.c (dbg_valmask): Make const.
4712         * alloc.c (dbg_typemask): Make const.
4713         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4714         * alloc.c (dbg_valbits): Make const.
4715         * alloc.c (dbg_gctypebits): Make const.
4716
4717 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4718
4719         * redisplay-x.c (x_bevel_area):
4720         redisplay.h (struct rune):
4721         Typo fixes in comments.
4722
4723 2001-01-05  Andy Piper  <andy@xemacs.org>
4724
4725         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4726         adjustment.
4727
4728         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4729
4730 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4731
4732         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4733
4734         * mule-ccl.c (stack_idx_of_map_multiple):
4735         Non const global data must not be initialized!
4736         Found by MIYASHITA Hisashi.
4737
4738 2001-01-02  Andy Piper  <andy@xemacs.org>
4739
4740         * frame.c (change_frame_size): make sure frame size is always
4741         marked as changed.
4742
4743         * glyphs.c (image_instance_layout): minor code reuse.
4744
4745         * window.c (Fcurrent_window_configuration): revert previous
4746         change.
4747
4748 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4749
4750         * glyphs.h:
4751         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4752
4753 2000-12-31  Andy Piper  <andy@xemacs.org>
4754
4755         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4756         when widget gets unmapped.
4757
4758         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4759         function. Make sure widgets losing focus don't just drop it.
4760         (handle_focus_event_1): record the widget with focus.
4761
4762 2000-12-31  Andy Piper  <andy@xemacs.org>
4763
4764         * window.c (allocate_window): use
4765         make_image_instance_cache_hash_table.
4766         (make_dummy_parent): ditto.
4767         (Fset_window_configuration): ditto.
4768
4769         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4770
4771         * glyphs.c (process_image_string_instantiator): use
4772         INSTANTIATOR_TYPE.
4773         (get_image_instantiator_governing_domain): ditto.
4774         (normalize_image_instantiator): ditto.
4775         (instantiate_image_instantiator): ditto.
4776         (make_image_instance_1): ditto.
4777         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4778         (instantiator_eq_equal): new function for use with instance hash
4779         tables.
4780         (instantiator_eq_hash): ditto.
4781         (make_image_instance_cache_hash_table): create a suitable hash
4782         table for storing image instances.
4783
4784         * elhash.h (hash_table_weakness): new internal weakness type
4785         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4786         declare new functions.
4787
4788         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4789         another weakness type for glyphs.
4790         (make_standard_lisp_hash_table): new function split out from
4791         make_general_lisp_hash_table.
4792         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4793         (hash_table_instantiate): ditto.
4794         (Fmake_hash_table): ditto.
4795
4796 2000-12-31  Martin Buchholz <martin@xemacs.org>
4797
4798         * XEmacs 21.2.39 is released.
4799
4800 2000-12-29  Andy Piper  <andy@xemacs.org>
4801
4802         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4803
4804         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4805         the frame has changed so that we pick up geometry changes such as
4806         menubar visibility.
4807
4808 2000-12-28  Andy Piper  <andy@xemacs.org>
4809
4810         * lastfile.c (my_ebss): make a char array so we can pad the
4811         bss. Fixes cygwin unexec.
4812
4813         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4814
4815 2000-12-26  Andy Piper  <andy@xemacs.org>
4816
4817         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4818         comments and try and be more precise about a non-/SIGIO world.
4819         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4820         SIGIO.
4821
4822         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4823         we don't normalize to zero width or height.
4824
4825 2000-12-24  Andy Piper  <andy@xemacs.org>
4826
4827         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4828
4829 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4830
4831         * s/sco5.h: SCO 5 has pty support.
4832
4833 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4834
4835         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4836         input-method-xlib.c contains whole contents of input-method-xfs.c,
4837         so we can use input-method-xlib.c's code for USE_XFONTSET
4838         using #ifdefs.
4839         * input-method-xfs.c: removed.
4840
4841 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4842
4843         * file-coding.h (enum coding_category_type): reorder enumerators to
4844         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4845         (now one greater than largest real coding_category_type enumerator).
4846         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4847         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4848         Fcoding_category_list, Fset_coding_priority_list,
4849         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4850         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4851
4852 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4853
4854         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4855         * redisplay-output.c (redisplay_output_window): Clear top of window
4856         when face is changed.
4857         * redisplay-x.c (x_redraw_exposed_window): Call
4858         redisplay_clear_top_of_window.
4859         * redisplay.h: Publish redisplay_clear_top_of_window.
4860
4861 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4862
4863         * buffer.c (Fkill_buffer): Map over all devices.
4864         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4865         (list_windows): New function.
4866         (list_all_windows): Ditto.
4867         (Freplace_buffer_in_windows): Use them.
4868
4869 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4870
4871         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4872         (Fopen_database): Use `db_create' instead of `db_open'.
4873         (syms_of_database): Initialize Qqueue.
4874
4875 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4876
4877         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4878         buffer_local_face_property.
4879         * buffer.h (struct buffer): New member buffer_local_face_property.
4880         * window.c (Fset_window_buffer):  Mark window's face as changed
4881         when buffer has buffer local face.
4882         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4883         * objects.c (color_after_change): Set buffer_local_face_property
4884         when locale of face specifier is buffer.
4885         * objects.c (font_after_change): Ditto.
4886         * objects.c (face_boolean_after_change): Ditto.
4887         * glyphs.c (image_after_change): Ditto.
4888
4889 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4890
4891         * nt.c (mswindows_fstat): Report file permissions, volume serial
4892         number, etc. Code adapted from FSF Emacs 20.7.
4893
4894 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4895
4896         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4897         of stat when we don't have symbolic links, to make sure
4898         mswindows_stat is called on mswindows.
4899
4900 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4901
4902         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4903
4904 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4905
4906         * doprnt.c (emacs_doprnt_1): More printing fixes.
4907         Make printing of numbers compatible with libc and FSF Emacs.
4908         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4909         Use the system printf to do most of the hard work of formatting,
4910         instead of doprnt_1().
4911         Calculate memory to allocate for format string.
4912         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4913         (doprnt_1): Cleaner code and documentation.
4914
4915 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4916
4917         * Makefile.in.in: Use the loop variable to install headers.
4918
4919 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4920
4921         * window.c (Fsplit_window): Don't invalidate face cache.
4922
4923 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4924
4925         * minibuf.c (Fall_completions): Undo the previous change
4926         which removed checking elements start with space.
4927
4928 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4929
4930         * mule-canna.c: Didier suppression.
4931
4932 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4933
4934         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4935         (warning suppression).  Add English comment translations.
4936
4937 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4938
4939         * unexelfsgi.c (unexec): Better test for mmap failure.
4940
4941 2000-12-05  Martin Buchholz <martin@xemacs.org>
4942
4943         * XEmacs 21.2.38 is released.
4944
4945 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4946
4947         * redisplay.c (bar-cursor): Make a user variable.
4948
4949         * symsinit.h: Add init_postgresql_from_environment.
4950
4951 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4952
4953         * regex.c: Convert to clean C.
4954
4955 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4956
4957         * realpath.c:
4958         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4959         initialization.
4960         (sys_readlink): renamed to system_readlink to avoid conflict with
4961         the other sys_readlink.
4962
4963 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4964
4965         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4966
4967 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4968
4969         * postgresql.c (init_postgresql_from_environment): new function.
4970         (vars_of_postgresql): Move code initializing Lisp variables out and
4971         into init_postgresql_from_environment.
4972         emacs.c (main_1): Call init_postgresql_from_environment if and only
4973         if running a dumped XEmacs.
4974
4975 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4976
4977         * buffer.c: Make find-file-compare-truenames default to true on
4978         windows.
4979
4980         * realpath.c (win32_abs_start):
4981         (cygwin_readlink):
4982         (win32_readlink): New functions.
4983         (xrealpath): Return really real filenames on windows.
4984
4985         * fileio.c (Ffile_truename): Make file-truename work on windows.
4986
4987 2000-11-29  Didier Verna  <didier@xemacs.org>
4988
4989         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4990         * faces.c (update_face_cachel_data): use it.
4991         * faces.c (add_face_cachel): use it. Complete background pixmap
4992         frobbing in face cache if `update_face_cachel_data' has not done so.
4993
4994 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4995
4996         * search.c (string_match_1): Don't set last_thing_searched
4997         when search failed.
4998
4999 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5000
5001         * buffer.c: Include casetab.h
5002         (common_init_complex_vars_of_buffer): Use new case-table object.
5003         * buffer.h: Include casetab.h
5004         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5005         (DOWNCASE_TABLE_OF): Ditto.
5006         * bufslots.h: Remove char-tables and add case-table.
5007         * casetab.c: Include casetab.h
5008         (CASE_TABLE_P): Removed.
5009         (mark_case_table): New function.
5010         (allocate_case_table): New function.
5011         (Fcase_table_p): Use new case-table.
5012         (case_table_char): New function.
5013         (Fget_case_table): Ditto.
5014         (Fput_case_table): Ditto.
5015         (Fput_case_table_pair): Ditto.
5016         (Fcopy_case_table): Ditto.
5017         (Fcurrent_case_table): Return case-table.
5018         (Fstandard_case_table): Return case-table.
5019         (Fset_case_table): Fix doc-string.
5020         (set_case_table): Use case-table
5021         (syms_of_casetab): DEFSUBR new functions.
5022         (complex_vars_of_casetab): Set up standard case-table.
5023         * casetab.h: New file.
5024         * editfns.c: Include casetab.h
5025         (Fcompare_buffer_substrings): Use case-table.
5026         * inline.c: Include casetab.h
5027         * lisp.h: Remove bogus extern.
5028         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5029         * search.c: Include casetab.h
5030         (TRANSLATE_ASCII): Removed.
5031         (TRANSLATE): Unconditionally translate character.
5032         (looking_at_1): Use case-table.
5033         (string_match_1): Ditto.
5034         (fast_string_match): Ditto.
5035         (search_command): Ditto.
5036         (search_buffer): Separate boyer_moore.  Check whether
5037         boyer_moore is possible.
5038         (simple_search): New function.
5039         (boyer_moore): Separated from search_buffer. Translate char.
5040
5041 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5042
5043         * regex.c (RE_TR_ASCII): Removed.
5044         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5045         (PATFETCH): Call PATFETCH_RAW.
5046         (PATFETCH_RAW): Fetch Emchar.
5047         (PATUNFETCH): Decrement charptr.
5048         (GET_BUFFER_SPACE): Rename b to buf_end.
5049         (BUF_PUSH): Ditto.
5050         (BUF_PUSH_2): Ditto.
5051         (BUF_PUSH_3): Ditto.
5052         (EXTEND_BUFFER): Ditto.
5053         (SET_LIST_BIT): Ditto.
5054         (regex_compile): Ditto.  Translate non ASCII char.
5055         (compile_range): Ditto.
5056         (re_search_2): Ditto.
5057         (re_match_2_internal): Compare Emchar.
5058         (bcmp_translate): Ditto.
5059
5060 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5061
5062         * lisp.h (basic char/int typedefs):  comment improvement.
5063
5064 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5065
5066         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5067         unstomp inhibit_site_lisp.  Improve comments.
5068
5069 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5070
5071         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5072
5073 2000-11-28  Andy Piper  <andy@xemacs.org>
5074
5075         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5076         clipped display for windows in the gutter also.
5077         (redisplay_display_boxes_in_window_p): change semantics of return
5078         codes to be more intuitive.
5079
5080         * gutter.h: declare display_boxes_in_gutter_p.
5081
5082         * gutter.c (display_boxes_in_gutter_p): new function for
5083         redisplay.
5084
5085 2000-11-22  Andy Piper  <andy@xemacs.org>
5086
5087         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5088         autodetect domain.
5089
5090 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5091
5092         * callproc.c (Fold_call_process_internal):
5093         * gpm.c (Freceive_gpm_event):
5094         (tty_get_foreign_selection): Might be just warning supression.
5095         * fileio.c (Fwrite_region_internal):
5096         (Fset_visited_file_modtime):
5097         * keymap.c (event_matches_key_specifier_p):
5098         Initialize GCPROed variable.
5099
5100         * menubar-x.c (command_builder_find_menu_accelerator):
5101         Initialize before use.
5102
5103 2000-11-23  Andy Piper  <andy@xemacs.org>
5104
5105         * unexcw.c (unexec): make the resulting executable executable.
5106
5107 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5108
5109         * doc.c (get_doc_string):
5110         Use size_t, not int, for result of XSTRING_LENGTH.
5111
5112         * cmds.c (Fdelete_char):
5113         * cmds.c (Fpoint_at_eol):
5114         * cmds.c (Fself_insert_command):
5115         Use EMACS_INT, not int, for result of XINT.
5116         Someday, someone will want to insert more than 2**31 identical characters.
5117
5118         * cmds.c (Fdelete_char):
5119         * cmds.c (Fdelete_backward_char):
5120         * syntax.c (Fforward_word):
5121         * syntax.c (Fforward_comment):
5122         Make COUNT argument optional, for consistency with forward-char et al.
5123
5124 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5125
5126         * lisp.h:
5127         * print.c (long_to_string):
5128         Return a useful value: the pointer at end of data written.
5129
5130         * doprnt.c:
5131         Use `static const char * const' for constant strings.
5132         (union printf_arg): Delete `i', `ui' members.
5133         (get_doprnt_args):
5134         (emacs_doprnt_1):
5135         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5136         Do all printf-ing via the `l' specifier.
5137         Use EMACS_INT instead of int.
5138         Optimize.
5139
5140 2000-11-20  Didier Verna  <didier@xemacs.org>
5141
5142         * faces.c (update_face_cachel_data): don't frob the background
5143         pixmap when the window is being created. The face is needed but
5144         does not exist yet.
5145
5146 2000-11-20  Andy Piper  <andy@xemacs.org>
5147
5148         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5149         messing with a debug environment.
5150
5151 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5152
5153         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5154
5155 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5156
5157         * casetab.c (Fcase_table_p): Fix compile error and crash.
5158
5159 2000-11-18  Philip Aston  <philipa@mail.com>
5160
5161         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5162
5163 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5164
5165         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5166         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5167
5168 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5169
5170         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5171         * unexelf.c: Use HAVE_ELF_H.
5172         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5173         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5174         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5175         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5176         for testing.
5177         So this is an unexelfsgi.c from a different line of development.
5178
5179 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5180
5181         * regex.c (RE_TR_ASCII): New function.
5182         (RE_TRANSLATE): Call it.
5183
5184 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5185
5186         * buffer.h (TRT_TABLE_OF): Remove assert.
5187         (IN_TRT_TABLE_DOMAIN): Removed.
5188
5189 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5190
5191         * free-hook.c (log_gcpro):
5192         (show_gcprohist): Add support for GCPRO5.
5193
5194 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5195
5196         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5197
5198 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5199
5200         * symeval.h: Declare flush_all_buffer_local_cache.
5201
5202         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5203         (flush_buffer_local_cache): Added.
5204         (flush_all_buffer_local_cache): Added.
5205
5206         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5207
5208         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5209         (pdump_dump_data): Ditto.
5210         (pdump_reloc_one): Ditto.
5211         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5212         before dumping.
5213
5214
5215 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5216
5217         * buffer.c: Remove if 0'ed entry.
5218         * buffer.h: Rewrite TRT to use char-table.
5219         * bufslots.h: Remove mirror tables.
5220         * casetab.c: Remove mirror tables.
5221         (CASE_TABLE_P): New macro.
5222         (Fcase_table_p): Element of a case table is string or char-table.
5223         (make_mirror_trt_table): Removed.
5224         (set_case_table): Setup char-table from strings for backward
5225         compatibility.
5226         * dired.c (Fdirectory_files):
5227         * dired-msw.c: (mswindows_get_files):
5228         * lisp.h: Change prototype of re_pattern_buffer.
5229         * regex.c: (RE_TRANSLATE): New macro.
5230         (TRANSLATE_P): Ditto.
5231         Change translate to type RE_TRANSLATE_TYPE.
5232         * regex.h: Define RE_TRANSLATE_TYPE
5233         * search.c (TRANSLATE): New macro.
5234         (TRANSLATE_ASCII): New macro.
5235         Translate table is changed to Lisp_Object.
5236         (signal_failure): Inhibit return.
5237
5238 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5239
5240         * device-msw.c:
5241         * eldap.c:
5242         * event-Xt.c:
5243         * event-stream.c:
5244         * print.c:
5245         Do UNGCPRO before return.
5246
5247 2000-11-14  Martin Buchholz <martin@xemacs.org>
5248
5249         * XEmacs 21.2.37 is released.
5250
5251 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5252
5253         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5254         Add comments about discarded return value.
5255
5256 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5257
5258         * callint.c:
5259         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5260
5261 2000-10-27  Andy Piper  <andy@xemacs.org>
5262
5263         * gutter.c (Fset_default_gutter_position): default left and right
5264         gutters to visible.
5265         (calculate_gutter_size): calculate resonable heuristic for left
5266         and right gutter sizes.
5267         (specifier_vars_of_gutter): change left and right gutter sizes to
5268         autodetect.
5269         (calculate_gutter_size_from_display_lines): new function.
5270         (output_gutter): check for resizing on left and right gutters.
5271         (clear_gutter): don't special case top and left gutters.
5272         (specifier_vars_of_gutter): use new signature for
5273         set_specifier_caching.
5274
5275         * glyphs-x.c (x_redisplay_widget): spelling fix.
5276         * glyphs.c (specifier_vars_of_glyphs):
5277         * menubar.c (specifier_vars_of_menubar):
5278         * redisplay.c (specifier_vars_of_redisplay):
5279         * toolbar.c (specifier_vars_of_toolbar):
5280         * window.c (specifier_vars_of_window):
5281         * scrollbar.c (specifier_vars_of_scrollbar):
5282         (complex_vars_of_scrollbar): use new signature for
5283         set_specifier_caching.
5284
5285         * specifier.c (set_specifier_caching): include recompute flag.
5286         (recompute_one_cached_specifier_in_window): always recompute if
5287         flag set.
5288         (recompute_one_cached_specifier_in_frame): ditto.
5289
5290         * specifier.h (struct specifier_caching): add recompute flag.
5291
5292 2000-10-24  Andy Piper  <andy@xemacs.org>
5293
5294         * unexcw.c (copy_executable_and_dump_data_section): add new
5295         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5296         5.0 happy.
5297
5298 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5299
5300         * console-x.h (x_device): New member modifier_release_time.
5301         * event-Xt.c (x_handle_sticky_modifiers):
5302         Bound interval modifier keys are sticky.
5303         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5304         * events.h: extern it.
5305
5306 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5307
5308         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5309
5310 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5311
5312         * event-stream.c (execute_command_event): Preserve current_events
5313         and the like when event is misc-user-event.
5314         Inhibit quit during the call to maybe_echo_keys.
5315
5316 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5317
5318         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5319         symlink when buffer is killed.
5320         (inhibit_clash_detection): New variable.
5321
5322 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5323
5324         * console.c (Fset_input_method): Trigger redisplay on tty.
5325
5326 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5327
5328         * process.c (Fprocess_status): Revert to previous behavior:
5329         (process-status "nosuchprocess") ==> nil
5330
5331 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5332
5333         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5334         Work around another GCC 2.95.2 optimizer bug.
5335
5336 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5337
5338         * process.c (Fget_process): Use LIST_LOOP_2.
5339         (kill_buffer_processes): Use LIST_LOOP_2.
5340
5341         * minibuf.c (Fall_completions):
5342         Delete old non-functional code for FSF fourth argument.
5343
5344         * frame.c (frame_matches_frame_spec):
5345         Renamed from `frame_matches_frametype'.  Update all callers.
5346         (device_matches_device_spec):
5347         Renamed from 'device_matches_console_spec'.  Update all callers.
5348
5349         * doc.c (Fsubstitute_command_keys):
5350         Remove buffer overflow crash.  Small code cleanups.
5351
5352         * casetab.c (check_case_table): Simpler code.
5353
5354         * window.c (Freplace_buffer_in_windows):
5355         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5356         (and similar implementation) as Fdelete_windows_on.
5357         Update all callers.
5358
5359         * alloc.c (Fmake_list):
5360         * alloc.c (make_vector):
5361         * alloc.c (Fmake_vector):
5362         * alloc.c (make_bit_vector):
5363         * alloc.c (Fmake_bit_vector):
5364         * alloc.c (Fbit_vector):
5365         * alloc.c (Fmake_string):
5366         * alloc.c (Fpurecopy):
5367         * alloc.c (Fmemory_limit):
5368         * buffer.c:
5369         * buffer.c (Fget_buffer):
5370         * buffer.c (Fkill_buffer):
5371         * buffer.c (complex_vars_of_buffer):
5372         * bytecode.c (Fcompiled_function_stack_depth):
5373         * callint.c (Fprefix_numeric_value):
5374         * event-stream.c:
5375         * event-stream.c (Fread_key_sequence):
5376         * casetab.c:
5377         * casetab.c (Fcase_table_p):
5378         * casetab.c (check_case_table):
5379         * casetab.c (Fset_case_table):
5380         * casetab.c (Fset_standard_case_table):
5381         * chartab.c:
5382         * chartab.c (Fchar_table_type):
5383         * chartab.c (Freset_char_table):
5384         * chartab.c (Fget_char_table):
5385         * chartab.c (Fget_range_char_table):
5386         * chartab.c (Fput_char_table):
5387         * chartab.c (Fmap_char_table):
5388         * chartab.c (Fcategory_table_p):
5389         * chartab.c (Fcheck_category_at):
5390         * chartab.c (Fchar_in_category_p):
5391         * chartab.c (Fcategory_table):
5392         * chartab.c (Fcopy_category_table):
5393         * chartab.c (Fset_category_table):
5394         * chartab.c (Fcategory_designator_p):
5395         * chartab.c (Fcategory_table_value_p):
5396         * cmds.c (Fdelete_char):
5397         * cmds.c (Fdelete_backward_char):
5398         * cmds.c (Fself_insert_command):
5399         * cmds.c (Fself_insert_internal):
5400         * console.c (Fvalid_console_type_p):
5401         * console.c (Fcdfw_console):
5402         * console.c (Fconsole_type):
5403         * console.c (Fconsole_name):
5404         * console.c (Fconsole_device_list):
5405         * console.c (Fconsole_on_window_system_p):
5406         * data.c:
5407         * data.c (Feq):
5408         * data.c (Fold_eq):
5409         * data.c (Fsubr_interactive):
5410         * data.c (Fchar_to_int):
5411         * data.c (Fint_to_char):
5412         * data.c (Fsetcar):
5413         * data.c (Fsetcdr):
5414         * data.c (Fnumber_to_string):
5415         * data.c (Fstring_to_number):
5416         * data.c (Frem):
5417         * database.c (mark_database):
5418         * database.c (finalize_database):
5419         * database.c (Fdatabase_live_p):
5420         * database.c (Fdatabasep):
5421         * device-x.c (Fx_get_resource):
5422         * device.c (Fdfw_device):
5423         * dired.c:
5424         * dired.c (Ffile_name_completion):
5425         * dired.c (Ffile_name_all_completions):
5426         * dired.c (Fuser_name_completion):
5427         * dired.c (Fuser_name_completion_1):
5428         * dired.c (Fuser_name_all_completions):
5429         * doc.c (Fdocumentation):
5430         * doc.c (Fdocumentation_property):
5431         * doc.c (Fsubstitute_command_keys):
5432         * editfns.c:
5433         * editfns.c (Fchar_to_string):
5434         * editfns.c (Fstring_to_char):
5435         * editfns.c (Ftemp_directory):
5436         * editfns.c (Finsert_char):
5437         * editfns.c (Fbuffer_substring_no_properties):
5438         * editfns.c (Fnarrow_to_region):
5439         * editfns.c (Fchar_equal):
5440         * editfns.c (Fchar_Equal):
5441         * editfns.c (Ftranspose_regions):
5442         * emacs.c (Fdump_emacs):
5443         * eval.c (Fthrow):
5444         * eval.c (Fcommand_execute):
5445         * eval.c (Fautoload):
5446         * eval.c (Fbacktrace):
5447         * eval.c (Fbacktrace_frame):
5448         * events.c:
5449         * events.c (Fcopy_event):
5450         * events.c (Fcharacter_to_event):
5451         * events.c (Fevent_button):
5452         * events.c (Fevent_process):
5453         * extents.c:
5454         * extents.c (Fnext_extent_change):
5455         * extents.c (Fextent_property):
5456         * faces.c (Ffacep):
5457         * faces.c (Fmake_face):
5458         * file-coding.c:
5459         * file-coding.c (Fencode_shift_jis_char):
5460         * file-coding.c (Fencode_big5_char):
5461         * fileio.c (Ffile_name_directory):
5462         * fileio.c (Ffile_name_nondirectory):
5463         * fileio.c (Ffile_name_as_directory):
5464         * fileio.c (Fdirectory_file_name):
5465         * fileio.c (Ffile_truename):
5466         * fileio.c (Fsubstitute_in_file_name):
5467         * fileio.c (Ffile_modes):
5468         * fileio.c (Fset_file_modes):
5469         * fileio.c (Fset_default_file_modes):
5470         * fileio.c (Fverify_visited_file_modtime):
5471         * floatfns.c (Facos):
5472         * floatfns.c (Fasin):
5473         * floatfns.c (Fatan):
5474         * floatfns.c (Fcos):
5475         * floatfns.c (Fsin):
5476         * floatfns.c (Ftan):
5477         * floatfns.c (Fbessel_j0):
5478         * floatfns.c (Fbessel_j1):
5479         * floatfns.c (Fbessel_jn):
5480         * floatfns.c (Fbessel_y0):
5481         * floatfns.c (Fbessel_y1):
5482         * floatfns.c (Fbessel_yn):
5483         * floatfns.c (Ferf):
5484         * floatfns.c (Ferfc):
5485         * floatfns.c (Flog_gamma):
5486         * floatfns.c (Fexp):
5487         * floatfns.c (Fexpt):
5488         * floatfns.c (Flog):
5489         * floatfns.c (Flog10):
5490         * floatfns.c (Fsqrt):
5491         * floatfns.c (Fcube_root):
5492         * floatfns.c (Facosh):
5493         * floatfns.c (Fasinh):
5494         * floatfns.c (Fatanh):
5495         * floatfns.c (Fcosh):
5496         * floatfns.c (Fsinh):
5497         * floatfns.c (Ftanh):
5498         * floatfns.c (Fabs):
5499         * floatfns.c (Ffloat):
5500         * floatfns.c (Flogb):
5501         * floatfns.c (Fceiling):
5502         * floatfns.c (Ffloor):
5503         * floatfns.c (Fround):
5504         * floatfns.c (Ftruncate):
5505         * floatfns.c (Ffceiling):
5506         * floatfns.c (Fffloor):
5507         * floatfns.c (Ffround):
5508         * floatfns.c (Fftruncate):
5509         * fns.c (Fstring_equal):
5510         * fns.c (Fstring_lessp):
5511         * fns.c (concat2):
5512         * fns.c (concat3):
5513         * fns.c (vconcat2):
5514         * fns.c (vconcat3):
5515         * fns.c (Fsubstring):
5516         * fns.c (Fassoc):
5517         * fns.c (Fold_assoc):
5518         * fns.c (assoc_no_quit):
5519         * fns.c (Fassq):
5520         * fns.c (Fold_assq):
5521         * fns.c (assq_no_quit):
5522         * fns.c (Frassoc):
5523         * fns.c (Fold_rassoc):
5524         * fns.c (Frassq):
5525         * fns.c (Fold_rassq):
5526         * fns.c (rassq_no_quit):
5527         * fns.c (Fremassoc):
5528         * fns.c (remassoc_no_quit):
5529         * fns.c (Fremassq):
5530         * fns.c (remassq_no_quit):
5531         * fns.c (Fremrassoc):
5532         * fns.c (Fremrassq):
5533         * fns.c (remrassq_no_quit):
5534         * fns.c (Fsort):
5535         * fns.c (Fplist_get):
5536         * fns.c (Fplist_put):
5537         * fns.c (Fplist_remprop):
5538         * fns.c (Fplist_member):
5539         * fns.c (Flax_plist_get):
5540         * fns.c (Flax_plist_put):
5541         * fns.c (Flax_plist_remprop):
5542         * fns.c (Flax_plist_member):
5543         * fns.c (Fequal):
5544         * fns.c (Fold_equal):
5545         * fns.c (Frequire):
5546         * fns.c (Fbase64_encode_region):
5547         * fns.c (Fbase64_encode_string):
5548         * fns.c (Fbase64_decode_region):
5549         * frame.c:
5550         * frame.c (frame_matches_frame_spec):
5551         * frame.c (device_matches_device_spec):
5552         * frame.c (next_frame):
5553         * frame.c (previous_frame):
5554         * frame.c (Fnext_frame):
5555         * frame.c (Fprevious_frame):
5556         * frame.c (Fframe_property):
5557         * frame.c (Fset_frame_height):
5558         * frame.c (Fset_frame_size):
5559         * frame.h:
5560         * glyphs.c:
5561         * glyphs.c (if):
5562         * glyphs.c (decode_error_behavior_flag):
5563         * glyphs.c (Fmake_image_instance):
5564         * indent.c (Findent_to):
5565         * intl.c (Fignore_defer_gettext):
5566         * keymap.c (Fkeymapp):
5567         * keymap.c (Flookup_key):
5568         * lread.c:
5569         * lread.c (Fload_internal):
5570         * lread.c (Feval_buffer):
5571         * lread.c (Feval_region):
5572         * macros.c (Fexecute_kbd_macro):
5573         * marker.c (set_marker_internal):
5574         * marker.c (Fset_marker):
5575         * marker.c (set_marker_restricted):
5576         * marker.c (Fcopy_marker):
5577         * marker.c (noseeum_copy_marker):
5578         * menubar.c:
5579         * menubar.c (Fpopup_menu):
5580         * minibuf.c:
5581         * mule-charset.c (Fcharset_name):
5582         * mule-charset.c (Fchar_charset):
5583         * mule-charset.c (Fchar_octet):
5584         * mule-charset.c (Fsplit_char):
5585         * mule-wnnfns.c (Fwnn_open):
5586         * mule-wnnfns.c (Fwnn_dict_comment):
5587         * mule-wnnfns.c (Fwnn_quit_henkan):
5588         * mule-wnnfns.c (Fwnn_word_toroku):
5589         * mule-wnnfns.c (Fwnn_word_sakujo):
5590         * mule-wnnfns.c (Fwnn_word_use):
5591         * mule-wnnfns.c (Fwnn_hindo_set):
5592         * objects.c:
5593         * objects.c (Fmake_color_instance):
5594         * objects.c (Fmake_font_instance):
5595         * print.c (Fwrite_char):
5596         * process.c:
5597         * process.c (mark_process):
5598         * process.c (print_process):
5599         * process.c (get_process_from_usid):
5600         * process.c (Fprocessp):
5601         * process.c (Fprocess_live_p):
5602         * process.c (Fget_process):
5603         * process.c (Fget_buffer_process):
5604         * process.c (get_process):
5605         * process.c (Fprocess_id):
5606         * process.c (Fprocess_name):
5607         * process.c (Fprocess_command):
5608         * process.c (init_process_io_handles):
5609         * process.c (start_process_unwind):
5610         * process.c (Fstart_process_internal):
5611         * process.c (Fopen_multicast_group_internal):
5612         * process.c (Fset_process_window_size):
5613         * process.c (read_process_output):
5614         * process.c (send_process):
5615         * process.c (Fprocess_tty_name):
5616         * process.c (Fset_process_buffer):
5617         * process.c (Fprocess_buffer):
5618         * process.c (Fprocess_mark):
5619         * process.c (set_process_filter):
5620         * process.c (Fset_process_filter):
5621         * process.c (Fprocess_filter):
5622         * process.c (Fprocess_send_region):
5623         * process.c (Fprocess_send_string):
5624         * process.c (exec_sentinel):
5625         * process.c (Fset_process_sentinel):
5626         * process.c (Fprocess_sentinel):
5627         * process.c (status_notify):
5628         * process.c (Fprocess_status):
5629         * process.c (Fprocess_exit_status):
5630         * process.c (process_send_signal):
5631         * process.c (Fprocess_send_eof):
5632         * process.c (deactivate_process):
5633         * process.c (remove_process):
5634         * process.c (Fdelete_process):
5635         * process.c (kill_buffer_processes):
5636         * process.c (Fprocess_kill_without_query):
5637         * process.c (Fprocess_kill_without_query_p):
5638         * rangetab.c:
5639         * rangetab.c (Fget_range_table):
5640         * rangetab.c (Fput_range_table):
5641         * rangetab.c (Fremove_range_table):
5642         * rangetab.c (Fclear_range_table):
5643         * search.c:
5644         * search.c (Fskip_chars_forward):
5645         * search.c (Fskip_chars_backward):
5646         * search.c (Fskip_syntax_forward):
5647         * search.c (Fskip_syntax_backward):
5648         * search.c (search_command):
5649         * search.c (Freplace_match):
5650         * search.c (Fregexp_quote):
5651         * select.c (Fown_selection_internal):
5652         * select.c (Fselection_owner_p):
5653         * select.c (Fselection_exists_p):
5654         * select.c (Fget_selection_internal):
5655         * specifier.c:
5656         * symbols.c:
5657         * symbols.c (Fintern):
5658         * symbols.c (Fintern_soft):
5659         * symbols.c (Funintern):
5660         * symbols.c (Fapropos_internal):
5661         * symbols.c (Fset_default):
5662         * syntax.c:
5663         * syntax.c (Fsyntax_table_p):
5664         * syntax.c (Fcopy_syntax_table):
5665         * syntax.c (Fset_syntax_table):
5666         * syntax.c (Fchar_syntax):
5667         * syntax.c (syntax_match):
5668         * syntax.c (Fmatching_paren):
5669         * syntax.c (Fforward_word):
5670         * syntax.c (scan_lists):
5671         * syntax.c (Fscan_lists):
5672         * syntax.c (Fscan_sexps):
5673         * syntax.c (Fparse_partial_sexp):
5674         * toolbar.c (Fcheck_toolbar_button_syntax):
5675         * tooltalk.doc:
5676         * window.c:
5677         * window.c (Fwindowp):
5678         * window.c (Fwindow_live_p):
5679         * window.c (Fwindow_point):
5680         * window.c (Fdelete_window):
5681         * window.c (Fnext_window):
5682         * window.c (Fprevious_window):
5683         * window.c (Fother_window):
5684         * window.c (window_loop):
5685         * window.c (Fget_lru_window):
5686         * window.c (Fsplit_window):
5687         * window.c (Fenlarge_window):
5688         * window.c (Fenlarge_window_pixels):
5689         * window.c (Fshrink_window):
5690         * window.c (Fshrink_window_pixels):
5691         * window.c (change_window_height):
5692         * window.c (Fwindow_configuration_p):
5693         * window.c (Fcurrent_window_configuration):
5694         * window.h:
5695         * casefiddle.c (casify_object):
5696         * casefiddle.c (Fupcase):
5697         * casefiddle.c (Fdowncase):
5698         * casefiddle.c (Fcapitalize):
5699         * casefiddle.c (Fupcase_initials):
5700         * casefiddle.c (casify_region_internal):
5701         * casefiddle.c (casify_region):
5702         * casefiddle.c (Fupcase_region):
5703         * casefiddle.c (Fdowncase_region):
5704         * casefiddle.c (Fcapitalize_region):
5705         * casefiddle.c (Fupcase_initials_region):
5706         * casefiddle.c (Fupcase_word):
5707         * casefiddle.c (Fdowncase_word):
5708         * casefiddle.c (Fcapitalize_word):
5709         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5710         Replace 0 with '\0' when working with bytes.
5711         Replace initial "(" with "\(" in docstrings.
5712
5713 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5714
5715         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5716
5717         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5718
5719 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5720
5721         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5722
5723 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5724
5725         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5726         correctly.
5727
5728 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5729
5730         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5731         (inhibit_auto_save_session): New variable.
5732         (vars_of_fileio): Declare and initialize them.
5733         * fileio.c (Fdo_auto_save): Don't create session file if
5734         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5735
5736 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5737
5738         * sgiplay.c (play_internal): C++ compilability.
5739         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5740         * callproc.c (Fold_call_process_internal):
5741         Remove unused vars `env', `first'.
5742         * scrollbar.c (update_scrollbar_instance):
5743         #### unused var `current_window'.
5744         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5745         etc. within #ifdef NOT_YET.
5746         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5747         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5748         * specifier.c (specifier_instance):
5749         #### unused var `tag'.
5750         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5751
5752 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5753
5754         * fns.c (Fbutlast):
5755         * fns.c (list_sort):
5756         * fns.c (Ffillarray):
5757         * fns.c (bytecode_nconc2):
5758         * fns.c (Fnconc):
5759         * fns.c (mapcar1):
5760         * fns.c (Fmapconcat):
5761         Be pedantically 64-bit correct.  For the time when someone will
5762         want to have a list with length > 2**32.
5763
5764         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5765         Work around MIPSpro compiler bug.
5766
5767         * process-unix.c (unix_kill_child_process): Add snarky comment.
5768         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5769
5770         * config.h.in: Oops, _getpt ==> _getpty
5771
5772 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5773
5774         * config.h.in:
5775         * regex.c:
5776         Use void*, not char*, as return type of alloca().
5777
5778         * alloc.c (free_marker): Side effect inside assert expression!
5779
5780 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5781
5782         * mule-charset.c (Fset_charset_ccl_program): To check
5783         if the given ccl program is valid, use setup_ccl_program()
5784         instead of CHECK_VECTOR().
5785         (Fmake_charset): Likewise.
5786
5787 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5788
5789         * faces.c (get_extent_fragment_face_cache_index):
5790         Fix cachel.merged_faces memory leak.
5791
5792 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5793
5794         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5795         Reset MSB of octets obtained by DECODE_SJIS
5796         because of the incompatibility with Emacs.
5797         (ccl_driver)<CCL_ENCODE_SJIS>:
5798         Set MSB of octets before passing them to
5799         ENCODE_SJIS because of the incompatibility
5800         with Emacs.
5801
5802 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5803
5804         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5805         (DECLARE_LRECORD): Undo the last change.
5806         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5807
5808 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5809
5810         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5811         the implementation to lrecord_implementations_table.
5812
5813 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5814
5815         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5816         initial value of `lrecord_type_##c_name' and
5817         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5818         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5819         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5820         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5821         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5822
5823 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5824
5825         * miscplay.c (sndcnv8S_2mono):
5826         (sndcnv2monounsigned):
5827         (sndcnvULaw_2linear):
5828         (sndcnv16swap):
5829         Remove implementation-defined behavior.
5830
5831 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5832
5833         * input-method-xlib.c: Warning suppression.
5834
5835 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5836
5837         * mule-ccl.c: Sync up with Emacs 21.0.90.
5838         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5839         Do nothing.
5840         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5841         Likewise.
5842         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5843         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5844         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5845         leading char belongs to official 2-dimensional charset.
5846         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5847         write the given character as is.  Otherwise,
5848         if it is a multibyte char, convert it by
5849         non_ascii_set_charptr_emchar, then write it.
5850         (CCL_WRITE_STRING): Likewise.
5851         (ccl_get_compiled_code): New function.
5852         (setup_ccl_program): When ccl_prog is invalid,
5853         return -1.
5854         (Fregister_code_conversion_map): New function.
5855         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5856
5857         * mule-ccl.h: Sync up with Emacs 21.0.90.
5858         (Fregister_ccl_program): export it.
5859
5860         * redisplay-msw.c (separate_textual_runs):
5861         If ccl program is not valid, don't do ccl conversion.
5862
5863         * redisplay-x.c (separate_textual_runs): Ditto.
5864
5865         * file-coding.c (Fmake_coding_system):
5866         When type is ccl and value is vector, register it
5867         with a proper symbol.  And checks whether the
5868         given ccl program is valid.
5869         (mule_decode): When calling ccl_driver, if src indicates
5870         NULL pointer, set an empty string instead.
5871         (mule_encode): Likewise.
5872
5873 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5874
5875         The following large batch of changes gets us back to a state of
5876         C++ compilability.  Extbyte is now a char, which means that
5877         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5878
5879         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5880
5881         * sound.c (Fplay_sound): Type correctness.
5882
5883         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5884         (x_get_window_property): Type correctness.
5885         (receive_incremental_selection): unsigned char ==> Extbyte
5886         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5887         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5888         (Fx_store_cutbuffer_internal): Type correctness.
5889
5890         * process-unix.c (try_to_initialize_subtty): Type correctness.
5891
5892         * objects-x.c (x_print_color_instance): Type correctness.
5893         (x_print_font_instance): Type correctness.
5894         (x_list_fonts): SExtbyte ==> Extbyte.
5895         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5896         (x_find_charset_font): SExtbyte ==> Extbyte.
5897         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5898         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5899         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5900         Use bufbyte_strcmp.
5901
5902         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5903         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5904         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5905         (BYTE_C0_P): Use bit ops for char-signedness safety.
5906         (BYTE_C1_P): Use bit ops for char-signedness safety.
5907         (CHARSET_BY_LEADING_BYTE):
5908         (CHARSET_BY_ATTRIBUTES):
5909         Always use inline function.
5910         Use type_checking_assert.
5911         Hide chlook.
5912
5913         * mule-charset.c (non_ascii_charptr_copy_char):
5914         Modify to work with both ASCII and non-ASCII characters.
5915         Improve docs and variable names.
5916         Replace over-clever fall-through switch with a simple loop.
5917         (Lstream_get_emchar_1):
5918         Replace over-clever fall-through switch with a simple loop.
5919
5920         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5921         Warning suppression.
5922
5923         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5924         the return value of Lstream_getc, which could be EOF as well.
5925
5926         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5927
5928         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5929         APIs can be used on Extbytes without casts.  Risky!
5930         (SExtbyte): Remove.
5931         (UExtbyte): Remove.
5932
5933         * input-method-xlib.c (XIM_init_device):
5934         Use Xlib.h instead of IntrinsicP.h.
5935         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5936         which will break in X11R7.
5937         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5938         to call XRegisterIMInstantiateCallback with correct types.
5939
5940         * gui-x.c (button_item_to_widget_value): Type correctness.
5941
5942         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5943
5944         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5945         (xbm_instantiate_1): Type correctness.
5946         (BUILD_GLYPH_INST):  Type correctness.
5947
5948         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5949
5950         * file-coding.c:
5951         (decode_coding_sjis):
5952         (decode_coding_big5):
5953         (decode_coding_ucs4):
5954         (decode_coding_utf8):
5955         (decode_coding_iso2022):
5956         (decode_coding_no_conversion):
5957         Make all decoding functions take an Extbyte * arg.
5958         (encode_coding_sjis):
5959         (encode_coding_big5):
5960         (encode_coding_ucs4):
5961         (encode_coding_utf8):
5962         (encode_coding_iso2022):
5963         (encode_coding_no_conversion):
5964         Make all encoding functions take a Bufbyte * arg.
5965         Use size_t instead of unsigned int for memory sizes.
5966         Only cast to unsigned char whenever dereferencing Extbyte *.
5967
5968         * doc.c (unparesseuxify_doc_string): Type correctness.
5969
5970         * console-x.c (split_up_display_spec):
5971         Rewrite without using details of internal string representation.
5972         (x_semi_canonicalize_device_connection): Type correctness.
5973
5974         * config.h.in:
5975         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5976         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5977         (HAVE_XFREE386): Removed.
5978
5979         * buffer.h (DEC_CHARPTR): `const' correctness.
5980         (bufbyte_strcmp): New.
5981         (bufbyte_memcmp): New.
5982
5983         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5984
5985         * buffer.h (XCHAR_OR_CHAR_INT):
5986         Always use inline function.
5987         Remove redundant type checking assert() - XINT will abort quite nicely.
5988
5989 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5990
5991         * search.c (Freplace_match): Set newtext to an empty string.
5992
5993 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5994
5995         * s/decosf1-3.h: Remove #include of stropts.h
5996         * s/ptx.h: Remove #include of stropts.h
5997         * s/usg5-4.h: Remove #include of stropts.h
5998         * sysproc.h:
5999         * config.h.in:
6000         Use stropts.h, not sys/stropts.h.
6001         Use strtio.h, not sys/strtio.h.
6002
6003 2000-10-04  Martin Buchholz <martin@xemacs.org>
6004
6005         * XEmacs 21.2.36 is released.
6006
6007 2000-09-21  Andy Piper  <andy@xemacs.org>
6008
6009         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6010         changes still involve copying the widget tree.
6011         (update_widget_face): make sure a change is register in the widget
6012         tree. Call update_tab_widget_face appropriately.
6013         (update_tab_widget_face): ditto.
6014         (x_tab_control_redisplay): make sure non-structural changes still
6015         involve copying the widget tree.
6016
6017 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6018
6019         * lread.c (locate_file): Check the path element is non-nil.
6020
6021 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6022
6023         * lisp.h: Warning suppression for SCO compilers.
6024
6025         * redisplay-tty.c (reset_tty_modes): Fix crash.
6026         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6027
6028 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6029
6030         Big signal/process handling overhaul.  Bugs fixed:
6031         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6032         M-x comint-kill-subjob should work for both values nil and t of
6033         process-connection-type. It was broken on most platforms.
6034         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6035         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6036         * process-unix.c: Signal/Process handling overhaul.
6037         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6038         (allocate_pty): Use all available modern methods of allocating
6039         ptys, falling back to old style BSD allocation as a last resort.
6040         Use allegedly more secure Unix98 pty allocation by default.
6041         (allocate_pty_the_old_fashioned_way): New. the last resort.
6042         (unix_create_process): Push ptem, ldterm, ttcompat where
6043         available.  Autoconfiscate.
6044         (try_to_initialize_subtty): New.
6045         (unix_kill_child_process): Proper signal handling for ptys on most
6046         platforms, using special knowledge of AIX, BSD, etc...
6047         (unix_create_process): Always disconnect_controlling_terminal() for
6048         subprocesses, whether using ptys or not.
6049         * process.h: Remove old getpt-dependent PTY code.
6050         * process.c (Fprocess_send_signal): New, obvious generic function.
6051         (decode_signal): New.
6052         (Finterrupt_process):
6053         (Fkill_process):
6054         (Fquit_process):
6055         (Fstop_process):
6056         (Fcontinue_process):
6057         (Fsignal_process): Use decode_signal.
6058         (process_send_signal):
6059         Many docstring corrections.
6060         Allow any signal to be sent to a process object.
6061         * config.h.in: Add symbols for big signal/process overhaul.
6062         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6063         * sysproc.h: Include process-related headers, where available:
6064         sys/stropts.h sys/strtio.h pty.h libutil.h
6065         * s/irix4-0.h:
6066         * s/irix5-0.h:
6067         * s/cygwin32.h:
6068         * s/gnu.h:
6069         * s/linux.h:
6070         * s/hpux.h:
6071         * s/aix3-1.h:
6072         Remove old S&M pty stuff.
6073         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6074         * systty.h: Simplify cpp hackery, improve comments.
6075         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6076
6077         * editfns.c (Fformat_time_string):
6078         Be a little more paranoid with the return value of ctime.
6079
6080         * fileio.c (check_executable):
6081         (check_writable):
6082         Use symbolic constants X_OK, W_OK.
6083
6084         * console-x.c (split_up_display_spec): Fix a warning.
6085
6086 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6087
6088         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6089         * ntproc.c (sys_spawnve): make_string ==> build_string
6090         Small clarity improvements.
6091
6092 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6093
6094         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6095
6096         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6097
6098         * config.h.in (HAVE_STRCASECMP): Remove.
6099
6100 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6101
6102         * redisplay-output.c (redisplay_output_pixmap):
6103         Cleaner and possibly more 64-bit correct code.
6104
6105 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6106
6107         * dumper.c (pdump_load_finish): move restoration of
6108         `noninteractive1' to emacs.c (main_1).
6109         * emacs.c (main_1): protect LISP-visible command-line flags
6110         from pdump_load().
6111
6112 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6113
6114         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6115         DUMP_TARGET instead of literal program names.
6116
6117 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6118
6119         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6120
6121 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6122
6123         * *: Spelling mega-patch
6124
6125 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6126
6127         * fns.c (bad_bad_turtle):
6128         Delete "Eek!" comment, since we fixed the bug to which it refers.
6129
6130 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6131
6132         * alloca.c: Replace REGISTER with register.
6133
6134 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6135
6136         * file-coding.c (ucs_to_char): Use countof.
6137
6138 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6139
6140         * file-coding.c: (ucs_to_char):
6141         (complex_vars_of_file_coding):
6142         Use countof instead of sizeof.
6143         Use CHECK_NATNUM instead of CHECK_INT.
6144
6145         * sysdep.c (strcasecmp): Remove.
6146         * device-x.c (ascii_strcasecmp): New.
6147         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6148         Avoid using non-standard non-portable strcasecmp.
6149
6150 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6151
6152         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6153         * font-lock.c: remove reference to emacsfns.h.
6154         * search.c: small doc improvement.
6155         * event-Xt.c: correct file names in comments.
6156         * console-x.h Correct file names in comments.
6157         * frame.c: Correct file names in comments.
6158         * event-stream.c: remove Energize from comments.
6159
6160 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6161
6162         * symeval.h (DEFERROR_STANDARD):
6163         (DEFERROR):
6164         (DEFSYMBOL):
6165         (DEFSYMBOL_NO_DUMP):
6166         (DEFSYMBOL_MULTIWORD_PREDICATE):
6167         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6168         (DEFKEYWORD):
6169         The construct &##name is not sensible C.
6170         Fixes compilation errors with Unixware native compiler.
6171
6172 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6173
6174         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6175         (next_frame_internal): Removed.  We now just have next_frame.
6176         (next_frame):
6177         Write a simpler and cleaner one-pass algorithm.
6178         Remove called_from_delete_device arg and #ifdefed-out code.
6179         (previous_frame):
6180         Renamed from prev_frame.  Update callers.
6181         Cleaned up to have an analogous implementation to next_frame.
6182         (other_visible_frames_internal): Remove the
6183         called_from_delete_device bogus arg, and hence, remove this
6184         function.  Just use other_visible_frames().
6185
6186         * window.c (Fnext_window):
6187         Prettify docstring.
6188         Since next_frame() is guaranteed to return a frame, remove check
6189         for nil inserted in previous patch.
6190         (Fprevious_window):
6191         Prettify docstring.
6192         Make code look more like Fnext_window.
6193         (window_loop):
6194         Respect the `console' arg when iterating through windows.
6195         Fixes bug: (get-buffer-window buffer t device) not respecting
6196         the `device' arg.
6197         This function needs more work, as others have pointed out.
6198
6199         * frame.h: Rename prev_frame to previous_frame.
6200         device_matches_console_spec no longer takes a `frame' arg.
6201
6202         * s/gnu.h:
6203         * s/linux.h:
6204         * s/hpux.h:
6205         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6206         From "Golubev I. N." <gin@mo.msk.ru>.
6207
6208         * make-src-depend: Fix typo.
6209
6210 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6211
6212         * window.c (Fnext_window):
6213         next_frame() might return nil, not a frame.
6214         Fixes this crash:
6215         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6216
6217         * frame.c (next_frame_internal):
6218         We've passed a frame if we've passed its device.
6219         Fixes this crash:
6220         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6221 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6222
6223 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6224
6225         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6226         Allow option to suppress accelerators in menu/dialog items.
6227         (populate_or_checksum_helper): Pass dialog title through above.
6228
6229 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6230
6231         * event-msw.c (mswindows_key_to_emacs_keysym):
6232         Add "pause" key, fix "menu" key.
6233
6234 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6235
6236         * eval.c (reinit_vars_of_eval):
6237         Increase max_lisp_eval_depth to 1000,
6238         required for thai-xtis.el to byte-compile under some circumstances.
6239
6240 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6241
6242         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6243         From Kenichi Handa.
6244
6245 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6246
6247         * make-src-depend: Make the generated Makefiles smaller.
6248
6249         * s/hpux.h (SETUP_SLAVE_PTY):
6250         Provide a %d in the format string for the errno argument.
6251
6252         * editfns.c (Ftemp_directory):
6253         Warning fix.
6254         Avoid buffer overrun on very long file name.
6255
6256         * input-method-xlib.c (XIM_init_device):
6257         6th parameter of XRegisterIMInstantiateCallback has different
6258         pointer types on different OSes, so simply cast to (void *).
6259
6260         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6261
6262         * sysdll.c (dll_open):
6263         shl_load will hang hard if passed a NULL filename.
6264         Simply return NULL for compatibility with dlopen.
6265         * sysdll.c: Conform to XEmacs coding standards.
6266
6267         * sysdep.c (get_pty_max_bytes):
6268         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6269
6270 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6271
6272         * tooltalk.c: Add #include <syssignal.h>
6273
6274 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6275
6276         * s/hpux.h: Don't use undefined function sigunblock().
6277
6278 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6279
6280         * config.h.in: Add HAVE_BALLOON_HELP.
6281         * emacs.c: Use HAVE_BALLOON_HELP.
6282         * Makefile.in.in (x_objs):
6283         Make Balloon Help conditional on finding shape.h.
6284
6285 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6286
6287         * syntax.c (regex_emacs_buffer_p): New variable.
6288         * syntax.h (regex_emacs_buffer_p): extern.
6289         * search.c (looking_at_1):
6290         (string_match_1):
6291         (fast_string_match):
6292         (search_buffer): Set regex_emacs_buffer_p.
6293         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6294         when before_dot, at_dot, after_dot.
6295
6296 2000-08-23  Andy Piper  <andy@xemacs.org>
6297
6298         * gui-x.c (popup_selection_callback): Only set action_occurred
6299         when we really have an image instance.
6300         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6301
6302 2000-08-23  Andy Piper  <andy@xemacs.org>
6303
6304         * gui-msw.c (mswindows_handle_gui_wm_command): set
6305         action_occurred.
6306         * gui-x.c (popup_selection_callback): ditto.
6307
6308         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6309         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6310         (struct Lisp_Image_Instance): add action_occurred flag.
6311
6312         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6313         (image_instance_changed): ditto.
6314         (reset_frame_subwindow_instance_cache): only unmap windows - do
6315         not remove them from the cache also.
6316
6317         * glyphs-widget.c (tab_control_update): better debug.
6318         (progress_gauge_update): ditto.
6319         (layout_update): ditto.
6320         (layout_instantiate): ditto.
6321         (tab_control_order_only_changed): cope with null pending items.
6322
6323         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6324         debug. Force selection of an item when an action occurred. Cope
6325         with null pending_items.
6326         (mswindows_progress_gauge_redisplay): better debug.
6327         * glyphs-x.c (x_tab_control_redisplay): ditto.
6328
6329         * redisplay.c (redisplay_frame): reset the frame cache if the
6330         frame is garbaged.
6331
6332         * window.c (Fset_window_configuration): potentially re-enable
6333         frame cache reset.
6334         (window_unmap_subwindows): need to finalize instances here since
6335         it is only used in mark_window_as_deleted.
6336
6337 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6338
6339         * nas.c (SndOpenDataForReading):
6340         nas.c (WaveOpenDataForReading):
6341         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6342         Somehow escaped from the 2000-08-14 patch.
6343
6344 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6345
6346         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6347         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6348
6349 2000-08-21  Andy Piper  <andy@xemacs.org>
6350
6351         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6352         window if it is not already displayed.
6353
6354         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6355         it is not already displayed.
6356
6357         * window.c (Fset_window_configuration): don't reset the frame
6358         cache.
6359
6360         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6361         instances from the frame cache if we are actually finalizing them.
6362         (reset_frame_subwindow_instance_cache): reset frame cache only
6363         after unmapping everything.
6364         (map_subwindow): set displayed flag after mapping.
6365
6366 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6367
6368         * data.c (indirect_function):
6369         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6370
6371         * eval.c (function_argcount):
6372         Use original function when signaling errors.
6373
6374 2000-08-18  Andy Piper  <andy@xemacs.org>
6375
6376         * frame.c (delete_frame_internal): use new
6377         free_frame_subwindow_instances name.
6378
6379         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6380         (add_tab_item): make return type correct.
6381         (mswindows_tab_control_instantiate): assert index of tab.
6382         (mswindows_tab_control_redisplay): Re-code to use
6383         gui_item_equal_sans_selected and gui_item_list_find_selected.
6384
6385         * glyphs-widget.c (tab_control_update): Correct comment.
6386
6387         * window.c (window_unmap_subwindows): use new
6388         unmap_subwindow_instance_cache_mapper.
6389         (window_unmap_subwindows_cache_mapper): deleted.
6390         (Fset_window_configuration): comparisons should now be with
6391         EQ. Preserve the subwindow instance cache across configuration
6392         changes.
6393         (allocate_window): ditto.
6394         (make_dummy_parent): ditto.
6395
6396         * glyphs.c (free_frame_subwindow_instances): rename from
6397         free_frame_subwindow_instance_cache. finalize all instances rather
6398         than just those in the display cache.
6399         (finalize_all_subwindow_instances): walk windows unmapping and
6400         finalizing subwindows.
6401         (unmap_subwindow_instance_cache_mapper): moved from
6402         window.c. Allow finalization as well as unmapping.
6403
6404         * gui.c (gui_item_list_find_selected): new function.
6405
6406         * gui.h (gui_item_list_find_selected): declare.
6407
6408         * glyphs-x.c (x_tab_control_redisplay): pick tab
6409         explicitly. Re-code to use gui_item_equal_sans_selected and
6410         gui_item_list_find_selected.
6411
6412         * glyphs-x.h: add lwlib-utils.h
6413
6414         * buffer.c (Frecord_buffer): undo previous change.
6415
6416 2000-08-09  Vin Shelton  <acs@xemacs.org>
6417
6418         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6419         possible.  Create temporary files more securely.  The patch was
6420         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6421         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6422         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6423         for details.
6424
6425 2000-08-07  Ben Wing  <ben@xemacs.org>
6426
6427         * getloadavg.c: remove duplicate (and windows-breaking)
6428         includes of fcntl.h and sys/file.h.
6429
6430         * nt.c: remove duplicate getloadavg() definition.
6431
6432         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6433         encodings.
6434
6435 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6436
6437         * eval.c (function_argcount): If function needs to be autoloaded
6438         actually use the loaded definition.
6439         GCPRO function.
6440
6441 2000-08-05  Ben Wing  <ben@xemacs.org>
6442
6443         * getloadavg.c: add prototype for getloadavg().  remove
6444         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6445         of the code).  remove duplicate header includes.
6446
6447         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6448
6449         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6450         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6451         useful load average.
6452
6453         * alloc.c (reinit_alloc_once_early): removed references to
6454         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6455         the lisp vars are the only things referencing the malloc_sbrk_*
6456         vars, and they were already if 0'd out.  these vars only exist
6457         in the older malloc.c, which is basically unused, and they're
6458         only for informational purposes.
6459
6460         * m\*.h: removed useless VIRT_ADDR_VARIES.
6461
6462         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6463
6464 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6465
6466         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6467         color if the image is a mono pixmap.
6468
6469 2000-07-30  Ben Wing  <ben@xemacs.org>
6470
6471         * Makefile.in.in (release):
6472         Remove stray @.
6473
6474         * buffer.c (directory_is_current_directory):
6475         * dired-msw.c (mswindows_get_files):
6476         * dired.c:
6477         * dired.c (Fdirectory_files):
6478         * dired.c (file_name_completion_stat):
6479         * dired.c (Ffile_attributes):
6480         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6481         preprocessor tricks, to avoid problems on some machines
6482         (e.g. SCO).
6483
6484         * callproc.c (egetenv): GC docs.
6485
6486         * console-msw.h:
6487         * console-msw.h (struct mswindows_dialog_id):
6488         * lrecord.h (lrecord_type):
6489         New object for use with MSW dialogs.
6490
6491         * console.h (struct console_methods):
6492         New enable/disable frame methods, for proper modal dialogs.
6493
6494         * device-msw.c (msprinter_default_printer): Fix to follow
6495         proper Mule conventions.
6496
6497         * device-msw.c:
6498         * device-msw.c (signal_open_printer_error):
6499         * device-msw.c (msprinter_init_device):
6500         * device-msw.c (ensure_not_printing):
6501         * device-msw.c (plist_get_margin):
6502         * device-msw.c (Fmsprinter_select_settings):
6503         * device-msw.c (finalize_devmode):
6504         * device-msw.c (Fmsprinter_settings_despecialize):
6505         * device-msw.c (signal_enum_priner_error):
6506         * extents.c (decode_extent):
6507         * extents.c (decode_map_extents_flags):
6508         * extents.c (decode_extent_at_flag):
6509         * extents.c (Fextent_at):
6510         * extents.c (Fextents_at):
6511         * extents.c (symbol_to_glyph_layout):
6512         [[[[2]]]] Use structured errors.
6513
6514         * dialog-msw.c:
6515         * dialog-msw.c (mswindows_is_dialog_msg):
6516         * dialog-msw.c (mark_mswindows_dialog_id):
6517         * dialog-msw.c (dialog_proc):
6518         * dialog-msw.c (handle_question_dialog_box):
6519         * dialog-msw.c (syms_of_dialog_mswindows):
6520         Define new object to clean up marking; use it as a dialog identifier.
6521         Call new delete-dialog-box-hook.
6522
6523         * dialog-x.c (dbox_selection_callback):
6524         * dialog-x.c (dbox_descriptor_to_widget_value):
6525         * dialog-x.c (x_make_dialog_box_internal):
6526         Call new delete-dialog-box-hook.
6527         Return an id.
6528
6529         * dialog.c:
6530         * dialog.c (syms_of_dialog):
6531         * dialog.c (vars_of_dialog):
6532         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6533
6534         * eval.c:
6535         * eval.c (signal_call_debugger):
6536         when noninteractive, output stack traces on the console instead
6537         of in a (never-seen) buffer.
6538
6539         * eval.c (signal_type_error):
6540         * eval.c (invalid_argument_2):
6541         * lisp.h:
6542         new funs for use w/structured errors.
6543
6544         * event-Xt.c:
6545         * event-Xt.c (x_to_emacs_keysym):
6546         * event-Xt.c (describe_event):
6547         * event-Xt.c (emacs_Xt_event_handler):
6548         * event-Xt.c (vars_of_event_Xt):
6549         * event-msw.c:
6550         * event-msw.c (mswindows_wnd_proc):
6551         * event-msw.c (vars_of_event_mswindows):
6552         rename {x,mswindows}-debug-events to debug-{}-events for
6553         consistency with other debug-foo variables.
6554
6555         * event-stream.c:
6556         document next-event more clearly.
6557
6558         * fileio.c (Ffile_name_directory):
6559         * fileio.c (Ffile_name_nondirectory):
6560         * fileio.c (Funhandled_file_name_directory):
6561         * fileio.c (file_name_as_directory):
6562         * fileio.c (Ffile_name_as_directory):
6563         * fileio.c (directory_file_name):
6564         * fileio.c (Fdirectory_file_name):
6565         * fileio.c (Fmake_temp_name):
6566         * fileio.c (Ffile_truename):
6567         * fileio.c (Fsubstitute_in_file_name):
6568         * fileio.c (expand_and_dir_to_file):
6569         * fileio.c (barf_or_query_if_file_exists):
6570         * fileio.c (check_executable):
6571         * fileio.c (Ffile_exists_p):
6572         * fileio.c (Ffile_writable_p):
6573         * fileio.c (Ffile_directory_p):
6574         * fileio.c (Ffile_regular_p):
6575         * fileio.c (Ffile_modes):
6576         * fileio.c (Ffile_newer_than_file_p):
6577         * fileio.c (Fverify_visited_file_modtime):
6578         * fileio.c (Fset_visited_file_modtime):
6579         * fileio.c (auto_save_1):
6580         (1). (2).
6581         fix up gcpro's.
6582
6583         * frame-msw.c:
6584         * frame-msw.c (mswindows_init_frame_1):
6585         * frame-msw.c (mswindows_enable_frame):
6586         * frame-msw.c (error_frame_unsizable):
6587         * frame-msw.c (msprinter_init_frame_1):
6588         * frame-msw.c (msprinter_init_frame_3):
6589         * frame-msw.c (console_type_create_frame_mswindows):
6590         (2).
6591         implement new enable/disable frame methods.
6592
6593         * frame-x.c:
6594         * frame-x.c (x_enable_frame):
6595         * frame-x.c (console_type_create_frame_x):
6596         implement new enable/disable frame methods.
6597
6598         * frame.c:
6599         * frame.c (Fdisable_frame):
6600         * frame.c (syms_of_frame):
6601         * frame.h (struct frame):
6602         implement new enable/disable frame methods/functions.
6603
6604         * general-slots.h:
6605         add initial-focus.
6606
6607         * glyphs-msw.c (mswindows_widget_instantiate):
6608         comment that initial-focus should be implemented.
6609
6610         * glyphs-widget.c:
6611         * glyphs-widget.c (check_valid_instantiator):
6612         * glyphs-widget.c (check_valid_orientation):
6613         * glyphs-widget.c (check_valid_tab_orientation):
6614         * glyphs-widget.c (check_valid_justification):
6615         * glyphs-widget.c (check_valid_border):
6616         * glyphs-widget.c (check_valid_callback):
6617         * glyphs-widget.c (check_valid_int_or_function):
6618         * glyphs-widget.c (check_valid_string_or_vector):
6619         * glyphs-widget.c (check_valid_item_list_1):
6620         * glyphs-widget.c (widget_validate):
6621         * glyphs-widget.c (combo_box_validate):
6622         * glyphs-widget.c (widget_instantiate):
6623         * glyphs-widget.c (syms_of_glyphs_widget):
6624         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6625         * glyphs-widget.c (image_instantiator_combo_box):
6626         * glyphs-widget.c (image_instantiator_scrollbar):
6627         * glyphs-widget.c (image_instantiator_tab_control):
6628         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6629         (2).
6630         support (unimplemented) keyword initial-focus.
6631         reindent long macros.
6632
6633         * glyphs-x.c (x_redisplay_widget):
6634         * glyphs-x.c (x_button_instantiate):
6635         * glyphs-x.c (x_button_redisplay):
6636         * glyphs-x.c (x_progress_gauge_instantiate):
6637         * glyphs-x.c (x_edit_field_instantiate):
6638         * glyphs-x.c (x_combo_box_instantiate):
6639         * glyphs-x.c (x_tab_control_instantiate):
6640         * glyphs-x.c (x_label_instantiate):
6641         * gui-x.c:
6642         * gui-x.c (button_item_to_widget_value):
6643         * gui-x.c (gui_items_to_widget_values_1):
6644         * gui-x.c (gui_item_children_to_widget_values):
6645         * gui-x.c (gui_items_to_widget_values):
6646         * gui-x.h:
6647         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6648         add new flag to gui-parsing routines to indicate whether
6649         accelerator specs should be supported.
6650
6651         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6652
6653         * glyphs.h (struct Lisp_Image_Instance):
6654         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6655         add initial-focus flag.
6656
6657         * gui.c:
6658         * gui.c (syms_of_gui):
6659         * gui.c (vars_of_gui):
6660         clean up menu-no-selection-hook.
6661
6662         * gui.h:
6663         support delete-dialog-box-hook.
6664
6665         * lread.c (Fload_internal):
6666         * lread.c (locate_file_in_directory_mapper):
6667         (1).
6668
6669         * lrecord.h:
6670         * lrecord.h (struct toolbar_button):
6671         * lrecord.h (syms_of_toolbar):
6672         document how to create a new object.
6673
6674         * menubar-msw.c (mswindows_char_is_accelerator):
6675         may be called on frames w/o menus.
6676
6677         * menubar.c (vars_of_menubar):
6678         clean up :filter docs.
6679
6680         * nt.c (readdir):
6681         * ntproc.c:
6682         (1).
6683
6684         * process-nt.c:
6685         * process-nt.c (validate_signal_number):
6686         * process-nt.c (signal_cannot_launch):
6687         * process-nt.c (nt_create_process):
6688         * process-nt.c (nt_send_process):
6689         * process-nt.c (nt_kill_child_process):
6690         * process-nt.c (nt_open_network_stream):
6691         * process-nt.c (syms_of_process_nt):
6692         (2).
6693         delete quote-handling.  call new lisp code that does it better.
6694
6695         * process-unix.c (connect_to_file_descriptor):
6696         * process-unix.c (allocate_pty):
6697         * process-unix.c (unix_send_process):
6698         * process-unix.c (unix_kill_child_process):
6699         * process-unix.c (unix_open_network_stream):
6700         * process-unix.c (unix_open_multicast_group):
6701         (1). (2).
6702
6703         * process.c:
6704         * process.c (Fstart_process_internal):
6705         (2).  need to canonicalize process path even if absolute.
6706
6707         * select-msw.c (symbol_to_ms_cf):
6708         * select-msw.c (ms_cf_to_symbol):
6709         * select-msw.c (cf_is_autofreed):
6710         * select-msw.c (mswindows_destroy_selection):
6711         * select.c:
6712         * select.c (syms_of_select):
6713         * select.h:
6714         support dibv5, fix bugs. (from Mike Alexander)
6715
6716         * select.c (Fget_selection_internal):
6717         * select.c (select_convert_out):
6718
6719         * sysdep.c:
6720         * sysdep.c (xemacs_stat):
6721         renamed.
6722
6723         * sysdep.c (mkdir):
6724         * sysdep.c (rmdir):
6725         but keep original stat() here because we provide encapsulation
6726         around these funs.
6727
6728         * sysfile.h:
6729         * sysfile.h (fstat):
6730         remove stat garbage.
6731
6732         * syswindows.h:
6733         fix X/MSW conflict.
6734         don't include tchar.h.  it's inappropriate because it makes
6735         compile-time distinctions when we want runtime distinctions.
6736         (we provide our own tchar replacements)
6737
6738         * toolbar.c:
6739         use default object printer for toolbar-button.
6740
6741         * unexcw.c:
6742         make sure we don't encapsulate.
6743
6744         * window.c (vars_of_window):
6745         emphasize that temp-buffer-show-hook is obsolete.
6746
6747 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6748
6749         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6750         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6751
6752         * events.c (Fevent_timestamp_lessp):
6753         Not 64-bit clean.  Use EMACS_INT, not int.
6754
6755 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6756
6757         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6758         unsigned int and changed the last enum to
6759         lrecord_type_last_built_in_type.
6760         (lrecord_implementations_table): changed prototype to know how
6761         long the array is supposed to be.
6762         (lrecord_type_count): new unsigned int to keep track of the
6763         current number of lisp lrecord types.
6764         (DEFINE_EXTERNAL_LRECORD):
6765         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6766         dynamic-modules to declare new lisp types. They are the same
6767         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6768         int for each new type, and increment lrecord_type_count by 1.
6769
6770         * alloc.c (lrecord_implementations_table): Changed to reference
6771         lrecord_type_last_built_in_type for the size of the array.
6772         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6773
6774 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6775
6776         * glyphs.h (check_valid_item_list): Renamed from
6777         check_valid_item_list_1.
6778
6779 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6780
6781         * select.c (Qselect_coerce): New.
6782         * select.c (Vselection_coercion_alist): New.
6783         * select.c (syms_of_select): Declare.
6784         * select.c (get-selection-internal): Use it.
6785         Use the new select-coerce functionality.
6786
6787         * select.c (select_coerce): New.
6788         * select.h (select_coerce): Declare.
6789         New function to coerce one type of data into another.
6790
6791 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6792
6793         * callproc.c (Fcall_process_internal):
6794         (Fcall_process_internal):
6795         * process-unix.c (unix_create_process):
6796         Save and restore the value of errno, so that error messages are accurate.
6797
6798 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6799
6800         * elhash.c (print_hash_table):
6801         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6802         Prettify docstrings and indentation.
6803
6804 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6805
6806         * window.c (Fwindow_pixel_edges): Subtract frame border and
6807         gutter size.
6808
6809 2000-07-31  Andy Piper  <andy@xemacs.org>
6810
6811         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6812         will acknowledge the change.
6813
6814         * glyphs.h: declare tab_control_order_only_changed.
6815
6816         * glyphs-x.c (x_tab_control_redisplay): use
6817         tab_control_order_only_changed.
6818
6819         * glyphs-widget.c (tab_control_order_only_changed): new function.
6820
6821         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6822         tab_control_order_only_changed.
6823
6824         * gui.c (gui_item_equal_sans_selected): new function.
6825         (gui_item_equal): use it.
6826
6827         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6828         :properties in favor of :items..
6829
6830         * glyphs-widget.c (check_valid_item_list): rename from
6831         check_valid_item_list_1.
6832         (check_valid_item_list_1): renamed.
6833         (combo_box_validate): deprecate :properties in favor of :items.
6834         (widget_instantiate): ditto.
6835         (tab_control_update): ditto.
6836         (image_instantiator_combo_box): ditto.
6837         (image_instantiator_tree_view): ditto.
6838         (image_instantiator_tab_control): ditto.
6839         (layout_post_instantiate): remove dead code.
6840
6841         * print.c (debug_print_no_newline): only write to debugger if in
6842         WIN32_NATIVE.
6843
6844         * elhash.c (Fmake_hash_table): update doc string.
6845
6846         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6847         messages whilst in GC. This at least stops XEmacs crashing but has
6848         the potential for wierd behaviour.
6849
6850 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6851
6852         * config.h.in:
6853         Make existence of s&m files optional.
6854
6855         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6856         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6857         * s/gnu.h: Remove HAVE_GETLOADAVG.
6858         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6859         * s/sol2.h: Remove HAVE_GETLOADAVG.
6860         * lisp.h: Remove getloadavg() declaration.
6861         * fns.c:
6862         Include <sys/loadavg.h> if available.
6863         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6864         * config.h.in:  Group together getloadavg()-related macros.
6865         Use only configure-time tests to detect getloadavg().
6866
6867 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6868
6869         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6870
6871 2000-07-25  Andy Piper  <andy@xemacs.org>
6872
6873         * syswindows.h: add tchar.h for native builds.
6874
6875         * frame.c (syms_of_frame): remove set-glyph-image.
6876
6877         * general-slots.h: add Qset_glyph_image.
6878
6879         * glyphs-widget.c (layout_update): add domain arg to
6880         set-glyph-image.
6881         (syms_of_glyphs_widget): remove set-glyph-image.
6882
6883 2000-07-23  Ben Wing  <ben@xemacs.org>
6884
6885         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6886         Vpopup_frame_list.
6887
6888 2000-07-22  Andy Piper  <andy@xemacs.org>
6889
6890         * symsinit.h: add syms_of_win32().
6891
6892         * gui-msw.c (syms_of_gui_mswindows): remove
6893         Fmswindows_shell_execute.
6894         (Fmswindows_shell_execute): moved to win32.c.
6895
6896         * emacs.c (main_1): add syms_of_win32 ().
6897
6898         * win32.c (init_potentially_nonexistent_functions): rewrite in
6899         compiler-friendly terms.
6900         (Fmswindows_shell_execute): move here from gui-msw.c.
6901         (syms_of_win32): new.
6902
6903         * device-msw.c (Fmswindows_printer_list): clean up args to
6904         EnumPrinters.
6905         Don't include tchar under cygwin or mingw.
6906         (msprinter_default_printer): make cygwin-friendly.
6907
6908 2000-07-21  Andy Piper  <andy@xemacs.org>
6909
6910         * glyphs-widget.c (image_instantiator_tree_view): use tab
6911         control's update function.
6912         (layout_property): new function. Retrieve items.
6913
6914         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6915         function. Re-populate the tree view from the pending items.
6916
6917         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6918         is designated the parent if the domain is an image instance. This
6919         is needed so that dirtiness can be cascade up the hierarchy and
6920         thus for layout children to be redisplayed correctly.
6921         (allocate_image_instance): rename glyph -> parent.
6922
6923         * redisplay.h: change redisplay_output_layout signature.
6924
6925         * redisplay-msw.c (mswindows_output_display_block): use domain
6926         arg.
6927
6928         * redisplay-x.c (x_output_display_block): use domain arg.
6929
6930 2000-07-10  Andy Piper  <andy@xemacs.org>
6931
6932         * window.c (Fset_window_configuration): add comment.
6933
6934         * redisplay-output.c (compare_runes):
6935         (redisplay_output_subwindow): redisplay rather than update subwindow.
6936         (redisplay_output_layout): ditto.
6937
6938         * redisplay-msw.c (mswindows_frame_output_end):
6939         (mswindows_frame_output_end): make defer window pos optional.
6940
6941         * lisp.h: add Flast.
6942
6943         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6944         normalize method. Change update method to be for changed
6945         instantiators. Add redisplay method. Change signature of layout
6946         method.
6947         (struct Lisp_Image_Instance): add instantiator.
6948         (IMAGE_INSTANCE_INSTANTIATOR): new.
6949         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6950         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6951         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6952
6953         * glyphs.c:
6954         (find_instantiator_differences): new function.
6955         (Fset_instantiator_property): new convenience function.
6956         (check_image_instance_structure): strictly check for vector
6957         instantiators.
6958         (normalize_image_instantiator): make non-static.
6959         (instantiate_image_instantiator): pass on dest_mask and use new
6960         signatures for image_instance_layout and friends.
6961         (mark_image_instance): mark the instantiator. Mark the subwindow
6962         face not the widget face.
6963         (image_instance_equal): add instantiator.
6964         (image_instance_hash): ditto.
6965         (allocate_image_instance): ditto.
6966         (Fset_image_instance_property): removed.
6967         (Fimage_instance_file_name): ditto.
6968         (Fcolorize_image_instance): ditto.
6969         (image_instance_layout): add offsets to be set.
6970         (update_image_instance): new function. update an image instance
6971         from its changed instantiator.
6972         (inherit_normalize): add dest_mask.
6973         (xbm_normalize): ditto.
6974         (xface_normalize): ditto.
6975         (xpm_normalize): ditto.
6976         (text_update): set_property -> update.
6977         (image_instantiate): use the glyph identity as a hash key, not the
6978         instantiator.
6979         (glyph_width): use new image_instance_layout signature.
6980         (glyph_ascent): ditto.
6981         (glyph_descent): ditto.
6982         (glyph_height): ditto.
6983         (glyph_query_geometry): ressurrect.
6984         (glyph_layout): ditto.
6985         (redisplay_subwindow): update -> redisplay.
6986         (syms_of_glyphs): add Fset_instantiator_property.
6987         (image_instantiator_format_create): set_property -> update.
6988
6989         * glyphs-x.c:
6990         (autodetect_normalize): add dest_maks to signature.
6991         (x_redisplay_subwindow): update -> redisplay.
6992         (x_redisplay_widget): ditto.
6993         (x_button_redisplay): ditto.
6994         (x_progress_gauge_redisplay): ditto.
6995         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6996         stacking order.
6997         (console_type_create_glyphs_x): update -> redisplay.
6998         (image_instantiator_format_create_glyphs_x): ditto.
6999
7000         * glyphs-widget.c:
7001         (check_valid_instantiator): disallow glyphs in the instantiator,
7002         they must now be vectors.
7003         (check_valid_instantiator_list): ditto.
7004         (glyph_instantiator_to_glyph): use internal symbol rather than
7005         intern.
7006         (widget_update): renamed from widget_set_property. Call cascaded
7007         update methods.
7008         (redisplay_widget): renamed from update_widget.
7009         (widget_layout): image_instance_layout now takes position as well
7010         as size.
7011         (widget_normalize): ditto.
7012         (widget_instantiate): ditto.
7013         (tab_control_query_geometry) ditto.:
7014         (tab_control_update): renamed from tab_control_set_property.
7015         (progress_gauge_update): set_property -> update.
7016         (layout_normalize): rewrite so that child instantiators are
7017         normalized also.
7018         (layout_update): new function. Create glyphs from the normalized
7019         children and cope with any other layout keywords. We do not
7020         instantiate children here that will be take care of by
7021         redisplay_output_layout.
7022         (layout_instantiate): call layout_update and not much else.
7023         (layout_post_instantiate): not sure whether this is needed
7024         anymore.
7025         (layout_query_geometry): query glyph geometry rather than
7026         image_instance geometry.
7027         (layout_layout): set offsets from pass in parameters. Use glyph
7028         geometry and layout functions rather than image instance ones.
7029         (native_layout_layout): ditto.
7030         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7031         (image_instantiator_widget): set_property -> update.
7032         (image_instantiator_buttons): ditto.
7033         (image_instantiator_progress_guage): ditto.
7034         (image_instantiator_tab_control): ditto.
7035         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7036         (image_instantiator_layout): add update method.
7037
7038         * glyphs-msw.c (bmp_normalize):
7039         (mswindows_resource_normalize): add dest_mask so that it can be
7040         proprogated by layout_normalize.
7041         (begin_defer_window_pos): make optional because it may not be the
7042         right thing to do and it introduces differences with X.
7043         (mswindows_unmap_subwindow): ditto.
7044         (mswindows_map_subwindow): ditto.
7045         (mswindows_redisplay_subwindow): renamed from
7046         mswindows_update_subwindow.
7047         (mswindows_redisplay_widget): ditto.
7048         (mswindows_button_redisplay): renamed from
7049         mswindows_button_update. Update is now what the instantiation
7050         function does for a changed instantiator.
7051         (mswindows_progress_gauge_instantiate): set the progress value
7052         here if appropriate.
7053         (mswindows_tab_control_redisplay): cope with re-ordering of the
7054         members of the tab widget by simply selecting the new top
7055         widget. This makes things appear ok if you click on a tab.
7056         (mswindows_combo_box_instantiate): image_instance_layout now takes
7057         position as well as size.
7058         (mswindows_progress_gauge_redisplay): renamed from
7059         mswindows_progress_gauge_update.
7060         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7061         (image_instantiator_format_create_glyphs_mswindows): ditto.
7062
7063         * glyphs-eimage.c (jpeg_normalize):
7064         (gif_normalize):
7065         (png_normalize):
7066         (tiff_normalize): add dest_mask so that it can be proprogated by
7067         layout_normalize.
7068
7069         * elhash.c:
7070         (print_hash_table):
7071         (hash_table_weakness_validate):
7072         (decode_hash_table_weakness):
7073         (Fhash_table_weakness):
7074         (Fhash_table_type):
7075         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7076
7077         * console.h (struct console_methods): move update_* to
7078         redisplay_*.
7079
7080 2000-07-20  Ben Wing  <ben@xemacs.org>
7081
7082         * *.[ch] (XSETOBJ): remove unused middle argument.
7083         lisp-disunion.h: correct wrap_object() to one argument.
7084
7085 2000-07-15  Ben Wing  <ben@xemacs.org>
7086
7087         * s/cygwin32.h:
7088         * s/cygwin32.h (CYGWIN_CONV_PATH):
7089         Add missing logb prototype for v1.1.
7090         Use post-b20 names and alias to pre-b20 names when pre-b20.
7091
7092         * s/windowsnt.h: [5].
7093
7094 2000-07-15  Ben Wing  <ben@xemacs.org>
7095
7096         * Makefile.in.in (x_objs):
7097         * Makefile.in.in (sheap_objs):
7098         * Makefile.in.in (objs):
7099         added win32.o, cosmetic cleanups.
7100
7101         * alloc.c (Fmake_byte_code):
7102         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7103         etc. macros which declare their own args now.
7104
7105         * alloc.c (syms_of_alloc):
7106         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7107
7108         * buffer.c:
7109         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7110
7111         * buffer.c (Fget_file_buffer):
7112         Fixed GCPRO problem.
7113
7114         * buffer.c (get_truename_buffer):
7115         Fixed comment about GC checking.
7116
7117         * buffer.c (syms_of_buffer):
7118         Undeclared those dedicated frame funs.
7119         [2].
7120
7121         * buffer.h:
7122         Define convenience macros for internal/external conversions.
7123         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7124         and Qenvironment_variable_encoding for cleaner code.
7125
7126         * bufslots.h:
7127         Remove dedicated-frame; in lisp.
7128
7129         * bytecode.c (funcall_compiled_function):
7130         [1].
7131
7132         * bytecode.c (syms_of_bytecode):
7133         [2].
7134
7135         * console-msw.c:
7136         * console-msw.c (mswindows_show_console): Rewrote.
7137
7138         * console-msw.c (Fmswindows_debugging_output): New.
7139         Sends to OutputDebugString (special MSWin debugger interface).
7140
7141         * console-msw.c (Fmswindows_message_box):
7142         Fixed stupid bugs so it works when called from kill-emacs.
7143
7144         * console-msw.c (syms_of_console_mswindows):
7145         Declare Fmswindows_debugging_output.
7146
7147         * console-msw.h:
7148         New MSWin prototypes.
7149
7150         * console-msw.h (struct mswindows_frame):
7151         New entry last-click-mods for improved button-modifier support.
7152
7153         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7154         New struct entry `popup' with corresponding accessor.
7155
7156         * console-x.c:
7157         * console-x.c (split_up_display_spec):
7158         * console-x.c (get_display_arg_connection):
7159         * console-x.c (x_semi_canonicalize_console_connection):
7160         * console-x.c (x_canonicalize_device_connection):
7161         [[[6]]]: Change char to more specific type.
7162         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7163
7164         * console-x.c (x_semi_canonicalize_console_connection):
7165         * console-x.c (x_canonicalize_device_connection):
7166         [[[9]]]: Fix up error signalling to use new structured error system.
7167
7168         * console-x.h:
7169         [[[4]]]: Define codesys aliases:
7170         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7171         Qx_color_name_encoding, Qx_display_name_encoding.
7172
7173         * console.h (struct console_methods):
7174         New method make_dialog_box_internal supersedes older
7175         popup_dialog_box method.
7176
7177         * data.c:
7178         Define many new errors, part of new structured errors.
7179
7180         * data.c (init_errors_once_early):
7181         * data.c (syms_of_data):
7182         [2].
7183
7184         * device-msw.c (mswindows_init_device):
7185         [[[5]]]: Cleanup to support NT 3.51.
7186
7187         * device-msw.c (decode_devmode): Cleanup.
7188
7189         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7190         * device-msw.c (mswindows_handle_print_dialog_box):
7191         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7192         * device-msw.c (syms_of_device_mswindows):
7193         Delete the dialog box primitives recently introduced by Kirill and
7194         instead interface to general dialog box interface.
7195
7196         * device-x.c:
7197         * device-x.c (compute_x_app_name):
7198         * device-x.c (x_init_device):
7199         * device-x.c (Fx_valid_keysym_name_p):
7200         * device-x.c (Fx_set_font_path):
7201         [6].
7202         [7].
7203
7204         * device.h (wrap_device): New.
7205         First of its kind; meant to replace XSETDEVICE.
7206
7207         * dialog-msw.c: Many file-dialog symbols.
7208
7209         * dialog-msw.c (mswindows_register_popup_frame): New.
7210         * dialog-msw.c (mswindows_is_dialog_msg): New.
7211         For supporting kbd traversal in dialog boxes.
7212
7213         * dialog-msw.c (dialog_proc):
7214         Support hitting ESC in dialogs.
7215
7216         * dialog-msw.c (struct):
7217         Common dialog box errors.
7218
7219         * dialog-msw.c (handle_file_dialog_box): New.
7220         Add file dialog code.
7221
7222         * dialog-msw.c (handle_question_dialog_box):
7223         Redo existing code to support new question dialog syntax.
7224
7225         * dialog-msw.c (console_type_create_dialog_mswindows):
7226         We support new dialog console method.
7227
7228         * dialog-msw.c (syms_of_dialog_mswindows):
7229         * dialog-msw.c (vars_of_dialog_mswindows):
7230         New file dialog symbols, vars.
7231
7232         * dialog-x.c:
7233         * dialog-x.c (maybe_run_dbox_text_callback):
7234         * dialog-x.c (dbox_descriptor_to_widget_value):
7235         * dialog-x.c (x_make_dialog_box_internal):
7236         * dialog-x.c (console_type_create_dialog_x):
7237         Mule-ize entire file.
7238         Redo to support question dialog syntax.
7239         [6].
7240
7241         * dialog.c:
7242         * dialog.c (Fmake_dialog_box_internal):
7243         * dialog.c (syms_of_dialog):
7244         Kill old popup-dialog-box, replace with new primitive.
7245         Just call device method or signal error.
7246
7247         * eldap.c (Fldap_open):
7248         * eldap.c (Fldap_search_basic):
7249         * eldap.c (Fldap_add):
7250         * eldap.c (Fldap_modify):
7251         [1].
7252         [7].
7253
7254         * emacs.c:
7255         * emacs.c (make_arg_list_1):
7256         * emacs.c (make_arg_list):
7257         Mule-ize call to dll_init().
7258         [6].
7259         [8].
7260
7261         * emacs.c (make_argc_argv):
7262         * emacs.c (free_argc_argv):
7263         * emacs.c (init_cmdargs):
7264         * emacs.c (main_1):
7265         * emacs.c (Fkill_emacs):
7266         * emacs.c (Fdump_emacs):
7267         Update comments about what can be used in syms_* etc.
7268         Call init_win32() when necessary.
7269         Fix up MS Win dialog box in kill-buffer to actually work right.
7270         [7].
7271
7272         * eval.c:
7273         * eval.c (For):
7274         * eval.c (Fand):
7275         * eval.c (Fprogn):
7276         * eval.c (Fprog1):
7277         * eval.c (Fprog2):
7278         * eval.c (FletX):
7279         * eval.c (Flet):
7280         * eval.c (condition_case_3):
7281         * eval.c (Feval):
7282         * eval.c (function_argcount):
7283         * eval.c (funcall_lambda):
7284         [1].
7285
7286         * eval.c (type_error): New.
7287         * eval.c (maybe_type_error): New.
7288         * eval.c (continuable_type_error): New.
7289         * eval.c (maybe_continuable_type_error): New.
7290         * eval.c (type_error_with_frob): New.
7291         * eval.c (maybe_type_error_with_frob): New.
7292         * eval.c (continuable_type_error_with_frob): New.
7293         * eval.c (maybe_continuable_type_error_with_frob): New.
7294         New functions for use with structured errors.
7295
7296         * event-Xt.c:
7297         * event-Xt.c (x_event_to_emacs_event):
7298         Buttons are now modifiers too.
7299
7300         * event-Xt.c (emacs_Xt_current_event_timestamp):
7301         Implement new event method.
7302         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7303
7304         * event-msw.c:
7305         * event-msw.c (ntpipe_shove_writer): [5].
7306         * event-msw.c (mswindows_enqueue_mouse_button_event):
7307         * event-msw.c (mswindows_drain_windows_queue):
7308         * event-msw.c (mswindows_wnd_proc): [7].
7309         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7310         * event-msw.c (mswindows_modifier_state):
7311         Throughout: support new button modifiers.
7312
7313         * event-msw.c (emacs_mswindows_current_event_timestamp):
7314         Implement new event method.
7315         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7316
7317         * event-stream.c:
7318         * event-stream.c (event_stream_current_event_timestamp): New.
7319         * event-stream.c (maybe_kbd_translate): New functionality.
7320         * event-stream.c (vars_of_event_stream):
7321         Document new kbd-translate-table functionality.
7322
7323         * event-stream.c (Fcurrent_event_timestamp): New.
7324         New primitive for use in fabricated events.
7325         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7326
7327         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7328
7329         * events.c:
7330         * events.c (Fmake_event):
7331         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7332         [1].
7333         [9].
7334
7335         * events.c (format_event_object): fix gcc warnings.
7336
7337         * events.c (Fevent_timestamp): Document new primitives.
7338
7339         * events.c (TIMESTAMP_HALFSPACE): New.
7340
7341         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7342         comparing timestamps correctly (half-space algorithm).
7343
7344         * events.c (Fevent_modifier_bits): Doc fix.
7345
7346         * events.c (Fevent_modifiers): Major doc addition.
7347         * events.c (event_x_y_pixel_internal): Typo fix.
7348         * events.c (syms_of_events): Declare new primitives.
7349
7350         * events.h:
7351         Update long comment for button modifiers, timestamps.
7352
7353         * events.h (struct event_stream):
7354         New current_event_timestamp method.
7355
7356         * extents.c:
7357         * extents.c (extent_in_region_p):
7358         * extents.c (decode_extent):
7359         * extents.c (Fset_extent_parent):
7360         * extents.c (decode_map_extents_flags):
7361         Fix gcc warnings.
7362         [9].
7363
7364         * extents.c (struct extent_at_arg):
7365         * extents.c (decode_extent_at_flag):
7366         * extents.c (extent_at_mapper):
7367         * extents.c (extent_at_bytind):
7368         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7369         * extents.c (Fextents_at): New primitive. [9].
7370         * extents.c (symbol_to_glyph_layout): [9].
7371         Support new primitive `extents-at'.
7372
7373
7374         * extents.c (get_text_property_bytind):
7375         extent_at_bytind has another arg.
7376         [9].
7377
7378         * extents.c (syms_of_extents): New primitive.
7379
7380         * file-coding.c (Fmake_coding_system): [1].
7381         * file-coding.c (subsidiary_coding_system): fix gcc warning
7382         * file-coding.c (syms_of_file_coding): [2].
7383
7384         * fileio.c (Fexpand_file_name):
7385         * fileio.c (Fsysnetunam):
7386         * fileio.c (Ffile_exists_p):
7387         * fileio.c (Ffile_executable_p):
7388         * fileio.c (Fverify_visited_file_modtime):
7389         Clean up GCPROing.
7390
7391         * fileio.c (syms_of_fileio): [2].
7392
7393         * filelock.c (lock_file_1):
7394         * filelock.c (current_lock_owner):
7395         * filelock.c (lock_if_free):
7396         * filelock.c (lock_file):
7397         * filelock.c (unlock_file):
7398         Clean up GCPROing.
7399
7400         * fns.c (concat): Fix gcc warning.
7401
7402         * fns.c (Fmember):
7403         * fns.c (Fold_member):
7404         * fns.c (Fmemq):
7405         * fns.c (Fold_memq):
7406         * fns.c (memq_no_quit):
7407         * fns.c (Fassoc):
7408         * fns.c (Fold_assoc):
7409         * fns.c (Fassq):
7410         * fns.c (Fold_assq):
7411         * fns.c (assq_no_quit):
7412         * fns.c (Frassoc):
7413         * fns.c (Fold_rassoc):
7414         * fns.c (Frassq):
7415         * fns.c (Fold_rassq):
7416         * fns.c (rassq_no_quit):
7417         * fns.c (Fdelete):
7418         * fns.c (Fold_delete):
7419         * fns.c (Fdelq):
7420         * fns.c (Fold_delq):
7421         * fns.c (delq_no_quit):
7422         * fns.c (Fremassoc):
7423         * fns.c (Fremassq):
7424         * fns.c (remassq_no_quit):
7425         * fns.c (Fremrassoc):
7426         * fns.c (Fremrassq):
7427         * fns.c (remrassq_no_quit):
7428         * fns.c (Freverse):
7429         * fns.c (mapcar1):
7430         [1].
7431
7432         * frame-msw.c (mswindows_init_frame_1):
7433         * frame-msw.c (mswindows_delete_frame):
7434         Register popups with dialog code so keyboard traversing works.
7435
7436         * frame-tty.c (tty_raise_frame_no_select): [1].
7437
7438         * frame-x.c:
7439         * frame-x.c (x_set_frame_text_value):
7440         * frame-x.c (x_set_frame_properties):
7441         * frame-x.c (x_create_widgets):
7442         [7].
7443
7444         * frame.c:
7445         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7446
7447         * frame.h (wrap_frame): New.
7448         Macro like wrap_device.
7449
7450         * general.c:
7451         * general.c (SYMBOL):
7452         * general.c (syms_of_general):
7453         Major reorg.  This is now just a wrapper and symbols themselves
7454         are listed in general-slots.h.
7455
7456         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7457         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7458
7459         * glyphs-msw.c (mswindows_native_layout_instantiate):
7460         Add DS_CONTROL so keyboard traversal will work.
7461
7462         * glyphs-widget.c:
7463         * glyphs-widget.c (syms_of_glyphs_widget):
7464         Move some symbols to general-slots.h.
7465
7466         * glyphs-x.c:
7467         * glyphs-x.c (xbm_instantiate_1):
7468         * glyphs-x.c (x_xbm_instantiate):
7469         * glyphs-x.c (x_xface_instantiate):
7470         * glyphs-x.c (autodetect_instantiate):
7471         * glyphs-x.c (cursor_font_instantiate):
7472         * glyphs-x.c (x_update_widget):
7473         * glyphs-x.c (x_widget_instantiate):
7474         * glyphs.c (bitmap_to_lisp_data):
7475         * glyphs.c (pixmap_to_lisp_data):
7476         [7].
7477
7478         * glyphs.c (syms_of_glyphs):
7479         [2].
7480
7481         * gui-x.c:
7482         * gui-x.c (print_widget_value):
7483         * gui-x.c (menu_separator_style_and_to_external):
7484         * gui-x.c (add_accel_and_to_external):
7485         * gui-x.c (button_item_to_widget_value):
7486         * gui-x.c (gui_items_to_widget_values_1):
7487         * gui-x.c (gui_items_to_widget_values):
7488         * gui-x.c (syms_of_gui_x):
7489         * gui-x.c (vars_of_gui_x):
7490         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7491         [9].
7492
7493         * gui-x.h:
7494         Muleize, prototype changes matching gui-x.c.
7495
7496         * gui.c:
7497         * gui.c (separator_string_p):
7498         * gui.c (gui_item_add_keyval_pair):
7499         * gui.c (make_gui_item_from_keywords_internal):
7500         * gui.c (signal_too_long_error):
7501         * gui.c (parse_gui_item_tree_item):
7502         * gui.c (syms_of_gui):
7503         * gui.c (vars_of_gui):
7504         * gui.h:
7505         menu-no-selection-hook moved here (used by MSWin).
7506         Move some symbols to general-slots.h.
7507         [6].
7508         [9].
7509
7510         * insdel.c (get_buffer_pos_char):
7511         * insdel.c (get_buffer_range_char):
7512         Add GC comments.
7513
7514         * keymap.c (keymap_lookup_directly):
7515         * keymap.c (keymap_store):
7516         * keymap.c (ensure_meta_prefix_char_keymapp):
7517         * keymap.c (describe_map):
7518         * keymap.h:
7519         Support new button modifiers.
7520
7521         * lisp-disunion.h (wrap_object):
7522         * lisp-disunion.h (XSETOBJ):
7523         Rename make_obj to wrap_object.
7524
7525         * lisp-union.h:
7526         * lisp-union.h (make_int):
7527         * lisp-union.h (make_char):
7528         Support wrap_object.
7529
7530         * lisp.h:
7531         * lisp.h (LIST_LOOP):
7532         * lisp.h (EXTERNAL_LIST_LOOP):
7533         * lisp.h (LIST_LOOP_2):
7534         * lisp.h (EXTERNAL_LIST_LOOP_1):
7535         * lisp.h (EXTERNAL_LIST_LOOP_2):
7536         * lisp.h (EXTERNAL_LIST_LOOP_3):
7537         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7538         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7539         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7540         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7541         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7542         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7543         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7544         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7545         * lisp.h (struct Lisp_Symbol):
7546         * lisp.h (maybe_continuable_error_with_frob):
7547         Fix up section comments.
7548         Add new types for char to indicate usage.
7549         Delete symbols auto-generated from general-slots.h.
7550         Add prototypes for structured error functions.
7551         Add long comments describing looping macros and change interface
7552         so that lvalues are automatically declared.
7553         Add NO_DECLARE macro in case callers want to declare lvalues
7554         themselves.
7555
7556         * lread.c (read_syntax_error):
7557         * lread.c (continuable_read_syntax_error):
7558         * lread.c (read_structure):
7559         * lread.c (sequence_reader):
7560         * lread.c (read_list_conser):
7561         * lread.c (read_compiled_function):
7562         Rename syntax_error and continuable_syntax_error to avoid clash
7563         with same-named structured error functions.
7564
7565         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7566         * menubar-msw.c (populate_menu_add_item):
7567         * menubar-msw.c (populate_or_checksum_helper):
7568         [5].
7569         [9].
7570
7571         * menubar-x.c:
7572         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7573         Mule-ize whole file.
7574
7575         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7576
7577         * mule-charset.c (Fmake_charset):
7578         * mule-wnnfns.c (Fwnn_set_param):
7579         [1].
7580
7581         * ntproc.c (create_child):
7582         * ntproc.c (Fwin32_set_current_locale):
7583         Add comments portending doom.
7584
7585         * objects-msw.c:
7586         * objects-msw.c (old_font_enum_callback_2):
7587         * objects-msw.c (font_enum_callback_1):
7588         * objects-msw.c (mswindows_enumerate_fonts):
7589         [5].
7590
7591         * objects-x.c:
7592         * objects-x.c (allocate_nearest_color):
7593         * objects-x.c (x_parse_nearest_color):
7594         * objects-x.c (x_initialize_color_instance):
7595         * objects-x.c (x_print_color_instance):
7596         * objects-x.c (x_finalize_color_instance):
7597         * objects-x.c (x_valid_color_name_p):
7598         * objects-x.c (x_initialize_font_instance):
7599         * objects-x.c (x_print_font_instance):
7600         * objects-x.c (valid_x_font_name_p):
7601         * objects-x.c (truename_via_FONT_prop):
7602         * objects-x.c (truename_via_random_props):
7603         * objects-x.c (truename_via_XListFonts):
7604         * objects-x.c (x_font_truename):
7605         * objects-x.c (x_font_instance_truename):
7606         * objects-x.c (x_font_instance_properties):
7607         * objects-x.c (x_list_fonts):
7608         * objects-x.c (x_find_charset_font):
7609         Mule-ize entire file.
7610         [7].
7611
7612         * objects-x.h:
7613         Mule-verify.
7614
7615         * print.c:
7616         * print.c (std_handle_out_external):
7617         * print.c (debug_print_no_newline):
7618         * print.c (syms_of_print):
7619         Output to all debugger kinds in debug-print.
7620         Fix console-output code under MSWin to actually work.
7621
7622         * process-nt.c (send_signal):
7623         * process-nt.c (nt_create_process):
7624         Use newer Unicode macros.
7625
7626         * process-unix.c (unix_create_process):
7627         * process-unix.c (unix_canonicalize_host_name):
7628         * process-unix.c (unix_open_network_stream):
7629         [7].
7630
7631         * scrollbar-x.c:
7632         Mule-verify.
7633
7634         * search.c (syms_of_search):
7635         [2].
7636
7637         * select-msw.c (mswindows_destroy_selection):
7638         Use LIST_LOOP_2.
7639
7640         * select-x.c (symbol_to_x_atom):
7641         [7].
7642
7643         * select.c (syms_of_select):
7644         [2].
7645
7646         * sound.c (Fplay_sound_file):
7647         [7].
7648
7649         * specifier.c:
7650         * specifier.c (decode_specifier_type):
7651         * specifier.c (Fvalid_specifier_locale_type_p):
7652         * specifier.c (check_valid_locale_or_locale_type):
7653         * specifier.c (decode_locale):
7654         * specifier.c (decode_locale_type):
7655         * specifier.c (decode_locale_list):
7656         * specifier.c (check_valid_domain):
7657         * specifier.c (decode_specifier_tag_set):
7658         * specifier.c (Fcanonicalize_tag_set):
7659         * specifier.c (Fdefine_specifier_tag):
7660         * specifier.c (Fspecifier_tag_predicate):
7661         * specifier.c (check_valid_inst_list):
7662         * specifier.c (check_valid_spec_list):
7663         * specifier.c (decode_how_to_add_specification):
7664         * specifier.c (check_modifiable_specifier):
7665         * specifier.c (specifier_add_spec):
7666         * specifier.c (boolean_validate):
7667         * specifier.c (display_table_validate):
7668         [9].
7669
7670         * specifier.c (syms_of_specifier):
7671         Move some symbols to general-slots.h.
7672         [2].
7673
7674         * symbols.c:
7675         * symbols.c (Fmapatoms):
7676         * symbols.c (Fapropos_internal):
7677         Add GCPROs.
7678
7679         * symbols.c (set_default_buffer_slot_variable):
7680         * symbols.c (set_default_console_slot_variable):
7681         [1].
7682
7683         * symbols.c (defsymbol_massage_name_1):
7684         * symbols.c (defkeyword_massage_name):
7685         * symbols.c (deferror_1):
7686         * symbols.c (deferror):
7687         * symbols.c (deferror_massage_name_and_message):
7688         * symeval.h:
7689         * symeval.h (DEFSYMBOL):
7690         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7691
7692         * symbols.c (syms_of_symbols):
7693         [2].
7694
7695         * symsinit.h:
7696         * symsinit.h (init_win32): New.
7697         Also new is syms_of_dialog_mswindows.
7698
7699         * syswindows.h:
7700         Add new Unicode macros, missing Cygwin wide-char functions,
7701         convenience conversion macros for Qmswindows_tstr, macros for
7702         encapsulating required MSWin <-> Cygwin filename conversions,
7703         prototype for dynamically-extracted (not in NT 3.51) functions.
7704
7705         * toolbar-x.c:
7706         Mule-verify.
7707
7708         * tooltalk.c (Fadd_tooltalk_message_arg):
7709         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7710         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7711         [7].
7712
7713         * tooltalk.c (syms_of_tooltalk):
7714         [2].
7715
7716         * unexnt.c:
7717         * unexnt.c (unexec):
7718         Fix up headers, declaration of unexec() to be more standard.
7719
7720 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7721
7722         * offix.h: Revert change to guard macros - they're used in offix.c!
7723
7724 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7725
7726         * lisp.h: Defsubred Fdelete.
7727
7728         * console-msw.h:  (msprinter_default_printer): Added.
7729
7730         * console-msw.c (msprinter_canonicalize_console_connection):
7731         (msprinter_canonicalize_device_connection): Added.
7732
7733         * device-msw.c (msprinter_default_printer):
7734         (Fmswingows_get_default_printer):
7735         (signal_enum_priner_error):
7736         (Fmswingows_printer_list): Added.
7737
7738 2000-07-19  Martin Buchholz <martin@xemacs.org>
7739
7740         * XEmacs 21.2.35 is released.
7741
7742 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7743
7744         * select-x.c (x_handle_selection_request):
7745         Text selected in xemacs and pasted into xterm failed to appear.
7746         Spelling fixes and cosmetic changes.
7747
7748 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7749
7750         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7751         XEmacs frame (fix for doubling chars in dialog boxes).
7752
7753 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7754
7755         * select.c (select_convert_in, select_convert_out):
7756         Don't call intern() every time.
7757
7758         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7759         * select.c (vars_of_select): Initialise them.
7760
7761 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7762
7763         * select.c (selection-coercible-types): New.
7764
7765         * select.c (own-selection-internal):
7766         * select.c (get-selection-internal):
7767         MULE bug fix - these should default to COMPOUND_TEXT and not
7768         STRING for MULE. I think.
7769
7770         * select.c (select_convert_out): Use selection-coercible-types
7771         to find types that we can attempt to perform coercions on.
7772
7773 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7774
7775         * mule-wnnfns.c:
7776         * mule-canna.c:
7777         Add coding: cookie to identify encoding.
7778
7779         * mule-canna.c (CANNA_mode_keys): make static.
7780         Use proper prototypes, even for functions of no arguments.
7781         Remove external prototype for Fding().
7782
7783         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7784
7785         * select.c (syms_of_select): Add missing DEFSUBR.
7786
7787 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7788
7789         * select.c (get_selection_internal, own_selection_internal):
7790         Make the type default to STRING, rather than placing a nil type
7791         into Vselection_alist.
7792
7793 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7794
7795         * gpmevent.c (tty_selection_exists_p):
7796         * gpmevent.c (tty_own_selection):
7797         Updated parameter lists.
7798
7799 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7800
7801         * select.h (selection-alist): Removed declaration.
7802
7803         * select.h (get_local_selection):
7804         * select.c (get_local_selection):
7805         Made static.
7806
7807         * select.h (convert_selection): Removed declaration.
7808         * select.c (convert_selection): Removed.
7809         This function belongs in Lisp.
7810
7811         * select.h (select_convert_in): Declare.
7812         * select.h (select_convert_out): Declare.
7813         * select.c (select_convert_in): New.
7814         * select.c (select_convert_out): New.
7815         New conversion functions for other files to call.
7816
7817         * select.h (select_notify_buffer_kill): Declare.
7818         * select.c (select_notify_buffer_kill): New.
7819         New functions that get called from kill-buffer.
7820
7821         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7822         X-specific lisp code.
7823
7824         * select.h: Declare some of the lisp-visible functions for
7825         external use.
7826
7827         * select.c (clean_local_selection_data): Removed. This was
7828         a disgusting function, and previously should have been in
7829         select-x.c in any case. The functionality is now provided
7830         in select-convert-from-integer (select.el).
7831
7832         * select.c (available-selection-types): Fixed stupidity where
7833         INTEGER and ATOM got added twice. Also add STRING when we see an
7834         extent.
7835
7836         * select.c (get-selection-internal): Removed symbol stripping. No
7837         longer causes conversion when data comes from the internal cache.
7838
7839         * select.c (syms_of_select): Added new functions.
7840
7841         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7842         error checking - previously this called abort!
7843
7844         * select-x.c (x_own_selection): Changed comment.
7845
7846         * select-x.c (x_handle_selection_request): Use select_convert_out.
7847         Don't mess with selection-alist; it's an internal variable of select.c.
7848
7849         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7850
7851         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7852         rather than messing with selection-alist.
7853
7854         * select-msw.c (mswindows_get_foreign_selection):
7855         Use TO_INTERNAL_FORMAT rather than hacking.
7856
7857 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7858
7859         * process-unix.c (unix_open_multicast_group):
7860         (unix_open_multicast_group): Remove useless casts.
7861
7862 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7863
7864         * sound.c (Fplay_sound): Fix `unused variable' warning.
7865
7866         * emacs.c (main): Use correct type for _environ on SCO5.
7867
7868 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7869
7870         * console.h (own_selection_method):
7871         * console.h (selection_exists_p_method):
7872         * console.h (available_selection_types_method): New.
7873         * console.h (register_selection_data_type_method): New.
7874         * console.h (selection_data_type_name): New.
7875
7876         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7877         function & alist to track GlobalAlloc()'d handles that need
7878         releasing when the clipboard data gets replaced or emptied.
7879
7880         * event-msw.c (mswindows_wnd_proc): Call it.
7881
7882         * lisp.h, general.c (Qappend): New symbol representing a
7883         `how-to-add' mode.
7884
7885         * select.c (own-selection-internal):
7886         * select.c (selection-exists-p):
7887         * select.c (available-selection-types): New.
7888         * select.c (register-selection-data-type): New.
7889         * select.c (selection-data-type-name): New.  New functions to deal
7890         with device-specific selection data formats.
7891         * select.c (selection-converter-out-alist): Renamed.
7892         * select.c (selection-converter-in-alist): New.
7893         * select.c (selection-appender-alist): New.  Added new alists.
7894         * select.c (syms_of_select, vars_of_select): Added new symbols &
7895         variables.
7896         * select.c (get_local_selection): Split.
7897         * select.c: Removed spurious type checking - selections may now be
7898         of any type, not just strings.
7899         * select.c (own-selection-internal):
7900
7901         * select.h, select.c (convert_selection): New. Created
7902         convert_selection() function based on get_local_selection().
7903         * select.h, select.c (QCF_*): New symbols representing mswindows
7904         clipboard formats.
7905         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7906         symbols representing `how-to-add' modes.
7907
7908         * select-msw.c (x_sym_p): New.
7909         * select-msw.c (symbol_to_ms_cf): New.
7910         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7911         symbols & clipboard formats. Can also handle string names.
7912         * select-msw.c (mswindows_own_selection):
7913         * select-msw.c (mswindows_selection_exists_p):
7914         Added `data-type' parameter. Use it.
7915         * select-msw.c (mswindows_available_selection_types): New.
7916         * select-msw.c (mswindows_register_selection_data_type): New.
7917         * select-msw.c (mswindows_selection_data_type_name): New.
7918         * select-msw.c (mswindows_own_selection):
7919         * select-msw.c (mswindows_get_foreign_selection):
7920         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7921         * select-msw.c (console_create_select_mswindows): Added new methods.
7922         * select-msw.c (mswindows_destroy_selection): New.
7923         * select-msw.c (Vhandle_alist): New list.
7924         * select-msw.c (mswindows_own_selection):
7925
7926         * select-x.c (x_own_selection):
7927         * select-x.c (x_selection_exists_p):
7928         * select-x.c: Added some comments about maybe using new
7929         functionality.
7930         * select-x.c (x_own_selection):
7931
7932         * specifier.c: Remove definition of Qappend (now in general.c)
7933         * specifier.c (syms_of_specifier): Remove Qappend.
7934
7935 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7936
7937         * config.h.in: Add socklen_t.
7938
7939         * s/decosf4-0.h: No special compiler flags needed or desired.
7940         In particular, undefine _BSD for DEC OSF 4.0.
7941
7942 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7943
7944         * redisplay-msw.c (msprinter_frame_output_end): Added.
7945         (console_type_create_redisplay_mswindows): Referred the above.
7946
7947         * frame.c (setup_frame_without_minibuffer): Do not create a
7948         default minibuffer frame on a printer device.
7949
7950         * frame-msw.c (apply_dc_geometry): Added.
7951         (msprinter_start_page):
7952         (msprinter_init_frame_3):
7953         (msprinter_eject_page): Use it.
7954
7955         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7956         and removed residual duplex and orientation properties.
7957
7958 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7959
7960         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7961
7962         * unexalpha.c: Remove system prototypes from C sources!
7963
7964 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7965
7966         * eval.c: Remove references to M-x edit-options in DEFUNs for
7967         `defvar' and `defconst'.
7968
7969 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7970
7971         * config.h.in: Remove SMART_INCLUDE hackery.
7972
7973         PostgreSQL hacking:
7974         * config.h.in: Don't use SMART_INCLUDE.
7975
7976         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7977         * inline.c: Simply #include "postgresql.h"
7978         * postgresql.c:
7979         - Don't use SMART_INCLUDE
7980         - Use simply "const".
7981         - Use standard doc string conventions.
7982         - Use correct type for result of PQstatus.
7983
7984 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7985
7986         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7987
7988         C++ compilation changes.
7989         * config.h.in (EXTERN_C): Define.
7990         * config.h.in (not): This is also a C++ keyword.
7991         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7992         * cm.c: Use EXTERN_C.
7993         * redisplay-tty.c: Use EXTERN_C.
7994         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7995
7996 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7997
7998         * general.c: Remove duplicate definition for Qfunction.
7999
8000 2000-07-08  Ben Wing  <ben@xemacs.org>
8001
8002         * device-msw.c (msprinter_init_device):
8003         * device-msw.c (sync_printer_with_devmode):
8004         * device-msw.c (handle_devmode_changes):
8005         * device-msw.c (print_dialog_worker):
8006         * device-msw.c (Fmsprinter_apply_settings):
8007         * device-msw.c (hash_devmode):
8008         * device-msw.c (Fmsprinter_settings_despecialize):
8009         use Qmswindows_tstr, not Qctext.
8010
8011         * vm-limit.c (check_memory_limits):
8012         avoid infinite loop printing warning messages.
8013
8014 2000-07-05  Craig Lanning  <lanning@scra.org>
8015
8016         * Makefile.in.in: Add support for including the Windows resources
8017         when building with the cygwin and mingw targets.
8018
8019         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8020         not set or not correct.
8021         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8022         (init_initial_directory): Don't try to use $PWD on the
8023         WIN32_NATIVE target.
8024
8025         * s\cygwin32.h:
8026         [[Add -mwindows to eliminate console window.]] not required --ben
8027         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8028         (MAIL_USE_POP): removed; now handled by configure.
8029
8030         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8031         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8032         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8033         (MAIL_USE_POP): removed; now handled by configure.
8034         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8035         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8036         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8037         constant string.
8038         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8039         up from <winsock.h> via systime.h.
8040         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8041         (getpagesize): from Dan Holmsand, added.
8042         Added #endif which was left dangling by Ben's mega patch; added
8043         comment to help prevent this in the future.
8044
8045         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8046
8047 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8048
8049         * console-msw.h (struct mswindows_device): Removed unnecessary
8050         cached device geometry values.
8051         Added update_tick and an accessor macro.
8052         (Lisp_Devmode): Added lrecord declaration.
8053         (struct msprinter_device): Contain devmode as a Lisp object.
8054         Added mswindows_get_selected_frame_hwnd();
8055
8056         * console.h (struct console_methods): Indentation nitpicking.
8057
8058         * device-msw.c (mswindows_init_device): Do not initialize geometry
8059         cache. Initialize update tick.
8060         (mswindows_device_system_metrics): Ask the device for its geometry.
8061         (global_free_2_maybe):
8062         (devmode_to_hglobal):
8063         (handle_printer_changes):
8064         (ensure_not_printing):
8065         (print_dialog_worker):
8066         (Fmsprinter_print_setup_dialog):
8067         (Fmsprinter_print_dialog):
8068         (plist_get_margin):
8069         (plist_set_margin):
8070         (Fmsprinter_page_setup_dialog): Added functions.
8071         (sync_printer_with_devmode):
8072         (handle_devmode_changes):
8073         (Fmsprinter_get_settings):
8074         (Fmsprinter_select_settings):
8075         (Fmsprinter_apply_settings):
8076         (allocate_devmode):
8077         (Fmsprinter_settings_copy):
8078         (Fmsprinter_settings_despecialize):
8079         (print_devmode):
8080         (finalize_devmode):
8081         (equal_devmode):
8082         (hash_devmode): Added functions
8083         (syms_of_device_mswindows): Init devmode lrecord class.
8084
8085         * device.h: Added an exfun for find-device.
8086
8087         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8088         geometry; although, recreate the device compatible DC.
8089
8090         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8091         (msprinter_init_frame_3):
8092         (msprinter_frame_property):
8093         (msprinter_internal_frame_property_p):
8094         (msprinter_frame_properties):
8095         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8096         print job properties (will move to device settings).
8097
8098         * lisp.h: Added symbols.
8099
8100         * general.c (syms_of_general): Declared them.
8101
8102         * hash.c (string_hash): Added.
8103
8104         * lrecord.h (lrecord_type): Added devmode lrecord type.
8105
8106 2000-07-02  Mike Sperber <mike@xemacs.org>
8107
8108         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8109         FreeBSD 4.0.
8110
8111 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8112
8113         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8114         integer.
8115
8116 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8117
8118         * data.c (Fstring_to_number): Don't recognize floating point if
8119         base is not 10.
8120
8121 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8122
8123         * glyphs-widget.c (tab_control_query_geometry):
8124         (widget_query_geometry):
8125         (button_query_geometry):
8126         * glyphs.c (text_query_geometry):
8127         Enforce type correctness.
8128
8129 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8130
8131         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8132         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8133
8134 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8135
8136         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8137         conflicts with gcc's fixincluded version of FOO.h.
8138
8139         * glyphs.h (image_instance_geometry): Remove trailing `,'
8140
8141 2000-06-08  Mike Alexander  <mta@arbortext.com>
8142
8143         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8144         (shove_thread): Don't write the same output twice
8145         (make_ntpipe_output_stream): Increase priority of shove thread
8146         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8147         chance to run
8148         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8149         it.
8150
8151 2000-06-12  Ben Wing  <ben@xemacs.org>
8152
8153         * s\mingw32.h (sigset):
8154         * s\windowsnt.h (sigset):
8155         rename msw_ to mswindows_ for consistency with general convention.
8156
8157 2000-06-12  Ben Wing  <ben@xemacs.org>
8158
8159         * console-msw.c:
8160         * console-msw.c (mswindows_get_console_hwnd):
8161         * console-msw.c (mswindows_ensure_console_allocated):
8162         * console-msw.c (mswindows_hide_console):
8163         * console-msw.c (mswindows_show_console):
8164         * console-msw.c (mswindows_ensure_console_buffered):
8165         * console-msw.c (mswindows_output_console_string):
8166         * console-msw.c (mswindows_windows9x_p):
8167         * console-msw.h:
8168         * device-msw.c (mswindows_get_workspace_coords):
8169         * device-msw.c (mswindows_device_system_metrics):
8170         * dialog-msw.c (mswindows_popup_dialog_box):
8171         * event-msw.c (mswindows_wnd_proc):
8172         * frame-msw.c (mswindows_size_frame_internal):
8173         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8174         * menubar-msw.c (displayable_menu_item):
8175         * menubar-msw.c (mswindows_char_is_accelerator):
8176         * nt.c:
8177         * nt.c (mswindows_sigset):
8178         * nt.c (mswindows_sigrelse):
8179         * nt.c (mswindows_sigpause):
8180         * nt.c (mswindows_raise):
8181         * nt.c (timer_proc):
8182         * ntproc.c:
8183         * ntproc.c (find_child_console):
8184         * ntproc.c (sys_kill):
8185         * print.c:
8186         * print.c (std_handle_out_external):
8187         * process-nt.c (find_child_console):
8188         * process-nt.c (send_signal_the_95_way):
8189         * process-nt.c (ensure_console_window_exists):
8190         * process-nt.c (nt_create_process):
8191         * syssignal.h:
8192         rename msw_ to mswindows_ for consistency with general convention.
8193
8194         * emacs.c:
8195         * dumper.c:
8196         include nt.h, not syswindows.h.
8197
8198         * nt.c (mswindows_fstat):
8199         * nt.c (mswindows_stat):
8200         prefix mswindows_ instead of attempting to directly override the
8201         library functions.  fix declarations.
8202
8203         * nt.h:
8204         include syswindows.h.  move some sysdep.h stuff here.
8205
8206         * ntheap.h:
8207         include syswindows.h, not <windows.h>.
8208
8209         * ntplay.c:
8210         clean up headers.
8211
8212         * sysdep.c:
8213         clean up headers.
8214
8215         * sysdep.c (sys_fstat):
8216         * sysdep.c (sys_stat):
8217         call mswindows versions when appropriate.
8218
8219         * sysdep.h:
8220         move mswin decls to nt.h.
8221
8222         * syswindows.h:
8223         add long comment describing appropriate use of the various windows
8224         headers.
8225
8226 2000-06-11  Ben Wing  <ben@xemacs.org>
8227
8228         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8229
8230 2000-06-10  Ben Wing  <ben@xemacs.org>
8231
8232         * Makefile.in.in (release):
8233         Correction to make sure xemacs.exe always dumped when correct.
8234
8235         * alloca.c:
8236         * balloon_help.c:
8237         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8238
8239         * buffer.c (set_buffer_internal):
8240         [[[[2]]]]: Remove HAVE_FEP code.
8241
8242         * buffer.c (init_initial_directory):
8243         [3].
8244
8245         * bytecode.c:
8246         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8247         individual files.
8248
8249         * callproc.c:
8250         * callproc.c (call_process_cleanup):
8251         * callproc.c (Fold_call_process_internal):
8252         * callproc.c (child_setup):
8253         * callproc.c (getenv_internal):
8254         * callproc.c (init_callproc):
8255         * callproc.c (vars_of_callproc):
8256         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8257         __CYGWIN32__ -> CYGWIN.
8258         DOS_NT -> WIN32_NATIVE.
8259         Remove MSDOS support/references, converting to WIN32_NATIVE
8260           where correct.
8261         __MINGW32__ -> MINGW.
8262         Fix windows.h includes.
8263         Remove bogus HAVE_NTGUI.
8264
8265         * config.h.in:
8266         [2].
8267
8268         * console-msw.c:
8269         mswindows_message_outputted added for use in allowing startup
8270         errors on the console to be seen.
8271
8272         * console-msw.c (msw_ensure_console_allocated):
8273         * console-msw.c (msw_output_console_string):
8274         * console-msw.c (DHEADER):
8275         * console-msw.c (DOPAQUE_DATA):
8276         * console-msw.c (DEVENT):
8277         * console-msw.c (DCONS):
8278         * console-msw.c (DCONSCDR):
8279         * console-msw.c (DSTRING):
8280         * console-msw.c (DVECTOR):
8281         * console-msw.c (DSYMBOL):
8282         * console-msw.c (DSYMNAME):
8283         Fix warnings.
8284
8285         * console-stream.c (stream_init_console):
8286         Fix text/binary problems.
8287
8288         * device-msw.c:
8289         * device-msw.c (mswindows_finish_init_device):
8290         * device-msw.c (mswindows_delete_device):
8291         [1].
8292
8293         * device.c (handle_asynch_device_change):
8294         [3].
8295
8296         * dgif_lib.c:
8297         * dgif_lib.c (DGifOpenFileName):
8298         * dgif_lib.c (DGifOpenFileHandle):
8299         * dgif_lib.c (DGifGetLine):
8300         * dgif_lib.c (DGifGetPixel):
8301         Added config.h/lisp.h, fix up includes.
8302         [1].
8303
8304         * dired-msw.c:
8305         [4].
8306
8307         * dired.c:
8308         * dired.c (file_name_completion):
8309         * dired.c (Ffile_attributes):
8310         * dired.c (syms_of_dired):
8311         [1].
8312
8313         * dumper.c:
8314         * dumper.c (pdump_file_unmap):
8315         * dumper.c (pdump_load):
8316         [1].
8317
8318         * editfns.c:
8319         * editfns.c (Ftemp_directory):
8320         * editfns.c (user_login_name):
8321         * editfns.c (Fuser_real_login_name):
8322         * editfns.c (get_home_directory):
8323         [1].
8324
8325         * elhash.c (finish_marking_weak_hash_tables):
8326         [[[[5]]]]: Fix GCC warnings.
8327
8328         * emacs.c:
8329         * emacs.c (mswindows_handle_hardware_exceptions):
8330         * emacs.c (make_arg_list_1):
8331         * emacs.c (main_1):
8332         * emacs.c (Fkill_emacs):
8333         * emacs.c (Fdump_emacs):
8334         [1].
8335         Fix problems with nested crashes, add long comment.
8336
8337         * event-Xt.c (init_event_Xt_late):
8338         [1].
8339
8340         * event-msw.c:
8341         * event-msw.c (mswindows_dde_callback):
8342         * event-msw.c (mswindows_handle_sticky_modifiers):
8343         * event-msw.c (mswindows_wnd_proc):
8344         [1].
8345         [5].
8346
8347         * events.c (character_to_event):
8348         [1].
8349
8350         * fileio.c:
8351         * fileio.c (Ffile_name_directory):
8352         * fileio.c (Ffile_name_nondirectory):
8353         * fileio.c (directory_file_name):
8354         * fileio.c (Fexpand_file_name):
8355         * fileio.c (Fsubstitute_in_file_name):
8356         * fileio.c (Ffile_name_absolute_p):
8357         * fileio.c (check_executable):
8358         * fileio.c (Ffile_readable_p):
8359         * fileio.c (Ffile_accessible_directory_p):
8360         * fileio.c (Ffile_modes):
8361         * fileio.c (Funix_sync):
8362         * fileio.c (vars_of_fileio):
8363         [1]. [4].
8364
8365         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8366
8367         Expand getdefdir defn.
8368         Fix bogus rename() comment.
8369
8370         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8371         to use standard XEmacs include files, e.g. sysfile.h, rather
8372         than system-specific includes.
8373
8374         * fns.c:
8375         * fns.c (Fsubseq):
8376         [5]. [6].
8377
8378         * frame.c (vars_of_frame):
8379         [1].
8380
8381         * getloadavg.c:
8382         * getloadavg.c (getloadavg):
8383         [1]. [6].
8384         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8385         (We don't use it elsewhere in the code; just add a comment.)
8386
8387         * gif_io.c:
8388         [6].
8389         Add config.h.
8390
8391         * glyphs-msw.c:
8392         * glyphs-msw.c (mswindows_resource_instantiate):
8393         [1].
8394
8395         * glyphs-x.c (x_native_layout_instantiate):
8396         [5].
8397
8398         * gui-msw.c (Fmswindows_shell_execute):
8399         [1].
8400
8401         * insdel.c:
8402         [4].
8403
8404         * lisp.h:
8405         [4]. [5].
8406
8407         * lread.c (locate_file_in_directory_mapper):
8408         [1].
8409
8410         * lstream.c:
8411         [4].
8412
8413         * mem-limits.h:
8414         * mem-limits.h (get_lim_data):
8415         [1].
8416
8417         * menubar-msw.c:
8418         [4].
8419
8420         * ndir.h:
8421         [1].
8422
8423         * nt.c:
8424         * nt.c (getwd):
8425         * nt.c (closedir):
8426         * nt.c (rva_to_section):
8427         * nt.c (mswindows_executable_type):
8428         [1]. [6].
8429         Fix closedir() defn.
8430
8431         * nt.h:
8432         [[[[8]]]]: *_OK defs moved to sysfile.h.
8433
8434         * ntproc.c:
8435         [6]. [7].
8436
8437         * objects-x.c:
8438         [4].
8439
8440         * print.c:
8441         * print.c (std_handle_out_external):
8442         [1]. [4].
8443
8444         * process-nt.c:
8445         * process-nt.c (nt_create_process):
8446         [6].
8447         try to fix process quoting somewhat.
8448
8449         * process-unix.c (unix_create_process):
8450         [1].
8451
8452         * process.c:
8453         * process.c (vars_of_process):
8454         Add Vnull_device.
8455
8456         * process.h:
8457         [1].
8458
8459         * realpath.c:
8460         * realpath.c (xrealpath):
8461         [1].
8462
8463         * redisplay-tty.c (init_tty_for_redisplay):
8464         [3].
8465
8466         * redisplay.c:
8467         [4]. [6].
8468
8469         * scrollbar-msw.c:
8470         [4].
8471
8472         * sheap.c:
8473         * sheap.c (more_static_core):
8474         * sheap.c (report_sheap_usage):
8475         [5]. [6].
8476
8477         * signal.c:
8478         * signal.c (alarm_signal):
8479         [1]. [6].
8480
8481         * sound.c:
8482         [6].
8483
8484         * strftime.c:
8485         * strftime.c (zone_name):
8486         [1]. [5].
8487
8488         * symsinit.h (init_sunpro):
8489         [1].
8490
8491         * syscommctrl.h:
8492         commctrl.h not in Cygwin b20.1.
8493
8494         * sysdep.c:
8495         * sysdep.c (endif):
8496         * sysdep.c (sys_subshell):
8497         * sysdep.c (init_baud_rate):
8498         * sysdep.c (emacs_get_tty):
8499         * sysdep.c (emacs_set_tty):
8500         * sysdep.c (tty_init_sys_modes_on_device):
8501         * sysdep.c (init_system_name):
8502         * sysdep.c (sys_open):
8503         * sysdep.c (interruptible_open):
8504         * sysdep.c (sys_fopen):
8505         * sysdep.c (sys_mkdir):
8506         * sysdep.c (sys_rename):
8507         * sysdep.c (get_process_times_1):
8508         [1]. [6].
8509
8510         * sysdep.h:
8511         [1].
8512
8513         * sysdir.h:
8514         * sysdir.h (DIRENTRY_NONEMPTY):
8515         [1]. [6].
8516
8517         * sysdll.c (dll_init):
8518         * sysdll.h:
8519         [1].
8520
8521         * sysfile.h:
8522         [1]. [6]. [8].
8523         added text/binary defs.
8524
8525         * sysfloat.h:
8526         [1].
8527
8528         * sysproc.h:
8529         * sysproc.h (EDESTADDRREQ):
8530         * sysproc.h (poll_fds_for_input):
8531         [1]. [6].
8532
8533         * syspwd.h:
8534         [6].
8535
8536         * syssignal.h:
8537         [1].
8538
8539         * systime.h:
8540         [1]. [6].
8541
8542         * systty.h:
8543         [1].
8544
8545         * syswindows.h:
8546         [1].
8547         Always define WIN32_LEAN_AND_MEAN.
8548
8549         * unexcw.c (unexec):
8550         [5].
8551
8552         * unexec.c:
8553         * unexec.c (copy_text_and_data):
8554         * unexec.c (adjust_lnnoptrs):
8555         [1].
8556
8557         * unexnt.c:
8558         * unexnt.c (_start):
8559         [1].
8560
8561 2000-06-07  Ben Wing  <ben@xemacs.org>
8562
8563         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8564         was used only as a model.  We've long since extracted any useful
8565         logic or code out of this. (I just did an exhaustive search.)
8566
8567         * s\msdos.h: Removed.
8568
8569         * s\windows95.h: Removed.
8570
8571 2000-06-10  Ben Wing  <ben@xemacs.org>
8572
8573         * s\cygwin32.h:
8574         [1]. [5].
8575         Don't use extern with fun defs.
8576
8577         * s\mingw32.h:
8578         [1]. [7].
8579         Remove nt\inc include.
8580         Remove getdisk, getdefdir. (The former is unused, the latter
8581         expanded in fileio.h.)
8582
8583         * s\windowsnt.h:
8584         * s\windowsnt.h (WIN32_NATIVE):
8585         * s\windowsnt.h (HAVE_STRCASECMP):
8586         [1]. [7].
8587         Add long comment about preprocessor changes.
8588         Remove getdisk, getdefdir. (The former is unused, the latter
8589         expanded in fileio.h.)
8590
8591 2000-06-10  Ben Wing  <ben@xemacs.org>
8592
8593         * m\arm.h:
8594         * m\delta.h:
8595         * m\intel386.h:
8596         * m\sequent.h:
8597         * m\template.h:
8598         * m\windowsnt.h:
8599         [1].
8600         Remove bogus/unused NO_SOCK_SIGIO.
8601
8602 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8603
8604         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8605         not an Emchar.
8606
8607 2000-06-04  Mike Sperber <mike@xemacs.org>
8608
8609         * casetab.c (set_case_table): For `set-standard-case-table',
8610         actually deposit the new case tables where the rest of XEmacs can
8611         see them.
8612
8613 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8614
8615         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8616
8617 2000-06-05  Ben Wing  <ben@xemacs.org>
8618
8619         * callproc.c (child_setup): Don't do close_load_descs() under
8620         MS Windows.  Put in a comment explaining why.
8621
8622 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8623
8624         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8625         Toolkit shell" which breaks `kill-compilation' on Windows NT
8626         native, retaining STDERR handling improvements.
8627
8628 2000-06-01  Andreas Jaeger  <aj@suse.de>
8629
8630         * s/s390.h: Support for S390, based on a patch by Martin
8631         Schwidefsky <schwidefsky@de.ibm.com>.
8632
8633 2000-05-30  Andy Piper  <andy@xemacs.org>
8634
8635         * window.c (allocate_window):
8636         (make_dummy_parent):
8637         (Fset_window_configuration): use new hashtable type.
8638
8639         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8640         (struct image_instantiator_methods):
8641         (struct Lisp_Image_Instance): make instance geometry signed.
8642
8643         * glyphs.c (instantiate_image_instantiator):
8644         (image_instance_query_geometry):
8645         (image_instance_layout):
8646         (image_instance_layout):
8647         (query_string_geometry):
8648         (text_query_geometry):
8649         (image_instantiate):
8650         (image_instantiate):
8651         (cache_subwindow_instance_in_frame_maybe):
8652         (subwindow_query_geometry): make instance geometry signed.
8653
8654         * glyphs-widget.c (widget_query_geometry):
8655         (widget_layout):
8656         (button_query_geometry):
8657         (tree_view_query_geometry):
8658         (tab_control_query_geometry):
8659         (layout_query_geometry):
8660         (layout_layout):
8661         (native_layout_layout): make instance geometry signed.
8662
8663 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8664
8665         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8666         constant.
8667
8668         * general.c (syms_of_general): Add Qfull_assoc symbol.
8669
8670         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8671         correctly.
8672         (decode_weak_list_type): Decode full-assoc type.
8673         (encode_weak_list_type): Encode full-assoc type.
8674         (Fmake_weak_list): Update doc string.
8675
8676 2000-05-30  Andy Piper  <andy@xemacs.org>
8677
8678         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8679
8680         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8681         (decode_hash_table_weakness): ditto.
8682         (Fhash_table_weakness): ditto.
8683         (Fhash_table_type): ditto.
8684         (finish_marking_weak_hash_tables): ditto.
8685         (hash_table_weakness_validate): ditto.
8686         (syms_of_elhash): ditto.
8687
8688 2000-05-28  Martin Buchholz <martin@xemacs.org>
8689
8690         * XEmacs 21.2.34 is released.
8691
8692 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8693
8694         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8695         start cache.
8696         (updating_line_start_cache): Gone.
8697         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8698         generic code to force a minimum of 1 line laid out in the
8699         CMOTION_DISP case.
8700
8701 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8702
8703         * glyphs.c (instantiate_image_instantiator): Check for initialized
8704         height & width no longer special cases IMAGE_NOTHING.
8705         (nothing_instantiate): Set height and width of instance.
8706
8707 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8708
8709         * unexelf.c (unexec): Search for ".data" section.
8710         Initialize new_data2_offset from old_data_index.
8711         Remove redundant check for ElfW.
8712
8713 2000-05-23  Andy Piper  <andy@xemacs.org>
8714
8715         * glyphs.c (get_image_instantiator_governing_domain): allow more
8716         specific domains as the governing domain rather than expecting an
8717         exact match. This fixes problems with layouts.
8718
8719 2000-05-22  Andy Piper  <andy@xemacs.org>
8720
8721         * redisplay-output.c (compare_runes): check for non-images
8722
8723         * glyphs.c (set_glyph_dirty_p): ditto.
8724         (update_glyph_cachel_data): ditto.
8725
8726         * glyphs-widget.c (layout_post_instantiate): ditto.
8727         (layout_post_instantiate): ditto.
8728
8729         * event-msw.c (mswindows_wnd_proc): warning removal.
8730
8731 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8732
8733         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8734
8735         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8736
8737         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8738
8739         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8740         (mswindows_executable_type): mingw32 now has enough headers for
8741         this to work.
8742
8743 2000-05-20  Andy Piper  <andy@xemacs.org>
8744
8745         * console-msw.c (mswindows_output_last_error): ; -> ,
8746
8747 2000-05-12  Andy Piper  <andy@xemacs.org>
8748
8749         * console-msw.c (FROB): compare ints with ints.
8750
8751 2000-05-11  Andy Piper  <andy@xemacs.org>
8752
8753         * glyphs-x.c (x_finalize_image_instance): make minimal build
8754         happy.
8755
8756 2000-05-20  Ben Wing  <ben@xemacs.org>
8757
8758         * event-Xt.c:
8759         * event-Xt.c (vars_of_event_Xt):
8760         move modifier-keys-are-sticky to event-stream.c.
8761
8762         * event-msw.c:
8763         * event-msw.c (mswindows_enqueue_mouse_button_event):
8764         * event-msw.c (key_needs_default_processing_p):
8765         * event-msw.c (XEMSW_LCONTROL):
8766         * event-msw.c (mswindows_handle_sticky_modifiers):
8767         * event-msw.c (FROB):
8768         * event-msw.c (clear_sticky_modifiers):
8769         * event-msw.c (output_modifier_keyboard_state):
8770         * event-msw.c (output_alt_keyboard_state):
8771         * event-msw.c (mswindows_wnd_proc):
8772         * event-msw.c (mswindows_modifier_state):
8773         * event-msw.c (emacs_mswindows_handle_magic_event):
8774         implement sticky modifiers.
8775
8776         * event-stream.c:
8777         * event-stream.c (vars_of_event_stream):
8778         move modifier-keys-are-sticky here.
8779
8780         * lisp.h:
8781         add CHECK_FUNCTION.
8782
8783         * rangetab.c:
8784         implement map-range-table.
8785
8786
8787 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8788
8789         * redisplay-tty.c (reset_tty_modes):
8790         (tty_redisplay_shutdown): Adjust argument type to
8791         tty_frame_output_end.
8792
8793 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8794
8795         * eval.c (Fbacktrace): Don't output a line with only right
8796         parenthesis.
8797
8798 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8799
8800         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8801         (Fpq_reset_poll): Ditto.
8802
8803 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8804
8805         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8806
8807 2000-05-16  Ben Wing  <ben@xemacs.org>
8808
8809         * buffer.c:
8810         * buffer.c (dfc_convert_to/from_internal_format):
8811         * buffer.c (reinit_vars_of_buffer):
8812         Fix conversion functions to allow reentrancy.
8813
8814         * console-msw.c:
8815         * console-msw.c (mswindows_output_last_error):
8816         New fun, generally useful -- output a human-readable
8817         version of GetLastError() on the console.
8818
8819         * console-msw.h:
8820         * console-msw.h (struct mswindows_frame):
8821         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8822
8823         * console-stream.c (stream_output_begin):
8824         * console-stream.c (stream_output_end):
8825         * console-stream.c (stream_output_vertical_divider):
8826         * console-stream.c (stream_clear_region):
8827         * console-stream.c (stream_flash):
8828         * console-stream.c (console_type_create_stream):
8829         Delete blank stream methods, not needed.
8830
8831         * console.h (struct console_methods):
8832         Split begin/end methods into window and frame.
8833
8834         * event-msw.c:
8835         * event-msw.c (mswindows_handle_paint):
8836         * event-msw.c (output_alt_keyboard_state):
8837         * event-msw.c (mswindows_wnd_proc):
8838         * event-msw.c (vars_of_event_mswindows):
8839         Comment about problems with ignored-expose.
8840         Define mswindows-debug-events; not really implemented.
8841
8842         * frame-msw.c (mswindows_init_frame_1):
8843         random cleanups.
8844
8845         * glyphs-msw.c:
8846         * glyphs-msw.c (begin_defer_window_pos):
8847         * glyphs-msw.c (mswindows_unmap_subwindow):
8848         * glyphs-msw.c (mswindows_map_subwindow):
8849         * glyphs-msw.c (mswindows_resize_subwindow):
8850         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8851
8852         * glyphs.c (make_image_instance_1):
8853         Fix crash.
8854
8855         * gutter.c (Fredisplay_gutter_area):
8856         Use new begin/end methods.
8857
8858         * lisp.h (Dynarr_new2):
8859         New creation fun.
8860
8861         * redisplay-msw.c:
8862         * redisplay-msw.c (mswindows_frame_output_begin):
8863         * redisplay-msw.c (mswindows_frame_output_end):
8864         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8865         New begin/end methods -- handle DeferWindowPos.
8866
8867         * redisplay-output.c (redisplay_move_cursor):
8868         * redisplay-output.c (redraw_cursor_in_window):
8869         * redisplay-output.c (redisplay_update_line):
8870         * redisplay-output.c (redisplay_output_window):
8871         New begin/end methods.
8872
8873         * redisplay-tty.c:
8874         * redisplay-tty.c (tty_frame_output_begin):
8875         * redisplay-tty.c (tty_frame_output_end):
8876         * redisplay-tty.c (console_type_create_redisplay_tty):
8877         New begin/end methods.
8878
8879         * redisplay-x.c:
8880         * redisplay-x.c (x_window_output_begin):
8881         * redisplay-x.c (x_window_output_end):
8882         * redisplay-x.c (console_type_create_redisplay_x):
8883         New begin/end methods.
8884
8885         * redisplay.c (redisplay_frame):
8886         * redisplay.c (Fredisplay_echo_area):
8887         New begin/end methods.
8888         use MAYBE_DEVMETH for clear_frame; it may not exist.
8889
8890         * window.h (WINDOW_XFRAME):
8891         WINDOW_XFOO macros -- get locale and decode struct pointer.
8892
8893
8894 2000-05-12  Ben Wing  <ben@xemacs.org>
8895
8896         * emacs.c:
8897         * emacs.c (ensure_no_quitting_from_now_on):
8898         * emacs.c (fatal_error_signal):
8899         * emacs.c (mswindows_handle_hardware_exceptions):
8900         * emacs.c (main):
8901         * emacs.c (Fkill_emacs):
8902         * emacs.c (shut_down_emacs):
8903         * emacs.c (assert_failed):
8904         various improvements in fatal error handling.
8905
8906         * eval.c:
8907         move preparing_for_armageddon to emacs.c.
8908
8909         * lisp.h:
8910         declare fatal_error_in_progress.
8911
8912         * print.c:
8913         * print.c (std_handle_out_external):
8914         * print.c (std_handle_out_va):
8915         * print.c (stderr_out):
8916         * print.c (stdout_out):
8917         use console under mswin when no standard output.
8918         don't do code conversion during fatal error.
8919
8920         * scrollbar.c (Fscrollbar_page_up):
8921         * scrollbar.c (Fscrollbar_page_down):
8922         fix missing else.  reindent.
8923
8924 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8925
8926         Emergency fix.
8927
8928         * glyphs.h (GLYPH_CACHEL_DESCENT):
8929         (GLYPH_CACHEL_DESCENT):
8930         (GLYPH_CACHEL_DESCENT):
8931         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8932         used in case these are inline functions.
8933         Use more absurd values to error check.
8934
8935         include window.h for error check functions.
8936
8937 2000-05-11  Ben Wing  <ben@xemacs.org>
8938
8939         * cmdloop.c (Freally_early_error_handler):
8940         Display message box under windows; otherwise, message will disappear
8941         before it can be viewed.
8942
8943         * console-msw.c:
8944         * console-msw.c (Fmswindows_message_box):
8945         * console-msw.c (FROB):
8946         * console-msw.c (syms_of_console_mswindows):
8947         Define new fun `mswindows-message-box'.
8948         #### I will merge this into `popup-dialog-box'; just give me
8949         a bit of time.
8950
8951         * general.c:
8952         * general.c (syms_of_general):
8953         Some new symbols used in `mswindows-message-box'.
8954
8955         * glyphs.c:
8956         * glyphs.c (Fset_image_instance_property):
8957         put warning in this fun.
8958
8959         * glyphs.h:
8960         * glyphs.h (GLYPH_CACHEL_WIDTH):
8961         * glyphs.h (GLYPH_CACHEL_ASCENT):
8962         * glyphs.h (GLYPH_CACHEL):
8963         * glyphs.h (GLYPH_CACHEL_GLYPH):
8964         define error-checking versions to try to catch a bug i've seen --
8965         redisplay gets in an infinite loop because the glyph width of the
8966         continuation glyph is 65535.
8967
8968         * lisp.h:
8969         Extern message-box stuff.
8970
8971         * window.c (allocate_window):
8972         * window.c (make_dummy_parent):
8973         * window.c (Fset_window_configuration):
8974         Use EQUAL not EQ for subwindow caches to make them work a bit
8975         better. (Something is still very broken.)
8976
8977
8978 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8979
8980         * glyphs.c (image_instantiate): Suppress gcc warnings.
8981         (Fmake_image_instance): Fix doc string.
8982         * specifier.c (Fmake_specifier): Ditto.
8983
8984 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8985
8986         * paths.h.in (PATH_LOCK): Removed.
8987         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8988         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8989
8990 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8991
8992         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8993         Document (featurep '(and xemacs 21.02)).
8994
8995 2000-05-09  Ben Wing  <ben@xemacs.org>
8996
8997         * buffer.c (complex_vars_of_buffer):
8998         update modeline-format doc.
8999
9000         * device.h:
9001         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9002
9003         * emacs.c:
9004         timeline of all released versions of Emacs, for use in creating
9005         authorship comments and in synching up.
9006
9007         * glyphs-widget.c (image_instantiator_buttons):
9008         * glyphs-widget.c (image_instantiator_edit_fields):
9009         * glyphs-widget.c (image_instantiator_combo_box):
9010         * glyphs-widget.c (image_instantiator_scrollbar):
9011         * glyphs-widget.c (image_instantiator_progress_guage):
9012         * glyphs-widget.c (image_instantiator_tree_view):
9013         * glyphs-widget.c (image_instantiator_tab_control):
9014         * glyphs-widget.c (image_instantiator_labels):
9015         * glyphs-widget.c (image_instantiator_layout):
9016         * glyphs-widget.c (image_instantiator_native_layout):
9017         rename decode_domain method to governing_domain.
9018
9019         * glyphs.c:
9020         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9021         * glyphs.c (add_entry_to_device_ii_format_list):
9022         make sure we don't put an entry more than once into the list.
9023         * glyphs.c (check_instance_cache_mapper):
9024         *************************************************************
9025         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9026         HAVE BEEN GETTING.
9027         *************************************************************
9028         * glyphs.c (get_image_instantiator_governing_domain):
9029         clean up, expand on new concept of governing domain.
9030         * glyphs.c (instantiate_image_instantiator):
9031         * glyphs.c (allocate_image_instance):
9032         use governing_domain instead of cache_domain in naming.
9033         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9034         * glyphs.c (make_image_instance_1):
9035         * glyphs.c (Fmake_image_instance):
9036         allow for any domain (not just device), and process the
9037         governing domain correctly.  very big doc fix.
9038         * glyphs.c (Fimage_instance_domain):
9039         new primitive, to retrieve the governing domain of an image instance.
9040         * glyphs.c (image_instantiate):
9041         use new governing_domain stuff.  this fixes a crash you could get
9042         by instantiating certain widget glyphs in frame locales. (should
9043         signal an error instead of crashing.)
9044         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9045         * glyphs.c (Fglyphp): clean up doc.
9046         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9047         * glyphs.c (syms_of_glyphs):
9048         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9049         * glyphs.c (image_instantiator_format_create): add some comments about
9050         bogus code.
9051         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9052         for current-display-table. (Apparently Hrjove implemented in 1998 a
9053         design I wrote up in 1996, but didn't update the doc string.)
9054
9055         * glyphs.h: clean up a doc string.
9056         * glyphs.h (governing_domain):
9057         * glyphs.h (struct image_instantiator_methods):
9058         changes for governing_domain stuff.
9059
9060         * gutter.c:
9061         * gutter.c (Fgutter_specifier_p):
9062         * gutter.c (Fgutter_size_specifier_p):
9063         * gutter.c (Fgutter_visible_specifier_p):
9064         * objects.c:
9065         * objects.c (Fcolor_specifier_p):
9066         * objects.c (Ffont_specifier_p):
9067         * objects.c (Fface_boolean_specifier_p):
9068         doc strings moved to make-*-specifier.
9069
9070         * redisplay.c (add_disp_table_entry_runes_1):
9071         * redisplay.c (generate_fstring_runes):
9072         * redisplay.c (screen):
9073         add random comments and doc strings.
9074
9075         * specifier.c:
9076         * specifier.c (Fmake_specifier):
9077         major overhaul of this doc string.
9078
9079         * specifier.c (Fvalid_specifier_domain_p):
9080         comment about the bogosity of image instances being domains.
9081         * specifier.c (decode_domain):
9082         now non-static, used in glyphs.c.
9083         * specifier.c (specifier_instance):
9084         comment about the bogosity of image instances being domains.
9085         * specifier.c (Fgeneric_specifier_p):
9086         move doc string to make-generic-specifier.
9087         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9088         rebackslashify.
9089
9090         * specifier.h:
9091         * specifier.h (DOMAIN_FRAME):
9092         * specifier.h (DOMAIN_LIVE_P):
9093         * specifier.h (DOMAIN_XDEVICE):
9094         rebackslashify.
9095         add comments about problems with these macros.
9096         prototype for decode_domain.
9097
9098         * toolbar.c:
9099         * toolbar.c (Ftoolbar_specifier_p):
9100         move doc string to `make-toolbar-specifier'.
9101
9102         * window.c (window_unmap_subwindows_cache_mapper):
9103         *************************************************************
9104         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9105         HAVE BEEN GETTING.
9106         *************************************************************
9107
9108 2000-05-09  Andy Piper  <andy@xemacs.org>
9109
9110         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9111
9112         * window.c (Fset_window_configuration): reset the frame subwindow
9113         cache and re-initialize the window subwindow caches.
9114
9115         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9116
9117 2000-05-09  Ben Wing  <ben@xemacs.org>
9118
9119         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9120         DWORD.
9121
9122 2000-04-26  Mike Woolley  <mike@bulsara.com>
9123
9124         * ntheap.c: Changed recreate_heap to limit the amount reserved
9125         for the heap to that which is actually available. Also now
9126         displays a message box (with some dignostics) in the event that
9127         it still can't start.
9128
9129 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9130
9131         * callproc.c (Fold_call_process_internal): GCPRO path
9132
9133 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9134
9135         Patch by Bill Perry.
9136
9137         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9138         back data instead of #ifdef.
9139         (Fscrollbar_page_down): ditto.
9140
9141 2000-05-07  Ben Wing  <ben@xemacs.org>
9142
9143         * buffer.h:
9144         Kludge for defining Qmswindows_tstr.
9145
9146         * nt.c:
9147         * nt.c (open_input_file):
9148         * nt.c (open_output_file):
9149         * nt.c (rva_to_section):
9150         * nt.c (mswindows_executable_type):
9151         Move all memory-mapped-file routines here (some were in unexnt.c,
9152         which is bad because they are used by process-nt.c, and unexnt
9153         won't be around when portable dumping).  Synched the above routines
9154         with FSF 20.6.
9155
9156         * nt.h:
9157         Removed ifdef'd out bogus code.
9158         Fixed some prototypes.
9159
9160         * nt.h (file_data):
9161         * nt.h (OFFSET_TO_RVA):
9162         * nt.h (RVA_TO_OFFSET):
9163         * nt.h (RVA_TO_PTR):
9164         Moved the memory-mapped-file structures, macros and prototypes
9165         here, to parallel nt.c.  ntheap.h should really be removed
9166         entirely, and it's a non-portable-dumper specific file.
9167
9168         * ntheap.h (round_to_next):
9169         Moved the memory-mapped-file structures, macros and prototypes
9170         to nt.h.
9171
9172         * ntproc.c (compare_env):
9173         Moved rva_to_section and mswindows_executable_type to nt.c.
9174         Moved compare_env to process-nt.c.
9175         ntproc.c will die, one day.
9176
9177         * ntproc.c (sys_spawnve):
9178         Account for win32_ -> mswindows_.
9179
9180         * process-nt.c:
9181         * process-nt.c (struct nt_process_data):
9182         * process-nt.c (ensure_console_window_exists):
9183         * process-nt.c (compare_env):
9184         * process-nt.c (nt_create_process):
9185         * process-nt.c (nt_kill_process_by_pid):
9186         * process-nt.c (syms_of_process_nt):
9187         * process-nt.c (vars_of_process_nt):
9188         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9189         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9190         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9191         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9192         Move compare_env here from ntproc.c.
9193
9194         * process.c (Fprocess_send_region):
9195         Takes an optional fourth argument, BUFFER, which should fix some
9196         problems with call-process.
9197
9198         * syscommctrl.h:
9199         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9200
9201         * syswindows.h:
9202         Move ICC_BAR_CLASSES to syscommctrl.h.
9203         Add preliminary macros for MSWindows/Mule.  More to come.
9204
9205         * unexnt.c:
9206         * unexnt.c (unexec):
9207         open_output_file moved to nt.c.
9208
9209
9210 2000-05-05  Andy Piper  <andy@xemacs.org>
9211
9212         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9213         instance from the frame cache also since GC may catch up too late
9214         to make frame deletion sane.
9215
9216 2000-05-04  Andy Piper  <andy@xemacs.org>
9217
9218         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9219         (x_finalize_image_instance): ungcpro on deletion.
9220
9221         * glyphs.c (image_instantiator_format_create): give pointers a
9222         query geometry method so that the geometry is at least set.
9223
9224         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9225         initialize layouts if using widgets.
9226
9227 2000-05-03  Andy Piper  <andy@xemacs.org>
9228
9229         * nt.c: remove bogus reference to sysmmsystem.h
9230
9231         * gui-x.c (popup_selection_callback): fix no selection abort.
9232
9233 2000-05-02  Andy Piper  <andy@xemacs.org>
9234
9235         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9236         (mswindows_widget_instantiate): ditto.
9237
9238         * glyphs-widget.c (initialize_widget_image_instance): initialize
9239         children correctly.
9240         (widget_instantiate): cope with children and items in the same
9241         instance.
9242
9243         * glyphs.c (mark_image_instance): cope with children as a first
9244         class member.
9245         (image_instance_equal): ditto.
9246         (image_instance_hash): ditto.
9247         (image_instance_changed): ditto.
9248
9249 2000-04-30  Andy Piper  <andy@xemacs.org>
9250
9251         * glyphs.c (subwindow_query_geometry): new function. Return some
9252         defaults.
9253         (subwindow_instantiate): don't assign dimensions if none have been
9254         given.
9255         (image_instantiator_format_create): add subwindow_query_geometry.
9256         (print_image_instance): cope with layouts as widgets.
9257
9258 2000-04-29  Andy Piper  <andy@xemacs.org>
9259
9260         * frame.c (delete_frame_internal): call
9261         free_frame_subwindow_instance_cache so that all subwindows are
9262         finalized before their parent.
9263         (mark_frame): remove subwindow_cachels.
9264         (Fmake_frame): remove subwindow_cachel manipulation.
9265         (allocate_frame_core): subwindow_instance_cache is a weak list.
9266         (delete_frame_internal): set subwindow_instance_cache to nil.
9267
9268         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9269         finalization safe.
9270         (mswindows_finalize_image_instance): use the device
9271         not the domain as the domain may have died already.
9272
9273         * glyphs-x.c (x_finalize_image_instance): ditto.
9274         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9275         HEIGHT.
9276
9277         * redisplay-output.c (redisplay_unmap_subwindows): update for
9278         subwindow instance cache as a weak list.
9279         (redisplay_unmap_subwindows_maybe): ditto.
9280         (redisplay_unmap_subwindows_except_us): ditto.
9281
9282         * glyphs.c (unmap_subwindow): error checking will check the domain
9283         so don't deal with it here. Don't use cachels anymore.
9284         (map_subwindow): ditto.
9285         (update_subwindow_cachel_data): remove old accessor names.
9286         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9287         (Fresize_subwindow): don't update cachel.
9288         (mark_subwindow_cachels):
9289         (update_subwindow_cachel_data):
9290         (add_subwindow_cachel):
9291         (get_subwindow_cachel_index):
9292         (update_subwindow_cachel):
9293         (reset_subwindow_cachels):
9294         (mark_subwindow_cachels_as_not_updated): deleted.
9295         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9296         subwindow instance to the frame cache.
9297         (find_matching_subwindow): update for subwindow instance cache as
9298         a weak list.
9299         (update_widget_instances): ditto.
9300         (image_instance_type_to_mask):inlined.
9301         (free_frame_subwindow_instance_cache): new function. finalize all
9302         subwindows that are instantiated.
9303
9304         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9305         of cachel information.
9306         (IMAGE_INSTANCE_DISPLAY_X):
9307         (IMAGE_INSTANCE_DISPLAY_Y):
9308         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9309         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9310         (XIMAGE_INSTANCE_DISPLAY_X):
9311         (XIMAGE_INSTANCE_DISPLAY_Y):
9312         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9313         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9314         remove subwindow_cachel structure and function references.
9315         (image_instance_type_to_mask): inline from glyphs.c
9316
9317         * redisplay.c (redisplay_frame): remove subwindow_cachel
9318         references.
9319
9320         * frame.h (struct frame): remove subwindow_cachels.
9321         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9322
9323         * frameslots.h: add subwindow_instance_cache.
9324
9325         * window.c (replace_window): check subwindow cache of replacement.
9326         (window_unmap_subwindows_cache_mapper):
9327         (window_unmap_subwindows): new functions. Unmap all subwindows
9328         cached on this window.
9329         (mark_window_as_deleted): unmap all subwindows.
9330
9331 2000-04-27  Andy Piper  <andy@xemacs.org>
9332
9333         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9334
9335         * glyphs-widget.c (widget_layout): return something.
9336         (layout_layout): return something. Fail if not initialized.
9337         (layout_query_geometry): ditto.
9338         (image_instantiator_native_layout): new function. Initialized the
9339         native layout type.
9340         (widget_instantiate): don't do layout stuff here.
9341
9342         * glyphs.c (instantiate_image_instantiator): reorded calling or
9343         instantiate and post_instantiate with layout in between.
9344         (image_instance_layout): be more selective about deciding whether
9345         the layout has been done or not.
9346
9347         * glyphs.h (struct image_instantiator_methods): return a value
9348         from layout_method.
9349
9350 2000-04-26  Andy Piper  <andy@xemacs.org>
9351
9352         * glyphs.c (allocate_image_instance): make initial width and
9353         height unspecified. Set initialized to 0.
9354
9355         * syscommctrl.h new file. Encapsulates commctrl.h.
9356
9357         * syswindows.h new file. Encapsulates windows.h.
9358
9359         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9360         * nt.c: ditto.
9361         * console-msw.h: ditto.
9362
9363         * redisplay-tty.c (tty_output_display_block): remove layout references.
9364
9365         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9366         window handle rather than just the frame.
9367
9368         * glyphs.c (mark_image_instance): remove layout references.
9369         (print_image_instance): ditto.
9370         (image_instance_equal): ditto.
9371         (image_instance_hash): ditto.
9372         (decode_image_instance_type): ditto.
9373         (encode_image_instance_type): ditto.
9374         (image_instantiate): ditto.
9375         (allocate_glyph): ditto.
9376         (Fimage_instance_height): ditto.
9377         (Fimage_instance_width): ditto.
9378         (update_subwindow): ditto.
9379
9380         * redisplay-x.c (x_output_display_block): recode for layouts as
9381         widgets.
9382
9383         * redisplay-output.c (redisplay_output_layout): recode for layouts
9384         as widgets.
9385         (compare_runes): remove layout references.
9386
9387         * redisplay-msw.c (mswindows_output_display_block): recode for
9388         layouts as widgets.
9389
9390         * glyphs-widget.c (image_instantiator_layout): remove
9391         layout_possible_dest_types.
9392         (layout_possible_dest_types): deleted.
9393
9394         * glyphs.h (image_instance_type): remove layout references.
9395         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9396         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9397         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9398
9399 2000-04-25  Andy Piper  <andy@xemacs.org>
9400
9401         * glyphs-widget.c (image_instantiator_buttons):
9402         (image_instantiator_edit_fields):
9403         (image_instantiator_combo_box):
9404         (image_instantiator_scrollbar):
9405         (image_instantiator_progress_guage):
9406         (image_instantiator_tree_view):
9407         (image_instantiator_tab_control):
9408         (image_instantiator_labels):
9409         (image_instantiator_layout): call default post_instantiate method.
9410         (widget_post_instantiate): new function. Simply lays out the
9411         widgets.
9412
9413         * glyphs.h (struct image_instantiator_methods): add
9414         post_instantiate method.
9415
9416         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9417         method calls.
9418
9419 2000-04-23  Andy Piper  <andy@xemacs.org>
9420
9421         * glyphs.h (struct image_instantiator_methods): add
9422         decode_domain_method.
9423         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9424         derived from the domain.
9425         (IMAGE_INSTANCE_FRAME): new accessor.
9426         (XIMAGE_INSTANCE_FRAME): ditto.
9427
9428         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9429         instead of _SUBWINDOW_FRAME.
9430         (finalize_image_instance): ditto.
9431         (Fimage_instance_foreground): ditto.
9432         (Fimage_instance_background): ditto.
9433         (image_instantiate): ditto.
9434         (update_subwindow_cachel): ditto.
9435         (update_subwindow): ditto.
9436         (unmap_subwindow): ditto.
9437         (map_subwindow): ditto
9438         (subwindow_instantiate): ditto.
9439         * glyphs-msw.c (mswindows_update_widget): ditto.
9440         (mswindows_progress_gauge_instantiate): ditto.
9441         (mswindows_tab_control_update): ditto.
9442         * glyphs-x.c (x_update_widget): ditto.
9443         (x_widget_instantiate): ditto.
9444         (x_tab_control_instantiate): ditto.
9445         (x_tab_control_update): ditto.
9446         * event-msw.c (mswindows_wnd_proc): ditto
9447
9448         * glyphs-widget.c (image_instantiator_layout): use
9449         subwindow_decode_domain.
9450         (image_instantiator_buttons): ditto.
9451         (image_instantiator_edit_fields): ditto.
9452         (image_instantiator_combo_box): ditto.
9453         (image_instantiator_scrollbar): ditto.
9454         (image_instantiator_progress_guage): ditto.
9455         (image_instantiator_tree_view): ditto.
9456         (image_instantiator_tab_control): ditto.
9457         (image_instantiator_labels): ditto.
9458         (image_instantiator_layout): ditto.
9459
9460         * glyphs.c: add instance error checking to many functions.
9461         (instantiate_image_instantiator): decode device from cache_domain.
9462         (image_instantiate): partially rewrite by using
9463         decode_image_instantiator_domain to determine what domain the
9464         instance needs to be cached in.
9465         (decode_image_instantiator_domain): new function. Determine what
9466         domain the image needs to be cached in.
9467         (check_window_subwindow_cache): new error checking function.
9468         (check_instance_cache_mapper): ditto.
9469         (check_image_instance_structure): ditto.
9470         (subwindow_decode_domain): new function. Encodes a window as a
9471         subwindow's cache domain.
9472         (image_instantiator_format_create): use it for text and
9473         subwindows.
9474
9475 2000-04-21  Andy Piper  <andy@xemacs.org>
9476
9477         * glyphs.c (image_instance_device): new function.
9478         (image_instance_frame): new function.
9479         (image_instance_window): new function.
9480         (image_instance_live_p): new function.
9481
9482         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9483         cache to nil.
9484
9485         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9486         (IMAGE_INSTANCE_DOMAIN): new accessor.
9487         (XIMAGE_INSTANCE_DOMAIN): ditto.
9488
9489         * glyphs-x.c (x_finalize_image_instance): device->domain.
9490
9491         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9492         (mswindows_finalize_image_instance): ditto.
9493
9494         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9495         (gif_instantiate): ditto.
9496         (png_instantiate): ditto.
9497         (tiff_instantiate): ditto.
9498
9499         * glyphs.c (instantiate_image_instantiator): use domain rather
9500         than device.
9501         (mark_image_instance): device -> domain.
9502         (print_image_instance): ditto.
9503         (finalize_image_instance): ditto.
9504         (image_instance_equal): ditto.
9505         (allocate_image_instance): ditto.
9506         (Fcolorize_image_instance): ditto.
9507         (query_string_geometry): ditto.
9508         (image_instantiate): ditto
9509         (query_string_font): ditto.
9510         (image_instantiate): ditto.
9511         (update_subwindow): ditto.
9512         (unmap_subwindow): ditto.
9513         (map_subwindow): ditto.
9514         (subwindow_instantiate): ditto.
9515
9516         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9517         (DOMAIN_FRAME): ditto.
9518         (DOMAIN_WINDOW): ditto.
9519         (DOMAIN_LIVE_P): ditto.
9520         (XDOMAIN_DEVICE): ditto.
9521         (XDOMAIN_FRAME): ditto.
9522         (XDOMAIN_WINDOW): ditto.
9523
9524         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9525         a valid specifier domain.
9526
9527 2000-04-19  Andy Piper  <andy@xemacs.org>
9528
9529         * glyphs-widget.c (syms_of_glyphs_widget): remove
9530         widget-callback-current-channel.
9531         (vars_of_glyphs_widget): ditto.
9532         * glyphs.h: ditto
9533
9534         * gui.c (get_gui_callback): revert to previous behaviour.
9535
9536 2000-04-18  Andy Piper  <andy@xemacs.org>
9537
9538         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9539         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9540         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9541
9542         * glyphs.c (image_instance_equal): add margin_width.
9543         (image_instance_hash): ditto.
9544
9545         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9546         (layout_query_geometry): ditto.
9547         (layout_layout): ditto.
9548         (syms_of_glyphs_widget): add margin-width.
9549         (image_instantiator_layout): allow margin-width.
9550
9551         * glyphs.c (update_widget_instances): make a normal function.
9552         (syms_of_glyphs): remove Qupdate_widget_instances.
9553         * glyphs.h: ditto.
9554
9555         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9556         so that we don't corrupt ideas about the last event or
9557         command. Remove widget-callback-current-channel fiddling.
9558         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9559
9560 2000-05-01  Martin Buchholz <martin@xemacs.org>
9561
9562         * XEmacs 21.2.33 is released.
9563
9564 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9565
9566         * make-src-depend: Allow dots in header file name.
9567
9568 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9569
9570         * mule-charset.h (struct charset_lookup): Add
9571         next_allocated_1_byte_leading_byte and
9572         next_allocated_2_byte_leading_byte.
9573         * mule-charset.c: Move above two variables so that those values
9574         will be dumped.
9575
9576 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9577
9578         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9579         when string length is zero.
9580         (find_charsets_in_emchar_string): Ditto.
9581
9582 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9583
9584         * lisp.h: extern Qdialog and Qmenubar.
9585
9586         * gui-x.c: added events.h.
9587                 also fixed typo which made the file uncompilable.
9588
9589         * general.c: Added Qmenubar and Qdialog
9590
9591 2000-04-28  Ben Wing  <ben@xemacs.org>
9592
9593         * frame-msw.c (mswindows_init_frame_1):
9594         * frame-msw.c (mswindows_mark_frame):
9595         * event-msw.c (mswindows_enqueue_dispatch_event):
9596         * console-msw.h:
9597         * console-msw.h (struct mswindows_frame):
9598         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9599         there are now three hash tables for callbacks.
9600         mswindows_enqueue_dispatch_event is no longer static.
9601
9602         * dialog-x.c (maybe_run_dbox_text_callback):
9603         * dialog-x.c (dbox_descriptor_to_widget_value):
9604         switch to new cons3 form for callbacks.
9605
9606         * glyphs-msw.c (mswindows_register_gui_item):
9607         * glyphs-msw.c (mswindows_widget_instantiate):
9608         * glyphs-msw.c (add_tree_item):
9609         * glyphs-msw.c (add_tab_item):
9610         new image instance parameter, so it can be passed to callback-ex.
9611         respect :callback-ex as well as :callback.
9612
9613         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9614         add :callback-ex.
9615
9616         * glyphs.c (print_image_instance):
9617         prettify, e.g. now prints widget type.
9618
9619         * gui-x.h:
9620         certain funs have new image instance parameter.
9621
9622         * gui.c:
9623         * gui.c (get_gui_callback):
9624         * gui.c (gui_item_add_keyval_pair):
9625         * gui.c (gui_item_init):
9626         * gui.c (gui_add_item_keywords_to_plist):
9627         * gui.c (mark_gui_item):
9628         * gui.c (gui_item_hash):
9629         * gui.c (gui_item_equal):
9630         * gui.c (copy_gui_item):
9631         * gui.c (syms_of_gui):
9632         recognize callback-ex in a number of places.
9633         also, fix the annoying "can't get out of yes-no dialog" bug.
9634
9635         * gui.h:
9636         * gui.h (struct Lisp_Gui_Item):
9637         recognize callback-ex in a number of places.
9638
9639         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9640         new parameter in button_item_to_widget_value.
9641
9642         * glyphs-x.c (x_update_widget):
9643         * glyphs-x.c (x_button_instantiate):
9644         * glyphs-x.c (x_button_update):
9645         * glyphs-x.c (x_progress_gauge_instantiate):
9646         * glyphs-x.c (x_edit_field_instantiate):
9647         * glyphs-x.c (x_combo_box_instantiate):
9648         * glyphs-x.c (x_tab_control_instantiate):
9649         * glyphs-x.c (x_label_instantiate):
9650         new image instance parameter in various places.
9651
9652         * event-Xt.c:
9653         * event-Xt.c (enqueue_Xt_dispatch_event):
9654         this fun gets exported.
9655
9656         * gui-msw.c:
9657         * gui-msw.c (mswindows_handle_gui_wm_command):
9658         handle both :callback and :callback-ex, and generate our own
9659         event because it's one of the callback-ex arguments.
9660
9661         * gui-x.c:
9662         * gui-x.c (popup_selection_callback):
9663         handle both :callback and :callback-ex, and generate our own
9664         event because it's one of the callback-ex arguments.
9665         * gui-x.c (button_item_to_widget_value):
9666         * gui-x.c (gui_items_to_widget_values_1):
9667         * gui-x.c (gui_item_children_to_widget_values):
9668         * gui-x.c (gui_items_to_widget_values):
9669         new image instance parameter in various places.
9670
9671         * fns.c (Freplace_list):
9672         fix small typo in doc string.
9673
9674         * lisp.h:
9675         declare enqueue_Xt_dispatch_event.
9676
9677 2000-04-28  Ben Wing  <ben@xemacs.org>
9678
9679         * buffer.c:
9680         * buffer.c (Frecord_buffer):
9681         * buffer.c (syms_of_buffer):
9682         delete record-buffer-hook.
9683
9684         * fns.c:
9685         * fns.c (Freplace_list):
9686         * fns.c (syms_of_fns):
9687         new primitive replace-list.
9688
9689         * frameslots.h:
9690         slot for old buffer-alist.
9691
9692         * lisp.h:
9693         exfun replace-list.
9694
9695         * redisplay.c:
9696         * redisplay.c (redisplay_frame):
9697         * redisplay.c (syms_of_redisplay):
9698         * redisplay.c (vars_of_redisplay):
9699         new hook buffer-list-changed-hook.
9700         call it.
9701
9702 2000-04-27  Ben Wing  <ben@xemacs.org>
9703
9704         * extents.h: extern in_modeline_generation.
9705
9706         * redisplay.c (generate_formatted_string_db): set
9707         in_modeline_generation.
9708
9709         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9710         flags if in modeline generation.  otherwise frame-modified-tick
9711         is ticked far too often.
9712         Declare in_modeline_generation.
9713
9714 2000-04-26  Ben Wing  <ben@xemacs.org>
9715
9716         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9717         option.
9718         (vars_of_emacs): add quick-build as an error-checking option.
9719         A bit kludgy, but there doesn't seem much point in creating
9720         a real var for this.
9721
9722         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9723
9724 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9725
9726         * redisplay.h (struct display_line): Add a new variable,
9727         line_continuation.
9728
9729         * redisplay.c (create_text_block): Set dl->line_continuation if
9730         the line continues.
9731         (create_string_text_block): Ditto.
9732         (regenerate_window_incrementally): Use line_continuation instead
9733         of searching continuation glyph.
9734         (add_margin_runes): Call add_glyph_rune.
9735         (add_glyph_rune): Handle margin glyph.
9736
9737 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9738
9739         * filelock.c (fill_in_lock_file_name):
9740         ANSIfy.
9741         Check for IS_ANY_SEP instead of '/'.
9742         (lock_file_1):
9743         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9744         Never check errno without first seeing that system call failed.
9745         (unlock_file): Add GCPRO.
9746         (Flock_buffer): Fix docstring.
9747         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9748
9749 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9750
9751         * sysdep.c (get_pty_max_bytes):
9752         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9753         strings longer than 252 bytes.
9754
9755         * md5.c: Unconditionally include ANSI header <limits.h>
9756
9757         * glyphs-x.c (convert_EImage_to_XImage):
9758         * lisp-union.h (union Lisp_Object):
9759         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9760
9761 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9762
9763         * filelock.c (current_lock_owner): Remove unused variable o, p.
9764
9765 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9766
9767         * callint.c: Remove multiply defined symbol Qlet
9768         (syms_of_callint): ditto.
9769
9770 2000-04-14  Andy Piper  <andy@xemacs.org>
9771
9772         * general.c (syms_of_general): add last-command, this-command, let
9773         and funcall.
9774
9775         * lisp.h: declare various symbols.
9776
9777         * glyphs.h: declare Qwidget_callback_current_channel;
9778
9779         * glyphs-widget.c (syms_of_glyphs_widget): add
9780         Qgui_callback_current_channel.
9781         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9782
9783         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9784         widget-callback-current-channel when invoking the interactive
9785         arg. Also bind last-command and next-command when invoking the
9786         widget updates.
9787         * gui-x.c (popup_selection_callback): ditto.
9788
9789         * gui.c (get_gui_callback): massage args so that we are always
9790         calling eval. This allows us to add our own variable bindings
9791         outside.
9792
9793         * glyphs-x.c (x_button_instantiate): use
9794         gui_items_to_widget_values since this is GC safe.
9795         (x_progress_gauge_instantiate): ditto.
9796         (x_edit_field_instantiate): ditto.
9797         (x_label_instantiate): ditto.
9798
9799         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9800         (emacs_Xt_event_widget_focus_out): new function
9801         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9802         focus.
9803         (emacs_Xt_event_add_widget_actions): new function. add focus
9804         functions as actions.
9805         (init_event_Xt_late): use it.
9806
9807 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9808
9809         * event-stream.c (Fdispatch_event): Doc fix.
9810
9811 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9812
9813         * postgresql.c: Remove all references to PQsetenv*.
9814
9815         * postgresql.h: Remove references to PGsetenvHandler object.
9816         * lrecord.h (lrecord_type): Ditto.
9817
9818 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9819
9820         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9821         real_heigh and real_width members, and accessor macros for these.
9822
9823         * glyphs-msw.c (init_image_instance_geometry): New function.
9824         (init_image_instance_from_dibitmap): Use it.
9825         (mswindows_resource_instantiate): Use it.
9826         (init_image_instance_from_xbm_inline): Use it.
9827         (mswindows_initialize_image_instance_mask): Use real bitmap
9828         geometry.
9829         (mswindows_create_resized_bitmap): Ditto.
9830         (mswindows_create_resized_mask): Ditto.
9831
9832         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9833         and bitmap to their surface size.
9834
9835 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9836
9837         * process-unix.c (unix_send_process): Guard against process MIA
9838         after Faccept_process_output.
9839
9840 2000-04-11  Ben Wing  <ben@xemacs.org>
9841
9842         * eval.c (unbind_to_hairy): fix brokenness introduced by
9843         nanosecond speed improvements.
9844
9845 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9846
9847         * sunplay.c (init_device): To play sounds correctly, the device
9848         apparently needs to be initialized at least once by XEmacs.  Make
9849         it so.
9850
9851 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9852
9853         * redisplay.c (add_margin_runes): Add text image glyph
9854           handling.
9855
9856 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9857
9858         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9859         gcc is newer than 2.5.
9860
9861 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9862
9863         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9864
9865         * fns.c (size_bit_vector):
9866         * alloc.c (size_vector):
9867         (make_vector_internal):
9868         (make_bit_vector_internal):
9869         (sweep_bit_vectors_1):
9870         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9871
9872 2000-04-06  Andy Piper  <andy@xemacs.org>
9873
9874         * gmalloc.c (malloc): undo previous change.
9875         (malloc): ditto.
9876         (free): ditto.
9877         (realloc): ditto.
9878
9879 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9880
9881         * line-number.c (buffer_line_number): Revert to former version.
9882
9883 2000-04-06  Andy Piper  <andy@xemacs.org>
9884
9885         * gmalloc.c (malloc): add error checking.
9886         (malloc): ditto.
9887         (free): ditto.
9888         (realloc): ditto.
9889
9890         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9891         button_item_to_widget_value arg.
9892
9893         * glyphs-x.c (x_button_instantiate): add extra
9894         button_item_to_widget_value arg.
9895         (x_progress_gauge_instantiate): ditto.
9896         (x_edit_field_instantiate): ditto.
9897         (x_label_instantiate): ditto.
9898
9899         * gui-x.c (gui_items_to_widget_values_1): add extra
9900         button_item_to_widget_value arg.
9901         (button_item_to_widget_value): add extra menu_item_p arg.
9902
9903         * gui-x.h: change signature of button_item_to_widget_value.
9904
9905         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9906         button_item_to_widget_value arg.
9907
9908 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9909
9910         * buffer.h (struct buffer): auto_save_modified should be long.
9911
9912 2000-04-05  Andy Piper  <andy@xemacs.org>
9913
9914         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9915         type.
9916         (button_query_geometry): give a little more room so that athena
9917         buttons fit.
9918
9919 2000-04-05  Andy Piper  <andy@xemacs.org>
9920
9921         * faces.c (complex_vars_of_faces): The widget face should inherit
9922         the font of the gui-element face.
9923
9924 2000-04-04  Andy Piper  <andy@xemacs.org>
9925
9926         * glyphs-x.c (x_button_update): new function. unconditionally
9927         update a button's state when the instance is dirty.
9928         (image_instantiator_format_create_glyphs_x): add x_button_update.
9929         (x_widget_instantiate): remove old resize cruft.
9930
9931 2000-04-02  Andy Piper  <andy@xemacs.org>
9932
9933         * frame.c (change_frame_size_1): The introduction of gutters means
9934         that we need to allow 0 as a potential frame dimension.
9935
9936 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9937
9938         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9939         image glyph if allow_cursor.
9940         (add_hscroll_rune): Don't allow cursor to border glyph.
9941         (create_text_block): Ditto.
9942
9943         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9944         text not in buffer.
9945         (redisplay_output_layout): Call ensure_face_cachel_complete for
9946         text image glyph.
9947
9948
9949 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9950
9951         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9952
9953         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9954         not in buffer
9955
9956         * redisplay-tty.c (tty_output_display_block): Delete the routine
9957         for text image glyph
9958         * redisplay-x.c (x_output_display_block): ditto
9959         * redisplay-msw.c (mswindows_output_display_block): ditto
9960
9961 2000-02-02  Mike Alexander  <mta@arbortext.com>
9962
9963         Note: Some of these were committed by accident as part of other
9964         patches.
9965
9966         * regex.c (regex_compile): Avoid compiler warnings.
9967
9968         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9969
9970         * nt.h: Declare term_ntproc correctly.
9971
9972         * nt.c: Remove incorrect declaration of get_home_directory which
9973         is declared correctly in lisp.h.
9974
9975         * keymap.c (get_keyelt): Avoid compiler warnings.
9976         (raw_lookup_key_mapper): Avoid compiler warnings.
9977
9978         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9979
9980         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9981
9982         * filemode.c (mode_string): Avoid compiler warnings.
9983
9984         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9985         avoid warning.
9986
9987         * events-mod.h: Undef some things that winuser.h defines differently.
9988
9989         * data.c (Faset): Avoid compiler warnings.
9990
9991         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9992
9993 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9994
9995         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9996         Fall through to simple beep on error.
9997         Replace "extern" by real header file.
9998
9999         * linuxplay.c: Use nativesound.h
10000         (play_sound_data): Return error code. Be less verbose on error.
10001
10002         * sunplay.c: Use nativesound.h
10003         (play_sound_data): Return error code. Be less verbose on error.
10004
10005         * ntplay.c: Use nativesound.h
10006         (play_sound_data): Return fake error code
10007
10008         * sgiplay.c: Use nativesound.h
10009         (play_sound_data): Return error code
10010
10011         * hpplay.c: Use nativesound.h, partially implement
10012         new error code. Break compilation until finished.
10013         (play_sound_data): error code.
10014
10015         * nativesound.h (play_sound_file):
10016           (play_sound_data): Prototype in new header.
10017
10018 2000-03-31  Andy Piper  <andy@xemacs.org>
10019
10020         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10021         for toggle and radio buttons.
10022         (image_instantiator_buttons): use it.
10023
10024 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10025
10026         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10027         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10028         found. Scrollbar event probably belonged to some old config.
10029
10030 2000-03-31  Andy Piper  <andy@xemacs.org>
10031
10032         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10033         than 1.
10034         (initialize_widget_image_instance): default layout to
10035         LAYOUT_HORIZONTAL rather than 0.
10036         (widget_instantiate): reverse the item list at the end rather than
10037         every iteration.
10038         (layout_layout): re-code for the border text at the front of the
10039         item list rather than at the end.
10040         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10041         provided by the user.
10042         (widget_query_geometry): comment.
10043
10044 2000-03-30  Andy Piper  <andy@xemacs.org>
10045
10046         * glyphs-widget.c (image_instantiator_layout): allow standard
10047         widget keywords in layouts.
10048
10049         * gutter.c (output_gutter): cope with nil gutter contents.
10050
10051         * frame.c (Fset_frame_properties): add gutter docs.
10052
10053 2000-03-29  Andy Piper  <andy@xemacs.org>
10054
10055         * toolbar-msw.c (TBSTYLE_FLAT): add.
10056         (mswindows_output_toolbar): minor fiddling.
10057
10058 2000-03-29  Andy Piper  <andy@xemacs.org>
10059
10060         * gutter.c (output_gutter): force gutter size recalculation if
10061         what we are trying to display won't fit.
10062         (update_gutter_geometry): new function. A per-gutter version of
10063         update_frame_gutter_geometry.
10064         (update_frame_gutter_geometry): use it.
10065         (redraw_exposed_gutter): add extra debugging output.
10066
10067 2000-03-28  Mike Alexander  <mta@arbortext.com>
10068
10069         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10070         (pdump_file_unmap): Implement it on Windows
10071         (pdump_file_get): Save alocated handles for pdump_file_unmap
10072
10073 2000-03-28  Andy Piper  <andy@xemacs.org>
10074
10075         * gui.c (get_gui_callback): treat Quit specially.
10076
10077 2000-03-27  Andy Piper  <andy@xemacs.org>
10078
10079         * glyphs.c (image_instantiate): be careful to check in the same
10080         way we assigned.
10081
10082 2000-03-27  Didier Verna  <didier@xemacs.org>
10083
10084         * config.h.in: define the proper SMART_INCLUDE macro.
10085         handle renaming of `foo_h_path' to `foo_h_file'.
10086
10087         * database.c: ditto.
10088
10089         * emacs.c: ditto.
10090
10091         * linuxplay.c: ditto.
10092
10093         * terminfo.c: ditto.
10094
10095         * tooltalk.h: ditto.
10096
10097 2000-03-27  Andy Piper  <andy@xemacs.org>
10098
10099         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10100         gets updated whenever the face might have changed.
10101
10102 2000-03-26  Mike Alexander  <mta@arbortext.com>
10103
10104         * dumper.c (pdump_resource_free): Fix the comment.
10105
10106 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10107
10108         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10109
10110 2000-03-22  Mike Alexander  <mta@arbortext.com>
10111
10112         * dumper.c: Include Windows headers on Windows
10113         (pdump_resource_free): Add a body to the function
10114         (pdump_load): exe_name -> exe_path and add some comments.
10115
10116 2000-03-25  Mike Alexander  <mta@arbortext.com>
10117
10118         * gui.c (copy_gui_item_tree): Return a value in all cases
10119
10120 2000-03-21  Didier Verna  <didier@xemacs.org>
10121
10122         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10123         lwlib/config.h.in.
10124         (SMART_INCLUDE): new macro.
10125         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10126         the proper location.
10127
10128         * postgresql.c: use it.
10129
10130         * inline.c: ditto.
10131
10132 2000-03-24  Andy Piper  <andy@xemacs.org>
10133
10134         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10135         do this.
10136
10137 2000-03-24  Andy Piper  <andy@xemacs.org>
10138
10139         * redisplay-output.c (compare_runes): use image_instance_changed
10140         to detect changes. Do not depend on glyphs_changed, only depend on
10141         dirtiness.
10142          (redisplay_output_layout): add debug messages.
10143         (compare_runes): ditto.
10144
10145         * glyphs.h: declare new functions.
10146         (struct Lisp_Image_Instance): remove percent and associated
10147         accessors.
10148
10149         * gui.h: declare new copying functions.
10150
10151         * gui.c (copy_gui_item_tree): new function.
10152         (copy_gui_item): new function.
10153         (gui_item_id_hash): revert to standard hash.
10154         (gui_item_hash): ditto.
10155         (gui_item_hash_internal): deleted.
10156         (mark_gui_item): mark value.
10157         (gui_item_add_keyval_pair): add value.
10158         (gui_item_init): ditto.
10159         (gui_add_item_keywords_to_plist): ditto.
10160         (gui_item_equal): ditto.
10161         (syms_of_gui): add Q_value.
10162
10163         * glyphs-x.c (x_progress_gauge_update): use pending items and
10164         value for setting the state.
10165         (x_update_widget): don't set items from pending here.
10166
10167         * glyphs-widget.c (update_widget): update items here.
10168         (progress_gauge_set_property): use items for storing value. Put
10169         new value in pending items.
10170
10171         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10172         items for new value. Convert percent -> value.
10173         (mswindows_tab_control_update): don't update items here.
10174
10175         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10176         (update_subwindow): ditto.
10177         (image_instance_changed): new function. Compare hash values and
10178         past and present widget items.
10179         (image_instantiate): We more careful about where we instantiate
10180         things.
10181         (image_instantiate): add error checking.
10182
10183         * gutter.c (syms_of_gutter): use -hook.
10184
10185 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10186
10187         * console-tty.c (Fset_console_tty_input_coding_system): Use
10188         Qkeyboard.
10189         (Fset_console_tty_output_coding_system): Use Qterminal.
10190         (tty_init_console): Use Qkeyboard and Qterminal.
10191
10192 2000-03-21  Ben Wing  <ben@xemacs.org>
10193
10194         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10195         From Mike Alexander <mta@arbortext.com>.
10196
10197 2000-03-21  Ben Wing  <ben@xemacs.org>
10198
10199         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10200         process brokenness.  Proper implementation to come.
10201         * callproc.c:
10202         Rename call-process-internal to old-call-process-internal.
10203         New impl. in process.el.
10204
10205 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10206
10207         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10208
10209 2000-03-20  Andy Piper  <andy@xemacs.org>
10210
10211         * glyphs.c (full_list_hash): make hashes of the same elements in
10212         different orders return different values.
10213
10214 2000-03-20  Martin Buchholz <martin@xemacs.org>
10215
10216         * XEmacs 21.2.32 is released.
10217
10218 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10219
10220         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10221         (DFC_MALLOC_USE_CONVERTED_DATA):
10222         Add aliasing-safe casts to allow use with char* or unsigned char*
10223         lvalues.
10224
10225         * eldap.c (Fldap_open):
10226         (Fldap_search_basic):
10227         (Fldap_add):
10228         (Fldap_modify):
10229         Make C++-compilable.
10230         Make sure GCPRO'ed variables are initialized.
10231         Use temp variables to avoid repeated calls to Flength.
10232
10233 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10234
10235         * sysfile.h:
10236         Make sure PATH_MAX is always defined.
10237         Include limits.h for PATH_MAX.
10238         Deprecate use of MAXPATHLEN.
10239
10240 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10241
10242         * emacs.c: Add reinit_vars_of_fileio.
10243         * symsinit.h: Add reinit_vars_of_fileio.
10244         * fileio.c (reinit_vars_of_fileio): New.
10245         * fileio.c (Fmake_temp_name):
10246         Initialize temp_name random number from microseconds to make
10247         collisions even less likely.  Initialize always at process startup
10248         time.  (make-temp-name) used to return the same file name twice in
10249         a row when PDUMP.
10250         Random stylistic fiddling.
10251         Comment fixes.
10252
10253 2000-03-20  Andy Piper  <andy@xemacs.org>
10254
10255         * glyphs.c (image_instantiate): allow text glyphs to be
10256         instantiated in the minibuffer window.
10257
10258 2000-03-19  Andy Piper  <andy@xemacs.org>
10259
10260         * glyphs.c (image_instance_hash): be careful about which items we
10261         hash on.
10262
10263         * glyphs-widget.c (tab_control_set_property): record into pending
10264         items rather than the actual items.
10265
10266         * glyphs-x.c (x_update_widget): use pending items to update with.
10267
10268         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10269         to update with.
10270
10271         * glyphs.c (mark_image_instance): mark pending items.
10272
10273         * window.c (Fset_window_configuration): record the buffer.
10274         (Fselect_window): totally revert previous change which breaks many
10275         things.
10276
10277 2000-03-18  Andy Piper  <andy@xemacs.org>
10278
10279         * glyphs-msw.c (mswindows_tab_control_update): force selected
10280         item.
10281
10282         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10283         window domain cache, otherwise we get inconsistencies at
10284         startup. There is something fishy at startup which can lead to the
10285         minibuffer being the selected window when the gutter content is
10286         instantiated.
10287
10288         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10289         gcpros.
10290         (parse_gui_item_tree_children): ditto.
10291         (parse_gui_item_tree_item): ditto.
10292
10293         * glyphs.c (Fupdate_widget_instances): return something.
10294
10295 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10296
10297         * window.c (Fselect_window): Undo 2000-03-17 change.
10298
10299 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10300
10301         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10302         against v7.0 libraries.  Insta-coredump city until the postgres
10303         folks fix it.
10304
10305 2000-03-17  Andy Piper  <andy@xemacs.org>
10306
10307         * faces.c (complex_vars_of_faces): don't give the widget face an
10308         inherited background pixmap.
10309
10310         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10311         selected item.
10312
10313         * event-stream.c (Fdispatch_non_command_events): return something.
10314
10315         * gutter.c (output_gutter): use widget face.
10316         (clear_gutter): ditto.
10317
10318         * NEWS: adjust again.
10319
10320         * window.c (Fselect_window): make sure this runs to completion to
10321         avoid oddities with Fset_window_configuration.
10322         (Fcurrent_window_configuration): in general do not save the
10323         minibuffer as the selected window.
10324
10325         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10326
10327 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10328
10329         * emacs.c (Frunning_temacs_p): Revert previous patch.
10330         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10331
10332 2000-03-16  Andy Piper  <andy@xemacs.org>
10333
10334         * glyphs-x.c (x_tab_control_update): if no widget values then
10335         return.
10336
10337         * NEWS: update for new features.
10338
10339         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10340         synthetic event to the native system.
10341         (reinit_vars_of_event_Xt): set force_event_pending to
10342         emacs_Xt_force_event_pending.
10343
10344         * events.h (struct event_stream): add force_event_pending.
10345
10346         * specifier.c (recompute_one_cached_specifier_in_window): add
10347         comment.
10348
10349         * redisplay.c (redisplay_frame): don't call
10350         update_frame_subwindows. Reset subwindow cachels when
10351         subwindows_changed, removing this was an optimization too far.
10352
10353         * redisplay-output.c (compare_runes): reorganize so that we catch
10354         glyph changes when we want them. Set optimize_output when this
10355         would help layouts.
10356         (redisplay_output_layout): remove frame_really_changed, use
10357         optimize_output instead.
10358
10359         * redisplay-msw.c (mswindows_output_display_block): reset
10360         optimize_output after outputting a glyph.
10361         * redisplay-x.c (x_output_display_block): ditto.
10362         * redisplay-tty.c (tty_output_display_block): ditto.
10363
10364         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10365         functions.
10366         (gutter_specs_changed): do specific gutter positions.
10367         (top_gutter_specs_changed): new function. Only update the
10368         specified gutter specs.
10369         (bottom_gutter_specs_changed): ditto.
10370         (left_gutter_specs_changed): ditto.
10371         (right_gutter_specs_changed): ditto.
10372
10373         * gui.c (gui_item_hash_internal): new function, does a real hash.
10374         (gui_item_id_hash): use it.
10375         (gui_item_hash): hash the eval'ed gui_item.
10376
10377         * gui-x.c (popup_selection_callback): send an eval event to call
10378         Fupdate_widget_instances.
10379
10380         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10381         to call Fupdate_widget_instances.
10382
10383         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10384         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10385
10386         * glyphs.c: (update_frame_subwindows): deleted.
10387         (Fupdate_widget_instances): new function for updating the dirty
10388         state of widgets that might have changed.
10389         (syms_of_glyphs): add Qupdate_widget_instances.
10390         (full_list_hash): hash a list completely.
10391         (image_instance_hash): use it for items and properties.
10392
10393         * frame-msw.c (mswindows_size_frame_internal): remove unused
10394         variable.
10395
10396         * faces.h (struct face_cachel): fix comment.
10397
10398         * event-stream.c (Fdispatch_non_command_events): new
10399         function. Process non-command events, forcing an event cycle
10400         beforehand.
10401         (syms_of_event_stream): declare.
10402         (event_stream_force_event_pending): new function. Force an event
10403         on the native event queue so that an event cycle will occur next
10404         time we check.
10405
10406         * event-msw.c:
10407         (struct ntpipe_shove_stream):
10408         (mswindows_enqueue_dispatch_event):
10409         (mswindows_dequeue_dispatch_event):
10410         (mswindows_cancel_dispatch_event):
10411         (mswindows_pump_outstanding_events):
10412         (mswindows_drain_windows_queue):
10413         (mswindows_handle_paint):
10414         (mswindows_wnd_proc):
10415         (mswindows_key_to_emacs_keysym):
10416         (get_process_input_waitable):
10417         (emacs_mswindows_delete_stream_pair): re-indent file.
10418         (mswindows_need_event): do not process further fds if the windows
10419         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10420         fixes the 100% cpu problem.
10421         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10422
10423 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10424
10425         * alloc.h: New.
10426         * dumper.h: New.
10427         * dumper.c: New.
10428
10429         * emacs.c: Moved dump file searching to dumper.c.
10430         (Frunning_temacs_p): Fixed.
10431
10432         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10433         last_lrecord_type_index_assigned.
10434
10435 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10436
10437         * symsinit.h: Added reinit parameter to init_console_stream
10438         declaration.
10439
10440         * lisp.h: Added file parameter to pdump_load declaration.
10441
10442         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10443         support.  Added dump file searching.
10444
10445         * config.h.in: Added EMACS_PROGNAME.
10446
10447         * console-stream.c (init_console_stream): Fix reinitialisation
10448         when running from temacs.
10449
10450         * alloc.c (pdump): Add id support.
10451         (pdump_load): Add file parameter and signature/id support.
10452
10453         * Makefile.in.in: Add full pdump support.
10454
10455 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10456
10457         * postgresql.c: Update documentation to reflect latest code
10458         status.
10459         (print_result): Show tuple counts in printed representation when
10460         appropriate.
10461         (Fpq_put_nbytes): MULE-ize.
10462         (Fpq_get_line_async): Ditto.
10463
10464 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10465
10466         * postgresql.c (Fpq_lo_import): Fix return value.
10467         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10468
10469 2000-03-13  Ben Wing  <ben@xemacs.org>
10470
10471         * alloc.c (pdump_load):
10472         Fix compile warning under mswin.
10473
10474 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10475
10476         * postgresql.c: Mule-ization, bug fixes.
10477         Use PG_CODING to encapsulate coding system name changes.
10478         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10479         (pg-coding-system): Create.
10480
10481         (Fpq_conn_defaults): Mule-ize.
10482         (Fpq_connectdb): Mule-ize & bug fix.
10483         (Fpq_connect_start): Mule-ize.
10484         (Fpq_set_client_encoding): Mule-ize.
10485         (Fpq_finish): Document `DEAD' connection status.
10486         (Fpq_clear): Ditto.
10487         (Fpq_pgconn): Mule-ize.
10488         (Fpq_exec): Mule-ize & bug fix.
10489         (Fpq_send_query): Ditto.
10490         (Fpq_get_result): Ditto.
10491         (Fpq_res_status): Mule-ize.
10492         (Fpq_result_error_message): Mule-ize.
10493         (Fpq_ntuples): fix comments.
10494         (Fpq_fname): Mule-ize.
10495         (Fpq_fnumber): Mule-ize.
10496         (Fpq_ftype): fix comments.
10497         (Fpq_get_value): Mule-ize.
10498         (Fpq_cmd_status): Ditto.
10499         (Fpq_cmd_tuples): Ditto.
10500         (Fpq_oid_value): Ditto.
10501         (Fpq_notifies): Ditto.
10502         (Fpq_lo_import): Ditto.
10503         (Fpq_lo_export): Ditto.
10504         (Fpq_get_line): Ditto.
10505         (Fpq_put_line): Mule-ize and bug fix.
10506         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10507
10508 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10509
10510         * postgresql.c (vars_of_postgresql): Mule-ize.
10511         (Fpq_conn_defaults): Ditto.
10512
10513 2000-03-12  Ben Wing  <ben@xemacs.org>
10514
10515         * alloc.c (Fmake_byte_code):
10516         * alloc.c (debug_string_purity_print):
10517         * alloc.c (pdump_backtrace):
10518         * alloc.c (pdump_get_indirect_count):
10519         * alloc.c (pdump_register_sub):
10520         * alloc.c (pdump_register_object):
10521         * alloc.c (pdump_register_struct):
10522         * alloc.c (pdump_dump_data):
10523         * alloc.c (pdump_reloc_one):
10524         Minor cleanups.
10525
10526         * console-msw.c:
10527         * console-msw.c (GetConsoleHwnd):
10528         * console-msw.c (msw_hide_console):
10529         * console-msw.c (msw_show_console):
10530         * console-msw.c (msw_ensure_console_buffered):
10531         * console-msw.c (msw_output_console_string):
10532         * console-msw.c (console_type_create_mswindows):
10533
10534         a) Added functions to manipulate the console window for use with
10535         shell support.
10536
10537         b) Added support for writing text to the console, which is now
10538         used under Windows when xemacs is not being run non-interactively,
10539         to write text that would otherwise be destined for stdout because
10540         under these circumstances, text written to stdout tends to
10541         disappear and not be seen.
10542
10543         * console-msw.h:
10544         * event-Xt.c:
10545         * event-Xt.c (x_event_to_emacs_event):
10546         * event-Xt.c (describe_event_window):
10547         * events-mod.h (XEMACS_MOD_CONTROL):
10548         * events.c:
10549         * events.c (Fmake_event):
10550         * events.c (character_to_event):
10551         * events.c (event_to_character):
10552         * events.c (format_event_object):
10553         * events.c (Fevent_modifiers):
10554         * events.h:
10555         * events.h (struct key_data):
10556         * events.h (struct button_data):
10557         * events.h (struct misc_user_data):
10558         * frame-x.c (Fcde_start_drag_internal):
10559         * frame-x.c (Foffix_start_drag_internal):
10560         * gpmevent.c (Freceive_gpm_event):
10561         * keymap.c:
10562         * keymap.c (bucky_sym_to_bucky_bit):
10563         * keymap.c (control_meta_superify):
10564         * keymap.c (make_key_description):
10565         * keymap.c (keymap_lookup_directly):
10566         * keymap.c (create_bucky_submap):
10567         * keymap.c (keymap_store):
10568         * keymap.c (define_key_check_and_coerce_keysym):
10569         * keymap.c (define_key_parser):
10570         * keymap.c (define_key_alternate_name):
10571         * keymap.c (Fdefine_key):
10572         * keymap.c (raw_lookup_key_mapper):
10573         * keymap.c (struct map_keymap_unsorted_closure):
10574         * keymap.c (map_keymap_unsorted_mapper):
10575         * keymap.c (map_keymap_sort_predicate):
10576         * keymap.c (map_keymap_sorted):
10577         * keymap.c (accessible_keymaps_mapper_1):
10578         * keymap.c (where_is_recursive_mapper):
10579         * keymap.c (describe_map_mapper):
10580         * keymap.c (describe_map_sort_predicate):
10581         * keymap.c (describe_map):
10582         * keymap.c (complex_vars_of_keymap):
10583         And a number of other files, the key modifier preprocessor
10584         constants that xemacs uses have names that conflict with constants
10585         defined under MS Windows for other purposes, so they were renamed
10586         to begin with the prefix XEMACS_. The variables that hold such
10587         modifiers were changed to consistently be of type int to fix
10588         various compile warnings.
10589
10590         * console.c (complex_vars_of_console):
10591         * device.c:
10592         * device-msw.c:
10593         * device-msw.c (mswindows_finish_init_device):
10594         * device-msw.c (msw_get_workspace_coords):
10595         * device-msw.c (mswindows_device_system_metrics):
10596         and various other files, added support for a new
10597         device property called offset-workspace which returns the position
10598         of the upper left corner of the workspace area and goes along with
10599         the existing size-workspace property.
10600
10601         * dialog-msw.c:
10602         * dialog-msw.c (push_bufbyte_string_as_unicode):
10603         * dialog-msw.c (mswindows_popup_dialog_box):
10604         Added support for XEmacs-style accelerator specifications in
10605         button text.  Note: I didn't add support for this under X Windows,
10606         and somebody needs to do this.
10607
10608         * dialog.c:
10609         * dialog.c (Fpopup_dialog_box):
10610         Documented the support for accelerators that was just mentioned.
10611
10612         editfns.c (get_home_directory): Changed behavior under Windows
10613         when HOME not defined; former behavior was irretrievably broken.
10614
10615         * emacs.c:
10616         * emacs.c (main_1):
10617         * emacs.c (main):
10618         * minibuf.c (clear_echo_area_internal):
10619         * minibuf.c (echo_area_append):
10620         * print.c:
10621         * print.c (std_handle_out_external):
10622         * print.c (std_handle_out_va):
10623         * print.c (fatal):
10624         * print.c (write_string_to_stdio_stream):
10625         * print.c (output_string):
10626         * print.c (debug_print):
10627         * print.c (debug_backtrace):
10628         * print.c (debug_short_backtrace):
10629         Cleaned up the code that prints text to stdout so that this can be
10630         changed to output into a console window instead under MS Windows,
10631         as described above.
10632
10633         * eval.c:
10634         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10635         * eval.c (internal_catch):
10636         * eval.c (unwind_to_catch):
10637         * eval.c (throw_or_bomb_out):
10638         * eval.c (condition_case_1):
10639         * eval.c (signal_1):
10640         * eval.c (check_error_state_sanity):
10641         * eval.c (call_with_suspended_errors_1):
10642         * eval.c (call_with_suspended_errors):
10643         * eval.c (reinit_vars_of_eval):
10644         Added code to catch throw loops and check for a pesky bug that may
10645         be gone now.
10646
10647         * event-msw.c:
10648         * event-msw.c (key_needs_default_processing_p):
10649         * event-msw.c (mswindows_wnd_proc):
10650         * event-msw.c (mswindows_modifier_state):
10651         * event-msw.c (emacs_mswindows_quit_p):
10652         * event-msw.c (vars_of_event_mswindows):
10653         a) Added support for using the alt key to select menu items as is
10654         standard under MS Windows.  This is controlled using the variable
10655         menu-accelerator-enabled, just like under X Windows.  There is an
10656         option on the options menu to turn this support on.  I really
10657         think that it should be on by default under Windows, but I'm not
10658         going to make this change yet.
10659
10660         b)  Added support for dynamic display size changes under Windows.
10661
10662         * event-stream.c:
10663         * event-stream.c (maybe_echo_keys):
10664         * event-stream.c (Fnext_event):
10665         * event-stream.c (command_builder_find_leaf):
10666         * event-stream.c (lookup_command_event):
10667         * event-stream.c (execute_command_event):
10668         * event-stream.c (pre_command_hook):
10669         * event-stream.c (post_command_hook):
10670         * event-stream.c (syms_of_event_stream):
10671         * event-stream.c (vars_of_event_stream):
10672         * event-stream.c (complex_vars_of_event_stream):
10673         * events.h (struct command_builder):
10674
10675         a) Tried to clean up a little bit the horribly written x-specific
10676         accelerator code that crept into this file.  I moved this code
10677         into menubar-x.c where it belongs. I also needed to move the
10678         command builder structure into the file events.h because it is
10679         accessed directly by this accelerator code.  What I didn't do, but
10680         which should be done at some point, is to properly abstract this
10681         code using device methods instead of the kludgy way that it
10682         currently hooks into the event code.
10683
10684         b) Added the lisp variables this-command-properties and
10685         last-command- properties, which should be used to synchronize two
10686         adjacent commands in preference to playing games with the variable
10687         this-command, which is typically what happens.
10688
10689         c) Added some slightly nasty code to hook into the lisp support
10690         for shifted- motion-key selection.  This is actually necessary for
10691         somewhat complicated reasons, which are described in
10692         simple.el. (NB: I think the proper thing would be to have the code
10693         that calls the pre and post command hooks also call out to generic
10694         lisp functions in simple.el, where all built-in stuff could be
10695         added.  I will think about this more.)
10696
10697         * event-unixoid.c (poll_fds_for_input):
10698         * lread.c (readchar):
10699         * redisplay-tty.c (tty_clear_frame):
10700         * redisplay-x.c (x_get_gc):
10701         * signal.c (interrupt_signal):
10702         And a whole bunch of other files: fixed up places that printed
10703         directly to stderr to instead call the function stderr_out so that
10704         the changes I made under Windows work correctly.
10705
10706         * filemode.c (mode_string):
10707         Warning fixes.
10708
10709         * frame-msw.c:
10710         * frame-msw.c (mswindows_size_frame_internal):
10711         Fixed the computation of frame size and position to keep the frame
10712         within the workspace area, rather than within the physical
10713         dimensions of the screen, so that the frame doesn't overlap window
10714         manager decorations, such as the start menu and toolbar, typically
10715         at the bottom of the screen.
10716
10717         * frame.c (vars_of_frame):
10718         Changed the default frame title format under MS Windows to consist
10719         of buffername-XEmacs, which is standard under MS Windows.  I think
10720         it might be a good idea to change this everywhere because I think
10721         it is superior to the current frame title format, but this is the
10722         kind of change that is likely to cause some people to get annoyed,
10723         so I'm not making it.
10724
10725         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10726
10727         * gui-msw.c (mswindows_handle_gui_wm_command):
10728         Fixed compile warnings.
10729
10730         * gui-x.c:
10731         * gui-x.c (strdup_and_add_accel):
10732         * gui-x.c (button_item_to_widget_value):
10733         * gui-x.h:
10734         Added code to automatically put an accelerator onto the beginning
10735         of menu items that don't have one as is now the standard, and is
10736         described more later.  Also fixed things so that the menu item
10737         name can be an evaluated expression, again a new standard.
10738
10739         * gui.c:
10740         * gui.c (gui_item_add_keyval_pair):
10741         * gui.c (make_gui_item_from_keywords_internal):
10742         * gui.c (gui_add_item_keywords_to_plist):
10743         * gui.c (gui_item_accelerator):
10744         * gui.c (gui_name_accelerator):
10745         * gui.c (gui_item_included_p):
10746         * gui.c (gui_item_display_flush_left):
10747         * gui.c (gui_item_display_flush_right):
10748         * gui.c (parse_gui_item_tree_item):
10749         * gui.c (parse_gui_item_tree_children):
10750         * gui.c (parse_gui_item_tree_list):
10751         Mule-ized.  Cleanup.  GCPRO addition.
10752
10753         * line-number.c (buffer_line_number):
10754         * lisp.h:
10755         * lisp.h (EMACS_INT_MAX):
10756         Added the manifest constant EMACS_INT_MIN corresponding to the
10757         existing constant EMACS_INT_MAX.  This is partially to fix compile
10758         warnings under Windows, and partly for cleanliness.
10759
10760         * menubar-msw.c:
10761         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10762         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10763         * menubar-msw.c (displayable_menu_item):
10764         * menubar-msw.c (populate_menu_add_item):
10765         * menubar-msw.c (populate_or_checksum_helper):
10766         * menubar-msw.c (populate_menu):
10767         * menubar-msw.c (update_frame_menubar_maybe):
10768         * menubar-msw.c (prune_menubar):
10769         * menubar-msw.c (msw_char_is_accelerator):
10770         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10771         * menubar-msw.c (mswindows_handle_wm_command):
10772         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10773         * menubar-msw.c (mswindows_handle_wm_initmenu):
10774         * menubar-msw.c (mswindows_update_frame_menubars):
10775         * menubar-msw.c (mswindows_free_frame_menubars):
10776         * menubar-msw.c (mswindows_popup_menu):
10777         Fixed a bug in handling accelerators where an extra character
10778         would be displayed in the menu item.  Also generalized the
10779         function displayable_menu_item because it is now used by the
10780         dialog box code as well.  And finally, added code in the functions
10781         that create the menubar to extract a list of accelerators for the
10782         top level menubar, which is used in the event code to determine
10783         whether a particular alt-key combination should be used to invoke
10784         a menu item, or should be passed through to access the standard
10785         XEmacs keymap binding for this key combination.
10786
10787         Much needed GCPROing.
10788
10789         * menubar-x.c:
10790         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10791         * menubar-x.c (menu_item_descriptor_to_widget_value):
10792         * menubar-x.c (restore_in_menu_callback):
10793         * menubar-x.c (x_popup_menu):
10794         * menubar-x.c (menu_move_up):
10795         * menubar-x.c (menu_move_down):
10796         * menubar-x.c (menu_move_left):
10797         * menubar-x.c (menu_move_right):
10798         * menubar-x.c (menu_select_item):
10799         * menubar-x.c (command_builder_operate_menu_accelerator):
10800         * menubar-x.c (menu_accelerator_junk_on_error):
10801         * menubar-x.c (command_builder_find_menu_accelerator):
10802         * menubar-x.c (Faccelerate_menu):
10803         * menubar.h:
10804         Moved a whole bunch of code here that was previously in
10805         event-stream.c as described above.  There is also code connected
10806         to the new standard of adding an accelerator to the beginning of
10807         menu items that don't have one as described above and below.
10808
10809         * menubar.c:
10810         * menubar.c (menu_parse_submenu_keywords):
10811         * menubar.c (Fmenu_find_real_submenu):
10812         * menubar.c (Fnormalize_menu_item_name):
10813         * menubar.c (syms_of_menubar):
10814         * menubar.c (vars_of_menubar):
10815         * menubar.c (complex_vars_of_menubar):
10816
10817         a) Cleaned up a bunch of documentation and improved it.
10818
10819         b) XEmacs now automatically adds an accelerator onto the beginning
10820         of any menu items that don't have one.  I did this because there
10821         will inevitably be some menu items on the main menubar that don't
10822         have accelerators on them because the package that adds that
10823         particular menu item hasn't yet been fixed up to have accelerators
10824         in them and it looked rather strange to have some items with and
10825         some items without accelerators, especially since even in items
10826         without accelerators, you can, at least under windows, still
10827         access the item through an accelerator corresponding to the first
10828         character in the item's name.  If people don't like this behavior,
10829         I can add a variable to turn it off optionally, but I'm not sure
10830         this is a good idea because we really do need to have accelerators
10831         on all of the menu items, and if a package doesn't like the
10832         accelerators being put on the first character, then it should put
10833         the accelerators where they belong.
10834
10835         c) I made a behavior change, which is that the descriptor that
10836         specifies the text of the menu item, which formerly was just a
10837         string, can now also be an evaluated expression.  This makes this
10838         descriptor parallel with all of the others, which could also be
10839         evaluated expressions.  This also obviates the need for the
10840         keyword :label, which was previously listed in the documentation
10841         as unimplemented, and which was for the same purpose.
10842
10843         d) GCPROing.
10844
10845         * ntproc.c:
10846         * ntproc.c (new_child):
10847         * ntproc.c (sys_spawnve):
10848         * ntproc.c (find_child_console):
10849         * ntproc.c (sys_kill):
10850         Fixed compile warnings.  By the way, this file should really go
10851         away entirely, and this will happen as soon as Kirill makes his
10852         final round of process cleanups, which affect the function
10853         call-process.
10854
10855         * process-nt.c:
10856         * process-nt.c (struct nt_process_data):
10857         * process-nt.c (find_process_from_pid):
10858         * process-nt.c (send_signal_the_nt_way):
10859         * process-nt.c (enable_child_signals):
10860         * process-nt.c (find_child_console):
10861         * process-nt.c (send_signal_the_95_way):
10862         * process-nt.c (nt_finalize_process_data):
10863         * process-nt.c (ensure_console_window_exists):
10864         * process-nt.c (nt_create_process):
10865         * process-nt.c (nt_kill_child_process):
10866         * process-nt.c (nt_kill_process_by_pid):
10867         * process-nt.c (nt_open_network_stream):
10868         * process-nt.c (vars_of_process_nt):
10869         Copied over code from Emacs 20.5 to correctly send signals to sub-
10870         processes under Windows 95.  Also added code to automatically
10871         create and hide console window when a sub-process is created under
10872         Windows 95, which obviates the need for the separate runemacs.exe
10873         executable, and finally implemented some variables that were
10874         implemented in Emacs 20.5, but previously not in XEmacs.  These
10875         include mswindows- start-process-share-console and
10876         mswindows-start-process-inherit-error-mode. (Both of these only
10877         apply to Windows 95.)
10878
10879         * regex.c (regex_compile): Fixed a compile warning.
10880
10881         * select-msw.c:
10882         * select-msw.c (mswindows_own_selection):
10883         * select-msw.c (mswindows_get_foreign_selection):
10884         * select-msw.c (mswindows_disown_selection):
10885         * select-msw.c (console_type_create_select_mswindows):
10886         * select-msw.c (syms_of_select_mswindows):
10887         Cleaned up the file and implemented the device method
10888         selection_exists_p, which had accidentally been left out.  Also
10889         removed four lisp functions that were remnants from before the
10890         time when the selection code was properly device abstracted.
10891         These functions are no longer needed because there are generic
10892         equivalents, and because they were added recently and don't exist
10893         in FSF Emacs, I don't think there's any problem with just deleting
10894         them.
10895
10896         * sysdep.c:
10897         * sysdep.c (sys_subshell):
10898         Fixed a compile warning, although in this case there's probably
10899         something wrong with this code, and it ought to be looked into
10900         more thoroughly by somebody who understands it.
10901
10902         * window.c:
10903         * window.c (Fwindow_text_area_height):
10904         * window.c (Fwindow_width):
10905         * window.c (Fwindow_full_width):
10906         * window.c (Fwindow_pixel_width):
10907         * window.c (debug_print_window):
10908         * window.c (syms_of_window):
10909         Added functions window-text-area-height and window-full-width,
10910         which are functions for returning various width and height
10911         characteristics of a window. (One of these functions is necessary
10912         for making the file dialog box work correctly, and the other one
10913         was added for completeness.)  Also added a table to the
10914         documentation for window-height which describes the entire scheme
10915         for accessing width and height characteristics of a window.
10916
10917 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10918
10919         * nt.c (fstat): Added a comment for another problem with
10920         non-encapsulated [f]stat(), reported by Adrian Aichner
10921         <aichner@ecf.teradyne.com>.
10922
10923 2000-03-11  Andy Piper  <andy@xemacs.org>
10924
10925         * window.c (make_dummy_parent): initialize subwindow instance
10926         cache.
10927         (Fset_window_configuration): zero extent_modiff.
10928
10929 2000-03-10  Andy Piper  <andy@xemacs.org>
10930
10931         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10932         more changes can be triggered.
10933         (Fredisplay_frame): ditto.
10934         (Fredraw_device): ditto.
10935         (Fredisplay_device): ditto.
10936         (redisplay_frame): make non-static.
10937         (redisplay_frame): call update_frame_gutter_geometry outside of
10938         display proper.
10939
10940         * gutter.h: declare update_frame_gutter_geometry.
10941
10942         * redisplay.h: declare redisplay_frame.
10943
10944         * gutter.c (update_frame_gutter_geometry): move geometry changes
10945         in update_frame_gutters here. Geometry changes can only occur
10946         outside of redisplay.
10947         (update_frame_gutters): remove geometry change code.
10948         (Fredisplay_gutter_area): make sure that we are in display when we
10949         update and that we have flushed any size changes.
10950
10951 2000-03-11  Andy Piper  <andy@xemacs.org>
10952
10953         * alloc.c (pdump_dump_data): remove i & count shadows.
10954
10955 2000-02-27  Mike Alexander  <mta@arbortext.com>
10956
10957         * sysdep.h: Declare pdump_read_file
10958
10959         * sysdep.c (pdump_read_file): New function
10960
10961         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10962         dump data
10963
10964 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10965
10966         * lrecord.h: add `lrecord_type_pgsetenv'.
10967
10968 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10969
10970         * symsinit.h: declare (vars|syms)_of* functions.
10971         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10972
10973 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10974
10975         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10976
10977         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10978         GCCs.
10979
10980         * emacs.c (main_1): Call postgres initialization code.
10981
10982         * postgresql.h: New file.  PostgreSQL RDBMS support.
10983         * postgresql.c: New file.
10984
10985 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10986
10987         * redisplay-output.c (redisplay_output_display_block): Disable
10988         redundant code.
10989
10990 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10991
10992         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10993         (Fcanna_henkan_next): Ditto.
10994         (Fcanna_bunsetu_henkou): Ditto.
10995         (Fcanna_henkan_kakutei): Ditto.
10996         (Fcanna_henkan_end): Ditto.
10997         (Fcanna_henkan_quit): Ditto.
10998         (Fcanna_henkan_next): Set retun value correctly.
10999         (c2mu): Use unsigned char instead of signed char.
11000
11001 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11002
11003         * emacs.c (main_1): Always call syms_of_gui.
11004         * inline.c: include gui.h
11005
11006 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11007
11008         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11009         converted to Lisp_Object.
11010         (Qtop_bottom): New variable.
11011         (syms_of_redisplay): Initialize it.
11012         * redisplay.h (Vvisible_bell): Ditto.
11013         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11014         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11015         only flash top and bottom.
11016
11017 2000-03-08  Andy Piper  <andy@xemacs.org>
11018
11019         * buffer.c (Frename_buffer): record new buffer name the right way.
11020
11021 2000-03-08  Andy Piper  <andy@xemacs.org>
11022
11023         * glyphs.c (update_subwindow): increase hash depth so that widget
11024         items get picked up properly.
11025
11026         * redisplay-output.c (compare_runes): increase hash depth so that
11027         widget items get picked up properly.
11028
11029 2000-03-08  Andy Piper  <andy@xemacs.org>
11030
11031         * gutter.c (output_gutter): add some debug.
11032
11033         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11034         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11035         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11036
11037         * redisplay-output.c (compare_runes): use display_hash to
11038         determine if glyphs really are not the same.
11039
11040         * glyphs.c (update_subwindow): check display_hash to see if
11041         anything really needs to be updated. If not then do
11042         nothing. Record the display_hash after updating.
11043         (image_instance_equal): compare the image_instance face also.
11044
11045 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11046
11047         * redisplay.h: Fix comment style.
11048
11049 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11050
11051         * consle-msw.h (struct mswindows_frame):
11052         Added new member paint_pending to indicate whether a WM_PAINT
11053         magic event has been queued for this frame.
11054
11055         * event-msw.c (mswindows_drain_windows_queue):
11056         Don't queue a WM_PAINT magic event if one is already queued.
11057         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11058
11059         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11060
11061 2000-03-07  Didier Verna  <didier@xemacs.org>
11062
11063         * dired.c: #include `regex.h' after `sysfile.h'.
11064
11065 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11066
11067         * sound.c (init_nas_sound): Fix compiler warning.
11068
11069         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11070         (FREE_STRUCT_P):
11071         (MARK_STRUCT_AS_FREE):
11072         (MARK_STRUCT_AS_NOT_FREE):
11073         Make `gcc -fstrict-aliasing' work properly.
11074
11075 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11076
11077         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11078         (mswindows_delete_device): Call CoUnnitialize().
11079
11080         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11081
11082 2000-02-25    <CraigL@DyCon.com>
11083
11084         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11085         <errno.h>.
11086
11087         * sysdep.c: This extern declaration for environ prevents MinGW
11088         from finding the variable in CRTDLL.DLL.
11089
11090         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11091         windows headers.
11092         (SHGFI_EXETYPE): ..
11093         (WM_MOUSEWHEEL): ..
11094         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11095         definitions.
11096         (MMRESULT): Removed, now defined in cygwin's windows headers.
11097         (TIMECAPS): ..
11098         (uid_t,gid_t,pid_t,ssize_t): ..
11099         (_timeb): Removed, MinGW defines both _timeb and timeb.
11100         (HAVE_H_ERRNO): Added.
11101         (HAVE_TZNAME): Added, configure is not detecting this.
11102
11103 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11104
11105         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11106         * syntax.c (syntax_match): Use it.
11107
11108         * cmds.c: Import auto-fill-chars from FSF Emacs.
11109         (Vauto_fill_chars): New variables.
11110         (internal_self_insert): Check Vauto_fill_chars.
11111         (vars_of_cmds):
11112         Declare auto-fill-chars as a Lisp variable and initialize it.
11113
11114 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11115
11116         * fileio.c (Fmake_symbolic_link):
11117         (Ffile_symlink_p):
11118         Run handlers even if local machine doesn't have symlinks.
11119
11120 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11121
11122         * event-msw.c (mswindows_drain_windows_queue):
11123         Don't generate paint magic events for non-XEmacs frames.
11124
11125 2000-03-05  Andy Piper  <andy@xemacs.org>
11126
11127         * redisplay.c (redisplay_frame): generate_displayable_area and
11128         friends assumes that we are not in GC, we therefore have to make
11129         sure that this doesn't happen.
11130
11131         * gutter.c (calculate_gutter_size): generate_displayable_area
11132         assumes that we are not in GC, we therefore have to make sure that
11133         this doesn't happen.
11134
11135 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11136
11137         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11138
11139 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11140
11141         * redisplay.c (regenerate_window): Make sure we set a sane value
11142         for end_pos even if we jump out of the loop.
11143         (regenerate_window): Answer Ben's question :-).
11144         (start_end_of_last_line): Add may_error argument.
11145         (start_of_last_line):
11146         (end_of_last_line): Pass may_error = 0.
11147         (end_of_last_line_may_error): New function.
11148         (pixel_to_glyph_translation): Use it, so we don't crash in
11149         event_to_glyph.
11150
11151 2000-03-04  Andy Piper  <andy@xemacs.org>
11152
11153         * window.h (struct window): add gutter_extent_modiff.
11154
11155         * window.c (allocate_window): zero out gutter_extent_modiff.
11156
11157         * redisplay.h: declare sync_display_line_structs.
11158
11159         * redisplay.c (add_glyph_rune): add a better comment.
11160
11161         * redisplay-output.c (sync_display_line_structs): made non-static.
11162         (compare_runes): remove unneccesary glyph cachel access.
11163
11164         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11165
11166         * gutter.c (output_gutter): don't output the gutter if extent
11167         changes only involve extents in buffers. use 4 sets of display
11168         lines.
11169         (gutter_extent_signal_changed_region_maybe): new function. Mark
11170         extents in gutters as changed.
11171         (update_frame_gutters): use 4 sets of display lines.
11172         (reset_gutter_display_lines): ditto.
11173         (free_frame_gutters): ditto.
11174         (redraw_exposed_gutter): force output of gutters.
11175
11176         * frame.h (struct frame): add 4 sets of gutter display lines.
11177
11178         * extents.c: (extent_changed_for_redisplay): signal changes to
11179         extents in strings in the gutter as well as extents in buffers.
11180
11181 2000-03-02  Andy Piper  <andy@xemacs.org>
11182
11183         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11184
11185         * frame.c (Fmake_frame): make sure the gutters get initialized
11186         after the frame is visible.
11187         (set_frame_selected_window): re-arrange compilation macros a
11188         little.
11189         (change_frame_size_1): mark gutters changed.
11190
11191         * device.c (Fset_device_class): mark gutters changed.
11192
11193 2000-03-01  Andy Piper  <andy@xemacs.org>
11194
11195         * window.c (window_top_frame_gutter_height): deleted.
11196         (window_bottom_frame_gutter_height): ditto.
11197         (window_left_frame_gutter_height): ditto.
11198         (window_right_frame_gutter_height): ditto.
11199         (window_top_gutter_height): don't use them.
11200         (window_bottom_gutter_height): ditto.
11201         (window_left_gutter_width): ditto.
11202         (window_right_gutter_width): ditto.
11203         (Fsplit_window): ditto.
11204         (Fwindow_pixel_edges): don't use border dimensions here.
11205
11206         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11207         (update_scrollbar_instance): ditto.
11208
11209         * redisplay.c (generate_modeline): don't take gutters into account.
11210         (generate_modeline): ditto.
11211         (redisplay_frame): small gutter display optimization.
11212
11213         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11214
11215         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11216         gutters into account.
11217
11218         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11219         for window position and type.
11220
11221         * gutter.c (get_gutter_coords): fix for frame gutters.
11222         (update_frame_gutters): update frame geometry if the gutters have
11223         changed.
11224         (init_frame_gutters): record current gutter geometries.
11225
11226         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11227         var.
11228         (mswindows_widget_instantiate): ditto.
11229
11230         * frame.h (struct frame): add current_gutter_bounds.
11231
11232         * frame.c (change_frame_size_1): position window and minibuffer
11233         appropriately taking into account the frame gutters.
11234
11235         * frame-x.c: (x_initialize_frame_size): take into account the
11236         frame gutters.
11237
11238 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11239
11240         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11241
11242 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11243
11244         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11245
11246 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11247
11248         * file-coding.c (reset_decoding_stream): Clear previous
11249         detection state when autodetect.
11250
11251 2000-02-29  Didier Verna  <didier@xemacs.org>
11252
11253         * extents.c (set_extent_glyph_1): don't require extents to be
11254         attached.
11255
11256 2000-02-27  Andy Piper  <andy@xemacs.org>
11257
11258         * gutter.c (Fset_default_gutter_position): don't default left and
11259         right gutter visibility to t.
11260         (Fset_default_gutter_position): run
11261         default-gutter-position-changed-hook.
11262         (syms_of_gutter): add default-gutter-position-changed-hook.
11263
11264 2000-02-26  Andy Piper  <andy@xemacs.org>
11265
11266         * specifier.c (Fmake_specifier): add gutter references.
11267
11268         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11269
11270         * lisp.h: declare Fvalid_plist_p.
11271
11272         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11273         as changed.
11274         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11275         well as its visibility so that it gets reconstructed.
11276         (construct_window_gutter_spec): new function. Construct a string
11277         to be displayed in the gutter from a plist of strings. Take care
11278         to only use elements that are declared as visible.
11279         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11280         WINDOW_GUTTER.
11281         (gutter_validate): allow plists of strings in the specifier.
11282         (gutter_specs_changed): construct the real_gutter from the gutter
11283         specs using construct_window_gutter_spec.
11284         (gutter_visible_validate): gutter-visible is a new specifier type.
11285         (Fgutter_visible_specifier_p): new function for the new specifier.
11286         (syms_of_gutter): declare gutter-visible and
11287         Fgutter_visible_specifier_p.
11288         (specifier_type_create_gutter): intitalize new gutter-visible
11289         specifier.
11290         (reinit_specifier_type_create_gutter): ditto.
11291         (specifier_vars_of_gutter): use new specifier type for gutter
11292         visibility.
11293         (init_frame_gutters): construct real_gutter correctly.
11294         (Fgutter_specifier_p): beef up documentation.
11295         (Fgutter_size_specifier_p): ditto.
11296
11297         * winslots.h: add real_gutter slots.
11298
11299 2000-02-25  Andy Piper  <andy@xemacs.org>
11300
11301         * device-msw.c: Be kind to older cygwin versions. From Raymond
11302         Toy <toy@rtp.ericsson.se>.
11303
11304         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11305         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11306
11307 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11308
11309         * elhash.c (MARK_OBJ): Practice macro hygiene.
11310
11311 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11312
11313         * miscplay.c: s/__inline__/inline/g;
11314         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11315         (get_device_compdc): INLINE ==> static inline
11316         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11317         find -name '*.h' | \
11318         xargs global-replace \
11319         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11320
11321 2000-02-25  Andy Piper  <andy@xemacs.org>
11322
11323         * window.c (window_top_frame_gutter_height): new function.
11324         (window_top_window_gutter_height): ditto.
11325         (window_top_gutter_height): use them.
11326         (window_bottom_frame_gutter_height): new function.
11327         (window_bottom_window_gutter_height): ditto.
11328         (window_bottom_gutter_height): use them.
11329         (window_left_window_gutter_width): new function.
11330         (window_left_frame_gutter_width): ditto.
11331         (window_left_gutter_width): use them.
11332         (window_right_window_gutter_width): new function.
11333         (window_right_frame_gutter_width): ditto.
11334         (window_right_gutter_width): use them.
11335         (window_pixel_height): new function. calulate window pixel height
11336         with frame gutter involvement.
11337         (Fsplit_window): calculate new sizes taking frame gutters into
11338         account.
11339         (window_char_height_to_pixel_height): don't include frame gutters.
11340         (window_char_height): use window_pixel_height.
11341         (window_pixheight): rename from window_pixel_height.
11342         (change_window_height): use it.
11343         (window_pixel_height_to_char_height): don't include frame gutters.
11344         (window_char_width_to_pixel_width): ditto.
11345
11346 2000-02-25  Andy Piper  <andy@xemacs.org>
11347
11348         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11349         if it is.
11350
11351 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11352
11353         * alloc.c (staticpro):
11354         (staticpro_nodump):
11355         (dumpstruct):
11356         (dumpopaque):
11357         (pdump_wire):
11358         (pdump_wire_list):
11359         (compact_string_chars):
11360         (pdump_dump_wired):
11361         Convert:  if (foo) abort();  ==>  assert (! foo);
11362
11363         * eldap.c (Fldap_search_basic):
11364         (Fldap_add):
11365         (Fldap_modify):
11366         (Fldap_delete):
11367         Fix compiler warnings, and possible crashes if (random) return
11368         value were to be used.
11369
11370 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11371
11372         * device-msw.c: Workaround ResetDC failure.
11373
11374         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11375         applying a devmode.
11376
11377         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11378         (mswindows_text_width): Do not start printer page.
11379
11380         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11381
11382         * glyphs-msw.c: Added image methods to msprinter console and
11383         msprinter-specific image instantiation.
11384
11385 2000-02-20  Mike Alexander  <mta@arbortext.com>
11386
11387         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11388         to avoid crashes when selection-sets-clipboard is on
11389         (mswindows_own_selection): ditto
11390
11391 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11392
11393         * glyphs-msw.c:
11394         * redisplay-msw.c (get_frame_dc):
11395         (get_frame_compdc):
11396         * console-msw.h:
11397         * device-msw.c (mswindows_init_device):
11398         (mswindows_delete_device):
11399         (msprinter_init_device):
11400         (msprinter_delete_device):
11401         * frame-msw.c (mswindows_init_frame_1):
11402         (mswindows_delete_frame):
11403         (msprinter_init_frame_3):
11404         (msprinter_delete_frame): Move compatible DC to device object from
11405         frame object, for both mswindows and msprinter. Only one at a time
11406         is needed, it is a real waste to have one per frame!
11407
11408 2000-02-23  Andy Piper  <andy@xemacs.org>
11409
11410         * glyphs.c: add dynamic width and height elements.
11411         (image_instance_equal): ditto.
11412
11413         * glyphs-widget.c (widget_query_geometry): calculate width and
11414         height dynamically if required.
11415         (initialize_widget_image_instance): initialize dynamic dimensions.
11416         (widget_instantiate): pick-up dynamic dimensions.
11417
11418         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11419         dynamic determination. Add appropriate macros.
11420
11421         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11422         dimensions safe.
11423         (WINDOW_GUTTER_SIZE): ditto.
11424         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11425
11426         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11427         inline.
11428         (get_frame_dc): ditto.
11429
11430         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11431         here.
11432
11433 2000-02-23  Martin Buchholz <martin@xemacs.org>
11434
11435         * XEmacs 21.2.31 is released.
11436
11437 2000-02-22  Ben Wing <ben@xemacs.org>
11438
11439         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11440
11441 2000-02-22  Andy Piper  <andy@xemacs.org>
11442
11443         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11444
11445 2000-02-21  Mike Sperber <mike@xemacs.org>
11446
11447         * .dbxrc:
11448         * .gdbinit:
11449         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11450         variables.
11451
11452 2000-02-21  Mike Sperber <mike@xemacs.org>
11453
11454         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11455
11456 2000-02-21  Martin Buchholz <martin@xemacs.org>
11457
11458         * XEmacs 21.2.30 is released.
11459
11460 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11461
11462         Performance hacking.
11463         * *.c (syms_of_*):
11464         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11465         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11466         * emacs.c (main_1):
11467         * lisp.h (DEFUN):
11468         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11469         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11470         * symeval.h (DEFVAR_SYMVAL_FWD):
11471         * symbols.c (guts_of_unbound_marker):
11472         Make all c_readonly objects also lisp_readonly and marked for life.
11473         * lrecord.h (struct lrecord_implementation):
11474         Document flags better.
11475         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11476         * lrecord.h (DECLARE_LRECORD):
11477         * lrecord.h (XSETRECORD):
11478         * lrecord.h (RECORDP):
11479         * lrecord.h (RECORD_TYPEP):
11480         * lrecord.h (RECORD_MARKER): New.
11481         * lrecord.h (error_check_*):
11482         * lrecord.h (CONCHECK_NONRECORD):
11483         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11484         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11485         * lrecord.h (set_lheader_implementation):
11486         * lrecord.h (enum lrecord_type): New.
11487         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11488         * alloc.c (disksave_object_finalization_1):
11489         * alloc.c (mark_object):
11490         * alloc.c (lrecord_type_index):
11491         * alloc.c (tick_lcrecord_stats):
11492         * alloc.c (Fgarbage_collect):
11493         * alloc.c (init_alloc_once_early):
11494         * alloc.c (pdump_load):
11495         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11496         * alloc.c (lrecord_type_index): Delete.
11497         Make lisp object type indexes be constant.
11498           Makes (byte-compile) 5% faster.
11499         Put all marker functions into their own array.
11500           Makes (garbage-collect) 5% faster.
11501         Optimize SYMBOL_VALUE_MAGIC_P.
11502           Makes (byte-compile) 2-3% faster.
11503         * config.h.in (gc_checking_assert): New.
11504         * alloc.c: Use gc_checking_assert().
11505         * .dbxrc: Make compatible with new object type implementation.
11506         * .gdbinit: Make compatible with new object type implementation.
11507         * alloc.c: Delete all symbols defined only for debugging, such as
11508         Lisp_Type_Vector and lrecord_charset.
11509
11510 2000-02-21  Andy Piper  <andy@xemacs.org>
11511
11512         * gui-msw.c (Fmswindows_shell_execute): fix file location
11513         problems.
11514
11515         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11516         unshowing so that set_window_buffer doesn't undo
11517         kill_buffer_hook's hard work.
11518
11519         * glyphs-widget.c (tab_control_query_geometry): don't count the
11520         first item when calculating geometry.
11521
11522         * glyphs.c (map_subwindow): remove redundant code.
11523         (update_frame_subwindows): be more circumspect about when to
11524         update subwindows.
11525
11526         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11527         when items haven't changed. Update faces if faces have changed as
11528         well as just the widget face.
11529         (x_tab_control_update): Update faces if faces have changed as well
11530         as just the widget face.
11531
11532 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11533
11534         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11535         registration.
11536         (build_syscolor_string): Use mswindows_color_to_string to try to
11537         get a named color.
11538         (mswindows_device_system_metrics): Reverse the foreground and
11539         background colors so that they match the documentation.
11540
11541         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11542         they match the default Windows palette.
11543         (mswindows_color_to_string): New function.
11544
11545 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11546
11547         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11548
11549 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11550
11551         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11552         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11553
11554         * symbols.c (init_symbols_once_early): Removed obsolete
11555         DATA_SEG_BITS related kludge.
11556         (defvar_magic): Ditto.
11557
11558         * malloc.c: Removed obsolete DATA_SEG_BITS
11559         * ralloc.c: Ditto.
11560         * mem-limits.h: Ditto.
11561
11562         * Makefile.in.in: Removed obsolete HAVE_SHM
11563         * emacs.c: Ditto.
11564
11565 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11566
11567         *  device-msw.c (mswindows_delete_device): Free DDE string
11568         handles.
11569
11570 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11571
11572         * keymap.c (get_keyelt):
11573         * unexnt.c (unexec):
11574         * vm-limit.c (memory_warnings):
11575         * ntheap.c (recreate_heap):
11576         * ntheap.h (UNINIT_PTR):
11577         * select-msw.c (Fmswindows_get_clipboard):
11578         (Fmswindows_set_clipboard):
11579         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11580         * objects-msw.c:
11581         * menubar-msw.c (displayable_menu_item):
11582         * glyphs-msw.c:
11583         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11584         * sysdep.c (sys_subshell):
11585         * process-nt.c (nt_create_process):
11586         * nt.c (normalize_filename):
11587         (dostounix_filename):
11588         (unixtodos_filename):
11589         * ntproc.c (win32_executable_type):
11590         * ntplay.c (play_sound_data_1):
11591         (play_sound_file):
11592         * editfns.c (get_home_directory):
11593         * event-msw.c (struct winsock_stream):
11594         (mswindows_dde_callback):
11595         * device-msw.c (msprinter_init_device):
11596         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11597
11598         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11599         mswindows_clear_toolbar were swapped!
11600
11601         * objects-msw.c:(colormap_t):
11602         (fontmap_t):
11603         * emacs.c (struct standard_args): Fixed const jumble.
11604
11605         * glyphs-widget.c (update_widget): Fixed comparison notation.
11606
11607         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11608
11609         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11610         __declspec(noreturn) syntax.
11611
11612 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11613
11614         * eldap.c (Fldap_open):
11615         (Fldap_search_basic):
11616         (Fldap_add):
11617         (Fldap_modify):
11618         Use new coding system conversion macros.
11619
11620 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11621
11622         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11623
11624 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11625
11626         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11627         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11628
11629         * eldap.c (Qadd, Qreplace): New constant symbols
11630         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11631         interruptions by XEmacs signals
11632         Remove unnecessary calls to slow_down_interrupts and
11633         speed_up_interrupts
11634         (Fldap_search_basic): Renamed from Fldap_search_internal
11635         Added new optional parameter VERBOSE that triggers the
11636         display of progress messages
11637         Remove unnecessary calls to slow_down_interrupts and
11638         speed_up_interrupts
11639         LDAP result code analysis rewritten
11640         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11641         (syms_of_eldap): Define the new symbols and functions
11642
11643
11644 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11645
11646         * realpath.c: Determine PATH_MAX maximally portably.
11647
11648         * insdel.c (bytecount_to_charcount): Optimize.
11649         The function used to be optimized for entirely ASCII sequences.
11650         Now it is optimized for successive characters from the same
11651         charset.  This also wins big for _mostly_ ASCII sequences.
11652
11653         * fileio.c (Ffile_truename): convert return from realpath() using
11654         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11655         - Rewrite GCPROing slightly.
11656
11657         * sysdep.c (sys_open): Do filename conversion, like all other
11658         sys_* functions.  Fixes bug:
11659         (let ((file-name-coding-system 'iso-8859-2))
11660            (write-region x y latin2-name))
11661         ==> writes filename using internal encoding.
11662
11663 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11664
11665         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11666         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11667         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11668         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11669         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11670         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11671         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11672         (CONST_IF_NOT_DEBUG): Delete.
11673         * alloc.c (this_one_is_unmarkable): Delete.
11674         (mark_object): Don't check for this_one_is_unmarkable. Use the
11675         c_readonly flag instead.
11676         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11677
11678 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11679
11680         * event-msw.c (mswindows_drain_windows_queue):
11681         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11682         away redundant repaint events.
11683
11684 2000-02-17  Andy Piper  <andy@xemacs.org>
11685
11686         * redisplay.h: declare mark_redisplay_structs.
11687
11688         * redisplay.c (redisplay_window):
11689         (redisplay_frame): don't check subwindows_state_changed.
11690         (mark_redisplay): mark gutters here.
11691
11692         * glyphs.c: (instantiate_image_instantiator): always layout if we
11693         haven't done so already.
11694         (allocate_image_instance): don't mark as dirty.
11695         (update_subwindow): bind inhibit_quit.
11696
11697         * gutter.c (mark_gutters): new function.
11698
11699         * glyphs-x.c (x_update_widget): Always resize to get round a
11700         widget bug.
11701
11702         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11703         breaking absolutely everything.
11704
11705         * gutter.h: declare mark_gutters.
11706
11707 2000-02-16  Martin Buchholz <martin@xemacs.org>
11708
11709         * XEmacs 21.2.29 is released.
11710
11711 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11712
11713         * fns.c (size_bit_vector): Fix computation of the size.
11714
11715 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11716
11717         * *.[ch]: Change CONST to const globally.
11718         find -name '*.[ch]' | \
11719         xargs global-replace \
11720         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11721         - Remove vestigial references to CONST_IS_LOSING
11722
11723 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11724
11725         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11726         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11727         events instead of dispatching them directly.
11728         (mswindows_handle_paint): New function to do repainting.
11729         (mswindows_wnd_proc):
11730         (emacs_mswindows_handle_magic_event): Call above function.
11731
11732 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11733
11734         * objects-msw.c (mswindows_create_font_variant): Return the new
11735         font handle.
11736         (initialize_font_instance): Get font metrics from the underlined
11737         variant of the font to cope with the case where the underlined
11738         font has a bigger descent.
11739
11740 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11741
11742         * gui.c (gui_item_accelerator): Return the first underlined
11743         character in item name.
11744
11745 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11746
11747         * lisp.h: Added Qprinter.
11748
11749         * general.c (syms_of_general): Initialized it.
11750
11751         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11752         (get_frame_dc):
11753         (get_frame_compdc): Made inline.
11754
11755         * console.h (struct console_methods): Added eject_page method.
11756
11757         * frame.h: Added FRAME_DISPLAY_P and friends.
11758         Aligned backslahes in many macros in more readable fashion.
11759         Added page_number to struct frame, and an accessor macro
11760         for it.
11761
11762         * defice.h: Added DEVICE_DISPLAY_P and friends.
11763
11764         * device.c (Fdevice_printer_p): Used these.
11765
11766         * frame.c (allocate_frame_core): Initialize page number.
11767         (Fprint_job_page_number):
11768         (Fprint_job_eject_page): Implemented.
11769
11770         * frame-msw.c (msprinter_eject_page): Added method.
11771         (msprinter_start_page): Added.
11772
11773         * window.c (Fwindow_truncated_p): Fixed docstring.
11774         (Fwindow_last_line_visible_height): Implemented.
11775
11776 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11777
11778         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11779
11780 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11781
11782         * syntax.c (scan_words): Always advance at least one character.
11783
11784 2000-02-13  Andy Piper  <andy@xemacs.org>
11785
11786         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11787         to make sure the glyph is in the cachels.
11788
11789         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11790         global image instance flag.
11791         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11792         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11793
11794         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11795         (Fset_image_instance_property): mark layout as changed.
11796         (invalidate_glyph_geometry_maybe): mark layout as changed.
11797         (glyph_width): use new NEEDS_LAYOUT macro.
11798         (glyph_ascent): ditto.
11799         (glyph_descent): ditto.
11800         (glyph_height): ditto.
11801         (image_instance_layout): mark layout as clean after laying out.
11802         (update_subwindow): don't mark layout as clean here.
11803
11804         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11805         should no longer be needed.
11806
11807         * glyphs-x.c (x_update_widget): sanitize asserts.
11808         (x_finalize_image_instance): sanitize assignment to widgets.
11809
11810         * glyphs-widget.c (widget_instantiate): don't need to clear the
11811         layout flag here.
11812
11813 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11814
11815         * sysdep.c (getcwd): Use standard prototype.
11816         * sysdep.h (getcwd): Use standard prototype.
11817
11818         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11819         (sequence, start, end).
11820         Remove redundant type checking.
11821         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11822         view of `caller-protects') to avoid a crash where the real fix was
11823         found elsewhere.
11824
11825 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11826
11827         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11828
11829         * s/sol2.h: Remove feature macro initialization.
11830
11831         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11832         (vector_hash): New.  Code from internal_hash.
11833         * lrecord.h:
11834         Fix up allocation subsystem comments.
11835
11836         * config.h.in: Add __EXTENSIONS__ for Solaris.
11837
11838         * systime.h (EMACS_GETTIMEOFDAY): New.
11839         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11840         Remove Solaris-specific code.
11841         Use void* for the (ignored) second arg for gettimeofday().
11842
11843         * elhash.c (hash_table_hash): Implement it, finally.
11844         * elhash.c:  Use hashcode_t.
11845
11846         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11847         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11848
11849         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11850         * fns.c (size_bit_vector):
11851         * alloc.c (size_vector):
11852         (make_vector_internal):
11853         (make_bit_vector_internal):
11854         (sweep_bit_vectors_1):
11855         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11856
11857 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11858
11859         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11860         Include strings.h to avoid warnings for bzero and strcasecmp.
11861
11862 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11863
11864         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11865         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11866
11867         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11868         sequence.
11869
11870 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11871
11872         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11873         use a value field instead.
11874         (symbol_value_forward_forward): Use value field.
11875         (DEFVAR_SYMVAL_FWD): Use value field.
11876         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11877         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11878         (DEFVAR_CONST_INT): Ditto.
11879         (DEFVAR_BOOL): Ditto.
11880         (DEFVAR_CONST_BOOL): Ditto.
11881         (DEFVAR_INT_MAGIC): Ditto.
11882         (DEFVAR_BOOL_MAGIC): Ditto.
11883
11884         * symbols.c (guts_of_unbound_marker): Use value field.
11885         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11886         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11887
11888         * lisp.h: Declare dumpopaque and noninteractive1.
11889
11890         * alloc.c (dumpopaque): Added.
11891         (pdump_dump_opaquevec): Added.
11892         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11893         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11894         noninteractive.
11895
11896 2000-02-10  Andy Piper  <andy@xemacs.org>
11897
11898         * glyphs.c (image_instance_layout): if the size changes, mark it
11899         as such.
11900
11901         * redisplay-output.c (redisplay_output_layout): Update the
11902         subwindow here.
11903         (redisplay_output_subwindow): ditto.
11904
11905         * glyphs.c (update_subwindow): make sure we reset flags for
11906         layouts as well as everything else.
11907
11908         * glyphs-widget.c (layout_layout): don't need to set the instances
11909         dimensions here.
11910
11911 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11912
11913         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11914         not HAVE_DLOPEN, which is a lower-level thing.
11915
11916         * .cvsignore: Ignore gmon.out
11917
11918 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11919
11920         * .cvsignore: Ignore portable dumper xemacs.dmp file
11921
11922 2000-02-09  Andy Piper  <andy@xemacs.org>
11923
11924         * redisplay-output.c (redisplay_output_layout): be more clever
11925         about when we output based on the changed flags.
11926
11927         * glyphs.h (struct image_instantiator_methods): add update_method.
11928         (struct Lisp_Image_Instance): add changed flags. Declare new
11929         macros for manipulating them.
11930
11931         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11932         (image_instance_parent_glyph): find an image_instance's parent
11933         glyph or image_instance.
11934         (image_instance_layout): mark the size as changed.
11935         (set_image_instance_dirty_p): new function. mark an image
11936         instance, plus all of its parents, as dirty.
11937         (Fset_image_instance_property): use it.
11938         (Fglyph_animated_timeout_handler): use it.
11939         (update_subwindow): call update_widget and device methods for
11940         update_subwindow. Mark all changed flags as clean.
11941         (Fresize_subwindow): mark size as changed.
11942
11943         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11944         failures.
11945         (x_update_subwindow): only resize subwindows here.
11946         (x_update_widget): new function. Update all changed properties of
11947         a widget.
11948         (x_resize_subwindow): deleted.
11949         (x_widget_set_property): deleted.
11950         (x_progress_gauge_set_property): deleted.
11951         (x_progress_gauge_update): new function. Implement recorded
11952         changes.
11953         (x_tab_control_update): ditto.
11954         (x_tab_control_set_property): deleted.
11955         (console_type_create_glyphs_x): declare new functions.
11956         (image_instantiator_format_create_glyphs_x): ditto.
11957
11958         * glyphs-widget.c (widget_set_property): mark text changed.
11959         (update_widget): new function. Update properties of a widget.
11960         (widget_instantiate): for layouts make sure we set their
11961         children's parent correctly.
11962         (tab_control_set_property): new function. Record changes that will
11963         take place under redisplay's control.
11964         (progress_gauge_set_property): ditto.
11965         (image_instantiator_progress_guage): declare new functions.
11966         (image_instantiator_tab_control): ditto.
11967
11968         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11969         now.
11970         (mswindows_update_widget): new function. Update all properties on
11971         a widget that have changed.
11972         (mswindows_button_update): new function. Update a button's set
11973         state.
11974         (mswindows_tab_control_update): new function. Update the items in
11975         a tab.
11976         (mswindows_tab_control_set_property): deleted.
11977         (mswindows_progress_gauge_update): new function. Update the
11978         progress gauge's progress.
11979         (mswindows_widget_set_property): deleted. This is all done
11980         asynchronously now.
11981         (mswindows_progress_gauge_set_property): ditto.
11982         (console_type_create_glyphs_mswindows): declare new methods.
11983         (image_instantiator_format_create_glyphs_mswindows): ditto.
11984
11985         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11986         (msprinter_set_frame_properties): ditto.
11987
11988         * console.h (struct console_methods): Add update_widget_method.
11989
11990 2000-02-09  Andy Piper  <andy@xemacs.org>
11991
11992         * gui-msw.c (Fmswindows_shell_execute): Make
11993         mswindows-shell-execute industrial strength.
11994
11995 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11996
11997         * lrecord.h: Make macro argument `props' match member function `plist'.
11998         * fns.c (Fget):
11999         * fns.c (Fput):
12000         * fns.c (Fremprop):
12001         * fns.c (Fobject_plist):
12002         * alloc.c:
12003         * symbols.c:
12004         Object property list frobbing cleanup.
12005         - Allow any lisp object (compared with `eq'), not just symbols, as
12006           keys in object plists.
12007         - Move symbol plist frobbing into symbols.c, where it belongs.
12008         - Move string plist frobbing into alloc.c, where it belongs.
12009         - Everything's an lrecord now, so no need to test for symbolp, etc.
12010         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12011
12012         * extents.c: Reorder code to remove declarations.
12013
12014         * frame.h (store_in_alist): Remove useless declaration.
12015
12016 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12017
12018         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12019         * config.h.in: Add HAVE_XCONVERTCASE.
12020
12021 2000-02-07  Andy Piper  <andy@xemacs.org>
12022
12023         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12024         it breaks many things.
12025
12026 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12027
12028         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12029         actually can start a common comment type.
12030         * src/syntax.h (SYNTAX_END_P): ditto for end.
12031
12032 2000-02-07  Martin Buchholz <martin@xemacs.org>
12033
12034         * XEmacs 21.2.28 is released.
12035
12036 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12037
12038         * event-Xt.c (x_keysym_to_character): New.
12039         (maybe_define_x_key_as_self_inserting_character): New.
12040         (x_has_keysym): New.
12041         Auto-define all keys on the keyboard as self-insert-key.
12042
12043 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12044
12045         * menubar.c (vars_of_menubar): A small code simplification.
12046
12047         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12048
12049         * ExternalShell.c:
12050         * ExternalClient.c:
12051         * EmacsShell-sub.c:
12052         * EmacsManager.c:
12053         * EmacsFrame.c:
12054         Use consistent style for specifying X resources.
12055
12056         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12057         This makes (dontusethis-set-symbol-value-handler) actually usable.
12058
12059         * lrecord.h (lrecord_decription_type):
12060         * alloc.c (pdump_register_sub):
12061         (pdump_dump_data):
12062         (pdump_reloc_one):
12063         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12064         Comply with XEmacs coding style.
12065         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12066         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12067
12068         * keymap.c (Faccessible_keymaps):
12069         Make (accessible-keymaps map "\C-h") do the Right Thing.
12070         Make (accessible-keymaps map []) do the Right Thing.
12071         Make (accessible-keymaps map "") do the Right Thing.
12072         (check_keymap_definition_loop): New function.
12073         (keymap_store_internal): Keep luser from shooting self in foot,
12074           via (define-key ctl-x-4-map "p" global-map).
12075         Remove fullness slot from struct Lisp_Keymap, since hash tables
12076         are now reliable.
12077         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12078
12079 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12080
12081         * redisplay.c (init_redisplay): Fix small memory leak.
12082         * elhash.h:
12083         * elhash.c (pdump_reorganize_hash_table):
12084         Rename from reorganize_hash_table. Change prototype.
12085         Reuse the original memory for hentries.  Save 100k.
12086         * alloc.c (PDUMP_READ): new macro.
12087         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12088         * alloc.c: No need to #ifndef before #undef.
12089
12090         * print.c: Allow debug_print() to print readably by modifying
12091         debug_print_readably.  Use consistent variable names.
12092
12093         * .dbxrc: Try to get things to work even if stopped in a function
12094         without source available by explicitly specifying source files.
12095 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12096
12097         * unexnt.c (_start): Removed bogus code which caused loading heap
12098         from differrent executable file.
12099         Removed bogus assignment to _fmode, which caused inconsistencies.
12100
12101 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12102
12103         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12104         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12105         Do not preliminary `#define signal sigset'.
12106
12107         * systime.h: Do not prototype environ on windows nt and cygwin,
12108         this conflicts with system header.
12109
12110         * syssignal.h: Use correct define for WINDOWSNT
12111
12112         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12113         with system header.
12114
12115         * sysdep.c (near start of file): Fixed commentary and rearranged
12116         ifdefs in readable order.
12117         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12118         (start_of_text):
12119         (end_of_text):
12120         (end_of_data): Do not compile in if using PDUMP.
12121
12122         * symsinit.h: Prototyped vars_of_nt().
12123
12124         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12125         (find_child_console): Use it.
12126         (sys_kill): Use it.
12127
12128         * ntheap.h: Do not extern os_subtype.
12129
12130         * ntheap.c (cache_system_info): Do not cache unneeded:
12131         nt_major_version, nt_minor_version and os_subtype.
12132         (recreate_heap): Do not compile in when PDUMPing.
12133
12134         * nt.c (geteuid and friends): Use the new varibale
12135         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12136         (init_user_info): Removed the above mentioned hackery.
12137         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12138         stat has been fixed in the C runtime.
12139         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12140
12141         * file-coding.c (struct file_coding_dump): Do not define
12142         ucs_to_mule_table in the struct if not MULE.
12143         (struct struct lrecord_description fcd_description_1): Do not dump
12144         the above.
12145
12146         * emacs.c (main_1): Call vars_of_nt().
12147         (right before Fdump_emacs_data): Don't need lastfile if using both
12148         portabe dumper and system malloc.
12149
12150         * alloc.c (Fmemory_limit): Conditionalized out.
12151         (pdump): Use OPEN_BINARY for the portable dump file.
12152         (pdump_load): Ditto.
12153
12154 2000-02-02  Mike Alexander  <mta@arbortext.com>
12155
12156         * nt.c (convert_time): Set tm_isdst before calling mktime and
12157         avoid calling it at all if the compiler supports 64 bit integers.
12158         Also initialize utc_base_ft before using it.
12159
12160 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12161
12162         * frame.c (change_frame_size_1): Take f->internal_border_width
12163         into consideration when calculating the width of the frame.
12164
12165 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12166
12167         * window.c (frame_min_height):
12168         (frame_size_valid_p):
12169         (frame_pixsize_valid_p): Added.
12170         (check_frame_size): Generalized.
12171
12172         * window.h: Prototyped the above.
12173
12174         * lisp.h:
12175         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12176         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12177         Deleted Vwin32_* and Vbinary_process_* unused variables.
12178
12179         * device-msw.c (msprinter_init_device): Do not get printer font
12180         list; Added DEVMODE functions.
12181
12182         * frame-msw.c: Added lots of printer code.
12183
12184         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12185         general.c.
12186
12187         * console-msw.h: Added more msprinter device private slots.
12188
12189 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12190
12191         * event-msw.c (key_needs_default_processing_p): Added.
12192         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12193
12194 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12195
12196         * glyphs.c (image_instance_layout): Mark image instance as clean
12197         after layout.
12198         (glyph_dirty_p): Removed redundant function.
12199         (invalidate_glyph_geometry_maybe): Added.
12200         (update_glyph_cachel_data): Call it.
12201
12202         * glyphs.h: Prototyped it.
12203
12204         * redisplay.c (add_glyph_rune): Call it.
12205         (redisplay_window): Reset glyphs cachels when frame faces have
12206         changed, thus forcing recomputation of built-in border glyphs.
12207
12208 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12209
12210         * Makefile.in.in: Make portable dumper and purify play well together.
12211         Add imperfect, but better than nothing, support for pdump.
12212         Remove xemacs.dmp when temacs is re-generated.
12213         Don't ignore errors when dumping xemacs.
12214
12215         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12216
12217 2000-01-28  Andy Piper  <andy@xemacs.org>
12218
12219         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12220         (setup_normal_frame): ditto.
12221         (setup_frame_without_minibuffer): ditto.
12222         (setup_minibuffer_frame): ditto.
12223         (delete_frame_internal): ditto.
12224         (Fmake_frame_invisible): ditto.
12225         (Ficonify_frame): ditto.
12226
12227         * window.h: change Fset_window_buffer signature.
12228
12229         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12230         (Fset_window_buffer): allow recording of buffer if the window is
12231         the selected window.
12232         (window_loop): Use new Fset_window signature.
12233
12234 2000-01-23  Daniel Pittman  <daniel@danann.net>
12235
12236         * config.h.in: Added template for `HAVE_ATHENA_3D'
12237
12238 2000-01-29  Andy Piper  <andy@xemacs.org>
12239
12240         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12241
12242         * gutter.c (output_gutter): Don't output if the window isn't live.
12243
12244 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12245
12246         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12247         of 01/12/00: Moved SetFocus back here where it belongs.
12248
12249 2000-01-23  Andy Piper  <andy@xemacs.org>
12250
12251         * s/cygwin32.h: declare printer things.
12252
12253 2000-01-26  Andy Piper  <andy@xemacs.org>
12254
12255         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12256         Alexander.
12257
12258 2000-01-24  Andy Piper  <andy@xemacs.org>
12259
12260         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12261         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12262
12263         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12264
12265         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12266
12267         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12268
12269         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12270         (mswindows_output_display_block): Avoid local shadows.
12271
12272         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12273         (mswindows_enqueue_mouse_button_event): ditto.
12274         (mswindows_handle_gui_wm_command): remove declaration.
12275
12276         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12277         warnings.
12278
12279         * console-msw.h: Avoid shadows.
12280         (mswindows_get_toolbar_button_text):
12281         (emacs_mswindows_create_stream_pair):
12282         (emacs_mswindows_delete_stream_pair):
12283         (mswindows_handle_toolbar_wm_command): declare.
12284
12285         * device-msw.c (build_syscolor_string): Avoid shadows.
12286
12287 2000-01-23  Andy Piper  <andy@xemacs.org>
12288
12289         * glyphs-widget.c (widget_instantiate): reverse the items for
12290         layouts so that children are in the expected order.
12291
12292 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12293
12294         * ralloc.c: safe_bcopy ==> memmove
12295         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12296         * s/msdos.h: Remove BCOPY macros.
12297         * insdel.c (gap_right): Remove BCOPY conditional code.
12298         * insdel.c (gap_left): Remove BCOPY conditional code.
12299         XEmacs demands a working ANSI C compiler - hence memmove.
12300
12301         * regex.c (regex_compile): Remove accidental use of trigraphs.
12302
12303 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12304
12305         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12306         event timestamp.
12307
12308 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12309
12310         * event-msw.c (mswindows_drain_windows_queue): Added the
12311         parameter.
12312         (mswindows_need_event): Commented the call to
12313         mswindows_drain_windows_queue().
12314         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12315         only.
12316
12317         * console-msw.h: Moved a few function prototypes here from
12318         event-msw.c.
12319
12320         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12321         parameter from unsigned short to unsigned long.
12322         (Fmswindows_shell_execute): Added return value.
12323
12324 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12325
12326         * sysdep.c (init_system_name):
12327           process-unix.c (unix_canonicalized_host_name):
12328         Don't call freeaddrinfo() if getaddrinfo() fails.
12329
12330         * process-unix.c (unix_open_unix_network_stream):
12331         Moved the code to get a port # into address loop.
12332
12333 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12334
12335         * buffer.c (reinit_vars_of_buffer):
12336         The right place to initialize conversion_in_dynarr and
12337         conversion_out_dynarr.
12338
12339         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12340
12341         * process-unix.c (unix_canonicalize_host_name): Muleize.
12342         (unix_open_network_stream): Muleize.
12343
12344         * buffer.h: Fix up prototypes for ralloc.c functions.
12345
12346 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12347         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12348         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12349                 instead of gethostbyname()
12350         * process-unix.c: In unix_canonicalize_host_name() and
12351                 unix_open_network_stream(), add code to use getaddrinfo()
12352                 instead of gethostbyname().
12353
12354 2000-01-27  Daniel Pittman <daniel@danann.net>
12355
12356         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12357         libs when built with flat Athena.
12358
12359 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12360
12361         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12362         Use coding standards for function prototypes.
12363
12364 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12365
12366         * dialog-msw.c (push_lisp_string_as_unicode):
12367         * doc.c (unparesseuxify_doc_string):
12368         * dired.c (Fuser_name_completion_1):
12369         * dired.c (Fuser_name_all_completions):
12370         * dired.c (free_user_cache):
12371         * dired.c (user_name_completion):
12372         * console-x.c (get_display_arg_connection):
12373         * minibuf.c (clear_echo_area_internal):
12374         * minibuf.c (echo_area_append):
12375         * eldap.c (Fldap_open):
12376         * eldap.c (Fldap_search_internal):
12377         * frame-x.c (x_set_frame_text_value):
12378         * frame-x.c (x_set_frame_properties):
12379         * frame-x.c (x_create_widgets):
12380         * redisplay-tty.c (term_get_fkeys_1):
12381         * objects-x.c (x_parse_nearest_color):
12382         * objects-x.c (x_valid_color_name_p):
12383         * objects-x.c (x_initialize_font_instance):
12384         * objects-x.c (x_list_fonts):
12385         * objects-x.c (x_find_charset_font):
12386         * tooltalk.c (Fadd_tooltalk_message_arg):
12387         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12388         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12389         * process-unix.c (unix_create_process):
12390         * ntproc.c (sys_spawnve):
12391         * sound.c (Fplay_sound_file):
12392         * sound.c (Fplay_sound):
12393         * buffer.c (init_initial_directory):
12394         * buffer.c (init_buffer):
12395         * editfns.c (init_editfns):
12396         * editfns.c (Ftemp_directory):
12397         * editfns.c (Fuser_full_name):
12398         * editfns.c (uncache_home_directory):
12399         * editfns.c (get_home_directory):
12400         * editfns.c (Fuser_home_directory):
12401         * editfns.c (Fformat_time_string):
12402         * editfns.c (Fcurrent_time_string):
12403         * gui-x.c (button_item_to_widget_value):
12404         * database.c (Fopen_database):
12405         * event-Xt.c (x_to_emacs_keysym):
12406         * event-Xt.c (x_event_to_emacs_event):
12407         * event-Xt.c (describe_event_window):
12408         * event-msw.c (mswindows_wnd_proc):
12409         * glyphs-eimage.c (jpeg_instantiate):
12410         * glyphs-eimage.c (gif_instantiate):
12411         * glyphs-eimage.c (png_instantiate):
12412         * glyphs-eimage.c (tiff_instantiate):
12413         * glyphs-x.c (xbm_instantiate_1):
12414         * glyphs-x.c (x_xbm_instantiate):
12415         * glyphs-x.c (x_xface_instantiate):
12416         * glyphs-x.c (autodetect_instantiate):
12417         * glyphs-x.c (cursor_font_instantiate):
12418         * glyphs-x.c (x_widget_instantiate):
12419         * glyphs-x.c (x_widget_set_property):
12420         * glyphs-x.c (x_widget_property):
12421         * glyphs-x.c (BUILD_GLYPH_INST):
12422         * print.c (write_string_to_stdio_stream):
12423         * print.c (output_string):
12424         * print.c (Falternate_debugging_output):
12425         * print.c (Fexternal_debugging_output):
12426         * glyphs-msw.c (extract_xpm_color_names):
12427         * glyphs-msw.c (mswindows_xpm_instantiate):
12428         * glyphs-msw.c (bmp_instantiate):
12429         * glyphs-msw.c (resource_name_to_resource):
12430         * glyphs-msw.c (mswindows_resource_instantiate):
12431         * glyphs-msw.c (xbm_instantiate_1):
12432         * glyphs-msw.c (mswindows_xbm_instantiate):
12433         * glyphs-msw.c (mswindows_xface_instantiate):
12434         * glyphs-msw.c (mswindows_widget_instantiate):
12435         * glyphs-msw.c (add_tree_item):
12436         * glyphs-msw.c (add_tab_item):
12437         * glyphs-msw.c (mswindows_combo_box_instantiate):
12438         * glyphs-msw.c (mswindows_widget_property):
12439         * glyphs-msw.c (mswindows_combo_box_property):
12440         * glyphs-msw.c (mswindows_widget_set_property):
12441         * console.c (stuff_buffered_input):
12442         * objects-msw.c (mswindows_initialize_color_instance):
12443         * objects-msw.c (mswindows_valid_color_name_p):
12444         * objects-msw.c (mswindows_list_fonts):
12445         * objects-msw.c (mswindows_font_instance_truename):
12446         * bytecode.c (optimize_compiled_function):
12447         * select-x.c (symbol_to_x_atom):
12448         * select-x.c (x_atom_to_symbol):
12449         * select-x.c (hack_motif_clipboard_selection):
12450         * select-x.c (selection_data_to_lisp_data):
12451         * select-x.c (lisp_data_to_selection_data):
12452         * select-x.c (Fx_get_cutbuffer_internal):
12453         * select-x.c (Fx_store_cutbuffer_internal):
12454         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12455         * buffer.h (TO_INTERNAL_FORMAT): New function.
12456         * emacs.c (make_arg_list_1):
12457         * emacs.c (make_argc_argv):
12458         * emacs.c (main_1):
12459         * emacs.c (Fdump_emacs):
12460         * emacs.c (split_string_by_emchar_1):
12461         * file-coding.h:
12462         * lisp.h:
12463         * lstream.h:
12464         * symsinit.h:
12465         * device-x.c (x_init_device):
12466         * device-x.c (Fx_valid_keysym_name_p):
12467         * device-x.c (Fx_get_font_path):
12468         * device-x.c (Fx_set_font_path):
12469         * glyphs.c (bitmap_to_lisp_data):
12470         * glyphs.c (pixmap_to_lisp_data):
12471         * alloc.c (make_ext_string): Use coding system arguments.  Update
12472         all callers.
12473         * alloc.c (build_string):
12474         * callproc.c (child_setup):
12475         * callproc.c (init_callproc):
12476         * fileio.c (lisp_strerror):
12477         * fileio.c (directory_file_name):
12478         * fileio.c (Fexpand_file_name):
12479         * fileio.c (Ffile_truename):
12480         * fileio.c (Fsysnetunam):
12481         * fileio.c (Fdo_auto_save):
12482         * sysdep.c (sys_readdir):
12483         * tests.c: New file.  Allow adding C tests.
12484         Replace GET_* macros with a more comprehensible and flexible
12485         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12486         Modify all calls.
12487         Any coding system can be used to do format conversion.
12488         Eliminate enum external_data_format.
12489         Eliminate convert_to_external_format.
12490         Eliminate convert_to_internal_format.
12491         Make sure file-name, keyboard, terminal, and ctext are always
12492         defined as coding systems or aliases.  Make
12493         file-name-coding-system, terminal-coding-system, and
12494         keyboard-coding-system magical variables that are equivalent to
12495         defining the corresponding coding system aliases.
12496
12497         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12498         * file-coding.c (Fcoding_system_alias_p): New function.
12499         * file-coding.c (Fcoding_system_aliasee): New function.
12500         * file-coding.c (append_suffix_to_symbol): New function.
12501         * file-coding.c (dangling_coding_system_alias_p): New function.
12502         * file-coding.c (Ffind_coding_system):
12503         * file-coding.c (Fcopy_coding_system):
12504         * file-coding.c (encode_coding_no_conversion):
12505         * file-coding.c (syms_of_file_coding):
12506         * file-coding.c (vars_of_file_coding):
12507         Rewrite coding system alias code.
12508         Allow nested aliases, like symbolic links.
12509         Allow redefinition of coding system aliases.
12510         Prevent existence of dangling coding system aliases.
12511
12512         * dired.c (Fuser_name_completion_1):
12513         * dired.c (Fuser_name_all_completions):
12514         A crash would happen if user did QUIT in the middle of building
12515         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12516
12517         * lisp.h:
12518         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12519
12520         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12521         an unsigned char *.  Update all callers.
12522
12523 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12524
12525         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12526
12527 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12528
12529         * elhash.c (hentry_description): Use more portable definition.
12530         (resize_hash_table): Initialize new hentries using
12531         xnew_array_and_zero, thereby simplifying the code.
12532
12533         * mule-charset.c (make_charset): Make sure entire object is
12534         initialized, to avoid Purify warnings.
12535
12536         * alloc.c (resize_string): Fix unlikely crash with big strings.
12537
12538 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12539
12540         * realpath.c (xrealpath):
12541         Don't call getwd().
12542
12543 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12544
12545         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12546
12547 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12548
12549         * unexelfsgi.c (unexec): Change the way we decide which segment
12550         should be extended.
12551
12552         Assumption that .bss section should be outside the PT_LOADable
12553         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12554         it's present) is inside the 'data' segment. This would fail the
12555         test which was used to find a segment to grow and cover new
12556         heap. Instead of this assumption, I created another one - on IRIX
12557         the segment to grow should start below .bss and it's address
12558         should extent above the end of .bss. Once this segment is
12559         identified, it's grown to accommodate the new heap and new
12560         zero-length .bss section is added at the end of .data2.
12561
12562 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12563
12564         * eval.c (Feval): Wrong number of arguments should use original
12565         function, not the indirect_function version of it.
12566
12567 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12568
12569         * glyphs-x.c (x_button_instantiate): Don't add image if
12570         it is not a pixmap.
12571         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12572         is relative.
12573
12574 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12575
12576         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12577         declaration.
12578         (DEFVAR_INT_MAGIC): Ditto.
12579         (DEFVAR_BOOL_MAGIC): Ditto.
12580         * glyphs.h: Reindent backslash.
12581
12582 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12583
12584         * glyphs-widget.c (layout_query_geometry):
12585         (layout_layout): Use correct types for gheight, gwidth.
12586
12587 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12588
12589         * EmacsManager.c (QueryGeometry): Purified.
12590
12591 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12592
12593         * alloc.c (make_float): Make sure entire object is initialized, to
12594         avoid Purify warnings.
12595         (pdump_register_sub): Remove useless assignment.
12596         (pdump): Use xmalloc, not malloc.
12597         (pdump_load): Use xmalloc, not malloc.
12598
12599 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12600
12601         * callproc.c:
12602         * dired-msw.c:
12603         * fileio.c:
12604         * process-nt.c:
12605         * redisplay-msw.c:
12606         * sysdep.c: Removed redundant #include <windows.h>
12607
12608 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12609
12610         * frame.c (delete_frame_internal): Do not delete device when its
12611         implementation so declares.
12612         (delete_frame_internal): Set device selected frame to nil when
12613         last frame goes away.
12614
12615         * device-msw.c (msprinter_device_system_metrics): Implemented.
12616         (mswindows_device_system_metrics): Added 'device-dpi property.
12617
12618         * device.c: (Fdevice_printer_p): Added.
12619         Added 'offset-workspace device metric.
12620
12621         * console.h (device_metrics): Declared DM_offset_workspace.
12622
12623 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12624
12625         * fileio.c (Ffile_truename): Remove pointless and confusing
12626         initialization of elen.
12627
12628         * glyphs-widget.c: Compiler warning fixes.
12629
12630 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12631
12632         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12633         instead of a Lisp_Object as argument to make it consistent with
12634         the other LIVE_P macros.
12635         (CHECK_LIVE_PROCESS): New macro.
12636
12637         * process.c: Declare Qprocess_live_p.
12638         (Fprocess_live_p): New function.
12639         (create_process): Use PROCESS_LIVE_P.
12640         (read_process_output): Ditto.
12641         (set_process_filter): Ditto.
12642         (Fdelete_process): Ditto.
12643         (kill_buffer_processes): Ditto
12644         (process_send_signal): Use CHECK_LIVE_PROCESS.
12645         (Fprocess_input_coding_system): Check whether process is still
12646         alive (fix PR#1061).
12647         (Fprocess_output_coding_system): Ditto.
12648         (Fprocess_coding_system): Ditto.
12649         (Fset_process_input_coding_system): Ditto.
12650         (Fset_process_output_coding_system): Ditto.
12651
12652 2000-01-23  Andy Piper  <andy@xemacs.org>
12653
12654         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12655         layout and widget.
12656
12657         * glyphs.c (mark_image_instance): take into account changed
12658         image_instance format.
12659         (image_instance_equal): ditto.
12660         (image_instance_hash): ditto.
12661
12662         * glyphs-widget.c (widget_instantiate): Incorporate layout
12663         instantiation here. Delay layout of the layout until later.
12664         (layout_instantiate): deleted.
12665         (layout_query_geometry): new function. get the geometry of a
12666         layout.
12667         (layout_layout): layout a layout dynamically.
12668         (image_instantiator_widget): New function - splitting up
12669         image_instantiator_format_create_glyphs_widget for netwinder
12670         compilation.
12671         (image_instantiator_buttons):
12672         (image_instantiator_edit_fields):
12673         (image_instantiator_combo_box):
12674         (image_instantiator_scrollbar):
12675         (image_instantiator_progress_guage):
12676         (image_instantiator_tree_view):
12677         (image_instantiator_tab_control):
12678         (image_instantiator_labels):
12679         (image_instantiator_layout): ditto.
12680         (image_instantiator_format_create_glyphs_widget): Call preceding
12681         functions.
12682
12683 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12684
12685         * process.c (Fset_process_coding_system):
12686         * device-x.c (Fx_keysym_hash_table):
12687         Docstring fixes.
12688
12689         * lstream.c (Lstream_write): Return documented value, not 0.
12690
12691         * fileio.c (directory_file_name):
12692         (Fsubstitute_in_file_name):
12693         (Fsubstitute_insert_file_contents_internal):
12694         (Fwrite_region_internal):
12695         * emacs.c:
12696         * sysdep.c:
12697         * getloadavg.c:
12698         * systty.h:
12699         Remove vestigial APOLLO-conditional code.
12700
12701 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12702
12703         * getpagesize.h: Add guard macros.
12704         * libsst.h: Add guard macros.
12705         * libst.h: Add guard macros.
12706         * line-number.h: Add guard macros.
12707         * ndir.h: Add guard macros.
12708         * sysfloat.h: Add guard macros.
12709         * sysfile.h: Add guard macros.
12710         * sysproc.h: Add guard macros.
12711         * syswait.h: Add guard macros.
12712         * xintrinsic.h: Add guard macros.
12713         * xintrinsicp.h: Add guard macros.
12714         * xmmanager.h: Add guard macros.
12715         * xmmanagerp.h: Add guard macros.
12716         * xmprimitive.h: Add guard macros.
12717         * xmu.h: Add guard macros.
12718         * gpmevent.h: Add copyright statement. Add guard macros.
12719         * miscplay.h: Add guard macros.
12720         * *.h: Use consistent C-standards-approved guard macro names.
12721
12722         * opaque.c (make_opaque): Switch parameter order.
12723         * opaque.h (make_opaque): Switch parameter order.
12724         Update all callers.
12725         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12726
12727         * config.h.in (type_checking_assert): Added.
12728         (bufpos_checking_assert): Added.
12729
12730 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12731
12732         * alloc.c: Harmless pdump changes.
12733         - Use countof().
12734         - spell alignment correctly.
12735         * sysdep.c: Use countof()
12736
12737 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12738
12739         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12740         initially_selected_for_input() console method, default to 0.
12741         (semi_canonicalize_console_connection): Try to delegate to
12742         canonicalize_console_connection if no such console method.
12743         (canonicalize_console_connection): Vice versa.
12744         (print_console): Do not print nil connection.
12745
12746         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12747         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12748         (XDEVIMPF_FRAMELESS_OK): Added.
12749         (CONSOLE_INHERITS_METHOD): Added.
12750
12751         * console-msw.c (mswindows_canonicalize_console_connection):
12752         Added.
12753         (mswindows_canonicalize_device_connection): Added.
12754
12755         * console-msw.h (struct msprinter_device): Added this struct and
12756         accessor macros.
12757         (mswindows_device): Made fontlist a lisp object.
12758
12759         * device.c (semi_canonicalize_device_connection):  Try to delegate
12760         to canonicalize_device_connection if no such console method.
12761         (canonicalize_device_connection): Vice versa.
12762         (print_device): Do not print nil connection.
12763
12764         * device-msw.c (mswindows_init_device): Call InitCommonControls
12765         when have widgets.
12766         (mswindows_delete_device): Removed fontlist deallocation.
12767         (mswindows_mark_device): Added.
12768
12769         * events.c (event_equal): Added abort() at unreached code.
12770         (event_hash): Ditto.
12771
12772         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12773         fallback tags of Windows devices.
12774
12775         * general.c (syms_of_general): Initialized Qmsprinter.
12776
12777         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12778         of fallback tags of Windows devices.
12779
12780         * lisp.h: Declared Qmsprinter.
12781
12782         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12783         of strings.
12784         (mswindows_list_fonts): Ditto.
12785         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12786         that it can be used by both mswindows and msprinter devices.
12787         (initialize_font_instance): Added.
12788         (mswindows_initialize_font_instance): Use it.
12789         (msprinter_initialize_font_instance): Added.
12790
12791         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12792         and implementation flags check.
12793         (redisplay_without_hooks): Changed the call to the above.
12794         (Fredraw_device): Ditto.
12795         (Fredisplay_device): Ditto.
12796
12797         * redisplay-msw.c (get_frame_dc): Implemented.
12798         (get_frame_compdc): Implemented.
12799         (many functions): Use the two functions above to get device
12800         contexts, ether for a window or a printer.
12801
12802 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12803
12804         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12805         initialization here.
12806         (init_symbols_once_early): Call it.
12807         * emacs.c (main_1): Call it.
12808         * symsinit.h: Declare it.
12809
12810 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12811
12812         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12813         Lisp_Object.
12814         (pdump_backtrace): Ditto.
12815         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12816         (pdump_get_entry): Abort if trying to register a null pointer.
12817         (pdump_dump_data): Cleanup types when relocating.
12818         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12819         (pdump_dump_rtables): Remove bad casts.
12820         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12821         Lisp_Object instead of a EMACS_INT for the hashtable
12822         reorganization.
12823
12824 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12825
12826         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12827
12828         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12829
12830         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12831
12832         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12833
12834 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12835
12836         * faces.h (FACE_STRIKETHRU_P): Added.
12837
12838         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12839         of font variants.
12840
12841         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12842         (mswindows_set_dc_font): New function, aware of font variants,
12843         separated from mswindows_update_dc.
12844
12845         * objects-msw.h (struct mswindows_font_instance_data): Added
12846         definition.
12847
12848         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12849         cached fonts and the data structure.
12850         (mswindows_initialize_font_instance): Added creation of font data
12851         structure.
12852         (mswindows_print_font_instance): Print at least something.
12853         (mswindows_create_font_variant): Implemented.
12854         (mswindows_get_hfont): Implemented.
12855
12856 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12857
12858         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12859         prototyping problem with msvc.
12860
12861         * emacs.c (main_1): added syms_of_gui_mswindows() call
12862
12863         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12864         syms_of_gui_mswindows() function
12865
12866         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12867
12868 2000-01-18  Martin Buchholz <martin@xemacs.org>
12869
12870         * XEmacs 21.2.27 is released.
12871
12872 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12873
12874         * glyphs-eimage.c (struct tiff_error_struct):
12875         (tiff_error_func):
12876         (tiff_warning_func):
12877         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12878
12879         * unexmips.c:
12880         * unexhp9k3.c:
12881         * unexfreebsd.c:
12882         * unexec.c: Remove vestigial Lucid C code.
12883         * unexalpha.c:
12884         * unexaix.c:
12885         * termcap.c:
12886         * libsst.c: Ansify.
12887         Remove declarations of errno and strerror().
12888
12889         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12890
12891         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12892
12893 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12894
12895         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12896         Optimize.
12897
12898 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12899
12900         * md5.c:
12901         * file-coding.c:
12902         * file-coding.h:
12903         Change enum eol_type to eol_type_t.
12904
12905 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12906
12907         * gui.c (get_gui_callback): Check cons before accessing car.
12908
12909 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12910
12911         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12912         (XSETSPECIFIER_TYPE): Ditto.
12913
12914 2000-01-17  Didier Verna  <didier@xemacs.org>
12915
12916         * redisplay.c (generate_fstring_runes): compute string size in
12917         characters, not bytes.
12918
12919 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12920
12921         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12922
12923 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12924
12925         * print.c (print_error_message): Call print_prepare().
12926
12927 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12928
12929         * .dbxrc: Renamed from dbxrc.
12930
12931         * events.c (event_to_character):
12932         Use `assert (foo)' instead of `if (!foo) abort()'
12933
12934         * .gdbinit (xtype): Add documentation.
12935         * .gdbinit (check-temacs): New function.
12936         * .gdbinit (check-xemacs): New function.
12937         * dbxrc (check-xemacs): New function.
12938         * dbxrc (check-xemacs): New function.
12939
12940 2000-01-14  Andy Piper  <andy@xemacs.org>
12941
12942         * glyphs-widget.c (widget_query_geometry): Make sure that we
12943         calculate default dimensions correctly.
12944
12945 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12946
12947         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12948
12949         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12950         pdump_wire'd variable.
12951
12952         * emacs.c: (main_1): Conditionalized calls to
12953         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12954
12955 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12956
12957         * window.c (Fset_window_configuration):
12958         * sysdep.c (_start):
12959         * input-method-motif.c (res):
12960         * event-Xt.c (Xt_process_to_emacs_event):
12961         Simple compiler warning fixes.
12962
12963         * bytecode.c (funcall_compiled_function): Use the original
12964         function symbol on the backtrace list in preference to the
12965         compiled_function object in error messages.
12966
12967 2000-01-13  Andy Piper  <andy@xemacs.org>
12968
12969         * glyphs-x.c (update_widget_face): Make sure we update the widget
12970         background as well as foreground.
12971
12972 2000-01-13  Andy Piper  <andy@xemacs.org>
12973
12974         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12975         fields to subwindow.
12976         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12977         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12978         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12979         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12980
12981         * glyphs-widget.c (check_valid_tab_orientation): new function.
12982         (initialize_widget_image_instance): zero orientation and
12983         justification.
12984         (widget_instantiate): pick up orientation.
12985         (tab_control_query_geometry): return appropriate values for
12986         vertical tabs.
12987
12988         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12989         appropriate creation flags for left, right and bottom tabs.
12990
12991         * s/cygwin32.h: add tab definitions.
12992
12993 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12994
12995         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12996         frame upon hiding a subwindow.
12997         (mswindows_button_instantiate): Changed the push button style to
12998         BS_PUSHBUTTON.
12999         (mswindows_button_instantiate): Removed button BS_NOTIFY
13000         style.
13001         (mswindows_button_instantiate): Removed redundant check for
13002         a disabled gui item.
13003         (mswindows_button_instantiate): Made use of WS_TABSTOP
13004         consistent: "operable" controls (edit, button, tree, scroll) have
13005         this style, "display-only" ones (static, progress gauge) do
13006         not. This style is currently ignored by XEmacs though. Also,
13007         removed the WS_EX_CONTROLPARENT style - it is not for children,
13008         it is for their parents!
13009         (mswindows_edit_field_instantiate): Ditto.
13010         (mswindows_progress_gauge_instantiate): Ditto.
13011         (mswindows_tree_view_instantiate): Ditto.
13012         (mswindows_tab_control_instantiate): Ditto.
13013         (mswindows_scrollbar_instantiate): Ditto.
13014         (mswindows_combo_box_instantiate): Ditto.
13015         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13016         style to the "clip" window.
13017         (mswindows_button_instantiate): Removed compilation warning by
13018         equally typing terms of the ?: operator.
13019
13020 2000-01-12  Didier Verna  <didier@xemacs.org>
13021
13022         * redisplay.c (generate_fstring_runes): new parameter holding the
13023         last modeline-format extent.
13024         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13025         extent, fill the glyph block with it.
13026         (generate_fstring_runes): handle these parameters.
13027         (generate_formatted_string_db): ditto.
13028
13029         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13030         glyphs'extents in the modeline.
13031
13032 1999-01-11  Mike Woolley  <mike@bulsara.com>
13033
13034         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13035         256Mb, as a workaround for the non-starting problem many people
13036         have experienced.
13037
13038 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13039
13040         * console-tty.c (Fset_console_tty_output_coding_system):
13041         Force redrawing tty frame.
13042
13043 2000-01-10  Didier Verna  <didier@xemacs.org>
13044
13045         * redisplay.c (generate_fstring_runes): fix size computation bug.
13046
13047 2000-01-09  William M. Perry <wmperry@aventail.com>
13048
13049         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13050
13051 2000-01-09  Andy Piper  <andy@xemacs.org>
13052
13053         * glyphs-msw.c: index -> i to avoid shadows.
13054         (xbm_create_bitmap_from_data): make static.
13055         (check_valid_string_or_int): deleted.
13056         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13057
13058         * glyphs-x.c (x_update_subwindow): remove unused args.
13059
13060         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13061         back pointer - this is done in allocate_image_instance.
13062         (query_string_font): return Qnil to make the compiler happy.
13063         (unmap_subwindow): set to ~0 to make the compiler happy.
13064         (glyph_query_geometry): comment out until used.
13065         (glyph_layout): ditto.
13066
13067 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13068
13069         * insdel.c (signal_after_change): Remove extraneous unbind_to().