2e0d1338dc44facd6e58f1ec0cc9d51b9a12da13
[chise/xemacs-chise.git-] / src / ChangeLog
1 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Fsave_charset_mapping_table): Open database as
4         "w+" mode.
5         (load_char_decoding_entry_maybe): Open database as read-only mode.
6
7         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
8         open database as "w+" mode.
9         (load_char_attribute_maybe): Open database as read-only mode.
10         (Fload_char_attribute_table): Likewise.
11
12 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
15         (char_table_description): Delete member `db_file'.
16         (Fmake_char_table): Don't refer `ct->db_file'.
17         (Fcopy_char_table): Likewise.
18         (Fsave_char_attribute_table): Likewise.
19         (Fclose_char_attribute_table): Likewise.
20         (Freset_char_attribute_table): Likewise.
21         (load_char_attribute_maybe): Likewise.
22         (Fload_char_attribute_table): Likewise.
23
24         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
25
26 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
29         (Fsave_char_attribute_table): Don't check `ct->db_file' if
30         `ct->db' is living.
31         (load_char_attribute_maybe): Likewise.
32         (Fload_char_attribute_table): Likewise.
33
34 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
35
36         * chartab.c (Fclose_char_attribute_table): Set Qnil on
37         `ct->db_file' unconditionally.
38
39 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
40
41         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
42         UTF-2000.
43         (char_table_description): Add description for `db_file' and `db'
44         in UTF-2000.
45         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
46         UTF-2000.
47         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
48         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
49         (Fclose_char_attribute_table): New function.
50         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
51         (load_char_attribute_maybe): Change interface; use `cit->db_file'
52         and `cit->db'.
53         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
54         (syms_of_chartab): Add new builtin function
55         `Fclose_char_attribute_table'.
56
57 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
58
59         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
60         `db' in UTF-2000.
61         (load_char_attribute_maybe): Change interface.
62         (get_char_id_table): Modify for `load_char_attribute_maybe'.
63
64 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
65
66         * database.h: Add an EXFUN for `Fdatabase_live_p'.
67
68 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
69
70         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
71         instead of `DECODE_CHAR' for mother; don't use special code for
72         chinese-big5 to use code space of chinese-big5-1 and
73         chinese-big5-2.
74         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
75         `MAX_CHAR_BIG5_CDP' for chinese-big5.
76
77         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
78         (MAX_CHAR_BIG5_CDP): Revival.
79
80 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
81
82         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
83         the XLFD registry-encoding name of `chinese-big5'.
84
85 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
86
87         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
88         (Qchinese_big5_cdp): Deleted.
89         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
90         (complex_vars_of_mule_charset): Delete coded-charset
91         `chinese-big5-cdp'.
92
93         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
94         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
95         `CHARSET_ID_OFFSET - n' for private CCS.
96         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
97         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
98         of `MIN_LEADING_BYTE'.
99         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
100         `(CHARSET_ID_OFFSET - 97)'.
101         (MIN_CHAR_BIG5_CDP): Deleted.
102         (MAX_CHAR_BIG5_CDP): Deleted.
103
104 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
107
108 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
111         (vars_of_mule): Add new variable `utf-2000-version' [moved from
112         chartab.c].
113
114         * chartab.c (Vutf_2000_version): Moved to mule.c.
115         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
116
117 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
118
119         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
120         when HAVE_CHISE_CLIENT is not defined.
121
122         * mule.c (vars_of_mule): Provide feature `chise' when
123         HAVE_CHISE_CLIENT is defined.
124
125 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
126
127         * config.h.in (UTF2000): Add comment.
128         (HAVE_CHISE_CLIENT): New macro.
129
130 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
131
132         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
133         CONSP.
134         (Fput_char_attribute): Likewise.
135         (char_attribute_system_db_file): Encode file-name of attribute.
136         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
137         the initial value.
138
139 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
140
141         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
142         (Fsave_charset_mapping_table): Use
143         `char_attribute_system_db_file'.
144         (load_char_decoding_entry_maybe): Likewise.
145
146         * chartab.h (Qsystem_char_id): New external variable.
147         (char_attribute_system_db_file): New prototype.
148
149         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
150         (char_attribute_system_db_file): New function.
151         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
152         (Freset_char_attribute_table): Likewise.
153         (load_char_attribute_maybe): Likewise.
154         (Fload_char_attribute_table): Likewise.
155         (syms_of_chartab): Add new symbol `system-char-id'.
156
157 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
158
159         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
160         `XCHARSET_GRAPHIC(ccs)'.
161
162 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
165
166 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
167
168         * chartab.c (Q_ucs_variants): New variable.
169         (syms_of_chartab): Add new symbol `->ucs-variants'.
170         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
171         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
172         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
173
174         * mule-charset.c (load_char_decoding_entry_maybe): New function.
175
176         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
177         `HAVE_DATABASE' is defined.
178         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
179         `HAVE_DATABASE' is defined.
180
181 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
182
183         * chartab.c (Fsave_char_attribute_table): Don't clear internal
184         attribute-table.
185         (Freset_char_attribute_table): New function.
186         (syms_of_chartab): Add new builtin function
187         `reset-char-attribute-table'.
188
189 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
190
191         * chartab.c (load_char_attribute_maybe): Don't make directories.
192
193 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
194
195         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
196
197         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
198         for decoding-table.
199
200 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
201
202         * mule-charset.c (Fsave_charset_mapping_table): Use
203         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
204
205         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
206         instead of `XCHARSET_CHARS'.
207
208 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
209
210         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
211         (XCHARSET_BYTE_SIZE): Likewise.
212
213         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
214         mule-charset.c].
215         (XCHARSET_BYTE_SIZE): Likewise.
216
217 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
218
219         * chartab.c (Fput_char_attribute): Use exec-directory instead of
220         data-directory to store database.
221         (Fsave_char_attribute_table): Likewise.
222         (load_char_attribute_maybe): Likewise.
223         (Fload_char_attribute_table): Likewise.
224
225 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
226
227         * mule-charset.c (Fsave_charset_mapping_table): New function.
228         (syms_of_mule_charset): Add new builtin function
229         `save-charset-mapping-table'.
230
231 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
232
233         * char-ucs.h (decoding_table_check_elements): Delete prototype.
234         (get_ccs_octet_table): New inline function.
235         (put_ccs_octet_table): Likewise.
236         (decoding_table_put_char): Use `get_ccs_octet_table' and
237         `put_ccs_octet_table'.
238         (decoding_table_remove_char): Use `decoding_table_put_char'.
239         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
240
241         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
242         into encoding_table.
243         (make_charset): Use Qunbound instead Qnil as initial value of
244         decoding_table.
245
246 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
247
248         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
249         element is Qunloaded.
250         (map_over_uint16_byte_table): Likewise.
251         (map_over_byte_table): Likewise.
252         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
253         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
254         database support, load encoding-table of the specified
255         coded-charset if it is not loaded yet.
256         (save_uint8_byte_table): New function of UTF-2000 with external
257         database support.
258         (save_uint16_byte_table): Likewise.
259         (save_byte_table): Likewise.
260         (Fput_char_attribute): Don't store value into external database
261         even if the external database feature is supported in UTF-2000;
262         set `attribute' as name of char-table if the external database
263         feature is supported.
264         (Fsave_char_attribute_table): New function in UTF-2000.
265         (syms_of_chartab): Add new builtin function
266         `save-char-attribute-table' in UTF-2000.
267
268 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
269
270         * chartab.c (char_attribute_table_to_put): New variable in
271         UTF-2000.
272         (Qput_char_table_map_function): Likewise.
273         (value_to_put): Likewise.
274         (Fput_char_table_map_function): New function in UTF-2000.
275         (put_char_table): Use `Fmap_char_attribute' for
276         CHARTAB_RANGE_CHARSET in UTF-2000.
277         (Fput_char_attribute): Store symbol instead of string in
278         `XCHAR_TABLE_NAME (table)'.
279         (load_char_attribute_maybe): Likewise.
280         (syms_of_chartab): Add new symbol/function
281         `put-char-table-map-function'.
282
283 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
284
285         * database.h: Add new EXFUN for `Fmap_database'.
286
287         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
288         (syms_of_database): Likewise.
289
290         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
291         UTF-2000.
292         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
293         (XCHAR_TABLE_UNLOADED): Likewise.
294
295         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
296         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
297         HAVE_DATABASE is defined.
298         (char_attribute_table_to_load): New variable of UTF-2000 with
299         external database support.
300         (Qload_char_attribute_table_map_function): Likewise.
301         (Fload_char_attribute_table_map_function): New function of
302         UTF-2000 with external database support.
303         (Fload_char_attribute_table): New function of UTF-2000.
304         (Fmap_char_attribute): Call Fload_char_attribute_table if
305         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
306         (syms_of_chartab): Add new symbol and function
307         `load-char-attribute-table-map-function' in UTF-2000 with external
308         database support; add new function `load-char-attribute-table' in
309         UTF-2000.
310
311 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * chartab.h (load_char_attribute_maybe): New prototype for
314         UTF-2000 with DATABASE support.
315         (get_char_id_table): Use `load_char_attribute_maybe' if
316         HAVE_DATABASE is defined.
317
318         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
319         with DATABASE support.
320
321 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * chartab.c (Fput_char_attribute): Use S-expression as key of
324         external database.
325
326         * chartab.h (get_char_id_table): Use S-expression as key of
327         external database.
328
329 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
332         if an element is not loaded, load the corresponding attributes
333         from an external database.
334         (map_over_uint16_byte_table): Likewise.
335         (map_over_byte_table): Likewise.
336         (map_char_table): Modify for `map_over_uint8_byte_table',
337         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
338         element is not loaded, load the corresponding attributes from an
339         external database.
340         (Fput_char_attribute): Change initial values to Qunloaded.
341
342         * chartab.h (get_char_id_table): If a character attribute is not
343         loaded and the attribute value is not found in an external
344         database, store Qunbound as the attribute value.
345
346 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
347
348         * chartab.c (BT_UINT8_unloaded): New macro.
349         (UINT8_VALUE_P): Accept Qunloaded.
350         (UINT8_ENCODE): Likewise.
351         (UINT8_DECODE): Likewise.
352         (BT_UINT16_unloaded): New macro.
353         (UINT16_VALUE_P): Accept Qunloaded.
354         (UINT16_ENCODE): Likewise.
355         (UINT16_DECODE): Likewise.
356         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
357         BT_UINT16_unloaded.
358         (mark_char_table): Mark `ct->name' in UTF-2000.
359         (char_table_description): Add `name' in UTF-2000.
360         (Fmake_char_table): Initialize `ct->name'.
361         (Fcopy_char_table): Copy `ct->name'.
362         (Fput_char_attribute): Store value into an external database if
363         HAVE_DATABASE is defined.
364
365         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
366         UTF-2000.
367         (CHAR_TABLE_NAME): New macro in UTF-2000.
368         (XCHAR_TABLE_NAME): New macro in UTF-2000.
369         (get_char_id_table): Try to read an external database if Qunloaded
370         is stored in a table.
371
372         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
373         Qunloaded.
374
375 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
376
377         * database.h: Add EXFUN definitions for Fopen_database,
378         Fput_database, Fget_database and Fclose_database.
379
380         * data.c (Qunloaded): New variable in UTF-2000.
381
382         * lisp.h (Qunloaded): New variable in UTF-2000.
383
384 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
385
386         * mule-charset.c (put_char_ccs_code_point): Modify for
387         `decoding_table_remove_char' and `decoding_table_put_char'.
388         (remove_char_ccs): Modify for `decoding_table_remove_char'.
389
390         * char-ucs.h (decoding_table_remove_char): Change arguments to
391         hide decoding_table vector.
392         (decoding_table_put_char): Likewise.
393
394 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * mule-charset.c (decoding_table_remove_char): Moved to
397         char-ucs.h.
398         (decoding_table_put_char): Likewise.
399
400         * char-ucs.h (decoding_table_check_elements): New prototype [moved
401         from mule-charset.c].
402         (decoding_table_remove_char): New inline function [moved from
403         mule-charset.c].
404         (decoding_table_put_char): Likewise.
405
406 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
407
408         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
409         extension.
410
411 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
412
413         * mule-charset.c (decode_builtin_char): Support mother charsets.
414
415 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
416
417         * mule-charset.c (Q94x94x60): New variable.
418         (charset_code_point): Support conversion `94x94x60'.
419         (Fmake_charset): Likewise.
420         (syms_of_mule_charset): Add new symbol `94x94x60'.
421
422         * char-ucs.h (CONVERSION_94x94x60): New macro.
423
424 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
425
426         * mule-charset.c (charset_code_point): Unify code about
427         `code-offset'.
428
429 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
430
431         * mule-charset.c (charset_code_point): Merge code about builtin
432         characters into code about mother charsets; don't use
433         `range_charset_code_point'.
434         (range_charset_code_point): Deleted.
435
436 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
437
438         * mule-charset.c (Qcode_offset): New variable.
439         (Fmake_charset): Use `XUINT' to get value of `min-code' and
440         `max-code'; accept new property `code-offset'.
441         (syms_of_mule_charset): Add new symbol `code-offset'.
442
443 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
444
445         * mule-charset.c (range_charset_code_point): Fixed.
446
447 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
448
449         * mule-charset.c (decode_builtin_char): Change semantics of
450         code-offset of coded-charset.
451         (charset_code_point): Likewise.
452         (range_charset_code_point): Likewise.
453         (complex_vars_of_mule_charset): Modify for the change.
454
455 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
456
457         * mule-charset.c (Fencode_char): Reverse arguments.
458
459         * mule-charset.c (charset_code_point): Fixed.
460
461 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
462
463         * mule-charset.c (Vcharset_mojikyo): Deleted.
464         (Vcharset_mojikyo_2022_1): Deleted.
465         (Vcharset_mojikyo_pj_{1..21}): Deleted.
466         (Qmin_code): New variable in UTF-2000.
467         (Qmax_code): Likewise.
468         (Qmother): Likewise.
469         (Qconversion): Likewise.
470         (Q94x60): Likewise.
471         (Qmojikyo): Deleted.
472         (Qmojikyo_2022_1): Deleted.
473         (Qmojikyo_pj_{1..22}): Deleted.
474         (mark_charset): Mark `cs->mother'.
475         (charset_description): Add description for `mother'.
476         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
477         new arguments `mother' and `conversion'; use
478         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
479         (charset_code_point): Moved from char-ucs.h; support `mother'
480         charset feature.
481         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
482         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
483         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
484         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
485         allow 2 as the value of `graphic' in UTF-2000; add new properties
486         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
487         require `final' in UTF-2000; modify for `make_charset'.
488         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
489         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
490         (Fcharset_property): Support `mother', `min-code' and `max-code'.
491         (Fencode_char): New function.
492         (syms_of_mule_charset): Add new builtin function `encode-char' in
493         UTF-2000; add new symbols `min-code', `max-code', `mother',
494         `conversion' and `94x60'; delete symbols `mojikyo',
495         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
496         (complex_vars_of_mule_charset): Modify for `make_charset' change;
497         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
498         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
499
500         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
501         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
502
503         * char-ucs.h (Vcharset_mojikyo): Deleted.
504         (Vcharset_mojikyo_2022_1): Deleted.
505         (LEADING_BYTE_MOJIKYO): Deleted.
506         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
507         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
508         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
509         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
510         add new member `mother'; add new member `conversion'.
511         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
512         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
513         (CHARSET_MOTHER): New macro.
514         (CHARSET_CONVERSION): New macro.
515         (CONVERSION_IDENTICAL): New macro.
516         (CONVERSION_94x60): New macro.
517         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
518         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
519         (XCHARSET_MOTHER): New macro.
520         (XCHARSET_CONVERSION): New macro.
521         (MIN_CHAR_MOJIKYO): Deleted.
522         (MAX_CHAR_MOJIKYO): Deleted.
523         (DECODE_MOJIKYO_2022): Deleted.
524         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
525         (charset_code_point): Changed to non-inline function.
526         (encode_char_1): Use `charset_code_point'.
527         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
528
529 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
530
531         * lread.c (read_compiled_function): Fix prototype.
532         (read_vector): Likewise.
533
534 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
535
536         * lrecord.h (struct lrecord_header): Delete `older'.
537         (set_lheader_implementation): Delete code for `older'.
538         (set_lheader_older_implementation): Deleted.
539         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
540         (OLDER_RECORD_P): Deleted.
541         (OLDER_RECORD_HEADER_P): Deleted.
542         (alloc_older_lcrecord): Deleted.
543         (alloc_older_lcrecord_type): Deleted.
544
545         * alloc.c (all_older_lcrecords): Deleted.
546         (alloc_older_lcrecord): Deleted.
547         (disksave_object_finalization_1): Delete code for older objects.
548         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
549         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
550
551 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
552
553         * mule-charset.c (decoding_table_put_char): Use `make_vector'
554         instead of `make_older_vector'.
555         (put_char_ccs_code_point): Likewise.
556         (mark_charset): Mark `cs->decoding_table'.
557         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
558
559         * lisp.h (make_older_vector): Deleted.
560         (make_vector_newer): Deleted.
561
562         * config.h.in (HAVE_GGC): Deleted.
563
564         * alloc.c (make_older_vector): Deleted.
565         (make_vector_newer_1): Deleted.
566         (make_vector_newer): Deleted.
567
568 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
569
570         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
571         (Qideograph_daikanwa_2): New variable.
572         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
573         (complex_vars_of_mule_charset): Add new coded-charset
574         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
575         `LEADING_BYTE_DAIKANWA'.
576
577         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
578         (LEADING_BYTE_DAIKANWA_1): New macro.
579         (LEADING_BYTE_DAIKANWA_2): New macro.
580         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
581
582 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
583
584         * mule-charset.c (complex_vars_of_mule_charset): Change
585         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
586         the second revised version.
587
588 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
589
590         * mule-charset.c (Vcharset_ucs_smp): New variable.
591         (Vcharset_ucs_sip): New variable.
592         (Qucs_smp): New variable.
593         (Qucs_sip): New variable.
594         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
595         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
596         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
597         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
598         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
599         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
600
601         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
602         (LEADING_BYTE_UCS_SIP): New macro.
603         (MIN_CHAR_SMP): New macro.
604         (MAX_CHAR_SMP): New macro.
605         (MIN_CHAR_SIP): New macro.
606         (MAX_CHAR_SIP): New macro.
607
608 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
609
610         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
611         utf-2000.
612
613 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
614
615         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
616         value; don't store value into `encoding_table' of `Lisp_Charset'.
617         (mark_charset): `encoding_table' was deleted.
618         (charset_description): Likewise.
619         (make_charset): Likewise.
620         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
621         `put_char_ccs_code_point'.
622
623         * chartab.h (Fput_char_attribute): New EXFUN.
624
625         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
626         is unified with normal symbol space.
627         (Fget_char_attribute): Likewise.
628         (Fput_char_attribute): Likewise; behavior of
629         `put_char_ccs_code_point' is changed.
630
631         * char-ucs.h: Include "elhash.h".
632         (Vchar_attribute_hash_table): New external variable.
633         (struct Lisp_Charset): Delete `encoding_table'.
634         (CHARSET_ENCODING_TABLE): New implementation; refer
635         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
636         `Lisp_Charset'.
637
638 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
641         (cs) == 0.
642
643 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
644
645         * text-coding.c (char_encode_big5): Prefer charset-g1 than
646         `chinese-big5'.
647
648 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
649
650         * chartab.c (uint8_byte_table_description): New constant.
651         (uint8-byte-table): Use `uint8_byte_table_description'.
652         (uint16_byte_table_description): New constant.
653         (uint16-byte-table): Use `uint16_byte_table_description'.
654
655 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
658         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
659
660 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * mule-charset.c (Vcharset_ucs_ks): New variable.
663         (Qucs_ks): New variable.
664         (syms_of_mule_charset): Add new symbol `ucs-ks'.
665         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
666
667         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
668
669 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
670
671         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
672         (Fdecode_char): Likewise.
673
674         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
675         chartab.h.
676         (Fdefine_char): Modify for Fdecode_char.
677         (Ffind_char): Likewise.
678
679         * mule-charset.c (Fdecode_char): Add new optional argument
680         `defined-only'.
681         (Fdecode_builtin_char): Modify for `Fdecode_char'.
682
683 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
684
685         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
686         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
687         (allocate_coding_system): Initialize initial-charsets of
688         CODESYS_BIG5 in XEmacs UTF-2000.
689         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
690         CODESYS_BIG5 in XEmacs UTF-2000.
691         (decode_coding_big5): Use initial-charset-g0 and -g1 of
692         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
693
694         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
695         variables.
696         (Qideograph_hanziku_{1 .. 12}): Likewise.
697         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
698         .. 12}'.
699         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
700         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
701         `ideograph-hanziku-{1 .. 12}'.
702
703         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
704         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
705         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
706         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
707         (DECODE_DEFINED_CHAR): New inline function.
708         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
709
710 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * mule-charset.c (Vcharset_china3_jef): Renamed from
713         `Vcharset_japanese_jef_china3'.
714         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
715         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
716         `{MIN|MAX}_CHAR_JEF_CHINA3'..
717         (syms_of_mule_charset): Rename `china3-jef' from
718         `japanese-jef-china3'.
719         (complex_vars_of_mule_charset): Likewise; rename
720         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
721
722         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
723         `LEADING_BYTE_JEF_CHINA3'.
724         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
725         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
726
727 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
728
729         * mule-charset.c (encode_builtin_char_1): Comment out special code
730         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
731
732         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
733         (MAX_CHAR_MOJIKYO_0): Comment out.
734         (MIN_CHAR_CBETA): Changed to 0x00E20000.
735         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
736         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
737         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
738
739 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
740
741         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
742         (Qideograph_cbeta): New variable.
743         (encode_builtin_char_1): Comment out special code for
744         coded-charset `mojikyo' and `japanese-jef-china3'.
745         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
746         (complex_vars_of_mule_charset): Add new coded-charset
747         `ideograph-cbeta'.
748
749         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
750         (MIN_CHAR_CBETA): New macro.
751         (MAX_CHAR_CBETA): New macro.
752
753 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
754
755         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
756         (LEADING_BYTE_JEF_CHINA3): New macro.
757         (MIN_CHAR_JEF_CHINA3): New macro.
758         (MAX_CHAR_JEF_CHINA3): Likewise.
759         (DECODE_CHAR): Fixed.
760
761 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
764         (Qjapanese_jef_china3): New variable.
765         (encode_builtin_char_1): Support `japanese-jef-china3'.
766         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
767         (complex_vars_of_mule_charset): Add new coded-charset
768         `japanese-jef-china3'.
769
770 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
771
772         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
773         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
774         94^4, 96^3, 96^4, 128^n and 256^n set.
775         (put_char_table): Use `XCHARSET_CELL_RANGE'.
776         (map_char_table): Likewise.
777
778 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
781         UTF-2000.
782
783 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
784
785         * chartab.h (get_char_id_table): New inline function.
786
787         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
788         function.
789
790 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
791
792         * chartab.h (decode_char_table_range): New prototype in XEmacs
793         UTF-2000.
794         (put_char_id_table): New inline function in XEmacs UTF-2000.
795
796         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
797         function.
798         (decode_char_table_range): Delete static declaration in XEmacs
799         UTF-2000.
800
801 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
802
803         * chartab.c (put_char_id_table): Use `put_char_table'.
804
805 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
808         (map_over_uint16_byte_table): Likewise.
809         (map_over_byte_table): Likewise.
810         (map_char_table): Modify for `map_over_uint8_byte_table',
811         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
812         UTF-2000.
813
814 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
815
816         * chartab.c (struct map_char_table_for_charset_arg): New
817         structure.
818         (map_char_table_for_charset_fun): New function.
819         (map_char_table): Use `map_char_table' for encoding_table of
820         `range->charset'.
821
822 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
823
824         * chartab.c (map_char_table): Check a character is found in
825         range->charset instead of non default value is defined in
826         char-table when range is CHARTAB_RANGE_ROW.
827
828 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
829
830         * chartab.c (map_char_id_table): Deleted.
831         (Fmap_char_attribute): Use `map_char_table' instead of
832         `map_char_id_table'.
833
834 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
835
836         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
837         UTF-2000.
838         (update_syntax_table): Deleted in XEmacs UTF-2000.
839
840         * syntax.c (find_defun_start): Use `syntax_table' instead of
841         `mirror_syntax_table' in XEmacs UTF-2000.
842         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
843         UTF-2000.
844         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
845         XEmacs UTF-2000.
846         (Fmatching_paren): Likewise.
847         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
848         in XEmacs UTF-2000.
849         (find_start_of_comment): Likewise.
850         (find_end_of_comment): Likewise.
851         (Fforward_comment): Likewise.
852         (scan_lists): Likewise.
853         (char_quoted): Likewise.
854         (Fbackward_prefix_chars): Likewise.
855         (scan_sexps_forward): Likewise.
856         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
857         (update_syntax_table): Likewise.
858
859         * search.c (skip_chars): Use `syntax_table' instead of
860         `mirror_syntax_table' in XEmacs UTF-2000.
861         (wordify): Likewise.
862         (Freplace_match): Likewise.
863
864         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
865         `mirror_syntax_table' in XEmacs UTF-2000.
866         (WORDCHAR_P_UNSAFE): Likewise.
867         (re_match_2_internal): Likewise.
868
869         * font-lock.c (find_context): Use `buf->syntax_table' instead of
870         `buf->mirror_syntax_table' in XEmacs UTF-2000.
871
872         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
873         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
874
875         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
876         XEmacs UTF-2000.
877
878         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
879         UTF-2000.
880         (print_char_table): Print `default_value' in XEmacs UTF-2000.
881         (char_table_description): Delete `mirror_table' in XEmacs
882         UTF-2000.
883         (fill_char_table): Don't call `update_syntax_table' in XEmacs
884         UTF-2000.
885         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
886         (Fcopy_char_table): Likewise.
887         (put_char_table): Don't call `update_syntax_table' in XEmacs
888         UTF-2000.
889
890         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
891         `buf->mirror_syntax_table' in XEmacs UTF-2000.
892         (casify_region_internal): Likewise.
893
894         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
895
896         * buffer.c (common_init_complex_vars_of_buffer): Don't use
897         `mirror_syntax_table' in XEmacs UTF-2000.
898
899         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
900         `buf->mirror_syntax_table' in XEmacs UTF-2000.
901         (Fexpand_abbrev): Likewise.
902
903 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
904
905         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
906
907 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
908
909         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
910         (map_over_uint16_byte_table): Likewise.
911         (map_over_byte_table): Likewise.
912         (get_char_id_table): Refer `cit->default_value'.
913         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
914         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
915         of character-id ranges.
916         (mark_char_table): Mark `ct->default_value'.
917         (char_table_description): Add `default_value'.
918         (fill_char_table): Use `default_value'.
919         (decode_char_table_range): Decode `nil' as
920         `CHARTAB_RANGE_DEFAULT'.
921         (get_char_id_table): Refer `cit->default_value'.
922         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
923         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
924         temporary hack; check value of char-table is bound or not.
925         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
926
927         * chartab.h (struct Lisp_Char_Table): Add new member
928         `default_value' in XEmacs UTF-2000.
929         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
930         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
931         UTF-2000.
932
933 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * chartab.h (Lisp_Char_ID_Table): Deleted.
936
937         * chartab.c (char_table_description): Fix typo.
938         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
939         `Lisp_Char_ID_Table'.
940
941 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
942
943         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
944         `CHAR_ID_TABLE_P'.
945
946         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
947         `CHAR_ID_TABLE_P'.
948
949         * chartab.h (XCHAR_ID_TABLE): Deleted.
950         (XSETCHAR_ID_TABLE): Deleted.
951         (CHAR_ID_TABLE_P): Deleted.
952
953         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
954         `CHAR_ID_TABLE_P'.
955         (Fget_composite_char): Likewise.
956         (put_char_table): Likewise.
957         (add_char_attribute_alist_mapper): Fixed.
958         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
959         `CHAR_ID_TABLE_P'.
960         (Fget_char_attribute): Likewise.
961         (Fget_char_attribute): Likewise.
962         (Fmap_char_attribute): Likewise.
963
964         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
965         `CHAR_ID_TABLE_P'.
966         (encode_char_1): Likewise.
967
968 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
969
970         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
971         `XCHAR_ID_TABLE'.
972
973         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
974         instead of `XCHAR_ID_TABLE'.
975         (remove_char_ccs): Likewise.
976
977         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
978         `XCHAR_ID_TABLE'.
979         (Fget_composite_char): Likewise.
980         (Fchar_variants): Likewise.
981         (put_char_table): Likewise.
982         (add_char_attribute_alist_mapper): Likewise.
983         (Fchar_attribute_alist): Likewise.
984         (Fget_char_attribute): Likewise.
985         (Fput_char_attribute): Likewise.
986         (Fmap_char_attribute): Likewise.
987         (Fmap_char_attribute): Likewise.
988
989         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
990         `XCHAR_ID_TABLE'.
991         (encode_char_1): Likewise.
992
993 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
996         `Lisp_Char_ID_Table'.
997         (mark_char_id_table): Deleted.
998         (print_char_id_table): Likewise.
999         (char_id_table_equal): Likewise.
1000         (char_id_table_hash): Likewise.
1001         (char_id_table_description): Likewise.
1002         (char_id_table): Likewise.
1003         (make_char_id_table): Use `Fmake_char_table' and
1004         `fill_char_table'.
1005         (get_char_id_table): Use `Lisp_Char_Table' instead of
1006         `Lisp_Char_ID_Table'.
1007         (put_char_id_table): Likewise.
1008         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1009         `XCHAR_ID_TABLE'.
1010         (Fremove_char_attribute): Likewise.
1011         (syms_of_chartab): Don't define type `char-id-table'.
1012
1013         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1014         (char_id_table): Likewise.
1015         (GC_CHAR_ID_TABLE_P): Likewise.
1016         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1017         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1018         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1019         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1020         (get_char_id_table): Use `Lisp_Char_Table' instead of
1021         `Lisp_Char_ID_Table'.
1022         (put_char_id_table_0): Likewise.
1023         (put_char_id_table): Likewise.
1024
1025 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1026
1027         * chartab.h: Lisp_Byte_Table related codes are moved from
1028         chartab.h.
1029
1030         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1031
1032 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1033
1034         * chartab.h: Don't include "chartab.h".
1035         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1036         (Lisp_Char_ID_Table): Likewise.
1037         (char_id_table): Likewise.
1038         (XCHAR_ID_TABLE): Likewise.
1039         (XSETCHAR_ID_TABLE): Likewise.
1040         (CHAR_ID_TABLE_P): Likewise.
1041         (GC_CHAR_ID_TABLE_P): Likewise.
1042         (get_char_id_table): Likewise.
1043
1044         * char-ucs.h: Include "chartab.h".
1045         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1046         (Lisp_Char_ID_Table): Likewise.
1047         (char_id_table): Likewise.
1048         (XCHAR_ID_TABLE): Likewise.
1049         (XSETCHAR_ID_TABLE): Likewise.
1050         (CHAR_ID_TABLE_P): Likewise.
1051         (GC_CHAR_ID_TABLE_P): Likewise.
1052         (get_char_id_table): Likewise.
1053
1054 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1055
1056         * chartab.c (copy_uint8_byte_table): New function.
1057         (copy_uint16_byte_table): New function.
1058         (copy_byte_table): New function.
1059         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1060         characters to call.
1061         (map_over_uint16_byte_table): Likewise.
1062         (map_over_byte_table): Likewise.
1063         (get_byte_table): Move prototype to chartab.h.
1064         (put_byte_table): Likewise.
1065         (put_char_id_table_0): Moved to chartab.h.
1066         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1067         (char_table_entry_equal): Likewise.
1068         (char_table_entry_hash): Likewise.
1069         (char_table_entry_description): Likewise.
1070         (char_table_entry): Likewise.
1071         (make_char_table_entry): Likewise.
1072         (copy_char_table_entry): Likewise.
1073         (get_non_ascii_char_table_value): Likewise.
1074         (map_over_charset_ascii): Likewise.
1075         (map_over_charset_control_1): Likewise.
1076         (map_over_charset_row): Likewise.
1077         (map_over_other_charset): Likewise.
1078         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1079         (print_char_table): Likewise.
1080         (char_table_equal): Likewise.
1081         (char_table_hash): Likewise.
1082         (char_table_description): Likewise.
1083         (fill_char_table): Likewise.
1084         (Fcopy_char_table): Likewise.
1085         (get_char_table): Likewise.
1086         (Fget_range_char_table): Likewise.
1087         (put_char_table): Likewise.
1088         (map_char_table): Likewise.
1089         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1090         UTF-2000.
1091
1092 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1093
1094         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1095         `Vauto_fill_chars' in XEmacs UTF-2000.
1096
1097         * chartab.h (get_byte_table): New prototype [moved from
1098         chartab.c].
1099         (put_byte_table): Likewise [moved from chartab.c].
1100         (put_char_id_table_0): New inline function [moved from chartab.c].
1101         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1102         (Lisp_Char_Table_Entry): Likewise.
1103         (char_table_entry): Likewise.
1104         (XCHAR_TABLE_ENTRY): Likewise.
1105         (XSETCHAR_TABLE_ENTRY): Likewise.
1106         (CHAR_TABLE_ENTRYP): Likewise.
1107         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1108         (NUM_ASCII_CHARS): Likewise.
1109         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1110         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1111
1112 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1113
1114         * chartab.c (get_char_id_table): Change interface.
1115         (put_char_id_table_0): New function.
1116         (put_char_id_table): Change interface; new implementation.
1117         (Fget_composite_char): Modify for interface change of
1118         `get_char_id_table'.
1119         (Fchar_variants): Likewise.
1120         (add_char_attribute_alist_mapper): Likewise.
1121         (Fchar_attribute_alist): Likewise.
1122         (Fget_char_attribute): Likewise.
1123         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1124         as same as character as the first argument like `put-char-table';
1125         modify for interface change of `put_char_id_table'.
1126         (Fremove_char_attribute): Modify for interface change of
1127         `put_char_id_table'.
1128
1129 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1130
1131         * text-coding.c: Sync up with XEmacs 21.2.41.
1132         (COMPOSE_ADD_CHAR): Modify for interface change of
1133         `get_char_id_table'.
1134
1135         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1136         change of `put_char_id_table'.
1137         (remove_char_ccs): Likewise.
1138
1139         * chartab.h (put_char_id_table): Change interface.
1140
1141         * char-ucs.h (get_char_id_table): Change interface.
1142         (charset_code_point): Modify for interface change of
1143         `get_char_id_table'.
1144         (encode_char_1): Likewise.
1145
1146 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1147
1148         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1149         argument `ccs'.
1150         (map_over_uint16_byte_table): Likewise.
1151         (map_over_byte_table): Likewise.
1152         (map_char_id_table): Add new argument `range' like
1153         `map_char_table'.
1154         (Fmap_char_attribute): Add new argument `range' like
1155         `Fmap_char_table'.
1156
1157 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1158
1159         * chartab.c (map_over_uint8_byte_table): Change interface of
1160         mapping function to use struct chartab_range instead of Emchar.
1161         (map_over_uint16_byte_table): Likewise.
1162         (map_over_byte_table): Likewise.
1163         (map_char_id_table): Likewise.
1164         (struct slow_map_char_id_table_arg): Deleted.
1165         (slow_map_char_id_table_fun): Deleted.
1166         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1167         function `slow_map_char_table_fun' instead of struct
1168         `slow_map_char_id_table_arg' and function
1169         `slow_map_char_id_table_fun'.
1170
1171 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1172
1173         * mule-charset.c: Move char-it-table related codes to chartab.c.
1174         (Vutf_2000_version): Moved to chartab.c.
1175         (Fdefine_char): Likewise.
1176         (Ffind_char): Likewise.
1177         (syms_of_mule_charset): Move types `uint8-byte-table',
1178         `uint16-byte-table', `byte-table' and `char-id-table' to
1179         chartab.c; move functions `char_attribute_list,
1180         `find_char_attribute_table, `char_attribute_alist,
1181         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1182         `map_char_attribute, `define_char, `find_char, `char_variants and
1183         `get_composite_char to chartab.c; move symbols `=>ucs',
1184         `->decomposition', `compat', `isolated', `initial', `medial',
1185         `final', `vertical', `noBreak', `fraction', `super', `sub',
1186         `circle', `square', `wide', `narrow', `small' and `font' to
1187         chartab.c.
1188         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1189         setting codes for `Vcharacter_composition_table' and
1190         `Vcharacter_variant_table' to chartab.c.
1191         (complex_vars_of_mule_charset): Move setting code for
1192         `Vchar_attribute_hash_table' to chartab.c.
1193
1194         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1195         (make_char_id_table): New prototype.
1196         (put_char_id_table): Likewise.
1197         (Fget_char_attribute): Likewise.
1198
1199         * chartab.c: Move char-id-table related code from mule-charset.c.
1200         (Vutf_2000_version): Moved from mule-charset.c.
1201
1202         * char-ucs.h (Qucs): New external variable.
1203         (put_char_ccs_code_point): New prototype.
1204         (remove_char_ccs): Likewise.
1205
1206 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1207
1208         * mule-charset.c (Vcharset_ucs_jis): New variable.
1209         (Qucs_jis): Likewise.
1210         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1211         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1212
1213         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1214
1215 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216
1217         * mule-charset.c (map_over_uint8_byte_table): New function.
1218         (map_over_uint16_byte_table): Likewise.
1219         (map_over_byte_table): Likewise.
1220         (map_char_id_table): Likewise.
1221         (slow_map_char_id_table_fun): Likewise.
1222         (Fmap_char_attribute): Likewise.
1223         (syms_of_mule_charset): Add new function `map-char-attribute'.
1224
1225 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1226
1227         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1228         (syms_of_mule_charset): Add new function `find-char'.
1229
1230 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1231
1232         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1233         XEmacs UTF-2000.
1234         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1235         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1236         XEmacs UTF-2000.
1237         (complex_vars_of_mule_charset): Add new coded-charset
1238         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1239         `ideograph-gt-pj-*'.
1240
1241         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1242
1243 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244
1245         * mule-charset.c (encode_builtin_char_1): Purge codes about
1246         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1247         {MIN|MAX}_CHAR_HEBREW.
1248         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1249         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1250
1251         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1252         (MAX_CHAR_GREEK): Purged.
1253         (MIN_CHAR_CYRILLIC): Purged.
1254         (MAX_CHAR_CYRILLIC): Purged.
1255         (MIN_CHAR_HEBREW): Commented out.
1256         (MAX_CHAR_HEBREW): Likewise.
1257
1258 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1259
1260         * mule-charset.c (Qto_ucs): New variable.
1261         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1262         (Fdefine_char): Likewise.
1263         (syms_of_mule_charset): Add new symbol `=>ucs'.
1264
1265 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1266
1267         * mule-charset.c (Fdecode_char): Fixed.
1268
1269 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1270
1271         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1272         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1273         "tcvn5712-1".
1274
1275 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276
1277         * mule-charset.c (Vcharset_ucs_big5): New variable.
1278         (Qucs_big5): Likewise.
1279         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1280         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1281
1282         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1283
1284 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1285
1286         * mule-charset.c (decode_builtin_char): Check Big5 code range
1287         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1288
1289 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1290
1291         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1292         (Qchinese_gb12345): Likewise.
1293         (Fdecode_builtin_char): Fixed.
1294         (syms_of_mule_charset): Add `chinese-gb12345'.
1295         (complex_vars_of_mule_charset): Add coded-charset
1296         `chinese-gb12345'.
1297
1298         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1299         (LEADING_BYTE_CHINESE_GB12345): New macro.
1300
1301 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1302
1303         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1304         and `latin-viscii-upper' for `latin-viscii'.
1305
1306 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1307
1308         * mule-charset.c (Fdecode_builtin_char): Comment out
1309         regularization code for ISO-IR GR representation.
1310
1311 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1312
1313         * mule-charset.c (decode_builtin_char): New function; renamed from
1314         `make_builtin_char'; return -1 instead of signal.
1315         (Fdecode_builtin_char): Use `decode_builtin_char'.
1316
1317         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1318         `make_builtin_char'.
1319         (DECODE_CHAR): Use `decode_builtin_char' instead of
1320         `make_builtin_char'; use mapping table of `chinese-big5' for
1321         `chinese-big5-{1,2}'.
1322
1323 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1324
1325         * text-coding.c (char_encode_big5): New function.
1326         (char_finish_big5): Likewise.
1327         (reset_encoding_stream): Use `char_encode_big5' and
1328         `char_finish_big5' for CODESYS_BIG5.
1329         (mule_encode): Don't use `encode_coding_big5'.
1330         (encode_coding_big5): Deleted.
1331
1332 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333
1334         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1335         0x81- in XEmacs UTF-2000.
1336         (detect_coding_big5): Likewise.
1337
1338 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1339
1340         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1341         generate character-id if the CCS property does not have
1342         corresponding predefined character.
1343         (make_builtin_char): Return -1 if corresponding predefined
1344         character is not found.
1345         (Fdecode_char): Return nil if corresponding character is not
1346         found.
1347         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1348         don't map to builtin ucs space.
1349
1350 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1351
1352         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1353         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1354
1355 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1358         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1359         (Qideograph_gt): Likewise.
1360         (Qideograph_gt_pj_{1..11}): Likewise.
1361         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1362         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1363         `ideograph-gt-pj-11'.
1364         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1365         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1366         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1367
1368         * char-ucs.h (LEADING_BYTE_GT): New macro.
1369         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1370         (MIN_CHAR_GT): Likewise.
1371         (MAX_CHAR_GT): Likewise.
1372
1373 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1376         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1377
1378         * doprnt.c (unsigned_int_converters): Add `c'.
1379         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1380
1381         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1382         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1383         `MIN_CHAR_MOJIKYO'.
1384         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1385         (MAX_CHAR_MOJIKYO_0): New macro.
1386         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1387
1388 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1389
1390         * mule-charset.c (Fdefine_char): Delete cemented out code.
1391         (encode_builtin_char_1): Modify for new allocation of builtin
1392         Mojikyo characters.
1393
1394         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1395
1396 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * mule-charset.c (Vcharset_ucs_cns): New variable.
1399         (Qucs_cns): New variable.
1400         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1401         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1402
1403 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1404
1405         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1406
1407 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1408
1409         * search.c (search_buffer): Make `charset_base_code' as
1410         character-id >> 6 to eliminate the corresponding last byte in
1411         UTF-8 representation [I'm not sure it is right thing].
1412         (boyer_moore): Likewise.
1413
1414 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1415
1416         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1417         representation in MULE.
1418
1419 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1420
1421         * text-coding.c (Fmake_coding_system): Use
1422         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1423         `EXTERNAL_PROPERTY_LIST_LOOP'.
1424
1425 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1426
1427         * text-coding.c (decode_output_utf8_partial_char): New function.
1428         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1429
1430 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1431
1432         * text-coding.c (decode_coding_utf8): Output original byte
1433         sequence if it is broken; change order of conditions.
1434
1435         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1436         of conditions.
1437
1438         * mb-multibyte.h (BYTE_ASCII_P):
1439         Use bit ops for char-signedness safety.
1440         (BYTE_C0_P): Use bit ops for char-signedness safety.
1441         (BYTE_C1_P): Use bit ops for char-signedness safety.
1442
1443         * character.h: (XCHAR_OR_CHAR_INT):
1444         Always use inline function.
1445         Remove redundant type checking assert() - XINT will abort quite
1446         nicely.
1447
1448 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1449
1450         * text-coding.c: (Fencode_shift_jis_char):
1451         (Fencode_big5_char):
1452         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1453         Replace 0 with '\0' when working with bytes.
1454         Replace initial "(" with "\(" in docstrings.
1455
1456         (Fmake_coding_system):
1457         When type is ccl and value is vector, register it with a proper
1458         symbol.  And checks whether the given ccl program is valid.
1459         (mule_decode): When calling ccl_driver, if src indicates
1460         NULL pointer, set an empty string instead.
1461         (mule_encode): Likewise.
1462
1463         (detect_eol_type):
1464         (detect_coding_sjis):
1465         (decode_coding_sjis):
1466         (detect_coding_big5):
1467         (decode_coding_big5):
1468         (detect_coding_ucs4):
1469         (decode_coding_ucs4):
1470         (detect_coding_utf8):
1471         (decode_coding_utf8):
1472         (detect_coding_iso2022):
1473         (decode_coding_iso2022):
1474         (decode_coding_no_conversion):
1475         (mule_decode):
1476         Make all detecting and decoding functions take an Extbyte * arg.
1477         (text_encode_generic):
1478         (encode_coding_big5):
1479         (encode_coding_no_conversion):
1480         (mule_encode):
1481         Make all encoding functions take a Bufbyte * arg.
1482         Use size_t instead of unsigned int for memory sizes.
1483         Only cast to unsigned char whenever dereferencing Extbyte *.
1484
1485         (struct lrecord_description fcd_description_1): Use countof.
1486         (complex_vars_of_file_coding):
1487         Use countof instead of sizeof.
1488         Use CHECK_NATNUM instead of CHECK_INT.
1489
1490 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1491
1492         * mule-charset.c (Fget_char_attribute): Add new optional argument
1493         `default-value'.
1494         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1495         (remove_char_ccs): Likewise.
1496
1497 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1498
1499         * text-coding.c (char_encode_shift_jis): New implementation in
1500         UTF-2000.
1501         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1502         ...)'.
1503
1504         * mule-charset.c (Vcharset_chinese_big5): New variable in
1505         UTF-2000.
1506         (Qchinese_big5): New variable in UTF-2000.
1507         (BIG5_SAME_ROW): New macro in UTF-2000.
1508         (make_builtin_char): Use builtin characters of
1509         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1510         characters of `Vcharset_chinese_big5'.
1511         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1512         (complex_vars_of_mule_charset): Add new coded-charset
1513         `chinese-big5' in UTF-2000.
1514
1515         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1516         (Vcharset_chinese_big5): New external variable declaration.
1517         (Vcharset_japanese_jisx0208_1990): Likewise.
1518
1519 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1520
1521         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1522         function.
1523         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1524
1525 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526
1527         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1528         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1529         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1530         `mojikyo-pj-*'.
1531
1532 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533
1534         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1535
1536 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1537
1538         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1539         to 0.17.
1540
1541 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1542
1543         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1544         for `CHARSET_BY_ATTRIBUTES'.
1545         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1546         `CHARSET_BY_ATTRIBUTES'.
1547
1548         * text-coding.c (struct decoding_stream): Rename member `CH' to
1549         `CPOS'.
1550         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1551         (decode_coding_sjis): Likewise.
1552         (decode_coding_big5): Likewise.
1553         (decode_coding_ucs4): Likewise.
1554         (decode_coding_utf8): Likewise.
1555         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1556         `CHARSET_BY_ATTRIBUTES'.
1557         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1558         `str->counter'; decode 3, 4 bytes sets.
1559         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1560         sets.
1561         (decode_coding_no_conversion): Use `str->cpos' instead of
1562         `str->ch'.
1563
1564         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1565         (Qmojikyo_2022_1): New variable.
1566         (make_charset): Don't use `CHARSET_TYPE_*'.
1567         (range_charset_code_point): Support coded-charset
1568         `mojikyo-2022-1'.
1569         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1570         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1571         `CHARSET_BY_ATTRIBUTES'.
1572         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1573         `CHARSET_BY_ATTRIBUTES'.
1574         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1575         (complex_vars_of_mule_charset): Add new coded-charset
1576         `mojikyo-2022-1'.
1577
1578         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1579         interface; changed to inline function.
1580
1581         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1582         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1583         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1584         (CHARSET_TYPE_94): Deleted.
1585         (CHARSET_TYPE_94X94): Deleted.
1586         (CHARSET_TYPE_96): Deleted.
1587         (CHARSET_TYPE_96X96): Deleted.
1588         (CHARSET_TYPE_128): Deleted.
1589         (CHARSET_TYPE_128X128): Deleted.
1590         (CHARSET_TYPE_256): Deleted.
1591         (CHARSET_TYPE_256X256): Deleted.
1592         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1593         to inline function.
1594         (DECODE_MOJIKYO_2022): New inline function.
1595         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1596         `Vcharset_mojikyo_2022_1'.
1597
1598 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1599
1600         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1601         instead of `EQ'.
1602         (put_byte_table): Likewise.
1603         (char_id_table_equal): Use `get_byte_table' [new implementation].
1604
1605 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * mule-charset.c: Include <limits.h> in UTF-2000.
1608         (BT_UINT8_MIN): New macro in UTF-2000.
1609         (BT_UINT8_MAX): New macro in UTF-2000.
1610         (BT_UINT8_t): New macro in UTF-2000.
1611         (BT_UINT8_nil): New macro in UTF-2000.
1612         (BT_UINT8_unbound): New macro in UTF-2000.
1613         (INT_UINT8_P): New inline function in UTF-2000.
1614         (UINT8_VALUE_P): New inline function in UTF-2000.
1615         (UINT8_ENCODE): New inline function in UTF-2000.
1616         (UINT8_DECODE): New inline function in UTF-2000.
1617         (mark_uint8_byte_table): New function in UTF-2000.
1618         (print_uint8_byte_table): New function in UTF-2000.
1619         (uint8_byte_table_equal): New function in UTF-2000.
1620         (uint8_byte_table_hash): New function in UTF-2000.
1621         (make_uint8_byte_table): New function in UTF-2000.
1622         (uint8_byte_table_same_value_p): New function in UTF-2000.
1623         (BT_UINT16_MIN): New macro in UTF-2000.
1624         (BT_UINT16_MAX): New macro in UTF-2000.
1625         (BT_UINT16_t): New macro in UTF-2000.
1626         (BT_UINT16_nil): New macro in UTF-2000.
1627         (BT_UINT16_unbound): New macro in UTF-2000.
1628         (INT_UINT16_P): New inline function in UTF-2000.
1629         (UINT16_VALUE_P): New inline function in UTF-2000.
1630         (UINT16_ENCODE): New inline function in UTF-2000.
1631         (UINT16_DECODE): New inline function in UTF-2000.
1632         (UINT8_TO_UINT16): New inline function in UTF-2000.
1633         (mark_uint16_byte_table): New function in UTF-2000.
1634         (print_uint16_byte_table): New function in UTF-2000.
1635         (uint16_byte_table_equal): New function in UTF-2000.
1636         (uint16_byte_table_hash): New function in UTF-2000.
1637         (make_uint16_byte_table): New function in UTF-2000.
1638         (uint16_byte_table_same_value_p): New function in UTF-2000.
1639         (print_byte_table): New function in UTF-2000.
1640         (byte-table): Use `print_byte_table' as printer.
1641         (make_byte_table): Delete second argument `older'.
1642         (byte_table_same_value_p): New function in UTF-2000.
1643         (copy_byte_table): Deleted.
1644         (get_byte_table): New function in UTF-2000.
1645         (put_byte_table): New function in UTF-2000.
1646         (print_char_id_table): New function in UTF-2000.
1647         (char-id-table): Use `print_char_id_table' as printer.
1648         (make_char_id_table): Delete second argument `older'.
1649         (get_char_id_table): Use `get_byte_table [new implementation].
1650         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1651         implementation].
1652         (Ffind_char_attribute_table): New function in UTF-2000.
1653         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1654         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1655         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1656         (syms_of_mule_charset): Add new function
1657         `find-char-attribute-table' in UTF-2000.
1658
1659         * lrecord.h (enum lrecord_type): Add
1660         `lrecord_type_uint16_byte_table' and
1661         `lrecord_type_uint8_byte_table'.
1662
1663         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1664         (Lisp_Uint8_Byte_Table): New type.
1665         (XUINT8_BYTE_TABLE): New macro.
1666         (XSETUINT8_BYTE_TABLE): New macro.
1667         (UINT8_BYTE_TABLE_P): New macro.
1668         (GC_UINT8_BYTE_TABLE_P): New macro.
1669         (struct Lisp_Uint16_Byte_Table): New structure.
1670         (Lisp_Uint16_Byte_Table): New type.
1671         (XUINT16_BYTE_TABLE): New macro.
1672         (XSETUINT16_BYTE_TABLE): New macro.
1673         (UINT16_BYTE_TABLE_P): New macro.
1674         (GC_UINT16_BYTE_TABLE_P): New macro.
1675
1676 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1677
1678         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1679         (Vcharacter_ideographic_strokes_table): Deleted.
1680         (Vcharacter_total_strokes_table): Deleted.
1681         (Vcharacter_morohashi_daikanwa_table): Deleted.
1682         (Vcharacter_decomposition_table): Deleted.
1683         (Qname): Deleted because it is duplicated.
1684         (Qideographic_radical): Deleted.
1685         (Qideographic_strokes): Deleted.
1686         (Qtotal_strokes): Deleted.
1687         (Qmorohashi_daikanwa): Deleted.
1688         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1689         `ideographic-radical', `ideographic-strokes', `total-strokes',
1690         `morohashi-daikanwa' and `->decomposition'.
1691         (Fget_char_attribute): Likewise.
1692         (Fput_char_attribute): Likewise; use `make-vector' instead of
1693         `make_older_vector' for `->decomposition' value.
1694         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1695         `ideograph-daikanwa'.
1696         (syms_of_mule_charset): Delete builtin symbols `name',
1697         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1698         `morohashi-daikanwa'.
1699         (vars_of_mule_charset): Don't setup
1700         `Vcharacter_ideographic_radical_table',
1701         `Vcharacter_ideographic_strokes_table',
1702         `Vcharacter_total_strokes_table',
1703         `Vcharacter_morohashi_daikanwa_table' and
1704         `Vcharacter_decomposition_table'.
1705
1706 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1707
1708         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1709         `make_older_vector', `make_vector_newer_1' and
1710         `make_vector_newer'.
1711
1712         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1713         `make_older_vector' and `make_vector_newer'.
1714
1715         * config.h.in (HAVE_GGC): New macro.
1716
1717 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1718
1719         * mule-charset.c (struct char_attribute_list_closure): New
1720         structure in UTF-2000.
1721         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1722         (Fchar_attribute_list): Likewise.
1723         (Fset_charset_mapping_table): Use `make_vector_newer'.
1724         (Fdecode_builtin_char): New function in UTF-2000.
1725         (syms_of_mule_charset): Add new function `char-attribute-list' and
1726         `decode-builtin-char' in UTF-2000.
1727
1728         * lisp.h (make_vector_newer): New prototype.
1729
1730         * alloc.c (make_vector_newer_1): New function.
1731         (make_vector_newer): New function.
1732
1733 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1734
1735         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1736         50100)'.
1737
1738 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1739
1740         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1741         (Vcharacter_attribute_table): Deleted.
1742         (Vcharacter_name_table): Deleted.
1743         (put_char_attribute): Deleted.
1744         (remove_char_attribute): Deleted.
1745         (struct char_attribute_alist_closure): New structure.
1746         (add_char_attribute_alist_mapper): New function.
1747         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1748         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1749         (Fget_char_attribute): Likewise.
1750         (Fput_char_attribute): Likewise.
1751         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1752         of `remove_char_attribute'.
1753         (Fdefine_char): Return character.
1754         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1755         and `Vcharacter_name_table'.
1756         (complex_vars_of_mule_charset): Likewise
1757         `Vchar_attribute_hash_table'.
1758
1759 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1760
1761         * character.h (CHARC_CHARSET): New macro.
1762         (CHARC_CHARSET_ID): New macro.
1763         (CHARC_CODE_POINT): New macro.
1764         (CHARC_COLUMNS): New macro.
1765         (CHARC_TO_CHAR): New inline function.
1766         (CHARC_EQ): New inline function.
1767         (CHARC_ASCII_EQ): New inline function.
1768         (CHARC_IS_SPACE): New inline function.
1769         (ASCII_TO_CHARC): New inline function.
1770
1771         * char-ucs.h (encode_char_2): Deleted.
1772         (ENCODE_CHAR): Use `encode_char_1' again.
1773         (breakup_char_1): Likewise.
1774         (CHAR_TO_CHARC): New inline function.
1775
1776         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1777
1778 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1779
1780         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1781         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1782         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1783         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1784         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1785         `CHARC_IS_SPACE'.
1786         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1787
1788         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1789         `CHARC_CODE_POINT'.
1790         (x_output_display_block): Use `CHARC_CHARSET' and
1791         `CHARC_ASCII_EQ'.
1792
1793         * redisplay-tty.c (tty_output_display_block): Use
1794         `CHARC_ASCII_EQ'.
1795         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1796
1797         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1798
1799         * insdel.c (find_charsets_in_charc_string): Use
1800         `CHARC_CHARSET_ID'.
1801         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1802         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1803         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1804         (convert_charc_string_into_malloced_string): Likewise.
1805
1806 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1809         instead of <Emchar_dynarr *> for buf; use
1810         `convert_bufbyte_string_into_charc_dynarr' instead of
1811         `convert_bufbyte_string_into_emchar_dynarr'; use
1812         `find_charsets_in_charc_string' instead of
1813         `find_charsets_in_emchar_string'.
1814
1815         * redisplay.h:
1816         - Include "character.h".
1817         (struct rune): New member `cglyph'; delete member `chr'.
1818
1819         * redisplay.c (redisplay_text_width_charc_string): New function;
1820         delete `redisplay_text_width_emchar_string'.
1821         (rtw_charc_dynarr): New variable; renamed from
1822         `rtw_emchar_dynarr'.
1823         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1824         `rtw_emchar_dynarr'; use
1825         `convert_bufbyte_string_into_charc_dynarr' instead of
1826         `convert_bufbyte_string_into_emchar_dynarr'; use
1827         `redisplay_text_width_charc_string' instead of
1828         `redisplay_text_width_emchar_string'.
1829         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1830         instead of `rtw_emchar_dynarr'; use
1831         `convert_bufbyte_string_into_charc_dynarr' instead of
1832         `convert_bufbyte_string_into_emchar_dynarr'.
1833         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1834         `redisplay_text_width_charc_string' instead of
1835         `redisplay_text_width_emchar_string'.
1836         (create_text_block): Modify for <struct rune> change.
1837         (generate_formatted_string_db): Likewise.
1838         (create_string_text_block): Likewise.
1839         (pixel_to_glyph_translation): Likewise.
1840
1841         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1842         instead of <const Emchar *>.
1843         (x_text_width): Likewise.
1844         (x_output_display_block): Use <Charc_dynarr *> instead
1845         <Emchar_dynarr *>; modify for <structure rune> change.
1846         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1847         *>.
1848
1849         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1850         <const Emchar *>; use `charc_string_displayed_columns' instead of
1851         `emchar_string_displayed_columns'.
1852         (tty_output_display_block): Use <Charc_dynarr *> instead of
1853         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1854         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1855         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1856         `tty_output_emchar_dynarr_dynarr'.
1857         (tty_output_charc_dynarr): New function; delete
1858         `tty_output_charc_dynarr'.
1859
1860         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1861         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1862         <Emchar_dynarr *> for buf; use
1863         `convert_bufbyte_string_into_charc_dynarr' instead of
1864         `convert_bufbyte_string_into_emchar_dynarr'.
1865
1866         * frame.c (title_string_charc_dynarr): New variable; renamed from
1867         `title_string_emchar_dynarr'.
1868         (generate_title_string): Use `title_string_charc_dynarr' instead
1869         of `title_string_emchar_dynarr'; use
1870         `convert_charc_string_into_malloced_string' instead of
1871         `convert_emchar_string_into_malloced_string'.
1872         (init_frame): Use `title_string_charc_dynarr' instead of
1873         `title_string_emchar_dynarr'.
1874
1875         * console.h:
1876         - Include "character.h".
1877         (struct console_methods): Use <const Charc *> instead of <const
1878         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1879         <Emchar_dynarr *> in output_string_method.
1880
1881         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1882         <Emchar_dynarr *>.
1883
1884         * console-stream.c (stream_text_width): Use <const Charc *>
1885         instead of <const Emchar *>.
1886
1887         * character.h (Charc_dynarr): New type.
1888
1889         * char-ucs.h (structure Charc): New structure; define new type
1890         `Charc'.
1891
1892         * char-lb.h (DECODE_CHAR): New inline function.
1893         (encode_char_1): New inline function.
1894         (ENCODE_CHAR): New macro.
1895         (structure Charc): New structure; define new type `Charc'.
1896
1897         * char-1byte.h (Vcharset_control_1): New macro.
1898         (Vcharset_latin_iso8859_1): New macro.
1899         (DECODE_CHAR): New inline function.
1900         (encode_char_1): New inline function.
1901         (ENCODE_CHAR): New macro.
1902         (structure Charc): New structure; define new type `Charc'.
1903
1904         * insdel.c (find_charsets_in_charc_string): New function; delete
1905         `find_charsets_in_emchar_string'.
1906         (charc_string_displayed_columns): New function; delete
1907         `emchar_string_displayed_columns'.
1908         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1909         `convert_bufbyte_string_into_emchar_dynarr'.
1910         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1911         `convert_charc_string_into_bufbyte_dynarr'.
1912         (convert_charc_string_into_malloced_string): New function; delete
1913         `convert_charc_string_into_malloced_string'.
1914
1915         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1916         `find_charsets_in_emchar_string'.
1917         (charc_string_displayed_columns): New prototype; delete
1918         `emchar_string_displayed_columns'.
1919         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1920         `convert_charc_string_into_bufbyte_dynarr'.
1921         (convert_charc_string_into_malloced_string): New prototype; delete
1922         `convert_charc_string_into_malloced_string'.
1923
1924 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1925
1926         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1927
1928 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1929
1930         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1931
1932         * char-ucs.h: Use <short> for <Charset_ID>.
1933
1934         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1935         <Charset_ID>.
1936
1937 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1938
1939         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1940         to 0.16.
1941
1942 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1943
1944         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1945         variable.
1946         (Qmorohashi_daikanwa): New variable.
1947         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1948         for `morohashi-daikanwa' attribute.
1949         (Fget_char_attribute): Likewise.
1950         (Fput_char_attribute): Likewise.
1951         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1952         has the same value of `ideograph-daikanwa'.
1953         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1954         (vars_of_mule_charset): Setup
1955         `Vcharacter_morohashi_daikanwa_table'.
1956
1957 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1958
1959         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1960         attributes.
1961         (add_charset_to_list_mapper): Add `key' instead of
1962         `XCHARSET_NAME (value)' to return aliases.
1963
1964 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1965
1966         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1967         variable.
1968         (Vcharacter_ideographic_strokes_table): New variable.
1969         (Qideographic_radical): New variable.
1970         (Qideographic_strokes): New variable.
1971         (Fchar_attribute_alist): Use
1972         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1973         attribute; use `Vcharacter_ideographic_strokes_table' for
1974         `ideographic-strokes' attribute.
1975         (Fget_char_attribute): Likewise.
1976         (Fput_char_attribute): Likewise.
1977         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1978         `ideographic-strokes'.
1979         (vars_of_mule_charset): Setup
1980         `Vcharacter_ideographic_radical_table' and
1981         `Vcharacter_ideographic_strokes_table'.
1982
1983 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1984
1985         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1986         (Qtotal_strokes): New variable.
1987         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1988         `total-strokes' attribute.
1989         (Fget_char_attribute): Likewise.
1990         (Fput_char_attribute): Likewise.
1991         (syms_of_mule_charset): Add new symbol `total-strokes'.
1992         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1993
1994 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1995
1996         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1997         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1998         are found.
1999         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2000         `->decomposition' attribute.
2001         (Fput_char_attribute): Likewise.
2002         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2003
2004 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2005
2006         * mule-charset.c (decoding_table_check_elements): New function.
2007         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2008
2009 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2010
2011         * mule-charset.c (Fset_charset_mapping_table): Use
2012         `put_char_ccs_code_point'.
2013
2014 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2015
2016         * mule-charset.c (decoding_table_put_char): New inline function.
2017         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2018
2019 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020
2021         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2022         (XCHARSET_BYTE_SIZE): New macro.
2023         (decoding_table_remove_char): New inline function.
2024         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2025         `decoding_table_remove_char'.
2026         (remove_char_ccs): Use `decoding_table_remove_char'.
2027         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2028
2029 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * mule-charset.c (Vcharacter_name_table): New variable.
2032         (Qname): New variable.
2033         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2034         attribute.
2035         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2036         `Vcharacter_name_table' for `name' attribute.
2037         (Fremove_char_attribute): Use function `remove_char_ccs'.
2038         (put_char_ccs_code_point): New function.
2039         (remove_char_ccs): New function.
2040         (syms_of_mule_charset): Add new symbol `name'.
2041         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2042
2043 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2044
2045         * mule-charset.c (make_byte_table): Add new argument `older'.
2046         (make_char_id_table): Likewise.
2047         (copy_char_id_table): Comment out because it is not used.
2048         (put_char_id_table): Modify for `make_byte_table'.
2049         (Fput_char_attribute): Make encoding_table as older object;
2050         inherit older bit of `Vcharacter_composition_table'.
2051         (mark_charset): Don't mark `cs->encoding_table'.
2052         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2053         normal object; make `Vcharacter_composition_table' as an older
2054         object; delete staticpro for `Vcharacter_composition_table'; make
2055         `Vcharacter_variant_table' as a normal object.
2056
2057         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2058         (mark_object): Don't check older object in UTF-2000.
2059
2060         * lrecord.h (struct lrecord_header): Add new member `older' in
2061         UTF-2000.
2062         (set_lheader_implementation): Setup `SLI_header->older' in
2063         UTF-2000.
2064         (set_lheader_older_implementation): New macro in UTF-2000.
2065         (OLDER_RECORD_P): New macro in UTF-2000.
2066         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2067         (alloc_older_lcrecord): New prototype in UTF-2000.
2068         (alloc_older_lcrecord_type): New macro in UTF-2000.
2069
2070 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2071
2072         * mule-charset.c (byte_table_description): Use
2073         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2074         (char_id_table_description): Delete bogus `, 1'.
2075         (Fget_char_attribute): Refer encoding_table of each coded-charset
2076         to get value of coded-charset attribute of a character.
2077         (Fput_char_attribute): Use `make_older_vector' instead of
2078         `make_vector'; use encoding_table of each coded-charset to store
2079         value of coded-charset attribute of a character.
2080         (Fremove_char_attribute): Use encoding_table of each coded-charset
2081         to store value of coded-charset attribute of a character.
2082         (mark_charset): Mark `cs->encoding_table'; don't mark
2083         `cs->decoding_table'.
2084         (charset_description): Add description of new member
2085         `encoding_table'.
2086         (make_charset): Initialize `encoding_table'.
2087
2088         * char-ucs.h (struct Lisp_Charset): Add new member
2089         `encoding_table'.
2090         (CHARSET_ENCODING_TABLE): New macro.
2091         (XCHARSET_ENCODING_TABLE): New macro.
2092         (charset_code_point): New implementation.
2093         (encode_char_1): Likewise.
2094
2095         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2096         (disksave_object_finalization_1): Call finalizers of
2097         `all_older_lcrecords' in UTF-2000.
2098         (make_older_vector): New function in UTF-2000.
2099         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2100         UTF-2000.
2101
2102         * lisp.h (make_older_vector): New prototype in UTF-2000.
2103
2104 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2105
2106         * lrecord.h (enum lrecord_type): Rename
2107         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2108
2109         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2110         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2111         `get_char_code_table'.
2112
2113         * mule-charset.c (mark_char_id_table): Renamed from
2114         `mark_char_code_table'.
2115         (char_id_table_equal): Renamed from `char_code_table_equal'.
2116         (char_id_table_hash): Renamed from `char_code_table_hash'.
2117         (make_char_id_table): Renamed from `make_char_code_table'.
2118         (copy_char_id_table): Renamed from `copy_char_code_table'.
2119         (get_char_id_table): Renamed from `get_char_code_table'.
2120         (put_char_id_table): Renamed from `put_char_code_table'.
2121         (to_char_id): Renamed from `to_char_code'.
2122
2123         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2124         `Lisp_Char_Code_Table'.
2125         (char_id_table): Renamed from `char_code_table'.
2126         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2127         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2128         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2129         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2130         (get_char_id_table): Renamed from `get_char_code_table'.
2131
2132 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133
2134         * lrecord.h (enum lrecord_type): Rename
2135         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2136
2137         * mule-charset.c (mark_byte_table): Renamed from
2138         `mark_char_byte_table'.
2139         (byte_table_equal): Renamed from `char_byte_table_equal'.
2140         (byte_table_hash): Renamed from `byte_table_hash'.
2141         (make_byte_table): Renamed from `make_byte_table'.
2142         (copy_byte_table): Renamed from `copy_char_byte_table'.
2143
2144         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2145         `Lisp_Char_Byte_Table'.
2146         (byte_table): Renamed from `char_byte_table'.
2147         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2148         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2149         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2150         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2151
2152 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2153
2154         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2155         (dfc_convert_to_internal_format): Likewise.
2156         
2157         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2158         * text-coding.c (Fcoding_system_alias_p): New function.
2159         * text-coding.c (Fcoding_system_aliasee): New function.
2160         * text-coding.c (append_suffix_to_symbol): New function.
2161         * text-coding.c (dangling_coding_system_alias_p): New function.
2162         * text-coding.c (Ffind_coding_system):
2163         * text-coding.c (Fcopy_coding_system):
2164         * text-coding.c (encode_coding_no_conversion):
2165         * text-coding.c (syms_of_file_coding):
2166         * text-coding.c (vars_of_file_coding):
2167         Rewrite coding system alias code.
2168         Allow nested aliases, like symbolic links.
2169         Allow redefinition of coding system aliases.
2170         Prevent existence of dangling coding system aliases.
2171         Eliminate convert_to_external_format.
2172         Eliminate convert_to_internal_format.
2173         
2174         * text-coding.c: Change enum eol_type to eol_type_t.
2175
2176 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2177
2178         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2179         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2180
2181         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2182         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2183
2184 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2185
2186         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2187         `ideograph-daikanwa'.
2188
2189         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2190         (Vcharset_ucs_bmp): Likewise.
2191         (Vcharset_mojikyo): Add new extern variable definition.
2192         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2193         (Vcharset_latin_iso8859_3): Likewise.
2194         (Vcharset_latin_iso8859_4): Likewise.
2195         (Vcharset_latin_iso8859_9): Likewise.
2196         (Vcharset_latin_viscii_lower): Likewise.
2197         (Vcharset_latin_viscii_upper): Likewise.
2198         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2199         `mojikyo' code-point is used to decode.
2200         (encode_char_2): New function [to convert `mojikyo' code-point to
2201         Mojikyo font encoding].
2202         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2203         (breakup_char_1): Likewise.
2204         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2205
2206 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2207
2208         * text-coding.c (Fmake_coding_system): Add document about
2209         `disable-composition' property.
2210
2211 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2212
2213         * text-coding.c (Qdisable_composition): New variable; delete
2214         `Qcomposite'.
2215         (Fmake_coding_system): Add new property `disable-composite';
2216         delete property `composite'.
2217         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2218         instead of `!CODING_SYSTEM_COMPOSITE'.
2219         (syms_of_file_coding): Add new symbol `disable-composition';
2220         delete symbol `composite'.
2221
2222         * file-coding.h (struct Lisp_Coding_System): Add
2223         `disable_composition'; delete `enable_composition'.
2224         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2225         `CODING_SYSTEM_COMPOSITE'.
2226         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2227         `XCODING_SYSTEM_COMPOSITE'.
2228
2229 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2230
2231         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2232         to 0.15.
2233
2234 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2235
2236         * text-coding.c (Qcomposite): New variable.
2237         (Fmake_coding_system): Add new property `composite'.
2238         (struct decoding_stream): Add `combined_char_count',
2239         `combined_chars' and `combining_table' in UTF-2000.
2240         (COMPOSE_FLUSH_CHARS): New macro.
2241         (COMPOSE_ADD_CHAR): New macro.
2242         (reset_decoding_stream): Reset `str->combined_char_count' and
2243         `str->combining_table' in UTF-2000.
2244         (decode_coding_iso2022): Modify for character-decomposition.
2245         (syms_of_file_coding): Add new symbol `composite'.
2246
2247 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2250         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2251         of `Vcharacter_composition_table' if `->decomposition' property
2252         has only 1 element.
2253         (Qlatin_tcvn5712): New variable.
2254         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2255         (complex_vars_of_mule_charset): Add new coded-charset
2256         `latin-tcvn5712'.
2257
2258         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2259
2260 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2261
2262         * file-coding.h (struct Lisp_Coding_System): Add
2263         `enable_composition'.
2264         (CODING_SYSTEM_COMPOSITE): New macro.
2265         (XCODING_SYSTEM_COMPOSITE): New macro.
2266
2267 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2268
2269         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2270
2271 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2272
2273         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2274         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2275
2276 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2277
2278         * mule-charset.c (Vcharset_mojikyo): New variable.
2279         (Fdefine_char): Don't use coded-charset which does not have
2280         non-builtin character range to allocate character-id.
2281         (Qmojikyo): New variable.
2282         (syms_of_mule_charset): Add new symbol `mojikyo'.
2283         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2284
2285         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2286         (LEADING_BYTE_MOJIKYO): New macro.
2287         (MIN_CHAR_MOJIKYO): New macro.
2288         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2289         (MAX_CHAR_MOJIKYO): New macro.
2290
2291 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2292
2293         * mule-charset.c (remove_char_attribute): Fixed.
2294
2295 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2296
2297         * mule-charset.c (remove_char_attribute): New function.
2298         (Fremove_char_attribute): New function.
2299         (encode_builtin_char_1): Comment out builtin-support for
2300         greek-iso8859-7 and cyrillic-iso8859-5.
2301         (Fdecode_char): Check `code' is an integer.
2302         (syms_of_mule_charset): Add `remove-char-attribute'.
2303         (MIN_CHAR_GREEK): Deleted.
2304         (MAX_CHAR_GREEK): Likewise.
2305         (MIN_CHAR_CYRILLIC): Likewise.
2306         (MAX_CHAR_CYRILLIC): Likewise.
2307         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2308         MAX_CHAR_GREEK for `greek-iso8859-7'.
2309
2310         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2311         (MAX_CHAR_GREEK): Likewise.
2312         (MIN_CHAR_CYRILLIC): Likewise.
2313         (MAX_CHAR_CYRILLIC): Likewise.
2314
2315 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2316
2317         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2318         format is used without `ucs' property.
2319         (Fdecode_char): Fix problem with GR representation.
2320         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2321         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2322
2323 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2324
2325         * mule-charset.c (make_builtin_char): New function.
2326         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2327         (Fset_charset_mapping_table): Modify for new representation of
2328         code-point.
2329         (Fdecode_char): New function.
2330         (syms_of_mule_charset): Add new builtin function `decode-char' in
2331         UTF-2000.
2332
2333         * char-ucs.h (make_builtin_char): New prototype.
2334         (DECODE_CHAR): New inline function.
2335         (MAKE_CHAR): Use `DECODE_CHAR'.
2336
2337 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2338
2339         * text-coding.c (parse_charset_conversion_specs): Use
2340         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2341         `XCHARSET_TYPE'.
2342         (iso2022_designate): Likewise.
2343
2344         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2345         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2346
2347         * mule-charset.c (Vcharset_ucs): New variable.
2348         (print_charset): Change design; use `CHARSET_CHARS' and
2349         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2350         (make_charset): Change signature to specify `chars' and
2351         `dimension' instead of `type'.
2352         (range_charset_code_point): Modify for 256^n-set.
2353         (encode_builtin_char_1): Encode as `ucs' in default.
2354         (Fmake_charset): Modify for `make_charset'.
2355         (Fmake_reverse_direction_charset): Likewise.
2356         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2357         UTF-2000.
2358         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2359         for `make_charset'.
2360
2361         * char-ucs.h (Vcharset_ucs): New variable.
2362         (LEADING_BYTE_UCS): New macro.
2363         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2364         and `chars' to `unsigned short' from `unsigned int'.
2365         (CHARSET_TYPE): Deleted.
2366         (XCHARSET_TYPE): Deleted.
2367
2368 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2369
2370         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2371
2372         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2373         (ENCODE_CHAR): New macro.
2374
2375 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2376
2377         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2378         to 0.14 (Kawachi-Katakami).
2379
2380 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2381
2382         * text-coding.c (char_encode_shift_jis): Modify for
2383         `charset_code_point'.
2384         (char_encode_iso2022): Likewise.
2385
2386         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2387         (integer) instead of list of <Lisp_Object>s (integers) as the
2388         format of code-point of a coded-charset.
2389         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2390         (encode_builtin_char_1): New function; delete
2391         `split_builtin_char'.
2392         (charset_code_point): Return <int> instead of <Lisp_Object>.
2393         (Fsplit_char): Don't use `SPLIT_CHAR'.
2394
2395         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2396         prototype for `split_builtin_char'.
2397         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2398         (charset_code_point): Likewise.
2399         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2400         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2401
2402 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2403
2404         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2405         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2406
2407 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2408
2409         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2410
2411         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2412         (MAX_CHAR_OBS_94x94): Deleted.
2413
2414 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2415
2416         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2417
2418         * char-ucs.h (MAX_CHAR_BMP): New macro.
2419
2420 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2421
2422         * text-coding.c: Sync with r21-2-24.
2423
2424 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2425
2426         * file-coding.c: Modify for UTF-2000.
2427
2428 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2429
2430         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2431         to 0.13 (Takaida).
2432
2433 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2434
2435         * mule-charset.c (split_builtin_char): Delete builtin support for
2436         `katakana-jisx0201'.
2437         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2438         BMP area in builtin representation.
2439
2440         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2441         `Vcharset_katakana_jisx0201'.
2442
2443 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2444
2445         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2446         (Qisolated): New variable.
2447         (Qinitial): New variable.
2448         (Qmedial): New variable.
2449         (Qfinal): New variable.
2450         (Qvertical): New variable.
2451         (Qsmall): New variable.
2452         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2453         `Qvertical' and `Qsmall'.
2454         (Qmojikyo_pj_[1 .. 21]): New variable.
2455         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2456         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2457         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2458         .. 21]'.
2459
2460 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2461
2462         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2463         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2464         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2465
2466 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2467
2468         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2469         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2470         BMP.
2471         (Qjapanese_jisx0208_1990): New variable.
2472         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2473         (complex_vars_of_mule_charset): Add new coded-charset
2474         `japanese-jisx0208-1990'.
2475
2476         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2477         (MIN_CHAR_JIS_X0208_1990): New macro.
2478         (MAX_CHAR_JIS_X0208_1990): New macro.
2479
2480 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2481
2482         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2483         coded-charset is not found.
2484
2485 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2486
2487         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2488         (Fdefine_char): Use `Fmake_char'.
2489
2490 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2491
2492         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2493         (Vcharset_hiragana_jisx0208): Deleted.
2494         (Vcharset_katakana_jisx0208): Deleted.
2495         (Qideograph_daikanwa): New variable.
2496         (Qhiragana_jisx0208): Deleted.
2497         (Qkatakana_jisx0208): Deleted.
2498         (split_builtin_char): Split `ideograph-daikanwa'.
2499         (Fsplit_char): New implementation for UTF-2000.
2500         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2501         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2502         (complex_vars_of_mule_charset): Add new coded-charset
2503         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2504         `katakana-jisx0208'.
2505
2506         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2507         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2508         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2509         (MIN_CHAR_DAIKANWA): New macro.
2510         (MAX_CHAR_DAIKANWA): New macro.
2511
2512 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2513
2514         * data.c (Fstring_to_number): Don't recognize floating point if
2515         base is not 10.
2516
2517 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2518
2519         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2520
2521 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2522
2523         * mule-charset.c (Qsquare): New variable.
2524         (to_char_code): Add `Qsquare'.
2525         (syms_of_mule_charset): Add new symbol `square'.
2526
2527 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2528
2529         * mule-charset.c (Qcircle): New variable.
2530         (to_char_code): Add `Qcircle'.
2531         (syms_of_mule_charset): Add new symbol `circle'.
2532
2533 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2534
2535         * mule-charset.c (Qfont): New variable.
2536         (to_char_code): Add `Qfont'.
2537         (syms_of_mule_charset): Add new symbol `font'.
2538
2539 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2540
2541         * mule-charset.c (Qsub): New variable.
2542         (to_char_code): Add `Qsub'.
2543         (syms_of_mule_charset): Add new symbol `sub'.
2544
2545 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2546
2547         * mule-charset.c (Fput_char_attribute): Convert each element of
2548         VALUE to GL position if ATTRIBUTE is a GR-set,
2549
2550 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2551
2552         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2553         coded-charset is a GR-set.
2554
2555 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2556
2557         * mule-charset.c (Fput_char_attribute): Check each element of
2558         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2559
2560 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2561
2562         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2563         UTF-2000.
2564         (Qethiopic_ucs): New variable in UTF-2000.
2565         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2566         (complex_vars_of_mule_charset): Add new coded-charset
2567         `ethiopic-ucs' in UTF-2000.
2568
2569         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2570         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2571         9)'.
2572         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2573         10)'.
2574         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2575
2576 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2577
2578         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2579         `ascii'.
2580
2581 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2582
2583         * mule-charset.c (Vcharacter_variant_table): New variable.
2584         (Q_ucs): New variable.
2585         (Fchar_variants): New function.
2586         (Fput_char_attribute): Register `->ucs' value to
2587         `Vcharacter_variant_table'.
2588         (syms_of_mule_charset): Add new function `char-variants' and new
2589         symbol `->ucs'.
2590         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2591
2592 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2593
2594         * mule-charset.c (get_char_code_table): Allow negative character
2595         code.
2596         (put_char_code_table): Likewise.
2597         (Vcharacter_composition_table): New variable.
2598         (Q_decomposition): New variable.
2599         (Qwide): New variable.
2600         (Qnarrow): New variable.
2601         (Qcompat): New variable.
2602         (QnoBreak): New variable.
2603         (Qsuper): New variable.
2604         (Qfraction): New variable.
2605         (to_char_code): New function.
2606         (Fget_composite_char): New function.
2607         (Fput_char_attribute): Register `->decomposition' value to
2608         `Vcharacter_composition_table'.
2609         (syms_of_mule_charset): Add new function `get-composite-char', new
2610         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2611         `super' and `fraction'.
2612         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2613
2614 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2615
2616         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2617         character; copy the return value.
2618
2619 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2620
2621         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2622
2623         * mule-charset.c (range_charset_code_point): Must use make_int.
2624         (split_builtin_char): New function.
2625
2626 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2627
2628         * mule-charset.c (char_byte_table): Change name from
2629         "char-code-table" to "char-byte-table".
2630         (mark_char_code_table): New function.
2631         (char_code_table_equal): New function.
2632         (char_code_table_hash): New function.
2633         (char_code_table_description): New constant.
2634         (char_code_table): New type.
2635         (make_char_code_table): New function.
2636         (copy_char_code_table): New function.
2637         (get_char_code_table): Modify for `char_code_table' type.
2638         (put_char_code_table): Likewise.
2639         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2640         (Kashiwara).
2641
2642         * char-ucs.h (char_code_table): New type.
2643         (XCHAR_CODE_TABLE): New macro.
2644         (XSETCHAR_CODE_TABLE): New macro.
2645         (CHAR_CODE_TABLE_P): New macro.
2646         (GC_CHAR_CODE_TABLE_P): New macro.
2647         (struct Lisp_Char_Code_Table): New structure.
2648
2649 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2650
2651         * mule-charset.c (Fmake_charset): Setup byte_offset for
2652         {94|96}^n-set.
2653
2654 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2655
2656         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2657         character.
2658
2659 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2660
2661         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2662         is found.
2663
2664 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2665
2666         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2667         charset, it is regarded as a charset.
2668         (put_char_attribute): New function in UTF-2000.
2669         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2670         charset, mapping-table of the charset is modified.
2671         (Fdefine_char): New function in UTF-2000.
2672         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2673         `Fput_char_attribute'.
2674         (syms_of_mule_charset): Add new function `define-char' and new
2675         symbol `ucs' in UTF-2000.
2676         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2677
2678 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2679
2680         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2681         non-UTF-2000 configuration.
2682
2683 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2684
2685         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2686         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2687
2688         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2689         deleted.
2690         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2691         (Fset_charset_mapping_table): Likewise.
2692
2693         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2694         (CHARSET_ENCODING_TABLE): Delete.
2695         (XCHARSET_ENCODING_TABLE): Delete.
2696         (charset_code_point): New interface.
2697
2698 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2699
2700         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2701         instead of `charset_get_byte1' and `charset_get_byte2'.
2702
2703         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2704         (charset_get_byte2): Deleted.
2705
2706 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2707
2708         * char-ucs.h (SPLIT_CHAR): New inline function.
2709         (breakup_char_1): Use `SPLIT_CHAR'.
2710
2711         * mule-charset.c (range_charset_code_point): New function.
2712         (charset_code_point): New function.
2713
2714         * char-ucs.h (range_charset_code_point): New interface.
2715         (breakup_char_1): Use `range_charset_code_point'.
2716
2717 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2718
2719         * mule-charset.c (Fmake_charset): Delete unused local variable
2720         `code_offset'.
2721
2722         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2723         (breakup_char_1): Find a charset and code-point in
2724         `Vcharacter_attribute_table'.
2725
2726 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2727
2728         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2729         to 0.10 (Yao).
2730
2731 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2732
2733         * mule-charset.c (Vcharacter_attribute_table): New variable.
2734         (Fchar_attribute_alist): New function.
2735         (Fget_char_attribute): New function.
2736         (Fput_char_attribute): New function.
2737         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2738         too.
2739         (syms_of_mule_charset): Add new function `char-attribute-alist',
2740         `get-char-attribute' and `put-char-attribute'.
2741         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2742
2743 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2744
2745         * mule-charset.c (Fmake_charset): Just use
2746         `get_unallocated_leading_byte'.
2747
2748         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2749         sets; don't use final-byte based number for private sets.
2750
2751 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2752
2753         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2754         integer.
2755
2756 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2757
2758         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2759         to 0.9.
2760
2761 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2762
2763         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2764         of `CHAR_LEADING_BYTE' in UTF-2000.
2765
2766         * insdel.c (find_charsets_in_bufbyte_string): Use
2767         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2768         (find_charsets_in_emchar_string): Likewise.
2769
2770         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2771         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2772
2773         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2774         (CHAR_CHARSET_ID): New macro.
2775
2776 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2777
2778         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2779         charset-id - MIN_LEADING_BYTE.
2780         (put_char_table): Likewise.
2781
2782 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2783
2784         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2785         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2786         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2787         (CHARSET_ID_OFFSET): New macro.
2788         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2789         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2790         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2791         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2792         4).
2793         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2794         5).
2795         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2796         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2797         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2798         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2799         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2800
2801 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2802
2803         * mule-charset.c (next_allocated_leading_byte): New variable in
2804         UTF-2000.
2805         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2806         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2807         (get_unallocated_leading_byte): Simply use
2808         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2809         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2810         UTF-2000.
2811
2812         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2813         (MAX_LEADING_BYTE_PRIVATE): New macro.
2814         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2815         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2816
2817 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2818
2819         * mule-charset.c (Fmake_charset): Allocate final-byte based
2820         charset-id for 94-set, 96-set and 94x94-set.
2821
2822 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2823
2824         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2825         ambiguous `else'.
2826         (Fmake_charset): Likewise.
2827         (complex_vars_of_mule_charset): Modify the font registry of
2828         `ucs-bmp' not to match `Ethiopic-Unicode'.
2829
2830 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2831
2832         * mule-charset.c (complex_vars_of_mule_charset): Add font
2833         registory of `ucs-bmp'.
2834
2835 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2836
2837         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2838         coded-charsets in `default-coded-charset-priority-list' when
2839         breaking up a character.
2840
2841         * mule-charset.c (Vcharset_latin_viscii): New variable.
2842         (Qlatin_viscii): New variable.
2843         (make_charset): Don't use `decoding_table'.
2844         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2845         byte_offset.
2846         (Fset_charset_mapping_table): New implementation.
2847         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2848         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2849         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2850         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2851         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2852         charset `latin_viscii'.
2853
2854         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2855         (CHARSET_TYPE_94X94): Change to 1 from 2.
2856         (CHARSET_TYPE_96): Change to 2 from 1.
2857         (CHARSET_TYPE_128): New macro.
2858         (CHARSET_TYPE_128X128): Change to 5 from 4.
2859         (CHARSET_TYPE_256): New macro.
2860         (CHARSET_TYPE_256X256): Change to 7 from 5.
2861         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2862
2863 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2864
2865         * text-coding.c (char_encode_shift_jis): Refer
2866         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2867         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2868
2869         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2870         (char_byte_table_equal): New function in UTF-2000.
2871         (char_byte_table_hash): New function in UTF-2000.
2872         (char_byte_table_description): New constant in UTF-2000.
2873         (char_byte_table): New type in UTF-2000.
2874         (make_char_byte_table): New function in UTF-2000.
2875         (copy_char_byte_table): New function in UTF-2000.
2876         (make_char_code_table): New macro in UTF-2000.
2877         (get_char_code_table): New function in UTF-2000.
2878         (put_char_code_table): New function in UTF-2000.
2879         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2880         (charset_description): Add setting in UTF-2000.
2881         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2882         `CHARSET_TO_BYTE1_TABLE(cs)'.
2883         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2884         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2885         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2886         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2887         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2888         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2889         `CHARSET_TO_BYTE2_TABLE(cs)'.
2890
2891         * char-ucs.h (char_byte_table): New type.
2892         (XCHAR_BYTE_TABLE): New macro.
2893         (XSETCHAR_BYTE_TABLE): New macro.
2894         (CHAR_BYTE_TABLE_P): New macro.
2895         (GC_CHAR_BYTE_TABLE_P): New macro.
2896         (struct Lisp_Char_Byte_Table): New structure.
2897         (get_char_code_table): New interface.
2898         (Emchar_to_byte_table): Deleted.
2899         (get_byte_from_character_table): Deleted.
2900         (struct Lisp_Charset): Add `encoding_table'; delete
2901         `to_byte1_table' and `to_byte2_table'.
2902         (CHARSET_ENCODING_TABLE): New macro.
2903         (CHARSET_TO_BYTE1_TABLE): Deleted.
2904         (CHARSET_TO_BYTE2_TABLE): Deleted.
2905         (XCHARSET_ENCODING_TABLE): New macro.
2906         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2907         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2908
2909 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2910
2911         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2912         `vietnamese-viscii-*'.
2913
2914 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2915
2916         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2917         (Qvietnamese_viscii_upper): New variable.
2918         (Fdefine_charset_alias): New function.
2919         (syms_of_mule_charset): Add new function `define-charset-alias'.
2920         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2921         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2922         `latin-viscii-*'.
2923
2924 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2925
2926         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2927         (MAX_CHAR_OBS_94x94): New macro.
2928         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2929         for 94x94 sets.
2930
2931         * mule-charset.c (put_byte_from_character_table): Change unit size
2932         from 128 to 256.
2933         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2934         not defined.
2935         (Fmake_reverse_direction_charset): Modify dummy argument of
2936         `make_charset' for non-UTF-2000 environment.
2937
2938 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2939
2940         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2941
2942         * mule-charset.c (destroy_byte_from_character_table): New macro.
2943         (latin_jisx0201_to_ucs): Deleted.
2944         (latin_iso8859_2_to_ucs): Deleted.
2945         (latin_iso8859_3_to_ucs): Deleted.
2946         (latin_iso8859_4_to_ucs): Deleted.
2947         (latin_iso8859_9_to_ucs): Deleted.
2948         (latin_viscii_lower_to_ucs): Deleted.
2949         (latin_viscii_upper_to_ucs): Deleted.
2950         (mark_charset): Mark `cs->decoding_table'.
2951         (Fcharset_mapping_table): Fix DOC-string.
2952         (Fset_charset_mapping_table): New function.
2953         (syms_of_mule_charset): Add nwe function
2954         `set-charset-mapping-table'.
2955         (complex_vars_of_mule_charset): Don't setup and use
2956         `latin_*_to_ucs'.
2957
2958 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2959
2960         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2961         charset.
2962
2963 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2964
2965         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2966         (Vcharset_katakana_jisx0208): New variable.
2967         (Qhiragana_jisx0208): New variable.
2968         (Qkatakana_jisx0208): New variable.
2969         (make_charset): Add new argument `byte_offset'.
2970         (charset_get_byte1): Modify for new coded-charset definition; use
2971         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2972         `XCHARSET_BYTE_OFFSET'.
2973         (Fmake_charset): Modify for `make_charset'.
2974         (Fmake_reverse_direction_charset): Likewise.
2975         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2976         `katakana-jisx0208'.
2977         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2978         `.'  in font registry of charset `katakana-jisx0201',
2979         `latin-jisx0201', `vietnamese-viscii-lower' and
2980         `vietnamese-viscii-upper'; modify DOC-string of charset
2981         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2982         registry of charset `japanese-jisx0208' not to use font for JIS
2983         X0208:1990; add new charset `hiragana-jisx0208' and
2984         `katakana-jisx0208'.
2985
2986         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2987         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2988         (struct Lisp_Charset): Add `byte_offset'.
2989         (CHARSET_BYTE_OFFSET): New macro.
2990         (XCHARSET_UCS_MIN): New macro.
2991         (XCHARSET_UCS_MAX): New macro.
2992         (XCHARSET_CODE_OFFSET): New macro.
2993         (XCHARSET_BYTE_OFFSET): New macro.
2994         (MIN_CHAR_HIRAGANA): New macro.
2995         (MAX_CHAR_HIRAGANA): New macro.
2996         (MIN_CHAR_KATAKANA): New macro.
2997         (MAX_CHAR_KATAKANA): New macro.
2998         (MAKE_CHAR): Modify for new coded-charset definition; use
2999         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3000         `XCHARSET_BYTE_OFFSET'.
3001
3002 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3003
3004         * mule-charset.c (CHAR96): Deleted.
3005         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3006         <Lisp_Object>.
3007         (latin_iso8859_2_to_ucs): Likewise.
3008         (latin_iso8859_3_to_ucs): Likewise.
3009         (latin_iso8859_4_to_ucs): Likewise.
3010         (latin_iso8859_9_to_ucs): Likewise.
3011         (latin_viscii_lower_to_ucs): Likewise.
3012         (latin_viscii_upper_to_ucs): Likewise.
3013         (latin_tcvn5712_to_ucs): Commented out.
3014         (make_charset): Change type of argument `decoding_table' from
3015         <Emchar*> to <Lisp_Object> [vector of characters].
3016         (Fmake_charset): Modify for `make_charset'.
3017         (Fmake_reverse_direction_charset): Likewise.
3018         (Fcharset_mapping_table): New function in UTF-2000.
3019         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3020         UTF-2000.
3021         (complex_vars_of_mule_charset): Modify for type change of
3022         `*_to_ucs'; modify for `make_charset'.
3023
3024         * char-ucs.h (struct Lisp_Charset): Change type of
3025         `decoding_table' from <Emchar*> to <Lisp_Object>.
3026         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3027
3028 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3029
3030         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3031         error with non-UTF-2000-Mule.
3032
3033 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3034
3035         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3036         in lisp again].
3037         (Vcharset_chinese_cns11643_4): Likewise.
3038         (Vcharset_chinese_cns11643_5): Likewise.
3039         (Vcharset_chinese_cns11643_6): Likewise.
3040         (Vcharset_chinese_cns11643_7): Likewise.
3041         (Qchinese_cns11643_3): Likewise.
3042         (Qchinese_cns11643_4): Likewise.
3043         (Qchinese_cns11643_5): Likewise.
3044         (Qchinese_cns11643_6): Likewise.
3045         (Qchinese_cns11643_7): Likewise.
3046         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3047         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3048         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3049         (complex_vars_of_mule_charset): Likewise.
3050
3051 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3052
3053         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3054         96-set.
3055         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3056         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3057
3058 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3059
3060         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3061         0xFF60.
3062         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3063         (breakup_char_1): Likewise.
3064
3065         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3066         one of them includes the specified character.
3067
3068 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3069
3070         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3071
3072 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3073
3074         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3075
3076 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3077
3078         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3079         definition for non-UTF-2000 Mule.
3080         (latin_iso8859_3_to_ucs): Likewise.
3081         (latin_iso8859_4_to_ucs): Likewise.
3082         (latin_iso8859_9_to_ucs): Likewise.
3083         (latin_jisx0201_to_ucs): Likewise.
3084         (MIN_CHAR_THAI): Likewise.
3085         (MAX_CHAR_THAI): Likewise.
3086         (MIN_CHAR_GREEK): Likewise.
3087         (MAX_CHAR_GREEK): Likewise.
3088         (MIN_CHAR_HEBREW): Likewise.
3089         (MAX_CHAR_HEBREW): Likewise.
3090         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3091         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3092         (MIN_CHAR_CYRILLIC): Likewise.
3093         (MAX_CHAR_CYRILLIC): Likewise.
3094
3095 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3096
3097         * char-ucs.h (breakup_char_1): Use
3098         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3099         thai-tis620 and katakana-jisx0201 area.
3100
3101 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3102
3103         * char-ucs.h (breakup_char_1): Use
3104         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3105         area.
3106
3107         * text-coding.c (reset_encoding_stream): Fixed.
3108         (char_encode_ucs4): Delete `& 255'.
3109
3110         * char-ucs.h (breakup_char_1): Use
3111         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3112
3113 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3114
3115         * file-coding.c (Fmake_coding_system): Don't set up
3116         `codesys->fixed.size'.
3117         (encode_coding_no_conversion): Don't refer
3118         `str->codesys->fixed.size'.
3119
3120 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3121
3122         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3123         (latin_a_char_to_byte1): Deleted.
3124         (latin_a_char_to_byte2): Deleted.
3125
3126 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3127
3128         * mule-charset.c (make_charset): Add new argument `ucs_min',
3129         `ucs_max' and `code_offset'.
3130         (charset_get_byte1): New implementation [delete specific charset
3131         depended implementations].
3132         (Fmake_charset): Modify for `make_charset'.
3133         (Fmake_reverse_direction_charset): Likewise.
3134         (complex_vars_of_mule_charset): Likewise.
3135
3136         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3137         `code_offset'.
3138         (CHARSET_UCS_MIN): New macro.
3139         (CHARSET_UCS_MAX): New macro.
3140         (CHARSET_CODE_OFFSET): New macro.
3141         (MAKE_CHAR): Delete charset depended definitions [except
3142         katakana-jisx0201].
3143
3144 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3145
3146         * char-ucs.h (breakup_char_1): Use
3147         `Vdefault_coded_charset_priority_list' for C0-Controls,
3148         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3149
3150 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3151
3152         * char-ucs.h (charset_get_byte1): New function.
3153         (XCHARSET_GET_BYTE1): Deleted.
3154         (charset_get_byte2): New function.
3155         (XCHARSET_GET_BYTE2): Deleted.
3156         (Vdefault_coded_charset_priority_list): New external variable.
3157         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3158         `Vdefault_preferred_coded_charset_list'.
3159
3160         * mule-charset.c (charset_get_byte1): New function.
3161         (charset_get_byte2): New function.
3162         (Vdefault_coded_charset_priority_list): New variable.
3163         (vars_of_mule_charset): Add new variable
3164         `default-coded-charset-priority-list'.
3165
3166 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3167
3168         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3169         (XCHARSET_GET_BYTE2): New inline function.
3170         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3171         `XCHARSET_GET_BYTE2'.
3172
3173 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3174
3175         * mule-charset.c (make_charset): Initialize
3176         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3177         NULL if table is not defined.
3178
3179 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3180
3181         * text-coding.c (char_encode_shift_jis): Use
3182         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3183         `ucs_to_latin_jisx0201'.
3184
3185         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3186         (ucs_to_latin_iso8859_2): Deleted.
3187         (ucs_to_latin_iso8859_3): Deleted.
3188         (ucs_to_latin_iso8859_4): Deleted.
3189         (ucs_to_latin_iso8859_9): Deleted.
3190         (ucs_to_latin_viscii_lower): Deleted.
3191         (ucs_to_latin_viscii_upper): Deleted.
3192         (ucs_to_latin_tcvn5712): Deleted.
3193         (make_charset): Add new argument `decoding_table'; set up
3194         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3195         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3196         `decoding_table' is defined in UTF-2000.
3197         (Fmake_charset): Modify for `make_charset'.
3198         (Fmake_reverse_direction_charset): Likewise.
3199         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3200         and `GENERATE_96_SET'.
3201
3202         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3203         (ucs_to_latin_jisx0201): Deleted.
3204         (latin_iso8859_2_to_ucs): Deleted.
3205         (ucs_to_latin_iso8859_2): Deleted.
3206         (latin_iso8859_3_to_ucs): Deleted.
3207         (ucs_to_latin_iso8859_3): Deleted.
3208         (latin_iso8859_4_to_ucs): Deleted.
3209         (ucs_to_latin_iso8859_4): Deleted.
3210         (latin_iso8859_9_to_ucs): Deleted.
3211         (ucs_to_latin_iso8859_9): Deleted.
3212         (latin_viscii_lower_to_ucs): Deleted.
3213         (ucs_to_latin_viscii_lower): Deleted.
3214         (latin_viscii_upper_to_ucs): Deleted.
3215         (ucs_to_latin_viscii_upper): Deleted.
3216         (struct Lisp_Charset): Renamed `encoding_table' to
3217         `to_byte1_table'; add `to_byte2_table'.
3218         (CHARSET_DECODING_TABLE): New macro.
3219         (CHARSET_TO_BYTE1_TABLE): New macro.
3220         (CHARSET_TO_BYTE2_TABLE): New macro.
3221         (XCHARSET_DECODING_TABLE): New macro.
3222         (XCHARSET_TO_BYTE1_TABLE): New macro.
3223         (XCHARSET_TO_BYTE2_TABLE): New macro.
3224         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3225         tables.
3226         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3227         don't use `ucs_to_*' tables.
3228
3229 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3230
3231         * text-coding.c (Fmake_coding_system): Don't set up
3232         `codesys->fixed.size'.
3233         (encode_coding_no_conversion): Use `if' instead of `switch'.
3234
3235         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3236
3237 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3238
3239         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3240         (Fmake_charset): Modify for `make_charset'.
3241         (Fmake_reverse_direction_charset): Likewise.
3242         (complex_vars_of_mule_charset): Likewise.
3243
3244 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3245
3246         * text-coding.c (char_encode_shift_jis): Use table
3247         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3248
3249 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3250
3251         * text-coding.c (text_encode_generic): Use `if' instead of
3252         `switch'.
3253         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3254         decode JIS-Latin.
3255
3256 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3257
3258         * text-coding.c (encode_coding_sjis): Deleted.
3259         (char_encode_shift_jis): New function.
3260         (char_finish_shift_jis): New function.
3261         (reset_encoding_stream): Set up `encode_char' and `finish' for
3262         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3263         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3264         (char_encode_utf8): Treat `eol_type'.
3265
3266 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3267
3268         * file-coding.c (decode_coding_iso2022): Use
3269         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3270
3271 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3272
3273         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3274         to 0.7 (Hirano).
3275
3276 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3277
3278         * char-lb.h (CHAR_COLUMNS): New macro.
3279
3280 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3281
3282         * text-coding.c (char_encode_ucs4): New function.
3283         (char_finish_ucs4): New function.
3284         (encode_coding_ucs4): Deleted.
3285         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3286         (text_encode_generic): Delete local variable `charset' and `half'.
3287         (ucs_to_mule_table): Deleted.
3288         (mule_to_ucs_table): Deleted.
3289         (Fset_ucs_char): Deleted.
3290         (ucs_to_char): Deleted.
3291         (Fucs_char): Deleted.
3292         (Fset_char_ucs): Deleted.
3293         (Fchar_ucs): Deleted.
3294         (decode_ucs4): Deleted.
3295         (mule_char_to_ucs4): Deleted.
3296         (encode_ucs4): Deleted.
3297         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3298         (decode_coding_utf8): Likewise.
3299         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3300         (char_encode_iso2022): Fixed.
3301         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3302         `Fset_char_ucs' and `Fchar_ucs'.
3303         (complex_vars_of_file_coding): Don't initialize
3304         `ucs_to_mule_table'.
3305
3306         * objects-tty.c (tty_initialize_font_instance): Don't use
3307         `XCHARSET_COLUMNS'.
3308
3309         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3310         UTF-2000.
3311
3312         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3313         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3314
3315         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3316         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3317         (emchar_string_displayed_columns): Likewise.
3318
3319         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3320         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3321         (string_column_at_point): Likewise.
3322         (Fmove_to_column): Likewise.
3323
3324         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3325         `encoding_table' and `decoding_table'.
3326         (CHARSET_REP_BYTES): Deleted.
3327         (XCHARSET_REP_BYTES): Deleted.
3328         (XCHARSET_COLUMNS): Deleted.
3329         (CHAR_COLUMNS): New macro.
3330         (lookup_composite_char): Deleted unconditionally.
3331         (composite_char_string): Likewise.
3332
3333 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3334
3335         * char-ucs.h (Emchar_to_byte_table): New type.
3336         (get_byte_from_character_table): New function interface.
3337         (Vcharset_latin_jisx0201): New variable.
3338         (latin_jisx0201_to_ucs): New variable.
3339         (ucs_to_latin_jisx0201): New variable.
3340         (Vcharset_latin_iso8859_2): New variable.
3341         (latin_iso8859_2_to_ucs): New variable.
3342         (ucs_to_latin_iso8859_2): New variable.
3343         (Vcharset_latin_iso8859_3): New variable.
3344         (latin_iso8859_3_to_ucs): New variable.
3345         (ucs_to_latin_iso8859_3): New variable.
3346         (Vcharset_latin_iso8859_4): New variable.
3347         (latin_iso8859_4_to_ucs): New variable.
3348         (ucs_to_latin_iso8859_4): New variable.
3349         (Vcharset_latin_iso8859_9): New variable.
3350         (latin_iso8859_9_to_ucs): New variable.
3351         (ucs_to_latin_iso8859_9): New variable.
3352         (Vcharset_latin_viscii_lower): New variable.
3353         (latin_viscii_lower_to_ucs): New variable.
3354         (ucs_to_latin_viscii_lower): New variable.
3355         (Vcharset_latin_viscii_upper): New variable.
3356         (latin_viscii_upper_to_ucs): New variable.
3357         (ucs_to_latin_viscii_upper): New variable.
3358         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3359         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3360         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3361         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3362         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3363         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3364         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3365         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3366         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3367         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3368
3369         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3370         (Vcharset_latin_viscii_upper): New variable.
3371         (make_byte_from_character_table): New function.
3372         (put_byte_from_character_table): New function.
3373         (get_byte_from_character_table): New function.
3374         (CHAR96): New macro.
3375         (ucs_to_latin_jisx0201): New variable.
3376         (latin_jisx0201_to_ucs): New variable.
3377         (ucs_to_latin_iso8859_2): New variable.
3378         (latin_iso8859_2_to_ucs): New variable.
3379         (ucs_to_latin_iso8859_3): New variable.
3380         (latin_iso8859_3_to_ucs): New variable.
3381         (ucs_to_latin_iso8859_4): New variable.
3382         (latin_iso8859_4_to_ucs): New variable.
3383         (ucs_to_latin_iso8859_9): New variable.
3384         (latin_iso8859_9_to_ucs): New variable.
3385         (ucs_to_latin_viscii_lower): New variable.
3386         (latin_viscii_lower_to_ucs): New variable.
3387         (ucs_to_latin_viscii_upper): New variable.
3388         (latin_viscii_upper_to_ucs): New variable.
3389         (ucs_to_latin_tcvn5712): New variable.
3390         (latin_tcvn5712_to_ucs): New variable.
3391         (Qlatin_viscii_lower): New variable.
3392         (Qlatin_viscii_upper): New variable.
3393         (syms_of_mule_charset): Set up new symbol
3394         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3395         (complex_vars_of_mule_charset): Set up new charset
3396         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3397         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3398         `ucs_to_<CHARSET>' tables.
3399
3400 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3401
3402         * text-coding.c: New file.
3403
3404 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3405
3406         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3407
3408         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3409         (MAKE_CHAR): Modify for `ucs-bmp'.
3410         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3411         non-MULE characters of BMP.
3412
3413 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3414
3415         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3416         to 0.6.
3417
3418 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3419
3420         * lstream.h:
3421         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3422         - Include character.h for `CHAR_ASCII_P'.
3423
3424         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3425
3426         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3427         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3428
3429         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3430         (BYTE_C0_P): Likewise.
3431         (BYTE_C1_P): Likewise.
3432         (Lstream_get_emchar_1): Likewise.
3433         (Lstream_fput_emchar): Likewise.
3434         (Lstream_funget_emchar): Likewise.
3435         (copy_internal_to_external): Likewise.
3436         (copy_external_to_internal): Likewise.
3437
3438         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3439         (BYTE_C0_P): Likewise.
3440         (BYTE_C1_P): Likewise.
3441         (Lstream_get_emchar_1): Likewise.
3442         (Lstream_fput_emchar): Likewise.
3443         (Lstream_funget_emchar): Likewise.
3444         (copy_internal_to_external): Likewise.
3445         (copy_external_to_internal): Likewise.
3446
3447         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3448         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3449
3450         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3451         (BYTE_ASCII_P): Moved to mb-1byte.h.
3452
3453 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3454
3455         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3456
3457         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3458         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3459         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3460         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3461         (VALIDATE_CHARPTR_FORWARD): Likewise.
3462         (simple_charptr_emchar): Moved to mb-multibyte.h.
3463         (simple_set_charptr_emchar): Likewise.
3464         (simple_charptr_copy_char): Likewise.
3465         (non_ascii_charptr_emchar): Likewise.
3466         (non_ascii_set_charptr_emchar): Likewise.
3467         (non_ascii_charptr_copy_char): Likewise.
3468         (charptr_emchar): Moved to mb-*byte.h.
3469         (set_charptr_emchar): Likewise.
3470         (charptr_copy_char): Likewise.
3471
3472         * mb-1byte.h, mb-multibyte.h: New files.
3473
3474 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3475
3476         * mb-utf-8.h (MULTIBYTE): New macro.
3477         (MAX_EMCHAR_LEN): Moved from buffer.h.
3478         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3479
3480         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3481
3482         * mb-lb.h, multibyte.h: New files.
3483
3484         * char-1byte.h (Charset_ID): Moved from buffer.h.
3485         (MIN_LEADING_BYTE): Likewise.
3486         (LEADING_BYTE_ASCII): Likewise.
3487         (NUM_LEADING_BYTES): Likewise.
3488         (CHARSETP): Likewise.
3489         (CHARSET_BY_LEADING_BYTE): Likewise.
3490         (XCHARSET_LEADING_BYTE): Likewise.
3491         (XCHARSET_GRAPHIC): Likewise.
3492         (XCHARSET_COLUMNS): Likewise.
3493         (XCHARSET_DIMENSION): Likewise.
3494         (CHAR_CHARSET): Likewise.
3495         (CHAR_LEADING_BYTE): Likewise.
3496         (BREAKUP_CHAR): Likewise.
3497         (Vcharset_ascii): Likewise.
3498
3499         * buffer.h: Include multibyte.h unconditionally.
3500         (VALID_CHARPTR_P): Moved to multibyte.h.
3501         (ASSERT_VALID_CHARPTR): Likewise.
3502         (REAL_INC_CHARPTR): Likewise.
3503         (REAL_INC_CHARBYTIND): Likewise.
3504         (REAL_DEC_CHARPTR): Likewise.
3505         (INC_CHARPTR): Likewise.
3506         (INC_CHARBYTIND): Likewise.
3507         (DEC_CHARPTR): Likewise.
3508         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3509         (VALIDATE_CHARPTR_FORWARD): Likewise.
3510         (charptr_n_addr): Likewise.
3511         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3512         (simple_charptr_emchar): Moved to multibyte.h.
3513         (simple_set_charptr_emchar): Likewise.
3514         (simple_charptr_copy_char): Likewise.
3515         (non_ascii_charptr_emchar): Likewise.
3516         (non_ascii_set_charptr_emchar): Likewise.
3517         (non_ascii_charptr_copy_char): Likewise.
3518         (charptr_emchar): Likewise.
3519         (set_charptr_emchar): Likewise.
3520         (charptr_copy_char): Likewise.
3521         (charptr_emchar_n): Likewise.
3522         (Charset_ID): Moved to char-1byte.h.
3523         (Vcharset_ascii): Likewise.
3524         (CHAR_CHARSET): Likewise.
3525         (CHAR_LEADING_BYTE): Likewise.
3526         (LEADING_BYTE_ASCII): Likewise.
3527         (NUM_LEADING_BYTES): Likewise.
3528         (MIN_LEADING_BYTE): Likewise.
3529         (CHARSETP): Likewise.
3530         (CHARSET_BY_LEADING_BYTE): Likewise.
3531         (XCHARSET_LEADING_BYTE): Likewise.
3532         (XCHARSET_GRAPHIC): Likewise.
3533         (XCHARSET_COLUMNS): Likewise.
3534         (XCHARSET_DIMENSION): Likewise.
3535         (BREAKUP_CHAR): Likewise.
3536
3537 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3538
3539         * character.h: Add document about interface for characters.
3540
3541         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3542         (MAKE_CHAR): Delete comment about
3543         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3544         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3545         (BREAKUP_CHAR): Modify name of arguments.
3546         (CHAR_CHARSET): Modify name of argument.
3547
3548         * buffer.h: Delete document about Emchar accessors.
3549
3550 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3551
3552         * character.h (CHAR_INTP): Moved from buffer.h
3553         (CHAR_OR_CHAR_INTP): Likewise.
3554         (XCHAR_OR_CHAR_INT): Likewise.
3555         (CHECK_CHAR_COERCE_INT): Likewise.
3556
3557         * buffer.h (CHAR_INTP): Moved to character.h
3558         (CHAR_OR_CHAR_INTP): Likewise.
3559         (XCHAR_OR_CHAR_INT): Likewise.
3560         (CHECK_CHAR_COERCE_INT): Likewise.
3561
3562 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3563
3564         * character.h:
3565         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3566         - Include char-1byte.h, char-lb.h or char-ucs.h.
3567
3568         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3569
3570         * buffer.h: Include character unconditionally.
3571         (valid_char_p): Moved to char-*.h.
3572         (non_ascii_valid_char_p): Moved to char-lb.h.
3573
3574         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3575
3576 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3577
3578         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3579         in UTF-2000 because it is not ported yet and not to use
3580         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3581         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3582         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3583
3584         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3585         (CHAR_ASCII_P): Moved from character.h.
3586
3587         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3588         (CHAR_ASCII_P): Likewise.
3589         (CHAR_FIELD1_MASK): Deleted.
3590         (CHAR_FIELD2_MASK): Deleted.
3591         (CHAR_FIELD3_MASK): Deleted.
3592         (MAX_CHAR_BASIC_LATIN): New macro.
3593         (CHAR_FIELD1): Deleted.
3594         (CHAR_FIELD2_INTERNAL): Deleted.
3595         (CHAR_FIELD3_INTERNAL): Deleted.
3596         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3597         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3598         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3599         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3600         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3601         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3602         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3603         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3604         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3605         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3606         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3607         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3608         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3609         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3610         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3611         (MIN_CHAR_COMPOSITION): Deleted.
3612         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3613         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3614
3615 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3616
3617         * buffer.h: Include mb-utf-8.h in UTF-2000.
3618
3619         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3620
3621         * mb-utf-8.h: New file.
3622
3623 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3624
3625         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3626         instead of `int'.
3627
3628         * mule-charset.h, buffer.h (Charset_ID): New type.
3629
3630 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3631
3632         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3633         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3634         instead of `MULE_CHAR_PRIVATE_OFFSET',
3635         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3636         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3637         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3638
3639         * character.h (Vcharset_japanese_jisx0212): New variable
3640         definition.
3641
3642 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3643
3644         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3645         (charset_by_attributes): Delete array about direction.
3646         (latin_a_char_to_charset): New variable in UTF-2000.
3647         (latin_a_char_to_byte1): New variable in UTF-2000.
3648         (latin_a_char_to_byte2): New variable in UTF-2000.
3649         (Qucs_bmp): New variable.
3650         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3651         `Bufbyte'.
3652         (next_allocated_2_byte_leading_byte): Likewise.
3653         (non_ascii_set_charptr_emchar): Likewise.
3654         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3655         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3656         `charset_by_attributes'.
3657         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3658         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3659         and `CHARSET_BY_LEADING_BYTE'.
3660         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3661         `utf-2000-version' to `vars_of_mule_charset'.
3662         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3663         define `leading-code-private-11' in UTF-2000; move setting of
3664         `utf-2000-version' from `syms_of_mule_charset'.
3665         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3666         UTF-2000.
3667
3668         * character.h (Charset_ID): New type.
3669         (LEADING_BYTE_UCS_BMP): New macro.
3670         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3671         (CHARSET_ID_OFFSET_94): New macro.
3672         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3673         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3674         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3675         final-byte.
3676         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3677         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3678         (CHARSET_ID_OFFSET_96): New macro.
3679         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3680         CHARSET_ID_OFFSET_96 and final-byte.
3681         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3682         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3683         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3684         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3685         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3686         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3687         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3688         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3689         (LEADING_BYTE_THAI_TIS620): Likewise.
3690         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3691         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3692         (CHARSET_ID_OFFSET_94x94): New macro.
3693         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3694         CHARSET_ID_OFFSET_94x94 and final-byte.
3695         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3696         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3697         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3698         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3699         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3700         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3701         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3702         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3703         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3704         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3705         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3706         (CHARSET_TYPE_128X128): New macro.
3707         (CHARSET_TYPE_256X256): New macro.
3708         (XCHARSET_PRIVATE_P): Delete unconditionally.
3709         (charset_by_attributes): Delete array about direction.
3710         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3711         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3712         (MIN_CHAR_94): New macro.
3713         (MAX_CHAR_94): New macro.
3714         (MIN_CHAR_96): New macro.
3715         (MAX_CHAR_96): New macro.
3716         (MIN_CHAR_94x94): New macro.
3717         (MAX_CHAR_94x94): New macro.
3718         (MIN_CHAR_96x96): New macro.
3719         (MAX_CHAR_96x96): New macro.
3720         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3721         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3722         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3723         - 32)'.
3724         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3725         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3726         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3727         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3728         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3729         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3730         `XCHARSET_LEADING_BYTE' to make code-point.
3731         (latin_a_char_to_charset): New variable.
3732         (latin_a_char_to_byte1): New variable.
3733         (latin_a_char_to_byte2): New variable.
3734         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3735         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3736         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3737
3738         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3739         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3740         (find_charsets_in_emchar_string): Likewise.
3741         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3742
3743         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3744         `int'.
3745         (decode_coding_iso2022): Likewise.
3746
3747         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3748         of `unsigned char'.
3749
3750         * redisplay.c (redisplay_text_width_emchar_string): Use
3751         `Charset_ID' instead of `unsigned char'.
3752         (redisplay_frame_text_width_string): Likewise.
3753
3754         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3755         `unsigned char'.
3756
3757         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3758         instead of `unsigned char'.
3759         (face_cachel_charset_font_metric_info): Likewise.
3760
3761         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3762         (get_non_ascii_char_table_value): Likewise.
3763         (get_char_table): Likewise.
3764         (put_char_table): Likewise.
3765         (map_over_other_charset): Likewise.
3766         (map_char_table): Likewise.
3767
3768         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3769         instead of `unsigned char'.
3770
3771 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3772
3773         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3774         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3775
3776         * mule-charset.c (leading_code_private_11): Don't define in
3777         UTF-2000.
3778
3779         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3780         in UTF-2000 because it is not ported yet and not to use
3781         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3782
3783 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3784
3785         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3786
3787 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3788
3789         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3790         in UTF-2000.
3791
3792         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3793         of unsigned char to store leading-byte.
3794
3795         * chartab.c (get_non_ascii_char_table_value): Don't use
3796         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3797
3798         * file-coding.c (encode_coding_big5): Delete bogus implementation
3799         in UTF2000.
3800
3801         * character.h (LEADING_BYTE_*): Delete definition for
3802         non-UTF-2000.
3803         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3804         (LEADING_BYTE_PREFIX_P): Deleted.
3805         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3806         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3807         (BUFBYTE_LEADING_BYTE_P): Deleted.
3808         (CHARSET_PRIVATE_P): Deleted unconditionally.
3809         (rep_bytes_by_first_byte): Deleted unconditionally.
3810         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3811         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3812         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3813         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3814         (CHAR_FIELD2): Deleted.
3815         (CHAR_FIELD3): Deleted.
3816         (MAKE_CHAR): Delete definition for non-UTF-2000.
3817         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3818         (breakup_char_1): New implementation.
3819         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3820         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3821
3822 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3823
3824         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3825         condition.
3826
3827 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3828
3829         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3830         (CHARSET_PRIVATE_P): Likewise.
3831         (XCHARSET_PRIVATE_P): Likewise.
3832         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3833
3834         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3835         UTF2000.
3836         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3837
3838 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3839
3840         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3841         (NUM_LEADING_BYTES): Changed from 128 to 256.
3842         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3843         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3844         UTF2000.
3845         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3846
3847         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3848         UTF2000.
3849         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3850         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3851         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3852         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3853         (Qchinese_cns11643_3): New variable in UTF2000.
3854         (Qchinese_cns11643_4): New variable in UTF2000.
3855         (Qchinese_cns11643_5): New variable in UTF2000.
3856         (Qchinese_cns11643_6): New variable in UTF2000.
3857         (Qchinese_cns11643_7): New variable in UTF2000.
3858         (syms_of_mule_charset): Define `chinese-cns11643-3',
3859         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3860         and `chinese-cns11643-7' in UTF2000.
3861         (vars_of_mule_charset): Initialize
3862         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3863         + 1 in UTF2000.
3864         (complex_vars_of_mule_charset): Setup charset
3865         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3866         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3867
3868 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3869
3870         * mule-charset.c: Move setting for `leading-code-private-11' from
3871         `syms_of_mule_charset' to `vars_of_mule_charset'.
3872
3873 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3874
3875         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3876         and `NUM_LEADING_BYTES' in assert.
3877
3878 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3879
3880         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3881         instead of 128.
3882         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3883         `NUM_LEADING_BYTES' instead of 128.
3884
3885 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3886
3887         * mule-charset.h (charset_by_leading_byte): Use
3888         `NUM_LEADING_BYTES' instead of 128.
3889         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3890
3891         * mule-charset.c (charset_by_leading_byte): Use
3892         `NUM_LEADING_BYTES' instead of 128.
3893         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3894
3895         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3896         128.
3897
3898 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3899
3900         * mule-charset.c (syms_of_mule_charset): Update to
3901         0.4 (Shin-Imamiya).
3902
3903 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3904
3905         * file-coding.c (encode_coding_sjis): New implementation for
3906         UTF2000.  (decode_coding_sjis): Ditto.
3907
3908 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3909
3910         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3911         Don't define in UTF2000.
3912
3913         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3914         defined.
3915
3916         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3917         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3918         MULE.
3919
3920 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3921
3922         * config.h.in (CHAR_IS_UCS4): New macro.
3923
3924         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3925         conventional MULE representation.
3926         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3927
3928         * mule-charset.h: Reverted to original.
3929
3930         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3931         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3932         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3933
3934         * character.h: New file.
3935
3936         * file-coding.c (Fmake_coding_system): Set 1 to
3937         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3938         defined.
3939         (encode_coding_no_conversion): New implementation for UTF2000.
3940
3941         * file-coding.h (struct Lisp_Coding_System): Add new member
3942         `fixed.size'.
3943
3944 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3945
3946         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3947         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3948         (encode_coding_iso2022): New implementation for UTF2000.
3949
3950 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3951
3952         * mule-canna.c (c2mu): New implementation for UTF2000.
3953         (m2c): Likewise.
3954
3955 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3956
3957         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3958
3959 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3960
3961         * file-coding.c (reset_encoding_stream): Set 0 to
3962         `str->iso2022.current_char_boundary' in UTF2000.
3963         (encode_utf8): Don't define in UTF2000.
3964         (encode_coding_utf8): New implementation for UTF-8 representation
3965         of UTF2000.
3966         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3967
3968 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3969
3970         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3971
3972         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3973         UTF2000.
3974         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3975
3976         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3977
3978         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3979         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3980         as UTF-8 in UTF2000.
3981         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3982         (non_ascii_valid_char_p): Don't define in UTF2000.
3983         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3984         (Lstream_get_emchar_1): Likewise.
3985         (utf-2000-version): New variable in UTF2000.
3986
3987         * lread.c (read_escape): Add new reader `u'.
3988
3989         * insdel.c (three_to_one_table): Don't define in UTF2000.
3990         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3991         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3992         UTF2000.
3993         (bytind_to_bufpos_func): Likewise.
3994         (buffer_mule_signal_inserted_region): Likewise.
3995         (vars_of_insdel): Don't initialize `three_to_one_table'.
3996         (init_buffer_text): Use `buf->text->mule_size' instead of
3997         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3998         UTF2000.
3999
4000         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4001         UTF-8 representation in UTF2000.
4002         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4003         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4004         (decode_coding_iso2022): Don't define local variable `lb' in
4005         UTF2000; don't use LEADING_BYTE in UTF2000; use
4006         `DECODE_ADD_UCS_CHAR' in UTF2000.
4007         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4008
4009         * config.h.in (UTF2000): New macro.
4010
4011         * buffer.h (struct buffer_text): Add new member `mule_size' and
4012         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4013         (valid_char_p): Return always 1 in UTF2000.
4014         (MAX_EMCHAR_LEN): 6 in UTF2000.
4015         (three_to_one_table): Don't define in UTF2000.
4016         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4017         UTF2000.
4018         (real_bytind_to_bufpos): Likewise.
4019
4020         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4021
4022 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4023
4024         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4025         representation change.
4026         (Vutf_2000_version): New variable.
4027         (leading_code_private_11): New variable.
4028         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4029         `leading-code-private-11'.
4030
4031         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4032         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4033         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4034         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4035         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4036         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4037         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4038         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4039         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4040         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4041         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4042         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4043         (MIN_CHAR_GREEK): New macro.
4044         (MAX_CHAR_GREEK): New macro.
4045         (MIN_CHAR_CYRILLIC): New macro.
4046         (MAX_CHAR_CYRILLIC): New macro.
4047         (MIN_CHAR_HEBREW): New macro.
4048         (MAX_CHAR_HEBREW): New macro.
4049         (MIN_CHAR_THAI): New macro.
4050         (MAX_CHAR_THAI): New macro.
4051         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4052         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4053         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4054         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4055         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4056         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4057         (CHAR_FIELD2): New inline function.
4058         (CHAR_FIELD3): New inline function.
4059         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4060         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4061         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4062         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4063         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4064         (MIN_CHAR_COMPOSITION): Likewise.
4065         (CHAR_LEADING_BYTE): Modified for character representation change.
4066         (MAKE_CHAR): Likewise.
4067
4068         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4069         (Vcharset_greek_iso8859_7): Likewise.
4070         (Vcharset_cyrillic_iso8859_5): Likewise.
4071         (Vcharset_hebrew_iso8859_8): Likewise.
4072         (Vcharset_thai_tis620): Likewise.
4073         (Vcharset_katakana_jisx0201): Likewise.
4074
4075 2001-02-08  Martin Buchholz <martin@xemacs.org>
4076
4077         * XEmacs 21.2.44 "Thalia" is released.
4078
4079 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4080
4081         Fixes crashes in kill-emacs on some systems.
4082         * process-unix.c (unix_kill_child_process):
4083         It's OK for kill() to fail with ESRCH.
4084
4085 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4086
4087         Contortions to make .gdbinit tricks work on most systems.
4088         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4089         * alloc.c (dbg_valmask): Make non-const.
4090         * alloc.c (dbg_typemask): Make non-const.
4091         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4092         * alloc.c (dbg_valbits): Make non-const.
4093         * alloc.c (dbg_gctypebits): Make non-const.
4094         * .gdbinit (decode_object): Make it work with AIX cc.
4095
4096 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4097
4098         * elhash.c (make_general_lisp_hash_table):
4099         Use simpler and more efficient calloc to clear entries.
4100
4101 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4102
4103         * window.c (window_scroll): Work around an AIX C compiler bug.
4104         Fixes 'scroll-up' does nothing problem with xlC.
4105
4106 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4107
4108         * .gdbinit: Remove obsolete comment.
4109
4110 2001-01-31  Mike Alexander  <mta@arbortext.com>
4111
4112         * select.c (Fown_selection_internal): Set owned_p for device
4113         method correctly.
4114
4115 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4116
4117         Port to g++ 2.97.
4118         "not" cannot be used as a macro name as it is an operator in C++
4119         * config.h.in: Stop #defining `not'.
4120         * chartab.c (check_category_char): not ==> not_p
4121         * chartab.h: Likewise.
4122         * regex.c (re_match_2_internal): Likewise.
4123
4124 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4125
4126         * lisp-disunion.h: Fix up comments.
4127
4128 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4129
4130         * keymap.c (define_key_check_and_coerce_keysym):
4131         (syms_of_keymap):
4132         Support mouse-6 and mouse-7 bindings in the obvious way.
4133
4134 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4135
4136         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4137
4138 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4139
4140         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4141         Previous patch missed DEFVAR_INT_MAGIC.
4142         Make sure future DEFVAR_foo use correct types.
4143         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4144         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4145         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4146         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4147         * (DEFVAR_INT): Likewise.
4148         * redisplay.c (vertical_clip): Should be of type Fixnum.
4149         * redisplay.c (horizontal_clip): Likewise.
4150         * lisp.h (dump_add_opaque_int): New.
4151         (dump_add_opaque_fixnum): New.
4152
4153 2001-01-29  Andy Piper  <andy@xemacs.org>
4154
4155         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4156         since they can be eval'ed
4157
4158 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4159
4160         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4161         Oops, XEmacs redefines `class'.  Use `typename' instead.
4162
4163 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4164
4165         * dumper.c: Fix C++ compile errors.
4166
4167 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4168
4169         * tparam.c: Use correct prototypes.
4170
4171 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4172
4173         * sysproc.h: #include util.h for NetBSD's openpty.
4174
4175 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4176
4177         More 64-bit correctness.
4178         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4179         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4180         Fix up comments.
4181         This finally finishes the 64-bit SGI port.
4182         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4183         * symbols.c: Fix up comments and type casts.
4184         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4185         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4186         * symeval.h (Fixnum): New type.
4187         * symeval.h (symbol_value_type): Fix up comment.
4188
4189         * commands.h:
4190         * nt.c:
4191         * emacs.c:
4192         * data.c:
4193         * redisplay.c:
4194         * abbrev.c:
4195         * dired-msw.c:
4196         * event-Xt.c:
4197         * eldap.c:
4198         * window.c:
4199         * sound.c:
4200         * event-stream.c:
4201         * eval.c:
4202         * buffer.c:
4203         * mule-canna.c: A million DEFVAR_INTs here...
4204         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4205         * extents.c:
4206         * cmdloop.c:
4207         * lisp.h:
4208         * select-x.c:
4209         * console-x.h:
4210         * event-msw.c:
4211         * mule-wnnfns.c:
4212         * hpplay.c:
4213         * ralloc.c:
4214         * alloc.c:
4215         * keymap.c:
4216         * profile.c:
4217         s/int/Fixnum/g in DEFVAR_INT declarations.
4218
4219 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4220
4221         Port pdump to SGI alignment-sensitive environment.
4222         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4223         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4224         properly aligned.
4225         Define and use aligned reading and writing macros.
4226         Use buffered stdio instead of posix i/o for faster dumping.
4227         Eliminate kludgy 256 byte space for header.
4228         Read and write from dump file using structs for alignment safety.
4229         * dumper.c (pdump_align_stream): New.
4230         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4231         * dumper.c (PDUMP_READ_ALIGNED): New.
4232         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4233         * dumper.c (pdump_static_Lisp_Object): New struct.
4234         * dumper.c (pdump_static_pointer): New struct.
4235         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4236         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4237         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4238         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4239
4240         * dumper.c (pdump_backtrace):
4241         * dumper.c (pdump_get_indirect_count):
4242         * dumper.c (pdump_register_object):
4243         * dumper.c (pdump_register_struct):
4244         * dumper.c (pdump_reloc_one):
4245         * dumper.c (pdump_scan_by_alignment):
4246         * dumper.c (pdump_dump_from_root_struct_ptrs):
4247         * dumper.c (pdump_dump_opaques):
4248         * dumper.c (pdump_dump_rtables):
4249         * dumper.c (pdump_dump_from_root_objects):
4250         * dumper.c (pdump):
4251         * dumper.c (pdump_load_finish):
4252         Use aligned reading and writing.
4253
4254         * dumper.c (pdump_free): Make static.
4255         * dumper.c (pdump_hFile): Likewise.
4256         * dumper.c (pdump_hMap): Likewise.
4257
4258 2001-01-26  Martin Buchholz <martin@xemacs.org>
4259
4260         * XEmacs 21.2.43 "Terspichore" is released.
4261
4262 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4263
4264         Type fiddling for window_config.saved_windows_count
4265         * window.c (struct window_config): 
4266         Make saved_windows_count member unsigned.
4267         * window.c (sizeof_window_config_for_n_windows): 
4268         Make parameter unsigned.
4269         * window.c (mark_window_config):
4270         * window.c (window_config_equal):
4271         * window.c (free_window_configuration):
4272         * window.c (Fset_window_configuration):
4273         * window.c (count_windows):
4274         * window.c (Fcurrent_window_configuration):
4275         * window.c (reinit_vars_of_window):
4276         Update all callers and users.
4277
4278 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4279
4280         Alignment correctness for flexible arrays.
4281         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4282         Make alignment-correct. Add interesting comments.
4283         * alloc.c (size_vector):
4284         * alloc.c (make_vector_internal):
4285         * alloc.c (make_bit_vector_internal):
4286         * alloc.c (sweep_bit_vectors_1):
4287         * fns.c (size_bit_vector):
4288         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4289         * window.c (sizeof_window_config_for_n_windows): 
4290         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4291
4292 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4293
4294         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4295
4296 2001-01-23  Andy Piper  <andy@xemacs.org>
4297
4298         * select.c (Fown_selection_internal): pass owned_p
4299
4300         * select-msw.c (mswindows_own_selection): New Signature.
4301
4302         * console.h (struct console_methods): add owned_p to
4303         _own_selection.
4304
4305         * select-x.c (x_own_selection): pass owned_p
4306         (hack_motif_clipboard_selection): use owned_p
4307         (vars_of_select_x): new variable -
4308         x_selection_strict_motif_ownership.
4309
4310 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4311
4312         * specifier.h (specifier_data_offset): Remove pointless parens.
4313         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4314
4315 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4316
4317         Make Lisp_Object sizeof methods be alignment-correct.
4318         pdump must restore objects to the same alignment as the C compiler
4319         assumes.  It really matters on SGIs.
4320         * lstream.c (aligned_sizeof_lstream): New.
4321         (sizeof_lstream): Use aligned_sizeof_lstream.
4322         (Lstream_new): Likewise.
4323         * opaque.c (aligned_sizeof_opaque): New.
4324         (sizeof_opaque): Use aligned_sizeof_opaque.
4325         (make_opaque): Likewise.
4326         * specifier.c (aligned_sizeof_specifier): New.
4327         (sizeof_specifier): Use aligned_sizeof_specifier.
4328         (make_specifier_internal): Likewise.
4329
4330 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4331
4332         * lstream.h (struct lstream): Use max_align_t for trailing data.
4333         * specifier.h (struct Lisp_Specifier): Likewise.
4334
4335 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4336
4337         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4338         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4339         (CCL_SUSPEND): Likewise.
4340         (CCL_INVALID_CMD): Likewise.
4341         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4342         (ccl_driver): Likewise.
4343         (CCL_WRITE_CHAR): Macro hygiene.
4344         (CCL_WRITE_STRING): Macro hygiene.
4345
4346 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4347
4348         Port "portable" dumper to SunOS 4 and HP-UX.
4349         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4350         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4351         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4352
4353 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4354
4355         * lisp.h (ALIGNOF): A better definition for C++.
4356
4357 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4358
4359         Macro hygiene.
4360         Fix printf warnings: int format, long int arg.
4361         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4362         (PUSH_FAILURE_POINT): Use correct printf formats.
4363         (POP_FAILURE_POINT): Use correct printf formats.  
4364         Use do {...} while (0)
4365
4366 2001-01-20  Martin Buchholz <martin@xemacs.org>
4367
4368         * XEmacs 21.2.42 "Poseidon" is released.
4369
4370 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4371
4372         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4373
4374 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4375
4376         De-kludgify FIXED_TYPE free list frobbing.
4377         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4378         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4379         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4380         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4381         * alloc.c (LRECORD_FREE_P): New.
4382         * alloc.c (MARK_LRECORD_AS_FREE): New.
4383         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4384         * alloc.c (STRUCT_FREE_P): Deleted.
4385         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4386         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4387         * alloc.c (STRING_CHARS_FREE_P): New.
4388         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4389         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4390         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4391         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4392         * alloc.c (resize_string): Use new definitions.
4393         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4394         * alloc.c (verify_string_chars_integrity): Use new definitions.
4395         * alloc.c (compact_string_chars): Use new definitions.
4396         * alloc.c: Update monster comments.
4397         * lrecord.h (lrecord_type): Add some new lrecord types for
4398         alloc.c's use.
4399
4400 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4401
4402         Improve alignment hackery.
4403         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4404         (max_align_t): Moved from opaque.h - general purpose.
4405         (ALIGN_PTR): Use size_t, not long.
4406         * opaque.h (max_align_t): Move to lisp.h.
4407
4408 2001-01-18  Norbert Koch  <nk@LF.net>
4409
4410         * gui.h: Fix and add prototypes to fix build problems.
4411
4412 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4413
4414         temacs is going away, so `dump-temacs' is now a bad name.
4415         * .dbxrc (dump-temacs): Rename to `dmp'.
4416         * .gdbinit (dump-temacs): Rename to `dmp'.
4417
4418 2001-01-17  Andy Piper  <andy@xemacs.org>
4419
4420         * glyphs.c (print_image_instance): comment to make martin happy.
4421
4422         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4423         change.
4424
4425         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4426         activation.
4427         (mswindows_tab_control_redisplay): warning suppression.
4428
4429         * glyphs-widget.c (widget_update): re-write to cope with updated
4430         items.
4431         (widget_instantiate): use new gui_item functions.
4432         (tab_control_update): deleted.
4433         (progress_gauge_update): deleted.
4434         (image_instantiator_progress_guage): take out update reference.
4435         (image_instantiator_tree_view): ditto.
4436         (image_instantiator_tab_control): ditto.
4437
4438         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4439         Right the new way.
4440         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4441         return whether anything was changed.
4442         (update_gui_item_keywords): as it sounds.
4443
4444         * gui.h: declare widget_gui_parse_item_keywords.
4445
4446         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4447         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4448
4449 2001-01-17  Martin Buchholz <martin@xemacs.org>
4450
4451         * XEmacs 21.2.41 "Polyhymnia" is released.
4452
4453 2001-01-16  Didier Verna  <didier@xemacs.org>
4454
4455         * glyphs.c (image_instantiate): don't use fallbacks when
4456         instantiating a face's background pixmap by inheritance.
4457
4458 2001-01-14  Mike Sperber <mike@xemacs.org>
4459
4460         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4461         Conditionalize accordingly.
4462
4463 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4464
4465         * dumper.c (pdump_file_get): Fix a compiler warning.
4466
4467 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4468
4469         Make Purify happy when pdumping.
4470         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4471         iniitalizing all bits of new lisp object memory.
4472         * symbols.c (Fmake_local_variable): Likewise.
4473         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4474         * symbols.c (Fdefvaralias): Likewise.
4475         * mule-charset.c (vars_of_mule_charset): Likewise.
4476
4477 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4478         Add the `-nd' flag when running pre-dump operations under the debugger.
4479         * .dbxrc (run-temacs): Add `-nd'.
4480         * .dbxrc (update-elc): Likewise.
4481         * .dbxrc (dump-temacs): Likewise.
4482         * .gdbinit (run-temacs): Likewise.
4483         * .gdbinit (check-temacs): Likewise.
4484         * .gdbinit (update-elc): Likewise.
4485         * .gdbinit (dump-temacs): Likewise.
4486
4487 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4488
4489         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4490         export OBJECT_MODE=64
4491         configure --pdump --use-union-type=no
4492         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4493         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4494
4495         * miscplay.c (sndcnv8U_2mono):
4496         Avoid two uses of `++' in the same expression.
4497         Suppresses a GCC warning.
4498
4499 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4500
4501         Make sure future compilers don't miscompile alloc.c.
4502         * alloc.c:
4503         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4504         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4505
4506 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4507
4508         * dumper.c: A little post-pdump-rename comment fixup.
4509
4510 2001-01-09  Jerry James  <james@eecs.ku.edu>
4511
4512         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4513
4514 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4515
4516         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4517         script:
4518         #!/bin/sh
4519         replace_symbol () {
4520           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4521         }
4522
4523         replace_symbol pdump_wire_lists pdump_weak_object_chains
4524         replace_symbol pdump_wire_list dump_add_weak_object_chain
4525
4526         replace_symbol pdump_wires pdump_root_objects
4527         replace_symbol pdump_wire dump_add_root_object
4528
4529         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4530         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4531
4532         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4533         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4534         replace_symbol dumpstructinfo pdump_root_struct_ptr
4535         replace_symbol dumpstruct dump_add_root_struct_ptr
4536
4537         replace_symbol dumpopaque dump_add_opaque
4538         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4539         replace_symbol dumpopaqueinfos pdump_opaques
4540         replace_symbol dumpopaqueinfo pdump_opaque
4541
4542         replace_symbol nb_structdump nb_root_struct_ptrs
4543         replace_symbol nb_opaquedump nb_opaques
4544
4545         replace_symbol align_table pdump_align_table
4546         replace_symbol dump_header pdump_header
4547
4548         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4549         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4550
4551
4552 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4553
4554         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4555         optimizing bytecount_to_charcount().
4556
4557 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4558
4559         * config.h.in:
4560         (HAVE_DLFCN_H): Removed.
4561         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4562
4563 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4564
4565         Portable dumper maintainability improvements.
4566         * alloc.c (staticpro):
4567         * alloc.c (staticpro_nodump):
4568         * alloc.c (garbage_collect_1):
4569         * alloc.c (reinit_alloc_once_early):
4570         * alloc.c (init_alloc_once_early):
4571         * alloc.c: Move dumper functions to alloc.c.
4572         * dumper.c (pdump_backtrace):
4573         * dumper.c (pdump_dump_structs):
4574         * dumper.c (pdump_dump_opaques):
4575         * dumper.c (pdump_dump_rtables):
4576         * dumper.c (pdump_dump_wired):
4577         * dumper.c (pdump):
4578         * dumper.c (pdump_load_check):
4579         * dumper.c (pdump_load_finish):
4580         * dumper.c (pdump_file_unmap):
4581         * dumper.c (pdump_file_get):
4582         * dumper.c (pdump_resource_free):
4583         * dumper.c (pdump_resource_get):
4584         * dumper.c (pdump_file_free):
4585         * dumper.c (pdump_file_try):
4586         * dumper.c (pdump_load):
4587         Remove fixed size limits on staticpro(), staticpro_nodump(),
4588         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4589         Remove custom code for dumping lrecord_implementations_table - use
4590         dumpopaque instead.
4591         Remove (most of the) custom code for dumping staticpros - dump it
4592         like any other dynarr.
4593
4594         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4595         * dumper.c: Moved functions from alloc.c.
4596         * alloc.c (dumpstruct): Moved to dumper.c.
4597         * alloc.c (dumpopaque): Likewise.
4598         * alloc.c (pdump_wire): Likewise.
4599         * alloc.c (pdump_wire_list): Likewise.
4600
4601         * lisp.h (Dynarr_sizeof): New.
4602         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4603         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4604         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4605
4606         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4607         * lisp.h (dumpopaque): ditto.
4608         * lisp.h (pdump_wire): ditto.
4609         * lisp.h (pdump_wire_list): ditto.
4610
4611 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4612
4613         * make-src-depend (PrintPatternDeps):
4614         Use `sort' to make output independent of perl version.
4615
4616 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4617
4618         Port to Netbsd 1.5.
4619         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4620         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4621
4622 2001-01-03  Didier Verna  <didier@xemacs.org>
4623
4624         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4625         that `focus_frame' is alive before thinking of calling
4626         `redisplay_redraw_cursor' on it.
4627
4628 2001-01-08  Martin Buchholz <martin@xemacs.org>
4629
4630         * XEmacs 21.2.40 is released.
4631
4632 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4633
4634         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4635
4636 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4637
4638         * alloc.c (dbg_valmask): Make const.
4639         * alloc.c (dbg_typemask): Make const.
4640         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4641         * alloc.c (dbg_valbits): Make const.
4642         * alloc.c (dbg_gctypebits): Make const.
4643
4644 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4645
4646         * redisplay-x.c (x_bevel_area):
4647         redisplay.h (struct rune):
4648         Typo fixes in comments.
4649
4650 2001-01-05  Andy Piper  <andy@xemacs.org>
4651
4652         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4653         adjustment.
4654
4655         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4656
4657 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4658
4659         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4660
4661         * mule-ccl.c (stack_idx_of_map_multiple):
4662         Non const global data must not be initialized!
4663         Found by MIYASHITA Hisashi.
4664
4665 2001-01-02  Andy Piper  <andy@xemacs.org>
4666
4667         * frame.c (change_frame_size): make sure frame size is always
4668         marked as changed.
4669
4670         * glyphs.c (image_instance_layout): minor code reuse.
4671
4672         * window.c (Fcurrent_window_configuration): revert previous
4673         change.
4674
4675 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4676
4677         * glyphs.h:
4678         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4679
4680 2000-12-31  Andy Piper  <andy@xemacs.org>
4681
4682         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4683         when widget gets unmapped.
4684
4685         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4686         function. Make sure widgets losing focus don't just drop it.
4687         (handle_focus_event_1): record the widget with focus.
4688
4689 2000-12-31  Andy Piper  <andy@xemacs.org>
4690
4691         * window.c (allocate_window): use
4692         make_image_instance_cache_hash_table.
4693         (make_dummy_parent): ditto.
4694         (Fset_window_configuration): ditto.
4695
4696         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4697
4698         * glyphs.c (process_image_string_instantiator): use
4699         INSTANTIATOR_TYPE.
4700         (get_image_instantiator_governing_domain): ditto.
4701         (normalize_image_instantiator): ditto.
4702         (instantiate_image_instantiator): ditto.
4703         (make_image_instance_1): ditto.
4704         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4705         (instantiator_eq_equal): new function for use with instance hash
4706         tables.
4707         (instantiator_eq_hash): ditto.
4708         (make_image_instance_cache_hash_table): create a suitable hash
4709         table for storing image instances.
4710
4711         * elhash.h (hash_table_weakness): new internal weakness type
4712         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4713         declare new functions.
4714
4715         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4716         another weakness type for glyphs.
4717         (make_standard_lisp_hash_table): new function split out from
4718         make_general_lisp_hash_table.
4719         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4720         (hash_table_instantiate): ditto.
4721         (Fmake_hash_table): ditto.
4722
4723 2000-12-31  Martin Buchholz <martin@xemacs.org>
4724
4725         * XEmacs 21.2.39 is released.
4726
4727 2000-12-29  Andy Piper  <andy@xemacs.org>
4728
4729         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4730
4731         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4732         the frame has changed so that we pick up geometry changes such as
4733         menubar visibility.
4734
4735 2000-12-28  Andy Piper  <andy@xemacs.org>
4736
4737         * lastfile.c (my_ebss): make a char array so we can pad the
4738         bss. Fixes cygwin unexec.
4739
4740         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4741
4742 2000-12-26  Andy Piper  <andy@xemacs.org>
4743
4744         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4745         comments and try and be more precise about a non-/SIGIO world.
4746         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4747         SIGIO.
4748
4749         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4750         we don't normalize to zero width or height.
4751
4752 2000-12-24  Andy Piper  <andy@xemacs.org>
4753
4754         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4755
4756 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4757
4758         * s/sco5.h: SCO 5 has pty support.
4759
4760 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4761
4762         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4763         input-method-xlib.c contains whole contents of input-method-xfs.c,
4764         so we can use input-method-xlib.c's code for USE_XFONTSET
4765         using #ifdefs.
4766         * input-method-xfs.c: removed.
4767
4768 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4769
4770         * file-coding.h (enum coding_category_type): reorder enumerators to
4771         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4772         (now one greater than largest real coding_category_type enumerator).
4773         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4774         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4775         Fcoding_category_list, Fset_coding_priority_list,
4776         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4777         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4778
4779 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4780
4781         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4782         * redisplay-output.c (redisplay_output_window): Clear top of window
4783         when face is changed.
4784         * redisplay-x.c (x_redraw_exposed_window): Call
4785         redisplay_clear_top_of_window.
4786         * redisplay.h: Publish redisplay_clear_top_of_window.
4787
4788 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4789
4790         * buffer.c (Fkill_buffer): Map over all devices.
4791         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4792         (list_windows): New function.
4793         (list_all_windows): Ditto.
4794         (Freplace_buffer_in_windows): Use them.
4795
4796 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4797
4798         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4799         (Fopen_database): Use `db_create' instead of `db_open'.
4800         (syms_of_database): Initialize Qqueue.
4801
4802 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4803
4804         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4805         buffer_local_face_property.
4806         * buffer.h (struct buffer): New member buffer_local_face_property.
4807         * window.c (Fset_window_buffer):  Mark window's face as changed
4808         when buffer has buffer local face.
4809         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4810         * objects.c (color_after_change): Set buffer_local_face_property
4811         when locale of face specifier is buffer.
4812         * objects.c (font_after_change): Ditto.
4813         * objects.c (face_boolean_after_change): Ditto.
4814         * glyphs.c (image_after_change): Ditto.
4815
4816 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4817
4818         * nt.c (mswindows_fstat): Report file permissions, volume serial
4819         number, etc. Code adapted from FSF Emacs 20.7.
4820
4821 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4822
4823         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4824         of stat when we don't have symbolic links, to make sure
4825         mswindows_stat is called on mswindows.
4826
4827 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4828
4829         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4830
4831 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4832
4833         * doprnt.c (emacs_doprnt_1): More printing fixes.
4834         Make printing of numbers compatible with libc and FSF Emacs.
4835         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4836         Use the system printf to do most of the hard work of formatting,
4837         instead of doprnt_1().
4838         Calculate memory to allocate for format string.
4839         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4840         (doprnt_1): Cleaner code and documentation.
4841
4842 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4843
4844         * Makefile.in.in: Use the loop variable to install headers.
4845
4846 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4847
4848         * window.c (Fsplit_window): Don't invalidate face cache.
4849
4850 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4851
4852         * minibuf.c (Fall_completions): Undo the previous change
4853         which removed checking elements start with space.
4854
4855 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4856
4857         * mule-canna.c: Didier suppression.
4858
4859 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4860
4861         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4862         (warning suppression).  Add English comment translations.
4863
4864 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4865
4866         * unexelfsgi.c (unexec): Better test for mmap failure.
4867
4868 2000-12-05  Martin Buchholz <martin@xemacs.org>
4869
4870         * XEmacs 21.2.38 is released.
4871
4872 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4873
4874         * redisplay.c (bar-cursor): Make a user variable.
4875
4876         * symsinit.h: Add init_postgresql_from_environment.
4877
4878 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4879
4880         * regex.c: Convert to clean C.
4881
4882 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4883
4884         * realpath.c:
4885         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4886         initialization.
4887         (sys_readlink): renamed to system_readlink to avoid conflict with
4888         the other sys_readlink.
4889
4890 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4891
4892         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4893
4894 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4895
4896         * postgresql.c (init_postgresql_from_environment): new function.
4897         (vars_of_postgresql): Move code initializing Lisp variables out and
4898         into init_postgresql_from_environment.
4899         emacs.c (main_1): Call init_postgresql_from_environment if and only
4900         if running a dumped XEmacs.
4901
4902 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4903
4904         * buffer.c: Make find-file-compare-truenames default to true on
4905         windows.
4906
4907         * realpath.c (win32_abs_start):
4908         (cygwin_readlink):
4909         (win32_readlink): New functions.
4910         (xrealpath): Return really real filenames on windows.
4911
4912         * fileio.c (Ffile_truename): Make file-truename work on windows.
4913
4914 2000-11-29  Didier Verna  <didier@xemacs.org>
4915
4916         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4917         * faces.c (update_face_cachel_data): use it.
4918         * faces.c (add_face_cachel): use it. Complete background pixmap
4919         frobbing in face cache if `update_face_cachel_data' has not done so.
4920
4921 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4922
4923         * search.c (string_match_1): Don't set last_thing_searched
4924         when search failed.
4925
4926 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4927
4928         * buffer.c: Include casetab.h
4929         (common_init_complex_vars_of_buffer): Use new case-table object.
4930         * buffer.h: Include casetab.h
4931         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4932         (DOWNCASE_TABLE_OF): Ditto.
4933         * bufslots.h: Remove char-tables and add case-table.
4934         * casetab.c: Include casetab.h
4935         (CASE_TABLE_P): Removed.
4936         (mark_case_table): New function.
4937         (allocate_case_table): New function.
4938         (Fcase_table_p): Use new case-table.
4939         (case_table_char): New function.
4940         (Fget_case_table): Ditto.
4941         (Fput_case_table): Ditto.
4942         (Fput_case_table_pair): Ditto.
4943         (Fcopy_case_table): Ditto.
4944         (Fcurrent_case_table): Return case-table.
4945         (Fstandard_case_table): Return case-table.
4946         (Fset_case_table): Fix doc-string.
4947         (set_case_table): Use case-table
4948         (syms_of_casetab): DEFSUBR new functions.
4949         (complex_vars_of_casetab): Set up standard case-table.
4950         * casetab.h: New file.
4951         * editfns.c: Include casetab.h
4952         (Fcompare_buffer_substrings): Use case-table.
4953         * inline.c: Include casetab.h
4954         * lisp.h: Remove bogus extern.
4955         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4956         * search.c: Include casetab.h
4957         (TRANSLATE_ASCII): Removed.
4958         (TRANSLATE): Unconditionally translate character.
4959         (looking_at_1): Use case-table.
4960         (string_match_1): Ditto.
4961         (fast_string_match): Ditto.
4962         (search_command): Ditto.
4963         (search_buffer): Separate boyer_moore.  Check whether
4964         boyer_moore is possible.
4965         (simple_search): New function.
4966         (boyer_moore): Separated from search_buffer. Translate char.
4967
4968 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4969
4970         * regex.c (RE_TR_ASCII): Removed.
4971         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4972         (PATFETCH): Call PATFETCH_RAW.
4973         (PATFETCH_RAW): Fetch Emchar.
4974         (PATUNFETCH): Decrement charptr.
4975         (GET_BUFFER_SPACE): Rename b to buf_end.
4976         (BUF_PUSH): Ditto.
4977         (BUF_PUSH_2): Ditto.
4978         (BUF_PUSH_3): Ditto.
4979         (EXTEND_BUFFER): Ditto.
4980         (SET_LIST_BIT): Ditto.
4981         (regex_compile): Ditto.  Translate non ASCII char.
4982         (compile_range): Ditto.
4983         (re_search_2): Ditto.
4984         (re_match_2_internal): Compare Emchar.
4985         (bcmp_translate): Ditto.
4986
4987 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4988
4989         * lisp.h (basic char/int typedefs):  comment improvement.
4990
4991 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4992
4993         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4994         unstomp inhibit_site_lisp.  Improve comments.
4995
4996 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4997
4998         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4999
5000 2000-11-28  Andy Piper  <andy@xemacs.org>
5001
5002         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5003         clipped display for windows in the gutter also.
5004         (redisplay_display_boxes_in_window_p): change semantics of return
5005         codes to be more intuitive.
5006
5007         * gutter.h: declare display_boxes_in_gutter_p.
5008
5009         * gutter.c (display_boxes_in_gutter_p): new function for
5010         redisplay.
5011
5012 2000-11-22  Andy Piper  <andy@xemacs.org>
5013
5014         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5015         autodetect domain.
5016
5017 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5018
5019         * callproc.c (Fold_call_process_internal):
5020         * gpm.c (Freceive_gpm_event):
5021         (tty_get_foreign_selection): Might be just warning supression.
5022         * fileio.c (Fwrite_region_internal):
5023         (Fset_visited_file_modtime):
5024         * keymap.c (event_matches_key_specifier_p):
5025         Initialize GCPROed variable.
5026
5027         * menubar-x.c (command_builder_find_menu_accelerator):
5028         Initialize before use.
5029
5030 2000-11-23  Andy Piper  <andy@xemacs.org>
5031
5032         * unexcw.c (unexec): make the resulting executable executable.
5033
5034 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5035
5036         * doc.c (get_doc_string):
5037         Use size_t, not int, for result of XSTRING_LENGTH.
5038
5039         * cmds.c (Fdelete_char):
5040         * cmds.c (Fpoint_at_eol):
5041         * cmds.c (Fself_insert_command):
5042         Use EMACS_INT, not int, for result of XINT.
5043         Someday, someone will want to insert more than 2**31 identical characters.
5044
5045         * cmds.c (Fdelete_char):
5046         * cmds.c (Fdelete_backward_char):
5047         * syntax.c (Fforward_word):
5048         * syntax.c (Fforward_comment):
5049         Make COUNT argument optional, for consistency with forward-char et al.
5050
5051 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5052
5053         * lisp.h:
5054         * print.c (long_to_string):
5055         Return a useful value: the pointer at end of data written.
5056
5057         * doprnt.c:
5058         Use `static const char * const' for constant strings.
5059         (union printf_arg): Delete `i', `ui' members.
5060         (get_doprnt_args):
5061         (emacs_doprnt_1):
5062         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5063         Do all printf-ing via the `l' specifier.
5064         Use EMACS_INT instead of int.
5065         Optimize.
5066
5067 2000-11-20  Didier Verna  <didier@xemacs.org>
5068
5069         * faces.c (update_face_cachel_data): don't frob the background
5070         pixmap when the window is being created. The face is needed but
5071         does not exist yet.
5072
5073 2000-11-20  Andy Piper  <andy@xemacs.org>
5074
5075         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5076         messing with a debug environment.
5077
5078 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5079
5080         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5081
5082 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5083
5084         * casetab.c (Fcase_table_p): Fix compile error and crash.
5085
5086 2000-11-18  Philip Aston  <philipa@mail.com>
5087
5088         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5089
5090 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5091
5092         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5093         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5094
5095 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5096
5097         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5098         * unexelf.c: Use HAVE_ELF_H.
5099         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5100         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5101         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5102         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5103         for testing.
5104         So this is an unexelfsgi.c from a different line of development.
5105
5106 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5107
5108         * regex.c (RE_TR_ASCII): New function.
5109         (RE_TRANSLATE): Call it.
5110
5111 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5112
5113         * buffer.h (TRT_TABLE_OF): Remove assert.
5114         (IN_TRT_TABLE_DOMAIN): Removed.
5115
5116 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5117
5118         * free-hook.c (log_gcpro):
5119         (show_gcprohist): Add support for GCPRO5.
5120
5121 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5122
5123         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5124
5125 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5126
5127         * symeval.h: Declare flush_all_buffer_local_cache.
5128
5129         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5130         (flush_buffer_local_cache): Added.
5131         (flush_all_buffer_local_cache): Added.
5132
5133         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5134
5135         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5136         (pdump_dump_data): Ditto.
5137         (pdump_reloc_one): Ditto.
5138         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5139         before dumping.
5140
5141
5142 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5143
5144         * buffer.c: Remove if 0'ed entry.
5145         * buffer.h: Rewrite TRT to use char-table.
5146         * bufslots.h: Remove mirror tables.
5147         * casetab.c: Remove mirror tables.
5148         (CASE_TABLE_P): New macro.
5149         (Fcase_table_p): Element of a case table is string or char-table.
5150         (make_mirror_trt_table): Removed.
5151         (set_case_table): Setup char-table from strings for backward
5152         compatibility.
5153         * dired.c (Fdirectory_files):
5154         * dired-msw.c: (mswindows_get_files):
5155         * lisp.h: Change prototype of re_pattern_buffer.
5156         * regex.c: (RE_TRANSLATE): New macro.
5157         (TRANSLATE_P): Ditto.
5158         Change translate to type RE_TRANSLATE_TYPE.
5159         * regex.h: Define RE_TRANSLATE_TYPE
5160         * search.c (TRANSLATE): New macro.
5161         (TRANSLATE_ASCII): New macro.
5162         Translate table is changed to Lisp_Object.
5163         (signal_failure): Inhibit return.
5164
5165 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5166
5167         * device-msw.c:
5168         * eldap.c:
5169         * event-Xt.c:
5170         * event-stream.c:
5171         * print.c:
5172         Do UNGCPRO before return.
5173
5174 2000-11-14  Martin Buchholz <martin@xemacs.org>
5175
5176         * XEmacs 21.2.37 is released.
5177
5178 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5179
5180         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5181         Add comments about discarded return value.
5182
5183 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5184
5185         * callint.c:
5186         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5187
5188 2000-10-27  Andy Piper  <andy@xemacs.org>
5189
5190         * gutter.c (Fset_default_gutter_position): default left and right
5191         gutters to visible.
5192         (calculate_gutter_size): calculate resonable heuristic for left
5193         and right gutter sizes.
5194         (specifier_vars_of_gutter): change left and right gutter sizes to
5195         autodetect.
5196         (calculate_gutter_size_from_display_lines): new function.
5197         (output_gutter): check for resizing on left and right gutters.
5198         (clear_gutter): don't special case top and left gutters.
5199         (specifier_vars_of_gutter): use new signature for
5200         set_specifier_caching.
5201
5202         * glyphs-x.c (x_redisplay_widget): spelling fix.
5203         * glyphs.c (specifier_vars_of_glyphs):
5204         * menubar.c (specifier_vars_of_menubar):
5205         * redisplay.c (specifier_vars_of_redisplay):
5206         * toolbar.c (specifier_vars_of_toolbar):
5207         * window.c (specifier_vars_of_window):
5208         * scrollbar.c (specifier_vars_of_scrollbar):
5209         (complex_vars_of_scrollbar): use new signature for
5210         set_specifier_caching.
5211
5212         * specifier.c (set_specifier_caching): include recompute flag.
5213         (recompute_one_cached_specifier_in_window): always recompute if
5214         flag set.
5215         (recompute_one_cached_specifier_in_frame): ditto.
5216
5217         * specifier.h (struct specifier_caching): add recompute flag.
5218
5219 2000-10-24  Andy Piper  <andy@xemacs.org>
5220
5221         * unexcw.c (copy_executable_and_dump_data_section): add new
5222         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5223         5.0 happy.
5224
5225 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5226
5227         * console-x.h (x_device): New member modifier_release_time.
5228         * event-Xt.c (x_handle_sticky_modifiers):
5229         Bound interval modifier keys are sticky.
5230         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5231         * events.h: extern it.
5232
5233 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5234
5235         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5236
5237 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5238
5239         * event-stream.c (execute_command_event): Preserve current_events
5240         and the like when event is misc-user-event.
5241         Inhibit quit during the call to maybe_echo_keys.
5242
5243 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5244
5245         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5246         symlink when buffer is killed.
5247         (inhibit_clash_detection): New variable.
5248
5249 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5250
5251         * console.c (Fset_input_method): Trigger redisplay on tty.
5252
5253 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5254
5255         * process.c (Fprocess_status): Revert to previous behavior:
5256         (process-status "nosuchprocess") ==> nil
5257
5258 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5259
5260         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5261         Work around another GCC 2.95.2 optimizer bug.
5262
5263 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5264
5265         * process.c (Fget_process): Use LIST_LOOP_2.
5266         (kill_buffer_processes): Use LIST_LOOP_2.
5267
5268         * minibuf.c (Fall_completions):
5269         Delete old non-functional code for FSF fourth argument.
5270
5271         * frame.c (frame_matches_frame_spec):
5272         Renamed from `frame_matches_frametype'.  Update all callers.
5273         (device_matches_device_spec):
5274         Renamed from 'device_matches_console_spec'.  Update all callers.
5275
5276         * doc.c (Fsubstitute_command_keys):
5277         Remove buffer overflow crash.  Small code cleanups.
5278
5279         * casetab.c (check_case_table): Simpler code.
5280
5281         * window.c (Freplace_buffer_in_windows):
5282         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5283         (and similar implementation) as Fdelete_windows_on.
5284         Update all callers.
5285
5286         * alloc.c (Fmake_list):
5287         * alloc.c (make_vector):
5288         * alloc.c (Fmake_vector):
5289         * alloc.c (make_bit_vector):
5290         * alloc.c (Fmake_bit_vector):
5291         * alloc.c (Fbit_vector):
5292         * alloc.c (Fmake_string):
5293         * alloc.c (Fpurecopy):
5294         * alloc.c (Fmemory_limit):
5295         * buffer.c:
5296         * buffer.c (Fget_buffer):
5297         * buffer.c (Fkill_buffer):
5298         * buffer.c (complex_vars_of_buffer):
5299         * bytecode.c (Fcompiled_function_stack_depth):
5300         * callint.c (Fprefix_numeric_value):
5301         * event-stream.c:
5302         * event-stream.c (Fread_key_sequence):
5303         * casetab.c:
5304         * casetab.c (Fcase_table_p):
5305         * casetab.c (check_case_table):
5306         * casetab.c (Fset_case_table):
5307         * casetab.c (Fset_standard_case_table):
5308         * chartab.c:
5309         * chartab.c (Fchar_table_type):
5310         * chartab.c (Freset_char_table):
5311         * chartab.c (Fget_char_table):
5312         * chartab.c (Fget_range_char_table):
5313         * chartab.c (Fput_char_table):
5314         * chartab.c (Fmap_char_table):
5315         * chartab.c (Fcategory_table_p):
5316         * chartab.c (Fcheck_category_at):
5317         * chartab.c (Fchar_in_category_p):
5318         * chartab.c (Fcategory_table):
5319         * chartab.c (Fcopy_category_table):
5320         * chartab.c (Fset_category_table):
5321         * chartab.c (Fcategory_designator_p):
5322         * chartab.c (Fcategory_table_value_p):
5323         * cmds.c (Fdelete_char):
5324         * cmds.c (Fdelete_backward_char):
5325         * cmds.c (Fself_insert_command):
5326         * cmds.c (Fself_insert_internal):
5327         * console.c (Fvalid_console_type_p):
5328         * console.c (Fcdfw_console):
5329         * console.c (Fconsole_type):
5330         * console.c (Fconsole_name):
5331         * console.c (Fconsole_device_list):
5332         * console.c (Fconsole_on_window_system_p):
5333         * data.c:
5334         * data.c (Feq):
5335         * data.c (Fold_eq):
5336         * data.c (Fsubr_interactive):
5337         * data.c (Fchar_to_int):
5338         * data.c (Fint_to_char):
5339         * data.c (Fsetcar):
5340         * data.c (Fsetcdr):
5341         * data.c (Fnumber_to_string):
5342         * data.c (Fstring_to_number):
5343         * data.c (Frem):
5344         * database.c (mark_database):
5345         * database.c (finalize_database):
5346         * database.c (Fdatabase_live_p):
5347         * database.c (Fdatabasep):
5348         * device-x.c (Fx_get_resource):
5349         * device.c (Fdfw_device):
5350         * dired.c:
5351         * dired.c (Ffile_name_completion):
5352         * dired.c (Ffile_name_all_completions):
5353         * dired.c (Fuser_name_completion):
5354         * dired.c (Fuser_name_completion_1):
5355         * dired.c (Fuser_name_all_completions):
5356         * doc.c (Fdocumentation):
5357         * doc.c (Fdocumentation_property):
5358         * doc.c (Fsubstitute_command_keys):
5359         * editfns.c:
5360         * editfns.c (Fchar_to_string):
5361         * editfns.c (Fstring_to_char):
5362         * editfns.c (Ftemp_directory):
5363         * editfns.c (Finsert_char):
5364         * editfns.c (Fbuffer_substring_no_properties):
5365         * editfns.c (Fnarrow_to_region):
5366         * editfns.c (Fchar_equal):
5367         * editfns.c (Fchar_Equal):
5368         * editfns.c (Ftranspose_regions):
5369         * emacs.c (Fdump_emacs):
5370         * eval.c (Fthrow):
5371         * eval.c (Fcommand_execute):
5372         * eval.c (Fautoload):
5373         * eval.c (Fbacktrace):
5374         * eval.c (Fbacktrace_frame):
5375         * events.c:
5376         * events.c (Fcopy_event):
5377         * events.c (Fcharacter_to_event):
5378         * events.c (Fevent_button):
5379         * events.c (Fevent_process):
5380         * extents.c:
5381         * extents.c (Fnext_extent_change):
5382         * extents.c (Fextent_property):
5383         * faces.c (Ffacep):
5384         * faces.c (Fmake_face):
5385         * file-coding.c:
5386         * file-coding.c (Fencode_shift_jis_char):
5387         * file-coding.c (Fencode_big5_char):
5388         * fileio.c (Ffile_name_directory):
5389         * fileio.c (Ffile_name_nondirectory):
5390         * fileio.c (Ffile_name_as_directory):
5391         * fileio.c (Fdirectory_file_name):
5392         * fileio.c (Ffile_truename):
5393         * fileio.c (Fsubstitute_in_file_name):
5394         * fileio.c (Ffile_modes):
5395         * fileio.c (Fset_file_modes):
5396         * fileio.c (Fset_default_file_modes):
5397         * fileio.c (Fverify_visited_file_modtime):
5398         * floatfns.c (Facos):
5399         * floatfns.c (Fasin):
5400         * floatfns.c (Fatan):
5401         * floatfns.c (Fcos):
5402         * floatfns.c (Fsin):
5403         * floatfns.c (Ftan):
5404         * floatfns.c (Fbessel_j0):
5405         * floatfns.c (Fbessel_j1):
5406         * floatfns.c (Fbessel_jn):
5407         * floatfns.c (Fbessel_y0):
5408         * floatfns.c (Fbessel_y1):
5409         * floatfns.c (Fbessel_yn):
5410         * floatfns.c (Ferf):
5411         * floatfns.c (Ferfc):
5412         * floatfns.c (Flog_gamma):
5413         * floatfns.c (Fexp):
5414         * floatfns.c (Fexpt):
5415         * floatfns.c (Flog):
5416         * floatfns.c (Flog10):
5417         * floatfns.c (Fsqrt):
5418         * floatfns.c (Fcube_root):
5419         * floatfns.c (Facosh):
5420         * floatfns.c (Fasinh):
5421         * floatfns.c (Fatanh):
5422         * floatfns.c (Fcosh):
5423         * floatfns.c (Fsinh):
5424         * floatfns.c (Ftanh):
5425         * floatfns.c (Fabs):
5426         * floatfns.c (Ffloat):
5427         * floatfns.c (Flogb):
5428         * floatfns.c (Fceiling):
5429         * floatfns.c (Ffloor):
5430         * floatfns.c (Fround):
5431         * floatfns.c (Ftruncate):
5432         * floatfns.c (Ffceiling):
5433         * floatfns.c (Fffloor):
5434         * floatfns.c (Ffround):
5435         * floatfns.c (Fftruncate):
5436         * fns.c (Fstring_equal):
5437         * fns.c (Fstring_lessp):
5438         * fns.c (concat2):
5439         * fns.c (concat3):
5440         * fns.c (vconcat2):
5441         * fns.c (vconcat3):
5442         * fns.c (Fsubstring):
5443         * fns.c (Fassoc):
5444         * fns.c (Fold_assoc):
5445         * fns.c (assoc_no_quit):
5446         * fns.c (Fassq):
5447         * fns.c (Fold_assq):
5448         * fns.c (assq_no_quit):
5449         * fns.c (Frassoc):
5450         * fns.c (Fold_rassoc):
5451         * fns.c (Frassq):
5452         * fns.c (Fold_rassq):
5453         * fns.c (rassq_no_quit):
5454         * fns.c (Fremassoc):
5455         * fns.c (remassoc_no_quit):
5456         * fns.c (Fremassq):
5457         * fns.c (remassq_no_quit):
5458         * fns.c (Fremrassoc):
5459         * fns.c (Fremrassq):
5460         * fns.c (remrassq_no_quit):
5461         * fns.c (Fsort):
5462         * fns.c (Fplist_get):
5463         * fns.c (Fplist_put):
5464         * fns.c (Fplist_remprop):
5465         * fns.c (Fplist_member):
5466         * fns.c (Flax_plist_get):
5467         * fns.c (Flax_plist_put):
5468         * fns.c (Flax_plist_remprop):
5469         * fns.c (Flax_plist_member):
5470         * fns.c (Fequal):
5471         * fns.c (Fold_equal):
5472         * fns.c (Frequire):
5473         * fns.c (Fbase64_encode_region):
5474         * fns.c (Fbase64_encode_string):
5475         * fns.c (Fbase64_decode_region):
5476         * frame.c:
5477         * frame.c (frame_matches_frame_spec):
5478         * frame.c (device_matches_device_spec):
5479         * frame.c (next_frame):
5480         * frame.c (previous_frame):
5481         * frame.c (Fnext_frame):
5482         * frame.c (Fprevious_frame):
5483         * frame.c (Fframe_property):
5484         * frame.c (Fset_frame_height):
5485         * frame.c (Fset_frame_size):
5486         * frame.h:
5487         * glyphs.c:
5488         * glyphs.c (if):
5489         * glyphs.c (decode_error_behavior_flag):
5490         * glyphs.c (Fmake_image_instance):
5491         * indent.c (Findent_to):
5492         * intl.c (Fignore_defer_gettext):
5493         * keymap.c (Fkeymapp):
5494         * keymap.c (Flookup_key):
5495         * lread.c:
5496         * lread.c (Fload_internal):
5497         * lread.c (Feval_buffer):
5498         * lread.c (Feval_region):
5499         * macros.c (Fexecute_kbd_macro):
5500         * marker.c (set_marker_internal):
5501         * marker.c (Fset_marker):
5502         * marker.c (set_marker_restricted):
5503         * marker.c (Fcopy_marker):
5504         * marker.c (noseeum_copy_marker):
5505         * menubar.c:
5506         * menubar.c (Fpopup_menu):
5507         * minibuf.c:
5508         * mule-charset.c (Fcharset_name):
5509         * mule-charset.c (Fchar_charset):
5510         * mule-charset.c (Fchar_octet):
5511         * mule-charset.c (Fsplit_char):
5512         * mule-wnnfns.c (Fwnn_open):
5513         * mule-wnnfns.c (Fwnn_dict_comment):
5514         * mule-wnnfns.c (Fwnn_quit_henkan):
5515         * mule-wnnfns.c (Fwnn_word_toroku):
5516         * mule-wnnfns.c (Fwnn_word_sakujo):
5517         * mule-wnnfns.c (Fwnn_word_use):
5518         * mule-wnnfns.c (Fwnn_hindo_set):
5519         * objects.c:
5520         * objects.c (Fmake_color_instance):
5521         * objects.c (Fmake_font_instance):
5522         * print.c (Fwrite_char):
5523         * process.c:
5524         * process.c (mark_process):
5525         * process.c (print_process):
5526         * process.c (get_process_from_usid):
5527         * process.c (Fprocessp):
5528         * process.c (Fprocess_live_p):
5529         * process.c (Fget_process):
5530         * process.c (Fget_buffer_process):
5531         * process.c (get_process):
5532         * process.c (Fprocess_id):
5533         * process.c (Fprocess_name):
5534         * process.c (Fprocess_command):
5535         * process.c (init_process_io_handles):
5536         * process.c (start_process_unwind):
5537         * process.c (Fstart_process_internal):
5538         * process.c (Fopen_multicast_group_internal):
5539         * process.c (Fset_process_window_size):
5540         * process.c (read_process_output):
5541         * process.c (send_process):
5542         * process.c (Fprocess_tty_name):
5543         * process.c (Fset_process_buffer):
5544         * process.c (Fprocess_buffer):
5545         * process.c (Fprocess_mark):
5546         * process.c (set_process_filter):
5547         * process.c (Fset_process_filter):
5548         * process.c (Fprocess_filter):
5549         * process.c (Fprocess_send_region):
5550         * process.c (Fprocess_send_string):
5551         * process.c (exec_sentinel):
5552         * process.c (Fset_process_sentinel):
5553         * process.c (Fprocess_sentinel):
5554         * process.c (status_notify):
5555         * process.c (Fprocess_status):
5556         * process.c (Fprocess_exit_status):
5557         * process.c (process_send_signal):
5558         * process.c (Fprocess_send_eof):
5559         * process.c (deactivate_process):
5560         * process.c (remove_process):
5561         * process.c (Fdelete_process):
5562         * process.c (kill_buffer_processes):
5563         * process.c (Fprocess_kill_without_query):
5564         * process.c (Fprocess_kill_without_query_p):
5565         * rangetab.c:
5566         * rangetab.c (Fget_range_table):
5567         * rangetab.c (Fput_range_table):
5568         * rangetab.c (Fremove_range_table):
5569         * rangetab.c (Fclear_range_table):
5570         * search.c:
5571         * search.c (Fskip_chars_forward):
5572         * search.c (Fskip_chars_backward):
5573         * search.c (Fskip_syntax_forward):
5574         * search.c (Fskip_syntax_backward):
5575         * search.c (search_command):
5576         * search.c (Freplace_match):
5577         * search.c (Fregexp_quote):
5578         * select.c (Fown_selection_internal):
5579         * select.c (Fselection_owner_p):
5580         * select.c (Fselection_exists_p):
5581         * select.c (Fget_selection_internal):
5582         * specifier.c:
5583         * symbols.c:
5584         * symbols.c (Fintern):
5585         * symbols.c (Fintern_soft):
5586         * symbols.c (Funintern):
5587         * symbols.c (Fapropos_internal):
5588         * symbols.c (Fset_default):
5589         * syntax.c:
5590         * syntax.c (Fsyntax_table_p):
5591         * syntax.c (Fcopy_syntax_table):
5592         * syntax.c (Fset_syntax_table):
5593         * syntax.c (Fchar_syntax):
5594         * syntax.c (syntax_match):
5595         * syntax.c (Fmatching_paren):
5596         * syntax.c (Fforward_word):
5597         * syntax.c (scan_lists):
5598         * syntax.c (Fscan_lists):
5599         * syntax.c (Fscan_sexps):
5600         * syntax.c (Fparse_partial_sexp):
5601         * toolbar.c (Fcheck_toolbar_button_syntax):
5602         * tooltalk.doc:
5603         * window.c:
5604         * window.c (Fwindowp):
5605         * window.c (Fwindow_live_p):
5606         * window.c (Fwindow_point):
5607         * window.c (Fdelete_window):
5608         * window.c (Fnext_window):
5609         * window.c (Fprevious_window):
5610         * window.c (Fother_window):
5611         * window.c (window_loop):
5612         * window.c (Fget_lru_window):
5613         * window.c (Fsplit_window):
5614         * window.c (Fenlarge_window):
5615         * window.c (Fenlarge_window_pixels):
5616         * window.c (Fshrink_window):
5617         * window.c (Fshrink_window_pixels):
5618         * window.c (change_window_height):
5619         * window.c (Fwindow_configuration_p):
5620         * window.c (Fcurrent_window_configuration):
5621         * window.h:
5622         * casefiddle.c (casify_object):
5623         * casefiddle.c (Fupcase):
5624         * casefiddle.c (Fdowncase):
5625         * casefiddle.c (Fcapitalize):
5626         * casefiddle.c (Fupcase_initials):
5627         * casefiddle.c (casify_region_internal):
5628         * casefiddle.c (casify_region):
5629         * casefiddle.c (Fupcase_region):
5630         * casefiddle.c (Fdowncase_region):
5631         * casefiddle.c (Fcapitalize_region):
5632         * casefiddle.c (Fupcase_initials_region):
5633         * casefiddle.c (Fupcase_word):
5634         * casefiddle.c (Fdowncase_word):
5635         * casefiddle.c (Fcapitalize_word):
5636         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5637         Replace 0 with '\0' when working with bytes.
5638         Replace initial "(" with "\(" in docstrings.
5639
5640 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5641
5642         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5643
5644         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5645
5646 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5647
5648         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5649
5650 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5651
5652         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5653         correctly.
5654
5655 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5656
5657         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5658         (inhibit_auto_save_session): New variable.
5659         (vars_of_fileio): Declare and initialize them.
5660         * fileio.c (Fdo_auto_save): Don't create session file if
5661         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5662
5663 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5664
5665         * sgiplay.c (play_internal): C++ compilability.
5666         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5667         * callproc.c (Fold_call_process_internal):
5668         Remove unused vars `env', `first'.
5669         * scrollbar.c (update_scrollbar_instance):
5670         #### unused var `current_window'.
5671         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5672         etc. within #ifdef NOT_YET.
5673         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5674         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5675         * specifier.c (specifier_instance):
5676         #### unused var `tag'.
5677         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5678
5679 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5680
5681         * fns.c (Fbutlast):
5682         * fns.c (list_sort):
5683         * fns.c (Ffillarray):
5684         * fns.c (bytecode_nconc2):
5685         * fns.c (Fnconc):
5686         * fns.c (mapcar1):
5687         * fns.c (Fmapconcat):
5688         Be pedantically 64-bit correct.  For the time when someone will
5689         want to have a list with length > 2**32.
5690
5691         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5692         Work around MIPSpro compiler bug.
5693
5694         * process-unix.c (unix_kill_child_process): Add snarky comment.
5695         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5696
5697         * config.h.in: Oops, _getpt ==> _getpty
5698
5699 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5700
5701         * config.h.in:
5702         * regex.c:
5703         Use void*, not char*, as return type of alloca().
5704
5705         * alloc.c (free_marker): Side effect inside assert expression!
5706
5707 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5708
5709         * mule-charset.c (Fset_charset_ccl_program): To check
5710         if the given ccl program is valid, use setup_ccl_program()
5711         instead of CHECK_VECTOR().
5712         (Fmake_charset): Likewise.
5713
5714 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5715
5716         * faces.c (get_extent_fragment_face_cache_index):
5717         Fix cachel.merged_faces memory leak.
5718
5719 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5720
5721         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5722         Reset MSB of octets obtained by DECODE_SJIS
5723         because of the incompatibility with Emacs.
5724         (ccl_driver)<CCL_ENCODE_SJIS>:
5725         Set MSB of octets before passing them to
5726         ENCODE_SJIS because of the incompatibility
5727         with Emacs.
5728
5729 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5730
5731         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5732         (DECLARE_LRECORD): Undo the last change.
5733         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5734
5735 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5736
5737         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5738         the implementation to lrecord_implementations_table.
5739
5740 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5741
5742         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5743         initial value of `lrecord_type_##c_name' and
5744         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5745         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5746         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5747         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5748         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5749
5750 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5751
5752         * miscplay.c (sndcnv8S_2mono):
5753         (sndcnv2monounsigned):
5754         (sndcnvULaw_2linear):
5755         (sndcnv16swap):
5756         Remove implementation-defined behavior.
5757
5758 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5759
5760         * input-method-xlib.c: Warning suppression.
5761
5762 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5763
5764         * mule-ccl.c: Sync up with Emacs 21.0.90.
5765         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5766         Do nothing.
5767         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5768         Likewise.
5769         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5770         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5771         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5772         leading char belongs to official 2-dimensional charset.
5773         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5774         write the given character as is.  Otherwise,
5775         if it is a multibyte char, convert it by
5776         non_ascii_set_charptr_emchar, then write it.
5777         (CCL_WRITE_STRING): Likewise.
5778         (ccl_get_compiled_code): New function.
5779         (setup_ccl_program): When ccl_prog is invalid,
5780         return -1.
5781         (Fregister_code_conversion_map): New function.
5782         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5783
5784         * mule-ccl.h: Sync up with Emacs 21.0.90.
5785         (Fregister_ccl_program): export it.
5786
5787         * redisplay-msw.c (separate_textual_runs):
5788         If ccl program is not valid, don't do ccl conversion.
5789
5790         * redisplay-x.c (separate_textual_runs): Ditto.
5791
5792         * file-coding.c (Fmake_coding_system):
5793         When type is ccl and value is vector, register it
5794         with a proper symbol.  And checks whether the
5795         given ccl program is valid.
5796         (mule_decode): When calling ccl_driver, if src indicates
5797         NULL pointer, set an empty string instead.
5798         (mule_encode): Likewise.
5799
5800 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5801
5802         The following large batch of changes gets us back to a state of
5803         C++ compilability.  Extbyte is now a char, which means that
5804         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5805
5806         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5807
5808         * sound.c (Fplay_sound): Type correctness.
5809
5810         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5811         (x_get_window_property): Type correctness.
5812         (receive_incremental_selection): unsigned char ==> Extbyte
5813         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5814         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5815         (Fx_store_cutbuffer_internal): Type correctness.
5816
5817         * process-unix.c (try_to_initialize_subtty): Type correctness.
5818
5819         * objects-x.c (x_print_color_instance): Type correctness.
5820         (x_print_font_instance): Type correctness.
5821         (x_list_fonts): SExtbyte ==> Extbyte.
5822         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5823         (x_find_charset_font): SExtbyte ==> Extbyte.
5824         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5825         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5826         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5827         Use bufbyte_strcmp.
5828
5829         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5830         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5831         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5832         (BYTE_C0_P): Use bit ops for char-signedness safety.
5833         (BYTE_C1_P): Use bit ops for char-signedness safety.
5834         (CHARSET_BY_LEADING_BYTE):
5835         (CHARSET_BY_ATTRIBUTES):
5836         Always use inline function.
5837         Use type_checking_assert.
5838         Hide chlook.
5839
5840         * mule-charset.c (non_ascii_charptr_copy_char):
5841         Modify to work with both ASCII and non-ASCII characters.
5842         Improve docs and variable names.
5843         Replace over-clever fall-through switch with a simple loop.
5844         (Lstream_get_emchar_1):
5845         Replace over-clever fall-through switch with a simple loop.
5846
5847         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5848         Warning suppression.
5849
5850         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5851         the return value of Lstream_getc, which could be EOF as well.
5852
5853         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5854
5855         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5856         APIs can be used on Extbytes without casts.  Risky!
5857         (SExtbyte): Remove.
5858         (UExtbyte): Remove.
5859
5860         * input-method-xlib.c (XIM_init_device):
5861         Use Xlib.h instead of IntrinsicP.h.
5862         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5863         which will break in X11R7.
5864         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5865         to call XRegisterIMInstantiateCallback with correct types.
5866
5867         * gui-x.c (button_item_to_widget_value): Type correctness.
5868
5869         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5870
5871         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5872         (xbm_instantiate_1): Type correctness.
5873         (BUILD_GLYPH_INST):  Type correctness.
5874
5875         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5876
5877         * file-coding.c:
5878         (decode_coding_sjis):
5879         (decode_coding_big5):
5880         (decode_coding_ucs4):
5881         (decode_coding_utf8):
5882         (decode_coding_iso2022):
5883         (decode_coding_no_conversion):
5884         Make all decoding functions take an Extbyte * arg.
5885         (encode_coding_sjis):
5886         (encode_coding_big5):
5887         (encode_coding_ucs4):
5888         (encode_coding_utf8):
5889         (encode_coding_iso2022):
5890         (encode_coding_no_conversion):
5891         Make all encoding functions take a Bufbyte * arg.
5892         Use size_t instead of unsigned int for memory sizes.
5893         Only cast to unsigned char whenever dereferencing Extbyte *.
5894
5895         * doc.c (unparesseuxify_doc_string): Type correctness.
5896
5897         * console-x.c (split_up_display_spec):
5898         Rewrite without using details of internal string representation.
5899         (x_semi_canonicalize_device_connection): Type correctness.
5900
5901         * config.h.in:
5902         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5903         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5904         (HAVE_XFREE386): Removed.
5905
5906         * buffer.h (DEC_CHARPTR): `const' correctness.
5907         (bufbyte_strcmp): New.
5908         (bufbyte_memcmp): New.
5909
5910         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5911
5912         * buffer.h (XCHAR_OR_CHAR_INT):
5913         Always use inline function.
5914         Remove redundant type checking assert() - XINT will abort quite nicely.
5915
5916 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5917
5918         * search.c (Freplace_match): Set newtext to an empty string.
5919
5920 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5921
5922         * s/decosf1-3.h: Remove #include of stropts.h
5923         * s/ptx.h: Remove #include of stropts.h
5924         * s/usg5-4.h: Remove #include of stropts.h
5925         * sysproc.h:
5926         * config.h.in:
5927         Use stropts.h, not sys/stropts.h.
5928         Use strtio.h, not sys/strtio.h.
5929
5930 2000-10-04  Martin Buchholz <martin@xemacs.org>
5931
5932         * XEmacs 21.2.36 is released.
5933
5934 2000-09-21  Andy Piper  <andy@xemacs.org>
5935
5936         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5937         changes still involve copying the widget tree.
5938         (update_widget_face): make sure a change is register in the widget
5939         tree. Call update_tab_widget_face appropriately.
5940         (update_tab_widget_face): ditto.
5941         (x_tab_control_redisplay): make sure non-structural changes still
5942         involve copying the widget tree.
5943
5944 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5945
5946         * lread.c (locate_file): Check the path element is non-nil.
5947
5948 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5949
5950         * lisp.h: Warning suppression for SCO compilers.
5951
5952         * redisplay-tty.c (reset_tty_modes): Fix crash.
5953         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5954
5955 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5956
5957         Big signal/process handling overhaul.  Bugs fixed:
5958         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5959         M-x comint-kill-subjob should work for both values nil and t of
5960         process-connection-type. It was broken on most platforms.
5961         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5962         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5963         * process-unix.c: Signal/Process handling overhaul.
5964         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5965         (allocate_pty): Use all available modern methods of allocating
5966         ptys, falling back to old style BSD allocation as a last resort.
5967         Use allegedly more secure Unix98 pty allocation by default.
5968         (allocate_pty_the_old_fashioned_way): New. the last resort.
5969         (unix_create_process): Push ptem, ldterm, ttcompat where
5970         available.  Autoconfiscate.
5971         (try_to_initialize_subtty): New.
5972         (unix_kill_child_process): Proper signal handling for ptys on most
5973         platforms, using special knowledge of AIX, BSD, etc...
5974         (unix_create_process): Always disconnect_controlling_terminal() for
5975         subprocesses, whether using ptys or not.
5976         * process.h: Remove old getpt-dependent PTY code.
5977         * process.c (Fprocess_send_signal): New, obvious generic function.
5978         (decode_signal): New.
5979         (Finterrupt_process):
5980         (Fkill_process):
5981         (Fquit_process):
5982         (Fstop_process):
5983         (Fcontinue_process):
5984         (Fsignal_process): Use decode_signal.
5985         (process_send_signal):
5986         Many docstring corrections.
5987         Allow any signal to be sent to a process object.
5988         * config.h.in: Add symbols for big signal/process overhaul.
5989         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5990         * sysproc.h: Include process-related headers, where available:
5991         sys/stropts.h sys/strtio.h pty.h libutil.h
5992         * s/irix4-0.h:
5993         * s/irix5-0.h:
5994         * s/cygwin32.h:
5995         * s/gnu.h:
5996         * s/linux.h:
5997         * s/hpux.h:
5998         * s/aix3-1.h:
5999         Remove old S&M pty stuff.
6000         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6001         * systty.h: Simplify cpp hackery, improve comments.
6002         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6003
6004         * editfns.c (Fformat_time_string):
6005         Be a little more paranoid with the return value of ctime.
6006
6007         * fileio.c (check_executable):
6008         (check_writable):
6009         Use symbolic constants X_OK, W_OK.
6010
6011         * console-x.c (split_up_display_spec): Fix a warning.
6012
6013 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6014
6015         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6016         * ntproc.c (sys_spawnve): make_string ==> build_string
6017         Small clarity improvements.
6018
6019 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6020
6021         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6022
6023         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6024
6025         * config.h.in (HAVE_STRCASECMP): Remove.
6026
6027 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6028
6029         * redisplay-output.c (redisplay_output_pixmap):
6030         Cleaner and possibly more 64-bit correct code.
6031
6032 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6033
6034         * dumper.c (pdump_load_finish): move restoration of
6035         `noninteractive1' to emacs.c (main_1).
6036         * emacs.c (main_1): protect LISP-visible command-line flags
6037         from pdump_load().
6038
6039 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6040
6041         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6042         DUMP_TARGET instead of literal program names.
6043
6044 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6045
6046         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6047
6048 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6049
6050         * *: Spelling mega-patch
6051
6052 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6053
6054         * fns.c (bad_bad_turtle):
6055         Delete "Eek!" comment, since we fixed the bug to which it refers.
6056
6057 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6058
6059         * alloca.c: Replace REGISTER with register.
6060
6061 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6062
6063         * file-coding.c (ucs_to_char): Use countof.
6064
6065 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6066
6067         * file-coding.c: (ucs_to_char):
6068         (complex_vars_of_file_coding):
6069         Use countof instead of sizeof.
6070         Use CHECK_NATNUM instead of CHECK_INT.
6071
6072         * sysdep.c (strcasecmp): Remove.
6073         * device-x.c (ascii_strcasecmp): New.
6074         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6075         Avoid using non-standard non-portable strcasecmp.
6076
6077 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6078
6079         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6080         * font-lock.c: remove reference to emacsfns.h.
6081         * search.c: small doc improvement.
6082         * event-Xt.c: correct file names in comments.
6083         * console-x.h Correct file names in comments.
6084         * frame.c: Correct file names in comments.
6085         * event-stream.c: remove Energize from comments.
6086
6087 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6088
6089         * symeval.h (DEFERROR_STANDARD):
6090         (DEFERROR):
6091         (DEFSYMBOL):
6092         (DEFSYMBOL_NO_DUMP):
6093         (DEFSYMBOL_MULTIWORD_PREDICATE):
6094         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6095         (DEFKEYWORD):
6096         The construct &##name is not sensible C.
6097         Fixes compilation errors with Unixware native compiler.
6098
6099 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6100
6101         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6102         (next_frame_internal): Removed.  We now just have next_frame.
6103         (next_frame):
6104         Write a simpler and cleaner one-pass algorithm.
6105         Remove called_from_delete_device arg and #ifdefed-out code.
6106         (previous_frame):
6107         Renamed from prev_frame.  Update callers.
6108         Cleaned up to have an analogous implementation to next_frame.
6109         (other_visible_frames_internal): Remove the
6110         called_from_delete_device bogus arg, and hence, remove this
6111         function.  Just use other_visible_frames().
6112
6113         * window.c (Fnext_window):
6114         Prettify docstring.
6115         Since next_frame() is guaranteed to return a frame, remove check
6116         for nil inserted in previous patch.
6117         (Fprevious_window):
6118         Prettify docstring.
6119         Make code look more like Fnext_window.
6120         (window_loop):
6121         Respect the `console' arg when iterating through windows.
6122         Fixes bug: (get-buffer-window buffer t device) not respecting
6123         the `device' arg.
6124         This function needs more work, as others have pointed out.
6125
6126         * frame.h: Rename prev_frame to previous_frame.
6127         device_matches_console_spec no longer takes a `frame' arg.
6128
6129         * s/gnu.h:
6130         * s/linux.h:
6131         * s/hpux.h:
6132         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6133         From "Golubev I. N." <gin@mo.msk.ru>.
6134
6135         * make-src-depend: Fix typo.
6136
6137 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6138
6139         * window.c (Fnext_window):
6140         next_frame() might return nil, not a frame.
6141         Fixes this crash:
6142         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6143
6144         * frame.c (next_frame_internal):
6145         We've passed a frame if we've passed its device.
6146         Fixes this crash:
6147         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6148 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6149
6150 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6151
6152         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6153         Allow option to suppress accelerators in menu/dialog items.
6154         (populate_or_checksum_helper): Pass dialog title through above.
6155
6156 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6157
6158         * event-msw.c (mswindows_key_to_emacs_keysym):
6159         Add "pause" key, fix "menu" key.
6160
6161 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6162
6163         * eval.c (reinit_vars_of_eval):
6164         Increase max_lisp_eval_depth to 1000,
6165         required for thai-xtis.el to byte-compile under some circumstances.
6166
6167 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6168
6169         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6170         From Kenichi Handa.
6171
6172 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6173
6174         * make-src-depend: Make the generated Makefiles smaller.
6175
6176         * s/hpux.h (SETUP_SLAVE_PTY):
6177         Provide a %d in the format string for the errno argument.
6178
6179         * editfns.c (Ftemp_directory):
6180         Warning fix.
6181         Avoid buffer overrun on very long file name.
6182
6183         * input-method-xlib.c (XIM_init_device):
6184         6th parameter of XRegisterIMInstantiateCallback has different
6185         pointer types on different OSes, so simply cast to (void *).
6186
6187         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6188
6189         * sysdll.c (dll_open):
6190         shl_load will hang hard if passed a NULL filename.
6191         Simply return NULL for compatibility with dlopen.
6192         * sysdll.c: Conform to XEmacs coding standards.
6193
6194         * sysdep.c (get_pty_max_bytes):
6195         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6196
6197 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6198
6199         * tooltalk.c: Add #include <syssignal.h>
6200
6201 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6202
6203         * s/hpux.h: Don't use undefined function sigunblock().
6204
6205 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6206
6207         * config.h.in: Add HAVE_BALLOON_HELP.
6208         * emacs.c: Use HAVE_BALLOON_HELP.
6209         * Makefile.in.in (x_objs):
6210         Make Balloon Help conditional on finding shape.h.
6211
6212 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6213
6214         * syntax.c (regex_emacs_buffer_p): New variable.
6215         * syntax.h (regex_emacs_buffer_p): extern.
6216         * search.c (looking_at_1):
6217         (string_match_1):
6218         (fast_string_match):
6219         (search_buffer): Set regex_emacs_buffer_p.
6220         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6221         when before_dot, at_dot, after_dot.
6222
6223 2000-08-23  Andy Piper  <andy@xemacs.org>
6224
6225         * gui-x.c (popup_selection_callback): Only set action_occurred
6226         when we really have an image instance.
6227         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6228
6229 2000-08-23  Andy Piper  <andy@xemacs.org>
6230
6231         * gui-msw.c (mswindows_handle_gui_wm_command): set
6232         action_occurred.
6233         * gui-x.c (popup_selection_callback): ditto.
6234
6235         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6236         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6237         (struct Lisp_Image_Instance): add action_occurred flag.
6238
6239         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6240         (image_instance_changed): ditto.
6241         (reset_frame_subwindow_instance_cache): only unmap windows - do
6242         not remove them from the cache also.
6243
6244         * glyphs-widget.c (tab_control_update): better debug.
6245         (progress_gauge_update): ditto.
6246         (layout_update): ditto.
6247         (layout_instantiate): ditto.
6248         (tab_control_order_only_changed): cope with null pending items.
6249
6250         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6251         debug. Force selection of an item when an action occurred. Cope
6252         with null pending_items.
6253         (mswindows_progress_gauge_redisplay): better debug.
6254         * glyphs-x.c (x_tab_control_redisplay): ditto.
6255
6256         * redisplay.c (redisplay_frame): reset the frame cache if the
6257         frame is garbaged.
6258
6259         * window.c (Fset_window_configuration): potentially re-enable
6260         frame cache reset.
6261         (window_unmap_subwindows): need to finalize instances here since
6262         it is only used in mark_window_as_deleted.
6263
6264 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6265
6266         * nas.c (SndOpenDataForReading):
6267         nas.c (WaveOpenDataForReading):
6268         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6269         Somehow escaped from the 2000-08-14 patch.
6270
6271 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6272
6273         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6274         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6275
6276 2000-08-21  Andy Piper  <andy@xemacs.org>
6277
6278         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6279         window if it is not already displayed.
6280
6281         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6282         it is not already displayed.
6283
6284         * window.c (Fset_window_configuration): don't reset the frame
6285         cache.
6286
6287         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6288         instances from the frame cache if we are actually finalizing them.
6289         (reset_frame_subwindow_instance_cache): reset frame cache only
6290         after unmapping everything.
6291         (map_subwindow): set displayed flag after mapping.
6292
6293 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6294
6295         * data.c (indirect_function):
6296         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6297
6298         * eval.c (function_argcount):
6299         Use original function when signaling errors.
6300
6301 2000-08-18  Andy Piper  <andy@xemacs.org>
6302
6303         * frame.c (delete_frame_internal): use new
6304         free_frame_subwindow_instances name.
6305
6306         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6307         (add_tab_item): make return type correct.
6308         (mswindows_tab_control_instantiate): assert index of tab.
6309         (mswindows_tab_control_redisplay): Re-code to use
6310         gui_item_equal_sans_selected and gui_item_list_find_selected.
6311
6312         * glyphs-widget.c (tab_control_update): Correct comment.
6313
6314         * window.c (window_unmap_subwindows): use new
6315         unmap_subwindow_instance_cache_mapper.
6316         (window_unmap_subwindows_cache_mapper): deleted.
6317         (Fset_window_configuration): comparisons should now be with
6318         EQ. Preserve the subwindow instance cache across configuration
6319         changes.
6320         (allocate_window): ditto.
6321         (make_dummy_parent): ditto.
6322
6323         * glyphs.c (free_frame_subwindow_instances): rename from
6324         free_frame_subwindow_instance_cache. finalize all instances rather
6325         than just those in the display cache.
6326         (finalize_all_subwindow_instances): walk windows unmapping and
6327         finalizing subwindows.
6328         (unmap_subwindow_instance_cache_mapper): moved from
6329         window.c. Allow finalization as well as unmapping.
6330
6331         * gui.c (gui_item_list_find_selected): new function.
6332
6333         * gui.h (gui_item_list_find_selected): declare.
6334
6335         * glyphs-x.c (x_tab_control_redisplay): pick tab
6336         explicitly. Re-code to use gui_item_equal_sans_selected and
6337         gui_item_list_find_selected.
6338
6339         * glyphs-x.h: add lwlib-utils.h
6340
6341         * buffer.c (Frecord_buffer): undo previous change.
6342
6343 2000-08-09  Vin Shelton  <acs@xemacs.org>
6344
6345         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6346         possible.  Create temporary files more securely.  The patch was
6347         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6348         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6349         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6350         for details.
6351
6352 2000-08-07  Ben Wing  <ben@xemacs.org>
6353
6354         * getloadavg.c: remove duplicate (and windows-breaking)
6355         includes of fcntl.h and sys/file.h.
6356
6357         * nt.c: remove duplicate getloadavg() definition.
6358
6359         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6360         encodings.
6361
6362 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6363
6364         * eval.c (function_argcount): If function needs to be autoloaded
6365         actually use the loaded definition.
6366         GCPRO function.
6367
6368 2000-08-05  Ben Wing  <ben@xemacs.org>
6369
6370         * getloadavg.c: add prototype for getloadavg().  remove
6371         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6372         of the code).  remove duplicate header includes.
6373
6374         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6375
6376         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6377         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6378         useful load average.
6379
6380         * alloc.c (reinit_alloc_once_early): removed references to
6381         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6382         the lisp vars are the only things referencing the malloc_sbrk_*
6383         vars, and they were already if 0'd out.  these vars only exist
6384         in the older malloc.c, which is basically unused, and they're
6385         only for informational purposes.
6386
6387         * m\*.h: removed useless VIRT_ADDR_VARIES.
6388
6389         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6390
6391 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6392
6393         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6394         color if the image is a mono pixmap.
6395
6396 2000-07-30  Ben Wing  <ben@xemacs.org>
6397
6398         * Makefile.in.in (release):
6399         Remove stray @.
6400
6401         * buffer.c (directory_is_current_directory):
6402         * dired-msw.c (mswindows_get_files):
6403         * dired.c:
6404         * dired.c (Fdirectory_files):
6405         * dired.c (file_name_completion_stat):
6406         * dired.c (Ffile_attributes):
6407         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6408         preprocessor tricks, to avoid problems on some machines
6409         (e.g. SCO).
6410
6411         * callproc.c (egetenv): GC docs.
6412
6413         * console-msw.h:
6414         * console-msw.h (struct mswindows_dialog_id):
6415         * lrecord.h (lrecord_type):
6416         New object for use with MSW dialogs.
6417
6418         * console.h (struct console_methods):
6419         New enable/disable frame methods, for proper modal dialogs.
6420
6421         * device-msw.c (msprinter_default_printer): Fix to follow
6422         proper Mule conventions.
6423
6424         * device-msw.c:
6425         * device-msw.c (signal_open_printer_error):
6426         * device-msw.c (msprinter_init_device):
6427         * device-msw.c (ensure_not_printing):
6428         * device-msw.c (plist_get_margin):
6429         * device-msw.c (Fmsprinter_select_settings):
6430         * device-msw.c (finalize_devmode):
6431         * device-msw.c (Fmsprinter_settings_despecialize):
6432         * device-msw.c (signal_enum_priner_error):
6433         * extents.c (decode_extent):
6434         * extents.c (decode_map_extents_flags):
6435         * extents.c (decode_extent_at_flag):
6436         * extents.c (Fextent_at):
6437         * extents.c (Fextents_at):
6438         * extents.c (symbol_to_glyph_layout):
6439         [[[[2]]]] Use structured errors.
6440
6441         * dialog-msw.c:
6442         * dialog-msw.c (mswindows_is_dialog_msg):
6443         * dialog-msw.c (mark_mswindows_dialog_id):
6444         * dialog-msw.c (dialog_proc):
6445         * dialog-msw.c (handle_question_dialog_box):
6446         * dialog-msw.c (syms_of_dialog_mswindows):
6447         Define new object to clean up marking; use it as a dialog identifier.
6448         Call new delete-dialog-box-hook.
6449
6450         * dialog-x.c (dbox_selection_callback):
6451         * dialog-x.c (dbox_descriptor_to_widget_value):
6452         * dialog-x.c (x_make_dialog_box_internal):
6453         Call new delete-dialog-box-hook.
6454         Return an id.
6455
6456         * dialog.c:
6457         * dialog.c (syms_of_dialog):
6458         * dialog.c (vars_of_dialog):
6459         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6460
6461         * eval.c:
6462         * eval.c (signal_call_debugger):
6463         when noninteractive, output stack traces on the console instead
6464         of in a (never-seen) buffer.
6465
6466         * eval.c (signal_type_error):
6467         * eval.c (invalid_argument_2):
6468         * lisp.h:
6469         new funs for use w/structured errors.
6470
6471         * event-Xt.c:
6472         * event-Xt.c (x_to_emacs_keysym):
6473         * event-Xt.c (describe_event):
6474         * event-Xt.c (emacs_Xt_event_handler):
6475         * event-Xt.c (vars_of_event_Xt):
6476         * event-msw.c:
6477         * event-msw.c (mswindows_wnd_proc):
6478         * event-msw.c (vars_of_event_mswindows):
6479         rename {x,mswindows}-debug-events to debug-{}-events for
6480         consistency with other debug-foo variables.
6481
6482         * event-stream.c:
6483         document next-event more clearly.
6484
6485         * fileio.c (Ffile_name_directory):
6486         * fileio.c (Ffile_name_nondirectory):
6487         * fileio.c (Funhandled_file_name_directory):
6488         * fileio.c (file_name_as_directory):
6489         * fileio.c (Ffile_name_as_directory):
6490         * fileio.c (directory_file_name):
6491         * fileio.c (Fdirectory_file_name):
6492         * fileio.c (Fmake_temp_name):
6493         * fileio.c (Ffile_truename):
6494         * fileio.c (Fsubstitute_in_file_name):
6495         * fileio.c (expand_and_dir_to_file):
6496         * fileio.c (barf_or_query_if_file_exists):
6497         * fileio.c (check_executable):
6498         * fileio.c (Ffile_exists_p):
6499         * fileio.c (Ffile_writable_p):
6500         * fileio.c (Ffile_directory_p):
6501         * fileio.c (Ffile_regular_p):
6502         * fileio.c (Ffile_modes):
6503         * fileio.c (Ffile_newer_than_file_p):
6504         * fileio.c (Fverify_visited_file_modtime):
6505         * fileio.c (Fset_visited_file_modtime):
6506         * fileio.c (auto_save_1):
6507         (1). (2).
6508         fix up gcpro's.
6509
6510         * frame-msw.c:
6511         * frame-msw.c (mswindows_init_frame_1):
6512         * frame-msw.c (mswindows_enable_frame):
6513         * frame-msw.c (error_frame_unsizable):
6514         * frame-msw.c (msprinter_init_frame_1):
6515         * frame-msw.c (msprinter_init_frame_3):
6516         * frame-msw.c (console_type_create_frame_mswindows):
6517         (2).
6518         implement new enable/disable frame methods.
6519
6520         * frame-x.c:
6521         * frame-x.c (x_enable_frame):
6522         * frame-x.c (console_type_create_frame_x):
6523         implement new enable/disable frame methods.
6524
6525         * frame.c:
6526         * frame.c (Fdisable_frame):
6527         * frame.c (syms_of_frame):
6528         * frame.h (struct frame):
6529         implement new enable/disable frame methods/functions.
6530
6531         * general-slots.h:
6532         add initial-focus.
6533
6534         * glyphs-msw.c (mswindows_widget_instantiate):
6535         comment that initial-focus should be implemented.
6536
6537         * glyphs-widget.c:
6538         * glyphs-widget.c (check_valid_instantiator):
6539         * glyphs-widget.c (check_valid_orientation):
6540         * glyphs-widget.c (check_valid_tab_orientation):
6541         * glyphs-widget.c (check_valid_justification):
6542         * glyphs-widget.c (check_valid_border):
6543         * glyphs-widget.c (check_valid_callback):
6544         * glyphs-widget.c (check_valid_int_or_function):
6545         * glyphs-widget.c (check_valid_string_or_vector):
6546         * glyphs-widget.c (check_valid_item_list_1):
6547         * glyphs-widget.c (widget_validate):
6548         * glyphs-widget.c (combo_box_validate):
6549         * glyphs-widget.c (widget_instantiate):
6550         * glyphs-widget.c (syms_of_glyphs_widget):
6551         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6552         * glyphs-widget.c (image_instantiator_combo_box):
6553         * glyphs-widget.c (image_instantiator_scrollbar):
6554         * glyphs-widget.c (image_instantiator_tab_control):
6555         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6556         (2).
6557         support (unimplemented) keyword initial-focus.
6558         reindent long macros.
6559
6560         * glyphs-x.c (x_redisplay_widget):
6561         * glyphs-x.c (x_button_instantiate):
6562         * glyphs-x.c (x_button_redisplay):
6563         * glyphs-x.c (x_progress_gauge_instantiate):
6564         * glyphs-x.c (x_edit_field_instantiate):
6565         * glyphs-x.c (x_combo_box_instantiate):
6566         * glyphs-x.c (x_tab_control_instantiate):
6567         * glyphs-x.c (x_label_instantiate):
6568         * gui-x.c:
6569         * gui-x.c (button_item_to_widget_value):
6570         * gui-x.c (gui_items_to_widget_values_1):
6571         * gui-x.c (gui_item_children_to_widget_values):
6572         * gui-x.c (gui_items_to_widget_values):
6573         * gui-x.h:
6574         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6575         add new flag to gui-parsing routines to indicate whether
6576         accelerator specs should be supported.
6577
6578         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6579
6580         * glyphs.h (struct Lisp_Image_Instance):
6581         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6582         add initial-focus flag.
6583
6584         * gui.c:
6585         * gui.c (syms_of_gui):
6586         * gui.c (vars_of_gui):
6587         clean up menu-no-selection-hook.
6588
6589         * gui.h:
6590         support delete-dialog-box-hook.
6591
6592         * lread.c (Fload_internal):
6593         * lread.c (locate_file_in_directory_mapper):
6594         (1).
6595
6596         * lrecord.h:
6597         * lrecord.h (struct toolbar_button):
6598         * lrecord.h (syms_of_toolbar):
6599         document how to create a new object.
6600
6601         * menubar-msw.c (mswindows_char_is_accelerator):
6602         may be called on frames w/o menus.
6603
6604         * menubar.c (vars_of_menubar):
6605         clean up :filter docs.
6606
6607         * nt.c (readdir):
6608         * ntproc.c:
6609         (1).
6610
6611         * process-nt.c:
6612         * process-nt.c (validate_signal_number):
6613         * process-nt.c (signal_cannot_launch):
6614         * process-nt.c (nt_create_process):
6615         * process-nt.c (nt_send_process):
6616         * process-nt.c (nt_kill_child_process):
6617         * process-nt.c (nt_open_network_stream):
6618         * process-nt.c (syms_of_process_nt):
6619         (2).
6620         delete quote-handling.  call new lisp code that does it better.
6621
6622         * process-unix.c (connect_to_file_descriptor):
6623         * process-unix.c (allocate_pty):
6624         * process-unix.c (unix_send_process):
6625         * process-unix.c (unix_kill_child_process):
6626         * process-unix.c (unix_open_network_stream):
6627         * process-unix.c (unix_open_multicast_group):
6628         (1). (2).
6629
6630         * process.c:
6631         * process.c (Fstart_process_internal):
6632         (2).  need to canonicalize process path even if absolute.
6633
6634         * select-msw.c (symbol_to_ms_cf):
6635         * select-msw.c (ms_cf_to_symbol):
6636         * select-msw.c (cf_is_autofreed):
6637         * select-msw.c (mswindows_destroy_selection):
6638         * select.c:
6639         * select.c (syms_of_select):
6640         * select.h:
6641         support dibv5, fix bugs. (from Mike Alexander)
6642
6643         * select.c (Fget_selection_internal):
6644         * select.c (select_convert_out):
6645
6646         * sysdep.c:
6647         * sysdep.c (xemacs_stat):
6648         renamed.
6649
6650         * sysdep.c (mkdir):
6651         * sysdep.c (rmdir):
6652         but keep original stat() here because we provide encapsulation
6653         around these funs.
6654
6655         * sysfile.h:
6656         * sysfile.h (fstat):
6657         remove stat garbage.
6658
6659         * syswindows.h:
6660         fix X/MSW conflict.
6661         don't include tchar.h.  it's inappropriate because it makes
6662         compile-time distinctions when we want runtime distinctions.
6663         (we provide our own tchar replacements)
6664
6665         * toolbar.c:
6666         use default object printer for toolbar-button.
6667
6668         * unexcw.c:
6669         make sure we don't encapsulate.
6670
6671         * window.c (vars_of_window):
6672         emphasize that temp-buffer-show-hook is obsolete.
6673
6674 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6675
6676         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6677         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6678
6679         * events.c (Fevent_timestamp_lessp):
6680         Not 64-bit clean.  Use EMACS_INT, not int.
6681
6682 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6683
6684         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6685         unsigned int and changed the last enum to
6686         lrecord_type_last_built_in_type.
6687         (lrecord_implementations_table): changed prototype to know how
6688         long the array is supposed to be.
6689         (lrecord_type_count): new unsigned int to keep track of the
6690         current number of lisp lrecord types.
6691         (DEFINE_EXTERNAL_LRECORD):
6692         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6693         dynamic-modules to declare new lisp types. They are the same
6694         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6695         int for each new type, and increment lrecord_type_count by 1.
6696
6697         * alloc.c (lrecord_implementations_table): Changed to reference
6698         lrecord_type_last_built_in_type for the size of the array.
6699         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6700
6701 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6702
6703         * glyphs.h (check_valid_item_list): Renamed from
6704         check_valid_item_list_1.
6705
6706 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6707
6708         * select.c (Qselect_coerce): New.
6709         * select.c (Vselection_coercion_alist): New.
6710         * select.c (syms_of_select): Declare.
6711         * select.c (get-selection-internal): Use it.
6712         Use the new select-coerce functionality.
6713
6714         * select.c (select_coerce): New.
6715         * select.h (select_coerce): Declare.
6716         New function to coerce one type of data into another.
6717
6718 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6719
6720         * callproc.c (Fcall_process_internal):
6721         (Fcall_process_internal):
6722         * process-unix.c (unix_create_process):
6723         Save and restore the value of errno, so that error messages are accurate.
6724
6725 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6726
6727         * elhash.c (print_hash_table):
6728         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6729         Prettify docstrings and indentation.
6730
6731 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6732
6733         * window.c (Fwindow_pixel_edges): Subtract frame border and
6734         gutter size.
6735
6736 2000-07-31  Andy Piper  <andy@xemacs.org>
6737
6738         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6739         will acknowledge the change.
6740
6741         * glyphs.h: declare tab_control_order_only_changed.
6742
6743         * glyphs-x.c (x_tab_control_redisplay): use
6744         tab_control_order_only_changed.
6745
6746         * glyphs-widget.c (tab_control_order_only_changed): new function.
6747
6748         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6749         tab_control_order_only_changed.
6750
6751         * gui.c (gui_item_equal_sans_selected): new function.
6752         (gui_item_equal): use it.
6753
6754         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6755         :properties in favor of :items..
6756
6757         * glyphs-widget.c (check_valid_item_list): rename from
6758         check_valid_item_list_1.
6759         (check_valid_item_list_1): renamed.
6760         (combo_box_validate): deprecate :properties in favor of :items.
6761         (widget_instantiate): ditto.
6762         (tab_control_update): ditto.
6763         (image_instantiator_combo_box): ditto.
6764         (image_instantiator_tree_view): ditto.
6765         (image_instantiator_tab_control): ditto.
6766         (layout_post_instantiate): remove dead code.
6767
6768         * print.c (debug_print_no_newline): only write to debugger if in
6769         WIN32_NATIVE.
6770
6771         * elhash.c (Fmake_hash_table): update doc string.
6772
6773         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6774         messages whilst in GC. This at least stops XEmacs crashing but has
6775         the potential for wierd behaviour.
6776
6777 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6778
6779         * config.h.in:
6780         Make existence of s&m files optional.
6781
6782         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6783         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6784         * s/gnu.h: Remove HAVE_GETLOADAVG.
6785         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6786         * s/sol2.h: Remove HAVE_GETLOADAVG.
6787         * lisp.h: Remove getloadavg() declaration.
6788         * fns.c:
6789         Include <sys/loadavg.h> if available.
6790         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6791         * config.h.in:  Group together getloadavg()-related macros.
6792         Use only configure-time tests to detect getloadavg().
6793
6794 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6795
6796         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6797
6798 2000-07-25  Andy Piper  <andy@xemacs.org>
6799
6800         * syswindows.h: add tchar.h for native builds.
6801
6802         * frame.c (syms_of_frame): remove set-glyph-image.
6803
6804         * general-slots.h: add Qset_glyph_image.
6805
6806         * glyphs-widget.c (layout_update): add domain arg to
6807         set-glyph-image.
6808         (syms_of_glyphs_widget): remove set-glyph-image.
6809
6810 2000-07-23  Ben Wing  <ben@xemacs.org>
6811
6812         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6813         Vpopup_frame_list.
6814
6815 2000-07-22  Andy Piper  <andy@xemacs.org>
6816
6817         * symsinit.h: add syms_of_win32().
6818
6819         * gui-msw.c (syms_of_gui_mswindows): remove
6820         Fmswindows_shell_execute.
6821         (Fmswindows_shell_execute): moved to win32.c.
6822
6823         * emacs.c (main_1): add syms_of_win32 ().
6824
6825         * win32.c (init_potentially_nonexistent_functions): rewrite in
6826         compiler-friendly terms.
6827         (Fmswindows_shell_execute): move here from gui-msw.c.
6828         (syms_of_win32): new.
6829
6830         * device-msw.c (Fmswindows_printer_list): clean up args to
6831         EnumPrinters.
6832         Don't include tchar under cygwin or mingw.
6833         (msprinter_default_printer): make cygwin-friendly.
6834
6835 2000-07-21  Andy Piper  <andy@xemacs.org>
6836
6837         * glyphs-widget.c (image_instantiator_tree_view): use tab
6838         control's update function.
6839         (layout_property): new function. Retrieve items.
6840
6841         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6842         function. Re-populate the tree view from the pending items.
6843
6844         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6845         is designated the parent if the domain is an image instance. This
6846         is needed so that dirtiness can be cascade up the hierarchy and
6847         thus for layout children to be redisplayed correctly.
6848         (allocate_image_instance): rename glyph -> parent.
6849
6850         * redisplay.h: change redisplay_output_layout signature.
6851
6852         * redisplay-msw.c (mswindows_output_display_block): use domain
6853         arg.
6854
6855         * redisplay-x.c (x_output_display_block): use domain arg.
6856
6857 2000-07-10  Andy Piper  <andy@xemacs.org>
6858
6859         * window.c (Fset_window_configuration): add comment.
6860
6861         * redisplay-output.c (compare_runes):
6862         (redisplay_output_subwindow): redisplay rather than update subwindow.
6863         (redisplay_output_layout): ditto.
6864
6865         * redisplay-msw.c (mswindows_frame_output_end):
6866         (mswindows_frame_output_end): make defer window pos optional.
6867
6868         * lisp.h: add Flast.
6869
6870         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6871         normalize method. Change update method to be for changed
6872         instantiators. Add redisplay method. Change signature of layout
6873         method.
6874         (struct Lisp_Image_Instance): add instantiator.
6875         (IMAGE_INSTANCE_INSTANTIATOR): new.
6876         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6877         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6878         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6879
6880         * glyphs.c:
6881         (find_instantiator_differences): new function.
6882         (Fset_instantiator_property): new convenience function.
6883         (check_image_instance_structure): strictly check for vector
6884         instantiators.
6885         (normalize_image_instantiator): make non-static.
6886         (instantiate_image_instantiator): pass on dest_mask and use new
6887         signatures for image_instance_layout and friends.
6888         (mark_image_instance): mark the instantiator. Mark the subwindow
6889         face not the widget face.
6890         (image_instance_equal): add instantiator.
6891         (image_instance_hash): ditto.
6892         (allocate_image_instance): ditto.
6893         (Fset_image_instance_property): removed.
6894         (Fimage_instance_file_name): ditto.
6895         (Fcolorize_image_instance): ditto.
6896         (image_instance_layout): add offsets to be set.
6897         (update_image_instance): new function. update an image instance
6898         from its changed instantiator.
6899         (inherit_normalize): add dest_mask.
6900         (xbm_normalize): ditto.
6901         (xface_normalize): ditto.
6902         (xpm_normalize): ditto.
6903         (text_update): set_property -> update.
6904         (image_instantiate): use the glyph identity as a hash key, not the
6905         instantiator.
6906         (glyph_width): use new image_instance_layout signature.
6907         (glyph_ascent): ditto.
6908         (glyph_descent): ditto.
6909         (glyph_height): ditto.
6910         (glyph_query_geometry): ressurrect.
6911         (glyph_layout): ditto.
6912         (redisplay_subwindow): update -> redisplay.
6913         (syms_of_glyphs): add Fset_instantiator_property.
6914         (image_instantiator_format_create): set_property -> update.
6915
6916         * glyphs-x.c:
6917         (autodetect_normalize): add dest_maks to signature.
6918         (x_redisplay_subwindow): update -> redisplay.
6919         (x_redisplay_widget): ditto.
6920         (x_button_redisplay): ditto.
6921         (x_progress_gauge_redisplay): ditto.
6922         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6923         stacking order.
6924         (console_type_create_glyphs_x): update -> redisplay.
6925         (image_instantiator_format_create_glyphs_x): ditto.
6926
6927         * glyphs-widget.c:
6928         (check_valid_instantiator): disallow glyphs in the instantiator,
6929         they must now be vectors.
6930         (check_valid_instantiator_list): ditto.
6931         (glyph_instantiator_to_glyph): use internal symbol rather than
6932         intern.
6933         (widget_update): renamed from widget_set_property. Call cascaded
6934         update methods.
6935         (redisplay_widget): renamed from update_widget.
6936         (widget_layout): image_instance_layout now takes position as well
6937         as size.
6938         (widget_normalize): ditto.
6939         (widget_instantiate): ditto.
6940         (tab_control_query_geometry) ditto.:
6941         (tab_control_update): renamed from tab_control_set_property.
6942         (progress_gauge_update): set_property -> update.
6943         (layout_normalize): rewrite so that child instantiators are
6944         normalized also.
6945         (layout_update): new function. Create glyphs from the normalized
6946         children and cope with any other layout keywords. We do not
6947         instantiate children here that will be take care of by
6948         redisplay_output_layout.
6949         (layout_instantiate): call layout_update and not much else.
6950         (layout_post_instantiate): not sure whether this is needed
6951         anymore.
6952         (layout_query_geometry): query glyph geometry rather than
6953         image_instance geometry.
6954         (layout_layout): set offsets from pass in parameters. Use glyph
6955         geometry and layout functions rather than image instance ones.
6956         (native_layout_layout): ditto.
6957         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6958         (image_instantiator_widget): set_property -> update.
6959         (image_instantiator_buttons): ditto.
6960         (image_instantiator_progress_guage): ditto.
6961         (image_instantiator_tab_control): ditto.
6962         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6963         (image_instantiator_layout): add update method.
6964
6965         * glyphs-msw.c (bmp_normalize):
6966         (mswindows_resource_normalize): add dest_mask so that it can be
6967         proprogated by layout_normalize.
6968         (begin_defer_window_pos): make optional because it may not be the
6969         right thing to do and it introduces differences with X.
6970         (mswindows_unmap_subwindow): ditto.
6971         (mswindows_map_subwindow): ditto.
6972         (mswindows_redisplay_subwindow): renamed from
6973         mswindows_update_subwindow.
6974         (mswindows_redisplay_widget): ditto.
6975         (mswindows_button_redisplay): renamed from
6976         mswindows_button_update. Update is now what the instantiation
6977         function does for a changed instantiator.
6978         (mswindows_progress_gauge_instantiate): set the progress value
6979         here if appropriate.
6980         (mswindows_tab_control_redisplay): cope with re-ordering of the
6981         members of the tab widget by simply selecting the new top
6982         widget. This makes things appear ok if you click on a tab.
6983         (mswindows_combo_box_instantiate): image_instance_layout now takes
6984         position as well as size.
6985         (mswindows_progress_gauge_redisplay): renamed from
6986         mswindows_progress_gauge_update.
6987         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6988         (image_instantiator_format_create_glyphs_mswindows): ditto.
6989
6990         * glyphs-eimage.c (jpeg_normalize):
6991         (gif_normalize):
6992         (png_normalize):
6993         (tiff_normalize): add dest_mask so that it can be proprogated by
6994         layout_normalize.
6995
6996         * elhash.c:
6997         (print_hash_table):
6998         (hash_table_weakness_validate):
6999         (decode_hash_table_weakness):
7000         (Fhash_table_weakness):
7001         (Fhash_table_type):
7002         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7003
7004         * console.h (struct console_methods): move update_* to
7005         redisplay_*.
7006
7007 2000-07-20  Ben Wing  <ben@xemacs.org>
7008
7009         * *.[ch] (XSETOBJ): remove unused middle argument.
7010         lisp-disunion.h: correct wrap_object() to one argument.
7011
7012 2000-07-15  Ben Wing  <ben@xemacs.org>
7013
7014         * s/cygwin32.h:
7015         * s/cygwin32.h (CYGWIN_CONV_PATH):
7016         Add missing logb prototype for v1.1.
7017         Use post-b20 names and alias to pre-b20 names when pre-b20.
7018
7019         * s/windowsnt.h: [5].
7020
7021 2000-07-15  Ben Wing  <ben@xemacs.org>
7022
7023         * Makefile.in.in (x_objs):
7024         * Makefile.in.in (sheap_objs):
7025         * Makefile.in.in (objs):
7026         added win32.o, cosmetic cleanups.
7027
7028         * alloc.c (Fmake_byte_code):
7029         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7030         etc. macros which declare their own args now.
7031
7032         * alloc.c (syms_of_alloc):
7033         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7034
7035         * buffer.c:
7036         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7037
7038         * buffer.c (Fget_file_buffer):
7039         Fixed GCPRO problem.
7040
7041         * buffer.c (get_truename_buffer):
7042         Fixed comment about GC checking.
7043
7044         * buffer.c (syms_of_buffer):
7045         Undeclared those dedicated frame funs.
7046         [2].
7047
7048         * buffer.h:
7049         Define convenience macros for internal/external conversions.
7050         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7051         and Qenvironment_variable_encoding for cleaner code.
7052
7053         * bufslots.h:
7054         Remove dedicated-frame; in lisp.
7055
7056         * bytecode.c (funcall_compiled_function):
7057         [1].
7058
7059         * bytecode.c (syms_of_bytecode):
7060         [2].
7061
7062         * console-msw.c:
7063         * console-msw.c (mswindows_show_console): Rewrote.
7064
7065         * console-msw.c (Fmswindows_debugging_output): New.
7066         Sends to OutputDebugString (special MSWin debugger interface).
7067
7068         * console-msw.c (Fmswindows_message_box):
7069         Fixed stupid bugs so it works when called from kill-emacs.
7070
7071         * console-msw.c (syms_of_console_mswindows):
7072         Declare Fmswindows_debugging_output.
7073
7074         * console-msw.h:
7075         New MSWin prototypes.
7076
7077         * console-msw.h (struct mswindows_frame):
7078         New entry last-click-mods for improved button-modifier support.
7079
7080         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7081         New struct entry `popup' with corresponding accessor.
7082
7083         * console-x.c:
7084         * console-x.c (split_up_display_spec):
7085         * console-x.c (get_display_arg_connection):
7086         * console-x.c (x_semi_canonicalize_console_connection):
7087         * console-x.c (x_canonicalize_device_connection):
7088         [[[6]]]: Change char to more specific type.
7089         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7090
7091         * console-x.c (x_semi_canonicalize_console_connection):
7092         * console-x.c (x_canonicalize_device_connection):
7093         [[[9]]]: Fix up error signalling to use new structured error system.
7094
7095         * console-x.h:
7096         [[[4]]]: Define codesys aliases:
7097         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7098         Qx_color_name_encoding, Qx_display_name_encoding.
7099
7100         * console.h (struct console_methods):
7101         New method make_dialog_box_internal supersedes older
7102         popup_dialog_box method.
7103
7104         * data.c:
7105         Define many new errors, part of new structured errors.
7106
7107         * data.c (init_errors_once_early):
7108         * data.c (syms_of_data):
7109         [2].
7110
7111         * device-msw.c (mswindows_init_device):
7112         [[[5]]]: Cleanup to support NT 3.51.
7113
7114         * device-msw.c (decode_devmode): Cleanup.
7115
7116         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7117         * device-msw.c (mswindows_handle_print_dialog_box):
7118         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7119         * device-msw.c (syms_of_device_mswindows):
7120         Delete the dialog box primitives recently introduced by Kirill and
7121         instead interface to general dialog box interface.
7122
7123         * device-x.c:
7124         * device-x.c (compute_x_app_name):
7125         * device-x.c (x_init_device):
7126         * device-x.c (Fx_valid_keysym_name_p):
7127         * device-x.c (Fx_set_font_path):
7128         [6].
7129         [7].
7130
7131         * device.h (wrap_device): New.
7132         First of its kind; meant to replace XSETDEVICE.
7133
7134         * dialog-msw.c: Many file-dialog symbols.
7135
7136         * dialog-msw.c (mswindows_register_popup_frame): New.
7137         * dialog-msw.c (mswindows_is_dialog_msg): New.
7138         For supporting kbd traversal in dialog boxes.
7139
7140         * dialog-msw.c (dialog_proc):
7141         Support hitting ESC in dialogs.
7142
7143         * dialog-msw.c (struct):
7144         Common dialog box errors.
7145
7146         * dialog-msw.c (handle_file_dialog_box): New.
7147         Add file dialog code.
7148
7149         * dialog-msw.c (handle_question_dialog_box):
7150         Redo existing code to support new question dialog syntax.
7151
7152         * dialog-msw.c (console_type_create_dialog_mswindows):
7153         We support new dialog console method.
7154
7155         * dialog-msw.c (syms_of_dialog_mswindows):
7156         * dialog-msw.c (vars_of_dialog_mswindows):
7157         New file dialog symbols, vars.
7158
7159         * dialog-x.c:
7160         * dialog-x.c (maybe_run_dbox_text_callback):
7161         * dialog-x.c (dbox_descriptor_to_widget_value):
7162         * dialog-x.c (x_make_dialog_box_internal):
7163         * dialog-x.c (console_type_create_dialog_x):
7164         Mule-ize entire file.
7165         Redo to support question dialog syntax.
7166         [6].
7167
7168         * dialog.c:
7169         * dialog.c (Fmake_dialog_box_internal):
7170         * dialog.c (syms_of_dialog):
7171         Kill old popup-dialog-box, replace with new primitive.
7172         Just call device method or signal error.
7173
7174         * eldap.c (Fldap_open):
7175         * eldap.c (Fldap_search_basic):
7176         * eldap.c (Fldap_add):
7177         * eldap.c (Fldap_modify):
7178         [1].
7179         [7].
7180
7181         * emacs.c:
7182         * emacs.c (make_arg_list_1):
7183         * emacs.c (make_arg_list):
7184         Mule-ize call to dll_init().
7185         [6].
7186         [8].
7187
7188         * emacs.c (make_argc_argv):
7189         * emacs.c (free_argc_argv):
7190         * emacs.c (init_cmdargs):
7191         * emacs.c (main_1):
7192         * emacs.c (Fkill_emacs):
7193         * emacs.c (Fdump_emacs):
7194         Update comments about what can be used in syms_* etc.
7195         Call init_win32() when necessary.
7196         Fix up MS Win dialog box in kill-buffer to actually work right.
7197         [7].
7198
7199         * eval.c:
7200         * eval.c (For):
7201         * eval.c (Fand):
7202         * eval.c (Fprogn):
7203         * eval.c (Fprog1):
7204         * eval.c (Fprog2):
7205         * eval.c (FletX):
7206         * eval.c (Flet):
7207         * eval.c (condition_case_3):
7208         * eval.c (Feval):
7209         * eval.c (function_argcount):
7210         * eval.c (funcall_lambda):
7211         [1].
7212
7213         * eval.c (type_error): New.
7214         * eval.c (maybe_type_error): New.
7215         * eval.c (continuable_type_error): New.
7216         * eval.c (maybe_continuable_type_error): New.
7217         * eval.c (type_error_with_frob): New.
7218         * eval.c (maybe_type_error_with_frob): New.
7219         * eval.c (continuable_type_error_with_frob): New.
7220         * eval.c (maybe_continuable_type_error_with_frob): New.
7221         New functions for use with structured errors.
7222
7223         * event-Xt.c:
7224         * event-Xt.c (x_event_to_emacs_event):
7225         Buttons are now modifiers too.
7226
7227         * event-Xt.c (emacs_Xt_current_event_timestamp):
7228         Implement new event method.
7229         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7230
7231         * event-msw.c:
7232         * event-msw.c (ntpipe_shove_writer): [5].
7233         * event-msw.c (mswindows_enqueue_mouse_button_event):
7234         * event-msw.c (mswindows_drain_windows_queue):
7235         * event-msw.c (mswindows_wnd_proc): [7].
7236         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7237         * event-msw.c (mswindows_modifier_state):
7238         Throughout: support new button modifiers.
7239
7240         * event-msw.c (emacs_mswindows_current_event_timestamp):
7241         Implement new event method.
7242         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7243
7244         * event-stream.c:
7245         * event-stream.c (event_stream_current_event_timestamp): New.
7246         * event-stream.c (maybe_kbd_translate): New functionality.
7247         * event-stream.c (vars_of_event_stream):
7248         Document new kbd-translate-table functionality.
7249
7250         * event-stream.c (Fcurrent_event_timestamp): New.
7251         New primitive for use in fabricated events.
7252         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7253
7254         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7255
7256         * events.c:
7257         * events.c (Fmake_event):
7258         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7259         [1].
7260         [9].
7261
7262         * events.c (format_event_object): fix gcc warnings.
7263
7264         * events.c (Fevent_timestamp): Document new primitives.
7265
7266         * events.c (TIMESTAMP_HALFSPACE): New.
7267
7268         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7269         comparing timestamps correctly (half-space algorithm).
7270
7271         * events.c (Fevent_modifier_bits): Doc fix.
7272
7273         * events.c (Fevent_modifiers): Major doc addition.
7274         * events.c (event_x_y_pixel_internal): Typo fix.
7275         * events.c (syms_of_events): Declare new primitives.
7276
7277         * events.h:
7278         Update long comment for button modifiers, timestamps.
7279
7280         * events.h (struct event_stream):
7281         New current_event_timestamp method.
7282
7283         * extents.c:
7284         * extents.c (extent_in_region_p):
7285         * extents.c (decode_extent):
7286         * extents.c (Fset_extent_parent):
7287         * extents.c (decode_map_extents_flags):
7288         Fix gcc warnings.
7289         [9].
7290
7291         * extents.c (struct extent_at_arg):
7292         * extents.c (decode_extent_at_flag):
7293         * extents.c (extent_at_mapper):
7294         * extents.c (extent_at_bytind):
7295         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7296         * extents.c (Fextents_at): New primitive. [9].
7297         * extents.c (symbol_to_glyph_layout): [9].
7298         Support new primitive `extents-at'.
7299
7300
7301         * extents.c (get_text_property_bytind):
7302         extent_at_bytind has another arg.
7303         [9].
7304
7305         * extents.c (syms_of_extents): New primitive.
7306
7307         * file-coding.c (Fmake_coding_system): [1].
7308         * file-coding.c (subsidiary_coding_system): fix gcc warning
7309         * file-coding.c (syms_of_file_coding): [2].
7310
7311         * fileio.c (Fexpand_file_name):
7312         * fileio.c (Fsysnetunam):
7313         * fileio.c (Ffile_exists_p):
7314         * fileio.c (Ffile_executable_p):
7315         * fileio.c (Fverify_visited_file_modtime):
7316         Clean up GCPROing.
7317
7318         * fileio.c (syms_of_fileio): [2].
7319
7320         * filelock.c (lock_file_1):
7321         * filelock.c (current_lock_owner):
7322         * filelock.c (lock_if_free):
7323         * filelock.c (lock_file):
7324         * filelock.c (unlock_file):
7325         Clean up GCPROing.
7326
7327         * fns.c (concat): Fix gcc warning.
7328
7329         * fns.c (Fmember):
7330         * fns.c (Fold_member):
7331         * fns.c (Fmemq):
7332         * fns.c (Fold_memq):
7333         * fns.c (memq_no_quit):
7334         * fns.c (Fassoc):
7335         * fns.c (Fold_assoc):
7336         * fns.c (Fassq):
7337         * fns.c (Fold_assq):
7338         * fns.c (assq_no_quit):
7339         * fns.c (Frassoc):
7340         * fns.c (Fold_rassoc):
7341         * fns.c (Frassq):
7342         * fns.c (Fold_rassq):
7343         * fns.c (rassq_no_quit):
7344         * fns.c (Fdelete):
7345         * fns.c (Fold_delete):
7346         * fns.c (Fdelq):
7347         * fns.c (Fold_delq):
7348         * fns.c (delq_no_quit):
7349         * fns.c (Fremassoc):
7350         * fns.c (Fremassq):
7351         * fns.c (remassq_no_quit):
7352         * fns.c (Fremrassoc):
7353         * fns.c (Fremrassq):
7354         * fns.c (remrassq_no_quit):
7355         * fns.c (Freverse):
7356         * fns.c (mapcar1):
7357         [1].
7358
7359         * frame-msw.c (mswindows_init_frame_1):
7360         * frame-msw.c (mswindows_delete_frame):
7361         Register popups with dialog code so keyboard traversing works.
7362
7363         * frame-tty.c (tty_raise_frame_no_select): [1].
7364
7365         * frame-x.c:
7366         * frame-x.c (x_set_frame_text_value):
7367         * frame-x.c (x_set_frame_properties):
7368         * frame-x.c (x_create_widgets):
7369         [7].
7370
7371         * frame.c:
7372         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7373
7374         * frame.h (wrap_frame): New.
7375         Macro like wrap_device.
7376
7377         * general.c:
7378         * general.c (SYMBOL):
7379         * general.c (syms_of_general):
7380         Major reorg.  This is now just a wrapper and symbols themselves
7381         are listed in general-slots.h.
7382
7383         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7384         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7385
7386         * glyphs-msw.c (mswindows_native_layout_instantiate):
7387         Add DS_CONTROL so keyboard traversal will work.
7388
7389         * glyphs-widget.c:
7390         * glyphs-widget.c (syms_of_glyphs_widget):
7391         Move some symbols to general-slots.h.
7392
7393         * glyphs-x.c:
7394         * glyphs-x.c (xbm_instantiate_1):
7395         * glyphs-x.c (x_xbm_instantiate):
7396         * glyphs-x.c (x_xface_instantiate):
7397         * glyphs-x.c (autodetect_instantiate):
7398         * glyphs-x.c (cursor_font_instantiate):
7399         * glyphs-x.c (x_update_widget):
7400         * glyphs-x.c (x_widget_instantiate):
7401         * glyphs.c (bitmap_to_lisp_data):
7402         * glyphs.c (pixmap_to_lisp_data):
7403         [7].
7404
7405         * glyphs.c (syms_of_glyphs):
7406         [2].
7407
7408         * gui-x.c:
7409         * gui-x.c (print_widget_value):
7410         * gui-x.c (menu_separator_style_and_to_external):
7411         * gui-x.c (add_accel_and_to_external):
7412         * gui-x.c (button_item_to_widget_value):
7413         * gui-x.c (gui_items_to_widget_values_1):
7414         * gui-x.c (gui_items_to_widget_values):
7415         * gui-x.c (syms_of_gui_x):
7416         * gui-x.c (vars_of_gui_x):
7417         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7418         [9].
7419
7420         * gui-x.h:
7421         Muleize, prototype changes matching gui-x.c.
7422
7423         * gui.c:
7424         * gui.c (separator_string_p):
7425         * gui.c (gui_item_add_keyval_pair):
7426         * gui.c (make_gui_item_from_keywords_internal):
7427         * gui.c (signal_too_long_error):
7428         * gui.c (parse_gui_item_tree_item):
7429         * gui.c (syms_of_gui):
7430         * gui.c (vars_of_gui):
7431         * gui.h:
7432         menu-no-selection-hook moved here (used by MSWin).
7433         Move some symbols to general-slots.h.
7434         [6].
7435         [9].
7436
7437         * insdel.c (get_buffer_pos_char):
7438         * insdel.c (get_buffer_range_char):
7439         Add GC comments.
7440
7441         * keymap.c (keymap_lookup_directly):
7442         * keymap.c (keymap_store):
7443         * keymap.c (ensure_meta_prefix_char_keymapp):
7444         * keymap.c (describe_map):
7445         * keymap.h:
7446         Support new button modifiers.
7447
7448         * lisp-disunion.h (wrap_object):
7449         * lisp-disunion.h (XSETOBJ):
7450         Rename make_obj to wrap_object.
7451
7452         * lisp-union.h:
7453         * lisp-union.h (make_int):
7454         * lisp-union.h (make_char):
7455         Support wrap_object.
7456
7457         * lisp.h:
7458         * lisp.h (LIST_LOOP):
7459         * lisp.h (EXTERNAL_LIST_LOOP):
7460         * lisp.h (LIST_LOOP_2):
7461         * lisp.h (EXTERNAL_LIST_LOOP_1):
7462         * lisp.h (EXTERNAL_LIST_LOOP_2):
7463         * lisp.h (EXTERNAL_LIST_LOOP_3):
7464         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7465         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7466         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7467         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7468         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7469         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7470         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7471         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7472         * lisp.h (struct Lisp_Symbol):
7473         * lisp.h (maybe_continuable_error_with_frob):
7474         Fix up section comments.
7475         Add new types for char to indicate usage.
7476         Delete symbols auto-generated from general-slots.h.
7477         Add prototypes for structured error functions.
7478         Add long comments describing looping macros and change interface
7479         so that lvalues are automatically declared.
7480         Add NO_DECLARE macro in case callers want to declare lvalues
7481         themselves.
7482
7483         * lread.c (read_syntax_error):
7484         * lread.c (continuable_read_syntax_error):
7485         * lread.c (read_structure):
7486         * lread.c (sequence_reader):
7487         * lread.c (read_list_conser):
7488         * lread.c (read_compiled_function):
7489         Rename syntax_error and continuable_syntax_error to avoid clash
7490         with same-named structured error functions.
7491
7492         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7493         * menubar-msw.c (populate_menu_add_item):
7494         * menubar-msw.c (populate_or_checksum_helper):
7495         [5].
7496         [9].
7497
7498         * menubar-x.c:
7499         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7500         Mule-ize whole file.
7501
7502         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7503
7504         * mule-charset.c (Fmake_charset):
7505         * mule-wnnfns.c (Fwnn_set_param):
7506         [1].
7507
7508         * ntproc.c (create_child):
7509         * ntproc.c (Fwin32_set_current_locale):
7510         Add comments portending doom.
7511
7512         * objects-msw.c:
7513         * objects-msw.c (old_font_enum_callback_2):
7514         * objects-msw.c (font_enum_callback_1):
7515         * objects-msw.c (mswindows_enumerate_fonts):
7516         [5].
7517
7518         * objects-x.c:
7519         * objects-x.c (allocate_nearest_color):
7520         * objects-x.c (x_parse_nearest_color):
7521         * objects-x.c (x_initialize_color_instance):
7522         * objects-x.c (x_print_color_instance):
7523         * objects-x.c (x_finalize_color_instance):
7524         * objects-x.c (x_valid_color_name_p):
7525         * objects-x.c (x_initialize_font_instance):
7526         * objects-x.c (x_print_font_instance):
7527         * objects-x.c (valid_x_font_name_p):
7528         * objects-x.c (truename_via_FONT_prop):
7529         * objects-x.c (truename_via_random_props):
7530         * objects-x.c (truename_via_XListFonts):
7531         * objects-x.c (x_font_truename):
7532         * objects-x.c (x_font_instance_truename):
7533         * objects-x.c (x_font_instance_properties):
7534         * objects-x.c (x_list_fonts):
7535         * objects-x.c (x_find_charset_font):
7536         Mule-ize entire file.
7537         [7].
7538
7539         * objects-x.h:
7540         Mule-verify.
7541
7542         * print.c:
7543         * print.c (std_handle_out_external):
7544         * print.c (debug_print_no_newline):
7545         * print.c (syms_of_print):
7546         Output to all debugger kinds in debug-print.
7547         Fix console-output code under MSWin to actually work.
7548
7549         * process-nt.c (send_signal):
7550         * process-nt.c (nt_create_process):
7551         Use newer Unicode macros.
7552
7553         * process-unix.c (unix_create_process):
7554         * process-unix.c (unix_canonicalize_host_name):
7555         * process-unix.c (unix_open_network_stream):
7556         [7].
7557
7558         * scrollbar-x.c:
7559         Mule-verify.
7560
7561         * search.c (syms_of_search):
7562         [2].
7563
7564         * select-msw.c (mswindows_destroy_selection):
7565         Use LIST_LOOP_2.
7566
7567         * select-x.c (symbol_to_x_atom):
7568         [7].
7569
7570         * select.c (syms_of_select):
7571         [2].
7572
7573         * sound.c (Fplay_sound_file):
7574         [7].
7575
7576         * specifier.c:
7577         * specifier.c (decode_specifier_type):
7578         * specifier.c (Fvalid_specifier_locale_type_p):
7579         * specifier.c (check_valid_locale_or_locale_type):
7580         * specifier.c (decode_locale):
7581         * specifier.c (decode_locale_type):
7582         * specifier.c (decode_locale_list):
7583         * specifier.c (check_valid_domain):
7584         * specifier.c (decode_specifier_tag_set):
7585         * specifier.c (Fcanonicalize_tag_set):
7586         * specifier.c (Fdefine_specifier_tag):
7587         * specifier.c (Fspecifier_tag_predicate):
7588         * specifier.c (check_valid_inst_list):
7589         * specifier.c (check_valid_spec_list):
7590         * specifier.c (decode_how_to_add_specification):
7591         * specifier.c (check_modifiable_specifier):
7592         * specifier.c (specifier_add_spec):
7593         * specifier.c (boolean_validate):
7594         * specifier.c (display_table_validate):
7595         [9].
7596
7597         * specifier.c (syms_of_specifier):
7598         Move some symbols to general-slots.h.
7599         [2].
7600
7601         * symbols.c:
7602         * symbols.c (Fmapatoms):
7603         * symbols.c (Fapropos_internal):
7604         Add GCPROs.
7605
7606         * symbols.c (set_default_buffer_slot_variable):
7607         * symbols.c (set_default_console_slot_variable):
7608         [1].
7609
7610         * symbols.c (defsymbol_massage_name_1):
7611         * symbols.c (defkeyword_massage_name):
7612         * symbols.c (deferror_1):
7613         * symbols.c (deferror):
7614         * symbols.c (deferror_massage_name_and_message):
7615         * symeval.h:
7616         * symeval.h (DEFSYMBOL):
7617         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7618
7619         * symbols.c (syms_of_symbols):
7620         [2].
7621
7622         * symsinit.h:
7623         * symsinit.h (init_win32): New.
7624         Also new is syms_of_dialog_mswindows.
7625
7626         * syswindows.h:
7627         Add new Unicode macros, missing Cygwin wide-char functions,
7628         convenience conversion macros for Qmswindows_tstr, macros for
7629         encapsulating required MSWin <-> Cygwin filename conversions,
7630         prototype for dynamically-extracted (not in NT 3.51) functions.
7631
7632         * toolbar-x.c:
7633         Mule-verify.
7634
7635         * tooltalk.c (Fadd_tooltalk_message_arg):
7636         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7637         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7638         [7].
7639
7640         * tooltalk.c (syms_of_tooltalk):
7641         [2].
7642
7643         * unexnt.c:
7644         * unexnt.c (unexec):
7645         Fix up headers, declaration of unexec() to be more standard.
7646
7647 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7648
7649         * offix.h: Revert change to guard macros - they're used in offix.c!
7650
7651 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7652
7653         * lisp.h: Defsubred Fdelete.
7654
7655         * console-msw.h:  (msprinter_default_printer): Added.
7656
7657         * console-msw.c (msprinter_canonicalize_console_connection):
7658         (msprinter_canonicalize_device_connection): Added.
7659
7660         * device-msw.c (msprinter_default_printer):
7661         (Fmswingows_get_default_printer):
7662         (signal_enum_priner_error):
7663         (Fmswingows_printer_list): Added.
7664
7665 2000-07-19  Martin Buchholz <martin@xemacs.org>
7666
7667         * XEmacs 21.2.35 is released.
7668
7669 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7670
7671         * select-x.c (x_handle_selection_request):
7672         Text selected in xemacs and pasted into xterm failed to appear.
7673         Spelling fixes and cosmetic changes.
7674
7675 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7676
7677         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7678         XEmacs frame (fix for doubling chars in dialog boxes).
7679
7680 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7681
7682         * select.c (select_convert_in, select_convert_out):
7683         Don't call intern() every time.
7684
7685         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7686         * select.c (vars_of_select): Initialise them.
7687
7688 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7689
7690         * select.c (selection-coercible-types): New.
7691
7692         * select.c (own-selection-internal):
7693         * select.c (get-selection-internal):
7694         MULE bug fix - these should default to COMPOUND_TEXT and not
7695         STRING for MULE. I think.
7696
7697         * select.c (select_convert_out): Use selection-coercible-types
7698         to find types that we can attempt to perform coercions on.
7699
7700 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7701
7702         * mule-wnnfns.c:
7703         * mule-canna.c:
7704         Add coding: cookie to identify encoding.
7705
7706         * mule-canna.c (CANNA_mode_keys): make static.
7707         Use proper prototypes, even for functions of no arguments.
7708         Remove external prototype for Fding().
7709
7710         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7711
7712         * select.c (syms_of_select): Add missing DEFSUBR.
7713
7714 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7715
7716         * select.c (get_selection_internal, own_selection_internal):
7717         Make the type default to STRING, rather than placing a nil type
7718         into Vselection_alist.
7719
7720 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7721
7722         * gpmevent.c (tty_selection_exists_p):
7723         * gpmevent.c (tty_own_selection):
7724         Updated parameter lists.
7725
7726 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7727
7728         * select.h (selection-alist): Removed declaration.
7729
7730         * select.h (get_local_selection):
7731         * select.c (get_local_selection):
7732         Made static.
7733
7734         * select.h (convert_selection): Removed declaration.
7735         * select.c (convert_selection): Removed.
7736         This function belongs in Lisp.
7737
7738         * select.h (select_convert_in): Declare.
7739         * select.h (select_convert_out): Declare.
7740         * select.c (select_convert_in): New.
7741         * select.c (select_convert_out): New.
7742         New conversion functions for other files to call.
7743
7744         * select.h (select_notify_buffer_kill): Declare.
7745         * select.c (select_notify_buffer_kill): New.
7746         New functions that get called from kill-buffer.
7747
7748         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7749         X-specific lisp code.
7750
7751         * select.h: Declare some of the lisp-visible functions for
7752         external use.
7753
7754         * select.c (clean_local_selection_data): Removed. This was
7755         a disgusting function, and previously should have been in
7756         select-x.c in any case. The functionality is now provided
7757         in select-convert-from-integer (select.el).
7758
7759         * select.c (available-selection-types): Fixed stupidity where
7760         INTEGER and ATOM got added twice. Also add STRING when we see an
7761         extent.
7762
7763         * select.c (get-selection-internal): Removed symbol stripping. No
7764         longer causes conversion when data comes from the internal cache.
7765
7766         * select.c (syms_of_select): Added new functions.
7767
7768         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7769         error checking - previously this called abort!
7770
7771         * select-x.c (x_own_selection): Changed comment.
7772
7773         * select-x.c (x_handle_selection_request): Use select_convert_out.
7774         Don't mess with selection-alist; it's an internal variable of select.c.
7775
7776         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7777
7778         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7779         rather than messing with selection-alist.
7780
7781         * select-msw.c (mswindows_get_foreign_selection):
7782         Use TO_INTERNAL_FORMAT rather than hacking.
7783
7784 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7785
7786         * process-unix.c (unix_open_multicast_group):
7787         (unix_open_multicast_group): Remove useless casts.
7788
7789 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7790
7791         * sound.c (Fplay_sound): Fix `unused variable' warning.
7792
7793         * emacs.c (main): Use correct type for _environ on SCO5.
7794
7795 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7796
7797         * console.h (own_selection_method):
7798         * console.h (selection_exists_p_method):
7799         * console.h (available_selection_types_method): New.
7800         * console.h (register_selection_data_type_method): New.
7801         * console.h (selection_data_type_name): New.
7802
7803         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7804         function & alist to track GlobalAlloc()'d handles that need
7805         releasing when the clipboard data gets replaced or emptied.
7806
7807         * event-msw.c (mswindows_wnd_proc): Call it.
7808
7809         * lisp.h, general.c (Qappend): New symbol representing a
7810         `how-to-add' mode.
7811
7812         * select.c (own-selection-internal):
7813         * select.c (selection-exists-p):
7814         * select.c (available-selection-types): New.
7815         * select.c (register-selection-data-type): New.
7816         * select.c (selection-data-type-name): New.  New functions to deal
7817         with device-specific selection data formats.
7818         * select.c (selection-converter-out-alist): Renamed.
7819         * select.c (selection-converter-in-alist): New.
7820         * select.c (selection-appender-alist): New.  Added new alists.
7821         * select.c (syms_of_select, vars_of_select): Added new symbols &
7822         variables.
7823         * select.c (get_local_selection): Split.
7824         * select.c: Removed spurious type checking - selections may now be
7825         of any type, not just strings.
7826         * select.c (own-selection-internal):
7827
7828         * select.h, select.c (convert_selection): New. Created
7829         convert_selection() function based on get_local_selection().
7830         * select.h, select.c (QCF_*): New symbols representing mswindows
7831         clipboard formats.
7832         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7833         symbols representing `how-to-add' modes.
7834
7835         * select-msw.c (x_sym_p): New.
7836         * select-msw.c (symbol_to_ms_cf): New.
7837         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7838         symbols & clipboard formats. Can also handle string names.
7839         * select-msw.c (mswindows_own_selection):
7840         * select-msw.c (mswindows_selection_exists_p):
7841         Added `data-type' parameter. Use it.
7842         * select-msw.c (mswindows_available_selection_types): New.
7843         * select-msw.c (mswindows_register_selection_data_type): New.
7844         * select-msw.c (mswindows_selection_data_type_name): New.
7845         * select-msw.c (mswindows_own_selection):
7846         * select-msw.c (mswindows_get_foreign_selection):
7847         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7848         * select-msw.c (console_create_select_mswindows): Added new methods.
7849         * select-msw.c (mswindows_destroy_selection): New.
7850         * select-msw.c (Vhandle_alist): New list.
7851         * select-msw.c (mswindows_own_selection):
7852
7853         * select-x.c (x_own_selection):
7854         * select-x.c (x_selection_exists_p):
7855         * select-x.c: Added some comments about maybe using new
7856         functionality.
7857         * select-x.c (x_own_selection):
7858
7859         * specifier.c: Remove definition of Qappend (now in general.c)
7860         * specifier.c (syms_of_specifier): Remove Qappend.
7861
7862 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7863
7864         * config.h.in: Add socklen_t.
7865
7866         * s/decosf4-0.h: No special compiler flags needed or desired.
7867         In particular, undefine _BSD for DEC OSF 4.0.
7868
7869 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7870
7871         * redisplay-msw.c (msprinter_frame_output_end): Added.
7872         (console_type_create_redisplay_mswindows): Referred the above.
7873
7874         * frame.c (setup_frame_without_minibuffer): Do not create a
7875         default minibuffer frame on a printer device.
7876
7877         * frame-msw.c (apply_dc_geometry): Added.
7878         (msprinter_start_page):
7879         (msprinter_init_frame_3):
7880         (msprinter_eject_page): Use it.
7881
7882         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7883         and removed residual duplex and orientation properties.
7884
7885 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7886
7887         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7888
7889         * unexalpha.c: Remove system prototypes from C sources!
7890
7891 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7892
7893         * eval.c: Remove references to M-x edit-options in DEFUNs for
7894         `defvar' and `defconst'.
7895
7896 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7897
7898         * config.h.in: Remove SMART_INCLUDE hackery.
7899
7900         PostgreSQL hacking:
7901         * config.h.in: Don't use SMART_INCLUDE.
7902
7903         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7904         * inline.c: Simply #include "postgresql.h"
7905         * postgresql.c:
7906         - Don't use SMART_INCLUDE
7907         - Use simply "const".
7908         - Use standard doc string conventions.
7909         - Use correct type for result of PQstatus.
7910
7911 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7912
7913         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7914
7915         C++ compilation changes.
7916         * config.h.in (EXTERN_C): Define.
7917         * config.h.in (not): This is also a C++ keyword.
7918         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7919         * cm.c: Use EXTERN_C.
7920         * redisplay-tty.c: Use EXTERN_C.
7921         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7922
7923 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7924
7925         * general.c: Remove duplicate definition for Qfunction.
7926
7927 2000-07-08  Ben Wing  <ben@xemacs.org>
7928
7929         * device-msw.c (msprinter_init_device):
7930         * device-msw.c (sync_printer_with_devmode):
7931         * device-msw.c (handle_devmode_changes):
7932         * device-msw.c (print_dialog_worker):
7933         * device-msw.c (Fmsprinter_apply_settings):
7934         * device-msw.c (hash_devmode):
7935         * device-msw.c (Fmsprinter_settings_despecialize):
7936         use Qmswindows_tstr, not Qctext.
7937
7938         * vm-limit.c (check_memory_limits):
7939         avoid infinite loop printing warning messages.
7940
7941 2000-07-05  Craig Lanning  <lanning@scra.org>
7942
7943         * Makefile.in.in: Add support for including the Windows resources
7944         when building with the cygwin and mingw targets.
7945
7946         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7947         not set or not correct.
7948         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7949         (init_initial_directory): Don't try to use $PWD on the
7950         WIN32_NATIVE target.
7951
7952         * s\cygwin32.h:
7953         [[Add -mwindows to eliminate console window.]] not required --ben
7954         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7955         (MAIL_USE_POP): removed; now handled by configure.
7956
7957         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7958         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7959         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7960         (MAIL_USE_POP): removed; now handled by configure.
7961         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7962         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7963         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7964         constant string.
7965         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7966         up from <winsock.h> via systime.h.
7967         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7968         (getpagesize): from Dan Holmsand, added.
7969         Added #endif which was left dangling by Ben's mega patch; added
7970         comment to help prevent this in the future.
7971
7972         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7973
7974 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7975
7976         * console-msw.h (struct mswindows_device): Removed unnecessary
7977         cached device geometry values.
7978         Added update_tick and an accessor macro.
7979         (Lisp_Devmode): Added lrecord declaration.
7980         (struct msprinter_device): Contain devmode as a Lisp object.
7981         Added mswindows_get_selected_frame_hwnd();
7982
7983         * console.h (struct console_methods): Indentation nitpicking.
7984
7985         * device-msw.c (mswindows_init_device): Do not initialize geometry
7986         cache. Initialize update tick.
7987         (mswindows_device_system_metrics): Ask the device for its geometry.
7988         (global_free_2_maybe):
7989         (devmode_to_hglobal):
7990         (handle_printer_changes):
7991         (ensure_not_printing):
7992         (print_dialog_worker):
7993         (Fmsprinter_print_setup_dialog):
7994         (Fmsprinter_print_dialog):
7995         (plist_get_margin):
7996         (plist_set_margin):
7997         (Fmsprinter_page_setup_dialog): Added functions.
7998         (sync_printer_with_devmode):
7999         (handle_devmode_changes):
8000         (Fmsprinter_get_settings):
8001         (Fmsprinter_select_settings):
8002         (Fmsprinter_apply_settings):
8003         (allocate_devmode):
8004         (Fmsprinter_settings_copy):
8005         (Fmsprinter_settings_despecialize):
8006         (print_devmode):
8007         (finalize_devmode):
8008         (equal_devmode):
8009         (hash_devmode): Added functions
8010         (syms_of_device_mswindows): Init devmode lrecord class.
8011
8012         * device.h: Added an exfun for find-device.
8013
8014         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8015         geometry; although, recreate the device compatible DC.
8016
8017         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8018         (msprinter_init_frame_3):
8019         (msprinter_frame_property):
8020         (msprinter_internal_frame_property_p):
8021         (msprinter_frame_properties):
8022         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8023         print job properties (will move to device settings).
8024
8025         * lisp.h: Added symbols.
8026
8027         * general.c (syms_of_general): Declared them.
8028
8029         * hash.c (string_hash): Added.
8030
8031         * lrecord.h (lrecord_type): Added devmode lrecord type.
8032
8033 2000-07-02  Mike Sperber <mike@xemacs.org>
8034
8035         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8036         FreeBSD 4.0.
8037
8038 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8039
8040         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8041         integer.
8042
8043 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8044
8045         * data.c (Fstring_to_number): Don't recognize floating point if
8046         base is not 10.
8047
8048 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8049
8050         * glyphs-widget.c (tab_control_query_geometry):
8051         (widget_query_geometry):
8052         (button_query_geometry):
8053         * glyphs.c (text_query_geometry):
8054         Enforce type correctness.
8055
8056 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8057
8058         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8059         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8060
8061 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8062
8063         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8064         conflicts with gcc's fixincluded version of FOO.h.
8065
8066         * glyphs.h (image_instance_geometry): Remove trailing `,'
8067
8068 2000-06-08  Mike Alexander  <mta@arbortext.com>
8069
8070         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8071         (shove_thread): Don't write the same output twice
8072         (make_ntpipe_output_stream): Increase priority of shove thread
8073         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8074         chance to run
8075         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8076         it.
8077
8078 2000-06-12  Ben Wing  <ben@xemacs.org>
8079
8080         * s\mingw32.h (sigset):
8081         * s\windowsnt.h (sigset):
8082         rename msw_ to mswindows_ for consistency with general convention.
8083
8084 2000-06-12  Ben Wing  <ben@xemacs.org>
8085
8086         * console-msw.c:
8087         * console-msw.c (mswindows_get_console_hwnd):
8088         * console-msw.c (mswindows_ensure_console_allocated):
8089         * console-msw.c (mswindows_hide_console):
8090         * console-msw.c (mswindows_show_console):
8091         * console-msw.c (mswindows_ensure_console_buffered):
8092         * console-msw.c (mswindows_output_console_string):
8093         * console-msw.c (mswindows_windows9x_p):
8094         * console-msw.h:
8095         * device-msw.c (mswindows_get_workspace_coords):
8096         * device-msw.c (mswindows_device_system_metrics):
8097         * dialog-msw.c (mswindows_popup_dialog_box):
8098         * event-msw.c (mswindows_wnd_proc):
8099         * frame-msw.c (mswindows_size_frame_internal):
8100         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8101         * menubar-msw.c (displayable_menu_item):
8102         * menubar-msw.c (mswindows_char_is_accelerator):
8103         * nt.c:
8104         * nt.c (mswindows_sigset):
8105         * nt.c (mswindows_sigrelse):
8106         * nt.c (mswindows_sigpause):
8107         * nt.c (mswindows_raise):
8108         * nt.c (timer_proc):
8109         * ntproc.c:
8110         * ntproc.c (find_child_console):
8111         * ntproc.c (sys_kill):
8112         * print.c:
8113         * print.c (std_handle_out_external):
8114         * process-nt.c (find_child_console):
8115         * process-nt.c (send_signal_the_95_way):
8116         * process-nt.c (ensure_console_window_exists):
8117         * process-nt.c (nt_create_process):
8118         * syssignal.h:
8119         rename msw_ to mswindows_ for consistency with general convention.
8120
8121         * emacs.c:
8122         * dumper.c:
8123         include nt.h, not syswindows.h.
8124
8125         * nt.c (mswindows_fstat):
8126         * nt.c (mswindows_stat):
8127         prefix mswindows_ instead of attempting to directly override the
8128         library functions.  fix declarations.
8129
8130         * nt.h:
8131         include syswindows.h.  move some sysdep.h stuff here.
8132
8133         * ntheap.h:
8134         include syswindows.h, not <windows.h>.
8135
8136         * ntplay.c:
8137         clean up headers.
8138
8139         * sysdep.c:
8140         clean up headers.
8141
8142         * sysdep.c (sys_fstat):
8143         * sysdep.c (sys_stat):
8144         call mswindows versions when appropriate.
8145
8146         * sysdep.h:
8147         move mswin decls to nt.h.
8148
8149         * syswindows.h:
8150         add long comment describing appropriate use of the various windows
8151         headers.
8152
8153 2000-06-11  Ben Wing  <ben@xemacs.org>
8154
8155         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8156
8157 2000-06-10  Ben Wing  <ben@xemacs.org>
8158
8159         * Makefile.in.in (release):
8160         Correction to make sure xemacs.exe always dumped when correct.
8161
8162         * alloca.c:
8163         * balloon_help.c:
8164         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8165
8166         * buffer.c (set_buffer_internal):
8167         [[[[2]]]]: Remove HAVE_FEP code.
8168
8169         * buffer.c (init_initial_directory):
8170         [3].
8171
8172         * bytecode.c:
8173         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8174         individual files.
8175
8176         * callproc.c:
8177         * callproc.c (call_process_cleanup):
8178         * callproc.c (Fold_call_process_internal):
8179         * callproc.c (child_setup):
8180         * callproc.c (getenv_internal):
8181         * callproc.c (init_callproc):
8182         * callproc.c (vars_of_callproc):
8183         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8184         __CYGWIN32__ -> CYGWIN.
8185         DOS_NT -> WIN32_NATIVE.
8186         Remove MSDOS support/references, converting to WIN32_NATIVE
8187           where correct.
8188         __MINGW32__ -> MINGW.
8189         Fix windows.h includes.
8190         Remove bogus HAVE_NTGUI.
8191
8192         * config.h.in:
8193         [2].
8194
8195         * console-msw.c:
8196         mswindows_message_outputted added for use in allowing startup
8197         errors on the console to be seen.
8198
8199         * console-msw.c (msw_ensure_console_allocated):
8200         * console-msw.c (msw_output_console_string):
8201         * console-msw.c (DHEADER):
8202         * console-msw.c (DOPAQUE_DATA):
8203         * console-msw.c (DEVENT):
8204         * console-msw.c (DCONS):
8205         * console-msw.c (DCONSCDR):
8206         * console-msw.c (DSTRING):
8207         * console-msw.c (DVECTOR):
8208         * console-msw.c (DSYMBOL):
8209         * console-msw.c (DSYMNAME):
8210         Fix warnings.
8211
8212         * console-stream.c (stream_init_console):
8213         Fix text/binary problems.
8214
8215         * device-msw.c:
8216         * device-msw.c (mswindows_finish_init_device):
8217         * device-msw.c (mswindows_delete_device):
8218         [1].
8219
8220         * device.c (handle_asynch_device_change):
8221         [3].
8222
8223         * dgif_lib.c:
8224         * dgif_lib.c (DGifOpenFileName):
8225         * dgif_lib.c (DGifOpenFileHandle):
8226         * dgif_lib.c (DGifGetLine):
8227         * dgif_lib.c (DGifGetPixel):
8228         Added config.h/lisp.h, fix up includes.
8229         [1].
8230
8231         * dired-msw.c:
8232         [4].
8233
8234         * dired.c:
8235         * dired.c (file_name_completion):
8236         * dired.c (Ffile_attributes):
8237         * dired.c (syms_of_dired):
8238         [1].
8239
8240         * dumper.c:
8241         * dumper.c (pdump_file_unmap):
8242         * dumper.c (pdump_load):
8243         [1].
8244
8245         * editfns.c:
8246         * editfns.c (Ftemp_directory):
8247         * editfns.c (user_login_name):
8248         * editfns.c (Fuser_real_login_name):
8249         * editfns.c (get_home_directory):
8250         [1].
8251
8252         * elhash.c (finish_marking_weak_hash_tables):
8253         [[[[5]]]]: Fix GCC warnings.
8254
8255         * emacs.c:
8256         * emacs.c (mswindows_handle_hardware_exceptions):
8257         * emacs.c (make_arg_list_1):
8258         * emacs.c (main_1):
8259         * emacs.c (Fkill_emacs):
8260         * emacs.c (Fdump_emacs):
8261         [1].
8262         Fix problems with nested crashes, add long comment.
8263
8264         * event-Xt.c (init_event_Xt_late):
8265         [1].
8266
8267         * event-msw.c:
8268         * event-msw.c (mswindows_dde_callback):
8269         * event-msw.c (mswindows_handle_sticky_modifiers):
8270         * event-msw.c (mswindows_wnd_proc):
8271         [1].
8272         [5].
8273
8274         * events.c (character_to_event):
8275         [1].
8276
8277         * fileio.c:
8278         * fileio.c (Ffile_name_directory):
8279         * fileio.c (Ffile_name_nondirectory):
8280         * fileio.c (directory_file_name):
8281         * fileio.c (Fexpand_file_name):
8282         * fileio.c (Fsubstitute_in_file_name):
8283         * fileio.c (Ffile_name_absolute_p):
8284         * fileio.c (check_executable):
8285         * fileio.c (Ffile_readable_p):
8286         * fileio.c (Ffile_accessible_directory_p):
8287         * fileio.c (Ffile_modes):
8288         * fileio.c (Funix_sync):
8289         * fileio.c (vars_of_fileio):
8290         [1]. [4].
8291
8292         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8293
8294         Expand getdefdir defn.
8295         Fix bogus rename() comment.
8296
8297         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8298         to use standard XEmacs include files, e.g. sysfile.h, rather
8299         than system-specific includes.
8300
8301         * fns.c:
8302         * fns.c (Fsubseq):
8303         [5]. [6].
8304
8305         * frame.c (vars_of_frame):
8306         [1].
8307
8308         * getloadavg.c:
8309         * getloadavg.c (getloadavg):
8310         [1]. [6].
8311         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8312         (We don't use it elsewhere in the code; just add a comment.)
8313
8314         * gif_io.c:
8315         [6].
8316         Add config.h.
8317
8318         * glyphs-msw.c:
8319         * glyphs-msw.c (mswindows_resource_instantiate):
8320         [1].
8321
8322         * glyphs-x.c (x_native_layout_instantiate):
8323         [5].
8324
8325         * gui-msw.c (Fmswindows_shell_execute):
8326         [1].
8327
8328         * insdel.c:
8329         [4].
8330
8331         * lisp.h:
8332         [4]. [5].
8333
8334         * lread.c (locate_file_in_directory_mapper):
8335         [1].
8336
8337         * lstream.c:
8338         [4].
8339
8340         * mem-limits.h:
8341         * mem-limits.h (get_lim_data):
8342         [1].
8343
8344         * menubar-msw.c:
8345         [4].
8346
8347         * ndir.h:
8348         [1].
8349
8350         * nt.c:
8351         * nt.c (getwd):
8352         * nt.c (closedir):
8353         * nt.c (rva_to_section):
8354         * nt.c (mswindows_executable_type):
8355         [1]. [6].
8356         Fix closedir() defn.
8357
8358         * nt.h:
8359         [[[[8]]]]: *_OK defs moved to sysfile.h.
8360
8361         * ntproc.c:
8362         [6]. [7].
8363
8364         * objects-x.c:
8365         [4].
8366
8367         * print.c:
8368         * print.c (std_handle_out_external):
8369         [1]. [4].
8370
8371         * process-nt.c:
8372         * process-nt.c (nt_create_process):
8373         [6].
8374         try to fix process quoting somewhat.
8375
8376         * process-unix.c (unix_create_process):
8377         [1].
8378
8379         * process.c:
8380         * process.c (vars_of_process):
8381         Add Vnull_device.
8382
8383         * process.h:
8384         [1].
8385
8386         * realpath.c:
8387         * realpath.c (xrealpath):
8388         [1].
8389
8390         * redisplay-tty.c (init_tty_for_redisplay):
8391         [3].
8392
8393         * redisplay.c:
8394         [4]. [6].
8395
8396         * scrollbar-msw.c:
8397         [4].
8398
8399         * sheap.c:
8400         * sheap.c (more_static_core):
8401         * sheap.c (report_sheap_usage):
8402         [5]. [6].
8403
8404         * signal.c:
8405         * signal.c (alarm_signal):
8406         [1]. [6].
8407
8408         * sound.c:
8409         [6].
8410
8411         * strftime.c:
8412         * strftime.c (zone_name):
8413         [1]. [5].
8414
8415         * symsinit.h (init_sunpro):
8416         [1].
8417
8418         * syscommctrl.h:
8419         commctrl.h not in Cygwin b20.1.
8420
8421         * sysdep.c:
8422         * sysdep.c (endif):
8423         * sysdep.c (sys_subshell):
8424         * sysdep.c (init_baud_rate):
8425         * sysdep.c (emacs_get_tty):
8426         * sysdep.c (emacs_set_tty):
8427         * sysdep.c (tty_init_sys_modes_on_device):
8428         * sysdep.c (init_system_name):
8429         * sysdep.c (sys_open):
8430         * sysdep.c (interruptible_open):
8431         * sysdep.c (sys_fopen):
8432         * sysdep.c (sys_mkdir):
8433         * sysdep.c (sys_rename):
8434         * sysdep.c (get_process_times_1):
8435         [1]. [6].
8436
8437         * sysdep.h:
8438         [1].
8439
8440         * sysdir.h:
8441         * sysdir.h (DIRENTRY_NONEMPTY):
8442         [1]. [6].
8443
8444         * sysdll.c (dll_init):
8445         * sysdll.h:
8446         [1].
8447
8448         * sysfile.h:
8449         [1]. [6]. [8].
8450         added text/binary defs.
8451
8452         * sysfloat.h:
8453         [1].
8454
8455         * sysproc.h:
8456         * sysproc.h (EDESTADDRREQ):
8457         * sysproc.h (poll_fds_for_input):
8458         [1]. [6].
8459
8460         * syspwd.h:
8461         [6].
8462
8463         * syssignal.h:
8464         [1].
8465
8466         * systime.h:
8467         [1]. [6].
8468
8469         * systty.h:
8470         [1].
8471
8472         * syswindows.h:
8473         [1].
8474         Always define WIN32_LEAN_AND_MEAN.
8475
8476         * unexcw.c (unexec):
8477         [5].
8478
8479         * unexec.c:
8480         * unexec.c (copy_text_and_data):
8481         * unexec.c (adjust_lnnoptrs):
8482         [1].
8483
8484         * unexnt.c:
8485         * unexnt.c (_start):
8486         [1].
8487
8488 2000-06-07  Ben Wing  <ben@xemacs.org>
8489
8490         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8491         was used only as a model.  We've long since extracted any useful
8492         logic or code out of this. (I just did an exhaustive search.)
8493
8494         * s\msdos.h: Removed.
8495
8496         * s\windows95.h: Removed.
8497
8498 2000-06-10  Ben Wing  <ben@xemacs.org>
8499
8500         * s\cygwin32.h:
8501         [1]. [5].
8502         Don't use extern with fun defs.
8503
8504         * s\mingw32.h:
8505         [1]. [7].
8506         Remove nt\inc include.
8507         Remove getdisk, getdefdir. (The former is unused, the latter
8508         expanded in fileio.h.)
8509
8510         * s\windowsnt.h:
8511         * s\windowsnt.h (WIN32_NATIVE):
8512         * s\windowsnt.h (HAVE_STRCASECMP):
8513         [1]. [7].
8514         Add long comment about preprocessor changes.
8515         Remove getdisk, getdefdir. (The former is unused, the latter
8516         expanded in fileio.h.)
8517
8518 2000-06-10  Ben Wing  <ben@xemacs.org>
8519
8520         * m\arm.h:
8521         * m\delta.h:
8522         * m\intel386.h:
8523         * m\sequent.h:
8524         * m\template.h:
8525         * m\windowsnt.h:
8526         [1].
8527         Remove bogus/unused NO_SOCK_SIGIO.
8528
8529 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8530
8531         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8532         not an Emchar.
8533
8534 2000-06-04  Mike Sperber <mike@xemacs.org>
8535
8536         * casetab.c (set_case_table): For `set-standard-case-table',
8537         actually deposit the new case tables where the rest of XEmacs can
8538         see them.
8539
8540 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8541
8542         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8543
8544 2000-06-05  Ben Wing  <ben@xemacs.org>
8545
8546         * callproc.c (child_setup): Don't do close_load_descs() under
8547         MS Windows.  Put in a comment explaining why.
8548
8549 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8550
8551         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8552         Toolkit shell" which breaks `kill-compilation' on Windows NT
8553         native, retaining STDERR handling improvements.
8554
8555 2000-06-01  Andreas Jaeger  <aj@suse.de>
8556
8557         * s/s390.h: Support for S390, based on a patch by Martin
8558         Schwidefsky <schwidefsky@de.ibm.com>.
8559
8560 2000-05-30  Andy Piper  <andy@xemacs.org>
8561
8562         * window.c (allocate_window):
8563         (make_dummy_parent):
8564         (Fset_window_configuration): use new hashtable type.
8565
8566         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8567         (struct image_instantiator_methods):
8568         (struct Lisp_Image_Instance): make instance geometry signed.
8569
8570         * glyphs.c (instantiate_image_instantiator):
8571         (image_instance_query_geometry):
8572         (image_instance_layout):
8573         (image_instance_layout):
8574         (query_string_geometry):
8575         (text_query_geometry):
8576         (image_instantiate):
8577         (image_instantiate):
8578         (cache_subwindow_instance_in_frame_maybe):
8579         (subwindow_query_geometry): make instance geometry signed.
8580
8581         * glyphs-widget.c (widget_query_geometry):
8582         (widget_layout):
8583         (button_query_geometry):
8584         (tree_view_query_geometry):
8585         (tab_control_query_geometry):
8586         (layout_query_geometry):
8587         (layout_layout):
8588         (native_layout_layout): make instance geometry signed.
8589
8590 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8591
8592         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8593         constant.
8594
8595         * general.c (syms_of_general): Add Qfull_assoc symbol.
8596
8597         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8598         correctly.
8599         (decode_weak_list_type): Decode full-assoc type.
8600         (encode_weak_list_type): Encode full-assoc type.
8601         (Fmake_weak_list): Update doc string.
8602
8603 2000-05-30  Andy Piper  <andy@xemacs.org>
8604
8605         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8606
8607         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8608         (decode_hash_table_weakness): ditto.
8609         (Fhash_table_weakness): ditto.
8610         (Fhash_table_type): ditto.
8611         (finish_marking_weak_hash_tables): ditto.
8612         (hash_table_weakness_validate): ditto.
8613         (syms_of_elhash): ditto.
8614
8615 2000-05-28  Martin Buchholz <martin@xemacs.org>
8616
8617         * XEmacs 21.2.34 is released.
8618
8619 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8620
8621         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8622         start cache.
8623         (updating_line_start_cache): Gone.
8624         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8625         generic code to force a minimum of 1 line laid out in the
8626         CMOTION_DISP case.
8627
8628 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8629
8630         * glyphs.c (instantiate_image_instantiator): Check for initialized
8631         height & width no longer special cases IMAGE_NOTHING.
8632         (nothing_instantiate): Set height and width of instance.
8633
8634 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8635
8636         * unexelf.c (unexec): Search for ".data" section.
8637         Initialize new_data2_offset from old_data_index.
8638         Remove redundant check for ElfW.
8639
8640 2000-05-23  Andy Piper  <andy@xemacs.org>
8641
8642         * glyphs.c (get_image_instantiator_governing_domain): allow more
8643         specific domains as the governing domain rather than expecting an
8644         exact match. This fixes problems with layouts.
8645
8646 2000-05-22  Andy Piper  <andy@xemacs.org>
8647
8648         * redisplay-output.c (compare_runes): check for non-images
8649
8650         * glyphs.c (set_glyph_dirty_p): ditto.
8651         (update_glyph_cachel_data): ditto.
8652
8653         * glyphs-widget.c (layout_post_instantiate): ditto.
8654         (layout_post_instantiate): ditto.
8655
8656         * event-msw.c (mswindows_wnd_proc): warning removal.
8657
8658 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8659
8660         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8661
8662         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8663
8664         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8665
8666         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8667         (mswindows_executable_type): mingw32 now has enough headers for
8668         this to work.
8669
8670 2000-05-20  Andy Piper  <andy@xemacs.org>
8671
8672         * console-msw.c (mswindows_output_last_error): ; -> ,
8673
8674 2000-05-12  Andy Piper  <andy@xemacs.org>
8675
8676         * console-msw.c (FROB): compare ints with ints.
8677
8678 2000-05-11  Andy Piper  <andy@xemacs.org>
8679
8680         * glyphs-x.c (x_finalize_image_instance): make minimal build
8681         happy.
8682
8683 2000-05-20  Ben Wing  <ben@xemacs.org>
8684
8685         * event-Xt.c:
8686         * event-Xt.c (vars_of_event_Xt):
8687         move modifier-keys-are-sticky to event-stream.c.
8688
8689         * event-msw.c:
8690         * event-msw.c (mswindows_enqueue_mouse_button_event):
8691         * event-msw.c (key_needs_default_processing_p):
8692         * event-msw.c (XEMSW_LCONTROL):
8693         * event-msw.c (mswindows_handle_sticky_modifiers):
8694         * event-msw.c (FROB):
8695         * event-msw.c (clear_sticky_modifiers):
8696         * event-msw.c (output_modifier_keyboard_state):
8697         * event-msw.c (output_alt_keyboard_state):
8698         * event-msw.c (mswindows_wnd_proc):
8699         * event-msw.c (mswindows_modifier_state):
8700         * event-msw.c (emacs_mswindows_handle_magic_event):
8701         implement sticky modifiers.
8702
8703         * event-stream.c:
8704         * event-stream.c (vars_of_event_stream):
8705         move modifier-keys-are-sticky here.
8706
8707         * lisp.h:
8708         add CHECK_FUNCTION.
8709
8710         * rangetab.c:
8711         implement map-range-table.
8712
8713
8714 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8715
8716         * redisplay-tty.c (reset_tty_modes):
8717         (tty_redisplay_shutdown): Adjust argument type to
8718         tty_frame_output_end.
8719
8720 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8721
8722         * eval.c (Fbacktrace): Don't output a line with only right
8723         parenthesis.
8724
8725 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8726
8727         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8728         (Fpq_reset_poll): Ditto.
8729
8730 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8731
8732         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8733
8734 2000-05-16  Ben Wing  <ben@xemacs.org>
8735
8736         * buffer.c:
8737         * buffer.c (dfc_convert_to/from_internal_format):
8738         * buffer.c (reinit_vars_of_buffer):
8739         Fix conversion functions to allow reentrancy.
8740
8741         * console-msw.c:
8742         * console-msw.c (mswindows_output_last_error):
8743         New fun, generally useful -- output a human-readable
8744         version of GetLastError() on the console.
8745
8746         * console-msw.h:
8747         * console-msw.h (struct mswindows_frame):
8748         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8749
8750         * console-stream.c (stream_output_begin):
8751         * console-stream.c (stream_output_end):
8752         * console-stream.c (stream_output_vertical_divider):
8753         * console-stream.c (stream_clear_region):
8754         * console-stream.c (stream_flash):
8755         * console-stream.c (console_type_create_stream):
8756         Delete blank stream methods, not needed.
8757
8758         * console.h (struct console_methods):
8759         Split begin/end methods into window and frame.
8760
8761         * event-msw.c:
8762         * event-msw.c (mswindows_handle_paint):
8763         * event-msw.c (output_alt_keyboard_state):
8764         * event-msw.c (mswindows_wnd_proc):
8765         * event-msw.c (vars_of_event_mswindows):
8766         Comment about problems with ignored-expose.
8767         Define mswindows-debug-events; not really implemented.
8768
8769         * frame-msw.c (mswindows_init_frame_1):
8770         random cleanups.
8771
8772         * glyphs-msw.c:
8773         * glyphs-msw.c (begin_defer_window_pos):
8774         * glyphs-msw.c (mswindows_unmap_subwindow):
8775         * glyphs-msw.c (mswindows_map_subwindow):
8776         * glyphs-msw.c (mswindows_resize_subwindow):
8777         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8778
8779         * glyphs.c (make_image_instance_1):
8780         Fix crash.
8781
8782         * gutter.c (Fredisplay_gutter_area):
8783         Use new begin/end methods.
8784
8785         * lisp.h (Dynarr_new2):
8786         New creation fun.
8787
8788         * redisplay-msw.c:
8789         * redisplay-msw.c (mswindows_frame_output_begin):
8790         * redisplay-msw.c (mswindows_frame_output_end):
8791         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8792         New begin/end methods -- handle DeferWindowPos.
8793
8794         * redisplay-output.c (redisplay_move_cursor):
8795         * redisplay-output.c (redraw_cursor_in_window):
8796         * redisplay-output.c (redisplay_update_line):
8797         * redisplay-output.c (redisplay_output_window):
8798         New begin/end methods.
8799
8800         * redisplay-tty.c:
8801         * redisplay-tty.c (tty_frame_output_begin):
8802         * redisplay-tty.c (tty_frame_output_end):
8803         * redisplay-tty.c (console_type_create_redisplay_tty):
8804         New begin/end methods.
8805
8806         * redisplay-x.c:
8807         * redisplay-x.c (x_window_output_begin):
8808         * redisplay-x.c (x_window_output_end):
8809         * redisplay-x.c (console_type_create_redisplay_x):
8810         New begin/end methods.
8811
8812         * redisplay.c (redisplay_frame):
8813         * redisplay.c (Fredisplay_echo_area):
8814         New begin/end methods.
8815         use MAYBE_DEVMETH for clear_frame; it may not exist.
8816
8817         * window.h (WINDOW_XFRAME):
8818         WINDOW_XFOO macros -- get locale and decode struct pointer.
8819
8820
8821 2000-05-12  Ben Wing  <ben@xemacs.org>
8822
8823         * emacs.c:
8824         * emacs.c (ensure_no_quitting_from_now_on):
8825         * emacs.c (fatal_error_signal):
8826         * emacs.c (mswindows_handle_hardware_exceptions):
8827         * emacs.c (main):
8828         * emacs.c (Fkill_emacs):
8829         * emacs.c (shut_down_emacs):
8830         * emacs.c (assert_failed):
8831         various improvements in fatal error handling.
8832
8833         * eval.c:
8834         move preparing_for_armageddon to emacs.c.
8835
8836         * lisp.h:
8837         declare fatal_error_in_progress.
8838
8839         * print.c:
8840         * print.c (std_handle_out_external):
8841         * print.c (std_handle_out_va):
8842         * print.c (stderr_out):
8843         * print.c (stdout_out):
8844         use console under mswin when no standard output.
8845         don't do code conversion during fatal error.
8846
8847         * scrollbar.c (Fscrollbar_page_up):
8848         * scrollbar.c (Fscrollbar_page_down):
8849         fix missing else.  reindent.
8850
8851 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8852
8853         Emergency fix.
8854
8855         * glyphs.h (GLYPH_CACHEL_DESCENT):
8856         (GLYPH_CACHEL_DESCENT):
8857         (GLYPH_CACHEL_DESCENT):
8858         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8859         used in case these are inline functions.
8860         Use more absurd values to error check.
8861
8862         include window.h for error check functions.
8863
8864 2000-05-11  Ben Wing  <ben@xemacs.org>
8865
8866         * cmdloop.c (Freally_early_error_handler):
8867         Display message box under windows; otherwise, message will disappear
8868         before it can be viewed.
8869
8870         * console-msw.c:
8871         * console-msw.c (Fmswindows_message_box):
8872         * console-msw.c (FROB):
8873         * console-msw.c (syms_of_console_mswindows):
8874         Define new fun `mswindows-message-box'.
8875         #### I will merge this into `popup-dialog-box'; just give me
8876         a bit of time.
8877
8878         * general.c:
8879         * general.c (syms_of_general):
8880         Some new symbols used in `mswindows-message-box'.
8881
8882         * glyphs.c:
8883         * glyphs.c (Fset_image_instance_property):
8884         put warning in this fun.
8885
8886         * glyphs.h:
8887         * glyphs.h (GLYPH_CACHEL_WIDTH):
8888         * glyphs.h (GLYPH_CACHEL_ASCENT):
8889         * glyphs.h (GLYPH_CACHEL):
8890         * glyphs.h (GLYPH_CACHEL_GLYPH):
8891         define error-checking versions to try to catch a bug i've seen --
8892         redisplay gets in an infinite loop because the glyph width of the
8893         continuation glyph is 65535.
8894
8895         * lisp.h:
8896         Extern message-box stuff.
8897
8898         * window.c (allocate_window):
8899         * window.c (make_dummy_parent):
8900         * window.c (Fset_window_configuration):
8901         Use EQUAL not EQ for subwindow caches to make them work a bit
8902         better. (Something is still very broken.)
8903
8904
8905 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8906
8907         * glyphs.c (image_instantiate): Suppress gcc warnings.
8908         (Fmake_image_instance): Fix doc string.
8909         * specifier.c (Fmake_specifier): Ditto.
8910
8911 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8912
8913         * paths.h.in (PATH_LOCK): Removed.
8914         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8915         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8916
8917 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8918
8919         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8920         Document (featurep '(and xemacs 21.02)).
8921
8922 2000-05-09  Ben Wing  <ben@xemacs.org>
8923
8924         * buffer.c (complex_vars_of_buffer):
8925         update modeline-format doc.
8926
8927         * device.h:
8928         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8929
8930         * emacs.c:
8931         timeline of all released versions of Emacs, for use in creating
8932         authorship comments and in synching up.
8933
8934         * glyphs-widget.c (image_instantiator_buttons):
8935         * glyphs-widget.c (image_instantiator_edit_fields):
8936         * glyphs-widget.c (image_instantiator_combo_box):
8937         * glyphs-widget.c (image_instantiator_scrollbar):
8938         * glyphs-widget.c (image_instantiator_progress_guage):
8939         * glyphs-widget.c (image_instantiator_tree_view):
8940         * glyphs-widget.c (image_instantiator_tab_control):
8941         * glyphs-widget.c (image_instantiator_labels):
8942         * glyphs-widget.c (image_instantiator_layout):
8943         * glyphs-widget.c (image_instantiator_native_layout):
8944         rename decode_domain method to governing_domain.
8945
8946         * glyphs.c:
8947         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8948         * glyphs.c (add_entry_to_device_ii_format_list):
8949         make sure we don't put an entry more than once into the list.
8950         * glyphs.c (check_instance_cache_mapper):
8951         *************************************************************
8952         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8953         HAVE BEEN GETTING.
8954         *************************************************************
8955         * glyphs.c (get_image_instantiator_governing_domain):
8956         clean up, expand on new concept of governing domain.
8957         * glyphs.c (instantiate_image_instantiator):
8958         * glyphs.c (allocate_image_instance):
8959         use governing_domain instead of cache_domain in naming.
8960         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8961         * glyphs.c (make_image_instance_1):
8962         * glyphs.c (Fmake_image_instance):
8963         allow for any domain (not just device), and process the
8964         governing domain correctly.  very big doc fix.
8965         * glyphs.c (Fimage_instance_domain):
8966         new primitive, to retrieve the governing domain of an image instance.
8967         * glyphs.c (image_instantiate):
8968         use new governing_domain stuff.  this fixes a crash you could get
8969         by instantiating certain widget glyphs in frame locales. (should
8970         signal an error instead of crashing.)
8971         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8972         * glyphs.c (Fglyphp): clean up doc.
8973         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8974         * glyphs.c (syms_of_glyphs):
8975         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8976         * glyphs.c (image_instantiator_format_create): add some comments about
8977         bogus code.
8978         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8979         for current-display-table. (Apparently Hrjove implemented in 1998 a
8980         design I wrote up in 1996, but didn't update the doc string.)
8981
8982         * glyphs.h: clean up a doc string.
8983         * glyphs.h (governing_domain):
8984         * glyphs.h (struct image_instantiator_methods):
8985         changes for governing_domain stuff.
8986
8987         * gutter.c:
8988         * gutter.c (Fgutter_specifier_p):
8989         * gutter.c (Fgutter_size_specifier_p):
8990         * gutter.c (Fgutter_visible_specifier_p):
8991         * objects.c:
8992         * objects.c (Fcolor_specifier_p):
8993         * objects.c (Ffont_specifier_p):
8994         * objects.c (Fface_boolean_specifier_p):
8995         doc strings moved to make-*-specifier.
8996
8997         * redisplay.c (add_disp_table_entry_runes_1):
8998         * redisplay.c (generate_fstring_runes):
8999         * redisplay.c (screen):
9000         add random comments and doc strings.
9001
9002         * specifier.c:
9003         * specifier.c (Fmake_specifier):
9004         major overhaul of this doc string.
9005
9006         * specifier.c (Fvalid_specifier_domain_p):
9007         comment about the bogosity of image instances being domains.
9008         * specifier.c (decode_domain):
9009         now non-static, used in glyphs.c.
9010         * specifier.c (specifier_instance):
9011         comment about the bogosity of image instances being domains.
9012         * specifier.c (Fgeneric_specifier_p):
9013         move doc string to make-generic-specifier.
9014         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9015         rebackslashify.
9016
9017         * specifier.h:
9018         * specifier.h (DOMAIN_FRAME):
9019         * specifier.h (DOMAIN_LIVE_P):
9020         * specifier.h (DOMAIN_XDEVICE):
9021         rebackslashify.
9022         add comments about problems with these macros.
9023         prototype for decode_domain.
9024
9025         * toolbar.c:
9026         * toolbar.c (Ftoolbar_specifier_p):
9027         move doc string to `make-toolbar-specifier'.
9028
9029         * window.c (window_unmap_subwindows_cache_mapper):
9030         *************************************************************
9031         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9032         HAVE BEEN GETTING.
9033         *************************************************************
9034
9035 2000-05-09  Andy Piper  <andy@xemacs.org>
9036
9037         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9038
9039         * window.c (Fset_window_configuration): reset the frame subwindow
9040         cache and re-initialize the window subwindow caches.
9041
9042         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9043
9044 2000-05-09  Ben Wing  <ben@xemacs.org>
9045
9046         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9047         DWORD.
9048
9049 2000-04-26  Mike Woolley  <mike@bulsara.com>
9050
9051         * ntheap.c: Changed recreate_heap to limit the amount reserved
9052         for the heap to that which is actually available. Also now
9053         displays a message box (with some dignostics) in the event that
9054         it still can't start.
9055
9056 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9057
9058         * callproc.c (Fold_call_process_internal): GCPRO path
9059
9060 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9061
9062         Patch by Bill Perry.
9063
9064         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9065         back data instead of #ifdef.
9066         (Fscrollbar_page_down): ditto.
9067
9068 2000-05-07  Ben Wing  <ben@xemacs.org>
9069
9070         * buffer.h:
9071         Kludge for defining Qmswindows_tstr.
9072
9073         * nt.c:
9074         * nt.c (open_input_file):
9075         * nt.c (open_output_file):
9076         * nt.c (rva_to_section):
9077         * nt.c (mswindows_executable_type):
9078         Move all memory-mapped-file routines here (some were in unexnt.c,
9079         which is bad because they are used by process-nt.c, and unexnt
9080         won't be around when portable dumping).  Synched the above routines
9081         with FSF 20.6.
9082
9083         * nt.h:
9084         Removed ifdef'd out bogus code.
9085         Fixed some prototypes.
9086
9087         * nt.h (file_data):
9088         * nt.h (OFFSET_TO_RVA):
9089         * nt.h (RVA_TO_OFFSET):
9090         * nt.h (RVA_TO_PTR):
9091         Moved the memory-mapped-file structures, macros and prototypes
9092         here, to parallel nt.c.  ntheap.h should really be removed
9093         entirely, and it's a non-portable-dumper specific file.
9094
9095         * ntheap.h (round_to_next):
9096         Moved the memory-mapped-file structures, macros and prototypes
9097         to nt.h.
9098
9099         * ntproc.c (compare_env):
9100         Moved rva_to_section and mswindows_executable_type to nt.c.
9101         Moved compare_env to process-nt.c.
9102         ntproc.c will die, one day.
9103
9104         * ntproc.c (sys_spawnve):
9105         Account for win32_ -> mswindows_.
9106
9107         * process-nt.c:
9108         * process-nt.c (struct nt_process_data):
9109         * process-nt.c (ensure_console_window_exists):
9110         * process-nt.c (compare_env):
9111         * process-nt.c (nt_create_process):
9112         * process-nt.c (nt_kill_process_by_pid):
9113         * process-nt.c (syms_of_process_nt):
9114         * process-nt.c (vars_of_process_nt):
9115         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9116         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9117         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9118         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9119         Move compare_env here from ntproc.c.
9120
9121         * process.c (Fprocess_send_region):
9122         Takes an optional fourth argument, BUFFER, which should fix some
9123         problems with call-process.
9124
9125         * syscommctrl.h:
9126         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9127
9128         * syswindows.h:
9129         Move ICC_BAR_CLASSES to syscommctrl.h.
9130         Add preliminary macros for MSWindows/Mule.  More to come.
9131
9132         * unexnt.c:
9133         * unexnt.c (unexec):
9134         open_output_file moved to nt.c.
9135
9136
9137 2000-05-05  Andy Piper  <andy@xemacs.org>
9138
9139         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9140         instance from the frame cache also since GC may catch up too late
9141         to make frame deletion sane.
9142
9143 2000-05-04  Andy Piper  <andy@xemacs.org>
9144
9145         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9146         (x_finalize_image_instance): ungcpro on deletion.
9147
9148         * glyphs.c (image_instantiator_format_create): give pointers a
9149         query geometry method so that the geometry is at least set.
9150
9151         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9152         initialize layouts if using widgets.
9153
9154 2000-05-03  Andy Piper  <andy@xemacs.org>
9155
9156         * nt.c: remove bogus reference to sysmmsystem.h
9157
9158         * gui-x.c (popup_selection_callback): fix no selection abort.
9159
9160 2000-05-02  Andy Piper  <andy@xemacs.org>
9161
9162         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9163         (mswindows_widget_instantiate): ditto.
9164
9165         * glyphs-widget.c (initialize_widget_image_instance): initialize
9166         children correctly.
9167         (widget_instantiate): cope with children and items in the same
9168         instance.
9169
9170         * glyphs.c (mark_image_instance): cope with children as a first
9171         class member.
9172         (image_instance_equal): ditto.
9173         (image_instance_hash): ditto.
9174         (image_instance_changed): ditto.
9175
9176 2000-04-30  Andy Piper  <andy@xemacs.org>
9177
9178         * glyphs.c (subwindow_query_geometry): new function. Return some
9179         defaults.
9180         (subwindow_instantiate): don't assign dimensions if none have been
9181         given.
9182         (image_instantiator_format_create): add subwindow_query_geometry.
9183         (print_image_instance): cope with layouts as widgets.
9184
9185 2000-04-29  Andy Piper  <andy@xemacs.org>
9186
9187         * frame.c (delete_frame_internal): call
9188         free_frame_subwindow_instance_cache so that all subwindows are
9189         finalized before their parent.
9190         (mark_frame): remove subwindow_cachels.
9191         (Fmake_frame): remove subwindow_cachel manipulation.
9192         (allocate_frame_core): subwindow_instance_cache is a weak list.
9193         (delete_frame_internal): set subwindow_instance_cache to nil.
9194
9195         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9196         finalization safe.
9197         (mswindows_finalize_image_instance): use the device
9198         not the domain as the domain may have died already.
9199
9200         * glyphs-x.c (x_finalize_image_instance): ditto.
9201         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9202         HEIGHT.
9203
9204         * redisplay-output.c (redisplay_unmap_subwindows): update for
9205         subwindow instance cache as a weak list.
9206         (redisplay_unmap_subwindows_maybe): ditto.
9207         (redisplay_unmap_subwindows_except_us): ditto.
9208
9209         * glyphs.c (unmap_subwindow): error checking will check the domain
9210         so don't deal with it here. Don't use cachels anymore.
9211         (map_subwindow): ditto.
9212         (update_subwindow_cachel_data): remove old accessor names.
9213         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9214         (Fresize_subwindow): don't update cachel.
9215         (mark_subwindow_cachels):
9216         (update_subwindow_cachel_data):
9217         (add_subwindow_cachel):
9218         (get_subwindow_cachel_index):
9219         (update_subwindow_cachel):
9220         (reset_subwindow_cachels):
9221         (mark_subwindow_cachels_as_not_updated): deleted.
9222         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9223         subwindow instance to the frame cache.
9224         (find_matching_subwindow): update for subwindow instance cache as
9225         a weak list.
9226         (update_widget_instances): ditto.
9227         (image_instance_type_to_mask):inlined.
9228         (free_frame_subwindow_instance_cache): new function. finalize all
9229         subwindows that are instantiated.
9230
9231         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9232         of cachel information.
9233         (IMAGE_INSTANCE_DISPLAY_X):
9234         (IMAGE_INSTANCE_DISPLAY_Y):
9235         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9236         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9237         (XIMAGE_INSTANCE_DISPLAY_X):
9238         (XIMAGE_INSTANCE_DISPLAY_Y):
9239         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9240         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9241         remove subwindow_cachel structure and function references.
9242         (image_instance_type_to_mask): inline from glyphs.c
9243
9244         * redisplay.c (redisplay_frame): remove subwindow_cachel
9245         references.
9246
9247         * frame.h (struct frame): remove subwindow_cachels.
9248         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9249
9250         * frameslots.h: add subwindow_instance_cache.
9251
9252         * window.c (replace_window): check subwindow cache of replacement.
9253         (window_unmap_subwindows_cache_mapper):
9254         (window_unmap_subwindows): new functions. Unmap all subwindows
9255         cached on this window.
9256         (mark_window_as_deleted): unmap all subwindows.
9257
9258 2000-04-27  Andy Piper  <andy@xemacs.org>
9259
9260         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9261
9262         * glyphs-widget.c (widget_layout): return something.
9263         (layout_layout): return something. Fail if not initialized.
9264         (layout_query_geometry): ditto.
9265         (image_instantiator_native_layout): new function. Initialized the
9266         native layout type.
9267         (widget_instantiate): don't do layout stuff here.
9268
9269         * glyphs.c (instantiate_image_instantiator): reorded calling or
9270         instantiate and post_instantiate with layout in between.
9271         (image_instance_layout): be more selective about deciding whether
9272         the layout has been done or not.
9273
9274         * glyphs.h (struct image_instantiator_methods): return a value
9275         from layout_method.
9276
9277 2000-04-26  Andy Piper  <andy@xemacs.org>
9278
9279         * glyphs.c (allocate_image_instance): make initial width and
9280         height unspecified. Set initialized to 0.
9281
9282         * syscommctrl.h new file. Encapsulates commctrl.h.
9283
9284         * syswindows.h new file. Encapsulates windows.h.
9285
9286         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9287         * nt.c: ditto.
9288         * console-msw.h: ditto.
9289
9290         * redisplay-tty.c (tty_output_display_block): remove layout references.
9291
9292         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9293         window handle rather than just the frame.
9294
9295         * glyphs.c (mark_image_instance): remove layout references.
9296         (print_image_instance): ditto.
9297         (image_instance_equal): ditto.
9298         (image_instance_hash): ditto.
9299         (decode_image_instance_type): ditto.
9300         (encode_image_instance_type): ditto.
9301         (image_instantiate): ditto.
9302         (allocate_glyph): ditto.
9303         (Fimage_instance_height): ditto.
9304         (Fimage_instance_width): ditto.
9305         (update_subwindow): ditto.
9306
9307         * redisplay-x.c (x_output_display_block): recode for layouts as
9308         widgets.
9309
9310         * redisplay-output.c (redisplay_output_layout): recode for layouts
9311         as widgets.
9312         (compare_runes): remove layout references.
9313
9314         * redisplay-msw.c (mswindows_output_display_block): recode for
9315         layouts as widgets.
9316
9317         * glyphs-widget.c (image_instantiator_layout): remove
9318         layout_possible_dest_types.
9319         (layout_possible_dest_types): deleted.
9320
9321         * glyphs.h (image_instance_type): remove layout references.
9322         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9323         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9324         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9325
9326 2000-04-25  Andy Piper  <andy@xemacs.org>
9327
9328         * glyphs-widget.c (image_instantiator_buttons):
9329         (image_instantiator_edit_fields):
9330         (image_instantiator_combo_box):
9331         (image_instantiator_scrollbar):
9332         (image_instantiator_progress_guage):
9333         (image_instantiator_tree_view):
9334         (image_instantiator_tab_control):
9335         (image_instantiator_labels):
9336         (image_instantiator_layout): call default post_instantiate method.
9337         (widget_post_instantiate): new function. Simply lays out the
9338         widgets.
9339
9340         * glyphs.h (struct image_instantiator_methods): add
9341         post_instantiate method.
9342
9343         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9344         method calls.
9345
9346 2000-04-23  Andy Piper  <andy@xemacs.org>
9347
9348         * glyphs.h (struct image_instantiator_methods): add
9349         decode_domain_method.
9350         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9351         derived from the domain.
9352         (IMAGE_INSTANCE_FRAME): new accessor.
9353         (XIMAGE_INSTANCE_FRAME): ditto.
9354
9355         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9356         instead of _SUBWINDOW_FRAME.
9357         (finalize_image_instance): ditto.
9358         (Fimage_instance_foreground): ditto.
9359         (Fimage_instance_background): ditto.
9360         (image_instantiate): ditto.
9361         (update_subwindow_cachel): ditto.
9362         (update_subwindow): ditto.
9363         (unmap_subwindow): ditto.
9364         (map_subwindow): ditto
9365         (subwindow_instantiate): ditto.
9366         * glyphs-msw.c (mswindows_update_widget): ditto.
9367         (mswindows_progress_gauge_instantiate): ditto.
9368         (mswindows_tab_control_update): ditto.
9369         * glyphs-x.c (x_update_widget): ditto.
9370         (x_widget_instantiate): ditto.
9371         (x_tab_control_instantiate): ditto.
9372         (x_tab_control_update): ditto.
9373         * event-msw.c (mswindows_wnd_proc): ditto
9374
9375         * glyphs-widget.c (image_instantiator_layout): use
9376         subwindow_decode_domain.
9377         (image_instantiator_buttons): ditto.
9378         (image_instantiator_edit_fields): ditto.
9379         (image_instantiator_combo_box): ditto.
9380         (image_instantiator_scrollbar): ditto.
9381         (image_instantiator_progress_guage): ditto.
9382         (image_instantiator_tree_view): ditto.
9383         (image_instantiator_tab_control): ditto.
9384         (image_instantiator_labels): ditto.
9385         (image_instantiator_layout): ditto.
9386
9387         * glyphs.c: add instance error checking to many functions.
9388         (instantiate_image_instantiator): decode device from cache_domain.
9389         (image_instantiate): partially rewrite by using
9390         decode_image_instantiator_domain to determine what domain the
9391         instance needs to be cached in.
9392         (decode_image_instantiator_domain): new function. Determine what
9393         domain the image needs to be cached in.
9394         (check_window_subwindow_cache): new error checking function.
9395         (check_instance_cache_mapper): ditto.
9396         (check_image_instance_structure): ditto.
9397         (subwindow_decode_domain): new function. Encodes a window as a
9398         subwindow's cache domain.
9399         (image_instantiator_format_create): use it for text and
9400         subwindows.
9401
9402 2000-04-21  Andy Piper  <andy@xemacs.org>
9403
9404         * glyphs.c (image_instance_device): new function.
9405         (image_instance_frame): new function.
9406         (image_instance_window): new function.
9407         (image_instance_live_p): new function.
9408
9409         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9410         cache to nil.
9411
9412         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9413         (IMAGE_INSTANCE_DOMAIN): new accessor.
9414         (XIMAGE_INSTANCE_DOMAIN): ditto.
9415
9416         * glyphs-x.c (x_finalize_image_instance): device->domain.
9417
9418         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9419         (mswindows_finalize_image_instance): ditto.
9420
9421         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9422         (gif_instantiate): ditto.
9423         (png_instantiate): ditto.
9424         (tiff_instantiate): ditto.
9425
9426         * glyphs.c (instantiate_image_instantiator): use domain rather
9427         than device.
9428         (mark_image_instance): device -> domain.
9429         (print_image_instance): ditto.
9430         (finalize_image_instance): ditto.
9431         (image_instance_equal): ditto.
9432         (allocate_image_instance): ditto.
9433         (Fcolorize_image_instance): ditto.
9434         (query_string_geometry): ditto.
9435         (image_instantiate): ditto
9436         (query_string_font): ditto.
9437         (image_instantiate): ditto.
9438         (update_subwindow): ditto.
9439         (unmap_subwindow): ditto.
9440         (map_subwindow): ditto.
9441         (subwindow_instantiate): ditto.
9442
9443         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9444         (DOMAIN_FRAME): ditto.
9445         (DOMAIN_WINDOW): ditto.
9446         (DOMAIN_LIVE_P): ditto.
9447         (XDOMAIN_DEVICE): ditto.
9448         (XDOMAIN_FRAME): ditto.
9449         (XDOMAIN_WINDOW): ditto.
9450
9451         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9452         a valid specifier domain.
9453
9454 2000-04-19  Andy Piper  <andy@xemacs.org>
9455
9456         * glyphs-widget.c (syms_of_glyphs_widget): remove
9457         widget-callback-current-channel.
9458         (vars_of_glyphs_widget): ditto.
9459         * glyphs.h: ditto
9460
9461         * gui.c (get_gui_callback): revert to previous behaviour.
9462
9463 2000-04-18  Andy Piper  <andy@xemacs.org>
9464
9465         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9466         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9467         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9468
9469         * glyphs.c (image_instance_equal): add margin_width.
9470         (image_instance_hash): ditto.
9471
9472         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9473         (layout_query_geometry): ditto.
9474         (layout_layout): ditto.
9475         (syms_of_glyphs_widget): add margin-width.
9476         (image_instantiator_layout): allow margin-width.
9477
9478         * glyphs.c (update_widget_instances): make a normal function.
9479         (syms_of_glyphs): remove Qupdate_widget_instances.
9480         * glyphs.h: ditto.
9481
9482         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9483         so that we don't corrupt ideas about the last event or
9484         command. Remove widget-callback-current-channel fiddling.
9485         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9486
9487 2000-05-01  Martin Buchholz <martin@xemacs.org>
9488
9489         * XEmacs 21.2.33 is released.
9490
9491 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9492
9493         * make-src-depend: Allow dots in header file name.
9494
9495 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9496
9497         * mule-charset.h (struct charset_lookup): Add
9498         next_allocated_1_byte_leading_byte and
9499         next_allocated_2_byte_leading_byte.
9500         * mule-charset.c: Move above two variables so that those values
9501         will be dumped.
9502
9503 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9504
9505         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9506         when string length is zero.
9507         (find_charsets_in_emchar_string): Ditto.
9508
9509 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9510
9511         * lisp.h: extern Qdialog and Qmenubar.
9512
9513         * gui-x.c: added events.h.
9514                 also fixed typo which made the file uncompilable.
9515
9516         * general.c: Added Qmenubar and Qdialog
9517
9518 2000-04-28  Ben Wing  <ben@xemacs.org>
9519
9520         * frame-msw.c (mswindows_init_frame_1):
9521         * frame-msw.c (mswindows_mark_frame):
9522         * event-msw.c (mswindows_enqueue_dispatch_event):
9523         * console-msw.h:
9524         * console-msw.h (struct mswindows_frame):
9525         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9526         there are now three hash tables for callbacks.
9527         mswindows_enqueue_dispatch_event is no longer static.
9528
9529         * dialog-x.c (maybe_run_dbox_text_callback):
9530         * dialog-x.c (dbox_descriptor_to_widget_value):
9531         switch to new cons3 form for callbacks.
9532
9533         * glyphs-msw.c (mswindows_register_gui_item):
9534         * glyphs-msw.c (mswindows_widget_instantiate):
9535         * glyphs-msw.c (add_tree_item):
9536         * glyphs-msw.c (add_tab_item):
9537         new image instance parameter, so it can be passed to callback-ex.
9538         respect :callback-ex as well as :callback.
9539
9540         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9541         add :callback-ex.
9542
9543         * glyphs.c (print_image_instance):
9544         prettify, e.g. now prints widget type.
9545
9546         * gui-x.h:
9547         certain funs have new image instance parameter.
9548
9549         * gui.c:
9550         * gui.c (get_gui_callback):
9551         * gui.c (gui_item_add_keyval_pair):
9552         * gui.c (gui_item_init):
9553         * gui.c (gui_add_item_keywords_to_plist):
9554         * gui.c (mark_gui_item):
9555         * gui.c (gui_item_hash):
9556         * gui.c (gui_item_equal):
9557         * gui.c (copy_gui_item):
9558         * gui.c (syms_of_gui):
9559         recognize callback-ex in a number of places.
9560         also, fix the annoying "can't get out of yes-no dialog" bug.
9561
9562         * gui.h:
9563         * gui.h (struct Lisp_Gui_Item):
9564         recognize callback-ex in a number of places.
9565
9566         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9567         new parameter in button_item_to_widget_value.
9568
9569         * glyphs-x.c (x_update_widget):
9570         * glyphs-x.c (x_button_instantiate):
9571         * glyphs-x.c (x_button_update):
9572         * glyphs-x.c (x_progress_gauge_instantiate):
9573         * glyphs-x.c (x_edit_field_instantiate):
9574         * glyphs-x.c (x_combo_box_instantiate):
9575         * glyphs-x.c (x_tab_control_instantiate):
9576         * glyphs-x.c (x_label_instantiate):
9577         new image instance parameter in various places.
9578
9579         * event-Xt.c:
9580         * event-Xt.c (enqueue_Xt_dispatch_event):
9581         this fun gets exported.
9582
9583         * gui-msw.c:
9584         * gui-msw.c (mswindows_handle_gui_wm_command):
9585         handle both :callback and :callback-ex, and generate our own
9586         event because it's one of the callback-ex arguments.
9587
9588         * gui-x.c:
9589         * gui-x.c (popup_selection_callback):
9590         handle both :callback and :callback-ex, and generate our own
9591         event because it's one of the callback-ex arguments.
9592         * gui-x.c (button_item_to_widget_value):
9593         * gui-x.c (gui_items_to_widget_values_1):
9594         * gui-x.c (gui_item_children_to_widget_values):
9595         * gui-x.c (gui_items_to_widget_values):
9596         new image instance parameter in various places.
9597
9598         * fns.c (Freplace_list):
9599         fix small typo in doc string.
9600
9601         * lisp.h:
9602         declare enqueue_Xt_dispatch_event.
9603
9604 2000-04-28  Ben Wing  <ben@xemacs.org>
9605
9606         * buffer.c:
9607         * buffer.c (Frecord_buffer):
9608         * buffer.c (syms_of_buffer):
9609         delete record-buffer-hook.
9610
9611         * fns.c:
9612         * fns.c (Freplace_list):
9613         * fns.c (syms_of_fns):
9614         new primitive replace-list.
9615
9616         * frameslots.h:
9617         slot for old buffer-alist.
9618
9619         * lisp.h:
9620         exfun replace-list.
9621
9622         * redisplay.c:
9623         * redisplay.c (redisplay_frame):
9624         * redisplay.c (syms_of_redisplay):
9625         * redisplay.c (vars_of_redisplay):
9626         new hook buffer-list-changed-hook.
9627         call it.
9628
9629 2000-04-27  Ben Wing  <ben@xemacs.org>
9630
9631         * extents.h: extern in_modeline_generation.
9632
9633         * redisplay.c (generate_formatted_string_db): set
9634         in_modeline_generation.
9635
9636         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9637         flags if in modeline generation.  otherwise frame-modified-tick
9638         is ticked far too often.
9639         Declare in_modeline_generation.
9640
9641 2000-04-26  Ben Wing  <ben@xemacs.org>
9642
9643         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9644         option.
9645         (vars_of_emacs): add quick-build as an error-checking option.
9646         A bit kludgy, but there doesn't seem much point in creating
9647         a real var for this.
9648
9649         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9650
9651 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9652
9653         * redisplay.h (struct display_line): Add a new variable,
9654         line_continuation.
9655
9656         * redisplay.c (create_text_block): Set dl->line_continuation if
9657         the line continues.
9658         (create_string_text_block): Ditto.
9659         (regenerate_window_incrementally): Use line_continuation instead
9660         of searching continuation glyph.
9661         (add_margin_runes): Call add_glyph_rune.
9662         (add_glyph_rune): Handle margin glyph.
9663
9664 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9665
9666         * filelock.c (fill_in_lock_file_name):
9667         ANSIfy.
9668         Check for IS_ANY_SEP instead of '/'.
9669         (lock_file_1):
9670         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9671         Never check errno without first seeing that system call failed.
9672         (unlock_file): Add GCPRO.
9673         (Flock_buffer): Fix docstring.
9674         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9675
9676 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9677
9678         * sysdep.c (get_pty_max_bytes):
9679         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9680         strings longer than 252 bytes.
9681
9682         * md5.c: Unconditionally include ANSI header <limits.h>
9683
9684         * glyphs-x.c (convert_EImage_to_XImage):
9685         * lisp-union.h (union Lisp_Object):
9686         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9687
9688 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9689
9690         * filelock.c (current_lock_owner): Remove unused variable o, p.
9691
9692 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9693
9694         * callint.c: Remove multiply defined symbol Qlet
9695         (syms_of_callint): ditto.
9696
9697 2000-04-14  Andy Piper  <andy@xemacs.org>
9698
9699         * general.c (syms_of_general): add last-command, this-command, let
9700         and funcall.
9701
9702         * lisp.h: declare various symbols.
9703
9704         * glyphs.h: declare Qwidget_callback_current_channel;
9705
9706         * glyphs-widget.c (syms_of_glyphs_widget): add
9707         Qgui_callback_current_channel.
9708         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9709
9710         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9711         widget-callback-current-channel when invoking the interactive
9712         arg. Also bind last-command and next-command when invoking the
9713         widget updates.
9714         * gui-x.c (popup_selection_callback): ditto.
9715
9716         * gui.c (get_gui_callback): massage args so that we are always
9717         calling eval. This allows us to add our own variable bindings
9718         outside.
9719
9720         * glyphs-x.c (x_button_instantiate): use
9721         gui_items_to_widget_values since this is GC safe.
9722         (x_progress_gauge_instantiate): ditto.
9723         (x_edit_field_instantiate): ditto.
9724         (x_label_instantiate): ditto.
9725
9726         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9727         (emacs_Xt_event_widget_focus_out): new function
9728         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9729         focus.
9730         (emacs_Xt_event_add_widget_actions): new function. add focus
9731         functions as actions.
9732         (init_event_Xt_late): use it.
9733
9734 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9735
9736         * event-stream.c (Fdispatch_event): Doc fix.
9737
9738 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9739
9740         * postgresql.c: Remove all references to PQsetenv*.
9741
9742         * postgresql.h: Remove references to PGsetenvHandler object.
9743         * lrecord.h (lrecord_type): Ditto.
9744
9745 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9746
9747         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9748         real_heigh and real_width members, and accessor macros for these.
9749
9750         * glyphs-msw.c (init_image_instance_geometry): New function.
9751         (init_image_instance_from_dibitmap): Use it.
9752         (mswindows_resource_instantiate): Use it.
9753         (init_image_instance_from_xbm_inline): Use it.
9754         (mswindows_initialize_image_instance_mask): Use real bitmap
9755         geometry.
9756         (mswindows_create_resized_bitmap): Ditto.
9757         (mswindows_create_resized_mask): Ditto.
9758
9759         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9760         and bitmap to their surface size.
9761
9762 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9763
9764         * process-unix.c (unix_send_process): Guard against process MIA
9765         after Faccept_process_output.
9766
9767 2000-04-11  Ben Wing  <ben@xemacs.org>
9768
9769         * eval.c (unbind_to_hairy): fix brokenness introduced by
9770         nanosecond speed improvements.
9771
9772 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9773
9774         * sunplay.c (init_device): To play sounds correctly, the device
9775         apparently needs to be initialized at least once by XEmacs.  Make
9776         it so.
9777
9778 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9779
9780         * redisplay.c (add_margin_runes): Add text image glyph
9781           handling.
9782
9783 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9784
9785         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9786         gcc is newer than 2.5.
9787
9788 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9789
9790         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9791
9792         * fns.c (size_bit_vector):
9793         * alloc.c (size_vector):
9794         (make_vector_internal):
9795         (make_bit_vector_internal):
9796         (sweep_bit_vectors_1):
9797         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9798
9799 2000-04-06  Andy Piper  <andy@xemacs.org>
9800
9801         * gmalloc.c (malloc): undo previous change.
9802         (malloc): ditto.
9803         (free): ditto.
9804         (realloc): ditto.
9805
9806 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9807
9808         * line-number.c (buffer_line_number): Revert to former version.
9809
9810 2000-04-06  Andy Piper  <andy@xemacs.org>
9811
9812         * gmalloc.c (malloc): add error checking.
9813         (malloc): ditto.
9814         (free): ditto.
9815         (realloc): ditto.
9816
9817         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9818         button_item_to_widget_value arg.
9819
9820         * glyphs-x.c (x_button_instantiate): add extra
9821         button_item_to_widget_value arg.
9822         (x_progress_gauge_instantiate): ditto.
9823         (x_edit_field_instantiate): ditto.
9824         (x_label_instantiate): ditto.
9825
9826         * gui-x.c (gui_items_to_widget_values_1): add extra
9827         button_item_to_widget_value arg.
9828         (button_item_to_widget_value): add extra menu_item_p arg.
9829
9830         * gui-x.h: change signature of button_item_to_widget_value.
9831
9832         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9833         button_item_to_widget_value arg.
9834
9835 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9836
9837         * buffer.h (struct buffer): auto_save_modified should be long.
9838
9839 2000-04-05  Andy Piper  <andy@xemacs.org>
9840
9841         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9842         type.
9843         (button_query_geometry): give a little more room so that athena
9844         buttons fit.
9845
9846 2000-04-05  Andy Piper  <andy@xemacs.org>
9847
9848         * faces.c (complex_vars_of_faces): The widget face should inherit
9849         the font of the gui-element face.
9850
9851 2000-04-04  Andy Piper  <andy@xemacs.org>
9852
9853         * glyphs-x.c (x_button_update): new function. unconditionally
9854         update a button's state when the instance is dirty.
9855         (image_instantiator_format_create_glyphs_x): add x_button_update.
9856         (x_widget_instantiate): remove old resize cruft.
9857
9858 2000-04-02  Andy Piper  <andy@xemacs.org>
9859
9860         * frame.c (change_frame_size_1): The introduction of gutters means
9861         that we need to allow 0 as a potential frame dimension.
9862
9863 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9864
9865         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9866         image glyph if allow_cursor.
9867         (add_hscroll_rune): Don't allow cursor to border glyph.
9868         (create_text_block): Ditto.
9869
9870         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9871         text not in buffer.
9872         (redisplay_output_layout): Call ensure_face_cachel_complete for
9873         text image glyph.
9874
9875
9876 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9877
9878         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9879
9880         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9881         not in buffer
9882
9883         * redisplay-tty.c (tty_output_display_block): Delete the routine
9884         for text image glyph
9885         * redisplay-x.c (x_output_display_block): ditto
9886         * redisplay-msw.c (mswindows_output_display_block): ditto
9887
9888 2000-02-02  Mike Alexander  <mta@arbortext.com>
9889
9890         Note: Some of these were committed by accident as part of other
9891         patches.
9892
9893         * regex.c (regex_compile): Avoid compiler warnings.
9894
9895         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9896
9897         * nt.h: Declare term_ntproc correctly.
9898
9899         * nt.c: Remove incorrect declaration of get_home_directory which
9900         is declared correctly in lisp.h.
9901
9902         * keymap.c (get_keyelt): Avoid compiler warnings.
9903         (raw_lookup_key_mapper): Avoid compiler warnings.
9904
9905         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9906
9907         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9908
9909         * filemode.c (mode_string): Avoid compiler warnings.
9910
9911         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9912         avoid warning.
9913
9914         * events-mod.h: Undef some things that winuser.h defines differently.
9915
9916         * data.c (Faset): Avoid compiler warnings.
9917
9918         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9919
9920 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9921
9922         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9923         Fall through to simple beep on error.
9924         Replace "extern" by real header file.
9925
9926         * linuxplay.c: Use nativesound.h
9927         (play_sound_data): Return error code. Be less verbose on error.
9928
9929         * sunplay.c: Use nativesound.h
9930         (play_sound_data): Return error code. Be less verbose on error.
9931
9932         * ntplay.c: Use nativesound.h
9933         (play_sound_data): Return fake error code
9934
9935         * sgiplay.c: Use nativesound.h
9936         (play_sound_data): Return error code
9937
9938         * hpplay.c: Use nativesound.h, partially implement
9939         new error code. Break compilation until finished.
9940         (play_sound_data): error code.
9941
9942         * nativesound.h (play_sound_file):
9943           (play_sound_data): Prototype in new header.
9944
9945 2000-03-31  Andy Piper  <andy@xemacs.org>
9946
9947         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9948         for toggle and radio buttons.
9949         (image_instantiator_buttons): use it.
9950
9951 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9952
9953         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9954         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9955         found. Scrollbar event probably belonged to some old config.
9956
9957 2000-03-31  Andy Piper  <andy@xemacs.org>
9958
9959         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9960         than 1.
9961         (initialize_widget_image_instance): default layout to
9962         LAYOUT_HORIZONTAL rather than 0.
9963         (widget_instantiate): reverse the item list at the end rather than
9964         every iteration.
9965         (layout_layout): re-code for the border text at the front of the
9966         item list rather than at the end.
9967         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9968         provided by the user.
9969         (widget_query_geometry): comment.
9970
9971 2000-03-30  Andy Piper  <andy@xemacs.org>
9972
9973         * glyphs-widget.c (image_instantiator_layout): allow standard
9974         widget keywords in layouts.
9975
9976         * gutter.c (output_gutter): cope with nil gutter contents.
9977
9978         * frame.c (Fset_frame_properties): add gutter docs.
9979
9980 2000-03-29  Andy Piper  <andy@xemacs.org>
9981
9982         * toolbar-msw.c (TBSTYLE_FLAT): add.
9983         (mswindows_output_toolbar): minor fiddling.
9984
9985 2000-03-29  Andy Piper  <andy@xemacs.org>
9986
9987         * gutter.c (output_gutter): force gutter size recalculation if
9988         what we are trying to display won't fit.
9989         (update_gutter_geometry): new function. A per-gutter version of
9990         update_frame_gutter_geometry.
9991         (update_frame_gutter_geometry): use it.
9992         (redraw_exposed_gutter): add extra debugging output.
9993
9994 2000-03-28  Mike Alexander  <mta@arbortext.com>
9995
9996         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9997         (pdump_file_unmap): Implement it on Windows
9998         (pdump_file_get): Save alocated handles for pdump_file_unmap
9999
10000 2000-03-28  Andy Piper  <andy@xemacs.org>
10001
10002         * gui.c (get_gui_callback): treat Quit specially.
10003
10004 2000-03-27  Andy Piper  <andy@xemacs.org>
10005
10006         * glyphs.c (image_instantiate): be careful to check in the same
10007         way we assigned.
10008
10009 2000-03-27  Didier Verna  <didier@xemacs.org>
10010
10011         * config.h.in: define the proper SMART_INCLUDE macro.
10012         handle renaming of `foo_h_path' to `foo_h_file'.
10013
10014         * database.c: ditto.
10015
10016         * emacs.c: ditto.
10017
10018         * linuxplay.c: ditto.
10019
10020         * terminfo.c: ditto.
10021
10022         * tooltalk.h: ditto.
10023
10024 2000-03-27  Andy Piper  <andy@xemacs.org>
10025
10026         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10027         gets updated whenever the face might have changed.
10028
10029 2000-03-26  Mike Alexander  <mta@arbortext.com>
10030
10031         * dumper.c (pdump_resource_free): Fix the comment.
10032
10033 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10034
10035         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10036
10037 2000-03-22  Mike Alexander  <mta@arbortext.com>
10038
10039         * dumper.c: Include Windows headers on Windows
10040         (pdump_resource_free): Add a body to the function
10041         (pdump_load): exe_name -> exe_path and add some comments.
10042
10043 2000-03-25  Mike Alexander  <mta@arbortext.com>
10044
10045         * gui.c (copy_gui_item_tree): Return a value in all cases
10046
10047 2000-03-21  Didier Verna  <didier@xemacs.org>
10048
10049         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10050         lwlib/config.h.in.
10051         (SMART_INCLUDE): new macro.
10052         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10053         the proper location.
10054
10055         * postgresql.c: use it.
10056
10057         * inline.c: ditto.
10058
10059 2000-03-24  Andy Piper  <andy@xemacs.org>
10060
10061         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10062         do this.
10063
10064 2000-03-24  Andy Piper  <andy@xemacs.org>
10065
10066         * redisplay-output.c (compare_runes): use image_instance_changed
10067         to detect changes. Do not depend on glyphs_changed, only depend on
10068         dirtiness.
10069          (redisplay_output_layout): add debug messages.
10070         (compare_runes): ditto.
10071
10072         * glyphs.h: declare new functions.
10073         (struct Lisp_Image_Instance): remove percent and associated
10074         accessors.
10075
10076         * gui.h: declare new copying functions.
10077
10078         * gui.c (copy_gui_item_tree): new function.
10079         (copy_gui_item): new function.
10080         (gui_item_id_hash): revert to standard hash.
10081         (gui_item_hash): ditto.
10082         (gui_item_hash_internal): deleted.
10083         (mark_gui_item): mark value.
10084         (gui_item_add_keyval_pair): add value.
10085         (gui_item_init): ditto.
10086         (gui_add_item_keywords_to_plist): ditto.
10087         (gui_item_equal): ditto.
10088         (syms_of_gui): add Q_value.
10089
10090         * glyphs-x.c (x_progress_gauge_update): use pending items and
10091         value for setting the state.
10092         (x_update_widget): don't set items from pending here.
10093
10094         * glyphs-widget.c (update_widget): update items here.
10095         (progress_gauge_set_property): use items for storing value. Put
10096         new value in pending items.
10097
10098         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10099         items for new value. Convert percent -> value.
10100         (mswindows_tab_control_update): don't update items here.
10101
10102         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10103         (update_subwindow): ditto.
10104         (image_instance_changed): new function. Compare hash values and
10105         past and present widget items.
10106         (image_instantiate): We more careful about where we instantiate
10107         things.
10108         (image_instantiate): add error checking.
10109
10110         * gutter.c (syms_of_gutter): use -hook.
10111
10112 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10113
10114         * console-tty.c (Fset_console_tty_input_coding_system): Use
10115         Qkeyboard.
10116         (Fset_console_tty_output_coding_system): Use Qterminal.
10117         (tty_init_console): Use Qkeyboard and Qterminal.
10118
10119 2000-03-21  Ben Wing  <ben@xemacs.org>
10120
10121         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10122         From Mike Alexander <mta@arbortext.com>.
10123
10124 2000-03-21  Ben Wing  <ben@xemacs.org>
10125
10126         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10127         process brokenness.  Proper implementation to come.
10128         * callproc.c:
10129         Rename call-process-internal to old-call-process-internal.
10130         New impl. in process.el.
10131
10132 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10133
10134         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10135
10136 2000-03-20  Andy Piper  <andy@xemacs.org>
10137
10138         * glyphs.c (full_list_hash): make hashes of the same elements in
10139         different orders return different values.
10140
10141 2000-03-20  Martin Buchholz <martin@xemacs.org>
10142
10143         * XEmacs 21.2.32 is released.
10144
10145 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10146
10147         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10148         (DFC_MALLOC_USE_CONVERTED_DATA):
10149         Add aliasing-safe casts to allow use with char* or unsigned char*
10150         lvalues.
10151
10152         * eldap.c (Fldap_open):
10153         (Fldap_search_basic):
10154         (Fldap_add):
10155         (Fldap_modify):
10156         Make C++-compilable.
10157         Make sure GCPRO'ed variables are initialized.
10158         Use temp variables to avoid repeated calls to Flength.
10159
10160 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10161
10162         * sysfile.h:
10163         Make sure PATH_MAX is always defined.
10164         Include limits.h for PATH_MAX.
10165         Deprecate use of MAXPATHLEN.
10166
10167 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10168
10169         * emacs.c: Add reinit_vars_of_fileio.
10170         * symsinit.h: Add reinit_vars_of_fileio.
10171         * fileio.c (reinit_vars_of_fileio): New.
10172         * fileio.c (Fmake_temp_name):
10173         Initialize temp_name random number from microseconds to make
10174         collisions even less likely.  Initialize always at process startup
10175         time.  (make-temp-name) used to return the same file name twice in
10176         a row when PDUMP.
10177         Random stylistic fiddling.
10178         Comment fixes.
10179
10180 2000-03-20  Andy Piper  <andy@xemacs.org>
10181
10182         * glyphs.c (image_instantiate): allow text glyphs to be
10183         instantiated in the minibuffer window.
10184
10185 2000-03-19  Andy Piper  <andy@xemacs.org>
10186
10187         * glyphs.c (image_instance_hash): be careful about which items we
10188         hash on.
10189
10190         * glyphs-widget.c (tab_control_set_property): record into pending
10191         items rather than the actual items.
10192
10193         * glyphs-x.c (x_update_widget): use pending items to update with.
10194
10195         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10196         to update with.
10197
10198         * glyphs.c (mark_image_instance): mark pending items.
10199
10200         * window.c (Fset_window_configuration): record the buffer.
10201         (Fselect_window): totally revert previous change which breaks many
10202         things.
10203
10204 2000-03-18  Andy Piper  <andy@xemacs.org>
10205
10206         * glyphs-msw.c (mswindows_tab_control_update): force selected
10207         item.
10208
10209         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10210         window domain cache, otherwise we get inconsistencies at
10211         startup. There is something fishy at startup which can lead to the
10212         minibuffer being the selected window when the gutter content is
10213         instantiated.
10214
10215         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10216         gcpros.
10217         (parse_gui_item_tree_children): ditto.
10218         (parse_gui_item_tree_item): ditto.
10219
10220         * glyphs.c (Fupdate_widget_instances): return something.
10221
10222 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10223
10224         * window.c (Fselect_window): Undo 2000-03-17 change.
10225
10226 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10227
10228         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10229         against v7.0 libraries.  Insta-coredump city until the postgres
10230         folks fix it.
10231
10232 2000-03-17  Andy Piper  <andy@xemacs.org>
10233
10234         * faces.c (complex_vars_of_faces): don't give the widget face an
10235         inherited background pixmap.
10236
10237         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10238         selected item.
10239
10240         * event-stream.c (Fdispatch_non_command_events): return something.
10241
10242         * gutter.c (output_gutter): use widget face.
10243         (clear_gutter): ditto.
10244
10245         * NEWS: adjust again.
10246
10247         * window.c (Fselect_window): make sure this runs to completion to
10248         avoid oddities with Fset_window_configuration.
10249         (Fcurrent_window_configuration): in general do not save the
10250         minibuffer as the selected window.
10251
10252         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10253
10254 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10255
10256         * emacs.c (Frunning_temacs_p): Revert previous patch.
10257         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10258
10259 2000-03-16  Andy Piper  <andy@xemacs.org>
10260
10261         * glyphs-x.c (x_tab_control_update): if no widget values then
10262         return.
10263
10264         * NEWS: update for new features.
10265
10266         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10267         synthetic event to the native system.
10268         (reinit_vars_of_event_Xt): set force_event_pending to
10269         emacs_Xt_force_event_pending.
10270
10271         * events.h (struct event_stream): add force_event_pending.
10272
10273         * specifier.c (recompute_one_cached_specifier_in_window): add
10274         comment.
10275
10276         * redisplay.c (redisplay_frame): don't call
10277         update_frame_subwindows. Reset subwindow cachels when
10278         subwindows_changed, removing this was an optimization too far.
10279
10280         * redisplay-output.c (compare_runes): reorganize so that we catch
10281         glyph changes when we want them. Set optimize_output when this
10282         would help layouts.
10283         (redisplay_output_layout): remove frame_really_changed, use
10284         optimize_output instead.
10285
10286         * redisplay-msw.c (mswindows_output_display_block): reset
10287         optimize_output after outputting a glyph.
10288         * redisplay-x.c (x_output_display_block): ditto.
10289         * redisplay-tty.c (tty_output_display_block): ditto.
10290
10291         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10292         functions.
10293         (gutter_specs_changed): do specific gutter positions.
10294         (top_gutter_specs_changed): new function. Only update the
10295         specified gutter specs.
10296         (bottom_gutter_specs_changed): ditto.
10297         (left_gutter_specs_changed): ditto.
10298         (right_gutter_specs_changed): ditto.
10299
10300         * gui.c (gui_item_hash_internal): new function, does a real hash.
10301         (gui_item_id_hash): use it.
10302         (gui_item_hash): hash the eval'ed gui_item.
10303
10304         * gui-x.c (popup_selection_callback): send an eval event to call
10305         Fupdate_widget_instances.
10306
10307         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10308         to call Fupdate_widget_instances.
10309
10310         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10311         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10312
10313         * glyphs.c: (update_frame_subwindows): deleted.
10314         (Fupdate_widget_instances): new function for updating the dirty
10315         state of widgets that might have changed.
10316         (syms_of_glyphs): add Qupdate_widget_instances.
10317         (full_list_hash): hash a list completely.
10318         (image_instance_hash): use it for items and properties.
10319
10320         * frame-msw.c (mswindows_size_frame_internal): remove unused
10321         variable.
10322
10323         * faces.h (struct face_cachel): fix comment.
10324
10325         * event-stream.c (Fdispatch_non_command_events): new
10326         function. Process non-command events, forcing an event cycle
10327         beforehand.
10328         (syms_of_event_stream): declare.
10329         (event_stream_force_event_pending): new function. Force an event
10330         on the native event queue so that an event cycle will occur next
10331         time we check.
10332
10333         * event-msw.c:
10334         (struct ntpipe_shove_stream):
10335         (mswindows_enqueue_dispatch_event):
10336         (mswindows_dequeue_dispatch_event):
10337         (mswindows_cancel_dispatch_event):
10338         (mswindows_pump_outstanding_events):
10339         (mswindows_drain_windows_queue):
10340         (mswindows_handle_paint):
10341         (mswindows_wnd_proc):
10342         (mswindows_key_to_emacs_keysym):
10343         (get_process_input_waitable):
10344         (emacs_mswindows_delete_stream_pair): re-indent file.
10345         (mswindows_need_event): do not process further fds if the windows
10346         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10347         fixes the 100% cpu problem.
10348         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10349
10350 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10351
10352         * alloc.h: New.
10353         * dumper.h: New.
10354         * dumper.c: New.
10355
10356         * emacs.c: Moved dump file searching to dumper.c.
10357         (Frunning_temacs_p): Fixed.
10358
10359         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10360         last_lrecord_type_index_assigned.
10361
10362 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10363
10364         * symsinit.h: Added reinit parameter to init_console_stream
10365         declaration.
10366
10367         * lisp.h: Added file parameter to pdump_load declaration.
10368
10369         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10370         support.  Added dump file searching.
10371
10372         * config.h.in: Added EMACS_PROGNAME.
10373
10374         * console-stream.c (init_console_stream): Fix reinitialisation
10375         when running from temacs.
10376
10377         * alloc.c (pdump): Add id support.
10378         (pdump_load): Add file parameter and signature/id support.
10379
10380         * Makefile.in.in: Add full pdump support.
10381
10382 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10383
10384         * postgresql.c: Update documentation to reflect latest code
10385         status.
10386         (print_result): Show tuple counts in printed representation when
10387         appropriate.
10388         (Fpq_put_nbytes): MULE-ize.
10389         (Fpq_get_line_async): Ditto.
10390
10391 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10392
10393         * postgresql.c (Fpq_lo_import): Fix return value.
10394         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10395
10396 2000-03-13  Ben Wing  <ben@xemacs.org>
10397
10398         * alloc.c (pdump_load):
10399         Fix compile warning under mswin.
10400
10401 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10402
10403         * postgresql.c: Mule-ization, bug fixes.
10404         Use PG_CODING to encapsulate coding system name changes.
10405         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10406         (pg-coding-system): Create.
10407
10408         (Fpq_conn_defaults): Mule-ize.
10409         (Fpq_connectdb): Mule-ize & bug fix.
10410         (Fpq_connect_start): Mule-ize.
10411         (Fpq_set_client_encoding): Mule-ize.
10412         (Fpq_finish): Document `DEAD' connection status.
10413         (Fpq_clear): Ditto.
10414         (Fpq_pgconn): Mule-ize.
10415         (Fpq_exec): Mule-ize & bug fix.
10416         (Fpq_send_query): Ditto.
10417         (Fpq_get_result): Ditto.
10418         (Fpq_res_status): Mule-ize.
10419         (Fpq_result_error_message): Mule-ize.
10420         (Fpq_ntuples): fix comments.
10421         (Fpq_fname): Mule-ize.
10422         (Fpq_fnumber): Mule-ize.
10423         (Fpq_ftype): fix comments.
10424         (Fpq_get_value): Mule-ize.
10425         (Fpq_cmd_status): Ditto.
10426         (Fpq_cmd_tuples): Ditto.
10427         (Fpq_oid_value): Ditto.
10428         (Fpq_notifies): Ditto.
10429         (Fpq_lo_import): Ditto.
10430         (Fpq_lo_export): Ditto.
10431         (Fpq_get_line): Ditto.
10432         (Fpq_put_line): Mule-ize and bug fix.
10433         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10434
10435 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10436
10437         * postgresql.c (vars_of_postgresql): Mule-ize.
10438         (Fpq_conn_defaults): Ditto.
10439
10440 2000-03-12  Ben Wing  <ben@xemacs.org>
10441
10442         * alloc.c (Fmake_byte_code):
10443         * alloc.c (debug_string_purity_print):
10444         * alloc.c (pdump_backtrace):
10445         * alloc.c (pdump_get_indirect_count):
10446         * alloc.c (pdump_register_sub):
10447         * alloc.c (pdump_register_object):
10448         * alloc.c (pdump_register_struct):
10449         * alloc.c (pdump_dump_data):
10450         * alloc.c (pdump_reloc_one):
10451         Minor cleanups.
10452
10453         * console-msw.c:
10454         * console-msw.c (GetConsoleHwnd):
10455         * console-msw.c (msw_hide_console):
10456         * console-msw.c (msw_show_console):
10457         * console-msw.c (msw_ensure_console_buffered):
10458         * console-msw.c (msw_output_console_string):
10459         * console-msw.c (console_type_create_mswindows):
10460
10461         a) Added functions to manipulate the console window for use with
10462         shell support.
10463
10464         b) Added support for writing text to the console, which is now
10465         used under Windows when xemacs is not being run non-interactively,
10466         to write text that would otherwise be destined for stdout because
10467         under these circumstances, text written to stdout tends to
10468         disappear and not be seen.
10469
10470         * console-msw.h:
10471         * event-Xt.c:
10472         * event-Xt.c (x_event_to_emacs_event):
10473         * event-Xt.c (describe_event_window):
10474         * events-mod.h (XEMACS_MOD_CONTROL):
10475         * events.c:
10476         * events.c (Fmake_event):
10477         * events.c (character_to_event):
10478         * events.c (event_to_character):
10479         * events.c (format_event_object):
10480         * events.c (Fevent_modifiers):
10481         * events.h:
10482         * events.h (struct key_data):
10483         * events.h (struct button_data):
10484         * events.h (struct misc_user_data):
10485         * frame-x.c (Fcde_start_drag_internal):
10486         * frame-x.c (Foffix_start_drag_internal):
10487         * gpmevent.c (Freceive_gpm_event):
10488         * keymap.c:
10489         * keymap.c (bucky_sym_to_bucky_bit):
10490         * keymap.c (control_meta_superify):
10491         * keymap.c (make_key_description):
10492         * keymap.c (keymap_lookup_directly):
10493         * keymap.c (create_bucky_submap):
10494         * keymap.c (keymap_store):
10495         * keymap.c (define_key_check_and_coerce_keysym):
10496         * keymap.c (define_key_parser):
10497         * keymap.c (define_key_alternate_name):
10498         * keymap.c (Fdefine_key):
10499         * keymap.c (raw_lookup_key_mapper):
10500         * keymap.c (struct map_keymap_unsorted_closure):
10501         * keymap.c (map_keymap_unsorted_mapper):
10502         * keymap.c (map_keymap_sort_predicate):
10503         * keymap.c (map_keymap_sorted):
10504         * keymap.c (accessible_keymaps_mapper_1):
10505         * keymap.c (where_is_recursive_mapper):
10506         * keymap.c (describe_map_mapper):
10507         * keymap.c (describe_map_sort_predicate):
10508         * keymap.c (describe_map):
10509         * keymap.c (complex_vars_of_keymap):
10510         And a number of other files, the key modifier preprocessor
10511         constants that xemacs uses have names that conflict with constants
10512         defined under MS Windows for other purposes, so they were renamed
10513         to begin with the prefix XEMACS_. The variables that hold such
10514         modifiers were changed to consistently be of type int to fix
10515         various compile warnings.
10516
10517         * console.c (complex_vars_of_console):
10518         * device.c:
10519         * device-msw.c:
10520         * device-msw.c (mswindows_finish_init_device):
10521         * device-msw.c (msw_get_workspace_coords):
10522         * device-msw.c (mswindows_device_system_metrics):
10523         and various other files, added support for a new
10524         device property called offset-workspace which returns the position
10525         of the upper left corner of the workspace area and goes along with
10526         the existing size-workspace property.
10527
10528         * dialog-msw.c:
10529         * dialog-msw.c (push_bufbyte_string_as_unicode):
10530         * dialog-msw.c (mswindows_popup_dialog_box):
10531         Added support for XEmacs-style accelerator specifications in
10532         button text.  Note: I didn't add support for this under X Windows,
10533         and somebody needs to do this.
10534
10535         * dialog.c:
10536         * dialog.c (Fpopup_dialog_box):
10537         Documented the support for accelerators that was just mentioned.
10538
10539         editfns.c (get_home_directory): Changed behavior under Windows
10540         when HOME not defined; former behavior was irretrievably broken.
10541
10542         * emacs.c:
10543         * emacs.c (main_1):
10544         * emacs.c (main):
10545         * minibuf.c (clear_echo_area_internal):
10546         * minibuf.c (echo_area_append):
10547         * print.c:
10548         * print.c (std_handle_out_external):
10549         * print.c (std_handle_out_va):
10550         * print.c (fatal):
10551         * print.c (write_string_to_stdio_stream):
10552         * print.c (output_string):
10553         * print.c (debug_print):
10554         * print.c (debug_backtrace):
10555         * print.c (debug_short_backtrace):
10556         Cleaned up the code that prints text to stdout so that this can be
10557         changed to output into a console window instead under MS Windows,
10558         as described above.
10559
10560         * eval.c:
10561         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10562         * eval.c (internal_catch):
10563         * eval.c (unwind_to_catch):
10564         * eval.c (throw_or_bomb_out):
10565         * eval.c (condition_case_1):
10566         * eval.c (signal_1):
10567         * eval.c (check_error_state_sanity):
10568         * eval.c (call_with_suspended_errors_1):
10569         * eval.c (call_with_suspended_errors):
10570         * eval.c (reinit_vars_of_eval):
10571         Added code to catch throw loops and check for a pesky bug that may
10572         be gone now.
10573
10574         * event-msw.c:
10575         * event-msw.c (key_needs_default_processing_p):
10576         * event-msw.c (mswindows_wnd_proc):
10577         * event-msw.c (mswindows_modifier_state):
10578         * event-msw.c (emacs_mswindows_quit_p):
10579         * event-msw.c (vars_of_event_mswindows):
10580         a) Added support for using the alt key to select menu items as is
10581         standard under MS Windows.  This is controlled using the variable
10582         menu-accelerator-enabled, just like under X Windows.  There is an
10583         option on the options menu to turn this support on.  I really
10584         think that it should be on by default under Windows, but I'm not
10585         going to make this change yet.
10586
10587         b)  Added support for dynamic display size changes under Windows.
10588
10589         * event-stream.c:
10590         * event-stream.c (maybe_echo_keys):
10591         * event-stream.c (Fnext_event):
10592         * event-stream.c (command_builder_find_leaf):
10593         * event-stream.c (lookup_command_event):
10594         * event-stream.c (execute_command_event):
10595         * event-stream.c (pre_command_hook):
10596         * event-stream.c (post_command_hook):
10597         * event-stream.c (syms_of_event_stream):
10598         * event-stream.c (vars_of_event_stream):
10599         * event-stream.c (complex_vars_of_event_stream):
10600         * events.h (struct command_builder):
10601
10602         a) Tried to clean up a little bit the horribly written x-specific
10603         accelerator code that crept into this file.  I moved this code
10604         into menubar-x.c where it belongs. I also needed to move the
10605         command builder structure into the file events.h because it is
10606         accessed directly by this accelerator code.  What I didn't do, but
10607         which should be done at some point, is to properly abstract this
10608         code using device methods instead of the kludgy way that it
10609         currently hooks into the event code.
10610
10611         b) Added the lisp variables this-command-properties and
10612         last-command- properties, which should be used to synchronize two
10613         adjacent commands in preference to playing games with the variable
10614         this-command, which is typically what happens.
10615
10616         c) Added some slightly nasty code to hook into the lisp support
10617         for shifted- motion-key selection.  This is actually necessary for
10618         somewhat complicated reasons, which are described in
10619         simple.el. (NB: I think the proper thing would be to have the code
10620         that calls the pre and post command hooks also call out to generic
10621         lisp functions in simple.el, where all built-in stuff could be
10622         added.  I will think about this more.)
10623
10624         * event-unixoid.c (poll_fds_for_input):
10625         * lread.c (readchar):
10626         * redisplay-tty.c (tty_clear_frame):
10627         * redisplay-x.c (x_get_gc):
10628         * signal.c (interrupt_signal):
10629         And a whole bunch of other files: fixed up places that printed
10630         directly to stderr to instead call the function stderr_out so that
10631         the changes I made under Windows work correctly.
10632
10633         * filemode.c (mode_string):
10634         Warning fixes.
10635
10636         * frame-msw.c:
10637         * frame-msw.c (mswindows_size_frame_internal):
10638         Fixed the computation of frame size and position to keep the frame
10639         within the workspace area, rather than within the physical
10640         dimensions of the screen, so that the frame doesn't overlap window
10641         manager decorations, such as the start menu and toolbar, typically
10642         at the bottom of the screen.
10643
10644         * frame.c (vars_of_frame):
10645         Changed the default frame title format under MS Windows to consist
10646         of buffername-XEmacs, which is standard under MS Windows.  I think
10647         it might be a good idea to change this everywhere because I think
10648         it is superior to the current frame title format, but this is the
10649         kind of change that is likely to cause some people to get annoyed,
10650         so I'm not making it.
10651
10652         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10653
10654         * gui-msw.c (mswindows_handle_gui_wm_command):
10655         Fixed compile warnings.
10656
10657         * gui-x.c:
10658         * gui-x.c (strdup_and_add_accel):
10659         * gui-x.c (button_item_to_widget_value):
10660         * gui-x.h:
10661         Added code to automatically put an accelerator onto the beginning
10662         of menu items that don't have one as is now the standard, and is
10663         described more later.  Also fixed things so that the menu item
10664         name can be an evaluated expression, again a new standard.
10665
10666         * gui.c:
10667         * gui.c (gui_item_add_keyval_pair):
10668         * gui.c (make_gui_item_from_keywords_internal):
10669         * gui.c (gui_add_item_keywords_to_plist):
10670         * gui.c (gui_item_accelerator):
10671         * gui.c (gui_name_accelerator):
10672         * gui.c (gui_item_included_p):
10673         * gui.c (gui_item_display_flush_left):
10674         * gui.c (gui_item_display_flush_right):
10675         * gui.c (parse_gui_item_tree_item):
10676         * gui.c (parse_gui_item_tree_children):
10677         * gui.c (parse_gui_item_tree_list):
10678         Mule-ized.  Cleanup.  GCPRO addition.
10679
10680         * line-number.c (buffer_line_number):
10681         * lisp.h:
10682         * lisp.h (EMACS_INT_MAX):
10683         Added the manifest constant EMACS_INT_MIN corresponding to the
10684         existing constant EMACS_INT_MAX.  This is partially to fix compile
10685         warnings under Windows, and partly for cleanliness.
10686
10687         * menubar-msw.c:
10688         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10689         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10690         * menubar-msw.c (displayable_menu_item):
10691         * menubar-msw.c (populate_menu_add_item):
10692         * menubar-msw.c (populate_or_checksum_helper):
10693         * menubar-msw.c (populate_menu):
10694         * menubar-msw.c (update_frame_menubar_maybe):
10695         * menubar-msw.c (prune_menubar):
10696         * menubar-msw.c (msw_char_is_accelerator):
10697         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10698         * menubar-msw.c (mswindows_handle_wm_command):
10699         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10700         * menubar-msw.c (mswindows_handle_wm_initmenu):
10701         * menubar-msw.c (mswindows_update_frame_menubars):
10702         * menubar-msw.c (mswindows_free_frame_menubars):
10703         * menubar-msw.c (mswindows_popup_menu):
10704         Fixed a bug in handling accelerators where an extra character
10705         would be displayed in the menu item.  Also generalized the
10706         function displayable_menu_item because it is now used by the
10707         dialog box code as well.  And finally, added code in the functions
10708         that create the menubar to extract a list of accelerators for the
10709         top level menubar, which is used in the event code to determine
10710         whether a particular alt-key combination should be used to invoke
10711         a menu item, or should be passed through to access the standard
10712         XEmacs keymap binding for this key combination.
10713
10714         Much needed GCPROing.
10715
10716         * menubar-x.c:
10717         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10718         * menubar-x.c (menu_item_descriptor_to_widget_value):
10719         * menubar-x.c (restore_in_menu_callback):
10720         * menubar-x.c (x_popup_menu):
10721         * menubar-x.c (menu_move_up):
10722         * menubar-x.c (menu_move_down):
10723         * menubar-x.c (menu_move_left):
10724         * menubar-x.c (menu_move_right):
10725         * menubar-x.c (menu_select_item):
10726         * menubar-x.c (command_builder_operate_menu_accelerator):
10727         * menubar-x.c (menu_accelerator_junk_on_error):
10728         * menubar-x.c (command_builder_find_menu_accelerator):
10729         * menubar-x.c (Faccelerate_menu):
10730         * menubar.h:
10731         Moved a whole bunch of code here that was previously in
10732         event-stream.c as described above.  There is also code connected
10733         to the new standard of adding an accelerator to the beginning of
10734         menu items that don't have one as described above and below.
10735
10736         * menubar.c:
10737         * menubar.c (menu_parse_submenu_keywords):
10738         * menubar.c (Fmenu_find_real_submenu):
10739         * menubar.c (Fnormalize_menu_item_name):
10740         * menubar.c (syms_of_menubar):
10741         * menubar.c (vars_of_menubar):
10742         * menubar.c (complex_vars_of_menubar):
10743
10744         a) Cleaned up a bunch of documentation and improved it.
10745
10746         b) XEmacs now automatically adds an accelerator onto the beginning
10747         of any menu items that don't have one.  I did this because there
10748         will inevitably be some menu items on the main menubar that don't
10749         have accelerators on them because the package that adds that
10750         particular menu item hasn't yet been fixed up to have accelerators
10751         in them and it looked rather strange to have some items with and
10752         some items without accelerators, especially since even in items
10753         without accelerators, you can, at least under windows, still
10754         access the item through an accelerator corresponding to the first
10755         character in the item's name.  If people don't like this behavior,
10756         I can add a variable to turn it off optionally, but I'm not sure
10757         this is a good idea because we really do need to have accelerators
10758         on all of the menu items, and if a package doesn't like the
10759         accelerators being put on the first character, then it should put
10760         the accelerators where they belong.
10761
10762         c) I made a behavior change, which is that the descriptor that
10763         specifies the text of the menu item, which formerly was just a
10764         string, can now also be an evaluated expression.  This makes this
10765         descriptor parallel with all of the others, which could also be
10766         evaluated expressions.  This also obviates the need for the
10767         keyword :label, which was previously listed in the documentation
10768         as unimplemented, and which was for the same purpose.
10769
10770         d) GCPROing.
10771
10772         * ntproc.c:
10773         * ntproc.c (new_child):
10774         * ntproc.c (sys_spawnve):
10775         * ntproc.c (find_child_console):
10776         * ntproc.c (sys_kill):
10777         Fixed compile warnings.  By the way, this file should really go
10778         away entirely, and this will happen as soon as Kirill makes his
10779         final round of process cleanups, which affect the function
10780         call-process.
10781
10782         * process-nt.c:
10783         * process-nt.c (struct nt_process_data):
10784         * process-nt.c (find_process_from_pid):
10785         * process-nt.c (send_signal_the_nt_way):
10786         * process-nt.c (enable_child_signals):
10787         * process-nt.c (find_child_console):
10788         * process-nt.c (send_signal_the_95_way):
10789         * process-nt.c (nt_finalize_process_data):
10790         * process-nt.c (ensure_console_window_exists):
10791         * process-nt.c (nt_create_process):
10792         * process-nt.c (nt_kill_child_process):
10793         * process-nt.c (nt_kill_process_by_pid):
10794         * process-nt.c (nt_open_network_stream):
10795         * process-nt.c (vars_of_process_nt):
10796         Copied over code from Emacs 20.5 to correctly send signals to sub-
10797         processes under Windows 95.  Also added code to automatically
10798         create and hide console window when a sub-process is created under
10799         Windows 95, which obviates the need for the separate runemacs.exe
10800         executable, and finally implemented some variables that were
10801         implemented in Emacs 20.5, but previously not in XEmacs.  These
10802         include mswindows- start-process-share-console and
10803         mswindows-start-process-inherit-error-mode. (Both of these only
10804         apply to Windows 95.)
10805
10806         * regex.c (regex_compile): Fixed a compile warning.
10807
10808         * select-msw.c:
10809         * select-msw.c (mswindows_own_selection):
10810         * select-msw.c (mswindows_get_foreign_selection):
10811         * select-msw.c (mswindows_disown_selection):
10812         * select-msw.c (console_type_create_select_mswindows):
10813         * select-msw.c (syms_of_select_mswindows):
10814         Cleaned up the file and implemented the device method
10815         selection_exists_p, which had accidentally been left out.  Also
10816         removed four lisp functions that were remnants from before the
10817         time when the selection code was properly device abstracted.
10818         These functions are no longer needed because there are generic
10819         equivalents, and because they were added recently and don't exist
10820         in FSF Emacs, I don't think there's any problem with just deleting
10821         them.
10822
10823         * sysdep.c:
10824         * sysdep.c (sys_subshell):
10825         Fixed a compile warning, although in this case there's probably
10826         something wrong with this code, and it ought to be looked into
10827         more thoroughly by somebody who understands it.
10828
10829         * window.c:
10830         * window.c (Fwindow_text_area_height):
10831         * window.c (Fwindow_width):
10832         * window.c (Fwindow_full_width):
10833         * window.c (Fwindow_pixel_width):
10834         * window.c (debug_print_window):
10835         * window.c (syms_of_window):
10836         Added functions window-text-area-height and window-full-width,
10837         which are functions for returning various width and height
10838         characteristics of a window. (One of these functions is necessary
10839         for making the file dialog box work correctly, and the other one
10840         was added for completeness.)  Also added a table to the
10841         documentation for window-height which describes the entire scheme
10842         for accessing width and height characteristics of a window.
10843
10844 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10845
10846         * nt.c (fstat): Added a comment for another problem with
10847         non-encapsulated [f]stat(), reported by Adrian Aichner
10848         <aichner@ecf.teradyne.com>.
10849
10850 2000-03-11  Andy Piper  <andy@xemacs.org>
10851
10852         * window.c (make_dummy_parent): initialize subwindow instance
10853         cache.
10854         (Fset_window_configuration): zero extent_modiff.
10855
10856 2000-03-10  Andy Piper  <andy@xemacs.org>
10857
10858         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10859         more changes can be triggered.
10860         (Fredisplay_frame): ditto.
10861         (Fredraw_device): ditto.
10862         (Fredisplay_device): ditto.
10863         (redisplay_frame): make non-static.
10864         (redisplay_frame): call update_frame_gutter_geometry outside of
10865         display proper.
10866
10867         * gutter.h: declare update_frame_gutter_geometry.
10868
10869         * redisplay.h: declare redisplay_frame.
10870
10871         * gutter.c (update_frame_gutter_geometry): move geometry changes
10872         in update_frame_gutters here. Geometry changes can only occur
10873         outside of redisplay.
10874         (update_frame_gutters): remove geometry change code.
10875         (Fredisplay_gutter_area): make sure that we are in display when we
10876         update and that we have flushed any size changes.
10877
10878 2000-03-11  Andy Piper  <andy@xemacs.org>
10879
10880         * alloc.c (pdump_dump_data): remove i & count shadows.
10881
10882 2000-02-27  Mike Alexander  <mta@arbortext.com>
10883
10884         * sysdep.h: Declare pdump_read_file
10885
10886         * sysdep.c (pdump_read_file): New function
10887
10888         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10889         dump data
10890
10891 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10892
10893         * lrecord.h: add `lrecord_type_pgsetenv'.
10894
10895 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10896
10897         * symsinit.h: declare (vars|syms)_of* functions.
10898         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10899
10900 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10901
10902         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10903
10904         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10905         GCCs.
10906
10907         * emacs.c (main_1): Call postgres initialization code.
10908
10909         * postgresql.h: New file.  PostgreSQL RDBMS support.
10910         * postgresql.c: New file.
10911
10912 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10913
10914         * redisplay-output.c (redisplay_output_display_block): Disable
10915         redundant code.
10916
10917 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10918
10919         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10920         (Fcanna_henkan_next): Ditto.
10921         (Fcanna_bunsetu_henkou): Ditto.
10922         (Fcanna_henkan_kakutei): Ditto.
10923         (Fcanna_henkan_end): Ditto.
10924         (Fcanna_henkan_quit): Ditto.
10925         (Fcanna_henkan_next): Set retun value correctly.
10926         (c2mu): Use unsigned char instead of signed char.
10927
10928 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10929
10930         * emacs.c (main_1): Always call syms_of_gui.
10931         * inline.c: include gui.h
10932
10933 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10934
10935         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10936         converted to Lisp_Object.
10937         (Qtop_bottom): New variable.
10938         (syms_of_redisplay): Initialize it.
10939         * redisplay.h (Vvisible_bell): Ditto.
10940         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10941         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10942         only flash top and bottom.
10943
10944 2000-03-08  Andy Piper  <andy@xemacs.org>
10945
10946         * buffer.c (Frename_buffer): record new buffer name the right way.
10947
10948 2000-03-08  Andy Piper  <andy@xemacs.org>
10949
10950         * glyphs.c (update_subwindow): increase hash depth so that widget
10951         items get picked up properly.
10952
10953         * redisplay-output.c (compare_runes): increase hash depth so that
10954         widget items get picked up properly.
10955
10956 2000-03-08  Andy Piper  <andy@xemacs.org>
10957
10958         * gutter.c (output_gutter): add some debug.
10959
10960         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10961         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10962         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10963
10964         * redisplay-output.c (compare_runes): use display_hash to
10965         determine if glyphs really are not the same.
10966
10967         * glyphs.c (update_subwindow): check display_hash to see if
10968         anything really needs to be updated. If not then do
10969         nothing. Record the display_hash after updating.
10970         (image_instance_equal): compare the image_instance face also.
10971
10972 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10973
10974         * redisplay.h: Fix comment style.
10975
10976 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10977
10978         * consle-msw.h (struct mswindows_frame):
10979         Added new member paint_pending to indicate whether a WM_PAINT
10980         magic event has been queued for this frame.
10981
10982         * event-msw.c (mswindows_drain_windows_queue):
10983         Don't queue a WM_PAINT magic event if one is already queued.
10984         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10985
10986         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10987
10988 2000-03-07  Didier Verna  <didier@xemacs.org>
10989
10990         * dired.c: #include `regex.h' after `sysfile.h'.
10991
10992 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10993
10994         * sound.c (init_nas_sound): Fix compiler warning.
10995
10996         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10997         (FREE_STRUCT_P):
10998         (MARK_STRUCT_AS_FREE):
10999         (MARK_STRUCT_AS_NOT_FREE):
11000         Make `gcc -fstrict-aliasing' work properly.
11001
11002 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11003
11004         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11005         (mswindows_delete_device): Call CoUnnitialize().
11006
11007         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11008
11009 2000-02-25    <CraigL@DyCon.com>
11010
11011         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11012         <errno.h>.
11013
11014         * sysdep.c: This extern declaration for environ prevents MinGW
11015         from finding the variable in CRTDLL.DLL.
11016
11017         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11018         windows headers.
11019         (SHGFI_EXETYPE): ..
11020         (WM_MOUSEWHEEL): ..
11021         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11022         definitions.
11023         (MMRESULT): Removed, now defined in cygwin's windows headers.
11024         (TIMECAPS): ..
11025         (uid_t,gid_t,pid_t,ssize_t): ..
11026         (_timeb): Removed, MinGW defines both _timeb and timeb.
11027         (HAVE_H_ERRNO): Added.
11028         (HAVE_TZNAME): Added, configure is not detecting this.
11029
11030 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11031
11032         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11033         * syntax.c (syntax_match): Use it.
11034
11035         * cmds.c: Import auto-fill-chars from FSF Emacs.
11036         (Vauto_fill_chars): New variables.
11037         (internal_self_insert): Check Vauto_fill_chars.
11038         (vars_of_cmds):
11039         Declare auto-fill-chars as a Lisp variable and initialize it.
11040
11041 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11042
11043         * fileio.c (Fmake_symbolic_link):
11044         (Ffile_symlink_p):
11045         Run handlers even if local machine doesn't have symlinks.
11046
11047 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11048
11049         * event-msw.c (mswindows_drain_windows_queue):
11050         Don't generate paint magic events for non-XEmacs frames.
11051
11052 2000-03-05  Andy Piper  <andy@xemacs.org>
11053
11054         * redisplay.c (redisplay_frame): generate_displayable_area and
11055         friends assumes that we are not in GC, we therefore have to make
11056         sure that this doesn't happen.
11057
11058         * gutter.c (calculate_gutter_size): generate_displayable_area
11059         assumes that we are not in GC, we therefore have to make sure that
11060         this doesn't happen.
11061
11062 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11063
11064         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11065
11066 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11067
11068         * redisplay.c (regenerate_window): Make sure we set a sane value
11069         for end_pos even if we jump out of the loop.
11070         (regenerate_window): Answer Ben's question :-).
11071         (start_end_of_last_line): Add may_error argument.
11072         (start_of_last_line):
11073         (end_of_last_line): Pass may_error = 0.
11074         (end_of_last_line_may_error): New function.
11075         (pixel_to_glyph_translation): Use it, so we don't crash in
11076         event_to_glyph.
11077
11078 2000-03-04  Andy Piper  <andy@xemacs.org>
11079
11080         * window.h (struct window): add gutter_extent_modiff.
11081
11082         * window.c (allocate_window): zero out gutter_extent_modiff.
11083
11084         * redisplay.h: declare sync_display_line_structs.
11085
11086         * redisplay.c (add_glyph_rune): add a better comment.
11087
11088         * redisplay-output.c (sync_display_line_structs): made non-static.
11089         (compare_runes): remove unneccesary glyph cachel access.
11090
11091         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11092
11093         * gutter.c (output_gutter): don't output the gutter if extent
11094         changes only involve extents in buffers. use 4 sets of display
11095         lines.
11096         (gutter_extent_signal_changed_region_maybe): new function. Mark
11097         extents in gutters as changed.
11098         (update_frame_gutters): use 4 sets of display lines.
11099         (reset_gutter_display_lines): ditto.
11100         (free_frame_gutters): ditto.
11101         (redraw_exposed_gutter): force output of gutters.
11102
11103         * frame.h (struct frame): add 4 sets of gutter display lines.
11104
11105         * extents.c: (extent_changed_for_redisplay): signal changes to
11106         extents in strings in the gutter as well as extents in buffers.
11107
11108 2000-03-02  Andy Piper  <andy@xemacs.org>
11109
11110         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11111
11112         * frame.c (Fmake_frame): make sure the gutters get initialized
11113         after the frame is visible.
11114         (set_frame_selected_window): re-arrange compilation macros a
11115         little.
11116         (change_frame_size_1): mark gutters changed.
11117
11118         * device.c (Fset_device_class): mark gutters changed.
11119
11120 2000-03-01  Andy Piper  <andy@xemacs.org>
11121
11122         * window.c (window_top_frame_gutter_height): deleted.
11123         (window_bottom_frame_gutter_height): ditto.
11124         (window_left_frame_gutter_height): ditto.
11125         (window_right_frame_gutter_height): ditto.
11126         (window_top_gutter_height): don't use them.
11127         (window_bottom_gutter_height): ditto.
11128         (window_left_gutter_width): ditto.
11129         (window_right_gutter_width): ditto.
11130         (Fsplit_window): ditto.
11131         (Fwindow_pixel_edges): don't use border dimensions here.
11132
11133         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11134         (update_scrollbar_instance): ditto.
11135
11136         * redisplay.c (generate_modeline): don't take gutters into account.
11137         (generate_modeline): ditto.
11138         (redisplay_frame): small gutter display optimization.
11139
11140         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11141
11142         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11143         gutters into account.
11144
11145         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11146         for window position and type.
11147
11148         * gutter.c (get_gutter_coords): fix for frame gutters.
11149         (update_frame_gutters): update frame geometry if the gutters have
11150         changed.
11151         (init_frame_gutters): record current gutter geometries.
11152
11153         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11154         var.
11155         (mswindows_widget_instantiate): ditto.
11156
11157         * frame.h (struct frame): add current_gutter_bounds.
11158
11159         * frame.c (change_frame_size_1): position window and minibuffer
11160         appropriately taking into account the frame gutters.
11161
11162         * frame-x.c: (x_initialize_frame_size): take into account the
11163         frame gutters.
11164
11165 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11166
11167         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11168
11169 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11170
11171         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11172
11173 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11174
11175         * file-coding.c (reset_decoding_stream): Clear previous
11176         detection state when autodetect.
11177
11178 2000-02-29  Didier Verna  <didier@xemacs.org>
11179
11180         * extents.c (set_extent_glyph_1): don't require extents to be
11181         attached.
11182
11183 2000-02-27  Andy Piper  <andy@xemacs.org>
11184
11185         * gutter.c (Fset_default_gutter_position): don't default left and
11186         right gutter visibility to t.
11187         (Fset_default_gutter_position): run
11188         default-gutter-position-changed-hook.
11189         (syms_of_gutter): add default-gutter-position-changed-hook.
11190
11191 2000-02-26  Andy Piper  <andy@xemacs.org>
11192
11193         * specifier.c (Fmake_specifier): add gutter references.
11194
11195         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11196
11197         * lisp.h: declare Fvalid_plist_p.
11198
11199         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11200         as changed.
11201         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11202         well as its visibility so that it gets reconstructed.
11203         (construct_window_gutter_spec): new function. Construct a string
11204         to be displayed in the gutter from a plist of strings. Take care
11205         to only use elements that are declared as visible.
11206         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11207         WINDOW_GUTTER.
11208         (gutter_validate): allow plists of strings in the specifier.
11209         (gutter_specs_changed): construct the real_gutter from the gutter
11210         specs using construct_window_gutter_spec.
11211         (gutter_visible_validate): gutter-visible is a new specifier type.
11212         (Fgutter_visible_specifier_p): new function for the new specifier.
11213         (syms_of_gutter): declare gutter-visible and
11214         Fgutter_visible_specifier_p.
11215         (specifier_type_create_gutter): intitalize new gutter-visible
11216         specifier.
11217         (reinit_specifier_type_create_gutter): ditto.
11218         (specifier_vars_of_gutter): use new specifier type for gutter
11219         visibility.
11220         (init_frame_gutters): construct real_gutter correctly.
11221         (Fgutter_specifier_p): beef up documentation.
11222         (Fgutter_size_specifier_p): ditto.
11223
11224         * winslots.h: add real_gutter slots.
11225
11226 2000-02-25  Andy Piper  <andy@xemacs.org>
11227
11228         * device-msw.c: Be kind to older cygwin versions. From Raymond
11229         Toy <toy@rtp.ericsson.se>.
11230
11231         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11232         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11233
11234 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11235
11236         * elhash.c (MARK_OBJ): Practice macro hygiene.
11237
11238 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11239
11240         * miscplay.c: s/__inline__/inline/g;
11241         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11242         (get_device_compdc): INLINE ==> static inline
11243         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11244         find -name '*.h' | \
11245         xargs global-replace \
11246         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11247
11248 2000-02-25  Andy Piper  <andy@xemacs.org>
11249
11250         * window.c (window_top_frame_gutter_height): new function.
11251         (window_top_window_gutter_height): ditto.
11252         (window_top_gutter_height): use them.
11253         (window_bottom_frame_gutter_height): new function.
11254         (window_bottom_window_gutter_height): ditto.
11255         (window_bottom_gutter_height): use them.
11256         (window_left_window_gutter_width): new function.
11257         (window_left_frame_gutter_width): ditto.
11258         (window_left_gutter_width): use them.
11259         (window_right_window_gutter_width): new function.
11260         (window_right_frame_gutter_width): ditto.
11261         (window_right_gutter_width): use them.
11262         (window_pixel_height): new function. calulate window pixel height
11263         with frame gutter involvement.
11264         (Fsplit_window): calculate new sizes taking frame gutters into
11265         account.
11266         (window_char_height_to_pixel_height): don't include frame gutters.
11267         (window_char_height): use window_pixel_height.
11268         (window_pixheight): rename from window_pixel_height.
11269         (change_window_height): use it.
11270         (window_pixel_height_to_char_height): don't include frame gutters.
11271         (window_char_width_to_pixel_width): ditto.
11272
11273 2000-02-25  Andy Piper  <andy@xemacs.org>
11274
11275         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11276         if it is.
11277
11278 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11279
11280         * alloc.c (staticpro):
11281         (staticpro_nodump):
11282         (dumpstruct):
11283         (dumpopaque):
11284         (pdump_wire):
11285         (pdump_wire_list):
11286         (compact_string_chars):
11287         (pdump_dump_wired):
11288         Convert:  if (foo) abort();  ==>  assert (! foo);
11289
11290         * eldap.c (Fldap_search_basic):
11291         (Fldap_add):
11292         (Fldap_modify):
11293         (Fldap_delete):
11294         Fix compiler warnings, and possible crashes if (random) return
11295         value were to be used.
11296
11297 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11298
11299         * device-msw.c: Workaround ResetDC failure.
11300
11301         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11302         applying a devmode.
11303
11304         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11305         (mswindows_text_width): Do not start printer page.
11306
11307         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11308
11309         * glyphs-msw.c: Added image methods to msprinter console and
11310         msprinter-specific image instantiation.
11311
11312 2000-02-20  Mike Alexander  <mta@arbortext.com>
11313
11314         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11315         to avoid crashes when selection-sets-clipboard is on
11316         (mswindows_own_selection): ditto
11317
11318 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11319
11320         * glyphs-msw.c:
11321         * redisplay-msw.c (get_frame_dc):
11322         (get_frame_compdc):
11323         * console-msw.h:
11324         * device-msw.c (mswindows_init_device):
11325         (mswindows_delete_device):
11326         (msprinter_init_device):
11327         (msprinter_delete_device):
11328         * frame-msw.c (mswindows_init_frame_1):
11329         (mswindows_delete_frame):
11330         (msprinter_init_frame_3):
11331         (msprinter_delete_frame): Move compatible DC to device object from
11332         frame object, for both mswindows and msprinter. Only one at a time
11333         is needed, it is a real waste to have one per frame!
11334
11335 2000-02-23  Andy Piper  <andy@xemacs.org>
11336
11337         * glyphs.c: add dynamic width and height elements.
11338         (image_instance_equal): ditto.
11339
11340         * glyphs-widget.c (widget_query_geometry): calculate width and
11341         height dynamically if required.
11342         (initialize_widget_image_instance): initialize dynamic dimensions.
11343         (widget_instantiate): pick-up dynamic dimensions.
11344
11345         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11346         dynamic determination. Add appropriate macros.
11347
11348         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11349         dimensions safe.
11350         (WINDOW_GUTTER_SIZE): ditto.
11351         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11352
11353         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11354         inline.
11355         (get_frame_dc): ditto.
11356
11357         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11358         here.
11359
11360 2000-02-23  Martin Buchholz <martin@xemacs.org>
11361
11362         * XEmacs 21.2.31 is released.
11363
11364 2000-02-22  Ben Wing <ben@xemacs.org>
11365
11366         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11367
11368 2000-02-22  Andy Piper  <andy@xemacs.org>
11369
11370         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11371
11372 2000-02-21  Mike Sperber <mike@xemacs.org>
11373
11374         * .dbxrc:
11375         * .gdbinit:
11376         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11377         variables.
11378
11379 2000-02-21  Mike Sperber <mike@xemacs.org>
11380
11381         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11382
11383 2000-02-21  Martin Buchholz <martin@xemacs.org>
11384
11385         * XEmacs 21.2.30 is released.
11386
11387 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11388
11389         Performance hacking.
11390         * *.c (syms_of_*):
11391         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11392         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11393         * emacs.c (main_1):
11394         * lisp.h (DEFUN):
11395         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11396         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11397         * symeval.h (DEFVAR_SYMVAL_FWD):
11398         * symbols.c (guts_of_unbound_marker):
11399         Make all c_readonly objects also lisp_readonly and marked for life.
11400         * lrecord.h (struct lrecord_implementation):
11401         Document flags better.
11402         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11403         * lrecord.h (DECLARE_LRECORD):
11404         * lrecord.h (XSETRECORD):
11405         * lrecord.h (RECORDP):
11406         * lrecord.h (RECORD_TYPEP):
11407         * lrecord.h (RECORD_MARKER): New.
11408         * lrecord.h (error_check_*):
11409         * lrecord.h (CONCHECK_NONRECORD):
11410         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11411         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11412         * lrecord.h (set_lheader_implementation):
11413         * lrecord.h (enum lrecord_type): New.
11414         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11415         * alloc.c (disksave_object_finalization_1):
11416         * alloc.c (mark_object):
11417         * alloc.c (lrecord_type_index):
11418         * alloc.c (tick_lcrecord_stats):
11419         * alloc.c (Fgarbage_collect):
11420         * alloc.c (init_alloc_once_early):
11421         * alloc.c (pdump_load):
11422         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11423         * alloc.c (lrecord_type_index): Delete.
11424         Make lisp object type indexes be constant.
11425           Makes (byte-compile) 5% faster.
11426         Put all marker functions into their own array.
11427           Makes (garbage-collect) 5% faster.
11428         Optimize SYMBOL_VALUE_MAGIC_P.
11429           Makes (byte-compile) 2-3% faster.
11430         * config.h.in (gc_checking_assert): New.
11431         * alloc.c: Use gc_checking_assert().
11432         * .dbxrc: Make compatible with new object type implementation.
11433         * .gdbinit: Make compatible with new object type implementation.
11434         * alloc.c: Delete all symbols defined only for debugging, such as
11435         Lisp_Type_Vector and lrecord_charset.
11436
11437 2000-02-21  Andy Piper  <andy@xemacs.org>
11438
11439         * gui-msw.c (Fmswindows_shell_execute): fix file location
11440         problems.
11441
11442         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11443         unshowing so that set_window_buffer doesn't undo
11444         kill_buffer_hook's hard work.
11445
11446         * glyphs-widget.c (tab_control_query_geometry): don't count the
11447         first item when calculating geometry.
11448
11449         * glyphs.c (map_subwindow): remove redundant code.
11450         (update_frame_subwindows): be more circumspect about when to
11451         update subwindows.
11452
11453         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11454         when items haven't changed. Update faces if faces have changed as
11455         well as just the widget face.
11456         (x_tab_control_update): Update faces if faces have changed as well
11457         as just the widget face.
11458
11459 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11460
11461         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11462         registration.
11463         (build_syscolor_string): Use mswindows_color_to_string to try to
11464         get a named color.
11465         (mswindows_device_system_metrics): Reverse the foreground and
11466         background colors so that they match the documentation.
11467
11468         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11469         they match the default Windows palette.
11470         (mswindows_color_to_string): New function.
11471
11472 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11473
11474         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11475
11476 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11477
11478         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11479         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11480
11481         * symbols.c (init_symbols_once_early): Removed obsolete
11482         DATA_SEG_BITS related kludge.
11483         (defvar_magic): Ditto.
11484
11485         * malloc.c: Removed obsolete DATA_SEG_BITS
11486         * ralloc.c: Ditto.
11487         * mem-limits.h: Ditto.
11488
11489         * Makefile.in.in: Removed obsolete HAVE_SHM
11490         * emacs.c: Ditto.
11491
11492 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11493
11494         *  device-msw.c (mswindows_delete_device): Free DDE string
11495         handles.
11496
11497 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11498
11499         * keymap.c (get_keyelt):
11500         * unexnt.c (unexec):
11501         * vm-limit.c (memory_warnings):
11502         * ntheap.c (recreate_heap):
11503         * ntheap.h (UNINIT_PTR):
11504         * select-msw.c (Fmswindows_get_clipboard):
11505         (Fmswindows_set_clipboard):
11506         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11507         * objects-msw.c:
11508         * menubar-msw.c (displayable_menu_item):
11509         * glyphs-msw.c:
11510         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11511         * sysdep.c (sys_subshell):
11512         * process-nt.c (nt_create_process):
11513         * nt.c (normalize_filename):
11514         (dostounix_filename):
11515         (unixtodos_filename):
11516         * ntproc.c (win32_executable_type):
11517         * ntplay.c (play_sound_data_1):
11518         (play_sound_file):
11519         * editfns.c (get_home_directory):
11520         * event-msw.c (struct winsock_stream):
11521         (mswindows_dde_callback):
11522         * device-msw.c (msprinter_init_device):
11523         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11524
11525         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11526         mswindows_clear_toolbar were swapped!
11527
11528         * objects-msw.c:(colormap_t):
11529         (fontmap_t):
11530         * emacs.c (struct standard_args): Fixed const jumble.
11531
11532         * glyphs-widget.c (update_widget): Fixed comparison notation.
11533
11534         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11535
11536         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11537         __declspec(noreturn) syntax.
11538
11539 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11540
11541         * eldap.c (Fldap_open):
11542         (Fldap_search_basic):
11543         (Fldap_add):
11544         (Fldap_modify):
11545         Use new coding system conversion macros.
11546
11547 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11548
11549         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11550
11551 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11552
11553         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11554         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11555
11556         * eldap.c (Qadd, Qreplace): New constant symbols
11557         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11558         interruptions by XEmacs signals
11559         Remove unnecessary calls to slow_down_interrupts and
11560         speed_up_interrupts
11561         (Fldap_search_basic): Renamed from Fldap_search_internal
11562         Added new optional parameter VERBOSE that triggers the
11563         display of progress messages
11564         Remove unnecessary calls to slow_down_interrupts and
11565         speed_up_interrupts
11566         LDAP result code analysis rewritten
11567         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11568         (syms_of_eldap): Define the new symbols and functions
11569
11570
11571 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11572
11573         * realpath.c: Determine PATH_MAX maximally portably.
11574
11575         * insdel.c (bytecount_to_charcount): Optimize.
11576         The function used to be optimized for entirely ASCII sequences.
11577         Now it is optimized for successive characters from the same
11578         charset.  This also wins big for _mostly_ ASCII sequences.
11579
11580         * fileio.c (Ffile_truename): convert return from realpath() using
11581         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11582         - Rewrite GCPROing slightly.
11583
11584         * sysdep.c (sys_open): Do filename conversion, like all other
11585         sys_* functions.  Fixes bug:
11586         (let ((file-name-coding-system 'iso-8859-2))
11587            (write-region x y latin2-name))
11588         ==> writes filename using internal encoding.
11589
11590 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11591
11592         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11593         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11594         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11595         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11596         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11597         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11598         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11599         (CONST_IF_NOT_DEBUG): Delete.
11600         * alloc.c (this_one_is_unmarkable): Delete.
11601         (mark_object): Don't check for this_one_is_unmarkable. Use the
11602         c_readonly flag instead.
11603         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11604
11605 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11606
11607         * event-msw.c (mswindows_drain_windows_queue):
11608         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11609         away redundant repaint events.
11610
11611 2000-02-17  Andy Piper  <andy@xemacs.org>
11612
11613         * redisplay.h: declare mark_redisplay_structs.
11614
11615         * redisplay.c (redisplay_window):
11616         (redisplay_frame): don't check subwindows_state_changed.
11617         (mark_redisplay): mark gutters here.
11618
11619         * glyphs.c: (instantiate_image_instantiator): always layout if we
11620         haven't done so already.
11621         (allocate_image_instance): don't mark as dirty.
11622         (update_subwindow): bind inhibit_quit.
11623
11624         * gutter.c (mark_gutters): new function.
11625
11626         * glyphs-x.c (x_update_widget): Always resize to get round a
11627         widget bug.
11628
11629         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11630         breaking absolutely everything.
11631
11632         * gutter.h: declare mark_gutters.
11633
11634 2000-02-16  Martin Buchholz <martin@xemacs.org>
11635
11636         * XEmacs 21.2.29 is released.
11637
11638 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11639
11640         * fns.c (size_bit_vector): Fix computation of the size.
11641
11642 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11643
11644         * *.[ch]: Change CONST to const globally.
11645         find -name '*.[ch]' | \
11646         xargs global-replace \
11647         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11648         - Remove vestigial references to CONST_IS_LOSING
11649
11650 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11651
11652         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11653         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11654         events instead of dispatching them directly.
11655         (mswindows_handle_paint): New function to do repainting.
11656         (mswindows_wnd_proc):
11657         (emacs_mswindows_handle_magic_event): Call above function.
11658
11659 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11660
11661         * objects-msw.c (mswindows_create_font_variant): Return the new
11662         font handle.
11663         (initialize_font_instance): Get font metrics from the underlined
11664         variant of the font to cope with the case where the underlined
11665         font has a bigger descent.
11666
11667 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11668
11669         * gui.c (gui_item_accelerator): Return the first underlined
11670         character in item name.
11671
11672 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11673
11674         * lisp.h: Added Qprinter.
11675
11676         * general.c (syms_of_general): Initialized it.
11677
11678         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11679         (get_frame_dc):
11680         (get_frame_compdc): Made inline.
11681
11682         * console.h (struct console_methods): Added eject_page method.
11683
11684         * frame.h: Added FRAME_DISPLAY_P and friends.
11685         Aligned backslahes in many macros in more readable fashion.
11686         Added page_number to struct frame, and an accessor macro
11687         for it.
11688
11689         * defice.h: Added DEVICE_DISPLAY_P and friends.
11690
11691         * device.c (Fdevice_printer_p): Used these.
11692
11693         * frame.c (allocate_frame_core): Initialize page number.
11694         (Fprint_job_page_number):
11695         (Fprint_job_eject_page): Implemented.
11696
11697         * frame-msw.c (msprinter_eject_page): Added method.
11698         (msprinter_start_page): Added.
11699
11700         * window.c (Fwindow_truncated_p): Fixed docstring.
11701         (Fwindow_last_line_visible_height): Implemented.
11702
11703 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11704
11705         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11706
11707 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11708
11709         * syntax.c (scan_words): Always advance at least one character.
11710
11711 2000-02-13  Andy Piper  <andy@xemacs.org>
11712
11713         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11714         to make sure the glyph is in the cachels.
11715
11716         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11717         global image instance flag.
11718         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11719         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11720
11721         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11722         (Fset_image_instance_property): mark layout as changed.
11723         (invalidate_glyph_geometry_maybe): mark layout as changed.
11724         (glyph_width): use new NEEDS_LAYOUT macro.
11725         (glyph_ascent): ditto.
11726         (glyph_descent): ditto.
11727         (glyph_height): ditto.
11728         (image_instance_layout): mark layout as clean after laying out.
11729         (update_subwindow): don't mark layout as clean here.
11730
11731         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11732         should no longer be needed.
11733
11734         * glyphs-x.c (x_update_widget): sanitize asserts.
11735         (x_finalize_image_instance): sanitize assignment to widgets.
11736
11737         * glyphs-widget.c (widget_instantiate): don't need to clear the
11738         layout flag here.
11739
11740 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11741
11742         * sysdep.c (getcwd): Use standard prototype.
11743         * sysdep.h (getcwd): Use standard prototype.
11744
11745         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11746         (sequence, start, end).
11747         Remove redundant type checking.
11748         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11749         view of `caller-protects') to avoid a crash where the real fix was
11750         found elsewhere.
11751
11752 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11753
11754         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11755
11756         * s/sol2.h: Remove feature macro initialization.
11757
11758         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11759         (vector_hash): New.  Code from internal_hash.
11760         * lrecord.h:
11761         Fix up allocation subsystem comments.
11762
11763         * config.h.in: Add __EXTENSIONS__ for Solaris.
11764
11765         * systime.h (EMACS_GETTIMEOFDAY): New.
11766         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11767         Remove Solaris-specific code.
11768         Use void* for the (ignored) second arg for gettimeofday().
11769
11770         * elhash.c (hash_table_hash): Implement it, finally.
11771         * elhash.c:  Use hashcode_t.
11772
11773         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11774         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11775
11776         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11777         * fns.c (size_bit_vector):
11778         * alloc.c (size_vector):
11779         (make_vector_internal):
11780         (make_bit_vector_internal):
11781         (sweep_bit_vectors_1):
11782         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11783
11784 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11785
11786         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11787         Include strings.h to avoid warnings for bzero and strcasecmp.
11788
11789 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11790
11791         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11792         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11793
11794         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11795         sequence.
11796
11797 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11798
11799         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11800         use a value field instead.
11801         (symbol_value_forward_forward): Use value field.
11802         (DEFVAR_SYMVAL_FWD): Use value field.
11803         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11804         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11805         (DEFVAR_CONST_INT): Ditto.
11806         (DEFVAR_BOOL): Ditto.
11807         (DEFVAR_CONST_BOOL): Ditto.
11808         (DEFVAR_INT_MAGIC): Ditto.
11809         (DEFVAR_BOOL_MAGIC): Ditto.
11810
11811         * symbols.c (guts_of_unbound_marker): Use value field.
11812         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11813         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11814
11815         * lisp.h: Declare dumpopaque and noninteractive1.
11816
11817         * alloc.c (dumpopaque): Added.
11818         (pdump_dump_opaquevec): Added.
11819         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11820         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11821         noninteractive.
11822
11823 2000-02-10  Andy Piper  <andy@xemacs.org>
11824
11825         * glyphs.c (image_instance_layout): if the size changes, mark it
11826         as such.
11827
11828         * redisplay-output.c (redisplay_output_layout): Update the
11829         subwindow here.
11830         (redisplay_output_subwindow): ditto.
11831
11832         * glyphs.c (update_subwindow): make sure we reset flags for
11833         layouts as well as everything else.
11834
11835         * glyphs-widget.c (layout_layout): don't need to set the instances
11836         dimensions here.
11837
11838 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11839
11840         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11841         not HAVE_DLOPEN, which is a lower-level thing.
11842
11843         * .cvsignore: Ignore gmon.out
11844
11845 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11846
11847         * .cvsignore: Ignore portable dumper xemacs.dmp file
11848
11849 2000-02-09  Andy Piper  <andy@xemacs.org>
11850
11851         * redisplay-output.c (redisplay_output_layout): be more clever
11852         about when we output based on the changed flags.
11853
11854         * glyphs.h (struct image_instantiator_methods): add update_method.
11855         (struct Lisp_Image_Instance): add changed flags. Declare new
11856         macros for manipulating them.
11857
11858         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11859         (image_instance_parent_glyph): find an image_instance's parent
11860         glyph or image_instance.
11861         (image_instance_layout): mark the size as changed.
11862         (set_image_instance_dirty_p): new function. mark an image
11863         instance, plus all of its parents, as dirty.
11864         (Fset_image_instance_property): use it.
11865         (Fglyph_animated_timeout_handler): use it.
11866         (update_subwindow): call update_widget and device methods for
11867         update_subwindow. Mark all changed flags as clean.
11868         (Fresize_subwindow): mark size as changed.
11869
11870         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11871         failures.
11872         (x_update_subwindow): only resize subwindows here.
11873         (x_update_widget): new function. Update all changed properties of
11874         a widget.
11875         (x_resize_subwindow): deleted.
11876         (x_widget_set_property): deleted.
11877         (x_progress_gauge_set_property): deleted.
11878         (x_progress_gauge_update): new function. Implement recorded
11879         changes.
11880         (x_tab_control_update): ditto.
11881         (x_tab_control_set_property): deleted.
11882         (console_type_create_glyphs_x): declare new functions.
11883         (image_instantiator_format_create_glyphs_x): ditto.
11884
11885         * glyphs-widget.c (widget_set_property): mark text changed.
11886         (update_widget): new function. Update properties of a widget.
11887         (widget_instantiate): for layouts make sure we set their
11888         children's parent correctly.
11889         (tab_control_set_property): new function. Record changes that will
11890         take place under redisplay's control.
11891         (progress_gauge_set_property): ditto.
11892         (image_instantiator_progress_guage): declare new functions.
11893         (image_instantiator_tab_control): ditto.
11894
11895         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11896         now.
11897         (mswindows_update_widget): new function. Update all properties on
11898         a widget that have changed.
11899         (mswindows_button_update): new function. Update a button's set
11900         state.
11901         (mswindows_tab_control_update): new function. Update the items in
11902         a tab.
11903         (mswindows_tab_control_set_property): deleted.
11904         (mswindows_progress_gauge_update): new function. Update the
11905         progress gauge's progress.
11906         (mswindows_widget_set_property): deleted. This is all done
11907         asynchronously now.
11908         (mswindows_progress_gauge_set_property): ditto.
11909         (console_type_create_glyphs_mswindows): declare new methods.
11910         (image_instantiator_format_create_glyphs_mswindows): ditto.
11911
11912         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11913         (msprinter_set_frame_properties): ditto.
11914
11915         * console.h (struct console_methods): Add update_widget_method.
11916
11917 2000-02-09  Andy Piper  <andy@xemacs.org>
11918
11919         * gui-msw.c (Fmswindows_shell_execute): Make
11920         mswindows-shell-execute industrial strength.
11921
11922 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11923
11924         * lrecord.h: Make macro argument `props' match member function `plist'.
11925         * fns.c (Fget):
11926         * fns.c (Fput):
11927         * fns.c (Fremprop):
11928         * fns.c (Fobject_plist):
11929         * alloc.c:
11930         * symbols.c:
11931         Object property list frobbing cleanup.
11932         - Allow any lisp object (compared with `eq'), not just symbols, as
11933           keys in object plists.
11934         - Move symbol plist frobbing into symbols.c, where it belongs.
11935         - Move string plist frobbing into alloc.c, where it belongs.
11936         - Everything's an lrecord now, so no need to test for symbolp, etc.
11937         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11938
11939         * extents.c: Reorder code to remove declarations.
11940
11941         * frame.h (store_in_alist): Remove useless declaration.
11942
11943 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11944
11945         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11946         * config.h.in: Add HAVE_XCONVERTCASE.
11947
11948 2000-02-07  Andy Piper  <andy@xemacs.org>
11949
11950         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11951         it breaks many things.
11952
11953 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11954
11955         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11956         actually can start a common comment type.
11957         * src/syntax.h (SYNTAX_END_P): ditto for end.
11958
11959 2000-02-07  Martin Buchholz <martin@xemacs.org>
11960
11961         * XEmacs 21.2.28 is released.
11962
11963 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11964
11965         * event-Xt.c (x_keysym_to_character): New.
11966         (maybe_define_x_key_as_self_inserting_character): New.
11967         (x_has_keysym): New.
11968         Auto-define all keys on the keyboard as self-insert-key.
11969
11970 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11971
11972         * menubar.c (vars_of_menubar): A small code simplification.
11973
11974         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11975
11976         * ExternalShell.c:
11977         * ExternalClient.c:
11978         * EmacsShell-sub.c:
11979         * EmacsManager.c:
11980         * EmacsFrame.c:
11981         Use consistent style for specifying X resources.
11982
11983         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11984         This makes (dontusethis-set-symbol-value-handler) actually usable.
11985
11986         * lrecord.h (lrecord_decription_type):
11987         * alloc.c (pdump_register_sub):
11988         (pdump_dump_data):
11989         (pdump_reloc_one):
11990         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11991         Comply with XEmacs coding style.
11992         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11993         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11994
11995         * keymap.c (Faccessible_keymaps):
11996         Make (accessible-keymaps map "\C-h") do the Right Thing.
11997         Make (accessible-keymaps map []) do the Right Thing.
11998         Make (accessible-keymaps map "") do the Right Thing.
11999         (check_keymap_definition_loop): New function.
12000         (keymap_store_internal): Keep luser from shooting self in foot,
12001           via (define-key ctl-x-4-map "p" global-map).
12002         Remove fullness slot from struct Lisp_Keymap, since hash tables
12003         are now reliable.
12004         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12005
12006 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12007
12008         * redisplay.c (init_redisplay): Fix small memory leak.
12009         * elhash.h:
12010         * elhash.c (pdump_reorganize_hash_table):
12011         Rename from reorganize_hash_table. Change prototype.
12012         Reuse the original memory for hentries.  Save 100k.
12013         * alloc.c (PDUMP_READ): new macro.
12014         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12015         * alloc.c: No need to #ifndef before #undef.
12016
12017         * print.c: Allow debug_print() to print readably by modifying
12018         debug_print_readably.  Use consistent variable names.
12019
12020         * .dbxrc: Try to get things to work even if stopped in a function
12021         without source available by explicitly specifying source files.
12022 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12023
12024         * unexnt.c (_start): Removed bogus code which caused loading heap
12025         from differrent executable file.
12026         Removed bogus assignment to _fmode, which caused inconsistencies.
12027
12028 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12029
12030         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12031         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12032         Do not preliminary `#define signal sigset'.
12033
12034         * systime.h: Do not prototype environ on windows nt and cygwin,
12035         this conflicts with system header.
12036
12037         * syssignal.h: Use correct define for WINDOWSNT
12038
12039         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12040         with system header.
12041
12042         * sysdep.c (near start of file): Fixed commentary and rearranged
12043         ifdefs in readable order.
12044         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12045         (start_of_text):
12046         (end_of_text):
12047         (end_of_data): Do not compile in if using PDUMP.
12048
12049         * symsinit.h: Prototyped vars_of_nt().
12050
12051         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12052         (find_child_console): Use it.
12053         (sys_kill): Use it.
12054
12055         * ntheap.h: Do not extern os_subtype.
12056
12057         * ntheap.c (cache_system_info): Do not cache unneeded:
12058         nt_major_version, nt_minor_version and os_subtype.
12059         (recreate_heap): Do not compile in when PDUMPing.
12060
12061         * nt.c (geteuid and friends): Use the new varibale
12062         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12063         (init_user_info): Removed the above mentioned hackery.
12064         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12065         stat has been fixed in the C runtime.
12066         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12067
12068         * file-coding.c (struct file_coding_dump): Do not define
12069         ucs_to_mule_table in the struct if not MULE.
12070         (struct struct lrecord_description fcd_description_1): Do not dump
12071         the above.
12072
12073         * emacs.c (main_1): Call vars_of_nt().
12074         (right before Fdump_emacs_data): Don't need lastfile if using both
12075         portabe dumper and system malloc.
12076
12077         * alloc.c (Fmemory_limit): Conditionalized out.
12078         (pdump): Use OPEN_BINARY for the portable dump file.
12079         (pdump_load): Ditto.
12080
12081 2000-02-02  Mike Alexander  <mta@arbortext.com>
12082
12083         * nt.c (convert_time): Set tm_isdst before calling mktime and
12084         avoid calling it at all if the compiler supports 64 bit integers.
12085         Also initialize utc_base_ft before using it.
12086
12087 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12088
12089         * frame.c (change_frame_size_1): Take f->internal_border_width
12090         into consideration when calculating the width of the frame.
12091
12092 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12093
12094         * window.c (frame_min_height):
12095         (frame_size_valid_p):
12096         (frame_pixsize_valid_p): Added.
12097         (check_frame_size): Generalized.
12098
12099         * window.h: Prototyped the above.
12100
12101         * lisp.h:
12102         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12103         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12104         Deleted Vwin32_* and Vbinary_process_* unused variables.
12105
12106         * device-msw.c (msprinter_init_device): Do not get printer font
12107         list; Added DEVMODE functions.
12108
12109         * frame-msw.c: Added lots of printer code.
12110
12111         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12112         general.c.
12113
12114         * console-msw.h: Added more msprinter device private slots.
12115
12116 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12117
12118         * event-msw.c (key_needs_default_processing_p): Added.
12119         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12120
12121 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12122
12123         * glyphs.c (image_instance_layout): Mark image instance as clean
12124         after layout.
12125         (glyph_dirty_p): Removed redundant function.
12126         (invalidate_glyph_geometry_maybe): Added.
12127         (update_glyph_cachel_data): Call it.
12128
12129         * glyphs.h: Prototyped it.
12130
12131         * redisplay.c (add_glyph_rune): Call it.
12132         (redisplay_window): Reset glyphs cachels when frame faces have
12133         changed, thus forcing recomputation of built-in border glyphs.
12134
12135 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12136
12137         * Makefile.in.in: Make portable dumper and purify play well together.
12138         Add imperfect, but better than nothing, support for pdump.
12139         Remove xemacs.dmp when temacs is re-generated.
12140         Don't ignore errors when dumping xemacs.
12141
12142         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12143
12144 2000-01-28  Andy Piper  <andy@xemacs.org>
12145
12146         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12147         (setup_normal_frame): ditto.
12148         (setup_frame_without_minibuffer): ditto.
12149         (setup_minibuffer_frame): ditto.
12150         (delete_frame_internal): ditto.
12151         (Fmake_frame_invisible): ditto.
12152         (Ficonify_frame): ditto.
12153
12154         * window.h: change Fset_window_buffer signature.
12155
12156         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12157         (Fset_window_buffer): allow recording of buffer if the window is
12158         the selected window.
12159         (window_loop): Use new Fset_window signature.
12160
12161 2000-01-23  Daniel Pittman  <daniel@danann.net>
12162
12163         * config.h.in: Added template for `HAVE_ATHENA_3D'
12164
12165 2000-01-29  Andy Piper  <andy@xemacs.org>
12166
12167         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12168
12169         * gutter.c (output_gutter): Don't output if the window isn't live.
12170
12171 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12172
12173         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12174         of 01/12/00: Moved SetFocus back here where it belongs.
12175
12176 2000-01-23  Andy Piper  <andy@xemacs.org>
12177
12178         * s/cygwin32.h: declare printer things.
12179
12180 2000-01-26  Andy Piper  <andy@xemacs.org>
12181
12182         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12183         Alexander.
12184
12185 2000-01-24  Andy Piper  <andy@xemacs.org>
12186
12187         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12188         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12189
12190         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12191
12192         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12193
12194         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12195
12196         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12197         (mswindows_output_display_block): Avoid local shadows.
12198
12199         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12200         (mswindows_enqueue_mouse_button_event): ditto.
12201         (mswindows_handle_gui_wm_command): remove declaration.
12202
12203         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12204         warnings.
12205
12206         * console-msw.h: Avoid shadows.
12207         (mswindows_get_toolbar_button_text):
12208         (emacs_mswindows_create_stream_pair):
12209         (emacs_mswindows_delete_stream_pair):
12210         (mswindows_handle_toolbar_wm_command): declare.
12211
12212         * device-msw.c (build_syscolor_string): Avoid shadows.
12213
12214 2000-01-23  Andy Piper  <andy@xemacs.org>
12215
12216         * glyphs-widget.c (widget_instantiate): reverse the items for
12217         layouts so that children are in the expected order.
12218
12219 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12220
12221         * ralloc.c: safe_bcopy ==> memmove
12222         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12223         * s/msdos.h: Remove BCOPY macros.
12224         * insdel.c (gap_right): Remove BCOPY conditional code.
12225         * insdel.c (gap_left): Remove BCOPY conditional code.
12226         XEmacs demands a working ANSI C compiler - hence memmove.
12227
12228         * regex.c (regex_compile): Remove accidental use of trigraphs.
12229
12230 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12231
12232         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12233         event timestamp.
12234
12235 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12236
12237         * event-msw.c (mswindows_drain_windows_queue): Added the
12238         parameter.
12239         (mswindows_need_event): Commented the call to
12240         mswindows_drain_windows_queue().
12241         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12242         only.
12243
12244         * console-msw.h: Moved a few function prototypes here from
12245         event-msw.c.
12246
12247         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12248         parameter from unsigned short to unsigned long.
12249         (Fmswindows_shell_execute): Added return value.
12250
12251 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12252
12253         * sysdep.c (init_system_name):
12254           process-unix.c (unix_canonicalized_host_name):
12255         Don't call freeaddrinfo() if getaddrinfo() fails.
12256
12257         * process-unix.c (unix_open_unix_network_stream):
12258         Moved the code to get a port # into address loop.
12259
12260 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12261
12262         * buffer.c (reinit_vars_of_buffer):
12263         The right place to initialize conversion_in_dynarr and
12264         conversion_out_dynarr.
12265
12266         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12267
12268         * process-unix.c (unix_canonicalize_host_name): Muleize.
12269         (unix_open_network_stream): Muleize.
12270
12271         * buffer.h: Fix up prototypes for ralloc.c functions.
12272
12273 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12274         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12275         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12276                 instead of gethostbyname()
12277         * process-unix.c: In unix_canonicalize_host_name() and
12278                 unix_open_network_stream(), add code to use getaddrinfo()
12279                 instead of gethostbyname().
12280
12281 2000-01-27  Daniel Pittman <daniel@danann.net>
12282
12283         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12284         libs when built with flat Athena.
12285
12286 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12287
12288         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12289         Use coding standards for function prototypes.
12290
12291 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12292
12293         * dialog-msw.c (push_lisp_string_as_unicode):
12294         * doc.c (unparesseuxify_doc_string):
12295         * dired.c (Fuser_name_completion_1):
12296         * dired.c (Fuser_name_all_completions):
12297         * dired.c (free_user_cache):
12298         * dired.c (user_name_completion):
12299         * console-x.c (get_display_arg_connection):
12300         * minibuf.c (clear_echo_area_internal):
12301         * minibuf.c (echo_area_append):
12302         * eldap.c (Fldap_open):
12303         * eldap.c (Fldap_search_internal):
12304         * frame-x.c (x_set_frame_text_value):
12305         * frame-x.c (x_set_frame_properties):
12306         * frame-x.c (x_create_widgets):
12307         * redisplay-tty.c (term_get_fkeys_1):
12308         * objects-x.c (x_parse_nearest_color):
12309         * objects-x.c (x_valid_color_name_p):
12310         * objects-x.c (x_initialize_font_instance):
12311         * objects-x.c (x_list_fonts):
12312         * objects-x.c (x_find_charset_font):
12313         * tooltalk.c (Fadd_tooltalk_message_arg):
12314         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12315         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12316         * process-unix.c (unix_create_process):
12317         * ntproc.c (sys_spawnve):
12318         * sound.c (Fplay_sound_file):
12319         * sound.c (Fplay_sound):
12320         * buffer.c (init_initial_directory):
12321         * buffer.c (init_buffer):
12322         * editfns.c (init_editfns):
12323         * editfns.c (Ftemp_directory):
12324         * editfns.c (Fuser_full_name):
12325         * editfns.c (uncache_home_directory):
12326         * editfns.c (get_home_directory):
12327         * editfns.c (Fuser_home_directory):
12328         * editfns.c (Fformat_time_string):
12329         * editfns.c (Fcurrent_time_string):
12330         * gui-x.c (button_item_to_widget_value):
12331         * database.c (Fopen_database):
12332         * event-Xt.c (x_to_emacs_keysym):
12333         * event-Xt.c (x_event_to_emacs_event):
12334         * event-Xt.c (describe_event_window):
12335         * event-msw.c (mswindows_wnd_proc):
12336         * glyphs-eimage.c (jpeg_instantiate):
12337         * glyphs-eimage.c (gif_instantiate):
12338         * glyphs-eimage.c (png_instantiate):
12339         * glyphs-eimage.c (tiff_instantiate):
12340         * glyphs-x.c (xbm_instantiate_1):
12341         * glyphs-x.c (x_xbm_instantiate):
12342         * glyphs-x.c (x_xface_instantiate):
12343         * glyphs-x.c (autodetect_instantiate):
12344         * glyphs-x.c (cursor_font_instantiate):
12345         * glyphs-x.c (x_widget_instantiate):
12346         * glyphs-x.c (x_widget_set_property):
12347         * glyphs-x.c (x_widget_property):
12348         * glyphs-x.c (BUILD_GLYPH_INST):
12349         * print.c (write_string_to_stdio_stream):
12350         * print.c (output_string):
12351         * print.c (Falternate_debugging_output):
12352         * print.c (Fexternal_debugging_output):
12353         * glyphs-msw.c (extract_xpm_color_names):
12354         * glyphs-msw.c (mswindows_xpm_instantiate):
12355         * glyphs-msw.c (bmp_instantiate):
12356         * glyphs-msw.c (resource_name_to_resource):
12357         * glyphs-msw.c (mswindows_resource_instantiate):
12358         * glyphs-msw.c (xbm_instantiate_1):
12359         * glyphs-msw.c (mswindows_xbm_instantiate):
12360         * glyphs-msw.c (mswindows_xface_instantiate):
12361         * glyphs-msw.c (mswindows_widget_instantiate):
12362         * glyphs-msw.c (add_tree_item):
12363         * glyphs-msw.c (add_tab_item):
12364         * glyphs-msw.c (mswindows_combo_box_instantiate):
12365         * glyphs-msw.c (mswindows_widget_property):
12366         * glyphs-msw.c (mswindows_combo_box_property):
12367         * glyphs-msw.c (mswindows_widget_set_property):
12368         * console.c (stuff_buffered_input):
12369         * objects-msw.c (mswindows_initialize_color_instance):
12370         * objects-msw.c (mswindows_valid_color_name_p):
12371         * objects-msw.c (mswindows_list_fonts):
12372         * objects-msw.c (mswindows_font_instance_truename):
12373         * bytecode.c (optimize_compiled_function):
12374         * select-x.c (symbol_to_x_atom):
12375         * select-x.c (x_atom_to_symbol):
12376         * select-x.c (hack_motif_clipboard_selection):
12377         * select-x.c (selection_data_to_lisp_data):
12378         * select-x.c (lisp_data_to_selection_data):
12379         * select-x.c (Fx_get_cutbuffer_internal):
12380         * select-x.c (Fx_store_cutbuffer_internal):
12381         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12382         * buffer.h (TO_INTERNAL_FORMAT): New function.
12383         * emacs.c (make_arg_list_1):
12384         * emacs.c (make_argc_argv):
12385         * emacs.c (main_1):
12386         * emacs.c (Fdump_emacs):
12387         * emacs.c (split_string_by_emchar_1):
12388         * file-coding.h:
12389         * lisp.h:
12390         * lstream.h:
12391         * symsinit.h:
12392         * device-x.c (x_init_device):
12393         * device-x.c (Fx_valid_keysym_name_p):
12394         * device-x.c (Fx_get_font_path):
12395         * device-x.c (Fx_set_font_path):
12396         * glyphs.c (bitmap_to_lisp_data):
12397         * glyphs.c (pixmap_to_lisp_data):
12398         * alloc.c (make_ext_string): Use coding system arguments.  Update
12399         all callers.
12400         * alloc.c (build_string):
12401         * callproc.c (child_setup):
12402         * callproc.c (init_callproc):
12403         * fileio.c (lisp_strerror):
12404         * fileio.c (directory_file_name):
12405         * fileio.c (Fexpand_file_name):
12406         * fileio.c (Ffile_truename):
12407         * fileio.c (Fsysnetunam):
12408         * fileio.c (Fdo_auto_save):
12409         * sysdep.c (sys_readdir):
12410         * tests.c: New file.  Allow adding C tests.
12411         Replace GET_* macros with a more comprehensible and flexible
12412         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12413         Modify all calls.
12414         Any coding system can be used to do format conversion.
12415         Eliminate enum external_data_format.
12416         Eliminate convert_to_external_format.
12417         Eliminate convert_to_internal_format.
12418         Make sure file-name, keyboard, terminal, and ctext are always
12419         defined as coding systems or aliases.  Make
12420         file-name-coding-system, terminal-coding-system, and
12421         keyboard-coding-system magical variables that are equivalent to
12422         defining the corresponding coding system aliases.
12423
12424         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12425         * file-coding.c (Fcoding_system_alias_p): New function.
12426         * file-coding.c (Fcoding_system_aliasee): New function.
12427         * file-coding.c (append_suffix_to_symbol): New function.
12428         * file-coding.c (dangling_coding_system_alias_p): New function.
12429         * file-coding.c (Ffind_coding_system):
12430         * file-coding.c (Fcopy_coding_system):
12431         * file-coding.c (encode_coding_no_conversion):
12432         * file-coding.c (syms_of_file_coding):
12433         * file-coding.c (vars_of_file_coding):
12434         Rewrite coding system alias code.
12435         Allow nested aliases, like symbolic links.
12436         Allow redefinition of coding system aliases.
12437         Prevent existence of dangling coding system aliases.
12438
12439         * dired.c (Fuser_name_completion_1):
12440         * dired.c (Fuser_name_all_completions):
12441         A crash would happen if user did QUIT in the middle of building
12442         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12443
12444         * lisp.h:
12445         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12446
12447         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12448         an unsigned char *.  Update all callers.
12449
12450 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12451
12452         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12453
12454 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12455
12456         * elhash.c (hentry_description): Use more portable definition.
12457         (resize_hash_table): Initialize new hentries using
12458         xnew_array_and_zero, thereby simplifying the code.
12459
12460         * mule-charset.c (make_charset): Make sure entire object is
12461         initialized, to avoid Purify warnings.
12462
12463         * alloc.c (resize_string): Fix unlikely crash with big strings.
12464
12465 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12466
12467         * realpath.c (xrealpath):
12468         Don't call getwd().
12469
12470 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12471
12472         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12473
12474 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12475
12476         * unexelfsgi.c (unexec): Change the way we decide which segment
12477         should be extended.
12478
12479         Assumption that .bss section should be outside the PT_LOADable
12480         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12481         it's present) is inside the 'data' segment. This would fail the
12482         test which was used to find a segment to grow and cover new
12483         heap. Instead of this assumption, I created another one - on IRIX
12484         the segment to grow should start below .bss and it's address
12485         should extent above the end of .bss. Once this segment is
12486         identified, it's grown to accommodate the new heap and new
12487         zero-length .bss section is added at the end of .data2.
12488
12489 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12490
12491         * eval.c (Feval): Wrong number of arguments should use original
12492         function, not the indirect_function version of it.
12493
12494 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12495
12496         * glyphs-x.c (x_button_instantiate): Don't add image if
12497         it is not a pixmap.
12498         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12499         is relative.
12500
12501 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12502
12503         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12504         declaration.
12505         (DEFVAR_INT_MAGIC): Ditto.
12506         (DEFVAR_BOOL_MAGIC): Ditto.
12507         * glyphs.h: Reindent backslash.
12508
12509 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12510
12511         * glyphs-widget.c (layout_query_geometry):
12512         (layout_layout): Use correct types for gheight, gwidth.
12513
12514 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12515
12516         * EmacsManager.c (QueryGeometry): Purified.
12517
12518 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12519
12520         * alloc.c (make_float): Make sure entire object is initialized, to
12521         avoid Purify warnings.
12522         (pdump_register_sub): Remove useless assignment.
12523         (pdump): Use xmalloc, not malloc.
12524         (pdump_load): Use xmalloc, not malloc.
12525
12526 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12527
12528         * callproc.c:
12529         * dired-msw.c:
12530         * fileio.c:
12531         * process-nt.c:
12532         * redisplay-msw.c:
12533         * sysdep.c: Removed redundant #include <windows.h>
12534
12535 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12536
12537         * frame.c (delete_frame_internal): Do not delete device when its
12538         implementation so declares.
12539         (delete_frame_internal): Set device selected frame to nil when
12540         last frame goes away.
12541
12542         * device-msw.c (msprinter_device_system_metrics): Implemented.
12543         (mswindows_device_system_metrics): Added 'device-dpi property.
12544
12545         * device.c: (Fdevice_printer_p): Added.
12546         Added 'offset-workspace device metric.
12547
12548         * console.h (device_metrics): Declared DM_offset_workspace.
12549
12550 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12551
12552         * fileio.c (Ffile_truename): Remove pointless and confusing
12553         initialization of elen.
12554
12555         * glyphs-widget.c: Compiler warning fixes.
12556
12557 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12558
12559         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12560         instead of a Lisp_Object as argument to make it consistent with
12561         the other LIVE_P macros.
12562         (CHECK_LIVE_PROCESS): New macro.
12563
12564         * process.c: Declare Qprocess_live_p.
12565         (Fprocess_live_p): New function.
12566         (create_process): Use PROCESS_LIVE_P.
12567         (read_process_output): Ditto.
12568         (set_process_filter): Ditto.
12569         (Fdelete_process): Ditto.
12570         (kill_buffer_processes): Ditto
12571         (process_send_signal): Use CHECK_LIVE_PROCESS.
12572         (Fprocess_input_coding_system): Check whether process is still
12573         alive (fix PR#1061).
12574         (Fprocess_output_coding_system): Ditto.
12575         (Fprocess_coding_system): Ditto.
12576         (Fset_process_input_coding_system): Ditto.
12577         (Fset_process_output_coding_system): Ditto.
12578
12579 2000-01-23  Andy Piper  <andy@xemacs.org>
12580
12581         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12582         layout and widget.
12583
12584         * glyphs.c (mark_image_instance): take into account changed
12585         image_instance format.
12586         (image_instance_equal): ditto.
12587         (image_instance_hash): ditto.
12588
12589         * glyphs-widget.c (widget_instantiate): Incorporate layout
12590         instantiation here. Delay layout of the layout until later.
12591         (layout_instantiate): deleted.
12592         (layout_query_geometry): new function. get the geometry of a
12593         layout.
12594         (layout_layout): layout a layout dynamically.
12595         (image_instantiator_widget): New function - splitting up
12596         image_instantiator_format_create_glyphs_widget for netwinder
12597         compilation.
12598         (image_instantiator_buttons):
12599         (image_instantiator_edit_fields):
12600         (image_instantiator_combo_box):
12601         (image_instantiator_scrollbar):
12602         (image_instantiator_progress_guage):
12603         (image_instantiator_tree_view):
12604         (image_instantiator_tab_control):
12605         (image_instantiator_labels):
12606         (image_instantiator_layout): ditto.
12607         (image_instantiator_format_create_glyphs_widget): Call preceding
12608         functions.
12609
12610 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12611
12612         * process.c (Fset_process_coding_system):
12613         * device-x.c (Fx_keysym_hash_table):
12614         Docstring fixes.
12615
12616         * lstream.c (Lstream_write): Return documented value, not 0.
12617
12618         * fileio.c (directory_file_name):
12619         (Fsubstitute_in_file_name):
12620         (Fsubstitute_insert_file_contents_internal):
12621         (Fwrite_region_internal):
12622         * emacs.c:
12623         * sysdep.c:
12624         * getloadavg.c:
12625         * systty.h:
12626         Remove vestigial APOLLO-conditional code.
12627
12628 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12629
12630         * getpagesize.h: Add guard macros.
12631         * libsst.h: Add guard macros.
12632         * libst.h: Add guard macros.
12633         * line-number.h: Add guard macros.
12634         * ndir.h: Add guard macros.
12635         * sysfloat.h: Add guard macros.
12636         * sysfile.h: Add guard macros.
12637         * sysproc.h: Add guard macros.
12638         * syswait.h: Add guard macros.
12639         * xintrinsic.h: Add guard macros.
12640         * xintrinsicp.h: Add guard macros.
12641         * xmmanager.h: Add guard macros.
12642         * xmmanagerp.h: Add guard macros.
12643         * xmprimitive.h: Add guard macros.
12644         * xmu.h: Add guard macros.
12645         * gpmevent.h: Add copyright statement. Add guard macros.
12646         * miscplay.h: Add guard macros.
12647         * *.h: Use consistent C-standards-approved guard macro names.
12648
12649         * opaque.c (make_opaque): Switch parameter order.
12650         * opaque.h (make_opaque): Switch parameter order.
12651         Update all callers.
12652         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12653
12654         * config.h.in (type_checking_assert): Added.
12655         (bufpos_checking_assert): Added.
12656
12657 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12658
12659         * alloc.c: Harmless pdump changes.
12660         - Use countof().
12661         - spell alignment correctly.
12662         * sysdep.c: Use countof()
12663
12664 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12665
12666         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12667         initially_selected_for_input() console method, default to 0.
12668         (semi_canonicalize_console_connection): Try to delegate to
12669         canonicalize_console_connection if no such console method.
12670         (canonicalize_console_connection): Vice versa.
12671         (print_console): Do not print nil connection.
12672
12673         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12674         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12675         (XDEVIMPF_FRAMELESS_OK): Added.
12676         (CONSOLE_INHERITS_METHOD): Added.
12677
12678         * console-msw.c (mswindows_canonicalize_console_connection):
12679         Added.
12680         (mswindows_canonicalize_device_connection): Added.
12681
12682         * console-msw.h (struct msprinter_device): Added this struct and
12683         accessor macros.
12684         (mswindows_device): Made fontlist a lisp object.
12685
12686         * device.c (semi_canonicalize_device_connection):  Try to delegate
12687         to canonicalize_device_connection if no such console method.
12688         (canonicalize_device_connection): Vice versa.
12689         (print_device): Do not print nil connection.
12690
12691         * device-msw.c (mswindows_init_device): Call InitCommonControls
12692         when have widgets.
12693         (mswindows_delete_device): Removed fontlist deallocation.
12694         (mswindows_mark_device): Added.
12695
12696         * events.c (event_equal): Added abort() at unreached code.
12697         (event_hash): Ditto.
12698
12699         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12700         fallback tags of Windows devices.
12701
12702         * general.c (syms_of_general): Initialized Qmsprinter.
12703
12704         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12705         of fallback tags of Windows devices.
12706
12707         * lisp.h: Declared Qmsprinter.
12708
12709         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12710         of strings.
12711         (mswindows_list_fonts): Ditto.
12712         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12713         that it can be used by both mswindows and msprinter devices.
12714         (initialize_font_instance): Added.
12715         (mswindows_initialize_font_instance): Use it.
12716         (msprinter_initialize_font_instance): Added.
12717
12718         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12719         and implementation flags check.
12720         (redisplay_without_hooks): Changed the call to the above.
12721         (Fredraw_device): Ditto.
12722         (Fredisplay_device): Ditto.
12723
12724         * redisplay-msw.c (get_frame_dc): Implemented.
12725         (get_frame_compdc): Implemented.
12726         (many functions): Use the two functions above to get device
12727         contexts, ether for a window or a printer.
12728
12729 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12730
12731         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12732         initialization here.
12733         (init_symbols_once_early): Call it.
12734         * emacs.c (main_1): Call it.
12735         * symsinit.h: Declare it.
12736
12737 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12738
12739         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12740         Lisp_Object.
12741         (pdump_backtrace): Ditto.
12742         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12743         (pdump_get_entry): Abort if trying to register a null pointer.
12744         (pdump_dump_data): Cleanup types when relocating.
12745         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12746         (pdump_dump_rtables): Remove bad casts.
12747         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12748         Lisp_Object instead of a EMACS_INT for the hashtable
12749         reorganization.
12750
12751 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12752
12753         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12754
12755         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12756
12757         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12758
12759         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12760
12761 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12762
12763         * faces.h (FACE_STRIKETHRU_P): Added.
12764
12765         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12766         of font variants.
12767
12768         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12769         (mswindows_set_dc_font): New function, aware of font variants,
12770         separated from mswindows_update_dc.
12771
12772         * objects-msw.h (struct mswindows_font_instance_data): Added
12773         definition.
12774
12775         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12776         cached fonts and the data structure.
12777         (mswindows_initialize_font_instance): Added creation of font data
12778         structure.
12779         (mswindows_print_font_instance): Print at least something.
12780         (mswindows_create_font_variant): Implemented.
12781         (mswindows_get_hfont): Implemented.
12782
12783 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12784
12785         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12786         prototyping problem with msvc.
12787
12788         * emacs.c (main_1): added syms_of_gui_mswindows() call
12789
12790         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12791         syms_of_gui_mswindows() function
12792
12793         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12794
12795 2000-01-18  Martin Buchholz <martin@xemacs.org>
12796
12797         * XEmacs 21.2.27 is released.
12798
12799 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12800
12801         * glyphs-eimage.c (struct tiff_error_struct):
12802         (tiff_error_func):
12803         (tiff_warning_func):
12804         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12805
12806         * unexmips.c:
12807         * unexhp9k3.c:
12808         * unexfreebsd.c:
12809         * unexec.c: Remove vestigial Lucid C code.
12810         * unexalpha.c:
12811         * unexaix.c:
12812         * termcap.c:
12813         * libsst.c: Ansify.
12814         Remove declarations of errno and strerror().
12815
12816         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12817
12818         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12819
12820 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12821
12822         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12823         Optimize.
12824
12825 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12826
12827         * md5.c:
12828         * file-coding.c:
12829         * file-coding.h:
12830         Change enum eol_type to eol_type_t.
12831
12832 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12833
12834         * gui.c (get_gui_callback): Check cons before accessing car.
12835
12836 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12837
12838         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12839         (XSETSPECIFIER_TYPE): Ditto.
12840
12841 2000-01-17  Didier Verna  <didier@xemacs.org>
12842
12843         * redisplay.c (generate_fstring_runes): compute string size in
12844         characters, not bytes.
12845
12846 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12847
12848         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12849
12850 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12851
12852         * print.c (print_error_message): Call print_prepare().
12853
12854 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12855
12856         * .dbxrc: Renamed from dbxrc.
12857
12858         * events.c (event_to_character):
12859         Use `assert (foo)' instead of `if (!foo) abort()'
12860
12861         * .gdbinit (xtype): Add documentation.
12862         * .gdbinit (check-temacs): New function.
12863         * .gdbinit (check-xemacs): New function.
12864         * dbxrc (check-xemacs): New function.
12865         * dbxrc (check-xemacs): New function.
12866
12867 2000-01-14  Andy Piper  <andy@xemacs.org>
12868
12869         * glyphs-widget.c (widget_query_geometry): Make sure that we
12870         calculate default dimensions correctly.
12871
12872 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12873
12874         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12875
12876         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12877         pdump_wire'd variable.
12878
12879         * emacs.c: (main_1): Conditionalized calls to
12880         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12881
12882 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12883
12884         * window.c (Fset_window_configuration):
12885         * sysdep.c (_start):
12886         * input-method-motif.c (res):
12887         * event-Xt.c (Xt_process_to_emacs_event):
12888         Simple compiler warning fixes.
12889
12890         * bytecode.c (funcall_compiled_function): Use the original
12891         function symbol on the backtrace list in preference to the
12892         compiled_function object in error messages.
12893
12894 2000-01-13  Andy Piper  <andy@xemacs.org>
12895
12896         * glyphs-x.c (update_widget_face): Make sure we update the widget
12897         background as well as foreground.
12898
12899 2000-01-13  Andy Piper  <andy@xemacs.org>
12900
12901         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12902         fields to subwindow.
12903         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12904         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12905         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12906         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12907
12908         * glyphs-widget.c (check_valid_tab_orientation): new function.
12909         (initialize_widget_image_instance): zero orientation and
12910         justification.
12911         (widget_instantiate): pick up orientation.
12912         (tab_control_query_geometry): return appropriate values for
12913         vertical tabs.
12914
12915         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12916         appropriate creation flags for left, right and bottom tabs.
12917
12918         * s/cygwin32.h: add tab definitions.
12919
12920 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12921
12922         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12923         frame upon hiding a subwindow.
12924         (mswindows_button_instantiate): Changed the push button style to
12925         BS_PUSHBUTTON.
12926         (mswindows_button_instantiate): Removed button BS_NOTIFY
12927         style.
12928         (mswindows_button_instantiate): Removed redundant check for
12929         a disabled gui item.
12930         (mswindows_button_instantiate): Made use of WS_TABSTOP
12931         consistent: "operable" controls (edit, button, tree, scroll) have
12932         this style, "display-only" ones (static, progress gauge) do
12933         not. This style is currently ignored by XEmacs though. Also,
12934         removed the WS_EX_CONTROLPARENT style - it is not for children,
12935         it is for their parents!
12936         (mswindows_edit_field_instantiate): Ditto.
12937         (mswindows_progress_gauge_instantiate): Ditto.
12938         (mswindows_tree_view_instantiate): Ditto.
12939         (mswindows_tab_control_instantiate): Ditto.
12940         (mswindows_scrollbar_instantiate): Ditto.
12941         (mswindows_combo_box_instantiate): Ditto.
12942         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12943         style to the "clip" window.
12944         (mswindows_button_instantiate): Removed compilation warning by
12945         equally typing terms of the ?: operator.
12946
12947 2000-01-12  Didier Verna  <didier@xemacs.org>
12948
12949         * redisplay.c (generate_fstring_runes): new parameter holding the
12950         last modeline-format extent.
12951         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12952         extent, fill the glyph block with it.
12953         (generate_fstring_runes): handle these parameters.
12954         (generate_formatted_string_db): ditto.
12955
12956         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12957         glyphs'extents in the modeline.
12958
12959 1999-01-11  Mike Woolley  <mike@bulsara.com>
12960
12961         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12962         256Mb, as a workaround for the non-starting problem many people
12963         have experienced.
12964
12965 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12966
12967         * console-tty.c (Fset_console_tty_output_coding_system):
12968         Force redrawing tty frame.
12969
12970 2000-01-10  Didier Verna  <didier@xemacs.org>
12971
12972         * redisplay.c (generate_fstring_runes): fix size computation bug.
12973
12974 2000-01-09  William M. Perry <wmperry@aventail.com>
12975
12976         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12977
12978 2000-01-09  Andy Piper  <andy@xemacs.org>
12979
12980         * glyphs-msw.c: index -> i to avoid shadows.
12981         (xbm_create_bitmap_from_data): make static.
12982         (check_valid_string_or_int): deleted.
12983         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12984
12985         * glyphs-x.c (x_update_subwindow): remove unused args.
12986
12987         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12988         back pointer - this is done in allocate_image_instance.
12989         (query_string_font): return Qnil to make the compiler happy.
12990         (unmap_subwindow): set to ~0 to make the compiler happy.
12991         (glyph_query_geometry): comment out until used.
12992         (glyph_layout): ditto.
12993
12994 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12995
12996         * insdel.c (signal_after_change): Remove extraneous unbind_to().