update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
4         (Fsave_char_attribute_table): Don't check `ct->db_file' if
5         `ct->db' is living.
6         (load_char_attribute_maybe): Likewise.
7         (Fload_char_attribute_table): Likewise.
8
9 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
10
11         * chartab.c (Fclose_char_attribute_table): Set Qnil on
12         `ct->db_file' unconditionally.
13
14 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
15
16         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
17         UTF-2000.
18         (char_table_description): Add description for `db_file' and `db'
19         in UTF-2000.
20         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
21         UTF-2000.
22         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
23         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
24         (Fclose_char_attribute_table): New function.
25         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
26         (load_char_attribute_maybe): Change interface; use `cit->db_file'
27         and `cit->db'.
28         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
29         (syms_of_chartab): Add new builtin function
30         `Fclose_char_attribute_table'.
31
32 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
33
34         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
35         `db' in UTF-2000.
36         (load_char_attribute_maybe): Change interface.
37         (get_char_id_table): Modify for `load_char_attribute_maybe'.
38
39 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
40
41         * database.h: Add an EXFUN for `Fdatabase_live_p'.
42
43 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
46         instead of `DECODE_CHAR' for mother; don't use special code for
47         chinese-big5 to use code space of chinese-big5-1 and
48         chinese-big5-2.
49         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
50         `MAX_CHAR_BIG5_CDP' for chinese-big5.
51
52         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
53         (MAX_CHAR_BIG5_CDP): Revival.
54
55 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
56
57         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
58         the XLFD registry-encoding name of `chinese-big5'.
59
60 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
61
62         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
63         (Qchinese_big5_cdp): Deleted.
64         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
65         (complex_vars_of_mule_charset): Delete coded-charset
66         `chinese-big5-cdp'.
67
68         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
69         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
70         `CHARSET_ID_OFFSET - n' for private CCS.
71         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
72         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
73         of `MIN_LEADING_BYTE'.
74         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
75         `(CHARSET_ID_OFFSET - 97)'.
76         (MIN_CHAR_BIG5_CDP): Deleted.
77         (MAX_CHAR_BIG5_CDP): Deleted.
78
79 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
80
81         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
82
83 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
84
85         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
86         (vars_of_mule): Add new variable `utf-2000-version' [moved from
87         chartab.c].
88
89         * chartab.c (Vutf_2000_version): Moved to mule.c.
90         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
91
92 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
93
94         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
95         when HAVE_CHISE_CLIENT is not defined.
96
97         * mule.c (vars_of_mule): Provide feature `chise' when
98         HAVE_CHISE_CLIENT is defined.
99
100 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
101
102         * config.h.in (UTF2000): Add comment.
103         (HAVE_CHISE_CLIENT): New macro.
104
105 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
106
107         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
108         CONSP.
109         (Fput_char_attribute): Likewise.
110         (char_attribute_system_db_file): Encode file-name of attribute.
111         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
112         the initial value.
113
114 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
115
116         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
117         (Fsave_charset_mapping_table): Use
118         `char_attribute_system_db_file'.
119         (load_char_decoding_entry_maybe): Likewise.
120
121         * chartab.h (Qsystem_char_id): New external variable.
122         (char_attribute_system_db_file): New prototype.
123
124         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
125         (char_attribute_system_db_file): New function.
126         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
127         (Freset_char_attribute_table): Likewise.
128         (load_char_attribute_maybe): Likewise.
129         (Fload_char_attribute_table): Likewise.
130         (syms_of_chartab): Add new symbol `system-char-id'.
131
132 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
133
134         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
135         `XCHARSET_GRAPHIC(ccs)'.
136
137 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
138
139         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
140
141 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
142
143         * chartab.c (Q_ucs_variants): New variable.
144         (syms_of_chartab): Add new symbol `->ucs-variants'.
145         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
146         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
147         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
148
149         * mule-charset.c (load_char_decoding_entry_maybe): New function.
150
151         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
152         `HAVE_DATABASE' is defined.
153         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
154         `HAVE_DATABASE' is defined.
155
156 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
157
158         * chartab.c (Fsave_char_attribute_table): Don't clear internal
159         attribute-table.
160         (Freset_char_attribute_table): New function.
161         (syms_of_chartab): Add new builtin function
162         `reset-char-attribute-table'.
163
164 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
165
166         * chartab.c (load_char_attribute_maybe): Don't make directories.
167
168 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
169
170         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
171
172         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
173         for decoding-table.
174
175 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
176
177         * mule-charset.c (Fsave_charset_mapping_table): Use
178         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
179
180         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
181         instead of `XCHARSET_CHARS'.
182
183 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
184
185         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
186         (XCHARSET_BYTE_SIZE): Likewise.
187
188         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
189         mule-charset.c].
190         (XCHARSET_BYTE_SIZE): Likewise.
191
192 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
193
194         * chartab.c (Fput_char_attribute): Use exec-directory instead of
195         data-directory to store database.
196         (Fsave_char_attribute_table): Likewise.
197         (load_char_attribute_maybe): Likewise.
198         (Fload_char_attribute_table): Likewise.
199
200 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
201
202         * mule-charset.c (Fsave_charset_mapping_table): New function.
203         (syms_of_mule_charset): Add new builtin function
204         `save-charset-mapping-table'.
205
206 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * char-ucs.h (decoding_table_check_elements): Delete prototype.
209         (get_ccs_octet_table): New inline function.
210         (put_ccs_octet_table): Likewise.
211         (decoding_table_put_char): Use `get_ccs_octet_table' and
212         `put_ccs_octet_table'.
213         (decoding_table_remove_char): Use `decoding_table_put_char'.
214         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
215
216         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
217         into encoding_table.
218         (make_charset): Use Qunbound instead Qnil as initial value of
219         decoding_table.
220
221 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
222
223         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
224         element is Qunloaded.
225         (map_over_uint16_byte_table): Likewise.
226         (map_over_byte_table): Likewise.
227         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
228         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
229         database support, load encoding-table of the specified
230         coded-charset if it is not loaded yet.
231         (save_uint8_byte_table): New function of UTF-2000 with external
232         database support.
233         (save_uint16_byte_table): Likewise.
234         (save_byte_table): Likewise.
235         (Fput_char_attribute): Don't store value into external database
236         even if the external database feature is supported in UTF-2000;
237         set `attribute' as name of char-table if the external database
238         feature is supported.
239         (Fsave_char_attribute_table): New function in UTF-2000.
240         (syms_of_chartab): Add new builtin function
241         `save-char-attribute-table' in UTF-2000.
242
243 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
244
245         * chartab.c (char_attribute_table_to_put): New variable in
246         UTF-2000.
247         (Qput_char_table_map_function): Likewise.
248         (value_to_put): Likewise.
249         (Fput_char_table_map_function): New function in UTF-2000.
250         (put_char_table): Use `Fmap_char_attribute' for
251         CHARTAB_RANGE_CHARSET in UTF-2000.
252         (Fput_char_attribute): Store symbol instead of string in
253         `XCHAR_TABLE_NAME (table)'.
254         (load_char_attribute_maybe): Likewise.
255         (syms_of_chartab): Add new symbol/function
256         `put-char-table-map-function'.
257
258 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
259
260         * database.h: Add new EXFUN for `Fmap_database'.
261
262         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
263         (syms_of_database): Likewise.
264
265         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
266         UTF-2000.
267         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
268         (XCHAR_TABLE_UNLOADED): Likewise.
269
270         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
271         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
272         HAVE_DATABASE is defined.
273         (char_attribute_table_to_load): New variable of UTF-2000 with
274         external database support.
275         (Qload_char_attribute_table_map_function): Likewise.
276         (Fload_char_attribute_table_map_function): New function of
277         UTF-2000 with external database support.
278         (Fload_char_attribute_table): New function of UTF-2000.
279         (Fmap_char_attribute): Call Fload_char_attribute_table if
280         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
281         (syms_of_chartab): Add new symbol and function
282         `load-char-attribute-table-map-function' in UTF-2000 with external
283         database support; add new function `load-char-attribute-table' in
284         UTF-2000.
285
286 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * chartab.h (load_char_attribute_maybe): New prototype for
289         UTF-2000 with DATABASE support.
290         (get_char_id_table): Use `load_char_attribute_maybe' if
291         HAVE_DATABASE is defined.
292
293         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
294         with DATABASE support.
295
296 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
297
298         * chartab.c (Fput_char_attribute): Use S-expression as key of
299         external database.
300
301         * chartab.h (get_char_id_table): Use S-expression as key of
302         external database.
303
304 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
307         if an element is not loaded, load the corresponding attributes
308         from an external database.
309         (map_over_uint16_byte_table): Likewise.
310         (map_over_byte_table): Likewise.
311         (map_char_table): Modify for `map_over_uint8_byte_table',
312         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
313         element is not loaded, load the corresponding attributes from an
314         external database.
315         (Fput_char_attribute): Change initial values to Qunloaded.
316
317         * chartab.h (get_char_id_table): If a character attribute is not
318         loaded and the attribute value is not found in an external
319         database, store Qunbound as the attribute value.
320
321 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
322
323         * chartab.c (BT_UINT8_unloaded): New macro.
324         (UINT8_VALUE_P): Accept Qunloaded.
325         (UINT8_ENCODE): Likewise.
326         (UINT8_DECODE): Likewise.
327         (BT_UINT16_unloaded): New macro.
328         (UINT16_VALUE_P): Accept Qunloaded.
329         (UINT16_ENCODE): Likewise.
330         (UINT16_DECODE): Likewise.
331         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
332         BT_UINT16_unloaded.
333         (mark_char_table): Mark `ct->name' in UTF-2000.
334         (char_table_description): Add `name' in UTF-2000.
335         (Fmake_char_table): Initialize `ct->name'.
336         (Fcopy_char_table): Copy `ct->name'.
337         (Fput_char_attribute): Store value into an external database if
338         HAVE_DATABASE is defined.
339
340         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
341         UTF-2000.
342         (CHAR_TABLE_NAME): New macro in UTF-2000.
343         (XCHAR_TABLE_NAME): New macro in UTF-2000.
344         (get_char_id_table): Try to read an external database if Qunloaded
345         is stored in a table.
346
347         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
348         Qunloaded.
349
350 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
351
352         * database.h: Add EXFUN definitions for Fopen_database,
353         Fput_database, Fget_database and Fclose_database.
354
355         * data.c (Qunloaded): New variable in UTF-2000.
356
357         * lisp.h (Qunloaded): New variable in UTF-2000.
358
359 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * mule-charset.c (put_char_ccs_code_point): Modify for
362         `decoding_table_remove_char' and `decoding_table_put_char'.
363         (remove_char_ccs): Modify for `decoding_table_remove_char'.
364
365         * char-ucs.h (decoding_table_remove_char): Change arguments to
366         hide decoding_table vector.
367         (decoding_table_put_char): Likewise.
368
369 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * mule-charset.c (decoding_table_remove_char): Moved to
372         char-ucs.h.
373         (decoding_table_put_char): Likewise.
374
375         * char-ucs.h (decoding_table_check_elements): New prototype [moved
376         from mule-charset.c].
377         (decoding_table_remove_char): New inline function [moved from
378         mule-charset.c].
379         (decoding_table_put_char): Likewise.
380
381 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
382
383         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
384         extension.
385
386 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
387
388         * mule-charset.c (decode_builtin_char): Support mother charsets.
389
390 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
391
392         * mule-charset.c (Q94x94x60): New variable.
393         (charset_code_point): Support conversion `94x94x60'.
394         (Fmake_charset): Likewise.
395         (syms_of_mule_charset): Add new symbol `94x94x60'.
396
397         * char-ucs.h (CONVERSION_94x94x60): New macro.
398
399 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
400
401         * mule-charset.c (charset_code_point): Unify code about
402         `code-offset'.
403
404 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
405
406         * mule-charset.c (charset_code_point): Merge code about builtin
407         characters into code about mother charsets; don't use
408         `range_charset_code_point'.
409         (range_charset_code_point): Deleted.
410
411 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * mule-charset.c (Qcode_offset): New variable.
414         (Fmake_charset): Use `XUINT' to get value of `min-code' and
415         `max-code'; accept new property `code-offset'.
416         (syms_of_mule_charset): Add new symbol `code-offset'.
417
418 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
419
420         * mule-charset.c (range_charset_code_point): Fixed.
421
422 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
423
424         * mule-charset.c (decode_builtin_char): Change semantics of
425         code-offset of coded-charset.
426         (charset_code_point): Likewise.
427         (range_charset_code_point): Likewise.
428         (complex_vars_of_mule_charset): Modify for the change.
429
430 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * mule-charset.c (Fencode_char): Reverse arguments.
433
434         * mule-charset.c (charset_code_point): Fixed.
435
436 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
437
438         * mule-charset.c (Vcharset_mojikyo): Deleted.
439         (Vcharset_mojikyo_2022_1): Deleted.
440         (Vcharset_mojikyo_pj_{1..21}): Deleted.
441         (Qmin_code): New variable in UTF-2000.
442         (Qmax_code): Likewise.
443         (Qmother): Likewise.
444         (Qconversion): Likewise.
445         (Q94x60): Likewise.
446         (Qmojikyo): Deleted.
447         (Qmojikyo_2022_1): Deleted.
448         (Qmojikyo_pj_{1..22}): Deleted.
449         (mark_charset): Mark `cs->mother'.
450         (charset_description): Add description for `mother'.
451         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
452         new arguments `mother' and `conversion'; use
453         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
454         (charset_code_point): Moved from char-ucs.h; support `mother'
455         charset feature.
456         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
457         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
458         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
459         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
460         allow 2 as the value of `graphic' in UTF-2000; add new properties
461         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
462         require `final' in UTF-2000; modify for `make_charset'.
463         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
464         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
465         (Fcharset_property): Support `mother', `min-code' and `max-code'.
466         (Fencode_char): New function.
467         (syms_of_mule_charset): Add new builtin function `encode-char' in
468         UTF-2000; add new symbols `min-code', `max-code', `mother',
469         `conversion' and `94x60'; delete symbols `mojikyo',
470         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
471         (complex_vars_of_mule_charset): Modify for `make_charset' change;
472         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
473         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
474
475         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
476         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
477
478         * char-ucs.h (Vcharset_mojikyo): Deleted.
479         (Vcharset_mojikyo_2022_1): Deleted.
480         (LEADING_BYTE_MOJIKYO): Deleted.
481         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
482         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
483         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
484         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
485         add new member `mother'; add new member `conversion'.
486         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
487         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
488         (CHARSET_MOTHER): New macro.
489         (CHARSET_CONVERSION): New macro.
490         (CONVERSION_IDENTICAL): New macro.
491         (CONVERSION_94x60): New macro.
492         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
493         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
494         (XCHARSET_MOTHER): New macro.
495         (XCHARSET_CONVERSION): New macro.
496         (MIN_CHAR_MOJIKYO): Deleted.
497         (MAX_CHAR_MOJIKYO): Deleted.
498         (DECODE_MOJIKYO_2022): Deleted.
499         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
500         (charset_code_point): Changed to non-inline function.
501         (encode_char_1): Use `charset_code_point'.
502         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
503
504 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * lread.c (read_compiled_function): Fix prototype.
507         (read_vector): Likewise.
508
509 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
510
511         * lrecord.h (struct lrecord_header): Delete `older'.
512         (set_lheader_implementation): Delete code for `older'.
513         (set_lheader_older_implementation): Deleted.
514         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
515         (OLDER_RECORD_P): Deleted.
516         (OLDER_RECORD_HEADER_P): Deleted.
517         (alloc_older_lcrecord): Deleted.
518         (alloc_older_lcrecord_type): Deleted.
519
520         * alloc.c (all_older_lcrecords): Deleted.
521         (alloc_older_lcrecord): Deleted.
522         (disksave_object_finalization_1): Delete code for older objects.
523         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
524         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
525
526 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * mule-charset.c (decoding_table_put_char): Use `make_vector'
529         instead of `make_older_vector'.
530         (put_char_ccs_code_point): Likewise.
531         (mark_charset): Mark `cs->decoding_table'.
532         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
533
534         * lisp.h (make_older_vector): Deleted.
535         (make_vector_newer): Deleted.
536
537         * config.h.in (HAVE_GGC): Deleted.
538
539         * alloc.c (make_older_vector): Deleted.
540         (make_vector_newer_1): Deleted.
541         (make_vector_newer): Deleted.
542
543 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
546         (Qideograph_daikanwa_2): New variable.
547         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
548         (complex_vars_of_mule_charset): Add new coded-charset
549         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
550         `LEADING_BYTE_DAIKANWA'.
551
552         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
553         (LEADING_BYTE_DAIKANWA_1): New macro.
554         (LEADING_BYTE_DAIKANWA_2): New macro.
555         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
556
557 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
558
559         * mule-charset.c (complex_vars_of_mule_charset): Change
560         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
561         the second revised version.
562
563 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * mule-charset.c (Vcharset_ucs_smp): New variable.
566         (Vcharset_ucs_sip): New variable.
567         (Qucs_smp): New variable.
568         (Qucs_sip): New variable.
569         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
570         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
571         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
572         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
573         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
574         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
575
576         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
577         (LEADING_BYTE_UCS_SIP): New macro.
578         (MIN_CHAR_SMP): New macro.
579         (MAX_CHAR_SMP): New macro.
580         (MIN_CHAR_SIP): New macro.
581         (MAX_CHAR_SIP): New macro.
582
583 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
584
585         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
586         utf-2000.
587
588 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
589
590         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
591         value; don't store value into `encoding_table' of `Lisp_Charset'.
592         (mark_charset): `encoding_table' was deleted.
593         (charset_description): Likewise.
594         (make_charset): Likewise.
595         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
596         `put_char_ccs_code_point'.
597
598         * chartab.h (Fput_char_attribute): New EXFUN.
599
600         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
601         is unified with normal symbol space.
602         (Fget_char_attribute): Likewise.
603         (Fput_char_attribute): Likewise; behavior of
604         `put_char_ccs_code_point' is changed.
605
606         * char-ucs.h: Include "elhash.h".
607         (Vchar_attribute_hash_table): New external variable.
608         (struct Lisp_Charset): Delete `encoding_table'.
609         (CHARSET_ENCODING_TABLE): New implementation; refer
610         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
611         `Lisp_Charset'.
612
613 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
614
615         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
616         (cs) == 0.
617
618 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
619
620         * text-coding.c (char_encode_big5): Prefer charset-g1 than
621         `chinese-big5'.
622
623 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
624
625         * chartab.c (uint8_byte_table_description): New constant.
626         (uint8-byte-table): Use `uint8_byte_table_description'.
627         (uint16_byte_table_description): New constant.
628         (uint16-byte-table): Use `uint16_byte_table_description'.
629
630 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
631
632         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
633         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
634
635 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
636
637         * mule-charset.c (Vcharset_ucs_ks): New variable.
638         (Qucs_ks): New variable.
639         (syms_of_mule_charset): Add new symbol `ucs-ks'.
640         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
641
642         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
643
644 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
645
646         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
647         (Fdecode_char): Likewise.
648
649         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
650         chartab.h.
651         (Fdefine_char): Modify for Fdecode_char.
652         (Ffind_char): Likewise.
653
654         * mule-charset.c (Fdecode_char): Add new optional argument
655         `defined-only'.
656         (Fdecode_builtin_char): Modify for `Fdecode_char'.
657
658 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
661         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
662         (allocate_coding_system): Initialize initial-charsets of
663         CODESYS_BIG5 in XEmacs UTF-2000.
664         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
665         CODESYS_BIG5 in XEmacs UTF-2000.
666         (decode_coding_big5): Use initial-charset-g0 and -g1 of
667         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
668
669         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
670         variables.
671         (Qideograph_hanziku_{1 .. 12}): Likewise.
672         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
673         .. 12}'.
674         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
675         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
676         `ideograph-hanziku-{1 .. 12}'.
677
678         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
679         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
680         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
681         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
682         (DECODE_DEFINED_CHAR): New inline function.
683         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
684
685 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
686
687         * mule-charset.c (Vcharset_china3_jef): Renamed from
688         `Vcharset_japanese_jef_china3'.
689         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
690         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
691         `{MIN|MAX}_CHAR_JEF_CHINA3'..
692         (syms_of_mule_charset): Rename `china3-jef' from
693         `japanese-jef-china3'.
694         (complex_vars_of_mule_charset): Likewise; rename
695         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
696
697         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
698         `LEADING_BYTE_JEF_CHINA3'.
699         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
700         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
701
702 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
703
704         * mule-charset.c (encode_builtin_char_1): Comment out special code
705         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
706
707         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
708         (MAX_CHAR_MOJIKYO_0): Comment out.
709         (MIN_CHAR_CBETA): Changed to 0x00E20000.
710         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
711         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
712         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
713
714 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
715
716         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
717         (Qideograph_cbeta): New variable.
718         (encode_builtin_char_1): Comment out special code for
719         coded-charset `mojikyo' and `japanese-jef-china3'.
720         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
721         (complex_vars_of_mule_charset): Add new coded-charset
722         `ideograph-cbeta'.
723
724         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
725         (MIN_CHAR_CBETA): New macro.
726         (MAX_CHAR_CBETA): New macro.
727
728 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
731         (LEADING_BYTE_JEF_CHINA3): New macro.
732         (MIN_CHAR_JEF_CHINA3): New macro.
733         (MAX_CHAR_JEF_CHINA3): Likewise.
734         (DECODE_CHAR): Fixed.
735
736 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
737
738         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
739         (Qjapanese_jef_china3): New variable.
740         (encode_builtin_char_1): Support `japanese-jef-china3'.
741         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
742         (complex_vars_of_mule_charset): Add new coded-charset
743         `japanese-jef-china3'.
744
745 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
746
747         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
748         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
749         94^4, 96^3, 96^4, 128^n and 256^n set.
750         (put_char_table): Use `XCHARSET_CELL_RANGE'.
751         (map_char_table): Likewise.
752
753 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
754
755         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
756         UTF-2000.
757
758 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
759
760         * chartab.h (get_char_id_table): New inline function.
761
762         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
763         function.
764
765 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * chartab.h (decode_char_table_range): New prototype in XEmacs
768         UTF-2000.
769         (put_char_id_table): New inline function in XEmacs UTF-2000.
770
771         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
772         function.
773         (decode_char_table_range): Delete static declaration in XEmacs
774         UTF-2000.
775
776 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
777
778         * chartab.c (put_char_id_table): Use `put_char_table'.
779
780 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
781
782         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
783         (map_over_uint16_byte_table): Likewise.
784         (map_over_byte_table): Likewise.
785         (map_char_table): Modify for `map_over_uint8_byte_table',
786         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
787         UTF-2000.
788
789 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
790
791         * chartab.c (struct map_char_table_for_charset_arg): New
792         structure.
793         (map_char_table_for_charset_fun): New function.
794         (map_char_table): Use `map_char_table' for encoding_table of
795         `range->charset'.
796
797 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
798
799         * chartab.c (map_char_table): Check a character is found in
800         range->charset instead of non default value is defined in
801         char-table when range is CHARTAB_RANGE_ROW.
802
803 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * chartab.c (map_char_id_table): Deleted.
806         (Fmap_char_attribute): Use `map_char_table' instead of
807         `map_char_id_table'.
808
809 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
812         UTF-2000.
813         (update_syntax_table): Deleted in XEmacs UTF-2000.
814
815         * syntax.c (find_defun_start): Use `syntax_table' instead of
816         `mirror_syntax_table' in XEmacs UTF-2000.
817         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
818         UTF-2000.
819         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
820         XEmacs UTF-2000.
821         (Fmatching_paren): Likewise.
822         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
823         in XEmacs UTF-2000.
824         (find_start_of_comment): Likewise.
825         (find_end_of_comment): Likewise.
826         (Fforward_comment): Likewise.
827         (scan_lists): Likewise.
828         (char_quoted): Likewise.
829         (Fbackward_prefix_chars): Likewise.
830         (scan_sexps_forward): Likewise.
831         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
832         (update_syntax_table): Likewise.
833
834         * search.c (skip_chars): Use `syntax_table' instead of
835         `mirror_syntax_table' in XEmacs UTF-2000.
836         (wordify): Likewise.
837         (Freplace_match): Likewise.
838
839         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
840         `mirror_syntax_table' in XEmacs UTF-2000.
841         (WORDCHAR_P_UNSAFE): Likewise.
842         (re_match_2_internal): Likewise.
843
844         * font-lock.c (find_context): Use `buf->syntax_table' instead of
845         `buf->mirror_syntax_table' in XEmacs UTF-2000.
846
847         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
848         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
849
850         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
851         XEmacs UTF-2000.
852
853         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
854         UTF-2000.
855         (print_char_table): Print `default_value' in XEmacs UTF-2000.
856         (char_table_description): Delete `mirror_table' in XEmacs
857         UTF-2000.
858         (fill_char_table): Don't call `update_syntax_table' in XEmacs
859         UTF-2000.
860         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
861         (Fcopy_char_table): Likewise.
862         (put_char_table): Don't call `update_syntax_table' in XEmacs
863         UTF-2000.
864
865         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
866         `buf->mirror_syntax_table' in XEmacs UTF-2000.
867         (casify_region_internal): Likewise.
868
869         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
870
871         * buffer.c (common_init_complex_vars_of_buffer): Don't use
872         `mirror_syntax_table' in XEmacs UTF-2000.
873
874         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
875         `buf->mirror_syntax_table' in XEmacs UTF-2000.
876         (Fexpand_abbrev): Likewise.
877
878 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
881
882 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
883
884         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
885         (map_over_uint16_byte_table): Likewise.
886         (map_over_byte_table): Likewise.
887         (get_char_id_table): Refer `cit->default_value'.
888         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
889         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
890         of character-id ranges.
891         (mark_char_table): Mark `ct->default_value'.
892         (char_table_description): Add `default_value'.
893         (fill_char_table): Use `default_value'.
894         (decode_char_table_range): Decode `nil' as
895         `CHARTAB_RANGE_DEFAULT'.
896         (get_char_id_table): Refer `cit->default_value'.
897         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
898         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
899         temporary hack; check value of char-table is bound or not.
900         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
901
902         * chartab.h (struct Lisp_Char_Table): Add new member
903         `default_value' in XEmacs UTF-2000.
904         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
905         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
906         UTF-2000.
907
908 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
909
910         * chartab.h (Lisp_Char_ID_Table): Deleted.
911
912         * chartab.c (char_table_description): Fix typo.
913         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
914         `Lisp_Char_ID_Table'.
915
916 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
917
918         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
919         `CHAR_ID_TABLE_P'.
920
921         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
922         `CHAR_ID_TABLE_P'.
923
924         * chartab.h (XCHAR_ID_TABLE): Deleted.
925         (XSETCHAR_ID_TABLE): Deleted.
926         (CHAR_ID_TABLE_P): Deleted.
927
928         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
929         `CHAR_ID_TABLE_P'.
930         (Fget_composite_char): Likewise.
931         (put_char_table): Likewise.
932         (add_char_attribute_alist_mapper): Fixed.
933         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
934         `CHAR_ID_TABLE_P'.
935         (Fget_char_attribute): Likewise.
936         (Fget_char_attribute): Likewise.
937         (Fmap_char_attribute): Likewise.
938
939         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
940         `CHAR_ID_TABLE_P'.
941         (encode_char_1): Likewise.
942
943 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
944
945         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
946         `XCHAR_ID_TABLE'.
947
948         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
949         instead of `XCHAR_ID_TABLE'.
950         (remove_char_ccs): Likewise.
951
952         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
953         `XCHAR_ID_TABLE'.
954         (Fget_composite_char): Likewise.
955         (Fchar_variants): Likewise.
956         (put_char_table): Likewise.
957         (add_char_attribute_alist_mapper): Likewise.
958         (Fchar_attribute_alist): Likewise.
959         (Fget_char_attribute): Likewise.
960         (Fput_char_attribute): Likewise.
961         (Fmap_char_attribute): Likewise.
962         (Fmap_char_attribute): Likewise.
963
964         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
965         `XCHAR_ID_TABLE'.
966         (encode_char_1): Likewise.
967
968 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
969
970         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
971         `Lisp_Char_ID_Table'.
972         (mark_char_id_table): Deleted.
973         (print_char_id_table): Likewise.
974         (char_id_table_equal): Likewise.
975         (char_id_table_hash): Likewise.
976         (char_id_table_description): Likewise.
977         (char_id_table): Likewise.
978         (make_char_id_table): Use `Fmake_char_table' and
979         `fill_char_table'.
980         (get_char_id_table): Use `Lisp_Char_Table' instead of
981         `Lisp_Char_ID_Table'.
982         (put_char_id_table): Likewise.
983         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
984         `XCHAR_ID_TABLE'.
985         (Fremove_char_attribute): Likewise.
986         (syms_of_chartab): Don't define type `char-id-table'.
987
988         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
989         (char_id_table): Likewise.
990         (GC_CHAR_ID_TABLE_P): Likewise.
991         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
992         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
993         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
994         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
995         (get_char_id_table): Use `Lisp_Char_Table' instead of
996         `Lisp_Char_ID_Table'.
997         (put_char_id_table_0): Likewise.
998         (put_char_id_table): Likewise.
999
1000 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1001
1002         * chartab.h: Lisp_Byte_Table related codes are moved from
1003         chartab.h.
1004
1005         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1006
1007 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1008
1009         * chartab.h: Don't include "chartab.h".
1010         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1011         (Lisp_Char_ID_Table): Likewise.
1012         (char_id_table): Likewise.
1013         (XCHAR_ID_TABLE): Likewise.
1014         (XSETCHAR_ID_TABLE): Likewise.
1015         (CHAR_ID_TABLE_P): Likewise.
1016         (GC_CHAR_ID_TABLE_P): Likewise.
1017         (get_char_id_table): Likewise.
1018
1019         * char-ucs.h: Include "chartab.h".
1020         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1021         (Lisp_Char_ID_Table): Likewise.
1022         (char_id_table): Likewise.
1023         (XCHAR_ID_TABLE): Likewise.
1024         (XSETCHAR_ID_TABLE): Likewise.
1025         (CHAR_ID_TABLE_P): Likewise.
1026         (GC_CHAR_ID_TABLE_P): Likewise.
1027         (get_char_id_table): Likewise.
1028
1029 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1030
1031         * chartab.c (copy_uint8_byte_table): New function.
1032         (copy_uint16_byte_table): New function.
1033         (copy_byte_table): New function.
1034         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1035         characters to call.
1036         (map_over_uint16_byte_table): Likewise.
1037         (map_over_byte_table): Likewise.
1038         (get_byte_table): Move prototype to chartab.h.
1039         (put_byte_table): Likewise.
1040         (put_char_id_table_0): Moved to chartab.h.
1041         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1042         (char_table_entry_equal): Likewise.
1043         (char_table_entry_hash): Likewise.
1044         (char_table_entry_description): Likewise.
1045         (char_table_entry): Likewise.
1046         (make_char_table_entry): Likewise.
1047         (copy_char_table_entry): Likewise.
1048         (get_non_ascii_char_table_value): Likewise.
1049         (map_over_charset_ascii): Likewise.
1050         (map_over_charset_control_1): Likewise.
1051         (map_over_charset_row): Likewise.
1052         (map_over_other_charset): Likewise.
1053         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1054         (print_char_table): Likewise.
1055         (char_table_equal): Likewise.
1056         (char_table_hash): Likewise.
1057         (char_table_description): Likewise.
1058         (fill_char_table): Likewise.
1059         (Fcopy_char_table): Likewise.
1060         (get_char_table): Likewise.
1061         (Fget_range_char_table): Likewise.
1062         (put_char_table): Likewise.
1063         (map_char_table): Likewise.
1064         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1065         UTF-2000.
1066
1067 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1068
1069         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1070         `Vauto_fill_chars' in XEmacs UTF-2000.
1071
1072         * chartab.h (get_byte_table): New prototype [moved from
1073         chartab.c].
1074         (put_byte_table): Likewise [moved from chartab.c].
1075         (put_char_id_table_0): New inline function [moved from chartab.c].
1076         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1077         (Lisp_Char_Table_Entry): Likewise.
1078         (char_table_entry): Likewise.
1079         (XCHAR_TABLE_ENTRY): Likewise.
1080         (XSETCHAR_TABLE_ENTRY): Likewise.
1081         (CHAR_TABLE_ENTRYP): Likewise.
1082         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1083         (NUM_ASCII_CHARS): Likewise.
1084         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1085         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1086
1087 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1088
1089         * chartab.c (get_char_id_table): Change interface.
1090         (put_char_id_table_0): New function.
1091         (put_char_id_table): Change interface; new implementation.
1092         (Fget_composite_char): Modify for interface change of
1093         `get_char_id_table'.
1094         (Fchar_variants): Likewise.
1095         (add_char_attribute_alist_mapper): Likewise.
1096         (Fchar_attribute_alist): Likewise.
1097         (Fget_char_attribute): Likewise.
1098         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1099         as same as character as the first argument like `put-char-table';
1100         modify for interface change of `put_char_id_table'.
1101         (Fremove_char_attribute): Modify for interface change of
1102         `put_char_id_table'.
1103
1104 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1105
1106         * text-coding.c: Sync up with XEmacs 21.2.41.
1107         (COMPOSE_ADD_CHAR): Modify for interface change of
1108         `get_char_id_table'.
1109
1110         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1111         change of `put_char_id_table'.
1112         (remove_char_ccs): Likewise.
1113
1114         * chartab.h (put_char_id_table): Change interface.
1115
1116         * char-ucs.h (get_char_id_table): Change interface.
1117         (charset_code_point): Modify for interface change of
1118         `get_char_id_table'.
1119         (encode_char_1): Likewise.
1120
1121 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1122
1123         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1124         argument `ccs'.
1125         (map_over_uint16_byte_table): Likewise.
1126         (map_over_byte_table): Likewise.
1127         (map_char_id_table): Add new argument `range' like
1128         `map_char_table'.
1129         (Fmap_char_attribute): Add new argument `range' like
1130         `Fmap_char_table'.
1131
1132 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1133
1134         * chartab.c (map_over_uint8_byte_table): Change interface of
1135         mapping function to use struct chartab_range instead of Emchar.
1136         (map_over_uint16_byte_table): Likewise.
1137         (map_over_byte_table): Likewise.
1138         (map_char_id_table): Likewise.
1139         (struct slow_map_char_id_table_arg): Deleted.
1140         (slow_map_char_id_table_fun): Deleted.
1141         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1142         function `slow_map_char_table_fun' instead of struct
1143         `slow_map_char_id_table_arg' and function
1144         `slow_map_char_id_table_fun'.
1145
1146 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1147
1148         * mule-charset.c: Move char-it-table related codes to chartab.c.
1149         (Vutf_2000_version): Moved to chartab.c.
1150         (Fdefine_char): Likewise.
1151         (Ffind_char): Likewise.
1152         (syms_of_mule_charset): Move types `uint8-byte-table',
1153         `uint16-byte-table', `byte-table' and `char-id-table' to
1154         chartab.c; move functions `char_attribute_list,
1155         `find_char_attribute_table, `char_attribute_alist,
1156         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1157         `map_char_attribute, `define_char, `find_char, `char_variants and
1158         `get_composite_char to chartab.c; move symbols `=>ucs',
1159         `->decomposition', `compat', `isolated', `initial', `medial',
1160         `final', `vertical', `noBreak', `fraction', `super', `sub',
1161         `circle', `square', `wide', `narrow', `small' and `font' to
1162         chartab.c.
1163         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1164         setting codes for `Vcharacter_composition_table' and
1165         `Vcharacter_variant_table' to chartab.c.
1166         (complex_vars_of_mule_charset): Move setting code for
1167         `Vchar_attribute_hash_table' to chartab.c.
1168
1169         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1170         (make_char_id_table): New prototype.
1171         (put_char_id_table): Likewise.
1172         (Fget_char_attribute): Likewise.
1173
1174         * chartab.c: Move char-id-table related code from mule-charset.c.
1175         (Vutf_2000_version): Moved from mule-charset.c.
1176
1177         * char-ucs.h (Qucs): New external variable.
1178         (put_char_ccs_code_point): New prototype.
1179         (remove_char_ccs): Likewise.
1180
1181 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1182
1183         * mule-charset.c (Vcharset_ucs_jis): New variable.
1184         (Qucs_jis): Likewise.
1185         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1186         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1187
1188         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1189
1190 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1191
1192         * mule-charset.c (map_over_uint8_byte_table): New function.
1193         (map_over_uint16_byte_table): Likewise.
1194         (map_over_byte_table): Likewise.
1195         (map_char_id_table): Likewise.
1196         (slow_map_char_id_table_fun): Likewise.
1197         (Fmap_char_attribute): Likewise.
1198         (syms_of_mule_charset): Add new function `map-char-attribute'.
1199
1200 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1201
1202         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1203         (syms_of_mule_charset): Add new function `find-char'.
1204
1205 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1206
1207         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1208         XEmacs UTF-2000.
1209         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1210         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1211         XEmacs UTF-2000.
1212         (complex_vars_of_mule_charset): Add new coded-charset
1213         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1214         `ideograph-gt-pj-*'.
1215
1216         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1217
1218 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1219
1220         * mule-charset.c (encode_builtin_char_1): Purge codes about
1221         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1222         {MIN|MAX}_CHAR_HEBREW.
1223         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1224         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1225
1226         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1227         (MAX_CHAR_GREEK): Purged.
1228         (MIN_CHAR_CYRILLIC): Purged.
1229         (MAX_CHAR_CYRILLIC): Purged.
1230         (MIN_CHAR_HEBREW): Commented out.
1231         (MAX_CHAR_HEBREW): Likewise.
1232
1233 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1234
1235         * mule-charset.c (Qto_ucs): New variable.
1236         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1237         (Fdefine_char): Likewise.
1238         (syms_of_mule_charset): Add new symbol `=>ucs'.
1239
1240 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1241
1242         * mule-charset.c (Fdecode_char): Fixed.
1243
1244 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1245
1246         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1247         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1248         "tcvn5712-1".
1249
1250 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1251
1252         * mule-charset.c (Vcharset_ucs_big5): New variable.
1253         (Qucs_big5): Likewise.
1254         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1255         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1256
1257         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1258
1259 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1260
1261         * mule-charset.c (decode_builtin_char): Check Big5 code range
1262         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1263
1264 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1265
1266         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1267         (Qchinese_gb12345): Likewise.
1268         (Fdecode_builtin_char): Fixed.
1269         (syms_of_mule_charset): Add `chinese-gb12345'.
1270         (complex_vars_of_mule_charset): Add coded-charset
1271         `chinese-gb12345'.
1272
1273         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1274         (LEADING_BYTE_CHINESE_GB12345): New macro.
1275
1276 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1277
1278         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1279         and `latin-viscii-upper' for `latin-viscii'.
1280
1281 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1282
1283         * mule-charset.c (Fdecode_builtin_char): Comment out
1284         regularization code for ISO-IR GR representation.
1285
1286 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1287
1288         * mule-charset.c (decode_builtin_char): New function; renamed from
1289         `make_builtin_char'; return -1 instead of signal.
1290         (Fdecode_builtin_char): Use `decode_builtin_char'.
1291
1292         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1293         `make_builtin_char'.
1294         (DECODE_CHAR): Use `decode_builtin_char' instead of
1295         `make_builtin_char'; use mapping table of `chinese-big5' for
1296         `chinese-big5-{1,2}'.
1297
1298 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1299
1300         * text-coding.c (char_encode_big5): New function.
1301         (char_finish_big5): Likewise.
1302         (reset_encoding_stream): Use `char_encode_big5' and
1303         `char_finish_big5' for CODESYS_BIG5.
1304         (mule_encode): Don't use `encode_coding_big5'.
1305         (encode_coding_big5): Deleted.
1306
1307 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1308
1309         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1310         0x81- in XEmacs UTF-2000.
1311         (detect_coding_big5): Likewise.
1312
1313 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1314
1315         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1316         generate character-id if the CCS property does not have
1317         corresponding predefined character.
1318         (make_builtin_char): Return -1 if corresponding predefined
1319         character is not found.
1320         (Fdecode_char): Return nil if corresponding character is not
1321         found.
1322         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1323         don't map to builtin ucs space.
1324
1325 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1326
1327         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1328         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1329
1330 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1331
1332         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1333         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1334         (Qideograph_gt): Likewise.
1335         (Qideograph_gt_pj_{1..11}): Likewise.
1336         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1337         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1338         `ideograph-gt-pj-11'.
1339         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1340         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1341         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1342
1343         * char-ucs.h (LEADING_BYTE_GT): New macro.
1344         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1345         (MIN_CHAR_GT): Likewise.
1346         (MAX_CHAR_GT): Likewise.
1347
1348 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349
1350         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1351         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1352
1353         * doprnt.c (unsigned_int_converters): Add `c'.
1354         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1355
1356         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1357         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1358         `MIN_CHAR_MOJIKYO'.
1359         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1360         (MAX_CHAR_MOJIKYO_0): New macro.
1361         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1362
1363 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * mule-charset.c (Fdefine_char): Delete cemented out code.
1366         (encode_builtin_char_1): Modify for new allocation of builtin
1367         Mojikyo characters.
1368
1369         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1370
1371 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1372
1373         * mule-charset.c (Vcharset_ucs_cns): New variable.
1374         (Qucs_cns): New variable.
1375         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1376         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1377
1378 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1381
1382 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1383
1384         * search.c (search_buffer): Make `charset_base_code' as
1385         character-id >> 6 to eliminate the corresponding last byte in
1386         UTF-8 representation [I'm not sure it is right thing].
1387         (boyer_moore): Likewise.
1388
1389 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1390
1391         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1392         representation in MULE.
1393
1394 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1395
1396         * text-coding.c (Fmake_coding_system): Use
1397         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1398         `EXTERNAL_PROPERTY_LIST_LOOP'.
1399
1400 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1401
1402         * text-coding.c (decode_output_utf8_partial_char): New function.
1403         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1404
1405 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406
1407         * text-coding.c (decode_coding_utf8): Output original byte
1408         sequence if it is broken; change order of conditions.
1409
1410         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1411         of conditions.
1412
1413         * mb-multibyte.h (BYTE_ASCII_P):
1414         Use bit ops for char-signedness safety.
1415         (BYTE_C0_P): Use bit ops for char-signedness safety.
1416         (BYTE_C1_P): Use bit ops for char-signedness safety.
1417
1418         * character.h: (XCHAR_OR_CHAR_INT):
1419         Always use inline function.
1420         Remove redundant type checking assert() - XINT will abort quite
1421         nicely.
1422
1423 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424
1425         * text-coding.c: (Fencode_shift_jis_char):
1426         (Fencode_big5_char):
1427         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1428         Replace 0 with '\0' when working with bytes.
1429         Replace initial "(" with "\(" in docstrings.
1430
1431         (Fmake_coding_system):
1432         When type is ccl and value is vector, register it with a proper
1433         symbol.  And checks whether the given ccl program is valid.
1434         (mule_decode): When calling ccl_driver, if src indicates
1435         NULL pointer, set an empty string instead.
1436         (mule_encode): Likewise.
1437
1438         (detect_eol_type):
1439         (detect_coding_sjis):
1440         (decode_coding_sjis):
1441         (detect_coding_big5):
1442         (decode_coding_big5):
1443         (detect_coding_ucs4):
1444         (decode_coding_ucs4):
1445         (detect_coding_utf8):
1446         (decode_coding_utf8):
1447         (detect_coding_iso2022):
1448         (decode_coding_iso2022):
1449         (decode_coding_no_conversion):
1450         (mule_decode):
1451         Make all detecting and decoding functions take an Extbyte * arg.
1452         (text_encode_generic):
1453         (encode_coding_big5):
1454         (encode_coding_no_conversion):
1455         (mule_encode):
1456         Make all encoding functions take a Bufbyte * arg.
1457         Use size_t instead of unsigned int for memory sizes.
1458         Only cast to unsigned char whenever dereferencing Extbyte *.
1459
1460         (struct lrecord_description fcd_description_1): Use countof.
1461         (complex_vars_of_file_coding):
1462         Use countof instead of sizeof.
1463         Use CHECK_NATNUM instead of CHECK_INT.
1464
1465 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1466
1467         * mule-charset.c (Fget_char_attribute): Add new optional argument
1468         `default-value'.
1469         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1470         (remove_char_ccs): Likewise.
1471
1472 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1473
1474         * text-coding.c (char_encode_shift_jis): New implementation in
1475         UTF-2000.
1476         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1477         ...)'.
1478
1479         * mule-charset.c (Vcharset_chinese_big5): New variable in
1480         UTF-2000.
1481         (Qchinese_big5): New variable in UTF-2000.
1482         (BIG5_SAME_ROW): New macro in UTF-2000.
1483         (make_builtin_char): Use builtin characters of
1484         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1485         characters of `Vcharset_chinese_big5'.
1486         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1487         (complex_vars_of_mule_charset): Add new coded-charset
1488         `chinese-big5' in UTF-2000.
1489
1490         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1491         (Vcharset_chinese_big5): New external variable declaration.
1492         (Vcharset_japanese_jisx0208_1990): Likewise.
1493
1494 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1495
1496         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1497         function.
1498         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1499
1500 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1501
1502         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1503         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1504         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1505         `mojikyo-pj-*'.
1506
1507 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1508
1509         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1510
1511 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1512
1513         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1514         to 0.17.
1515
1516 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1517
1518         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1519         for `CHARSET_BY_ATTRIBUTES'.
1520         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1521         `CHARSET_BY_ATTRIBUTES'.
1522
1523         * text-coding.c (struct decoding_stream): Rename member `CH' to
1524         `CPOS'.
1525         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1526         (decode_coding_sjis): Likewise.
1527         (decode_coding_big5): Likewise.
1528         (decode_coding_ucs4): Likewise.
1529         (decode_coding_utf8): Likewise.
1530         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1531         `CHARSET_BY_ATTRIBUTES'.
1532         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1533         `str->counter'; decode 3, 4 bytes sets.
1534         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1535         sets.
1536         (decode_coding_no_conversion): Use `str->cpos' instead of
1537         `str->ch'.
1538
1539         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1540         (Qmojikyo_2022_1): New variable.
1541         (make_charset): Don't use `CHARSET_TYPE_*'.
1542         (range_charset_code_point): Support coded-charset
1543         `mojikyo-2022-1'.
1544         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1545         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1546         `CHARSET_BY_ATTRIBUTES'.
1547         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1548         `CHARSET_BY_ATTRIBUTES'.
1549         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1550         (complex_vars_of_mule_charset): Add new coded-charset
1551         `mojikyo-2022-1'.
1552
1553         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1554         interface; changed to inline function.
1555
1556         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1557         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1558         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1559         (CHARSET_TYPE_94): Deleted.
1560         (CHARSET_TYPE_94X94): Deleted.
1561         (CHARSET_TYPE_96): Deleted.
1562         (CHARSET_TYPE_96X96): Deleted.
1563         (CHARSET_TYPE_128): Deleted.
1564         (CHARSET_TYPE_128X128): Deleted.
1565         (CHARSET_TYPE_256): Deleted.
1566         (CHARSET_TYPE_256X256): Deleted.
1567         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1568         to inline function.
1569         (DECODE_MOJIKYO_2022): New inline function.
1570         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1571         `Vcharset_mojikyo_2022_1'.
1572
1573 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1574
1575         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1576         instead of `EQ'.
1577         (put_byte_table): Likewise.
1578         (char_id_table_equal): Use `get_byte_table' [new implementation].
1579
1580 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1581
1582         * mule-charset.c: Include <limits.h> in UTF-2000.
1583         (BT_UINT8_MIN): New macro in UTF-2000.
1584         (BT_UINT8_MAX): New macro in UTF-2000.
1585         (BT_UINT8_t): New macro in UTF-2000.
1586         (BT_UINT8_nil): New macro in UTF-2000.
1587         (BT_UINT8_unbound): New macro in UTF-2000.
1588         (INT_UINT8_P): New inline function in UTF-2000.
1589         (UINT8_VALUE_P): New inline function in UTF-2000.
1590         (UINT8_ENCODE): New inline function in UTF-2000.
1591         (UINT8_DECODE): New inline function in UTF-2000.
1592         (mark_uint8_byte_table): New function in UTF-2000.
1593         (print_uint8_byte_table): New function in UTF-2000.
1594         (uint8_byte_table_equal): New function in UTF-2000.
1595         (uint8_byte_table_hash): New function in UTF-2000.
1596         (make_uint8_byte_table): New function in UTF-2000.
1597         (uint8_byte_table_same_value_p): New function in UTF-2000.
1598         (BT_UINT16_MIN): New macro in UTF-2000.
1599         (BT_UINT16_MAX): New macro in UTF-2000.
1600         (BT_UINT16_t): New macro in UTF-2000.
1601         (BT_UINT16_nil): New macro in UTF-2000.
1602         (BT_UINT16_unbound): New macro in UTF-2000.
1603         (INT_UINT16_P): New inline function in UTF-2000.
1604         (UINT16_VALUE_P): New inline function in UTF-2000.
1605         (UINT16_ENCODE): New inline function in UTF-2000.
1606         (UINT16_DECODE): New inline function in UTF-2000.
1607         (UINT8_TO_UINT16): New inline function in UTF-2000.
1608         (mark_uint16_byte_table): New function in UTF-2000.
1609         (print_uint16_byte_table): New function in UTF-2000.
1610         (uint16_byte_table_equal): New function in UTF-2000.
1611         (uint16_byte_table_hash): New function in UTF-2000.
1612         (make_uint16_byte_table): New function in UTF-2000.
1613         (uint16_byte_table_same_value_p): New function in UTF-2000.
1614         (print_byte_table): New function in UTF-2000.
1615         (byte-table): Use `print_byte_table' as printer.
1616         (make_byte_table): Delete second argument `older'.
1617         (byte_table_same_value_p): New function in UTF-2000.
1618         (copy_byte_table): Deleted.
1619         (get_byte_table): New function in UTF-2000.
1620         (put_byte_table): New function in UTF-2000.
1621         (print_char_id_table): New function in UTF-2000.
1622         (char-id-table): Use `print_char_id_table' as printer.
1623         (make_char_id_table): Delete second argument `older'.
1624         (get_char_id_table): Use `get_byte_table [new implementation].
1625         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1626         implementation].
1627         (Ffind_char_attribute_table): New function in UTF-2000.
1628         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1629         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1630         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1631         (syms_of_mule_charset): Add new function
1632         `find-char-attribute-table' in UTF-2000.
1633
1634         * lrecord.h (enum lrecord_type): Add
1635         `lrecord_type_uint16_byte_table' and
1636         `lrecord_type_uint8_byte_table'.
1637
1638         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1639         (Lisp_Uint8_Byte_Table): New type.
1640         (XUINT8_BYTE_TABLE): New macro.
1641         (XSETUINT8_BYTE_TABLE): New macro.
1642         (UINT8_BYTE_TABLE_P): New macro.
1643         (GC_UINT8_BYTE_TABLE_P): New macro.
1644         (struct Lisp_Uint16_Byte_Table): New structure.
1645         (Lisp_Uint16_Byte_Table): New type.
1646         (XUINT16_BYTE_TABLE): New macro.
1647         (XSETUINT16_BYTE_TABLE): New macro.
1648         (UINT16_BYTE_TABLE_P): New macro.
1649         (GC_UINT16_BYTE_TABLE_P): New macro.
1650
1651 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1652
1653         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1654         (Vcharacter_ideographic_strokes_table): Deleted.
1655         (Vcharacter_total_strokes_table): Deleted.
1656         (Vcharacter_morohashi_daikanwa_table): Deleted.
1657         (Vcharacter_decomposition_table): Deleted.
1658         (Qname): Deleted because it is duplicated.
1659         (Qideographic_radical): Deleted.
1660         (Qideographic_strokes): Deleted.
1661         (Qtotal_strokes): Deleted.
1662         (Qmorohashi_daikanwa): Deleted.
1663         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1664         `ideographic-radical', `ideographic-strokes', `total-strokes',
1665         `morohashi-daikanwa' and `->decomposition'.
1666         (Fget_char_attribute): Likewise.
1667         (Fput_char_attribute): Likewise; use `make-vector' instead of
1668         `make_older_vector' for `->decomposition' value.
1669         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1670         `ideograph-daikanwa'.
1671         (syms_of_mule_charset): Delete builtin symbols `name',
1672         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1673         `morohashi-daikanwa'.
1674         (vars_of_mule_charset): Don't setup
1675         `Vcharacter_ideographic_radical_table',
1676         `Vcharacter_ideographic_strokes_table',
1677         `Vcharacter_total_strokes_table',
1678         `Vcharacter_morohashi_daikanwa_table' and
1679         `Vcharacter_decomposition_table'.
1680
1681 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1682
1683         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1684         `make_older_vector', `make_vector_newer_1' and
1685         `make_vector_newer'.
1686
1687         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1688         `make_older_vector' and `make_vector_newer'.
1689
1690         * config.h.in (HAVE_GGC): New macro.
1691
1692 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1693
1694         * mule-charset.c (struct char_attribute_list_closure): New
1695         structure in UTF-2000.
1696         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1697         (Fchar_attribute_list): Likewise.
1698         (Fset_charset_mapping_table): Use `make_vector_newer'.
1699         (Fdecode_builtin_char): New function in UTF-2000.
1700         (syms_of_mule_charset): Add new function `char-attribute-list' and
1701         `decode-builtin-char' in UTF-2000.
1702
1703         * lisp.h (make_vector_newer): New prototype.
1704
1705         * alloc.c (make_vector_newer_1): New function.
1706         (make_vector_newer): New function.
1707
1708 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1709
1710         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1711         50100)'.
1712
1713 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1714
1715         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1716         (Vcharacter_attribute_table): Deleted.
1717         (Vcharacter_name_table): Deleted.
1718         (put_char_attribute): Deleted.
1719         (remove_char_attribute): Deleted.
1720         (struct char_attribute_alist_closure): New structure.
1721         (add_char_attribute_alist_mapper): New function.
1722         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1723         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1724         (Fget_char_attribute): Likewise.
1725         (Fput_char_attribute): Likewise.
1726         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1727         of `remove_char_attribute'.
1728         (Fdefine_char): Return character.
1729         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1730         and `Vcharacter_name_table'.
1731         (complex_vars_of_mule_charset): Likewise
1732         `Vchar_attribute_hash_table'.
1733
1734 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1735
1736         * character.h (CHARC_CHARSET): New macro.
1737         (CHARC_CHARSET_ID): New macro.
1738         (CHARC_CODE_POINT): New macro.
1739         (CHARC_COLUMNS): New macro.
1740         (CHARC_TO_CHAR): New inline function.
1741         (CHARC_EQ): New inline function.
1742         (CHARC_ASCII_EQ): New inline function.
1743         (CHARC_IS_SPACE): New inline function.
1744         (ASCII_TO_CHARC): New inline function.
1745
1746         * char-ucs.h (encode_char_2): Deleted.
1747         (ENCODE_CHAR): Use `encode_char_1' again.
1748         (breakup_char_1): Likewise.
1749         (CHAR_TO_CHARC): New inline function.
1750
1751         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1752
1753 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1756         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1757         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1758         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1759         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1760         `CHARC_IS_SPACE'.
1761         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1762
1763         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1764         `CHARC_CODE_POINT'.
1765         (x_output_display_block): Use `CHARC_CHARSET' and
1766         `CHARC_ASCII_EQ'.
1767
1768         * redisplay-tty.c (tty_output_display_block): Use
1769         `CHARC_ASCII_EQ'.
1770         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1771
1772         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1773
1774         * insdel.c (find_charsets_in_charc_string): Use
1775         `CHARC_CHARSET_ID'.
1776         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1777         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1778         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1779         (convert_charc_string_into_malloced_string): Likewise.
1780
1781 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1782
1783         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1784         instead of <Emchar_dynarr *> for buf; use
1785         `convert_bufbyte_string_into_charc_dynarr' instead of
1786         `convert_bufbyte_string_into_emchar_dynarr'; use
1787         `find_charsets_in_charc_string' instead of
1788         `find_charsets_in_emchar_string'.
1789
1790         * redisplay.h:
1791         - Include "character.h".
1792         (struct rune): New member `cglyph'; delete member `chr'.
1793
1794         * redisplay.c (redisplay_text_width_charc_string): New function;
1795         delete `redisplay_text_width_emchar_string'.
1796         (rtw_charc_dynarr): New variable; renamed from
1797         `rtw_emchar_dynarr'.
1798         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1799         `rtw_emchar_dynarr'; use
1800         `convert_bufbyte_string_into_charc_dynarr' instead of
1801         `convert_bufbyte_string_into_emchar_dynarr'; use
1802         `redisplay_text_width_charc_string' instead of
1803         `redisplay_text_width_emchar_string'.
1804         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1805         instead of `rtw_emchar_dynarr'; use
1806         `convert_bufbyte_string_into_charc_dynarr' instead of
1807         `convert_bufbyte_string_into_emchar_dynarr'.
1808         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1809         `redisplay_text_width_charc_string' instead of
1810         `redisplay_text_width_emchar_string'.
1811         (create_text_block): Modify for <struct rune> change.
1812         (generate_formatted_string_db): Likewise.
1813         (create_string_text_block): Likewise.
1814         (pixel_to_glyph_translation): Likewise.
1815
1816         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1817         instead of <const Emchar *>.
1818         (x_text_width): Likewise.
1819         (x_output_display_block): Use <Charc_dynarr *> instead
1820         <Emchar_dynarr *>; modify for <structure rune> change.
1821         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1822         *>.
1823
1824         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1825         <const Emchar *>; use `charc_string_displayed_columns' instead of
1826         `emchar_string_displayed_columns'.
1827         (tty_output_display_block): Use <Charc_dynarr *> instead of
1828         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1829         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1830         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1831         `tty_output_emchar_dynarr_dynarr'.
1832         (tty_output_charc_dynarr): New function; delete
1833         `tty_output_charc_dynarr'.
1834
1835         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1836         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1837         <Emchar_dynarr *> for buf; use
1838         `convert_bufbyte_string_into_charc_dynarr' instead of
1839         `convert_bufbyte_string_into_emchar_dynarr'.
1840
1841         * frame.c (title_string_charc_dynarr): New variable; renamed from
1842         `title_string_emchar_dynarr'.
1843         (generate_title_string): Use `title_string_charc_dynarr' instead
1844         of `title_string_emchar_dynarr'; use
1845         `convert_charc_string_into_malloced_string' instead of
1846         `convert_emchar_string_into_malloced_string'.
1847         (init_frame): Use `title_string_charc_dynarr' instead of
1848         `title_string_emchar_dynarr'.
1849
1850         * console.h:
1851         - Include "character.h".
1852         (struct console_methods): Use <const Charc *> instead of <const
1853         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1854         <Emchar_dynarr *> in output_string_method.
1855
1856         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1857         <Emchar_dynarr *>.
1858
1859         * console-stream.c (stream_text_width): Use <const Charc *>
1860         instead of <const Emchar *>.
1861
1862         * character.h (Charc_dynarr): New type.
1863
1864         * char-ucs.h (structure Charc): New structure; define new type
1865         `Charc'.
1866
1867         * char-lb.h (DECODE_CHAR): New inline function.
1868         (encode_char_1): New inline function.
1869         (ENCODE_CHAR): New macro.
1870         (structure Charc): New structure; define new type `Charc'.
1871
1872         * char-1byte.h (Vcharset_control_1): New macro.
1873         (Vcharset_latin_iso8859_1): New macro.
1874         (DECODE_CHAR): New inline function.
1875         (encode_char_1): New inline function.
1876         (ENCODE_CHAR): New macro.
1877         (structure Charc): New structure; define new type `Charc'.
1878
1879         * insdel.c (find_charsets_in_charc_string): New function; delete
1880         `find_charsets_in_emchar_string'.
1881         (charc_string_displayed_columns): New function; delete
1882         `emchar_string_displayed_columns'.
1883         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1884         `convert_bufbyte_string_into_emchar_dynarr'.
1885         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1886         `convert_charc_string_into_bufbyte_dynarr'.
1887         (convert_charc_string_into_malloced_string): New function; delete
1888         `convert_charc_string_into_malloced_string'.
1889
1890         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1891         `find_charsets_in_emchar_string'.
1892         (charc_string_displayed_columns): New prototype; delete
1893         `emchar_string_displayed_columns'.
1894         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1895         `convert_charc_string_into_bufbyte_dynarr'.
1896         (convert_charc_string_into_malloced_string): New prototype; delete
1897         `convert_charc_string_into_malloced_string'.
1898
1899 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1900
1901         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1902
1903 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1904
1905         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1906
1907         * char-ucs.h: Use <short> for <Charset_ID>.
1908
1909         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1910         <Charset_ID>.
1911
1912 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1915         to 0.16.
1916
1917 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1918
1919         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1920         variable.
1921         (Qmorohashi_daikanwa): New variable.
1922         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1923         for `morohashi-daikanwa' attribute.
1924         (Fget_char_attribute): Likewise.
1925         (Fput_char_attribute): Likewise.
1926         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1927         has the same value of `ideograph-daikanwa'.
1928         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1929         (vars_of_mule_charset): Setup
1930         `Vcharacter_morohashi_daikanwa_table'.
1931
1932 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1933
1934         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1935         attributes.
1936         (add_charset_to_list_mapper): Add `key' instead of
1937         `XCHARSET_NAME (value)' to return aliases.
1938
1939 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1940
1941         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1942         variable.
1943         (Vcharacter_ideographic_strokes_table): New variable.
1944         (Qideographic_radical): New variable.
1945         (Qideographic_strokes): New variable.
1946         (Fchar_attribute_alist): Use
1947         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1948         attribute; use `Vcharacter_ideographic_strokes_table' for
1949         `ideographic-strokes' attribute.
1950         (Fget_char_attribute): Likewise.
1951         (Fput_char_attribute): Likewise.
1952         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1953         `ideographic-strokes'.
1954         (vars_of_mule_charset): Setup
1955         `Vcharacter_ideographic_radical_table' and
1956         `Vcharacter_ideographic_strokes_table'.
1957
1958 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1959
1960         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1961         (Qtotal_strokes): New variable.
1962         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1963         `total-strokes' attribute.
1964         (Fget_char_attribute): Likewise.
1965         (Fput_char_attribute): Likewise.
1966         (syms_of_mule_charset): Add new symbol `total-strokes'.
1967         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1968
1969 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1970
1971         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1972         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1973         are found.
1974         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1975         `->decomposition' attribute.
1976         (Fput_char_attribute): Likewise.
1977         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1978
1979 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1980
1981         * mule-charset.c (decoding_table_check_elements): New function.
1982         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1983
1984 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1985
1986         * mule-charset.c (Fset_charset_mapping_table): Use
1987         `put_char_ccs_code_point'.
1988
1989 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1990
1991         * mule-charset.c (decoding_table_put_char): New inline function.
1992         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1993
1994 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1995
1996         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1997         (XCHARSET_BYTE_SIZE): New macro.
1998         (decoding_table_remove_char): New inline function.
1999         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2000         `decoding_table_remove_char'.
2001         (remove_char_ccs): Use `decoding_table_remove_char'.
2002         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2003
2004 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2005
2006         * mule-charset.c (Vcharacter_name_table): New variable.
2007         (Qname): New variable.
2008         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2009         attribute.
2010         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2011         `Vcharacter_name_table' for `name' attribute.
2012         (Fremove_char_attribute): Use function `remove_char_ccs'.
2013         (put_char_ccs_code_point): New function.
2014         (remove_char_ccs): New function.
2015         (syms_of_mule_charset): Add new symbol `name'.
2016         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2017
2018 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2019
2020         * mule-charset.c (make_byte_table): Add new argument `older'.
2021         (make_char_id_table): Likewise.
2022         (copy_char_id_table): Comment out because it is not used.
2023         (put_char_id_table): Modify for `make_byte_table'.
2024         (Fput_char_attribute): Make encoding_table as older object;
2025         inherit older bit of `Vcharacter_composition_table'.
2026         (mark_charset): Don't mark `cs->encoding_table'.
2027         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2028         normal object; make `Vcharacter_composition_table' as an older
2029         object; delete staticpro for `Vcharacter_composition_table'; make
2030         `Vcharacter_variant_table' as a normal object.
2031
2032         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2033         (mark_object): Don't check older object in UTF-2000.
2034
2035         * lrecord.h (struct lrecord_header): Add new member `older' in
2036         UTF-2000.
2037         (set_lheader_implementation): Setup `SLI_header->older' in
2038         UTF-2000.
2039         (set_lheader_older_implementation): New macro in UTF-2000.
2040         (OLDER_RECORD_P): New macro in UTF-2000.
2041         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2042         (alloc_older_lcrecord): New prototype in UTF-2000.
2043         (alloc_older_lcrecord_type): New macro in UTF-2000.
2044
2045 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2046
2047         * mule-charset.c (byte_table_description): Use
2048         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2049         (char_id_table_description): Delete bogus `, 1'.
2050         (Fget_char_attribute): Refer encoding_table of each coded-charset
2051         to get value of coded-charset attribute of a character.
2052         (Fput_char_attribute): Use `make_older_vector' instead of
2053         `make_vector'; use encoding_table of each coded-charset to store
2054         value of coded-charset attribute of a character.
2055         (Fremove_char_attribute): Use encoding_table of each coded-charset
2056         to store value of coded-charset attribute of a character.
2057         (mark_charset): Mark `cs->encoding_table'; don't mark
2058         `cs->decoding_table'.
2059         (charset_description): Add description of new member
2060         `encoding_table'.
2061         (make_charset): Initialize `encoding_table'.
2062
2063         * char-ucs.h (struct Lisp_Charset): Add new member
2064         `encoding_table'.
2065         (CHARSET_ENCODING_TABLE): New macro.
2066         (XCHARSET_ENCODING_TABLE): New macro.
2067         (charset_code_point): New implementation.
2068         (encode_char_1): Likewise.
2069
2070         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2071         (disksave_object_finalization_1): Call finalizers of
2072         `all_older_lcrecords' in UTF-2000.
2073         (make_older_vector): New function in UTF-2000.
2074         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2075         UTF-2000.
2076
2077         * lisp.h (make_older_vector): New prototype in UTF-2000.
2078
2079 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2080
2081         * lrecord.h (enum lrecord_type): Rename
2082         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2083
2084         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2085         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2086         `get_char_code_table'.
2087
2088         * mule-charset.c (mark_char_id_table): Renamed from
2089         `mark_char_code_table'.
2090         (char_id_table_equal): Renamed from `char_code_table_equal'.
2091         (char_id_table_hash): Renamed from `char_code_table_hash'.
2092         (make_char_id_table): Renamed from `make_char_code_table'.
2093         (copy_char_id_table): Renamed from `copy_char_code_table'.
2094         (get_char_id_table): Renamed from `get_char_code_table'.
2095         (put_char_id_table): Renamed from `put_char_code_table'.
2096         (to_char_id): Renamed from `to_char_code'.
2097
2098         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2099         `Lisp_Char_Code_Table'.
2100         (char_id_table): Renamed from `char_code_table'.
2101         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2102         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2103         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2104         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2105         (get_char_id_table): Renamed from `get_char_code_table'.
2106
2107 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2108
2109         * lrecord.h (enum lrecord_type): Rename
2110         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2111
2112         * mule-charset.c (mark_byte_table): Renamed from
2113         `mark_char_byte_table'.
2114         (byte_table_equal): Renamed from `char_byte_table_equal'.
2115         (byte_table_hash): Renamed from `byte_table_hash'.
2116         (make_byte_table): Renamed from `make_byte_table'.
2117         (copy_byte_table): Renamed from `copy_char_byte_table'.
2118
2119         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2120         `Lisp_Char_Byte_Table'.
2121         (byte_table): Renamed from `char_byte_table'.
2122         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2123         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2124         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2125         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2126
2127 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2130         (dfc_convert_to_internal_format): Likewise.
2131         
2132         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2133         * text-coding.c (Fcoding_system_alias_p): New function.
2134         * text-coding.c (Fcoding_system_aliasee): New function.
2135         * text-coding.c (append_suffix_to_symbol): New function.
2136         * text-coding.c (dangling_coding_system_alias_p): New function.
2137         * text-coding.c (Ffind_coding_system):
2138         * text-coding.c (Fcopy_coding_system):
2139         * text-coding.c (encode_coding_no_conversion):
2140         * text-coding.c (syms_of_file_coding):
2141         * text-coding.c (vars_of_file_coding):
2142         Rewrite coding system alias code.
2143         Allow nested aliases, like symbolic links.
2144         Allow redefinition of coding system aliases.
2145         Prevent existence of dangling coding system aliases.
2146         Eliminate convert_to_external_format.
2147         Eliminate convert_to_internal_format.
2148         
2149         * text-coding.c: Change enum eol_type to eol_type_t.
2150
2151 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2152
2153         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2154         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2155
2156         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2157         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2158
2159 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160
2161         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2162         `ideograph-daikanwa'.
2163
2164         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2165         (Vcharset_ucs_bmp): Likewise.
2166         (Vcharset_mojikyo): Add new extern variable definition.
2167         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2168         (Vcharset_latin_iso8859_3): Likewise.
2169         (Vcharset_latin_iso8859_4): Likewise.
2170         (Vcharset_latin_iso8859_9): Likewise.
2171         (Vcharset_latin_viscii_lower): Likewise.
2172         (Vcharset_latin_viscii_upper): Likewise.
2173         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2174         `mojikyo' code-point is used to decode.
2175         (encode_char_2): New function [to convert `mojikyo' code-point to
2176         Mojikyo font encoding].
2177         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2178         (breakup_char_1): Likewise.
2179         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2180
2181 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2182
2183         * text-coding.c (Fmake_coding_system): Add document about
2184         `disable-composition' property.
2185
2186 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2187
2188         * text-coding.c (Qdisable_composition): New variable; delete
2189         `Qcomposite'.
2190         (Fmake_coding_system): Add new property `disable-composite';
2191         delete property `composite'.
2192         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2193         instead of `!CODING_SYSTEM_COMPOSITE'.
2194         (syms_of_file_coding): Add new symbol `disable-composition';
2195         delete symbol `composite'.
2196
2197         * file-coding.h (struct Lisp_Coding_System): Add
2198         `disable_composition'; delete `enable_composition'.
2199         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2200         `CODING_SYSTEM_COMPOSITE'.
2201         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2202         `XCODING_SYSTEM_COMPOSITE'.
2203
2204 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2205
2206         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2207         to 0.15.
2208
2209 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2210
2211         * text-coding.c (Qcomposite): New variable.
2212         (Fmake_coding_system): Add new property `composite'.
2213         (struct decoding_stream): Add `combined_char_count',
2214         `combined_chars' and `combining_table' in UTF-2000.
2215         (COMPOSE_FLUSH_CHARS): New macro.
2216         (COMPOSE_ADD_CHAR): New macro.
2217         (reset_decoding_stream): Reset `str->combined_char_count' and
2218         `str->combining_table' in UTF-2000.
2219         (decode_coding_iso2022): Modify for character-decomposition.
2220         (syms_of_file_coding): Add new symbol `composite'.
2221
2222 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2223
2224         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2225         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2226         of `Vcharacter_composition_table' if `->decomposition' property
2227         has only 1 element.
2228         (Qlatin_tcvn5712): New variable.
2229         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2230         (complex_vars_of_mule_charset): Add new coded-charset
2231         `latin-tcvn5712'.
2232
2233         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2234
2235 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2236
2237         * file-coding.h (struct Lisp_Coding_System): Add
2238         `enable_composition'.
2239         (CODING_SYSTEM_COMPOSITE): New macro.
2240         (XCODING_SYSTEM_COMPOSITE): New macro.
2241
2242 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2243
2244         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2245
2246 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2247
2248         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2249         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2250
2251 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2252
2253         * mule-charset.c (Vcharset_mojikyo): New variable.
2254         (Fdefine_char): Don't use coded-charset which does not have
2255         non-builtin character range to allocate character-id.
2256         (Qmojikyo): New variable.
2257         (syms_of_mule_charset): Add new symbol `mojikyo'.
2258         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2259
2260         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2261         (LEADING_BYTE_MOJIKYO): New macro.
2262         (MIN_CHAR_MOJIKYO): New macro.
2263         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2264         (MAX_CHAR_MOJIKYO): New macro.
2265
2266 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2267
2268         * mule-charset.c (remove_char_attribute): Fixed.
2269
2270 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2271
2272         * mule-charset.c (remove_char_attribute): New function.
2273         (Fremove_char_attribute): New function.
2274         (encode_builtin_char_1): Comment out builtin-support for
2275         greek-iso8859-7 and cyrillic-iso8859-5.
2276         (Fdecode_char): Check `code' is an integer.
2277         (syms_of_mule_charset): Add `remove-char-attribute'.
2278         (MIN_CHAR_GREEK): Deleted.
2279         (MAX_CHAR_GREEK): Likewise.
2280         (MIN_CHAR_CYRILLIC): Likewise.
2281         (MAX_CHAR_CYRILLIC): Likewise.
2282         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2283         MAX_CHAR_GREEK for `greek-iso8859-7'.
2284
2285         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2286         (MAX_CHAR_GREEK): Likewise.
2287         (MIN_CHAR_CYRILLIC): Likewise.
2288         (MAX_CHAR_CYRILLIC): Likewise.
2289
2290 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2291
2292         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2293         format is used without `ucs' property.
2294         (Fdecode_char): Fix problem with GR representation.
2295         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2296         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2297
2298 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2299
2300         * mule-charset.c (make_builtin_char): New function.
2301         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2302         (Fset_charset_mapping_table): Modify for new representation of
2303         code-point.
2304         (Fdecode_char): New function.
2305         (syms_of_mule_charset): Add new builtin function `decode-char' in
2306         UTF-2000.
2307
2308         * char-ucs.h (make_builtin_char): New prototype.
2309         (DECODE_CHAR): New inline function.
2310         (MAKE_CHAR): Use `DECODE_CHAR'.
2311
2312 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2313
2314         * text-coding.c (parse_charset_conversion_specs): Use
2315         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2316         `XCHARSET_TYPE'.
2317         (iso2022_designate): Likewise.
2318
2319         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2320         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2321
2322         * mule-charset.c (Vcharset_ucs): New variable.
2323         (print_charset): Change design; use `CHARSET_CHARS' and
2324         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2325         (make_charset): Change signature to specify `chars' and
2326         `dimension' instead of `type'.
2327         (range_charset_code_point): Modify for 256^n-set.
2328         (encode_builtin_char_1): Encode as `ucs' in default.
2329         (Fmake_charset): Modify for `make_charset'.
2330         (Fmake_reverse_direction_charset): Likewise.
2331         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2332         UTF-2000.
2333         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2334         for `make_charset'.
2335
2336         * char-ucs.h (Vcharset_ucs): New variable.
2337         (LEADING_BYTE_UCS): New macro.
2338         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2339         and `chars' to `unsigned short' from `unsigned int'.
2340         (CHARSET_TYPE): Deleted.
2341         (XCHARSET_TYPE): Deleted.
2342
2343 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2344
2345         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2346
2347         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2348         (ENCODE_CHAR): New macro.
2349
2350 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2351
2352         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2353         to 0.14 (Kawachi-Katakami).
2354
2355 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2356
2357         * text-coding.c (char_encode_shift_jis): Modify for
2358         `charset_code_point'.
2359         (char_encode_iso2022): Likewise.
2360
2361         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2362         (integer) instead of list of <Lisp_Object>s (integers) as the
2363         format of code-point of a coded-charset.
2364         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2365         (encode_builtin_char_1): New function; delete
2366         `split_builtin_char'.
2367         (charset_code_point): Return <int> instead of <Lisp_Object>.
2368         (Fsplit_char): Don't use `SPLIT_CHAR'.
2369
2370         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2371         prototype for `split_builtin_char'.
2372         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2373         (charset_code_point): Likewise.
2374         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2375         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2376
2377 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2378
2379         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2380         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2381
2382 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2383
2384         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2385
2386         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2387         (MAX_CHAR_OBS_94x94): Deleted.
2388
2389 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2390
2391         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2392
2393         * char-ucs.h (MAX_CHAR_BMP): New macro.
2394
2395 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2396
2397         * text-coding.c: Sync with r21-2-24.
2398
2399 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2400
2401         * file-coding.c: Modify for UTF-2000.
2402
2403 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2404
2405         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2406         to 0.13 (Takaida).
2407
2408 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2409
2410         * mule-charset.c (split_builtin_char): Delete builtin support for
2411         `katakana-jisx0201'.
2412         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2413         BMP area in builtin representation.
2414
2415         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2416         `Vcharset_katakana_jisx0201'.
2417
2418 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2419
2420         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2421         (Qisolated): New variable.
2422         (Qinitial): New variable.
2423         (Qmedial): New variable.
2424         (Qfinal): New variable.
2425         (Qvertical): New variable.
2426         (Qsmall): New variable.
2427         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2428         `Qvertical' and `Qsmall'.
2429         (Qmojikyo_pj_[1 .. 21]): New variable.
2430         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2431         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2432         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2433         .. 21]'.
2434
2435 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2436
2437         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2438         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2439         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2440
2441 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2442
2443         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2444         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2445         BMP.
2446         (Qjapanese_jisx0208_1990): New variable.
2447         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2448         (complex_vars_of_mule_charset): Add new coded-charset
2449         `japanese-jisx0208-1990'.
2450
2451         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2452         (MIN_CHAR_JIS_X0208_1990): New macro.
2453         (MAX_CHAR_JIS_X0208_1990): New macro.
2454
2455 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2456
2457         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2458         coded-charset is not found.
2459
2460 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2461
2462         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2463         (Fdefine_char): Use `Fmake_char'.
2464
2465 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2466
2467         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2468         (Vcharset_hiragana_jisx0208): Deleted.
2469         (Vcharset_katakana_jisx0208): Deleted.
2470         (Qideograph_daikanwa): New variable.
2471         (Qhiragana_jisx0208): Deleted.
2472         (Qkatakana_jisx0208): Deleted.
2473         (split_builtin_char): Split `ideograph-daikanwa'.
2474         (Fsplit_char): New implementation for UTF-2000.
2475         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2476         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2477         (complex_vars_of_mule_charset): Add new coded-charset
2478         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2479         `katakana-jisx0208'.
2480
2481         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2482         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2483         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2484         (MIN_CHAR_DAIKANWA): New macro.
2485         (MAX_CHAR_DAIKANWA): New macro.
2486
2487 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2488
2489         * data.c (Fstring_to_number): Don't recognize floating point if
2490         base is not 10.
2491
2492 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2493
2494         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2495
2496 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2497
2498         * mule-charset.c (Qsquare): New variable.
2499         (to_char_code): Add `Qsquare'.
2500         (syms_of_mule_charset): Add new symbol `square'.
2501
2502 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2503
2504         * mule-charset.c (Qcircle): New variable.
2505         (to_char_code): Add `Qcircle'.
2506         (syms_of_mule_charset): Add new symbol `circle'.
2507
2508 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2509
2510         * mule-charset.c (Qfont): New variable.
2511         (to_char_code): Add `Qfont'.
2512         (syms_of_mule_charset): Add new symbol `font'.
2513
2514 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2515
2516         * mule-charset.c (Qsub): New variable.
2517         (to_char_code): Add `Qsub'.
2518         (syms_of_mule_charset): Add new symbol `sub'.
2519
2520 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2521
2522         * mule-charset.c (Fput_char_attribute): Convert each element of
2523         VALUE to GL position if ATTRIBUTE is a GR-set,
2524
2525 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2526
2527         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2528         coded-charset is a GR-set.
2529
2530 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2531
2532         * mule-charset.c (Fput_char_attribute): Check each element of
2533         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2534
2535 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2536
2537         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2538         UTF-2000.
2539         (Qethiopic_ucs): New variable in UTF-2000.
2540         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2541         (complex_vars_of_mule_charset): Add new coded-charset
2542         `ethiopic-ucs' in UTF-2000.
2543
2544         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2545         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2546         9)'.
2547         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2548         10)'.
2549         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2550
2551 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2552
2553         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2554         `ascii'.
2555
2556 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2557
2558         * mule-charset.c (Vcharacter_variant_table): New variable.
2559         (Q_ucs): New variable.
2560         (Fchar_variants): New function.
2561         (Fput_char_attribute): Register `->ucs' value to
2562         `Vcharacter_variant_table'.
2563         (syms_of_mule_charset): Add new function `char-variants' and new
2564         symbol `->ucs'.
2565         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2566
2567 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2568
2569         * mule-charset.c (get_char_code_table): Allow negative character
2570         code.
2571         (put_char_code_table): Likewise.
2572         (Vcharacter_composition_table): New variable.
2573         (Q_decomposition): New variable.
2574         (Qwide): New variable.
2575         (Qnarrow): New variable.
2576         (Qcompat): New variable.
2577         (QnoBreak): New variable.
2578         (Qsuper): New variable.
2579         (Qfraction): New variable.
2580         (to_char_code): New function.
2581         (Fget_composite_char): New function.
2582         (Fput_char_attribute): Register `->decomposition' value to
2583         `Vcharacter_composition_table'.
2584         (syms_of_mule_charset): Add new function `get-composite-char', new
2585         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2586         `super' and `fraction'.
2587         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2588
2589 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2590
2591         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2592         character; copy the return value.
2593
2594 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2595
2596         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2597
2598         * mule-charset.c (range_charset_code_point): Must use make_int.
2599         (split_builtin_char): New function.
2600
2601 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2602
2603         * mule-charset.c (char_byte_table): Change name from
2604         "char-code-table" to "char-byte-table".
2605         (mark_char_code_table): New function.
2606         (char_code_table_equal): New function.
2607         (char_code_table_hash): New function.
2608         (char_code_table_description): New constant.
2609         (char_code_table): New type.
2610         (make_char_code_table): New function.
2611         (copy_char_code_table): New function.
2612         (get_char_code_table): Modify for `char_code_table' type.
2613         (put_char_code_table): Likewise.
2614         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2615         (Kashiwara).
2616
2617         * char-ucs.h (char_code_table): New type.
2618         (XCHAR_CODE_TABLE): New macro.
2619         (XSETCHAR_CODE_TABLE): New macro.
2620         (CHAR_CODE_TABLE_P): New macro.
2621         (GC_CHAR_CODE_TABLE_P): New macro.
2622         (struct Lisp_Char_Code_Table): New structure.
2623
2624 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2625
2626         * mule-charset.c (Fmake_charset): Setup byte_offset for
2627         {94|96}^n-set.
2628
2629 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2630
2631         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2632         character.
2633
2634 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2635
2636         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2637         is found.
2638
2639 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2640
2641         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2642         charset, it is regarded as a charset.
2643         (put_char_attribute): New function in UTF-2000.
2644         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2645         charset, mapping-table of the charset is modified.
2646         (Fdefine_char): New function in UTF-2000.
2647         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2648         `Fput_char_attribute'.
2649         (syms_of_mule_charset): Add new function `define-char' and new
2650         symbol `ucs' in UTF-2000.
2651         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2652
2653 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2654
2655         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2656         non-UTF-2000 configuration.
2657
2658 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2659
2660         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2661         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2662
2663         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2664         deleted.
2665         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2666         (Fset_charset_mapping_table): Likewise.
2667
2668         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2669         (CHARSET_ENCODING_TABLE): Delete.
2670         (XCHARSET_ENCODING_TABLE): Delete.
2671         (charset_code_point): New interface.
2672
2673 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2674
2675         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2676         instead of `charset_get_byte1' and `charset_get_byte2'.
2677
2678         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2679         (charset_get_byte2): Deleted.
2680
2681 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2682
2683         * char-ucs.h (SPLIT_CHAR): New inline function.
2684         (breakup_char_1): Use `SPLIT_CHAR'.
2685
2686         * mule-charset.c (range_charset_code_point): New function.
2687         (charset_code_point): New function.
2688
2689         * char-ucs.h (range_charset_code_point): New interface.
2690         (breakup_char_1): Use `range_charset_code_point'.
2691
2692 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2693
2694         * mule-charset.c (Fmake_charset): Delete unused local variable
2695         `code_offset'.
2696
2697         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2698         (breakup_char_1): Find a charset and code-point in
2699         `Vcharacter_attribute_table'.
2700
2701 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2702
2703         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2704         to 0.10 (Yao).
2705
2706 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2707
2708         * mule-charset.c (Vcharacter_attribute_table): New variable.
2709         (Fchar_attribute_alist): New function.
2710         (Fget_char_attribute): New function.
2711         (Fput_char_attribute): New function.
2712         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2713         too.
2714         (syms_of_mule_charset): Add new function `char-attribute-alist',
2715         `get-char-attribute' and `put-char-attribute'.
2716         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2717
2718 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2719
2720         * mule-charset.c (Fmake_charset): Just use
2721         `get_unallocated_leading_byte'.
2722
2723         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2724         sets; don't use final-byte based number for private sets.
2725
2726 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2727
2728         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2729         integer.
2730
2731 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2732
2733         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2734         to 0.9.
2735
2736 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2737
2738         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2739         of `CHAR_LEADING_BYTE' in UTF-2000.
2740
2741         * insdel.c (find_charsets_in_bufbyte_string): Use
2742         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2743         (find_charsets_in_emchar_string): Likewise.
2744
2745         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2746         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2747
2748         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2749         (CHAR_CHARSET_ID): New macro.
2750
2751 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2752
2753         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2754         charset-id - MIN_LEADING_BYTE.
2755         (put_char_table): Likewise.
2756
2757 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2758
2759         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2760         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2761         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2762         (CHARSET_ID_OFFSET): New macro.
2763         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2764         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2765         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2766         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2767         4).
2768         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2769         5).
2770         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2771         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2772         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2773         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2774         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2775
2776 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2777
2778         * mule-charset.c (next_allocated_leading_byte): New variable in
2779         UTF-2000.
2780         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2781         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2782         (get_unallocated_leading_byte): Simply use
2783         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2784         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2785         UTF-2000.
2786
2787         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2788         (MAX_LEADING_BYTE_PRIVATE): New macro.
2789         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2790         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2791
2792 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2793
2794         * mule-charset.c (Fmake_charset): Allocate final-byte based
2795         charset-id for 94-set, 96-set and 94x94-set.
2796
2797 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2798
2799         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2800         ambiguous `else'.
2801         (Fmake_charset): Likewise.
2802         (complex_vars_of_mule_charset): Modify the font registry of
2803         `ucs-bmp' not to match `Ethiopic-Unicode'.
2804
2805 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2806
2807         * mule-charset.c (complex_vars_of_mule_charset): Add font
2808         registory of `ucs-bmp'.
2809
2810 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2811
2812         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2813         coded-charsets in `default-coded-charset-priority-list' when
2814         breaking up a character.
2815
2816         * mule-charset.c (Vcharset_latin_viscii): New variable.
2817         (Qlatin_viscii): New variable.
2818         (make_charset): Don't use `decoding_table'.
2819         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2820         byte_offset.
2821         (Fset_charset_mapping_table): New implementation.
2822         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2823         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2824         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2825         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2826         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2827         charset `latin_viscii'.
2828
2829         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2830         (CHARSET_TYPE_94X94): Change to 1 from 2.
2831         (CHARSET_TYPE_96): Change to 2 from 1.
2832         (CHARSET_TYPE_128): New macro.
2833         (CHARSET_TYPE_128X128): Change to 5 from 4.
2834         (CHARSET_TYPE_256): New macro.
2835         (CHARSET_TYPE_256X256): Change to 7 from 5.
2836         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2837
2838 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2839
2840         * text-coding.c (char_encode_shift_jis): Refer
2841         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2842         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2843
2844         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2845         (char_byte_table_equal): New function in UTF-2000.
2846         (char_byte_table_hash): New function in UTF-2000.
2847         (char_byte_table_description): New constant in UTF-2000.
2848         (char_byte_table): New type in UTF-2000.
2849         (make_char_byte_table): New function in UTF-2000.
2850         (copy_char_byte_table): New function in UTF-2000.
2851         (make_char_code_table): New macro in UTF-2000.
2852         (get_char_code_table): New function in UTF-2000.
2853         (put_char_code_table): New function in UTF-2000.
2854         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2855         (charset_description): Add setting in UTF-2000.
2856         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2857         `CHARSET_TO_BYTE1_TABLE(cs)'.
2858         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2859         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2860         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2861         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2862         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2863         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2864         `CHARSET_TO_BYTE2_TABLE(cs)'.
2865
2866         * char-ucs.h (char_byte_table): New type.
2867         (XCHAR_BYTE_TABLE): New macro.
2868         (XSETCHAR_BYTE_TABLE): New macro.
2869         (CHAR_BYTE_TABLE_P): New macro.
2870         (GC_CHAR_BYTE_TABLE_P): New macro.
2871         (struct Lisp_Char_Byte_Table): New structure.
2872         (get_char_code_table): New interface.
2873         (Emchar_to_byte_table): Deleted.
2874         (get_byte_from_character_table): Deleted.
2875         (struct Lisp_Charset): Add `encoding_table'; delete
2876         `to_byte1_table' and `to_byte2_table'.
2877         (CHARSET_ENCODING_TABLE): New macro.
2878         (CHARSET_TO_BYTE1_TABLE): Deleted.
2879         (CHARSET_TO_BYTE2_TABLE): Deleted.
2880         (XCHARSET_ENCODING_TABLE): New macro.
2881         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2882         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2883
2884 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2885
2886         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2887         `vietnamese-viscii-*'.
2888
2889 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2890
2891         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2892         (Qvietnamese_viscii_upper): New variable.
2893         (Fdefine_charset_alias): New function.
2894         (syms_of_mule_charset): Add new function `define-charset-alias'.
2895         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2896         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2897         `latin-viscii-*'.
2898
2899 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2900
2901         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2902         (MAX_CHAR_OBS_94x94): New macro.
2903         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2904         for 94x94 sets.
2905
2906         * mule-charset.c (put_byte_from_character_table): Change unit size
2907         from 128 to 256.
2908         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2909         not defined.
2910         (Fmake_reverse_direction_charset): Modify dummy argument of
2911         `make_charset' for non-UTF-2000 environment.
2912
2913 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2914
2915         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2916
2917         * mule-charset.c (destroy_byte_from_character_table): New macro.
2918         (latin_jisx0201_to_ucs): Deleted.
2919         (latin_iso8859_2_to_ucs): Deleted.
2920         (latin_iso8859_3_to_ucs): Deleted.
2921         (latin_iso8859_4_to_ucs): Deleted.
2922         (latin_iso8859_9_to_ucs): Deleted.
2923         (latin_viscii_lower_to_ucs): Deleted.
2924         (latin_viscii_upper_to_ucs): Deleted.
2925         (mark_charset): Mark `cs->decoding_table'.
2926         (Fcharset_mapping_table): Fix DOC-string.
2927         (Fset_charset_mapping_table): New function.
2928         (syms_of_mule_charset): Add nwe function
2929         `set-charset-mapping-table'.
2930         (complex_vars_of_mule_charset): Don't setup and use
2931         `latin_*_to_ucs'.
2932
2933 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2934
2935         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2936         charset.
2937
2938 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2939
2940         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2941         (Vcharset_katakana_jisx0208): New variable.
2942         (Qhiragana_jisx0208): New variable.
2943         (Qkatakana_jisx0208): New variable.
2944         (make_charset): Add new argument `byte_offset'.
2945         (charset_get_byte1): Modify for new coded-charset definition; use
2946         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2947         `XCHARSET_BYTE_OFFSET'.
2948         (Fmake_charset): Modify for `make_charset'.
2949         (Fmake_reverse_direction_charset): Likewise.
2950         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2951         `katakana-jisx0208'.
2952         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2953         `.'  in font registry of charset `katakana-jisx0201',
2954         `latin-jisx0201', `vietnamese-viscii-lower' and
2955         `vietnamese-viscii-upper'; modify DOC-string of charset
2956         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2957         registry of charset `japanese-jisx0208' not to use font for JIS
2958         X0208:1990; add new charset `hiragana-jisx0208' and
2959         `katakana-jisx0208'.
2960
2961         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2962         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2963         (struct Lisp_Charset): Add `byte_offset'.
2964         (CHARSET_BYTE_OFFSET): New macro.
2965         (XCHARSET_UCS_MIN): New macro.
2966         (XCHARSET_UCS_MAX): New macro.
2967         (XCHARSET_CODE_OFFSET): New macro.
2968         (XCHARSET_BYTE_OFFSET): New macro.
2969         (MIN_CHAR_HIRAGANA): New macro.
2970         (MAX_CHAR_HIRAGANA): New macro.
2971         (MIN_CHAR_KATAKANA): New macro.
2972         (MAX_CHAR_KATAKANA): New macro.
2973         (MAKE_CHAR): Modify for new coded-charset definition; use
2974         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2975         `XCHARSET_BYTE_OFFSET'.
2976
2977 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2978
2979         * mule-charset.c (CHAR96): Deleted.
2980         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2981         <Lisp_Object>.
2982         (latin_iso8859_2_to_ucs): Likewise.
2983         (latin_iso8859_3_to_ucs): Likewise.
2984         (latin_iso8859_4_to_ucs): Likewise.
2985         (latin_iso8859_9_to_ucs): Likewise.
2986         (latin_viscii_lower_to_ucs): Likewise.
2987         (latin_viscii_upper_to_ucs): Likewise.
2988         (latin_tcvn5712_to_ucs): Commented out.
2989         (make_charset): Change type of argument `decoding_table' from
2990         <Emchar*> to <Lisp_Object> [vector of characters].
2991         (Fmake_charset): Modify for `make_charset'.
2992         (Fmake_reverse_direction_charset): Likewise.
2993         (Fcharset_mapping_table): New function in UTF-2000.
2994         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2995         UTF-2000.
2996         (complex_vars_of_mule_charset): Modify for type change of
2997         `*_to_ucs'; modify for `make_charset'.
2998
2999         * char-ucs.h (struct Lisp_Charset): Change type of
3000         `decoding_table' from <Emchar*> to <Lisp_Object>.
3001         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3002
3003 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3004
3005         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3006         error with non-UTF-2000-Mule.
3007
3008 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3009
3010         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3011         in lisp again].
3012         (Vcharset_chinese_cns11643_4): Likewise.
3013         (Vcharset_chinese_cns11643_5): Likewise.
3014         (Vcharset_chinese_cns11643_6): Likewise.
3015         (Vcharset_chinese_cns11643_7): Likewise.
3016         (Qchinese_cns11643_3): Likewise.
3017         (Qchinese_cns11643_4): Likewise.
3018         (Qchinese_cns11643_5): Likewise.
3019         (Qchinese_cns11643_6): Likewise.
3020         (Qchinese_cns11643_7): Likewise.
3021         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3022         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3023         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3024         (complex_vars_of_mule_charset): Likewise.
3025
3026 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3027
3028         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3029         96-set.
3030         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3031         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3032
3033 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3034
3035         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3036         0xFF60.
3037         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3038         (breakup_char_1): Likewise.
3039
3040         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3041         one of them includes the specified character.
3042
3043 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3044
3045         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3046
3047 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3048
3049         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3050
3051 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3052
3053         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3054         definition for non-UTF-2000 Mule.
3055         (latin_iso8859_3_to_ucs): Likewise.
3056         (latin_iso8859_4_to_ucs): Likewise.
3057         (latin_iso8859_9_to_ucs): Likewise.
3058         (latin_jisx0201_to_ucs): Likewise.
3059         (MIN_CHAR_THAI): Likewise.
3060         (MAX_CHAR_THAI): Likewise.
3061         (MIN_CHAR_GREEK): Likewise.
3062         (MAX_CHAR_GREEK): Likewise.
3063         (MIN_CHAR_HEBREW): Likewise.
3064         (MAX_CHAR_HEBREW): Likewise.
3065         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3066         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3067         (MIN_CHAR_CYRILLIC): Likewise.
3068         (MAX_CHAR_CYRILLIC): Likewise.
3069
3070 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3071
3072         * char-ucs.h (breakup_char_1): Use
3073         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3074         thai-tis620 and katakana-jisx0201 area.
3075
3076 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3077
3078         * char-ucs.h (breakup_char_1): Use
3079         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3080         area.
3081
3082         * text-coding.c (reset_encoding_stream): Fixed.
3083         (char_encode_ucs4): Delete `& 255'.
3084
3085         * char-ucs.h (breakup_char_1): Use
3086         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3087
3088 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3089
3090         * file-coding.c (Fmake_coding_system): Don't set up
3091         `codesys->fixed.size'.
3092         (encode_coding_no_conversion): Don't refer
3093         `str->codesys->fixed.size'.
3094
3095 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3096
3097         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3098         (latin_a_char_to_byte1): Deleted.
3099         (latin_a_char_to_byte2): Deleted.
3100
3101 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3102
3103         * mule-charset.c (make_charset): Add new argument `ucs_min',
3104         `ucs_max' and `code_offset'.
3105         (charset_get_byte1): New implementation [delete specific charset
3106         depended implementations].
3107         (Fmake_charset): Modify for `make_charset'.
3108         (Fmake_reverse_direction_charset): Likewise.
3109         (complex_vars_of_mule_charset): Likewise.
3110
3111         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3112         `code_offset'.
3113         (CHARSET_UCS_MIN): New macro.
3114         (CHARSET_UCS_MAX): New macro.
3115         (CHARSET_CODE_OFFSET): New macro.
3116         (MAKE_CHAR): Delete charset depended definitions [except
3117         katakana-jisx0201].
3118
3119 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3120
3121         * char-ucs.h (breakup_char_1): Use
3122         `Vdefault_coded_charset_priority_list' for C0-Controls,
3123         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3124
3125 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3126
3127         * char-ucs.h (charset_get_byte1): New function.
3128         (XCHARSET_GET_BYTE1): Deleted.
3129         (charset_get_byte2): New function.
3130         (XCHARSET_GET_BYTE2): Deleted.
3131         (Vdefault_coded_charset_priority_list): New external variable.
3132         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3133         `Vdefault_preferred_coded_charset_list'.
3134
3135         * mule-charset.c (charset_get_byte1): New function.
3136         (charset_get_byte2): New function.
3137         (Vdefault_coded_charset_priority_list): New variable.
3138         (vars_of_mule_charset): Add new variable
3139         `default-coded-charset-priority-list'.
3140
3141 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3142
3143         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3144         (XCHARSET_GET_BYTE2): New inline function.
3145         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3146         `XCHARSET_GET_BYTE2'.
3147
3148 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3149
3150         * mule-charset.c (make_charset): Initialize
3151         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3152         NULL if table is not defined.
3153
3154 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3155
3156         * text-coding.c (char_encode_shift_jis): Use
3157         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3158         `ucs_to_latin_jisx0201'.
3159
3160         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3161         (ucs_to_latin_iso8859_2): Deleted.
3162         (ucs_to_latin_iso8859_3): Deleted.
3163         (ucs_to_latin_iso8859_4): Deleted.
3164         (ucs_to_latin_iso8859_9): Deleted.
3165         (ucs_to_latin_viscii_lower): Deleted.
3166         (ucs_to_latin_viscii_upper): Deleted.
3167         (ucs_to_latin_tcvn5712): Deleted.
3168         (make_charset): Add new argument `decoding_table'; set up
3169         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3170         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3171         `decoding_table' is defined in UTF-2000.
3172         (Fmake_charset): Modify for `make_charset'.
3173         (Fmake_reverse_direction_charset): Likewise.
3174         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3175         and `GENERATE_96_SET'.
3176
3177         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3178         (ucs_to_latin_jisx0201): Deleted.
3179         (latin_iso8859_2_to_ucs): Deleted.
3180         (ucs_to_latin_iso8859_2): Deleted.
3181         (latin_iso8859_3_to_ucs): Deleted.
3182         (ucs_to_latin_iso8859_3): Deleted.
3183         (latin_iso8859_4_to_ucs): Deleted.
3184         (ucs_to_latin_iso8859_4): Deleted.
3185         (latin_iso8859_9_to_ucs): Deleted.
3186         (ucs_to_latin_iso8859_9): Deleted.
3187         (latin_viscii_lower_to_ucs): Deleted.
3188         (ucs_to_latin_viscii_lower): Deleted.
3189         (latin_viscii_upper_to_ucs): Deleted.
3190         (ucs_to_latin_viscii_upper): Deleted.
3191         (struct Lisp_Charset): Renamed `encoding_table' to
3192         `to_byte1_table'; add `to_byte2_table'.
3193         (CHARSET_DECODING_TABLE): New macro.
3194         (CHARSET_TO_BYTE1_TABLE): New macro.
3195         (CHARSET_TO_BYTE2_TABLE): New macro.
3196         (XCHARSET_DECODING_TABLE): New macro.
3197         (XCHARSET_TO_BYTE1_TABLE): New macro.
3198         (XCHARSET_TO_BYTE2_TABLE): New macro.
3199         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3200         tables.
3201         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3202         don't use `ucs_to_*' tables.
3203
3204 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3205
3206         * text-coding.c (Fmake_coding_system): Don't set up
3207         `codesys->fixed.size'.
3208         (encode_coding_no_conversion): Use `if' instead of `switch'.
3209
3210         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3211
3212 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3213
3214         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3215         (Fmake_charset): Modify for `make_charset'.
3216         (Fmake_reverse_direction_charset): Likewise.
3217         (complex_vars_of_mule_charset): Likewise.
3218
3219 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3220
3221         * text-coding.c (char_encode_shift_jis): Use table
3222         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3223
3224 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3225
3226         * text-coding.c (text_encode_generic): Use `if' instead of
3227         `switch'.
3228         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3229         decode JIS-Latin.
3230
3231 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3232
3233         * text-coding.c (encode_coding_sjis): Deleted.
3234         (char_encode_shift_jis): New function.
3235         (char_finish_shift_jis): New function.
3236         (reset_encoding_stream): Set up `encode_char' and `finish' for
3237         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3238         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3239         (char_encode_utf8): Treat `eol_type'.
3240
3241 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3242
3243         * file-coding.c (decode_coding_iso2022): Use
3244         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3245
3246 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3247
3248         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3249         to 0.7 (Hirano).
3250
3251 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3252
3253         * char-lb.h (CHAR_COLUMNS): New macro.
3254
3255 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3256
3257         * text-coding.c (char_encode_ucs4): New function.
3258         (char_finish_ucs4): New function.
3259         (encode_coding_ucs4): Deleted.
3260         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3261         (text_encode_generic): Delete local variable `charset' and `half'.
3262         (ucs_to_mule_table): Deleted.
3263         (mule_to_ucs_table): Deleted.
3264         (Fset_ucs_char): Deleted.
3265         (ucs_to_char): Deleted.
3266         (Fucs_char): Deleted.
3267         (Fset_char_ucs): Deleted.
3268         (Fchar_ucs): Deleted.
3269         (decode_ucs4): Deleted.
3270         (mule_char_to_ucs4): Deleted.
3271         (encode_ucs4): Deleted.
3272         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3273         (decode_coding_utf8): Likewise.
3274         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3275         (char_encode_iso2022): Fixed.
3276         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3277         `Fset_char_ucs' and `Fchar_ucs'.
3278         (complex_vars_of_file_coding): Don't initialize
3279         `ucs_to_mule_table'.
3280
3281         * objects-tty.c (tty_initialize_font_instance): Don't use
3282         `XCHARSET_COLUMNS'.
3283
3284         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3285         UTF-2000.
3286
3287         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3288         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3289
3290         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3291         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3292         (emchar_string_displayed_columns): Likewise.
3293
3294         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3295         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3296         (string_column_at_point): Likewise.
3297         (Fmove_to_column): Likewise.
3298
3299         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3300         `encoding_table' and `decoding_table'.
3301         (CHARSET_REP_BYTES): Deleted.
3302         (XCHARSET_REP_BYTES): Deleted.
3303         (XCHARSET_COLUMNS): Deleted.
3304         (CHAR_COLUMNS): New macro.
3305         (lookup_composite_char): Deleted unconditionally.
3306         (composite_char_string): Likewise.
3307
3308 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3309
3310         * char-ucs.h (Emchar_to_byte_table): New type.
3311         (get_byte_from_character_table): New function interface.
3312         (Vcharset_latin_jisx0201): New variable.
3313         (latin_jisx0201_to_ucs): New variable.
3314         (ucs_to_latin_jisx0201): New variable.
3315         (Vcharset_latin_iso8859_2): New variable.
3316         (latin_iso8859_2_to_ucs): New variable.
3317         (ucs_to_latin_iso8859_2): New variable.
3318         (Vcharset_latin_iso8859_3): New variable.
3319         (latin_iso8859_3_to_ucs): New variable.
3320         (ucs_to_latin_iso8859_3): New variable.
3321         (Vcharset_latin_iso8859_4): New variable.
3322         (latin_iso8859_4_to_ucs): New variable.
3323         (ucs_to_latin_iso8859_4): New variable.
3324         (Vcharset_latin_iso8859_9): New variable.
3325         (latin_iso8859_9_to_ucs): New variable.
3326         (ucs_to_latin_iso8859_9): New variable.
3327         (Vcharset_latin_viscii_lower): New variable.
3328         (latin_viscii_lower_to_ucs): New variable.
3329         (ucs_to_latin_viscii_lower): New variable.
3330         (Vcharset_latin_viscii_upper): New variable.
3331         (latin_viscii_upper_to_ucs): New variable.
3332         (ucs_to_latin_viscii_upper): New variable.
3333         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3334         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3335         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3336         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3337         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3338         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3339         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3340         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3341         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3342         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3343
3344         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3345         (Vcharset_latin_viscii_upper): New variable.
3346         (make_byte_from_character_table): New function.
3347         (put_byte_from_character_table): New function.
3348         (get_byte_from_character_table): New function.
3349         (CHAR96): New macro.
3350         (ucs_to_latin_jisx0201): New variable.
3351         (latin_jisx0201_to_ucs): New variable.
3352         (ucs_to_latin_iso8859_2): New variable.
3353         (latin_iso8859_2_to_ucs): New variable.
3354         (ucs_to_latin_iso8859_3): New variable.
3355         (latin_iso8859_3_to_ucs): New variable.
3356         (ucs_to_latin_iso8859_4): New variable.
3357         (latin_iso8859_4_to_ucs): New variable.
3358         (ucs_to_latin_iso8859_9): New variable.
3359         (latin_iso8859_9_to_ucs): New variable.
3360         (ucs_to_latin_viscii_lower): New variable.
3361         (latin_viscii_lower_to_ucs): New variable.
3362         (ucs_to_latin_viscii_upper): New variable.
3363         (latin_viscii_upper_to_ucs): New variable.
3364         (ucs_to_latin_tcvn5712): New variable.
3365         (latin_tcvn5712_to_ucs): New variable.
3366         (Qlatin_viscii_lower): New variable.
3367         (Qlatin_viscii_upper): New variable.
3368         (syms_of_mule_charset): Set up new symbol
3369         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3370         (complex_vars_of_mule_charset): Set up new charset
3371         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3372         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3373         `ucs_to_<CHARSET>' tables.
3374
3375 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3376
3377         * text-coding.c: New file.
3378
3379 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3380
3381         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3382
3383         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3384         (MAKE_CHAR): Modify for `ucs-bmp'.
3385         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3386         non-MULE characters of BMP.
3387
3388 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3389
3390         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3391         to 0.6.
3392
3393 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3394
3395         * lstream.h:
3396         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3397         - Include character.h for `CHAR_ASCII_P'.
3398
3399         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3400
3401         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3402         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3403
3404         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3405         (BYTE_C0_P): Likewise.
3406         (BYTE_C1_P): Likewise.
3407         (Lstream_get_emchar_1): Likewise.
3408         (Lstream_fput_emchar): Likewise.
3409         (Lstream_funget_emchar): Likewise.
3410         (copy_internal_to_external): Likewise.
3411         (copy_external_to_internal): Likewise.
3412
3413         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3414         (BYTE_C0_P): Likewise.
3415         (BYTE_C1_P): Likewise.
3416         (Lstream_get_emchar_1): Likewise.
3417         (Lstream_fput_emchar): Likewise.
3418         (Lstream_funget_emchar): Likewise.
3419         (copy_internal_to_external): Likewise.
3420         (copy_external_to_internal): Likewise.
3421
3422         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3423         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3424
3425         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3426         (BYTE_ASCII_P): Moved to mb-1byte.h.
3427
3428 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3429
3430         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3431
3432         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3433         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3434         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3435         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3436         (VALIDATE_CHARPTR_FORWARD): Likewise.
3437         (simple_charptr_emchar): Moved to mb-multibyte.h.
3438         (simple_set_charptr_emchar): Likewise.
3439         (simple_charptr_copy_char): Likewise.
3440         (non_ascii_charptr_emchar): Likewise.
3441         (non_ascii_set_charptr_emchar): Likewise.
3442         (non_ascii_charptr_copy_char): Likewise.
3443         (charptr_emchar): Moved to mb-*byte.h.
3444         (set_charptr_emchar): Likewise.
3445         (charptr_copy_char): Likewise.
3446
3447         * mb-1byte.h, mb-multibyte.h: New files.
3448
3449 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3450
3451         * mb-utf-8.h (MULTIBYTE): New macro.
3452         (MAX_EMCHAR_LEN): Moved from buffer.h.
3453         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3454
3455         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3456
3457         * mb-lb.h, multibyte.h: New files.
3458
3459         * char-1byte.h (Charset_ID): Moved from buffer.h.
3460         (MIN_LEADING_BYTE): Likewise.
3461         (LEADING_BYTE_ASCII): Likewise.
3462         (NUM_LEADING_BYTES): Likewise.
3463         (CHARSETP): Likewise.
3464         (CHARSET_BY_LEADING_BYTE): Likewise.
3465         (XCHARSET_LEADING_BYTE): Likewise.
3466         (XCHARSET_GRAPHIC): Likewise.
3467         (XCHARSET_COLUMNS): Likewise.
3468         (XCHARSET_DIMENSION): Likewise.
3469         (CHAR_CHARSET): Likewise.
3470         (CHAR_LEADING_BYTE): Likewise.
3471         (BREAKUP_CHAR): Likewise.
3472         (Vcharset_ascii): Likewise.
3473
3474         * buffer.h: Include multibyte.h unconditionally.
3475         (VALID_CHARPTR_P): Moved to multibyte.h.
3476         (ASSERT_VALID_CHARPTR): Likewise.
3477         (REAL_INC_CHARPTR): Likewise.
3478         (REAL_INC_CHARBYTIND): Likewise.
3479         (REAL_DEC_CHARPTR): Likewise.
3480         (INC_CHARPTR): Likewise.
3481         (INC_CHARBYTIND): Likewise.
3482         (DEC_CHARPTR): Likewise.
3483         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3484         (VALIDATE_CHARPTR_FORWARD): Likewise.
3485         (charptr_n_addr): Likewise.
3486         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3487         (simple_charptr_emchar): Moved to multibyte.h.
3488         (simple_set_charptr_emchar): Likewise.
3489         (simple_charptr_copy_char): Likewise.
3490         (non_ascii_charptr_emchar): Likewise.
3491         (non_ascii_set_charptr_emchar): Likewise.
3492         (non_ascii_charptr_copy_char): Likewise.
3493         (charptr_emchar): Likewise.
3494         (set_charptr_emchar): Likewise.
3495         (charptr_copy_char): Likewise.
3496         (charptr_emchar_n): Likewise.
3497         (Charset_ID): Moved to char-1byte.h.
3498         (Vcharset_ascii): Likewise.
3499         (CHAR_CHARSET): Likewise.
3500         (CHAR_LEADING_BYTE): Likewise.
3501         (LEADING_BYTE_ASCII): Likewise.
3502         (NUM_LEADING_BYTES): Likewise.
3503         (MIN_LEADING_BYTE): Likewise.
3504         (CHARSETP): Likewise.
3505         (CHARSET_BY_LEADING_BYTE): Likewise.
3506         (XCHARSET_LEADING_BYTE): Likewise.
3507         (XCHARSET_GRAPHIC): Likewise.
3508         (XCHARSET_COLUMNS): Likewise.
3509         (XCHARSET_DIMENSION): Likewise.
3510         (BREAKUP_CHAR): Likewise.
3511
3512 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3513
3514         * character.h: Add document about interface for characters.
3515
3516         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3517         (MAKE_CHAR): Delete comment about
3518         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3519         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3520         (BREAKUP_CHAR): Modify name of arguments.
3521         (CHAR_CHARSET): Modify name of argument.
3522
3523         * buffer.h: Delete document about Emchar accessors.
3524
3525 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3526
3527         * character.h (CHAR_INTP): Moved from buffer.h
3528         (CHAR_OR_CHAR_INTP): Likewise.
3529         (XCHAR_OR_CHAR_INT): Likewise.
3530         (CHECK_CHAR_COERCE_INT): Likewise.
3531
3532         * buffer.h (CHAR_INTP): Moved to character.h
3533         (CHAR_OR_CHAR_INTP): Likewise.
3534         (XCHAR_OR_CHAR_INT): Likewise.
3535         (CHECK_CHAR_COERCE_INT): Likewise.
3536
3537 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3538
3539         * character.h:
3540         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3541         - Include char-1byte.h, char-lb.h or char-ucs.h.
3542
3543         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3544
3545         * buffer.h: Include character unconditionally.
3546         (valid_char_p): Moved to char-*.h.
3547         (non_ascii_valid_char_p): Moved to char-lb.h.
3548
3549         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3550
3551 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3552
3553         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3554         in UTF-2000 because it is not ported yet and not to use
3555         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3556         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3557         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3558
3559         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3560         (CHAR_ASCII_P): Moved from character.h.
3561
3562         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3563         (CHAR_ASCII_P): Likewise.
3564         (CHAR_FIELD1_MASK): Deleted.
3565         (CHAR_FIELD2_MASK): Deleted.
3566         (CHAR_FIELD3_MASK): Deleted.
3567         (MAX_CHAR_BASIC_LATIN): New macro.
3568         (CHAR_FIELD1): Deleted.
3569         (CHAR_FIELD2_INTERNAL): Deleted.
3570         (CHAR_FIELD3_INTERNAL): Deleted.
3571         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3572         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3573         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3574         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3575         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3576         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3577         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3578         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3579         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3580         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3581         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3582         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3583         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3584         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3585         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3586         (MIN_CHAR_COMPOSITION): Deleted.
3587         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3588         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3589
3590 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3591
3592         * buffer.h: Include mb-utf-8.h in UTF-2000.
3593
3594         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3595
3596         * mb-utf-8.h: New file.
3597
3598 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3599
3600         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3601         instead of `int'.
3602
3603         * mule-charset.h, buffer.h (Charset_ID): New type.
3604
3605 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3606
3607         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3608         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3609         instead of `MULE_CHAR_PRIVATE_OFFSET',
3610         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3611         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3612         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3613
3614         * character.h (Vcharset_japanese_jisx0212): New variable
3615         definition.
3616
3617 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3618
3619         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3620         (charset_by_attributes): Delete array about direction.
3621         (latin_a_char_to_charset): New variable in UTF-2000.
3622         (latin_a_char_to_byte1): New variable in UTF-2000.
3623         (latin_a_char_to_byte2): New variable in UTF-2000.
3624         (Qucs_bmp): New variable.
3625         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3626         `Bufbyte'.
3627         (next_allocated_2_byte_leading_byte): Likewise.
3628         (non_ascii_set_charptr_emchar): Likewise.
3629         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3630         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3631         `charset_by_attributes'.
3632         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3633         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3634         and `CHARSET_BY_LEADING_BYTE'.
3635         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3636         `utf-2000-version' to `vars_of_mule_charset'.
3637         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3638         define `leading-code-private-11' in UTF-2000; move setting of
3639         `utf-2000-version' from `syms_of_mule_charset'.
3640         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3641         UTF-2000.
3642
3643         * character.h (Charset_ID): New type.
3644         (LEADING_BYTE_UCS_BMP): New macro.
3645         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3646         (CHARSET_ID_OFFSET_94): New macro.
3647         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3648         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3649         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3650         final-byte.
3651         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3652         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3653         (CHARSET_ID_OFFSET_96): New macro.
3654         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3655         CHARSET_ID_OFFSET_96 and final-byte.
3656         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3657         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3658         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3659         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3660         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3661         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3662         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3663         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3664         (LEADING_BYTE_THAI_TIS620): Likewise.
3665         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3666         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3667         (CHARSET_ID_OFFSET_94x94): New macro.
3668         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3669         CHARSET_ID_OFFSET_94x94 and final-byte.
3670         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3671         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3672         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3673         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3674         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3675         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3676         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3677         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3678         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3679         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3680         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3681         (CHARSET_TYPE_128X128): New macro.
3682         (CHARSET_TYPE_256X256): New macro.
3683         (XCHARSET_PRIVATE_P): Delete unconditionally.
3684         (charset_by_attributes): Delete array about direction.
3685         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3686         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3687         (MIN_CHAR_94): New macro.
3688         (MAX_CHAR_94): New macro.
3689         (MIN_CHAR_96): New macro.
3690         (MAX_CHAR_96): New macro.
3691         (MIN_CHAR_94x94): New macro.
3692         (MAX_CHAR_94x94): New macro.
3693         (MIN_CHAR_96x96): New macro.
3694         (MAX_CHAR_96x96): New macro.
3695         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3696         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3697         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3698         - 32)'.
3699         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3700         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3701         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3702         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3703         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3704         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3705         `XCHARSET_LEADING_BYTE' to make code-point.
3706         (latin_a_char_to_charset): New variable.
3707         (latin_a_char_to_byte1): New variable.
3708         (latin_a_char_to_byte2): New variable.
3709         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3710         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3711         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3712
3713         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3714         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3715         (find_charsets_in_emchar_string): Likewise.
3716         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3717
3718         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3719         `int'.
3720         (decode_coding_iso2022): Likewise.
3721
3722         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3723         of `unsigned char'.
3724
3725         * redisplay.c (redisplay_text_width_emchar_string): Use
3726         `Charset_ID' instead of `unsigned char'.
3727         (redisplay_frame_text_width_string): Likewise.
3728
3729         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3730         `unsigned char'.
3731
3732         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3733         instead of `unsigned char'.
3734         (face_cachel_charset_font_metric_info): Likewise.
3735
3736         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3737         (get_non_ascii_char_table_value): Likewise.
3738         (get_char_table): Likewise.
3739         (put_char_table): Likewise.
3740         (map_over_other_charset): Likewise.
3741         (map_char_table): Likewise.
3742
3743         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3744         instead of `unsigned char'.
3745
3746 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3747
3748         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3749         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3750
3751         * mule-charset.c (leading_code_private_11): Don't define in
3752         UTF-2000.
3753
3754         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3755         in UTF-2000 because it is not ported yet and not to use
3756         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3757
3758 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3759
3760         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3761
3762 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3763
3764         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3765         in UTF-2000.
3766
3767         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3768         of unsigned char to store leading-byte.
3769
3770         * chartab.c (get_non_ascii_char_table_value): Don't use
3771         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3772
3773         * file-coding.c (encode_coding_big5): Delete bogus implementation
3774         in UTF2000.
3775
3776         * character.h (LEADING_BYTE_*): Delete definition for
3777         non-UTF-2000.
3778         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3779         (LEADING_BYTE_PREFIX_P): Deleted.
3780         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3781         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3782         (BUFBYTE_LEADING_BYTE_P): Deleted.
3783         (CHARSET_PRIVATE_P): Deleted unconditionally.
3784         (rep_bytes_by_first_byte): Deleted unconditionally.
3785         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3786         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3787         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3788         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3789         (CHAR_FIELD2): Deleted.
3790         (CHAR_FIELD3): Deleted.
3791         (MAKE_CHAR): Delete definition for non-UTF-2000.
3792         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3793         (breakup_char_1): New implementation.
3794         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3795         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3796
3797 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3798
3799         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3800         condition.
3801
3802 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3803
3804         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3805         (CHARSET_PRIVATE_P): Likewise.
3806         (XCHARSET_PRIVATE_P): Likewise.
3807         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3808
3809         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3810         UTF2000.
3811         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3812
3813 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3814
3815         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3816         (NUM_LEADING_BYTES): Changed from 128 to 256.
3817         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3818         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3819         UTF2000.
3820         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3821
3822         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3823         UTF2000.
3824         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3825         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3826         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3827         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3828         (Qchinese_cns11643_3): New variable in UTF2000.
3829         (Qchinese_cns11643_4): New variable in UTF2000.
3830         (Qchinese_cns11643_5): New variable in UTF2000.
3831         (Qchinese_cns11643_6): New variable in UTF2000.
3832         (Qchinese_cns11643_7): New variable in UTF2000.
3833         (syms_of_mule_charset): Define `chinese-cns11643-3',
3834         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3835         and `chinese-cns11643-7' in UTF2000.
3836         (vars_of_mule_charset): Initialize
3837         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3838         + 1 in UTF2000.
3839         (complex_vars_of_mule_charset): Setup charset
3840         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3841         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3842
3843 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3844
3845         * mule-charset.c: Move setting for `leading-code-private-11' from
3846         `syms_of_mule_charset' to `vars_of_mule_charset'.
3847
3848 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3849
3850         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3851         and `NUM_LEADING_BYTES' in assert.
3852
3853 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3854
3855         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3856         instead of 128.
3857         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3858         `NUM_LEADING_BYTES' instead of 128.
3859
3860 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3861
3862         * mule-charset.h (charset_by_leading_byte): Use
3863         `NUM_LEADING_BYTES' instead of 128.
3864         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3865
3866         * mule-charset.c (charset_by_leading_byte): Use
3867         `NUM_LEADING_BYTES' instead of 128.
3868         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3869
3870         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3871         128.
3872
3873 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3874
3875         * mule-charset.c (syms_of_mule_charset): Update to
3876         0.4 (Shin-Imamiya).
3877
3878 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3879
3880         * file-coding.c (encode_coding_sjis): New implementation for
3881         UTF2000.  (decode_coding_sjis): Ditto.
3882
3883 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3884
3885         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3886         Don't define in UTF2000.
3887
3888         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3889         defined.
3890
3891         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3892         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3893         MULE.
3894
3895 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3896
3897         * config.h.in (CHAR_IS_UCS4): New macro.
3898
3899         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3900         conventional MULE representation.
3901         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3902
3903         * mule-charset.h: Reverted to original.
3904
3905         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3906         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3907         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3908
3909         * character.h: New file.
3910
3911         * file-coding.c (Fmake_coding_system): Set 1 to
3912         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3913         defined.
3914         (encode_coding_no_conversion): New implementation for UTF2000.
3915
3916         * file-coding.h (struct Lisp_Coding_System): Add new member
3917         `fixed.size'.
3918
3919 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3920
3921         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3922         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3923         (encode_coding_iso2022): New implementation for UTF2000.
3924
3925 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3926
3927         * mule-canna.c (c2mu): New implementation for UTF2000.
3928         (m2c): Likewise.
3929
3930 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3931
3932         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3933
3934 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3935
3936         * file-coding.c (reset_encoding_stream): Set 0 to
3937         `str->iso2022.current_char_boundary' in UTF2000.
3938         (encode_utf8): Don't define in UTF2000.
3939         (encode_coding_utf8): New implementation for UTF-8 representation
3940         of UTF2000.
3941         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3942
3943 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3944
3945         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3946
3947         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3948         UTF2000.
3949         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3950
3951         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3952
3953         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3954         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3955         as UTF-8 in UTF2000.
3956         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3957         (non_ascii_valid_char_p): Don't define in UTF2000.
3958         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3959         (Lstream_get_emchar_1): Likewise.
3960         (utf-2000-version): New variable in UTF2000.
3961
3962         * lread.c (read_escape): Add new reader `u'.
3963
3964         * insdel.c (three_to_one_table): Don't define in UTF2000.
3965         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3966         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3967         UTF2000.
3968         (bytind_to_bufpos_func): Likewise.
3969         (buffer_mule_signal_inserted_region): Likewise.
3970         (vars_of_insdel): Don't initialize `three_to_one_table'.
3971         (init_buffer_text): Use `buf->text->mule_size' instead of
3972         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3973         UTF2000.
3974
3975         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3976         UTF-8 representation in UTF2000.
3977         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3978         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3979         (decode_coding_iso2022): Don't define local variable `lb' in
3980         UTF2000; don't use LEADING_BYTE in UTF2000; use
3981         `DECODE_ADD_UCS_CHAR' in UTF2000.
3982         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3983
3984         * config.h.in (UTF2000): New macro.
3985
3986         * buffer.h (struct buffer_text): Add new member `mule_size' and
3987         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3988         (valid_char_p): Return always 1 in UTF2000.
3989         (MAX_EMCHAR_LEN): 6 in UTF2000.
3990         (three_to_one_table): Don't define in UTF2000.
3991         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3992         UTF2000.
3993         (real_bytind_to_bufpos): Likewise.
3994
3995         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3996
3997 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3998
3999         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4000         representation change.
4001         (Vutf_2000_version): New variable.
4002         (leading_code_private_11): New variable.
4003         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4004         `leading-code-private-11'.
4005
4006         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4007         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4008         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4009         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4010         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4011         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4012         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4013         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4014         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4015         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4016         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4017         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4018         (MIN_CHAR_GREEK): New macro.
4019         (MAX_CHAR_GREEK): New macro.
4020         (MIN_CHAR_CYRILLIC): New macro.
4021         (MAX_CHAR_CYRILLIC): New macro.
4022         (MIN_CHAR_HEBREW): New macro.
4023         (MAX_CHAR_HEBREW): New macro.
4024         (MIN_CHAR_THAI): New macro.
4025         (MAX_CHAR_THAI): New macro.
4026         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4027         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4028         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4029         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4030         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4031         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4032         (CHAR_FIELD2): New inline function.
4033         (CHAR_FIELD3): New inline function.
4034         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4035         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4036         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4037         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4038         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4039         (MIN_CHAR_COMPOSITION): Likewise.
4040         (CHAR_LEADING_BYTE): Modified for character representation change.
4041         (MAKE_CHAR): Likewise.
4042
4043         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4044         (Vcharset_greek_iso8859_7): Likewise.
4045         (Vcharset_cyrillic_iso8859_5): Likewise.
4046         (Vcharset_hebrew_iso8859_8): Likewise.
4047         (Vcharset_thai_tis620): Likewise.
4048         (Vcharset_katakana_jisx0201): Likewise.
4049
4050 2001-02-08  Martin Buchholz <martin@xemacs.org>
4051
4052         * XEmacs 21.2.44 "Thalia" is released.
4053
4054 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4055
4056         Fixes crashes in kill-emacs on some systems.
4057         * process-unix.c (unix_kill_child_process):
4058         It's OK for kill() to fail with ESRCH.
4059
4060 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4061
4062         Contortions to make .gdbinit tricks work on most systems.
4063         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4064         * alloc.c (dbg_valmask): Make non-const.
4065         * alloc.c (dbg_typemask): Make non-const.
4066         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4067         * alloc.c (dbg_valbits): Make non-const.
4068         * alloc.c (dbg_gctypebits): Make non-const.
4069         * .gdbinit (decode_object): Make it work with AIX cc.
4070
4071 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4072
4073         * elhash.c (make_general_lisp_hash_table):
4074         Use simpler and more efficient calloc to clear entries.
4075
4076 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4077
4078         * window.c (window_scroll): Work around an AIX C compiler bug.
4079         Fixes 'scroll-up' does nothing problem with xlC.
4080
4081 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4082
4083         * .gdbinit: Remove obsolete comment.
4084
4085 2001-01-31  Mike Alexander  <mta@arbortext.com>
4086
4087         * select.c (Fown_selection_internal): Set owned_p for device
4088         method correctly.
4089
4090 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4091
4092         Port to g++ 2.97.
4093         "not" cannot be used as a macro name as it is an operator in C++
4094         * config.h.in: Stop #defining `not'.
4095         * chartab.c (check_category_char): not ==> not_p
4096         * chartab.h: Likewise.
4097         * regex.c (re_match_2_internal): Likewise.
4098
4099 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4100
4101         * lisp-disunion.h: Fix up comments.
4102
4103 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4104
4105         * keymap.c (define_key_check_and_coerce_keysym):
4106         (syms_of_keymap):
4107         Support mouse-6 and mouse-7 bindings in the obvious way.
4108
4109 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4110
4111         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4112
4113 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4114
4115         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4116         Previous patch missed DEFVAR_INT_MAGIC.
4117         Make sure future DEFVAR_foo use correct types.
4118         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4119         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4120         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4121         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4122         * (DEFVAR_INT): Likewise.
4123         * redisplay.c (vertical_clip): Should be of type Fixnum.
4124         * redisplay.c (horizontal_clip): Likewise.
4125         * lisp.h (dump_add_opaque_int): New.
4126         (dump_add_opaque_fixnum): New.
4127
4128 2001-01-29  Andy Piper  <andy@xemacs.org>
4129
4130         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4131         since they can be eval'ed
4132
4133 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4134
4135         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4136         Oops, XEmacs redefines `class'.  Use `typename' instead.
4137
4138 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4139
4140         * dumper.c: Fix C++ compile errors.
4141
4142 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4143
4144         * tparam.c: Use correct prototypes.
4145
4146 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4147
4148         * sysproc.h: #include util.h for NetBSD's openpty.
4149
4150 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4151
4152         More 64-bit correctness.
4153         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4154         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4155         Fix up comments.
4156         This finally finishes the 64-bit SGI port.
4157         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4158         * symbols.c: Fix up comments and type casts.
4159         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4160         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4161         * symeval.h (Fixnum): New type.
4162         * symeval.h (symbol_value_type): Fix up comment.
4163
4164         * commands.h:
4165         * nt.c:
4166         * emacs.c:
4167         * data.c:
4168         * redisplay.c:
4169         * abbrev.c:
4170         * dired-msw.c:
4171         * event-Xt.c:
4172         * eldap.c:
4173         * window.c:
4174         * sound.c:
4175         * event-stream.c:
4176         * eval.c:
4177         * buffer.c:
4178         * mule-canna.c: A million DEFVAR_INTs here...
4179         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4180         * extents.c:
4181         * cmdloop.c:
4182         * lisp.h:
4183         * select-x.c:
4184         * console-x.h:
4185         * event-msw.c:
4186         * mule-wnnfns.c:
4187         * hpplay.c:
4188         * ralloc.c:
4189         * alloc.c:
4190         * keymap.c:
4191         * profile.c:
4192         s/int/Fixnum/g in DEFVAR_INT declarations.
4193
4194 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4195
4196         Port pdump to SGI alignment-sensitive environment.
4197         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4198         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4199         properly aligned.
4200         Define and use aligned reading and writing macros.
4201         Use buffered stdio instead of posix i/o for faster dumping.
4202         Eliminate kludgy 256 byte space for header.
4203         Read and write from dump file using structs for alignment safety.
4204         * dumper.c (pdump_align_stream): New.
4205         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4206         * dumper.c (PDUMP_READ_ALIGNED): New.
4207         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4208         * dumper.c (pdump_static_Lisp_Object): New struct.
4209         * dumper.c (pdump_static_pointer): New struct.
4210         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4211         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4212         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4213         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4214
4215         * dumper.c (pdump_backtrace):
4216         * dumper.c (pdump_get_indirect_count):
4217         * dumper.c (pdump_register_object):
4218         * dumper.c (pdump_register_struct):
4219         * dumper.c (pdump_reloc_one):
4220         * dumper.c (pdump_scan_by_alignment):
4221         * dumper.c (pdump_dump_from_root_struct_ptrs):
4222         * dumper.c (pdump_dump_opaques):
4223         * dumper.c (pdump_dump_rtables):
4224         * dumper.c (pdump_dump_from_root_objects):
4225         * dumper.c (pdump):
4226         * dumper.c (pdump_load_finish):
4227         Use aligned reading and writing.
4228
4229         * dumper.c (pdump_free): Make static.
4230         * dumper.c (pdump_hFile): Likewise.
4231         * dumper.c (pdump_hMap): Likewise.
4232
4233 2001-01-26  Martin Buchholz <martin@xemacs.org>
4234
4235         * XEmacs 21.2.43 "Terspichore" is released.
4236
4237 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4238
4239         Type fiddling for window_config.saved_windows_count
4240         * window.c (struct window_config): 
4241         Make saved_windows_count member unsigned.
4242         * window.c (sizeof_window_config_for_n_windows): 
4243         Make parameter unsigned.
4244         * window.c (mark_window_config):
4245         * window.c (window_config_equal):
4246         * window.c (free_window_configuration):
4247         * window.c (Fset_window_configuration):
4248         * window.c (count_windows):
4249         * window.c (Fcurrent_window_configuration):
4250         * window.c (reinit_vars_of_window):
4251         Update all callers and users.
4252
4253 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4254
4255         Alignment correctness for flexible arrays.
4256         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4257         Make alignment-correct. Add interesting comments.
4258         * alloc.c (size_vector):
4259         * alloc.c (make_vector_internal):
4260         * alloc.c (make_bit_vector_internal):
4261         * alloc.c (sweep_bit_vectors_1):
4262         * fns.c (size_bit_vector):
4263         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4264         * window.c (sizeof_window_config_for_n_windows): 
4265         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4266
4267 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4268
4269         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4270
4271 2001-01-23  Andy Piper  <andy@xemacs.org>
4272
4273         * select.c (Fown_selection_internal): pass owned_p
4274
4275         * select-msw.c (mswindows_own_selection): New Signature.
4276
4277         * console.h (struct console_methods): add owned_p to
4278         _own_selection.
4279
4280         * select-x.c (x_own_selection): pass owned_p
4281         (hack_motif_clipboard_selection): use owned_p
4282         (vars_of_select_x): new variable -
4283         x_selection_strict_motif_ownership.
4284
4285 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4286
4287         * specifier.h (specifier_data_offset): Remove pointless parens.
4288         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4289
4290 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4291
4292         Make Lisp_Object sizeof methods be alignment-correct.
4293         pdump must restore objects to the same alignment as the C compiler
4294         assumes.  It really matters on SGIs.
4295         * lstream.c (aligned_sizeof_lstream): New.
4296         (sizeof_lstream): Use aligned_sizeof_lstream.
4297         (Lstream_new): Likewise.
4298         * opaque.c (aligned_sizeof_opaque): New.
4299         (sizeof_opaque): Use aligned_sizeof_opaque.
4300         (make_opaque): Likewise.
4301         * specifier.c (aligned_sizeof_specifier): New.
4302         (sizeof_specifier): Use aligned_sizeof_specifier.
4303         (make_specifier_internal): Likewise.
4304
4305 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4306
4307         * lstream.h (struct lstream): Use max_align_t for trailing data.
4308         * specifier.h (struct Lisp_Specifier): Likewise.
4309
4310 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4311
4312         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4313         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4314         (CCL_SUSPEND): Likewise.
4315         (CCL_INVALID_CMD): Likewise.
4316         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4317         (ccl_driver): Likewise.
4318         (CCL_WRITE_CHAR): Macro hygiene.
4319         (CCL_WRITE_STRING): Macro hygiene.
4320
4321 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4322
4323         Port "portable" dumper to SunOS 4 and HP-UX.
4324         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4325         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4326         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4327
4328 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4329
4330         * lisp.h (ALIGNOF): A better definition for C++.
4331
4332 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4333
4334         Macro hygiene.
4335         Fix printf warnings: int format, long int arg.
4336         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4337         (PUSH_FAILURE_POINT): Use correct printf formats.
4338         (POP_FAILURE_POINT): Use correct printf formats.  
4339         Use do {...} while (0)
4340
4341 2001-01-20  Martin Buchholz <martin@xemacs.org>
4342
4343         * XEmacs 21.2.42 "Poseidon" is released.
4344
4345 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4346
4347         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4348
4349 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4350
4351         De-kludgify FIXED_TYPE free list frobbing.
4352         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4353         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4354         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4355         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4356         * alloc.c (LRECORD_FREE_P): New.
4357         * alloc.c (MARK_LRECORD_AS_FREE): New.
4358         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4359         * alloc.c (STRUCT_FREE_P): Deleted.
4360         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4361         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4362         * alloc.c (STRING_CHARS_FREE_P): New.
4363         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4364         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4365         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4366         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4367         * alloc.c (resize_string): Use new definitions.
4368         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4369         * alloc.c (verify_string_chars_integrity): Use new definitions.
4370         * alloc.c (compact_string_chars): Use new definitions.
4371         * alloc.c: Update monster comments.
4372         * lrecord.h (lrecord_type): Add some new lrecord types for
4373         alloc.c's use.
4374
4375 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4376
4377         Improve alignment hackery.
4378         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4379         (max_align_t): Moved from opaque.h - general purpose.
4380         (ALIGN_PTR): Use size_t, not long.
4381         * opaque.h (max_align_t): Move to lisp.h.
4382
4383 2001-01-18  Norbert Koch  <nk@LF.net>
4384
4385         * gui.h: Fix and add prototypes to fix build problems.
4386
4387 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4388
4389         temacs is going away, so `dump-temacs' is now a bad name.
4390         * .dbxrc (dump-temacs): Rename to `dmp'.
4391         * .gdbinit (dump-temacs): Rename to `dmp'.
4392
4393 2001-01-17  Andy Piper  <andy@xemacs.org>
4394
4395         * glyphs.c (print_image_instance): comment to make martin happy.
4396
4397         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4398         change.
4399
4400         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4401         activation.
4402         (mswindows_tab_control_redisplay): warning suppression.
4403
4404         * glyphs-widget.c (widget_update): re-write to cope with updated
4405         items.
4406         (widget_instantiate): use new gui_item functions.
4407         (tab_control_update): deleted.
4408         (progress_gauge_update): deleted.
4409         (image_instantiator_progress_guage): take out update reference.
4410         (image_instantiator_tree_view): ditto.
4411         (image_instantiator_tab_control): ditto.
4412
4413         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4414         Right the new way.
4415         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4416         return whether anything was changed.
4417         (update_gui_item_keywords): as it sounds.
4418
4419         * gui.h: declare widget_gui_parse_item_keywords.
4420
4421         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4422         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4423
4424 2001-01-17  Martin Buchholz <martin@xemacs.org>
4425
4426         * XEmacs 21.2.41 "Polyhymnia" is released.
4427
4428 2001-01-16  Didier Verna  <didier@xemacs.org>
4429
4430         * glyphs.c (image_instantiate): don't use fallbacks when
4431         instantiating a face's background pixmap by inheritance.
4432
4433 2001-01-14  Mike Sperber <mike@xemacs.org>
4434
4435         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4436         Conditionalize accordingly.
4437
4438 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4439
4440         * dumper.c (pdump_file_get): Fix a compiler warning.
4441
4442 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4443
4444         Make Purify happy when pdumping.
4445         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4446         iniitalizing all bits of new lisp object memory.
4447         * symbols.c (Fmake_local_variable): Likewise.
4448         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4449         * symbols.c (Fdefvaralias): Likewise.
4450         * mule-charset.c (vars_of_mule_charset): Likewise.
4451
4452 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4453         Add the `-nd' flag when running pre-dump operations under the debugger.
4454         * .dbxrc (run-temacs): Add `-nd'.
4455         * .dbxrc (update-elc): Likewise.
4456         * .dbxrc (dump-temacs): Likewise.
4457         * .gdbinit (run-temacs): Likewise.
4458         * .gdbinit (check-temacs): Likewise.
4459         * .gdbinit (update-elc): Likewise.
4460         * .gdbinit (dump-temacs): Likewise.
4461
4462 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4463
4464         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4465         export OBJECT_MODE=64
4466         configure --pdump --use-union-type=no
4467         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4468         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4469
4470         * miscplay.c (sndcnv8U_2mono):
4471         Avoid two uses of `++' in the same expression.
4472         Suppresses a GCC warning.
4473
4474 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4475
4476         Make sure future compilers don't miscompile alloc.c.
4477         * alloc.c:
4478         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4479         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4480
4481 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4482
4483         * dumper.c: A little post-pdump-rename comment fixup.
4484
4485 2001-01-09  Jerry James  <james@eecs.ku.edu>
4486
4487         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4488
4489 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4490
4491         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4492         script:
4493         #!/bin/sh
4494         replace_symbol () {
4495           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4496         }
4497
4498         replace_symbol pdump_wire_lists pdump_weak_object_chains
4499         replace_symbol pdump_wire_list dump_add_weak_object_chain
4500
4501         replace_symbol pdump_wires pdump_root_objects
4502         replace_symbol pdump_wire dump_add_root_object
4503
4504         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4505         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4506
4507         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4508         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4509         replace_symbol dumpstructinfo pdump_root_struct_ptr
4510         replace_symbol dumpstruct dump_add_root_struct_ptr
4511
4512         replace_symbol dumpopaque dump_add_opaque
4513         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4514         replace_symbol dumpopaqueinfos pdump_opaques
4515         replace_symbol dumpopaqueinfo pdump_opaque
4516
4517         replace_symbol nb_structdump nb_root_struct_ptrs
4518         replace_symbol nb_opaquedump nb_opaques
4519
4520         replace_symbol align_table pdump_align_table
4521         replace_symbol dump_header pdump_header
4522
4523         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4524         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4525
4526
4527 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4528
4529         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4530         optimizing bytecount_to_charcount().
4531
4532 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4533
4534         * config.h.in:
4535         (HAVE_DLFCN_H): Removed.
4536         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4537
4538 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4539
4540         Portable dumper maintainability improvements.
4541         * alloc.c (staticpro):
4542         * alloc.c (staticpro_nodump):
4543         * alloc.c (garbage_collect_1):
4544         * alloc.c (reinit_alloc_once_early):
4545         * alloc.c (init_alloc_once_early):
4546         * alloc.c: Move dumper functions to alloc.c.
4547         * dumper.c (pdump_backtrace):
4548         * dumper.c (pdump_dump_structs):
4549         * dumper.c (pdump_dump_opaques):
4550         * dumper.c (pdump_dump_rtables):
4551         * dumper.c (pdump_dump_wired):
4552         * dumper.c (pdump):
4553         * dumper.c (pdump_load_check):
4554         * dumper.c (pdump_load_finish):
4555         * dumper.c (pdump_file_unmap):
4556         * dumper.c (pdump_file_get):
4557         * dumper.c (pdump_resource_free):
4558         * dumper.c (pdump_resource_get):
4559         * dumper.c (pdump_file_free):
4560         * dumper.c (pdump_file_try):
4561         * dumper.c (pdump_load):
4562         Remove fixed size limits on staticpro(), staticpro_nodump(),
4563         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4564         Remove custom code for dumping lrecord_implementations_table - use
4565         dumpopaque instead.
4566         Remove (most of the) custom code for dumping staticpros - dump it
4567         like any other dynarr.
4568
4569         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4570         * dumper.c: Moved functions from alloc.c.
4571         * alloc.c (dumpstruct): Moved to dumper.c.
4572         * alloc.c (dumpopaque): Likewise.
4573         * alloc.c (pdump_wire): Likewise.
4574         * alloc.c (pdump_wire_list): Likewise.
4575
4576         * lisp.h (Dynarr_sizeof): New.
4577         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4578         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4579         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4580
4581         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4582         * lisp.h (dumpopaque): ditto.
4583         * lisp.h (pdump_wire): ditto.
4584         * lisp.h (pdump_wire_list): ditto.
4585
4586 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4587
4588         * make-src-depend (PrintPatternDeps):
4589         Use `sort' to make output independent of perl version.
4590
4591 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4592
4593         Port to Netbsd 1.5.
4594         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4595         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4596
4597 2001-01-03  Didier Verna  <didier@xemacs.org>
4598
4599         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4600         that `focus_frame' is alive before thinking of calling
4601         `redisplay_redraw_cursor' on it.
4602
4603 2001-01-08  Martin Buchholz <martin@xemacs.org>
4604
4605         * XEmacs 21.2.40 is released.
4606
4607 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4608
4609         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4610
4611 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4612
4613         * alloc.c (dbg_valmask): Make const.
4614         * alloc.c (dbg_typemask): Make const.
4615         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4616         * alloc.c (dbg_valbits): Make const.
4617         * alloc.c (dbg_gctypebits): Make const.
4618
4619 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4620
4621         * redisplay-x.c (x_bevel_area):
4622         redisplay.h (struct rune):
4623         Typo fixes in comments.
4624
4625 2001-01-05  Andy Piper  <andy@xemacs.org>
4626
4627         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4628         adjustment.
4629
4630         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4631
4632 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4633
4634         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4635
4636         * mule-ccl.c (stack_idx_of_map_multiple):
4637         Non const global data must not be initialized!
4638         Found by MIYASHITA Hisashi.
4639
4640 2001-01-02  Andy Piper  <andy@xemacs.org>
4641
4642         * frame.c (change_frame_size): make sure frame size is always
4643         marked as changed.
4644
4645         * glyphs.c (image_instance_layout): minor code reuse.
4646
4647         * window.c (Fcurrent_window_configuration): revert previous
4648         change.
4649
4650 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4651
4652         * glyphs.h:
4653         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4654
4655 2000-12-31  Andy Piper  <andy@xemacs.org>
4656
4657         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4658         when widget gets unmapped.
4659
4660         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4661         function. Make sure widgets losing focus don't just drop it.
4662         (handle_focus_event_1): record the widget with focus.
4663
4664 2000-12-31  Andy Piper  <andy@xemacs.org>
4665
4666         * window.c (allocate_window): use
4667         make_image_instance_cache_hash_table.
4668         (make_dummy_parent): ditto.
4669         (Fset_window_configuration): ditto.
4670
4671         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4672
4673         * glyphs.c (process_image_string_instantiator): use
4674         INSTANTIATOR_TYPE.
4675         (get_image_instantiator_governing_domain): ditto.
4676         (normalize_image_instantiator): ditto.
4677         (instantiate_image_instantiator): ditto.
4678         (make_image_instance_1): ditto.
4679         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4680         (instantiator_eq_equal): new function for use with instance hash
4681         tables.
4682         (instantiator_eq_hash): ditto.
4683         (make_image_instance_cache_hash_table): create a suitable hash
4684         table for storing image instances.
4685
4686         * elhash.h (hash_table_weakness): new internal weakness type
4687         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4688         declare new functions.
4689
4690         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4691         another weakness type for glyphs.
4692         (make_standard_lisp_hash_table): new function split out from
4693         make_general_lisp_hash_table.
4694         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4695         (hash_table_instantiate): ditto.
4696         (Fmake_hash_table): ditto.
4697
4698 2000-12-31  Martin Buchholz <martin@xemacs.org>
4699
4700         * XEmacs 21.2.39 is released.
4701
4702 2000-12-29  Andy Piper  <andy@xemacs.org>
4703
4704         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4705
4706         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4707         the frame has changed so that we pick up geometry changes such as
4708         menubar visibility.
4709
4710 2000-12-28  Andy Piper  <andy@xemacs.org>
4711
4712         * lastfile.c (my_ebss): make a char array so we can pad the
4713         bss. Fixes cygwin unexec.
4714
4715         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4716
4717 2000-12-26  Andy Piper  <andy@xemacs.org>
4718
4719         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4720         comments and try and be more precise about a non-/SIGIO world.
4721         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4722         SIGIO.
4723
4724         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4725         we don't normalize to zero width or height.
4726
4727 2000-12-24  Andy Piper  <andy@xemacs.org>
4728
4729         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4730
4731 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4732
4733         * s/sco5.h: SCO 5 has pty support.
4734
4735 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4736
4737         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4738         input-method-xlib.c contains whole contents of input-method-xfs.c,
4739         so we can use input-method-xlib.c's code for USE_XFONTSET
4740         using #ifdefs.
4741         * input-method-xfs.c: removed.
4742
4743 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4744
4745         * file-coding.h (enum coding_category_type): reorder enumerators to
4746         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4747         (now one greater than largest real coding_category_type enumerator).
4748         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4749         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4750         Fcoding_category_list, Fset_coding_priority_list,
4751         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4752         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4753
4754 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4755
4756         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4757         * redisplay-output.c (redisplay_output_window): Clear top of window
4758         when face is changed.
4759         * redisplay-x.c (x_redraw_exposed_window): Call
4760         redisplay_clear_top_of_window.
4761         * redisplay.h: Publish redisplay_clear_top_of_window.
4762
4763 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4764
4765         * buffer.c (Fkill_buffer): Map over all devices.
4766         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4767         (list_windows): New function.
4768         (list_all_windows): Ditto.
4769         (Freplace_buffer_in_windows): Use them.
4770
4771 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4772
4773         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4774         (Fopen_database): Use `db_create' instead of `db_open'.
4775         (syms_of_database): Initialize Qqueue.
4776
4777 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4778
4779         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4780         buffer_local_face_property.
4781         * buffer.h (struct buffer): New member buffer_local_face_property.
4782         * window.c (Fset_window_buffer):  Mark window's face as changed
4783         when buffer has buffer local face.
4784         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4785         * objects.c (color_after_change): Set buffer_local_face_property
4786         when locale of face specifier is buffer.
4787         * objects.c (font_after_change): Ditto.
4788         * objects.c (face_boolean_after_change): Ditto.
4789         * glyphs.c (image_after_change): Ditto.
4790
4791 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4792
4793         * nt.c (mswindows_fstat): Report file permissions, volume serial
4794         number, etc. Code adapted from FSF Emacs 20.7.
4795
4796 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4797
4798         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4799         of stat when we don't have symbolic links, to make sure
4800         mswindows_stat is called on mswindows.
4801
4802 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4803
4804         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4805
4806 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4807
4808         * doprnt.c (emacs_doprnt_1): More printing fixes.
4809         Make printing of numbers compatible with libc and FSF Emacs.
4810         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4811         Use the system printf to do most of the hard work of formatting,
4812         instead of doprnt_1().
4813         Calculate memory to allocate for format string.
4814         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4815         (doprnt_1): Cleaner code and documentation.
4816
4817 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4818
4819         * Makefile.in.in: Use the loop variable to install headers.
4820
4821 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4822
4823         * window.c (Fsplit_window): Don't invalidate face cache.
4824
4825 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4826
4827         * minibuf.c (Fall_completions): Undo the previous change
4828         which removed checking elements start with space.
4829
4830 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4831
4832         * mule-canna.c: Didier suppression.
4833
4834 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4835
4836         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4837         (warning suppression).  Add English comment translations.
4838
4839 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4840
4841         * unexelfsgi.c (unexec): Better test for mmap failure.
4842
4843 2000-12-05  Martin Buchholz <martin@xemacs.org>
4844
4845         * XEmacs 21.2.38 is released.
4846
4847 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4848
4849         * redisplay.c (bar-cursor): Make a user variable.
4850
4851         * symsinit.h: Add init_postgresql_from_environment.
4852
4853 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4854
4855         * regex.c: Convert to clean C.
4856
4857 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4858
4859         * realpath.c:
4860         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4861         initialization.
4862         (sys_readlink): renamed to system_readlink to avoid conflict with
4863         the other sys_readlink.
4864
4865 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4866
4867         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4868
4869 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4870
4871         * postgresql.c (init_postgresql_from_environment): new function.
4872         (vars_of_postgresql): Move code initializing Lisp variables out and
4873         into init_postgresql_from_environment.
4874         emacs.c (main_1): Call init_postgresql_from_environment if and only
4875         if running a dumped XEmacs.
4876
4877 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4878
4879         * buffer.c: Make find-file-compare-truenames default to true on
4880         windows.
4881
4882         * realpath.c (win32_abs_start):
4883         (cygwin_readlink):
4884         (win32_readlink): New functions.
4885         (xrealpath): Return really real filenames on windows.
4886
4887         * fileio.c (Ffile_truename): Make file-truename work on windows.
4888
4889 2000-11-29  Didier Verna  <didier@xemacs.org>
4890
4891         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4892         * faces.c (update_face_cachel_data): use it.
4893         * faces.c (add_face_cachel): use it. Complete background pixmap
4894         frobbing in face cache if `update_face_cachel_data' has not done so.
4895
4896 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4897
4898         * search.c (string_match_1): Don't set last_thing_searched
4899         when search failed.
4900
4901 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4902
4903         * buffer.c: Include casetab.h
4904         (common_init_complex_vars_of_buffer): Use new case-table object.
4905         * buffer.h: Include casetab.h
4906         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4907         (DOWNCASE_TABLE_OF): Ditto.
4908         * bufslots.h: Remove char-tables and add case-table.
4909         * casetab.c: Include casetab.h
4910         (CASE_TABLE_P): Removed.
4911         (mark_case_table): New function.
4912         (allocate_case_table): New function.
4913         (Fcase_table_p): Use new case-table.
4914         (case_table_char): New function.
4915         (Fget_case_table): Ditto.
4916         (Fput_case_table): Ditto.
4917         (Fput_case_table_pair): Ditto.
4918         (Fcopy_case_table): Ditto.
4919         (Fcurrent_case_table): Return case-table.
4920         (Fstandard_case_table): Return case-table.
4921         (Fset_case_table): Fix doc-string.
4922         (set_case_table): Use case-table
4923         (syms_of_casetab): DEFSUBR new functions.
4924         (complex_vars_of_casetab): Set up standard case-table.
4925         * casetab.h: New file.
4926         * editfns.c: Include casetab.h
4927         (Fcompare_buffer_substrings): Use case-table.
4928         * inline.c: Include casetab.h
4929         * lisp.h: Remove bogus extern.
4930         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4931         * search.c: Include casetab.h
4932         (TRANSLATE_ASCII): Removed.
4933         (TRANSLATE): Unconditionally translate character.
4934         (looking_at_1): Use case-table.
4935         (string_match_1): Ditto.
4936         (fast_string_match): Ditto.
4937         (search_command): Ditto.
4938         (search_buffer): Separate boyer_moore.  Check whether
4939         boyer_moore is possible.
4940         (simple_search): New function.
4941         (boyer_moore): Separated from search_buffer. Translate char.
4942
4943 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4944
4945         * regex.c (RE_TR_ASCII): Removed.
4946         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4947         (PATFETCH): Call PATFETCH_RAW.
4948         (PATFETCH_RAW): Fetch Emchar.
4949         (PATUNFETCH): Decrement charptr.
4950         (GET_BUFFER_SPACE): Rename b to buf_end.
4951         (BUF_PUSH): Ditto.
4952         (BUF_PUSH_2): Ditto.
4953         (BUF_PUSH_3): Ditto.
4954         (EXTEND_BUFFER): Ditto.
4955         (SET_LIST_BIT): Ditto.
4956         (regex_compile): Ditto.  Translate non ASCII char.
4957         (compile_range): Ditto.
4958         (re_search_2): Ditto.
4959         (re_match_2_internal): Compare Emchar.
4960         (bcmp_translate): Ditto.
4961
4962 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4963
4964         * lisp.h (basic char/int typedefs):  comment improvement.
4965
4966 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4967
4968         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4969         unstomp inhibit_site_lisp.  Improve comments.
4970
4971 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4972
4973         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4974
4975 2000-11-28  Andy Piper  <andy@xemacs.org>
4976
4977         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4978         clipped display for windows in the gutter also.
4979         (redisplay_display_boxes_in_window_p): change semantics of return
4980         codes to be more intuitive.
4981
4982         * gutter.h: declare display_boxes_in_gutter_p.
4983
4984         * gutter.c (display_boxes_in_gutter_p): new function for
4985         redisplay.
4986
4987 2000-11-22  Andy Piper  <andy@xemacs.org>
4988
4989         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4990         autodetect domain.
4991
4992 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4993
4994         * callproc.c (Fold_call_process_internal):
4995         * gpm.c (Freceive_gpm_event):
4996         (tty_get_foreign_selection): Might be just warning supression.
4997         * fileio.c (Fwrite_region_internal):
4998         (Fset_visited_file_modtime):
4999         * keymap.c (event_matches_key_specifier_p):
5000         Initialize GCPROed variable.
5001
5002         * menubar-x.c (command_builder_find_menu_accelerator):
5003         Initialize before use.
5004
5005 2000-11-23  Andy Piper  <andy@xemacs.org>
5006
5007         * unexcw.c (unexec): make the resulting executable executable.
5008
5009 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5010
5011         * doc.c (get_doc_string):
5012         Use size_t, not int, for result of XSTRING_LENGTH.
5013
5014         * cmds.c (Fdelete_char):
5015         * cmds.c (Fpoint_at_eol):
5016         * cmds.c (Fself_insert_command):
5017         Use EMACS_INT, not int, for result of XINT.
5018         Someday, someone will want to insert more than 2**31 identical characters.
5019
5020         * cmds.c (Fdelete_char):
5021         * cmds.c (Fdelete_backward_char):
5022         * syntax.c (Fforward_word):
5023         * syntax.c (Fforward_comment):
5024         Make COUNT argument optional, for consistency with forward-char et al.
5025
5026 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5027
5028         * lisp.h:
5029         * print.c (long_to_string):
5030         Return a useful value: the pointer at end of data written.
5031
5032         * doprnt.c:
5033         Use `static const char * const' for constant strings.
5034         (union printf_arg): Delete `i', `ui' members.
5035         (get_doprnt_args):
5036         (emacs_doprnt_1):
5037         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5038         Do all printf-ing via the `l' specifier.
5039         Use EMACS_INT instead of int.
5040         Optimize.
5041
5042 2000-11-20  Didier Verna  <didier@xemacs.org>
5043
5044         * faces.c (update_face_cachel_data): don't frob the background
5045         pixmap when the window is being created. The face is needed but
5046         does not exist yet.
5047
5048 2000-11-20  Andy Piper  <andy@xemacs.org>
5049
5050         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5051         messing with a debug environment.
5052
5053 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5054
5055         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5056
5057 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5058
5059         * casetab.c (Fcase_table_p): Fix compile error and crash.
5060
5061 2000-11-18  Philip Aston  <philipa@mail.com>
5062
5063         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5064
5065 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5066
5067         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5068         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5069
5070 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5071
5072         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5073         * unexelf.c: Use HAVE_ELF_H.
5074         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5075         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5076         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5077         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5078         for testing.
5079         So this is an unexelfsgi.c from a different line of development.
5080
5081 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5082
5083         * regex.c (RE_TR_ASCII): New function.
5084         (RE_TRANSLATE): Call it.
5085
5086 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5087
5088         * buffer.h (TRT_TABLE_OF): Remove assert.
5089         (IN_TRT_TABLE_DOMAIN): Removed.
5090
5091 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5092
5093         * free-hook.c (log_gcpro):
5094         (show_gcprohist): Add support for GCPRO5.
5095
5096 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5097
5098         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5099
5100 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5101
5102         * symeval.h: Declare flush_all_buffer_local_cache.
5103
5104         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5105         (flush_buffer_local_cache): Added.
5106         (flush_all_buffer_local_cache): Added.
5107
5108         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5109
5110         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5111         (pdump_dump_data): Ditto.
5112         (pdump_reloc_one): Ditto.
5113         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5114         before dumping.
5115
5116
5117 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5118
5119         * buffer.c: Remove if 0'ed entry.
5120         * buffer.h: Rewrite TRT to use char-table.
5121         * bufslots.h: Remove mirror tables.
5122         * casetab.c: Remove mirror tables.
5123         (CASE_TABLE_P): New macro.
5124         (Fcase_table_p): Element of a case table is string or char-table.
5125         (make_mirror_trt_table): Removed.
5126         (set_case_table): Setup char-table from strings for backward
5127         compatibility.
5128         * dired.c (Fdirectory_files):
5129         * dired-msw.c: (mswindows_get_files):
5130         * lisp.h: Change prototype of re_pattern_buffer.
5131         * regex.c: (RE_TRANSLATE): New macro.
5132         (TRANSLATE_P): Ditto.
5133         Change translate to type RE_TRANSLATE_TYPE.
5134         * regex.h: Define RE_TRANSLATE_TYPE
5135         * search.c (TRANSLATE): New macro.
5136         (TRANSLATE_ASCII): New macro.
5137         Translate table is changed to Lisp_Object.
5138         (signal_failure): Inhibit return.
5139
5140 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5141
5142         * device-msw.c:
5143         * eldap.c:
5144         * event-Xt.c:
5145         * event-stream.c:
5146         * print.c:
5147         Do UNGCPRO before return.
5148
5149 2000-11-14  Martin Buchholz <martin@xemacs.org>
5150
5151         * XEmacs 21.2.37 is released.
5152
5153 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5154
5155         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5156         Add comments about discarded return value.
5157
5158 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5159
5160         * callint.c:
5161         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5162
5163 2000-10-27  Andy Piper  <andy@xemacs.org>
5164
5165         * gutter.c (Fset_default_gutter_position): default left and right
5166         gutters to visible.
5167         (calculate_gutter_size): calculate resonable heuristic for left
5168         and right gutter sizes.
5169         (specifier_vars_of_gutter): change left and right gutter sizes to
5170         autodetect.
5171         (calculate_gutter_size_from_display_lines): new function.
5172         (output_gutter): check for resizing on left and right gutters.
5173         (clear_gutter): don't special case top and left gutters.
5174         (specifier_vars_of_gutter): use new signature for
5175         set_specifier_caching.
5176
5177         * glyphs-x.c (x_redisplay_widget): spelling fix.
5178         * glyphs.c (specifier_vars_of_glyphs):
5179         * menubar.c (specifier_vars_of_menubar):
5180         * redisplay.c (specifier_vars_of_redisplay):
5181         * toolbar.c (specifier_vars_of_toolbar):
5182         * window.c (specifier_vars_of_window):
5183         * scrollbar.c (specifier_vars_of_scrollbar):
5184         (complex_vars_of_scrollbar): use new signature for
5185         set_specifier_caching.
5186
5187         * specifier.c (set_specifier_caching): include recompute flag.
5188         (recompute_one_cached_specifier_in_window): always recompute if
5189         flag set.
5190         (recompute_one_cached_specifier_in_frame): ditto.
5191
5192         * specifier.h (struct specifier_caching): add recompute flag.
5193
5194 2000-10-24  Andy Piper  <andy@xemacs.org>
5195
5196         * unexcw.c (copy_executable_and_dump_data_section): add new
5197         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5198         5.0 happy.
5199
5200 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5201
5202         * console-x.h (x_device): New member modifier_release_time.
5203         * event-Xt.c (x_handle_sticky_modifiers):
5204         Bound interval modifier keys are sticky.
5205         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5206         * events.h: extern it.
5207
5208 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5209
5210         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5211
5212 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5213
5214         * event-stream.c (execute_command_event): Preserve current_events
5215         and the like when event is misc-user-event.
5216         Inhibit quit during the call to maybe_echo_keys.
5217
5218 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5219
5220         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5221         symlink when buffer is killed.
5222         (inhibit_clash_detection): New variable.
5223
5224 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5225
5226         * console.c (Fset_input_method): Trigger redisplay on tty.
5227
5228 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5229
5230         * process.c (Fprocess_status): Revert to previous behavior:
5231         (process-status "nosuchprocess") ==> nil
5232
5233 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5234
5235         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5236         Work around another GCC 2.95.2 optimizer bug.
5237
5238 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5239
5240         * process.c (Fget_process): Use LIST_LOOP_2.
5241         (kill_buffer_processes): Use LIST_LOOP_2.
5242
5243         * minibuf.c (Fall_completions):
5244         Delete old non-functional code for FSF fourth argument.
5245
5246         * frame.c (frame_matches_frame_spec):
5247         Renamed from `frame_matches_frametype'.  Update all callers.
5248         (device_matches_device_spec):
5249         Renamed from 'device_matches_console_spec'.  Update all callers.
5250
5251         * doc.c (Fsubstitute_command_keys):
5252         Remove buffer overflow crash.  Small code cleanups.
5253
5254         * casetab.c (check_case_table): Simpler code.
5255
5256         * window.c (Freplace_buffer_in_windows):
5257         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5258         (and similar implementation) as Fdelete_windows_on.
5259         Update all callers.
5260
5261         * alloc.c (Fmake_list):
5262         * alloc.c (make_vector):
5263         * alloc.c (Fmake_vector):
5264         * alloc.c (make_bit_vector):
5265         * alloc.c (Fmake_bit_vector):
5266         * alloc.c (Fbit_vector):
5267         * alloc.c (Fmake_string):
5268         * alloc.c (Fpurecopy):
5269         * alloc.c (Fmemory_limit):
5270         * buffer.c:
5271         * buffer.c (Fget_buffer):
5272         * buffer.c (Fkill_buffer):
5273         * buffer.c (complex_vars_of_buffer):
5274         * bytecode.c (Fcompiled_function_stack_depth):
5275         * callint.c (Fprefix_numeric_value):
5276         * event-stream.c:
5277         * event-stream.c (Fread_key_sequence):
5278         * casetab.c:
5279         * casetab.c (Fcase_table_p):
5280         * casetab.c (check_case_table):
5281         * casetab.c (Fset_case_table):
5282         * casetab.c (Fset_standard_case_table):
5283         * chartab.c:
5284         * chartab.c (Fchar_table_type):
5285         * chartab.c (Freset_char_table):
5286         * chartab.c (Fget_char_table):
5287         * chartab.c (Fget_range_char_table):
5288         * chartab.c (Fput_char_table):
5289         * chartab.c (Fmap_char_table):
5290         * chartab.c (Fcategory_table_p):
5291         * chartab.c (Fcheck_category_at):
5292         * chartab.c (Fchar_in_category_p):
5293         * chartab.c (Fcategory_table):
5294         * chartab.c (Fcopy_category_table):
5295         * chartab.c (Fset_category_table):
5296         * chartab.c (Fcategory_designator_p):
5297         * chartab.c (Fcategory_table_value_p):
5298         * cmds.c (Fdelete_char):
5299         * cmds.c (Fdelete_backward_char):
5300         * cmds.c (Fself_insert_command):
5301         * cmds.c (Fself_insert_internal):
5302         * console.c (Fvalid_console_type_p):
5303         * console.c (Fcdfw_console):
5304         * console.c (Fconsole_type):
5305         * console.c (Fconsole_name):
5306         * console.c (Fconsole_device_list):
5307         * console.c (Fconsole_on_window_system_p):
5308         * data.c:
5309         * data.c (Feq):
5310         * data.c (Fold_eq):
5311         * data.c (Fsubr_interactive):
5312         * data.c (Fchar_to_int):
5313         * data.c (Fint_to_char):
5314         * data.c (Fsetcar):
5315         * data.c (Fsetcdr):
5316         * data.c (Fnumber_to_string):
5317         * data.c (Fstring_to_number):
5318         * data.c (Frem):
5319         * database.c (mark_database):
5320         * database.c (finalize_database):
5321         * database.c (Fdatabase_live_p):
5322         * database.c (Fdatabasep):
5323         * device-x.c (Fx_get_resource):
5324         * device.c (Fdfw_device):
5325         * dired.c:
5326         * dired.c (Ffile_name_completion):
5327         * dired.c (Ffile_name_all_completions):
5328         * dired.c (Fuser_name_completion):
5329         * dired.c (Fuser_name_completion_1):
5330         * dired.c (Fuser_name_all_completions):
5331         * doc.c (Fdocumentation):
5332         * doc.c (Fdocumentation_property):
5333         * doc.c (Fsubstitute_command_keys):
5334         * editfns.c:
5335         * editfns.c (Fchar_to_string):
5336         * editfns.c (Fstring_to_char):
5337         * editfns.c (Ftemp_directory):
5338         * editfns.c (Finsert_char):
5339         * editfns.c (Fbuffer_substring_no_properties):
5340         * editfns.c (Fnarrow_to_region):
5341         * editfns.c (Fchar_equal):
5342         * editfns.c (Fchar_Equal):
5343         * editfns.c (Ftranspose_regions):
5344         * emacs.c (Fdump_emacs):
5345         * eval.c (Fthrow):
5346         * eval.c (Fcommand_execute):
5347         * eval.c (Fautoload):
5348         * eval.c (Fbacktrace):
5349         * eval.c (Fbacktrace_frame):
5350         * events.c:
5351         * events.c (Fcopy_event):
5352         * events.c (Fcharacter_to_event):
5353         * events.c (Fevent_button):
5354         * events.c (Fevent_process):
5355         * extents.c:
5356         * extents.c (Fnext_extent_change):
5357         * extents.c (Fextent_property):
5358         * faces.c (Ffacep):
5359         * faces.c (Fmake_face):
5360         * file-coding.c:
5361         * file-coding.c (Fencode_shift_jis_char):
5362         * file-coding.c (Fencode_big5_char):
5363         * fileio.c (Ffile_name_directory):
5364         * fileio.c (Ffile_name_nondirectory):
5365         * fileio.c (Ffile_name_as_directory):
5366         * fileio.c (Fdirectory_file_name):
5367         * fileio.c (Ffile_truename):
5368         * fileio.c (Fsubstitute_in_file_name):
5369         * fileio.c (Ffile_modes):
5370         * fileio.c (Fset_file_modes):
5371         * fileio.c (Fset_default_file_modes):
5372         * fileio.c (Fverify_visited_file_modtime):
5373         * floatfns.c (Facos):
5374         * floatfns.c (Fasin):
5375         * floatfns.c (Fatan):
5376         * floatfns.c (Fcos):
5377         * floatfns.c (Fsin):
5378         * floatfns.c (Ftan):
5379         * floatfns.c (Fbessel_j0):
5380         * floatfns.c (Fbessel_j1):
5381         * floatfns.c (Fbessel_jn):
5382         * floatfns.c (Fbessel_y0):
5383         * floatfns.c (Fbessel_y1):
5384         * floatfns.c (Fbessel_yn):
5385         * floatfns.c (Ferf):
5386         * floatfns.c (Ferfc):
5387         * floatfns.c (Flog_gamma):
5388         * floatfns.c (Fexp):
5389         * floatfns.c (Fexpt):
5390         * floatfns.c (Flog):
5391         * floatfns.c (Flog10):
5392         * floatfns.c (Fsqrt):
5393         * floatfns.c (Fcube_root):
5394         * floatfns.c (Facosh):
5395         * floatfns.c (Fasinh):
5396         * floatfns.c (Fatanh):
5397         * floatfns.c (Fcosh):
5398         * floatfns.c (Fsinh):
5399         * floatfns.c (Ftanh):
5400         * floatfns.c (Fabs):
5401         * floatfns.c (Ffloat):
5402         * floatfns.c (Flogb):
5403         * floatfns.c (Fceiling):
5404         * floatfns.c (Ffloor):
5405         * floatfns.c (Fround):
5406         * floatfns.c (Ftruncate):
5407         * floatfns.c (Ffceiling):
5408         * floatfns.c (Fffloor):
5409         * floatfns.c (Ffround):
5410         * floatfns.c (Fftruncate):
5411         * fns.c (Fstring_equal):
5412         * fns.c (Fstring_lessp):
5413         * fns.c (concat2):
5414         * fns.c (concat3):
5415         * fns.c (vconcat2):
5416         * fns.c (vconcat3):
5417         * fns.c (Fsubstring):
5418         * fns.c (Fassoc):
5419         * fns.c (Fold_assoc):
5420         * fns.c (assoc_no_quit):
5421         * fns.c (Fassq):
5422         * fns.c (Fold_assq):
5423         * fns.c (assq_no_quit):
5424         * fns.c (Frassoc):
5425         * fns.c (Fold_rassoc):
5426         * fns.c (Frassq):
5427         * fns.c (Fold_rassq):
5428         * fns.c (rassq_no_quit):
5429         * fns.c (Fremassoc):
5430         * fns.c (remassoc_no_quit):
5431         * fns.c (Fremassq):
5432         * fns.c (remassq_no_quit):
5433         * fns.c (Fremrassoc):
5434         * fns.c (Fremrassq):
5435         * fns.c (remrassq_no_quit):
5436         * fns.c (Fsort):
5437         * fns.c (Fplist_get):
5438         * fns.c (Fplist_put):
5439         * fns.c (Fplist_remprop):
5440         * fns.c (Fplist_member):
5441         * fns.c (Flax_plist_get):
5442         * fns.c (Flax_plist_put):
5443         * fns.c (Flax_plist_remprop):
5444         * fns.c (Flax_plist_member):
5445         * fns.c (Fequal):
5446         * fns.c (Fold_equal):
5447         * fns.c (Frequire):
5448         * fns.c (Fbase64_encode_region):
5449         * fns.c (Fbase64_encode_string):
5450         * fns.c (Fbase64_decode_region):
5451         * frame.c:
5452         * frame.c (frame_matches_frame_spec):
5453         * frame.c (device_matches_device_spec):
5454         * frame.c (next_frame):
5455         * frame.c (previous_frame):
5456         * frame.c (Fnext_frame):
5457         * frame.c (Fprevious_frame):
5458         * frame.c (Fframe_property):
5459         * frame.c (Fset_frame_height):
5460         * frame.c (Fset_frame_size):
5461         * frame.h:
5462         * glyphs.c:
5463         * glyphs.c (if):
5464         * glyphs.c (decode_error_behavior_flag):
5465         * glyphs.c (Fmake_image_instance):
5466         * indent.c (Findent_to):
5467         * intl.c (Fignore_defer_gettext):
5468         * keymap.c (Fkeymapp):
5469         * keymap.c (Flookup_key):
5470         * lread.c:
5471         * lread.c (Fload_internal):
5472         * lread.c (Feval_buffer):
5473         * lread.c (Feval_region):
5474         * macros.c (Fexecute_kbd_macro):
5475         * marker.c (set_marker_internal):
5476         * marker.c (Fset_marker):
5477         * marker.c (set_marker_restricted):
5478         * marker.c (Fcopy_marker):
5479         * marker.c (noseeum_copy_marker):
5480         * menubar.c:
5481         * menubar.c (Fpopup_menu):
5482         * minibuf.c:
5483         * mule-charset.c (Fcharset_name):
5484         * mule-charset.c (Fchar_charset):
5485         * mule-charset.c (Fchar_octet):
5486         * mule-charset.c (Fsplit_char):
5487         * mule-wnnfns.c (Fwnn_open):
5488         * mule-wnnfns.c (Fwnn_dict_comment):
5489         * mule-wnnfns.c (Fwnn_quit_henkan):
5490         * mule-wnnfns.c (Fwnn_word_toroku):
5491         * mule-wnnfns.c (Fwnn_word_sakujo):
5492         * mule-wnnfns.c (Fwnn_word_use):
5493         * mule-wnnfns.c (Fwnn_hindo_set):
5494         * objects.c:
5495         * objects.c (Fmake_color_instance):
5496         * objects.c (Fmake_font_instance):
5497         * print.c (Fwrite_char):
5498         * process.c:
5499         * process.c (mark_process):
5500         * process.c (print_process):
5501         * process.c (get_process_from_usid):
5502         * process.c (Fprocessp):
5503         * process.c (Fprocess_live_p):
5504         * process.c (Fget_process):
5505         * process.c (Fget_buffer_process):
5506         * process.c (get_process):
5507         * process.c (Fprocess_id):
5508         * process.c (Fprocess_name):
5509         * process.c (Fprocess_command):
5510         * process.c (init_process_io_handles):
5511         * process.c (start_process_unwind):
5512         * process.c (Fstart_process_internal):
5513         * process.c (Fopen_multicast_group_internal):
5514         * process.c (Fset_process_window_size):
5515         * process.c (read_process_output):
5516         * process.c (send_process):
5517         * process.c (Fprocess_tty_name):
5518         * process.c (Fset_process_buffer):
5519         * process.c (Fprocess_buffer):
5520         * process.c (Fprocess_mark):
5521         * process.c (set_process_filter):
5522         * process.c (Fset_process_filter):
5523         * process.c (Fprocess_filter):
5524         * process.c (Fprocess_send_region):
5525         * process.c (Fprocess_send_string):
5526         * process.c (exec_sentinel):
5527         * process.c (Fset_process_sentinel):
5528         * process.c (Fprocess_sentinel):
5529         * process.c (status_notify):
5530         * process.c (Fprocess_status):
5531         * process.c (Fprocess_exit_status):
5532         * process.c (process_send_signal):
5533         * process.c (Fprocess_send_eof):
5534         * process.c (deactivate_process):
5535         * process.c (remove_process):
5536         * process.c (Fdelete_process):
5537         * process.c (kill_buffer_processes):
5538         * process.c (Fprocess_kill_without_query):
5539         * process.c (Fprocess_kill_without_query_p):
5540         * rangetab.c:
5541         * rangetab.c (Fget_range_table):
5542         * rangetab.c (Fput_range_table):
5543         * rangetab.c (Fremove_range_table):
5544         * rangetab.c (Fclear_range_table):
5545         * search.c:
5546         * search.c (Fskip_chars_forward):
5547         * search.c (Fskip_chars_backward):
5548         * search.c (Fskip_syntax_forward):
5549         * search.c (Fskip_syntax_backward):
5550         * search.c (search_command):
5551         * search.c (Freplace_match):
5552         * search.c (Fregexp_quote):
5553         * select.c (Fown_selection_internal):
5554         * select.c (Fselection_owner_p):
5555         * select.c (Fselection_exists_p):
5556         * select.c (Fget_selection_internal):
5557         * specifier.c:
5558         * symbols.c:
5559         * symbols.c (Fintern):
5560         * symbols.c (Fintern_soft):
5561         * symbols.c (Funintern):
5562         * symbols.c (Fapropos_internal):
5563         * symbols.c (Fset_default):
5564         * syntax.c:
5565         * syntax.c (Fsyntax_table_p):
5566         * syntax.c (Fcopy_syntax_table):
5567         * syntax.c (Fset_syntax_table):
5568         * syntax.c (Fchar_syntax):
5569         * syntax.c (syntax_match):
5570         * syntax.c (Fmatching_paren):
5571         * syntax.c (Fforward_word):
5572         * syntax.c (scan_lists):
5573         * syntax.c (Fscan_lists):
5574         * syntax.c (Fscan_sexps):
5575         * syntax.c (Fparse_partial_sexp):
5576         * toolbar.c (Fcheck_toolbar_button_syntax):
5577         * tooltalk.doc:
5578         * window.c:
5579         * window.c (Fwindowp):
5580         * window.c (Fwindow_live_p):
5581         * window.c (Fwindow_point):
5582         * window.c (Fdelete_window):
5583         * window.c (Fnext_window):
5584         * window.c (Fprevious_window):
5585         * window.c (Fother_window):
5586         * window.c (window_loop):
5587         * window.c (Fget_lru_window):
5588         * window.c (Fsplit_window):
5589         * window.c (Fenlarge_window):
5590         * window.c (Fenlarge_window_pixels):
5591         * window.c (Fshrink_window):
5592         * window.c (Fshrink_window_pixels):
5593         * window.c (change_window_height):
5594         * window.c (Fwindow_configuration_p):
5595         * window.c (Fcurrent_window_configuration):
5596         * window.h:
5597         * casefiddle.c (casify_object):
5598         * casefiddle.c (Fupcase):
5599         * casefiddle.c (Fdowncase):
5600         * casefiddle.c (Fcapitalize):
5601         * casefiddle.c (Fupcase_initials):
5602         * casefiddle.c (casify_region_internal):
5603         * casefiddle.c (casify_region):
5604         * casefiddle.c (Fupcase_region):
5605         * casefiddle.c (Fdowncase_region):
5606         * casefiddle.c (Fcapitalize_region):
5607         * casefiddle.c (Fupcase_initials_region):
5608         * casefiddle.c (Fupcase_word):
5609         * casefiddle.c (Fdowncase_word):
5610         * casefiddle.c (Fcapitalize_word):
5611         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5612         Replace 0 with '\0' when working with bytes.
5613         Replace initial "(" with "\(" in docstrings.
5614
5615 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5616
5617         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5618
5619         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5620
5621 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5622
5623         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5624
5625 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5626
5627         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5628         correctly.
5629
5630 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5631
5632         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5633         (inhibit_auto_save_session): New variable.
5634         (vars_of_fileio): Declare and initialize them.
5635         * fileio.c (Fdo_auto_save): Don't create session file if
5636         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5637
5638 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5639
5640         * sgiplay.c (play_internal): C++ compilability.
5641         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5642         * callproc.c (Fold_call_process_internal):
5643         Remove unused vars `env', `first'.
5644         * scrollbar.c (update_scrollbar_instance):
5645         #### unused var `current_window'.
5646         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5647         etc. within #ifdef NOT_YET.
5648         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5649         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5650         * specifier.c (specifier_instance):
5651         #### unused var `tag'.
5652         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5653
5654 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5655
5656         * fns.c (Fbutlast):
5657         * fns.c (list_sort):
5658         * fns.c (Ffillarray):
5659         * fns.c (bytecode_nconc2):
5660         * fns.c (Fnconc):
5661         * fns.c (mapcar1):
5662         * fns.c (Fmapconcat):
5663         Be pedantically 64-bit correct.  For the time when someone will
5664         want to have a list with length > 2**32.
5665
5666         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5667         Work around MIPSpro compiler bug.
5668
5669         * process-unix.c (unix_kill_child_process): Add snarky comment.
5670         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5671
5672         * config.h.in: Oops, _getpt ==> _getpty
5673
5674 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5675
5676         * config.h.in:
5677         * regex.c:
5678         Use void*, not char*, as return type of alloca().
5679
5680         * alloc.c (free_marker): Side effect inside assert expression!
5681
5682 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5683
5684         * mule-charset.c (Fset_charset_ccl_program): To check
5685         if the given ccl program is valid, use setup_ccl_program()
5686         instead of CHECK_VECTOR().
5687         (Fmake_charset): Likewise.
5688
5689 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5690
5691         * faces.c (get_extent_fragment_face_cache_index):
5692         Fix cachel.merged_faces memory leak.
5693
5694 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5695
5696         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5697         Reset MSB of octets obtained by DECODE_SJIS
5698         because of the incompatibility with Emacs.
5699         (ccl_driver)<CCL_ENCODE_SJIS>:
5700         Set MSB of octets before passing them to
5701         ENCODE_SJIS because of the incompatibility
5702         with Emacs.
5703
5704 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5705
5706         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5707         (DECLARE_LRECORD): Undo the last change.
5708         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5709
5710 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5711
5712         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5713         the implementation to lrecord_implementations_table.
5714
5715 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5716
5717         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5718         initial value of `lrecord_type_##c_name' and
5719         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5720         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5721         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5722         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5723         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5724
5725 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5726
5727         * miscplay.c (sndcnv8S_2mono):
5728         (sndcnv2monounsigned):
5729         (sndcnvULaw_2linear):
5730         (sndcnv16swap):
5731         Remove implementation-defined behavior.
5732
5733 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5734
5735         * input-method-xlib.c: Warning suppression.
5736
5737 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5738
5739         * mule-ccl.c: Sync up with Emacs 21.0.90.
5740         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5741         Do nothing.
5742         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5743         Likewise.
5744         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5745         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5746         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5747         leading char belongs to official 2-dimensional charset.
5748         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5749         write the given character as is.  Otherwise,
5750         if it is a multibyte char, convert it by
5751         non_ascii_set_charptr_emchar, then write it.
5752         (CCL_WRITE_STRING): Likewise.
5753         (ccl_get_compiled_code): New function.
5754         (setup_ccl_program): When ccl_prog is invalid,
5755         return -1.
5756         (Fregister_code_conversion_map): New function.
5757         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5758
5759         * mule-ccl.h: Sync up with Emacs 21.0.90.
5760         (Fregister_ccl_program): export it.
5761
5762         * redisplay-msw.c (separate_textual_runs):
5763         If ccl program is not valid, don't do ccl conversion.
5764
5765         * redisplay-x.c (separate_textual_runs): Ditto.
5766
5767         * file-coding.c (Fmake_coding_system):
5768         When type is ccl and value is vector, register it
5769         with a proper symbol.  And checks whether the
5770         given ccl program is valid.
5771         (mule_decode): When calling ccl_driver, if src indicates
5772         NULL pointer, set an empty string instead.
5773         (mule_encode): Likewise.
5774
5775 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5776
5777         The following large batch of changes gets us back to a state of
5778         C++ compilability.  Extbyte is now a char, which means that
5779         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5780
5781         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5782
5783         * sound.c (Fplay_sound): Type correctness.
5784
5785         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5786         (x_get_window_property): Type correctness.
5787         (receive_incremental_selection): unsigned char ==> Extbyte
5788         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5789         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5790         (Fx_store_cutbuffer_internal): Type correctness.
5791
5792         * process-unix.c (try_to_initialize_subtty): Type correctness.
5793
5794         * objects-x.c (x_print_color_instance): Type correctness.
5795         (x_print_font_instance): Type correctness.
5796         (x_list_fonts): SExtbyte ==> Extbyte.
5797         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5798         (x_find_charset_font): SExtbyte ==> Extbyte.
5799         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5800         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5801         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5802         Use bufbyte_strcmp.
5803
5804         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5805         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5806         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5807         (BYTE_C0_P): Use bit ops for char-signedness safety.
5808         (BYTE_C1_P): Use bit ops for char-signedness safety.
5809         (CHARSET_BY_LEADING_BYTE):
5810         (CHARSET_BY_ATTRIBUTES):
5811         Always use inline function.
5812         Use type_checking_assert.
5813         Hide chlook.
5814
5815         * mule-charset.c (non_ascii_charptr_copy_char):
5816         Modify to work with both ASCII and non-ASCII characters.
5817         Improve docs and variable names.
5818         Replace over-clever fall-through switch with a simple loop.
5819         (Lstream_get_emchar_1):
5820         Replace over-clever fall-through switch with a simple loop.
5821
5822         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5823         Warning suppression.
5824
5825         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5826         the return value of Lstream_getc, which could be EOF as well.
5827
5828         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5829
5830         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5831         APIs can be used on Extbytes without casts.  Risky!
5832         (SExtbyte): Remove.
5833         (UExtbyte): Remove.
5834
5835         * input-method-xlib.c (XIM_init_device):
5836         Use Xlib.h instead of IntrinsicP.h.
5837         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5838         which will break in X11R7.
5839         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5840         to call XRegisterIMInstantiateCallback with correct types.
5841
5842         * gui-x.c (button_item_to_widget_value): Type correctness.
5843
5844         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5845
5846         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5847         (xbm_instantiate_1): Type correctness.
5848         (BUILD_GLYPH_INST):  Type correctness.
5849
5850         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5851
5852         * file-coding.c:
5853         (decode_coding_sjis):
5854         (decode_coding_big5):
5855         (decode_coding_ucs4):
5856         (decode_coding_utf8):
5857         (decode_coding_iso2022):
5858         (decode_coding_no_conversion):
5859         Make all decoding functions take an Extbyte * arg.
5860         (encode_coding_sjis):
5861         (encode_coding_big5):
5862         (encode_coding_ucs4):
5863         (encode_coding_utf8):
5864         (encode_coding_iso2022):
5865         (encode_coding_no_conversion):
5866         Make all encoding functions take a Bufbyte * arg.
5867         Use size_t instead of unsigned int for memory sizes.
5868         Only cast to unsigned char whenever dereferencing Extbyte *.
5869
5870         * doc.c (unparesseuxify_doc_string): Type correctness.
5871
5872         * console-x.c (split_up_display_spec):
5873         Rewrite without using details of internal string representation.
5874         (x_semi_canonicalize_device_connection): Type correctness.
5875
5876         * config.h.in:
5877         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5878         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5879         (HAVE_XFREE386): Removed.
5880
5881         * buffer.h (DEC_CHARPTR): `const' correctness.
5882         (bufbyte_strcmp): New.
5883         (bufbyte_memcmp): New.
5884
5885         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5886
5887         * buffer.h (XCHAR_OR_CHAR_INT):
5888         Always use inline function.
5889         Remove redundant type checking assert() - XINT will abort quite nicely.
5890
5891 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5892
5893         * search.c (Freplace_match): Set newtext to an empty string.
5894
5895 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5896
5897         * s/decosf1-3.h: Remove #include of stropts.h
5898         * s/ptx.h: Remove #include of stropts.h
5899         * s/usg5-4.h: Remove #include of stropts.h
5900         * sysproc.h:
5901         * config.h.in:
5902         Use stropts.h, not sys/stropts.h.
5903         Use strtio.h, not sys/strtio.h.
5904
5905 2000-10-04  Martin Buchholz <martin@xemacs.org>
5906
5907         * XEmacs 21.2.36 is released.
5908
5909 2000-09-21  Andy Piper  <andy@xemacs.org>
5910
5911         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5912         changes still involve copying the widget tree.
5913         (update_widget_face): make sure a change is register in the widget
5914         tree. Call update_tab_widget_face appropriately.
5915         (update_tab_widget_face): ditto.
5916         (x_tab_control_redisplay): make sure non-structural changes still
5917         involve copying the widget tree.
5918
5919 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5920
5921         * lread.c (locate_file): Check the path element is non-nil.
5922
5923 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5924
5925         * lisp.h: Warning suppression for SCO compilers.
5926
5927         * redisplay-tty.c (reset_tty_modes): Fix crash.
5928         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5929
5930 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5931
5932         Big signal/process handling overhaul.  Bugs fixed:
5933         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5934         M-x comint-kill-subjob should work for both values nil and t of
5935         process-connection-type. It was broken on most platforms.
5936         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5937         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5938         * process-unix.c: Signal/Process handling overhaul.
5939         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5940         (allocate_pty): Use all available modern methods of allocating
5941         ptys, falling back to old style BSD allocation as a last resort.
5942         Use allegedly more secure Unix98 pty allocation by default.
5943         (allocate_pty_the_old_fashioned_way): New. the last resort.
5944         (unix_create_process): Push ptem, ldterm, ttcompat where
5945         available.  Autoconfiscate.
5946         (try_to_initialize_subtty): New.
5947         (unix_kill_child_process): Proper signal handling for ptys on most
5948         platforms, using special knowledge of AIX, BSD, etc...
5949         (unix_create_process): Always disconnect_controlling_terminal() for
5950         subprocesses, whether using ptys or not.
5951         * process.h: Remove old getpt-dependent PTY code.
5952         * process.c (Fprocess_send_signal): New, obvious generic function.
5953         (decode_signal): New.
5954         (Finterrupt_process):
5955         (Fkill_process):
5956         (Fquit_process):
5957         (Fstop_process):
5958         (Fcontinue_process):
5959         (Fsignal_process): Use decode_signal.
5960         (process_send_signal):
5961         Many docstring corrections.
5962         Allow any signal to be sent to a process object.
5963         * config.h.in: Add symbols for big signal/process overhaul.
5964         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5965         * sysproc.h: Include process-related headers, where available:
5966         sys/stropts.h sys/strtio.h pty.h libutil.h
5967         * s/irix4-0.h:
5968         * s/irix5-0.h:
5969         * s/cygwin32.h:
5970         * s/gnu.h:
5971         * s/linux.h:
5972         * s/hpux.h:
5973         * s/aix3-1.h:
5974         Remove old S&M pty stuff.
5975         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5976         * systty.h: Simplify cpp hackery, improve comments.
5977         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5978
5979         * editfns.c (Fformat_time_string):
5980         Be a little more paranoid with the return value of ctime.
5981
5982         * fileio.c (check_executable):
5983         (check_writable):
5984         Use symbolic constants X_OK, W_OK.
5985
5986         * console-x.c (split_up_display_spec): Fix a warning.
5987
5988 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5989
5990         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5991         * ntproc.c (sys_spawnve): make_string ==> build_string
5992         Small clarity improvements.
5993
5994 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5995
5996         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5997
5998         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5999
6000         * config.h.in (HAVE_STRCASECMP): Remove.
6001
6002 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6003
6004         * redisplay-output.c (redisplay_output_pixmap):
6005         Cleaner and possibly more 64-bit correct code.
6006
6007 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6008
6009         * dumper.c (pdump_load_finish): move restoration of
6010         `noninteractive1' to emacs.c (main_1).
6011         * emacs.c (main_1): protect LISP-visible command-line flags
6012         from pdump_load().
6013
6014 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6015
6016         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6017         DUMP_TARGET instead of literal program names.
6018
6019 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6020
6021         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6022
6023 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6024
6025         * *: Spelling mega-patch
6026
6027 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6028
6029         * fns.c (bad_bad_turtle):
6030         Delete "Eek!" comment, since we fixed the bug to which it refers.
6031
6032 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6033
6034         * alloca.c: Replace REGISTER with register.
6035
6036 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6037
6038         * file-coding.c (ucs_to_char): Use countof.
6039
6040 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6041
6042         * file-coding.c: (ucs_to_char):
6043         (complex_vars_of_file_coding):
6044         Use countof instead of sizeof.
6045         Use CHECK_NATNUM instead of CHECK_INT.
6046
6047         * sysdep.c (strcasecmp): Remove.
6048         * device-x.c (ascii_strcasecmp): New.
6049         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6050         Avoid using non-standard non-portable strcasecmp.
6051
6052 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6053
6054         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6055         * font-lock.c: remove reference to emacsfns.h.
6056         * search.c: small doc improvement.
6057         * event-Xt.c: correct file names in comments.
6058         * console-x.h Correct file names in comments.
6059         * frame.c: Correct file names in comments.
6060         * event-stream.c: remove Energize from comments.
6061
6062 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6063
6064         * symeval.h (DEFERROR_STANDARD):
6065         (DEFERROR):
6066         (DEFSYMBOL):
6067         (DEFSYMBOL_NO_DUMP):
6068         (DEFSYMBOL_MULTIWORD_PREDICATE):
6069         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6070         (DEFKEYWORD):
6071         The construct &##name is not sensible C.
6072         Fixes compilation errors with Unixware native compiler.
6073
6074 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6075
6076         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6077         (next_frame_internal): Removed.  We now just have next_frame.
6078         (next_frame):
6079         Write a simpler and cleaner one-pass algorithm.
6080         Remove called_from_delete_device arg and #ifdefed-out code.
6081         (previous_frame):
6082         Renamed from prev_frame.  Update callers.
6083         Cleaned up to have an analogous implementation to next_frame.
6084         (other_visible_frames_internal): Remove the
6085         called_from_delete_device bogus arg, and hence, remove this
6086         function.  Just use other_visible_frames().
6087
6088         * window.c (Fnext_window):
6089         Prettify docstring.
6090         Since next_frame() is guaranteed to return a frame, remove check
6091         for nil inserted in previous patch.
6092         (Fprevious_window):
6093         Prettify docstring.
6094         Make code look more like Fnext_window.
6095         (window_loop):
6096         Respect the `console' arg when iterating through windows.
6097         Fixes bug: (get-buffer-window buffer t device) not respecting
6098         the `device' arg.
6099         This function needs more work, as others have pointed out.
6100
6101         * frame.h: Rename prev_frame to previous_frame.
6102         device_matches_console_spec no longer takes a `frame' arg.
6103
6104         * s/gnu.h:
6105         * s/linux.h:
6106         * s/hpux.h:
6107         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6108         From "Golubev I. N." <gin@mo.msk.ru>.
6109
6110         * make-src-depend: Fix typo.
6111
6112 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6113
6114         * window.c (Fnext_window):
6115         next_frame() might return nil, not a frame.
6116         Fixes this crash:
6117         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6118
6119         * frame.c (next_frame_internal):
6120         We've passed a frame if we've passed its device.
6121         Fixes this crash:
6122         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6123 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6124
6125 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6126
6127         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6128         Allow option to suppress accelerators in menu/dialog items.
6129         (populate_or_checksum_helper): Pass dialog title through above.
6130
6131 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6132
6133         * event-msw.c (mswindows_key_to_emacs_keysym):
6134         Add "pause" key, fix "menu" key.
6135
6136 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6137
6138         * eval.c (reinit_vars_of_eval):
6139         Increase max_lisp_eval_depth to 1000,
6140         required for thai-xtis.el to byte-compile under some circumstances.
6141
6142 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6143
6144         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6145         From Kenichi Handa.
6146
6147 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6148
6149         * make-src-depend: Make the generated Makefiles smaller.
6150
6151         * s/hpux.h (SETUP_SLAVE_PTY):
6152         Provide a %d in the format string for the errno argument.
6153
6154         * editfns.c (Ftemp_directory):
6155         Warning fix.
6156         Avoid buffer overrun on very long file name.
6157
6158         * input-method-xlib.c (XIM_init_device):
6159         6th parameter of XRegisterIMInstantiateCallback has different
6160         pointer types on different OSes, so simply cast to (void *).
6161
6162         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6163
6164         * sysdll.c (dll_open):
6165         shl_load will hang hard if passed a NULL filename.
6166         Simply return NULL for compatibility with dlopen.
6167         * sysdll.c: Conform to XEmacs coding standards.
6168
6169         * sysdep.c (get_pty_max_bytes):
6170         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6171
6172 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6173
6174         * tooltalk.c: Add #include <syssignal.h>
6175
6176 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6177
6178         * s/hpux.h: Don't use undefined function sigunblock().
6179
6180 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6181
6182         * config.h.in: Add HAVE_BALLOON_HELP.
6183         * emacs.c: Use HAVE_BALLOON_HELP.
6184         * Makefile.in.in (x_objs):
6185         Make Balloon Help conditional on finding shape.h.
6186
6187 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6188
6189         * syntax.c (regex_emacs_buffer_p): New variable.
6190         * syntax.h (regex_emacs_buffer_p): extern.
6191         * search.c (looking_at_1):
6192         (string_match_1):
6193         (fast_string_match):
6194         (search_buffer): Set regex_emacs_buffer_p.
6195         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6196         when before_dot, at_dot, after_dot.
6197
6198 2000-08-23  Andy Piper  <andy@xemacs.org>
6199
6200         * gui-x.c (popup_selection_callback): Only set action_occurred
6201         when we really have an image instance.
6202         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6203
6204 2000-08-23  Andy Piper  <andy@xemacs.org>
6205
6206         * gui-msw.c (mswindows_handle_gui_wm_command): set
6207         action_occurred.
6208         * gui-x.c (popup_selection_callback): ditto.
6209
6210         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6211         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6212         (struct Lisp_Image_Instance): add action_occurred flag.
6213
6214         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6215         (image_instance_changed): ditto.
6216         (reset_frame_subwindow_instance_cache): only unmap windows - do
6217         not remove them from the cache also.
6218
6219         * glyphs-widget.c (tab_control_update): better debug.
6220         (progress_gauge_update): ditto.
6221         (layout_update): ditto.
6222         (layout_instantiate): ditto.
6223         (tab_control_order_only_changed): cope with null pending items.
6224
6225         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6226         debug. Force selection of an item when an action occurred. Cope
6227         with null pending_items.
6228         (mswindows_progress_gauge_redisplay): better debug.
6229         * glyphs-x.c (x_tab_control_redisplay): ditto.
6230
6231         * redisplay.c (redisplay_frame): reset the frame cache if the
6232         frame is garbaged.
6233
6234         * window.c (Fset_window_configuration): potentially re-enable
6235         frame cache reset.
6236         (window_unmap_subwindows): need to finalize instances here since
6237         it is only used in mark_window_as_deleted.
6238
6239 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6240
6241         * nas.c (SndOpenDataForReading):
6242         nas.c (WaveOpenDataForReading):
6243         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6244         Somehow escaped from the 2000-08-14 patch.
6245
6246 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6247
6248         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6249         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6250
6251 2000-08-21  Andy Piper  <andy@xemacs.org>
6252
6253         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6254         window if it is not already displayed.
6255
6256         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6257         it is not already displayed.
6258
6259         * window.c (Fset_window_configuration): don't reset the frame
6260         cache.
6261
6262         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6263         instances from the frame cache if we are actually finalizing them.
6264         (reset_frame_subwindow_instance_cache): reset frame cache only
6265         after unmapping everything.
6266         (map_subwindow): set displayed flag after mapping.
6267
6268 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6269
6270         * data.c (indirect_function):
6271         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6272
6273         * eval.c (function_argcount):
6274         Use original function when signaling errors.
6275
6276 2000-08-18  Andy Piper  <andy@xemacs.org>
6277
6278         * frame.c (delete_frame_internal): use new
6279         free_frame_subwindow_instances name.
6280
6281         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6282         (add_tab_item): make return type correct.
6283         (mswindows_tab_control_instantiate): assert index of tab.
6284         (mswindows_tab_control_redisplay): Re-code to use
6285         gui_item_equal_sans_selected and gui_item_list_find_selected.
6286
6287         * glyphs-widget.c (tab_control_update): Correct comment.
6288
6289         * window.c (window_unmap_subwindows): use new
6290         unmap_subwindow_instance_cache_mapper.
6291         (window_unmap_subwindows_cache_mapper): deleted.
6292         (Fset_window_configuration): comparisons should now be with
6293         EQ. Preserve the subwindow instance cache across configuration
6294         changes.
6295         (allocate_window): ditto.
6296         (make_dummy_parent): ditto.
6297
6298         * glyphs.c (free_frame_subwindow_instances): rename from
6299         free_frame_subwindow_instance_cache. finalize all instances rather
6300         than just those in the display cache.
6301         (finalize_all_subwindow_instances): walk windows unmapping and
6302         finalizing subwindows.
6303         (unmap_subwindow_instance_cache_mapper): moved from
6304         window.c. Allow finalization as well as unmapping.
6305
6306         * gui.c (gui_item_list_find_selected): new function.
6307
6308         * gui.h (gui_item_list_find_selected): declare.
6309
6310         * glyphs-x.c (x_tab_control_redisplay): pick tab
6311         explicitly. Re-code to use gui_item_equal_sans_selected and
6312         gui_item_list_find_selected.
6313
6314         * glyphs-x.h: add lwlib-utils.h
6315
6316         * buffer.c (Frecord_buffer): undo previous change.
6317
6318 2000-08-09  Vin Shelton  <acs@xemacs.org>
6319
6320         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6321         possible.  Create temporary files more securely.  The patch was
6322         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6323         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6324         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6325         for details.
6326
6327 2000-08-07  Ben Wing  <ben@xemacs.org>
6328
6329         * getloadavg.c: remove duplicate (and windows-breaking)
6330         includes of fcntl.h and sys/file.h.
6331
6332         * nt.c: remove duplicate getloadavg() definition.
6333
6334         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6335         encodings.
6336
6337 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6338
6339         * eval.c (function_argcount): If function needs to be autoloaded
6340         actually use the loaded definition.
6341         GCPRO function.
6342
6343 2000-08-05  Ben Wing  <ben@xemacs.org>
6344
6345         * getloadavg.c: add prototype for getloadavg().  remove
6346         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6347         of the code).  remove duplicate header includes.
6348
6349         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6350
6351         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6352         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6353         useful load average.
6354
6355         * alloc.c (reinit_alloc_once_early): removed references to
6356         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6357         the lisp vars are the only things referencing the malloc_sbrk_*
6358         vars, and they were already if 0'd out.  these vars only exist
6359         in the older malloc.c, which is basically unused, and they're
6360         only for informational purposes.
6361
6362         * m\*.h: removed useless VIRT_ADDR_VARIES.
6363
6364         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6365
6366 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6367
6368         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6369         color if the image is a mono pixmap.
6370
6371 2000-07-30  Ben Wing  <ben@xemacs.org>
6372
6373         * Makefile.in.in (release):
6374         Remove stray @.
6375
6376         * buffer.c (directory_is_current_directory):
6377         * dired-msw.c (mswindows_get_files):
6378         * dired.c:
6379         * dired.c (Fdirectory_files):
6380         * dired.c (file_name_completion_stat):
6381         * dired.c (Ffile_attributes):
6382         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6383         preprocessor tricks, to avoid problems on some machines
6384         (e.g. SCO).
6385
6386         * callproc.c (egetenv): GC docs.
6387
6388         * console-msw.h:
6389         * console-msw.h (struct mswindows_dialog_id):
6390         * lrecord.h (lrecord_type):
6391         New object for use with MSW dialogs.
6392
6393         * console.h (struct console_methods):
6394         New enable/disable frame methods, for proper modal dialogs.
6395
6396         * device-msw.c (msprinter_default_printer): Fix to follow
6397         proper Mule conventions.
6398
6399         * device-msw.c:
6400         * device-msw.c (signal_open_printer_error):
6401         * device-msw.c (msprinter_init_device):
6402         * device-msw.c (ensure_not_printing):
6403         * device-msw.c (plist_get_margin):
6404         * device-msw.c (Fmsprinter_select_settings):
6405         * device-msw.c (finalize_devmode):
6406         * device-msw.c (Fmsprinter_settings_despecialize):
6407         * device-msw.c (signal_enum_priner_error):
6408         * extents.c (decode_extent):
6409         * extents.c (decode_map_extents_flags):
6410         * extents.c (decode_extent_at_flag):
6411         * extents.c (Fextent_at):
6412         * extents.c (Fextents_at):
6413         * extents.c (symbol_to_glyph_layout):
6414         [[[[2]]]] Use structured errors.
6415
6416         * dialog-msw.c:
6417         * dialog-msw.c (mswindows_is_dialog_msg):
6418         * dialog-msw.c (mark_mswindows_dialog_id):
6419         * dialog-msw.c (dialog_proc):
6420         * dialog-msw.c (handle_question_dialog_box):
6421         * dialog-msw.c (syms_of_dialog_mswindows):
6422         Define new object to clean up marking; use it as a dialog identifier.
6423         Call new delete-dialog-box-hook.
6424
6425         * dialog-x.c (dbox_selection_callback):
6426         * dialog-x.c (dbox_descriptor_to_widget_value):
6427         * dialog-x.c (x_make_dialog_box_internal):
6428         Call new delete-dialog-box-hook.
6429         Return an id.
6430
6431         * dialog.c:
6432         * dialog.c (syms_of_dialog):
6433         * dialog.c (vars_of_dialog):
6434         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6435
6436         * eval.c:
6437         * eval.c (signal_call_debugger):
6438         when noninteractive, output stack traces on the console instead
6439         of in a (never-seen) buffer.
6440
6441         * eval.c (signal_type_error):
6442         * eval.c (invalid_argument_2):
6443         * lisp.h:
6444         new funs for use w/structured errors.
6445
6446         * event-Xt.c:
6447         * event-Xt.c (x_to_emacs_keysym):
6448         * event-Xt.c (describe_event):
6449         * event-Xt.c (emacs_Xt_event_handler):
6450         * event-Xt.c (vars_of_event_Xt):
6451         * event-msw.c:
6452         * event-msw.c (mswindows_wnd_proc):
6453         * event-msw.c (vars_of_event_mswindows):
6454         rename {x,mswindows}-debug-events to debug-{}-events for
6455         consistency with other debug-foo variables.
6456
6457         * event-stream.c:
6458         document next-event more clearly.
6459
6460         * fileio.c (Ffile_name_directory):
6461         * fileio.c (Ffile_name_nondirectory):
6462         * fileio.c (Funhandled_file_name_directory):
6463         * fileio.c (file_name_as_directory):
6464         * fileio.c (Ffile_name_as_directory):
6465         * fileio.c (directory_file_name):
6466         * fileio.c (Fdirectory_file_name):
6467         * fileio.c (Fmake_temp_name):
6468         * fileio.c (Ffile_truename):
6469         * fileio.c (Fsubstitute_in_file_name):
6470         * fileio.c (expand_and_dir_to_file):
6471         * fileio.c (barf_or_query_if_file_exists):
6472         * fileio.c (check_executable):
6473         * fileio.c (Ffile_exists_p):
6474         * fileio.c (Ffile_writable_p):
6475         * fileio.c (Ffile_directory_p):
6476         * fileio.c (Ffile_regular_p):
6477         * fileio.c (Ffile_modes):
6478         * fileio.c (Ffile_newer_than_file_p):
6479         * fileio.c (Fverify_visited_file_modtime):
6480         * fileio.c (Fset_visited_file_modtime):
6481         * fileio.c (auto_save_1):
6482         (1). (2).
6483         fix up gcpro's.
6484
6485         * frame-msw.c:
6486         * frame-msw.c (mswindows_init_frame_1):
6487         * frame-msw.c (mswindows_enable_frame):
6488         * frame-msw.c (error_frame_unsizable):
6489         * frame-msw.c (msprinter_init_frame_1):
6490         * frame-msw.c (msprinter_init_frame_3):
6491         * frame-msw.c (console_type_create_frame_mswindows):
6492         (2).
6493         implement new enable/disable frame methods.
6494
6495         * frame-x.c:
6496         * frame-x.c (x_enable_frame):
6497         * frame-x.c (console_type_create_frame_x):
6498         implement new enable/disable frame methods.
6499
6500         * frame.c:
6501         * frame.c (Fdisable_frame):
6502         * frame.c (syms_of_frame):
6503         * frame.h (struct frame):
6504         implement new enable/disable frame methods/functions.
6505
6506         * general-slots.h:
6507         add initial-focus.
6508
6509         * glyphs-msw.c (mswindows_widget_instantiate):
6510         comment that initial-focus should be implemented.
6511
6512         * glyphs-widget.c:
6513         * glyphs-widget.c (check_valid_instantiator):
6514         * glyphs-widget.c (check_valid_orientation):
6515         * glyphs-widget.c (check_valid_tab_orientation):
6516         * glyphs-widget.c (check_valid_justification):
6517         * glyphs-widget.c (check_valid_border):
6518         * glyphs-widget.c (check_valid_callback):
6519         * glyphs-widget.c (check_valid_int_or_function):
6520         * glyphs-widget.c (check_valid_string_or_vector):
6521         * glyphs-widget.c (check_valid_item_list_1):
6522         * glyphs-widget.c (widget_validate):
6523         * glyphs-widget.c (combo_box_validate):
6524         * glyphs-widget.c (widget_instantiate):
6525         * glyphs-widget.c (syms_of_glyphs_widget):
6526         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6527         * glyphs-widget.c (image_instantiator_combo_box):
6528         * glyphs-widget.c (image_instantiator_scrollbar):
6529         * glyphs-widget.c (image_instantiator_tab_control):
6530         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6531         (2).
6532         support (unimplemented) keyword initial-focus.
6533         reindent long macros.
6534
6535         * glyphs-x.c (x_redisplay_widget):
6536         * glyphs-x.c (x_button_instantiate):
6537         * glyphs-x.c (x_button_redisplay):
6538         * glyphs-x.c (x_progress_gauge_instantiate):
6539         * glyphs-x.c (x_edit_field_instantiate):
6540         * glyphs-x.c (x_combo_box_instantiate):
6541         * glyphs-x.c (x_tab_control_instantiate):
6542         * glyphs-x.c (x_label_instantiate):
6543         * gui-x.c:
6544         * gui-x.c (button_item_to_widget_value):
6545         * gui-x.c (gui_items_to_widget_values_1):
6546         * gui-x.c (gui_item_children_to_widget_values):
6547         * gui-x.c (gui_items_to_widget_values):
6548         * gui-x.h:
6549         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6550         add new flag to gui-parsing routines to indicate whether
6551         accelerator specs should be supported.
6552
6553         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6554
6555         * glyphs.h (struct Lisp_Image_Instance):
6556         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6557         add initial-focus flag.
6558
6559         * gui.c:
6560         * gui.c (syms_of_gui):
6561         * gui.c (vars_of_gui):
6562         clean up menu-no-selection-hook.
6563
6564         * gui.h:
6565         support delete-dialog-box-hook.
6566
6567         * lread.c (Fload_internal):
6568         * lread.c (locate_file_in_directory_mapper):
6569         (1).
6570
6571         * lrecord.h:
6572         * lrecord.h (struct toolbar_button):
6573         * lrecord.h (syms_of_toolbar):
6574         document how to create a new object.
6575
6576         * menubar-msw.c (mswindows_char_is_accelerator):
6577         may be called on frames w/o menus.
6578
6579         * menubar.c (vars_of_menubar):
6580         clean up :filter docs.
6581
6582         * nt.c (readdir):
6583         * ntproc.c:
6584         (1).
6585
6586         * process-nt.c:
6587         * process-nt.c (validate_signal_number):
6588         * process-nt.c (signal_cannot_launch):
6589         * process-nt.c (nt_create_process):
6590         * process-nt.c (nt_send_process):
6591         * process-nt.c (nt_kill_child_process):
6592         * process-nt.c (nt_open_network_stream):
6593         * process-nt.c (syms_of_process_nt):
6594         (2).
6595         delete quote-handling.  call new lisp code that does it better.
6596
6597         * process-unix.c (connect_to_file_descriptor):
6598         * process-unix.c (allocate_pty):
6599         * process-unix.c (unix_send_process):
6600         * process-unix.c (unix_kill_child_process):
6601         * process-unix.c (unix_open_network_stream):
6602         * process-unix.c (unix_open_multicast_group):
6603         (1). (2).
6604
6605         * process.c:
6606         * process.c (Fstart_process_internal):
6607         (2).  need to canonicalize process path even if absolute.
6608
6609         * select-msw.c (symbol_to_ms_cf):
6610         * select-msw.c (ms_cf_to_symbol):
6611         * select-msw.c (cf_is_autofreed):
6612         * select-msw.c (mswindows_destroy_selection):
6613         * select.c:
6614         * select.c (syms_of_select):
6615         * select.h:
6616         support dibv5, fix bugs. (from Mike Alexander)
6617
6618         * select.c (Fget_selection_internal):
6619         * select.c (select_convert_out):
6620
6621         * sysdep.c:
6622         * sysdep.c (xemacs_stat):
6623         renamed.
6624
6625         * sysdep.c (mkdir):
6626         * sysdep.c (rmdir):
6627         but keep original stat() here because we provide encapsulation
6628         around these funs.
6629
6630         * sysfile.h:
6631         * sysfile.h (fstat):
6632         remove stat garbage.
6633
6634         * syswindows.h:
6635         fix X/MSW conflict.
6636         don't include tchar.h.  it's inappropriate because it makes
6637         compile-time distinctions when we want runtime distinctions.
6638         (we provide our own tchar replacements)
6639
6640         * toolbar.c:
6641         use default object printer for toolbar-button.
6642
6643         * unexcw.c:
6644         make sure we don't encapsulate.
6645
6646         * window.c (vars_of_window):
6647         emphasize that temp-buffer-show-hook is obsolete.
6648
6649 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6650
6651         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6652         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6653
6654         * events.c (Fevent_timestamp_lessp):
6655         Not 64-bit clean.  Use EMACS_INT, not int.
6656
6657 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6658
6659         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6660         unsigned int and changed the last enum to
6661         lrecord_type_last_built_in_type.
6662         (lrecord_implementations_table): changed prototype to know how
6663         long the array is supposed to be.
6664         (lrecord_type_count): new unsigned int to keep track of the
6665         current number of lisp lrecord types.
6666         (DEFINE_EXTERNAL_LRECORD):
6667         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6668         dynamic-modules to declare new lisp types. They are the same
6669         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6670         int for each new type, and increment lrecord_type_count by 1.
6671
6672         * alloc.c (lrecord_implementations_table): Changed to reference
6673         lrecord_type_last_built_in_type for the size of the array.
6674         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6675
6676 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6677
6678         * glyphs.h (check_valid_item_list): Renamed from
6679         check_valid_item_list_1.
6680
6681 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6682
6683         * select.c (Qselect_coerce): New.
6684         * select.c (Vselection_coercion_alist): New.
6685         * select.c (syms_of_select): Declare.
6686         * select.c (get-selection-internal): Use it.
6687         Use the new select-coerce functionality.
6688
6689         * select.c (select_coerce): New.
6690         * select.h (select_coerce): Declare.
6691         New function to coerce one type of data into another.
6692
6693 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6694
6695         * callproc.c (Fcall_process_internal):
6696         (Fcall_process_internal):
6697         * process-unix.c (unix_create_process):
6698         Save and restore the value of errno, so that error messages are accurate.
6699
6700 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6701
6702         * elhash.c (print_hash_table):
6703         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6704         Prettify docstrings and indentation.
6705
6706 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6707
6708         * window.c (Fwindow_pixel_edges): Subtract frame border and
6709         gutter size.
6710
6711 2000-07-31  Andy Piper  <andy@xemacs.org>
6712
6713         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6714         will acknowledge the change.
6715
6716         * glyphs.h: declare tab_control_order_only_changed.
6717
6718         * glyphs-x.c (x_tab_control_redisplay): use
6719         tab_control_order_only_changed.
6720
6721         * glyphs-widget.c (tab_control_order_only_changed): new function.
6722
6723         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6724         tab_control_order_only_changed.
6725
6726         * gui.c (gui_item_equal_sans_selected): new function.
6727         (gui_item_equal): use it.
6728
6729         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6730         :properties in favor of :items..
6731
6732         * glyphs-widget.c (check_valid_item_list): rename from
6733         check_valid_item_list_1.
6734         (check_valid_item_list_1): renamed.
6735         (combo_box_validate): deprecate :properties in favor of :items.
6736         (widget_instantiate): ditto.
6737         (tab_control_update): ditto.
6738         (image_instantiator_combo_box): ditto.
6739         (image_instantiator_tree_view): ditto.
6740         (image_instantiator_tab_control): ditto.
6741         (layout_post_instantiate): remove dead code.
6742
6743         * print.c (debug_print_no_newline): only write to debugger if in
6744         WIN32_NATIVE.
6745
6746         * elhash.c (Fmake_hash_table): update doc string.
6747
6748         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6749         messages whilst in GC. This at least stops XEmacs crashing but has
6750         the potential for wierd behaviour.
6751
6752 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6753
6754         * config.h.in:
6755         Make existence of s&m files optional.
6756
6757         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6758         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6759         * s/gnu.h: Remove HAVE_GETLOADAVG.
6760         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6761         * s/sol2.h: Remove HAVE_GETLOADAVG.
6762         * lisp.h: Remove getloadavg() declaration.
6763         * fns.c:
6764         Include <sys/loadavg.h> if available.
6765         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6766         * config.h.in:  Group together getloadavg()-related macros.
6767         Use only configure-time tests to detect getloadavg().
6768
6769 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6770
6771         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6772
6773 2000-07-25  Andy Piper  <andy@xemacs.org>
6774
6775         * syswindows.h: add tchar.h for native builds.
6776
6777         * frame.c (syms_of_frame): remove set-glyph-image.
6778
6779         * general-slots.h: add Qset_glyph_image.
6780
6781         * glyphs-widget.c (layout_update): add domain arg to
6782         set-glyph-image.
6783         (syms_of_glyphs_widget): remove set-glyph-image.
6784
6785 2000-07-23  Ben Wing  <ben@xemacs.org>
6786
6787         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6788         Vpopup_frame_list.
6789
6790 2000-07-22  Andy Piper  <andy@xemacs.org>
6791
6792         * symsinit.h: add syms_of_win32().
6793
6794         * gui-msw.c (syms_of_gui_mswindows): remove
6795         Fmswindows_shell_execute.
6796         (Fmswindows_shell_execute): moved to win32.c.
6797
6798         * emacs.c (main_1): add syms_of_win32 ().
6799
6800         * win32.c (init_potentially_nonexistent_functions): rewrite in
6801         compiler-friendly terms.
6802         (Fmswindows_shell_execute): move here from gui-msw.c.
6803         (syms_of_win32): new.
6804
6805         * device-msw.c (Fmswindows_printer_list): clean up args to
6806         EnumPrinters.
6807         Don't include tchar under cygwin or mingw.
6808         (msprinter_default_printer): make cygwin-friendly.
6809
6810 2000-07-21  Andy Piper  <andy@xemacs.org>
6811
6812         * glyphs-widget.c (image_instantiator_tree_view): use tab
6813         control's update function.
6814         (layout_property): new function. Retrieve items.
6815
6816         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6817         function. Re-populate the tree view from the pending items.
6818
6819         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6820         is designated the parent if the domain is an image instance. This
6821         is needed so that dirtiness can be cascade up the hierarchy and
6822         thus for layout children to be redisplayed correctly.
6823         (allocate_image_instance): rename glyph -> parent.
6824
6825         * redisplay.h: change redisplay_output_layout signature.
6826
6827         * redisplay-msw.c (mswindows_output_display_block): use domain
6828         arg.
6829
6830         * redisplay-x.c (x_output_display_block): use domain arg.
6831
6832 2000-07-10  Andy Piper  <andy@xemacs.org>
6833
6834         * window.c (Fset_window_configuration): add comment.
6835
6836         * redisplay-output.c (compare_runes):
6837         (redisplay_output_subwindow): redisplay rather than update subwindow.
6838         (redisplay_output_layout): ditto.
6839
6840         * redisplay-msw.c (mswindows_frame_output_end):
6841         (mswindows_frame_output_end): make defer window pos optional.
6842
6843         * lisp.h: add Flast.
6844
6845         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6846         normalize method. Change update method to be for changed
6847         instantiators. Add redisplay method. Change signature of layout
6848         method.
6849         (struct Lisp_Image_Instance): add instantiator.
6850         (IMAGE_INSTANCE_INSTANTIATOR): new.
6851         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6852         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6853         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6854
6855         * glyphs.c:
6856         (find_instantiator_differences): new function.
6857         (Fset_instantiator_property): new convenience function.
6858         (check_image_instance_structure): strictly check for vector
6859         instantiators.
6860         (normalize_image_instantiator): make non-static.
6861         (instantiate_image_instantiator): pass on dest_mask and use new
6862         signatures for image_instance_layout and friends.
6863         (mark_image_instance): mark the instantiator. Mark the subwindow
6864         face not the widget face.
6865         (image_instance_equal): add instantiator.
6866         (image_instance_hash): ditto.
6867         (allocate_image_instance): ditto.
6868         (Fset_image_instance_property): removed.
6869         (Fimage_instance_file_name): ditto.
6870         (Fcolorize_image_instance): ditto.
6871         (image_instance_layout): add offsets to be set.
6872         (update_image_instance): new function. update an image instance
6873         from its changed instantiator.
6874         (inherit_normalize): add dest_mask.
6875         (xbm_normalize): ditto.
6876         (xface_normalize): ditto.
6877         (xpm_normalize): ditto.
6878         (text_update): set_property -> update.
6879         (image_instantiate): use the glyph identity as a hash key, not the
6880         instantiator.
6881         (glyph_width): use new image_instance_layout signature.
6882         (glyph_ascent): ditto.
6883         (glyph_descent): ditto.
6884         (glyph_height): ditto.
6885         (glyph_query_geometry): ressurrect.
6886         (glyph_layout): ditto.
6887         (redisplay_subwindow): update -> redisplay.
6888         (syms_of_glyphs): add Fset_instantiator_property.
6889         (image_instantiator_format_create): set_property -> update.
6890
6891         * glyphs-x.c:
6892         (autodetect_normalize): add dest_maks to signature.
6893         (x_redisplay_subwindow): update -> redisplay.
6894         (x_redisplay_widget): ditto.
6895         (x_button_redisplay): ditto.
6896         (x_progress_gauge_redisplay): ditto.
6897         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6898         stacking order.
6899         (console_type_create_glyphs_x): update -> redisplay.
6900         (image_instantiator_format_create_glyphs_x): ditto.
6901
6902         * glyphs-widget.c:
6903         (check_valid_instantiator): disallow glyphs in the instantiator,
6904         they must now be vectors.
6905         (check_valid_instantiator_list): ditto.
6906         (glyph_instantiator_to_glyph): use internal symbol rather than
6907         intern.
6908         (widget_update): renamed from widget_set_property. Call cascaded
6909         update methods.
6910         (redisplay_widget): renamed from update_widget.
6911         (widget_layout): image_instance_layout now takes position as well
6912         as size.
6913         (widget_normalize): ditto.
6914         (widget_instantiate): ditto.
6915         (tab_control_query_geometry) ditto.:
6916         (tab_control_update): renamed from tab_control_set_property.
6917         (progress_gauge_update): set_property -> update.
6918         (layout_normalize): rewrite so that child instantiators are
6919         normalized also.
6920         (layout_update): new function. Create glyphs from the normalized
6921         children and cope with any other layout keywords. We do not
6922         instantiate children here that will be take care of by
6923         redisplay_output_layout.
6924         (layout_instantiate): call layout_update and not much else.
6925         (layout_post_instantiate): not sure whether this is needed
6926         anymore.
6927         (layout_query_geometry): query glyph geometry rather than
6928         image_instance geometry.
6929         (layout_layout): set offsets from pass in parameters. Use glyph
6930         geometry and layout functions rather than image instance ones.
6931         (native_layout_layout): ditto.
6932         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6933         (image_instantiator_widget): set_property -> update.
6934         (image_instantiator_buttons): ditto.
6935         (image_instantiator_progress_guage): ditto.
6936         (image_instantiator_tab_control): ditto.
6937         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6938         (image_instantiator_layout): add update method.
6939
6940         * glyphs-msw.c (bmp_normalize):
6941         (mswindows_resource_normalize): add dest_mask so that it can be
6942         proprogated by layout_normalize.
6943         (begin_defer_window_pos): make optional because it may not be the
6944         right thing to do and it introduces differences with X.
6945         (mswindows_unmap_subwindow): ditto.
6946         (mswindows_map_subwindow): ditto.
6947         (mswindows_redisplay_subwindow): renamed from
6948         mswindows_update_subwindow.
6949         (mswindows_redisplay_widget): ditto.
6950         (mswindows_button_redisplay): renamed from
6951         mswindows_button_update. Update is now what the instantiation
6952         function does for a changed instantiator.
6953         (mswindows_progress_gauge_instantiate): set the progress value
6954         here if appropriate.
6955         (mswindows_tab_control_redisplay): cope with re-ordering of the
6956         members of the tab widget by simply selecting the new top
6957         widget. This makes things appear ok if you click on a tab.
6958         (mswindows_combo_box_instantiate): image_instance_layout now takes
6959         position as well as size.
6960         (mswindows_progress_gauge_redisplay): renamed from
6961         mswindows_progress_gauge_update.
6962         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6963         (image_instantiator_format_create_glyphs_mswindows): ditto.
6964
6965         * glyphs-eimage.c (jpeg_normalize):
6966         (gif_normalize):
6967         (png_normalize):
6968         (tiff_normalize): add dest_mask so that it can be proprogated by
6969         layout_normalize.
6970
6971         * elhash.c:
6972         (print_hash_table):
6973         (hash_table_weakness_validate):
6974         (decode_hash_table_weakness):
6975         (Fhash_table_weakness):
6976         (Fhash_table_type):
6977         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6978
6979         * console.h (struct console_methods): move update_* to
6980         redisplay_*.
6981
6982 2000-07-20  Ben Wing  <ben@xemacs.org>
6983
6984         * *.[ch] (XSETOBJ): remove unused middle argument.
6985         lisp-disunion.h: correct wrap_object() to one argument.
6986
6987 2000-07-15  Ben Wing  <ben@xemacs.org>
6988
6989         * s/cygwin32.h:
6990         * s/cygwin32.h (CYGWIN_CONV_PATH):
6991         Add missing logb prototype for v1.1.
6992         Use post-b20 names and alias to pre-b20 names when pre-b20.
6993
6994         * s/windowsnt.h: [5].
6995
6996 2000-07-15  Ben Wing  <ben@xemacs.org>
6997
6998         * Makefile.in.in (x_objs):
6999         * Makefile.in.in (sheap_objs):
7000         * Makefile.in.in (objs):
7001         added win32.o, cosmetic cleanups.
7002
7003         * alloc.c (Fmake_byte_code):
7004         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7005         etc. macros which declare their own args now.
7006
7007         * alloc.c (syms_of_alloc):
7008         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7009
7010         * buffer.c:
7011         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7012
7013         * buffer.c (Fget_file_buffer):
7014         Fixed GCPRO problem.
7015
7016         * buffer.c (get_truename_buffer):
7017         Fixed comment about GC checking.
7018
7019         * buffer.c (syms_of_buffer):
7020         Undeclared those dedicated frame funs.
7021         [2].
7022
7023         * buffer.h:
7024         Define convenience macros for internal/external conversions.
7025         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7026         and Qenvironment_variable_encoding for cleaner code.
7027
7028         * bufslots.h:
7029         Remove dedicated-frame; in lisp.
7030
7031         * bytecode.c (funcall_compiled_function):
7032         [1].
7033
7034         * bytecode.c (syms_of_bytecode):
7035         [2].
7036
7037         * console-msw.c:
7038         * console-msw.c (mswindows_show_console): Rewrote.
7039
7040         * console-msw.c (Fmswindows_debugging_output): New.
7041         Sends to OutputDebugString (special MSWin debugger interface).
7042
7043         * console-msw.c (Fmswindows_message_box):
7044         Fixed stupid bugs so it works when called from kill-emacs.
7045
7046         * console-msw.c (syms_of_console_mswindows):
7047         Declare Fmswindows_debugging_output.
7048
7049         * console-msw.h:
7050         New MSWin prototypes.
7051
7052         * console-msw.h (struct mswindows_frame):
7053         New entry last-click-mods for improved button-modifier support.
7054
7055         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7056         New struct entry `popup' with corresponding accessor.
7057
7058         * console-x.c:
7059         * console-x.c (split_up_display_spec):
7060         * console-x.c (get_display_arg_connection):
7061         * console-x.c (x_semi_canonicalize_console_connection):
7062         * console-x.c (x_canonicalize_device_connection):
7063         [[[6]]]: Change char to more specific type.
7064         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7065
7066         * console-x.c (x_semi_canonicalize_console_connection):
7067         * console-x.c (x_canonicalize_device_connection):
7068         [[[9]]]: Fix up error signalling to use new structured error system.
7069
7070         * console-x.h:
7071         [[[4]]]: Define codesys aliases:
7072         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7073         Qx_color_name_encoding, Qx_display_name_encoding.
7074
7075         * console.h (struct console_methods):
7076         New method make_dialog_box_internal supersedes older
7077         popup_dialog_box method.
7078
7079         * data.c:
7080         Define many new errors, part of new structured errors.
7081
7082         * data.c (init_errors_once_early):
7083         * data.c (syms_of_data):
7084         [2].
7085
7086         * device-msw.c (mswindows_init_device):
7087         [[[5]]]: Cleanup to support NT 3.51.
7088
7089         * device-msw.c (decode_devmode): Cleanup.
7090
7091         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7092         * device-msw.c (mswindows_handle_print_dialog_box):
7093         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7094         * device-msw.c (syms_of_device_mswindows):
7095         Delete the dialog box primitives recently introduced by Kirill and
7096         instead interface to general dialog box interface.
7097
7098         * device-x.c:
7099         * device-x.c (compute_x_app_name):
7100         * device-x.c (x_init_device):
7101         * device-x.c (Fx_valid_keysym_name_p):
7102         * device-x.c (Fx_set_font_path):
7103         [6].
7104         [7].
7105
7106         * device.h (wrap_device): New.
7107         First of its kind; meant to replace XSETDEVICE.
7108
7109         * dialog-msw.c: Many file-dialog symbols.
7110
7111         * dialog-msw.c (mswindows_register_popup_frame): New.
7112         * dialog-msw.c (mswindows_is_dialog_msg): New.
7113         For supporting kbd traversal in dialog boxes.
7114
7115         * dialog-msw.c (dialog_proc):
7116         Support hitting ESC in dialogs.
7117
7118         * dialog-msw.c (struct):
7119         Common dialog box errors.
7120
7121         * dialog-msw.c (handle_file_dialog_box): New.
7122         Add file dialog code.
7123
7124         * dialog-msw.c (handle_question_dialog_box):
7125         Redo existing code to support new question dialog syntax.
7126
7127         * dialog-msw.c (console_type_create_dialog_mswindows):
7128         We support new dialog console method.
7129
7130         * dialog-msw.c (syms_of_dialog_mswindows):
7131         * dialog-msw.c (vars_of_dialog_mswindows):
7132         New file dialog symbols, vars.
7133
7134         * dialog-x.c:
7135         * dialog-x.c (maybe_run_dbox_text_callback):
7136         * dialog-x.c (dbox_descriptor_to_widget_value):
7137         * dialog-x.c (x_make_dialog_box_internal):
7138         * dialog-x.c (console_type_create_dialog_x):
7139         Mule-ize entire file.
7140         Redo to support question dialog syntax.
7141         [6].
7142
7143         * dialog.c:
7144         * dialog.c (Fmake_dialog_box_internal):
7145         * dialog.c (syms_of_dialog):
7146         Kill old popup-dialog-box, replace with new primitive.
7147         Just call device method or signal error.
7148
7149         * eldap.c (Fldap_open):
7150         * eldap.c (Fldap_search_basic):
7151         * eldap.c (Fldap_add):
7152         * eldap.c (Fldap_modify):
7153         [1].
7154         [7].
7155
7156         * emacs.c:
7157         * emacs.c (make_arg_list_1):
7158         * emacs.c (make_arg_list):
7159         Mule-ize call to dll_init().
7160         [6].
7161         [8].
7162
7163         * emacs.c (make_argc_argv):
7164         * emacs.c (free_argc_argv):
7165         * emacs.c (init_cmdargs):
7166         * emacs.c (main_1):
7167         * emacs.c (Fkill_emacs):
7168         * emacs.c (Fdump_emacs):
7169         Update comments about what can be used in syms_* etc.
7170         Call init_win32() when necessary.
7171         Fix up MS Win dialog box in kill-buffer to actually work right.
7172         [7].
7173
7174         * eval.c:
7175         * eval.c (For):
7176         * eval.c (Fand):
7177         * eval.c (Fprogn):
7178         * eval.c (Fprog1):
7179         * eval.c (Fprog2):
7180         * eval.c (FletX):
7181         * eval.c (Flet):
7182         * eval.c (condition_case_3):
7183         * eval.c (Feval):
7184         * eval.c (function_argcount):
7185         * eval.c (funcall_lambda):
7186         [1].
7187
7188         * eval.c (type_error): New.
7189         * eval.c (maybe_type_error): New.
7190         * eval.c (continuable_type_error): New.
7191         * eval.c (maybe_continuable_type_error): New.
7192         * eval.c (type_error_with_frob): New.
7193         * eval.c (maybe_type_error_with_frob): New.
7194         * eval.c (continuable_type_error_with_frob): New.
7195         * eval.c (maybe_continuable_type_error_with_frob): New.
7196         New functions for use with structured errors.
7197
7198         * event-Xt.c:
7199         * event-Xt.c (x_event_to_emacs_event):
7200         Buttons are now modifiers too.
7201
7202         * event-Xt.c (emacs_Xt_current_event_timestamp):
7203         Implement new event method.
7204         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7205
7206         * event-msw.c:
7207         * event-msw.c (ntpipe_shove_writer): [5].
7208         * event-msw.c (mswindows_enqueue_mouse_button_event):
7209         * event-msw.c (mswindows_drain_windows_queue):
7210         * event-msw.c (mswindows_wnd_proc): [7].
7211         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7212         * event-msw.c (mswindows_modifier_state):
7213         Throughout: support new button modifiers.
7214
7215         * event-msw.c (emacs_mswindows_current_event_timestamp):
7216         Implement new event method.
7217         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7218
7219         * event-stream.c:
7220         * event-stream.c (event_stream_current_event_timestamp): New.
7221         * event-stream.c (maybe_kbd_translate): New functionality.
7222         * event-stream.c (vars_of_event_stream):
7223         Document new kbd-translate-table functionality.
7224
7225         * event-stream.c (Fcurrent_event_timestamp): New.
7226         New primitive for use in fabricated events.
7227         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7228
7229         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7230
7231         * events.c:
7232         * events.c (Fmake_event):
7233         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7234         [1].
7235         [9].
7236
7237         * events.c (format_event_object): fix gcc warnings.
7238
7239         * events.c (Fevent_timestamp): Document new primitives.
7240
7241         * events.c (TIMESTAMP_HALFSPACE): New.
7242
7243         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7244         comparing timestamps correctly (half-space algorithm).
7245
7246         * events.c (Fevent_modifier_bits): Doc fix.
7247
7248         * events.c (Fevent_modifiers): Major doc addition.
7249         * events.c (event_x_y_pixel_internal): Typo fix.
7250         * events.c (syms_of_events): Declare new primitives.
7251
7252         * events.h:
7253         Update long comment for button modifiers, timestamps.
7254
7255         * events.h (struct event_stream):
7256         New current_event_timestamp method.
7257
7258         * extents.c:
7259         * extents.c (extent_in_region_p):
7260         * extents.c (decode_extent):
7261         * extents.c (Fset_extent_parent):
7262         * extents.c (decode_map_extents_flags):
7263         Fix gcc warnings.
7264         [9].
7265
7266         * extents.c (struct extent_at_arg):
7267         * extents.c (decode_extent_at_flag):
7268         * extents.c (extent_at_mapper):
7269         * extents.c (extent_at_bytind):
7270         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7271         * extents.c (Fextents_at): New primitive. [9].
7272         * extents.c (symbol_to_glyph_layout): [9].
7273         Support new primitive `extents-at'.
7274
7275
7276         * extents.c (get_text_property_bytind):
7277         extent_at_bytind has another arg.
7278         [9].
7279
7280         * extents.c (syms_of_extents): New primitive.
7281
7282         * file-coding.c (Fmake_coding_system): [1].
7283         * file-coding.c (subsidiary_coding_system): fix gcc warning
7284         * file-coding.c (syms_of_file_coding): [2].
7285
7286         * fileio.c (Fexpand_file_name):
7287         * fileio.c (Fsysnetunam):
7288         * fileio.c (Ffile_exists_p):
7289         * fileio.c (Ffile_executable_p):
7290         * fileio.c (Fverify_visited_file_modtime):
7291         Clean up GCPROing.
7292
7293         * fileio.c (syms_of_fileio): [2].
7294
7295         * filelock.c (lock_file_1):
7296         * filelock.c (current_lock_owner):
7297         * filelock.c (lock_if_free):
7298         * filelock.c (lock_file):
7299         * filelock.c (unlock_file):
7300         Clean up GCPROing.
7301
7302         * fns.c (concat): Fix gcc warning.
7303
7304         * fns.c (Fmember):
7305         * fns.c (Fold_member):
7306         * fns.c (Fmemq):
7307         * fns.c (Fold_memq):
7308         * fns.c (memq_no_quit):
7309         * fns.c (Fassoc):
7310         * fns.c (Fold_assoc):
7311         * fns.c (Fassq):
7312         * fns.c (Fold_assq):
7313         * fns.c (assq_no_quit):
7314         * fns.c (Frassoc):
7315         * fns.c (Fold_rassoc):
7316         * fns.c (Frassq):
7317         * fns.c (Fold_rassq):
7318         * fns.c (rassq_no_quit):
7319         * fns.c (Fdelete):
7320         * fns.c (Fold_delete):
7321         * fns.c (Fdelq):
7322         * fns.c (Fold_delq):
7323         * fns.c (delq_no_quit):
7324         * fns.c (Fremassoc):
7325         * fns.c (Fremassq):
7326         * fns.c (remassq_no_quit):
7327         * fns.c (Fremrassoc):
7328         * fns.c (Fremrassq):
7329         * fns.c (remrassq_no_quit):
7330         * fns.c (Freverse):
7331         * fns.c (mapcar1):
7332         [1].
7333
7334         * frame-msw.c (mswindows_init_frame_1):
7335         * frame-msw.c (mswindows_delete_frame):
7336         Register popups with dialog code so keyboard traversing works.
7337
7338         * frame-tty.c (tty_raise_frame_no_select): [1].
7339
7340         * frame-x.c:
7341         * frame-x.c (x_set_frame_text_value):
7342         * frame-x.c (x_set_frame_properties):
7343         * frame-x.c (x_create_widgets):
7344         [7].
7345
7346         * frame.c:
7347         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7348
7349         * frame.h (wrap_frame): New.
7350         Macro like wrap_device.
7351
7352         * general.c:
7353         * general.c (SYMBOL):
7354         * general.c (syms_of_general):
7355         Major reorg.  This is now just a wrapper and symbols themselves
7356         are listed in general-slots.h.
7357
7358         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7359         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7360
7361         * glyphs-msw.c (mswindows_native_layout_instantiate):
7362         Add DS_CONTROL so keyboard traversal will work.
7363
7364         * glyphs-widget.c:
7365         * glyphs-widget.c (syms_of_glyphs_widget):
7366         Move some symbols to general-slots.h.
7367
7368         * glyphs-x.c:
7369         * glyphs-x.c (xbm_instantiate_1):
7370         * glyphs-x.c (x_xbm_instantiate):
7371         * glyphs-x.c (x_xface_instantiate):
7372         * glyphs-x.c (autodetect_instantiate):
7373         * glyphs-x.c (cursor_font_instantiate):
7374         * glyphs-x.c (x_update_widget):
7375         * glyphs-x.c (x_widget_instantiate):
7376         * glyphs.c (bitmap_to_lisp_data):
7377         * glyphs.c (pixmap_to_lisp_data):
7378         [7].
7379
7380         * glyphs.c (syms_of_glyphs):
7381         [2].
7382
7383         * gui-x.c:
7384         * gui-x.c (print_widget_value):
7385         * gui-x.c (menu_separator_style_and_to_external):
7386         * gui-x.c (add_accel_and_to_external):
7387         * gui-x.c (button_item_to_widget_value):
7388         * gui-x.c (gui_items_to_widget_values_1):
7389         * gui-x.c (gui_items_to_widget_values):
7390         * gui-x.c (syms_of_gui_x):
7391         * gui-x.c (vars_of_gui_x):
7392         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7393         [9].
7394
7395         * gui-x.h:
7396         Muleize, prototype changes matching gui-x.c.
7397
7398         * gui.c:
7399         * gui.c (separator_string_p):
7400         * gui.c (gui_item_add_keyval_pair):
7401         * gui.c (make_gui_item_from_keywords_internal):
7402         * gui.c (signal_too_long_error):
7403         * gui.c (parse_gui_item_tree_item):
7404         * gui.c (syms_of_gui):
7405         * gui.c (vars_of_gui):
7406         * gui.h:
7407         menu-no-selection-hook moved here (used by MSWin).
7408         Move some symbols to general-slots.h.
7409         [6].
7410         [9].
7411
7412         * insdel.c (get_buffer_pos_char):
7413         * insdel.c (get_buffer_range_char):
7414         Add GC comments.
7415
7416         * keymap.c (keymap_lookup_directly):
7417         * keymap.c (keymap_store):
7418         * keymap.c (ensure_meta_prefix_char_keymapp):
7419         * keymap.c (describe_map):
7420         * keymap.h:
7421         Support new button modifiers.
7422
7423         * lisp-disunion.h (wrap_object):
7424         * lisp-disunion.h (XSETOBJ):
7425         Rename make_obj to wrap_object.
7426
7427         * lisp-union.h:
7428         * lisp-union.h (make_int):
7429         * lisp-union.h (make_char):
7430         Support wrap_object.
7431
7432         * lisp.h:
7433         * lisp.h (LIST_LOOP):
7434         * lisp.h (EXTERNAL_LIST_LOOP):
7435         * lisp.h (LIST_LOOP_2):
7436         * lisp.h (EXTERNAL_LIST_LOOP_1):
7437         * lisp.h (EXTERNAL_LIST_LOOP_2):
7438         * lisp.h (EXTERNAL_LIST_LOOP_3):
7439         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7440         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7441         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7442         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7443         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7444         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7445         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7446         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7447         * lisp.h (struct Lisp_Symbol):
7448         * lisp.h (maybe_continuable_error_with_frob):
7449         Fix up section comments.
7450         Add new types for char to indicate usage.
7451         Delete symbols auto-generated from general-slots.h.
7452         Add prototypes for structured error functions.
7453         Add long comments describing looping macros and change interface
7454         so that lvalues are automatically declared.
7455         Add NO_DECLARE macro in case callers want to declare lvalues
7456         themselves.
7457
7458         * lread.c (read_syntax_error):
7459         * lread.c (continuable_read_syntax_error):
7460         * lread.c (read_structure):
7461         * lread.c (sequence_reader):
7462         * lread.c (read_list_conser):
7463         * lread.c (read_compiled_function):
7464         Rename syntax_error and continuable_syntax_error to avoid clash
7465         with same-named structured error functions.
7466
7467         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7468         * menubar-msw.c (populate_menu_add_item):
7469         * menubar-msw.c (populate_or_checksum_helper):
7470         [5].
7471         [9].
7472
7473         * menubar-x.c:
7474         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7475         Mule-ize whole file.
7476
7477         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7478
7479         * mule-charset.c (Fmake_charset):
7480         * mule-wnnfns.c (Fwnn_set_param):
7481         [1].
7482
7483         * ntproc.c (create_child):
7484         * ntproc.c (Fwin32_set_current_locale):
7485         Add comments portending doom.
7486
7487         * objects-msw.c:
7488         * objects-msw.c (old_font_enum_callback_2):
7489         * objects-msw.c (font_enum_callback_1):
7490         * objects-msw.c (mswindows_enumerate_fonts):
7491         [5].
7492
7493         * objects-x.c:
7494         * objects-x.c (allocate_nearest_color):
7495         * objects-x.c (x_parse_nearest_color):
7496         * objects-x.c (x_initialize_color_instance):
7497         * objects-x.c (x_print_color_instance):
7498         * objects-x.c (x_finalize_color_instance):
7499         * objects-x.c (x_valid_color_name_p):
7500         * objects-x.c (x_initialize_font_instance):
7501         * objects-x.c (x_print_font_instance):
7502         * objects-x.c (valid_x_font_name_p):
7503         * objects-x.c (truename_via_FONT_prop):
7504         * objects-x.c (truename_via_random_props):
7505         * objects-x.c (truename_via_XListFonts):
7506         * objects-x.c (x_font_truename):
7507         * objects-x.c (x_font_instance_truename):
7508         * objects-x.c (x_font_instance_properties):
7509         * objects-x.c (x_list_fonts):
7510         * objects-x.c (x_find_charset_font):
7511         Mule-ize entire file.
7512         [7].
7513
7514         * objects-x.h:
7515         Mule-verify.
7516
7517         * print.c:
7518         * print.c (std_handle_out_external):
7519         * print.c (debug_print_no_newline):
7520         * print.c (syms_of_print):
7521         Output to all debugger kinds in debug-print.
7522         Fix console-output code under MSWin to actually work.
7523
7524         * process-nt.c (send_signal):
7525         * process-nt.c (nt_create_process):
7526         Use newer Unicode macros.
7527
7528         * process-unix.c (unix_create_process):
7529         * process-unix.c (unix_canonicalize_host_name):
7530         * process-unix.c (unix_open_network_stream):
7531         [7].
7532
7533         * scrollbar-x.c:
7534         Mule-verify.
7535
7536         * search.c (syms_of_search):
7537         [2].
7538
7539         * select-msw.c (mswindows_destroy_selection):
7540         Use LIST_LOOP_2.
7541
7542         * select-x.c (symbol_to_x_atom):
7543         [7].
7544
7545         * select.c (syms_of_select):
7546         [2].
7547
7548         * sound.c (Fplay_sound_file):
7549         [7].
7550
7551         * specifier.c:
7552         * specifier.c (decode_specifier_type):
7553         * specifier.c (Fvalid_specifier_locale_type_p):
7554         * specifier.c (check_valid_locale_or_locale_type):
7555         * specifier.c (decode_locale):
7556         * specifier.c (decode_locale_type):
7557         * specifier.c (decode_locale_list):
7558         * specifier.c (check_valid_domain):
7559         * specifier.c (decode_specifier_tag_set):
7560         * specifier.c (Fcanonicalize_tag_set):
7561         * specifier.c (Fdefine_specifier_tag):
7562         * specifier.c (Fspecifier_tag_predicate):
7563         * specifier.c (check_valid_inst_list):
7564         * specifier.c (check_valid_spec_list):
7565         * specifier.c (decode_how_to_add_specification):
7566         * specifier.c (check_modifiable_specifier):
7567         * specifier.c (specifier_add_spec):
7568         * specifier.c (boolean_validate):
7569         * specifier.c (display_table_validate):
7570         [9].
7571
7572         * specifier.c (syms_of_specifier):
7573         Move some symbols to general-slots.h.
7574         [2].
7575
7576         * symbols.c:
7577         * symbols.c (Fmapatoms):
7578         * symbols.c (Fapropos_internal):
7579         Add GCPROs.
7580
7581         * symbols.c (set_default_buffer_slot_variable):
7582         * symbols.c (set_default_console_slot_variable):
7583         [1].
7584
7585         * symbols.c (defsymbol_massage_name_1):
7586         * symbols.c (defkeyword_massage_name):
7587         * symbols.c (deferror_1):
7588         * symbols.c (deferror):
7589         * symbols.c (deferror_massage_name_and_message):
7590         * symeval.h:
7591         * symeval.h (DEFSYMBOL):
7592         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7593
7594         * symbols.c (syms_of_symbols):
7595         [2].
7596
7597         * symsinit.h:
7598         * symsinit.h (init_win32): New.
7599         Also new is syms_of_dialog_mswindows.
7600
7601         * syswindows.h:
7602         Add new Unicode macros, missing Cygwin wide-char functions,
7603         convenience conversion macros for Qmswindows_tstr, macros for
7604         encapsulating required MSWin <-> Cygwin filename conversions,
7605         prototype for dynamically-extracted (not in NT 3.51) functions.
7606
7607         * toolbar-x.c:
7608         Mule-verify.
7609
7610         * tooltalk.c (Fadd_tooltalk_message_arg):
7611         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7612         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7613         [7].
7614
7615         * tooltalk.c (syms_of_tooltalk):
7616         [2].
7617
7618         * unexnt.c:
7619         * unexnt.c (unexec):
7620         Fix up headers, declaration of unexec() to be more standard.
7621
7622 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7623
7624         * offix.h: Revert change to guard macros - they're used in offix.c!
7625
7626 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7627
7628         * lisp.h: Defsubred Fdelete.
7629
7630         * console-msw.h:  (msprinter_default_printer): Added.
7631
7632         * console-msw.c (msprinter_canonicalize_console_connection):
7633         (msprinter_canonicalize_device_connection): Added.
7634
7635         * device-msw.c (msprinter_default_printer):
7636         (Fmswingows_get_default_printer):
7637         (signal_enum_priner_error):
7638         (Fmswingows_printer_list): Added.
7639
7640 2000-07-19  Martin Buchholz <martin@xemacs.org>
7641
7642         * XEmacs 21.2.35 is released.
7643
7644 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7645
7646         * select-x.c (x_handle_selection_request):
7647         Text selected in xemacs and pasted into xterm failed to appear.
7648         Spelling fixes and cosmetic changes.
7649
7650 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7651
7652         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7653         XEmacs frame (fix for doubling chars in dialog boxes).
7654
7655 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7656
7657         * select.c (select_convert_in, select_convert_out):
7658         Don't call intern() every time.
7659
7660         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7661         * select.c (vars_of_select): Initialise them.
7662
7663 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7664
7665         * select.c (selection-coercible-types): New.
7666
7667         * select.c (own-selection-internal):
7668         * select.c (get-selection-internal):
7669         MULE bug fix - these should default to COMPOUND_TEXT and not
7670         STRING for MULE. I think.
7671
7672         * select.c (select_convert_out): Use selection-coercible-types
7673         to find types that we can attempt to perform coercions on.
7674
7675 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7676
7677         * mule-wnnfns.c:
7678         * mule-canna.c:
7679         Add coding: cookie to identify encoding.
7680
7681         * mule-canna.c (CANNA_mode_keys): make static.
7682         Use proper prototypes, even for functions of no arguments.
7683         Remove external prototype for Fding().
7684
7685         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7686
7687         * select.c (syms_of_select): Add missing DEFSUBR.
7688
7689 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7690
7691         * select.c (get_selection_internal, own_selection_internal):
7692         Make the type default to STRING, rather than placing a nil type
7693         into Vselection_alist.
7694
7695 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7696
7697         * gpmevent.c (tty_selection_exists_p):
7698         * gpmevent.c (tty_own_selection):
7699         Updated parameter lists.
7700
7701 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7702
7703         * select.h (selection-alist): Removed declaration.
7704
7705         * select.h (get_local_selection):
7706         * select.c (get_local_selection):
7707         Made static.
7708
7709         * select.h (convert_selection): Removed declaration.
7710         * select.c (convert_selection): Removed.
7711         This function belongs in Lisp.
7712
7713         * select.h (select_convert_in): Declare.
7714         * select.h (select_convert_out): Declare.
7715         * select.c (select_convert_in): New.
7716         * select.c (select_convert_out): New.
7717         New conversion functions for other files to call.
7718
7719         * select.h (select_notify_buffer_kill): Declare.
7720         * select.c (select_notify_buffer_kill): New.
7721         New functions that get called from kill-buffer.
7722
7723         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7724         X-specific lisp code.
7725
7726         * select.h: Declare some of the lisp-visible functions for
7727         external use.
7728
7729         * select.c (clean_local_selection_data): Removed. This was
7730         a disgusting function, and previously should have been in
7731         select-x.c in any case. The functionality is now provided
7732         in select-convert-from-integer (select.el).
7733
7734         * select.c (available-selection-types): Fixed stupidity where
7735         INTEGER and ATOM got added twice. Also add STRING when we see an
7736         extent.
7737
7738         * select.c (get-selection-internal): Removed symbol stripping. No
7739         longer causes conversion when data comes from the internal cache.
7740
7741         * select.c (syms_of_select): Added new functions.
7742
7743         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7744         error checking - previously this called abort!
7745
7746         * select-x.c (x_own_selection): Changed comment.
7747
7748         * select-x.c (x_handle_selection_request): Use select_convert_out.
7749         Don't mess with selection-alist; it's an internal variable of select.c.
7750
7751         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7752
7753         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7754         rather than messing with selection-alist.
7755
7756         * select-msw.c (mswindows_get_foreign_selection):
7757         Use TO_INTERNAL_FORMAT rather than hacking.
7758
7759 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7760
7761         * process-unix.c (unix_open_multicast_group):
7762         (unix_open_multicast_group): Remove useless casts.
7763
7764 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7765
7766         * sound.c (Fplay_sound): Fix `unused variable' warning.
7767
7768         * emacs.c (main): Use correct type for _environ on SCO5.
7769
7770 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7771
7772         * console.h (own_selection_method):
7773         * console.h (selection_exists_p_method):
7774         * console.h (available_selection_types_method): New.
7775         * console.h (register_selection_data_type_method): New.
7776         * console.h (selection_data_type_name): New.
7777
7778         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7779         function & alist to track GlobalAlloc()'d handles that need
7780         releasing when the clipboard data gets replaced or emptied.
7781
7782         * event-msw.c (mswindows_wnd_proc): Call it.
7783
7784         * lisp.h, general.c (Qappend): New symbol representing a
7785         `how-to-add' mode.
7786
7787         * select.c (own-selection-internal):
7788         * select.c (selection-exists-p):
7789         * select.c (available-selection-types): New.
7790         * select.c (register-selection-data-type): New.
7791         * select.c (selection-data-type-name): New.  New functions to deal
7792         with device-specific selection data formats.
7793         * select.c (selection-converter-out-alist): Renamed.
7794         * select.c (selection-converter-in-alist): New.
7795         * select.c (selection-appender-alist): New.  Added new alists.
7796         * select.c (syms_of_select, vars_of_select): Added new symbols &
7797         variables.
7798         * select.c (get_local_selection): Split.
7799         * select.c: Removed spurious type checking - selections may now be
7800         of any type, not just strings.
7801         * select.c (own-selection-internal):
7802
7803         * select.h, select.c (convert_selection): New. Created
7804         convert_selection() function based on get_local_selection().
7805         * select.h, select.c (QCF_*): New symbols representing mswindows
7806         clipboard formats.
7807         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7808         symbols representing `how-to-add' modes.
7809
7810         * select-msw.c (x_sym_p): New.
7811         * select-msw.c (symbol_to_ms_cf): New.
7812         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7813         symbols & clipboard formats. Can also handle string names.
7814         * select-msw.c (mswindows_own_selection):
7815         * select-msw.c (mswindows_selection_exists_p):
7816         Added `data-type' parameter. Use it.
7817         * select-msw.c (mswindows_available_selection_types): New.
7818         * select-msw.c (mswindows_register_selection_data_type): New.
7819         * select-msw.c (mswindows_selection_data_type_name): New.
7820         * select-msw.c (mswindows_own_selection):
7821         * select-msw.c (mswindows_get_foreign_selection):
7822         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7823         * select-msw.c (console_create_select_mswindows): Added new methods.
7824         * select-msw.c (mswindows_destroy_selection): New.
7825         * select-msw.c (Vhandle_alist): New list.
7826         * select-msw.c (mswindows_own_selection):
7827
7828         * select-x.c (x_own_selection):
7829         * select-x.c (x_selection_exists_p):
7830         * select-x.c: Added some comments about maybe using new
7831         functionality.
7832         * select-x.c (x_own_selection):
7833
7834         * specifier.c: Remove definition of Qappend (now in general.c)
7835         * specifier.c (syms_of_specifier): Remove Qappend.
7836
7837 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7838
7839         * config.h.in: Add socklen_t.
7840
7841         * s/decosf4-0.h: No special compiler flags needed or desired.
7842         In particular, undefine _BSD for DEC OSF 4.0.
7843
7844 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7845
7846         * redisplay-msw.c (msprinter_frame_output_end): Added.
7847         (console_type_create_redisplay_mswindows): Referred the above.
7848
7849         * frame.c (setup_frame_without_minibuffer): Do not create a
7850         default minibuffer frame on a printer device.
7851
7852         * frame-msw.c (apply_dc_geometry): Added.
7853         (msprinter_start_page):
7854         (msprinter_init_frame_3):
7855         (msprinter_eject_page): Use it.
7856
7857         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7858         and removed residual duplex and orientation properties.
7859
7860 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7861
7862         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7863
7864         * unexalpha.c: Remove system prototypes from C sources!
7865
7866 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7867
7868         * eval.c: Remove references to M-x edit-options in DEFUNs for
7869         `defvar' and `defconst'.
7870
7871 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7872
7873         * config.h.in: Remove SMART_INCLUDE hackery.
7874
7875         PostgreSQL hacking:
7876         * config.h.in: Don't use SMART_INCLUDE.
7877
7878         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7879         * inline.c: Simply #include "postgresql.h"
7880         * postgresql.c:
7881         - Don't use SMART_INCLUDE
7882         - Use simply "const".
7883         - Use standard doc string conventions.
7884         - Use correct type for result of PQstatus.
7885
7886 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7887
7888         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7889
7890         C++ compilation changes.
7891         * config.h.in (EXTERN_C): Define.
7892         * config.h.in (not): This is also a C++ keyword.
7893         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7894         * cm.c: Use EXTERN_C.
7895         * redisplay-tty.c: Use EXTERN_C.
7896         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7897
7898 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7899
7900         * general.c: Remove duplicate definition for Qfunction.
7901
7902 2000-07-08  Ben Wing  <ben@xemacs.org>
7903
7904         * device-msw.c (msprinter_init_device):
7905         * device-msw.c (sync_printer_with_devmode):
7906         * device-msw.c (handle_devmode_changes):
7907         * device-msw.c (print_dialog_worker):
7908         * device-msw.c (Fmsprinter_apply_settings):
7909         * device-msw.c (hash_devmode):
7910         * device-msw.c (Fmsprinter_settings_despecialize):
7911         use Qmswindows_tstr, not Qctext.
7912
7913         * vm-limit.c (check_memory_limits):
7914         avoid infinite loop printing warning messages.
7915
7916 2000-07-05  Craig Lanning  <lanning@scra.org>
7917
7918         * Makefile.in.in: Add support for including the Windows resources
7919         when building with the cygwin and mingw targets.
7920
7921         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7922         not set or not correct.
7923         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7924         (init_initial_directory): Don't try to use $PWD on the
7925         WIN32_NATIVE target.
7926
7927         * s\cygwin32.h:
7928         [[Add -mwindows to eliminate console window.]] not required --ben
7929         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7930         (MAIL_USE_POP): removed; now handled by configure.
7931
7932         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7933         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7934         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7935         (MAIL_USE_POP): removed; now handled by configure.
7936         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7937         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7938         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7939         constant string.
7940         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7941         up from <winsock.h> via systime.h.
7942         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7943         (getpagesize): from Dan Holmsand, added.
7944         Added #endif which was left dangling by Ben's mega patch; added
7945         comment to help prevent this in the future.
7946
7947         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7948
7949 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7950
7951         * console-msw.h (struct mswindows_device): Removed unnecessary
7952         cached device geometry values.
7953         Added update_tick and an accessor macro.
7954         (Lisp_Devmode): Added lrecord declaration.
7955         (struct msprinter_device): Contain devmode as a Lisp object.
7956         Added mswindows_get_selected_frame_hwnd();
7957
7958         * console.h (struct console_methods): Indentation nitpicking.
7959
7960         * device-msw.c (mswindows_init_device): Do not initialize geometry
7961         cache. Initialize update tick.
7962         (mswindows_device_system_metrics): Ask the device for its geometry.
7963         (global_free_2_maybe):
7964         (devmode_to_hglobal):
7965         (handle_printer_changes):
7966         (ensure_not_printing):
7967         (print_dialog_worker):
7968         (Fmsprinter_print_setup_dialog):
7969         (Fmsprinter_print_dialog):
7970         (plist_get_margin):
7971         (plist_set_margin):
7972         (Fmsprinter_page_setup_dialog): Added functions.
7973         (sync_printer_with_devmode):
7974         (handle_devmode_changes):
7975         (Fmsprinter_get_settings):
7976         (Fmsprinter_select_settings):
7977         (Fmsprinter_apply_settings):
7978         (allocate_devmode):
7979         (Fmsprinter_settings_copy):
7980         (Fmsprinter_settings_despecialize):
7981         (print_devmode):
7982         (finalize_devmode):
7983         (equal_devmode):
7984         (hash_devmode): Added functions
7985         (syms_of_device_mswindows): Init devmode lrecord class.
7986
7987         * device.h: Added an exfun for find-device.
7988
7989         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7990         geometry; although, recreate the device compatible DC.
7991
7992         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7993         (msprinter_init_frame_3):
7994         (msprinter_frame_property):
7995         (msprinter_internal_frame_property_p):
7996         (msprinter_frame_properties):
7997         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7998         print job properties (will move to device settings).
7999
8000         * lisp.h: Added symbols.
8001
8002         * general.c (syms_of_general): Declared them.
8003
8004         * hash.c (string_hash): Added.
8005
8006         * lrecord.h (lrecord_type): Added devmode lrecord type.
8007
8008 2000-07-02  Mike Sperber <mike@xemacs.org>
8009
8010         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8011         FreeBSD 4.0.
8012
8013 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8014
8015         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8016         integer.
8017
8018 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8019
8020         * data.c (Fstring_to_number): Don't recognize floating point if
8021         base is not 10.
8022
8023 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8024
8025         * glyphs-widget.c (tab_control_query_geometry):
8026         (widget_query_geometry):
8027         (button_query_geometry):
8028         * glyphs.c (text_query_geometry):
8029         Enforce type correctness.
8030
8031 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8032
8033         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8034         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8035
8036 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8037
8038         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8039         conflicts with gcc's fixincluded version of FOO.h.
8040
8041         * glyphs.h (image_instance_geometry): Remove trailing `,'
8042
8043 2000-06-08  Mike Alexander  <mta@arbortext.com>
8044
8045         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8046         (shove_thread): Don't write the same output twice
8047         (make_ntpipe_output_stream): Increase priority of shove thread
8048         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8049         chance to run
8050         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8051         it.
8052
8053 2000-06-12  Ben Wing  <ben@xemacs.org>
8054
8055         * s\mingw32.h (sigset):
8056         * s\windowsnt.h (sigset):
8057         rename msw_ to mswindows_ for consistency with general convention.
8058
8059 2000-06-12  Ben Wing  <ben@xemacs.org>
8060
8061         * console-msw.c:
8062         * console-msw.c (mswindows_get_console_hwnd):
8063         * console-msw.c (mswindows_ensure_console_allocated):
8064         * console-msw.c (mswindows_hide_console):
8065         * console-msw.c (mswindows_show_console):
8066         * console-msw.c (mswindows_ensure_console_buffered):
8067         * console-msw.c (mswindows_output_console_string):
8068         * console-msw.c (mswindows_windows9x_p):
8069         * console-msw.h:
8070         * device-msw.c (mswindows_get_workspace_coords):
8071         * device-msw.c (mswindows_device_system_metrics):
8072         * dialog-msw.c (mswindows_popup_dialog_box):
8073         * event-msw.c (mswindows_wnd_proc):
8074         * frame-msw.c (mswindows_size_frame_internal):
8075         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8076         * menubar-msw.c (displayable_menu_item):
8077         * menubar-msw.c (mswindows_char_is_accelerator):
8078         * nt.c:
8079         * nt.c (mswindows_sigset):
8080         * nt.c (mswindows_sigrelse):
8081         * nt.c (mswindows_sigpause):
8082         * nt.c (mswindows_raise):
8083         * nt.c (timer_proc):
8084         * ntproc.c:
8085         * ntproc.c (find_child_console):
8086         * ntproc.c (sys_kill):
8087         * print.c:
8088         * print.c (std_handle_out_external):
8089         * process-nt.c (find_child_console):
8090         * process-nt.c (send_signal_the_95_way):
8091         * process-nt.c (ensure_console_window_exists):
8092         * process-nt.c (nt_create_process):
8093         * syssignal.h:
8094         rename msw_ to mswindows_ for consistency with general convention.
8095
8096         * emacs.c:
8097         * dumper.c:
8098         include nt.h, not syswindows.h.
8099
8100         * nt.c (mswindows_fstat):
8101         * nt.c (mswindows_stat):
8102         prefix mswindows_ instead of attempting to directly override the
8103         library functions.  fix declarations.
8104
8105         * nt.h:
8106         include syswindows.h.  move some sysdep.h stuff here.
8107
8108         * ntheap.h:
8109         include syswindows.h, not <windows.h>.
8110
8111         * ntplay.c:
8112         clean up headers.
8113
8114         * sysdep.c:
8115         clean up headers.
8116
8117         * sysdep.c (sys_fstat):
8118         * sysdep.c (sys_stat):
8119         call mswindows versions when appropriate.
8120
8121         * sysdep.h:
8122         move mswin decls to nt.h.
8123
8124         * syswindows.h:
8125         add long comment describing appropriate use of the various windows
8126         headers.
8127
8128 2000-06-11  Ben Wing  <ben@xemacs.org>
8129
8130         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8131
8132 2000-06-10  Ben Wing  <ben@xemacs.org>
8133
8134         * Makefile.in.in (release):
8135         Correction to make sure xemacs.exe always dumped when correct.
8136
8137         * alloca.c:
8138         * balloon_help.c:
8139         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8140
8141         * buffer.c (set_buffer_internal):
8142         [[[[2]]]]: Remove HAVE_FEP code.
8143
8144         * buffer.c (init_initial_directory):
8145         [3].
8146
8147         * bytecode.c:
8148         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8149         individual files.
8150
8151         * callproc.c:
8152         * callproc.c (call_process_cleanup):
8153         * callproc.c (Fold_call_process_internal):
8154         * callproc.c (child_setup):
8155         * callproc.c (getenv_internal):
8156         * callproc.c (init_callproc):
8157         * callproc.c (vars_of_callproc):
8158         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8159         __CYGWIN32__ -> CYGWIN.
8160         DOS_NT -> WIN32_NATIVE.
8161         Remove MSDOS support/references, converting to WIN32_NATIVE
8162           where correct.
8163         __MINGW32__ -> MINGW.
8164         Fix windows.h includes.
8165         Remove bogus HAVE_NTGUI.
8166
8167         * config.h.in:
8168         [2].
8169
8170         * console-msw.c:
8171         mswindows_message_outputted added for use in allowing startup
8172         errors on the console to be seen.
8173
8174         * console-msw.c (msw_ensure_console_allocated):
8175         * console-msw.c (msw_output_console_string):
8176         * console-msw.c (DHEADER):
8177         * console-msw.c (DOPAQUE_DATA):
8178         * console-msw.c (DEVENT):
8179         * console-msw.c (DCONS):
8180         * console-msw.c (DCONSCDR):
8181         * console-msw.c (DSTRING):
8182         * console-msw.c (DVECTOR):
8183         * console-msw.c (DSYMBOL):
8184         * console-msw.c (DSYMNAME):
8185         Fix warnings.
8186
8187         * console-stream.c (stream_init_console):
8188         Fix text/binary problems.
8189
8190         * device-msw.c:
8191         * device-msw.c (mswindows_finish_init_device):
8192         * device-msw.c (mswindows_delete_device):
8193         [1].
8194
8195         * device.c (handle_asynch_device_change):
8196         [3].
8197
8198         * dgif_lib.c:
8199         * dgif_lib.c (DGifOpenFileName):
8200         * dgif_lib.c (DGifOpenFileHandle):
8201         * dgif_lib.c (DGifGetLine):
8202         * dgif_lib.c (DGifGetPixel):
8203         Added config.h/lisp.h, fix up includes.
8204         [1].
8205
8206         * dired-msw.c:
8207         [4].
8208
8209         * dired.c:
8210         * dired.c (file_name_completion):
8211         * dired.c (Ffile_attributes):
8212         * dired.c (syms_of_dired):
8213         [1].
8214
8215         * dumper.c:
8216         * dumper.c (pdump_file_unmap):
8217         * dumper.c (pdump_load):
8218         [1].
8219
8220         * editfns.c:
8221         * editfns.c (Ftemp_directory):
8222         * editfns.c (user_login_name):
8223         * editfns.c (Fuser_real_login_name):
8224         * editfns.c (get_home_directory):
8225         [1].
8226
8227         * elhash.c (finish_marking_weak_hash_tables):
8228         [[[[5]]]]: Fix GCC warnings.
8229
8230         * emacs.c:
8231         * emacs.c (mswindows_handle_hardware_exceptions):
8232         * emacs.c (make_arg_list_1):
8233         * emacs.c (main_1):
8234         * emacs.c (Fkill_emacs):
8235         * emacs.c (Fdump_emacs):
8236         [1].
8237         Fix problems with nested crashes, add long comment.
8238
8239         * event-Xt.c (init_event_Xt_late):
8240         [1].
8241
8242         * event-msw.c:
8243         * event-msw.c (mswindows_dde_callback):
8244         * event-msw.c (mswindows_handle_sticky_modifiers):
8245         * event-msw.c (mswindows_wnd_proc):
8246         [1].
8247         [5].
8248
8249         * events.c (character_to_event):
8250         [1].
8251
8252         * fileio.c:
8253         * fileio.c (Ffile_name_directory):
8254         * fileio.c (Ffile_name_nondirectory):
8255         * fileio.c (directory_file_name):
8256         * fileio.c (Fexpand_file_name):
8257         * fileio.c (Fsubstitute_in_file_name):
8258         * fileio.c (Ffile_name_absolute_p):
8259         * fileio.c (check_executable):
8260         * fileio.c (Ffile_readable_p):
8261         * fileio.c (Ffile_accessible_directory_p):
8262         * fileio.c (Ffile_modes):
8263         * fileio.c (Funix_sync):
8264         * fileio.c (vars_of_fileio):
8265         [1]. [4].
8266
8267         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8268
8269         Expand getdefdir defn.
8270         Fix bogus rename() comment.
8271
8272         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8273         to use standard XEmacs include files, e.g. sysfile.h, rather
8274         than system-specific includes.
8275
8276         * fns.c:
8277         * fns.c (Fsubseq):
8278         [5]. [6].
8279
8280         * frame.c (vars_of_frame):
8281         [1].
8282
8283         * getloadavg.c:
8284         * getloadavg.c (getloadavg):
8285         [1]. [6].
8286         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8287         (We don't use it elsewhere in the code; just add a comment.)
8288
8289         * gif_io.c:
8290         [6].
8291         Add config.h.
8292
8293         * glyphs-msw.c:
8294         * glyphs-msw.c (mswindows_resource_instantiate):
8295         [1].
8296
8297         * glyphs-x.c (x_native_layout_instantiate):
8298         [5].
8299
8300         * gui-msw.c (Fmswindows_shell_execute):
8301         [1].
8302
8303         * insdel.c:
8304         [4].
8305
8306         * lisp.h:
8307         [4]. [5].
8308
8309         * lread.c (locate_file_in_directory_mapper):
8310         [1].
8311
8312         * lstream.c:
8313         [4].
8314
8315         * mem-limits.h:
8316         * mem-limits.h (get_lim_data):
8317         [1].
8318
8319         * menubar-msw.c:
8320         [4].
8321
8322         * ndir.h:
8323         [1].
8324
8325         * nt.c:
8326         * nt.c (getwd):
8327         * nt.c (closedir):
8328         * nt.c (rva_to_section):
8329         * nt.c (mswindows_executable_type):
8330         [1]. [6].
8331         Fix closedir() defn.
8332
8333         * nt.h:
8334         [[[[8]]]]: *_OK defs moved to sysfile.h.
8335
8336         * ntproc.c:
8337         [6]. [7].
8338
8339         * objects-x.c:
8340         [4].
8341
8342         * print.c:
8343         * print.c (std_handle_out_external):
8344         [1]. [4].
8345
8346         * process-nt.c:
8347         * process-nt.c (nt_create_process):
8348         [6].
8349         try to fix process quoting somewhat.
8350
8351         * process-unix.c (unix_create_process):
8352         [1].
8353
8354         * process.c:
8355         * process.c (vars_of_process):
8356         Add Vnull_device.
8357
8358         * process.h:
8359         [1].
8360
8361         * realpath.c:
8362         * realpath.c (xrealpath):
8363         [1].
8364
8365         * redisplay-tty.c (init_tty_for_redisplay):
8366         [3].
8367
8368         * redisplay.c:
8369         [4]. [6].
8370
8371         * scrollbar-msw.c:
8372         [4].
8373
8374         * sheap.c:
8375         * sheap.c (more_static_core):
8376         * sheap.c (report_sheap_usage):
8377         [5]. [6].
8378
8379         * signal.c:
8380         * signal.c (alarm_signal):
8381         [1]. [6].
8382
8383         * sound.c:
8384         [6].
8385
8386         * strftime.c:
8387         * strftime.c (zone_name):
8388         [1]. [5].
8389
8390         * symsinit.h (init_sunpro):
8391         [1].
8392
8393         * syscommctrl.h:
8394         commctrl.h not in Cygwin b20.1.
8395
8396         * sysdep.c:
8397         * sysdep.c (endif):
8398         * sysdep.c (sys_subshell):
8399         * sysdep.c (init_baud_rate):
8400         * sysdep.c (emacs_get_tty):
8401         * sysdep.c (emacs_set_tty):
8402         * sysdep.c (tty_init_sys_modes_on_device):
8403         * sysdep.c (init_system_name):
8404         * sysdep.c (sys_open):
8405         * sysdep.c (interruptible_open):
8406         * sysdep.c (sys_fopen):
8407         * sysdep.c (sys_mkdir):
8408         * sysdep.c (sys_rename):
8409         * sysdep.c (get_process_times_1):
8410         [1]. [6].
8411
8412         * sysdep.h:
8413         [1].
8414
8415         * sysdir.h:
8416         * sysdir.h (DIRENTRY_NONEMPTY):
8417         [1]. [6].
8418
8419         * sysdll.c (dll_init):
8420         * sysdll.h:
8421         [1].
8422
8423         * sysfile.h:
8424         [1]. [6]. [8].
8425         added text/binary defs.
8426
8427         * sysfloat.h:
8428         [1].
8429
8430         * sysproc.h:
8431         * sysproc.h (EDESTADDRREQ):
8432         * sysproc.h (poll_fds_for_input):
8433         [1]. [6].
8434
8435         * syspwd.h:
8436         [6].
8437
8438         * syssignal.h:
8439         [1].
8440
8441         * systime.h:
8442         [1]. [6].
8443
8444         * systty.h:
8445         [1].
8446
8447         * syswindows.h:
8448         [1].
8449         Always define WIN32_LEAN_AND_MEAN.
8450
8451         * unexcw.c (unexec):
8452         [5].
8453
8454         * unexec.c:
8455         * unexec.c (copy_text_and_data):
8456         * unexec.c (adjust_lnnoptrs):
8457         [1].
8458
8459         * unexnt.c:
8460         * unexnt.c (_start):
8461         [1].
8462
8463 2000-06-07  Ben Wing  <ben@xemacs.org>
8464
8465         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8466         was used only as a model.  We've long since extracted any useful
8467         logic or code out of this. (I just did an exhaustive search.)
8468
8469         * s\msdos.h: Removed.
8470
8471         * s\windows95.h: Removed.
8472
8473 2000-06-10  Ben Wing  <ben@xemacs.org>
8474
8475         * s\cygwin32.h:
8476         [1]. [5].
8477         Don't use extern with fun defs.
8478
8479         * s\mingw32.h:
8480         [1]. [7].
8481         Remove nt\inc include.
8482         Remove getdisk, getdefdir. (The former is unused, the latter
8483         expanded in fileio.h.)
8484
8485         * s\windowsnt.h:
8486         * s\windowsnt.h (WIN32_NATIVE):
8487         * s\windowsnt.h (HAVE_STRCASECMP):
8488         [1]. [7].
8489         Add long comment about preprocessor changes.
8490         Remove getdisk, getdefdir. (The former is unused, the latter
8491         expanded in fileio.h.)
8492
8493 2000-06-10  Ben Wing  <ben@xemacs.org>
8494
8495         * m\arm.h:
8496         * m\delta.h:
8497         * m\intel386.h:
8498         * m\sequent.h:
8499         * m\template.h:
8500         * m\windowsnt.h:
8501         [1].
8502         Remove bogus/unused NO_SOCK_SIGIO.
8503
8504 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8505
8506         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8507         not an Emchar.
8508
8509 2000-06-04  Mike Sperber <mike@xemacs.org>
8510
8511         * casetab.c (set_case_table): For `set-standard-case-table',
8512         actually deposit the new case tables where the rest of XEmacs can
8513         see them.
8514
8515 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8516
8517         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8518
8519 2000-06-05  Ben Wing  <ben@xemacs.org>
8520
8521         * callproc.c (child_setup): Don't do close_load_descs() under
8522         MS Windows.  Put in a comment explaining why.
8523
8524 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8525
8526         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8527         Toolkit shell" which breaks `kill-compilation' on Windows NT
8528         native, retaining STDERR handling improvements.
8529
8530 2000-06-01  Andreas Jaeger  <aj@suse.de>
8531
8532         * s/s390.h: Support for S390, based on a patch by Martin
8533         Schwidefsky <schwidefsky@de.ibm.com>.
8534
8535 2000-05-30  Andy Piper  <andy@xemacs.org>
8536
8537         * window.c (allocate_window):
8538         (make_dummy_parent):
8539         (Fset_window_configuration): use new hashtable type.
8540
8541         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8542         (struct image_instantiator_methods):
8543         (struct Lisp_Image_Instance): make instance geometry signed.
8544
8545         * glyphs.c (instantiate_image_instantiator):
8546         (image_instance_query_geometry):
8547         (image_instance_layout):
8548         (image_instance_layout):
8549         (query_string_geometry):
8550         (text_query_geometry):
8551         (image_instantiate):
8552         (image_instantiate):
8553         (cache_subwindow_instance_in_frame_maybe):
8554         (subwindow_query_geometry): make instance geometry signed.
8555
8556         * glyphs-widget.c (widget_query_geometry):
8557         (widget_layout):
8558         (button_query_geometry):
8559         (tree_view_query_geometry):
8560         (tab_control_query_geometry):
8561         (layout_query_geometry):
8562         (layout_layout):
8563         (native_layout_layout): make instance geometry signed.
8564
8565 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8566
8567         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8568         constant.
8569
8570         * general.c (syms_of_general): Add Qfull_assoc symbol.
8571
8572         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8573         correctly.
8574         (decode_weak_list_type): Decode full-assoc type.
8575         (encode_weak_list_type): Encode full-assoc type.
8576         (Fmake_weak_list): Update doc string.
8577
8578 2000-05-30  Andy Piper  <andy@xemacs.org>
8579
8580         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8581
8582         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8583         (decode_hash_table_weakness): ditto.
8584         (Fhash_table_weakness): ditto.
8585         (Fhash_table_type): ditto.
8586         (finish_marking_weak_hash_tables): ditto.
8587         (hash_table_weakness_validate): ditto.
8588         (syms_of_elhash): ditto.
8589
8590 2000-05-28  Martin Buchholz <martin@xemacs.org>
8591
8592         * XEmacs 21.2.34 is released.
8593
8594 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8595
8596         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8597         start cache.
8598         (updating_line_start_cache): Gone.
8599         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8600         generic code to force a minimum of 1 line laid out in the
8601         CMOTION_DISP case.
8602
8603 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8604
8605         * glyphs.c (instantiate_image_instantiator): Check for initialized
8606         height & width no longer special cases IMAGE_NOTHING.
8607         (nothing_instantiate): Set height and width of instance.
8608
8609 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8610
8611         * unexelf.c (unexec): Search for ".data" section.
8612         Initialize new_data2_offset from old_data_index.
8613         Remove redundant check for ElfW.
8614
8615 2000-05-23  Andy Piper  <andy@xemacs.org>
8616
8617         * glyphs.c (get_image_instantiator_governing_domain): allow more
8618         specific domains as the governing domain rather than expecting an
8619         exact match. This fixes problems with layouts.
8620
8621 2000-05-22  Andy Piper  <andy@xemacs.org>
8622
8623         * redisplay-output.c (compare_runes): check for non-images
8624
8625         * glyphs.c (set_glyph_dirty_p): ditto.
8626         (update_glyph_cachel_data): ditto.
8627
8628         * glyphs-widget.c (layout_post_instantiate): ditto.
8629         (layout_post_instantiate): ditto.
8630
8631         * event-msw.c (mswindows_wnd_proc): warning removal.
8632
8633 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8634
8635         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8636
8637         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8638
8639         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8640
8641         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8642         (mswindows_executable_type): mingw32 now has enough headers for
8643         this to work.
8644
8645 2000-05-20  Andy Piper  <andy@xemacs.org>
8646
8647         * console-msw.c (mswindows_output_last_error): ; -> ,
8648
8649 2000-05-12  Andy Piper  <andy@xemacs.org>
8650
8651         * console-msw.c (FROB): compare ints with ints.
8652
8653 2000-05-11  Andy Piper  <andy@xemacs.org>
8654
8655         * glyphs-x.c (x_finalize_image_instance): make minimal build
8656         happy.
8657
8658 2000-05-20  Ben Wing  <ben@xemacs.org>
8659
8660         * event-Xt.c:
8661         * event-Xt.c (vars_of_event_Xt):
8662         move modifier-keys-are-sticky to event-stream.c.
8663
8664         * event-msw.c:
8665         * event-msw.c (mswindows_enqueue_mouse_button_event):
8666         * event-msw.c (key_needs_default_processing_p):
8667         * event-msw.c (XEMSW_LCONTROL):
8668         * event-msw.c (mswindows_handle_sticky_modifiers):
8669         * event-msw.c (FROB):
8670         * event-msw.c (clear_sticky_modifiers):
8671         * event-msw.c (output_modifier_keyboard_state):
8672         * event-msw.c (output_alt_keyboard_state):
8673         * event-msw.c (mswindows_wnd_proc):
8674         * event-msw.c (mswindows_modifier_state):
8675         * event-msw.c (emacs_mswindows_handle_magic_event):
8676         implement sticky modifiers.
8677
8678         * event-stream.c:
8679         * event-stream.c (vars_of_event_stream):
8680         move modifier-keys-are-sticky here.
8681
8682         * lisp.h:
8683         add CHECK_FUNCTION.
8684
8685         * rangetab.c:
8686         implement map-range-table.
8687
8688
8689 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8690
8691         * redisplay-tty.c (reset_tty_modes):
8692         (tty_redisplay_shutdown): Adjust argument type to
8693         tty_frame_output_end.
8694
8695 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8696
8697         * eval.c (Fbacktrace): Don't output a line with only right
8698         parenthesis.
8699
8700 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8701
8702         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8703         (Fpq_reset_poll): Ditto.
8704
8705 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8706
8707         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8708
8709 2000-05-16  Ben Wing  <ben@xemacs.org>
8710
8711         * buffer.c:
8712         * buffer.c (dfc_convert_to/from_internal_format):
8713         * buffer.c (reinit_vars_of_buffer):
8714         Fix conversion functions to allow reentrancy.
8715
8716         * console-msw.c:
8717         * console-msw.c (mswindows_output_last_error):
8718         New fun, generally useful -- output a human-readable
8719         version of GetLastError() on the console.
8720
8721         * console-msw.h:
8722         * console-msw.h (struct mswindows_frame):
8723         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8724
8725         * console-stream.c (stream_output_begin):
8726         * console-stream.c (stream_output_end):
8727         * console-stream.c (stream_output_vertical_divider):
8728         * console-stream.c (stream_clear_region):
8729         * console-stream.c (stream_flash):
8730         * console-stream.c (console_type_create_stream):
8731         Delete blank stream methods, not needed.
8732
8733         * console.h (struct console_methods):
8734         Split begin/end methods into window and frame.
8735
8736         * event-msw.c:
8737         * event-msw.c (mswindows_handle_paint):
8738         * event-msw.c (output_alt_keyboard_state):
8739         * event-msw.c (mswindows_wnd_proc):
8740         * event-msw.c (vars_of_event_mswindows):
8741         Comment about problems with ignored-expose.
8742         Define mswindows-debug-events; not really implemented.
8743
8744         * frame-msw.c (mswindows_init_frame_1):
8745         random cleanups.
8746
8747         * glyphs-msw.c:
8748         * glyphs-msw.c (begin_defer_window_pos):
8749         * glyphs-msw.c (mswindows_unmap_subwindow):
8750         * glyphs-msw.c (mswindows_map_subwindow):
8751         * glyphs-msw.c (mswindows_resize_subwindow):
8752         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8753
8754         * glyphs.c (make_image_instance_1):
8755         Fix crash.
8756
8757         * gutter.c (Fredisplay_gutter_area):
8758         Use new begin/end methods.
8759
8760         * lisp.h (Dynarr_new2):
8761         New creation fun.
8762
8763         * redisplay-msw.c:
8764         * redisplay-msw.c (mswindows_frame_output_begin):
8765         * redisplay-msw.c (mswindows_frame_output_end):
8766         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8767         New begin/end methods -- handle DeferWindowPos.
8768
8769         * redisplay-output.c (redisplay_move_cursor):
8770         * redisplay-output.c (redraw_cursor_in_window):
8771         * redisplay-output.c (redisplay_update_line):
8772         * redisplay-output.c (redisplay_output_window):
8773         New begin/end methods.
8774
8775         * redisplay-tty.c:
8776         * redisplay-tty.c (tty_frame_output_begin):
8777         * redisplay-tty.c (tty_frame_output_end):
8778         * redisplay-tty.c (console_type_create_redisplay_tty):
8779         New begin/end methods.
8780
8781         * redisplay-x.c:
8782         * redisplay-x.c (x_window_output_begin):
8783         * redisplay-x.c (x_window_output_end):
8784         * redisplay-x.c (console_type_create_redisplay_x):
8785         New begin/end methods.
8786
8787         * redisplay.c (redisplay_frame):
8788         * redisplay.c (Fredisplay_echo_area):
8789         New begin/end methods.
8790         use MAYBE_DEVMETH for clear_frame; it may not exist.
8791
8792         * window.h (WINDOW_XFRAME):
8793         WINDOW_XFOO macros -- get locale and decode struct pointer.
8794
8795
8796 2000-05-12  Ben Wing  <ben@xemacs.org>
8797
8798         * emacs.c:
8799         * emacs.c (ensure_no_quitting_from_now_on):
8800         * emacs.c (fatal_error_signal):
8801         * emacs.c (mswindows_handle_hardware_exceptions):
8802         * emacs.c (main):
8803         * emacs.c (Fkill_emacs):
8804         * emacs.c (shut_down_emacs):
8805         * emacs.c (assert_failed):
8806         various improvements in fatal error handling.
8807
8808         * eval.c:
8809         move preparing_for_armageddon to emacs.c.
8810
8811         * lisp.h:
8812         declare fatal_error_in_progress.
8813
8814         * print.c:
8815         * print.c (std_handle_out_external):
8816         * print.c (std_handle_out_va):
8817         * print.c (stderr_out):
8818         * print.c (stdout_out):
8819         use console under mswin when no standard output.
8820         don't do code conversion during fatal error.
8821
8822         * scrollbar.c (Fscrollbar_page_up):
8823         * scrollbar.c (Fscrollbar_page_down):
8824         fix missing else.  reindent.
8825
8826 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8827
8828         Emergency fix.
8829
8830         * glyphs.h (GLYPH_CACHEL_DESCENT):
8831         (GLYPH_CACHEL_DESCENT):
8832         (GLYPH_CACHEL_DESCENT):
8833         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8834         used in case these are inline functions.
8835         Use more absurd values to error check.
8836
8837         include window.h for error check functions.
8838
8839 2000-05-11  Ben Wing  <ben@xemacs.org>
8840
8841         * cmdloop.c (Freally_early_error_handler):
8842         Display message box under windows; otherwise, message will disappear
8843         before it can be viewed.
8844
8845         * console-msw.c:
8846         * console-msw.c (Fmswindows_message_box):
8847         * console-msw.c (FROB):
8848         * console-msw.c (syms_of_console_mswindows):
8849         Define new fun `mswindows-message-box'.
8850         #### I will merge this into `popup-dialog-box'; just give me
8851         a bit of time.
8852
8853         * general.c:
8854         * general.c (syms_of_general):
8855         Some new symbols used in `mswindows-message-box'.
8856
8857         * glyphs.c:
8858         * glyphs.c (Fset_image_instance_property):
8859         put warning in this fun.
8860
8861         * glyphs.h:
8862         * glyphs.h (GLYPH_CACHEL_WIDTH):
8863         * glyphs.h (GLYPH_CACHEL_ASCENT):
8864         * glyphs.h (GLYPH_CACHEL):
8865         * glyphs.h (GLYPH_CACHEL_GLYPH):
8866         define error-checking versions to try to catch a bug i've seen --
8867         redisplay gets in an infinite loop because the glyph width of the
8868         continuation glyph is 65535.
8869
8870         * lisp.h:
8871         Extern message-box stuff.
8872
8873         * window.c (allocate_window):
8874         * window.c (make_dummy_parent):
8875         * window.c (Fset_window_configuration):
8876         Use EQUAL not EQ for subwindow caches to make them work a bit
8877         better. (Something is still very broken.)
8878
8879
8880 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8881
8882         * glyphs.c (image_instantiate): Suppress gcc warnings.
8883         (Fmake_image_instance): Fix doc string.
8884         * specifier.c (Fmake_specifier): Ditto.
8885
8886 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8887
8888         * paths.h.in (PATH_LOCK): Removed.
8889         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8890         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8891
8892 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8893
8894         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8895         Document (featurep '(and xemacs 21.02)).
8896
8897 2000-05-09  Ben Wing  <ben@xemacs.org>
8898
8899         * buffer.c (complex_vars_of_buffer):
8900         update modeline-format doc.
8901
8902         * device.h:
8903         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8904
8905         * emacs.c:
8906         timeline of all released versions of Emacs, for use in creating
8907         authorship comments and in synching up.
8908
8909         * glyphs-widget.c (image_instantiator_buttons):
8910         * glyphs-widget.c (image_instantiator_edit_fields):
8911         * glyphs-widget.c (image_instantiator_combo_box):
8912         * glyphs-widget.c (image_instantiator_scrollbar):
8913         * glyphs-widget.c (image_instantiator_progress_guage):
8914         * glyphs-widget.c (image_instantiator_tree_view):
8915         * glyphs-widget.c (image_instantiator_tab_control):
8916         * glyphs-widget.c (image_instantiator_labels):
8917         * glyphs-widget.c (image_instantiator_layout):
8918         * glyphs-widget.c (image_instantiator_native_layout):
8919         rename decode_domain method to governing_domain.
8920
8921         * glyphs.c:
8922         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8923         * glyphs.c (add_entry_to_device_ii_format_list):
8924         make sure we don't put an entry more than once into the list.
8925         * glyphs.c (check_instance_cache_mapper):
8926         *************************************************************
8927         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8928         HAVE BEEN GETTING.
8929         *************************************************************
8930         * glyphs.c (get_image_instantiator_governing_domain):
8931         clean up, expand on new concept of governing domain.
8932         * glyphs.c (instantiate_image_instantiator):
8933         * glyphs.c (allocate_image_instance):
8934         use governing_domain instead of cache_domain in naming.
8935         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8936         * glyphs.c (make_image_instance_1):
8937         * glyphs.c (Fmake_image_instance):
8938         allow for any domain (not just device), and process the
8939         governing domain correctly.  very big doc fix.
8940         * glyphs.c (Fimage_instance_domain):
8941         new primitive, to retrieve the governing domain of an image instance.
8942         * glyphs.c (image_instantiate):
8943         use new governing_domain stuff.  this fixes a crash you could get
8944         by instantiating certain widget glyphs in frame locales. (should
8945         signal an error instead of crashing.)
8946         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8947         * glyphs.c (Fglyphp): clean up doc.
8948         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8949         * glyphs.c (syms_of_glyphs):
8950         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8951         * glyphs.c (image_instantiator_format_create): add some comments about
8952         bogus code.
8953         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8954         for current-display-table. (Apparently Hrjove implemented in 1998 a
8955         design I wrote up in 1996, but didn't update the doc string.)
8956
8957         * glyphs.h: clean up a doc string.
8958         * glyphs.h (governing_domain):
8959         * glyphs.h (struct image_instantiator_methods):
8960         changes for governing_domain stuff.
8961
8962         * gutter.c:
8963         * gutter.c (Fgutter_specifier_p):
8964         * gutter.c (Fgutter_size_specifier_p):
8965         * gutter.c (Fgutter_visible_specifier_p):
8966         * objects.c:
8967         * objects.c (Fcolor_specifier_p):
8968         * objects.c (Ffont_specifier_p):
8969         * objects.c (Fface_boolean_specifier_p):
8970         doc strings moved to make-*-specifier.
8971
8972         * redisplay.c (add_disp_table_entry_runes_1):
8973         * redisplay.c (generate_fstring_runes):
8974         * redisplay.c (screen):
8975         add random comments and doc strings.
8976
8977         * specifier.c:
8978         * specifier.c (Fmake_specifier):
8979         major overhaul of this doc string.
8980
8981         * specifier.c (Fvalid_specifier_domain_p):
8982         comment about the bogosity of image instances being domains.
8983         * specifier.c (decode_domain):
8984         now non-static, used in glyphs.c.
8985         * specifier.c (specifier_instance):
8986         comment about the bogosity of image instances being domains.
8987         * specifier.c (Fgeneric_specifier_p):
8988         move doc string to make-generic-specifier.
8989         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8990         rebackslashify.
8991
8992         * specifier.h:
8993         * specifier.h (DOMAIN_FRAME):
8994         * specifier.h (DOMAIN_LIVE_P):
8995         * specifier.h (DOMAIN_XDEVICE):
8996         rebackslashify.
8997         add comments about problems with these macros.
8998         prototype for decode_domain.
8999
9000         * toolbar.c:
9001         * toolbar.c (Ftoolbar_specifier_p):
9002         move doc string to `make-toolbar-specifier'.
9003
9004         * window.c (window_unmap_subwindows_cache_mapper):
9005         *************************************************************
9006         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9007         HAVE BEEN GETTING.
9008         *************************************************************
9009
9010 2000-05-09  Andy Piper  <andy@xemacs.org>
9011
9012         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9013
9014         * window.c (Fset_window_configuration): reset the frame subwindow
9015         cache and re-initialize the window subwindow caches.
9016
9017         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9018
9019 2000-05-09  Ben Wing  <ben@xemacs.org>
9020
9021         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9022         DWORD.
9023
9024 2000-04-26  Mike Woolley  <mike@bulsara.com>
9025
9026         * ntheap.c: Changed recreate_heap to limit the amount reserved
9027         for the heap to that which is actually available. Also now
9028         displays a message box (with some dignostics) in the event that
9029         it still can't start.
9030
9031 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9032
9033         * callproc.c (Fold_call_process_internal): GCPRO path
9034
9035 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9036
9037         Patch by Bill Perry.
9038
9039         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9040         back data instead of #ifdef.
9041         (Fscrollbar_page_down): ditto.
9042
9043 2000-05-07  Ben Wing  <ben@xemacs.org>
9044
9045         * buffer.h:
9046         Kludge for defining Qmswindows_tstr.
9047
9048         * nt.c:
9049         * nt.c (open_input_file):
9050         * nt.c (open_output_file):
9051         * nt.c (rva_to_section):
9052         * nt.c (mswindows_executable_type):
9053         Move all memory-mapped-file routines here (some were in unexnt.c,
9054         which is bad because they are used by process-nt.c, and unexnt
9055         won't be around when portable dumping).  Synched the above routines
9056         with FSF 20.6.
9057
9058         * nt.h:
9059         Removed ifdef'd out bogus code.
9060         Fixed some prototypes.
9061
9062         * nt.h (file_data):
9063         * nt.h (OFFSET_TO_RVA):
9064         * nt.h (RVA_TO_OFFSET):
9065         * nt.h (RVA_TO_PTR):
9066         Moved the memory-mapped-file structures, macros and prototypes
9067         here, to parallel nt.c.  ntheap.h should really be removed
9068         entirely, and it's a non-portable-dumper specific file.
9069
9070         * ntheap.h (round_to_next):
9071         Moved the memory-mapped-file structures, macros and prototypes
9072         to nt.h.
9073
9074         * ntproc.c (compare_env):
9075         Moved rva_to_section and mswindows_executable_type to nt.c.
9076         Moved compare_env to process-nt.c.
9077         ntproc.c will die, one day.
9078
9079         * ntproc.c (sys_spawnve):
9080         Account for win32_ -> mswindows_.
9081
9082         * process-nt.c:
9083         * process-nt.c (struct nt_process_data):
9084         * process-nt.c (ensure_console_window_exists):
9085         * process-nt.c (compare_env):
9086         * process-nt.c (nt_create_process):
9087         * process-nt.c (nt_kill_process_by_pid):
9088         * process-nt.c (syms_of_process_nt):
9089         * process-nt.c (vars_of_process_nt):
9090         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9091         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9092         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9093         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9094         Move compare_env here from ntproc.c.
9095
9096         * process.c (Fprocess_send_region):
9097         Takes an optional fourth argument, BUFFER, which should fix some
9098         problems with call-process.
9099
9100         * syscommctrl.h:
9101         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9102
9103         * syswindows.h:
9104         Move ICC_BAR_CLASSES to syscommctrl.h.
9105         Add preliminary macros for MSWindows/Mule.  More to come.
9106
9107         * unexnt.c:
9108         * unexnt.c (unexec):
9109         open_output_file moved to nt.c.
9110
9111
9112 2000-05-05  Andy Piper  <andy@xemacs.org>
9113
9114         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9115         instance from the frame cache also since GC may catch up too late
9116         to make frame deletion sane.
9117
9118 2000-05-04  Andy Piper  <andy@xemacs.org>
9119
9120         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9121         (x_finalize_image_instance): ungcpro on deletion.
9122
9123         * glyphs.c (image_instantiator_format_create): give pointers a
9124         query geometry method so that the geometry is at least set.
9125
9126         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9127         initialize layouts if using widgets.
9128
9129 2000-05-03  Andy Piper  <andy@xemacs.org>
9130
9131         * nt.c: remove bogus reference to sysmmsystem.h
9132
9133         * gui-x.c (popup_selection_callback): fix no selection abort.
9134
9135 2000-05-02  Andy Piper  <andy@xemacs.org>
9136
9137         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9138         (mswindows_widget_instantiate): ditto.
9139
9140         * glyphs-widget.c (initialize_widget_image_instance): initialize
9141         children correctly.
9142         (widget_instantiate): cope with children and items in the same
9143         instance.
9144
9145         * glyphs.c (mark_image_instance): cope with children as a first
9146         class member.
9147         (image_instance_equal): ditto.
9148         (image_instance_hash): ditto.
9149         (image_instance_changed): ditto.
9150
9151 2000-04-30  Andy Piper  <andy@xemacs.org>
9152
9153         * glyphs.c (subwindow_query_geometry): new function. Return some
9154         defaults.
9155         (subwindow_instantiate): don't assign dimensions if none have been
9156         given.
9157         (image_instantiator_format_create): add subwindow_query_geometry.
9158         (print_image_instance): cope with layouts as widgets.
9159
9160 2000-04-29  Andy Piper  <andy@xemacs.org>
9161
9162         * frame.c (delete_frame_internal): call
9163         free_frame_subwindow_instance_cache so that all subwindows are
9164         finalized before their parent.
9165         (mark_frame): remove subwindow_cachels.
9166         (Fmake_frame): remove subwindow_cachel manipulation.
9167         (allocate_frame_core): subwindow_instance_cache is a weak list.
9168         (delete_frame_internal): set subwindow_instance_cache to nil.
9169
9170         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9171         finalization safe.
9172         (mswindows_finalize_image_instance): use the device
9173         not the domain as the domain may have died already.
9174
9175         * glyphs-x.c (x_finalize_image_instance): ditto.
9176         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9177         HEIGHT.
9178
9179         * redisplay-output.c (redisplay_unmap_subwindows): update for
9180         subwindow instance cache as a weak list.
9181         (redisplay_unmap_subwindows_maybe): ditto.
9182         (redisplay_unmap_subwindows_except_us): ditto.
9183
9184         * glyphs.c (unmap_subwindow): error checking will check the domain
9185         so don't deal with it here. Don't use cachels anymore.
9186         (map_subwindow): ditto.
9187         (update_subwindow_cachel_data): remove old accessor names.
9188         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9189         (Fresize_subwindow): don't update cachel.
9190         (mark_subwindow_cachels):
9191         (update_subwindow_cachel_data):
9192         (add_subwindow_cachel):
9193         (get_subwindow_cachel_index):
9194         (update_subwindow_cachel):
9195         (reset_subwindow_cachels):
9196         (mark_subwindow_cachels_as_not_updated): deleted.
9197         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9198         subwindow instance to the frame cache.
9199         (find_matching_subwindow): update for subwindow instance cache as
9200         a weak list.
9201         (update_widget_instances): ditto.
9202         (image_instance_type_to_mask):inlined.
9203         (free_frame_subwindow_instance_cache): new function. finalize all
9204         subwindows that are instantiated.
9205
9206         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9207         of cachel information.
9208         (IMAGE_INSTANCE_DISPLAY_X):
9209         (IMAGE_INSTANCE_DISPLAY_Y):
9210         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9211         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9212         (XIMAGE_INSTANCE_DISPLAY_X):
9213         (XIMAGE_INSTANCE_DISPLAY_Y):
9214         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9215         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9216         remove subwindow_cachel structure and function references.
9217         (image_instance_type_to_mask): inline from glyphs.c
9218
9219         * redisplay.c (redisplay_frame): remove subwindow_cachel
9220         references.
9221
9222         * frame.h (struct frame): remove subwindow_cachels.
9223         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9224
9225         * frameslots.h: add subwindow_instance_cache.
9226
9227         * window.c (replace_window): check subwindow cache of replacement.
9228         (window_unmap_subwindows_cache_mapper):
9229         (window_unmap_subwindows): new functions. Unmap all subwindows
9230         cached on this window.
9231         (mark_window_as_deleted): unmap all subwindows.
9232
9233 2000-04-27  Andy Piper  <andy@xemacs.org>
9234
9235         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9236
9237         * glyphs-widget.c (widget_layout): return something.
9238         (layout_layout): return something. Fail if not initialized.
9239         (layout_query_geometry): ditto.
9240         (image_instantiator_native_layout): new function. Initialized the
9241         native layout type.
9242         (widget_instantiate): don't do layout stuff here.
9243
9244         * glyphs.c (instantiate_image_instantiator): reorded calling or
9245         instantiate and post_instantiate with layout in between.
9246         (image_instance_layout): be more selective about deciding whether
9247         the layout has been done or not.
9248
9249         * glyphs.h (struct image_instantiator_methods): return a value
9250         from layout_method.
9251
9252 2000-04-26  Andy Piper  <andy@xemacs.org>
9253
9254         * glyphs.c (allocate_image_instance): make initial width and
9255         height unspecified. Set initialized to 0.
9256
9257         * syscommctrl.h new file. Encapsulates commctrl.h.
9258
9259         * syswindows.h new file. Encapsulates windows.h.
9260
9261         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9262         * nt.c: ditto.
9263         * console-msw.h: ditto.
9264
9265         * redisplay-tty.c (tty_output_display_block): remove layout references.
9266
9267         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9268         window handle rather than just the frame.
9269
9270         * glyphs.c (mark_image_instance): remove layout references.
9271         (print_image_instance): ditto.
9272         (image_instance_equal): ditto.
9273         (image_instance_hash): ditto.
9274         (decode_image_instance_type): ditto.
9275         (encode_image_instance_type): ditto.
9276         (image_instantiate): ditto.
9277         (allocate_glyph): ditto.
9278         (Fimage_instance_height): ditto.
9279         (Fimage_instance_width): ditto.
9280         (update_subwindow): ditto.
9281
9282         * redisplay-x.c (x_output_display_block): recode for layouts as
9283         widgets.
9284
9285         * redisplay-output.c (redisplay_output_layout): recode for layouts
9286         as widgets.
9287         (compare_runes): remove layout references.
9288
9289         * redisplay-msw.c (mswindows_output_display_block): recode for
9290         layouts as widgets.
9291
9292         * glyphs-widget.c (image_instantiator_layout): remove
9293         layout_possible_dest_types.
9294         (layout_possible_dest_types): deleted.
9295
9296         * glyphs.h (image_instance_type): remove layout references.
9297         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9298         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9299         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9300
9301 2000-04-25  Andy Piper  <andy@xemacs.org>
9302
9303         * glyphs-widget.c (image_instantiator_buttons):
9304         (image_instantiator_edit_fields):
9305         (image_instantiator_combo_box):
9306         (image_instantiator_scrollbar):
9307         (image_instantiator_progress_guage):
9308         (image_instantiator_tree_view):
9309         (image_instantiator_tab_control):
9310         (image_instantiator_labels):
9311         (image_instantiator_layout): call default post_instantiate method.
9312         (widget_post_instantiate): new function. Simply lays out the
9313         widgets.
9314
9315         * glyphs.h (struct image_instantiator_methods): add
9316         post_instantiate method.
9317
9318         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9319         method calls.
9320
9321 2000-04-23  Andy Piper  <andy@xemacs.org>
9322
9323         * glyphs.h (struct image_instantiator_methods): add
9324         decode_domain_method.
9325         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9326         derived from the domain.
9327         (IMAGE_INSTANCE_FRAME): new accessor.
9328         (XIMAGE_INSTANCE_FRAME): ditto.
9329
9330         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9331         instead of _SUBWINDOW_FRAME.
9332         (finalize_image_instance): ditto.
9333         (Fimage_instance_foreground): ditto.
9334         (Fimage_instance_background): ditto.
9335         (image_instantiate): ditto.
9336         (update_subwindow_cachel): ditto.
9337         (update_subwindow): ditto.
9338         (unmap_subwindow): ditto.
9339         (map_subwindow): ditto
9340         (subwindow_instantiate): ditto.
9341         * glyphs-msw.c (mswindows_update_widget): ditto.
9342         (mswindows_progress_gauge_instantiate): ditto.
9343         (mswindows_tab_control_update): ditto.
9344         * glyphs-x.c (x_update_widget): ditto.
9345         (x_widget_instantiate): ditto.
9346         (x_tab_control_instantiate): ditto.
9347         (x_tab_control_update): ditto.
9348         * event-msw.c (mswindows_wnd_proc): ditto
9349
9350         * glyphs-widget.c (image_instantiator_layout): use
9351         subwindow_decode_domain.
9352         (image_instantiator_buttons): ditto.
9353         (image_instantiator_edit_fields): ditto.
9354         (image_instantiator_combo_box): ditto.
9355         (image_instantiator_scrollbar): ditto.
9356         (image_instantiator_progress_guage): ditto.
9357         (image_instantiator_tree_view): ditto.
9358         (image_instantiator_tab_control): ditto.
9359         (image_instantiator_labels): ditto.
9360         (image_instantiator_layout): ditto.
9361
9362         * glyphs.c: add instance error checking to many functions.
9363         (instantiate_image_instantiator): decode device from cache_domain.
9364         (image_instantiate): partially rewrite by using
9365         decode_image_instantiator_domain to determine what domain the
9366         instance needs to be cached in.
9367         (decode_image_instantiator_domain): new function. Determine what
9368         domain the image needs to be cached in.
9369         (check_window_subwindow_cache): new error checking function.
9370         (check_instance_cache_mapper): ditto.
9371         (check_image_instance_structure): ditto.
9372         (subwindow_decode_domain): new function. Encodes a window as a
9373         subwindow's cache domain.
9374         (image_instantiator_format_create): use it for text and
9375         subwindows.
9376
9377 2000-04-21  Andy Piper  <andy@xemacs.org>
9378
9379         * glyphs.c (image_instance_device): new function.
9380         (image_instance_frame): new function.
9381         (image_instance_window): new function.
9382         (image_instance_live_p): new function.
9383
9384         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9385         cache to nil.
9386
9387         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9388         (IMAGE_INSTANCE_DOMAIN): new accessor.
9389         (XIMAGE_INSTANCE_DOMAIN): ditto.
9390
9391         * glyphs-x.c (x_finalize_image_instance): device->domain.
9392
9393         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9394         (mswindows_finalize_image_instance): ditto.
9395
9396         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9397         (gif_instantiate): ditto.
9398         (png_instantiate): ditto.
9399         (tiff_instantiate): ditto.
9400
9401         * glyphs.c (instantiate_image_instantiator): use domain rather
9402         than device.
9403         (mark_image_instance): device -> domain.
9404         (print_image_instance): ditto.
9405         (finalize_image_instance): ditto.
9406         (image_instance_equal): ditto.
9407         (allocate_image_instance): ditto.
9408         (Fcolorize_image_instance): ditto.
9409         (query_string_geometry): ditto.
9410         (image_instantiate): ditto
9411         (query_string_font): ditto.
9412         (image_instantiate): ditto.
9413         (update_subwindow): ditto.
9414         (unmap_subwindow): ditto.
9415         (map_subwindow): ditto.
9416         (subwindow_instantiate): ditto.
9417
9418         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9419         (DOMAIN_FRAME): ditto.
9420         (DOMAIN_WINDOW): ditto.
9421         (DOMAIN_LIVE_P): ditto.
9422         (XDOMAIN_DEVICE): ditto.
9423         (XDOMAIN_FRAME): ditto.
9424         (XDOMAIN_WINDOW): ditto.
9425
9426         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9427         a valid specifier domain.
9428
9429 2000-04-19  Andy Piper  <andy@xemacs.org>
9430
9431         * glyphs-widget.c (syms_of_glyphs_widget): remove
9432         widget-callback-current-channel.
9433         (vars_of_glyphs_widget): ditto.
9434         * glyphs.h: ditto
9435
9436         * gui.c (get_gui_callback): revert to previous behaviour.
9437
9438 2000-04-18  Andy Piper  <andy@xemacs.org>
9439
9440         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9441         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9442         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9443
9444         * glyphs.c (image_instance_equal): add margin_width.
9445         (image_instance_hash): ditto.
9446
9447         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9448         (layout_query_geometry): ditto.
9449         (layout_layout): ditto.
9450         (syms_of_glyphs_widget): add margin-width.
9451         (image_instantiator_layout): allow margin-width.
9452
9453         * glyphs.c (update_widget_instances): make a normal function.
9454         (syms_of_glyphs): remove Qupdate_widget_instances.
9455         * glyphs.h: ditto.
9456
9457         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9458         so that we don't corrupt ideas about the last event or
9459         command. Remove widget-callback-current-channel fiddling.
9460         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9461
9462 2000-05-01  Martin Buchholz <martin@xemacs.org>
9463
9464         * XEmacs 21.2.33 is released.
9465
9466 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9467
9468         * make-src-depend: Allow dots in header file name.
9469
9470 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9471
9472         * mule-charset.h (struct charset_lookup): Add
9473         next_allocated_1_byte_leading_byte and
9474         next_allocated_2_byte_leading_byte.
9475         * mule-charset.c: Move above two variables so that those values
9476         will be dumped.
9477
9478 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9479
9480         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9481         when string length is zero.
9482         (find_charsets_in_emchar_string): Ditto.
9483
9484 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9485
9486         * lisp.h: extern Qdialog and Qmenubar.
9487
9488         * gui-x.c: added events.h.
9489                 also fixed typo which made the file uncompilable.
9490
9491         * general.c: Added Qmenubar and Qdialog
9492
9493 2000-04-28  Ben Wing  <ben@xemacs.org>
9494
9495         * frame-msw.c (mswindows_init_frame_1):
9496         * frame-msw.c (mswindows_mark_frame):
9497         * event-msw.c (mswindows_enqueue_dispatch_event):
9498         * console-msw.h:
9499         * console-msw.h (struct mswindows_frame):
9500         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9501         there are now three hash tables for callbacks.
9502         mswindows_enqueue_dispatch_event is no longer static.
9503
9504         * dialog-x.c (maybe_run_dbox_text_callback):
9505         * dialog-x.c (dbox_descriptor_to_widget_value):
9506         switch to new cons3 form for callbacks.
9507
9508         * glyphs-msw.c (mswindows_register_gui_item):
9509         * glyphs-msw.c (mswindows_widget_instantiate):
9510         * glyphs-msw.c (add_tree_item):
9511         * glyphs-msw.c (add_tab_item):
9512         new image instance parameter, so it can be passed to callback-ex.
9513         respect :callback-ex as well as :callback.
9514
9515         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9516         add :callback-ex.
9517
9518         * glyphs.c (print_image_instance):
9519         prettify, e.g. now prints widget type.
9520
9521         * gui-x.h:
9522         certain funs have new image instance parameter.
9523
9524         * gui.c:
9525         * gui.c (get_gui_callback):
9526         * gui.c (gui_item_add_keyval_pair):
9527         * gui.c (gui_item_init):
9528         * gui.c (gui_add_item_keywords_to_plist):
9529         * gui.c (mark_gui_item):
9530         * gui.c (gui_item_hash):
9531         * gui.c (gui_item_equal):
9532         * gui.c (copy_gui_item):
9533         * gui.c (syms_of_gui):
9534         recognize callback-ex in a number of places.
9535         also, fix the annoying "can't get out of yes-no dialog" bug.
9536
9537         * gui.h:
9538         * gui.h (struct Lisp_Gui_Item):
9539         recognize callback-ex in a number of places.
9540
9541         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9542         new parameter in button_item_to_widget_value.
9543
9544         * glyphs-x.c (x_update_widget):
9545         * glyphs-x.c (x_button_instantiate):
9546         * glyphs-x.c (x_button_update):
9547         * glyphs-x.c (x_progress_gauge_instantiate):
9548         * glyphs-x.c (x_edit_field_instantiate):
9549         * glyphs-x.c (x_combo_box_instantiate):
9550         * glyphs-x.c (x_tab_control_instantiate):
9551         * glyphs-x.c (x_label_instantiate):
9552         new image instance parameter in various places.
9553
9554         * event-Xt.c:
9555         * event-Xt.c (enqueue_Xt_dispatch_event):
9556         this fun gets exported.
9557
9558         * gui-msw.c:
9559         * gui-msw.c (mswindows_handle_gui_wm_command):
9560         handle both :callback and :callback-ex, and generate our own
9561         event because it's one of the callback-ex arguments.
9562
9563         * gui-x.c:
9564         * gui-x.c (popup_selection_callback):
9565         handle both :callback and :callback-ex, and generate our own
9566         event because it's one of the callback-ex arguments.
9567         * gui-x.c (button_item_to_widget_value):
9568         * gui-x.c (gui_items_to_widget_values_1):
9569         * gui-x.c (gui_item_children_to_widget_values):
9570         * gui-x.c (gui_items_to_widget_values):
9571         new image instance parameter in various places.
9572
9573         * fns.c (Freplace_list):
9574         fix small typo in doc string.
9575
9576         * lisp.h:
9577         declare enqueue_Xt_dispatch_event.
9578
9579 2000-04-28  Ben Wing  <ben@xemacs.org>
9580
9581         * buffer.c:
9582         * buffer.c (Frecord_buffer):
9583         * buffer.c (syms_of_buffer):
9584         delete record-buffer-hook.
9585
9586         * fns.c:
9587         * fns.c (Freplace_list):
9588         * fns.c (syms_of_fns):
9589         new primitive replace-list.
9590
9591         * frameslots.h:
9592         slot for old buffer-alist.
9593
9594         * lisp.h:
9595         exfun replace-list.
9596
9597         * redisplay.c:
9598         * redisplay.c (redisplay_frame):
9599         * redisplay.c (syms_of_redisplay):
9600         * redisplay.c (vars_of_redisplay):
9601         new hook buffer-list-changed-hook.
9602         call it.
9603
9604 2000-04-27  Ben Wing  <ben@xemacs.org>
9605
9606         * extents.h: extern in_modeline_generation.
9607
9608         * redisplay.c (generate_formatted_string_db): set
9609         in_modeline_generation.
9610
9611         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9612         flags if in modeline generation.  otherwise frame-modified-tick
9613         is ticked far too often.
9614         Declare in_modeline_generation.
9615
9616 2000-04-26  Ben Wing  <ben@xemacs.org>
9617
9618         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9619         option.
9620         (vars_of_emacs): add quick-build as an error-checking option.
9621         A bit kludgy, but there doesn't seem much point in creating
9622         a real var for this.
9623
9624         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9625
9626 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9627
9628         * redisplay.h (struct display_line): Add a new variable,
9629         line_continuation.
9630
9631         * redisplay.c (create_text_block): Set dl->line_continuation if
9632         the line continues.
9633         (create_string_text_block): Ditto.
9634         (regenerate_window_incrementally): Use line_continuation instead
9635         of searching continuation glyph.
9636         (add_margin_runes): Call add_glyph_rune.
9637         (add_glyph_rune): Handle margin glyph.
9638
9639 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9640
9641         * filelock.c (fill_in_lock_file_name):
9642         ANSIfy.
9643         Check for IS_ANY_SEP instead of '/'.
9644         (lock_file_1):
9645         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9646         Never check errno without first seeing that system call failed.
9647         (unlock_file): Add GCPRO.
9648         (Flock_buffer): Fix docstring.
9649         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9650
9651 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9652
9653         * sysdep.c (get_pty_max_bytes):
9654         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9655         strings longer than 252 bytes.
9656
9657         * md5.c: Unconditionally include ANSI header <limits.h>
9658
9659         * glyphs-x.c (convert_EImage_to_XImage):
9660         * lisp-union.h (union Lisp_Object):
9661         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9662
9663 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9664
9665         * filelock.c (current_lock_owner): Remove unused variable o, p.
9666
9667 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9668
9669         * callint.c: Remove multiply defined symbol Qlet
9670         (syms_of_callint): ditto.
9671
9672 2000-04-14  Andy Piper  <andy@xemacs.org>
9673
9674         * general.c (syms_of_general): add last-command, this-command, let
9675         and funcall.
9676
9677         * lisp.h: declare various symbols.
9678
9679         * glyphs.h: declare Qwidget_callback_current_channel;
9680
9681         * glyphs-widget.c (syms_of_glyphs_widget): add
9682         Qgui_callback_current_channel.
9683         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9684
9685         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9686         widget-callback-current-channel when invoking the interactive
9687         arg. Also bind last-command and next-command when invoking the
9688         widget updates.
9689         * gui-x.c (popup_selection_callback): ditto.
9690
9691         * gui.c (get_gui_callback): massage args so that we are always
9692         calling eval. This allows us to add our own variable bindings
9693         outside.
9694
9695         * glyphs-x.c (x_button_instantiate): use
9696         gui_items_to_widget_values since this is GC safe.
9697         (x_progress_gauge_instantiate): ditto.
9698         (x_edit_field_instantiate): ditto.
9699         (x_label_instantiate): ditto.
9700
9701         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9702         (emacs_Xt_event_widget_focus_out): new function
9703         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9704         focus.
9705         (emacs_Xt_event_add_widget_actions): new function. add focus
9706         functions as actions.
9707         (init_event_Xt_late): use it.
9708
9709 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9710
9711         * event-stream.c (Fdispatch_event): Doc fix.
9712
9713 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9714
9715         * postgresql.c: Remove all references to PQsetenv*.
9716
9717         * postgresql.h: Remove references to PGsetenvHandler object.
9718         * lrecord.h (lrecord_type): Ditto.
9719
9720 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9721
9722         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9723         real_heigh and real_width members, and accessor macros for these.
9724
9725         * glyphs-msw.c (init_image_instance_geometry): New function.
9726         (init_image_instance_from_dibitmap): Use it.
9727         (mswindows_resource_instantiate): Use it.
9728         (init_image_instance_from_xbm_inline): Use it.
9729         (mswindows_initialize_image_instance_mask): Use real bitmap
9730         geometry.
9731         (mswindows_create_resized_bitmap): Ditto.
9732         (mswindows_create_resized_mask): Ditto.
9733
9734         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9735         and bitmap to their surface size.
9736
9737 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9738
9739         * process-unix.c (unix_send_process): Guard against process MIA
9740         after Faccept_process_output.
9741
9742 2000-04-11  Ben Wing  <ben@xemacs.org>
9743
9744         * eval.c (unbind_to_hairy): fix brokenness introduced by
9745         nanosecond speed improvements.
9746
9747 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9748
9749         * sunplay.c (init_device): To play sounds correctly, the device
9750         apparently needs to be initialized at least once by XEmacs.  Make
9751         it so.
9752
9753 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9754
9755         * redisplay.c (add_margin_runes): Add text image glyph
9756           handling.
9757
9758 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9759
9760         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9761         gcc is newer than 2.5.
9762
9763 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9764
9765         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9766
9767         * fns.c (size_bit_vector):
9768         * alloc.c (size_vector):
9769         (make_vector_internal):
9770         (make_bit_vector_internal):
9771         (sweep_bit_vectors_1):
9772         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9773
9774 2000-04-06  Andy Piper  <andy@xemacs.org>
9775
9776         * gmalloc.c (malloc): undo previous change.
9777         (malloc): ditto.
9778         (free): ditto.
9779         (realloc): ditto.
9780
9781 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9782
9783         * line-number.c (buffer_line_number): Revert to former version.
9784
9785 2000-04-06  Andy Piper  <andy@xemacs.org>
9786
9787         * gmalloc.c (malloc): add error checking.
9788         (malloc): ditto.
9789         (free): ditto.
9790         (realloc): ditto.
9791
9792         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9793         button_item_to_widget_value arg.
9794
9795         * glyphs-x.c (x_button_instantiate): add extra
9796         button_item_to_widget_value arg.
9797         (x_progress_gauge_instantiate): ditto.
9798         (x_edit_field_instantiate): ditto.
9799         (x_label_instantiate): ditto.
9800
9801         * gui-x.c (gui_items_to_widget_values_1): add extra
9802         button_item_to_widget_value arg.
9803         (button_item_to_widget_value): add extra menu_item_p arg.
9804
9805         * gui-x.h: change signature of button_item_to_widget_value.
9806
9807         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9808         button_item_to_widget_value arg.
9809
9810 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9811
9812         * buffer.h (struct buffer): auto_save_modified should be long.
9813
9814 2000-04-05  Andy Piper  <andy@xemacs.org>
9815
9816         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9817         type.
9818         (button_query_geometry): give a little more room so that athena
9819         buttons fit.
9820
9821 2000-04-05  Andy Piper  <andy@xemacs.org>
9822
9823         * faces.c (complex_vars_of_faces): The widget face should inherit
9824         the font of the gui-element face.
9825
9826 2000-04-04  Andy Piper  <andy@xemacs.org>
9827
9828         * glyphs-x.c (x_button_update): new function. unconditionally
9829         update a button's state when the instance is dirty.
9830         (image_instantiator_format_create_glyphs_x): add x_button_update.
9831         (x_widget_instantiate): remove old resize cruft.
9832
9833 2000-04-02  Andy Piper  <andy@xemacs.org>
9834
9835         * frame.c (change_frame_size_1): The introduction of gutters means
9836         that we need to allow 0 as a potential frame dimension.
9837
9838 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9839
9840         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9841         image glyph if allow_cursor.
9842         (add_hscroll_rune): Don't allow cursor to border glyph.
9843         (create_text_block): Ditto.
9844
9845         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9846         text not in buffer.
9847         (redisplay_output_layout): Call ensure_face_cachel_complete for
9848         text image glyph.
9849
9850
9851 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9852
9853         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9854
9855         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9856         not in buffer
9857
9858         * redisplay-tty.c (tty_output_display_block): Delete the routine
9859         for text image glyph
9860         * redisplay-x.c (x_output_display_block): ditto
9861         * redisplay-msw.c (mswindows_output_display_block): ditto
9862
9863 2000-02-02  Mike Alexander  <mta@arbortext.com>
9864
9865         Note: Some of these were committed by accident as part of other
9866         patches.
9867
9868         * regex.c (regex_compile): Avoid compiler warnings.
9869
9870         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9871
9872         * nt.h: Declare term_ntproc correctly.
9873
9874         * nt.c: Remove incorrect declaration of get_home_directory which
9875         is declared correctly in lisp.h.
9876
9877         * keymap.c (get_keyelt): Avoid compiler warnings.
9878         (raw_lookup_key_mapper): Avoid compiler warnings.
9879
9880         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9881
9882         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9883
9884         * filemode.c (mode_string): Avoid compiler warnings.
9885
9886         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9887         avoid warning.
9888
9889         * events-mod.h: Undef some things that winuser.h defines differently.
9890
9891         * data.c (Faset): Avoid compiler warnings.
9892
9893         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9894
9895 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9896
9897         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9898         Fall through to simple beep on error.
9899         Replace "extern" by real header file.
9900
9901         * linuxplay.c: Use nativesound.h
9902         (play_sound_data): Return error code. Be less verbose on error.
9903
9904         * sunplay.c: Use nativesound.h
9905         (play_sound_data): Return error code. Be less verbose on error.
9906
9907         * ntplay.c: Use nativesound.h
9908         (play_sound_data): Return fake error code
9909
9910         * sgiplay.c: Use nativesound.h
9911         (play_sound_data): Return error code
9912
9913         * hpplay.c: Use nativesound.h, partially implement
9914         new error code. Break compilation until finished.
9915         (play_sound_data): error code.
9916
9917         * nativesound.h (play_sound_file):
9918           (play_sound_data): Prototype in new header.
9919
9920 2000-03-31  Andy Piper  <andy@xemacs.org>
9921
9922         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9923         for toggle and radio buttons.
9924         (image_instantiator_buttons): use it.
9925
9926 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9927
9928         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9929         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9930         found. Scrollbar event probably belonged to some old config.
9931
9932 2000-03-31  Andy Piper  <andy@xemacs.org>
9933
9934         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9935         than 1.
9936         (initialize_widget_image_instance): default layout to
9937         LAYOUT_HORIZONTAL rather than 0.
9938         (widget_instantiate): reverse the item list at the end rather than
9939         every iteration.
9940         (layout_layout): re-code for the border text at the front of the
9941         item list rather than at the end.
9942         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9943         provided by the user.
9944         (widget_query_geometry): comment.
9945
9946 2000-03-30  Andy Piper  <andy@xemacs.org>
9947
9948         * glyphs-widget.c (image_instantiator_layout): allow standard
9949         widget keywords in layouts.
9950
9951         * gutter.c (output_gutter): cope with nil gutter contents.
9952
9953         * frame.c (Fset_frame_properties): add gutter docs.
9954
9955 2000-03-29  Andy Piper  <andy@xemacs.org>
9956
9957         * toolbar-msw.c (TBSTYLE_FLAT): add.
9958         (mswindows_output_toolbar): minor fiddling.
9959
9960 2000-03-29  Andy Piper  <andy@xemacs.org>
9961
9962         * gutter.c (output_gutter): force gutter size recalculation if
9963         what we are trying to display won't fit.
9964         (update_gutter_geometry): new function. A per-gutter version of
9965         update_frame_gutter_geometry.
9966         (update_frame_gutter_geometry): use it.
9967         (redraw_exposed_gutter): add extra debugging output.
9968
9969 2000-03-28  Mike Alexander  <mta@arbortext.com>
9970
9971         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9972         (pdump_file_unmap): Implement it on Windows
9973         (pdump_file_get): Save alocated handles for pdump_file_unmap
9974
9975 2000-03-28  Andy Piper  <andy@xemacs.org>
9976
9977         * gui.c (get_gui_callback): treat Quit specially.
9978
9979 2000-03-27  Andy Piper  <andy@xemacs.org>
9980
9981         * glyphs.c (image_instantiate): be careful to check in the same
9982         way we assigned.
9983
9984 2000-03-27  Didier Verna  <didier@xemacs.org>
9985
9986         * config.h.in: define the proper SMART_INCLUDE macro.
9987         handle renaming of `foo_h_path' to `foo_h_file'.
9988
9989         * database.c: ditto.
9990
9991         * emacs.c: ditto.
9992
9993         * linuxplay.c: ditto.
9994
9995         * terminfo.c: ditto.
9996
9997         * tooltalk.h: ditto.
9998
9999 2000-03-27  Andy Piper  <andy@xemacs.org>
10000
10001         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10002         gets updated whenever the face might have changed.
10003
10004 2000-03-26  Mike Alexander  <mta@arbortext.com>
10005
10006         * dumper.c (pdump_resource_free): Fix the comment.
10007
10008 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10009
10010         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10011
10012 2000-03-22  Mike Alexander  <mta@arbortext.com>
10013
10014         * dumper.c: Include Windows headers on Windows
10015         (pdump_resource_free): Add a body to the function
10016         (pdump_load): exe_name -> exe_path and add some comments.
10017
10018 2000-03-25  Mike Alexander  <mta@arbortext.com>
10019
10020         * gui.c (copy_gui_item_tree): Return a value in all cases
10021
10022 2000-03-21  Didier Verna  <didier@xemacs.org>
10023
10024         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10025         lwlib/config.h.in.
10026         (SMART_INCLUDE): new macro.
10027         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10028         the proper location.
10029
10030         * postgresql.c: use it.
10031
10032         * inline.c: ditto.
10033
10034 2000-03-24  Andy Piper  <andy@xemacs.org>
10035
10036         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10037         do this.
10038
10039 2000-03-24  Andy Piper  <andy@xemacs.org>
10040
10041         * redisplay-output.c (compare_runes): use image_instance_changed
10042         to detect changes. Do not depend on glyphs_changed, only depend on
10043         dirtiness.
10044          (redisplay_output_layout): add debug messages.
10045         (compare_runes): ditto.
10046
10047         * glyphs.h: declare new functions.
10048         (struct Lisp_Image_Instance): remove percent and associated
10049         accessors.
10050
10051         * gui.h: declare new copying functions.
10052
10053         * gui.c (copy_gui_item_tree): new function.
10054         (copy_gui_item): new function.
10055         (gui_item_id_hash): revert to standard hash.
10056         (gui_item_hash): ditto.
10057         (gui_item_hash_internal): deleted.
10058         (mark_gui_item): mark value.
10059         (gui_item_add_keyval_pair): add value.
10060         (gui_item_init): ditto.
10061         (gui_add_item_keywords_to_plist): ditto.
10062         (gui_item_equal): ditto.
10063         (syms_of_gui): add Q_value.
10064
10065         * glyphs-x.c (x_progress_gauge_update): use pending items and
10066         value for setting the state.
10067         (x_update_widget): don't set items from pending here.
10068
10069         * glyphs-widget.c (update_widget): update items here.
10070         (progress_gauge_set_property): use items for storing value. Put
10071         new value in pending items.
10072
10073         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10074         items for new value. Convert percent -> value.
10075         (mswindows_tab_control_update): don't update items here.
10076
10077         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10078         (update_subwindow): ditto.
10079         (image_instance_changed): new function. Compare hash values and
10080         past and present widget items.
10081         (image_instantiate): We more careful about where we instantiate
10082         things.
10083         (image_instantiate): add error checking.
10084
10085         * gutter.c (syms_of_gutter): use -hook.
10086
10087 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10088
10089         * console-tty.c (Fset_console_tty_input_coding_system): Use
10090         Qkeyboard.
10091         (Fset_console_tty_output_coding_system): Use Qterminal.
10092         (tty_init_console): Use Qkeyboard and Qterminal.
10093
10094 2000-03-21  Ben Wing  <ben@xemacs.org>
10095
10096         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10097         From Mike Alexander <mta@arbortext.com>.
10098
10099 2000-03-21  Ben Wing  <ben@xemacs.org>
10100
10101         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10102         process brokenness.  Proper implementation to come.
10103         * callproc.c:
10104         Rename call-process-internal to old-call-process-internal.
10105         New impl. in process.el.
10106
10107 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10108
10109         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10110
10111 2000-03-20  Andy Piper  <andy@xemacs.org>
10112
10113         * glyphs.c (full_list_hash): make hashes of the same elements in
10114         different orders return different values.
10115
10116 2000-03-20  Martin Buchholz <martin@xemacs.org>
10117
10118         * XEmacs 21.2.32 is released.
10119
10120 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10121
10122         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10123         (DFC_MALLOC_USE_CONVERTED_DATA):
10124         Add aliasing-safe casts to allow use with char* or unsigned char*
10125         lvalues.
10126
10127         * eldap.c (Fldap_open):
10128         (Fldap_search_basic):
10129         (Fldap_add):
10130         (Fldap_modify):
10131         Make C++-compilable.
10132         Make sure GCPRO'ed variables are initialized.
10133         Use temp variables to avoid repeated calls to Flength.
10134
10135 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10136
10137         * sysfile.h:
10138         Make sure PATH_MAX is always defined.
10139         Include limits.h for PATH_MAX.
10140         Deprecate use of MAXPATHLEN.
10141
10142 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10143
10144         * emacs.c: Add reinit_vars_of_fileio.
10145         * symsinit.h: Add reinit_vars_of_fileio.
10146         * fileio.c (reinit_vars_of_fileio): New.
10147         * fileio.c (Fmake_temp_name):
10148         Initialize temp_name random number from microseconds to make
10149         collisions even less likely.  Initialize always at process startup
10150         time.  (make-temp-name) used to return the same file name twice in
10151         a row when PDUMP.
10152         Random stylistic fiddling.
10153         Comment fixes.
10154
10155 2000-03-20  Andy Piper  <andy@xemacs.org>
10156
10157         * glyphs.c (image_instantiate): allow text glyphs to be
10158         instantiated in the minibuffer window.
10159
10160 2000-03-19  Andy Piper  <andy@xemacs.org>
10161
10162         * glyphs.c (image_instance_hash): be careful about which items we
10163         hash on.
10164
10165         * glyphs-widget.c (tab_control_set_property): record into pending
10166         items rather than the actual items.
10167
10168         * glyphs-x.c (x_update_widget): use pending items to update with.
10169
10170         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10171         to update with.
10172
10173         * glyphs.c (mark_image_instance): mark pending items.
10174
10175         * window.c (Fset_window_configuration): record the buffer.
10176         (Fselect_window): totally revert previous change which breaks many
10177         things.
10178
10179 2000-03-18  Andy Piper  <andy@xemacs.org>
10180
10181         * glyphs-msw.c (mswindows_tab_control_update): force selected
10182         item.
10183
10184         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10185         window domain cache, otherwise we get inconsistencies at
10186         startup. There is something fishy at startup which can lead to the
10187         minibuffer being the selected window when the gutter content is
10188         instantiated.
10189
10190         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10191         gcpros.
10192         (parse_gui_item_tree_children): ditto.
10193         (parse_gui_item_tree_item): ditto.
10194
10195         * glyphs.c (Fupdate_widget_instances): return something.
10196
10197 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10198
10199         * window.c (Fselect_window): Undo 2000-03-17 change.
10200
10201 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10202
10203         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10204         against v7.0 libraries.  Insta-coredump city until the postgres
10205         folks fix it.
10206
10207 2000-03-17  Andy Piper  <andy@xemacs.org>
10208
10209         * faces.c (complex_vars_of_faces): don't give the widget face an
10210         inherited background pixmap.
10211
10212         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10213         selected item.
10214
10215         * event-stream.c (Fdispatch_non_command_events): return something.
10216
10217         * gutter.c (output_gutter): use widget face.
10218         (clear_gutter): ditto.
10219
10220         * NEWS: adjust again.
10221
10222         * window.c (Fselect_window): make sure this runs to completion to
10223         avoid oddities with Fset_window_configuration.
10224         (Fcurrent_window_configuration): in general do not save the
10225         minibuffer as the selected window.
10226
10227         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10228
10229 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10230
10231         * emacs.c (Frunning_temacs_p): Revert previous patch.
10232         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10233
10234 2000-03-16  Andy Piper  <andy@xemacs.org>
10235
10236         * glyphs-x.c (x_tab_control_update): if no widget values then
10237         return.
10238
10239         * NEWS: update for new features.
10240
10241         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10242         synthetic event to the native system.
10243         (reinit_vars_of_event_Xt): set force_event_pending to
10244         emacs_Xt_force_event_pending.
10245
10246         * events.h (struct event_stream): add force_event_pending.
10247
10248         * specifier.c (recompute_one_cached_specifier_in_window): add
10249         comment.
10250
10251         * redisplay.c (redisplay_frame): don't call
10252         update_frame_subwindows. Reset subwindow cachels when
10253         subwindows_changed, removing this was an optimization too far.
10254
10255         * redisplay-output.c (compare_runes): reorganize so that we catch
10256         glyph changes when we want them. Set optimize_output when this
10257         would help layouts.
10258         (redisplay_output_layout): remove frame_really_changed, use
10259         optimize_output instead.
10260
10261         * redisplay-msw.c (mswindows_output_display_block): reset
10262         optimize_output after outputting a glyph.
10263         * redisplay-x.c (x_output_display_block): ditto.
10264         * redisplay-tty.c (tty_output_display_block): ditto.
10265
10266         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10267         functions.
10268         (gutter_specs_changed): do specific gutter positions.
10269         (top_gutter_specs_changed): new function. Only update the
10270         specified gutter specs.
10271         (bottom_gutter_specs_changed): ditto.
10272         (left_gutter_specs_changed): ditto.
10273         (right_gutter_specs_changed): ditto.
10274
10275         * gui.c (gui_item_hash_internal): new function, does a real hash.
10276         (gui_item_id_hash): use it.
10277         (gui_item_hash): hash the eval'ed gui_item.
10278
10279         * gui-x.c (popup_selection_callback): send an eval event to call
10280         Fupdate_widget_instances.
10281
10282         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10283         to call Fupdate_widget_instances.
10284
10285         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10286         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10287
10288         * glyphs.c: (update_frame_subwindows): deleted.
10289         (Fupdate_widget_instances): new function for updating the dirty
10290         state of widgets that might have changed.
10291         (syms_of_glyphs): add Qupdate_widget_instances.
10292         (full_list_hash): hash a list completely.
10293         (image_instance_hash): use it for items and properties.
10294
10295         * frame-msw.c (mswindows_size_frame_internal): remove unused
10296         variable.
10297
10298         * faces.h (struct face_cachel): fix comment.
10299
10300         * event-stream.c (Fdispatch_non_command_events): new
10301         function. Process non-command events, forcing an event cycle
10302         beforehand.
10303         (syms_of_event_stream): declare.
10304         (event_stream_force_event_pending): new function. Force an event
10305         on the native event queue so that an event cycle will occur next
10306         time we check.
10307
10308         * event-msw.c:
10309         (struct ntpipe_shove_stream):
10310         (mswindows_enqueue_dispatch_event):
10311         (mswindows_dequeue_dispatch_event):
10312         (mswindows_cancel_dispatch_event):
10313         (mswindows_pump_outstanding_events):
10314         (mswindows_drain_windows_queue):
10315         (mswindows_handle_paint):
10316         (mswindows_wnd_proc):
10317         (mswindows_key_to_emacs_keysym):
10318         (get_process_input_waitable):
10319         (emacs_mswindows_delete_stream_pair): re-indent file.
10320         (mswindows_need_event): do not process further fds if the windows
10321         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10322         fixes the 100% cpu problem.
10323         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10324
10325 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10326
10327         * alloc.h: New.
10328         * dumper.h: New.
10329         * dumper.c: New.
10330
10331         * emacs.c: Moved dump file searching to dumper.c.
10332         (Frunning_temacs_p): Fixed.
10333
10334         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10335         last_lrecord_type_index_assigned.
10336
10337 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10338
10339         * symsinit.h: Added reinit parameter to init_console_stream
10340         declaration.
10341
10342         * lisp.h: Added file parameter to pdump_load declaration.
10343
10344         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10345         support.  Added dump file searching.
10346
10347         * config.h.in: Added EMACS_PROGNAME.
10348
10349         * console-stream.c (init_console_stream): Fix reinitialisation
10350         when running from temacs.
10351
10352         * alloc.c (pdump): Add id support.
10353         (pdump_load): Add file parameter and signature/id support.
10354
10355         * Makefile.in.in: Add full pdump support.
10356
10357 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10358
10359         * postgresql.c: Update documentation to reflect latest code
10360         status.
10361         (print_result): Show tuple counts in printed representation when
10362         appropriate.
10363         (Fpq_put_nbytes): MULE-ize.
10364         (Fpq_get_line_async): Ditto.
10365
10366 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10367
10368         * postgresql.c (Fpq_lo_import): Fix return value.
10369         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10370
10371 2000-03-13  Ben Wing  <ben@xemacs.org>
10372
10373         * alloc.c (pdump_load):
10374         Fix compile warning under mswin.
10375
10376 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10377
10378         * postgresql.c: Mule-ization, bug fixes.
10379         Use PG_CODING to encapsulate coding system name changes.
10380         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10381         (pg-coding-system): Create.
10382
10383         (Fpq_conn_defaults): Mule-ize.
10384         (Fpq_connectdb): Mule-ize & bug fix.
10385         (Fpq_connect_start): Mule-ize.
10386         (Fpq_set_client_encoding): Mule-ize.
10387         (Fpq_finish): Document `DEAD' connection status.
10388         (Fpq_clear): Ditto.
10389         (Fpq_pgconn): Mule-ize.
10390         (Fpq_exec): Mule-ize & bug fix.
10391         (Fpq_send_query): Ditto.
10392         (Fpq_get_result): Ditto.
10393         (Fpq_res_status): Mule-ize.
10394         (Fpq_result_error_message): Mule-ize.
10395         (Fpq_ntuples): fix comments.
10396         (Fpq_fname): Mule-ize.
10397         (Fpq_fnumber): Mule-ize.
10398         (Fpq_ftype): fix comments.
10399         (Fpq_get_value): Mule-ize.
10400         (Fpq_cmd_status): Ditto.
10401         (Fpq_cmd_tuples): Ditto.
10402         (Fpq_oid_value): Ditto.
10403         (Fpq_notifies): Ditto.
10404         (Fpq_lo_import): Ditto.
10405         (Fpq_lo_export): Ditto.
10406         (Fpq_get_line): Ditto.
10407         (Fpq_put_line): Mule-ize and bug fix.
10408         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10409
10410 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10411
10412         * postgresql.c (vars_of_postgresql): Mule-ize.
10413         (Fpq_conn_defaults): Ditto.
10414
10415 2000-03-12  Ben Wing  <ben@xemacs.org>
10416
10417         * alloc.c (Fmake_byte_code):
10418         * alloc.c (debug_string_purity_print):
10419         * alloc.c (pdump_backtrace):
10420         * alloc.c (pdump_get_indirect_count):
10421         * alloc.c (pdump_register_sub):
10422         * alloc.c (pdump_register_object):
10423         * alloc.c (pdump_register_struct):
10424         * alloc.c (pdump_dump_data):
10425         * alloc.c (pdump_reloc_one):
10426         Minor cleanups.
10427
10428         * console-msw.c:
10429         * console-msw.c (GetConsoleHwnd):
10430         * console-msw.c (msw_hide_console):
10431         * console-msw.c (msw_show_console):
10432         * console-msw.c (msw_ensure_console_buffered):
10433         * console-msw.c (msw_output_console_string):
10434         * console-msw.c (console_type_create_mswindows):
10435
10436         a) Added functions to manipulate the console window for use with
10437         shell support.
10438
10439         b) Added support for writing text to the console, which is now
10440         used under Windows when xemacs is not being run non-interactively,
10441         to write text that would otherwise be destined for stdout because
10442         under these circumstances, text written to stdout tends to
10443         disappear and not be seen.
10444
10445         * console-msw.h:
10446         * event-Xt.c:
10447         * event-Xt.c (x_event_to_emacs_event):
10448         * event-Xt.c (describe_event_window):
10449         * events-mod.h (XEMACS_MOD_CONTROL):
10450         * events.c:
10451         * events.c (Fmake_event):
10452         * events.c (character_to_event):
10453         * events.c (event_to_character):
10454         * events.c (format_event_object):
10455         * events.c (Fevent_modifiers):
10456         * events.h:
10457         * events.h (struct key_data):
10458         * events.h (struct button_data):
10459         * events.h (struct misc_user_data):
10460         * frame-x.c (Fcde_start_drag_internal):
10461         * frame-x.c (Foffix_start_drag_internal):
10462         * gpmevent.c (Freceive_gpm_event):
10463         * keymap.c:
10464         * keymap.c (bucky_sym_to_bucky_bit):
10465         * keymap.c (control_meta_superify):
10466         * keymap.c (make_key_description):
10467         * keymap.c (keymap_lookup_directly):
10468         * keymap.c (create_bucky_submap):
10469         * keymap.c (keymap_store):
10470         * keymap.c (define_key_check_and_coerce_keysym):
10471         * keymap.c (define_key_parser):
10472         * keymap.c (define_key_alternate_name):
10473         * keymap.c (Fdefine_key):
10474         * keymap.c (raw_lookup_key_mapper):
10475         * keymap.c (struct map_keymap_unsorted_closure):
10476         * keymap.c (map_keymap_unsorted_mapper):
10477         * keymap.c (map_keymap_sort_predicate):
10478         * keymap.c (map_keymap_sorted):
10479         * keymap.c (accessible_keymaps_mapper_1):
10480         * keymap.c (where_is_recursive_mapper):
10481         * keymap.c (describe_map_mapper):
10482         * keymap.c (describe_map_sort_predicate):
10483         * keymap.c (describe_map):
10484         * keymap.c (complex_vars_of_keymap):
10485         And a number of other files, the key modifier preprocessor
10486         constants that xemacs uses have names that conflict with constants
10487         defined under MS Windows for other purposes, so they were renamed
10488         to begin with the prefix XEMACS_. The variables that hold such
10489         modifiers were changed to consistently be of type int to fix
10490         various compile warnings.
10491
10492         * console.c (complex_vars_of_console):
10493         * device.c:
10494         * device-msw.c:
10495         * device-msw.c (mswindows_finish_init_device):
10496         * device-msw.c (msw_get_workspace_coords):
10497         * device-msw.c (mswindows_device_system_metrics):
10498         and various other files, added support for a new
10499         device property called offset-workspace which returns the position
10500         of the upper left corner of the workspace area and goes along with
10501         the existing size-workspace property.
10502
10503         * dialog-msw.c:
10504         * dialog-msw.c (push_bufbyte_string_as_unicode):
10505         * dialog-msw.c (mswindows_popup_dialog_box):
10506         Added support for XEmacs-style accelerator specifications in
10507         button text.  Note: I didn't add support for this under X Windows,
10508         and somebody needs to do this.
10509
10510         * dialog.c:
10511         * dialog.c (Fpopup_dialog_box):
10512         Documented the support for accelerators that was just mentioned.
10513
10514         editfns.c (get_home_directory): Changed behavior under Windows
10515         when HOME not defined; former behavior was irretrievably broken.
10516
10517         * emacs.c:
10518         * emacs.c (main_1):
10519         * emacs.c (main):
10520         * minibuf.c (clear_echo_area_internal):
10521         * minibuf.c (echo_area_append):
10522         * print.c:
10523         * print.c (std_handle_out_external):
10524         * print.c (std_handle_out_va):
10525         * print.c (fatal):
10526         * print.c (write_string_to_stdio_stream):
10527         * print.c (output_string):
10528         * print.c (debug_print):
10529         * print.c (debug_backtrace):
10530         * print.c (debug_short_backtrace):
10531         Cleaned up the code that prints text to stdout so that this can be
10532         changed to output into a console window instead under MS Windows,
10533         as described above.
10534
10535         * eval.c:
10536         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10537         * eval.c (internal_catch):
10538         * eval.c (unwind_to_catch):
10539         * eval.c (throw_or_bomb_out):
10540         * eval.c (condition_case_1):
10541         * eval.c (signal_1):
10542         * eval.c (check_error_state_sanity):
10543         * eval.c (call_with_suspended_errors_1):
10544         * eval.c (call_with_suspended_errors):
10545         * eval.c (reinit_vars_of_eval):
10546         Added code to catch throw loops and check for a pesky bug that may
10547         be gone now.
10548
10549         * event-msw.c:
10550         * event-msw.c (key_needs_default_processing_p):
10551         * event-msw.c (mswindows_wnd_proc):
10552         * event-msw.c (mswindows_modifier_state):
10553         * event-msw.c (emacs_mswindows_quit_p):
10554         * event-msw.c (vars_of_event_mswindows):
10555         a) Added support for using the alt key to select menu items as is
10556         standard under MS Windows.  This is controlled using the variable
10557         menu-accelerator-enabled, just like under X Windows.  There is an
10558         option on the options menu to turn this support on.  I really
10559         think that it should be on by default under Windows, but I'm not
10560         going to make this change yet.
10561
10562         b)  Added support for dynamic display size changes under Windows.
10563
10564         * event-stream.c:
10565         * event-stream.c (maybe_echo_keys):
10566         * event-stream.c (Fnext_event):
10567         * event-stream.c (command_builder_find_leaf):
10568         * event-stream.c (lookup_command_event):
10569         * event-stream.c (execute_command_event):
10570         * event-stream.c (pre_command_hook):
10571         * event-stream.c (post_command_hook):
10572         * event-stream.c (syms_of_event_stream):
10573         * event-stream.c (vars_of_event_stream):
10574         * event-stream.c (complex_vars_of_event_stream):
10575         * events.h (struct command_builder):
10576
10577         a) Tried to clean up a little bit the horribly written x-specific
10578         accelerator code that crept into this file.  I moved this code
10579         into menubar-x.c where it belongs. I also needed to move the
10580         command builder structure into the file events.h because it is
10581         accessed directly by this accelerator code.  What I didn't do, but
10582         which should be done at some point, is to properly abstract this
10583         code using device methods instead of the kludgy way that it
10584         currently hooks into the event code.
10585
10586         b) Added the lisp variables this-command-properties and
10587         last-command- properties, which should be used to synchronize two
10588         adjacent commands in preference to playing games with the variable
10589         this-command, which is typically what happens.
10590
10591         c) Added some slightly nasty code to hook into the lisp support
10592         for shifted- motion-key selection.  This is actually necessary for
10593         somewhat complicated reasons, which are described in
10594         simple.el. (NB: I think the proper thing would be to have the code
10595         that calls the pre and post command hooks also call out to generic
10596         lisp functions in simple.el, where all built-in stuff could be
10597         added.  I will think about this more.)
10598
10599         * event-unixoid.c (poll_fds_for_input):
10600         * lread.c (readchar):
10601         * redisplay-tty.c (tty_clear_frame):
10602         * redisplay-x.c (x_get_gc):
10603         * signal.c (interrupt_signal):
10604         And a whole bunch of other files: fixed up places that printed
10605         directly to stderr to instead call the function stderr_out so that
10606         the changes I made under Windows work correctly.
10607
10608         * filemode.c (mode_string):
10609         Warning fixes.
10610
10611         * frame-msw.c:
10612         * frame-msw.c (mswindows_size_frame_internal):
10613         Fixed the computation of frame size and position to keep the frame
10614         within the workspace area, rather than within the physical
10615         dimensions of the screen, so that the frame doesn't overlap window
10616         manager decorations, such as the start menu and toolbar, typically
10617         at the bottom of the screen.
10618
10619         * frame.c (vars_of_frame):
10620         Changed the default frame title format under MS Windows to consist
10621         of buffername-XEmacs, which is standard under MS Windows.  I think
10622         it might be a good idea to change this everywhere because I think
10623         it is superior to the current frame title format, but this is the
10624         kind of change that is likely to cause some people to get annoyed,
10625         so I'm not making it.
10626
10627         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10628
10629         * gui-msw.c (mswindows_handle_gui_wm_command):
10630         Fixed compile warnings.
10631
10632         * gui-x.c:
10633         * gui-x.c (strdup_and_add_accel):
10634         * gui-x.c (button_item_to_widget_value):
10635         * gui-x.h:
10636         Added code to automatically put an accelerator onto the beginning
10637         of menu items that don't have one as is now the standard, and is
10638         described more later.  Also fixed things so that the menu item
10639         name can be an evaluated expression, again a new standard.
10640
10641         * gui.c:
10642         * gui.c (gui_item_add_keyval_pair):
10643         * gui.c (make_gui_item_from_keywords_internal):
10644         * gui.c (gui_add_item_keywords_to_plist):
10645         * gui.c (gui_item_accelerator):
10646         * gui.c (gui_name_accelerator):
10647         * gui.c (gui_item_included_p):
10648         * gui.c (gui_item_display_flush_left):
10649         * gui.c (gui_item_display_flush_right):
10650         * gui.c (parse_gui_item_tree_item):
10651         * gui.c (parse_gui_item_tree_children):
10652         * gui.c (parse_gui_item_tree_list):
10653         Mule-ized.  Cleanup.  GCPRO addition.
10654
10655         * line-number.c (buffer_line_number):
10656         * lisp.h:
10657         * lisp.h (EMACS_INT_MAX):
10658         Added the manifest constant EMACS_INT_MIN corresponding to the
10659         existing constant EMACS_INT_MAX.  This is partially to fix compile
10660         warnings under Windows, and partly for cleanliness.
10661
10662         * menubar-msw.c:
10663         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10664         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10665         * menubar-msw.c (displayable_menu_item):
10666         * menubar-msw.c (populate_menu_add_item):
10667         * menubar-msw.c (populate_or_checksum_helper):
10668         * menubar-msw.c (populate_menu):
10669         * menubar-msw.c (update_frame_menubar_maybe):
10670         * menubar-msw.c (prune_menubar):
10671         * menubar-msw.c (msw_char_is_accelerator):
10672         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10673         * menubar-msw.c (mswindows_handle_wm_command):
10674         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10675         * menubar-msw.c (mswindows_handle_wm_initmenu):
10676         * menubar-msw.c (mswindows_update_frame_menubars):
10677         * menubar-msw.c (mswindows_free_frame_menubars):
10678         * menubar-msw.c (mswindows_popup_menu):
10679         Fixed a bug in handling accelerators where an extra character
10680         would be displayed in the menu item.  Also generalized the
10681         function displayable_menu_item because it is now used by the
10682         dialog box code as well.  And finally, added code in the functions
10683         that create the menubar to extract a list of accelerators for the
10684         top level menubar, which is used in the event code to determine
10685         whether a particular alt-key combination should be used to invoke
10686         a menu item, or should be passed through to access the standard
10687         XEmacs keymap binding for this key combination.
10688
10689         Much needed GCPROing.
10690
10691         * menubar-x.c:
10692         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10693         * menubar-x.c (menu_item_descriptor_to_widget_value):
10694         * menubar-x.c (restore_in_menu_callback):
10695         * menubar-x.c (x_popup_menu):
10696         * menubar-x.c (menu_move_up):
10697         * menubar-x.c (menu_move_down):
10698         * menubar-x.c (menu_move_left):
10699         * menubar-x.c (menu_move_right):
10700         * menubar-x.c (menu_select_item):
10701         * menubar-x.c (command_builder_operate_menu_accelerator):
10702         * menubar-x.c (menu_accelerator_junk_on_error):
10703         * menubar-x.c (command_builder_find_menu_accelerator):
10704         * menubar-x.c (Faccelerate_menu):
10705         * menubar.h:
10706         Moved a whole bunch of code here that was previously in
10707         event-stream.c as described above.  There is also code connected
10708         to the new standard of adding an accelerator to the beginning of
10709         menu items that don't have one as described above and below.
10710
10711         * menubar.c:
10712         * menubar.c (menu_parse_submenu_keywords):
10713         * menubar.c (Fmenu_find_real_submenu):
10714         * menubar.c (Fnormalize_menu_item_name):
10715         * menubar.c (syms_of_menubar):
10716         * menubar.c (vars_of_menubar):
10717         * menubar.c (complex_vars_of_menubar):
10718
10719         a) Cleaned up a bunch of documentation and improved it.
10720
10721         b) XEmacs now automatically adds an accelerator onto the beginning
10722         of any menu items that don't have one.  I did this because there
10723         will inevitably be some menu items on the main menubar that don't
10724         have accelerators on them because the package that adds that
10725         particular menu item hasn't yet been fixed up to have accelerators
10726         in them and it looked rather strange to have some items with and
10727         some items without accelerators, especially since even in items
10728         without accelerators, you can, at least under windows, still
10729         access the item through an accelerator corresponding to the first
10730         character in the item's name.  If people don't like this behavior,
10731         I can add a variable to turn it off optionally, but I'm not sure
10732         this is a good idea because we really do need to have accelerators
10733         on all of the menu items, and if a package doesn't like the
10734         accelerators being put on the first character, then it should put
10735         the accelerators where they belong.
10736
10737         c) I made a behavior change, which is that the descriptor that
10738         specifies the text of the menu item, which formerly was just a
10739         string, can now also be an evaluated expression.  This makes this
10740         descriptor parallel with all of the others, which could also be
10741         evaluated expressions.  This also obviates the need for the
10742         keyword :label, which was previously listed in the documentation
10743         as unimplemented, and which was for the same purpose.
10744
10745         d) GCPROing.
10746
10747         * ntproc.c:
10748         * ntproc.c (new_child):
10749         * ntproc.c (sys_spawnve):
10750         * ntproc.c (find_child_console):
10751         * ntproc.c (sys_kill):
10752         Fixed compile warnings.  By the way, this file should really go
10753         away entirely, and this will happen as soon as Kirill makes his
10754         final round of process cleanups, which affect the function
10755         call-process.
10756
10757         * process-nt.c:
10758         * process-nt.c (struct nt_process_data):
10759         * process-nt.c (find_process_from_pid):
10760         * process-nt.c (send_signal_the_nt_way):
10761         * process-nt.c (enable_child_signals):
10762         * process-nt.c (find_child_console):
10763         * process-nt.c (send_signal_the_95_way):
10764         * process-nt.c (nt_finalize_process_data):
10765         * process-nt.c (ensure_console_window_exists):
10766         * process-nt.c (nt_create_process):
10767         * process-nt.c (nt_kill_child_process):
10768         * process-nt.c (nt_kill_process_by_pid):
10769         * process-nt.c (nt_open_network_stream):
10770         * process-nt.c (vars_of_process_nt):
10771         Copied over code from Emacs 20.5 to correctly send signals to sub-
10772         processes under Windows 95.  Also added code to automatically
10773         create and hide console window when a sub-process is created under
10774         Windows 95, which obviates the need for the separate runemacs.exe
10775         executable, and finally implemented some variables that were
10776         implemented in Emacs 20.5, but previously not in XEmacs.  These
10777         include mswindows- start-process-share-console and
10778         mswindows-start-process-inherit-error-mode. (Both of these only
10779         apply to Windows 95.)
10780
10781         * regex.c (regex_compile): Fixed a compile warning.
10782
10783         * select-msw.c:
10784         * select-msw.c (mswindows_own_selection):
10785         * select-msw.c (mswindows_get_foreign_selection):
10786         * select-msw.c (mswindows_disown_selection):
10787         * select-msw.c (console_type_create_select_mswindows):
10788         * select-msw.c (syms_of_select_mswindows):
10789         Cleaned up the file and implemented the device method
10790         selection_exists_p, which had accidentally been left out.  Also
10791         removed four lisp functions that were remnants from before the
10792         time when the selection code was properly device abstracted.
10793         These functions are no longer needed because there are generic
10794         equivalents, and because they were added recently and don't exist
10795         in FSF Emacs, I don't think there's any problem with just deleting
10796         them.
10797
10798         * sysdep.c:
10799         * sysdep.c (sys_subshell):
10800         Fixed a compile warning, although in this case there's probably
10801         something wrong with this code, and it ought to be looked into
10802         more thoroughly by somebody who understands it.
10803
10804         * window.c:
10805         * window.c (Fwindow_text_area_height):
10806         * window.c (Fwindow_width):
10807         * window.c (Fwindow_full_width):
10808         * window.c (Fwindow_pixel_width):
10809         * window.c (debug_print_window):
10810         * window.c (syms_of_window):
10811         Added functions window-text-area-height and window-full-width,
10812         which are functions for returning various width and height
10813         characteristics of a window. (One of these functions is necessary
10814         for making the file dialog box work correctly, and the other one
10815         was added for completeness.)  Also added a table to the
10816         documentation for window-height which describes the entire scheme
10817         for accessing width and height characteristics of a window.
10818
10819 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10820
10821         * nt.c (fstat): Added a comment for another problem with
10822         non-encapsulated [f]stat(), reported by Adrian Aichner
10823         <aichner@ecf.teradyne.com>.
10824
10825 2000-03-11  Andy Piper  <andy@xemacs.org>
10826
10827         * window.c (make_dummy_parent): initialize subwindow instance
10828         cache.
10829         (Fset_window_configuration): zero extent_modiff.
10830
10831 2000-03-10  Andy Piper  <andy@xemacs.org>
10832
10833         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10834         more changes can be triggered.
10835         (Fredisplay_frame): ditto.
10836         (Fredraw_device): ditto.
10837         (Fredisplay_device): ditto.
10838         (redisplay_frame): make non-static.
10839         (redisplay_frame): call update_frame_gutter_geometry outside of
10840         display proper.
10841
10842         * gutter.h: declare update_frame_gutter_geometry.
10843
10844         * redisplay.h: declare redisplay_frame.
10845
10846         * gutter.c (update_frame_gutter_geometry): move geometry changes
10847         in update_frame_gutters here. Geometry changes can only occur
10848         outside of redisplay.
10849         (update_frame_gutters): remove geometry change code.
10850         (Fredisplay_gutter_area): make sure that we are in display when we
10851         update and that we have flushed any size changes.
10852
10853 2000-03-11  Andy Piper  <andy@xemacs.org>
10854
10855         * alloc.c (pdump_dump_data): remove i & count shadows.
10856
10857 2000-02-27  Mike Alexander  <mta@arbortext.com>
10858
10859         * sysdep.h: Declare pdump_read_file
10860
10861         * sysdep.c (pdump_read_file): New function
10862
10863         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10864         dump data
10865
10866 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10867
10868         * lrecord.h: add `lrecord_type_pgsetenv'.
10869
10870 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10871
10872         * symsinit.h: declare (vars|syms)_of* functions.
10873         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10874
10875 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10876
10877         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10878
10879         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10880         GCCs.
10881
10882         * emacs.c (main_1): Call postgres initialization code.
10883
10884         * postgresql.h: New file.  PostgreSQL RDBMS support.
10885         * postgresql.c: New file.
10886
10887 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10888
10889         * redisplay-output.c (redisplay_output_display_block): Disable
10890         redundant code.
10891
10892 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10893
10894         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10895         (Fcanna_henkan_next): Ditto.
10896         (Fcanna_bunsetu_henkou): Ditto.
10897         (Fcanna_henkan_kakutei): Ditto.
10898         (Fcanna_henkan_end): Ditto.
10899         (Fcanna_henkan_quit): Ditto.
10900         (Fcanna_henkan_next): Set retun value correctly.
10901         (c2mu): Use unsigned char instead of signed char.
10902
10903 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10904
10905         * emacs.c (main_1): Always call syms_of_gui.
10906         * inline.c: include gui.h
10907
10908 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10909
10910         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10911         converted to Lisp_Object.
10912         (Qtop_bottom): New variable.
10913         (syms_of_redisplay): Initialize it.
10914         * redisplay.h (Vvisible_bell): Ditto.
10915         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10916         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10917         only flash top and bottom.
10918
10919 2000-03-08  Andy Piper  <andy@xemacs.org>
10920
10921         * buffer.c (Frename_buffer): record new buffer name the right way.
10922
10923 2000-03-08  Andy Piper  <andy@xemacs.org>
10924
10925         * glyphs.c (update_subwindow): increase hash depth so that widget
10926         items get picked up properly.
10927
10928         * redisplay-output.c (compare_runes): increase hash depth so that
10929         widget items get picked up properly.
10930
10931 2000-03-08  Andy Piper  <andy@xemacs.org>
10932
10933         * gutter.c (output_gutter): add some debug.
10934
10935         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10936         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10937         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10938
10939         * redisplay-output.c (compare_runes): use display_hash to
10940         determine if glyphs really are not the same.
10941
10942         * glyphs.c (update_subwindow): check display_hash to see if
10943         anything really needs to be updated. If not then do
10944         nothing. Record the display_hash after updating.
10945         (image_instance_equal): compare the image_instance face also.
10946
10947 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10948
10949         * redisplay.h: Fix comment style.
10950
10951 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10952
10953         * consle-msw.h (struct mswindows_frame):
10954         Added new member paint_pending to indicate whether a WM_PAINT
10955         magic event has been queued for this frame.
10956
10957         * event-msw.c (mswindows_drain_windows_queue):
10958         Don't queue a WM_PAINT magic event if one is already queued.
10959         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10960
10961         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10962
10963 2000-03-07  Didier Verna  <didier@xemacs.org>
10964
10965         * dired.c: #include `regex.h' after `sysfile.h'.
10966
10967 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10968
10969         * sound.c (init_nas_sound): Fix compiler warning.
10970
10971         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10972         (FREE_STRUCT_P):
10973         (MARK_STRUCT_AS_FREE):
10974         (MARK_STRUCT_AS_NOT_FREE):
10975         Make `gcc -fstrict-aliasing' work properly.
10976
10977 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10978
10979         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10980         (mswindows_delete_device): Call CoUnnitialize().
10981
10982         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10983
10984 2000-02-25    <CraigL@DyCon.com>
10985
10986         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10987         <errno.h>.
10988
10989         * sysdep.c: This extern declaration for environ prevents MinGW
10990         from finding the variable in CRTDLL.DLL.
10991
10992         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10993         windows headers.
10994         (SHGFI_EXETYPE): ..
10995         (WM_MOUSEWHEEL): ..
10996         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10997         definitions.
10998         (MMRESULT): Removed, now defined in cygwin's windows headers.
10999         (TIMECAPS): ..
11000         (uid_t,gid_t,pid_t,ssize_t): ..
11001         (_timeb): Removed, MinGW defines both _timeb and timeb.
11002         (HAVE_H_ERRNO): Added.
11003         (HAVE_TZNAME): Added, configure is not detecting this.
11004
11005 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11006
11007         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11008         * syntax.c (syntax_match): Use it.
11009
11010         * cmds.c: Import auto-fill-chars from FSF Emacs.
11011         (Vauto_fill_chars): New variables.
11012         (internal_self_insert): Check Vauto_fill_chars.
11013         (vars_of_cmds):
11014         Declare auto-fill-chars as a Lisp variable and initialize it.
11015
11016 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11017
11018         * fileio.c (Fmake_symbolic_link):
11019         (Ffile_symlink_p):
11020         Run handlers even if local machine doesn't have symlinks.
11021
11022 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11023
11024         * event-msw.c (mswindows_drain_windows_queue):
11025         Don't generate paint magic events for non-XEmacs frames.
11026
11027 2000-03-05  Andy Piper  <andy@xemacs.org>
11028
11029         * redisplay.c (redisplay_frame): generate_displayable_area and
11030         friends assumes that we are not in GC, we therefore have to make
11031         sure that this doesn't happen.
11032
11033         * gutter.c (calculate_gutter_size): generate_displayable_area
11034         assumes that we are not in GC, we therefore have to make sure that
11035         this doesn't happen.
11036
11037 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11038
11039         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11040
11041 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11042
11043         * redisplay.c (regenerate_window): Make sure we set a sane value
11044         for end_pos even if we jump out of the loop.
11045         (regenerate_window): Answer Ben's question :-).
11046         (start_end_of_last_line): Add may_error argument.
11047         (start_of_last_line):
11048         (end_of_last_line): Pass may_error = 0.
11049         (end_of_last_line_may_error): New function.
11050         (pixel_to_glyph_translation): Use it, so we don't crash in
11051         event_to_glyph.
11052
11053 2000-03-04  Andy Piper  <andy@xemacs.org>
11054
11055         * window.h (struct window): add gutter_extent_modiff.
11056
11057         * window.c (allocate_window): zero out gutter_extent_modiff.
11058
11059         * redisplay.h: declare sync_display_line_structs.
11060
11061         * redisplay.c (add_glyph_rune): add a better comment.
11062
11063         * redisplay-output.c (sync_display_line_structs): made non-static.
11064         (compare_runes): remove unneccesary glyph cachel access.
11065
11066         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11067
11068         * gutter.c (output_gutter): don't output the gutter if extent
11069         changes only involve extents in buffers. use 4 sets of display
11070         lines.
11071         (gutter_extent_signal_changed_region_maybe): new function. Mark
11072         extents in gutters as changed.
11073         (update_frame_gutters): use 4 sets of display lines.
11074         (reset_gutter_display_lines): ditto.
11075         (free_frame_gutters): ditto.
11076         (redraw_exposed_gutter): force output of gutters.
11077
11078         * frame.h (struct frame): add 4 sets of gutter display lines.
11079
11080         * extents.c: (extent_changed_for_redisplay): signal changes to
11081         extents in strings in the gutter as well as extents in buffers.
11082
11083 2000-03-02  Andy Piper  <andy@xemacs.org>
11084
11085         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11086
11087         * frame.c (Fmake_frame): make sure the gutters get initialized
11088         after the frame is visible.
11089         (set_frame_selected_window): re-arrange compilation macros a
11090         little.
11091         (change_frame_size_1): mark gutters changed.
11092
11093         * device.c (Fset_device_class): mark gutters changed.
11094
11095 2000-03-01  Andy Piper  <andy@xemacs.org>
11096
11097         * window.c (window_top_frame_gutter_height): deleted.
11098         (window_bottom_frame_gutter_height): ditto.
11099         (window_left_frame_gutter_height): ditto.
11100         (window_right_frame_gutter_height): ditto.
11101         (window_top_gutter_height): don't use them.
11102         (window_bottom_gutter_height): ditto.
11103         (window_left_gutter_width): ditto.
11104         (window_right_gutter_width): ditto.
11105         (Fsplit_window): ditto.
11106         (Fwindow_pixel_edges): don't use border dimensions here.
11107
11108         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11109         (update_scrollbar_instance): ditto.
11110
11111         * redisplay.c (generate_modeline): don't take gutters into account.
11112         (generate_modeline): ditto.
11113         (redisplay_frame): small gutter display optimization.
11114
11115         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11116
11117         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11118         gutters into account.
11119
11120         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11121         for window position and type.
11122
11123         * gutter.c (get_gutter_coords): fix for frame gutters.
11124         (update_frame_gutters): update frame geometry if the gutters have
11125         changed.
11126         (init_frame_gutters): record current gutter geometries.
11127
11128         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11129         var.
11130         (mswindows_widget_instantiate): ditto.
11131
11132         * frame.h (struct frame): add current_gutter_bounds.
11133
11134         * frame.c (change_frame_size_1): position window and minibuffer
11135         appropriately taking into account the frame gutters.
11136
11137         * frame-x.c: (x_initialize_frame_size): take into account the
11138         frame gutters.
11139
11140 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11141
11142         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11143
11144 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11145
11146         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11147
11148 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11149
11150         * file-coding.c (reset_decoding_stream): Clear previous
11151         detection state when autodetect.
11152
11153 2000-02-29  Didier Verna  <didier@xemacs.org>
11154
11155         * extents.c (set_extent_glyph_1): don't require extents to be
11156         attached.
11157
11158 2000-02-27  Andy Piper  <andy@xemacs.org>
11159
11160         * gutter.c (Fset_default_gutter_position): don't default left and
11161         right gutter visibility to t.
11162         (Fset_default_gutter_position): run
11163         default-gutter-position-changed-hook.
11164         (syms_of_gutter): add default-gutter-position-changed-hook.
11165
11166 2000-02-26  Andy Piper  <andy@xemacs.org>
11167
11168         * specifier.c (Fmake_specifier): add gutter references.
11169
11170         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11171
11172         * lisp.h: declare Fvalid_plist_p.
11173
11174         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11175         as changed.
11176         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11177         well as its visibility so that it gets reconstructed.
11178         (construct_window_gutter_spec): new function. Construct a string
11179         to be displayed in the gutter from a plist of strings. Take care
11180         to only use elements that are declared as visible.
11181         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11182         WINDOW_GUTTER.
11183         (gutter_validate): allow plists of strings in the specifier.
11184         (gutter_specs_changed): construct the real_gutter from the gutter
11185         specs using construct_window_gutter_spec.
11186         (gutter_visible_validate): gutter-visible is a new specifier type.
11187         (Fgutter_visible_specifier_p): new function for the new specifier.
11188         (syms_of_gutter): declare gutter-visible and
11189         Fgutter_visible_specifier_p.
11190         (specifier_type_create_gutter): intitalize new gutter-visible
11191         specifier.
11192         (reinit_specifier_type_create_gutter): ditto.
11193         (specifier_vars_of_gutter): use new specifier type for gutter
11194         visibility.
11195         (init_frame_gutters): construct real_gutter correctly.
11196         (Fgutter_specifier_p): beef up documentation.
11197         (Fgutter_size_specifier_p): ditto.
11198
11199         * winslots.h: add real_gutter slots.
11200
11201 2000-02-25  Andy Piper  <andy@xemacs.org>
11202
11203         * device-msw.c: Be kind to older cygwin versions. From Raymond
11204         Toy <toy@rtp.ericsson.se>.
11205
11206         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11207         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11208
11209 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11210
11211         * elhash.c (MARK_OBJ): Practice macro hygiene.
11212
11213 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11214
11215         * miscplay.c: s/__inline__/inline/g;
11216         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11217         (get_device_compdc): INLINE ==> static inline
11218         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11219         find -name '*.h' | \
11220         xargs global-replace \
11221         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11222
11223 2000-02-25  Andy Piper  <andy@xemacs.org>
11224
11225         * window.c (window_top_frame_gutter_height): new function.
11226         (window_top_window_gutter_height): ditto.
11227         (window_top_gutter_height): use them.
11228         (window_bottom_frame_gutter_height): new function.
11229         (window_bottom_window_gutter_height): ditto.
11230         (window_bottom_gutter_height): use them.
11231         (window_left_window_gutter_width): new function.
11232         (window_left_frame_gutter_width): ditto.
11233         (window_left_gutter_width): use them.
11234         (window_right_window_gutter_width): new function.
11235         (window_right_frame_gutter_width): ditto.
11236         (window_right_gutter_width): use them.
11237         (window_pixel_height): new function. calulate window pixel height
11238         with frame gutter involvement.
11239         (Fsplit_window): calculate new sizes taking frame gutters into
11240         account.
11241         (window_char_height_to_pixel_height): don't include frame gutters.
11242         (window_char_height): use window_pixel_height.
11243         (window_pixheight): rename from window_pixel_height.
11244         (change_window_height): use it.
11245         (window_pixel_height_to_char_height): don't include frame gutters.
11246         (window_char_width_to_pixel_width): ditto.
11247
11248 2000-02-25  Andy Piper  <andy@xemacs.org>
11249
11250         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11251         if it is.
11252
11253 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11254
11255         * alloc.c (staticpro):
11256         (staticpro_nodump):
11257         (dumpstruct):
11258         (dumpopaque):
11259         (pdump_wire):
11260         (pdump_wire_list):
11261         (compact_string_chars):
11262         (pdump_dump_wired):
11263         Convert:  if (foo) abort();  ==>  assert (! foo);
11264
11265         * eldap.c (Fldap_search_basic):
11266         (Fldap_add):
11267         (Fldap_modify):
11268         (Fldap_delete):
11269         Fix compiler warnings, and possible crashes if (random) return
11270         value were to be used.
11271
11272 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11273
11274         * device-msw.c: Workaround ResetDC failure.
11275
11276         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11277         applying a devmode.
11278
11279         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11280         (mswindows_text_width): Do not start printer page.
11281
11282         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11283
11284         * glyphs-msw.c: Added image methods to msprinter console and
11285         msprinter-specific image instantiation.
11286
11287 2000-02-20  Mike Alexander  <mta@arbortext.com>
11288
11289         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11290         to avoid crashes when selection-sets-clipboard is on
11291         (mswindows_own_selection): ditto
11292
11293 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11294
11295         * glyphs-msw.c:
11296         * redisplay-msw.c (get_frame_dc):
11297         (get_frame_compdc):
11298         * console-msw.h:
11299         * device-msw.c (mswindows_init_device):
11300         (mswindows_delete_device):
11301         (msprinter_init_device):
11302         (msprinter_delete_device):
11303         * frame-msw.c (mswindows_init_frame_1):
11304         (mswindows_delete_frame):
11305         (msprinter_init_frame_3):
11306         (msprinter_delete_frame): Move compatible DC to device object from
11307         frame object, for both mswindows and msprinter. Only one at a time
11308         is needed, it is a real waste to have one per frame!
11309
11310 2000-02-23  Andy Piper  <andy@xemacs.org>
11311
11312         * glyphs.c: add dynamic width and height elements.
11313         (image_instance_equal): ditto.
11314
11315         * glyphs-widget.c (widget_query_geometry): calculate width and
11316         height dynamically if required.
11317         (initialize_widget_image_instance): initialize dynamic dimensions.
11318         (widget_instantiate): pick-up dynamic dimensions.
11319
11320         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11321         dynamic determination. Add appropriate macros.
11322
11323         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11324         dimensions safe.
11325         (WINDOW_GUTTER_SIZE): ditto.
11326         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11327
11328         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11329         inline.
11330         (get_frame_dc): ditto.
11331
11332         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11333         here.
11334
11335 2000-02-23  Martin Buchholz <martin@xemacs.org>
11336
11337         * XEmacs 21.2.31 is released.
11338
11339 2000-02-22  Ben Wing <ben@xemacs.org>
11340
11341         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11342
11343 2000-02-22  Andy Piper  <andy@xemacs.org>
11344
11345         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11346
11347 2000-02-21  Mike Sperber <mike@xemacs.org>
11348
11349         * .dbxrc:
11350         * .gdbinit:
11351         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11352         variables.
11353
11354 2000-02-21  Mike Sperber <mike@xemacs.org>
11355
11356         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11357
11358 2000-02-21  Martin Buchholz <martin@xemacs.org>
11359
11360         * XEmacs 21.2.30 is released.
11361
11362 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11363
11364         Performance hacking.
11365         * *.c (syms_of_*):
11366         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11367         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11368         * emacs.c (main_1):
11369         * lisp.h (DEFUN):
11370         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11371         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11372         * symeval.h (DEFVAR_SYMVAL_FWD):
11373         * symbols.c (guts_of_unbound_marker):
11374         Make all c_readonly objects also lisp_readonly and marked for life.
11375         * lrecord.h (struct lrecord_implementation):
11376         Document flags better.
11377         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11378         * lrecord.h (DECLARE_LRECORD):
11379         * lrecord.h (XSETRECORD):
11380         * lrecord.h (RECORDP):
11381         * lrecord.h (RECORD_TYPEP):
11382         * lrecord.h (RECORD_MARKER): New.
11383         * lrecord.h (error_check_*):
11384         * lrecord.h (CONCHECK_NONRECORD):
11385         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11386         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11387         * lrecord.h (set_lheader_implementation):
11388         * lrecord.h (enum lrecord_type): New.
11389         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11390         * alloc.c (disksave_object_finalization_1):
11391         * alloc.c (mark_object):
11392         * alloc.c (lrecord_type_index):
11393         * alloc.c (tick_lcrecord_stats):
11394         * alloc.c (Fgarbage_collect):
11395         * alloc.c (init_alloc_once_early):
11396         * alloc.c (pdump_load):
11397         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11398         * alloc.c (lrecord_type_index): Delete.
11399         Make lisp object type indexes be constant.
11400           Makes (byte-compile) 5% faster.
11401         Put all marker functions into their own array.
11402           Makes (garbage-collect) 5% faster.
11403         Optimize SYMBOL_VALUE_MAGIC_P.
11404           Makes (byte-compile) 2-3% faster.
11405         * config.h.in (gc_checking_assert): New.
11406         * alloc.c: Use gc_checking_assert().
11407         * .dbxrc: Make compatible with new object type implementation.
11408         * .gdbinit: Make compatible with new object type implementation.
11409         * alloc.c: Delete all symbols defined only for debugging, such as
11410         Lisp_Type_Vector and lrecord_charset.
11411
11412 2000-02-21  Andy Piper  <andy@xemacs.org>
11413
11414         * gui-msw.c (Fmswindows_shell_execute): fix file location
11415         problems.
11416
11417         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11418         unshowing so that set_window_buffer doesn't undo
11419         kill_buffer_hook's hard work.
11420
11421         * glyphs-widget.c (tab_control_query_geometry): don't count the
11422         first item when calculating geometry.
11423
11424         * glyphs.c (map_subwindow): remove redundant code.
11425         (update_frame_subwindows): be more circumspect about when to
11426         update subwindows.
11427
11428         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11429         when items haven't changed. Update faces if faces have changed as
11430         well as just the widget face.
11431         (x_tab_control_update): Update faces if faces have changed as well
11432         as just the widget face.
11433
11434 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11435
11436         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11437         registration.
11438         (build_syscolor_string): Use mswindows_color_to_string to try to
11439         get a named color.
11440         (mswindows_device_system_metrics): Reverse the foreground and
11441         background colors so that they match the documentation.
11442
11443         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11444         they match the default Windows palette.
11445         (mswindows_color_to_string): New function.
11446
11447 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11448
11449         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11450
11451 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11452
11453         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11454         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11455
11456         * symbols.c (init_symbols_once_early): Removed obsolete
11457         DATA_SEG_BITS related kludge.
11458         (defvar_magic): Ditto.
11459
11460         * malloc.c: Removed obsolete DATA_SEG_BITS
11461         * ralloc.c: Ditto.
11462         * mem-limits.h: Ditto.
11463
11464         * Makefile.in.in: Removed obsolete HAVE_SHM
11465         * emacs.c: Ditto.
11466
11467 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11468
11469         *  device-msw.c (mswindows_delete_device): Free DDE string
11470         handles.
11471
11472 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11473
11474         * keymap.c (get_keyelt):
11475         * unexnt.c (unexec):
11476         * vm-limit.c (memory_warnings):
11477         * ntheap.c (recreate_heap):
11478         * ntheap.h (UNINIT_PTR):
11479         * select-msw.c (Fmswindows_get_clipboard):
11480         (Fmswindows_set_clipboard):
11481         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11482         * objects-msw.c:
11483         * menubar-msw.c (displayable_menu_item):
11484         * glyphs-msw.c:
11485         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11486         * sysdep.c (sys_subshell):
11487         * process-nt.c (nt_create_process):
11488         * nt.c (normalize_filename):
11489         (dostounix_filename):
11490         (unixtodos_filename):
11491         * ntproc.c (win32_executable_type):
11492         * ntplay.c (play_sound_data_1):
11493         (play_sound_file):
11494         * editfns.c (get_home_directory):
11495         * event-msw.c (struct winsock_stream):
11496         (mswindows_dde_callback):
11497         * device-msw.c (msprinter_init_device):
11498         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11499
11500         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11501         mswindows_clear_toolbar were swapped!
11502
11503         * objects-msw.c:(colormap_t):
11504         (fontmap_t):
11505         * emacs.c (struct standard_args): Fixed const jumble.
11506
11507         * glyphs-widget.c (update_widget): Fixed comparison notation.
11508
11509         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11510
11511         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11512         __declspec(noreturn) syntax.
11513
11514 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11515
11516         * eldap.c (Fldap_open):
11517         (Fldap_search_basic):
11518         (Fldap_add):
11519         (Fldap_modify):
11520         Use new coding system conversion macros.
11521
11522 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11523
11524         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11525
11526 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11527
11528         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11529         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11530
11531         * eldap.c (Qadd, Qreplace): New constant symbols
11532         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11533         interruptions by XEmacs signals
11534         Remove unnecessary calls to slow_down_interrupts and
11535         speed_up_interrupts
11536         (Fldap_search_basic): Renamed from Fldap_search_internal
11537         Added new optional parameter VERBOSE that triggers the
11538         display of progress messages
11539         Remove unnecessary calls to slow_down_interrupts and
11540         speed_up_interrupts
11541         LDAP result code analysis rewritten
11542         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11543         (syms_of_eldap): Define the new symbols and functions
11544
11545
11546 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11547
11548         * realpath.c: Determine PATH_MAX maximally portably.
11549
11550         * insdel.c (bytecount_to_charcount): Optimize.
11551         The function used to be optimized for entirely ASCII sequences.
11552         Now it is optimized for successive characters from the same
11553         charset.  This also wins big for _mostly_ ASCII sequences.
11554
11555         * fileio.c (Ffile_truename): convert return from realpath() using
11556         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11557         - Rewrite GCPROing slightly.
11558
11559         * sysdep.c (sys_open): Do filename conversion, like all other
11560         sys_* functions.  Fixes bug:
11561         (let ((file-name-coding-system 'iso-8859-2))
11562            (write-region x y latin2-name))
11563         ==> writes filename using internal encoding.
11564
11565 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11566
11567         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11568         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11569         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11570         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11571         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11572         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11573         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11574         (CONST_IF_NOT_DEBUG): Delete.
11575         * alloc.c (this_one_is_unmarkable): Delete.
11576         (mark_object): Don't check for this_one_is_unmarkable. Use the
11577         c_readonly flag instead.
11578         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11579
11580 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11581
11582         * event-msw.c (mswindows_drain_windows_queue):
11583         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11584         away redundant repaint events.
11585
11586 2000-02-17  Andy Piper  <andy@xemacs.org>
11587
11588         * redisplay.h: declare mark_redisplay_structs.
11589
11590         * redisplay.c (redisplay_window):
11591         (redisplay_frame): don't check subwindows_state_changed.
11592         (mark_redisplay): mark gutters here.
11593
11594         * glyphs.c: (instantiate_image_instantiator): always layout if we
11595         haven't done so already.
11596         (allocate_image_instance): don't mark as dirty.
11597         (update_subwindow): bind inhibit_quit.
11598
11599         * gutter.c (mark_gutters): new function.
11600
11601         * glyphs-x.c (x_update_widget): Always resize to get round a
11602         widget bug.
11603
11604         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11605         breaking absolutely everything.
11606
11607         * gutter.h: declare mark_gutters.
11608
11609 2000-02-16  Martin Buchholz <martin@xemacs.org>
11610
11611         * XEmacs 21.2.29 is released.
11612
11613 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11614
11615         * fns.c (size_bit_vector): Fix computation of the size.
11616
11617 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11618
11619         * *.[ch]: Change CONST to const globally.
11620         find -name '*.[ch]' | \
11621         xargs global-replace \
11622         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11623         - Remove vestigial references to CONST_IS_LOSING
11624
11625 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11626
11627         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11628         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11629         events instead of dispatching them directly.
11630         (mswindows_handle_paint): New function to do repainting.
11631         (mswindows_wnd_proc):
11632         (emacs_mswindows_handle_magic_event): Call above function.
11633
11634 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11635
11636         * objects-msw.c (mswindows_create_font_variant): Return the new
11637         font handle.
11638         (initialize_font_instance): Get font metrics from the underlined
11639         variant of the font to cope with the case where the underlined
11640         font has a bigger descent.
11641
11642 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11643
11644         * gui.c (gui_item_accelerator): Return the first underlined
11645         character in item name.
11646
11647 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11648
11649         * lisp.h: Added Qprinter.
11650
11651         * general.c (syms_of_general): Initialized it.
11652
11653         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11654         (get_frame_dc):
11655         (get_frame_compdc): Made inline.
11656
11657         * console.h (struct console_methods): Added eject_page method.
11658
11659         * frame.h: Added FRAME_DISPLAY_P and friends.
11660         Aligned backslahes in many macros in more readable fashion.
11661         Added page_number to struct frame, and an accessor macro
11662         for it.
11663
11664         * defice.h: Added DEVICE_DISPLAY_P and friends.
11665
11666         * device.c (Fdevice_printer_p): Used these.
11667
11668         * frame.c (allocate_frame_core): Initialize page number.
11669         (Fprint_job_page_number):
11670         (Fprint_job_eject_page): Implemented.
11671
11672         * frame-msw.c (msprinter_eject_page): Added method.
11673         (msprinter_start_page): Added.
11674
11675         * window.c (Fwindow_truncated_p): Fixed docstring.
11676         (Fwindow_last_line_visible_height): Implemented.
11677
11678 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11679
11680         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11681
11682 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11683
11684         * syntax.c (scan_words): Always advance at least one character.
11685
11686 2000-02-13  Andy Piper  <andy@xemacs.org>
11687
11688         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11689         to make sure the glyph is in the cachels.
11690
11691         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11692         global image instance flag.
11693         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11694         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11695
11696         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11697         (Fset_image_instance_property): mark layout as changed.
11698         (invalidate_glyph_geometry_maybe): mark layout as changed.
11699         (glyph_width): use new NEEDS_LAYOUT macro.
11700         (glyph_ascent): ditto.
11701         (glyph_descent): ditto.
11702         (glyph_height): ditto.
11703         (image_instance_layout): mark layout as clean after laying out.
11704         (update_subwindow): don't mark layout as clean here.
11705
11706         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11707         should no longer be needed.
11708
11709         * glyphs-x.c (x_update_widget): sanitize asserts.
11710         (x_finalize_image_instance): sanitize assignment to widgets.
11711
11712         * glyphs-widget.c (widget_instantiate): don't need to clear the
11713         layout flag here.
11714
11715 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11716
11717         * sysdep.c (getcwd): Use standard prototype.
11718         * sysdep.h (getcwd): Use standard prototype.
11719
11720         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11721         (sequence, start, end).
11722         Remove redundant type checking.
11723         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11724         view of `caller-protects') to avoid a crash where the real fix was
11725         found elsewhere.
11726
11727 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11728
11729         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11730
11731         * s/sol2.h: Remove feature macro initialization.
11732
11733         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11734         (vector_hash): New.  Code from internal_hash.
11735         * lrecord.h:
11736         Fix up allocation subsystem comments.
11737
11738         * config.h.in: Add __EXTENSIONS__ for Solaris.
11739
11740         * systime.h (EMACS_GETTIMEOFDAY): New.
11741         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11742         Remove Solaris-specific code.
11743         Use void* for the (ignored) second arg for gettimeofday().
11744
11745         * elhash.c (hash_table_hash): Implement it, finally.
11746         * elhash.c:  Use hashcode_t.
11747
11748         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11749         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11750
11751         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11752         * fns.c (size_bit_vector):
11753         * alloc.c (size_vector):
11754         (make_vector_internal):
11755         (make_bit_vector_internal):
11756         (sweep_bit_vectors_1):
11757         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11758
11759 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11760
11761         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11762         Include strings.h to avoid warnings for bzero and strcasecmp.
11763
11764 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11765
11766         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11767         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11768
11769         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11770         sequence.
11771
11772 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11773
11774         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11775         use a value field instead.
11776         (symbol_value_forward_forward): Use value field.
11777         (DEFVAR_SYMVAL_FWD): Use value field.
11778         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11779         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11780         (DEFVAR_CONST_INT): Ditto.
11781         (DEFVAR_BOOL): Ditto.
11782         (DEFVAR_CONST_BOOL): Ditto.
11783         (DEFVAR_INT_MAGIC): Ditto.
11784         (DEFVAR_BOOL_MAGIC): Ditto.
11785
11786         * symbols.c (guts_of_unbound_marker): Use value field.
11787         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11788         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11789
11790         * lisp.h: Declare dumpopaque and noninteractive1.
11791
11792         * alloc.c (dumpopaque): Added.
11793         (pdump_dump_opaquevec): Added.
11794         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11795         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11796         noninteractive.
11797
11798 2000-02-10  Andy Piper  <andy@xemacs.org>
11799
11800         * glyphs.c (image_instance_layout): if the size changes, mark it
11801         as such.
11802
11803         * redisplay-output.c (redisplay_output_layout): Update the
11804         subwindow here.
11805         (redisplay_output_subwindow): ditto.
11806
11807         * glyphs.c (update_subwindow): make sure we reset flags for
11808         layouts as well as everything else.
11809
11810         * glyphs-widget.c (layout_layout): don't need to set the instances
11811         dimensions here.
11812
11813 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11814
11815         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11816         not HAVE_DLOPEN, which is a lower-level thing.
11817
11818         * .cvsignore: Ignore gmon.out
11819
11820 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11821
11822         * .cvsignore: Ignore portable dumper xemacs.dmp file
11823
11824 2000-02-09  Andy Piper  <andy@xemacs.org>
11825
11826         * redisplay-output.c (redisplay_output_layout): be more clever
11827         about when we output based on the changed flags.
11828
11829         * glyphs.h (struct image_instantiator_methods): add update_method.
11830         (struct Lisp_Image_Instance): add changed flags. Declare new
11831         macros for manipulating them.
11832
11833         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11834         (image_instance_parent_glyph): find an image_instance's parent
11835         glyph or image_instance.
11836         (image_instance_layout): mark the size as changed.
11837         (set_image_instance_dirty_p): new function. mark an image
11838         instance, plus all of its parents, as dirty.
11839         (Fset_image_instance_property): use it.
11840         (Fglyph_animated_timeout_handler): use it.
11841         (update_subwindow): call update_widget and device methods for
11842         update_subwindow. Mark all changed flags as clean.
11843         (Fresize_subwindow): mark size as changed.
11844
11845         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11846         failures.
11847         (x_update_subwindow): only resize subwindows here.
11848         (x_update_widget): new function. Update all changed properties of
11849         a widget.
11850         (x_resize_subwindow): deleted.
11851         (x_widget_set_property): deleted.
11852         (x_progress_gauge_set_property): deleted.
11853         (x_progress_gauge_update): new function. Implement recorded
11854         changes.
11855         (x_tab_control_update): ditto.
11856         (x_tab_control_set_property): deleted.
11857         (console_type_create_glyphs_x): declare new functions.
11858         (image_instantiator_format_create_glyphs_x): ditto.
11859
11860         * glyphs-widget.c (widget_set_property): mark text changed.
11861         (update_widget): new function. Update properties of a widget.
11862         (widget_instantiate): for layouts make sure we set their
11863         children's parent correctly.
11864         (tab_control_set_property): new function. Record changes that will
11865         take place under redisplay's control.
11866         (progress_gauge_set_property): ditto.
11867         (image_instantiator_progress_guage): declare new functions.
11868         (image_instantiator_tab_control): ditto.
11869
11870         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11871         now.
11872         (mswindows_update_widget): new function. Update all properties on
11873         a widget that have changed.
11874         (mswindows_button_update): new function. Update a button's set
11875         state.
11876         (mswindows_tab_control_update): new function. Update the items in
11877         a tab.
11878         (mswindows_tab_control_set_property): deleted.
11879         (mswindows_progress_gauge_update): new function. Update the
11880         progress gauge's progress.
11881         (mswindows_widget_set_property): deleted. This is all done
11882         asynchronously now.
11883         (mswindows_progress_gauge_set_property): ditto.
11884         (console_type_create_glyphs_mswindows): declare new methods.
11885         (image_instantiator_format_create_glyphs_mswindows): ditto.
11886
11887         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11888         (msprinter_set_frame_properties): ditto.
11889
11890         * console.h (struct console_methods): Add update_widget_method.
11891
11892 2000-02-09  Andy Piper  <andy@xemacs.org>
11893
11894         * gui-msw.c (Fmswindows_shell_execute): Make
11895         mswindows-shell-execute industrial strength.
11896
11897 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11898
11899         * lrecord.h: Make macro argument `props' match member function `plist'.
11900         * fns.c (Fget):
11901         * fns.c (Fput):
11902         * fns.c (Fremprop):
11903         * fns.c (Fobject_plist):
11904         * alloc.c:
11905         * symbols.c:
11906         Object property list frobbing cleanup.
11907         - Allow any lisp object (compared with `eq'), not just symbols, as
11908           keys in object plists.
11909         - Move symbol plist frobbing into symbols.c, where it belongs.
11910         - Move string plist frobbing into alloc.c, where it belongs.
11911         - Everything's an lrecord now, so no need to test for symbolp, etc.
11912         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11913
11914         * extents.c: Reorder code to remove declarations.
11915
11916         * frame.h (store_in_alist): Remove useless declaration.
11917
11918 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11919
11920         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11921         * config.h.in: Add HAVE_XCONVERTCASE.
11922
11923 2000-02-07  Andy Piper  <andy@xemacs.org>
11924
11925         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11926         it breaks many things.
11927
11928 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11929
11930         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11931         actually can start a common comment type.
11932         * src/syntax.h (SYNTAX_END_P): ditto for end.
11933
11934 2000-02-07  Martin Buchholz <martin@xemacs.org>
11935
11936         * XEmacs 21.2.28 is released.
11937
11938 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11939
11940         * event-Xt.c (x_keysym_to_character): New.
11941         (maybe_define_x_key_as_self_inserting_character): New.
11942         (x_has_keysym): New.
11943         Auto-define all keys on the keyboard as self-insert-key.
11944
11945 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11946
11947         * menubar.c (vars_of_menubar): A small code simplification.
11948
11949         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11950
11951         * ExternalShell.c:
11952         * ExternalClient.c:
11953         * EmacsShell-sub.c:
11954         * EmacsManager.c:
11955         * EmacsFrame.c:
11956         Use consistent style for specifying X resources.
11957
11958         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11959         This makes (dontusethis-set-symbol-value-handler) actually usable.
11960
11961         * lrecord.h (lrecord_decription_type):
11962         * alloc.c (pdump_register_sub):
11963         (pdump_dump_data):
11964         (pdump_reloc_one):
11965         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11966         Comply with XEmacs coding style.
11967         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11968         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11969
11970         * keymap.c (Faccessible_keymaps):
11971         Make (accessible-keymaps map "\C-h") do the Right Thing.
11972         Make (accessible-keymaps map []) do the Right Thing.
11973         Make (accessible-keymaps map "") do the Right Thing.
11974         (check_keymap_definition_loop): New function.
11975         (keymap_store_internal): Keep luser from shooting self in foot,
11976           via (define-key ctl-x-4-map "p" global-map).
11977         Remove fullness slot from struct Lisp_Keymap, since hash tables
11978         are now reliable.
11979         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11980
11981 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11982
11983         * redisplay.c (init_redisplay): Fix small memory leak.
11984         * elhash.h:
11985         * elhash.c (pdump_reorganize_hash_table):
11986         Rename from reorganize_hash_table. Change prototype.
11987         Reuse the original memory for hentries.  Save 100k.
11988         * alloc.c (PDUMP_READ): new macro.
11989         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11990         * alloc.c: No need to #ifndef before #undef.
11991
11992         * print.c: Allow debug_print() to print readably by modifying
11993         debug_print_readably.  Use consistent variable names.
11994
11995         * .dbxrc: Try to get things to work even if stopped in a function
11996         without source available by explicitly specifying source files.
11997 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11998
11999         * unexnt.c (_start): Removed bogus code which caused loading heap
12000         from differrent executable file.
12001         Removed bogus assignment to _fmode, which caused inconsistencies.
12002
12003 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12004
12005         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12006         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12007         Do not preliminary `#define signal sigset'.
12008
12009         * systime.h: Do not prototype environ on windows nt and cygwin,
12010         this conflicts with system header.
12011
12012         * syssignal.h: Use correct define for WINDOWSNT
12013
12014         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12015         with system header.
12016
12017         * sysdep.c (near start of file): Fixed commentary and rearranged
12018         ifdefs in readable order.
12019         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12020         (start_of_text):
12021         (end_of_text):
12022         (end_of_data): Do not compile in if using PDUMP.
12023
12024         * symsinit.h: Prototyped vars_of_nt().
12025
12026         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12027         (find_child_console): Use it.
12028         (sys_kill): Use it.
12029
12030         * ntheap.h: Do not extern os_subtype.
12031
12032         * ntheap.c (cache_system_info): Do not cache unneeded:
12033         nt_major_version, nt_minor_version and os_subtype.
12034         (recreate_heap): Do not compile in when PDUMPing.
12035
12036         * nt.c (geteuid and friends): Use the new varibale
12037         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12038         (init_user_info): Removed the above mentioned hackery.
12039         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12040         stat has been fixed in the C runtime.
12041         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12042
12043         * file-coding.c (struct file_coding_dump): Do not define
12044         ucs_to_mule_table in the struct if not MULE.
12045         (struct struct lrecord_description fcd_description_1): Do not dump
12046         the above.
12047
12048         * emacs.c (main_1): Call vars_of_nt().
12049         (right before Fdump_emacs_data): Don't need lastfile if using both
12050         portabe dumper and system malloc.
12051
12052         * alloc.c (Fmemory_limit): Conditionalized out.
12053         (pdump): Use OPEN_BINARY for the portable dump file.
12054         (pdump_load): Ditto.
12055
12056 2000-02-02  Mike Alexander  <mta@arbortext.com>
12057
12058         * nt.c (convert_time): Set tm_isdst before calling mktime and
12059         avoid calling it at all if the compiler supports 64 bit integers.
12060         Also initialize utc_base_ft before using it.
12061
12062 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12063
12064         * frame.c (change_frame_size_1): Take f->internal_border_width
12065         into consideration when calculating the width of the frame.
12066
12067 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12068
12069         * window.c (frame_min_height):
12070         (frame_size_valid_p):
12071         (frame_pixsize_valid_p): Added.
12072         (check_frame_size): Generalized.
12073
12074         * window.h: Prototyped the above.
12075
12076         * lisp.h:
12077         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12078         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12079         Deleted Vwin32_* and Vbinary_process_* unused variables.
12080
12081         * device-msw.c (msprinter_init_device): Do not get printer font
12082         list; Added DEVMODE functions.
12083
12084         * frame-msw.c: Added lots of printer code.
12085
12086         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12087         general.c.
12088
12089         * console-msw.h: Added more msprinter device private slots.
12090
12091 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12092
12093         * event-msw.c (key_needs_default_processing_p): Added.
12094         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12095
12096 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12097
12098         * glyphs.c (image_instance_layout): Mark image instance as clean
12099         after layout.
12100         (glyph_dirty_p): Removed redundant function.
12101         (invalidate_glyph_geometry_maybe): Added.
12102         (update_glyph_cachel_data): Call it.
12103
12104         * glyphs.h: Prototyped it.
12105
12106         * redisplay.c (add_glyph_rune): Call it.
12107         (redisplay_window): Reset glyphs cachels when frame faces have
12108         changed, thus forcing recomputation of built-in border glyphs.
12109
12110 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12111
12112         * Makefile.in.in: Make portable dumper and purify play well together.
12113         Add imperfect, but better than nothing, support for pdump.
12114         Remove xemacs.dmp when temacs is re-generated.
12115         Don't ignore errors when dumping xemacs.
12116
12117         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12118
12119 2000-01-28  Andy Piper  <andy@xemacs.org>
12120
12121         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12122         (setup_normal_frame): ditto.
12123         (setup_frame_without_minibuffer): ditto.
12124         (setup_minibuffer_frame): ditto.
12125         (delete_frame_internal): ditto.
12126         (Fmake_frame_invisible): ditto.
12127         (Ficonify_frame): ditto.
12128
12129         * window.h: change Fset_window_buffer signature.
12130
12131         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12132         (Fset_window_buffer): allow recording of buffer if the window is
12133         the selected window.
12134         (window_loop): Use new Fset_window signature.
12135
12136 2000-01-23  Daniel Pittman  <daniel@danann.net>
12137
12138         * config.h.in: Added template for `HAVE_ATHENA_3D'
12139
12140 2000-01-29  Andy Piper  <andy@xemacs.org>
12141
12142         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12143
12144         * gutter.c (output_gutter): Don't output if the window isn't live.
12145
12146 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12147
12148         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12149         of 01/12/00: Moved SetFocus back here where it belongs.
12150
12151 2000-01-23  Andy Piper  <andy@xemacs.org>
12152
12153         * s/cygwin32.h: declare printer things.
12154
12155 2000-01-26  Andy Piper  <andy@xemacs.org>
12156
12157         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12158         Alexander.
12159
12160 2000-01-24  Andy Piper  <andy@xemacs.org>
12161
12162         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12163         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12164
12165         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12166
12167         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12168
12169         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12170
12171         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12172         (mswindows_output_display_block): Avoid local shadows.
12173
12174         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12175         (mswindows_enqueue_mouse_button_event): ditto.
12176         (mswindows_handle_gui_wm_command): remove declaration.
12177
12178         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12179         warnings.
12180
12181         * console-msw.h: Avoid shadows.
12182         (mswindows_get_toolbar_button_text):
12183         (emacs_mswindows_create_stream_pair):
12184         (emacs_mswindows_delete_stream_pair):
12185         (mswindows_handle_toolbar_wm_command): declare.
12186
12187         * device-msw.c (build_syscolor_string): Avoid shadows.
12188
12189 2000-01-23  Andy Piper  <andy@xemacs.org>
12190
12191         * glyphs-widget.c (widget_instantiate): reverse the items for
12192         layouts so that children are in the expected order.
12193
12194 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12195
12196         * ralloc.c: safe_bcopy ==> memmove
12197         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12198         * s/msdos.h: Remove BCOPY macros.
12199         * insdel.c (gap_right): Remove BCOPY conditional code.
12200         * insdel.c (gap_left): Remove BCOPY conditional code.
12201         XEmacs demands a working ANSI C compiler - hence memmove.
12202
12203         * regex.c (regex_compile): Remove accidental use of trigraphs.
12204
12205 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12206
12207         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12208         event timestamp.
12209
12210 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12211
12212         * event-msw.c (mswindows_drain_windows_queue): Added the
12213         parameter.
12214         (mswindows_need_event): Commented the call to
12215         mswindows_drain_windows_queue().
12216         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12217         only.
12218
12219         * console-msw.h: Moved a few function prototypes here from
12220         event-msw.c.
12221
12222         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12223         parameter from unsigned short to unsigned long.
12224         (Fmswindows_shell_execute): Added return value.
12225
12226 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12227
12228         * sysdep.c (init_system_name):
12229           process-unix.c (unix_canonicalized_host_name):
12230         Don't call freeaddrinfo() if getaddrinfo() fails.
12231
12232         * process-unix.c (unix_open_unix_network_stream):
12233         Moved the code to get a port # into address loop.
12234
12235 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12236
12237         * buffer.c (reinit_vars_of_buffer):
12238         The right place to initialize conversion_in_dynarr and
12239         conversion_out_dynarr.
12240
12241         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12242
12243         * process-unix.c (unix_canonicalize_host_name): Muleize.
12244         (unix_open_network_stream): Muleize.
12245
12246         * buffer.h: Fix up prototypes for ralloc.c functions.
12247
12248 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12249         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12250         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12251                 instead of gethostbyname()
12252         * process-unix.c: In unix_canonicalize_host_name() and
12253                 unix_open_network_stream(), add code to use getaddrinfo()
12254                 instead of gethostbyname().
12255
12256 2000-01-27  Daniel Pittman <daniel@danann.net>
12257
12258         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12259         libs when built with flat Athena.
12260
12261 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12262
12263         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12264         Use coding standards for function prototypes.
12265
12266 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12267
12268         * dialog-msw.c (push_lisp_string_as_unicode):
12269         * doc.c (unparesseuxify_doc_string):
12270         * dired.c (Fuser_name_completion_1):
12271         * dired.c (Fuser_name_all_completions):
12272         * dired.c (free_user_cache):
12273         * dired.c (user_name_completion):
12274         * console-x.c (get_display_arg_connection):
12275         * minibuf.c (clear_echo_area_internal):
12276         * minibuf.c (echo_area_append):
12277         * eldap.c (Fldap_open):
12278         * eldap.c (Fldap_search_internal):
12279         * frame-x.c (x_set_frame_text_value):
12280         * frame-x.c (x_set_frame_properties):
12281         * frame-x.c (x_create_widgets):
12282         * redisplay-tty.c (term_get_fkeys_1):
12283         * objects-x.c (x_parse_nearest_color):
12284         * objects-x.c (x_valid_color_name_p):
12285         * objects-x.c (x_initialize_font_instance):
12286         * objects-x.c (x_list_fonts):
12287         * objects-x.c (x_find_charset_font):
12288         * tooltalk.c (Fadd_tooltalk_message_arg):
12289         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12290         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12291         * process-unix.c (unix_create_process):
12292         * ntproc.c (sys_spawnve):
12293         * sound.c (Fplay_sound_file):
12294         * sound.c (Fplay_sound):
12295         * buffer.c (init_initial_directory):
12296         * buffer.c (init_buffer):
12297         * editfns.c (init_editfns):
12298         * editfns.c (Ftemp_directory):
12299         * editfns.c (Fuser_full_name):
12300         * editfns.c (uncache_home_directory):
12301         * editfns.c (get_home_directory):
12302         * editfns.c (Fuser_home_directory):
12303         * editfns.c (Fformat_time_string):
12304         * editfns.c (Fcurrent_time_string):
12305         * gui-x.c (button_item_to_widget_value):
12306         * database.c (Fopen_database):
12307         * event-Xt.c (x_to_emacs_keysym):
12308         * event-Xt.c (x_event_to_emacs_event):
12309         * event-Xt.c (describe_event_window):
12310         * event-msw.c (mswindows_wnd_proc):
12311         * glyphs-eimage.c (jpeg_instantiate):
12312         * glyphs-eimage.c (gif_instantiate):
12313         * glyphs-eimage.c (png_instantiate):
12314         * glyphs-eimage.c (tiff_instantiate):
12315         * glyphs-x.c (xbm_instantiate_1):
12316         * glyphs-x.c (x_xbm_instantiate):
12317         * glyphs-x.c (x_xface_instantiate):
12318         * glyphs-x.c (autodetect_instantiate):
12319         * glyphs-x.c (cursor_font_instantiate):
12320         * glyphs-x.c (x_widget_instantiate):
12321         * glyphs-x.c (x_widget_set_property):
12322         * glyphs-x.c (x_widget_property):
12323         * glyphs-x.c (BUILD_GLYPH_INST):
12324         * print.c (write_string_to_stdio_stream):
12325         * print.c (output_string):
12326         * print.c (Falternate_debugging_output):
12327         * print.c (Fexternal_debugging_output):
12328         * glyphs-msw.c (extract_xpm_color_names):
12329         * glyphs-msw.c (mswindows_xpm_instantiate):
12330         * glyphs-msw.c (bmp_instantiate):
12331         * glyphs-msw.c (resource_name_to_resource):
12332         * glyphs-msw.c (mswindows_resource_instantiate):
12333         * glyphs-msw.c (xbm_instantiate_1):
12334         * glyphs-msw.c (mswindows_xbm_instantiate):
12335         * glyphs-msw.c (mswindows_xface_instantiate):
12336         * glyphs-msw.c (mswindows_widget_instantiate):
12337         * glyphs-msw.c (add_tree_item):
12338         * glyphs-msw.c (add_tab_item):
12339         * glyphs-msw.c (mswindows_combo_box_instantiate):
12340         * glyphs-msw.c (mswindows_widget_property):
12341         * glyphs-msw.c (mswindows_combo_box_property):
12342         * glyphs-msw.c (mswindows_widget_set_property):
12343         * console.c (stuff_buffered_input):
12344         * objects-msw.c (mswindows_initialize_color_instance):
12345         * objects-msw.c (mswindows_valid_color_name_p):
12346         * objects-msw.c (mswindows_list_fonts):
12347         * objects-msw.c (mswindows_font_instance_truename):
12348         * bytecode.c (optimize_compiled_function):
12349         * select-x.c (symbol_to_x_atom):
12350         * select-x.c (x_atom_to_symbol):
12351         * select-x.c (hack_motif_clipboard_selection):
12352         * select-x.c (selection_data_to_lisp_data):
12353         * select-x.c (lisp_data_to_selection_data):
12354         * select-x.c (Fx_get_cutbuffer_internal):
12355         * select-x.c (Fx_store_cutbuffer_internal):
12356         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12357         * buffer.h (TO_INTERNAL_FORMAT): New function.
12358         * emacs.c (make_arg_list_1):
12359         * emacs.c (make_argc_argv):
12360         * emacs.c (main_1):
12361         * emacs.c (Fdump_emacs):
12362         * emacs.c (split_string_by_emchar_1):
12363         * file-coding.h:
12364         * lisp.h:
12365         * lstream.h:
12366         * symsinit.h:
12367         * device-x.c (x_init_device):
12368         * device-x.c (Fx_valid_keysym_name_p):
12369         * device-x.c (Fx_get_font_path):
12370         * device-x.c (Fx_set_font_path):
12371         * glyphs.c (bitmap_to_lisp_data):
12372         * glyphs.c (pixmap_to_lisp_data):
12373         * alloc.c (make_ext_string): Use coding system arguments.  Update
12374         all callers.
12375         * alloc.c (build_string):
12376         * callproc.c (child_setup):
12377         * callproc.c (init_callproc):
12378         * fileio.c (lisp_strerror):
12379         * fileio.c (directory_file_name):
12380         * fileio.c (Fexpand_file_name):
12381         * fileio.c (Ffile_truename):
12382         * fileio.c (Fsysnetunam):
12383         * fileio.c (Fdo_auto_save):
12384         * sysdep.c (sys_readdir):
12385         * tests.c: New file.  Allow adding C tests.
12386         Replace GET_* macros with a more comprehensible and flexible
12387         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12388         Modify all calls.
12389         Any coding system can be used to do format conversion.
12390         Eliminate enum external_data_format.
12391         Eliminate convert_to_external_format.
12392         Eliminate convert_to_internal_format.
12393         Make sure file-name, keyboard, terminal, and ctext are always
12394         defined as coding systems or aliases.  Make
12395         file-name-coding-system, terminal-coding-system, and
12396         keyboard-coding-system magical variables that are equivalent to
12397         defining the corresponding coding system aliases.
12398
12399         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12400         * file-coding.c (Fcoding_system_alias_p): New function.
12401         * file-coding.c (Fcoding_system_aliasee): New function.
12402         * file-coding.c (append_suffix_to_symbol): New function.
12403         * file-coding.c (dangling_coding_system_alias_p): New function.
12404         * file-coding.c (Ffind_coding_system):
12405         * file-coding.c (Fcopy_coding_system):
12406         * file-coding.c (encode_coding_no_conversion):
12407         * file-coding.c (syms_of_file_coding):
12408         * file-coding.c (vars_of_file_coding):
12409         Rewrite coding system alias code.
12410         Allow nested aliases, like symbolic links.
12411         Allow redefinition of coding system aliases.
12412         Prevent existence of dangling coding system aliases.
12413
12414         * dired.c (Fuser_name_completion_1):
12415         * dired.c (Fuser_name_all_completions):
12416         A crash would happen if user did QUIT in the middle of building
12417         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12418
12419         * lisp.h:
12420         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12421
12422         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12423         an unsigned char *.  Update all callers.
12424
12425 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12426
12427         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12428
12429 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12430
12431         * elhash.c (hentry_description): Use more portable definition.
12432         (resize_hash_table): Initialize new hentries using
12433         xnew_array_and_zero, thereby simplifying the code.
12434
12435         * mule-charset.c (make_charset): Make sure entire object is
12436         initialized, to avoid Purify warnings.
12437
12438         * alloc.c (resize_string): Fix unlikely crash with big strings.
12439
12440 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12441
12442         * realpath.c (xrealpath):
12443         Don't call getwd().
12444
12445 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12446
12447         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12448
12449 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12450
12451         * unexelfsgi.c (unexec): Change the way we decide which segment
12452         should be extended.
12453
12454         Assumption that .bss section should be outside the PT_LOADable
12455         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12456         it's present) is inside the 'data' segment. This would fail the
12457         test which was used to find a segment to grow and cover new
12458         heap. Instead of this assumption, I created another one - on IRIX
12459         the segment to grow should start below .bss and it's address
12460         should extent above the end of .bss. Once this segment is
12461         identified, it's grown to accommodate the new heap and new
12462         zero-length .bss section is added at the end of .data2.
12463
12464 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12465
12466         * eval.c (Feval): Wrong number of arguments should use original
12467         function, not the indirect_function version of it.
12468
12469 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12470
12471         * glyphs-x.c (x_button_instantiate): Don't add image if
12472         it is not a pixmap.
12473         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12474         is relative.
12475
12476 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12477
12478         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12479         declaration.
12480         (DEFVAR_INT_MAGIC): Ditto.
12481         (DEFVAR_BOOL_MAGIC): Ditto.
12482         * glyphs.h: Reindent backslash.
12483
12484 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12485
12486         * glyphs-widget.c (layout_query_geometry):
12487         (layout_layout): Use correct types for gheight, gwidth.
12488
12489 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12490
12491         * EmacsManager.c (QueryGeometry): Purified.
12492
12493 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12494
12495         * alloc.c (make_float): Make sure entire object is initialized, to
12496         avoid Purify warnings.
12497         (pdump_register_sub): Remove useless assignment.
12498         (pdump): Use xmalloc, not malloc.
12499         (pdump_load): Use xmalloc, not malloc.
12500
12501 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12502
12503         * callproc.c:
12504         * dired-msw.c:
12505         * fileio.c:
12506         * process-nt.c:
12507         * redisplay-msw.c:
12508         * sysdep.c: Removed redundant #include <windows.h>
12509
12510 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12511
12512         * frame.c (delete_frame_internal): Do not delete device when its
12513         implementation so declares.
12514         (delete_frame_internal): Set device selected frame to nil when
12515         last frame goes away.
12516
12517         * device-msw.c (msprinter_device_system_metrics): Implemented.
12518         (mswindows_device_system_metrics): Added 'device-dpi property.
12519
12520         * device.c: (Fdevice_printer_p): Added.
12521         Added 'offset-workspace device metric.
12522
12523         * console.h (device_metrics): Declared DM_offset_workspace.
12524
12525 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12526
12527         * fileio.c (Ffile_truename): Remove pointless and confusing
12528         initialization of elen.
12529
12530         * glyphs-widget.c: Compiler warning fixes.
12531
12532 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12533
12534         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12535         instead of a Lisp_Object as argument to make it consistent with
12536         the other LIVE_P macros.
12537         (CHECK_LIVE_PROCESS): New macro.
12538
12539         * process.c: Declare Qprocess_live_p.
12540         (Fprocess_live_p): New function.
12541         (create_process): Use PROCESS_LIVE_P.
12542         (read_process_output): Ditto.
12543         (set_process_filter): Ditto.
12544         (Fdelete_process): Ditto.
12545         (kill_buffer_processes): Ditto
12546         (process_send_signal): Use CHECK_LIVE_PROCESS.
12547         (Fprocess_input_coding_system): Check whether process is still
12548         alive (fix PR#1061).
12549         (Fprocess_output_coding_system): Ditto.
12550         (Fprocess_coding_system): Ditto.
12551         (Fset_process_input_coding_system): Ditto.
12552         (Fset_process_output_coding_system): Ditto.
12553
12554 2000-01-23  Andy Piper  <andy@xemacs.org>
12555
12556         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12557         layout and widget.
12558
12559         * glyphs.c (mark_image_instance): take into account changed
12560         image_instance format.
12561         (image_instance_equal): ditto.
12562         (image_instance_hash): ditto.
12563
12564         * glyphs-widget.c (widget_instantiate): Incorporate layout
12565         instantiation here. Delay layout of the layout until later.
12566         (layout_instantiate): deleted.
12567         (layout_query_geometry): new function. get the geometry of a
12568         layout.
12569         (layout_layout): layout a layout dynamically.
12570         (image_instantiator_widget): New function - splitting up
12571         image_instantiator_format_create_glyphs_widget for netwinder
12572         compilation.
12573         (image_instantiator_buttons):
12574         (image_instantiator_edit_fields):
12575         (image_instantiator_combo_box):
12576         (image_instantiator_scrollbar):
12577         (image_instantiator_progress_guage):
12578         (image_instantiator_tree_view):
12579         (image_instantiator_tab_control):
12580         (image_instantiator_labels):
12581         (image_instantiator_layout): ditto.
12582         (image_instantiator_format_create_glyphs_widget): Call preceding
12583         functions.
12584
12585 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12586
12587         * process.c (Fset_process_coding_system):
12588         * device-x.c (Fx_keysym_hash_table):
12589         Docstring fixes.
12590
12591         * lstream.c (Lstream_write): Return documented value, not 0.
12592
12593         * fileio.c (directory_file_name):
12594         (Fsubstitute_in_file_name):
12595         (Fsubstitute_insert_file_contents_internal):
12596         (Fwrite_region_internal):
12597         * emacs.c:
12598         * sysdep.c:
12599         * getloadavg.c:
12600         * systty.h:
12601         Remove vestigial APOLLO-conditional code.
12602
12603 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12604
12605         * getpagesize.h: Add guard macros.
12606         * libsst.h: Add guard macros.
12607         * libst.h: Add guard macros.
12608         * line-number.h: Add guard macros.
12609         * ndir.h: Add guard macros.
12610         * sysfloat.h: Add guard macros.
12611         * sysfile.h: Add guard macros.
12612         * sysproc.h: Add guard macros.
12613         * syswait.h: Add guard macros.
12614         * xintrinsic.h: Add guard macros.
12615         * xintrinsicp.h: Add guard macros.
12616         * xmmanager.h: Add guard macros.
12617         * xmmanagerp.h: Add guard macros.
12618         * xmprimitive.h: Add guard macros.
12619         * xmu.h: Add guard macros.
12620         * gpmevent.h: Add copyright statement. Add guard macros.
12621         * miscplay.h: Add guard macros.
12622         * *.h: Use consistent C-standards-approved guard macro names.
12623
12624         * opaque.c (make_opaque): Switch parameter order.
12625         * opaque.h (make_opaque): Switch parameter order.
12626         Update all callers.
12627         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12628
12629         * config.h.in (type_checking_assert): Added.
12630         (bufpos_checking_assert): Added.
12631
12632 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12633
12634         * alloc.c: Harmless pdump changes.
12635         - Use countof().
12636         - spell alignment correctly.
12637         * sysdep.c: Use countof()
12638
12639 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12640
12641         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12642         initially_selected_for_input() console method, default to 0.
12643         (semi_canonicalize_console_connection): Try to delegate to
12644         canonicalize_console_connection if no such console method.
12645         (canonicalize_console_connection): Vice versa.
12646         (print_console): Do not print nil connection.
12647
12648         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12649         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12650         (XDEVIMPF_FRAMELESS_OK): Added.
12651         (CONSOLE_INHERITS_METHOD): Added.
12652
12653         * console-msw.c (mswindows_canonicalize_console_connection):
12654         Added.
12655         (mswindows_canonicalize_device_connection): Added.
12656
12657         * console-msw.h (struct msprinter_device): Added this struct and
12658         accessor macros.
12659         (mswindows_device): Made fontlist a lisp object.
12660
12661         * device.c (semi_canonicalize_device_connection):  Try to delegate
12662         to canonicalize_device_connection if no such console method.
12663         (canonicalize_device_connection): Vice versa.
12664         (print_device): Do not print nil connection.
12665
12666         * device-msw.c (mswindows_init_device): Call InitCommonControls
12667         when have widgets.
12668         (mswindows_delete_device): Removed fontlist deallocation.
12669         (mswindows_mark_device): Added.
12670
12671         * events.c (event_equal): Added abort() at unreached code.
12672         (event_hash): Ditto.
12673
12674         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12675         fallback tags of Windows devices.
12676
12677         * general.c (syms_of_general): Initialized Qmsprinter.
12678
12679         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12680         of fallback tags of Windows devices.
12681
12682         * lisp.h: Declared Qmsprinter.
12683
12684         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12685         of strings.
12686         (mswindows_list_fonts): Ditto.
12687         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12688         that it can be used by both mswindows and msprinter devices.
12689         (initialize_font_instance): Added.
12690         (mswindows_initialize_font_instance): Use it.
12691         (msprinter_initialize_font_instance): Added.
12692
12693         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12694         and implementation flags check.
12695         (redisplay_without_hooks): Changed the call to the above.
12696         (Fredraw_device): Ditto.
12697         (Fredisplay_device): Ditto.
12698
12699         * redisplay-msw.c (get_frame_dc): Implemented.
12700         (get_frame_compdc): Implemented.
12701         (many functions): Use the two functions above to get device
12702         contexts, ether for a window or a printer.
12703
12704 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12705
12706         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12707         initialization here.
12708         (init_symbols_once_early): Call it.
12709         * emacs.c (main_1): Call it.
12710         * symsinit.h: Declare it.
12711
12712 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12713
12714         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12715         Lisp_Object.
12716         (pdump_backtrace): Ditto.
12717         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12718         (pdump_get_entry): Abort if trying to register a null pointer.
12719         (pdump_dump_data): Cleanup types when relocating.
12720         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12721         (pdump_dump_rtables): Remove bad casts.
12722         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12723         Lisp_Object instead of a EMACS_INT for the hashtable
12724         reorganization.
12725
12726 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12727
12728         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12729
12730         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12731
12732         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12733
12734         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12735
12736 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12737
12738         * faces.h (FACE_STRIKETHRU_P): Added.
12739
12740         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12741         of font variants.
12742
12743         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12744         (mswindows_set_dc_font): New function, aware of font variants,
12745         separated from mswindows_update_dc.
12746
12747         * objects-msw.h (struct mswindows_font_instance_data): Added
12748         definition.
12749
12750         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12751         cached fonts and the data structure.
12752         (mswindows_initialize_font_instance): Added creation of font data
12753         structure.
12754         (mswindows_print_font_instance): Print at least something.
12755         (mswindows_create_font_variant): Implemented.
12756         (mswindows_get_hfont): Implemented.
12757
12758 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12759
12760         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12761         prototyping problem with msvc.
12762
12763         * emacs.c (main_1): added syms_of_gui_mswindows() call
12764
12765         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12766         syms_of_gui_mswindows() function
12767
12768         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12769
12770 2000-01-18  Martin Buchholz <martin@xemacs.org>
12771
12772         * XEmacs 21.2.27 is released.
12773
12774 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12775
12776         * glyphs-eimage.c (struct tiff_error_struct):
12777         (tiff_error_func):
12778         (tiff_warning_func):
12779         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12780
12781         * unexmips.c:
12782         * unexhp9k3.c:
12783         * unexfreebsd.c:
12784         * unexec.c: Remove vestigial Lucid C code.
12785         * unexalpha.c:
12786         * unexaix.c:
12787         * termcap.c:
12788         * libsst.c: Ansify.
12789         Remove declarations of errno and strerror().
12790
12791         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12792
12793         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12794
12795 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12796
12797         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12798         Optimize.
12799
12800 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12801
12802         * md5.c:
12803         * file-coding.c:
12804         * file-coding.h:
12805         Change enum eol_type to eol_type_t.
12806
12807 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12808
12809         * gui.c (get_gui_callback): Check cons before accessing car.
12810
12811 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12812
12813         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12814         (XSETSPECIFIER_TYPE): Ditto.
12815
12816 2000-01-17  Didier Verna  <didier@xemacs.org>
12817
12818         * redisplay.c (generate_fstring_runes): compute string size in
12819         characters, not bytes.
12820
12821 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12822
12823         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12824
12825 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12826
12827         * print.c (print_error_message): Call print_prepare().
12828
12829 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12830
12831         * .dbxrc: Renamed from dbxrc.
12832
12833         * events.c (event_to_character):
12834         Use `assert (foo)' instead of `if (!foo) abort()'
12835
12836         * .gdbinit (xtype): Add documentation.
12837         * .gdbinit (check-temacs): New function.
12838         * .gdbinit (check-xemacs): New function.
12839         * dbxrc (check-xemacs): New function.
12840         * dbxrc (check-xemacs): New function.
12841
12842 2000-01-14  Andy Piper  <andy@xemacs.org>
12843
12844         * glyphs-widget.c (widget_query_geometry): Make sure that we
12845         calculate default dimensions correctly.
12846
12847 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12848
12849         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12850
12851         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12852         pdump_wire'd variable.
12853
12854         * emacs.c: (main_1): Conditionalized calls to
12855         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12856
12857 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12858
12859         * window.c (Fset_window_configuration):
12860         * sysdep.c (_start):
12861         * input-method-motif.c (res):
12862         * event-Xt.c (Xt_process_to_emacs_event):
12863         Simple compiler warning fixes.
12864
12865         * bytecode.c (funcall_compiled_function): Use the original
12866         function symbol on the backtrace list in preference to the
12867         compiled_function object in error messages.
12868
12869 2000-01-13  Andy Piper  <andy@xemacs.org>
12870
12871         * glyphs-x.c (update_widget_face): Make sure we update the widget
12872         background as well as foreground.
12873
12874 2000-01-13  Andy Piper  <andy@xemacs.org>
12875
12876         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12877         fields to subwindow.
12878         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12879         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12880         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12881         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12882
12883         * glyphs-widget.c (check_valid_tab_orientation): new function.
12884         (initialize_widget_image_instance): zero orientation and
12885         justification.
12886         (widget_instantiate): pick up orientation.
12887         (tab_control_query_geometry): return appropriate values for
12888         vertical tabs.
12889
12890         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12891         appropriate creation flags for left, right and bottom tabs.
12892
12893         * s/cygwin32.h: add tab definitions.
12894
12895 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12896
12897         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12898         frame upon hiding a subwindow.
12899         (mswindows_button_instantiate): Changed the push button style to
12900         BS_PUSHBUTTON.
12901         (mswindows_button_instantiate): Removed button BS_NOTIFY
12902         style.
12903         (mswindows_button_instantiate): Removed redundant check for
12904         a disabled gui item.
12905         (mswindows_button_instantiate): Made use of WS_TABSTOP
12906         consistent: "operable" controls (edit, button, tree, scroll) have
12907         this style, "display-only" ones (static, progress gauge) do
12908         not. This style is currently ignored by XEmacs though. Also,
12909         removed the WS_EX_CONTROLPARENT style - it is not for children,
12910         it is for their parents!
12911         (mswindows_edit_field_instantiate): Ditto.
12912         (mswindows_progress_gauge_instantiate): Ditto.
12913         (mswindows_tree_view_instantiate): Ditto.
12914         (mswindows_tab_control_instantiate): Ditto.
12915         (mswindows_scrollbar_instantiate): Ditto.
12916         (mswindows_combo_box_instantiate): Ditto.
12917         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12918         style to the "clip" window.
12919         (mswindows_button_instantiate): Removed compilation warning by
12920         equally typing terms of the ?: operator.
12921
12922 2000-01-12  Didier Verna  <didier@xemacs.org>
12923
12924         * redisplay.c (generate_fstring_runes): new parameter holding the
12925         last modeline-format extent.
12926         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12927         extent, fill the glyph block with it.
12928         (generate_fstring_runes): handle these parameters.
12929         (generate_formatted_string_db): ditto.
12930
12931         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12932         glyphs'extents in the modeline.
12933
12934 1999-01-11  Mike Woolley  <mike@bulsara.com>
12935
12936         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12937         256Mb, as a workaround for the non-starting problem many people
12938         have experienced.
12939
12940 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12941
12942         * console-tty.c (Fset_console_tty_output_coding_system):
12943         Force redrawing tty frame.
12944
12945 2000-01-10  Didier Verna  <didier@xemacs.org>
12946
12947         * redisplay.c (generate_fstring_runes): fix size computation bug.
12948
12949 2000-01-09  William M. Perry <wmperry@aventail.com>
12950
12951         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12952
12953 2000-01-09  Andy Piper  <andy@xemacs.org>
12954
12955         * glyphs-msw.c: index -> i to avoid shadows.
12956         (xbm_create_bitmap_from_data): make static.
12957         (check_valid_string_or_int): deleted.
12958         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12959
12960         * glyphs-x.c (x_update_subwindow): remove unused args.
12961
12962         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12963         back pointer - this is done in allocate_image_instance.
12964         (query_string_font): return Qnil to make the compiler happy.
12965         (unmap_subwindow): set to ~0 to make the compiler happy.
12966         (glyph_query_geometry): comment out until used.
12967         (glyph_layout): ditto.
12968
12969 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12970
12971         * insdel.c (signal_after_change): Remove extraneous unbind_to().