Sync with r21-2-44-0_18-m8.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
4         instead of `DECODE_CHAR' for mother; don't use special code for
5         chinese-big5 to use code space of chinese-big5-1 and
6         chinese-big5-2.
7         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
8         `MAX_CHAR_BIG5_CDP' for chinese-big5.
9
10         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
11         (MAX_CHAR_BIG5_CDP): Revival.
12
13 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
16         the XLFD registry-encoding name of `chinese-big5'.
17
18 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
19
20         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
21         (Qchinese_big5_cdp): Deleted.
22         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
23         (complex_vars_of_mule_charset): Delete coded-charset
24         `chinese-big5-cdp'.
25
26         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
27         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
28         `CHARSET_ID_OFFSET - n' for private CCS.
29         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
30         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
31         of `MIN_LEADING_BYTE'.
32         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
33         `(CHARSET_ID_OFFSET - 97)'.
34         (MIN_CHAR_BIG5_CDP): Deleted.
35         (MAX_CHAR_BIG5_CDP): Deleted.
36
37 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
40
41 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
42
43         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
44         (vars_of_mule): Add new variable `utf-2000-version' [moved from
45         chartab.c].
46
47         * chartab.c (Vutf_2000_version): Moved to mule.c.
48         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
49
50 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
51
52         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
53         when HAVE_CHISE_CLIENT is not defined.
54
55         * mule.c (vars_of_mule): Provide feature `chise' when
56         HAVE_CHISE_CLIENT is defined.
57
58 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
59
60         * config.h.in (UTF2000): Add comment.
61         (HAVE_CHISE_CLIENT): New macro.
62
63 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
64
65         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
66         CONSP.
67         (Fput_char_attribute): Likewise.
68         (char_attribute_system_db_file): Encode file-name of attribute.
69         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
70         the initial value.
71
72 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
73
74         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
75         (Fsave_charset_mapping_table): Use
76         `char_attribute_system_db_file'.
77         (load_char_decoding_entry_maybe): Likewise.
78
79         * chartab.h (Qsystem_char_id): New external variable.
80         (char_attribute_system_db_file): New prototype.
81
82         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
83         (char_attribute_system_db_file): New function.
84         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
85         (Freset_char_attribute_table): Likewise.
86         (load_char_attribute_maybe): Likewise.
87         (Fload_char_attribute_table): Likewise.
88         (syms_of_chartab): Add new symbol `system-char-id'.
89
90 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
91
92         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
93         `XCHARSET_GRAPHIC(ccs)'.
94
95 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
96
97         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
98
99 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
100
101         * chartab.c (Q_ucs_variants): New variable.
102         (syms_of_chartab): Add new symbol `->ucs-variants'.
103         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
104         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
105         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
106
107         * mule-charset.c (load_char_decoding_entry_maybe): New function.
108
109         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
110         `HAVE_DATABASE' is defined.
111         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
112         `HAVE_DATABASE' is defined.
113
114 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
115
116         * chartab.c (Fsave_char_attribute_table): Don't clear internal
117         attribute-table.
118         (Freset_char_attribute_table): New function.
119         (syms_of_chartab): Add new builtin function
120         `reset-char-attribute-table'.
121
122 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
123
124         * chartab.c (load_char_attribute_maybe): Don't make directories.
125
126 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
127
128         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
129
130         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
131         for decoding-table.
132
133 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
134
135         * mule-charset.c (Fsave_charset_mapping_table): Use
136         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
137
138         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
139         instead of `XCHARSET_CHARS'.
140
141 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
142
143         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
144         (XCHARSET_BYTE_SIZE): Likewise.
145
146         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
147         mule-charset.c].
148         (XCHARSET_BYTE_SIZE): Likewise.
149
150 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
151
152         * chartab.c (Fput_char_attribute): Use exec-directory instead of
153         data-directory to store database.
154         (Fsave_char_attribute_table): Likewise.
155         (load_char_attribute_maybe): Likewise.
156         (Fload_char_attribute_table): Likewise.
157
158 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
159
160         * mule-charset.c (Fsave_charset_mapping_table): New function.
161         (syms_of_mule_charset): Add new builtin function
162         `save-charset-mapping-table'.
163
164 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
165
166         * char-ucs.h (decoding_table_check_elements): Delete prototype.
167         (get_ccs_octet_table): New inline function.
168         (put_ccs_octet_table): Likewise.
169         (decoding_table_put_char): Use `get_ccs_octet_table' and
170         `put_ccs_octet_table'.
171         (decoding_table_remove_char): Use `decoding_table_put_char'.
172         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
173
174         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
175         into encoding_table.
176         (make_charset): Use Qunbound instead Qnil as initial value of
177         decoding_table.
178
179 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
180
181         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
182         element is Qunloaded.
183         (map_over_uint16_byte_table): Likewise.
184         (map_over_byte_table): Likewise.
185         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
186         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
187         database support, load encoding-table of the specified
188         coded-charset if it is not loaded yet.
189         (save_uint8_byte_table): New function of UTF-2000 with external
190         database support.
191         (save_uint16_byte_table): Likewise.
192         (save_byte_table): Likewise.
193         (Fput_char_attribute): Don't store value into external database
194         even if the external database feature is supported in UTF-2000;
195         set `attribute' as name of char-table if the external database
196         feature is supported.
197         (Fsave_char_attribute_table): New function in UTF-2000.
198         (syms_of_chartab): Add new builtin function
199         `save-char-attribute-table' in UTF-2000.
200
201 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
202
203         * chartab.c (char_attribute_table_to_put): New variable in
204         UTF-2000.
205         (Qput_char_table_map_function): Likewise.
206         (value_to_put): Likewise.
207         (Fput_char_table_map_function): New function in UTF-2000.
208         (put_char_table): Use `Fmap_char_attribute' for
209         CHARTAB_RANGE_CHARSET in UTF-2000.
210         (Fput_char_attribute): Store symbol instead of string in
211         `XCHAR_TABLE_NAME (table)'.
212         (load_char_attribute_maybe): Likewise.
213         (syms_of_chartab): Add new symbol/function
214         `put-char-table-map-function'.
215
216 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
217
218         * database.h: Add new EXFUN for `Fmap_database'.
219
220         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
221         (syms_of_database): Likewise.
222
223         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
224         UTF-2000.
225         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
226         (XCHAR_TABLE_UNLOADED): Likewise.
227
228         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
229         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
230         HAVE_DATABASE is defined.
231         (char_attribute_table_to_load): New variable of UTF-2000 with
232         external database support.
233         (Qload_char_attribute_table_map_function): Likewise.
234         (Fload_char_attribute_table_map_function): New function of
235         UTF-2000 with external database support.
236         (Fload_char_attribute_table): New function of UTF-2000.
237         (Fmap_char_attribute): Call Fload_char_attribute_table if
238         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
239         (syms_of_chartab): Add new symbol and function
240         `load-char-attribute-table-map-function' in UTF-2000 with external
241         database support; add new function `load-char-attribute-table' in
242         UTF-2000.
243
244 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
245
246         * chartab.h (load_char_attribute_maybe): New prototype for
247         UTF-2000 with DATABASE support.
248         (get_char_id_table): Use `load_char_attribute_maybe' if
249         HAVE_DATABASE is defined.
250
251         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
252         with DATABASE support.
253
254 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
255
256         * chartab.c (Fput_char_attribute): Use S-expression as key of
257         external database.
258
259         * chartab.h (get_char_id_table): Use S-expression as key of
260         external database.
261
262 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
263
264         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
265         if an element is not loaded, load the corresponding attributes
266         from an external database.
267         (map_over_uint16_byte_table): Likewise.
268         (map_over_byte_table): Likewise.
269         (map_char_table): Modify for `map_over_uint8_byte_table',
270         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
271         element is not loaded, load the corresponding attributes from an
272         external database.
273         (Fput_char_attribute): Change initial values to Qunloaded.
274
275         * chartab.h (get_char_id_table): If a character attribute is not
276         loaded and the attribute value is not found in an external
277         database, store Qunbound as the attribute value.
278
279 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
280
281         * chartab.c (BT_UINT8_unloaded): New macro.
282         (UINT8_VALUE_P): Accept Qunloaded.
283         (UINT8_ENCODE): Likewise.
284         (UINT8_DECODE): Likewise.
285         (BT_UINT16_unloaded): New macro.
286         (UINT16_VALUE_P): Accept Qunloaded.
287         (UINT16_ENCODE): Likewise.
288         (UINT16_DECODE): Likewise.
289         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
290         BT_UINT16_unloaded.
291         (mark_char_table): Mark `ct->name' in UTF-2000.
292         (char_table_description): Add `name' in UTF-2000.
293         (Fmake_char_table): Initialize `ct->name'.
294         (Fcopy_char_table): Copy `ct->name'.
295         (Fput_char_attribute): Store value into an external database if
296         HAVE_DATABASE is defined.
297
298         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
299         UTF-2000.
300         (CHAR_TABLE_NAME): New macro in UTF-2000.
301         (XCHAR_TABLE_NAME): New macro in UTF-2000.
302         (get_char_id_table): Try to read an external database if Qunloaded
303         is stored in a table.
304
305         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
306         Qunloaded.
307
308 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
309
310         * database.h: Add EXFUN definitions for Fopen_database,
311         Fput_database, Fget_database and Fclose_database.
312
313         * data.c (Qunloaded): New variable in UTF-2000.
314
315         * lisp.h (Qunloaded): New variable in UTF-2000.
316
317 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * mule-charset.c (put_char_ccs_code_point): Modify for
320         `decoding_table_remove_char' and `decoding_table_put_char'.
321         (remove_char_ccs): Modify for `decoding_table_remove_char'.
322
323         * char-ucs.h (decoding_table_remove_char): Change arguments to
324         hide decoding_table vector.
325         (decoding_table_put_char): Likewise.
326
327 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * mule-charset.c (decoding_table_remove_char): Moved to
330         char-ucs.h.
331         (decoding_table_put_char): Likewise.
332
333         * char-ucs.h (decoding_table_check_elements): New prototype [moved
334         from mule-charset.c].
335         (decoding_table_remove_char): New inline function [moved from
336         mule-charset.c].
337         (decoding_table_put_char): Likewise.
338
339 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
340
341         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
342         extension.
343
344 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
345
346         * mule-charset.c (decode_builtin_char): Support mother charsets.
347
348 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
349
350         * mule-charset.c (Q94x94x60): New variable.
351         (charset_code_point): Support conversion `94x94x60'.
352         (Fmake_charset): Likewise.
353         (syms_of_mule_charset): Add new symbol `94x94x60'.
354
355         * char-ucs.h (CONVERSION_94x94x60): New macro.
356
357 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
358
359         * mule-charset.c (charset_code_point): Unify code about
360         `code-offset'.
361
362 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
363
364         * mule-charset.c (charset_code_point): Merge code about builtin
365         characters into code about mother charsets; don't use
366         `range_charset_code_point'.
367         (range_charset_code_point): Deleted.
368
369 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * mule-charset.c (Qcode_offset): New variable.
372         (Fmake_charset): Use `XUINT' to get value of `min-code' and
373         `max-code'; accept new property `code-offset'.
374         (syms_of_mule_charset): Add new symbol `code-offset'.
375
376 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * mule-charset.c (range_charset_code_point): Fixed.
379
380 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
381
382         * mule-charset.c (decode_builtin_char): Change semantics of
383         code-offset of coded-charset.
384         (charset_code_point): Likewise.
385         (range_charset_code_point): Likewise.
386         (complex_vars_of_mule_charset): Modify for the change.
387
388 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
389
390         * mule-charset.c (Fencode_char): Reverse arguments.
391
392         * mule-charset.c (charset_code_point): Fixed.
393
394 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * mule-charset.c (Vcharset_mojikyo): Deleted.
397         (Vcharset_mojikyo_2022_1): Deleted.
398         (Vcharset_mojikyo_pj_{1..21}): Deleted.
399         (Qmin_code): New variable in UTF-2000.
400         (Qmax_code): Likewise.
401         (Qmother): Likewise.
402         (Qconversion): Likewise.
403         (Q94x60): Likewise.
404         (Qmojikyo): Deleted.
405         (Qmojikyo_2022_1): Deleted.
406         (Qmojikyo_pj_{1..22}): Deleted.
407         (mark_charset): Mark `cs->mother'.
408         (charset_description): Add description for `mother'.
409         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
410         new arguments `mother' and `conversion'; use
411         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
412         (charset_code_point): Moved from char-ucs.h; support `mother'
413         charset feature.
414         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
415         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
416         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
417         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
418         allow 2 as the value of `graphic' in UTF-2000; add new properties
419         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
420         require `final' in UTF-2000; modify for `make_charset'.
421         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
422         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
423         (Fcharset_property): Support `mother', `min-code' and `max-code'.
424         (Fencode_char): New function.
425         (syms_of_mule_charset): Add new builtin function `encode-char' in
426         UTF-2000; add new symbols `min-code', `max-code', `mother',
427         `conversion' and `94x60'; delete symbols `mojikyo',
428         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
429         (complex_vars_of_mule_charset): Modify for `make_charset' change;
430         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
431         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
432
433         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
434         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
435
436         * char-ucs.h (Vcharset_mojikyo): Deleted.
437         (Vcharset_mojikyo_2022_1): Deleted.
438         (LEADING_BYTE_MOJIKYO): Deleted.
439         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
440         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
441         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
442         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
443         add new member `mother'; add new member `conversion'.
444         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
445         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
446         (CHARSET_MOTHER): New macro.
447         (CHARSET_CONVERSION): New macro.
448         (CONVERSION_IDENTICAL): New macro.
449         (CONVERSION_94x60): New macro.
450         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
451         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
452         (XCHARSET_MOTHER): New macro.
453         (XCHARSET_CONVERSION): New macro.
454         (MIN_CHAR_MOJIKYO): Deleted.
455         (MAX_CHAR_MOJIKYO): Deleted.
456         (DECODE_MOJIKYO_2022): Deleted.
457         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
458         (charset_code_point): Changed to non-inline function.
459         (encode_char_1): Use `charset_code_point'.
460         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
461
462 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
463
464         * lread.c (read_compiled_function): Fix prototype.
465         (read_vector): Likewise.
466
467 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
468
469         * lrecord.h (struct lrecord_header): Delete `older'.
470         (set_lheader_implementation): Delete code for `older'.
471         (set_lheader_older_implementation): Deleted.
472         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
473         (OLDER_RECORD_P): Deleted.
474         (OLDER_RECORD_HEADER_P): Deleted.
475         (alloc_older_lcrecord): Deleted.
476         (alloc_older_lcrecord_type): Deleted.
477
478         * alloc.c (all_older_lcrecords): Deleted.
479         (alloc_older_lcrecord): Deleted.
480         (disksave_object_finalization_1): Delete code for older objects.
481         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
482         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
483
484 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
485
486         * mule-charset.c (decoding_table_put_char): Use `make_vector'
487         instead of `make_older_vector'.
488         (put_char_ccs_code_point): Likewise.
489         (mark_charset): Mark `cs->decoding_table'.
490         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
491
492         * lisp.h (make_older_vector): Deleted.
493         (make_vector_newer): Deleted.
494
495         * config.h.in (HAVE_GGC): Deleted.
496
497         * alloc.c (make_older_vector): Deleted.
498         (make_vector_newer_1): Deleted.
499         (make_vector_newer): Deleted.
500
501 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
504         (Qideograph_daikanwa_2): New variable.
505         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
506         (complex_vars_of_mule_charset): Add new coded-charset
507         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
508         `LEADING_BYTE_DAIKANWA'.
509
510         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
511         (LEADING_BYTE_DAIKANWA_1): New macro.
512         (LEADING_BYTE_DAIKANWA_2): New macro.
513         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
514
515 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * mule-charset.c (complex_vars_of_mule_charset): Change
518         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
519         the second revised version.
520
521 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * mule-charset.c (Vcharset_ucs_smp): New variable.
524         (Vcharset_ucs_sip): New variable.
525         (Qucs_smp): New variable.
526         (Qucs_sip): New variable.
527         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
528         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
529         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
530         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
531         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
532         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
533
534         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
535         (LEADING_BYTE_UCS_SIP): New macro.
536         (MIN_CHAR_SMP): New macro.
537         (MAX_CHAR_SMP): New macro.
538         (MIN_CHAR_SIP): New macro.
539         (MAX_CHAR_SIP): New macro.
540
541 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
542
543         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
544         utf-2000.
545
546 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
549         value; don't store value into `encoding_table' of `Lisp_Charset'.
550         (mark_charset): `encoding_table' was deleted.
551         (charset_description): Likewise.
552         (make_charset): Likewise.
553         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
554         `put_char_ccs_code_point'.
555
556         * chartab.h (Fput_char_attribute): New EXFUN.
557
558         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
559         is unified with normal symbol space.
560         (Fget_char_attribute): Likewise.
561         (Fput_char_attribute): Likewise; behavior of
562         `put_char_ccs_code_point' is changed.
563
564         * char-ucs.h: Include "elhash.h".
565         (Vchar_attribute_hash_table): New external variable.
566         (struct Lisp_Charset): Delete `encoding_table'.
567         (CHARSET_ENCODING_TABLE): New implementation; refer
568         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
569         `Lisp_Charset'.
570
571 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
572
573         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
574         (cs) == 0.
575
576 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * text-coding.c (char_encode_big5): Prefer charset-g1 than
579         `chinese-big5'.
580
581 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
582
583         * chartab.c (uint8_byte_table_description): New constant.
584         (uint8-byte-table): Use `uint8_byte_table_description'.
585         (uint16_byte_table_description): New constant.
586         (uint16-byte-table): Use `uint16_byte_table_description'.
587
588 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
589
590         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
591         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
592
593 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
594
595         * mule-charset.c (Vcharset_ucs_ks): New variable.
596         (Qucs_ks): New variable.
597         (syms_of_mule_charset): Add new symbol `ucs-ks'.
598         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
599
600         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
601
602 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
603
604         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
605         (Fdecode_char): Likewise.
606
607         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
608         chartab.h.
609         (Fdefine_char): Modify for Fdecode_char.
610         (Ffind_char): Likewise.
611
612         * mule-charset.c (Fdecode_char): Add new optional argument
613         `defined-only'.
614         (Fdecode_builtin_char): Modify for `Fdecode_char'.
615
616 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
619         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
620         (allocate_coding_system): Initialize initial-charsets of
621         CODESYS_BIG5 in XEmacs UTF-2000.
622         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
623         CODESYS_BIG5 in XEmacs UTF-2000.
624         (decode_coding_big5): Use initial-charset-g0 and -g1 of
625         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
626
627         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
628         variables.
629         (Qideograph_hanziku_{1 .. 12}): Likewise.
630         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
631         .. 12}'.
632         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
633         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
634         `ideograph-hanziku-{1 .. 12}'.
635
636         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
637         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
638         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
639         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
640         (DECODE_DEFINED_CHAR): New inline function.
641         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
642
643 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
644
645         * mule-charset.c (Vcharset_china3_jef): Renamed from
646         `Vcharset_japanese_jef_china3'.
647         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
648         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
649         `{MIN|MAX}_CHAR_JEF_CHINA3'..
650         (syms_of_mule_charset): Rename `china3-jef' from
651         `japanese-jef-china3'.
652         (complex_vars_of_mule_charset): Likewise; rename
653         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
654
655         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
656         `LEADING_BYTE_JEF_CHINA3'.
657         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
658         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
659
660 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * mule-charset.c (encode_builtin_char_1): Comment out special code
663         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
664
665         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
666         (MAX_CHAR_MOJIKYO_0): Comment out.
667         (MIN_CHAR_CBETA): Changed to 0x00E20000.
668         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
669         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
670         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
671
672 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
673
674         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
675         (Qideograph_cbeta): New variable.
676         (encode_builtin_char_1): Comment out special code for
677         coded-charset `mojikyo' and `japanese-jef-china3'.
678         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
679         (complex_vars_of_mule_charset): Add new coded-charset
680         `ideograph-cbeta'.
681
682         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
683         (MIN_CHAR_CBETA): New macro.
684         (MAX_CHAR_CBETA): New macro.
685
686 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
689         (LEADING_BYTE_JEF_CHINA3): New macro.
690         (MIN_CHAR_JEF_CHINA3): New macro.
691         (MAX_CHAR_JEF_CHINA3): Likewise.
692         (DECODE_CHAR): Fixed.
693
694 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
695
696         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
697         (Qjapanese_jef_china3): New variable.
698         (encode_builtin_char_1): Support `japanese-jef-china3'.
699         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
700         (complex_vars_of_mule_charset): Add new coded-charset
701         `japanese-jef-china3'.
702
703 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
704
705         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
706         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
707         94^4, 96^3, 96^4, 128^n and 256^n set.
708         (put_char_table): Use `XCHARSET_CELL_RANGE'.
709         (map_char_table): Likewise.
710
711 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
712
713         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
714         UTF-2000.
715
716 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * chartab.h (get_char_id_table): New inline function.
719
720         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
721         function.
722
723 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * chartab.h (decode_char_table_range): New prototype in XEmacs
726         UTF-2000.
727         (put_char_id_table): New inline function in XEmacs UTF-2000.
728
729         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
730         function.
731         (decode_char_table_range): Delete static declaration in XEmacs
732         UTF-2000.
733
734 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * chartab.c (put_char_id_table): Use `put_char_table'.
737
738 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
739
740         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
741         (map_over_uint16_byte_table): Likewise.
742         (map_over_byte_table): Likewise.
743         (map_char_table): Modify for `map_over_uint8_byte_table',
744         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
745         UTF-2000.
746
747 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
748
749         * chartab.c (struct map_char_table_for_charset_arg): New
750         structure.
751         (map_char_table_for_charset_fun): New function.
752         (map_char_table): Use `map_char_table' for encoding_table of
753         `range->charset'.
754
755 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
756
757         * chartab.c (map_char_table): Check a character is found in
758         range->charset instead of non default value is defined in
759         char-table when range is CHARTAB_RANGE_ROW.
760
761 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * chartab.c (map_char_id_table): Deleted.
764         (Fmap_char_attribute): Use `map_char_table' instead of
765         `map_char_id_table'.
766
767 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
768
769         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
770         UTF-2000.
771         (update_syntax_table): Deleted in XEmacs UTF-2000.
772
773         * syntax.c (find_defun_start): Use `syntax_table' instead of
774         `mirror_syntax_table' in XEmacs UTF-2000.
775         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
776         UTF-2000.
777         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
778         XEmacs UTF-2000.
779         (Fmatching_paren): Likewise.
780         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
781         in XEmacs UTF-2000.
782         (find_start_of_comment): Likewise.
783         (find_end_of_comment): Likewise.
784         (Fforward_comment): Likewise.
785         (scan_lists): Likewise.
786         (char_quoted): Likewise.
787         (Fbackward_prefix_chars): Likewise.
788         (scan_sexps_forward): Likewise.
789         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
790         (update_syntax_table): Likewise.
791
792         * search.c (skip_chars): Use `syntax_table' instead of
793         `mirror_syntax_table' in XEmacs UTF-2000.
794         (wordify): Likewise.
795         (Freplace_match): Likewise.
796
797         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
798         `mirror_syntax_table' in XEmacs UTF-2000.
799         (WORDCHAR_P_UNSAFE): Likewise.
800         (re_match_2_internal): Likewise.
801
802         * font-lock.c (find_context): Use `buf->syntax_table' instead of
803         `buf->mirror_syntax_table' in XEmacs UTF-2000.
804
805         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
806         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
807
808         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
809         XEmacs UTF-2000.
810
811         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
812         UTF-2000.
813         (print_char_table): Print `default_value' in XEmacs UTF-2000.
814         (char_table_description): Delete `mirror_table' in XEmacs
815         UTF-2000.
816         (fill_char_table): Don't call `update_syntax_table' in XEmacs
817         UTF-2000.
818         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
819         (Fcopy_char_table): Likewise.
820         (put_char_table): Don't call `update_syntax_table' in XEmacs
821         UTF-2000.
822
823         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
824         `buf->mirror_syntax_table' in XEmacs UTF-2000.
825         (casify_region_internal): Likewise.
826
827         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
828
829         * buffer.c (common_init_complex_vars_of_buffer): Don't use
830         `mirror_syntax_table' in XEmacs UTF-2000.
831
832         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
833         `buf->mirror_syntax_table' in XEmacs UTF-2000.
834         (Fexpand_abbrev): Likewise.
835
836 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
837
838         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
839
840 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
841
842         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
843         (map_over_uint16_byte_table): Likewise.
844         (map_over_byte_table): Likewise.
845         (get_char_id_table): Refer `cit->default_value'.
846         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
847         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
848         of character-id ranges.
849         (mark_char_table): Mark `ct->default_value'.
850         (char_table_description): Add `default_value'.
851         (fill_char_table): Use `default_value'.
852         (decode_char_table_range): Decode `nil' as
853         `CHARTAB_RANGE_DEFAULT'.
854         (get_char_id_table): Refer `cit->default_value'.
855         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
856         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
857         temporary hack; check value of char-table is bound or not.
858         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
859
860         * chartab.h (struct Lisp_Char_Table): Add new member
861         `default_value' in XEmacs UTF-2000.
862         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
863         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
864         UTF-2000.
865
866 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
867
868         * chartab.h (Lisp_Char_ID_Table): Deleted.
869
870         * chartab.c (char_table_description): Fix typo.
871         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
872         `Lisp_Char_ID_Table'.
873
874 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
875
876         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
877         `CHAR_ID_TABLE_P'.
878
879         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
880         `CHAR_ID_TABLE_P'.
881
882         * chartab.h (XCHAR_ID_TABLE): Deleted.
883         (XSETCHAR_ID_TABLE): Deleted.
884         (CHAR_ID_TABLE_P): Deleted.
885
886         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
887         `CHAR_ID_TABLE_P'.
888         (Fget_composite_char): Likewise.
889         (put_char_table): Likewise.
890         (add_char_attribute_alist_mapper): Fixed.
891         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
892         `CHAR_ID_TABLE_P'.
893         (Fget_char_attribute): Likewise.
894         (Fget_char_attribute): Likewise.
895         (Fmap_char_attribute): Likewise.
896
897         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
898         `CHAR_ID_TABLE_P'.
899         (encode_char_1): Likewise.
900
901 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
904         `XCHAR_ID_TABLE'.
905
906         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
907         instead of `XCHAR_ID_TABLE'.
908         (remove_char_ccs): Likewise.
909
910         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
911         `XCHAR_ID_TABLE'.
912         (Fget_composite_char): Likewise.
913         (Fchar_variants): Likewise.
914         (put_char_table): Likewise.
915         (add_char_attribute_alist_mapper): Likewise.
916         (Fchar_attribute_alist): Likewise.
917         (Fget_char_attribute): Likewise.
918         (Fput_char_attribute): Likewise.
919         (Fmap_char_attribute): Likewise.
920         (Fmap_char_attribute): Likewise.
921
922         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
923         `XCHAR_ID_TABLE'.
924         (encode_char_1): Likewise.
925
926 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
927
928         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
929         `Lisp_Char_ID_Table'.
930         (mark_char_id_table): Deleted.
931         (print_char_id_table): Likewise.
932         (char_id_table_equal): Likewise.
933         (char_id_table_hash): Likewise.
934         (char_id_table_description): Likewise.
935         (char_id_table): Likewise.
936         (make_char_id_table): Use `Fmake_char_table' and
937         `fill_char_table'.
938         (get_char_id_table): Use `Lisp_Char_Table' instead of
939         `Lisp_Char_ID_Table'.
940         (put_char_id_table): Likewise.
941         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
942         `XCHAR_ID_TABLE'.
943         (Fremove_char_attribute): Likewise.
944         (syms_of_chartab): Don't define type `char-id-table'.
945
946         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
947         (char_id_table): Likewise.
948         (GC_CHAR_ID_TABLE_P): Likewise.
949         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
950         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
951         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
952         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
953         (get_char_id_table): Use `Lisp_Char_Table' instead of
954         `Lisp_Char_ID_Table'.
955         (put_char_id_table_0): Likewise.
956         (put_char_id_table): Likewise.
957
958 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
959
960         * chartab.h: Lisp_Byte_Table related codes are moved from
961         chartab.h.
962
963         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
964
965 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
966
967         * chartab.h: Don't include "chartab.h".
968         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
969         (Lisp_Char_ID_Table): Likewise.
970         (char_id_table): Likewise.
971         (XCHAR_ID_TABLE): Likewise.
972         (XSETCHAR_ID_TABLE): Likewise.
973         (CHAR_ID_TABLE_P): Likewise.
974         (GC_CHAR_ID_TABLE_P): Likewise.
975         (get_char_id_table): Likewise.
976
977         * char-ucs.h: Include "chartab.h".
978         (struct Lisp_Char_ID_Table): Moved to chartab.h.
979         (Lisp_Char_ID_Table): Likewise.
980         (char_id_table): Likewise.
981         (XCHAR_ID_TABLE): Likewise.
982         (XSETCHAR_ID_TABLE): Likewise.
983         (CHAR_ID_TABLE_P): Likewise.
984         (GC_CHAR_ID_TABLE_P): Likewise.
985         (get_char_id_table): Likewise.
986
987 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
988
989         * chartab.c (copy_uint8_byte_table): New function.
990         (copy_uint16_byte_table): New function.
991         (copy_byte_table): New function.
992         (map_over_uint8_byte_table): Modify to avoid huge numbers of
993         characters to call.
994         (map_over_uint16_byte_table): Likewise.
995         (map_over_byte_table): Likewise.
996         (get_byte_table): Move prototype to chartab.h.
997         (put_byte_table): Likewise.
998         (put_char_id_table_0): Moved to chartab.h.
999         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1000         (char_table_entry_equal): Likewise.
1001         (char_table_entry_hash): Likewise.
1002         (char_table_entry_description): Likewise.
1003         (char_table_entry): Likewise.
1004         (make_char_table_entry): Likewise.
1005         (copy_char_table_entry): Likewise.
1006         (get_non_ascii_char_table_value): Likewise.
1007         (map_over_charset_ascii): Likewise.
1008         (map_over_charset_control_1): Likewise.
1009         (map_over_charset_row): Likewise.
1010         (map_over_other_charset): Likewise.
1011         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1012         (print_char_table): Likewise.
1013         (char_table_equal): Likewise.
1014         (char_table_hash): Likewise.
1015         (char_table_description): Likewise.
1016         (fill_char_table): Likewise.
1017         (Fcopy_char_table): Likewise.
1018         (get_char_table): Likewise.
1019         (Fget_range_char_table): Likewise.
1020         (put_char_table): Likewise.
1021         (map_char_table): Likewise.
1022         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1023         UTF-2000.
1024
1025 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1026
1027         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1028         `Vauto_fill_chars' in XEmacs UTF-2000.
1029
1030         * chartab.h (get_byte_table): New prototype [moved from
1031         chartab.c].
1032         (put_byte_table): Likewise [moved from chartab.c].
1033         (put_char_id_table_0): New inline function [moved from chartab.c].
1034         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1035         (Lisp_Char_Table_Entry): Likewise.
1036         (char_table_entry): Likewise.
1037         (XCHAR_TABLE_ENTRY): Likewise.
1038         (XSETCHAR_TABLE_ENTRY): Likewise.
1039         (CHAR_TABLE_ENTRYP): Likewise.
1040         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1041         (NUM_ASCII_CHARS): Likewise.
1042         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1043         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1044
1045 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1046
1047         * chartab.c (get_char_id_table): Change interface.
1048         (put_char_id_table_0): New function.
1049         (put_char_id_table): Change interface; new implementation.
1050         (Fget_composite_char): Modify for interface change of
1051         `get_char_id_table'.
1052         (Fchar_variants): Likewise.
1053         (add_char_attribute_alist_mapper): Likewise.
1054         (Fchar_attribute_alist): Likewise.
1055         (Fget_char_attribute): Likewise.
1056         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1057         as same as character as the first argument like `put-char-table';
1058         modify for interface change of `put_char_id_table'.
1059         (Fremove_char_attribute): Modify for interface change of
1060         `put_char_id_table'.
1061
1062 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1063
1064         * text-coding.c: Sync up with XEmacs 21.2.41.
1065         (COMPOSE_ADD_CHAR): Modify for interface change of
1066         `get_char_id_table'.
1067
1068         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1069         change of `put_char_id_table'.
1070         (remove_char_ccs): Likewise.
1071
1072         * chartab.h (put_char_id_table): Change interface.
1073
1074         * char-ucs.h (get_char_id_table): Change interface.
1075         (charset_code_point): Modify for interface change of
1076         `get_char_id_table'.
1077         (encode_char_1): Likewise.
1078
1079 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1080
1081         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1082         argument `ccs'.
1083         (map_over_uint16_byte_table): Likewise.
1084         (map_over_byte_table): Likewise.
1085         (map_char_id_table): Add new argument `range' like
1086         `map_char_table'.
1087         (Fmap_char_attribute): Add new argument `range' like
1088         `Fmap_char_table'.
1089
1090 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1091
1092         * chartab.c (map_over_uint8_byte_table): Change interface of
1093         mapping function to use struct chartab_range instead of Emchar.
1094         (map_over_uint16_byte_table): Likewise.
1095         (map_over_byte_table): Likewise.
1096         (map_char_id_table): Likewise.
1097         (struct slow_map_char_id_table_arg): Deleted.
1098         (slow_map_char_id_table_fun): Deleted.
1099         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1100         function `slow_map_char_table_fun' instead of struct
1101         `slow_map_char_id_table_arg' and function
1102         `slow_map_char_id_table_fun'.
1103
1104 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1105
1106         * mule-charset.c: Move char-it-table related codes to chartab.c.
1107         (Vutf_2000_version): Moved to chartab.c.
1108         (Fdefine_char): Likewise.
1109         (Ffind_char): Likewise.
1110         (syms_of_mule_charset): Move types `uint8-byte-table',
1111         `uint16-byte-table', `byte-table' and `char-id-table' to
1112         chartab.c; move functions `char_attribute_list,
1113         `find_char_attribute_table, `char_attribute_alist,
1114         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1115         `map_char_attribute, `define_char, `find_char, `char_variants and
1116         `get_composite_char to chartab.c; move symbols `=>ucs',
1117         `->decomposition', `compat', `isolated', `initial', `medial',
1118         `final', `vertical', `noBreak', `fraction', `super', `sub',
1119         `circle', `square', `wide', `narrow', `small' and `font' to
1120         chartab.c.
1121         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1122         setting codes for `Vcharacter_composition_table' and
1123         `Vcharacter_variant_table' to chartab.c.
1124         (complex_vars_of_mule_charset): Move setting code for
1125         `Vchar_attribute_hash_table' to chartab.c.
1126
1127         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1128         (make_char_id_table): New prototype.
1129         (put_char_id_table): Likewise.
1130         (Fget_char_attribute): Likewise.
1131
1132         * chartab.c: Move char-id-table related code from mule-charset.c.
1133         (Vutf_2000_version): Moved from mule-charset.c.
1134
1135         * char-ucs.h (Qucs): New external variable.
1136         (put_char_ccs_code_point): New prototype.
1137         (remove_char_ccs): Likewise.
1138
1139 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1140
1141         * mule-charset.c (Vcharset_ucs_jis): New variable.
1142         (Qucs_jis): Likewise.
1143         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1144         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1145
1146         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1147
1148 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1149
1150         * mule-charset.c (map_over_uint8_byte_table): New function.
1151         (map_over_uint16_byte_table): Likewise.
1152         (map_over_byte_table): Likewise.
1153         (map_char_id_table): Likewise.
1154         (slow_map_char_id_table_fun): Likewise.
1155         (Fmap_char_attribute): Likewise.
1156         (syms_of_mule_charset): Add new function `map-char-attribute'.
1157
1158 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1159
1160         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1161         (syms_of_mule_charset): Add new function `find-char'.
1162
1163 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1164
1165         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1166         XEmacs UTF-2000.
1167         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1168         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1169         XEmacs UTF-2000.
1170         (complex_vars_of_mule_charset): Add new coded-charset
1171         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1172         `ideograph-gt-pj-*'.
1173
1174         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1175
1176 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1177
1178         * mule-charset.c (encode_builtin_char_1): Purge codes about
1179         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1180         {MIN|MAX}_CHAR_HEBREW.
1181         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1182         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1183
1184         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1185         (MAX_CHAR_GREEK): Purged.
1186         (MIN_CHAR_CYRILLIC): Purged.
1187         (MAX_CHAR_CYRILLIC): Purged.
1188         (MIN_CHAR_HEBREW): Commented out.
1189         (MAX_CHAR_HEBREW): Likewise.
1190
1191 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1192
1193         * mule-charset.c (Qto_ucs): New variable.
1194         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1195         (Fdefine_char): Likewise.
1196         (syms_of_mule_charset): Add new symbol `=>ucs'.
1197
1198 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1199
1200         * mule-charset.c (Fdecode_char): Fixed.
1201
1202 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1205         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1206         "tcvn5712-1".
1207
1208 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1209
1210         * mule-charset.c (Vcharset_ucs_big5): New variable.
1211         (Qucs_big5): Likewise.
1212         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1213         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1214
1215         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1216
1217 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1218
1219         * mule-charset.c (decode_builtin_char): Check Big5 code range
1220         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1221
1222 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1223
1224         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1225         (Qchinese_gb12345): Likewise.
1226         (Fdecode_builtin_char): Fixed.
1227         (syms_of_mule_charset): Add `chinese-gb12345'.
1228         (complex_vars_of_mule_charset): Add coded-charset
1229         `chinese-gb12345'.
1230
1231         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1232         (LEADING_BYTE_CHINESE_GB12345): New macro.
1233
1234 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1235
1236         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1237         and `latin-viscii-upper' for `latin-viscii'.
1238
1239 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1240
1241         * mule-charset.c (Fdecode_builtin_char): Comment out
1242         regularization code for ISO-IR GR representation.
1243
1244 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1245
1246         * mule-charset.c (decode_builtin_char): New function; renamed from
1247         `make_builtin_char'; return -1 instead of signal.
1248         (Fdecode_builtin_char): Use `decode_builtin_char'.
1249
1250         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1251         `make_builtin_char'.
1252         (DECODE_CHAR): Use `decode_builtin_char' instead of
1253         `make_builtin_char'; use mapping table of `chinese-big5' for
1254         `chinese-big5-{1,2}'.
1255
1256 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1257
1258         * text-coding.c (char_encode_big5): New function.
1259         (char_finish_big5): Likewise.
1260         (reset_encoding_stream): Use `char_encode_big5' and
1261         `char_finish_big5' for CODESYS_BIG5.
1262         (mule_encode): Don't use `encode_coding_big5'.
1263         (encode_coding_big5): Deleted.
1264
1265 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1266
1267         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1268         0x81- in XEmacs UTF-2000.
1269         (detect_coding_big5): Likewise.
1270
1271 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1272
1273         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1274         generate character-id if the CCS property does not have
1275         corresponding predefined character.
1276         (make_builtin_char): Return -1 if corresponding predefined
1277         character is not found.
1278         (Fdecode_char): Return nil if corresponding character is not
1279         found.
1280         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1281         don't map to builtin ucs space.
1282
1283 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1284
1285         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1286         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1287
1288 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1289
1290         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1291         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1292         (Qideograph_gt): Likewise.
1293         (Qideograph_gt_pj_{1..11}): Likewise.
1294         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1295         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1296         `ideograph-gt-pj-11'.
1297         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1298         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1299         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1300
1301         * char-ucs.h (LEADING_BYTE_GT): New macro.
1302         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1303         (MIN_CHAR_GT): Likewise.
1304         (MAX_CHAR_GT): Likewise.
1305
1306 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1309         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1310
1311         * doprnt.c (unsigned_int_converters): Add `c'.
1312         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1313
1314         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1315         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1316         `MIN_CHAR_MOJIKYO'.
1317         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1318         (MAX_CHAR_MOJIKYO_0): New macro.
1319         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1320
1321 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322
1323         * mule-charset.c (Fdefine_char): Delete cemented out code.
1324         (encode_builtin_char_1): Modify for new allocation of builtin
1325         Mojikyo characters.
1326
1327         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1328
1329 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1330
1331         * mule-charset.c (Vcharset_ucs_cns): New variable.
1332         (Qucs_cns): New variable.
1333         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1334         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1335
1336 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337
1338         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1339
1340 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1341
1342         * search.c (search_buffer): Make `charset_base_code' as
1343         character-id >> 6 to eliminate the corresponding last byte in
1344         UTF-8 representation [I'm not sure it is right thing].
1345         (boyer_moore): Likewise.
1346
1347 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1348
1349         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1350         representation in MULE.
1351
1352 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1353
1354         * text-coding.c (Fmake_coding_system): Use
1355         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1356         `EXTERNAL_PROPERTY_LIST_LOOP'.
1357
1358 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1359
1360         * text-coding.c (decode_output_utf8_partial_char): New function.
1361         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1362
1363 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * text-coding.c (decode_coding_utf8): Output original byte
1366         sequence if it is broken; change order of conditions.
1367
1368         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1369         of conditions.
1370
1371         * mb-multibyte.h (BYTE_ASCII_P):
1372         Use bit ops for char-signedness safety.
1373         (BYTE_C0_P): Use bit ops for char-signedness safety.
1374         (BYTE_C1_P): Use bit ops for char-signedness safety.
1375
1376         * character.h: (XCHAR_OR_CHAR_INT):
1377         Always use inline function.
1378         Remove redundant type checking assert() - XINT will abort quite
1379         nicely.
1380
1381 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1382
1383         * text-coding.c: (Fencode_shift_jis_char):
1384         (Fencode_big5_char):
1385         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1386         Replace 0 with '\0' when working with bytes.
1387         Replace initial "(" with "\(" in docstrings.
1388
1389         (Fmake_coding_system):
1390         When type is ccl and value is vector, register it with a proper
1391         symbol.  And checks whether the given ccl program is valid.
1392         (mule_decode): When calling ccl_driver, if src indicates
1393         NULL pointer, set an empty string instead.
1394         (mule_encode): Likewise.
1395
1396         (detect_eol_type):
1397         (detect_coding_sjis):
1398         (decode_coding_sjis):
1399         (detect_coding_big5):
1400         (decode_coding_big5):
1401         (detect_coding_ucs4):
1402         (decode_coding_ucs4):
1403         (detect_coding_utf8):
1404         (decode_coding_utf8):
1405         (detect_coding_iso2022):
1406         (decode_coding_iso2022):
1407         (decode_coding_no_conversion):
1408         (mule_decode):
1409         Make all detecting and decoding functions take an Extbyte * arg.
1410         (text_encode_generic):
1411         (encode_coding_big5):
1412         (encode_coding_no_conversion):
1413         (mule_encode):
1414         Make all encoding functions take a Bufbyte * arg.
1415         Use size_t instead of unsigned int for memory sizes.
1416         Only cast to unsigned char whenever dereferencing Extbyte *.
1417
1418         (struct lrecord_description fcd_description_1): Use countof.
1419         (complex_vars_of_file_coding):
1420         Use countof instead of sizeof.
1421         Use CHECK_NATNUM instead of CHECK_INT.
1422
1423 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424
1425         * mule-charset.c (Fget_char_attribute): Add new optional argument
1426         `default-value'.
1427         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1428         (remove_char_ccs): Likewise.
1429
1430 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1431
1432         * text-coding.c (char_encode_shift_jis): New implementation in
1433         UTF-2000.
1434         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1435         ...)'.
1436
1437         * mule-charset.c (Vcharset_chinese_big5): New variable in
1438         UTF-2000.
1439         (Qchinese_big5): New variable in UTF-2000.
1440         (BIG5_SAME_ROW): New macro in UTF-2000.
1441         (make_builtin_char): Use builtin characters of
1442         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1443         characters of `Vcharset_chinese_big5'.
1444         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1445         (complex_vars_of_mule_charset): Add new coded-charset
1446         `chinese-big5' in UTF-2000.
1447
1448         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1449         (Vcharset_chinese_big5): New external variable declaration.
1450         (Vcharset_japanese_jisx0208_1990): Likewise.
1451
1452 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1453
1454         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1455         function.
1456         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1457
1458 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1459
1460         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1461         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1462         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1463         `mojikyo-pj-*'.
1464
1465 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1466
1467         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1468
1469 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1470
1471         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1472         to 0.17.
1473
1474 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1475
1476         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1477         for `CHARSET_BY_ATTRIBUTES'.
1478         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1479         `CHARSET_BY_ATTRIBUTES'.
1480
1481         * text-coding.c (struct decoding_stream): Rename member `CH' to
1482         `CPOS'.
1483         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1484         (decode_coding_sjis): Likewise.
1485         (decode_coding_big5): Likewise.
1486         (decode_coding_ucs4): Likewise.
1487         (decode_coding_utf8): Likewise.
1488         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1489         `CHARSET_BY_ATTRIBUTES'.
1490         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1491         `str->counter'; decode 3, 4 bytes sets.
1492         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1493         sets.
1494         (decode_coding_no_conversion): Use `str->cpos' instead of
1495         `str->ch'.
1496
1497         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1498         (Qmojikyo_2022_1): New variable.
1499         (make_charset): Don't use `CHARSET_TYPE_*'.
1500         (range_charset_code_point): Support coded-charset
1501         `mojikyo-2022-1'.
1502         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1503         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1504         `CHARSET_BY_ATTRIBUTES'.
1505         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1506         `CHARSET_BY_ATTRIBUTES'.
1507         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1508         (complex_vars_of_mule_charset): Add new coded-charset
1509         `mojikyo-2022-1'.
1510
1511         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1512         interface; changed to inline function.
1513
1514         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1515         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1516         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1517         (CHARSET_TYPE_94): Deleted.
1518         (CHARSET_TYPE_94X94): Deleted.
1519         (CHARSET_TYPE_96): Deleted.
1520         (CHARSET_TYPE_96X96): Deleted.
1521         (CHARSET_TYPE_128): Deleted.
1522         (CHARSET_TYPE_128X128): Deleted.
1523         (CHARSET_TYPE_256): Deleted.
1524         (CHARSET_TYPE_256X256): Deleted.
1525         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1526         to inline function.
1527         (DECODE_MOJIKYO_2022): New inline function.
1528         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1529         `Vcharset_mojikyo_2022_1'.
1530
1531 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532
1533         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1534         instead of `EQ'.
1535         (put_byte_table): Likewise.
1536         (char_id_table_equal): Use `get_byte_table' [new implementation].
1537
1538 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * mule-charset.c: Include <limits.h> in UTF-2000.
1541         (BT_UINT8_MIN): New macro in UTF-2000.
1542         (BT_UINT8_MAX): New macro in UTF-2000.
1543         (BT_UINT8_t): New macro in UTF-2000.
1544         (BT_UINT8_nil): New macro in UTF-2000.
1545         (BT_UINT8_unbound): New macro in UTF-2000.
1546         (INT_UINT8_P): New inline function in UTF-2000.
1547         (UINT8_VALUE_P): New inline function in UTF-2000.
1548         (UINT8_ENCODE): New inline function in UTF-2000.
1549         (UINT8_DECODE): New inline function in UTF-2000.
1550         (mark_uint8_byte_table): New function in UTF-2000.
1551         (print_uint8_byte_table): New function in UTF-2000.
1552         (uint8_byte_table_equal): New function in UTF-2000.
1553         (uint8_byte_table_hash): New function in UTF-2000.
1554         (make_uint8_byte_table): New function in UTF-2000.
1555         (uint8_byte_table_same_value_p): New function in UTF-2000.
1556         (BT_UINT16_MIN): New macro in UTF-2000.
1557         (BT_UINT16_MAX): New macro in UTF-2000.
1558         (BT_UINT16_t): New macro in UTF-2000.
1559         (BT_UINT16_nil): New macro in UTF-2000.
1560         (BT_UINT16_unbound): New macro in UTF-2000.
1561         (INT_UINT16_P): New inline function in UTF-2000.
1562         (UINT16_VALUE_P): New inline function in UTF-2000.
1563         (UINT16_ENCODE): New inline function in UTF-2000.
1564         (UINT16_DECODE): New inline function in UTF-2000.
1565         (UINT8_TO_UINT16): New inline function in UTF-2000.
1566         (mark_uint16_byte_table): New function in UTF-2000.
1567         (print_uint16_byte_table): New function in UTF-2000.
1568         (uint16_byte_table_equal): New function in UTF-2000.
1569         (uint16_byte_table_hash): New function in UTF-2000.
1570         (make_uint16_byte_table): New function in UTF-2000.
1571         (uint16_byte_table_same_value_p): New function in UTF-2000.
1572         (print_byte_table): New function in UTF-2000.
1573         (byte-table): Use `print_byte_table' as printer.
1574         (make_byte_table): Delete second argument `older'.
1575         (byte_table_same_value_p): New function in UTF-2000.
1576         (copy_byte_table): Deleted.
1577         (get_byte_table): New function in UTF-2000.
1578         (put_byte_table): New function in UTF-2000.
1579         (print_char_id_table): New function in UTF-2000.
1580         (char-id-table): Use `print_char_id_table' as printer.
1581         (make_char_id_table): Delete second argument `older'.
1582         (get_char_id_table): Use `get_byte_table [new implementation].
1583         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1584         implementation].
1585         (Ffind_char_attribute_table): New function in UTF-2000.
1586         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1587         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1588         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1589         (syms_of_mule_charset): Add new function
1590         `find-char-attribute-table' in UTF-2000.
1591
1592         * lrecord.h (enum lrecord_type): Add
1593         `lrecord_type_uint16_byte_table' and
1594         `lrecord_type_uint8_byte_table'.
1595
1596         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1597         (Lisp_Uint8_Byte_Table): New type.
1598         (XUINT8_BYTE_TABLE): New macro.
1599         (XSETUINT8_BYTE_TABLE): New macro.
1600         (UINT8_BYTE_TABLE_P): New macro.
1601         (GC_UINT8_BYTE_TABLE_P): New macro.
1602         (struct Lisp_Uint16_Byte_Table): New structure.
1603         (Lisp_Uint16_Byte_Table): New type.
1604         (XUINT16_BYTE_TABLE): New macro.
1605         (XSETUINT16_BYTE_TABLE): New macro.
1606         (UINT16_BYTE_TABLE_P): New macro.
1607         (GC_UINT16_BYTE_TABLE_P): New macro.
1608
1609 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1612         (Vcharacter_ideographic_strokes_table): Deleted.
1613         (Vcharacter_total_strokes_table): Deleted.
1614         (Vcharacter_morohashi_daikanwa_table): Deleted.
1615         (Vcharacter_decomposition_table): Deleted.
1616         (Qname): Deleted because it is duplicated.
1617         (Qideographic_radical): Deleted.
1618         (Qideographic_strokes): Deleted.
1619         (Qtotal_strokes): Deleted.
1620         (Qmorohashi_daikanwa): Deleted.
1621         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1622         `ideographic-radical', `ideographic-strokes', `total-strokes',
1623         `morohashi-daikanwa' and `->decomposition'.
1624         (Fget_char_attribute): Likewise.
1625         (Fput_char_attribute): Likewise; use `make-vector' instead of
1626         `make_older_vector' for `->decomposition' value.
1627         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1628         `ideograph-daikanwa'.
1629         (syms_of_mule_charset): Delete builtin symbols `name',
1630         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1631         `morohashi-daikanwa'.
1632         (vars_of_mule_charset): Don't setup
1633         `Vcharacter_ideographic_radical_table',
1634         `Vcharacter_ideographic_strokes_table',
1635         `Vcharacter_total_strokes_table',
1636         `Vcharacter_morohashi_daikanwa_table' and
1637         `Vcharacter_decomposition_table'.
1638
1639 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1640
1641         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1642         `make_older_vector', `make_vector_newer_1' and
1643         `make_vector_newer'.
1644
1645         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1646         `make_older_vector' and `make_vector_newer'.
1647
1648         * config.h.in (HAVE_GGC): New macro.
1649
1650 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1651
1652         * mule-charset.c (struct char_attribute_list_closure): New
1653         structure in UTF-2000.
1654         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1655         (Fchar_attribute_list): Likewise.
1656         (Fset_charset_mapping_table): Use `make_vector_newer'.
1657         (Fdecode_builtin_char): New function in UTF-2000.
1658         (syms_of_mule_charset): Add new function `char-attribute-list' and
1659         `decode-builtin-char' in UTF-2000.
1660
1661         * lisp.h (make_vector_newer): New prototype.
1662
1663         * alloc.c (make_vector_newer_1): New function.
1664         (make_vector_newer): New function.
1665
1666 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667
1668         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1669         50100)'.
1670
1671 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1672
1673         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1674         (Vcharacter_attribute_table): Deleted.
1675         (Vcharacter_name_table): Deleted.
1676         (put_char_attribute): Deleted.
1677         (remove_char_attribute): Deleted.
1678         (struct char_attribute_alist_closure): New structure.
1679         (add_char_attribute_alist_mapper): New function.
1680         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1681         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1682         (Fget_char_attribute): Likewise.
1683         (Fput_char_attribute): Likewise.
1684         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1685         of `remove_char_attribute'.
1686         (Fdefine_char): Return character.
1687         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1688         and `Vcharacter_name_table'.
1689         (complex_vars_of_mule_charset): Likewise
1690         `Vchar_attribute_hash_table'.
1691
1692 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1693
1694         * character.h (CHARC_CHARSET): New macro.
1695         (CHARC_CHARSET_ID): New macro.
1696         (CHARC_CODE_POINT): New macro.
1697         (CHARC_COLUMNS): New macro.
1698         (CHARC_TO_CHAR): New inline function.
1699         (CHARC_EQ): New inline function.
1700         (CHARC_ASCII_EQ): New inline function.
1701         (CHARC_IS_SPACE): New inline function.
1702         (ASCII_TO_CHARC): New inline function.
1703
1704         * char-ucs.h (encode_char_2): Deleted.
1705         (ENCODE_CHAR): Use `encode_char_1' again.
1706         (breakup_char_1): Likewise.
1707         (CHAR_TO_CHARC): New inline function.
1708
1709         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1710
1711 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1712
1713         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1714         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1715         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1716         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1717         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1718         `CHARC_IS_SPACE'.
1719         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1720
1721         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1722         `CHARC_CODE_POINT'.
1723         (x_output_display_block): Use `CHARC_CHARSET' and
1724         `CHARC_ASCII_EQ'.
1725
1726         * redisplay-tty.c (tty_output_display_block): Use
1727         `CHARC_ASCII_EQ'.
1728         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1729
1730         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1731
1732         * insdel.c (find_charsets_in_charc_string): Use
1733         `CHARC_CHARSET_ID'.
1734         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1735         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1736         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1737         (convert_charc_string_into_malloced_string): Likewise.
1738
1739 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1740
1741         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1742         instead of <Emchar_dynarr *> for buf; use
1743         `convert_bufbyte_string_into_charc_dynarr' instead of
1744         `convert_bufbyte_string_into_emchar_dynarr'; use
1745         `find_charsets_in_charc_string' instead of
1746         `find_charsets_in_emchar_string'.
1747
1748         * redisplay.h:
1749         - Include "character.h".
1750         (struct rune): New member `cglyph'; delete member `chr'.
1751
1752         * redisplay.c (redisplay_text_width_charc_string): New function;
1753         delete `redisplay_text_width_emchar_string'.
1754         (rtw_charc_dynarr): New variable; renamed from
1755         `rtw_emchar_dynarr'.
1756         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1757         `rtw_emchar_dynarr'; use
1758         `convert_bufbyte_string_into_charc_dynarr' instead of
1759         `convert_bufbyte_string_into_emchar_dynarr'; use
1760         `redisplay_text_width_charc_string' instead of
1761         `redisplay_text_width_emchar_string'.
1762         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1763         instead of `rtw_emchar_dynarr'; use
1764         `convert_bufbyte_string_into_charc_dynarr' instead of
1765         `convert_bufbyte_string_into_emchar_dynarr'.
1766         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1767         `redisplay_text_width_charc_string' instead of
1768         `redisplay_text_width_emchar_string'.
1769         (create_text_block): Modify for <struct rune> change.
1770         (generate_formatted_string_db): Likewise.
1771         (create_string_text_block): Likewise.
1772         (pixel_to_glyph_translation): Likewise.
1773
1774         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1775         instead of <const Emchar *>.
1776         (x_text_width): Likewise.
1777         (x_output_display_block): Use <Charc_dynarr *> instead
1778         <Emchar_dynarr *>; modify for <structure rune> change.
1779         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1780         *>.
1781
1782         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1783         <const Emchar *>; use `charc_string_displayed_columns' instead of
1784         `emchar_string_displayed_columns'.
1785         (tty_output_display_block): Use <Charc_dynarr *> instead of
1786         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1787         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1788         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1789         `tty_output_emchar_dynarr_dynarr'.
1790         (tty_output_charc_dynarr): New function; delete
1791         `tty_output_charc_dynarr'.
1792
1793         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1794         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1795         <Emchar_dynarr *> for buf; use
1796         `convert_bufbyte_string_into_charc_dynarr' instead of
1797         `convert_bufbyte_string_into_emchar_dynarr'.
1798
1799         * frame.c (title_string_charc_dynarr): New variable; renamed from
1800         `title_string_emchar_dynarr'.
1801         (generate_title_string): Use `title_string_charc_dynarr' instead
1802         of `title_string_emchar_dynarr'; use
1803         `convert_charc_string_into_malloced_string' instead of
1804         `convert_emchar_string_into_malloced_string'.
1805         (init_frame): Use `title_string_charc_dynarr' instead of
1806         `title_string_emchar_dynarr'.
1807
1808         * console.h:
1809         - Include "character.h".
1810         (struct console_methods): Use <const Charc *> instead of <const
1811         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1812         <Emchar_dynarr *> in output_string_method.
1813
1814         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1815         <Emchar_dynarr *>.
1816
1817         * console-stream.c (stream_text_width): Use <const Charc *>
1818         instead of <const Emchar *>.
1819
1820         * character.h (Charc_dynarr): New type.
1821
1822         * char-ucs.h (structure Charc): New structure; define new type
1823         `Charc'.
1824
1825         * char-lb.h (DECODE_CHAR): New inline function.
1826         (encode_char_1): New inline function.
1827         (ENCODE_CHAR): New macro.
1828         (structure Charc): New structure; define new type `Charc'.
1829
1830         * char-1byte.h (Vcharset_control_1): New macro.
1831         (Vcharset_latin_iso8859_1): New macro.
1832         (DECODE_CHAR): New inline function.
1833         (encode_char_1): New inline function.
1834         (ENCODE_CHAR): New macro.
1835         (structure Charc): New structure; define new type `Charc'.
1836
1837         * insdel.c (find_charsets_in_charc_string): New function; delete
1838         `find_charsets_in_emchar_string'.
1839         (charc_string_displayed_columns): New function; delete
1840         `emchar_string_displayed_columns'.
1841         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1842         `convert_bufbyte_string_into_emchar_dynarr'.
1843         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1844         `convert_charc_string_into_bufbyte_dynarr'.
1845         (convert_charc_string_into_malloced_string): New function; delete
1846         `convert_charc_string_into_malloced_string'.
1847
1848         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1849         `find_charsets_in_emchar_string'.
1850         (charc_string_displayed_columns): New prototype; delete
1851         `emchar_string_displayed_columns'.
1852         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1853         `convert_charc_string_into_bufbyte_dynarr'.
1854         (convert_charc_string_into_malloced_string): New prototype; delete
1855         `convert_charc_string_into_malloced_string'.
1856
1857 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1858
1859         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1860
1861 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862
1863         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1864
1865         * char-ucs.h: Use <short> for <Charset_ID>.
1866
1867         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1868         <Charset_ID>.
1869
1870 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1871
1872         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1873         to 0.16.
1874
1875 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1876
1877         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1878         variable.
1879         (Qmorohashi_daikanwa): New variable.
1880         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1881         for `morohashi-daikanwa' attribute.
1882         (Fget_char_attribute): Likewise.
1883         (Fput_char_attribute): Likewise.
1884         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1885         has the same value of `ideograph-daikanwa'.
1886         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1887         (vars_of_mule_charset): Setup
1888         `Vcharacter_morohashi_daikanwa_table'.
1889
1890 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1891
1892         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1893         attributes.
1894         (add_charset_to_list_mapper): Add `key' instead of
1895         `XCHARSET_NAME (value)' to return aliases.
1896
1897 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1898
1899         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1900         variable.
1901         (Vcharacter_ideographic_strokes_table): New variable.
1902         (Qideographic_radical): New variable.
1903         (Qideographic_strokes): New variable.
1904         (Fchar_attribute_alist): Use
1905         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1906         attribute; use `Vcharacter_ideographic_strokes_table' for
1907         `ideographic-strokes' attribute.
1908         (Fget_char_attribute): Likewise.
1909         (Fput_char_attribute): Likewise.
1910         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1911         `ideographic-strokes'.
1912         (vars_of_mule_charset): Setup
1913         `Vcharacter_ideographic_radical_table' and
1914         `Vcharacter_ideographic_strokes_table'.
1915
1916 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1917
1918         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1919         (Qtotal_strokes): New variable.
1920         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1921         `total-strokes' attribute.
1922         (Fget_char_attribute): Likewise.
1923         (Fput_char_attribute): Likewise.
1924         (syms_of_mule_charset): Add new symbol `total-strokes'.
1925         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1926
1927 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1928
1929         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1930         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1931         are found.
1932         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1933         `->decomposition' attribute.
1934         (Fput_char_attribute): Likewise.
1935         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1936
1937 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1938
1939         * mule-charset.c (decoding_table_check_elements): New function.
1940         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1941
1942 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1943
1944         * mule-charset.c (Fset_charset_mapping_table): Use
1945         `put_char_ccs_code_point'.
1946
1947 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1948
1949         * mule-charset.c (decoding_table_put_char): New inline function.
1950         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1951
1952 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1955         (XCHARSET_BYTE_SIZE): New macro.
1956         (decoding_table_remove_char): New inline function.
1957         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1958         `decoding_table_remove_char'.
1959         (remove_char_ccs): Use `decoding_table_remove_char'.
1960         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1961
1962 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1963
1964         * mule-charset.c (Vcharacter_name_table): New variable.
1965         (Qname): New variable.
1966         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1967         attribute.
1968         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1969         `Vcharacter_name_table' for `name' attribute.
1970         (Fremove_char_attribute): Use function `remove_char_ccs'.
1971         (put_char_ccs_code_point): New function.
1972         (remove_char_ccs): New function.
1973         (syms_of_mule_charset): Add new symbol `name'.
1974         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1975
1976 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1977
1978         * mule-charset.c (make_byte_table): Add new argument `older'.
1979         (make_char_id_table): Likewise.
1980         (copy_char_id_table): Comment out because it is not used.
1981         (put_char_id_table): Modify for `make_byte_table'.
1982         (Fput_char_attribute): Make encoding_table as older object;
1983         inherit older bit of `Vcharacter_composition_table'.
1984         (mark_charset): Don't mark `cs->encoding_table'.
1985         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1986         normal object; make `Vcharacter_composition_table' as an older
1987         object; delete staticpro for `Vcharacter_composition_table'; make
1988         `Vcharacter_variant_table' as a normal object.
1989
1990         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1991         (mark_object): Don't check older object in UTF-2000.
1992
1993         * lrecord.h (struct lrecord_header): Add new member `older' in
1994         UTF-2000.
1995         (set_lheader_implementation): Setup `SLI_header->older' in
1996         UTF-2000.
1997         (set_lheader_older_implementation): New macro in UTF-2000.
1998         (OLDER_RECORD_P): New macro in UTF-2000.
1999         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2000         (alloc_older_lcrecord): New prototype in UTF-2000.
2001         (alloc_older_lcrecord_type): New macro in UTF-2000.
2002
2003 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2004
2005         * mule-charset.c (byte_table_description): Use
2006         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2007         (char_id_table_description): Delete bogus `, 1'.
2008         (Fget_char_attribute): Refer encoding_table of each coded-charset
2009         to get value of coded-charset attribute of a character.
2010         (Fput_char_attribute): Use `make_older_vector' instead of
2011         `make_vector'; use encoding_table of each coded-charset to store
2012         value of coded-charset attribute of a character.
2013         (Fremove_char_attribute): Use encoding_table of each coded-charset
2014         to store value of coded-charset attribute of a character.
2015         (mark_charset): Mark `cs->encoding_table'; don't mark
2016         `cs->decoding_table'.
2017         (charset_description): Add description of new member
2018         `encoding_table'.
2019         (make_charset): Initialize `encoding_table'.
2020
2021         * char-ucs.h (struct Lisp_Charset): Add new member
2022         `encoding_table'.
2023         (CHARSET_ENCODING_TABLE): New macro.
2024         (XCHARSET_ENCODING_TABLE): New macro.
2025         (charset_code_point): New implementation.
2026         (encode_char_1): Likewise.
2027
2028         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2029         (disksave_object_finalization_1): Call finalizers of
2030         `all_older_lcrecords' in UTF-2000.
2031         (make_older_vector): New function in UTF-2000.
2032         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2033         UTF-2000.
2034
2035         * lisp.h (make_older_vector): New prototype in UTF-2000.
2036
2037 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2038
2039         * lrecord.h (enum lrecord_type): Rename
2040         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2041
2042         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2043         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2044         `get_char_code_table'.
2045
2046         * mule-charset.c (mark_char_id_table): Renamed from
2047         `mark_char_code_table'.
2048         (char_id_table_equal): Renamed from `char_code_table_equal'.
2049         (char_id_table_hash): Renamed from `char_code_table_hash'.
2050         (make_char_id_table): Renamed from `make_char_code_table'.
2051         (copy_char_id_table): Renamed from `copy_char_code_table'.
2052         (get_char_id_table): Renamed from `get_char_code_table'.
2053         (put_char_id_table): Renamed from `put_char_code_table'.
2054         (to_char_id): Renamed from `to_char_code'.
2055
2056         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2057         `Lisp_Char_Code_Table'.
2058         (char_id_table): Renamed from `char_code_table'.
2059         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2060         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2061         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2062         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2063         (get_char_id_table): Renamed from `get_char_code_table'.
2064
2065 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * lrecord.h (enum lrecord_type): Rename
2068         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2069
2070         * mule-charset.c (mark_byte_table): Renamed from
2071         `mark_char_byte_table'.
2072         (byte_table_equal): Renamed from `char_byte_table_equal'.
2073         (byte_table_hash): Renamed from `byte_table_hash'.
2074         (make_byte_table): Renamed from `make_byte_table'.
2075         (copy_byte_table): Renamed from `copy_char_byte_table'.
2076
2077         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2078         `Lisp_Char_Byte_Table'.
2079         (byte_table): Renamed from `char_byte_table'.
2080         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2081         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2082         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2083         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2084
2085 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2086
2087         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2088         (dfc_convert_to_internal_format): Likewise.
2089         
2090         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2091         * text-coding.c (Fcoding_system_alias_p): New function.
2092         * text-coding.c (Fcoding_system_aliasee): New function.
2093         * text-coding.c (append_suffix_to_symbol): New function.
2094         * text-coding.c (dangling_coding_system_alias_p): New function.
2095         * text-coding.c (Ffind_coding_system):
2096         * text-coding.c (Fcopy_coding_system):
2097         * text-coding.c (encode_coding_no_conversion):
2098         * text-coding.c (syms_of_file_coding):
2099         * text-coding.c (vars_of_file_coding):
2100         Rewrite coding system alias code.
2101         Allow nested aliases, like symbolic links.
2102         Allow redefinition of coding system aliases.
2103         Prevent existence of dangling coding system aliases.
2104         Eliminate convert_to_external_format.
2105         Eliminate convert_to_internal_format.
2106         
2107         * text-coding.c: Change enum eol_type to eol_type_t.
2108
2109 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2112         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2113
2114         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2115         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2116
2117 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2120         `ideograph-daikanwa'.
2121
2122         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2123         (Vcharset_ucs_bmp): Likewise.
2124         (Vcharset_mojikyo): Add new extern variable definition.
2125         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2126         (Vcharset_latin_iso8859_3): Likewise.
2127         (Vcharset_latin_iso8859_4): Likewise.
2128         (Vcharset_latin_iso8859_9): Likewise.
2129         (Vcharset_latin_viscii_lower): Likewise.
2130         (Vcharset_latin_viscii_upper): Likewise.
2131         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2132         `mojikyo' code-point is used to decode.
2133         (encode_char_2): New function [to convert `mojikyo' code-point to
2134         Mojikyo font encoding].
2135         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2136         (breakup_char_1): Likewise.
2137         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2138
2139 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2140
2141         * text-coding.c (Fmake_coding_system): Add document about
2142         `disable-composition' property.
2143
2144 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2145
2146         * text-coding.c (Qdisable_composition): New variable; delete
2147         `Qcomposite'.
2148         (Fmake_coding_system): Add new property `disable-composite';
2149         delete property `composite'.
2150         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2151         instead of `!CODING_SYSTEM_COMPOSITE'.
2152         (syms_of_file_coding): Add new symbol `disable-composition';
2153         delete symbol `composite'.
2154
2155         * file-coding.h (struct Lisp_Coding_System): Add
2156         `disable_composition'; delete `enable_composition'.
2157         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2158         `CODING_SYSTEM_COMPOSITE'.
2159         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2160         `XCODING_SYSTEM_COMPOSITE'.
2161
2162 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2163
2164         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2165         to 0.15.
2166
2167 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * text-coding.c (Qcomposite): New variable.
2170         (Fmake_coding_system): Add new property `composite'.
2171         (struct decoding_stream): Add `combined_char_count',
2172         `combined_chars' and `combining_table' in UTF-2000.
2173         (COMPOSE_FLUSH_CHARS): New macro.
2174         (COMPOSE_ADD_CHAR): New macro.
2175         (reset_decoding_stream): Reset `str->combined_char_count' and
2176         `str->combining_table' in UTF-2000.
2177         (decode_coding_iso2022): Modify for character-decomposition.
2178         (syms_of_file_coding): Add new symbol `composite'.
2179
2180 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2181
2182         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2183         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2184         of `Vcharacter_composition_table' if `->decomposition' property
2185         has only 1 element.
2186         (Qlatin_tcvn5712): New variable.
2187         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2188         (complex_vars_of_mule_charset): Add new coded-charset
2189         `latin-tcvn5712'.
2190
2191         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2192
2193 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2194
2195         * file-coding.h (struct Lisp_Coding_System): Add
2196         `enable_composition'.
2197         (CODING_SYSTEM_COMPOSITE): New macro.
2198         (XCODING_SYSTEM_COMPOSITE): New macro.
2199
2200 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2201
2202         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2203
2204 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2205
2206         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2207         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2208
2209 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2210
2211         * mule-charset.c (Vcharset_mojikyo): New variable.
2212         (Fdefine_char): Don't use coded-charset which does not have
2213         non-builtin character range to allocate character-id.
2214         (Qmojikyo): New variable.
2215         (syms_of_mule_charset): Add new symbol `mojikyo'.
2216         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2217
2218         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2219         (LEADING_BYTE_MOJIKYO): New macro.
2220         (MIN_CHAR_MOJIKYO): New macro.
2221         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2222         (MAX_CHAR_MOJIKYO): New macro.
2223
2224 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2225
2226         * mule-charset.c (remove_char_attribute): Fixed.
2227
2228 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2229
2230         * mule-charset.c (remove_char_attribute): New function.
2231         (Fremove_char_attribute): New function.
2232         (encode_builtin_char_1): Comment out builtin-support for
2233         greek-iso8859-7 and cyrillic-iso8859-5.
2234         (Fdecode_char): Check `code' is an integer.
2235         (syms_of_mule_charset): Add `remove-char-attribute'.
2236         (MIN_CHAR_GREEK): Deleted.
2237         (MAX_CHAR_GREEK): Likewise.
2238         (MIN_CHAR_CYRILLIC): Likewise.
2239         (MAX_CHAR_CYRILLIC): Likewise.
2240         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2241         MAX_CHAR_GREEK for `greek-iso8859-7'.
2242
2243         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2244         (MAX_CHAR_GREEK): Likewise.
2245         (MIN_CHAR_CYRILLIC): Likewise.
2246         (MAX_CHAR_CYRILLIC): Likewise.
2247
2248 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2249
2250         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2251         format is used without `ucs' property.
2252         (Fdecode_char): Fix problem with GR representation.
2253         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2254         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2255
2256 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2257
2258         * mule-charset.c (make_builtin_char): New function.
2259         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2260         (Fset_charset_mapping_table): Modify for new representation of
2261         code-point.
2262         (Fdecode_char): New function.
2263         (syms_of_mule_charset): Add new builtin function `decode-char' in
2264         UTF-2000.
2265
2266         * char-ucs.h (make_builtin_char): New prototype.
2267         (DECODE_CHAR): New inline function.
2268         (MAKE_CHAR): Use `DECODE_CHAR'.
2269
2270 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2271
2272         * text-coding.c (parse_charset_conversion_specs): Use
2273         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2274         `XCHARSET_TYPE'.
2275         (iso2022_designate): Likewise.
2276
2277         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2278         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2279
2280         * mule-charset.c (Vcharset_ucs): New variable.
2281         (print_charset): Change design; use `CHARSET_CHARS' and
2282         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2283         (make_charset): Change signature to specify `chars' and
2284         `dimension' instead of `type'.
2285         (range_charset_code_point): Modify for 256^n-set.
2286         (encode_builtin_char_1): Encode as `ucs' in default.
2287         (Fmake_charset): Modify for `make_charset'.
2288         (Fmake_reverse_direction_charset): Likewise.
2289         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2290         UTF-2000.
2291         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2292         for `make_charset'.
2293
2294         * char-ucs.h (Vcharset_ucs): New variable.
2295         (LEADING_BYTE_UCS): New macro.
2296         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2297         and `chars' to `unsigned short' from `unsigned int'.
2298         (CHARSET_TYPE): Deleted.
2299         (XCHARSET_TYPE): Deleted.
2300
2301 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2302
2303         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2304
2305         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2306         (ENCODE_CHAR): New macro.
2307
2308 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2309
2310         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2311         to 0.14 (Kawachi-Katakami).
2312
2313 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2314
2315         * text-coding.c (char_encode_shift_jis): Modify for
2316         `charset_code_point'.
2317         (char_encode_iso2022): Likewise.
2318
2319         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2320         (integer) instead of list of <Lisp_Object>s (integers) as the
2321         format of code-point of a coded-charset.
2322         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2323         (encode_builtin_char_1): New function; delete
2324         `split_builtin_char'.
2325         (charset_code_point): Return <int> instead of <Lisp_Object>.
2326         (Fsplit_char): Don't use `SPLIT_CHAR'.
2327
2328         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2329         prototype for `split_builtin_char'.
2330         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2331         (charset_code_point): Likewise.
2332         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2333         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2334
2335 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2336
2337         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2338         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2339
2340 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2341
2342         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2343
2344         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2345         (MAX_CHAR_OBS_94x94): Deleted.
2346
2347 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2348
2349         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2350
2351         * char-ucs.h (MAX_CHAR_BMP): New macro.
2352
2353 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2354
2355         * text-coding.c: Sync with r21-2-24.
2356
2357 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2358
2359         * file-coding.c: Modify for UTF-2000.
2360
2361 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2362
2363         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2364         to 0.13 (Takaida).
2365
2366 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2367
2368         * mule-charset.c (split_builtin_char): Delete builtin support for
2369         `katakana-jisx0201'.
2370         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2371         BMP area in builtin representation.
2372
2373         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2374         `Vcharset_katakana_jisx0201'.
2375
2376 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2377
2378         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2379         (Qisolated): New variable.
2380         (Qinitial): New variable.
2381         (Qmedial): New variable.
2382         (Qfinal): New variable.
2383         (Qvertical): New variable.
2384         (Qsmall): New variable.
2385         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2386         `Qvertical' and `Qsmall'.
2387         (Qmojikyo_pj_[1 .. 21]): New variable.
2388         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2389         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2390         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2391         .. 21]'.
2392
2393 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2394
2395         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2396         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2397         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2398
2399 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2400
2401         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2402         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2403         BMP.
2404         (Qjapanese_jisx0208_1990): New variable.
2405         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2406         (complex_vars_of_mule_charset): Add new coded-charset
2407         `japanese-jisx0208-1990'.
2408
2409         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2410         (MIN_CHAR_JIS_X0208_1990): New macro.
2411         (MAX_CHAR_JIS_X0208_1990): New macro.
2412
2413 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2414
2415         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2416         coded-charset is not found.
2417
2418 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2419
2420         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2421         (Fdefine_char): Use `Fmake_char'.
2422
2423 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2424
2425         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2426         (Vcharset_hiragana_jisx0208): Deleted.
2427         (Vcharset_katakana_jisx0208): Deleted.
2428         (Qideograph_daikanwa): New variable.
2429         (Qhiragana_jisx0208): Deleted.
2430         (Qkatakana_jisx0208): Deleted.
2431         (split_builtin_char): Split `ideograph-daikanwa'.
2432         (Fsplit_char): New implementation for UTF-2000.
2433         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2434         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2435         (complex_vars_of_mule_charset): Add new coded-charset
2436         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2437         `katakana-jisx0208'.
2438
2439         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2440         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2441         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2442         (MIN_CHAR_DAIKANWA): New macro.
2443         (MAX_CHAR_DAIKANWA): New macro.
2444
2445 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2446
2447         * data.c (Fstring_to_number): Don't recognize floating point if
2448         base is not 10.
2449
2450 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2451
2452         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2453
2454 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2455
2456         * mule-charset.c (Qsquare): New variable.
2457         (to_char_code): Add `Qsquare'.
2458         (syms_of_mule_charset): Add new symbol `square'.
2459
2460 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2461
2462         * mule-charset.c (Qcircle): New variable.
2463         (to_char_code): Add `Qcircle'.
2464         (syms_of_mule_charset): Add new symbol `circle'.
2465
2466 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2467
2468         * mule-charset.c (Qfont): New variable.
2469         (to_char_code): Add `Qfont'.
2470         (syms_of_mule_charset): Add new symbol `font'.
2471
2472 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2473
2474         * mule-charset.c (Qsub): New variable.
2475         (to_char_code): Add `Qsub'.
2476         (syms_of_mule_charset): Add new symbol `sub'.
2477
2478 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2479
2480         * mule-charset.c (Fput_char_attribute): Convert each element of
2481         VALUE to GL position if ATTRIBUTE is a GR-set,
2482
2483 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2484
2485         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2486         coded-charset is a GR-set.
2487
2488 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2489
2490         * mule-charset.c (Fput_char_attribute): Check each element of
2491         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2492
2493 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2494
2495         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2496         UTF-2000.
2497         (Qethiopic_ucs): New variable in UTF-2000.
2498         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2499         (complex_vars_of_mule_charset): Add new coded-charset
2500         `ethiopic-ucs' in UTF-2000.
2501
2502         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2503         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2504         9)'.
2505         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2506         10)'.
2507         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2508
2509 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2510
2511         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2512         `ascii'.
2513
2514 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2515
2516         * mule-charset.c (Vcharacter_variant_table): New variable.
2517         (Q_ucs): New variable.
2518         (Fchar_variants): New function.
2519         (Fput_char_attribute): Register `->ucs' value to
2520         `Vcharacter_variant_table'.
2521         (syms_of_mule_charset): Add new function `char-variants' and new
2522         symbol `->ucs'.
2523         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2524
2525 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2526
2527         * mule-charset.c (get_char_code_table): Allow negative character
2528         code.
2529         (put_char_code_table): Likewise.
2530         (Vcharacter_composition_table): New variable.
2531         (Q_decomposition): New variable.
2532         (Qwide): New variable.
2533         (Qnarrow): New variable.
2534         (Qcompat): New variable.
2535         (QnoBreak): New variable.
2536         (Qsuper): New variable.
2537         (Qfraction): New variable.
2538         (to_char_code): New function.
2539         (Fget_composite_char): New function.
2540         (Fput_char_attribute): Register `->decomposition' value to
2541         `Vcharacter_composition_table'.
2542         (syms_of_mule_charset): Add new function `get-composite-char', new
2543         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2544         `super' and `fraction'.
2545         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2546
2547 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2548
2549         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2550         character; copy the return value.
2551
2552 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2553
2554         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2555
2556         * mule-charset.c (range_charset_code_point): Must use make_int.
2557         (split_builtin_char): New function.
2558
2559 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2560
2561         * mule-charset.c (char_byte_table): Change name from
2562         "char-code-table" to "char-byte-table".
2563         (mark_char_code_table): New function.
2564         (char_code_table_equal): New function.
2565         (char_code_table_hash): New function.
2566         (char_code_table_description): New constant.
2567         (char_code_table): New type.
2568         (make_char_code_table): New function.
2569         (copy_char_code_table): New function.
2570         (get_char_code_table): Modify for `char_code_table' type.
2571         (put_char_code_table): Likewise.
2572         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2573         (Kashiwara).
2574
2575         * char-ucs.h (char_code_table): New type.
2576         (XCHAR_CODE_TABLE): New macro.
2577         (XSETCHAR_CODE_TABLE): New macro.
2578         (CHAR_CODE_TABLE_P): New macro.
2579         (GC_CHAR_CODE_TABLE_P): New macro.
2580         (struct Lisp_Char_Code_Table): New structure.
2581
2582 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2583
2584         * mule-charset.c (Fmake_charset): Setup byte_offset for
2585         {94|96}^n-set.
2586
2587 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2588
2589         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2590         character.
2591
2592 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2593
2594         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2595         is found.
2596
2597 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2598
2599         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2600         charset, it is regarded as a charset.
2601         (put_char_attribute): New function in UTF-2000.
2602         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2603         charset, mapping-table of the charset is modified.
2604         (Fdefine_char): New function in UTF-2000.
2605         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2606         `Fput_char_attribute'.
2607         (syms_of_mule_charset): Add new function `define-char' and new
2608         symbol `ucs' in UTF-2000.
2609         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2610
2611 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2612
2613         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2614         non-UTF-2000 configuration.
2615
2616 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2617
2618         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2619         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2620
2621         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2622         deleted.
2623         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2624         (Fset_charset_mapping_table): Likewise.
2625
2626         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2627         (CHARSET_ENCODING_TABLE): Delete.
2628         (XCHARSET_ENCODING_TABLE): Delete.
2629         (charset_code_point): New interface.
2630
2631 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2632
2633         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2634         instead of `charset_get_byte1' and `charset_get_byte2'.
2635
2636         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2637         (charset_get_byte2): Deleted.
2638
2639 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2640
2641         * char-ucs.h (SPLIT_CHAR): New inline function.
2642         (breakup_char_1): Use `SPLIT_CHAR'.
2643
2644         * mule-charset.c (range_charset_code_point): New function.
2645         (charset_code_point): New function.
2646
2647         * char-ucs.h (range_charset_code_point): New interface.
2648         (breakup_char_1): Use `range_charset_code_point'.
2649
2650 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2651
2652         * mule-charset.c (Fmake_charset): Delete unused local variable
2653         `code_offset'.
2654
2655         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2656         (breakup_char_1): Find a charset and code-point in
2657         `Vcharacter_attribute_table'.
2658
2659 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2660
2661         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2662         to 0.10 (Yao).
2663
2664 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2665
2666         * mule-charset.c (Vcharacter_attribute_table): New variable.
2667         (Fchar_attribute_alist): New function.
2668         (Fget_char_attribute): New function.
2669         (Fput_char_attribute): New function.
2670         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2671         too.
2672         (syms_of_mule_charset): Add new function `char-attribute-alist',
2673         `get-char-attribute' and `put-char-attribute'.
2674         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2675
2676 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2677
2678         * mule-charset.c (Fmake_charset): Just use
2679         `get_unallocated_leading_byte'.
2680
2681         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2682         sets; don't use final-byte based number for private sets.
2683
2684 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2685
2686         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2687         integer.
2688
2689 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2690
2691         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2692         to 0.9.
2693
2694 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2695
2696         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2697         of `CHAR_LEADING_BYTE' in UTF-2000.
2698
2699         * insdel.c (find_charsets_in_bufbyte_string): Use
2700         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2701         (find_charsets_in_emchar_string): Likewise.
2702
2703         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2704         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2705
2706         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2707         (CHAR_CHARSET_ID): New macro.
2708
2709 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2710
2711         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2712         charset-id - MIN_LEADING_BYTE.
2713         (put_char_table): Likewise.
2714
2715 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2716
2717         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2718         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2719         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2720         (CHARSET_ID_OFFSET): New macro.
2721         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2722         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2723         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2724         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2725         4).
2726         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2727         5).
2728         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2729         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2730         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2731         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2732         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2733
2734 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2735
2736         * mule-charset.c (next_allocated_leading_byte): New variable in
2737         UTF-2000.
2738         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2739         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2740         (get_unallocated_leading_byte): Simply use
2741         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2742         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2743         UTF-2000.
2744
2745         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2746         (MAX_LEADING_BYTE_PRIVATE): New macro.
2747         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2748         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2749
2750 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2751
2752         * mule-charset.c (Fmake_charset): Allocate final-byte based
2753         charset-id for 94-set, 96-set and 94x94-set.
2754
2755 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2756
2757         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2758         ambiguous `else'.
2759         (Fmake_charset): Likewise.
2760         (complex_vars_of_mule_charset): Modify the font registry of
2761         `ucs-bmp' not to match `Ethiopic-Unicode'.
2762
2763 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2764
2765         * mule-charset.c (complex_vars_of_mule_charset): Add font
2766         registory of `ucs-bmp'.
2767
2768 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2769
2770         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2771         coded-charsets in `default-coded-charset-priority-list' when
2772         breaking up a character.
2773
2774         * mule-charset.c (Vcharset_latin_viscii): New variable.
2775         (Qlatin_viscii): New variable.
2776         (make_charset): Don't use `decoding_table'.
2777         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2778         byte_offset.
2779         (Fset_charset_mapping_table): New implementation.
2780         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2781         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2782         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2783         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2784         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2785         charset `latin_viscii'.
2786
2787         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2788         (CHARSET_TYPE_94X94): Change to 1 from 2.
2789         (CHARSET_TYPE_96): Change to 2 from 1.
2790         (CHARSET_TYPE_128): New macro.
2791         (CHARSET_TYPE_128X128): Change to 5 from 4.
2792         (CHARSET_TYPE_256): New macro.
2793         (CHARSET_TYPE_256X256): Change to 7 from 5.
2794         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2795
2796 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2797
2798         * text-coding.c (char_encode_shift_jis): Refer
2799         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2800         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2801
2802         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2803         (char_byte_table_equal): New function in UTF-2000.
2804         (char_byte_table_hash): New function in UTF-2000.
2805         (char_byte_table_description): New constant in UTF-2000.
2806         (char_byte_table): New type in UTF-2000.
2807         (make_char_byte_table): New function in UTF-2000.
2808         (copy_char_byte_table): New function in UTF-2000.
2809         (make_char_code_table): New macro in UTF-2000.
2810         (get_char_code_table): New function in UTF-2000.
2811         (put_char_code_table): New function in UTF-2000.
2812         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2813         (charset_description): Add setting in UTF-2000.
2814         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2815         `CHARSET_TO_BYTE1_TABLE(cs)'.
2816         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2817         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2818         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2819         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2820         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2821         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2822         `CHARSET_TO_BYTE2_TABLE(cs)'.
2823
2824         * char-ucs.h (char_byte_table): New type.
2825         (XCHAR_BYTE_TABLE): New macro.
2826         (XSETCHAR_BYTE_TABLE): New macro.
2827         (CHAR_BYTE_TABLE_P): New macro.
2828         (GC_CHAR_BYTE_TABLE_P): New macro.
2829         (struct Lisp_Char_Byte_Table): New structure.
2830         (get_char_code_table): New interface.
2831         (Emchar_to_byte_table): Deleted.
2832         (get_byte_from_character_table): Deleted.
2833         (struct Lisp_Charset): Add `encoding_table'; delete
2834         `to_byte1_table' and `to_byte2_table'.
2835         (CHARSET_ENCODING_TABLE): New macro.
2836         (CHARSET_TO_BYTE1_TABLE): Deleted.
2837         (CHARSET_TO_BYTE2_TABLE): Deleted.
2838         (XCHARSET_ENCODING_TABLE): New macro.
2839         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2840         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2841
2842 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2843
2844         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2845         `vietnamese-viscii-*'.
2846
2847 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2848
2849         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2850         (Qvietnamese_viscii_upper): New variable.
2851         (Fdefine_charset_alias): New function.
2852         (syms_of_mule_charset): Add new function `define-charset-alias'.
2853         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2854         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2855         `latin-viscii-*'.
2856
2857 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2858
2859         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2860         (MAX_CHAR_OBS_94x94): New macro.
2861         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2862         for 94x94 sets.
2863
2864         * mule-charset.c (put_byte_from_character_table): Change unit size
2865         from 128 to 256.
2866         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2867         not defined.
2868         (Fmake_reverse_direction_charset): Modify dummy argument of
2869         `make_charset' for non-UTF-2000 environment.
2870
2871 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2872
2873         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2874
2875         * mule-charset.c (destroy_byte_from_character_table): New macro.
2876         (latin_jisx0201_to_ucs): Deleted.
2877         (latin_iso8859_2_to_ucs): Deleted.
2878         (latin_iso8859_3_to_ucs): Deleted.
2879         (latin_iso8859_4_to_ucs): Deleted.
2880         (latin_iso8859_9_to_ucs): Deleted.
2881         (latin_viscii_lower_to_ucs): Deleted.
2882         (latin_viscii_upper_to_ucs): Deleted.
2883         (mark_charset): Mark `cs->decoding_table'.
2884         (Fcharset_mapping_table): Fix DOC-string.
2885         (Fset_charset_mapping_table): New function.
2886         (syms_of_mule_charset): Add nwe function
2887         `set-charset-mapping-table'.
2888         (complex_vars_of_mule_charset): Don't setup and use
2889         `latin_*_to_ucs'.
2890
2891 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2892
2893         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2894         charset.
2895
2896 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2897
2898         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2899         (Vcharset_katakana_jisx0208): New variable.
2900         (Qhiragana_jisx0208): New variable.
2901         (Qkatakana_jisx0208): New variable.
2902         (make_charset): Add new argument `byte_offset'.
2903         (charset_get_byte1): Modify for new coded-charset definition; use
2904         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2905         `XCHARSET_BYTE_OFFSET'.
2906         (Fmake_charset): Modify for `make_charset'.
2907         (Fmake_reverse_direction_charset): Likewise.
2908         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2909         `katakana-jisx0208'.
2910         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2911         `.'  in font registry of charset `katakana-jisx0201',
2912         `latin-jisx0201', `vietnamese-viscii-lower' and
2913         `vietnamese-viscii-upper'; modify DOC-string of charset
2914         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2915         registry of charset `japanese-jisx0208' not to use font for JIS
2916         X0208:1990; add new charset `hiragana-jisx0208' and
2917         `katakana-jisx0208'.
2918
2919         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2920         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2921         (struct Lisp_Charset): Add `byte_offset'.
2922         (CHARSET_BYTE_OFFSET): New macro.
2923         (XCHARSET_UCS_MIN): New macro.
2924         (XCHARSET_UCS_MAX): New macro.
2925         (XCHARSET_CODE_OFFSET): New macro.
2926         (XCHARSET_BYTE_OFFSET): New macro.
2927         (MIN_CHAR_HIRAGANA): New macro.
2928         (MAX_CHAR_HIRAGANA): New macro.
2929         (MIN_CHAR_KATAKANA): New macro.
2930         (MAX_CHAR_KATAKANA): New macro.
2931         (MAKE_CHAR): Modify for new coded-charset definition; use
2932         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2933         `XCHARSET_BYTE_OFFSET'.
2934
2935 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2936
2937         * mule-charset.c (CHAR96): Deleted.
2938         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2939         <Lisp_Object>.
2940         (latin_iso8859_2_to_ucs): Likewise.
2941         (latin_iso8859_3_to_ucs): Likewise.
2942         (latin_iso8859_4_to_ucs): Likewise.
2943         (latin_iso8859_9_to_ucs): Likewise.
2944         (latin_viscii_lower_to_ucs): Likewise.
2945         (latin_viscii_upper_to_ucs): Likewise.
2946         (latin_tcvn5712_to_ucs): Commented out.
2947         (make_charset): Change type of argument `decoding_table' from
2948         <Emchar*> to <Lisp_Object> [vector of characters].
2949         (Fmake_charset): Modify for `make_charset'.
2950         (Fmake_reverse_direction_charset): Likewise.
2951         (Fcharset_mapping_table): New function in UTF-2000.
2952         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2953         UTF-2000.
2954         (complex_vars_of_mule_charset): Modify for type change of
2955         `*_to_ucs'; modify for `make_charset'.
2956
2957         * char-ucs.h (struct Lisp_Charset): Change type of
2958         `decoding_table' from <Emchar*> to <Lisp_Object>.
2959         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2960
2961 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2962
2963         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2964         error with non-UTF-2000-Mule.
2965
2966 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2967
2968         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2969         in lisp again].
2970         (Vcharset_chinese_cns11643_4): Likewise.
2971         (Vcharset_chinese_cns11643_5): Likewise.
2972         (Vcharset_chinese_cns11643_6): Likewise.
2973         (Vcharset_chinese_cns11643_7): Likewise.
2974         (Qchinese_cns11643_3): Likewise.
2975         (Qchinese_cns11643_4): Likewise.
2976         (Qchinese_cns11643_5): Likewise.
2977         (Qchinese_cns11643_6): Likewise.
2978         (Qchinese_cns11643_7): Likewise.
2979         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2980         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2981         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2982         (complex_vars_of_mule_charset): Likewise.
2983
2984 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2985
2986         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2987         96-set.
2988         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2989         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2990
2991 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2992
2993         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2994         0xFF60.
2995         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2996         (breakup_char_1): Likewise.
2997
2998         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2999         one of them includes the specified character.
3000
3001 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3002
3003         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3004
3005 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3006
3007         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3008
3009 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3010
3011         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3012         definition for non-UTF-2000 Mule.
3013         (latin_iso8859_3_to_ucs): Likewise.
3014         (latin_iso8859_4_to_ucs): Likewise.
3015         (latin_iso8859_9_to_ucs): Likewise.
3016         (latin_jisx0201_to_ucs): Likewise.
3017         (MIN_CHAR_THAI): Likewise.
3018         (MAX_CHAR_THAI): Likewise.
3019         (MIN_CHAR_GREEK): Likewise.
3020         (MAX_CHAR_GREEK): Likewise.
3021         (MIN_CHAR_HEBREW): Likewise.
3022         (MAX_CHAR_HEBREW): Likewise.
3023         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3024         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3025         (MIN_CHAR_CYRILLIC): Likewise.
3026         (MAX_CHAR_CYRILLIC): Likewise.
3027
3028 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3029
3030         * char-ucs.h (breakup_char_1): Use
3031         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3032         thai-tis620 and katakana-jisx0201 area.
3033
3034 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3035
3036         * char-ucs.h (breakup_char_1): Use
3037         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3038         area.
3039
3040         * text-coding.c (reset_encoding_stream): Fixed.
3041         (char_encode_ucs4): Delete `& 255'.
3042
3043         * char-ucs.h (breakup_char_1): Use
3044         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3045
3046 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3047
3048         * file-coding.c (Fmake_coding_system): Don't set up
3049         `codesys->fixed.size'.
3050         (encode_coding_no_conversion): Don't refer
3051         `str->codesys->fixed.size'.
3052
3053 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3054
3055         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3056         (latin_a_char_to_byte1): Deleted.
3057         (latin_a_char_to_byte2): Deleted.
3058
3059 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3060
3061         * mule-charset.c (make_charset): Add new argument `ucs_min',
3062         `ucs_max' and `code_offset'.
3063         (charset_get_byte1): New implementation [delete specific charset
3064         depended implementations].
3065         (Fmake_charset): Modify for `make_charset'.
3066         (Fmake_reverse_direction_charset): Likewise.
3067         (complex_vars_of_mule_charset): Likewise.
3068
3069         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3070         `code_offset'.
3071         (CHARSET_UCS_MIN): New macro.
3072         (CHARSET_UCS_MAX): New macro.
3073         (CHARSET_CODE_OFFSET): New macro.
3074         (MAKE_CHAR): Delete charset depended definitions [except
3075         katakana-jisx0201].
3076
3077 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3078
3079         * char-ucs.h (breakup_char_1): Use
3080         `Vdefault_coded_charset_priority_list' for C0-Controls,
3081         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3082
3083 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3084
3085         * char-ucs.h (charset_get_byte1): New function.
3086         (XCHARSET_GET_BYTE1): Deleted.
3087         (charset_get_byte2): New function.
3088         (XCHARSET_GET_BYTE2): Deleted.
3089         (Vdefault_coded_charset_priority_list): New external variable.
3090         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3091         `Vdefault_preferred_coded_charset_list'.
3092
3093         * mule-charset.c (charset_get_byte1): New function.
3094         (charset_get_byte2): New function.
3095         (Vdefault_coded_charset_priority_list): New variable.
3096         (vars_of_mule_charset): Add new variable
3097         `default-coded-charset-priority-list'.
3098
3099 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3100
3101         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3102         (XCHARSET_GET_BYTE2): New inline function.
3103         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3104         `XCHARSET_GET_BYTE2'.
3105
3106 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3107
3108         * mule-charset.c (make_charset): Initialize
3109         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3110         NULL if table is not defined.
3111
3112 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3113
3114         * text-coding.c (char_encode_shift_jis): Use
3115         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3116         `ucs_to_latin_jisx0201'.
3117
3118         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3119         (ucs_to_latin_iso8859_2): Deleted.
3120         (ucs_to_latin_iso8859_3): Deleted.
3121         (ucs_to_latin_iso8859_4): Deleted.
3122         (ucs_to_latin_iso8859_9): Deleted.
3123         (ucs_to_latin_viscii_lower): Deleted.
3124         (ucs_to_latin_viscii_upper): Deleted.
3125         (ucs_to_latin_tcvn5712): Deleted.
3126         (make_charset): Add new argument `decoding_table'; set up
3127         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3128         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3129         `decoding_table' is defined in UTF-2000.
3130         (Fmake_charset): Modify for `make_charset'.
3131         (Fmake_reverse_direction_charset): Likewise.
3132         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3133         and `GENERATE_96_SET'.
3134
3135         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3136         (ucs_to_latin_jisx0201): Deleted.
3137         (latin_iso8859_2_to_ucs): Deleted.
3138         (ucs_to_latin_iso8859_2): Deleted.
3139         (latin_iso8859_3_to_ucs): Deleted.
3140         (ucs_to_latin_iso8859_3): Deleted.
3141         (latin_iso8859_4_to_ucs): Deleted.
3142         (ucs_to_latin_iso8859_4): Deleted.
3143         (latin_iso8859_9_to_ucs): Deleted.
3144         (ucs_to_latin_iso8859_9): Deleted.
3145         (latin_viscii_lower_to_ucs): Deleted.
3146         (ucs_to_latin_viscii_lower): Deleted.
3147         (latin_viscii_upper_to_ucs): Deleted.
3148         (ucs_to_latin_viscii_upper): Deleted.
3149         (struct Lisp_Charset): Renamed `encoding_table' to
3150         `to_byte1_table'; add `to_byte2_table'.
3151         (CHARSET_DECODING_TABLE): New macro.
3152         (CHARSET_TO_BYTE1_TABLE): New macro.
3153         (CHARSET_TO_BYTE2_TABLE): New macro.
3154         (XCHARSET_DECODING_TABLE): New macro.
3155         (XCHARSET_TO_BYTE1_TABLE): New macro.
3156         (XCHARSET_TO_BYTE2_TABLE): New macro.
3157         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3158         tables.
3159         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3160         don't use `ucs_to_*' tables.
3161
3162 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3163
3164         * text-coding.c (Fmake_coding_system): Don't set up
3165         `codesys->fixed.size'.
3166         (encode_coding_no_conversion): Use `if' instead of `switch'.
3167
3168         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3169
3170 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3171
3172         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3173         (Fmake_charset): Modify for `make_charset'.
3174         (Fmake_reverse_direction_charset): Likewise.
3175         (complex_vars_of_mule_charset): Likewise.
3176
3177 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3178
3179         * text-coding.c (char_encode_shift_jis): Use table
3180         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3181
3182 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3183
3184         * text-coding.c (text_encode_generic): Use `if' instead of
3185         `switch'.
3186         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3187         decode JIS-Latin.
3188
3189 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3190
3191         * text-coding.c (encode_coding_sjis): Deleted.
3192         (char_encode_shift_jis): New function.
3193         (char_finish_shift_jis): New function.
3194         (reset_encoding_stream): Set up `encode_char' and `finish' for
3195         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3196         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3197         (char_encode_utf8): Treat `eol_type'.
3198
3199 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3200
3201         * file-coding.c (decode_coding_iso2022): Use
3202         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3203
3204 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3205
3206         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3207         to 0.7 (Hirano).
3208
3209 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3210
3211         * char-lb.h (CHAR_COLUMNS): New macro.
3212
3213 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3214
3215         * text-coding.c (char_encode_ucs4): New function.
3216         (char_finish_ucs4): New function.
3217         (encode_coding_ucs4): Deleted.
3218         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3219         (text_encode_generic): Delete local variable `charset' and `half'.
3220         (ucs_to_mule_table): Deleted.
3221         (mule_to_ucs_table): Deleted.
3222         (Fset_ucs_char): Deleted.
3223         (ucs_to_char): Deleted.
3224         (Fucs_char): Deleted.
3225         (Fset_char_ucs): Deleted.
3226         (Fchar_ucs): Deleted.
3227         (decode_ucs4): Deleted.
3228         (mule_char_to_ucs4): Deleted.
3229         (encode_ucs4): Deleted.
3230         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3231         (decode_coding_utf8): Likewise.
3232         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3233         (char_encode_iso2022): Fixed.
3234         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3235         `Fset_char_ucs' and `Fchar_ucs'.
3236         (complex_vars_of_file_coding): Don't initialize
3237         `ucs_to_mule_table'.
3238
3239         * objects-tty.c (tty_initialize_font_instance): Don't use
3240         `XCHARSET_COLUMNS'.
3241
3242         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3243         UTF-2000.
3244
3245         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3246         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3247
3248         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3249         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3250         (emchar_string_displayed_columns): Likewise.
3251
3252         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3253         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3254         (string_column_at_point): Likewise.
3255         (Fmove_to_column): Likewise.
3256
3257         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3258         `encoding_table' and `decoding_table'.
3259         (CHARSET_REP_BYTES): Deleted.
3260         (XCHARSET_REP_BYTES): Deleted.
3261         (XCHARSET_COLUMNS): Deleted.
3262         (CHAR_COLUMNS): New macro.
3263         (lookup_composite_char): Deleted unconditionally.
3264         (composite_char_string): Likewise.
3265
3266 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3267
3268         * char-ucs.h (Emchar_to_byte_table): New type.
3269         (get_byte_from_character_table): New function interface.
3270         (Vcharset_latin_jisx0201): New variable.
3271         (latin_jisx0201_to_ucs): New variable.
3272         (ucs_to_latin_jisx0201): New variable.
3273         (Vcharset_latin_iso8859_2): New variable.
3274         (latin_iso8859_2_to_ucs): New variable.
3275         (ucs_to_latin_iso8859_2): New variable.
3276         (Vcharset_latin_iso8859_3): New variable.
3277         (latin_iso8859_3_to_ucs): New variable.
3278         (ucs_to_latin_iso8859_3): New variable.
3279         (Vcharset_latin_iso8859_4): New variable.
3280         (latin_iso8859_4_to_ucs): New variable.
3281         (ucs_to_latin_iso8859_4): New variable.
3282         (Vcharset_latin_iso8859_9): New variable.
3283         (latin_iso8859_9_to_ucs): New variable.
3284         (ucs_to_latin_iso8859_9): New variable.
3285         (Vcharset_latin_viscii_lower): New variable.
3286         (latin_viscii_lower_to_ucs): New variable.
3287         (ucs_to_latin_viscii_lower): New variable.
3288         (Vcharset_latin_viscii_upper): New variable.
3289         (latin_viscii_upper_to_ucs): New variable.
3290         (ucs_to_latin_viscii_upper): New variable.
3291         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3292         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3293         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3294         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3295         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3296         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3297         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3298         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3299         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3300         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3301
3302         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3303         (Vcharset_latin_viscii_upper): New variable.
3304         (make_byte_from_character_table): New function.
3305         (put_byte_from_character_table): New function.
3306         (get_byte_from_character_table): New function.
3307         (CHAR96): New macro.
3308         (ucs_to_latin_jisx0201): New variable.
3309         (latin_jisx0201_to_ucs): New variable.
3310         (ucs_to_latin_iso8859_2): New variable.
3311         (latin_iso8859_2_to_ucs): New variable.
3312         (ucs_to_latin_iso8859_3): New variable.
3313         (latin_iso8859_3_to_ucs): New variable.
3314         (ucs_to_latin_iso8859_4): New variable.
3315         (latin_iso8859_4_to_ucs): New variable.
3316         (ucs_to_latin_iso8859_9): New variable.
3317         (latin_iso8859_9_to_ucs): New variable.
3318         (ucs_to_latin_viscii_lower): New variable.
3319         (latin_viscii_lower_to_ucs): New variable.
3320         (ucs_to_latin_viscii_upper): New variable.
3321         (latin_viscii_upper_to_ucs): New variable.
3322         (ucs_to_latin_tcvn5712): New variable.
3323         (latin_tcvn5712_to_ucs): New variable.
3324         (Qlatin_viscii_lower): New variable.
3325         (Qlatin_viscii_upper): New variable.
3326         (syms_of_mule_charset): Set up new symbol
3327         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3328         (complex_vars_of_mule_charset): Set up new charset
3329         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3330         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3331         `ucs_to_<CHARSET>' tables.
3332
3333 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3334
3335         * text-coding.c: New file.
3336
3337 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3338
3339         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3340
3341         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3342         (MAKE_CHAR): Modify for `ucs-bmp'.
3343         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3344         non-MULE characters of BMP.
3345
3346 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3347
3348         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3349         to 0.6.
3350
3351 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3352
3353         * lstream.h:
3354         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3355         - Include character.h for `CHAR_ASCII_P'.
3356
3357         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3358
3359         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3360         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3361
3362         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3363         (BYTE_C0_P): Likewise.
3364         (BYTE_C1_P): Likewise.
3365         (Lstream_get_emchar_1): Likewise.
3366         (Lstream_fput_emchar): Likewise.
3367         (Lstream_funget_emchar): Likewise.
3368         (copy_internal_to_external): Likewise.
3369         (copy_external_to_internal): Likewise.
3370
3371         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3372         (BYTE_C0_P): Likewise.
3373         (BYTE_C1_P): Likewise.
3374         (Lstream_get_emchar_1): Likewise.
3375         (Lstream_fput_emchar): Likewise.
3376         (Lstream_funget_emchar): Likewise.
3377         (copy_internal_to_external): Likewise.
3378         (copy_external_to_internal): Likewise.
3379
3380         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3381         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3382
3383         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3384         (BYTE_ASCII_P): Moved to mb-1byte.h.
3385
3386 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3387
3388         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3389
3390         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3391         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3392         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3393         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3394         (VALIDATE_CHARPTR_FORWARD): Likewise.
3395         (simple_charptr_emchar): Moved to mb-multibyte.h.
3396         (simple_set_charptr_emchar): Likewise.
3397         (simple_charptr_copy_char): Likewise.
3398         (non_ascii_charptr_emchar): Likewise.
3399         (non_ascii_set_charptr_emchar): Likewise.
3400         (non_ascii_charptr_copy_char): Likewise.
3401         (charptr_emchar): Moved to mb-*byte.h.
3402         (set_charptr_emchar): Likewise.
3403         (charptr_copy_char): Likewise.
3404
3405         * mb-1byte.h, mb-multibyte.h: New files.
3406
3407 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3408
3409         * mb-utf-8.h (MULTIBYTE): New macro.
3410         (MAX_EMCHAR_LEN): Moved from buffer.h.
3411         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3412
3413         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3414
3415         * mb-lb.h, multibyte.h: New files.
3416
3417         * char-1byte.h (Charset_ID): Moved from buffer.h.
3418         (MIN_LEADING_BYTE): Likewise.
3419         (LEADING_BYTE_ASCII): Likewise.
3420         (NUM_LEADING_BYTES): Likewise.
3421         (CHARSETP): Likewise.
3422         (CHARSET_BY_LEADING_BYTE): Likewise.
3423         (XCHARSET_LEADING_BYTE): Likewise.
3424         (XCHARSET_GRAPHIC): Likewise.
3425         (XCHARSET_COLUMNS): Likewise.
3426         (XCHARSET_DIMENSION): Likewise.
3427         (CHAR_CHARSET): Likewise.
3428         (CHAR_LEADING_BYTE): Likewise.
3429         (BREAKUP_CHAR): Likewise.
3430         (Vcharset_ascii): Likewise.
3431
3432         * buffer.h: Include multibyte.h unconditionally.
3433         (VALID_CHARPTR_P): Moved to multibyte.h.
3434         (ASSERT_VALID_CHARPTR): Likewise.
3435         (REAL_INC_CHARPTR): Likewise.
3436         (REAL_INC_CHARBYTIND): Likewise.
3437         (REAL_DEC_CHARPTR): Likewise.
3438         (INC_CHARPTR): Likewise.
3439         (INC_CHARBYTIND): Likewise.
3440         (DEC_CHARPTR): Likewise.
3441         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3442         (VALIDATE_CHARPTR_FORWARD): Likewise.
3443         (charptr_n_addr): Likewise.
3444         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3445         (simple_charptr_emchar): Moved to multibyte.h.
3446         (simple_set_charptr_emchar): Likewise.
3447         (simple_charptr_copy_char): Likewise.
3448         (non_ascii_charptr_emchar): Likewise.
3449         (non_ascii_set_charptr_emchar): Likewise.
3450         (non_ascii_charptr_copy_char): Likewise.
3451         (charptr_emchar): Likewise.
3452         (set_charptr_emchar): Likewise.
3453         (charptr_copy_char): Likewise.
3454         (charptr_emchar_n): Likewise.
3455         (Charset_ID): Moved to char-1byte.h.
3456         (Vcharset_ascii): Likewise.
3457         (CHAR_CHARSET): Likewise.
3458         (CHAR_LEADING_BYTE): Likewise.
3459         (LEADING_BYTE_ASCII): Likewise.
3460         (NUM_LEADING_BYTES): Likewise.
3461         (MIN_LEADING_BYTE): Likewise.
3462         (CHARSETP): Likewise.
3463         (CHARSET_BY_LEADING_BYTE): Likewise.
3464         (XCHARSET_LEADING_BYTE): Likewise.
3465         (XCHARSET_GRAPHIC): Likewise.
3466         (XCHARSET_COLUMNS): Likewise.
3467         (XCHARSET_DIMENSION): Likewise.
3468         (BREAKUP_CHAR): Likewise.
3469
3470 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3471
3472         * character.h: Add document about interface for characters.
3473
3474         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3475         (MAKE_CHAR): Delete comment about
3476         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3477         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3478         (BREAKUP_CHAR): Modify name of arguments.
3479         (CHAR_CHARSET): Modify name of argument.
3480
3481         * buffer.h: Delete document about Emchar accessors.
3482
3483 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3484
3485         * character.h (CHAR_INTP): Moved from buffer.h
3486         (CHAR_OR_CHAR_INTP): Likewise.
3487         (XCHAR_OR_CHAR_INT): Likewise.
3488         (CHECK_CHAR_COERCE_INT): Likewise.
3489
3490         * buffer.h (CHAR_INTP): Moved to character.h
3491         (CHAR_OR_CHAR_INTP): Likewise.
3492         (XCHAR_OR_CHAR_INT): Likewise.
3493         (CHECK_CHAR_COERCE_INT): Likewise.
3494
3495 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3496
3497         * character.h:
3498         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3499         - Include char-1byte.h, char-lb.h or char-ucs.h.
3500
3501         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3502
3503         * buffer.h: Include character unconditionally.
3504         (valid_char_p): Moved to char-*.h.
3505         (non_ascii_valid_char_p): Moved to char-lb.h.
3506
3507         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3508
3509 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3510
3511         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3512         in UTF-2000 because it is not ported yet and not to use
3513         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3514         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3515         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3516
3517         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3518         (CHAR_ASCII_P): Moved from character.h.
3519
3520         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3521         (CHAR_ASCII_P): Likewise.
3522         (CHAR_FIELD1_MASK): Deleted.
3523         (CHAR_FIELD2_MASK): Deleted.
3524         (CHAR_FIELD3_MASK): Deleted.
3525         (MAX_CHAR_BASIC_LATIN): New macro.
3526         (CHAR_FIELD1): Deleted.
3527         (CHAR_FIELD2_INTERNAL): Deleted.
3528         (CHAR_FIELD3_INTERNAL): Deleted.
3529         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3530         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3531         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3532         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3533         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3534         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3535         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3536         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3537         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3538         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3539         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3540         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3541         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3542         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3543         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3544         (MIN_CHAR_COMPOSITION): Deleted.
3545         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3546         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3547
3548 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3549
3550         * buffer.h: Include mb-utf-8.h in UTF-2000.
3551
3552         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3553
3554         * mb-utf-8.h: New file.
3555
3556 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3557
3558         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3559         instead of `int'.
3560
3561         * mule-charset.h, buffer.h (Charset_ID): New type.
3562
3563 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3564
3565         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3566         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3567         instead of `MULE_CHAR_PRIVATE_OFFSET',
3568         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3569         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3570         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3571
3572         * character.h (Vcharset_japanese_jisx0212): New variable
3573         definition.
3574
3575 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3576
3577         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3578         (charset_by_attributes): Delete array about direction.
3579         (latin_a_char_to_charset): New variable in UTF-2000.
3580         (latin_a_char_to_byte1): New variable in UTF-2000.
3581         (latin_a_char_to_byte2): New variable in UTF-2000.
3582         (Qucs_bmp): New variable.
3583         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3584         `Bufbyte'.
3585         (next_allocated_2_byte_leading_byte): Likewise.
3586         (non_ascii_set_charptr_emchar): Likewise.
3587         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3588         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3589         `charset_by_attributes'.
3590         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3591         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3592         and `CHARSET_BY_LEADING_BYTE'.
3593         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3594         `utf-2000-version' to `vars_of_mule_charset'.
3595         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3596         define `leading-code-private-11' in UTF-2000; move setting of
3597         `utf-2000-version' from `syms_of_mule_charset'.
3598         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3599         UTF-2000.
3600
3601         * character.h (Charset_ID): New type.
3602         (LEADING_BYTE_UCS_BMP): New macro.
3603         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3604         (CHARSET_ID_OFFSET_94): New macro.
3605         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3606         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3607         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3608         final-byte.
3609         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3610         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3611         (CHARSET_ID_OFFSET_96): New macro.
3612         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3613         CHARSET_ID_OFFSET_96 and final-byte.
3614         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3615         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3616         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3617         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3618         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3619         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3620         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3621         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3622         (LEADING_BYTE_THAI_TIS620): Likewise.
3623         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3624         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3625         (CHARSET_ID_OFFSET_94x94): New macro.
3626         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3627         CHARSET_ID_OFFSET_94x94 and final-byte.
3628         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3629         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3630         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3631         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3632         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3633         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3634         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3635         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3636         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3637         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3638         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3639         (CHARSET_TYPE_128X128): New macro.
3640         (CHARSET_TYPE_256X256): New macro.
3641         (XCHARSET_PRIVATE_P): Delete unconditionally.
3642         (charset_by_attributes): Delete array about direction.
3643         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3644         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3645         (MIN_CHAR_94): New macro.
3646         (MAX_CHAR_94): New macro.
3647         (MIN_CHAR_96): New macro.
3648         (MAX_CHAR_96): New macro.
3649         (MIN_CHAR_94x94): New macro.
3650         (MAX_CHAR_94x94): New macro.
3651         (MIN_CHAR_96x96): New macro.
3652         (MAX_CHAR_96x96): New macro.
3653         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3654         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3655         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3656         - 32)'.
3657         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3658         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3659         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3660         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3661         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3662         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3663         `XCHARSET_LEADING_BYTE' to make code-point.
3664         (latin_a_char_to_charset): New variable.
3665         (latin_a_char_to_byte1): New variable.
3666         (latin_a_char_to_byte2): New variable.
3667         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3668         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3669         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3670
3671         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3672         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3673         (find_charsets_in_emchar_string): Likewise.
3674         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3675
3676         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3677         `int'.
3678         (decode_coding_iso2022): Likewise.
3679
3680         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3681         of `unsigned char'.
3682
3683         * redisplay.c (redisplay_text_width_emchar_string): Use
3684         `Charset_ID' instead of `unsigned char'.
3685         (redisplay_frame_text_width_string): Likewise.
3686
3687         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3688         `unsigned char'.
3689
3690         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3691         instead of `unsigned char'.
3692         (face_cachel_charset_font_metric_info): Likewise.
3693
3694         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3695         (get_non_ascii_char_table_value): Likewise.
3696         (get_char_table): Likewise.
3697         (put_char_table): Likewise.
3698         (map_over_other_charset): Likewise.
3699         (map_char_table): Likewise.
3700
3701         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3702         instead of `unsigned char'.
3703
3704 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3705
3706         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3707         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3708
3709         * mule-charset.c (leading_code_private_11): Don't define in
3710         UTF-2000.
3711
3712         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3713         in UTF-2000 because it is not ported yet and not to use
3714         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3715
3716 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3717
3718         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3719
3720 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3721
3722         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3723         in UTF-2000.
3724
3725         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3726         of unsigned char to store leading-byte.
3727
3728         * chartab.c (get_non_ascii_char_table_value): Don't use
3729         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3730
3731         * file-coding.c (encode_coding_big5): Delete bogus implementation
3732         in UTF2000.
3733
3734         * character.h (LEADING_BYTE_*): Delete definition for
3735         non-UTF-2000.
3736         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3737         (LEADING_BYTE_PREFIX_P): Deleted.
3738         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3739         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3740         (BUFBYTE_LEADING_BYTE_P): Deleted.
3741         (CHARSET_PRIVATE_P): Deleted unconditionally.
3742         (rep_bytes_by_first_byte): Deleted unconditionally.
3743         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3744         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3745         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3746         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3747         (CHAR_FIELD2): Deleted.
3748         (CHAR_FIELD3): Deleted.
3749         (MAKE_CHAR): Delete definition for non-UTF-2000.
3750         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3751         (breakup_char_1): New implementation.
3752         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3753         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3754
3755 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3756
3757         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3758         condition.
3759
3760 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3761
3762         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3763         (CHARSET_PRIVATE_P): Likewise.
3764         (XCHARSET_PRIVATE_P): Likewise.
3765         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3766
3767         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3768         UTF2000.
3769         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3770
3771 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3772
3773         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3774         (NUM_LEADING_BYTES): Changed from 128 to 256.
3775         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3776         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3777         UTF2000.
3778         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3779
3780         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3781         UTF2000.
3782         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3783         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3784         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3785         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3786         (Qchinese_cns11643_3): New variable in UTF2000.
3787         (Qchinese_cns11643_4): New variable in UTF2000.
3788         (Qchinese_cns11643_5): New variable in UTF2000.
3789         (Qchinese_cns11643_6): New variable in UTF2000.
3790         (Qchinese_cns11643_7): New variable in UTF2000.
3791         (syms_of_mule_charset): Define `chinese-cns11643-3',
3792         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3793         and `chinese-cns11643-7' in UTF2000.
3794         (vars_of_mule_charset): Initialize
3795         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3796         + 1 in UTF2000.
3797         (complex_vars_of_mule_charset): Setup charset
3798         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3799         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3800
3801 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3802
3803         * mule-charset.c: Move setting for `leading-code-private-11' from
3804         `syms_of_mule_charset' to `vars_of_mule_charset'.
3805
3806 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3807
3808         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3809         and `NUM_LEADING_BYTES' in assert.
3810
3811 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3812
3813         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3814         instead of 128.
3815         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3816         `NUM_LEADING_BYTES' instead of 128.
3817
3818 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3819
3820         * mule-charset.h (charset_by_leading_byte): Use
3821         `NUM_LEADING_BYTES' instead of 128.
3822         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3823
3824         * mule-charset.c (charset_by_leading_byte): Use
3825         `NUM_LEADING_BYTES' instead of 128.
3826         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3827
3828         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3829         128.
3830
3831 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3832
3833         * mule-charset.c (syms_of_mule_charset): Update to
3834         0.4 (Shin-Imamiya).
3835
3836 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3837
3838         * file-coding.c (encode_coding_sjis): New implementation for
3839         UTF2000.  (decode_coding_sjis): Ditto.
3840
3841 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3842
3843         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3844         Don't define in UTF2000.
3845
3846         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3847         defined.
3848
3849         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3850         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3851         MULE.
3852
3853 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3854
3855         * config.h.in (CHAR_IS_UCS4): New macro.
3856
3857         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3858         conventional MULE representation.
3859         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3860
3861         * mule-charset.h: Reverted to original.
3862
3863         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3864         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3865         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3866
3867         * character.h: New file.
3868
3869         * file-coding.c (Fmake_coding_system): Set 1 to
3870         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3871         defined.
3872         (encode_coding_no_conversion): New implementation for UTF2000.
3873
3874         * file-coding.h (struct Lisp_Coding_System): Add new member
3875         `fixed.size'.
3876
3877 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3878
3879         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3880         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3881         (encode_coding_iso2022): New implementation for UTF2000.
3882
3883 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3884
3885         * mule-canna.c (c2mu): New implementation for UTF2000.
3886         (m2c): Likewise.
3887
3888 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3889
3890         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3891
3892 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3893
3894         * file-coding.c (reset_encoding_stream): Set 0 to
3895         `str->iso2022.current_char_boundary' in UTF2000.
3896         (encode_utf8): Don't define in UTF2000.
3897         (encode_coding_utf8): New implementation for UTF-8 representation
3898         of UTF2000.
3899         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3900
3901 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3902
3903         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3904
3905         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3906         UTF2000.
3907         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3908
3909         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3910
3911         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3912         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3913         as UTF-8 in UTF2000.
3914         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3915         (non_ascii_valid_char_p): Don't define in UTF2000.
3916         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3917         (Lstream_get_emchar_1): Likewise.
3918         (utf-2000-version): New variable in UTF2000.
3919
3920         * lread.c (read_escape): Add new reader `u'.
3921
3922         * insdel.c (three_to_one_table): Don't define in UTF2000.
3923         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3924         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3925         UTF2000.
3926         (bytind_to_bufpos_func): Likewise.
3927         (buffer_mule_signal_inserted_region): Likewise.
3928         (vars_of_insdel): Don't initialize `three_to_one_table'.
3929         (init_buffer_text): Use `buf->text->mule_size' instead of
3930         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3931         UTF2000.
3932
3933         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3934         UTF-8 representation in UTF2000.
3935         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3936         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3937         (decode_coding_iso2022): Don't define local variable `lb' in
3938         UTF2000; don't use LEADING_BYTE in UTF2000; use
3939         `DECODE_ADD_UCS_CHAR' in UTF2000.
3940         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3941
3942         * config.h.in (UTF2000): New macro.
3943
3944         * buffer.h (struct buffer_text): Add new member `mule_size' and
3945         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3946         (valid_char_p): Return always 1 in UTF2000.
3947         (MAX_EMCHAR_LEN): 6 in UTF2000.
3948         (three_to_one_table): Don't define in UTF2000.
3949         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3950         UTF2000.
3951         (real_bytind_to_bufpos): Likewise.
3952
3953         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3954
3955 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3956
3957         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3958         representation change.
3959         (Vutf_2000_version): New variable.
3960         (leading_code_private_11): New variable.
3961         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3962         `leading-code-private-11'.
3963
3964         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3965         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3966         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3967         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3968         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3969         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3970         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3971         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3972         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3973         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3974         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3975         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3976         (MIN_CHAR_GREEK): New macro.
3977         (MAX_CHAR_GREEK): New macro.
3978         (MIN_CHAR_CYRILLIC): New macro.
3979         (MAX_CHAR_CYRILLIC): New macro.
3980         (MIN_CHAR_HEBREW): New macro.
3981         (MAX_CHAR_HEBREW): New macro.
3982         (MIN_CHAR_THAI): New macro.
3983         (MAX_CHAR_THAI): New macro.
3984         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3985         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3986         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3987         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3988         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3989         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3990         (CHAR_FIELD2): New inline function.
3991         (CHAR_FIELD3): New inline function.
3992         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3993         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3994         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3995         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3996         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3997         (MIN_CHAR_COMPOSITION): Likewise.
3998         (CHAR_LEADING_BYTE): Modified for character representation change.
3999         (MAKE_CHAR): Likewise.
4000
4001         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4002         (Vcharset_greek_iso8859_7): Likewise.
4003         (Vcharset_cyrillic_iso8859_5): Likewise.
4004         (Vcharset_hebrew_iso8859_8): Likewise.
4005         (Vcharset_thai_tis620): Likewise.
4006         (Vcharset_katakana_jisx0201): Likewise.
4007
4008 2001-02-08  Martin Buchholz <martin@xemacs.org>
4009
4010         * XEmacs 21.2.44 "Thalia" is released.
4011
4012 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4013
4014         Fixes crashes in kill-emacs on some systems.
4015         * process-unix.c (unix_kill_child_process):
4016         It's OK for kill() to fail with ESRCH.
4017
4018 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4019
4020         Contortions to make .gdbinit tricks work on most systems.
4021         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4022         * alloc.c (dbg_valmask): Make non-const.
4023         * alloc.c (dbg_typemask): Make non-const.
4024         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4025         * alloc.c (dbg_valbits): Make non-const.
4026         * alloc.c (dbg_gctypebits): Make non-const.
4027         * .gdbinit (decode_object): Make it work with AIX cc.
4028
4029 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4030
4031         * elhash.c (make_general_lisp_hash_table):
4032         Use simpler and more efficient calloc to clear entries.
4033
4034 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4035
4036         * window.c (window_scroll): Work around an AIX C compiler bug.
4037         Fixes 'scroll-up' does nothing problem with xlC.
4038
4039 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4040
4041         * .gdbinit: Remove obsolete comment.
4042
4043 2001-01-31  Mike Alexander  <mta@arbortext.com>
4044
4045         * select.c (Fown_selection_internal): Set owned_p for device
4046         method correctly.
4047
4048 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4049
4050         Port to g++ 2.97.
4051         "not" cannot be used as a macro name as it is an operator in C++
4052         * config.h.in: Stop #defining `not'.
4053         * chartab.c (check_category_char): not ==> not_p
4054         * chartab.h: Likewise.
4055         * regex.c (re_match_2_internal): Likewise.
4056
4057 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4058
4059         * lisp-disunion.h: Fix up comments.
4060
4061 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4062
4063         * keymap.c (define_key_check_and_coerce_keysym):
4064         (syms_of_keymap):
4065         Support mouse-6 and mouse-7 bindings in the obvious way.
4066
4067 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4068
4069         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4070
4071 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4072
4073         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4074         Previous patch missed DEFVAR_INT_MAGIC.
4075         Make sure future DEFVAR_foo use correct types.
4076         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4077         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4078         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4079         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4080         * (DEFVAR_INT): Likewise.
4081         * redisplay.c (vertical_clip): Should be of type Fixnum.
4082         * redisplay.c (horizontal_clip): Likewise.
4083         * lisp.h (dump_add_opaque_int): New.
4084         (dump_add_opaque_fixnum): New.
4085
4086 2001-01-29  Andy Piper  <andy@xemacs.org>
4087
4088         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4089         since they can be eval'ed
4090
4091 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4092
4093         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4094         Oops, XEmacs redefines `class'.  Use `typename' instead.
4095
4096 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4097
4098         * dumper.c: Fix C++ compile errors.
4099
4100 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4101
4102         * tparam.c: Use correct prototypes.
4103
4104 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4105
4106         * sysproc.h: #include util.h for NetBSD's openpty.
4107
4108 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4109
4110         More 64-bit correctness.
4111         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4112         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4113         Fix up comments.
4114         This finally finishes the 64-bit SGI port.
4115         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4116         * symbols.c: Fix up comments and type casts.
4117         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4118         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4119         * symeval.h (Fixnum): New type.
4120         * symeval.h (symbol_value_type): Fix up comment.
4121
4122         * commands.h:
4123         * nt.c:
4124         * emacs.c:
4125         * data.c:
4126         * redisplay.c:
4127         * abbrev.c:
4128         * dired-msw.c:
4129         * event-Xt.c:
4130         * eldap.c:
4131         * window.c:
4132         * sound.c:
4133         * event-stream.c:
4134         * eval.c:
4135         * buffer.c:
4136         * mule-canna.c: A million DEFVAR_INTs here...
4137         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4138         * extents.c:
4139         * cmdloop.c:
4140         * lisp.h:
4141         * select-x.c:
4142         * console-x.h:
4143         * event-msw.c:
4144         * mule-wnnfns.c:
4145         * hpplay.c:
4146         * ralloc.c:
4147         * alloc.c:
4148         * keymap.c:
4149         * profile.c:
4150         s/int/Fixnum/g in DEFVAR_INT declarations.
4151
4152 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4153
4154         Port pdump to SGI alignment-sensitive environment.
4155         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4156         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4157         properly aligned.
4158         Define and use aligned reading and writing macros.
4159         Use buffered stdio instead of posix i/o for faster dumping.
4160         Eliminate kludgy 256 byte space for header.
4161         Read and write from dump file using structs for alignment safety.
4162         * dumper.c (pdump_align_stream): New.
4163         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4164         * dumper.c (PDUMP_READ_ALIGNED): New.
4165         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4166         * dumper.c (pdump_static_Lisp_Object): New struct.
4167         * dumper.c (pdump_static_pointer): New struct.
4168         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4169         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4170         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4171         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4172
4173         * dumper.c (pdump_backtrace):
4174         * dumper.c (pdump_get_indirect_count):
4175         * dumper.c (pdump_register_object):
4176         * dumper.c (pdump_register_struct):
4177         * dumper.c (pdump_reloc_one):
4178         * dumper.c (pdump_scan_by_alignment):
4179         * dumper.c (pdump_dump_from_root_struct_ptrs):
4180         * dumper.c (pdump_dump_opaques):
4181         * dumper.c (pdump_dump_rtables):
4182         * dumper.c (pdump_dump_from_root_objects):
4183         * dumper.c (pdump):
4184         * dumper.c (pdump_load_finish):
4185         Use aligned reading and writing.
4186
4187         * dumper.c (pdump_free): Make static.
4188         * dumper.c (pdump_hFile): Likewise.
4189         * dumper.c (pdump_hMap): Likewise.
4190
4191 2001-01-26  Martin Buchholz <martin@xemacs.org>
4192
4193         * XEmacs 21.2.43 "Terspichore" is released.
4194
4195 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4196
4197         Type fiddling for window_config.saved_windows_count
4198         * window.c (struct window_config): 
4199         Make saved_windows_count member unsigned.
4200         * window.c (sizeof_window_config_for_n_windows): 
4201         Make parameter unsigned.
4202         * window.c (mark_window_config):
4203         * window.c (window_config_equal):
4204         * window.c (free_window_configuration):
4205         * window.c (Fset_window_configuration):
4206         * window.c (count_windows):
4207         * window.c (Fcurrent_window_configuration):
4208         * window.c (reinit_vars_of_window):
4209         Update all callers and users.
4210
4211 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4212
4213         Alignment correctness for flexible arrays.
4214         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4215         Make alignment-correct. Add interesting comments.
4216         * alloc.c (size_vector):
4217         * alloc.c (make_vector_internal):
4218         * alloc.c (make_bit_vector_internal):
4219         * alloc.c (sweep_bit_vectors_1):
4220         * fns.c (size_bit_vector):
4221         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4222         * window.c (sizeof_window_config_for_n_windows): 
4223         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4224
4225 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4226
4227         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4228
4229 2001-01-23  Andy Piper  <andy@xemacs.org>
4230
4231         * select.c (Fown_selection_internal): pass owned_p
4232
4233         * select-msw.c (mswindows_own_selection): New Signature.
4234
4235         * console.h (struct console_methods): add owned_p to
4236         _own_selection.
4237
4238         * select-x.c (x_own_selection): pass owned_p
4239         (hack_motif_clipboard_selection): use owned_p
4240         (vars_of_select_x): new variable -
4241         x_selection_strict_motif_ownership.
4242
4243 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4244
4245         * specifier.h (specifier_data_offset): Remove pointless parens.
4246         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4247
4248 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4249
4250         Make Lisp_Object sizeof methods be alignment-correct.
4251         pdump must restore objects to the same alignment as the C compiler
4252         assumes.  It really matters on SGIs.
4253         * lstream.c (aligned_sizeof_lstream): New.
4254         (sizeof_lstream): Use aligned_sizeof_lstream.
4255         (Lstream_new): Likewise.
4256         * opaque.c (aligned_sizeof_opaque): New.
4257         (sizeof_opaque): Use aligned_sizeof_opaque.
4258         (make_opaque): Likewise.
4259         * specifier.c (aligned_sizeof_specifier): New.
4260         (sizeof_specifier): Use aligned_sizeof_specifier.
4261         (make_specifier_internal): Likewise.
4262
4263 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4264
4265         * lstream.h (struct lstream): Use max_align_t for trailing data.
4266         * specifier.h (struct Lisp_Specifier): Likewise.
4267
4268 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4269
4270         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4271         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4272         (CCL_SUSPEND): Likewise.
4273         (CCL_INVALID_CMD): Likewise.
4274         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4275         (ccl_driver): Likewise.
4276         (CCL_WRITE_CHAR): Macro hygiene.
4277         (CCL_WRITE_STRING): Macro hygiene.
4278
4279 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4280
4281         Port "portable" dumper to SunOS 4 and HP-UX.
4282         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4283         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4284         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4285
4286 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4287
4288         * lisp.h (ALIGNOF): A better definition for C++.
4289
4290 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4291
4292         Macro hygiene.
4293         Fix printf warnings: int format, long int arg.
4294         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4295         (PUSH_FAILURE_POINT): Use correct printf formats.
4296         (POP_FAILURE_POINT): Use correct printf formats.  
4297         Use do {...} while (0)
4298
4299 2001-01-20  Martin Buchholz <martin@xemacs.org>
4300
4301         * XEmacs 21.2.42 "Poseidon" is released.
4302
4303 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4304
4305         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4306
4307 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4308
4309         De-kludgify FIXED_TYPE free list frobbing.
4310         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4311         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4312         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4313         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4314         * alloc.c (LRECORD_FREE_P): New.
4315         * alloc.c (MARK_LRECORD_AS_FREE): New.
4316         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4317         * alloc.c (STRUCT_FREE_P): Deleted.
4318         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4319         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4320         * alloc.c (STRING_CHARS_FREE_P): New.
4321         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4322         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4323         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4324         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4325         * alloc.c (resize_string): Use new definitions.
4326         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4327         * alloc.c (verify_string_chars_integrity): Use new definitions.
4328         * alloc.c (compact_string_chars): Use new definitions.
4329         * alloc.c: Update monster comments.
4330         * lrecord.h (lrecord_type): Add some new lrecord types for
4331         alloc.c's use.
4332
4333 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4334
4335         Improve alignment hackery.
4336         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4337         (max_align_t): Moved from opaque.h - general purpose.
4338         (ALIGN_PTR): Use size_t, not long.
4339         * opaque.h (max_align_t): Move to lisp.h.
4340
4341 2001-01-18  Norbert Koch  <nk@LF.net>
4342
4343         * gui.h: Fix and add prototypes to fix build problems.
4344
4345 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4346
4347         temacs is going away, so `dump-temacs' is now a bad name.
4348         * .dbxrc (dump-temacs): Rename to `dmp'.
4349         * .gdbinit (dump-temacs): Rename to `dmp'.
4350
4351 2001-01-17  Andy Piper  <andy@xemacs.org>
4352
4353         * glyphs.c (print_image_instance): comment to make martin happy.
4354
4355         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4356         change.
4357
4358         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4359         activation.
4360         (mswindows_tab_control_redisplay): warning suppression.
4361
4362         * glyphs-widget.c (widget_update): re-write to cope with updated
4363         items.
4364         (widget_instantiate): use new gui_item functions.
4365         (tab_control_update): deleted.
4366         (progress_gauge_update): deleted.
4367         (image_instantiator_progress_guage): take out update reference.
4368         (image_instantiator_tree_view): ditto.
4369         (image_instantiator_tab_control): ditto.
4370
4371         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4372         Right the new way.
4373         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4374         return whether anything was changed.
4375         (update_gui_item_keywords): as it sounds.
4376
4377         * gui.h: declare widget_gui_parse_item_keywords.
4378
4379         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4380         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4381
4382 2001-01-17  Martin Buchholz <martin@xemacs.org>
4383
4384         * XEmacs 21.2.41 "Polyhymnia" is released.
4385
4386 2001-01-16  Didier Verna  <didier@xemacs.org>
4387
4388         * glyphs.c (image_instantiate): don't use fallbacks when
4389         instantiating a face's background pixmap by inheritance.
4390
4391 2001-01-14  Mike Sperber <mike@xemacs.org>
4392
4393         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4394         Conditionalize accordingly.
4395
4396 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4397
4398         * dumper.c (pdump_file_get): Fix a compiler warning.
4399
4400 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4401
4402         Make Purify happy when pdumping.
4403         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4404         iniitalizing all bits of new lisp object memory.
4405         * symbols.c (Fmake_local_variable): Likewise.
4406         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4407         * symbols.c (Fdefvaralias): Likewise.
4408         * mule-charset.c (vars_of_mule_charset): Likewise.
4409
4410 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4411         Add the `-nd' flag when running pre-dump operations under the debugger.
4412         * .dbxrc (run-temacs): Add `-nd'.
4413         * .dbxrc (update-elc): Likewise.
4414         * .dbxrc (dump-temacs): Likewise.
4415         * .gdbinit (run-temacs): Likewise.
4416         * .gdbinit (check-temacs): Likewise.
4417         * .gdbinit (update-elc): Likewise.
4418         * .gdbinit (dump-temacs): Likewise.
4419
4420 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4421
4422         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4423         export OBJECT_MODE=64
4424         configure --pdump --use-union-type=no
4425         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4426         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4427
4428         * miscplay.c (sndcnv8U_2mono):
4429         Avoid two uses of `++' in the same expression.
4430         Suppresses a GCC warning.
4431
4432 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4433
4434         Make sure future compilers don't miscompile alloc.c.
4435         * alloc.c:
4436         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4437         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4438
4439 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4440
4441         * dumper.c: A little post-pdump-rename comment fixup.
4442
4443 2001-01-09  Jerry James  <james@eecs.ku.edu>
4444
4445         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4446
4447 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4448
4449         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4450         script:
4451         #!/bin/sh
4452         replace_symbol () {
4453           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4454         }
4455
4456         replace_symbol pdump_wire_lists pdump_weak_object_chains
4457         replace_symbol pdump_wire_list dump_add_weak_object_chain
4458
4459         replace_symbol pdump_wires pdump_root_objects
4460         replace_symbol pdump_wire dump_add_root_object
4461
4462         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4463         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4464
4465         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4466         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4467         replace_symbol dumpstructinfo pdump_root_struct_ptr
4468         replace_symbol dumpstruct dump_add_root_struct_ptr
4469
4470         replace_symbol dumpopaque dump_add_opaque
4471         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4472         replace_symbol dumpopaqueinfos pdump_opaques
4473         replace_symbol dumpopaqueinfo pdump_opaque
4474
4475         replace_symbol nb_structdump nb_root_struct_ptrs
4476         replace_symbol nb_opaquedump nb_opaques
4477
4478         replace_symbol align_table pdump_align_table
4479         replace_symbol dump_header pdump_header
4480
4481         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4482         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4483
4484
4485 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4486
4487         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4488         optimizing bytecount_to_charcount().
4489
4490 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4491
4492         * config.h.in:
4493         (HAVE_DLFCN_H): Removed.
4494         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4495
4496 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4497
4498         Portable dumper maintainability improvements.
4499         * alloc.c (staticpro):
4500         * alloc.c (staticpro_nodump):
4501         * alloc.c (garbage_collect_1):
4502         * alloc.c (reinit_alloc_once_early):
4503         * alloc.c (init_alloc_once_early):
4504         * alloc.c: Move dumper functions to alloc.c.
4505         * dumper.c (pdump_backtrace):
4506         * dumper.c (pdump_dump_structs):
4507         * dumper.c (pdump_dump_opaques):
4508         * dumper.c (pdump_dump_rtables):
4509         * dumper.c (pdump_dump_wired):
4510         * dumper.c (pdump):
4511         * dumper.c (pdump_load_check):
4512         * dumper.c (pdump_load_finish):
4513         * dumper.c (pdump_file_unmap):
4514         * dumper.c (pdump_file_get):
4515         * dumper.c (pdump_resource_free):
4516         * dumper.c (pdump_resource_get):
4517         * dumper.c (pdump_file_free):
4518         * dumper.c (pdump_file_try):
4519         * dumper.c (pdump_load):
4520         Remove fixed size limits on staticpro(), staticpro_nodump(),
4521         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4522         Remove custom code for dumping lrecord_implementations_table - use
4523         dumpopaque instead.
4524         Remove (most of the) custom code for dumping staticpros - dump it
4525         like any other dynarr.
4526
4527         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4528         * dumper.c: Moved functions from alloc.c.
4529         * alloc.c (dumpstruct): Moved to dumper.c.
4530         * alloc.c (dumpopaque): Likewise.
4531         * alloc.c (pdump_wire): Likewise.
4532         * alloc.c (pdump_wire_list): Likewise.
4533
4534         * lisp.h (Dynarr_sizeof): New.
4535         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4536         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4537         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4538
4539         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4540         * lisp.h (dumpopaque): ditto.
4541         * lisp.h (pdump_wire): ditto.
4542         * lisp.h (pdump_wire_list): ditto.
4543
4544 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4545
4546         * make-src-depend (PrintPatternDeps):
4547         Use `sort' to make output independent of perl version.
4548
4549 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4550
4551         Port to Netbsd 1.5.
4552         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4553         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4554
4555 2001-01-03  Didier Verna  <didier@xemacs.org>
4556
4557         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4558         that `focus_frame' is alive before thinking of calling
4559         `redisplay_redraw_cursor' on it.
4560
4561 2001-01-08  Martin Buchholz <martin@xemacs.org>
4562
4563         * XEmacs 21.2.40 is released.
4564
4565 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4566
4567         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4568
4569 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4570
4571         * alloc.c (dbg_valmask): Make const.
4572         * alloc.c (dbg_typemask): Make const.
4573         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4574         * alloc.c (dbg_valbits): Make const.
4575         * alloc.c (dbg_gctypebits): Make const.
4576
4577 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4578
4579         * redisplay-x.c (x_bevel_area):
4580         redisplay.h (struct rune):
4581         Typo fixes in comments.
4582
4583 2001-01-05  Andy Piper  <andy@xemacs.org>
4584
4585         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4586         adjustment.
4587
4588         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4589
4590 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4591
4592         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4593
4594         * mule-ccl.c (stack_idx_of_map_multiple):
4595         Non const global data must not be initialized!
4596         Found by MIYASHITA Hisashi.
4597
4598 2001-01-02  Andy Piper  <andy@xemacs.org>
4599
4600         * frame.c (change_frame_size): make sure frame size is always
4601         marked as changed.
4602
4603         * glyphs.c (image_instance_layout): minor code reuse.
4604
4605         * window.c (Fcurrent_window_configuration): revert previous
4606         change.
4607
4608 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4609
4610         * glyphs.h:
4611         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4612
4613 2000-12-31  Andy Piper  <andy@xemacs.org>
4614
4615         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4616         when widget gets unmapped.
4617
4618         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4619         function. Make sure widgets losing focus don't just drop it.
4620         (handle_focus_event_1): record the widget with focus.
4621
4622 2000-12-31  Andy Piper  <andy@xemacs.org>
4623
4624         * window.c (allocate_window): use
4625         make_image_instance_cache_hash_table.
4626         (make_dummy_parent): ditto.
4627         (Fset_window_configuration): ditto.
4628
4629         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4630
4631         * glyphs.c (process_image_string_instantiator): use
4632         INSTANTIATOR_TYPE.
4633         (get_image_instantiator_governing_domain): ditto.
4634         (normalize_image_instantiator): ditto.
4635         (instantiate_image_instantiator): ditto.
4636         (make_image_instance_1): ditto.
4637         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4638         (instantiator_eq_equal): new function for use with instance hash
4639         tables.
4640         (instantiator_eq_hash): ditto.
4641         (make_image_instance_cache_hash_table): create a suitable hash
4642         table for storing image instances.
4643
4644         * elhash.h (hash_table_weakness): new internal weakness type
4645         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4646         declare new functions.
4647
4648         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4649         another weakness type for glyphs.
4650         (make_standard_lisp_hash_table): new function split out from
4651         make_general_lisp_hash_table.
4652         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4653         (hash_table_instantiate): ditto.
4654         (Fmake_hash_table): ditto.
4655
4656 2000-12-31  Martin Buchholz <martin@xemacs.org>
4657
4658         * XEmacs 21.2.39 is released.
4659
4660 2000-12-29  Andy Piper  <andy@xemacs.org>
4661
4662         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4663
4664         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4665         the frame has changed so that we pick up geometry changes such as
4666         menubar visibility.
4667
4668 2000-12-28  Andy Piper  <andy@xemacs.org>
4669
4670         * lastfile.c (my_ebss): make a char array so we can pad the
4671         bss. Fixes cygwin unexec.
4672
4673         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4674
4675 2000-12-26  Andy Piper  <andy@xemacs.org>
4676
4677         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4678         comments and try and be more precise about a non-/SIGIO world.
4679         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4680         SIGIO.
4681
4682         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4683         we don't normalize to zero width or height.
4684
4685 2000-12-24  Andy Piper  <andy@xemacs.org>
4686
4687         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4688
4689 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4690
4691         * s/sco5.h: SCO 5 has pty support.
4692
4693 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4694
4695         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4696         input-method-xlib.c contains whole contents of input-method-xfs.c,
4697         so we can use input-method-xlib.c's code for USE_XFONTSET
4698         using #ifdefs.
4699         * input-method-xfs.c: removed.
4700
4701 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4702
4703         * file-coding.h (enum coding_category_type): reorder enumerators to
4704         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4705         (now one greater than largest real coding_category_type enumerator).
4706         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4707         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4708         Fcoding_category_list, Fset_coding_priority_list,
4709         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4710         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4711
4712 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4713
4714         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4715         * redisplay-output.c (redisplay_output_window): Clear top of window
4716         when face is changed.
4717         * redisplay-x.c (x_redraw_exposed_window): Call
4718         redisplay_clear_top_of_window.
4719         * redisplay.h: Publish redisplay_clear_top_of_window.
4720
4721 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4722
4723         * buffer.c (Fkill_buffer): Map over all devices.
4724         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4725         (list_windows): New function.
4726         (list_all_windows): Ditto.
4727         (Freplace_buffer_in_windows): Use them.
4728
4729 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4730
4731         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4732         (Fopen_database): Use `db_create' instead of `db_open'.
4733         (syms_of_database): Initialize Qqueue.
4734
4735 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4736
4737         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4738         buffer_local_face_property.
4739         * buffer.h (struct buffer): New member buffer_local_face_property.
4740         * window.c (Fset_window_buffer):  Mark window's face as changed
4741         when buffer has buffer local face.
4742         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4743         * objects.c (color_after_change): Set buffer_local_face_property
4744         when locale of face specifier is buffer.
4745         * objects.c (font_after_change): Ditto.
4746         * objects.c (face_boolean_after_change): Ditto.
4747         * glyphs.c (image_after_change): Ditto.
4748
4749 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4750
4751         * nt.c (mswindows_fstat): Report file permissions, volume serial
4752         number, etc. Code adapted from FSF Emacs 20.7.
4753
4754 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4755
4756         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4757         of stat when we don't have symbolic links, to make sure
4758         mswindows_stat is called on mswindows.
4759
4760 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4761
4762         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4763
4764 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4765
4766         * doprnt.c (emacs_doprnt_1): More printing fixes.
4767         Make printing of numbers compatible with libc and FSF Emacs.
4768         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4769         Use the system printf to do most of the hard work of formatting,
4770         instead of doprnt_1().
4771         Calculate memory to allocate for format string.
4772         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4773         (doprnt_1): Cleaner code and documentation.
4774
4775 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4776
4777         * Makefile.in.in: Use the loop variable to install headers.
4778
4779 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4780
4781         * window.c (Fsplit_window): Don't invalidate face cache.
4782
4783 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4784
4785         * minibuf.c (Fall_completions): Undo the previous change
4786         which removed checking elements start with space.
4787
4788 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4789
4790         * mule-canna.c: Didier suppression.
4791
4792 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4793
4794         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4795         (warning suppression).  Add English comment translations.
4796
4797 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4798
4799         * unexelfsgi.c (unexec): Better test for mmap failure.
4800
4801 2000-12-05  Martin Buchholz <martin@xemacs.org>
4802
4803         * XEmacs 21.2.38 is released.
4804
4805 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4806
4807         * redisplay.c (bar-cursor): Make a user variable.
4808
4809         * symsinit.h: Add init_postgresql_from_environment.
4810
4811 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4812
4813         * regex.c: Convert to clean C.
4814
4815 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4816
4817         * realpath.c:
4818         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4819         initialization.
4820         (sys_readlink): renamed to system_readlink to avoid conflict with
4821         the other sys_readlink.
4822
4823 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4824
4825         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4826
4827 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4828
4829         * postgresql.c (init_postgresql_from_environment): new function.
4830         (vars_of_postgresql): Move code initializing Lisp variables out and
4831         into init_postgresql_from_environment.
4832         emacs.c (main_1): Call init_postgresql_from_environment if and only
4833         if running a dumped XEmacs.
4834
4835 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4836
4837         * buffer.c: Make find-file-compare-truenames default to true on
4838         windows.
4839
4840         * realpath.c (win32_abs_start):
4841         (cygwin_readlink):
4842         (win32_readlink): New functions.
4843         (xrealpath): Return really real filenames on windows.
4844
4845         * fileio.c (Ffile_truename): Make file-truename work on windows.
4846
4847 2000-11-29  Didier Verna  <didier@xemacs.org>
4848
4849         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4850         * faces.c (update_face_cachel_data): use it.
4851         * faces.c (add_face_cachel): use it. Complete background pixmap
4852         frobbing in face cache if `update_face_cachel_data' has not done so.
4853
4854 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4855
4856         * search.c (string_match_1): Don't set last_thing_searched
4857         when search failed.
4858
4859 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4860
4861         * buffer.c: Include casetab.h
4862         (common_init_complex_vars_of_buffer): Use new case-table object.
4863         * buffer.h: Include casetab.h
4864         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4865         (DOWNCASE_TABLE_OF): Ditto.
4866         * bufslots.h: Remove char-tables and add case-table.
4867         * casetab.c: Include casetab.h
4868         (CASE_TABLE_P): Removed.
4869         (mark_case_table): New function.
4870         (allocate_case_table): New function.
4871         (Fcase_table_p): Use new case-table.
4872         (case_table_char): New function.
4873         (Fget_case_table): Ditto.
4874         (Fput_case_table): Ditto.
4875         (Fput_case_table_pair): Ditto.
4876         (Fcopy_case_table): Ditto.
4877         (Fcurrent_case_table): Return case-table.
4878         (Fstandard_case_table): Return case-table.
4879         (Fset_case_table): Fix doc-string.
4880         (set_case_table): Use case-table
4881         (syms_of_casetab): DEFSUBR new functions.
4882         (complex_vars_of_casetab): Set up standard case-table.
4883         * casetab.h: New file.
4884         * editfns.c: Include casetab.h
4885         (Fcompare_buffer_substrings): Use case-table.
4886         * inline.c: Include casetab.h
4887         * lisp.h: Remove bogus extern.
4888         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4889         * search.c: Include casetab.h
4890         (TRANSLATE_ASCII): Removed.
4891         (TRANSLATE): Unconditionally translate character.
4892         (looking_at_1): Use case-table.
4893         (string_match_1): Ditto.
4894         (fast_string_match): Ditto.
4895         (search_command): Ditto.
4896         (search_buffer): Separate boyer_moore.  Check whether
4897         boyer_moore is possible.
4898         (simple_search): New function.
4899         (boyer_moore): Separated from search_buffer. Translate char.
4900
4901 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4902
4903         * regex.c (RE_TR_ASCII): Removed.
4904         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4905         (PATFETCH): Call PATFETCH_RAW.
4906         (PATFETCH_RAW): Fetch Emchar.
4907         (PATUNFETCH): Decrement charptr.
4908         (GET_BUFFER_SPACE): Rename b to buf_end.
4909         (BUF_PUSH): Ditto.
4910         (BUF_PUSH_2): Ditto.
4911         (BUF_PUSH_3): Ditto.
4912         (EXTEND_BUFFER): Ditto.
4913         (SET_LIST_BIT): Ditto.
4914         (regex_compile): Ditto.  Translate non ASCII char.
4915         (compile_range): Ditto.
4916         (re_search_2): Ditto.
4917         (re_match_2_internal): Compare Emchar.
4918         (bcmp_translate): Ditto.
4919
4920 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4921
4922         * lisp.h (basic char/int typedefs):  comment improvement.
4923
4924 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4925
4926         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4927         unstomp inhibit_site_lisp.  Improve comments.
4928
4929 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4930
4931         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4932
4933 2000-11-28  Andy Piper  <andy@xemacs.org>
4934
4935         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4936         clipped display for windows in the gutter also.
4937         (redisplay_display_boxes_in_window_p): change semantics of return
4938         codes to be more intuitive.
4939
4940         * gutter.h: declare display_boxes_in_gutter_p.
4941
4942         * gutter.c (display_boxes_in_gutter_p): new function for
4943         redisplay.
4944
4945 2000-11-22  Andy Piper  <andy@xemacs.org>
4946
4947         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4948         autodetect domain.
4949
4950 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4951
4952         * callproc.c (Fold_call_process_internal):
4953         * gpm.c (Freceive_gpm_event):
4954         (tty_get_foreign_selection): Might be just warning supression.
4955         * fileio.c (Fwrite_region_internal):
4956         (Fset_visited_file_modtime):
4957         * keymap.c (event_matches_key_specifier_p):
4958         Initialize GCPROed variable.
4959
4960         * menubar-x.c (command_builder_find_menu_accelerator):
4961         Initialize before use.
4962
4963 2000-11-23  Andy Piper  <andy@xemacs.org>
4964
4965         * unexcw.c (unexec): make the resulting executable executable.
4966
4967 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4968
4969         * doc.c (get_doc_string):
4970         Use size_t, not int, for result of XSTRING_LENGTH.
4971
4972         * cmds.c (Fdelete_char):
4973         * cmds.c (Fpoint_at_eol):
4974         * cmds.c (Fself_insert_command):
4975         Use EMACS_INT, not int, for result of XINT.
4976         Someday, someone will want to insert more than 2**31 identical characters.
4977
4978         * cmds.c (Fdelete_char):
4979         * cmds.c (Fdelete_backward_char):
4980         * syntax.c (Fforward_word):
4981         * syntax.c (Fforward_comment):
4982         Make COUNT argument optional, for consistency with forward-char et al.
4983
4984 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4985
4986         * lisp.h:
4987         * print.c (long_to_string):
4988         Return a useful value: the pointer at end of data written.
4989
4990         * doprnt.c:
4991         Use `static const char * const' for constant strings.
4992         (union printf_arg): Delete `i', `ui' members.
4993         (get_doprnt_args):
4994         (emacs_doprnt_1):
4995         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4996         Do all printf-ing via the `l' specifier.
4997         Use EMACS_INT instead of int.
4998         Optimize.
4999
5000 2000-11-20  Didier Verna  <didier@xemacs.org>
5001
5002         * faces.c (update_face_cachel_data): don't frob the background
5003         pixmap when the window is being created. The face is needed but
5004         does not exist yet.
5005
5006 2000-11-20  Andy Piper  <andy@xemacs.org>
5007
5008         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5009         messing with a debug environment.
5010
5011 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5012
5013         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5014
5015 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5016
5017         * casetab.c (Fcase_table_p): Fix compile error and crash.
5018
5019 2000-11-18  Philip Aston  <philipa@mail.com>
5020
5021         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5022
5023 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5024
5025         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5026         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5027
5028 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5029
5030         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5031         * unexelf.c: Use HAVE_ELF_H.
5032         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5033         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5034         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5035         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5036         for testing.
5037         So this is an unexelfsgi.c from a different line of development.
5038
5039 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5040
5041         * regex.c (RE_TR_ASCII): New function.
5042         (RE_TRANSLATE): Call it.
5043
5044 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5045
5046         * buffer.h (TRT_TABLE_OF): Remove assert.
5047         (IN_TRT_TABLE_DOMAIN): Removed.
5048
5049 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5050
5051         * free-hook.c (log_gcpro):
5052         (show_gcprohist): Add support for GCPRO5.
5053
5054 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5055
5056         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5057
5058 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5059
5060         * symeval.h: Declare flush_all_buffer_local_cache.
5061
5062         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5063         (flush_buffer_local_cache): Added.
5064         (flush_all_buffer_local_cache): Added.
5065
5066         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5067
5068         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5069         (pdump_dump_data): Ditto.
5070         (pdump_reloc_one): Ditto.
5071         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5072         before dumping.
5073
5074
5075 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5076
5077         * buffer.c: Remove if 0'ed entry.
5078         * buffer.h: Rewrite TRT to use char-table.
5079         * bufslots.h: Remove mirror tables.
5080         * casetab.c: Remove mirror tables.
5081         (CASE_TABLE_P): New macro.
5082         (Fcase_table_p): Element of a case table is string or char-table.
5083         (make_mirror_trt_table): Removed.
5084         (set_case_table): Setup char-table from strings for backward
5085         compatibility.
5086         * dired.c (Fdirectory_files):
5087         * dired-msw.c: (mswindows_get_files):
5088         * lisp.h: Change prototype of re_pattern_buffer.
5089         * regex.c: (RE_TRANSLATE): New macro.
5090         (TRANSLATE_P): Ditto.
5091         Change translate to type RE_TRANSLATE_TYPE.
5092         * regex.h: Define RE_TRANSLATE_TYPE
5093         * search.c (TRANSLATE): New macro.
5094         (TRANSLATE_ASCII): New macro.
5095         Translate table is changed to Lisp_Object.
5096         (signal_failure): Inhibit return.
5097
5098 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5099
5100         * device-msw.c:
5101         * eldap.c:
5102         * event-Xt.c:
5103         * event-stream.c:
5104         * print.c:
5105         Do UNGCPRO before return.
5106
5107 2000-11-14  Martin Buchholz <martin@xemacs.org>
5108
5109         * XEmacs 21.2.37 is released.
5110
5111 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5112
5113         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5114         Add comments about discarded return value.
5115
5116 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5117
5118         * callint.c:
5119         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5120
5121 2000-10-27  Andy Piper  <andy@xemacs.org>
5122
5123         * gutter.c (Fset_default_gutter_position): default left and right
5124         gutters to visible.
5125         (calculate_gutter_size): calculate resonable heuristic for left
5126         and right gutter sizes.
5127         (specifier_vars_of_gutter): change left and right gutter sizes to
5128         autodetect.
5129         (calculate_gutter_size_from_display_lines): new function.
5130         (output_gutter): check for resizing on left and right gutters.
5131         (clear_gutter): don't special case top and left gutters.
5132         (specifier_vars_of_gutter): use new signature for
5133         set_specifier_caching.
5134
5135         * glyphs-x.c (x_redisplay_widget): spelling fix.
5136         * glyphs.c (specifier_vars_of_glyphs):
5137         * menubar.c (specifier_vars_of_menubar):
5138         * redisplay.c (specifier_vars_of_redisplay):
5139         * toolbar.c (specifier_vars_of_toolbar):
5140         * window.c (specifier_vars_of_window):
5141         * scrollbar.c (specifier_vars_of_scrollbar):
5142         (complex_vars_of_scrollbar): use new signature for
5143         set_specifier_caching.
5144
5145         * specifier.c (set_specifier_caching): include recompute flag.
5146         (recompute_one_cached_specifier_in_window): always recompute if
5147         flag set.
5148         (recompute_one_cached_specifier_in_frame): ditto.
5149
5150         * specifier.h (struct specifier_caching): add recompute flag.
5151
5152 2000-10-24  Andy Piper  <andy@xemacs.org>
5153
5154         * unexcw.c (copy_executable_and_dump_data_section): add new
5155         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5156         5.0 happy.
5157
5158 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5159
5160         * console-x.h (x_device): New member modifier_release_time.
5161         * event-Xt.c (x_handle_sticky_modifiers):
5162         Bound interval modifier keys are sticky.
5163         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5164         * events.h: extern it.
5165
5166 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5167
5168         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5169
5170 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5171
5172         * event-stream.c (execute_command_event): Preserve current_events
5173         and the like when event is misc-user-event.
5174         Inhibit quit during the call to maybe_echo_keys.
5175
5176 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5177
5178         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5179         symlink when buffer is killed.
5180         (inhibit_clash_detection): New variable.
5181
5182 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5183
5184         * console.c (Fset_input_method): Trigger redisplay on tty.
5185
5186 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5187
5188         * process.c (Fprocess_status): Revert to previous behavior:
5189         (process-status "nosuchprocess") ==> nil
5190
5191 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5192
5193         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5194         Work around another GCC 2.95.2 optimizer bug.
5195
5196 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5197
5198         * process.c (Fget_process): Use LIST_LOOP_2.
5199         (kill_buffer_processes): Use LIST_LOOP_2.
5200
5201         * minibuf.c (Fall_completions):
5202         Delete old non-functional code for FSF fourth argument.
5203
5204         * frame.c (frame_matches_frame_spec):
5205         Renamed from `frame_matches_frametype'.  Update all callers.
5206         (device_matches_device_spec):
5207         Renamed from 'device_matches_console_spec'.  Update all callers.
5208
5209         * doc.c (Fsubstitute_command_keys):
5210         Remove buffer overflow crash.  Small code cleanups.
5211
5212         * casetab.c (check_case_table): Simpler code.
5213
5214         * window.c (Freplace_buffer_in_windows):
5215         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5216         (and similar implementation) as Fdelete_windows_on.
5217         Update all callers.
5218
5219         * alloc.c (Fmake_list):
5220         * alloc.c (make_vector):
5221         * alloc.c (Fmake_vector):
5222         * alloc.c (make_bit_vector):
5223         * alloc.c (Fmake_bit_vector):
5224         * alloc.c (Fbit_vector):
5225         * alloc.c (Fmake_string):
5226         * alloc.c (Fpurecopy):
5227         * alloc.c (Fmemory_limit):
5228         * buffer.c:
5229         * buffer.c (Fget_buffer):
5230         * buffer.c (Fkill_buffer):
5231         * buffer.c (complex_vars_of_buffer):
5232         * bytecode.c (Fcompiled_function_stack_depth):
5233         * callint.c (Fprefix_numeric_value):
5234         * event-stream.c:
5235         * event-stream.c (Fread_key_sequence):
5236         * casetab.c:
5237         * casetab.c (Fcase_table_p):
5238         * casetab.c (check_case_table):
5239         * casetab.c (Fset_case_table):
5240         * casetab.c (Fset_standard_case_table):
5241         * chartab.c:
5242         * chartab.c (Fchar_table_type):
5243         * chartab.c (Freset_char_table):
5244         * chartab.c (Fget_char_table):
5245         * chartab.c (Fget_range_char_table):
5246         * chartab.c (Fput_char_table):
5247         * chartab.c (Fmap_char_table):
5248         * chartab.c (Fcategory_table_p):
5249         * chartab.c (Fcheck_category_at):
5250         * chartab.c (Fchar_in_category_p):
5251         * chartab.c (Fcategory_table):
5252         * chartab.c (Fcopy_category_table):
5253         * chartab.c (Fset_category_table):
5254         * chartab.c (Fcategory_designator_p):
5255         * chartab.c (Fcategory_table_value_p):
5256         * cmds.c (Fdelete_char):
5257         * cmds.c (Fdelete_backward_char):
5258         * cmds.c (Fself_insert_command):
5259         * cmds.c (Fself_insert_internal):
5260         * console.c (Fvalid_console_type_p):
5261         * console.c (Fcdfw_console):
5262         * console.c (Fconsole_type):
5263         * console.c (Fconsole_name):
5264         * console.c (Fconsole_device_list):
5265         * console.c (Fconsole_on_window_system_p):
5266         * data.c:
5267         * data.c (Feq):
5268         * data.c (Fold_eq):
5269         * data.c (Fsubr_interactive):
5270         * data.c (Fchar_to_int):
5271         * data.c (Fint_to_char):
5272         * data.c (Fsetcar):
5273         * data.c (Fsetcdr):
5274         * data.c (Fnumber_to_string):
5275         * data.c (Fstring_to_number):
5276         * data.c (Frem):
5277         * database.c (mark_database):
5278         * database.c (finalize_database):
5279         * database.c (Fdatabase_live_p):
5280         * database.c (Fdatabasep):
5281         * device-x.c (Fx_get_resource):
5282         * device.c (Fdfw_device):
5283         * dired.c:
5284         * dired.c (Ffile_name_completion):
5285         * dired.c (Ffile_name_all_completions):
5286         * dired.c (Fuser_name_completion):
5287         * dired.c (Fuser_name_completion_1):
5288         * dired.c (Fuser_name_all_completions):
5289         * doc.c (Fdocumentation):
5290         * doc.c (Fdocumentation_property):
5291         * doc.c (Fsubstitute_command_keys):
5292         * editfns.c:
5293         * editfns.c (Fchar_to_string):
5294         * editfns.c (Fstring_to_char):
5295         * editfns.c (Ftemp_directory):
5296         * editfns.c (Finsert_char):
5297         * editfns.c (Fbuffer_substring_no_properties):
5298         * editfns.c (Fnarrow_to_region):
5299         * editfns.c (Fchar_equal):
5300         * editfns.c (Fchar_Equal):
5301         * editfns.c (Ftranspose_regions):
5302         * emacs.c (Fdump_emacs):
5303         * eval.c (Fthrow):
5304         * eval.c (Fcommand_execute):
5305         * eval.c (Fautoload):
5306         * eval.c (Fbacktrace):
5307         * eval.c (Fbacktrace_frame):
5308         * events.c:
5309         * events.c (Fcopy_event):
5310         * events.c (Fcharacter_to_event):
5311         * events.c (Fevent_button):
5312         * events.c (Fevent_process):
5313         * extents.c:
5314         * extents.c (Fnext_extent_change):
5315         * extents.c (Fextent_property):
5316         * faces.c (Ffacep):
5317         * faces.c (Fmake_face):
5318         * file-coding.c:
5319         * file-coding.c (Fencode_shift_jis_char):
5320         * file-coding.c (Fencode_big5_char):
5321         * fileio.c (Ffile_name_directory):
5322         * fileio.c (Ffile_name_nondirectory):
5323         * fileio.c (Ffile_name_as_directory):
5324         * fileio.c (Fdirectory_file_name):
5325         * fileio.c (Ffile_truename):
5326         * fileio.c (Fsubstitute_in_file_name):
5327         * fileio.c (Ffile_modes):
5328         * fileio.c (Fset_file_modes):
5329         * fileio.c (Fset_default_file_modes):
5330         * fileio.c (Fverify_visited_file_modtime):
5331         * floatfns.c (Facos):
5332         * floatfns.c (Fasin):
5333         * floatfns.c (Fatan):
5334         * floatfns.c (Fcos):
5335         * floatfns.c (Fsin):
5336         * floatfns.c (Ftan):
5337         * floatfns.c (Fbessel_j0):
5338         * floatfns.c (Fbessel_j1):
5339         * floatfns.c (Fbessel_jn):
5340         * floatfns.c (Fbessel_y0):
5341         * floatfns.c (Fbessel_y1):
5342         * floatfns.c (Fbessel_yn):
5343         * floatfns.c (Ferf):
5344         * floatfns.c (Ferfc):
5345         * floatfns.c (Flog_gamma):
5346         * floatfns.c (Fexp):
5347         * floatfns.c (Fexpt):
5348         * floatfns.c (Flog):
5349         * floatfns.c (Flog10):
5350         * floatfns.c (Fsqrt):
5351         * floatfns.c (Fcube_root):
5352         * floatfns.c (Facosh):
5353         * floatfns.c (Fasinh):
5354         * floatfns.c (Fatanh):
5355         * floatfns.c (Fcosh):
5356         * floatfns.c (Fsinh):
5357         * floatfns.c (Ftanh):
5358         * floatfns.c (Fabs):
5359         * floatfns.c (Ffloat):
5360         * floatfns.c (Flogb):
5361         * floatfns.c (Fceiling):
5362         * floatfns.c (Ffloor):
5363         * floatfns.c (Fround):
5364         * floatfns.c (Ftruncate):
5365         * floatfns.c (Ffceiling):
5366         * floatfns.c (Fffloor):
5367         * floatfns.c (Ffround):
5368         * floatfns.c (Fftruncate):
5369         * fns.c (Fstring_equal):
5370         * fns.c (Fstring_lessp):
5371         * fns.c (concat2):
5372         * fns.c (concat3):
5373         * fns.c (vconcat2):
5374         * fns.c (vconcat3):
5375         * fns.c (Fsubstring):
5376         * fns.c (Fassoc):
5377         * fns.c (Fold_assoc):
5378         * fns.c (assoc_no_quit):
5379         * fns.c (Fassq):
5380         * fns.c (Fold_assq):
5381         * fns.c (assq_no_quit):
5382         * fns.c (Frassoc):
5383         * fns.c (Fold_rassoc):
5384         * fns.c (Frassq):
5385         * fns.c (Fold_rassq):
5386         * fns.c (rassq_no_quit):
5387         * fns.c (Fremassoc):
5388         * fns.c (remassoc_no_quit):
5389         * fns.c (Fremassq):
5390         * fns.c (remassq_no_quit):
5391         * fns.c (Fremrassoc):
5392         * fns.c (Fremrassq):
5393         * fns.c (remrassq_no_quit):
5394         * fns.c (Fsort):
5395         * fns.c (Fplist_get):
5396         * fns.c (Fplist_put):
5397         * fns.c (Fplist_remprop):
5398         * fns.c (Fplist_member):
5399         * fns.c (Flax_plist_get):
5400         * fns.c (Flax_plist_put):
5401         * fns.c (Flax_plist_remprop):
5402         * fns.c (Flax_plist_member):
5403         * fns.c (Fequal):
5404         * fns.c (Fold_equal):
5405         * fns.c (Frequire):
5406         * fns.c (Fbase64_encode_region):
5407         * fns.c (Fbase64_encode_string):
5408         * fns.c (Fbase64_decode_region):
5409         * frame.c:
5410         * frame.c (frame_matches_frame_spec):
5411         * frame.c (device_matches_device_spec):
5412         * frame.c (next_frame):
5413         * frame.c (previous_frame):
5414         * frame.c (Fnext_frame):
5415         * frame.c (Fprevious_frame):
5416         * frame.c (Fframe_property):
5417         * frame.c (Fset_frame_height):
5418         * frame.c (Fset_frame_size):
5419         * frame.h:
5420         * glyphs.c:
5421         * glyphs.c (if):
5422         * glyphs.c (decode_error_behavior_flag):
5423         * glyphs.c (Fmake_image_instance):
5424         * indent.c (Findent_to):
5425         * intl.c (Fignore_defer_gettext):
5426         * keymap.c (Fkeymapp):
5427         * keymap.c (Flookup_key):
5428         * lread.c:
5429         * lread.c (Fload_internal):
5430         * lread.c (Feval_buffer):
5431         * lread.c (Feval_region):
5432         * macros.c (Fexecute_kbd_macro):
5433         * marker.c (set_marker_internal):
5434         * marker.c (Fset_marker):
5435         * marker.c (set_marker_restricted):
5436         * marker.c (Fcopy_marker):
5437         * marker.c (noseeum_copy_marker):
5438         * menubar.c:
5439         * menubar.c (Fpopup_menu):
5440         * minibuf.c:
5441         * mule-charset.c (Fcharset_name):
5442         * mule-charset.c (Fchar_charset):
5443         * mule-charset.c (Fchar_octet):
5444         * mule-charset.c (Fsplit_char):
5445         * mule-wnnfns.c (Fwnn_open):
5446         * mule-wnnfns.c (Fwnn_dict_comment):
5447         * mule-wnnfns.c (Fwnn_quit_henkan):
5448         * mule-wnnfns.c (Fwnn_word_toroku):
5449         * mule-wnnfns.c (Fwnn_word_sakujo):
5450         * mule-wnnfns.c (Fwnn_word_use):
5451         * mule-wnnfns.c (Fwnn_hindo_set):
5452         * objects.c:
5453         * objects.c (Fmake_color_instance):
5454         * objects.c (Fmake_font_instance):
5455         * print.c (Fwrite_char):
5456         * process.c:
5457         * process.c (mark_process):
5458         * process.c (print_process):
5459         * process.c (get_process_from_usid):
5460         * process.c (Fprocessp):
5461         * process.c (Fprocess_live_p):
5462         * process.c (Fget_process):
5463         * process.c (Fget_buffer_process):
5464         * process.c (get_process):
5465         * process.c (Fprocess_id):
5466         * process.c (Fprocess_name):
5467         * process.c (Fprocess_command):
5468         * process.c (init_process_io_handles):
5469         * process.c (start_process_unwind):
5470         * process.c (Fstart_process_internal):
5471         * process.c (Fopen_multicast_group_internal):
5472         * process.c (Fset_process_window_size):
5473         * process.c (read_process_output):
5474         * process.c (send_process):
5475         * process.c (Fprocess_tty_name):
5476         * process.c (Fset_process_buffer):
5477         * process.c (Fprocess_buffer):
5478         * process.c (Fprocess_mark):
5479         * process.c (set_process_filter):
5480         * process.c (Fset_process_filter):
5481         * process.c (Fprocess_filter):
5482         * process.c (Fprocess_send_region):
5483         * process.c (Fprocess_send_string):
5484         * process.c (exec_sentinel):
5485         * process.c (Fset_process_sentinel):
5486         * process.c (Fprocess_sentinel):
5487         * process.c (status_notify):
5488         * process.c (Fprocess_status):
5489         * process.c (Fprocess_exit_status):
5490         * process.c (process_send_signal):
5491         * process.c (Fprocess_send_eof):
5492         * process.c (deactivate_process):
5493         * process.c (remove_process):
5494         * process.c (Fdelete_process):
5495         * process.c (kill_buffer_processes):
5496         * process.c (Fprocess_kill_without_query):
5497         * process.c (Fprocess_kill_without_query_p):
5498         * rangetab.c:
5499         * rangetab.c (Fget_range_table):
5500         * rangetab.c (Fput_range_table):
5501         * rangetab.c (Fremove_range_table):
5502         * rangetab.c (Fclear_range_table):
5503         * search.c:
5504         * search.c (Fskip_chars_forward):
5505         * search.c (Fskip_chars_backward):
5506         * search.c (Fskip_syntax_forward):
5507         * search.c (Fskip_syntax_backward):
5508         * search.c (search_command):
5509         * search.c (Freplace_match):
5510         * search.c (Fregexp_quote):
5511         * select.c (Fown_selection_internal):
5512         * select.c (Fselection_owner_p):
5513         * select.c (Fselection_exists_p):
5514         * select.c (Fget_selection_internal):
5515         * specifier.c:
5516         * symbols.c:
5517         * symbols.c (Fintern):
5518         * symbols.c (Fintern_soft):
5519         * symbols.c (Funintern):
5520         * symbols.c (Fapropos_internal):
5521         * symbols.c (Fset_default):
5522         * syntax.c:
5523         * syntax.c (Fsyntax_table_p):
5524         * syntax.c (Fcopy_syntax_table):
5525         * syntax.c (Fset_syntax_table):
5526         * syntax.c (Fchar_syntax):
5527         * syntax.c (syntax_match):
5528         * syntax.c (Fmatching_paren):
5529         * syntax.c (Fforward_word):
5530         * syntax.c (scan_lists):
5531         * syntax.c (Fscan_lists):
5532         * syntax.c (Fscan_sexps):
5533         * syntax.c (Fparse_partial_sexp):
5534         * toolbar.c (Fcheck_toolbar_button_syntax):
5535         * tooltalk.doc:
5536         * window.c:
5537         * window.c (Fwindowp):
5538         * window.c (Fwindow_live_p):
5539         * window.c (Fwindow_point):
5540         * window.c (Fdelete_window):
5541         * window.c (Fnext_window):
5542         * window.c (Fprevious_window):
5543         * window.c (Fother_window):
5544         * window.c (window_loop):
5545         * window.c (Fget_lru_window):
5546         * window.c (Fsplit_window):
5547         * window.c (Fenlarge_window):
5548         * window.c (Fenlarge_window_pixels):
5549         * window.c (Fshrink_window):
5550         * window.c (Fshrink_window_pixels):
5551         * window.c (change_window_height):
5552         * window.c (Fwindow_configuration_p):
5553         * window.c (Fcurrent_window_configuration):
5554         * window.h:
5555         * casefiddle.c (casify_object):
5556         * casefiddle.c (Fupcase):
5557         * casefiddle.c (Fdowncase):
5558         * casefiddle.c (Fcapitalize):
5559         * casefiddle.c (Fupcase_initials):
5560         * casefiddle.c (casify_region_internal):
5561         * casefiddle.c (casify_region):
5562         * casefiddle.c (Fupcase_region):
5563         * casefiddle.c (Fdowncase_region):
5564         * casefiddle.c (Fcapitalize_region):
5565         * casefiddle.c (Fupcase_initials_region):
5566         * casefiddle.c (Fupcase_word):
5567         * casefiddle.c (Fdowncase_word):
5568         * casefiddle.c (Fcapitalize_word):
5569         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5570         Replace 0 with '\0' when working with bytes.
5571         Replace initial "(" with "\(" in docstrings.
5572
5573 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5574
5575         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5576
5577         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5578
5579 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5580
5581         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5582
5583 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5584
5585         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5586         correctly.
5587
5588 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5589
5590         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5591         (inhibit_auto_save_session): New variable.
5592         (vars_of_fileio): Declare and initialize them.
5593         * fileio.c (Fdo_auto_save): Don't create session file if
5594         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5595
5596 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5597
5598         * sgiplay.c (play_internal): C++ compilability.
5599         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5600         * callproc.c (Fold_call_process_internal):
5601         Remove unused vars `env', `first'.
5602         * scrollbar.c (update_scrollbar_instance):
5603         #### unused var `current_window'.
5604         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5605         etc. within #ifdef NOT_YET.
5606         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5607         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5608         * specifier.c (specifier_instance):
5609         #### unused var `tag'.
5610         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5611
5612 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5613
5614         * fns.c (Fbutlast):
5615         * fns.c (list_sort):
5616         * fns.c (Ffillarray):
5617         * fns.c (bytecode_nconc2):
5618         * fns.c (Fnconc):
5619         * fns.c (mapcar1):
5620         * fns.c (Fmapconcat):
5621         Be pedantically 64-bit correct.  For the time when someone will
5622         want to have a list with length > 2**32.
5623
5624         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5625         Work around MIPSpro compiler bug.
5626
5627         * process-unix.c (unix_kill_child_process): Add snarky comment.
5628         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5629
5630         * config.h.in: Oops, _getpt ==> _getpty
5631
5632 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5633
5634         * config.h.in:
5635         * regex.c:
5636         Use void*, not char*, as return type of alloca().
5637
5638         * alloc.c (free_marker): Side effect inside assert expression!
5639
5640 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5641
5642         * mule-charset.c (Fset_charset_ccl_program): To check
5643         if the given ccl program is valid, use setup_ccl_program()
5644         instead of CHECK_VECTOR().
5645         (Fmake_charset): Likewise.
5646
5647 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5648
5649         * faces.c (get_extent_fragment_face_cache_index):
5650         Fix cachel.merged_faces memory leak.
5651
5652 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5653
5654         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5655         Reset MSB of octets obtained by DECODE_SJIS
5656         because of the incompatibility with Emacs.
5657         (ccl_driver)<CCL_ENCODE_SJIS>:
5658         Set MSB of octets before passing them to
5659         ENCODE_SJIS because of the incompatibility
5660         with Emacs.
5661
5662 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5663
5664         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5665         (DECLARE_LRECORD): Undo the last change.
5666         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5667
5668 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5669
5670         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5671         the implementation to lrecord_implementations_table.
5672
5673 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5674
5675         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5676         initial value of `lrecord_type_##c_name' and
5677         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5678         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5679         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5680         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5681         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5682
5683 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5684
5685         * miscplay.c (sndcnv8S_2mono):
5686         (sndcnv2monounsigned):
5687         (sndcnvULaw_2linear):
5688         (sndcnv16swap):
5689         Remove implementation-defined behavior.
5690
5691 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5692
5693         * input-method-xlib.c: Warning suppression.
5694
5695 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5696
5697         * mule-ccl.c: Sync up with Emacs 21.0.90.
5698         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5699         Do nothing.
5700         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5701         Likewise.
5702         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5703         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5704         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5705         leading char belongs to official 2-dimensional charset.
5706         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5707         write the given character as is.  Otherwise,
5708         if it is a multibyte char, convert it by
5709         non_ascii_set_charptr_emchar, then write it.
5710         (CCL_WRITE_STRING): Likewise.
5711         (ccl_get_compiled_code): New function.
5712         (setup_ccl_program): When ccl_prog is invalid,
5713         return -1.
5714         (Fregister_code_conversion_map): New function.
5715         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5716
5717         * mule-ccl.h: Sync up with Emacs 21.0.90.
5718         (Fregister_ccl_program): export it.
5719
5720         * redisplay-msw.c (separate_textual_runs):
5721         If ccl program is not valid, don't do ccl conversion.
5722
5723         * redisplay-x.c (separate_textual_runs): Ditto.
5724
5725         * file-coding.c (Fmake_coding_system):
5726         When type is ccl and value is vector, register it
5727         with a proper symbol.  And checks whether the
5728         given ccl program is valid.
5729         (mule_decode): When calling ccl_driver, if src indicates
5730         NULL pointer, set an empty string instead.
5731         (mule_encode): Likewise.
5732
5733 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5734
5735         The following large batch of changes gets us back to a state of
5736         C++ compilability.  Extbyte is now a char, which means that
5737         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5738
5739         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5740
5741         * sound.c (Fplay_sound): Type correctness.
5742
5743         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5744         (x_get_window_property): Type correctness.
5745         (receive_incremental_selection): unsigned char ==> Extbyte
5746         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5747         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5748         (Fx_store_cutbuffer_internal): Type correctness.
5749
5750         * process-unix.c (try_to_initialize_subtty): Type correctness.
5751
5752         * objects-x.c (x_print_color_instance): Type correctness.
5753         (x_print_font_instance): Type correctness.
5754         (x_list_fonts): SExtbyte ==> Extbyte.
5755         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5756         (x_find_charset_font): SExtbyte ==> Extbyte.
5757         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5758         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5759         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5760         Use bufbyte_strcmp.
5761
5762         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5763         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5764         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5765         (BYTE_C0_P): Use bit ops for char-signedness safety.
5766         (BYTE_C1_P): Use bit ops for char-signedness safety.
5767         (CHARSET_BY_LEADING_BYTE):
5768         (CHARSET_BY_ATTRIBUTES):
5769         Always use inline function.
5770         Use type_checking_assert.
5771         Hide chlook.
5772
5773         * mule-charset.c (non_ascii_charptr_copy_char):
5774         Modify to work with both ASCII and non-ASCII characters.
5775         Improve docs and variable names.
5776         Replace over-clever fall-through switch with a simple loop.
5777         (Lstream_get_emchar_1):
5778         Replace over-clever fall-through switch with a simple loop.
5779
5780         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5781         Warning suppression.
5782
5783         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5784         the return value of Lstream_getc, which could be EOF as well.
5785
5786         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5787
5788         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5789         APIs can be used on Extbytes without casts.  Risky!
5790         (SExtbyte): Remove.
5791         (UExtbyte): Remove.
5792
5793         * input-method-xlib.c (XIM_init_device):
5794         Use Xlib.h instead of IntrinsicP.h.
5795         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5796         which will break in X11R7.
5797         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5798         to call XRegisterIMInstantiateCallback with correct types.
5799
5800         * gui-x.c (button_item_to_widget_value): Type correctness.
5801
5802         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5803
5804         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5805         (xbm_instantiate_1): Type correctness.
5806         (BUILD_GLYPH_INST):  Type correctness.
5807
5808         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5809
5810         * file-coding.c:
5811         (decode_coding_sjis):
5812         (decode_coding_big5):
5813         (decode_coding_ucs4):
5814         (decode_coding_utf8):
5815         (decode_coding_iso2022):
5816         (decode_coding_no_conversion):
5817         Make all decoding functions take an Extbyte * arg.
5818         (encode_coding_sjis):
5819         (encode_coding_big5):
5820         (encode_coding_ucs4):
5821         (encode_coding_utf8):
5822         (encode_coding_iso2022):
5823         (encode_coding_no_conversion):
5824         Make all encoding functions take a Bufbyte * arg.
5825         Use size_t instead of unsigned int for memory sizes.
5826         Only cast to unsigned char whenever dereferencing Extbyte *.
5827
5828         * doc.c (unparesseuxify_doc_string): Type correctness.
5829
5830         * console-x.c (split_up_display_spec):
5831         Rewrite without using details of internal string representation.
5832         (x_semi_canonicalize_device_connection): Type correctness.
5833
5834         * config.h.in:
5835         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5836         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5837         (HAVE_XFREE386): Removed.
5838
5839         * buffer.h (DEC_CHARPTR): `const' correctness.
5840         (bufbyte_strcmp): New.
5841         (bufbyte_memcmp): New.
5842
5843         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5844
5845         * buffer.h (XCHAR_OR_CHAR_INT):
5846         Always use inline function.
5847         Remove redundant type checking assert() - XINT will abort quite nicely.
5848
5849 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5850
5851         * search.c (Freplace_match): Set newtext to an empty string.
5852
5853 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5854
5855         * s/decosf1-3.h: Remove #include of stropts.h
5856         * s/ptx.h: Remove #include of stropts.h
5857         * s/usg5-4.h: Remove #include of stropts.h
5858         * sysproc.h:
5859         * config.h.in:
5860         Use stropts.h, not sys/stropts.h.
5861         Use strtio.h, not sys/strtio.h.
5862
5863 2000-10-04  Martin Buchholz <martin@xemacs.org>
5864
5865         * XEmacs 21.2.36 is released.
5866
5867 2000-09-21  Andy Piper  <andy@xemacs.org>
5868
5869         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5870         changes still involve copying the widget tree.
5871         (update_widget_face): make sure a change is register in the widget
5872         tree. Call update_tab_widget_face appropriately.
5873         (update_tab_widget_face): ditto.
5874         (x_tab_control_redisplay): make sure non-structural changes still
5875         involve copying the widget tree.
5876
5877 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5878
5879         * lread.c (locate_file): Check the path element is non-nil.
5880
5881 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5882
5883         * lisp.h: Warning suppression for SCO compilers.
5884
5885         * redisplay-tty.c (reset_tty_modes): Fix crash.
5886         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5887
5888 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5889
5890         Big signal/process handling overhaul.  Bugs fixed:
5891         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5892         M-x comint-kill-subjob should work for both values nil and t of
5893         process-connection-type. It was broken on most platforms.
5894         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5895         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5896         * process-unix.c: Signal/Process handling overhaul.
5897         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5898         (allocate_pty): Use all available modern methods of allocating
5899         ptys, falling back to old style BSD allocation as a last resort.
5900         Use allegedly more secure Unix98 pty allocation by default.
5901         (allocate_pty_the_old_fashioned_way): New. the last resort.
5902         (unix_create_process): Push ptem, ldterm, ttcompat where
5903         available.  Autoconfiscate.
5904         (try_to_initialize_subtty): New.
5905         (unix_kill_child_process): Proper signal handling for ptys on most
5906         platforms, using special knowledge of AIX, BSD, etc...
5907         (unix_create_process): Always disconnect_controlling_terminal() for
5908         subprocesses, whether using ptys or not.
5909         * process.h: Remove old getpt-dependent PTY code.
5910         * process.c (Fprocess_send_signal): New, obvious generic function.
5911         (decode_signal): New.
5912         (Finterrupt_process):
5913         (Fkill_process):
5914         (Fquit_process):
5915         (Fstop_process):
5916         (Fcontinue_process):
5917         (Fsignal_process): Use decode_signal.
5918         (process_send_signal):
5919         Many docstring corrections.
5920         Allow any signal to be sent to a process object.
5921         * config.h.in: Add symbols for big signal/process overhaul.
5922         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5923         * sysproc.h: Include process-related headers, where available:
5924         sys/stropts.h sys/strtio.h pty.h libutil.h
5925         * s/irix4-0.h:
5926         * s/irix5-0.h:
5927         * s/cygwin32.h:
5928         * s/gnu.h:
5929         * s/linux.h:
5930         * s/hpux.h:
5931         * s/aix3-1.h:
5932         Remove old S&M pty stuff.
5933         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5934         * systty.h: Simplify cpp hackery, improve comments.
5935         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5936
5937         * editfns.c (Fformat_time_string):
5938         Be a little more paranoid with the return value of ctime.
5939
5940         * fileio.c (check_executable):
5941         (check_writable):
5942         Use symbolic constants X_OK, W_OK.
5943
5944         * console-x.c (split_up_display_spec): Fix a warning.
5945
5946 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5947
5948         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5949         * ntproc.c (sys_spawnve): make_string ==> build_string
5950         Small clarity improvements.
5951
5952 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5953
5954         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5955
5956         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5957
5958         * config.h.in (HAVE_STRCASECMP): Remove.
5959
5960 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5961
5962         * redisplay-output.c (redisplay_output_pixmap):
5963         Cleaner and possibly more 64-bit correct code.
5964
5965 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5966
5967         * dumper.c (pdump_load_finish): move restoration of
5968         `noninteractive1' to emacs.c (main_1).
5969         * emacs.c (main_1): protect LISP-visible command-line flags
5970         from pdump_load().
5971
5972 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5973
5974         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5975         DUMP_TARGET instead of literal program names.
5976
5977 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5978
5979         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5980
5981 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5982
5983         * *: Spelling mega-patch
5984
5985 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5986
5987         * fns.c (bad_bad_turtle):
5988         Delete "Eek!" comment, since we fixed the bug to which it refers.
5989
5990 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5991
5992         * alloca.c: Replace REGISTER with register.
5993
5994 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5995
5996         * file-coding.c (ucs_to_char): Use countof.
5997
5998 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5999
6000         * file-coding.c: (ucs_to_char):
6001         (complex_vars_of_file_coding):
6002         Use countof instead of sizeof.
6003         Use CHECK_NATNUM instead of CHECK_INT.
6004
6005         * sysdep.c (strcasecmp): Remove.
6006         * device-x.c (ascii_strcasecmp): New.
6007         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6008         Avoid using non-standard non-portable strcasecmp.
6009
6010 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6011
6012         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6013         * font-lock.c: remove reference to emacsfns.h.
6014         * search.c: small doc improvement.
6015         * event-Xt.c: correct file names in comments.
6016         * console-x.h Correct file names in comments.
6017         * frame.c: Correct file names in comments.
6018         * event-stream.c: remove Energize from comments.
6019
6020 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6021
6022         * symeval.h (DEFERROR_STANDARD):
6023         (DEFERROR):
6024         (DEFSYMBOL):
6025         (DEFSYMBOL_NO_DUMP):
6026         (DEFSYMBOL_MULTIWORD_PREDICATE):
6027         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6028         (DEFKEYWORD):
6029         The construct &##name is not sensible C.
6030         Fixes compilation errors with Unixware native compiler.
6031
6032 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6033
6034         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6035         (next_frame_internal): Removed.  We now just have next_frame.
6036         (next_frame):
6037         Write a simpler and cleaner one-pass algorithm.
6038         Remove called_from_delete_device arg and #ifdefed-out code.
6039         (previous_frame):
6040         Renamed from prev_frame.  Update callers.
6041         Cleaned up to have an analogous implementation to next_frame.
6042         (other_visible_frames_internal): Remove the
6043         called_from_delete_device bogus arg, and hence, remove this
6044         function.  Just use other_visible_frames().
6045
6046         * window.c (Fnext_window):
6047         Prettify docstring.
6048         Since next_frame() is guaranteed to return a frame, remove check
6049         for nil inserted in previous patch.
6050         (Fprevious_window):
6051         Prettify docstring.
6052         Make code look more like Fnext_window.
6053         (window_loop):
6054         Respect the `console' arg when iterating through windows.
6055         Fixes bug: (get-buffer-window buffer t device) not respecting
6056         the `device' arg.
6057         This function needs more work, as others have pointed out.
6058
6059         * frame.h: Rename prev_frame to previous_frame.
6060         device_matches_console_spec no longer takes a `frame' arg.
6061
6062         * s/gnu.h:
6063         * s/linux.h:
6064         * s/hpux.h:
6065         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6066         From "Golubev I. N." <gin@mo.msk.ru>.
6067
6068         * make-src-depend: Fix typo.
6069
6070 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6071
6072         * window.c (Fnext_window):
6073         next_frame() might return nil, not a frame.
6074         Fixes this crash:
6075         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6076
6077         * frame.c (next_frame_internal):
6078         We've passed a frame if we've passed its device.
6079         Fixes this crash:
6080         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6081 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6082
6083 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6084
6085         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6086         Allow option to suppress accelerators in menu/dialog items.
6087         (populate_or_checksum_helper): Pass dialog title through above.
6088
6089 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6090
6091         * event-msw.c (mswindows_key_to_emacs_keysym):
6092         Add "pause" key, fix "menu" key.
6093
6094 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6095
6096         * eval.c (reinit_vars_of_eval):
6097         Increase max_lisp_eval_depth to 1000,
6098         required for thai-xtis.el to byte-compile under some circumstances.
6099
6100 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6101
6102         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6103         From Kenichi Handa.
6104
6105 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6106
6107         * make-src-depend: Make the generated Makefiles smaller.
6108
6109         * s/hpux.h (SETUP_SLAVE_PTY):
6110         Provide a %d in the format string for the errno argument.
6111
6112         * editfns.c (Ftemp_directory):
6113         Warning fix.
6114         Avoid buffer overrun on very long file name.
6115
6116         * input-method-xlib.c (XIM_init_device):
6117         6th parameter of XRegisterIMInstantiateCallback has different
6118         pointer types on different OSes, so simply cast to (void *).
6119
6120         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6121
6122         * sysdll.c (dll_open):
6123         shl_load will hang hard if passed a NULL filename.
6124         Simply return NULL for compatibility with dlopen.
6125         * sysdll.c: Conform to XEmacs coding standards.
6126
6127         * sysdep.c (get_pty_max_bytes):
6128         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6129
6130 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6131
6132         * tooltalk.c: Add #include <syssignal.h>
6133
6134 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6135
6136         * s/hpux.h: Don't use undefined function sigunblock().
6137
6138 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6139
6140         * config.h.in: Add HAVE_BALLOON_HELP.
6141         * emacs.c: Use HAVE_BALLOON_HELP.
6142         * Makefile.in.in (x_objs):
6143         Make Balloon Help conditional on finding shape.h.
6144
6145 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6146
6147         * syntax.c (regex_emacs_buffer_p): New variable.
6148         * syntax.h (regex_emacs_buffer_p): extern.
6149         * search.c (looking_at_1):
6150         (string_match_1):
6151         (fast_string_match):
6152         (search_buffer): Set regex_emacs_buffer_p.
6153         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6154         when before_dot, at_dot, after_dot.
6155
6156 2000-08-23  Andy Piper  <andy@xemacs.org>
6157
6158         * gui-x.c (popup_selection_callback): Only set action_occurred
6159         when we really have an image instance.
6160         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6161
6162 2000-08-23  Andy Piper  <andy@xemacs.org>
6163
6164         * gui-msw.c (mswindows_handle_gui_wm_command): set
6165         action_occurred.
6166         * gui-x.c (popup_selection_callback): ditto.
6167
6168         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6169         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6170         (struct Lisp_Image_Instance): add action_occurred flag.
6171
6172         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6173         (image_instance_changed): ditto.
6174         (reset_frame_subwindow_instance_cache): only unmap windows - do
6175         not remove them from the cache also.
6176
6177         * glyphs-widget.c (tab_control_update): better debug.
6178         (progress_gauge_update): ditto.
6179         (layout_update): ditto.
6180         (layout_instantiate): ditto.
6181         (tab_control_order_only_changed): cope with null pending items.
6182
6183         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6184         debug. Force selection of an item when an action occurred. Cope
6185         with null pending_items.
6186         (mswindows_progress_gauge_redisplay): better debug.
6187         * glyphs-x.c (x_tab_control_redisplay): ditto.
6188
6189         * redisplay.c (redisplay_frame): reset the frame cache if the
6190         frame is garbaged.
6191
6192         * window.c (Fset_window_configuration): potentially re-enable
6193         frame cache reset.
6194         (window_unmap_subwindows): need to finalize instances here since
6195         it is only used in mark_window_as_deleted.
6196
6197 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6198
6199         * nas.c (SndOpenDataForReading):
6200         nas.c (WaveOpenDataForReading):
6201         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6202         Somehow escaped from the 2000-08-14 patch.
6203
6204 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6205
6206         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6207         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6208
6209 2000-08-21  Andy Piper  <andy@xemacs.org>
6210
6211         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6212         window if it is not already displayed.
6213
6214         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6215         it is not already displayed.
6216
6217         * window.c (Fset_window_configuration): don't reset the frame
6218         cache.
6219
6220         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6221         instances from the frame cache if we are actually finalizing them.
6222         (reset_frame_subwindow_instance_cache): reset frame cache only
6223         after unmapping everything.
6224         (map_subwindow): set displayed flag after mapping.
6225
6226 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6227
6228         * data.c (indirect_function):
6229         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6230
6231         * eval.c (function_argcount):
6232         Use original function when signaling errors.
6233
6234 2000-08-18  Andy Piper  <andy@xemacs.org>
6235
6236         * frame.c (delete_frame_internal): use new
6237         free_frame_subwindow_instances name.
6238
6239         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6240         (add_tab_item): make return type correct.
6241         (mswindows_tab_control_instantiate): assert index of tab.
6242         (mswindows_tab_control_redisplay): Re-code to use
6243         gui_item_equal_sans_selected and gui_item_list_find_selected.
6244
6245         * glyphs-widget.c (tab_control_update): Correct comment.
6246
6247         * window.c (window_unmap_subwindows): use new
6248         unmap_subwindow_instance_cache_mapper.
6249         (window_unmap_subwindows_cache_mapper): deleted.
6250         (Fset_window_configuration): comparisons should now be with
6251         EQ. Preserve the subwindow instance cache across configuration
6252         changes.
6253         (allocate_window): ditto.
6254         (make_dummy_parent): ditto.
6255
6256         * glyphs.c (free_frame_subwindow_instances): rename from
6257         free_frame_subwindow_instance_cache. finalize all instances rather
6258         than just those in the display cache.
6259         (finalize_all_subwindow_instances): walk windows unmapping and
6260         finalizing subwindows.
6261         (unmap_subwindow_instance_cache_mapper): moved from
6262         window.c. Allow finalization as well as unmapping.
6263
6264         * gui.c (gui_item_list_find_selected): new function.
6265
6266         * gui.h (gui_item_list_find_selected): declare.
6267
6268         * glyphs-x.c (x_tab_control_redisplay): pick tab
6269         explicitly. Re-code to use gui_item_equal_sans_selected and
6270         gui_item_list_find_selected.
6271
6272         * glyphs-x.h: add lwlib-utils.h
6273
6274         * buffer.c (Frecord_buffer): undo previous change.
6275
6276 2000-08-09  Vin Shelton  <acs@xemacs.org>
6277
6278         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6279         possible.  Create temporary files more securely.  The patch was
6280         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6281         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6282         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6283         for details.
6284
6285 2000-08-07  Ben Wing  <ben@xemacs.org>
6286
6287         * getloadavg.c: remove duplicate (and windows-breaking)
6288         includes of fcntl.h and sys/file.h.
6289
6290         * nt.c: remove duplicate getloadavg() definition.
6291
6292         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6293         encodings.
6294
6295 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6296
6297         * eval.c (function_argcount): If function needs to be autoloaded
6298         actually use the loaded definition.
6299         GCPRO function.
6300
6301 2000-08-05  Ben Wing  <ben@xemacs.org>
6302
6303         * getloadavg.c: add prototype for getloadavg().  remove
6304         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6305         of the code).  remove duplicate header includes.
6306
6307         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6308
6309         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6310         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6311         useful load average.
6312
6313         * alloc.c (reinit_alloc_once_early): removed references to
6314         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6315         the lisp vars are the only things referencing the malloc_sbrk_*
6316         vars, and they were already if 0'd out.  these vars only exist
6317         in the older malloc.c, which is basically unused, and they're
6318         only for informational purposes.
6319
6320         * m\*.h: removed useless VIRT_ADDR_VARIES.
6321
6322         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6323
6324 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6325
6326         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6327         color if the image is a mono pixmap.
6328
6329 2000-07-30  Ben Wing  <ben@xemacs.org>
6330
6331         * Makefile.in.in (release):
6332         Remove stray @.
6333
6334         * buffer.c (directory_is_current_directory):
6335         * dired-msw.c (mswindows_get_files):
6336         * dired.c:
6337         * dired.c (Fdirectory_files):
6338         * dired.c (file_name_completion_stat):
6339         * dired.c (Ffile_attributes):
6340         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6341         preprocessor tricks, to avoid problems on some machines
6342         (e.g. SCO).
6343
6344         * callproc.c (egetenv): GC docs.
6345
6346         * console-msw.h:
6347         * console-msw.h (struct mswindows_dialog_id):
6348         * lrecord.h (lrecord_type):
6349         New object for use with MSW dialogs.
6350
6351         * console.h (struct console_methods):
6352         New enable/disable frame methods, for proper modal dialogs.
6353
6354         * device-msw.c (msprinter_default_printer): Fix to follow
6355         proper Mule conventions.
6356
6357         * device-msw.c:
6358         * device-msw.c (signal_open_printer_error):
6359         * device-msw.c (msprinter_init_device):
6360         * device-msw.c (ensure_not_printing):
6361         * device-msw.c (plist_get_margin):
6362         * device-msw.c (Fmsprinter_select_settings):
6363         * device-msw.c (finalize_devmode):
6364         * device-msw.c (Fmsprinter_settings_despecialize):
6365         * device-msw.c (signal_enum_priner_error):
6366         * extents.c (decode_extent):
6367         * extents.c (decode_map_extents_flags):
6368         * extents.c (decode_extent_at_flag):
6369         * extents.c (Fextent_at):
6370         * extents.c (Fextents_at):
6371         * extents.c (symbol_to_glyph_layout):
6372         [[[[2]]]] Use structured errors.
6373
6374         * dialog-msw.c:
6375         * dialog-msw.c (mswindows_is_dialog_msg):
6376         * dialog-msw.c (mark_mswindows_dialog_id):
6377         * dialog-msw.c (dialog_proc):
6378         * dialog-msw.c (handle_question_dialog_box):
6379         * dialog-msw.c (syms_of_dialog_mswindows):
6380         Define new object to clean up marking; use it as a dialog identifier.
6381         Call new delete-dialog-box-hook.
6382
6383         * dialog-x.c (dbox_selection_callback):
6384         * dialog-x.c (dbox_descriptor_to_widget_value):
6385         * dialog-x.c (x_make_dialog_box_internal):
6386         Call new delete-dialog-box-hook.
6387         Return an id.
6388
6389         * dialog.c:
6390         * dialog.c (syms_of_dialog):
6391         * dialog.c (vars_of_dialog):
6392         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6393
6394         * eval.c:
6395         * eval.c (signal_call_debugger):
6396         when noninteractive, output stack traces on the console instead
6397         of in a (never-seen) buffer.
6398
6399         * eval.c (signal_type_error):
6400         * eval.c (invalid_argument_2):
6401         * lisp.h:
6402         new funs for use w/structured errors.
6403
6404         * event-Xt.c:
6405         * event-Xt.c (x_to_emacs_keysym):
6406         * event-Xt.c (describe_event):
6407         * event-Xt.c (emacs_Xt_event_handler):
6408         * event-Xt.c (vars_of_event_Xt):
6409         * event-msw.c:
6410         * event-msw.c (mswindows_wnd_proc):
6411         * event-msw.c (vars_of_event_mswindows):
6412         rename {x,mswindows}-debug-events to debug-{}-events for
6413         consistency with other debug-foo variables.
6414
6415         * event-stream.c:
6416         document next-event more clearly.
6417
6418         * fileio.c (Ffile_name_directory):
6419         * fileio.c (Ffile_name_nondirectory):
6420         * fileio.c (Funhandled_file_name_directory):
6421         * fileio.c (file_name_as_directory):
6422         * fileio.c (Ffile_name_as_directory):
6423         * fileio.c (directory_file_name):
6424         * fileio.c (Fdirectory_file_name):
6425         * fileio.c (Fmake_temp_name):
6426         * fileio.c (Ffile_truename):
6427         * fileio.c (Fsubstitute_in_file_name):
6428         * fileio.c (expand_and_dir_to_file):
6429         * fileio.c (barf_or_query_if_file_exists):
6430         * fileio.c (check_executable):
6431         * fileio.c (Ffile_exists_p):
6432         * fileio.c (Ffile_writable_p):
6433         * fileio.c (Ffile_directory_p):
6434         * fileio.c (Ffile_regular_p):
6435         * fileio.c (Ffile_modes):
6436         * fileio.c (Ffile_newer_than_file_p):
6437         * fileio.c (Fverify_visited_file_modtime):
6438         * fileio.c (Fset_visited_file_modtime):
6439         * fileio.c (auto_save_1):
6440         (1). (2).
6441         fix up gcpro's.
6442
6443         * frame-msw.c:
6444         * frame-msw.c (mswindows_init_frame_1):
6445         * frame-msw.c (mswindows_enable_frame):
6446         * frame-msw.c (error_frame_unsizable):
6447         * frame-msw.c (msprinter_init_frame_1):
6448         * frame-msw.c (msprinter_init_frame_3):
6449         * frame-msw.c (console_type_create_frame_mswindows):
6450         (2).
6451         implement new enable/disable frame methods.
6452
6453         * frame-x.c:
6454         * frame-x.c (x_enable_frame):
6455         * frame-x.c (console_type_create_frame_x):
6456         implement new enable/disable frame methods.
6457
6458         * frame.c:
6459         * frame.c (Fdisable_frame):
6460         * frame.c (syms_of_frame):
6461         * frame.h (struct frame):
6462         implement new enable/disable frame methods/functions.
6463
6464         * general-slots.h:
6465         add initial-focus.
6466
6467         * glyphs-msw.c (mswindows_widget_instantiate):
6468         comment that initial-focus should be implemented.
6469
6470         * glyphs-widget.c:
6471         * glyphs-widget.c (check_valid_instantiator):
6472         * glyphs-widget.c (check_valid_orientation):
6473         * glyphs-widget.c (check_valid_tab_orientation):
6474         * glyphs-widget.c (check_valid_justification):
6475         * glyphs-widget.c (check_valid_border):
6476         * glyphs-widget.c (check_valid_callback):
6477         * glyphs-widget.c (check_valid_int_or_function):
6478         * glyphs-widget.c (check_valid_string_or_vector):
6479         * glyphs-widget.c (check_valid_item_list_1):
6480         * glyphs-widget.c (widget_validate):
6481         * glyphs-widget.c (combo_box_validate):
6482         * glyphs-widget.c (widget_instantiate):
6483         * glyphs-widget.c (syms_of_glyphs_widget):
6484         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6485         * glyphs-widget.c (image_instantiator_combo_box):
6486         * glyphs-widget.c (image_instantiator_scrollbar):
6487         * glyphs-widget.c (image_instantiator_tab_control):
6488         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6489         (2).
6490         support (unimplemented) keyword initial-focus.
6491         reindent long macros.
6492
6493         * glyphs-x.c (x_redisplay_widget):
6494         * glyphs-x.c (x_button_instantiate):
6495         * glyphs-x.c (x_button_redisplay):
6496         * glyphs-x.c (x_progress_gauge_instantiate):
6497         * glyphs-x.c (x_edit_field_instantiate):
6498         * glyphs-x.c (x_combo_box_instantiate):
6499         * glyphs-x.c (x_tab_control_instantiate):
6500         * glyphs-x.c (x_label_instantiate):
6501         * gui-x.c:
6502         * gui-x.c (button_item_to_widget_value):
6503         * gui-x.c (gui_items_to_widget_values_1):
6504         * gui-x.c (gui_item_children_to_widget_values):
6505         * gui-x.c (gui_items_to_widget_values):
6506         * gui-x.h:
6507         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6508         add new flag to gui-parsing routines to indicate whether
6509         accelerator specs should be supported.
6510
6511         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6512
6513         * glyphs.h (struct Lisp_Image_Instance):
6514         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6515         add initial-focus flag.
6516
6517         * gui.c:
6518         * gui.c (syms_of_gui):
6519         * gui.c (vars_of_gui):
6520         clean up menu-no-selection-hook.
6521
6522         * gui.h:
6523         support delete-dialog-box-hook.
6524
6525         * lread.c (Fload_internal):
6526         * lread.c (locate_file_in_directory_mapper):
6527         (1).
6528
6529         * lrecord.h:
6530         * lrecord.h (struct toolbar_button):
6531         * lrecord.h (syms_of_toolbar):
6532         document how to create a new object.
6533
6534         * menubar-msw.c (mswindows_char_is_accelerator):
6535         may be called on frames w/o menus.
6536
6537         * menubar.c (vars_of_menubar):
6538         clean up :filter docs.
6539
6540         * nt.c (readdir):
6541         * ntproc.c:
6542         (1).
6543
6544         * process-nt.c:
6545         * process-nt.c (validate_signal_number):
6546         * process-nt.c (signal_cannot_launch):
6547         * process-nt.c (nt_create_process):
6548         * process-nt.c (nt_send_process):
6549         * process-nt.c (nt_kill_child_process):
6550         * process-nt.c (nt_open_network_stream):
6551         * process-nt.c (syms_of_process_nt):
6552         (2).
6553         delete quote-handling.  call new lisp code that does it better.
6554
6555         * process-unix.c (connect_to_file_descriptor):
6556         * process-unix.c (allocate_pty):
6557         * process-unix.c (unix_send_process):
6558         * process-unix.c (unix_kill_child_process):
6559         * process-unix.c (unix_open_network_stream):
6560         * process-unix.c (unix_open_multicast_group):
6561         (1). (2).
6562
6563         * process.c:
6564         * process.c (Fstart_process_internal):
6565         (2).  need to canonicalize process path even if absolute.
6566
6567         * select-msw.c (symbol_to_ms_cf):
6568         * select-msw.c (ms_cf_to_symbol):
6569         * select-msw.c (cf_is_autofreed):
6570         * select-msw.c (mswindows_destroy_selection):
6571         * select.c:
6572         * select.c (syms_of_select):
6573         * select.h:
6574         support dibv5, fix bugs. (from Mike Alexander)
6575
6576         * select.c (Fget_selection_internal):
6577         * select.c (select_convert_out):
6578
6579         * sysdep.c:
6580         * sysdep.c (xemacs_stat):
6581         renamed.
6582
6583         * sysdep.c (mkdir):
6584         * sysdep.c (rmdir):
6585         but keep original stat() here because we provide encapsulation
6586         around these funs.
6587
6588         * sysfile.h:
6589         * sysfile.h (fstat):
6590         remove stat garbage.
6591
6592         * syswindows.h:
6593         fix X/MSW conflict.
6594         don't include tchar.h.  it's inappropriate because it makes
6595         compile-time distinctions when we want runtime distinctions.
6596         (we provide our own tchar replacements)
6597
6598         * toolbar.c:
6599         use default object printer for toolbar-button.
6600
6601         * unexcw.c:
6602         make sure we don't encapsulate.
6603
6604         * window.c (vars_of_window):
6605         emphasize that temp-buffer-show-hook is obsolete.
6606
6607 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6608
6609         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6610         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6611
6612         * events.c (Fevent_timestamp_lessp):
6613         Not 64-bit clean.  Use EMACS_INT, not int.
6614
6615 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6616
6617         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6618         unsigned int and changed the last enum to
6619         lrecord_type_last_built_in_type.
6620         (lrecord_implementations_table): changed prototype to know how
6621         long the array is supposed to be.
6622         (lrecord_type_count): new unsigned int to keep track of the
6623         current number of lisp lrecord types.
6624         (DEFINE_EXTERNAL_LRECORD):
6625         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6626         dynamic-modules to declare new lisp types. They are the same
6627         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6628         int for each new type, and increment lrecord_type_count by 1.
6629
6630         * alloc.c (lrecord_implementations_table): Changed to reference
6631         lrecord_type_last_built_in_type for the size of the array.
6632         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6633
6634 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6635
6636         * glyphs.h (check_valid_item_list): Renamed from
6637         check_valid_item_list_1.
6638
6639 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6640
6641         * select.c (Qselect_coerce): New.
6642         * select.c (Vselection_coercion_alist): New.
6643         * select.c (syms_of_select): Declare.
6644         * select.c (get-selection-internal): Use it.
6645         Use the new select-coerce functionality.
6646
6647         * select.c (select_coerce): New.
6648         * select.h (select_coerce): Declare.
6649         New function to coerce one type of data into another.
6650
6651 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6652
6653         * callproc.c (Fcall_process_internal):
6654         (Fcall_process_internal):
6655         * process-unix.c (unix_create_process):
6656         Save and restore the value of errno, so that error messages are accurate.
6657
6658 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6659
6660         * elhash.c (print_hash_table):
6661         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6662         Prettify docstrings and indentation.
6663
6664 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6665
6666         * window.c (Fwindow_pixel_edges): Subtract frame border and
6667         gutter size.
6668
6669 2000-07-31  Andy Piper  <andy@xemacs.org>
6670
6671         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6672         will acknowledge the change.
6673
6674         * glyphs.h: declare tab_control_order_only_changed.
6675
6676         * glyphs-x.c (x_tab_control_redisplay): use
6677         tab_control_order_only_changed.
6678
6679         * glyphs-widget.c (tab_control_order_only_changed): new function.
6680
6681         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6682         tab_control_order_only_changed.
6683
6684         * gui.c (gui_item_equal_sans_selected): new function.
6685         (gui_item_equal): use it.
6686
6687         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6688         :properties in favor of :items..
6689
6690         * glyphs-widget.c (check_valid_item_list): rename from
6691         check_valid_item_list_1.
6692         (check_valid_item_list_1): renamed.
6693         (combo_box_validate): deprecate :properties in favor of :items.
6694         (widget_instantiate): ditto.
6695         (tab_control_update): ditto.
6696         (image_instantiator_combo_box): ditto.
6697         (image_instantiator_tree_view): ditto.
6698         (image_instantiator_tab_control): ditto.
6699         (layout_post_instantiate): remove dead code.
6700
6701         * print.c (debug_print_no_newline): only write to debugger if in
6702         WIN32_NATIVE.
6703
6704         * elhash.c (Fmake_hash_table): update doc string.
6705
6706         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6707         messages whilst in GC. This at least stops XEmacs crashing but has
6708         the potential for wierd behaviour.
6709
6710 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6711
6712         * config.h.in:
6713         Make existence of s&m files optional.
6714
6715         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6716         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6717         * s/gnu.h: Remove HAVE_GETLOADAVG.
6718         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6719         * s/sol2.h: Remove HAVE_GETLOADAVG.
6720         * lisp.h: Remove getloadavg() declaration.
6721         * fns.c:
6722         Include <sys/loadavg.h> if available.
6723         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6724         * config.h.in:  Group together getloadavg()-related macros.
6725         Use only configure-time tests to detect getloadavg().
6726
6727 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6728
6729         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6730
6731 2000-07-25  Andy Piper  <andy@xemacs.org>
6732
6733         * syswindows.h: add tchar.h for native builds.
6734
6735         * frame.c (syms_of_frame): remove set-glyph-image.
6736
6737         * general-slots.h: add Qset_glyph_image.
6738
6739         * glyphs-widget.c (layout_update): add domain arg to
6740         set-glyph-image.
6741         (syms_of_glyphs_widget): remove set-glyph-image.
6742
6743 2000-07-23  Ben Wing  <ben@xemacs.org>
6744
6745         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6746         Vpopup_frame_list.
6747
6748 2000-07-22  Andy Piper  <andy@xemacs.org>
6749
6750         * symsinit.h: add syms_of_win32().
6751
6752         * gui-msw.c (syms_of_gui_mswindows): remove
6753         Fmswindows_shell_execute.
6754         (Fmswindows_shell_execute): moved to win32.c.
6755
6756         * emacs.c (main_1): add syms_of_win32 ().
6757
6758         * win32.c (init_potentially_nonexistent_functions): rewrite in
6759         compiler-friendly terms.
6760         (Fmswindows_shell_execute): move here from gui-msw.c.
6761         (syms_of_win32): new.
6762
6763         * device-msw.c (Fmswindows_printer_list): clean up args to
6764         EnumPrinters.
6765         Don't include tchar under cygwin or mingw.
6766         (msprinter_default_printer): make cygwin-friendly.
6767
6768 2000-07-21  Andy Piper  <andy@xemacs.org>
6769
6770         * glyphs-widget.c (image_instantiator_tree_view): use tab
6771         control's update function.
6772         (layout_property): new function. Retrieve items.
6773
6774         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6775         function. Re-populate the tree view from the pending items.
6776
6777         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6778         is designated the parent if the domain is an image instance. This
6779         is needed so that dirtiness can be cascade up the hierarchy and
6780         thus for layout children to be redisplayed correctly.
6781         (allocate_image_instance): rename glyph -> parent.
6782
6783         * redisplay.h: change redisplay_output_layout signature.
6784
6785         * redisplay-msw.c (mswindows_output_display_block): use domain
6786         arg.
6787
6788         * redisplay-x.c (x_output_display_block): use domain arg.
6789
6790 2000-07-10  Andy Piper  <andy@xemacs.org>
6791
6792         * window.c (Fset_window_configuration): add comment.
6793
6794         * redisplay-output.c (compare_runes):
6795         (redisplay_output_subwindow): redisplay rather than update subwindow.
6796         (redisplay_output_layout): ditto.
6797
6798         * redisplay-msw.c (mswindows_frame_output_end):
6799         (mswindows_frame_output_end): make defer window pos optional.
6800
6801         * lisp.h: add Flast.
6802
6803         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6804         normalize method. Change update method to be for changed
6805         instantiators. Add redisplay method. Change signature of layout
6806         method.
6807         (struct Lisp_Image_Instance): add instantiator.
6808         (IMAGE_INSTANCE_INSTANTIATOR): new.
6809         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6810         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6811         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6812
6813         * glyphs.c:
6814         (find_instantiator_differences): new function.
6815         (Fset_instantiator_property): new convenience function.
6816         (check_image_instance_structure): strictly check for vector
6817         instantiators.
6818         (normalize_image_instantiator): make non-static.
6819         (instantiate_image_instantiator): pass on dest_mask and use new
6820         signatures for image_instance_layout and friends.
6821         (mark_image_instance): mark the instantiator. Mark the subwindow
6822         face not the widget face.
6823         (image_instance_equal): add instantiator.
6824         (image_instance_hash): ditto.
6825         (allocate_image_instance): ditto.
6826         (Fset_image_instance_property): removed.
6827         (Fimage_instance_file_name): ditto.
6828         (Fcolorize_image_instance): ditto.
6829         (image_instance_layout): add offsets to be set.
6830         (update_image_instance): new function. update an image instance
6831         from its changed instantiator.
6832         (inherit_normalize): add dest_mask.
6833         (xbm_normalize): ditto.
6834         (xface_normalize): ditto.
6835         (xpm_normalize): ditto.
6836         (text_update): set_property -> update.
6837         (image_instantiate): use the glyph identity as a hash key, not the
6838         instantiator.
6839         (glyph_width): use new image_instance_layout signature.
6840         (glyph_ascent): ditto.
6841         (glyph_descent): ditto.
6842         (glyph_height): ditto.
6843         (glyph_query_geometry): ressurrect.
6844         (glyph_layout): ditto.
6845         (redisplay_subwindow): update -> redisplay.
6846         (syms_of_glyphs): add Fset_instantiator_property.
6847         (image_instantiator_format_create): set_property -> update.
6848
6849         * glyphs-x.c:
6850         (autodetect_normalize): add dest_maks to signature.
6851         (x_redisplay_subwindow): update -> redisplay.
6852         (x_redisplay_widget): ditto.
6853         (x_button_redisplay): ditto.
6854         (x_progress_gauge_redisplay): ditto.
6855         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6856         stacking order.
6857         (console_type_create_glyphs_x): update -> redisplay.
6858         (image_instantiator_format_create_glyphs_x): ditto.
6859
6860         * glyphs-widget.c:
6861         (check_valid_instantiator): disallow glyphs in the instantiator,
6862         they must now be vectors.
6863         (check_valid_instantiator_list): ditto.
6864         (glyph_instantiator_to_glyph): use internal symbol rather than
6865         intern.
6866         (widget_update): renamed from widget_set_property. Call cascaded
6867         update methods.
6868         (redisplay_widget): renamed from update_widget.
6869         (widget_layout): image_instance_layout now takes position as well
6870         as size.
6871         (widget_normalize): ditto.
6872         (widget_instantiate): ditto.
6873         (tab_control_query_geometry) ditto.:
6874         (tab_control_update): renamed from tab_control_set_property.
6875         (progress_gauge_update): set_property -> update.
6876         (layout_normalize): rewrite so that child instantiators are
6877         normalized also.
6878         (layout_update): new function. Create glyphs from the normalized
6879         children and cope with any other layout keywords. We do not
6880         instantiate children here that will be take care of by
6881         redisplay_output_layout.
6882         (layout_instantiate): call layout_update and not much else.
6883         (layout_post_instantiate): not sure whether this is needed
6884         anymore.
6885         (layout_query_geometry): query glyph geometry rather than
6886         image_instance geometry.
6887         (layout_layout): set offsets from pass in parameters. Use glyph
6888         geometry and layout functions rather than image instance ones.
6889         (native_layout_layout): ditto.
6890         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6891         (image_instantiator_widget): set_property -> update.
6892         (image_instantiator_buttons): ditto.
6893         (image_instantiator_progress_guage): ditto.
6894         (image_instantiator_tab_control): ditto.
6895         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6896         (image_instantiator_layout): add update method.
6897
6898         * glyphs-msw.c (bmp_normalize):
6899         (mswindows_resource_normalize): add dest_mask so that it can be
6900         proprogated by layout_normalize.
6901         (begin_defer_window_pos): make optional because it may not be the
6902         right thing to do and it introduces differences with X.
6903         (mswindows_unmap_subwindow): ditto.
6904         (mswindows_map_subwindow): ditto.
6905         (mswindows_redisplay_subwindow): renamed from
6906         mswindows_update_subwindow.
6907         (mswindows_redisplay_widget): ditto.
6908         (mswindows_button_redisplay): renamed from
6909         mswindows_button_update. Update is now what the instantiation
6910         function does for a changed instantiator.
6911         (mswindows_progress_gauge_instantiate): set the progress value
6912         here if appropriate.
6913         (mswindows_tab_control_redisplay): cope with re-ordering of the
6914         members of the tab widget by simply selecting the new top
6915         widget. This makes things appear ok if you click on a tab.
6916         (mswindows_combo_box_instantiate): image_instance_layout now takes
6917         position as well as size.
6918         (mswindows_progress_gauge_redisplay): renamed from
6919         mswindows_progress_gauge_update.
6920         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6921         (image_instantiator_format_create_glyphs_mswindows): ditto.
6922
6923         * glyphs-eimage.c (jpeg_normalize):
6924         (gif_normalize):
6925         (png_normalize):
6926         (tiff_normalize): add dest_mask so that it can be proprogated by
6927         layout_normalize.
6928
6929         * elhash.c:
6930         (print_hash_table):
6931         (hash_table_weakness_validate):
6932         (decode_hash_table_weakness):
6933         (Fhash_table_weakness):
6934         (Fhash_table_type):
6935         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6936
6937         * console.h (struct console_methods): move update_* to
6938         redisplay_*.
6939
6940 2000-07-20  Ben Wing  <ben@xemacs.org>
6941
6942         * *.[ch] (XSETOBJ): remove unused middle argument.
6943         lisp-disunion.h: correct wrap_object() to one argument.
6944
6945 2000-07-15  Ben Wing  <ben@xemacs.org>
6946
6947         * s/cygwin32.h:
6948         * s/cygwin32.h (CYGWIN_CONV_PATH):
6949         Add missing logb prototype for v1.1.
6950         Use post-b20 names and alias to pre-b20 names when pre-b20.
6951
6952         * s/windowsnt.h: [5].
6953
6954 2000-07-15  Ben Wing  <ben@xemacs.org>
6955
6956         * Makefile.in.in (x_objs):
6957         * Makefile.in.in (sheap_objs):
6958         * Makefile.in.in (objs):
6959         added win32.o, cosmetic cleanups.
6960
6961         * alloc.c (Fmake_byte_code):
6962         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6963         etc. macros which declare their own args now.
6964
6965         * alloc.c (syms_of_alloc):
6966         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6967
6968         * buffer.c:
6969         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6970
6971         * buffer.c (Fget_file_buffer):
6972         Fixed GCPRO problem.
6973
6974         * buffer.c (get_truename_buffer):
6975         Fixed comment about GC checking.
6976
6977         * buffer.c (syms_of_buffer):
6978         Undeclared those dedicated frame funs.
6979         [2].
6980
6981         * buffer.h:
6982         Define convenience macros for internal/external conversions.
6983         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6984         and Qenvironment_variable_encoding for cleaner code.
6985
6986         * bufslots.h:
6987         Remove dedicated-frame; in lisp.
6988
6989         * bytecode.c (funcall_compiled_function):
6990         [1].
6991
6992         * bytecode.c (syms_of_bytecode):
6993         [2].
6994
6995         * console-msw.c:
6996         * console-msw.c (mswindows_show_console): Rewrote.
6997
6998         * console-msw.c (Fmswindows_debugging_output): New.
6999         Sends to OutputDebugString (special MSWin debugger interface).
7000
7001         * console-msw.c (Fmswindows_message_box):
7002         Fixed stupid bugs so it works when called from kill-emacs.
7003
7004         * console-msw.c (syms_of_console_mswindows):
7005         Declare Fmswindows_debugging_output.
7006
7007         * console-msw.h:
7008         New MSWin prototypes.
7009
7010         * console-msw.h (struct mswindows_frame):
7011         New entry last-click-mods for improved button-modifier support.
7012
7013         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7014         New struct entry `popup' with corresponding accessor.
7015
7016         * console-x.c:
7017         * console-x.c (split_up_display_spec):
7018         * console-x.c (get_display_arg_connection):
7019         * console-x.c (x_semi_canonicalize_console_connection):
7020         * console-x.c (x_canonicalize_device_connection):
7021         [[[6]]]: Change char to more specific type.
7022         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7023
7024         * console-x.c (x_semi_canonicalize_console_connection):
7025         * console-x.c (x_canonicalize_device_connection):
7026         [[[9]]]: Fix up error signalling to use new structured error system.
7027
7028         * console-x.h:
7029         [[[4]]]: Define codesys aliases:
7030         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7031         Qx_color_name_encoding, Qx_display_name_encoding.
7032
7033         * console.h (struct console_methods):
7034         New method make_dialog_box_internal supersedes older
7035         popup_dialog_box method.
7036
7037         * data.c:
7038         Define many new errors, part of new structured errors.
7039
7040         * data.c (init_errors_once_early):
7041         * data.c (syms_of_data):
7042         [2].
7043
7044         * device-msw.c (mswindows_init_device):
7045         [[[5]]]: Cleanup to support NT 3.51.
7046
7047         * device-msw.c (decode_devmode): Cleanup.
7048
7049         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7050         * device-msw.c (mswindows_handle_print_dialog_box):
7051         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7052         * device-msw.c (syms_of_device_mswindows):
7053         Delete the dialog box primitives recently introduced by Kirill and
7054         instead interface to general dialog box interface.
7055
7056         * device-x.c:
7057         * device-x.c (compute_x_app_name):
7058         * device-x.c (x_init_device):
7059         * device-x.c (Fx_valid_keysym_name_p):
7060         * device-x.c (Fx_set_font_path):
7061         [6].
7062         [7].
7063
7064         * device.h (wrap_device): New.
7065         First of its kind; meant to replace XSETDEVICE.
7066
7067         * dialog-msw.c: Many file-dialog symbols.
7068
7069         * dialog-msw.c (mswindows_register_popup_frame): New.
7070         * dialog-msw.c (mswindows_is_dialog_msg): New.
7071         For supporting kbd traversal in dialog boxes.
7072
7073         * dialog-msw.c (dialog_proc):
7074         Support hitting ESC in dialogs.
7075
7076         * dialog-msw.c (struct):
7077         Common dialog box errors.
7078
7079         * dialog-msw.c (handle_file_dialog_box): New.
7080         Add file dialog code.
7081
7082         * dialog-msw.c (handle_question_dialog_box):
7083         Redo existing code to support new question dialog syntax.
7084
7085         * dialog-msw.c (console_type_create_dialog_mswindows):
7086         We support new dialog console method.
7087
7088         * dialog-msw.c (syms_of_dialog_mswindows):
7089         * dialog-msw.c (vars_of_dialog_mswindows):
7090         New file dialog symbols, vars.
7091
7092         * dialog-x.c:
7093         * dialog-x.c (maybe_run_dbox_text_callback):
7094         * dialog-x.c (dbox_descriptor_to_widget_value):
7095         * dialog-x.c (x_make_dialog_box_internal):
7096         * dialog-x.c (console_type_create_dialog_x):
7097         Mule-ize entire file.
7098         Redo to support question dialog syntax.
7099         [6].
7100
7101         * dialog.c:
7102         * dialog.c (Fmake_dialog_box_internal):
7103         * dialog.c (syms_of_dialog):
7104         Kill old popup-dialog-box, replace with new primitive.
7105         Just call device method or signal error.
7106
7107         * eldap.c (Fldap_open):
7108         * eldap.c (Fldap_search_basic):
7109         * eldap.c (Fldap_add):
7110         * eldap.c (Fldap_modify):
7111         [1].
7112         [7].
7113
7114         * emacs.c:
7115         * emacs.c (make_arg_list_1):
7116         * emacs.c (make_arg_list):
7117         Mule-ize call to dll_init().
7118         [6].
7119         [8].
7120
7121         * emacs.c (make_argc_argv):
7122         * emacs.c (free_argc_argv):
7123         * emacs.c (init_cmdargs):
7124         * emacs.c (main_1):
7125         * emacs.c (Fkill_emacs):
7126         * emacs.c (Fdump_emacs):
7127         Update comments about what can be used in syms_* etc.
7128         Call init_win32() when necessary.
7129         Fix up MS Win dialog box in kill-buffer to actually work right.
7130         [7].
7131
7132         * eval.c:
7133         * eval.c (For):
7134         * eval.c (Fand):
7135         * eval.c (Fprogn):
7136         * eval.c (Fprog1):
7137         * eval.c (Fprog2):
7138         * eval.c (FletX):
7139         * eval.c (Flet):
7140         * eval.c (condition_case_3):
7141         * eval.c (Feval):
7142         * eval.c (function_argcount):
7143         * eval.c (funcall_lambda):
7144         [1].
7145
7146         * eval.c (type_error): New.
7147         * eval.c (maybe_type_error): New.
7148         * eval.c (continuable_type_error): New.
7149         * eval.c (maybe_continuable_type_error): New.
7150         * eval.c (type_error_with_frob): New.
7151         * eval.c (maybe_type_error_with_frob): New.
7152         * eval.c (continuable_type_error_with_frob): New.
7153         * eval.c (maybe_continuable_type_error_with_frob): New.
7154         New functions for use with structured errors.
7155
7156         * event-Xt.c:
7157         * event-Xt.c (x_event_to_emacs_event):
7158         Buttons are now modifiers too.
7159
7160         * event-Xt.c (emacs_Xt_current_event_timestamp):
7161         Implement new event method.
7162         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7163
7164         * event-msw.c:
7165         * event-msw.c (ntpipe_shove_writer): [5].
7166         * event-msw.c (mswindows_enqueue_mouse_button_event):
7167         * event-msw.c (mswindows_drain_windows_queue):
7168         * event-msw.c (mswindows_wnd_proc): [7].
7169         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7170         * event-msw.c (mswindows_modifier_state):
7171         Throughout: support new button modifiers.
7172
7173         * event-msw.c (emacs_mswindows_current_event_timestamp):
7174         Implement new event method.
7175         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7176
7177         * event-stream.c:
7178         * event-stream.c (event_stream_current_event_timestamp): New.
7179         * event-stream.c (maybe_kbd_translate): New functionality.
7180         * event-stream.c (vars_of_event_stream):
7181         Document new kbd-translate-table functionality.
7182
7183         * event-stream.c (Fcurrent_event_timestamp): New.
7184         New primitive for use in fabricated events.
7185         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7186
7187         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7188
7189         * events.c:
7190         * events.c (Fmake_event):
7191         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7192         [1].
7193         [9].
7194
7195         * events.c (format_event_object): fix gcc warnings.
7196
7197         * events.c (Fevent_timestamp): Document new primitives.
7198
7199         * events.c (TIMESTAMP_HALFSPACE): New.
7200
7201         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7202         comparing timestamps correctly (half-space algorithm).
7203
7204         * events.c (Fevent_modifier_bits): Doc fix.
7205
7206         * events.c (Fevent_modifiers): Major doc addition.
7207         * events.c (event_x_y_pixel_internal): Typo fix.
7208         * events.c (syms_of_events): Declare new primitives.
7209
7210         * events.h:
7211         Update long comment for button modifiers, timestamps.
7212
7213         * events.h (struct event_stream):
7214         New current_event_timestamp method.
7215
7216         * extents.c:
7217         * extents.c (extent_in_region_p):
7218         * extents.c (decode_extent):
7219         * extents.c (Fset_extent_parent):
7220         * extents.c (decode_map_extents_flags):
7221         Fix gcc warnings.
7222         [9].
7223
7224         * extents.c (struct extent_at_arg):
7225         * extents.c (decode_extent_at_flag):
7226         * extents.c (extent_at_mapper):
7227         * extents.c (extent_at_bytind):
7228         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7229         * extents.c (Fextents_at): New primitive. [9].
7230         * extents.c (symbol_to_glyph_layout): [9].
7231         Support new primitive `extents-at'.
7232
7233
7234         * extents.c (get_text_property_bytind):
7235         extent_at_bytind has another arg.
7236         [9].
7237
7238         * extents.c (syms_of_extents): New primitive.
7239
7240         * file-coding.c (Fmake_coding_system): [1].
7241         * file-coding.c (subsidiary_coding_system): fix gcc warning
7242         * file-coding.c (syms_of_file_coding): [2].
7243
7244         * fileio.c (Fexpand_file_name):
7245         * fileio.c (Fsysnetunam):
7246         * fileio.c (Ffile_exists_p):
7247         * fileio.c (Ffile_executable_p):
7248         * fileio.c (Fverify_visited_file_modtime):
7249         Clean up GCPROing.
7250
7251         * fileio.c (syms_of_fileio): [2].
7252
7253         * filelock.c (lock_file_1):
7254         * filelock.c (current_lock_owner):
7255         * filelock.c (lock_if_free):
7256         * filelock.c (lock_file):
7257         * filelock.c (unlock_file):
7258         Clean up GCPROing.
7259
7260         * fns.c (concat): Fix gcc warning.
7261
7262         * fns.c (Fmember):
7263         * fns.c (Fold_member):
7264         * fns.c (Fmemq):
7265         * fns.c (Fold_memq):
7266         * fns.c (memq_no_quit):
7267         * fns.c (Fassoc):
7268         * fns.c (Fold_assoc):
7269         * fns.c (Fassq):
7270         * fns.c (Fold_assq):
7271         * fns.c (assq_no_quit):
7272         * fns.c (Frassoc):
7273         * fns.c (Fold_rassoc):
7274         * fns.c (Frassq):
7275         * fns.c (Fold_rassq):
7276         * fns.c (rassq_no_quit):
7277         * fns.c (Fdelete):
7278         * fns.c (Fold_delete):
7279         * fns.c (Fdelq):
7280         * fns.c (Fold_delq):
7281         * fns.c (delq_no_quit):
7282         * fns.c (Fremassoc):
7283         * fns.c (Fremassq):
7284         * fns.c (remassq_no_quit):
7285         * fns.c (Fremrassoc):
7286         * fns.c (Fremrassq):
7287         * fns.c (remrassq_no_quit):
7288         * fns.c (Freverse):
7289         * fns.c (mapcar1):
7290         [1].
7291
7292         * frame-msw.c (mswindows_init_frame_1):
7293         * frame-msw.c (mswindows_delete_frame):
7294         Register popups with dialog code so keyboard traversing works.
7295
7296         * frame-tty.c (tty_raise_frame_no_select): [1].
7297
7298         * frame-x.c:
7299         * frame-x.c (x_set_frame_text_value):
7300         * frame-x.c (x_set_frame_properties):
7301         * frame-x.c (x_create_widgets):
7302         [7].
7303
7304         * frame.c:
7305         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7306
7307         * frame.h (wrap_frame): New.
7308         Macro like wrap_device.
7309
7310         * general.c:
7311         * general.c (SYMBOL):
7312         * general.c (syms_of_general):
7313         Major reorg.  This is now just a wrapper and symbols themselves
7314         are listed in general-slots.h.
7315
7316         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7317         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7318
7319         * glyphs-msw.c (mswindows_native_layout_instantiate):
7320         Add DS_CONTROL so keyboard traversal will work.
7321
7322         * glyphs-widget.c:
7323         * glyphs-widget.c (syms_of_glyphs_widget):
7324         Move some symbols to general-slots.h.
7325
7326         * glyphs-x.c:
7327         * glyphs-x.c (xbm_instantiate_1):
7328         * glyphs-x.c (x_xbm_instantiate):
7329         * glyphs-x.c (x_xface_instantiate):
7330         * glyphs-x.c (autodetect_instantiate):
7331         * glyphs-x.c (cursor_font_instantiate):
7332         * glyphs-x.c (x_update_widget):
7333         * glyphs-x.c (x_widget_instantiate):
7334         * glyphs.c (bitmap_to_lisp_data):
7335         * glyphs.c (pixmap_to_lisp_data):
7336         [7].
7337
7338         * glyphs.c (syms_of_glyphs):
7339         [2].
7340
7341         * gui-x.c:
7342         * gui-x.c (print_widget_value):
7343         * gui-x.c (menu_separator_style_and_to_external):
7344         * gui-x.c (add_accel_and_to_external):
7345         * gui-x.c (button_item_to_widget_value):
7346         * gui-x.c (gui_items_to_widget_values_1):
7347         * gui-x.c (gui_items_to_widget_values):
7348         * gui-x.c (syms_of_gui_x):
7349         * gui-x.c (vars_of_gui_x):
7350         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7351         [9].
7352
7353         * gui-x.h:
7354         Muleize, prototype changes matching gui-x.c.
7355
7356         * gui.c:
7357         * gui.c (separator_string_p):
7358         * gui.c (gui_item_add_keyval_pair):
7359         * gui.c (make_gui_item_from_keywords_internal):
7360         * gui.c (signal_too_long_error):
7361         * gui.c (parse_gui_item_tree_item):
7362         * gui.c (syms_of_gui):
7363         * gui.c (vars_of_gui):
7364         * gui.h:
7365         menu-no-selection-hook moved here (used by MSWin).
7366         Move some symbols to general-slots.h.
7367         [6].
7368         [9].
7369
7370         * insdel.c (get_buffer_pos_char):
7371         * insdel.c (get_buffer_range_char):
7372         Add GC comments.
7373
7374         * keymap.c (keymap_lookup_directly):
7375         * keymap.c (keymap_store):
7376         * keymap.c (ensure_meta_prefix_char_keymapp):
7377         * keymap.c (describe_map):
7378         * keymap.h:
7379         Support new button modifiers.
7380
7381         * lisp-disunion.h (wrap_object):
7382         * lisp-disunion.h (XSETOBJ):
7383         Rename make_obj to wrap_object.
7384
7385         * lisp-union.h:
7386         * lisp-union.h (make_int):
7387         * lisp-union.h (make_char):
7388         Support wrap_object.
7389
7390         * lisp.h:
7391         * lisp.h (LIST_LOOP):
7392         * lisp.h (EXTERNAL_LIST_LOOP):
7393         * lisp.h (LIST_LOOP_2):
7394         * lisp.h (EXTERNAL_LIST_LOOP_1):
7395         * lisp.h (EXTERNAL_LIST_LOOP_2):
7396         * lisp.h (EXTERNAL_LIST_LOOP_3):
7397         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7398         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7399         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7400         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7401         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7402         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7403         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7404         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7405         * lisp.h (struct Lisp_Symbol):
7406         * lisp.h (maybe_continuable_error_with_frob):
7407         Fix up section comments.
7408         Add new types for char to indicate usage.
7409         Delete symbols auto-generated from general-slots.h.
7410         Add prototypes for structured error functions.
7411         Add long comments describing looping macros and change interface
7412         so that lvalues are automatically declared.
7413         Add NO_DECLARE macro in case callers want to declare lvalues
7414         themselves.
7415
7416         * lread.c (read_syntax_error):
7417         * lread.c (continuable_read_syntax_error):
7418         * lread.c (read_structure):
7419         * lread.c (sequence_reader):
7420         * lread.c (read_list_conser):
7421         * lread.c (read_compiled_function):
7422         Rename syntax_error and continuable_syntax_error to avoid clash
7423         with same-named structured error functions.
7424
7425         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7426         * menubar-msw.c (populate_menu_add_item):
7427         * menubar-msw.c (populate_or_checksum_helper):
7428         [5].
7429         [9].
7430
7431         * menubar-x.c:
7432         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7433         Mule-ize whole file.
7434
7435         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7436
7437         * mule-charset.c (Fmake_charset):
7438         * mule-wnnfns.c (Fwnn_set_param):
7439         [1].
7440
7441         * ntproc.c (create_child):
7442         * ntproc.c (Fwin32_set_current_locale):
7443         Add comments portending doom.
7444
7445         * objects-msw.c:
7446         * objects-msw.c (old_font_enum_callback_2):
7447         * objects-msw.c (font_enum_callback_1):
7448         * objects-msw.c (mswindows_enumerate_fonts):
7449         [5].
7450
7451         * objects-x.c:
7452         * objects-x.c (allocate_nearest_color):
7453         * objects-x.c (x_parse_nearest_color):
7454         * objects-x.c (x_initialize_color_instance):
7455         * objects-x.c (x_print_color_instance):
7456         * objects-x.c (x_finalize_color_instance):
7457         * objects-x.c (x_valid_color_name_p):
7458         * objects-x.c (x_initialize_font_instance):
7459         * objects-x.c (x_print_font_instance):
7460         * objects-x.c (valid_x_font_name_p):
7461         * objects-x.c (truename_via_FONT_prop):
7462         * objects-x.c (truename_via_random_props):
7463         * objects-x.c (truename_via_XListFonts):
7464         * objects-x.c (x_font_truename):
7465         * objects-x.c (x_font_instance_truename):
7466         * objects-x.c (x_font_instance_properties):
7467         * objects-x.c (x_list_fonts):
7468         * objects-x.c (x_find_charset_font):
7469         Mule-ize entire file.
7470         [7].
7471
7472         * objects-x.h:
7473         Mule-verify.
7474
7475         * print.c:
7476         * print.c (std_handle_out_external):
7477         * print.c (debug_print_no_newline):
7478         * print.c (syms_of_print):
7479         Output to all debugger kinds in debug-print.
7480         Fix console-output code under MSWin to actually work.
7481
7482         * process-nt.c (send_signal):
7483         * process-nt.c (nt_create_process):
7484         Use newer Unicode macros.
7485
7486         * process-unix.c (unix_create_process):
7487         * process-unix.c (unix_canonicalize_host_name):
7488         * process-unix.c (unix_open_network_stream):
7489         [7].
7490
7491         * scrollbar-x.c:
7492         Mule-verify.
7493
7494         * search.c (syms_of_search):
7495         [2].
7496
7497         * select-msw.c (mswindows_destroy_selection):
7498         Use LIST_LOOP_2.
7499
7500         * select-x.c (symbol_to_x_atom):
7501         [7].
7502
7503         * select.c (syms_of_select):
7504         [2].
7505
7506         * sound.c (Fplay_sound_file):
7507         [7].
7508
7509         * specifier.c:
7510         * specifier.c (decode_specifier_type):
7511         * specifier.c (Fvalid_specifier_locale_type_p):
7512         * specifier.c (check_valid_locale_or_locale_type):
7513         * specifier.c (decode_locale):
7514         * specifier.c (decode_locale_type):
7515         * specifier.c (decode_locale_list):
7516         * specifier.c (check_valid_domain):
7517         * specifier.c (decode_specifier_tag_set):
7518         * specifier.c (Fcanonicalize_tag_set):
7519         * specifier.c (Fdefine_specifier_tag):
7520         * specifier.c (Fspecifier_tag_predicate):
7521         * specifier.c (check_valid_inst_list):
7522         * specifier.c (check_valid_spec_list):
7523         * specifier.c (decode_how_to_add_specification):
7524         * specifier.c (check_modifiable_specifier):
7525         * specifier.c (specifier_add_spec):
7526         * specifier.c (boolean_validate):
7527         * specifier.c (display_table_validate):
7528         [9].
7529
7530         * specifier.c (syms_of_specifier):
7531         Move some symbols to general-slots.h.
7532         [2].
7533
7534         * symbols.c:
7535         * symbols.c (Fmapatoms):
7536         * symbols.c (Fapropos_internal):
7537         Add GCPROs.
7538
7539         * symbols.c (set_default_buffer_slot_variable):
7540         * symbols.c (set_default_console_slot_variable):
7541         [1].
7542
7543         * symbols.c (defsymbol_massage_name_1):
7544         * symbols.c (defkeyword_massage_name):
7545         * symbols.c (deferror_1):
7546         * symbols.c (deferror):
7547         * symbols.c (deferror_massage_name_and_message):
7548         * symeval.h:
7549         * symeval.h (DEFSYMBOL):
7550         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7551
7552         * symbols.c (syms_of_symbols):
7553         [2].
7554
7555         * symsinit.h:
7556         * symsinit.h (init_win32): New.
7557         Also new is syms_of_dialog_mswindows.
7558
7559         * syswindows.h:
7560         Add new Unicode macros, missing Cygwin wide-char functions,
7561         convenience conversion macros for Qmswindows_tstr, macros for
7562         encapsulating required MSWin <-> Cygwin filename conversions,
7563         prototype for dynamically-extracted (not in NT 3.51) functions.
7564
7565         * toolbar-x.c:
7566         Mule-verify.
7567
7568         * tooltalk.c (Fadd_tooltalk_message_arg):
7569         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7570         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7571         [7].
7572
7573         * tooltalk.c (syms_of_tooltalk):
7574         [2].
7575
7576         * unexnt.c:
7577         * unexnt.c (unexec):
7578         Fix up headers, declaration of unexec() to be more standard.
7579
7580 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7581
7582         * offix.h: Revert change to guard macros - they're used in offix.c!
7583
7584 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7585
7586         * lisp.h: Defsubred Fdelete.
7587
7588         * console-msw.h:  (msprinter_default_printer): Added.
7589
7590         * console-msw.c (msprinter_canonicalize_console_connection):
7591         (msprinter_canonicalize_device_connection): Added.
7592
7593         * device-msw.c (msprinter_default_printer):
7594         (Fmswingows_get_default_printer):
7595         (signal_enum_priner_error):
7596         (Fmswingows_printer_list): Added.
7597
7598 2000-07-19  Martin Buchholz <martin@xemacs.org>
7599
7600         * XEmacs 21.2.35 is released.
7601
7602 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7603
7604         * select-x.c (x_handle_selection_request):
7605         Text selected in xemacs and pasted into xterm failed to appear.
7606         Spelling fixes and cosmetic changes.
7607
7608 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7609
7610         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7611         XEmacs frame (fix for doubling chars in dialog boxes).
7612
7613 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7614
7615         * select.c (select_convert_in, select_convert_out):
7616         Don't call intern() every time.
7617
7618         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7619         * select.c (vars_of_select): Initialise them.
7620
7621 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7622
7623         * select.c (selection-coercible-types): New.
7624
7625         * select.c (own-selection-internal):
7626         * select.c (get-selection-internal):
7627         MULE bug fix - these should default to COMPOUND_TEXT and not
7628         STRING for MULE. I think.
7629
7630         * select.c (select_convert_out): Use selection-coercible-types
7631         to find types that we can attempt to perform coercions on.
7632
7633 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7634
7635         * mule-wnnfns.c:
7636         * mule-canna.c:
7637         Add coding: cookie to identify encoding.
7638
7639         * mule-canna.c (CANNA_mode_keys): make static.
7640         Use proper prototypes, even for functions of no arguments.
7641         Remove external prototype for Fding().
7642
7643         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7644
7645         * select.c (syms_of_select): Add missing DEFSUBR.
7646
7647 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7648
7649         * select.c (get_selection_internal, own_selection_internal):
7650         Make the type default to STRING, rather than placing a nil type
7651         into Vselection_alist.
7652
7653 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7654
7655         * gpmevent.c (tty_selection_exists_p):
7656         * gpmevent.c (tty_own_selection):
7657         Updated parameter lists.
7658
7659 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7660
7661         * select.h (selection-alist): Removed declaration.
7662
7663         * select.h (get_local_selection):
7664         * select.c (get_local_selection):
7665         Made static.
7666
7667         * select.h (convert_selection): Removed declaration.
7668         * select.c (convert_selection): Removed.
7669         This function belongs in Lisp.
7670
7671         * select.h (select_convert_in): Declare.
7672         * select.h (select_convert_out): Declare.
7673         * select.c (select_convert_in): New.
7674         * select.c (select_convert_out): New.
7675         New conversion functions for other files to call.
7676
7677         * select.h (select_notify_buffer_kill): Declare.
7678         * select.c (select_notify_buffer_kill): New.
7679         New functions that get called from kill-buffer.
7680
7681         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7682         X-specific lisp code.
7683
7684         * select.h: Declare some of the lisp-visible functions for
7685         external use.
7686
7687         * select.c (clean_local_selection_data): Removed. This was
7688         a disgusting function, and previously should have been in
7689         select-x.c in any case. The functionality is now provided
7690         in select-convert-from-integer (select.el).
7691
7692         * select.c (available-selection-types): Fixed stupidity where
7693         INTEGER and ATOM got added twice. Also add STRING when we see an
7694         extent.
7695
7696         * select.c (get-selection-internal): Removed symbol stripping. No
7697         longer causes conversion when data comes from the internal cache.
7698
7699         * select.c (syms_of_select): Added new functions.
7700
7701         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7702         error checking - previously this called abort!
7703
7704         * select-x.c (x_own_selection): Changed comment.
7705
7706         * select-x.c (x_handle_selection_request): Use select_convert_out.
7707         Don't mess with selection-alist; it's an internal variable of select.c.
7708
7709         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7710
7711         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7712         rather than messing with selection-alist.
7713
7714         * select-msw.c (mswindows_get_foreign_selection):
7715         Use TO_INTERNAL_FORMAT rather than hacking.
7716
7717 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7718
7719         * process-unix.c (unix_open_multicast_group):
7720         (unix_open_multicast_group): Remove useless casts.
7721
7722 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7723
7724         * sound.c (Fplay_sound): Fix `unused variable' warning.
7725
7726         * emacs.c (main): Use correct type for _environ on SCO5.
7727
7728 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7729
7730         * console.h (own_selection_method):
7731         * console.h (selection_exists_p_method):
7732         * console.h (available_selection_types_method): New.
7733         * console.h (register_selection_data_type_method): New.
7734         * console.h (selection_data_type_name): New.
7735
7736         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7737         function & alist to track GlobalAlloc()'d handles that need
7738         releasing when the clipboard data gets replaced or emptied.
7739
7740         * event-msw.c (mswindows_wnd_proc): Call it.
7741
7742         * lisp.h, general.c (Qappend): New symbol representing a
7743         `how-to-add' mode.
7744
7745         * select.c (own-selection-internal):
7746         * select.c (selection-exists-p):
7747         * select.c (available-selection-types): New.
7748         * select.c (register-selection-data-type): New.
7749         * select.c (selection-data-type-name): New.  New functions to deal
7750         with device-specific selection data formats.
7751         * select.c (selection-converter-out-alist): Renamed.
7752         * select.c (selection-converter-in-alist): New.
7753         * select.c (selection-appender-alist): New.  Added new alists.
7754         * select.c (syms_of_select, vars_of_select): Added new symbols &
7755         variables.
7756         * select.c (get_local_selection): Split.
7757         * select.c: Removed spurious type checking - selections may now be
7758         of any type, not just strings.
7759         * select.c (own-selection-internal):
7760
7761         * select.h, select.c (convert_selection): New. Created
7762         convert_selection() function based on get_local_selection().
7763         * select.h, select.c (QCF_*): New symbols representing mswindows
7764         clipboard formats.
7765         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7766         symbols representing `how-to-add' modes.
7767
7768         * select-msw.c (x_sym_p): New.
7769         * select-msw.c (symbol_to_ms_cf): New.
7770         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7771         symbols & clipboard formats. Can also handle string names.
7772         * select-msw.c (mswindows_own_selection):
7773         * select-msw.c (mswindows_selection_exists_p):
7774         Added `data-type' parameter. Use it.
7775         * select-msw.c (mswindows_available_selection_types): New.
7776         * select-msw.c (mswindows_register_selection_data_type): New.
7777         * select-msw.c (mswindows_selection_data_type_name): New.
7778         * select-msw.c (mswindows_own_selection):
7779         * select-msw.c (mswindows_get_foreign_selection):
7780         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7781         * select-msw.c (console_create_select_mswindows): Added new methods.
7782         * select-msw.c (mswindows_destroy_selection): New.
7783         * select-msw.c (Vhandle_alist): New list.
7784         * select-msw.c (mswindows_own_selection):
7785
7786         * select-x.c (x_own_selection):
7787         * select-x.c (x_selection_exists_p):
7788         * select-x.c: Added some comments about maybe using new
7789         functionality.
7790         * select-x.c (x_own_selection):
7791
7792         * specifier.c: Remove definition of Qappend (now in general.c)
7793         * specifier.c (syms_of_specifier): Remove Qappend.
7794
7795 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7796
7797         * config.h.in: Add socklen_t.
7798
7799         * s/decosf4-0.h: No special compiler flags needed or desired.
7800         In particular, undefine _BSD for DEC OSF 4.0.
7801
7802 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7803
7804         * redisplay-msw.c (msprinter_frame_output_end): Added.
7805         (console_type_create_redisplay_mswindows): Referred the above.
7806
7807         * frame.c (setup_frame_without_minibuffer): Do not create a
7808         default minibuffer frame on a printer device.
7809
7810         * frame-msw.c (apply_dc_geometry): Added.
7811         (msprinter_start_page):
7812         (msprinter_init_frame_3):
7813         (msprinter_eject_page): Use it.
7814
7815         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7816         and removed residual duplex and orientation properties.
7817
7818 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7819
7820         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7821
7822         * unexalpha.c: Remove system prototypes from C sources!
7823
7824 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7825
7826         * eval.c: Remove references to M-x edit-options in DEFUNs for
7827         `defvar' and `defconst'.
7828
7829 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7830
7831         * config.h.in: Remove SMART_INCLUDE hackery.
7832
7833         PostgreSQL hacking:
7834         * config.h.in: Don't use SMART_INCLUDE.
7835
7836         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7837         * inline.c: Simply #include "postgresql.h"
7838         * postgresql.c:
7839         - Don't use SMART_INCLUDE
7840         - Use simply "const".
7841         - Use standard doc string conventions.
7842         - Use correct type for result of PQstatus.
7843
7844 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7845
7846         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7847
7848         C++ compilation changes.
7849         * config.h.in (EXTERN_C): Define.
7850         * config.h.in (not): This is also a C++ keyword.
7851         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7852         * cm.c: Use EXTERN_C.
7853         * redisplay-tty.c: Use EXTERN_C.
7854         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7855
7856 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7857
7858         * general.c: Remove duplicate definition for Qfunction.
7859
7860 2000-07-08  Ben Wing  <ben@xemacs.org>
7861
7862         * device-msw.c (msprinter_init_device):
7863         * device-msw.c (sync_printer_with_devmode):
7864         * device-msw.c (handle_devmode_changes):
7865         * device-msw.c (print_dialog_worker):
7866         * device-msw.c (Fmsprinter_apply_settings):
7867         * device-msw.c (hash_devmode):
7868         * device-msw.c (Fmsprinter_settings_despecialize):
7869         use Qmswindows_tstr, not Qctext.
7870
7871         * vm-limit.c (check_memory_limits):
7872         avoid infinite loop printing warning messages.
7873
7874 2000-07-05  Craig Lanning  <lanning@scra.org>
7875
7876         * Makefile.in.in: Add support for including the Windows resources
7877         when building with the cygwin and mingw targets.
7878
7879         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7880         not set or not correct.
7881         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7882         (init_initial_directory): Don't try to use $PWD on the
7883         WIN32_NATIVE target.
7884
7885         * s\cygwin32.h:
7886         [[Add -mwindows to eliminate console window.]] not required --ben
7887         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7888         (MAIL_USE_POP): removed; now handled by configure.
7889
7890         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7891         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7892         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7893         (MAIL_USE_POP): removed; now handled by configure.
7894         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7895         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7896         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7897         constant string.
7898         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7899         up from <winsock.h> via systime.h.
7900         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7901         (getpagesize): from Dan Holmsand, added.
7902         Added #endif which was left dangling by Ben's mega patch; added
7903         comment to help prevent this in the future.
7904
7905         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7906
7907 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7908
7909         * console-msw.h (struct mswindows_device): Removed unnecessary
7910         cached device geometry values.
7911         Added update_tick and an accessor macro.
7912         (Lisp_Devmode): Added lrecord declaration.
7913         (struct msprinter_device): Contain devmode as a Lisp object.
7914         Added mswindows_get_selected_frame_hwnd();
7915
7916         * console.h (struct console_methods): Indentation nitpicking.
7917
7918         * device-msw.c (mswindows_init_device): Do not initialize geometry
7919         cache. Initialize update tick.
7920         (mswindows_device_system_metrics): Ask the device for its geometry.
7921         (global_free_2_maybe):
7922         (devmode_to_hglobal):
7923         (handle_printer_changes):
7924         (ensure_not_printing):
7925         (print_dialog_worker):
7926         (Fmsprinter_print_setup_dialog):
7927         (Fmsprinter_print_dialog):
7928         (plist_get_margin):
7929         (plist_set_margin):
7930         (Fmsprinter_page_setup_dialog): Added functions.
7931         (sync_printer_with_devmode):
7932         (handle_devmode_changes):
7933         (Fmsprinter_get_settings):
7934         (Fmsprinter_select_settings):
7935         (Fmsprinter_apply_settings):
7936         (allocate_devmode):
7937         (Fmsprinter_settings_copy):
7938         (Fmsprinter_settings_despecialize):
7939         (print_devmode):
7940         (finalize_devmode):
7941         (equal_devmode):
7942         (hash_devmode): Added functions
7943         (syms_of_device_mswindows): Init devmode lrecord class.
7944
7945         * device.h: Added an exfun for find-device.
7946
7947         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7948         geometry; although, recreate the device compatible DC.
7949
7950         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7951         (msprinter_init_frame_3):
7952         (msprinter_frame_property):
7953         (msprinter_internal_frame_property_p):
7954         (msprinter_frame_properties):
7955         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7956         print job properties (will move to device settings).
7957
7958         * lisp.h: Added symbols.
7959
7960         * general.c (syms_of_general): Declared them.
7961
7962         * hash.c (string_hash): Added.
7963
7964         * lrecord.h (lrecord_type): Added devmode lrecord type.
7965
7966 2000-07-02  Mike Sperber <mike@xemacs.org>
7967
7968         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7969         FreeBSD 4.0.
7970
7971 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7972
7973         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7974         integer.
7975
7976 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7977
7978         * data.c (Fstring_to_number): Don't recognize floating point if
7979         base is not 10.
7980
7981 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7982
7983         * glyphs-widget.c (tab_control_query_geometry):
7984         (widget_query_geometry):
7985         (button_query_geometry):
7986         * glyphs.c (text_query_geometry):
7987         Enforce type correctness.
7988
7989 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7990
7991         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7992         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7993
7994 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7995
7996         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7997         conflicts with gcc's fixincluded version of FOO.h.
7998
7999         * glyphs.h (image_instance_geometry): Remove trailing `,'
8000
8001 2000-06-08  Mike Alexander  <mta@arbortext.com>
8002
8003         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8004         (shove_thread): Don't write the same output twice
8005         (make_ntpipe_output_stream): Increase priority of shove thread
8006         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8007         chance to run
8008         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8009         it.
8010
8011 2000-06-12  Ben Wing  <ben@xemacs.org>
8012
8013         * s\mingw32.h (sigset):
8014         * s\windowsnt.h (sigset):
8015         rename msw_ to mswindows_ for consistency with general convention.
8016
8017 2000-06-12  Ben Wing  <ben@xemacs.org>
8018
8019         * console-msw.c:
8020         * console-msw.c (mswindows_get_console_hwnd):
8021         * console-msw.c (mswindows_ensure_console_allocated):
8022         * console-msw.c (mswindows_hide_console):
8023         * console-msw.c (mswindows_show_console):
8024         * console-msw.c (mswindows_ensure_console_buffered):
8025         * console-msw.c (mswindows_output_console_string):
8026         * console-msw.c (mswindows_windows9x_p):
8027         * console-msw.h:
8028         * device-msw.c (mswindows_get_workspace_coords):
8029         * device-msw.c (mswindows_device_system_metrics):
8030         * dialog-msw.c (mswindows_popup_dialog_box):
8031         * event-msw.c (mswindows_wnd_proc):
8032         * frame-msw.c (mswindows_size_frame_internal):
8033         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8034         * menubar-msw.c (displayable_menu_item):
8035         * menubar-msw.c (mswindows_char_is_accelerator):
8036         * nt.c:
8037         * nt.c (mswindows_sigset):
8038         * nt.c (mswindows_sigrelse):
8039         * nt.c (mswindows_sigpause):
8040         * nt.c (mswindows_raise):
8041         * nt.c (timer_proc):
8042         * ntproc.c:
8043         * ntproc.c (find_child_console):
8044         * ntproc.c (sys_kill):
8045         * print.c:
8046         * print.c (std_handle_out_external):
8047         * process-nt.c (find_child_console):
8048         * process-nt.c (send_signal_the_95_way):
8049         * process-nt.c (ensure_console_window_exists):
8050         * process-nt.c (nt_create_process):
8051         * syssignal.h:
8052         rename msw_ to mswindows_ for consistency with general convention.
8053
8054         * emacs.c:
8055         * dumper.c:
8056         include nt.h, not syswindows.h.
8057
8058         * nt.c (mswindows_fstat):
8059         * nt.c (mswindows_stat):
8060         prefix mswindows_ instead of attempting to directly override the
8061         library functions.  fix declarations.
8062
8063         * nt.h:
8064         include syswindows.h.  move some sysdep.h stuff here.
8065
8066         * ntheap.h:
8067         include syswindows.h, not <windows.h>.
8068
8069         * ntplay.c:
8070         clean up headers.
8071
8072         * sysdep.c:
8073         clean up headers.
8074
8075         * sysdep.c (sys_fstat):
8076         * sysdep.c (sys_stat):
8077         call mswindows versions when appropriate.
8078
8079         * sysdep.h:
8080         move mswin decls to nt.h.
8081
8082         * syswindows.h:
8083         add long comment describing appropriate use of the various windows
8084         headers.
8085
8086 2000-06-11  Ben Wing  <ben@xemacs.org>
8087
8088         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8089
8090 2000-06-10  Ben Wing  <ben@xemacs.org>
8091
8092         * Makefile.in.in (release):
8093         Correction to make sure xemacs.exe always dumped when correct.
8094
8095         * alloca.c:
8096         * balloon_help.c:
8097         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8098
8099         * buffer.c (set_buffer_internal):
8100         [[[[2]]]]: Remove HAVE_FEP code.
8101
8102         * buffer.c (init_initial_directory):
8103         [3].
8104
8105         * bytecode.c:
8106         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8107         individual files.
8108
8109         * callproc.c:
8110         * callproc.c (call_process_cleanup):
8111         * callproc.c (Fold_call_process_internal):
8112         * callproc.c (child_setup):
8113         * callproc.c (getenv_internal):
8114         * callproc.c (init_callproc):
8115         * callproc.c (vars_of_callproc):
8116         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8117         __CYGWIN32__ -> CYGWIN.
8118         DOS_NT -> WIN32_NATIVE.
8119         Remove MSDOS support/references, converting to WIN32_NATIVE
8120           where correct.
8121         __MINGW32__ -> MINGW.
8122         Fix windows.h includes.
8123         Remove bogus HAVE_NTGUI.
8124
8125         * config.h.in:
8126         [2].
8127
8128         * console-msw.c:
8129         mswindows_message_outputted added for use in allowing startup
8130         errors on the console to be seen.
8131
8132         * console-msw.c (msw_ensure_console_allocated):
8133         * console-msw.c (msw_output_console_string):
8134         * console-msw.c (DHEADER):
8135         * console-msw.c (DOPAQUE_DATA):
8136         * console-msw.c (DEVENT):
8137         * console-msw.c (DCONS):
8138         * console-msw.c (DCONSCDR):
8139         * console-msw.c (DSTRING):
8140         * console-msw.c (DVECTOR):
8141         * console-msw.c (DSYMBOL):
8142         * console-msw.c (DSYMNAME):
8143         Fix warnings.
8144
8145         * console-stream.c (stream_init_console):
8146         Fix text/binary problems.
8147
8148         * device-msw.c:
8149         * device-msw.c (mswindows_finish_init_device):
8150         * device-msw.c (mswindows_delete_device):
8151         [1].
8152
8153         * device.c (handle_asynch_device_change):
8154         [3].
8155
8156         * dgif_lib.c:
8157         * dgif_lib.c (DGifOpenFileName):
8158         * dgif_lib.c (DGifOpenFileHandle):
8159         * dgif_lib.c (DGifGetLine):
8160         * dgif_lib.c (DGifGetPixel):
8161         Added config.h/lisp.h, fix up includes.
8162         [1].
8163
8164         * dired-msw.c:
8165         [4].
8166
8167         * dired.c:
8168         * dired.c (file_name_completion):
8169         * dired.c (Ffile_attributes):
8170         * dired.c (syms_of_dired):
8171         [1].
8172
8173         * dumper.c:
8174         * dumper.c (pdump_file_unmap):
8175         * dumper.c (pdump_load):
8176         [1].
8177
8178         * editfns.c:
8179         * editfns.c (Ftemp_directory):
8180         * editfns.c (user_login_name):
8181         * editfns.c (Fuser_real_login_name):
8182         * editfns.c (get_home_directory):
8183         [1].
8184
8185         * elhash.c (finish_marking_weak_hash_tables):
8186         [[[[5]]]]: Fix GCC warnings.
8187
8188         * emacs.c:
8189         * emacs.c (mswindows_handle_hardware_exceptions):
8190         * emacs.c (make_arg_list_1):
8191         * emacs.c (main_1):
8192         * emacs.c (Fkill_emacs):
8193         * emacs.c (Fdump_emacs):
8194         [1].
8195         Fix problems with nested crashes, add long comment.
8196
8197         * event-Xt.c (init_event_Xt_late):
8198         [1].
8199
8200         * event-msw.c:
8201         * event-msw.c (mswindows_dde_callback):
8202         * event-msw.c (mswindows_handle_sticky_modifiers):
8203         * event-msw.c (mswindows_wnd_proc):
8204         [1].
8205         [5].
8206
8207         * events.c (character_to_event):
8208         [1].
8209
8210         * fileio.c:
8211         * fileio.c (Ffile_name_directory):
8212         * fileio.c (Ffile_name_nondirectory):
8213         * fileio.c (directory_file_name):
8214         * fileio.c (Fexpand_file_name):
8215         * fileio.c (Fsubstitute_in_file_name):
8216         * fileio.c (Ffile_name_absolute_p):
8217         * fileio.c (check_executable):
8218         * fileio.c (Ffile_readable_p):
8219         * fileio.c (Ffile_accessible_directory_p):
8220         * fileio.c (Ffile_modes):
8221         * fileio.c (Funix_sync):
8222         * fileio.c (vars_of_fileio):
8223         [1]. [4].
8224
8225         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8226
8227         Expand getdefdir defn.
8228         Fix bogus rename() comment.
8229
8230         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8231         to use standard XEmacs include files, e.g. sysfile.h, rather
8232         than system-specific includes.
8233
8234         * fns.c:
8235         * fns.c (Fsubseq):
8236         [5]. [6].
8237
8238         * frame.c (vars_of_frame):
8239         [1].
8240
8241         * getloadavg.c:
8242         * getloadavg.c (getloadavg):
8243         [1]. [6].
8244         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8245         (We don't use it elsewhere in the code; just add a comment.)
8246
8247         * gif_io.c:
8248         [6].
8249         Add config.h.
8250
8251         * glyphs-msw.c:
8252         * glyphs-msw.c (mswindows_resource_instantiate):
8253         [1].
8254
8255         * glyphs-x.c (x_native_layout_instantiate):
8256         [5].
8257
8258         * gui-msw.c (Fmswindows_shell_execute):
8259         [1].
8260
8261         * insdel.c:
8262         [4].
8263
8264         * lisp.h:
8265         [4]. [5].
8266
8267         * lread.c (locate_file_in_directory_mapper):
8268         [1].
8269
8270         * lstream.c:
8271         [4].
8272
8273         * mem-limits.h:
8274         * mem-limits.h (get_lim_data):
8275         [1].
8276
8277         * menubar-msw.c:
8278         [4].
8279
8280         * ndir.h:
8281         [1].
8282
8283         * nt.c:
8284         * nt.c (getwd):
8285         * nt.c (closedir):
8286         * nt.c (rva_to_section):
8287         * nt.c (mswindows_executable_type):
8288         [1]. [6].
8289         Fix closedir() defn.
8290
8291         * nt.h:
8292         [[[[8]]]]: *_OK defs moved to sysfile.h.
8293
8294         * ntproc.c:
8295         [6]. [7].
8296
8297         * objects-x.c:
8298         [4].
8299
8300         * print.c:
8301         * print.c (std_handle_out_external):
8302         [1]. [4].
8303
8304         * process-nt.c:
8305         * process-nt.c (nt_create_process):
8306         [6].
8307         try to fix process quoting somewhat.
8308
8309         * process-unix.c (unix_create_process):
8310         [1].
8311
8312         * process.c:
8313         * process.c (vars_of_process):
8314         Add Vnull_device.
8315
8316         * process.h:
8317         [1].
8318
8319         * realpath.c:
8320         * realpath.c (xrealpath):
8321         [1].
8322
8323         * redisplay-tty.c (init_tty_for_redisplay):
8324         [3].
8325
8326         * redisplay.c:
8327         [4]. [6].
8328
8329         * scrollbar-msw.c:
8330         [4].
8331
8332         * sheap.c:
8333         * sheap.c (more_static_core):
8334         * sheap.c (report_sheap_usage):
8335         [5]. [6].
8336
8337         * signal.c:
8338         * signal.c (alarm_signal):
8339         [1]. [6].
8340
8341         * sound.c:
8342         [6].
8343
8344         * strftime.c:
8345         * strftime.c (zone_name):
8346         [1]. [5].
8347
8348         * symsinit.h (init_sunpro):
8349         [1].
8350
8351         * syscommctrl.h:
8352         commctrl.h not in Cygwin b20.1.
8353
8354         * sysdep.c:
8355         * sysdep.c (endif):
8356         * sysdep.c (sys_subshell):
8357         * sysdep.c (init_baud_rate):
8358         * sysdep.c (emacs_get_tty):
8359         * sysdep.c (emacs_set_tty):
8360         * sysdep.c (tty_init_sys_modes_on_device):
8361         * sysdep.c (init_system_name):
8362         * sysdep.c (sys_open):
8363         * sysdep.c (interruptible_open):
8364         * sysdep.c (sys_fopen):
8365         * sysdep.c (sys_mkdir):
8366         * sysdep.c (sys_rename):
8367         * sysdep.c (get_process_times_1):
8368         [1]. [6].
8369
8370         * sysdep.h:
8371         [1].
8372
8373         * sysdir.h:
8374         * sysdir.h (DIRENTRY_NONEMPTY):
8375         [1]. [6].
8376
8377         * sysdll.c (dll_init):
8378         * sysdll.h:
8379         [1].
8380
8381         * sysfile.h:
8382         [1]. [6]. [8].
8383         added text/binary defs.
8384
8385         * sysfloat.h:
8386         [1].
8387
8388         * sysproc.h:
8389         * sysproc.h (EDESTADDRREQ):
8390         * sysproc.h (poll_fds_for_input):
8391         [1]. [6].
8392
8393         * syspwd.h:
8394         [6].
8395
8396         * syssignal.h:
8397         [1].
8398
8399         * systime.h:
8400         [1]. [6].
8401
8402         * systty.h:
8403         [1].
8404
8405         * syswindows.h:
8406         [1].
8407         Always define WIN32_LEAN_AND_MEAN.
8408
8409         * unexcw.c (unexec):
8410         [5].
8411
8412         * unexec.c:
8413         * unexec.c (copy_text_and_data):
8414         * unexec.c (adjust_lnnoptrs):
8415         [1].
8416
8417         * unexnt.c:
8418         * unexnt.c (_start):
8419         [1].
8420
8421 2000-06-07  Ben Wing  <ben@xemacs.org>
8422
8423         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8424         was used only as a model.  We've long since extracted any useful
8425         logic or code out of this. (I just did an exhaustive search.)
8426
8427         * s\msdos.h: Removed.
8428
8429         * s\windows95.h: Removed.
8430
8431 2000-06-10  Ben Wing  <ben@xemacs.org>
8432
8433         * s\cygwin32.h:
8434         [1]. [5].
8435         Don't use extern with fun defs.
8436
8437         * s\mingw32.h:
8438         [1]. [7].
8439         Remove nt\inc include.
8440         Remove getdisk, getdefdir. (The former is unused, the latter
8441         expanded in fileio.h.)
8442
8443         * s\windowsnt.h:
8444         * s\windowsnt.h (WIN32_NATIVE):
8445         * s\windowsnt.h (HAVE_STRCASECMP):
8446         [1]. [7].
8447         Add long comment about preprocessor changes.
8448         Remove getdisk, getdefdir. (The former is unused, the latter
8449         expanded in fileio.h.)
8450
8451 2000-06-10  Ben Wing  <ben@xemacs.org>
8452
8453         * m\arm.h:
8454         * m\delta.h:
8455         * m\intel386.h:
8456         * m\sequent.h:
8457         * m\template.h:
8458         * m\windowsnt.h:
8459         [1].
8460         Remove bogus/unused NO_SOCK_SIGIO.
8461
8462 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8463
8464         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8465         not an Emchar.
8466
8467 2000-06-04  Mike Sperber <mike@xemacs.org>
8468
8469         * casetab.c (set_case_table): For `set-standard-case-table',
8470         actually deposit the new case tables where the rest of XEmacs can
8471         see them.
8472
8473 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8474
8475         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8476
8477 2000-06-05  Ben Wing  <ben@xemacs.org>
8478
8479         * callproc.c (child_setup): Don't do close_load_descs() under
8480         MS Windows.  Put in a comment explaining why.
8481
8482 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8483
8484         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8485         Toolkit shell" which breaks `kill-compilation' on Windows NT
8486         native, retaining STDERR handling improvements.
8487
8488 2000-06-01  Andreas Jaeger  <aj@suse.de>
8489
8490         * s/s390.h: Support for S390, based on a patch by Martin
8491         Schwidefsky <schwidefsky@de.ibm.com>.
8492
8493 2000-05-30  Andy Piper  <andy@xemacs.org>
8494
8495         * window.c (allocate_window):
8496         (make_dummy_parent):
8497         (Fset_window_configuration): use new hashtable type.
8498
8499         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8500         (struct image_instantiator_methods):
8501         (struct Lisp_Image_Instance): make instance geometry signed.
8502
8503         * glyphs.c (instantiate_image_instantiator):
8504         (image_instance_query_geometry):
8505         (image_instance_layout):
8506         (image_instance_layout):
8507         (query_string_geometry):
8508         (text_query_geometry):
8509         (image_instantiate):
8510         (image_instantiate):
8511         (cache_subwindow_instance_in_frame_maybe):
8512         (subwindow_query_geometry): make instance geometry signed.
8513
8514         * glyphs-widget.c (widget_query_geometry):
8515         (widget_layout):
8516         (button_query_geometry):
8517         (tree_view_query_geometry):
8518         (tab_control_query_geometry):
8519         (layout_query_geometry):
8520         (layout_layout):
8521         (native_layout_layout): make instance geometry signed.
8522
8523 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8524
8525         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8526         constant.
8527
8528         * general.c (syms_of_general): Add Qfull_assoc symbol.
8529
8530         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8531         correctly.
8532         (decode_weak_list_type): Decode full-assoc type.
8533         (encode_weak_list_type): Encode full-assoc type.
8534         (Fmake_weak_list): Update doc string.
8535
8536 2000-05-30  Andy Piper  <andy@xemacs.org>
8537
8538         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8539
8540         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8541         (decode_hash_table_weakness): ditto.
8542         (Fhash_table_weakness): ditto.
8543         (Fhash_table_type): ditto.
8544         (finish_marking_weak_hash_tables): ditto.
8545         (hash_table_weakness_validate): ditto.
8546         (syms_of_elhash): ditto.
8547
8548 2000-05-28  Martin Buchholz <martin@xemacs.org>
8549
8550         * XEmacs 21.2.34 is released.
8551
8552 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8553
8554         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8555         start cache.
8556         (updating_line_start_cache): Gone.
8557         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8558         generic code to force a minimum of 1 line laid out in the
8559         CMOTION_DISP case.
8560
8561 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8562
8563         * glyphs.c (instantiate_image_instantiator): Check for initialized
8564         height & width no longer special cases IMAGE_NOTHING.
8565         (nothing_instantiate): Set height and width of instance.
8566
8567 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8568
8569         * unexelf.c (unexec): Search for ".data" section.
8570         Initialize new_data2_offset from old_data_index.
8571         Remove redundant check for ElfW.
8572
8573 2000-05-23  Andy Piper  <andy@xemacs.org>
8574
8575         * glyphs.c (get_image_instantiator_governing_domain): allow more
8576         specific domains as the governing domain rather than expecting an
8577         exact match. This fixes problems with layouts.
8578
8579 2000-05-22  Andy Piper  <andy@xemacs.org>
8580
8581         * redisplay-output.c (compare_runes): check for non-images
8582
8583         * glyphs.c (set_glyph_dirty_p): ditto.
8584         (update_glyph_cachel_data): ditto.
8585
8586         * glyphs-widget.c (layout_post_instantiate): ditto.
8587         (layout_post_instantiate): ditto.
8588
8589         * event-msw.c (mswindows_wnd_proc): warning removal.
8590
8591 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8592
8593         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8594
8595         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8596
8597         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8598
8599         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8600         (mswindows_executable_type): mingw32 now has enough headers for
8601         this to work.
8602
8603 2000-05-20  Andy Piper  <andy@xemacs.org>
8604
8605         * console-msw.c (mswindows_output_last_error): ; -> ,
8606
8607 2000-05-12  Andy Piper  <andy@xemacs.org>
8608
8609         * console-msw.c (FROB): compare ints with ints.
8610
8611 2000-05-11  Andy Piper  <andy@xemacs.org>
8612
8613         * glyphs-x.c (x_finalize_image_instance): make minimal build
8614         happy.
8615
8616 2000-05-20  Ben Wing  <ben@xemacs.org>
8617
8618         * event-Xt.c:
8619         * event-Xt.c (vars_of_event_Xt):
8620         move modifier-keys-are-sticky to event-stream.c.
8621
8622         * event-msw.c:
8623         * event-msw.c (mswindows_enqueue_mouse_button_event):
8624         * event-msw.c (key_needs_default_processing_p):
8625         * event-msw.c (XEMSW_LCONTROL):
8626         * event-msw.c (mswindows_handle_sticky_modifiers):
8627         * event-msw.c (FROB):
8628         * event-msw.c (clear_sticky_modifiers):
8629         * event-msw.c (output_modifier_keyboard_state):
8630         * event-msw.c (output_alt_keyboard_state):
8631         * event-msw.c (mswindows_wnd_proc):
8632         * event-msw.c (mswindows_modifier_state):
8633         * event-msw.c (emacs_mswindows_handle_magic_event):
8634         implement sticky modifiers.
8635
8636         * event-stream.c:
8637         * event-stream.c (vars_of_event_stream):
8638         move modifier-keys-are-sticky here.
8639
8640         * lisp.h:
8641         add CHECK_FUNCTION.
8642
8643         * rangetab.c:
8644         implement map-range-table.
8645
8646
8647 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8648
8649         * redisplay-tty.c (reset_tty_modes):
8650         (tty_redisplay_shutdown): Adjust argument type to
8651         tty_frame_output_end.
8652
8653 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8654
8655         * eval.c (Fbacktrace): Don't output a line with only right
8656         parenthesis.
8657
8658 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8659
8660         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8661         (Fpq_reset_poll): Ditto.
8662
8663 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8664
8665         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8666
8667 2000-05-16  Ben Wing  <ben@xemacs.org>
8668
8669         * buffer.c:
8670         * buffer.c (dfc_convert_to/from_internal_format):
8671         * buffer.c (reinit_vars_of_buffer):
8672         Fix conversion functions to allow reentrancy.
8673
8674         * console-msw.c:
8675         * console-msw.c (mswindows_output_last_error):
8676         New fun, generally useful -- output a human-readable
8677         version of GetLastError() on the console.
8678
8679         * console-msw.h:
8680         * console-msw.h (struct mswindows_frame):
8681         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8682
8683         * console-stream.c (stream_output_begin):
8684         * console-stream.c (stream_output_end):
8685         * console-stream.c (stream_output_vertical_divider):
8686         * console-stream.c (stream_clear_region):
8687         * console-stream.c (stream_flash):
8688         * console-stream.c (console_type_create_stream):
8689         Delete blank stream methods, not needed.
8690
8691         * console.h (struct console_methods):
8692         Split begin/end methods into window and frame.
8693
8694         * event-msw.c:
8695         * event-msw.c (mswindows_handle_paint):
8696         * event-msw.c (output_alt_keyboard_state):
8697         * event-msw.c (mswindows_wnd_proc):
8698         * event-msw.c (vars_of_event_mswindows):
8699         Comment about problems with ignored-expose.
8700         Define mswindows-debug-events; not really implemented.
8701
8702         * frame-msw.c (mswindows_init_frame_1):
8703         random cleanups.
8704
8705         * glyphs-msw.c:
8706         * glyphs-msw.c (begin_defer_window_pos):
8707         * glyphs-msw.c (mswindows_unmap_subwindow):
8708         * glyphs-msw.c (mswindows_map_subwindow):
8709         * glyphs-msw.c (mswindows_resize_subwindow):
8710         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8711
8712         * glyphs.c (make_image_instance_1):
8713         Fix crash.
8714
8715         * gutter.c (Fredisplay_gutter_area):
8716         Use new begin/end methods.
8717
8718         * lisp.h (Dynarr_new2):
8719         New creation fun.
8720
8721         * redisplay-msw.c:
8722         * redisplay-msw.c (mswindows_frame_output_begin):
8723         * redisplay-msw.c (mswindows_frame_output_end):
8724         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8725         New begin/end methods -- handle DeferWindowPos.
8726
8727         * redisplay-output.c (redisplay_move_cursor):
8728         * redisplay-output.c (redraw_cursor_in_window):
8729         * redisplay-output.c (redisplay_update_line):
8730         * redisplay-output.c (redisplay_output_window):
8731         New begin/end methods.
8732
8733         * redisplay-tty.c:
8734         * redisplay-tty.c (tty_frame_output_begin):
8735         * redisplay-tty.c (tty_frame_output_end):
8736         * redisplay-tty.c (console_type_create_redisplay_tty):
8737         New begin/end methods.
8738
8739         * redisplay-x.c:
8740         * redisplay-x.c (x_window_output_begin):
8741         * redisplay-x.c (x_window_output_end):
8742         * redisplay-x.c (console_type_create_redisplay_x):
8743         New begin/end methods.
8744
8745         * redisplay.c (redisplay_frame):
8746         * redisplay.c (Fredisplay_echo_area):
8747         New begin/end methods.
8748         use MAYBE_DEVMETH for clear_frame; it may not exist.
8749
8750         * window.h (WINDOW_XFRAME):
8751         WINDOW_XFOO macros -- get locale and decode struct pointer.
8752
8753
8754 2000-05-12  Ben Wing  <ben@xemacs.org>
8755
8756         * emacs.c:
8757         * emacs.c (ensure_no_quitting_from_now_on):
8758         * emacs.c (fatal_error_signal):
8759         * emacs.c (mswindows_handle_hardware_exceptions):
8760         * emacs.c (main):
8761         * emacs.c (Fkill_emacs):
8762         * emacs.c (shut_down_emacs):
8763         * emacs.c (assert_failed):
8764         various improvements in fatal error handling.
8765
8766         * eval.c:
8767         move preparing_for_armageddon to emacs.c.
8768
8769         * lisp.h:
8770         declare fatal_error_in_progress.
8771
8772         * print.c:
8773         * print.c (std_handle_out_external):
8774         * print.c (std_handle_out_va):
8775         * print.c (stderr_out):
8776         * print.c (stdout_out):
8777         use console under mswin when no standard output.
8778         don't do code conversion during fatal error.
8779
8780         * scrollbar.c (Fscrollbar_page_up):
8781         * scrollbar.c (Fscrollbar_page_down):
8782         fix missing else.  reindent.
8783
8784 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8785
8786         Emergency fix.
8787
8788         * glyphs.h (GLYPH_CACHEL_DESCENT):
8789         (GLYPH_CACHEL_DESCENT):
8790         (GLYPH_CACHEL_DESCENT):
8791         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8792         used in case these are inline functions.
8793         Use more absurd values to error check.
8794
8795         include window.h for error check functions.
8796
8797 2000-05-11  Ben Wing  <ben@xemacs.org>
8798
8799         * cmdloop.c (Freally_early_error_handler):
8800         Display message box under windows; otherwise, message will disappear
8801         before it can be viewed.
8802
8803         * console-msw.c:
8804         * console-msw.c (Fmswindows_message_box):
8805         * console-msw.c (FROB):
8806         * console-msw.c (syms_of_console_mswindows):
8807         Define new fun `mswindows-message-box'.
8808         #### I will merge this into `popup-dialog-box'; just give me
8809         a bit of time.
8810
8811         * general.c:
8812         * general.c (syms_of_general):
8813         Some new symbols used in `mswindows-message-box'.
8814
8815         * glyphs.c:
8816         * glyphs.c (Fset_image_instance_property):
8817         put warning in this fun.
8818
8819         * glyphs.h:
8820         * glyphs.h (GLYPH_CACHEL_WIDTH):
8821         * glyphs.h (GLYPH_CACHEL_ASCENT):
8822         * glyphs.h (GLYPH_CACHEL):
8823         * glyphs.h (GLYPH_CACHEL_GLYPH):
8824         define error-checking versions to try to catch a bug i've seen --
8825         redisplay gets in an infinite loop because the glyph width of the
8826         continuation glyph is 65535.
8827
8828         * lisp.h:
8829         Extern message-box stuff.
8830
8831         * window.c (allocate_window):
8832         * window.c (make_dummy_parent):
8833         * window.c (Fset_window_configuration):
8834         Use EQUAL not EQ for subwindow caches to make them work a bit
8835         better. (Something is still very broken.)
8836
8837
8838 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8839
8840         * glyphs.c (image_instantiate): Suppress gcc warnings.
8841         (Fmake_image_instance): Fix doc string.
8842         * specifier.c (Fmake_specifier): Ditto.
8843
8844 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8845
8846         * paths.h.in (PATH_LOCK): Removed.
8847         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8848         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8849
8850 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8851
8852         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8853         Document (featurep '(and xemacs 21.02)).
8854
8855 2000-05-09  Ben Wing  <ben@xemacs.org>
8856
8857         * buffer.c (complex_vars_of_buffer):
8858         update modeline-format doc.
8859
8860         * device.h:
8861         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8862
8863         * emacs.c:
8864         timeline of all released versions of Emacs, for use in creating
8865         authorship comments and in synching up.
8866
8867         * glyphs-widget.c (image_instantiator_buttons):
8868         * glyphs-widget.c (image_instantiator_edit_fields):
8869         * glyphs-widget.c (image_instantiator_combo_box):
8870         * glyphs-widget.c (image_instantiator_scrollbar):
8871         * glyphs-widget.c (image_instantiator_progress_guage):
8872         * glyphs-widget.c (image_instantiator_tree_view):
8873         * glyphs-widget.c (image_instantiator_tab_control):
8874         * glyphs-widget.c (image_instantiator_labels):
8875         * glyphs-widget.c (image_instantiator_layout):
8876         * glyphs-widget.c (image_instantiator_native_layout):
8877         rename decode_domain method to governing_domain.
8878
8879         * glyphs.c:
8880         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8881         * glyphs.c (add_entry_to_device_ii_format_list):
8882         make sure we don't put an entry more than once into the list.
8883         * glyphs.c (check_instance_cache_mapper):
8884         *************************************************************
8885         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8886         HAVE BEEN GETTING.
8887         *************************************************************
8888         * glyphs.c (get_image_instantiator_governing_domain):
8889         clean up, expand on new concept of governing domain.
8890         * glyphs.c (instantiate_image_instantiator):
8891         * glyphs.c (allocate_image_instance):
8892         use governing_domain instead of cache_domain in naming.
8893         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8894         * glyphs.c (make_image_instance_1):
8895         * glyphs.c (Fmake_image_instance):
8896         allow for any domain (not just device), and process the
8897         governing domain correctly.  very big doc fix.
8898         * glyphs.c (Fimage_instance_domain):
8899         new primitive, to retrieve the governing domain of an image instance.
8900         * glyphs.c (image_instantiate):
8901         use new governing_domain stuff.  this fixes a crash you could get
8902         by instantiating certain widget glyphs in frame locales. (should
8903         signal an error instead of crashing.)
8904         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8905         * glyphs.c (Fglyphp): clean up doc.
8906         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8907         * glyphs.c (syms_of_glyphs):
8908         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8909         * glyphs.c (image_instantiator_format_create): add some comments about
8910         bogus code.
8911         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8912         for current-display-table. (Apparently Hrjove implemented in 1998 a
8913         design I wrote up in 1996, but didn't update the doc string.)
8914
8915         * glyphs.h: clean up a doc string.
8916         * glyphs.h (governing_domain):
8917         * glyphs.h (struct image_instantiator_methods):
8918         changes for governing_domain stuff.
8919
8920         * gutter.c:
8921         * gutter.c (Fgutter_specifier_p):
8922         * gutter.c (Fgutter_size_specifier_p):
8923         * gutter.c (Fgutter_visible_specifier_p):
8924         * objects.c:
8925         * objects.c (Fcolor_specifier_p):
8926         * objects.c (Ffont_specifier_p):
8927         * objects.c (Fface_boolean_specifier_p):
8928         doc strings moved to make-*-specifier.
8929
8930         * redisplay.c (add_disp_table_entry_runes_1):
8931         * redisplay.c (generate_fstring_runes):
8932         * redisplay.c (screen):
8933         add random comments and doc strings.
8934
8935         * specifier.c:
8936         * specifier.c (Fmake_specifier):
8937         major overhaul of this doc string.
8938
8939         * specifier.c (Fvalid_specifier_domain_p):
8940         comment about the bogosity of image instances being domains.
8941         * specifier.c (decode_domain):
8942         now non-static, used in glyphs.c.
8943         * specifier.c (specifier_instance):
8944         comment about the bogosity of image instances being domains.
8945         * specifier.c (Fgeneric_specifier_p):
8946         move doc string to make-generic-specifier.
8947         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8948         rebackslashify.
8949
8950         * specifier.h:
8951         * specifier.h (DOMAIN_FRAME):
8952         * specifier.h (DOMAIN_LIVE_P):
8953         * specifier.h (DOMAIN_XDEVICE):
8954         rebackslashify.
8955         add comments about problems with these macros.
8956         prototype for decode_domain.
8957
8958         * toolbar.c:
8959         * toolbar.c (Ftoolbar_specifier_p):
8960         move doc string to `make-toolbar-specifier'.
8961
8962         * window.c (window_unmap_subwindows_cache_mapper):
8963         *************************************************************
8964         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8965         HAVE BEEN GETTING.
8966         *************************************************************
8967
8968 2000-05-09  Andy Piper  <andy@xemacs.org>
8969
8970         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8971
8972         * window.c (Fset_window_configuration): reset the frame subwindow
8973         cache and re-initialize the window subwindow caches.
8974
8975         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8976
8977 2000-05-09  Ben Wing  <ben@xemacs.org>
8978
8979         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8980         DWORD.
8981
8982 2000-04-26  Mike Woolley  <mike@bulsara.com>
8983
8984         * ntheap.c: Changed recreate_heap to limit the amount reserved
8985         for the heap to that which is actually available. Also now
8986         displays a message box (with some dignostics) in the event that
8987         it still can't start.
8988
8989 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8990
8991         * callproc.c (Fold_call_process_internal): GCPRO path
8992
8993 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8994
8995         Patch by Bill Perry.
8996
8997         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8998         back data instead of #ifdef.
8999         (Fscrollbar_page_down): ditto.
9000
9001 2000-05-07  Ben Wing  <ben@xemacs.org>
9002
9003         * buffer.h:
9004         Kludge for defining Qmswindows_tstr.
9005
9006         * nt.c:
9007         * nt.c (open_input_file):
9008         * nt.c (open_output_file):
9009         * nt.c (rva_to_section):
9010         * nt.c (mswindows_executable_type):
9011         Move all memory-mapped-file routines here (some were in unexnt.c,
9012         which is bad because they are used by process-nt.c, and unexnt
9013         won't be around when portable dumping).  Synched the above routines
9014         with FSF 20.6.
9015
9016         * nt.h:
9017         Removed ifdef'd out bogus code.
9018         Fixed some prototypes.
9019
9020         * nt.h (file_data):
9021         * nt.h (OFFSET_TO_RVA):
9022         * nt.h (RVA_TO_OFFSET):
9023         * nt.h (RVA_TO_PTR):
9024         Moved the memory-mapped-file structures, macros and prototypes
9025         here, to parallel nt.c.  ntheap.h should really be removed
9026         entirely, and it's a non-portable-dumper specific file.
9027
9028         * ntheap.h (round_to_next):
9029         Moved the memory-mapped-file structures, macros and prototypes
9030         to nt.h.
9031
9032         * ntproc.c (compare_env):
9033         Moved rva_to_section and mswindows_executable_type to nt.c.
9034         Moved compare_env to process-nt.c.
9035         ntproc.c will die, one day.
9036
9037         * ntproc.c (sys_spawnve):
9038         Account for win32_ -> mswindows_.
9039
9040         * process-nt.c:
9041         * process-nt.c (struct nt_process_data):
9042         * process-nt.c (ensure_console_window_exists):
9043         * process-nt.c (compare_env):
9044         * process-nt.c (nt_create_process):
9045         * process-nt.c (nt_kill_process_by_pid):
9046         * process-nt.c (syms_of_process_nt):
9047         * process-nt.c (vars_of_process_nt):
9048         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9049         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9050         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9051         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9052         Move compare_env here from ntproc.c.
9053
9054         * process.c (Fprocess_send_region):
9055         Takes an optional fourth argument, BUFFER, which should fix some
9056         problems with call-process.
9057
9058         * syscommctrl.h:
9059         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9060
9061         * syswindows.h:
9062         Move ICC_BAR_CLASSES to syscommctrl.h.
9063         Add preliminary macros for MSWindows/Mule.  More to come.
9064
9065         * unexnt.c:
9066         * unexnt.c (unexec):
9067         open_output_file moved to nt.c.
9068
9069
9070 2000-05-05  Andy Piper  <andy@xemacs.org>
9071
9072         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9073         instance from the frame cache also since GC may catch up too late
9074         to make frame deletion sane.
9075
9076 2000-05-04  Andy Piper  <andy@xemacs.org>
9077
9078         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9079         (x_finalize_image_instance): ungcpro on deletion.
9080
9081         * glyphs.c (image_instantiator_format_create): give pointers a
9082         query geometry method so that the geometry is at least set.
9083
9084         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9085         initialize layouts if using widgets.
9086
9087 2000-05-03  Andy Piper  <andy@xemacs.org>
9088
9089         * nt.c: remove bogus reference to sysmmsystem.h
9090
9091         * gui-x.c (popup_selection_callback): fix no selection abort.
9092
9093 2000-05-02  Andy Piper  <andy@xemacs.org>
9094
9095         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9096         (mswindows_widget_instantiate): ditto.
9097
9098         * glyphs-widget.c (initialize_widget_image_instance): initialize
9099         children correctly.
9100         (widget_instantiate): cope with children and items in the same
9101         instance.
9102
9103         * glyphs.c (mark_image_instance): cope with children as a first
9104         class member.
9105         (image_instance_equal): ditto.
9106         (image_instance_hash): ditto.
9107         (image_instance_changed): ditto.
9108
9109 2000-04-30  Andy Piper  <andy@xemacs.org>
9110
9111         * glyphs.c (subwindow_query_geometry): new function. Return some
9112         defaults.
9113         (subwindow_instantiate): don't assign dimensions if none have been
9114         given.
9115         (image_instantiator_format_create): add subwindow_query_geometry.
9116         (print_image_instance): cope with layouts as widgets.
9117
9118 2000-04-29  Andy Piper  <andy@xemacs.org>
9119
9120         * frame.c (delete_frame_internal): call
9121         free_frame_subwindow_instance_cache so that all subwindows are
9122         finalized before their parent.
9123         (mark_frame): remove subwindow_cachels.
9124         (Fmake_frame): remove subwindow_cachel manipulation.
9125         (allocate_frame_core): subwindow_instance_cache is a weak list.
9126         (delete_frame_internal): set subwindow_instance_cache to nil.
9127
9128         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9129         finalization safe.
9130         (mswindows_finalize_image_instance): use the device
9131         not the domain as the domain may have died already.
9132
9133         * glyphs-x.c (x_finalize_image_instance): ditto.
9134         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9135         HEIGHT.
9136
9137         * redisplay-output.c (redisplay_unmap_subwindows): update for
9138         subwindow instance cache as a weak list.
9139         (redisplay_unmap_subwindows_maybe): ditto.
9140         (redisplay_unmap_subwindows_except_us): ditto.
9141
9142         * glyphs.c (unmap_subwindow): error checking will check the domain
9143         so don't deal with it here. Don't use cachels anymore.
9144         (map_subwindow): ditto.
9145         (update_subwindow_cachel_data): remove old accessor names.
9146         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9147         (Fresize_subwindow): don't update cachel.
9148         (mark_subwindow_cachels):
9149         (update_subwindow_cachel_data):
9150         (add_subwindow_cachel):
9151         (get_subwindow_cachel_index):
9152         (update_subwindow_cachel):
9153         (reset_subwindow_cachels):
9154         (mark_subwindow_cachels_as_not_updated): deleted.
9155         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9156         subwindow instance to the frame cache.
9157         (find_matching_subwindow): update for subwindow instance cache as
9158         a weak list.
9159         (update_widget_instances): ditto.
9160         (image_instance_type_to_mask):inlined.
9161         (free_frame_subwindow_instance_cache): new function. finalize all
9162         subwindows that are instantiated.
9163
9164         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9165         of cachel information.
9166         (IMAGE_INSTANCE_DISPLAY_X):
9167         (IMAGE_INSTANCE_DISPLAY_Y):
9168         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9169         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9170         (XIMAGE_INSTANCE_DISPLAY_X):
9171         (XIMAGE_INSTANCE_DISPLAY_Y):
9172         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9173         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9174         remove subwindow_cachel structure and function references.
9175         (image_instance_type_to_mask): inline from glyphs.c
9176
9177         * redisplay.c (redisplay_frame): remove subwindow_cachel
9178         references.
9179
9180         * frame.h (struct frame): remove subwindow_cachels.
9181         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9182
9183         * frameslots.h: add subwindow_instance_cache.
9184
9185         * window.c (replace_window): check subwindow cache of replacement.
9186         (window_unmap_subwindows_cache_mapper):
9187         (window_unmap_subwindows): new functions. Unmap all subwindows
9188         cached on this window.
9189         (mark_window_as_deleted): unmap all subwindows.
9190
9191 2000-04-27  Andy Piper  <andy@xemacs.org>
9192
9193         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9194
9195         * glyphs-widget.c (widget_layout): return something.
9196         (layout_layout): return something. Fail if not initialized.
9197         (layout_query_geometry): ditto.
9198         (image_instantiator_native_layout): new function. Initialized the
9199         native layout type.
9200         (widget_instantiate): don't do layout stuff here.
9201
9202         * glyphs.c (instantiate_image_instantiator): reorded calling or
9203         instantiate and post_instantiate with layout in between.
9204         (image_instance_layout): be more selective about deciding whether
9205         the layout has been done or not.
9206
9207         * glyphs.h (struct image_instantiator_methods): return a value
9208         from layout_method.
9209
9210 2000-04-26  Andy Piper  <andy@xemacs.org>
9211
9212         * glyphs.c (allocate_image_instance): make initial width and
9213         height unspecified. Set initialized to 0.
9214
9215         * syscommctrl.h new file. Encapsulates commctrl.h.
9216
9217         * syswindows.h new file. Encapsulates windows.h.
9218
9219         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9220         * nt.c: ditto.
9221         * console-msw.h: ditto.
9222
9223         * redisplay-tty.c (tty_output_display_block): remove layout references.
9224
9225         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9226         window handle rather than just the frame.
9227
9228         * glyphs.c (mark_image_instance): remove layout references.
9229         (print_image_instance): ditto.
9230         (image_instance_equal): ditto.
9231         (image_instance_hash): ditto.
9232         (decode_image_instance_type): ditto.
9233         (encode_image_instance_type): ditto.
9234         (image_instantiate): ditto.
9235         (allocate_glyph): ditto.
9236         (Fimage_instance_height): ditto.
9237         (Fimage_instance_width): ditto.
9238         (update_subwindow): ditto.
9239
9240         * redisplay-x.c (x_output_display_block): recode for layouts as
9241         widgets.
9242
9243         * redisplay-output.c (redisplay_output_layout): recode for layouts
9244         as widgets.
9245         (compare_runes): remove layout references.
9246
9247         * redisplay-msw.c (mswindows_output_display_block): recode for
9248         layouts as widgets.
9249
9250         * glyphs-widget.c (image_instantiator_layout): remove
9251         layout_possible_dest_types.
9252         (layout_possible_dest_types): deleted.
9253
9254         * glyphs.h (image_instance_type): remove layout references.
9255         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9256         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9257         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9258
9259 2000-04-25  Andy Piper  <andy@xemacs.org>
9260
9261         * glyphs-widget.c (image_instantiator_buttons):
9262         (image_instantiator_edit_fields):
9263         (image_instantiator_combo_box):
9264         (image_instantiator_scrollbar):
9265         (image_instantiator_progress_guage):
9266         (image_instantiator_tree_view):
9267         (image_instantiator_tab_control):
9268         (image_instantiator_labels):
9269         (image_instantiator_layout): call default post_instantiate method.
9270         (widget_post_instantiate): new function. Simply lays out the
9271         widgets.
9272
9273         * glyphs.h (struct image_instantiator_methods): add
9274         post_instantiate method.
9275
9276         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9277         method calls.
9278
9279 2000-04-23  Andy Piper  <andy@xemacs.org>
9280
9281         * glyphs.h (struct image_instantiator_methods): add
9282         decode_domain_method.
9283         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9284         derived from the domain.
9285         (IMAGE_INSTANCE_FRAME): new accessor.
9286         (XIMAGE_INSTANCE_FRAME): ditto.
9287
9288         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9289         instead of _SUBWINDOW_FRAME.
9290         (finalize_image_instance): ditto.
9291         (Fimage_instance_foreground): ditto.
9292         (Fimage_instance_background): ditto.
9293         (image_instantiate): ditto.
9294         (update_subwindow_cachel): ditto.
9295         (update_subwindow): ditto.
9296         (unmap_subwindow): ditto.
9297         (map_subwindow): ditto
9298         (subwindow_instantiate): ditto.
9299         * glyphs-msw.c (mswindows_update_widget): ditto.
9300         (mswindows_progress_gauge_instantiate): ditto.
9301         (mswindows_tab_control_update): ditto.
9302         * glyphs-x.c (x_update_widget): ditto.
9303         (x_widget_instantiate): ditto.
9304         (x_tab_control_instantiate): ditto.
9305         (x_tab_control_update): ditto.
9306         * event-msw.c (mswindows_wnd_proc): ditto
9307
9308         * glyphs-widget.c (image_instantiator_layout): use
9309         subwindow_decode_domain.
9310         (image_instantiator_buttons): ditto.
9311         (image_instantiator_edit_fields): ditto.
9312         (image_instantiator_combo_box): ditto.
9313         (image_instantiator_scrollbar): ditto.
9314         (image_instantiator_progress_guage): ditto.
9315         (image_instantiator_tree_view): ditto.
9316         (image_instantiator_tab_control): ditto.
9317         (image_instantiator_labels): ditto.
9318         (image_instantiator_layout): ditto.
9319
9320         * glyphs.c: add instance error checking to many functions.
9321         (instantiate_image_instantiator): decode device from cache_domain.
9322         (image_instantiate): partially rewrite by using
9323         decode_image_instantiator_domain to determine what domain the
9324         instance needs to be cached in.
9325         (decode_image_instantiator_domain): new function. Determine what
9326         domain the image needs to be cached in.
9327         (check_window_subwindow_cache): new error checking function.
9328         (check_instance_cache_mapper): ditto.
9329         (check_image_instance_structure): ditto.
9330         (subwindow_decode_domain): new function. Encodes a window as a
9331         subwindow's cache domain.
9332         (image_instantiator_format_create): use it for text and
9333         subwindows.
9334
9335 2000-04-21  Andy Piper  <andy@xemacs.org>
9336
9337         * glyphs.c (image_instance_device): new function.
9338         (image_instance_frame): new function.
9339         (image_instance_window): new function.
9340         (image_instance_live_p): new function.
9341
9342         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9343         cache to nil.
9344
9345         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9346         (IMAGE_INSTANCE_DOMAIN): new accessor.
9347         (XIMAGE_INSTANCE_DOMAIN): ditto.
9348
9349         * glyphs-x.c (x_finalize_image_instance): device->domain.
9350
9351         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9352         (mswindows_finalize_image_instance): ditto.
9353
9354         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9355         (gif_instantiate): ditto.
9356         (png_instantiate): ditto.
9357         (tiff_instantiate): ditto.
9358
9359         * glyphs.c (instantiate_image_instantiator): use domain rather
9360         than device.
9361         (mark_image_instance): device -> domain.
9362         (print_image_instance): ditto.
9363         (finalize_image_instance): ditto.
9364         (image_instance_equal): ditto.
9365         (allocate_image_instance): ditto.
9366         (Fcolorize_image_instance): ditto.
9367         (query_string_geometry): ditto.
9368         (image_instantiate): ditto
9369         (query_string_font): ditto.
9370         (image_instantiate): ditto.
9371         (update_subwindow): ditto.
9372         (unmap_subwindow): ditto.
9373         (map_subwindow): ditto.
9374         (subwindow_instantiate): ditto.
9375
9376         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9377         (DOMAIN_FRAME): ditto.
9378         (DOMAIN_WINDOW): ditto.
9379         (DOMAIN_LIVE_P): ditto.
9380         (XDOMAIN_DEVICE): ditto.
9381         (XDOMAIN_FRAME): ditto.
9382         (XDOMAIN_WINDOW): ditto.
9383
9384         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9385         a valid specifier domain.
9386
9387 2000-04-19  Andy Piper  <andy@xemacs.org>
9388
9389         * glyphs-widget.c (syms_of_glyphs_widget): remove
9390         widget-callback-current-channel.
9391         (vars_of_glyphs_widget): ditto.
9392         * glyphs.h: ditto
9393
9394         * gui.c (get_gui_callback): revert to previous behaviour.
9395
9396 2000-04-18  Andy Piper  <andy@xemacs.org>
9397
9398         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9399         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9400         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9401
9402         * glyphs.c (image_instance_equal): add margin_width.
9403         (image_instance_hash): ditto.
9404
9405         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9406         (layout_query_geometry): ditto.
9407         (layout_layout): ditto.
9408         (syms_of_glyphs_widget): add margin-width.
9409         (image_instantiator_layout): allow margin-width.
9410
9411         * glyphs.c (update_widget_instances): make a normal function.
9412         (syms_of_glyphs): remove Qupdate_widget_instances.
9413         * glyphs.h: ditto.
9414
9415         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9416         so that we don't corrupt ideas about the last event or
9417         command. Remove widget-callback-current-channel fiddling.
9418         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9419
9420 2000-05-01  Martin Buchholz <martin@xemacs.org>
9421
9422         * XEmacs 21.2.33 is released.
9423
9424 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9425
9426         * make-src-depend: Allow dots in header file name.
9427
9428 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9429
9430         * mule-charset.h (struct charset_lookup): Add
9431         next_allocated_1_byte_leading_byte and
9432         next_allocated_2_byte_leading_byte.
9433         * mule-charset.c: Move above two variables so that those values
9434         will be dumped.
9435
9436 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9437
9438         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9439         when string length is zero.
9440         (find_charsets_in_emchar_string): Ditto.
9441
9442 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9443
9444         * lisp.h: extern Qdialog and Qmenubar.
9445
9446         * gui-x.c: added events.h.
9447                 also fixed typo which made the file uncompilable.
9448
9449         * general.c: Added Qmenubar and Qdialog
9450
9451 2000-04-28  Ben Wing  <ben@xemacs.org>
9452
9453         * frame-msw.c (mswindows_init_frame_1):
9454         * frame-msw.c (mswindows_mark_frame):
9455         * event-msw.c (mswindows_enqueue_dispatch_event):
9456         * console-msw.h:
9457         * console-msw.h (struct mswindows_frame):
9458         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9459         there are now three hash tables for callbacks.
9460         mswindows_enqueue_dispatch_event is no longer static.
9461
9462         * dialog-x.c (maybe_run_dbox_text_callback):
9463         * dialog-x.c (dbox_descriptor_to_widget_value):
9464         switch to new cons3 form for callbacks.
9465
9466         * glyphs-msw.c (mswindows_register_gui_item):
9467         * glyphs-msw.c (mswindows_widget_instantiate):
9468         * glyphs-msw.c (add_tree_item):
9469         * glyphs-msw.c (add_tab_item):
9470         new image instance parameter, so it can be passed to callback-ex.
9471         respect :callback-ex as well as :callback.
9472
9473         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9474         add :callback-ex.
9475
9476         * glyphs.c (print_image_instance):
9477         prettify, e.g. now prints widget type.
9478
9479         * gui-x.h:
9480         certain funs have new image instance parameter.
9481
9482         * gui.c:
9483         * gui.c (get_gui_callback):
9484         * gui.c (gui_item_add_keyval_pair):
9485         * gui.c (gui_item_init):
9486         * gui.c (gui_add_item_keywords_to_plist):
9487         * gui.c (mark_gui_item):
9488         * gui.c (gui_item_hash):
9489         * gui.c (gui_item_equal):
9490         * gui.c (copy_gui_item):
9491         * gui.c (syms_of_gui):
9492         recognize callback-ex in a number of places.
9493         also, fix the annoying "can't get out of yes-no dialog" bug.
9494
9495         * gui.h:
9496         * gui.h (struct Lisp_Gui_Item):
9497         recognize callback-ex in a number of places.
9498
9499         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9500         new parameter in button_item_to_widget_value.
9501
9502         * glyphs-x.c (x_update_widget):
9503         * glyphs-x.c (x_button_instantiate):
9504         * glyphs-x.c (x_button_update):
9505         * glyphs-x.c (x_progress_gauge_instantiate):
9506         * glyphs-x.c (x_edit_field_instantiate):
9507         * glyphs-x.c (x_combo_box_instantiate):
9508         * glyphs-x.c (x_tab_control_instantiate):
9509         * glyphs-x.c (x_label_instantiate):
9510         new image instance parameter in various places.
9511
9512         * event-Xt.c:
9513         * event-Xt.c (enqueue_Xt_dispatch_event):
9514         this fun gets exported.
9515
9516         * gui-msw.c:
9517         * gui-msw.c (mswindows_handle_gui_wm_command):
9518         handle both :callback and :callback-ex, and generate our own
9519         event because it's one of the callback-ex arguments.
9520
9521         * gui-x.c:
9522         * gui-x.c (popup_selection_callback):
9523         handle both :callback and :callback-ex, and generate our own
9524         event because it's one of the callback-ex arguments.
9525         * gui-x.c (button_item_to_widget_value):
9526         * gui-x.c (gui_items_to_widget_values_1):
9527         * gui-x.c (gui_item_children_to_widget_values):
9528         * gui-x.c (gui_items_to_widget_values):
9529         new image instance parameter in various places.
9530
9531         * fns.c (Freplace_list):
9532         fix small typo in doc string.
9533
9534         * lisp.h:
9535         declare enqueue_Xt_dispatch_event.
9536
9537 2000-04-28  Ben Wing  <ben@xemacs.org>
9538
9539         * buffer.c:
9540         * buffer.c (Frecord_buffer):
9541         * buffer.c (syms_of_buffer):
9542         delete record-buffer-hook.
9543
9544         * fns.c:
9545         * fns.c (Freplace_list):
9546         * fns.c (syms_of_fns):
9547         new primitive replace-list.
9548
9549         * frameslots.h:
9550         slot for old buffer-alist.
9551
9552         * lisp.h:
9553         exfun replace-list.
9554
9555         * redisplay.c:
9556         * redisplay.c (redisplay_frame):
9557         * redisplay.c (syms_of_redisplay):
9558         * redisplay.c (vars_of_redisplay):
9559         new hook buffer-list-changed-hook.
9560         call it.
9561
9562 2000-04-27  Ben Wing  <ben@xemacs.org>
9563
9564         * extents.h: extern in_modeline_generation.
9565
9566         * redisplay.c (generate_formatted_string_db): set
9567         in_modeline_generation.
9568
9569         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9570         flags if in modeline generation.  otherwise frame-modified-tick
9571         is ticked far too often.
9572         Declare in_modeline_generation.
9573
9574 2000-04-26  Ben Wing  <ben@xemacs.org>
9575
9576         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9577         option.
9578         (vars_of_emacs): add quick-build as an error-checking option.
9579         A bit kludgy, but there doesn't seem much point in creating
9580         a real var for this.
9581
9582         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9583
9584 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9585
9586         * redisplay.h (struct display_line): Add a new variable,
9587         line_continuation.
9588
9589         * redisplay.c (create_text_block): Set dl->line_continuation if
9590         the line continues.
9591         (create_string_text_block): Ditto.
9592         (regenerate_window_incrementally): Use line_continuation instead
9593         of searching continuation glyph.
9594         (add_margin_runes): Call add_glyph_rune.
9595         (add_glyph_rune): Handle margin glyph.
9596
9597 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9598
9599         * filelock.c (fill_in_lock_file_name):
9600         ANSIfy.
9601         Check for IS_ANY_SEP instead of '/'.
9602         (lock_file_1):
9603         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9604         Never check errno without first seeing that system call failed.
9605         (unlock_file): Add GCPRO.
9606         (Flock_buffer): Fix docstring.
9607         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9608
9609 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9610
9611         * sysdep.c (get_pty_max_bytes):
9612         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9613         strings longer than 252 bytes.
9614
9615         * md5.c: Unconditionally include ANSI header <limits.h>
9616
9617         * glyphs-x.c (convert_EImage_to_XImage):
9618         * lisp-union.h (union Lisp_Object):
9619         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9620
9621 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9622
9623         * filelock.c (current_lock_owner): Remove unused variable o, p.
9624
9625 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9626
9627         * callint.c: Remove multiply defined symbol Qlet
9628         (syms_of_callint): ditto.
9629
9630 2000-04-14  Andy Piper  <andy@xemacs.org>
9631
9632         * general.c (syms_of_general): add last-command, this-command, let
9633         and funcall.
9634
9635         * lisp.h: declare various symbols.
9636
9637         * glyphs.h: declare Qwidget_callback_current_channel;
9638
9639         * glyphs-widget.c (syms_of_glyphs_widget): add
9640         Qgui_callback_current_channel.
9641         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9642
9643         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9644         widget-callback-current-channel when invoking the interactive
9645         arg. Also bind last-command and next-command when invoking the
9646         widget updates.
9647         * gui-x.c (popup_selection_callback): ditto.
9648
9649         * gui.c (get_gui_callback): massage args so that we are always
9650         calling eval. This allows us to add our own variable bindings
9651         outside.
9652
9653         * glyphs-x.c (x_button_instantiate): use
9654         gui_items_to_widget_values since this is GC safe.
9655         (x_progress_gauge_instantiate): ditto.
9656         (x_edit_field_instantiate): ditto.
9657         (x_label_instantiate): ditto.
9658
9659         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9660         (emacs_Xt_event_widget_focus_out): new function
9661         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9662         focus.
9663         (emacs_Xt_event_add_widget_actions): new function. add focus
9664         functions as actions.
9665         (init_event_Xt_late): use it.
9666
9667 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9668
9669         * event-stream.c (Fdispatch_event): Doc fix.
9670
9671 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9672
9673         * postgresql.c: Remove all references to PQsetenv*.
9674
9675         * postgresql.h: Remove references to PGsetenvHandler object.
9676         * lrecord.h (lrecord_type): Ditto.
9677
9678 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9679
9680         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9681         real_heigh and real_width members, and accessor macros for these.
9682
9683         * glyphs-msw.c (init_image_instance_geometry): New function.
9684         (init_image_instance_from_dibitmap): Use it.
9685         (mswindows_resource_instantiate): Use it.
9686         (init_image_instance_from_xbm_inline): Use it.
9687         (mswindows_initialize_image_instance_mask): Use real bitmap
9688         geometry.
9689         (mswindows_create_resized_bitmap): Ditto.
9690         (mswindows_create_resized_mask): Ditto.
9691
9692         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9693         and bitmap to their surface size.
9694
9695 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9696
9697         * process-unix.c (unix_send_process): Guard against process MIA
9698         after Faccept_process_output.
9699
9700 2000-04-11  Ben Wing  <ben@xemacs.org>
9701
9702         * eval.c (unbind_to_hairy): fix brokenness introduced by
9703         nanosecond speed improvements.
9704
9705 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9706
9707         * sunplay.c (init_device): To play sounds correctly, the device
9708         apparently needs to be initialized at least once by XEmacs.  Make
9709         it so.
9710
9711 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9712
9713         * redisplay.c (add_margin_runes): Add text image glyph
9714           handling.
9715
9716 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9717
9718         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9719         gcc is newer than 2.5.
9720
9721 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9722
9723         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9724
9725         * fns.c (size_bit_vector):
9726         * alloc.c (size_vector):
9727         (make_vector_internal):
9728         (make_bit_vector_internal):
9729         (sweep_bit_vectors_1):
9730         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9731
9732 2000-04-06  Andy Piper  <andy@xemacs.org>
9733
9734         * gmalloc.c (malloc): undo previous change.
9735         (malloc): ditto.
9736         (free): ditto.
9737         (realloc): ditto.
9738
9739 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9740
9741         * line-number.c (buffer_line_number): Revert to former version.
9742
9743 2000-04-06  Andy Piper  <andy@xemacs.org>
9744
9745         * gmalloc.c (malloc): add error checking.
9746         (malloc): ditto.
9747         (free): ditto.
9748         (realloc): ditto.
9749
9750         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9751         button_item_to_widget_value arg.
9752
9753         * glyphs-x.c (x_button_instantiate): add extra
9754         button_item_to_widget_value arg.
9755         (x_progress_gauge_instantiate): ditto.
9756         (x_edit_field_instantiate): ditto.
9757         (x_label_instantiate): ditto.
9758
9759         * gui-x.c (gui_items_to_widget_values_1): add extra
9760         button_item_to_widget_value arg.
9761         (button_item_to_widget_value): add extra menu_item_p arg.
9762
9763         * gui-x.h: change signature of button_item_to_widget_value.
9764
9765         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9766         button_item_to_widget_value arg.
9767
9768 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9769
9770         * buffer.h (struct buffer): auto_save_modified should be long.
9771
9772 2000-04-05  Andy Piper  <andy@xemacs.org>
9773
9774         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9775         type.
9776         (button_query_geometry): give a little more room so that athena
9777         buttons fit.
9778
9779 2000-04-05  Andy Piper  <andy@xemacs.org>
9780
9781         * faces.c (complex_vars_of_faces): The widget face should inherit
9782         the font of the gui-element face.
9783
9784 2000-04-04  Andy Piper  <andy@xemacs.org>
9785
9786         * glyphs-x.c (x_button_update): new function. unconditionally
9787         update a button's state when the instance is dirty.
9788         (image_instantiator_format_create_glyphs_x): add x_button_update.
9789         (x_widget_instantiate): remove old resize cruft.
9790
9791 2000-04-02  Andy Piper  <andy@xemacs.org>
9792
9793         * frame.c (change_frame_size_1): The introduction of gutters means
9794         that we need to allow 0 as a potential frame dimension.
9795
9796 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9797
9798         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9799         image glyph if allow_cursor.
9800         (add_hscroll_rune): Don't allow cursor to border glyph.
9801         (create_text_block): Ditto.
9802
9803         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9804         text not in buffer.
9805         (redisplay_output_layout): Call ensure_face_cachel_complete for
9806         text image glyph.
9807
9808
9809 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9810
9811         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9812
9813         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9814         not in buffer
9815
9816         * redisplay-tty.c (tty_output_display_block): Delete the routine
9817         for text image glyph
9818         * redisplay-x.c (x_output_display_block): ditto
9819         * redisplay-msw.c (mswindows_output_display_block): ditto
9820
9821 2000-02-02  Mike Alexander  <mta@arbortext.com>
9822
9823         Note: Some of these were committed by accident as part of other
9824         patches.
9825
9826         * regex.c (regex_compile): Avoid compiler warnings.
9827
9828         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9829
9830         * nt.h: Declare term_ntproc correctly.
9831
9832         * nt.c: Remove incorrect declaration of get_home_directory which
9833         is declared correctly in lisp.h.
9834
9835         * keymap.c (get_keyelt): Avoid compiler warnings.
9836         (raw_lookup_key_mapper): Avoid compiler warnings.
9837
9838         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9839
9840         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9841
9842         * filemode.c (mode_string): Avoid compiler warnings.
9843
9844         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9845         avoid warning.
9846
9847         * events-mod.h: Undef some things that winuser.h defines differently.
9848
9849         * data.c (Faset): Avoid compiler warnings.
9850
9851         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9852
9853 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9854
9855         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9856         Fall through to simple beep on error.
9857         Replace "extern" by real header file.
9858
9859         * linuxplay.c: Use nativesound.h
9860         (play_sound_data): Return error code. Be less verbose on error.
9861
9862         * sunplay.c: Use nativesound.h
9863         (play_sound_data): Return error code. Be less verbose on error.
9864
9865         * ntplay.c: Use nativesound.h
9866         (play_sound_data): Return fake error code
9867
9868         * sgiplay.c: Use nativesound.h
9869         (play_sound_data): Return error code
9870
9871         * hpplay.c: Use nativesound.h, partially implement
9872         new error code. Break compilation until finished.
9873         (play_sound_data): error code.
9874
9875         * nativesound.h (play_sound_file):
9876           (play_sound_data): Prototype in new header.
9877
9878 2000-03-31  Andy Piper  <andy@xemacs.org>
9879
9880         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9881         for toggle and radio buttons.
9882         (image_instantiator_buttons): use it.
9883
9884 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9885
9886         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9887         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9888         found. Scrollbar event probably belonged to some old config.
9889
9890 2000-03-31  Andy Piper  <andy@xemacs.org>
9891
9892         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9893         than 1.
9894         (initialize_widget_image_instance): default layout to
9895         LAYOUT_HORIZONTAL rather than 0.
9896         (widget_instantiate): reverse the item list at the end rather than
9897         every iteration.
9898         (layout_layout): re-code for the border text at the front of the
9899         item list rather than at the end.
9900         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9901         provided by the user.
9902         (widget_query_geometry): comment.
9903
9904 2000-03-30  Andy Piper  <andy@xemacs.org>
9905
9906         * glyphs-widget.c (image_instantiator_layout): allow standard
9907         widget keywords in layouts.
9908
9909         * gutter.c (output_gutter): cope with nil gutter contents.
9910
9911         * frame.c (Fset_frame_properties): add gutter docs.
9912
9913 2000-03-29  Andy Piper  <andy@xemacs.org>
9914
9915         * toolbar-msw.c (TBSTYLE_FLAT): add.
9916         (mswindows_output_toolbar): minor fiddling.
9917
9918 2000-03-29  Andy Piper  <andy@xemacs.org>
9919
9920         * gutter.c (output_gutter): force gutter size recalculation if
9921         what we are trying to display won't fit.
9922         (update_gutter_geometry): new function. A per-gutter version of
9923         update_frame_gutter_geometry.
9924         (update_frame_gutter_geometry): use it.
9925         (redraw_exposed_gutter): add extra debugging output.
9926
9927 2000-03-28  Mike Alexander  <mta@arbortext.com>
9928
9929         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9930         (pdump_file_unmap): Implement it on Windows
9931         (pdump_file_get): Save alocated handles for pdump_file_unmap
9932
9933 2000-03-28  Andy Piper  <andy@xemacs.org>
9934
9935         * gui.c (get_gui_callback): treat Quit specially.
9936
9937 2000-03-27  Andy Piper  <andy@xemacs.org>
9938
9939         * glyphs.c (image_instantiate): be careful to check in the same
9940         way we assigned.
9941
9942 2000-03-27  Didier Verna  <didier@xemacs.org>
9943
9944         * config.h.in: define the proper SMART_INCLUDE macro.
9945         handle renaming of `foo_h_path' to `foo_h_file'.
9946
9947         * database.c: ditto.
9948
9949         * emacs.c: ditto.
9950
9951         * linuxplay.c: ditto.
9952
9953         * terminfo.c: ditto.
9954
9955         * tooltalk.h: ditto.
9956
9957 2000-03-27  Andy Piper  <andy@xemacs.org>
9958
9959         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9960         gets updated whenever the face might have changed.
9961
9962 2000-03-26  Mike Alexander  <mta@arbortext.com>
9963
9964         * dumper.c (pdump_resource_free): Fix the comment.
9965
9966 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9967
9968         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9969
9970 2000-03-22  Mike Alexander  <mta@arbortext.com>
9971
9972         * dumper.c: Include Windows headers on Windows
9973         (pdump_resource_free): Add a body to the function
9974         (pdump_load): exe_name -> exe_path and add some comments.
9975
9976 2000-03-25  Mike Alexander  <mta@arbortext.com>
9977
9978         * gui.c (copy_gui_item_tree): Return a value in all cases
9979
9980 2000-03-21  Didier Verna  <didier@xemacs.org>
9981
9982         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9983         lwlib/config.h.in.
9984         (SMART_INCLUDE): new macro.
9985         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9986         the proper location.
9987
9988         * postgresql.c: use it.
9989
9990         * inline.c: ditto.
9991
9992 2000-03-24  Andy Piper  <andy@xemacs.org>
9993
9994         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9995         do this.
9996
9997 2000-03-24  Andy Piper  <andy@xemacs.org>
9998
9999         * redisplay-output.c (compare_runes): use image_instance_changed
10000         to detect changes. Do not depend on glyphs_changed, only depend on
10001         dirtiness.
10002          (redisplay_output_layout): add debug messages.
10003         (compare_runes): ditto.
10004
10005         * glyphs.h: declare new functions.
10006         (struct Lisp_Image_Instance): remove percent and associated
10007         accessors.
10008
10009         * gui.h: declare new copying functions.
10010
10011         * gui.c (copy_gui_item_tree): new function.
10012         (copy_gui_item): new function.
10013         (gui_item_id_hash): revert to standard hash.
10014         (gui_item_hash): ditto.
10015         (gui_item_hash_internal): deleted.
10016         (mark_gui_item): mark value.
10017         (gui_item_add_keyval_pair): add value.
10018         (gui_item_init): ditto.
10019         (gui_add_item_keywords_to_plist): ditto.
10020         (gui_item_equal): ditto.
10021         (syms_of_gui): add Q_value.
10022
10023         * glyphs-x.c (x_progress_gauge_update): use pending items and
10024         value for setting the state.
10025         (x_update_widget): don't set items from pending here.
10026
10027         * glyphs-widget.c (update_widget): update items here.
10028         (progress_gauge_set_property): use items for storing value. Put
10029         new value in pending items.
10030
10031         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10032         items for new value. Convert percent -> value.
10033         (mswindows_tab_control_update): don't update items here.
10034
10035         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10036         (update_subwindow): ditto.
10037         (image_instance_changed): new function. Compare hash values and
10038         past and present widget items.
10039         (image_instantiate): We more careful about where we instantiate
10040         things.
10041         (image_instantiate): add error checking.
10042
10043         * gutter.c (syms_of_gutter): use -hook.
10044
10045 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10046
10047         * console-tty.c (Fset_console_tty_input_coding_system): Use
10048         Qkeyboard.
10049         (Fset_console_tty_output_coding_system): Use Qterminal.
10050         (tty_init_console): Use Qkeyboard and Qterminal.
10051
10052 2000-03-21  Ben Wing  <ben@xemacs.org>
10053
10054         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10055         From Mike Alexander <mta@arbortext.com>.
10056
10057 2000-03-21  Ben Wing  <ben@xemacs.org>
10058
10059         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10060         process brokenness.  Proper implementation to come.
10061         * callproc.c:
10062         Rename call-process-internal to old-call-process-internal.
10063         New impl. in process.el.
10064
10065 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10066
10067         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10068
10069 2000-03-20  Andy Piper  <andy@xemacs.org>
10070
10071         * glyphs.c (full_list_hash): make hashes of the same elements in
10072         different orders return different values.
10073
10074 2000-03-20  Martin Buchholz <martin@xemacs.org>
10075
10076         * XEmacs 21.2.32 is released.
10077
10078 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10079
10080         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10081         (DFC_MALLOC_USE_CONVERTED_DATA):
10082         Add aliasing-safe casts to allow use with char* or unsigned char*
10083         lvalues.
10084
10085         * eldap.c (Fldap_open):
10086         (Fldap_search_basic):
10087         (Fldap_add):
10088         (Fldap_modify):
10089         Make C++-compilable.
10090         Make sure GCPRO'ed variables are initialized.
10091         Use temp variables to avoid repeated calls to Flength.
10092
10093 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10094
10095         * sysfile.h:
10096         Make sure PATH_MAX is always defined.
10097         Include limits.h for PATH_MAX.
10098         Deprecate use of MAXPATHLEN.
10099
10100 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10101
10102         * emacs.c: Add reinit_vars_of_fileio.
10103         * symsinit.h: Add reinit_vars_of_fileio.
10104         * fileio.c (reinit_vars_of_fileio): New.
10105         * fileio.c (Fmake_temp_name):
10106         Initialize temp_name random number from microseconds to make
10107         collisions even less likely.  Initialize always at process startup
10108         time.  (make-temp-name) used to return the same file name twice in
10109         a row when PDUMP.
10110         Random stylistic fiddling.
10111         Comment fixes.
10112
10113 2000-03-20  Andy Piper  <andy@xemacs.org>
10114
10115         * glyphs.c (image_instantiate): allow text glyphs to be
10116         instantiated in the minibuffer window.
10117
10118 2000-03-19  Andy Piper  <andy@xemacs.org>
10119
10120         * glyphs.c (image_instance_hash): be careful about which items we
10121         hash on.
10122
10123         * glyphs-widget.c (tab_control_set_property): record into pending
10124         items rather than the actual items.
10125
10126         * glyphs-x.c (x_update_widget): use pending items to update with.
10127
10128         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10129         to update with.
10130
10131         * glyphs.c (mark_image_instance): mark pending items.
10132
10133         * window.c (Fset_window_configuration): record the buffer.
10134         (Fselect_window): totally revert previous change which breaks many
10135         things.
10136
10137 2000-03-18  Andy Piper  <andy@xemacs.org>
10138
10139         * glyphs-msw.c (mswindows_tab_control_update): force selected
10140         item.
10141
10142         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10143         window domain cache, otherwise we get inconsistencies at
10144         startup. There is something fishy at startup which can lead to the
10145         minibuffer being the selected window when the gutter content is
10146         instantiated.
10147
10148         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10149         gcpros.
10150         (parse_gui_item_tree_children): ditto.
10151         (parse_gui_item_tree_item): ditto.
10152
10153         * glyphs.c (Fupdate_widget_instances): return something.
10154
10155 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10156
10157         * window.c (Fselect_window): Undo 2000-03-17 change.
10158
10159 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10160
10161         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10162         against v7.0 libraries.  Insta-coredump city until the postgres
10163         folks fix it.
10164
10165 2000-03-17  Andy Piper  <andy@xemacs.org>
10166
10167         * faces.c (complex_vars_of_faces): don't give the widget face an
10168         inherited background pixmap.
10169
10170         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10171         selected item.
10172
10173         * event-stream.c (Fdispatch_non_command_events): return something.
10174
10175         * gutter.c (output_gutter): use widget face.
10176         (clear_gutter): ditto.
10177
10178         * NEWS: adjust again.
10179
10180         * window.c (Fselect_window): make sure this runs to completion to
10181         avoid oddities with Fset_window_configuration.
10182         (Fcurrent_window_configuration): in general do not save the
10183         minibuffer as the selected window.
10184
10185         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10186
10187 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10188
10189         * emacs.c (Frunning_temacs_p): Revert previous patch.
10190         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10191
10192 2000-03-16  Andy Piper  <andy@xemacs.org>
10193
10194         * glyphs-x.c (x_tab_control_update): if no widget values then
10195         return.
10196
10197         * NEWS: update for new features.
10198
10199         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10200         synthetic event to the native system.
10201         (reinit_vars_of_event_Xt): set force_event_pending to
10202         emacs_Xt_force_event_pending.
10203
10204         * events.h (struct event_stream): add force_event_pending.
10205
10206         * specifier.c (recompute_one_cached_specifier_in_window): add
10207         comment.
10208
10209         * redisplay.c (redisplay_frame): don't call
10210         update_frame_subwindows. Reset subwindow cachels when
10211         subwindows_changed, removing this was an optimization too far.
10212
10213         * redisplay-output.c (compare_runes): reorganize so that we catch
10214         glyph changes when we want them. Set optimize_output when this
10215         would help layouts.
10216         (redisplay_output_layout): remove frame_really_changed, use
10217         optimize_output instead.
10218
10219         * redisplay-msw.c (mswindows_output_display_block): reset
10220         optimize_output after outputting a glyph.
10221         * redisplay-x.c (x_output_display_block): ditto.
10222         * redisplay-tty.c (tty_output_display_block): ditto.
10223
10224         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10225         functions.
10226         (gutter_specs_changed): do specific gutter positions.
10227         (top_gutter_specs_changed): new function. Only update the
10228         specified gutter specs.
10229         (bottom_gutter_specs_changed): ditto.
10230         (left_gutter_specs_changed): ditto.
10231         (right_gutter_specs_changed): ditto.
10232
10233         * gui.c (gui_item_hash_internal): new function, does a real hash.
10234         (gui_item_id_hash): use it.
10235         (gui_item_hash): hash the eval'ed gui_item.
10236
10237         * gui-x.c (popup_selection_callback): send an eval event to call
10238         Fupdate_widget_instances.
10239
10240         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10241         to call Fupdate_widget_instances.
10242
10243         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10244         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10245
10246         * glyphs.c: (update_frame_subwindows): deleted.
10247         (Fupdate_widget_instances): new function for updating the dirty
10248         state of widgets that might have changed.
10249         (syms_of_glyphs): add Qupdate_widget_instances.
10250         (full_list_hash): hash a list completely.
10251         (image_instance_hash): use it for items and properties.
10252
10253         * frame-msw.c (mswindows_size_frame_internal): remove unused
10254         variable.
10255
10256         * faces.h (struct face_cachel): fix comment.
10257
10258         * event-stream.c (Fdispatch_non_command_events): new
10259         function. Process non-command events, forcing an event cycle
10260         beforehand.
10261         (syms_of_event_stream): declare.
10262         (event_stream_force_event_pending): new function. Force an event
10263         on the native event queue so that an event cycle will occur next
10264         time we check.
10265
10266         * event-msw.c:
10267         (struct ntpipe_shove_stream):
10268         (mswindows_enqueue_dispatch_event):
10269         (mswindows_dequeue_dispatch_event):
10270         (mswindows_cancel_dispatch_event):
10271         (mswindows_pump_outstanding_events):
10272         (mswindows_drain_windows_queue):
10273         (mswindows_handle_paint):
10274         (mswindows_wnd_proc):
10275         (mswindows_key_to_emacs_keysym):
10276         (get_process_input_waitable):
10277         (emacs_mswindows_delete_stream_pair): re-indent file.
10278         (mswindows_need_event): do not process further fds if the windows
10279         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10280         fixes the 100% cpu problem.
10281         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10282
10283 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10284
10285         * alloc.h: New.
10286         * dumper.h: New.
10287         * dumper.c: New.
10288
10289         * emacs.c: Moved dump file searching to dumper.c.
10290         (Frunning_temacs_p): Fixed.
10291
10292         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10293         last_lrecord_type_index_assigned.
10294
10295 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10296
10297         * symsinit.h: Added reinit parameter to init_console_stream
10298         declaration.
10299
10300         * lisp.h: Added file parameter to pdump_load declaration.
10301
10302         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10303         support.  Added dump file searching.
10304
10305         * config.h.in: Added EMACS_PROGNAME.
10306
10307         * console-stream.c (init_console_stream): Fix reinitialisation
10308         when running from temacs.
10309
10310         * alloc.c (pdump): Add id support.
10311         (pdump_load): Add file parameter and signature/id support.
10312
10313         * Makefile.in.in: Add full pdump support.
10314
10315 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10316
10317         * postgresql.c: Update documentation to reflect latest code
10318         status.
10319         (print_result): Show tuple counts in printed representation when
10320         appropriate.
10321         (Fpq_put_nbytes): MULE-ize.
10322         (Fpq_get_line_async): Ditto.
10323
10324 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10325
10326         * postgresql.c (Fpq_lo_import): Fix return value.
10327         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10328
10329 2000-03-13  Ben Wing  <ben@xemacs.org>
10330
10331         * alloc.c (pdump_load):
10332         Fix compile warning under mswin.
10333
10334 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10335
10336         * postgresql.c: Mule-ization, bug fixes.
10337         Use PG_CODING to encapsulate coding system name changes.
10338         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10339         (pg-coding-system): Create.
10340
10341         (Fpq_conn_defaults): Mule-ize.
10342         (Fpq_connectdb): Mule-ize & bug fix.
10343         (Fpq_connect_start): Mule-ize.
10344         (Fpq_set_client_encoding): Mule-ize.
10345         (Fpq_finish): Document `DEAD' connection status.
10346         (Fpq_clear): Ditto.
10347         (Fpq_pgconn): Mule-ize.
10348         (Fpq_exec): Mule-ize & bug fix.
10349         (Fpq_send_query): Ditto.
10350         (Fpq_get_result): Ditto.
10351         (Fpq_res_status): Mule-ize.
10352         (Fpq_result_error_message): Mule-ize.
10353         (Fpq_ntuples): fix comments.
10354         (Fpq_fname): Mule-ize.
10355         (Fpq_fnumber): Mule-ize.
10356         (Fpq_ftype): fix comments.
10357         (Fpq_get_value): Mule-ize.
10358         (Fpq_cmd_status): Ditto.
10359         (Fpq_cmd_tuples): Ditto.
10360         (Fpq_oid_value): Ditto.
10361         (Fpq_notifies): Ditto.
10362         (Fpq_lo_import): Ditto.
10363         (Fpq_lo_export): Ditto.
10364         (Fpq_get_line): Ditto.
10365         (Fpq_put_line): Mule-ize and bug fix.
10366         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10367
10368 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10369
10370         * postgresql.c (vars_of_postgresql): Mule-ize.
10371         (Fpq_conn_defaults): Ditto.
10372
10373 2000-03-12  Ben Wing  <ben@xemacs.org>
10374
10375         * alloc.c (Fmake_byte_code):
10376         * alloc.c (debug_string_purity_print):
10377         * alloc.c (pdump_backtrace):
10378         * alloc.c (pdump_get_indirect_count):
10379         * alloc.c (pdump_register_sub):
10380         * alloc.c (pdump_register_object):
10381         * alloc.c (pdump_register_struct):
10382         * alloc.c (pdump_dump_data):
10383         * alloc.c (pdump_reloc_one):
10384         Minor cleanups.
10385
10386         * console-msw.c:
10387         * console-msw.c (GetConsoleHwnd):
10388         * console-msw.c (msw_hide_console):
10389         * console-msw.c (msw_show_console):
10390         * console-msw.c (msw_ensure_console_buffered):
10391         * console-msw.c (msw_output_console_string):
10392         * console-msw.c (console_type_create_mswindows):
10393
10394         a) Added functions to manipulate the console window for use with
10395         shell support.
10396
10397         b) Added support for writing text to the console, which is now
10398         used under Windows when xemacs is not being run non-interactively,
10399         to write text that would otherwise be destined for stdout because
10400         under these circumstances, text written to stdout tends to
10401         disappear and not be seen.
10402
10403         * console-msw.h:
10404         * event-Xt.c:
10405         * event-Xt.c (x_event_to_emacs_event):
10406         * event-Xt.c (describe_event_window):
10407         * events-mod.h (XEMACS_MOD_CONTROL):
10408         * events.c:
10409         * events.c (Fmake_event):
10410         * events.c (character_to_event):
10411         * events.c (event_to_character):
10412         * events.c (format_event_object):
10413         * events.c (Fevent_modifiers):
10414         * events.h:
10415         * events.h (struct key_data):
10416         * events.h (struct button_data):
10417         * events.h (struct misc_user_data):
10418         * frame-x.c (Fcde_start_drag_internal):
10419         * frame-x.c (Foffix_start_drag_internal):
10420         * gpmevent.c (Freceive_gpm_event):
10421         * keymap.c:
10422         * keymap.c (bucky_sym_to_bucky_bit):
10423         * keymap.c (control_meta_superify):
10424         * keymap.c (make_key_description):
10425         * keymap.c (keymap_lookup_directly):
10426         * keymap.c (create_bucky_submap):
10427         * keymap.c (keymap_store):
10428         * keymap.c (define_key_check_and_coerce_keysym):
10429         * keymap.c (define_key_parser):
10430         * keymap.c (define_key_alternate_name):
10431         * keymap.c (Fdefine_key):
10432         * keymap.c (raw_lookup_key_mapper):
10433         * keymap.c (struct map_keymap_unsorted_closure):
10434         * keymap.c (map_keymap_unsorted_mapper):
10435         * keymap.c (map_keymap_sort_predicate):
10436         * keymap.c (map_keymap_sorted):
10437         * keymap.c (accessible_keymaps_mapper_1):
10438         * keymap.c (where_is_recursive_mapper):
10439         * keymap.c (describe_map_mapper):
10440         * keymap.c (describe_map_sort_predicate):
10441         * keymap.c (describe_map):
10442         * keymap.c (complex_vars_of_keymap):
10443         And a number of other files, the key modifier preprocessor
10444         constants that xemacs uses have names that conflict with constants
10445         defined under MS Windows for other purposes, so they were renamed
10446         to begin with the prefix XEMACS_. The variables that hold such
10447         modifiers were changed to consistently be of type int to fix
10448         various compile warnings.
10449
10450         * console.c (complex_vars_of_console):
10451         * device.c:
10452         * device-msw.c:
10453         * device-msw.c (mswindows_finish_init_device):
10454         * device-msw.c (msw_get_workspace_coords):
10455         * device-msw.c (mswindows_device_system_metrics):
10456         and various other files, added support for a new
10457         device property called offset-workspace which returns the position
10458         of the upper left corner of the workspace area and goes along with
10459         the existing size-workspace property.
10460
10461         * dialog-msw.c:
10462         * dialog-msw.c (push_bufbyte_string_as_unicode):
10463         * dialog-msw.c (mswindows_popup_dialog_box):
10464         Added support for XEmacs-style accelerator specifications in
10465         button text.  Note: I didn't add support for this under X Windows,
10466         and somebody needs to do this.
10467
10468         * dialog.c:
10469         * dialog.c (Fpopup_dialog_box):
10470         Documented the support for accelerators that was just mentioned.
10471
10472         editfns.c (get_home_directory): Changed behavior under Windows
10473         when HOME not defined; former behavior was irretrievably broken.
10474
10475         * emacs.c:
10476         * emacs.c (main_1):
10477         * emacs.c (main):
10478         * minibuf.c (clear_echo_area_internal):
10479         * minibuf.c (echo_area_append):
10480         * print.c:
10481         * print.c (std_handle_out_external):
10482         * print.c (std_handle_out_va):
10483         * print.c (fatal):
10484         * print.c (write_string_to_stdio_stream):
10485         * print.c (output_string):
10486         * print.c (debug_print):
10487         * print.c (debug_backtrace):
10488         * print.c (debug_short_backtrace):
10489         Cleaned up the code that prints text to stdout so that this can be
10490         changed to output into a console window instead under MS Windows,
10491         as described above.
10492
10493         * eval.c:
10494         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10495         * eval.c (internal_catch):
10496         * eval.c (unwind_to_catch):
10497         * eval.c (throw_or_bomb_out):
10498         * eval.c (condition_case_1):
10499         * eval.c (signal_1):
10500         * eval.c (check_error_state_sanity):
10501         * eval.c (call_with_suspended_errors_1):
10502         * eval.c (call_with_suspended_errors):
10503         * eval.c (reinit_vars_of_eval):
10504         Added code to catch throw loops and check for a pesky bug that may
10505         be gone now.
10506
10507         * event-msw.c:
10508         * event-msw.c (key_needs_default_processing_p):
10509         * event-msw.c (mswindows_wnd_proc):
10510         * event-msw.c (mswindows_modifier_state):
10511         * event-msw.c (emacs_mswindows_quit_p):
10512         * event-msw.c (vars_of_event_mswindows):
10513         a) Added support for using the alt key to select menu items as is
10514         standard under MS Windows.  This is controlled using the variable
10515         menu-accelerator-enabled, just like under X Windows.  There is an
10516         option on the options menu to turn this support on.  I really
10517         think that it should be on by default under Windows, but I'm not
10518         going to make this change yet.
10519
10520         b)  Added support for dynamic display size changes under Windows.
10521
10522         * event-stream.c:
10523         * event-stream.c (maybe_echo_keys):
10524         * event-stream.c (Fnext_event):
10525         * event-stream.c (command_builder_find_leaf):
10526         * event-stream.c (lookup_command_event):
10527         * event-stream.c (execute_command_event):
10528         * event-stream.c (pre_command_hook):
10529         * event-stream.c (post_command_hook):
10530         * event-stream.c (syms_of_event_stream):
10531         * event-stream.c (vars_of_event_stream):
10532         * event-stream.c (complex_vars_of_event_stream):
10533         * events.h (struct command_builder):
10534
10535         a) Tried to clean up a little bit the horribly written x-specific
10536         accelerator code that crept into this file.  I moved this code
10537         into menubar-x.c where it belongs. I also needed to move the
10538         command builder structure into the file events.h because it is
10539         accessed directly by this accelerator code.  What I didn't do, but
10540         which should be done at some point, is to properly abstract this
10541         code using device methods instead of the kludgy way that it
10542         currently hooks into the event code.
10543
10544         b) Added the lisp variables this-command-properties and
10545         last-command- properties, which should be used to synchronize two
10546         adjacent commands in preference to playing games with the variable
10547         this-command, which is typically what happens.
10548
10549         c) Added some slightly nasty code to hook into the lisp support
10550         for shifted- motion-key selection.  This is actually necessary for
10551         somewhat complicated reasons, which are described in
10552         simple.el. (NB: I think the proper thing would be to have the code
10553         that calls the pre and post command hooks also call out to generic
10554         lisp functions in simple.el, where all built-in stuff could be
10555         added.  I will think about this more.)
10556
10557         * event-unixoid.c (poll_fds_for_input):
10558         * lread.c (readchar):
10559         * redisplay-tty.c (tty_clear_frame):
10560         * redisplay-x.c (x_get_gc):
10561         * signal.c (interrupt_signal):
10562         And a whole bunch of other files: fixed up places that printed
10563         directly to stderr to instead call the function stderr_out so that
10564         the changes I made under Windows work correctly.
10565
10566         * filemode.c (mode_string):
10567         Warning fixes.
10568
10569         * frame-msw.c:
10570         * frame-msw.c (mswindows_size_frame_internal):
10571         Fixed the computation of frame size and position to keep the frame
10572         within the workspace area, rather than within the physical
10573         dimensions of the screen, so that the frame doesn't overlap window
10574         manager decorations, such as the start menu and toolbar, typically
10575         at the bottom of the screen.
10576
10577         * frame.c (vars_of_frame):
10578         Changed the default frame title format under MS Windows to consist
10579         of buffername-XEmacs, which is standard under MS Windows.  I think
10580         it might be a good idea to change this everywhere because I think
10581         it is superior to the current frame title format, but this is the
10582         kind of change that is likely to cause some people to get annoyed,
10583         so I'm not making it.
10584
10585         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10586
10587         * gui-msw.c (mswindows_handle_gui_wm_command):
10588         Fixed compile warnings.
10589
10590         * gui-x.c:
10591         * gui-x.c (strdup_and_add_accel):
10592         * gui-x.c (button_item_to_widget_value):
10593         * gui-x.h:
10594         Added code to automatically put an accelerator onto the beginning
10595         of menu items that don't have one as is now the standard, and is
10596         described more later.  Also fixed things so that the menu item
10597         name can be an evaluated expression, again a new standard.
10598
10599         * gui.c:
10600         * gui.c (gui_item_add_keyval_pair):
10601         * gui.c (make_gui_item_from_keywords_internal):
10602         * gui.c (gui_add_item_keywords_to_plist):
10603         * gui.c (gui_item_accelerator):
10604         * gui.c (gui_name_accelerator):
10605         * gui.c (gui_item_included_p):
10606         * gui.c (gui_item_display_flush_left):
10607         * gui.c (gui_item_display_flush_right):
10608         * gui.c (parse_gui_item_tree_item):
10609         * gui.c (parse_gui_item_tree_children):
10610         * gui.c (parse_gui_item_tree_list):
10611         Mule-ized.  Cleanup.  GCPRO addition.
10612
10613         * line-number.c (buffer_line_number):
10614         * lisp.h:
10615         * lisp.h (EMACS_INT_MAX):
10616         Added the manifest constant EMACS_INT_MIN corresponding to the
10617         existing constant EMACS_INT_MAX.  This is partially to fix compile
10618         warnings under Windows, and partly for cleanliness.
10619
10620         * menubar-msw.c:
10621         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10622         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10623         * menubar-msw.c (displayable_menu_item):
10624         * menubar-msw.c (populate_menu_add_item):
10625         * menubar-msw.c (populate_or_checksum_helper):
10626         * menubar-msw.c (populate_menu):
10627         * menubar-msw.c (update_frame_menubar_maybe):
10628         * menubar-msw.c (prune_menubar):
10629         * menubar-msw.c (msw_char_is_accelerator):
10630         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10631         * menubar-msw.c (mswindows_handle_wm_command):
10632         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10633         * menubar-msw.c (mswindows_handle_wm_initmenu):
10634         * menubar-msw.c (mswindows_update_frame_menubars):
10635         * menubar-msw.c (mswindows_free_frame_menubars):
10636         * menubar-msw.c (mswindows_popup_menu):
10637         Fixed a bug in handling accelerators where an extra character
10638         would be displayed in the menu item.  Also generalized the
10639         function displayable_menu_item because it is now used by the
10640         dialog box code as well.  And finally, added code in the functions
10641         that create the menubar to extract a list of accelerators for the
10642         top level menubar, which is used in the event code to determine
10643         whether a particular alt-key combination should be used to invoke
10644         a menu item, or should be passed through to access the standard
10645         XEmacs keymap binding for this key combination.
10646
10647         Much needed GCPROing.
10648
10649         * menubar-x.c:
10650         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10651         * menubar-x.c (menu_item_descriptor_to_widget_value):
10652         * menubar-x.c (restore_in_menu_callback):
10653         * menubar-x.c (x_popup_menu):
10654         * menubar-x.c (menu_move_up):
10655         * menubar-x.c (menu_move_down):
10656         * menubar-x.c (menu_move_left):
10657         * menubar-x.c (menu_move_right):
10658         * menubar-x.c (menu_select_item):
10659         * menubar-x.c (command_builder_operate_menu_accelerator):
10660         * menubar-x.c (menu_accelerator_junk_on_error):
10661         * menubar-x.c (command_builder_find_menu_accelerator):
10662         * menubar-x.c (Faccelerate_menu):
10663         * menubar.h:
10664         Moved a whole bunch of code here that was previously in
10665         event-stream.c as described above.  There is also code connected
10666         to the new standard of adding an accelerator to the beginning of
10667         menu items that don't have one as described above and below.
10668
10669         * menubar.c:
10670         * menubar.c (menu_parse_submenu_keywords):
10671         * menubar.c (Fmenu_find_real_submenu):
10672         * menubar.c (Fnormalize_menu_item_name):
10673         * menubar.c (syms_of_menubar):
10674         * menubar.c (vars_of_menubar):
10675         * menubar.c (complex_vars_of_menubar):
10676
10677         a) Cleaned up a bunch of documentation and improved it.
10678
10679         b) XEmacs now automatically adds an accelerator onto the beginning
10680         of any menu items that don't have one.  I did this because there
10681         will inevitably be some menu items on the main menubar that don't
10682         have accelerators on them because the package that adds that
10683         particular menu item hasn't yet been fixed up to have accelerators
10684         in them and it looked rather strange to have some items with and
10685         some items without accelerators, especially since even in items
10686         without accelerators, you can, at least under windows, still
10687         access the item through an accelerator corresponding to the first
10688         character in the item's name.  If people don't like this behavior,
10689         I can add a variable to turn it off optionally, but I'm not sure
10690         this is a good idea because we really do need to have accelerators
10691         on all of the menu items, and if a package doesn't like the
10692         accelerators being put on the first character, then it should put
10693         the accelerators where they belong.
10694
10695         c) I made a behavior change, which is that the descriptor that
10696         specifies the text of the menu item, which formerly was just a
10697         string, can now also be an evaluated expression.  This makes this
10698         descriptor parallel with all of the others, which could also be
10699         evaluated expressions.  This also obviates the need for the
10700         keyword :label, which was previously listed in the documentation
10701         as unimplemented, and which was for the same purpose.
10702
10703         d) GCPROing.
10704
10705         * ntproc.c:
10706         * ntproc.c (new_child):
10707         * ntproc.c (sys_spawnve):
10708         * ntproc.c (find_child_console):
10709         * ntproc.c (sys_kill):
10710         Fixed compile warnings.  By the way, this file should really go
10711         away entirely, and this will happen as soon as Kirill makes his
10712         final round of process cleanups, which affect the function
10713         call-process.
10714
10715         * process-nt.c:
10716         * process-nt.c (struct nt_process_data):
10717         * process-nt.c (find_process_from_pid):
10718         * process-nt.c (send_signal_the_nt_way):
10719         * process-nt.c (enable_child_signals):
10720         * process-nt.c (find_child_console):
10721         * process-nt.c (send_signal_the_95_way):
10722         * process-nt.c (nt_finalize_process_data):
10723         * process-nt.c (ensure_console_window_exists):
10724         * process-nt.c (nt_create_process):
10725         * process-nt.c (nt_kill_child_process):
10726         * process-nt.c (nt_kill_process_by_pid):
10727         * process-nt.c (nt_open_network_stream):
10728         * process-nt.c (vars_of_process_nt):
10729         Copied over code from Emacs 20.5 to correctly send signals to sub-
10730         processes under Windows 95.  Also added code to automatically
10731         create and hide console window when a sub-process is created under
10732         Windows 95, which obviates the need for the separate runemacs.exe
10733         executable, and finally implemented some variables that were
10734         implemented in Emacs 20.5, but previously not in XEmacs.  These
10735         include mswindows- start-process-share-console and
10736         mswindows-start-process-inherit-error-mode. (Both of these only
10737         apply to Windows 95.)
10738
10739         * regex.c (regex_compile): Fixed a compile warning.
10740
10741         * select-msw.c:
10742         * select-msw.c (mswindows_own_selection):
10743         * select-msw.c (mswindows_get_foreign_selection):
10744         * select-msw.c (mswindows_disown_selection):
10745         * select-msw.c (console_type_create_select_mswindows):
10746         * select-msw.c (syms_of_select_mswindows):
10747         Cleaned up the file and implemented the device method
10748         selection_exists_p, which had accidentally been left out.  Also
10749         removed four lisp functions that were remnants from before the
10750         time when the selection code was properly device abstracted.
10751         These functions are no longer needed because there are generic
10752         equivalents, and because they were added recently and don't exist
10753         in FSF Emacs, I don't think there's any problem with just deleting
10754         them.
10755
10756         * sysdep.c:
10757         * sysdep.c (sys_subshell):
10758         Fixed a compile warning, although in this case there's probably
10759         something wrong with this code, and it ought to be looked into
10760         more thoroughly by somebody who understands it.
10761
10762         * window.c:
10763         * window.c (Fwindow_text_area_height):
10764         * window.c (Fwindow_width):
10765         * window.c (Fwindow_full_width):
10766         * window.c (Fwindow_pixel_width):
10767         * window.c (debug_print_window):
10768         * window.c (syms_of_window):
10769         Added functions window-text-area-height and window-full-width,
10770         which are functions for returning various width and height
10771         characteristics of a window. (One of these functions is necessary
10772         for making the file dialog box work correctly, and the other one
10773         was added for completeness.)  Also added a table to the
10774         documentation for window-height which describes the entire scheme
10775         for accessing width and height characteristics of a window.
10776
10777 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10778
10779         * nt.c (fstat): Added a comment for another problem with
10780         non-encapsulated [f]stat(), reported by Adrian Aichner
10781         <aichner@ecf.teradyne.com>.
10782
10783 2000-03-11  Andy Piper  <andy@xemacs.org>
10784
10785         * window.c (make_dummy_parent): initialize subwindow instance
10786         cache.
10787         (Fset_window_configuration): zero extent_modiff.
10788
10789 2000-03-10  Andy Piper  <andy@xemacs.org>
10790
10791         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10792         more changes can be triggered.
10793         (Fredisplay_frame): ditto.
10794         (Fredraw_device): ditto.
10795         (Fredisplay_device): ditto.
10796         (redisplay_frame): make non-static.
10797         (redisplay_frame): call update_frame_gutter_geometry outside of
10798         display proper.
10799
10800         * gutter.h: declare update_frame_gutter_geometry.
10801
10802         * redisplay.h: declare redisplay_frame.
10803
10804         * gutter.c (update_frame_gutter_geometry): move geometry changes
10805         in update_frame_gutters here. Geometry changes can only occur
10806         outside of redisplay.
10807         (update_frame_gutters): remove geometry change code.
10808         (Fredisplay_gutter_area): make sure that we are in display when we
10809         update and that we have flushed any size changes.
10810
10811 2000-03-11  Andy Piper  <andy@xemacs.org>
10812
10813         * alloc.c (pdump_dump_data): remove i & count shadows.
10814
10815 2000-02-27  Mike Alexander  <mta@arbortext.com>
10816
10817         * sysdep.h: Declare pdump_read_file
10818
10819         * sysdep.c (pdump_read_file): New function
10820
10821         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10822         dump data
10823
10824 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10825
10826         * lrecord.h: add `lrecord_type_pgsetenv'.
10827
10828 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10829
10830         * symsinit.h: declare (vars|syms)_of* functions.
10831         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10832
10833 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10834
10835         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10836
10837         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10838         GCCs.
10839
10840         * emacs.c (main_1): Call postgres initialization code.
10841
10842         * postgresql.h: New file.  PostgreSQL RDBMS support.
10843         * postgresql.c: New file.
10844
10845 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10846
10847         * redisplay-output.c (redisplay_output_display_block): Disable
10848         redundant code.
10849
10850 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10851
10852         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10853         (Fcanna_henkan_next): Ditto.
10854         (Fcanna_bunsetu_henkou): Ditto.
10855         (Fcanna_henkan_kakutei): Ditto.
10856         (Fcanna_henkan_end): Ditto.
10857         (Fcanna_henkan_quit): Ditto.
10858         (Fcanna_henkan_next): Set retun value correctly.
10859         (c2mu): Use unsigned char instead of signed char.
10860
10861 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10862
10863         * emacs.c (main_1): Always call syms_of_gui.
10864         * inline.c: include gui.h
10865
10866 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10867
10868         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10869         converted to Lisp_Object.
10870         (Qtop_bottom): New variable.
10871         (syms_of_redisplay): Initialize it.
10872         * redisplay.h (Vvisible_bell): Ditto.
10873         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10874         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10875         only flash top and bottom.
10876
10877 2000-03-08  Andy Piper  <andy@xemacs.org>
10878
10879         * buffer.c (Frename_buffer): record new buffer name the right way.
10880
10881 2000-03-08  Andy Piper  <andy@xemacs.org>
10882
10883         * glyphs.c (update_subwindow): increase hash depth so that widget
10884         items get picked up properly.
10885
10886         * redisplay-output.c (compare_runes): increase hash depth so that
10887         widget items get picked up properly.
10888
10889 2000-03-08  Andy Piper  <andy@xemacs.org>
10890
10891         * gutter.c (output_gutter): add some debug.
10892
10893         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10894         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10895         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10896
10897         * redisplay-output.c (compare_runes): use display_hash to
10898         determine if glyphs really are not the same.
10899
10900         * glyphs.c (update_subwindow): check display_hash to see if
10901         anything really needs to be updated. If not then do
10902         nothing. Record the display_hash after updating.
10903         (image_instance_equal): compare the image_instance face also.
10904
10905 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10906
10907         * redisplay.h: Fix comment style.
10908
10909 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10910
10911         * consle-msw.h (struct mswindows_frame):
10912         Added new member paint_pending to indicate whether a WM_PAINT
10913         magic event has been queued for this frame.
10914
10915         * event-msw.c (mswindows_drain_windows_queue):
10916         Don't queue a WM_PAINT magic event if one is already queued.
10917         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10918
10919         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10920
10921 2000-03-07  Didier Verna  <didier@xemacs.org>
10922
10923         * dired.c: #include `regex.h' after `sysfile.h'.
10924
10925 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10926
10927         * sound.c (init_nas_sound): Fix compiler warning.
10928
10929         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10930         (FREE_STRUCT_P):
10931         (MARK_STRUCT_AS_FREE):
10932         (MARK_STRUCT_AS_NOT_FREE):
10933         Make `gcc -fstrict-aliasing' work properly.
10934
10935 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10936
10937         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10938         (mswindows_delete_device): Call CoUnnitialize().
10939
10940         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10941
10942 2000-02-25    <CraigL@DyCon.com>
10943
10944         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10945         <errno.h>.
10946
10947         * sysdep.c: This extern declaration for environ prevents MinGW
10948         from finding the variable in CRTDLL.DLL.
10949
10950         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10951         windows headers.
10952         (SHGFI_EXETYPE): ..
10953         (WM_MOUSEWHEEL): ..
10954         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10955         definitions.
10956         (MMRESULT): Removed, now defined in cygwin's windows headers.
10957         (TIMECAPS): ..
10958         (uid_t,gid_t,pid_t,ssize_t): ..
10959         (_timeb): Removed, MinGW defines both _timeb and timeb.
10960         (HAVE_H_ERRNO): Added.
10961         (HAVE_TZNAME): Added, configure is not detecting this.
10962
10963 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10964
10965         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10966         * syntax.c (syntax_match): Use it.
10967
10968         * cmds.c: Import auto-fill-chars from FSF Emacs.
10969         (Vauto_fill_chars): New variables.
10970         (internal_self_insert): Check Vauto_fill_chars.
10971         (vars_of_cmds):
10972         Declare auto-fill-chars as a Lisp variable and initialize it.
10973
10974 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10975
10976         * fileio.c (Fmake_symbolic_link):
10977         (Ffile_symlink_p):
10978         Run handlers even if local machine doesn't have symlinks.
10979
10980 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10981
10982         * event-msw.c (mswindows_drain_windows_queue):
10983         Don't generate paint magic events for non-XEmacs frames.
10984
10985 2000-03-05  Andy Piper  <andy@xemacs.org>
10986
10987         * redisplay.c (redisplay_frame): generate_displayable_area and
10988         friends assumes that we are not in GC, we therefore have to make
10989         sure that this doesn't happen.
10990
10991         * gutter.c (calculate_gutter_size): generate_displayable_area
10992         assumes that we are not in GC, we therefore have to make sure that
10993         this doesn't happen.
10994
10995 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10996
10997         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10998
10999 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11000
11001         * redisplay.c (regenerate_window): Make sure we set a sane value
11002         for end_pos even if we jump out of the loop.
11003         (regenerate_window): Answer Ben's question :-).
11004         (start_end_of_last_line): Add may_error argument.
11005         (start_of_last_line):
11006         (end_of_last_line): Pass may_error = 0.
11007         (end_of_last_line_may_error): New function.
11008         (pixel_to_glyph_translation): Use it, so we don't crash in
11009         event_to_glyph.
11010
11011 2000-03-04  Andy Piper  <andy@xemacs.org>
11012
11013         * window.h (struct window): add gutter_extent_modiff.
11014
11015         * window.c (allocate_window): zero out gutter_extent_modiff.
11016
11017         * redisplay.h: declare sync_display_line_structs.
11018
11019         * redisplay.c (add_glyph_rune): add a better comment.
11020
11021         * redisplay-output.c (sync_display_line_structs): made non-static.
11022         (compare_runes): remove unneccesary glyph cachel access.
11023
11024         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11025
11026         * gutter.c (output_gutter): don't output the gutter if extent
11027         changes only involve extents in buffers. use 4 sets of display
11028         lines.
11029         (gutter_extent_signal_changed_region_maybe): new function. Mark
11030         extents in gutters as changed.
11031         (update_frame_gutters): use 4 sets of display lines.
11032         (reset_gutter_display_lines): ditto.
11033         (free_frame_gutters): ditto.
11034         (redraw_exposed_gutter): force output of gutters.
11035
11036         * frame.h (struct frame): add 4 sets of gutter display lines.
11037
11038         * extents.c: (extent_changed_for_redisplay): signal changes to
11039         extents in strings in the gutter as well as extents in buffers.
11040
11041 2000-03-02  Andy Piper  <andy@xemacs.org>
11042
11043         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11044
11045         * frame.c (Fmake_frame): make sure the gutters get initialized
11046         after the frame is visible.
11047         (set_frame_selected_window): re-arrange compilation macros a
11048         little.
11049         (change_frame_size_1): mark gutters changed.
11050
11051         * device.c (Fset_device_class): mark gutters changed.
11052
11053 2000-03-01  Andy Piper  <andy@xemacs.org>
11054
11055         * window.c (window_top_frame_gutter_height): deleted.
11056         (window_bottom_frame_gutter_height): ditto.
11057         (window_left_frame_gutter_height): ditto.
11058         (window_right_frame_gutter_height): ditto.
11059         (window_top_gutter_height): don't use them.
11060         (window_bottom_gutter_height): ditto.
11061         (window_left_gutter_width): ditto.
11062         (window_right_gutter_width): ditto.
11063         (Fsplit_window): ditto.
11064         (Fwindow_pixel_edges): don't use border dimensions here.
11065
11066         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11067         (update_scrollbar_instance): ditto.
11068
11069         * redisplay.c (generate_modeline): don't take gutters into account.
11070         (generate_modeline): ditto.
11071         (redisplay_frame): small gutter display optimization.
11072
11073         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11074
11075         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11076         gutters into account.
11077
11078         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11079         for window position and type.
11080
11081         * gutter.c (get_gutter_coords): fix for frame gutters.
11082         (update_frame_gutters): update frame geometry if the gutters have
11083         changed.
11084         (init_frame_gutters): record current gutter geometries.
11085
11086         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11087         var.
11088         (mswindows_widget_instantiate): ditto.
11089
11090         * frame.h (struct frame): add current_gutter_bounds.
11091
11092         * frame.c (change_frame_size_1): position window and minibuffer
11093         appropriately taking into account the frame gutters.
11094
11095         * frame-x.c: (x_initialize_frame_size): take into account the
11096         frame gutters.
11097
11098 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11099
11100         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11101
11102 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11103
11104         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11105
11106 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11107
11108         * file-coding.c (reset_decoding_stream): Clear previous
11109         detection state when autodetect.
11110
11111 2000-02-29  Didier Verna  <didier@xemacs.org>
11112
11113         * extents.c (set_extent_glyph_1): don't require extents to be
11114         attached.
11115
11116 2000-02-27  Andy Piper  <andy@xemacs.org>
11117
11118         * gutter.c (Fset_default_gutter_position): don't default left and
11119         right gutter visibility to t.
11120         (Fset_default_gutter_position): run
11121         default-gutter-position-changed-hook.
11122         (syms_of_gutter): add default-gutter-position-changed-hook.
11123
11124 2000-02-26  Andy Piper  <andy@xemacs.org>
11125
11126         * specifier.c (Fmake_specifier): add gutter references.
11127
11128         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11129
11130         * lisp.h: declare Fvalid_plist_p.
11131
11132         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11133         as changed.
11134         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11135         well as its visibility so that it gets reconstructed.
11136         (construct_window_gutter_spec): new function. Construct a string
11137         to be displayed in the gutter from a plist of strings. Take care
11138         to only use elements that are declared as visible.
11139         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11140         WINDOW_GUTTER.
11141         (gutter_validate): allow plists of strings in the specifier.
11142         (gutter_specs_changed): construct the real_gutter from the gutter
11143         specs using construct_window_gutter_spec.
11144         (gutter_visible_validate): gutter-visible is a new specifier type.
11145         (Fgutter_visible_specifier_p): new function for the new specifier.
11146         (syms_of_gutter): declare gutter-visible and
11147         Fgutter_visible_specifier_p.
11148         (specifier_type_create_gutter): intitalize new gutter-visible
11149         specifier.
11150         (reinit_specifier_type_create_gutter): ditto.
11151         (specifier_vars_of_gutter): use new specifier type for gutter
11152         visibility.
11153         (init_frame_gutters): construct real_gutter correctly.
11154         (Fgutter_specifier_p): beef up documentation.
11155         (Fgutter_size_specifier_p): ditto.
11156
11157         * winslots.h: add real_gutter slots.
11158
11159 2000-02-25  Andy Piper  <andy@xemacs.org>
11160
11161         * device-msw.c: Be kind to older cygwin versions. From Raymond
11162         Toy <toy@rtp.ericsson.se>.
11163
11164         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11165         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11166
11167 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11168
11169         * elhash.c (MARK_OBJ): Practice macro hygiene.
11170
11171 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11172
11173         * miscplay.c: s/__inline__/inline/g;
11174         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11175         (get_device_compdc): INLINE ==> static inline
11176         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11177         find -name '*.h' | \
11178         xargs global-replace \
11179         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11180
11181 2000-02-25  Andy Piper  <andy@xemacs.org>
11182
11183         * window.c (window_top_frame_gutter_height): new function.
11184         (window_top_window_gutter_height): ditto.
11185         (window_top_gutter_height): use them.
11186         (window_bottom_frame_gutter_height): new function.
11187         (window_bottom_window_gutter_height): ditto.
11188         (window_bottom_gutter_height): use them.
11189         (window_left_window_gutter_width): new function.
11190         (window_left_frame_gutter_width): ditto.
11191         (window_left_gutter_width): use them.
11192         (window_right_window_gutter_width): new function.
11193         (window_right_frame_gutter_width): ditto.
11194         (window_right_gutter_width): use them.
11195         (window_pixel_height): new function. calulate window pixel height
11196         with frame gutter involvement.
11197         (Fsplit_window): calculate new sizes taking frame gutters into
11198         account.
11199         (window_char_height_to_pixel_height): don't include frame gutters.
11200         (window_char_height): use window_pixel_height.
11201         (window_pixheight): rename from window_pixel_height.
11202         (change_window_height): use it.
11203         (window_pixel_height_to_char_height): don't include frame gutters.
11204         (window_char_width_to_pixel_width): ditto.
11205
11206 2000-02-25  Andy Piper  <andy@xemacs.org>
11207
11208         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11209         if it is.
11210
11211 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11212
11213         * alloc.c (staticpro):
11214         (staticpro_nodump):
11215         (dumpstruct):
11216         (dumpopaque):
11217         (pdump_wire):
11218         (pdump_wire_list):
11219         (compact_string_chars):
11220         (pdump_dump_wired):
11221         Convert:  if (foo) abort();  ==>  assert (! foo);
11222
11223         * eldap.c (Fldap_search_basic):
11224         (Fldap_add):
11225         (Fldap_modify):
11226         (Fldap_delete):
11227         Fix compiler warnings, and possible crashes if (random) return
11228         value were to be used.
11229
11230 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11231
11232         * device-msw.c: Workaround ResetDC failure.
11233
11234         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11235         applying a devmode.
11236
11237         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11238         (mswindows_text_width): Do not start printer page.
11239
11240         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11241
11242         * glyphs-msw.c: Added image methods to msprinter console and
11243         msprinter-specific image instantiation.
11244
11245 2000-02-20  Mike Alexander  <mta@arbortext.com>
11246
11247         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11248         to avoid crashes when selection-sets-clipboard is on
11249         (mswindows_own_selection): ditto
11250
11251 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11252
11253         * glyphs-msw.c:
11254         * redisplay-msw.c (get_frame_dc):
11255         (get_frame_compdc):
11256         * console-msw.h:
11257         * device-msw.c (mswindows_init_device):
11258         (mswindows_delete_device):
11259         (msprinter_init_device):
11260         (msprinter_delete_device):
11261         * frame-msw.c (mswindows_init_frame_1):
11262         (mswindows_delete_frame):
11263         (msprinter_init_frame_3):
11264         (msprinter_delete_frame): Move compatible DC to device object from
11265         frame object, for both mswindows and msprinter. Only one at a time
11266         is needed, it is a real waste to have one per frame!
11267
11268 2000-02-23  Andy Piper  <andy@xemacs.org>
11269
11270         * glyphs.c: add dynamic width and height elements.
11271         (image_instance_equal): ditto.
11272
11273         * glyphs-widget.c (widget_query_geometry): calculate width and
11274         height dynamically if required.
11275         (initialize_widget_image_instance): initialize dynamic dimensions.
11276         (widget_instantiate): pick-up dynamic dimensions.
11277
11278         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11279         dynamic determination. Add appropriate macros.
11280
11281         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11282         dimensions safe.
11283         (WINDOW_GUTTER_SIZE): ditto.
11284         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11285
11286         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11287         inline.
11288         (get_frame_dc): ditto.
11289
11290         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11291         here.
11292
11293 2000-02-23  Martin Buchholz <martin@xemacs.org>
11294
11295         * XEmacs 21.2.31 is released.
11296
11297 2000-02-22  Ben Wing <ben@xemacs.org>
11298
11299         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11300
11301 2000-02-22  Andy Piper  <andy@xemacs.org>
11302
11303         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11304
11305 2000-02-21  Mike Sperber <mike@xemacs.org>
11306
11307         * .dbxrc:
11308         * .gdbinit:
11309         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11310         variables.
11311
11312 2000-02-21  Mike Sperber <mike@xemacs.org>
11313
11314         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11315
11316 2000-02-21  Martin Buchholz <martin@xemacs.org>
11317
11318         * XEmacs 21.2.30 is released.
11319
11320 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11321
11322         Performance hacking.
11323         * *.c (syms_of_*):
11324         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11325         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11326         * emacs.c (main_1):
11327         * lisp.h (DEFUN):
11328         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11329         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11330         * symeval.h (DEFVAR_SYMVAL_FWD):
11331         * symbols.c (guts_of_unbound_marker):
11332         Make all c_readonly objects also lisp_readonly and marked for life.
11333         * lrecord.h (struct lrecord_implementation):
11334         Document flags better.
11335         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11336         * lrecord.h (DECLARE_LRECORD):
11337         * lrecord.h (XSETRECORD):
11338         * lrecord.h (RECORDP):
11339         * lrecord.h (RECORD_TYPEP):
11340         * lrecord.h (RECORD_MARKER): New.
11341         * lrecord.h (error_check_*):
11342         * lrecord.h (CONCHECK_NONRECORD):
11343         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11344         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11345         * lrecord.h (set_lheader_implementation):
11346         * lrecord.h (enum lrecord_type): New.
11347         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11348         * alloc.c (disksave_object_finalization_1):
11349         * alloc.c (mark_object):
11350         * alloc.c (lrecord_type_index):
11351         * alloc.c (tick_lcrecord_stats):
11352         * alloc.c (Fgarbage_collect):
11353         * alloc.c (init_alloc_once_early):
11354         * alloc.c (pdump_load):
11355         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11356         * alloc.c (lrecord_type_index): Delete.
11357         Make lisp object type indexes be constant.
11358           Makes (byte-compile) 5% faster.
11359         Put all marker functions into their own array.
11360           Makes (garbage-collect) 5% faster.
11361         Optimize SYMBOL_VALUE_MAGIC_P.
11362           Makes (byte-compile) 2-3% faster.
11363         * config.h.in (gc_checking_assert): New.
11364         * alloc.c: Use gc_checking_assert().
11365         * .dbxrc: Make compatible with new object type implementation.
11366         * .gdbinit: Make compatible with new object type implementation.
11367         * alloc.c: Delete all symbols defined only for debugging, such as
11368         Lisp_Type_Vector and lrecord_charset.
11369
11370 2000-02-21  Andy Piper  <andy@xemacs.org>
11371
11372         * gui-msw.c (Fmswindows_shell_execute): fix file location
11373         problems.
11374
11375         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11376         unshowing so that set_window_buffer doesn't undo
11377         kill_buffer_hook's hard work.
11378
11379         * glyphs-widget.c (tab_control_query_geometry): don't count the
11380         first item when calculating geometry.
11381
11382         * glyphs.c (map_subwindow): remove redundant code.
11383         (update_frame_subwindows): be more circumspect about when to
11384         update subwindows.
11385
11386         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11387         when items haven't changed. Update faces if faces have changed as
11388         well as just the widget face.
11389         (x_tab_control_update): Update faces if faces have changed as well
11390         as just the widget face.
11391
11392 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11393
11394         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11395         registration.
11396         (build_syscolor_string): Use mswindows_color_to_string to try to
11397         get a named color.
11398         (mswindows_device_system_metrics): Reverse the foreground and
11399         background colors so that they match the documentation.
11400
11401         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11402         they match the default Windows palette.
11403         (mswindows_color_to_string): New function.
11404
11405 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11406
11407         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11408
11409 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11410
11411         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11412         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11413
11414         * symbols.c (init_symbols_once_early): Removed obsolete
11415         DATA_SEG_BITS related kludge.
11416         (defvar_magic): Ditto.
11417
11418         * malloc.c: Removed obsolete DATA_SEG_BITS
11419         * ralloc.c: Ditto.
11420         * mem-limits.h: Ditto.
11421
11422         * Makefile.in.in: Removed obsolete HAVE_SHM
11423         * emacs.c: Ditto.
11424
11425 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11426
11427         *  device-msw.c (mswindows_delete_device): Free DDE string
11428         handles.
11429
11430 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11431
11432         * keymap.c (get_keyelt):
11433         * unexnt.c (unexec):
11434         * vm-limit.c (memory_warnings):
11435         * ntheap.c (recreate_heap):
11436         * ntheap.h (UNINIT_PTR):
11437         * select-msw.c (Fmswindows_get_clipboard):
11438         (Fmswindows_set_clipboard):
11439         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11440         * objects-msw.c:
11441         * menubar-msw.c (displayable_menu_item):
11442         * glyphs-msw.c:
11443         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11444         * sysdep.c (sys_subshell):
11445         * process-nt.c (nt_create_process):
11446         * nt.c (normalize_filename):
11447         (dostounix_filename):
11448         (unixtodos_filename):
11449         * ntproc.c (win32_executable_type):
11450         * ntplay.c (play_sound_data_1):
11451         (play_sound_file):
11452         * editfns.c (get_home_directory):
11453         * event-msw.c (struct winsock_stream):
11454         (mswindows_dde_callback):
11455         * device-msw.c (msprinter_init_device):
11456         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11457
11458         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11459         mswindows_clear_toolbar were swapped!
11460
11461         * objects-msw.c:(colormap_t):
11462         (fontmap_t):
11463         * emacs.c (struct standard_args): Fixed const jumble.
11464
11465         * glyphs-widget.c (update_widget): Fixed comparison notation.
11466
11467         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11468
11469         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11470         __declspec(noreturn) syntax.
11471
11472 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11473
11474         * eldap.c (Fldap_open):
11475         (Fldap_search_basic):
11476         (Fldap_add):
11477         (Fldap_modify):
11478         Use new coding system conversion macros.
11479
11480 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11481
11482         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11483
11484 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11485
11486         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11487         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11488
11489         * eldap.c (Qadd, Qreplace): New constant symbols
11490         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11491         interruptions by XEmacs signals
11492         Remove unnecessary calls to slow_down_interrupts and
11493         speed_up_interrupts
11494         (Fldap_search_basic): Renamed from Fldap_search_internal
11495         Added new optional parameter VERBOSE that triggers the
11496         display of progress messages
11497         Remove unnecessary calls to slow_down_interrupts and
11498         speed_up_interrupts
11499         LDAP result code analysis rewritten
11500         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11501         (syms_of_eldap): Define the new symbols and functions
11502
11503
11504 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11505
11506         * realpath.c: Determine PATH_MAX maximally portably.
11507
11508         * insdel.c (bytecount_to_charcount): Optimize.
11509         The function used to be optimized for entirely ASCII sequences.
11510         Now it is optimized for successive characters from the same
11511         charset.  This also wins big for _mostly_ ASCII sequences.
11512
11513         * fileio.c (Ffile_truename): convert return from realpath() using
11514         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11515         - Rewrite GCPROing slightly.
11516
11517         * sysdep.c (sys_open): Do filename conversion, like all other
11518         sys_* functions.  Fixes bug:
11519         (let ((file-name-coding-system 'iso-8859-2))
11520            (write-region x y latin2-name))
11521         ==> writes filename using internal encoding.
11522
11523 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11524
11525         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11526         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11527         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11528         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11529         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11530         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11531         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11532         (CONST_IF_NOT_DEBUG): Delete.
11533         * alloc.c (this_one_is_unmarkable): Delete.
11534         (mark_object): Don't check for this_one_is_unmarkable. Use the
11535         c_readonly flag instead.
11536         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11537
11538 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11539
11540         * event-msw.c (mswindows_drain_windows_queue):
11541         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11542         away redundant repaint events.
11543
11544 2000-02-17  Andy Piper  <andy@xemacs.org>
11545
11546         * redisplay.h: declare mark_redisplay_structs.
11547
11548         * redisplay.c (redisplay_window):
11549         (redisplay_frame): don't check subwindows_state_changed.
11550         (mark_redisplay): mark gutters here.
11551
11552         * glyphs.c: (instantiate_image_instantiator): always layout if we
11553         haven't done so already.
11554         (allocate_image_instance): don't mark as dirty.
11555         (update_subwindow): bind inhibit_quit.
11556
11557         * gutter.c (mark_gutters): new function.
11558
11559         * glyphs-x.c (x_update_widget): Always resize to get round a
11560         widget bug.
11561
11562         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11563         breaking absolutely everything.
11564
11565         * gutter.h: declare mark_gutters.
11566
11567 2000-02-16  Martin Buchholz <martin@xemacs.org>
11568
11569         * XEmacs 21.2.29 is released.
11570
11571 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11572
11573         * fns.c (size_bit_vector): Fix computation of the size.
11574
11575 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11576
11577         * *.[ch]: Change CONST to const globally.
11578         find -name '*.[ch]' | \
11579         xargs global-replace \
11580         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11581         - Remove vestigial references to CONST_IS_LOSING
11582
11583 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11584
11585         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11586         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11587         events instead of dispatching them directly.
11588         (mswindows_handle_paint): New function to do repainting.
11589         (mswindows_wnd_proc):
11590         (emacs_mswindows_handle_magic_event): Call above function.
11591
11592 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11593
11594         * objects-msw.c (mswindows_create_font_variant): Return the new
11595         font handle.
11596         (initialize_font_instance): Get font metrics from the underlined
11597         variant of the font to cope with the case where the underlined
11598         font has a bigger descent.
11599
11600 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11601
11602         * gui.c (gui_item_accelerator): Return the first underlined
11603         character in item name.
11604
11605 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11606
11607         * lisp.h: Added Qprinter.
11608
11609         * general.c (syms_of_general): Initialized it.
11610
11611         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11612         (get_frame_dc):
11613         (get_frame_compdc): Made inline.
11614
11615         * console.h (struct console_methods): Added eject_page method.
11616
11617         * frame.h: Added FRAME_DISPLAY_P and friends.
11618         Aligned backslahes in many macros in more readable fashion.
11619         Added page_number to struct frame, and an accessor macro
11620         for it.
11621
11622         * defice.h: Added DEVICE_DISPLAY_P and friends.
11623
11624         * device.c (Fdevice_printer_p): Used these.
11625
11626         * frame.c (allocate_frame_core): Initialize page number.
11627         (Fprint_job_page_number):
11628         (Fprint_job_eject_page): Implemented.
11629
11630         * frame-msw.c (msprinter_eject_page): Added method.
11631         (msprinter_start_page): Added.
11632
11633         * window.c (Fwindow_truncated_p): Fixed docstring.
11634         (Fwindow_last_line_visible_height): Implemented.
11635
11636 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11637
11638         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11639
11640 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11641
11642         * syntax.c (scan_words): Always advance at least one character.
11643
11644 2000-02-13  Andy Piper  <andy@xemacs.org>
11645
11646         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11647         to make sure the glyph is in the cachels.
11648
11649         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11650         global image instance flag.
11651         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11652         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11653
11654         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11655         (Fset_image_instance_property): mark layout as changed.
11656         (invalidate_glyph_geometry_maybe): mark layout as changed.
11657         (glyph_width): use new NEEDS_LAYOUT macro.
11658         (glyph_ascent): ditto.
11659         (glyph_descent): ditto.
11660         (glyph_height): ditto.
11661         (image_instance_layout): mark layout as clean after laying out.
11662         (update_subwindow): don't mark layout as clean here.
11663
11664         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11665         should no longer be needed.
11666
11667         * glyphs-x.c (x_update_widget): sanitize asserts.
11668         (x_finalize_image_instance): sanitize assignment to widgets.
11669
11670         * glyphs-widget.c (widget_instantiate): don't need to clear the
11671         layout flag here.
11672
11673 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11674
11675         * sysdep.c (getcwd): Use standard prototype.
11676         * sysdep.h (getcwd): Use standard prototype.
11677
11678         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11679         (sequence, start, end).
11680         Remove redundant type checking.
11681         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11682         view of `caller-protects') to avoid a crash where the real fix was
11683         found elsewhere.
11684
11685 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11686
11687         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11688
11689         * s/sol2.h: Remove feature macro initialization.
11690
11691         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11692         (vector_hash): New.  Code from internal_hash.
11693         * lrecord.h:
11694         Fix up allocation subsystem comments.
11695
11696         * config.h.in: Add __EXTENSIONS__ for Solaris.
11697
11698         * systime.h (EMACS_GETTIMEOFDAY): New.
11699         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11700         Remove Solaris-specific code.
11701         Use void* for the (ignored) second arg for gettimeofday().
11702
11703         * elhash.c (hash_table_hash): Implement it, finally.
11704         * elhash.c:  Use hashcode_t.
11705
11706         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11707         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11708
11709         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11710         * fns.c (size_bit_vector):
11711         * alloc.c (size_vector):
11712         (make_vector_internal):
11713         (make_bit_vector_internal):
11714         (sweep_bit_vectors_1):
11715         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11716
11717 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11718
11719         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11720         Include strings.h to avoid warnings for bzero and strcasecmp.
11721
11722 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11723
11724         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11725         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11726
11727         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11728         sequence.
11729
11730 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11731
11732         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11733         use a value field instead.
11734         (symbol_value_forward_forward): Use value field.
11735         (DEFVAR_SYMVAL_FWD): Use value field.
11736         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11737         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11738         (DEFVAR_CONST_INT): Ditto.
11739         (DEFVAR_BOOL): Ditto.
11740         (DEFVAR_CONST_BOOL): Ditto.
11741         (DEFVAR_INT_MAGIC): Ditto.
11742         (DEFVAR_BOOL_MAGIC): Ditto.
11743
11744         * symbols.c (guts_of_unbound_marker): Use value field.
11745         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11746         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11747
11748         * lisp.h: Declare dumpopaque and noninteractive1.
11749
11750         * alloc.c (dumpopaque): Added.
11751         (pdump_dump_opaquevec): Added.
11752         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11753         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11754         noninteractive.
11755
11756 2000-02-10  Andy Piper  <andy@xemacs.org>
11757
11758         * glyphs.c (image_instance_layout): if the size changes, mark it
11759         as such.
11760
11761         * redisplay-output.c (redisplay_output_layout): Update the
11762         subwindow here.
11763         (redisplay_output_subwindow): ditto.
11764
11765         * glyphs.c (update_subwindow): make sure we reset flags for
11766         layouts as well as everything else.
11767
11768         * glyphs-widget.c (layout_layout): don't need to set the instances
11769         dimensions here.
11770
11771 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11772
11773         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11774         not HAVE_DLOPEN, which is a lower-level thing.
11775
11776         * .cvsignore: Ignore gmon.out
11777
11778 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11779
11780         * .cvsignore: Ignore portable dumper xemacs.dmp file
11781
11782 2000-02-09  Andy Piper  <andy@xemacs.org>
11783
11784         * redisplay-output.c (redisplay_output_layout): be more clever
11785         about when we output based on the changed flags.
11786
11787         * glyphs.h (struct image_instantiator_methods): add update_method.
11788         (struct Lisp_Image_Instance): add changed flags. Declare new
11789         macros for manipulating them.
11790
11791         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11792         (image_instance_parent_glyph): find an image_instance's parent
11793         glyph or image_instance.
11794         (image_instance_layout): mark the size as changed.
11795         (set_image_instance_dirty_p): new function. mark an image
11796         instance, plus all of its parents, as dirty.
11797         (Fset_image_instance_property): use it.
11798         (Fglyph_animated_timeout_handler): use it.
11799         (update_subwindow): call update_widget and device methods for
11800         update_subwindow. Mark all changed flags as clean.
11801         (Fresize_subwindow): mark size as changed.
11802
11803         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11804         failures.
11805         (x_update_subwindow): only resize subwindows here.
11806         (x_update_widget): new function. Update all changed properties of
11807         a widget.
11808         (x_resize_subwindow): deleted.
11809         (x_widget_set_property): deleted.
11810         (x_progress_gauge_set_property): deleted.
11811         (x_progress_gauge_update): new function. Implement recorded
11812         changes.
11813         (x_tab_control_update): ditto.
11814         (x_tab_control_set_property): deleted.
11815         (console_type_create_glyphs_x): declare new functions.
11816         (image_instantiator_format_create_glyphs_x): ditto.
11817
11818         * glyphs-widget.c (widget_set_property): mark text changed.
11819         (update_widget): new function. Update properties of a widget.
11820         (widget_instantiate): for layouts make sure we set their
11821         children's parent correctly.
11822         (tab_control_set_property): new function. Record changes that will
11823         take place under redisplay's control.
11824         (progress_gauge_set_property): ditto.
11825         (image_instantiator_progress_guage): declare new functions.
11826         (image_instantiator_tab_control): ditto.
11827
11828         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11829         now.
11830         (mswindows_update_widget): new function. Update all properties on
11831         a widget that have changed.
11832         (mswindows_button_update): new function. Update a button's set
11833         state.
11834         (mswindows_tab_control_update): new function. Update the items in
11835         a tab.
11836         (mswindows_tab_control_set_property): deleted.
11837         (mswindows_progress_gauge_update): new function. Update the
11838         progress gauge's progress.
11839         (mswindows_widget_set_property): deleted. This is all done
11840         asynchronously now.
11841         (mswindows_progress_gauge_set_property): ditto.
11842         (console_type_create_glyphs_mswindows): declare new methods.
11843         (image_instantiator_format_create_glyphs_mswindows): ditto.
11844
11845         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11846         (msprinter_set_frame_properties): ditto.
11847
11848         * console.h (struct console_methods): Add update_widget_method.
11849
11850 2000-02-09  Andy Piper  <andy@xemacs.org>
11851
11852         * gui-msw.c (Fmswindows_shell_execute): Make
11853         mswindows-shell-execute industrial strength.
11854
11855 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11856
11857         * lrecord.h: Make macro argument `props' match member function `plist'.
11858         * fns.c (Fget):
11859         * fns.c (Fput):
11860         * fns.c (Fremprop):
11861         * fns.c (Fobject_plist):
11862         * alloc.c:
11863         * symbols.c:
11864         Object property list frobbing cleanup.
11865         - Allow any lisp object (compared with `eq'), not just symbols, as
11866           keys in object plists.
11867         - Move symbol plist frobbing into symbols.c, where it belongs.
11868         - Move string plist frobbing into alloc.c, where it belongs.
11869         - Everything's an lrecord now, so no need to test for symbolp, etc.
11870         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11871
11872         * extents.c: Reorder code to remove declarations.
11873
11874         * frame.h (store_in_alist): Remove useless declaration.
11875
11876 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11877
11878         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11879         * config.h.in: Add HAVE_XCONVERTCASE.
11880
11881 2000-02-07  Andy Piper  <andy@xemacs.org>
11882
11883         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11884         it breaks many things.
11885
11886 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11887
11888         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11889         actually can start a common comment type.
11890         * src/syntax.h (SYNTAX_END_P): ditto for end.
11891
11892 2000-02-07  Martin Buchholz <martin@xemacs.org>
11893
11894         * XEmacs 21.2.28 is released.
11895
11896 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11897
11898         * event-Xt.c (x_keysym_to_character): New.
11899         (maybe_define_x_key_as_self_inserting_character): New.
11900         (x_has_keysym): New.
11901         Auto-define all keys on the keyboard as self-insert-key.
11902
11903 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11904
11905         * menubar.c (vars_of_menubar): A small code simplification.
11906
11907         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11908
11909         * ExternalShell.c:
11910         * ExternalClient.c:
11911         * EmacsShell-sub.c:
11912         * EmacsManager.c:
11913         * EmacsFrame.c:
11914         Use consistent style for specifying X resources.
11915
11916         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11917         This makes (dontusethis-set-symbol-value-handler) actually usable.
11918
11919         * lrecord.h (lrecord_decription_type):
11920         * alloc.c (pdump_register_sub):
11921         (pdump_dump_data):
11922         (pdump_reloc_one):
11923         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11924         Comply with XEmacs coding style.
11925         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11926         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11927
11928         * keymap.c (Faccessible_keymaps):
11929         Make (accessible-keymaps map "\C-h") do the Right Thing.
11930         Make (accessible-keymaps map []) do the Right Thing.
11931         Make (accessible-keymaps map "") do the Right Thing.
11932         (check_keymap_definition_loop): New function.
11933         (keymap_store_internal): Keep luser from shooting self in foot,
11934           via (define-key ctl-x-4-map "p" global-map).
11935         Remove fullness slot from struct Lisp_Keymap, since hash tables
11936         are now reliable.
11937         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11938
11939 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11940
11941         * redisplay.c (init_redisplay): Fix small memory leak.
11942         * elhash.h:
11943         * elhash.c (pdump_reorganize_hash_table):
11944         Rename from reorganize_hash_table. Change prototype.
11945         Reuse the original memory for hentries.  Save 100k.
11946         * alloc.c (PDUMP_READ): new macro.
11947         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11948         * alloc.c: No need to #ifndef before #undef.
11949
11950         * print.c: Allow debug_print() to print readably by modifying
11951         debug_print_readably.  Use consistent variable names.
11952
11953         * .dbxrc: Try to get things to work even if stopped in a function
11954         without source available by explicitly specifying source files.
11955 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11956
11957         * unexnt.c (_start): Removed bogus code which caused loading heap
11958         from differrent executable file.
11959         Removed bogus assignment to _fmode, which caused inconsistencies.
11960
11961 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11962
11963         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11964         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11965         Do not preliminary `#define signal sigset'.
11966
11967         * systime.h: Do not prototype environ on windows nt and cygwin,
11968         this conflicts with system header.
11969
11970         * syssignal.h: Use correct define for WINDOWSNT
11971
11972         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11973         with system header.
11974
11975         * sysdep.c (near start of file): Fixed commentary and rearranged
11976         ifdefs in readable order.
11977         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11978         (start_of_text):
11979         (end_of_text):
11980         (end_of_data): Do not compile in if using PDUMP.
11981
11982         * symsinit.h: Prototyped vars_of_nt().
11983
11984         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11985         (find_child_console): Use it.
11986         (sys_kill): Use it.
11987
11988         * ntheap.h: Do not extern os_subtype.
11989
11990         * ntheap.c (cache_system_info): Do not cache unneeded:
11991         nt_major_version, nt_minor_version and os_subtype.
11992         (recreate_heap): Do not compile in when PDUMPing.
11993
11994         * nt.c (geteuid and friends): Use the new varibale
11995         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11996         (init_user_info): Removed the above mentioned hackery.
11997         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11998         stat has been fixed in the C runtime.
11999         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12000
12001         * file-coding.c (struct file_coding_dump): Do not define
12002         ucs_to_mule_table in the struct if not MULE.
12003         (struct struct lrecord_description fcd_description_1): Do not dump
12004         the above.
12005
12006         * emacs.c (main_1): Call vars_of_nt().
12007         (right before Fdump_emacs_data): Don't need lastfile if using both
12008         portabe dumper and system malloc.
12009
12010         * alloc.c (Fmemory_limit): Conditionalized out.
12011         (pdump): Use OPEN_BINARY for the portable dump file.
12012         (pdump_load): Ditto.
12013
12014 2000-02-02  Mike Alexander  <mta@arbortext.com>
12015
12016         * nt.c (convert_time): Set tm_isdst before calling mktime and
12017         avoid calling it at all if the compiler supports 64 bit integers.
12018         Also initialize utc_base_ft before using it.
12019
12020 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12021
12022         * frame.c (change_frame_size_1): Take f->internal_border_width
12023         into consideration when calculating the width of the frame.
12024
12025 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12026
12027         * window.c (frame_min_height):
12028         (frame_size_valid_p):
12029         (frame_pixsize_valid_p): Added.
12030         (check_frame_size): Generalized.
12031
12032         * window.h: Prototyped the above.
12033
12034         * lisp.h:
12035         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12036         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12037         Deleted Vwin32_* and Vbinary_process_* unused variables.
12038
12039         * device-msw.c (msprinter_init_device): Do not get printer font
12040         list; Added DEVMODE functions.
12041
12042         * frame-msw.c: Added lots of printer code.
12043
12044         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12045         general.c.
12046
12047         * console-msw.h: Added more msprinter device private slots.
12048
12049 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12050
12051         * event-msw.c (key_needs_default_processing_p): Added.
12052         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12053
12054 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12055
12056         * glyphs.c (image_instance_layout): Mark image instance as clean
12057         after layout.
12058         (glyph_dirty_p): Removed redundant function.
12059         (invalidate_glyph_geometry_maybe): Added.
12060         (update_glyph_cachel_data): Call it.
12061
12062         * glyphs.h: Prototyped it.
12063
12064         * redisplay.c (add_glyph_rune): Call it.
12065         (redisplay_window): Reset glyphs cachels when frame faces have
12066         changed, thus forcing recomputation of built-in border glyphs.
12067
12068 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12069
12070         * Makefile.in.in: Make portable dumper and purify play well together.
12071         Add imperfect, but better than nothing, support for pdump.
12072         Remove xemacs.dmp when temacs is re-generated.
12073         Don't ignore errors when dumping xemacs.
12074
12075         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12076
12077 2000-01-28  Andy Piper  <andy@xemacs.org>
12078
12079         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12080         (setup_normal_frame): ditto.
12081         (setup_frame_without_minibuffer): ditto.
12082         (setup_minibuffer_frame): ditto.
12083         (delete_frame_internal): ditto.
12084         (Fmake_frame_invisible): ditto.
12085         (Ficonify_frame): ditto.
12086
12087         * window.h: change Fset_window_buffer signature.
12088
12089         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12090         (Fset_window_buffer): allow recording of buffer if the window is
12091         the selected window.
12092         (window_loop): Use new Fset_window signature.
12093
12094 2000-01-23  Daniel Pittman  <daniel@danann.net>
12095
12096         * config.h.in: Added template for `HAVE_ATHENA_3D'
12097
12098 2000-01-29  Andy Piper  <andy@xemacs.org>
12099
12100         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12101
12102         * gutter.c (output_gutter): Don't output if the window isn't live.
12103
12104 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12105
12106         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12107         of 01/12/00: Moved SetFocus back here where it belongs.
12108
12109 2000-01-23  Andy Piper  <andy@xemacs.org>
12110
12111         * s/cygwin32.h: declare printer things.
12112
12113 2000-01-26  Andy Piper  <andy@xemacs.org>
12114
12115         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12116         Alexander.
12117
12118 2000-01-24  Andy Piper  <andy@xemacs.org>
12119
12120         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12121         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12122
12123         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12124
12125         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12126
12127         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12128
12129         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12130         (mswindows_output_display_block): Avoid local shadows.
12131
12132         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12133         (mswindows_enqueue_mouse_button_event): ditto.
12134         (mswindows_handle_gui_wm_command): remove declaration.
12135
12136         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12137         warnings.
12138
12139         * console-msw.h: Avoid shadows.
12140         (mswindows_get_toolbar_button_text):
12141         (emacs_mswindows_create_stream_pair):
12142         (emacs_mswindows_delete_stream_pair):
12143         (mswindows_handle_toolbar_wm_command): declare.
12144
12145         * device-msw.c (build_syscolor_string): Avoid shadows.
12146
12147 2000-01-23  Andy Piper  <andy@xemacs.org>
12148
12149         * glyphs-widget.c (widget_instantiate): reverse the items for
12150         layouts so that children are in the expected order.
12151
12152 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12153
12154         * ralloc.c: safe_bcopy ==> memmove
12155         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12156         * s/msdos.h: Remove BCOPY macros.
12157         * insdel.c (gap_right): Remove BCOPY conditional code.
12158         * insdel.c (gap_left): Remove BCOPY conditional code.
12159         XEmacs demands a working ANSI C compiler - hence memmove.
12160
12161         * regex.c (regex_compile): Remove accidental use of trigraphs.
12162
12163 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12164
12165         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12166         event timestamp.
12167
12168 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12169
12170         * event-msw.c (mswindows_drain_windows_queue): Added the
12171         parameter.
12172         (mswindows_need_event): Commented the call to
12173         mswindows_drain_windows_queue().
12174         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12175         only.
12176
12177         * console-msw.h: Moved a few function prototypes here from
12178         event-msw.c.
12179
12180         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12181         parameter from unsigned short to unsigned long.
12182         (Fmswindows_shell_execute): Added return value.
12183
12184 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12185
12186         * sysdep.c (init_system_name):
12187           process-unix.c (unix_canonicalized_host_name):
12188         Don't call freeaddrinfo() if getaddrinfo() fails.
12189
12190         * process-unix.c (unix_open_unix_network_stream):
12191         Moved the code to get a port # into address loop.
12192
12193 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12194
12195         * buffer.c (reinit_vars_of_buffer):
12196         The right place to initialize conversion_in_dynarr and
12197         conversion_out_dynarr.
12198
12199         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12200
12201         * process-unix.c (unix_canonicalize_host_name): Muleize.
12202         (unix_open_network_stream): Muleize.
12203
12204         * buffer.h: Fix up prototypes for ralloc.c functions.
12205
12206 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12207         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12208         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12209                 instead of gethostbyname()
12210         * process-unix.c: In unix_canonicalize_host_name() and
12211                 unix_open_network_stream(), add code to use getaddrinfo()
12212                 instead of gethostbyname().
12213
12214 2000-01-27  Daniel Pittman <daniel@danann.net>
12215
12216         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12217         libs when built with flat Athena.
12218
12219 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12220
12221         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12222         Use coding standards for function prototypes.
12223
12224 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12225
12226         * dialog-msw.c (push_lisp_string_as_unicode):
12227         * doc.c (unparesseuxify_doc_string):
12228         * dired.c (Fuser_name_completion_1):
12229         * dired.c (Fuser_name_all_completions):
12230         * dired.c (free_user_cache):
12231         * dired.c (user_name_completion):
12232         * console-x.c (get_display_arg_connection):
12233         * minibuf.c (clear_echo_area_internal):
12234         * minibuf.c (echo_area_append):
12235         * eldap.c (Fldap_open):
12236         * eldap.c (Fldap_search_internal):
12237         * frame-x.c (x_set_frame_text_value):
12238         * frame-x.c (x_set_frame_properties):
12239         * frame-x.c (x_create_widgets):
12240         * redisplay-tty.c (term_get_fkeys_1):
12241         * objects-x.c (x_parse_nearest_color):
12242         * objects-x.c (x_valid_color_name_p):
12243         * objects-x.c (x_initialize_font_instance):
12244         * objects-x.c (x_list_fonts):
12245         * objects-x.c (x_find_charset_font):
12246         * tooltalk.c (Fadd_tooltalk_message_arg):
12247         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12248         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12249         * process-unix.c (unix_create_process):
12250         * ntproc.c (sys_spawnve):
12251         * sound.c (Fplay_sound_file):
12252         * sound.c (Fplay_sound):
12253         * buffer.c (init_initial_directory):
12254         * buffer.c (init_buffer):
12255         * editfns.c (init_editfns):
12256         * editfns.c (Ftemp_directory):
12257         * editfns.c (Fuser_full_name):
12258         * editfns.c (uncache_home_directory):
12259         * editfns.c (get_home_directory):
12260         * editfns.c (Fuser_home_directory):
12261         * editfns.c (Fformat_time_string):
12262         * editfns.c (Fcurrent_time_string):
12263         * gui-x.c (button_item_to_widget_value):
12264         * database.c (Fopen_database):
12265         * event-Xt.c (x_to_emacs_keysym):
12266         * event-Xt.c (x_event_to_emacs_event):
12267         * event-Xt.c (describe_event_window):
12268         * event-msw.c (mswindows_wnd_proc):
12269         * glyphs-eimage.c (jpeg_instantiate):
12270         * glyphs-eimage.c (gif_instantiate):
12271         * glyphs-eimage.c (png_instantiate):
12272         * glyphs-eimage.c (tiff_instantiate):
12273         * glyphs-x.c (xbm_instantiate_1):
12274         * glyphs-x.c (x_xbm_instantiate):
12275         * glyphs-x.c (x_xface_instantiate):
12276         * glyphs-x.c (autodetect_instantiate):
12277         * glyphs-x.c (cursor_font_instantiate):
12278         * glyphs-x.c (x_widget_instantiate):
12279         * glyphs-x.c (x_widget_set_property):
12280         * glyphs-x.c (x_widget_property):
12281         * glyphs-x.c (BUILD_GLYPH_INST):
12282         * print.c (write_string_to_stdio_stream):
12283         * print.c (output_string):
12284         * print.c (Falternate_debugging_output):
12285         * print.c (Fexternal_debugging_output):
12286         * glyphs-msw.c (extract_xpm_color_names):
12287         * glyphs-msw.c (mswindows_xpm_instantiate):
12288         * glyphs-msw.c (bmp_instantiate):
12289         * glyphs-msw.c (resource_name_to_resource):
12290         * glyphs-msw.c (mswindows_resource_instantiate):
12291         * glyphs-msw.c (xbm_instantiate_1):
12292         * glyphs-msw.c (mswindows_xbm_instantiate):
12293         * glyphs-msw.c (mswindows_xface_instantiate):
12294         * glyphs-msw.c (mswindows_widget_instantiate):
12295         * glyphs-msw.c (add_tree_item):
12296         * glyphs-msw.c (add_tab_item):
12297         * glyphs-msw.c (mswindows_combo_box_instantiate):
12298         * glyphs-msw.c (mswindows_widget_property):
12299         * glyphs-msw.c (mswindows_combo_box_property):
12300         * glyphs-msw.c (mswindows_widget_set_property):
12301         * console.c (stuff_buffered_input):
12302         * objects-msw.c (mswindows_initialize_color_instance):
12303         * objects-msw.c (mswindows_valid_color_name_p):
12304         * objects-msw.c (mswindows_list_fonts):
12305         * objects-msw.c (mswindows_font_instance_truename):
12306         * bytecode.c (optimize_compiled_function):
12307         * select-x.c (symbol_to_x_atom):
12308         * select-x.c (x_atom_to_symbol):
12309         * select-x.c (hack_motif_clipboard_selection):
12310         * select-x.c (selection_data_to_lisp_data):
12311         * select-x.c (lisp_data_to_selection_data):
12312         * select-x.c (Fx_get_cutbuffer_internal):
12313         * select-x.c (Fx_store_cutbuffer_internal):
12314         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12315         * buffer.h (TO_INTERNAL_FORMAT): New function.
12316         * emacs.c (make_arg_list_1):
12317         * emacs.c (make_argc_argv):
12318         * emacs.c (main_1):
12319         * emacs.c (Fdump_emacs):
12320         * emacs.c (split_string_by_emchar_1):
12321         * file-coding.h:
12322         * lisp.h:
12323         * lstream.h:
12324         * symsinit.h:
12325         * device-x.c (x_init_device):
12326         * device-x.c (Fx_valid_keysym_name_p):
12327         * device-x.c (Fx_get_font_path):
12328         * device-x.c (Fx_set_font_path):
12329         * glyphs.c (bitmap_to_lisp_data):
12330         * glyphs.c (pixmap_to_lisp_data):
12331         * alloc.c (make_ext_string): Use coding system arguments.  Update
12332         all callers.
12333         * alloc.c (build_string):
12334         * callproc.c (child_setup):
12335         * callproc.c (init_callproc):
12336         * fileio.c (lisp_strerror):
12337         * fileio.c (directory_file_name):
12338         * fileio.c (Fexpand_file_name):
12339         * fileio.c (Ffile_truename):
12340         * fileio.c (Fsysnetunam):
12341         * fileio.c (Fdo_auto_save):
12342         * sysdep.c (sys_readdir):
12343         * tests.c: New file.  Allow adding C tests.
12344         Replace GET_* macros with a more comprehensible and flexible
12345         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12346         Modify all calls.
12347         Any coding system can be used to do format conversion.
12348         Eliminate enum external_data_format.
12349         Eliminate convert_to_external_format.
12350         Eliminate convert_to_internal_format.
12351         Make sure file-name, keyboard, terminal, and ctext are always
12352         defined as coding systems or aliases.  Make
12353         file-name-coding-system, terminal-coding-system, and
12354         keyboard-coding-system magical variables that are equivalent to
12355         defining the corresponding coding system aliases.
12356
12357         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12358         * file-coding.c (Fcoding_system_alias_p): New function.
12359         * file-coding.c (Fcoding_system_aliasee): New function.
12360         * file-coding.c (append_suffix_to_symbol): New function.
12361         * file-coding.c (dangling_coding_system_alias_p): New function.
12362         * file-coding.c (Ffind_coding_system):
12363         * file-coding.c (Fcopy_coding_system):
12364         * file-coding.c (encode_coding_no_conversion):
12365         * file-coding.c (syms_of_file_coding):
12366         * file-coding.c (vars_of_file_coding):
12367         Rewrite coding system alias code.
12368         Allow nested aliases, like symbolic links.
12369         Allow redefinition of coding system aliases.
12370         Prevent existence of dangling coding system aliases.
12371
12372         * dired.c (Fuser_name_completion_1):
12373         * dired.c (Fuser_name_all_completions):
12374         A crash would happen if user did QUIT in the middle of building
12375         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12376
12377         * lisp.h:
12378         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12379
12380         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12381         an unsigned char *.  Update all callers.
12382
12383 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12384
12385         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12386
12387 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12388
12389         * elhash.c (hentry_description): Use more portable definition.
12390         (resize_hash_table): Initialize new hentries using
12391         xnew_array_and_zero, thereby simplifying the code.
12392
12393         * mule-charset.c (make_charset): Make sure entire object is
12394         initialized, to avoid Purify warnings.
12395
12396         * alloc.c (resize_string): Fix unlikely crash with big strings.
12397
12398 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12399
12400         * realpath.c (xrealpath):
12401         Don't call getwd().
12402
12403 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12404
12405         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12406
12407 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12408
12409         * unexelfsgi.c (unexec): Change the way we decide which segment
12410         should be extended.
12411
12412         Assumption that .bss section should be outside the PT_LOADable
12413         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12414         it's present) is inside the 'data' segment. This would fail the
12415         test which was used to find a segment to grow and cover new
12416         heap. Instead of this assumption, I created another one - on IRIX
12417         the segment to grow should start below .bss and it's address
12418         should extent above the end of .bss. Once this segment is
12419         identified, it's grown to accommodate the new heap and new
12420         zero-length .bss section is added at the end of .data2.
12421
12422 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12423
12424         * eval.c (Feval): Wrong number of arguments should use original
12425         function, not the indirect_function version of it.
12426
12427 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12428
12429         * glyphs-x.c (x_button_instantiate): Don't add image if
12430         it is not a pixmap.
12431         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12432         is relative.
12433
12434 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12435
12436         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12437         declaration.
12438         (DEFVAR_INT_MAGIC): Ditto.
12439         (DEFVAR_BOOL_MAGIC): Ditto.
12440         * glyphs.h: Reindent backslash.
12441
12442 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12443
12444         * glyphs-widget.c (layout_query_geometry):
12445         (layout_layout): Use correct types for gheight, gwidth.
12446
12447 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12448
12449         * EmacsManager.c (QueryGeometry): Purified.
12450
12451 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12452
12453         * alloc.c (make_float): Make sure entire object is initialized, to
12454         avoid Purify warnings.
12455         (pdump_register_sub): Remove useless assignment.
12456         (pdump): Use xmalloc, not malloc.
12457         (pdump_load): Use xmalloc, not malloc.
12458
12459 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12460
12461         * callproc.c:
12462         * dired-msw.c:
12463         * fileio.c:
12464         * process-nt.c:
12465         * redisplay-msw.c:
12466         * sysdep.c: Removed redundant #include <windows.h>
12467
12468 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12469
12470         * frame.c (delete_frame_internal): Do not delete device when its
12471         implementation so declares.
12472         (delete_frame_internal): Set device selected frame to nil when
12473         last frame goes away.
12474
12475         * device-msw.c (msprinter_device_system_metrics): Implemented.
12476         (mswindows_device_system_metrics): Added 'device-dpi property.
12477
12478         * device.c: (Fdevice_printer_p): Added.
12479         Added 'offset-workspace device metric.
12480
12481         * console.h (device_metrics): Declared DM_offset_workspace.
12482
12483 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12484
12485         * fileio.c (Ffile_truename): Remove pointless and confusing
12486         initialization of elen.
12487
12488         * glyphs-widget.c: Compiler warning fixes.
12489
12490 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12491
12492         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12493         instead of a Lisp_Object as argument to make it consistent with
12494         the other LIVE_P macros.
12495         (CHECK_LIVE_PROCESS): New macro.
12496
12497         * process.c: Declare Qprocess_live_p.
12498         (Fprocess_live_p): New function.
12499         (create_process): Use PROCESS_LIVE_P.
12500         (read_process_output): Ditto.
12501         (set_process_filter): Ditto.
12502         (Fdelete_process): Ditto.
12503         (kill_buffer_processes): Ditto
12504         (process_send_signal): Use CHECK_LIVE_PROCESS.
12505         (Fprocess_input_coding_system): Check whether process is still
12506         alive (fix PR#1061).
12507         (Fprocess_output_coding_system): Ditto.
12508         (Fprocess_coding_system): Ditto.
12509         (Fset_process_input_coding_system): Ditto.
12510         (Fset_process_output_coding_system): Ditto.
12511
12512 2000-01-23  Andy Piper  <andy@xemacs.org>
12513
12514         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12515         layout and widget.
12516
12517         * glyphs.c (mark_image_instance): take into account changed
12518         image_instance format.
12519         (image_instance_equal): ditto.
12520         (image_instance_hash): ditto.
12521
12522         * glyphs-widget.c (widget_instantiate): Incorporate layout
12523         instantiation here. Delay layout of the layout until later.
12524         (layout_instantiate): deleted.
12525         (layout_query_geometry): new function. get the geometry of a
12526         layout.
12527         (layout_layout): layout a layout dynamically.
12528         (image_instantiator_widget): New function - splitting up
12529         image_instantiator_format_create_glyphs_widget for netwinder
12530         compilation.
12531         (image_instantiator_buttons):
12532         (image_instantiator_edit_fields):
12533         (image_instantiator_combo_box):
12534         (image_instantiator_scrollbar):
12535         (image_instantiator_progress_guage):
12536         (image_instantiator_tree_view):
12537         (image_instantiator_tab_control):
12538         (image_instantiator_labels):
12539         (image_instantiator_layout): ditto.
12540         (image_instantiator_format_create_glyphs_widget): Call preceding
12541         functions.
12542
12543 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12544
12545         * process.c (Fset_process_coding_system):
12546         * device-x.c (Fx_keysym_hash_table):
12547         Docstring fixes.
12548
12549         * lstream.c (Lstream_write): Return documented value, not 0.
12550
12551         * fileio.c (directory_file_name):
12552         (Fsubstitute_in_file_name):
12553         (Fsubstitute_insert_file_contents_internal):
12554         (Fwrite_region_internal):
12555         * emacs.c:
12556         * sysdep.c:
12557         * getloadavg.c:
12558         * systty.h:
12559         Remove vestigial APOLLO-conditional code.
12560
12561 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12562
12563         * getpagesize.h: Add guard macros.
12564         * libsst.h: Add guard macros.
12565         * libst.h: Add guard macros.
12566         * line-number.h: Add guard macros.
12567         * ndir.h: Add guard macros.
12568         * sysfloat.h: Add guard macros.
12569         * sysfile.h: Add guard macros.
12570         * sysproc.h: Add guard macros.
12571         * syswait.h: Add guard macros.
12572         * xintrinsic.h: Add guard macros.
12573         * xintrinsicp.h: Add guard macros.
12574         * xmmanager.h: Add guard macros.
12575         * xmmanagerp.h: Add guard macros.
12576         * xmprimitive.h: Add guard macros.
12577         * xmu.h: Add guard macros.
12578         * gpmevent.h: Add copyright statement. Add guard macros.
12579         * miscplay.h: Add guard macros.
12580         * *.h: Use consistent C-standards-approved guard macro names.
12581
12582         * opaque.c (make_opaque): Switch parameter order.
12583         * opaque.h (make_opaque): Switch parameter order.
12584         Update all callers.
12585         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12586
12587         * config.h.in (type_checking_assert): Added.
12588         (bufpos_checking_assert): Added.
12589
12590 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12591
12592         * alloc.c: Harmless pdump changes.
12593         - Use countof().
12594         - spell alignment correctly.
12595         * sysdep.c: Use countof()
12596
12597 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12598
12599         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12600         initially_selected_for_input() console method, default to 0.
12601         (semi_canonicalize_console_connection): Try to delegate to
12602         canonicalize_console_connection if no such console method.
12603         (canonicalize_console_connection): Vice versa.
12604         (print_console): Do not print nil connection.
12605
12606         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12607         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12608         (XDEVIMPF_FRAMELESS_OK): Added.
12609         (CONSOLE_INHERITS_METHOD): Added.
12610
12611         * console-msw.c (mswindows_canonicalize_console_connection):
12612         Added.
12613         (mswindows_canonicalize_device_connection): Added.
12614
12615         * console-msw.h (struct msprinter_device): Added this struct and
12616         accessor macros.
12617         (mswindows_device): Made fontlist a lisp object.
12618
12619         * device.c (semi_canonicalize_device_connection):  Try to delegate
12620         to canonicalize_device_connection if no such console method.
12621         (canonicalize_device_connection): Vice versa.
12622         (print_device): Do not print nil connection.
12623
12624         * device-msw.c (mswindows_init_device): Call InitCommonControls
12625         when have widgets.
12626         (mswindows_delete_device): Removed fontlist deallocation.
12627         (mswindows_mark_device): Added.
12628
12629         * events.c (event_equal): Added abort() at unreached code.
12630         (event_hash): Ditto.
12631
12632         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12633         fallback tags of Windows devices.
12634
12635         * general.c (syms_of_general): Initialized Qmsprinter.
12636
12637         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12638         of fallback tags of Windows devices.
12639
12640         * lisp.h: Declared Qmsprinter.
12641
12642         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12643         of strings.
12644         (mswindows_list_fonts): Ditto.
12645         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12646         that it can be used by both mswindows and msprinter devices.
12647         (initialize_font_instance): Added.
12648         (mswindows_initialize_font_instance): Use it.
12649         (msprinter_initialize_font_instance): Added.
12650
12651         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12652         and implementation flags check.
12653         (redisplay_without_hooks): Changed the call to the above.
12654         (Fredraw_device): Ditto.
12655         (Fredisplay_device): Ditto.
12656
12657         * redisplay-msw.c (get_frame_dc): Implemented.
12658         (get_frame_compdc): Implemented.
12659         (many functions): Use the two functions above to get device
12660         contexts, ether for a window or a printer.
12661
12662 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12663
12664         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12665         initialization here.
12666         (init_symbols_once_early): Call it.
12667         * emacs.c (main_1): Call it.
12668         * symsinit.h: Declare it.
12669
12670 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12671
12672         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12673         Lisp_Object.
12674         (pdump_backtrace): Ditto.
12675         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12676         (pdump_get_entry): Abort if trying to register a null pointer.
12677         (pdump_dump_data): Cleanup types when relocating.
12678         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12679         (pdump_dump_rtables): Remove bad casts.
12680         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12681         Lisp_Object instead of a EMACS_INT for the hashtable
12682         reorganization.
12683
12684 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12685
12686         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12687
12688         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12689
12690         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12691
12692         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12693
12694 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12695
12696         * faces.h (FACE_STRIKETHRU_P): Added.
12697
12698         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12699         of font variants.
12700
12701         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12702         (mswindows_set_dc_font): New function, aware of font variants,
12703         separated from mswindows_update_dc.
12704
12705         * objects-msw.h (struct mswindows_font_instance_data): Added
12706         definition.
12707
12708         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12709         cached fonts and the data structure.
12710         (mswindows_initialize_font_instance): Added creation of font data
12711         structure.
12712         (mswindows_print_font_instance): Print at least something.
12713         (mswindows_create_font_variant): Implemented.
12714         (mswindows_get_hfont): Implemented.
12715
12716 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12717
12718         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12719         prototyping problem with msvc.
12720
12721         * emacs.c (main_1): added syms_of_gui_mswindows() call
12722
12723         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12724         syms_of_gui_mswindows() function
12725
12726         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12727
12728 2000-01-18  Martin Buchholz <martin@xemacs.org>
12729
12730         * XEmacs 21.2.27 is released.
12731
12732 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12733
12734         * glyphs-eimage.c (struct tiff_error_struct):
12735         (tiff_error_func):
12736         (tiff_warning_func):
12737         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12738
12739         * unexmips.c:
12740         * unexhp9k3.c:
12741         * unexfreebsd.c:
12742         * unexec.c: Remove vestigial Lucid C code.
12743         * unexalpha.c:
12744         * unexaix.c:
12745         * termcap.c:
12746         * libsst.c: Ansify.
12747         Remove declarations of errno and strerror().
12748
12749         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12750
12751         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12752
12753 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12754
12755         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12756         Optimize.
12757
12758 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12759
12760         * md5.c:
12761         * file-coding.c:
12762         * file-coding.h:
12763         Change enum eol_type to eol_type_t.
12764
12765 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12766
12767         * gui.c (get_gui_callback): Check cons before accessing car.
12768
12769 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12770
12771         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12772         (XSETSPECIFIER_TYPE): Ditto.
12773
12774 2000-01-17  Didier Verna  <didier@xemacs.org>
12775
12776         * redisplay.c (generate_fstring_runes): compute string size in
12777         characters, not bytes.
12778
12779 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12780
12781         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12782
12783 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12784
12785         * print.c (print_error_message): Call print_prepare().
12786
12787 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12788
12789         * .dbxrc: Renamed from dbxrc.
12790
12791         * events.c (event_to_character):
12792         Use `assert (foo)' instead of `if (!foo) abort()'
12793
12794         * .gdbinit (xtype): Add documentation.
12795         * .gdbinit (check-temacs): New function.
12796         * .gdbinit (check-xemacs): New function.
12797         * dbxrc (check-xemacs): New function.
12798         * dbxrc (check-xemacs): New function.
12799
12800 2000-01-14  Andy Piper  <andy@xemacs.org>
12801
12802         * glyphs-widget.c (widget_query_geometry): Make sure that we
12803         calculate default dimensions correctly.
12804
12805 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12806
12807         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12808
12809         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12810         pdump_wire'd variable.
12811
12812         * emacs.c: (main_1): Conditionalized calls to
12813         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12814
12815 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12816
12817         * window.c (Fset_window_configuration):
12818         * sysdep.c (_start):
12819         * input-method-motif.c (res):
12820         * event-Xt.c (Xt_process_to_emacs_event):
12821         Simple compiler warning fixes.
12822
12823         * bytecode.c (funcall_compiled_function): Use the original
12824         function symbol on the backtrace list in preference to the
12825         compiled_function object in error messages.
12826
12827 2000-01-13  Andy Piper  <andy@xemacs.org>
12828
12829         * glyphs-x.c (update_widget_face): Make sure we update the widget
12830         background as well as foreground.
12831
12832 2000-01-13  Andy Piper  <andy@xemacs.org>
12833
12834         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12835         fields to subwindow.
12836         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12837         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12838         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12839         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12840
12841         * glyphs-widget.c (check_valid_tab_orientation): new function.
12842         (initialize_widget_image_instance): zero orientation and
12843         justification.
12844         (widget_instantiate): pick up orientation.
12845         (tab_control_query_geometry): return appropriate values for
12846         vertical tabs.
12847
12848         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12849         appropriate creation flags for left, right and bottom tabs.
12850
12851         * s/cygwin32.h: add tab definitions.
12852
12853 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12854
12855         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12856         frame upon hiding a subwindow.
12857         (mswindows_button_instantiate): Changed the push button style to
12858         BS_PUSHBUTTON.
12859         (mswindows_button_instantiate): Removed button BS_NOTIFY
12860         style.
12861         (mswindows_button_instantiate): Removed redundant check for
12862         a disabled gui item.
12863         (mswindows_button_instantiate): Made use of WS_TABSTOP
12864         consistent: "operable" controls (edit, button, tree, scroll) have
12865         this style, "display-only" ones (static, progress gauge) do
12866         not. This style is currently ignored by XEmacs though. Also,
12867         removed the WS_EX_CONTROLPARENT style - it is not for children,
12868         it is for their parents!
12869         (mswindows_edit_field_instantiate): Ditto.
12870         (mswindows_progress_gauge_instantiate): Ditto.
12871         (mswindows_tree_view_instantiate): Ditto.
12872         (mswindows_tab_control_instantiate): Ditto.
12873         (mswindows_scrollbar_instantiate): Ditto.
12874         (mswindows_combo_box_instantiate): Ditto.
12875         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12876         style to the "clip" window.
12877         (mswindows_button_instantiate): Removed compilation warning by
12878         equally typing terms of the ?: operator.
12879
12880 2000-01-12  Didier Verna  <didier@xemacs.org>
12881
12882         * redisplay.c (generate_fstring_runes): new parameter holding the
12883         last modeline-format extent.
12884         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12885         extent, fill the glyph block with it.
12886         (generate_fstring_runes): handle these parameters.
12887         (generate_formatted_string_db): ditto.
12888
12889         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12890         glyphs'extents in the modeline.
12891
12892 1999-01-11  Mike Woolley  <mike@bulsara.com>
12893
12894         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12895         256Mb, as a workaround for the non-starting problem many people
12896         have experienced.
12897
12898 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12899
12900         * console-tty.c (Fset_console_tty_output_coding_system):
12901         Force redrawing tty frame.
12902
12903 2000-01-10  Didier Verna  <didier@xemacs.org>
12904
12905         * redisplay.c (generate_fstring_runes): fix size computation bug.
12906
12907 2000-01-09  William M. Perry <wmperry@aventail.com>
12908
12909         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12910
12911 2000-01-09  Andy Piper  <andy@xemacs.org>
12912
12913         * glyphs-msw.c: index -> i to avoid shadows.
12914         (xbm_create_bitmap_from_data): make static.
12915         (check_valid_string_or_int): deleted.
12916         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12917
12918         * glyphs-x.c (x_update_subwindow): remove unused args.
12919
12920         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12921         back pointer - this is done in allocate_image_instance.
12922         (query_string_font): return Qnil to make the compiler happy.
12923         (unmap_subwindow): set to ~0 to make the compiler happy.
12924         (glyph_query_geometry): comment out until used.
12925         (glyph_layout): ditto.
12926
12927 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12928
12929         * insdel.c (signal_after_change): Remove extraneous unbind_to().