update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * chartab.c (Fclose_char_attribute_table): Set Qnil on
4         `ct->db_file' unconditionally.
5
6 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
7
8         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
9         UTF-2000.
10         (char_table_description): Add description for `db_file' and `db'
11         in UTF-2000.
12         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
13         UTF-2000.
14         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
15         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
16         (Fclose_char_attribute_table): New function.
17         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
18         (load_char_attribute_maybe): Change interface; use `cit->db_file'
19         and `cit->db'.
20         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
21         (syms_of_chartab): Add new builtin function
22         `Fclose_char_attribute_table'.
23
24 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
25
26         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
27         `db' in UTF-2000.
28         (load_char_attribute_maybe): Change interface.
29         (get_char_id_table): Modify for `load_char_attribute_maybe'.
30
31 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
32
33         * database.h: Add an EXFUN for `Fdatabase_live_p'.
34
35 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
36
37         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
38         instead of `DECODE_CHAR' for mother; don't use special code for
39         chinese-big5 to use code space of chinese-big5-1 and
40         chinese-big5-2.
41         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
42         `MAX_CHAR_BIG5_CDP' for chinese-big5.
43
44         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
45         (MAX_CHAR_BIG5_CDP): Revival.
46
47 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
48
49         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
50         the XLFD registry-encoding name of `chinese-big5'.
51
52 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
53
54         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
55         (Qchinese_big5_cdp): Deleted.
56         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
57         (complex_vars_of_mule_charset): Delete coded-charset
58         `chinese-big5-cdp'.
59
60         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
61         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
62         `CHARSET_ID_OFFSET - n' for private CCS.
63         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
64         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
65         of `MIN_LEADING_BYTE'.
66         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
67         `(CHARSET_ID_OFFSET - 97)'.
68         (MIN_CHAR_BIG5_CDP): Deleted.
69         (MAX_CHAR_BIG5_CDP): Deleted.
70
71 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
74
75 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
78         (vars_of_mule): Add new variable `utf-2000-version' [moved from
79         chartab.c].
80
81         * chartab.c (Vutf_2000_version): Moved to mule.c.
82         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
83
84 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
85
86         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
87         when HAVE_CHISE_CLIENT is not defined.
88
89         * mule.c (vars_of_mule): Provide feature `chise' when
90         HAVE_CHISE_CLIENT is defined.
91
92 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
93
94         * config.h.in (UTF2000): Add comment.
95         (HAVE_CHISE_CLIENT): New macro.
96
97 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
98
99         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
100         CONSP.
101         (Fput_char_attribute): Likewise.
102         (char_attribute_system_db_file): Encode file-name of attribute.
103         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
104         the initial value.
105
106 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
107
108         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
109         (Fsave_charset_mapping_table): Use
110         `char_attribute_system_db_file'.
111         (load_char_decoding_entry_maybe): Likewise.
112
113         * chartab.h (Qsystem_char_id): New external variable.
114         (char_attribute_system_db_file): New prototype.
115
116         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
117         (char_attribute_system_db_file): New function.
118         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
119         (Freset_char_attribute_table): Likewise.
120         (load_char_attribute_maybe): Likewise.
121         (Fload_char_attribute_table): Likewise.
122         (syms_of_chartab): Add new symbol `system-char-id'.
123
124 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
125
126         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
127         `XCHARSET_GRAPHIC(ccs)'.
128
129 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
130
131         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
132
133 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
134
135         * chartab.c (Q_ucs_variants): New variable.
136         (syms_of_chartab): Add new symbol `->ucs-variants'.
137         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
138         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
139         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
140
141         * mule-charset.c (load_char_decoding_entry_maybe): New function.
142
143         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
144         `HAVE_DATABASE' is defined.
145         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
146         `HAVE_DATABASE' is defined.
147
148 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
149
150         * chartab.c (Fsave_char_attribute_table): Don't clear internal
151         attribute-table.
152         (Freset_char_attribute_table): New function.
153         (syms_of_chartab): Add new builtin function
154         `reset-char-attribute-table'.
155
156 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
157
158         * chartab.c (load_char_attribute_maybe): Don't make directories.
159
160 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
161
162         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
163
164         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
165         for decoding-table.
166
167 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
168
169         * mule-charset.c (Fsave_charset_mapping_table): Use
170         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
171
172         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
173         instead of `XCHARSET_CHARS'.
174
175 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
176
177         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
178         (XCHARSET_BYTE_SIZE): Likewise.
179
180         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
181         mule-charset.c].
182         (XCHARSET_BYTE_SIZE): Likewise.
183
184 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
185
186         * chartab.c (Fput_char_attribute): Use exec-directory instead of
187         data-directory to store database.
188         (Fsave_char_attribute_table): Likewise.
189         (load_char_attribute_maybe): Likewise.
190         (Fload_char_attribute_table): Likewise.
191
192 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
193
194         * mule-charset.c (Fsave_charset_mapping_table): New function.
195         (syms_of_mule_charset): Add new builtin function
196         `save-charset-mapping-table'.
197
198 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * char-ucs.h (decoding_table_check_elements): Delete prototype.
201         (get_ccs_octet_table): New inline function.
202         (put_ccs_octet_table): Likewise.
203         (decoding_table_put_char): Use `get_ccs_octet_table' and
204         `put_ccs_octet_table'.
205         (decoding_table_remove_char): Use `decoding_table_put_char'.
206         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
207
208         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
209         into encoding_table.
210         (make_charset): Use Qunbound instead Qnil as initial value of
211         decoding_table.
212
213 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
214
215         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
216         element is Qunloaded.
217         (map_over_uint16_byte_table): Likewise.
218         (map_over_byte_table): Likewise.
219         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
220         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
221         database support, load encoding-table of the specified
222         coded-charset if it is not loaded yet.
223         (save_uint8_byte_table): New function of UTF-2000 with external
224         database support.
225         (save_uint16_byte_table): Likewise.
226         (save_byte_table): Likewise.
227         (Fput_char_attribute): Don't store value into external database
228         even if the external database feature is supported in UTF-2000;
229         set `attribute' as name of char-table if the external database
230         feature is supported.
231         (Fsave_char_attribute_table): New function in UTF-2000.
232         (syms_of_chartab): Add new builtin function
233         `save-char-attribute-table' in UTF-2000.
234
235 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
236
237         * chartab.c (char_attribute_table_to_put): New variable in
238         UTF-2000.
239         (Qput_char_table_map_function): Likewise.
240         (value_to_put): Likewise.
241         (Fput_char_table_map_function): New function in UTF-2000.
242         (put_char_table): Use `Fmap_char_attribute' for
243         CHARTAB_RANGE_CHARSET in UTF-2000.
244         (Fput_char_attribute): Store symbol instead of string in
245         `XCHAR_TABLE_NAME (table)'.
246         (load_char_attribute_maybe): Likewise.
247         (syms_of_chartab): Add new symbol/function
248         `put-char-table-map-function'.
249
250 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
251
252         * database.h: Add new EXFUN for `Fmap_database'.
253
254         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
255         (syms_of_database): Likewise.
256
257         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
258         UTF-2000.
259         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
260         (XCHAR_TABLE_UNLOADED): Likewise.
261
262         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
263         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
264         HAVE_DATABASE is defined.
265         (char_attribute_table_to_load): New variable of UTF-2000 with
266         external database support.
267         (Qload_char_attribute_table_map_function): Likewise.
268         (Fload_char_attribute_table_map_function): New function of
269         UTF-2000 with external database support.
270         (Fload_char_attribute_table): New function of UTF-2000.
271         (Fmap_char_attribute): Call Fload_char_attribute_table if
272         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
273         (syms_of_chartab): Add new symbol and function
274         `load-char-attribute-table-map-function' in UTF-2000 with external
275         database support; add new function `load-char-attribute-table' in
276         UTF-2000.
277
278 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
279
280         * chartab.h (load_char_attribute_maybe): New prototype for
281         UTF-2000 with DATABASE support.
282         (get_char_id_table): Use `load_char_attribute_maybe' if
283         HAVE_DATABASE is defined.
284
285         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
286         with DATABASE support.
287
288 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
289
290         * chartab.c (Fput_char_attribute): Use S-expression as key of
291         external database.
292
293         * chartab.h (get_char_id_table): Use S-expression as key of
294         external database.
295
296 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
297
298         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
299         if an element is not loaded, load the corresponding attributes
300         from an external database.
301         (map_over_uint16_byte_table): Likewise.
302         (map_over_byte_table): Likewise.
303         (map_char_table): Modify for `map_over_uint8_byte_table',
304         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
305         element is not loaded, load the corresponding attributes from an
306         external database.
307         (Fput_char_attribute): Change initial values to Qunloaded.
308
309         * chartab.h (get_char_id_table): If a character attribute is not
310         loaded and the attribute value is not found in an external
311         database, store Qunbound as the attribute value.
312
313 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
314
315         * chartab.c (BT_UINT8_unloaded): New macro.
316         (UINT8_VALUE_P): Accept Qunloaded.
317         (UINT8_ENCODE): Likewise.
318         (UINT8_DECODE): Likewise.
319         (BT_UINT16_unloaded): New macro.
320         (UINT16_VALUE_P): Accept Qunloaded.
321         (UINT16_ENCODE): Likewise.
322         (UINT16_DECODE): Likewise.
323         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
324         BT_UINT16_unloaded.
325         (mark_char_table): Mark `ct->name' in UTF-2000.
326         (char_table_description): Add `name' in UTF-2000.
327         (Fmake_char_table): Initialize `ct->name'.
328         (Fcopy_char_table): Copy `ct->name'.
329         (Fput_char_attribute): Store value into an external database if
330         HAVE_DATABASE is defined.
331
332         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
333         UTF-2000.
334         (CHAR_TABLE_NAME): New macro in UTF-2000.
335         (XCHAR_TABLE_NAME): New macro in UTF-2000.
336         (get_char_id_table): Try to read an external database if Qunloaded
337         is stored in a table.
338
339         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
340         Qunloaded.
341
342 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
343
344         * database.h: Add EXFUN definitions for Fopen_database,
345         Fput_database, Fget_database and Fclose_database.
346
347         * data.c (Qunloaded): New variable in UTF-2000.
348
349         * lisp.h (Qunloaded): New variable in UTF-2000.
350
351 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
352
353         * mule-charset.c (put_char_ccs_code_point): Modify for
354         `decoding_table_remove_char' and `decoding_table_put_char'.
355         (remove_char_ccs): Modify for `decoding_table_remove_char'.
356
357         * char-ucs.h (decoding_table_remove_char): Change arguments to
358         hide decoding_table vector.
359         (decoding_table_put_char): Likewise.
360
361 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
362
363         * mule-charset.c (decoding_table_remove_char): Moved to
364         char-ucs.h.
365         (decoding_table_put_char): Likewise.
366
367         * char-ucs.h (decoding_table_check_elements): New prototype [moved
368         from mule-charset.c].
369         (decoding_table_remove_char): New inline function [moved from
370         mule-charset.c].
371         (decoding_table_put_char): Likewise.
372
373 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
374
375         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
376         extension.
377
378 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
379
380         * mule-charset.c (decode_builtin_char): Support mother charsets.
381
382 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
383
384         * mule-charset.c (Q94x94x60): New variable.
385         (charset_code_point): Support conversion `94x94x60'.
386         (Fmake_charset): Likewise.
387         (syms_of_mule_charset): Add new symbol `94x94x60'.
388
389         * char-ucs.h (CONVERSION_94x94x60): New macro.
390
391 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
392
393         * mule-charset.c (charset_code_point): Unify code about
394         `code-offset'.
395
396 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
397
398         * mule-charset.c (charset_code_point): Merge code about builtin
399         characters into code about mother charsets; don't use
400         `range_charset_code_point'.
401         (range_charset_code_point): Deleted.
402
403 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * mule-charset.c (Qcode_offset): New variable.
406         (Fmake_charset): Use `XUINT' to get value of `min-code' and
407         `max-code'; accept new property `code-offset'.
408         (syms_of_mule_charset): Add new symbol `code-offset'.
409
410 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
411
412         * mule-charset.c (range_charset_code_point): Fixed.
413
414 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * mule-charset.c (decode_builtin_char): Change semantics of
417         code-offset of coded-charset.
418         (charset_code_point): Likewise.
419         (range_charset_code_point): Likewise.
420         (complex_vars_of_mule_charset): Modify for the change.
421
422 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
423
424         * mule-charset.c (Fencode_char): Reverse arguments.
425
426         * mule-charset.c (charset_code_point): Fixed.
427
428 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
429
430         * mule-charset.c (Vcharset_mojikyo): Deleted.
431         (Vcharset_mojikyo_2022_1): Deleted.
432         (Vcharset_mojikyo_pj_{1..21}): Deleted.
433         (Qmin_code): New variable in UTF-2000.
434         (Qmax_code): Likewise.
435         (Qmother): Likewise.
436         (Qconversion): Likewise.
437         (Q94x60): Likewise.
438         (Qmojikyo): Deleted.
439         (Qmojikyo_2022_1): Deleted.
440         (Qmojikyo_pj_{1..22}): Deleted.
441         (mark_charset): Mark `cs->mother'.
442         (charset_description): Add description for `mother'.
443         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
444         new arguments `mother' and `conversion'; use
445         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
446         (charset_code_point): Moved from char-ucs.h; support `mother'
447         charset feature.
448         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
449         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
450         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
451         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
452         allow 2 as the value of `graphic' in UTF-2000; add new properties
453         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
454         require `final' in UTF-2000; modify for `make_charset'.
455         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
456         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
457         (Fcharset_property): Support `mother', `min-code' and `max-code'.
458         (Fencode_char): New function.
459         (syms_of_mule_charset): Add new builtin function `encode-char' in
460         UTF-2000; add new symbols `min-code', `max-code', `mother',
461         `conversion' and `94x60'; delete symbols `mojikyo',
462         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
463         (complex_vars_of_mule_charset): Modify for `make_charset' change;
464         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
465         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
466
467         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
468         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
469
470         * char-ucs.h (Vcharset_mojikyo): Deleted.
471         (Vcharset_mojikyo_2022_1): Deleted.
472         (LEADING_BYTE_MOJIKYO): Deleted.
473         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
474         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
475         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
476         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
477         add new member `mother'; add new member `conversion'.
478         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
479         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
480         (CHARSET_MOTHER): New macro.
481         (CHARSET_CONVERSION): New macro.
482         (CONVERSION_IDENTICAL): New macro.
483         (CONVERSION_94x60): New macro.
484         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
485         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
486         (XCHARSET_MOTHER): New macro.
487         (XCHARSET_CONVERSION): New macro.
488         (MIN_CHAR_MOJIKYO): Deleted.
489         (MAX_CHAR_MOJIKYO): Deleted.
490         (DECODE_MOJIKYO_2022): Deleted.
491         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
492         (charset_code_point): Changed to non-inline function.
493         (encode_char_1): Use `charset_code_point'.
494         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
495
496 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
497
498         * lread.c (read_compiled_function): Fix prototype.
499         (read_vector): Likewise.
500
501 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * lrecord.h (struct lrecord_header): Delete `older'.
504         (set_lheader_implementation): Delete code for `older'.
505         (set_lheader_older_implementation): Deleted.
506         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
507         (OLDER_RECORD_P): Deleted.
508         (OLDER_RECORD_HEADER_P): Deleted.
509         (alloc_older_lcrecord): Deleted.
510         (alloc_older_lcrecord_type): Deleted.
511
512         * alloc.c (all_older_lcrecords): Deleted.
513         (alloc_older_lcrecord): Deleted.
514         (disksave_object_finalization_1): Delete code for older objects.
515         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
516         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
517
518 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * mule-charset.c (decoding_table_put_char): Use `make_vector'
521         instead of `make_older_vector'.
522         (put_char_ccs_code_point): Likewise.
523         (mark_charset): Mark `cs->decoding_table'.
524         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
525
526         * lisp.h (make_older_vector): Deleted.
527         (make_vector_newer): Deleted.
528
529         * config.h.in (HAVE_GGC): Deleted.
530
531         * alloc.c (make_older_vector): Deleted.
532         (make_vector_newer_1): Deleted.
533         (make_vector_newer): Deleted.
534
535 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
536
537         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
538         (Qideograph_daikanwa_2): New variable.
539         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
540         (complex_vars_of_mule_charset): Add new coded-charset
541         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
542         `LEADING_BYTE_DAIKANWA'.
543
544         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
545         (LEADING_BYTE_DAIKANWA_1): New macro.
546         (LEADING_BYTE_DAIKANWA_2): New macro.
547         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
548
549 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
550
551         * mule-charset.c (complex_vars_of_mule_charset): Change
552         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
553         the second revised version.
554
555 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
556
557         * mule-charset.c (Vcharset_ucs_smp): New variable.
558         (Vcharset_ucs_sip): New variable.
559         (Qucs_smp): New variable.
560         (Qucs_sip): New variable.
561         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
562         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
563         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
564         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
565         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
566         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
567
568         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
569         (LEADING_BYTE_UCS_SIP): New macro.
570         (MIN_CHAR_SMP): New macro.
571         (MAX_CHAR_SMP): New macro.
572         (MIN_CHAR_SIP): New macro.
573         (MAX_CHAR_SIP): New macro.
574
575 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
576
577         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
578         utf-2000.
579
580 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
581
582         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
583         value; don't store value into `encoding_table' of `Lisp_Charset'.
584         (mark_charset): `encoding_table' was deleted.
585         (charset_description): Likewise.
586         (make_charset): Likewise.
587         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
588         `put_char_ccs_code_point'.
589
590         * chartab.h (Fput_char_attribute): New EXFUN.
591
592         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
593         is unified with normal symbol space.
594         (Fget_char_attribute): Likewise.
595         (Fput_char_attribute): Likewise; behavior of
596         `put_char_ccs_code_point' is changed.
597
598         * char-ucs.h: Include "elhash.h".
599         (Vchar_attribute_hash_table): New external variable.
600         (struct Lisp_Charset): Delete `encoding_table'.
601         (CHARSET_ENCODING_TABLE): New implementation; refer
602         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
603         `Lisp_Charset'.
604
605 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
606
607         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
608         (cs) == 0.
609
610 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
611
612         * text-coding.c (char_encode_big5): Prefer charset-g1 than
613         `chinese-big5'.
614
615 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
616
617         * chartab.c (uint8_byte_table_description): New constant.
618         (uint8-byte-table): Use `uint8_byte_table_description'.
619         (uint16_byte_table_description): New constant.
620         (uint16-byte-table): Use `uint16_byte_table_description'.
621
622 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
623
624         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
625         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
626
627 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
628
629         * mule-charset.c (Vcharset_ucs_ks): New variable.
630         (Qucs_ks): New variable.
631         (syms_of_mule_charset): Add new symbol `ucs-ks'.
632         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
633
634         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
635
636 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
637
638         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
639         (Fdecode_char): Likewise.
640
641         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
642         chartab.h.
643         (Fdefine_char): Modify for Fdecode_char.
644         (Ffind_char): Likewise.
645
646         * mule-charset.c (Fdecode_char): Add new optional argument
647         `defined-only'.
648         (Fdecode_builtin_char): Modify for `Fdecode_char'.
649
650 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
651
652         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
653         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
654         (allocate_coding_system): Initialize initial-charsets of
655         CODESYS_BIG5 in XEmacs UTF-2000.
656         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
657         CODESYS_BIG5 in XEmacs UTF-2000.
658         (decode_coding_big5): Use initial-charset-g0 and -g1 of
659         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
660
661         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
662         variables.
663         (Qideograph_hanziku_{1 .. 12}): Likewise.
664         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
665         .. 12}'.
666         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
667         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
668         `ideograph-hanziku-{1 .. 12}'.
669
670         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
671         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
672         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
673         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
674         (DECODE_DEFINED_CHAR): New inline function.
675         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
676
677 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * mule-charset.c (Vcharset_china3_jef): Renamed from
680         `Vcharset_japanese_jef_china3'.
681         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
682         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
683         `{MIN|MAX}_CHAR_JEF_CHINA3'..
684         (syms_of_mule_charset): Rename `china3-jef' from
685         `japanese-jef-china3'.
686         (complex_vars_of_mule_charset): Likewise; rename
687         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
688
689         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
690         `LEADING_BYTE_JEF_CHINA3'.
691         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
692         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
693
694 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
695
696         * mule-charset.c (encode_builtin_char_1): Comment out special code
697         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
698
699         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
700         (MAX_CHAR_MOJIKYO_0): Comment out.
701         (MIN_CHAR_CBETA): Changed to 0x00E20000.
702         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
703         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
704         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
705
706 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
707
708         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
709         (Qideograph_cbeta): New variable.
710         (encode_builtin_char_1): Comment out special code for
711         coded-charset `mojikyo' and `japanese-jef-china3'.
712         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
713         (complex_vars_of_mule_charset): Add new coded-charset
714         `ideograph-cbeta'.
715
716         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
717         (MIN_CHAR_CBETA): New macro.
718         (MAX_CHAR_CBETA): New macro.
719
720 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
721
722         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
723         (LEADING_BYTE_JEF_CHINA3): New macro.
724         (MIN_CHAR_JEF_CHINA3): New macro.
725         (MAX_CHAR_JEF_CHINA3): Likewise.
726         (DECODE_CHAR): Fixed.
727
728 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
731         (Qjapanese_jef_china3): New variable.
732         (encode_builtin_char_1): Support `japanese-jef-china3'.
733         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
734         (complex_vars_of_mule_charset): Add new coded-charset
735         `japanese-jef-china3'.
736
737 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
738
739         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
740         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
741         94^4, 96^3, 96^4, 128^n and 256^n set.
742         (put_char_table): Use `XCHARSET_CELL_RANGE'.
743         (map_char_table): Likewise.
744
745 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
746
747         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
748         UTF-2000.
749
750 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * chartab.h (get_char_id_table): New inline function.
753
754         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
755         function.
756
757 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
758
759         * chartab.h (decode_char_table_range): New prototype in XEmacs
760         UTF-2000.
761         (put_char_id_table): New inline function in XEmacs UTF-2000.
762
763         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
764         function.
765         (decode_char_table_range): Delete static declaration in XEmacs
766         UTF-2000.
767
768 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
769
770         * chartab.c (put_char_id_table): Use `put_char_table'.
771
772 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
773
774         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
775         (map_over_uint16_byte_table): Likewise.
776         (map_over_byte_table): Likewise.
777         (map_char_table): Modify for `map_over_uint8_byte_table',
778         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
779         UTF-2000.
780
781 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * chartab.c (struct map_char_table_for_charset_arg): New
784         structure.
785         (map_char_table_for_charset_fun): New function.
786         (map_char_table): Use `map_char_table' for encoding_table of
787         `range->charset'.
788
789 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
790
791         * chartab.c (map_char_table): Check a character is found in
792         range->charset instead of non default value is defined in
793         char-table when range is CHARTAB_RANGE_ROW.
794
795 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
796
797         * chartab.c (map_char_id_table): Deleted.
798         (Fmap_char_attribute): Use `map_char_table' instead of
799         `map_char_id_table'.
800
801 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
802
803         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
804         UTF-2000.
805         (update_syntax_table): Deleted in XEmacs UTF-2000.
806
807         * syntax.c (find_defun_start): Use `syntax_table' instead of
808         `mirror_syntax_table' in XEmacs UTF-2000.
809         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
810         UTF-2000.
811         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
812         XEmacs UTF-2000.
813         (Fmatching_paren): Likewise.
814         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
815         in XEmacs UTF-2000.
816         (find_start_of_comment): Likewise.
817         (find_end_of_comment): Likewise.
818         (Fforward_comment): Likewise.
819         (scan_lists): Likewise.
820         (char_quoted): Likewise.
821         (Fbackward_prefix_chars): Likewise.
822         (scan_sexps_forward): Likewise.
823         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
824         (update_syntax_table): Likewise.
825
826         * search.c (skip_chars): Use `syntax_table' instead of
827         `mirror_syntax_table' in XEmacs UTF-2000.
828         (wordify): Likewise.
829         (Freplace_match): Likewise.
830
831         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
832         `mirror_syntax_table' in XEmacs UTF-2000.
833         (WORDCHAR_P_UNSAFE): Likewise.
834         (re_match_2_internal): Likewise.
835
836         * font-lock.c (find_context): Use `buf->syntax_table' instead of
837         `buf->mirror_syntax_table' in XEmacs UTF-2000.
838
839         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
840         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
841
842         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
843         XEmacs UTF-2000.
844
845         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
846         UTF-2000.
847         (print_char_table): Print `default_value' in XEmacs UTF-2000.
848         (char_table_description): Delete `mirror_table' in XEmacs
849         UTF-2000.
850         (fill_char_table): Don't call `update_syntax_table' in XEmacs
851         UTF-2000.
852         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
853         (Fcopy_char_table): Likewise.
854         (put_char_table): Don't call `update_syntax_table' in XEmacs
855         UTF-2000.
856
857         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
858         `buf->mirror_syntax_table' in XEmacs UTF-2000.
859         (casify_region_internal): Likewise.
860
861         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
862
863         * buffer.c (common_init_complex_vars_of_buffer): Don't use
864         `mirror_syntax_table' in XEmacs UTF-2000.
865
866         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
867         `buf->mirror_syntax_table' in XEmacs UTF-2000.
868         (Fexpand_abbrev): Likewise.
869
870 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
873
874 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
875
876         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
877         (map_over_uint16_byte_table): Likewise.
878         (map_over_byte_table): Likewise.
879         (get_char_id_table): Refer `cit->default_value'.
880         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
881         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
882         of character-id ranges.
883         (mark_char_table): Mark `ct->default_value'.
884         (char_table_description): Add `default_value'.
885         (fill_char_table): Use `default_value'.
886         (decode_char_table_range): Decode `nil' as
887         `CHARTAB_RANGE_DEFAULT'.
888         (get_char_id_table): Refer `cit->default_value'.
889         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
890         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
891         temporary hack; check value of char-table is bound or not.
892         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
893
894         * chartab.h (struct Lisp_Char_Table): Add new member
895         `default_value' in XEmacs UTF-2000.
896         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
897         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
898         UTF-2000.
899
900 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
901
902         * chartab.h (Lisp_Char_ID_Table): Deleted.
903
904         * chartab.c (char_table_description): Fix typo.
905         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
906         `Lisp_Char_ID_Table'.
907
908 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
909
910         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
911         `CHAR_ID_TABLE_P'.
912
913         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
914         `CHAR_ID_TABLE_P'.
915
916         * chartab.h (XCHAR_ID_TABLE): Deleted.
917         (XSETCHAR_ID_TABLE): Deleted.
918         (CHAR_ID_TABLE_P): Deleted.
919
920         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
921         `CHAR_ID_TABLE_P'.
922         (Fget_composite_char): Likewise.
923         (put_char_table): Likewise.
924         (add_char_attribute_alist_mapper): Fixed.
925         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
926         `CHAR_ID_TABLE_P'.
927         (Fget_char_attribute): Likewise.
928         (Fget_char_attribute): Likewise.
929         (Fmap_char_attribute): Likewise.
930
931         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
932         `CHAR_ID_TABLE_P'.
933         (encode_char_1): Likewise.
934
935 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
936
937         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
938         `XCHAR_ID_TABLE'.
939
940         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
941         instead of `XCHAR_ID_TABLE'.
942         (remove_char_ccs): Likewise.
943
944         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
945         `XCHAR_ID_TABLE'.
946         (Fget_composite_char): Likewise.
947         (Fchar_variants): Likewise.
948         (put_char_table): Likewise.
949         (add_char_attribute_alist_mapper): Likewise.
950         (Fchar_attribute_alist): Likewise.
951         (Fget_char_attribute): Likewise.
952         (Fput_char_attribute): Likewise.
953         (Fmap_char_attribute): Likewise.
954         (Fmap_char_attribute): Likewise.
955
956         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
957         `XCHAR_ID_TABLE'.
958         (encode_char_1): Likewise.
959
960 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
961
962         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
963         `Lisp_Char_ID_Table'.
964         (mark_char_id_table): Deleted.
965         (print_char_id_table): Likewise.
966         (char_id_table_equal): Likewise.
967         (char_id_table_hash): Likewise.
968         (char_id_table_description): Likewise.
969         (char_id_table): Likewise.
970         (make_char_id_table): Use `Fmake_char_table' and
971         `fill_char_table'.
972         (get_char_id_table): Use `Lisp_Char_Table' instead of
973         `Lisp_Char_ID_Table'.
974         (put_char_id_table): Likewise.
975         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
976         `XCHAR_ID_TABLE'.
977         (Fremove_char_attribute): Likewise.
978         (syms_of_chartab): Don't define type `char-id-table'.
979
980         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
981         (char_id_table): Likewise.
982         (GC_CHAR_ID_TABLE_P): Likewise.
983         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
984         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
985         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
986         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
987         (get_char_id_table): Use `Lisp_Char_Table' instead of
988         `Lisp_Char_ID_Table'.
989         (put_char_id_table_0): Likewise.
990         (put_char_id_table): Likewise.
991
992 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
993
994         * chartab.h: Lisp_Byte_Table related codes are moved from
995         chartab.h.
996
997         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
998
999 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1000
1001         * chartab.h: Don't include "chartab.h".
1002         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1003         (Lisp_Char_ID_Table): Likewise.
1004         (char_id_table): Likewise.
1005         (XCHAR_ID_TABLE): Likewise.
1006         (XSETCHAR_ID_TABLE): Likewise.
1007         (CHAR_ID_TABLE_P): Likewise.
1008         (GC_CHAR_ID_TABLE_P): Likewise.
1009         (get_char_id_table): Likewise.
1010
1011         * char-ucs.h: Include "chartab.h".
1012         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1013         (Lisp_Char_ID_Table): Likewise.
1014         (char_id_table): Likewise.
1015         (XCHAR_ID_TABLE): Likewise.
1016         (XSETCHAR_ID_TABLE): Likewise.
1017         (CHAR_ID_TABLE_P): Likewise.
1018         (GC_CHAR_ID_TABLE_P): Likewise.
1019         (get_char_id_table): Likewise.
1020
1021 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1022
1023         * chartab.c (copy_uint8_byte_table): New function.
1024         (copy_uint16_byte_table): New function.
1025         (copy_byte_table): New function.
1026         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1027         characters to call.
1028         (map_over_uint16_byte_table): Likewise.
1029         (map_over_byte_table): Likewise.
1030         (get_byte_table): Move prototype to chartab.h.
1031         (put_byte_table): Likewise.
1032         (put_char_id_table_0): Moved to chartab.h.
1033         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1034         (char_table_entry_equal): Likewise.
1035         (char_table_entry_hash): Likewise.
1036         (char_table_entry_description): Likewise.
1037         (char_table_entry): Likewise.
1038         (make_char_table_entry): Likewise.
1039         (copy_char_table_entry): Likewise.
1040         (get_non_ascii_char_table_value): Likewise.
1041         (map_over_charset_ascii): Likewise.
1042         (map_over_charset_control_1): Likewise.
1043         (map_over_charset_row): Likewise.
1044         (map_over_other_charset): Likewise.
1045         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1046         (print_char_table): Likewise.
1047         (char_table_equal): Likewise.
1048         (char_table_hash): Likewise.
1049         (char_table_description): Likewise.
1050         (fill_char_table): Likewise.
1051         (Fcopy_char_table): Likewise.
1052         (get_char_table): Likewise.
1053         (Fget_range_char_table): Likewise.
1054         (put_char_table): Likewise.
1055         (map_char_table): Likewise.
1056         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1057         UTF-2000.
1058
1059 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1060
1061         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1062         `Vauto_fill_chars' in XEmacs UTF-2000.
1063
1064         * chartab.h (get_byte_table): New prototype [moved from
1065         chartab.c].
1066         (put_byte_table): Likewise [moved from chartab.c].
1067         (put_char_id_table_0): New inline function [moved from chartab.c].
1068         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1069         (Lisp_Char_Table_Entry): Likewise.
1070         (char_table_entry): Likewise.
1071         (XCHAR_TABLE_ENTRY): Likewise.
1072         (XSETCHAR_TABLE_ENTRY): Likewise.
1073         (CHAR_TABLE_ENTRYP): Likewise.
1074         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1075         (NUM_ASCII_CHARS): Likewise.
1076         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1077         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1078
1079 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1080
1081         * chartab.c (get_char_id_table): Change interface.
1082         (put_char_id_table_0): New function.
1083         (put_char_id_table): Change interface; new implementation.
1084         (Fget_composite_char): Modify for interface change of
1085         `get_char_id_table'.
1086         (Fchar_variants): Likewise.
1087         (add_char_attribute_alist_mapper): Likewise.
1088         (Fchar_attribute_alist): Likewise.
1089         (Fget_char_attribute): Likewise.
1090         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1091         as same as character as the first argument like `put-char-table';
1092         modify for interface change of `put_char_id_table'.
1093         (Fremove_char_attribute): Modify for interface change of
1094         `put_char_id_table'.
1095
1096 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * text-coding.c: Sync up with XEmacs 21.2.41.
1099         (COMPOSE_ADD_CHAR): Modify for interface change of
1100         `get_char_id_table'.
1101
1102         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1103         change of `put_char_id_table'.
1104         (remove_char_ccs): Likewise.
1105
1106         * chartab.h (put_char_id_table): Change interface.
1107
1108         * char-ucs.h (get_char_id_table): Change interface.
1109         (charset_code_point): Modify for interface change of
1110         `get_char_id_table'.
1111         (encode_char_1): Likewise.
1112
1113 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1114
1115         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1116         argument `ccs'.
1117         (map_over_uint16_byte_table): Likewise.
1118         (map_over_byte_table): Likewise.
1119         (map_char_id_table): Add new argument `range' like
1120         `map_char_table'.
1121         (Fmap_char_attribute): Add new argument `range' like
1122         `Fmap_char_table'.
1123
1124 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1125
1126         * chartab.c (map_over_uint8_byte_table): Change interface of
1127         mapping function to use struct chartab_range instead of Emchar.
1128         (map_over_uint16_byte_table): Likewise.
1129         (map_over_byte_table): Likewise.
1130         (map_char_id_table): Likewise.
1131         (struct slow_map_char_id_table_arg): Deleted.
1132         (slow_map_char_id_table_fun): Deleted.
1133         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1134         function `slow_map_char_table_fun' instead of struct
1135         `slow_map_char_id_table_arg' and function
1136         `slow_map_char_id_table_fun'.
1137
1138 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1139
1140         * mule-charset.c: Move char-it-table related codes to chartab.c.
1141         (Vutf_2000_version): Moved to chartab.c.
1142         (Fdefine_char): Likewise.
1143         (Ffind_char): Likewise.
1144         (syms_of_mule_charset): Move types `uint8-byte-table',
1145         `uint16-byte-table', `byte-table' and `char-id-table' to
1146         chartab.c; move functions `char_attribute_list,
1147         `find_char_attribute_table, `char_attribute_alist,
1148         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1149         `map_char_attribute, `define_char, `find_char, `char_variants and
1150         `get_composite_char to chartab.c; move symbols `=>ucs',
1151         `->decomposition', `compat', `isolated', `initial', `medial',
1152         `final', `vertical', `noBreak', `fraction', `super', `sub',
1153         `circle', `square', `wide', `narrow', `small' and `font' to
1154         chartab.c.
1155         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1156         setting codes for `Vcharacter_composition_table' and
1157         `Vcharacter_variant_table' to chartab.c.
1158         (complex_vars_of_mule_charset): Move setting code for
1159         `Vchar_attribute_hash_table' to chartab.c.
1160
1161         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1162         (make_char_id_table): New prototype.
1163         (put_char_id_table): Likewise.
1164         (Fget_char_attribute): Likewise.
1165
1166         * chartab.c: Move char-id-table related code from mule-charset.c.
1167         (Vutf_2000_version): Moved from mule-charset.c.
1168
1169         * char-ucs.h (Qucs): New external variable.
1170         (put_char_ccs_code_point): New prototype.
1171         (remove_char_ccs): Likewise.
1172
1173 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1174
1175         * mule-charset.c (Vcharset_ucs_jis): New variable.
1176         (Qucs_jis): Likewise.
1177         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1178         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1179
1180         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1181
1182 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1183
1184         * mule-charset.c (map_over_uint8_byte_table): New function.
1185         (map_over_uint16_byte_table): Likewise.
1186         (map_over_byte_table): Likewise.
1187         (map_char_id_table): Likewise.
1188         (slow_map_char_id_table_fun): Likewise.
1189         (Fmap_char_attribute): Likewise.
1190         (syms_of_mule_charset): Add new function `map-char-attribute'.
1191
1192 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1195         (syms_of_mule_charset): Add new function `find-char'.
1196
1197 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1198
1199         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1200         XEmacs UTF-2000.
1201         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1202         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1203         XEmacs UTF-2000.
1204         (complex_vars_of_mule_charset): Add new coded-charset
1205         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1206         `ideograph-gt-pj-*'.
1207
1208         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1209
1210 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1211
1212         * mule-charset.c (encode_builtin_char_1): Purge codes about
1213         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1214         {MIN|MAX}_CHAR_HEBREW.
1215         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1216         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1217
1218         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1219         (MAX_CHAR_GREEK): Purged.
1220         (MIN_CHAR_CYRILLIC): Purged.
1221         (MAX_CHAR_CYRILLIC): Purged.
1222         (MIN_CHAR_HEBREW): Commented out.
1223         (MAX_CHAR_HEBREW): Likewise.
1224
1225 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1226
1227         * mule-charset.c (Qto_ucs): New variable.
1228         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1229         (Fdefine_char): Likewise.
1230         (syms_of_mule_charset): Add new symbol `=>ucs'.
1231
1232 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1233
1234         * mule-charset.c (Fdecode_char): Fixed.
1235
1236 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1237
1238         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1239         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1240         "tcvn5712-1".
1241
1242 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1243
1244         * mule-charset.c (Vcharset_ucs_big5): New variable.
1245         (Qucs_big5): Likewise.
1246         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1247         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1248
1249         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1250
1251 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1252
1253         * mule-charset.c (decode_builtin_char): Check Big5 code range
1254         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1255
1256 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1257
1258         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1259         (Qchinese_gb12345): Likewise.
1260         (Fdecode_builtin_char): Fixed.
1261         (syms_of_mule_charset): Add `chinese-gb12345'.
1262         (complex_vars_of_mule_charset): Add coded-charset
1263         `chinese-gb12345'.
1264
1265         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1266         (LEADING_BYTE_CHINESE_GB12345): New macro.
1267
1268 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1269
1270         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1271         and `latin-viscii-upper' for `latin-viscii'.
1272
1273 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1274
1275         * mule-charset.c (Fdecode_builtin_char): Comment out
1276         regularization code for ISO-IR GR representation.
1277
1278 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279
1280         * mule-charset.c (decode_builtin_char): New function; renamed from
1281         `make_builtin_char'; return -1 instead of signal.
1282         (Fdecode_builtin_char): Use `decode_builtin_char'.
1283
1284         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1285         `make_builtin_char'.
1286         (DECODE_CHAR): Use `decode_builtin_char' instead of
1287         `make_builtin_char'; use mapping table of `chinese-big5' for
1288         `chinese-big5-{1,2}'.
1289
1290 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1291
1292         * text-coding.c (char_encode_big5): New function.
1293         (char_finish_big5): Likewise.
1294         (reset_encoding_stream): Use `char_encode_big5' and
1295         `char_finish_big5' for CODESYS_BIG5.
1296         (mule_encode): Don't use `encode_coding_big5'.
1297         (encode_coding_big5): Deleted.
1298
1299 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1300
1301         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1302         0x81- in XEmacs UTF-2000.
1303         (detect_coding_big5): Likewise.
1304
1305 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1306
1307         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1308         generate character-id if the CCS property does not have
1309         corresponding predefined character.
1310         (make_builtin_char): Return -1 if corresponding predefined
1311         character is not found.
1312         (Fdecode_char): Return nil if corresponding character is not
1313         found.
1314         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1315         don't map to builtin ucs space.
1316
1317 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1318
1319         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1320         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1321
1322 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1323
1324         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1325         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1326         (Qideograph_gt): Likewise.
1327         (Qideograph_gt_pj_{1..11}): Likewise.
1328         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1329         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1330         `ideograph-gt-pj-11'.
1331         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1332         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1333         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1334
1335         * char-ucs.h (LEADING_BYTE_GT): New macro.
1336         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1337         (MIN_CHAR_GT): Likewise.
1338         (MAX_CHAR_GT): Likewise.
1339
1340 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1341
1342         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1343         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1344
1345         * doprnt.c (unsigned_int_converters): Add `c'.
1346         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1347
1348         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1349         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1350         `MIN_CHAR_MOJIKYO'.
1351         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1352         (MAX_CHAR_MOJIKYO_0): New macro.
1353         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1354
1355 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * mule-charset.c (Fdefine_char): Delete cemented out code.
1358         (encode_builtin_char_1): Modify for new allocation of builtin
1359         Mojikyo characters.
1360
1361         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1362
1363 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * mule-charset.c (Vcharset_ucs_cns): New variable.
1366         (Qucs_cns): New variable.
1367         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1368         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1369
1370 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1371
1372         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1373
1374 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1375
1376         * search.c (search_buffer): Make `charset_base_code' as
1377         character-id >> 6 to eliminate the corresponding last byte in
1378         UTF-8 representation [I'm not sure it is right thing].
1379         (boyer_moore): Likewise.
1380
1381 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1382
1383         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1384         representation in MULE.
1385
1386 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1387
1388         * text-coding.c (Fmake_coding_system): Use
1389         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1390         `EXTERNAL_PROPERTY_LIST_LOOP'.
1391
1392 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1393
1394         * text-coding.c (decode_output_utf8_partial_char): New function.
1395         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1396
1397 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398
1399         * text-coding.c (decode_coding_utf8): Output original byte
1400         sequence if it is broken; change order of conditions.
1401
1402         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1403         of conditions.
1404
1405         * mb-multibyte.h (BYTE_ASCII_P):
1406         Use bit ops for char-signedness safety.
1407         (BYTE_C0_P): Use bit ops for char-signedness safety.
1408         (BYTE_C1_P): Use bit ops for char-signedness safety.
1409
1410         * character.h: (XCHAR_OR_CHAR_INT):
1411         Always use inline function.
1412         Remove redundant type checking assert() - XINT will abort quite
1413         nicely.
1414
1415 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1416
1417         * text-coding.c: (Fencode_shift_jis_char):
1418         (Fencode_big5_char):
1419         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1420         Replace 0 with '\0' when working with bytes.
1421         Replace initial "(" with "\(" in docstrings.
1422
1423         (Fmake_coding_system):
1424         When type is ccl and value is vector, register it with a proper
1425         symbol.  And checks whether the given ccl program is valid.
1426         (mule_decode): When calling ccl_driver, if src indicates
1427         NULL pointer, set an empty string instead.
1428         (mule_encode): Likewise.
1429
1430         (detect_eol_type):
1431         (detect_coding_sjis):
1432         (decode_coding_sjis):
1433         (detect_coding_big5):
1434         (decode_coding_big5):
1435         (detect_coding_ucs4):
1436         (decode_coding_ucs4):
1437         (detect_coding_utf8):
1438         (decode_coding_utf8):
1439         (detect_coding_iso2022):
1440         (decode_coding_iso2022):
1441         (decode_coding_no_conversion):
1442         (mule_decode):
1443         Make all detecting and decoding functions take an Extbyte * arg.
1444         (text_encode_generic):
1445         (encode_coding_big5):
1446         (encode_coding_no_conversion):
1447         (mule_encode):
1448         Make all encoding functions take a Bufbyte * arg.
1449         Use size_t instead of unsigned int for memory sizes.
1450         Only cast to unsigned char whenever dereferencing Extbyte *.
1451
1452         (struct lrecord_description fcd_description_1): Use countof.
1453         (complex_vars_of_file_coding):
1454         Use countof instead of sizeof.
1455         Use CHECK_NATNUM instead of CHECK_INT.
1456
1457 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1458
1459         * mule-charset.c (Fget_char_attribute): Add new optional argument
1460         `default-value'.
1461         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1462         (remove_char_ccs): Likewise.
1463
1464 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465
1466         * text-coding.c (char_encode_shift_jis): New implementation in
1467         UTF-2000.
1468         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1469         ...)'.
1470
1471         * mule-charset.c (Vcharset_chinese_big5): New variable in
1472         UTF-2000.
1473         (Qchinese_big5): New variable in UTF-2000.
1474         (BIG5_SAME_ROW): New macro in UTF-2000.
1475         (make_builtin_char): Use builtin characters of
1476         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1477         characters of `Vcharset_chinese_big5'.
1478         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1479         (complex_vars_of_mule_charset): Add new coded-charset
1480         `chinese-big5' in UTF-2000.
1481
1482         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1483         (Vcharset_chinese_big5): New external variable declaration.
1484         (Vcharset_japanese_jisx0208_1990): Likewise.
1485
1486 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1487
1488         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1489         function.
1490         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1491
1492 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1493
1494         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1495         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1496         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1497         `mojikyo-pj-*'.
1498
1499 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1500
1501         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1502
1503 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504
1505         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1506         to 0.17.
1507
1508 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1509
1510         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1511         for `CHARSET_BY_ATTRIBUTES'.
1512         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1513         `CHARSET_BY_ATTRIBUTES'.
1514
1515         * text-coding.c (struct decoding_stream): Rename member `CH' to
1516         `CPOS'.
1517         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1518         (decode_coding_sjis): Likewise.
1519         (decode_coding_big5): Likewise.
1520         (decode_coding_ucs4): Likewise.
1521         (decode_coding_utf8): Likewise.
1522         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1523         `CHARSET_BY_ATTRIBUTES'.
1524         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1525         `str->counter'; decode 3, 4 bytes sets.
1526         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1527         sets.
1528         (decode_coding_no_conversion): Use `str->cpos' instead of
1529         `str->ch'.
1530
1531         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1532         (Qmojikyo_2022_1): New variable.
1533         (make_charset): Don't use `CHARSET_TYPE_*'.
1534         (range_charset_code_point): Support coded-charset
1535         `mojikyo-2022-1'.
1536         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1537         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1538         `CHARSET_BY_ATTRIBUTES'.
1539         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1540         `CHARSET_BY_ATTRIBUTES'.
1541         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1542         (complex_vars_of_mule_charset): Add new coded-charset
1543         `mojikyo-2022-1'.
1544
1545         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1546         interface; changed to inline function.
1547
1548         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1549         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1550         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1551         (CHARSET_TYPE_94): Deleted.
1552         (CHARSET_TYPE_94X94): Deleted.
1553         (CHARSET_TYPE_96): Deleted.
1554         (CHARSET_TYPE_96X96): Deleted.
1555         (CHARSET_TYPE_128): Deleted.
1556         (CHARSET_TYPE_128X128): Deleted.
1557         (CHARSET_TYPE_256): Deleted.
1558         (CHARSET_TYPE_256X256): Deleted.
1559         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1560         to inline function.
1561         (DECODE_MOJIKYO_2022): New inline function.
1562         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1563         `Vcharset_mojikyo_2022_1'.
1564
1565 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1566
1567         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1568         instead of `EQ'.
1569         (put_byte_table): Likewise.
1570         (char_id_table_equal): Use `get_byte_table' [new implementation].
1571
1572 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1573
1574         * mule-charset.c: Include <limits.h> in UTF-2000.
1575         (BT_UINT8_MIN): New macro in UTF-2000.
1576         (BT_UINT8_MAX): New macro in UTF-2000.
1577         (BT_UINT8_t): New macro in UTF-2000.
1578         (BT_UINT8_nil): New macro in UTF-2000.
1579         (BT_UINT8_unbound): New macro in UTF-2000.
1580         (INT_UINT8_P): New inline function in UTF-2000.
1581         (UINT8_VALUE_P): New inline function in UTF-2000.
1582         (UINT8_ENCODE): New inline function in UTF-2000.
1583         (UINT8_DECODE): New inline function in UTF-2000.
1584         (mark_uint8_byte_table): New function in UTF-2000.
1585         (print_uint8_byte_table): New function in UTF-2000.
1586         (uint8_byte_table_equal): New function in UTF-2000.
1587         (uint8_byte_table_hash): New function in UTF-2000.
1588         (make_uint8_byte_table): New function in UTF-2000.
1589         (uint8_byte_table_same_value_p): New function in UTF-2000.
1590         (BT_UINT16_MIN): New macro in UTF-2000.
1591         (BT_UINT16_MAX): New macro in UTF-2000.
1592         (BT_UINT16_t): New macro in UTF-2000.
1593         (BT_UINT16_nil): New macro in UTF-2000.
1594         (BT_UINT16_unbound): New macro in UTF-2000.
1595         (INT_UINT16_P): New inline function in UTF-2000.
1596         (UINT16_VALUE_P): New inline function in UTF-2000.
1597         (UINT16_ENCODE): New inline function in UTF-2000.
1598         (UINT16_DECODE): New inline function in UTF-2000.
1599         (UINT8_TO_UINT16): New inline function in UTF-2000.
1600         (mark_uint16_byte_table): New function in UTF-2000.
1601         (print_uint16_byte_table): New function in UTF-2000.
1602         (uint16_byte_table_equal): New function in UTF-2000.
1603         (uint16_byte_table_hash): New function in UTF-2000.
1604         (make_uint16_byte_table): New function in UTF-2000.
1605         (uint16_byte_table_same_value_p): New function in UTF-2000.
1606         (print_byte_table): New function in UTF-2000.
1607         (byte-table): Use `print_byte_table' as printer.
1608         (make_byte_table): Delete second argument `older'.
1609         (byte_table_same_value_p): New function in UTF-2000.
1610         (copy_byte_table): Deleted.
1611         (get_byte_table): New function in UTF-2000.
1612         (put_byte_table): New function in UTF-2000.
1613         (print_char_id_table): New function in UTF-2000.
1614         (char-id-table): Use `print_char_id_table' as printer.
1615         (make_char_id_table): Delete second argument `older'.
1616         (get_char_id_table): Use `get_byte_table [new implementation].
1617         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1618         implementation].
1619         (Ffind_char_attribute_table): New function in UTF-2000.
1620         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1621         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1622         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1623         (syms_of_mule_charset): Add new function
1624         `find-char-attribute-table' in UTF-2000.
1625
1626         * lrecord.h (enum lrecord_type): Add
1627         `lrecord_type_uint16_byte_table' and
1628         `lrecord_type_uint8_byte_table'.
1629
1630         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1631         (Lisp_Uint8_Byte_Table): New type.
1632         (XUINT8_BYTE_TABLE): New macro.
1633         (XSETUINT8_BYTE_TABLE): New macro.
1634         (UINT8_BYTE_TABLE_P): New macro.
1635         (GC_UINT8_BYTE_TABLE_P): New macro.
1636         (struct Lisp_Uint16_Byte_Table): New structure.
1637         (Lisp_Uint16_Byte_Table): New type.
1638         (XUINT16_BYTE_TABLE): New macro.
1639         (XSETUINT16_BYTE_TABLE): New macro.
1640         (UINT16_BYTE_TABLE_P): New macro.
1641         (GC_UINT16_BYTE_TABLE_P): New macro.
1642
1643 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1644
1645         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1646         (Vcharacter_ideographic_strokes_table): Deleted.
1647         (Vcharacter_total_strokes_table): Deleted.
1648         (Vcharacter_morohashi_daikanwa_table): Deleted.
1649         (Vcharacter_decomposition_table): Deleted.
1650         (Qname): Deleted because it is duplicated.
1651         (Qideographic_radical): Deleted.
1652         (Qideographic_strokes): Deleted.
1653         (Qtotal_strokes): Deleted.
1654         (Qmorohashi_daikanwa): Deleted.
1655         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1656         `ideographic-radical', `ideographic-strokes', `total-strokes',
1657         `morohashi-daikanwa' and `->decomposition'.
1658         (Fget_char_attribute): Likewise.
1659         (Fput_char_attribute): Likewise; use `make-vector' instead of
1660         `make_older_vector' for `->decomposition' value.
1661         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1662         `ideograph-daikanwa'.
1663         (syms_of_mule_charset): Delete builtin symbols `name',
1664         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1665         `morohashi-daikanwa'.
1666         (vars_of_mule_charset): Don't setup
1667         `Vcharacter_ideographic_radical_table',
1668         `Vcharacter_ideographic_strokes_table',
1669         `Vcharacter_total_strokes_table',
1670         `Vcharacter_morohashi_daikanwa_table' and
1671         `Vcharacter_decomposition_table'.
1672
1673 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1674
1675         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1676         `make_older_vector', `make_vector_newer_1' and
1677         `make_vector_newer'.
1678
1679         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1680         `make_older_vector' and `make_vector_newer'.
1681
1682         * config.h.in (HAVE_GGC): New macro.
1683
1684 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1685
1686         * mule-charset.c (struct char_attribute_list_closure): New
1687         structure in UTF-2000.
1688         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1689         (Fchar_attribute_list): Likewise.
1690         (Fset_charset_mapping_table): Use `make_vector_newer'.
1691         (Fdecode_builtin_char): New function in UTF-2000.
1692         (syms_of_mule_charset): Add new function `char-attribute-list' and
1693         `decode-builtin-char' in UTF-2000.
1694
1695         * lisp.h (make_vector_newer): New prototype.
1696
1697         * alloc.c (make_vector_newer_1): New function.
1698         (make_vector_newer): New function.
1699
1700 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1701
1702         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1703         50100)'.
1704
1705 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1706
1707         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1708         (Vcharacter_attribute_table): Deleted.
1709         (Vcharacter_name_table): Deleted.
1710         (put_char_attribute): Deleted.
1711         (remove_char_attribute): Deleted.
1712         (struct char_attribute_alist_closure): New structure.
1713         (add_char_attribute_alist_mapper): New function.
1714         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1715         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1716         (Fget_char_attribute): Likewise.
1717         (Fput_char_attribute): Likewise.
1718         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1719         of `remove_char_attribute'.
1720         (Fdefine_char): Return character.
1721         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1722         and `Vcharacter_name_table'.
1723         (complex_vars_of_mule_charset): Likewise
1724         `Vchar_attribute_hash_table'.
1725
1726 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * character.h (CHARC_CHARSET): New macro.
1729         (CHARC_CHARSET_ID): New macro.
1730         (CHARC_CODE_POINT): New macro.
1731         (CHARC_COLUMNS): New macro.
1732         (CHARC_TO_CHAR): New inline function.
1733         (CHARC_EQ): New inline function.
1734         (CHARC_ASCII_EQ): New inline function.
1735         (CHARC_IS_SPACE): New inline function.
1736         (ASCII_TO_CHARC): New inline function.
1737
1738         * char-ucs.h (encode_char_2): Deleted.
1739         (ENCODE_CHAR): Use `encode_char_1' again.
1740         (breakup_char_1): Likewise.
1741         (CHAR_TO_CHARC): New inline function.
1742
1743         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1744
1745 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1746
1747         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1748         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1749         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1750         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1751         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1752         `CHARC_IS_SPACE'.
1753         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1754
1755         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1756         `CHARC_CODE_POINT'.
1757         (x_output_display_block): Use `CHARC_CHARSET' and
1758         `CHARC_ASCII_EQ'.
1759
1760         * redisplay-tty.c (tty_output_display_block): Use
1761         `CHARC_ASCII_EQ'.
1762         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1763
1764         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1765
1766         * insdel.c (find_charsets_in_charc_string): Use
1767         `CHARC_CHARSET_ID'.
1768         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1769         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1770         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1771         (convert_charc_string_into_malloced_string): Likewise.
1772
1773 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1774
1775         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1776         instead of <Emchar_dynarr *> for buf; use
1777         `convert_bufbyte_string_into_charc_dynarr' instead of
1778         `convert_bufbyte_string_into_emchar_dynarr'; use
1779         `find_charsets_in_charc_string' instead of
1780         `find_charsets_in_emchar_string'.
1781
1782         * redisplay.h:
1783         - Include "character.h".
1784         (struct rune): New member `cglyph'; delete member `chr'.
1785
1786         * redisplay.c (redisplay_text_width_charc_string): New function;
1787         delete `redisplay_text_width_emchar_string'.
1788         (rtw_charc_dynarr): New variable; renamed from
1789         `rtw_emchar_dynarr'.
1790         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1791         `rtw_emchar_dynarr'; use
1792         `convert_bufbyte_string_into_charc_dynarr' instead of
1793         `convert_bufbyte_string_into_emchar_dynarr'; use
1794         `redisplay_text_width_charc_string' instead of
1795         `redisplay_text_width_emchar_string'.
1796         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1797         instead of `rtw_emchar_dynarr'; use
1798         `convert_bufbyte_string_into_charc_dynarr' instead of
1799         `convert_bufbyte_string_into_emchar_dynarr'.
1800         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1801         `redisplay_text_width_charc_string' instead of
1802         `redisplay_text_width_emchar_string'.
1803         (create_text_block): Modify for <struct rune> change.
1804         (generate_formatted_string_db): Likewise.
1805         (create_string_text_block): Likewise.
1806         (pixel_to_glyph_translation): Likewise.
1807
1808         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1809         instead of <const Emchar *>.
1810         (x_text_width): Likewise.
1811         (x_output_display_block): Use <Charc_dynarr *> instead
1812         <Emchar_dynarr *>; modify for <structure rune> change.
1813         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1814         *>.
1815
1816         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1817         <const Emchar *>; use `charc_string_displayed_columns' instead of
1818         `emchar_string_displayed_columns'.
1819         (tty_output_display_block): Use <Charc_dynarr *> instead of
1820         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1821         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1822         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1823         `tty_output_emchar_dynarr_dynarr'.
1824         (tty_output_charc_dynarr): New function; delete
1825         `tty_output_charc_dynarr'.
1826
1827         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1828         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1829         <Emchar_dynarr *> for buf; use
1830         `convert_bufbyte_string_into_charc_dynarr' instead of
1831         `convert_bufbyte_string_into_emchar_dynarr'.
1832
1833         * frame.c (title_string_charc_dynarr): New variable; renamed from
1834         `title_string_emchar_dynarr'.
1835         (generate_title_string): Use `title_string_charc_dynarr' instead
1836         of `title_string_emchar_dynarr'; use
1837         `convert_charc_string_into_malloced_string' instead of
1838         `convert_emchar_string_into_malloced_string'.
1839         (init_frame): Use `title_string_charc_dynarr' instead of
1840         `title_string_emchar_dynarr'.
1841
1842         * console.h:
1843         - Include "character.h".
1844         (struct console_methods): Use <const Charc *> instead of <const
1845         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1846         <Emchar_dynarr *> in output_string_method.
1847
1848         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1849         <Emchar_dynarr *>.
1850
1851         * console-stream.c (stream_text_width): Use <const Charc *>
1852         instead of <const Emchar *>.
1853
1854         * character.h (Charc_dynarr): New type.
1855
1856         * char-ucs.h (structure Charc): New structure; define new type
1857         `Charc'.
1858
1859         * char-lb.h (DECODE_CHAR): New inline function.
1860         (encode_char_1): New inline function.
1861         (ENCODE_CHAR): New macro.
1862         (structure Charc): New structure; define new type `Charc'.
1863
1864         * char-1byte.h (Vcharset_control_1): New macro.
1865         (Vcharset_latin_iso8859_1): New macro.
1866         (DECODE_CHAR): New inline function.
1867         (encode_char_1): New inline function.
1868         (ENCODE_CHAR): New macro.
1869         (structure Charc): New structure; define new type `Charc'.
1870
1871         * insdel.c (find_charsets_in_charc_string): New function; delete
1872         `find_charsets_in_emchar_string'.
1873         (charc_string_displayed_columns): New function; delete
1874         `emchar_string_displayed_columns'.
1875         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1876         `convert_bufbyte_string_into_emchar_dynarr'.
1877         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1878         `convert_charc_string_into_bufbyte_dynarr'.
1879         (convert_charc_string_into_malloced_string): New function; delete
1880         `convert_charc_string_into_malloced_string'.
1881
1882         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1883         `find_charsets_in_emchar_string'.
1884         (charc_string_displayed_columns): New prototype; delete
1885         `emchar_string_displayed_columns'.
1886         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1887         `convert_charc_string_into_bufbyte_dynarr'.
1888         (convert_charc_string_into_malloced_string): New prototype; delete
1889         `convert_charc_string_into_malloced_string'.
1890
1891 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1892
1893         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1894
1895 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1896
1897         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1898
1899         * char-ucs.h: Use <short> for <Charset_ID>.
1900
1901         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1902         <Charset_ID>.
1903
1904 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1907         to 0.16.
1908
1909 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1910
1911         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1912         variable.
1913         (Qmorohashi_daikanwa): New variable.
1914         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1915         for `morohashi-daikanwa' attribute.
1916         (Fget_char_attribute): Likewise.
1917         (Fput_char_attribute): Likewise.
1918         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1919         has the same value of `ideograph-daikanwa'.
1920         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1921         (vars_of_mule_charset): Setup
1922         `Vcharacter_morohashi_daikanwa_table'.
1923
1924 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1925
1926         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1927         attributes.
1928         (add_charset_to_list_mapper): Add `key' instead of
1929         `XCHARSET_NAME (value)' to return aliases.
1930
1931 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1932
1933         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1934         variable.
1935         (Vcharacter_ideographic_strokes_table): New variable.
1936         (Qideographic_radical): New variable.
1937         (Qideographic_strokes): New variable.
1938         (Fchar_attribute_alist): Use
1939         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1940         attribute; use `Vcharacter_ideographic_strokes_table' for
1941         `ideographic-strokes' attribute.
1942         (Fget_char_attribute): Likewise.
1943         (Fput_char_attribute): Likewise.
1944         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1945         `ideographic-strokes'.
1946         (vars_of_mule_charset): Setup
1947         `Vcharacter_ideographic_radical_table' and
1948         `Vcharacter_ideographic_strokes_table'.
1949
1950 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1951
1952         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1953         (Qtotal_strokes): New variable.
1954         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1955         `total-strokes' attribute.
1956         (Fget_char_attribute): Likewise.
1957         (Fput_char_attribute): Likewise.
1958         (syms_of_mule_charset): Add new symbol `total-strokes'.
1959         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1960
1961 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1962
1963         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1964         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1965         are found.
1966         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1967         `->decomposition' attribute.
1968         (Fput_char_attribute): Likewise.
1969         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1970
1971 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1972
1973         * mule-charset.c (decoding_table_check_elements): New function.
1974         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1975
1976 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1977
1978         * mule-charset.c (Fset_charset_mapping_table): Use
1979         `put_char_ccs_code_point'.
1980
1981 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982
1983         * mule-charset.c (decoding_table_put_char): New inline function.
1984         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1985
1986 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1987
1988         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1989         (XCHARSET_BYTE_SIZE): New macro.
1990         (decoding_table_remove_char): New inline function.
1991         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1992         `decoding_table_remove_char'.
1993         (remove_char_ccs): Use `decoding_table_remove_char'.
1994         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1995
1996 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1997
1998         * mule-charset.c (Vcharacter_name_table): New variable.
1999         (Qname): New variable.
2000         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2001         attribute.
2002         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2003         `Vcharacter_name_table' for `name' attribute.
2004         (Fremove_char_attribute): Use function `remove_char_ccs'.
2005         (put_char_ccs_code_point): New function.
2006         (remove_char_ccs): New function.
2007         (syms_of_mule_charset): Add new symbol `name'.
2008         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2009
2010 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2011
2012         * mule-charset.c (make_byte_table): Add new argument `older'.
2013         (make_char_id_table): Likewise.
2014         (copy_char_id_table): Comment out because it is not used.
2015         (put_char_id_table): Modify for `make_byte_table'.
2016         (Fput_char_attribute): Make encoding_table as older object;
2017         inherit older bit of `Vcharacter_composition_table'.
2018         (mark_charset): Don't mark `cs->encoding_table'.
2019         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2020         normal object; make `Vcharacter_composition_table' as an older
2021         object; delete staticpro for `Vcharacter_composition_table'; make
2022         `Vcharacter_variant_table' as a normal object.
2023
2024         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2025         (mark_object): Don't check older object in UTF-2000.
2026
2027         * lrecord.h (struct lrecord_header): Add new member `older' in
2028         UTF-2000.
2029         (set_lheader_implementation): Setup `SLI_header->older' in
2030         UTF-2000.
2031         (set_lheader_older_implementation): New macro in UTF-2000.
2032         (OLDER_RECORD_P): New macro in UTF-2000.
2033         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2034         (alloc_older_lcrecord): New prototype in UTF-2000.
2035         (alloc_older_lcrecord_type): New macro in UTF-2000.
2036
2037 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2038
2039         * mule-charset.c (byte_table_description): Use
2040         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2041         (char_id_table_description): Delete bogus `, 1'.
2042         (Fget_char_attribute): Refer encoding_table of each coded-charset
2043         to get value of coded-charset attribute of a character.
2044         (Fput_char_attribute): Use `make_older_vector' instead of
2045         `make_vector'; use encoding_table of each coded-charset to store
2046         value of coded-charset attribute of a character.
2047         (Fremove_char_attribute): Use encoding_table of each coded-charset
2048         to store value of coded-charset attribute of a character.
2049         (mark_charset): Mark `cs->encoding_table'; don't mark
2050         `cs->decoding_table'.
2051         (charset_description): Add description of new member
2052         `encoding_table'.
2053         (make_charset): Initialize `encoding_table'.
2054
2055         * char-ucs.h (struct Lisp_Charset): Add new member
2056         `encoding_table'.
2057         (CHARSET_ENCODING_TABLE): New macro.
2058         (XCHARSET_ENCODING_TABLE): New macro.
2059         (charset_code_point): New implementation.
2060         (encode_char_1): Likewise.
2061
2062         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2063         (disksave_object_finalization_1): Call finalizers of
2064         `all_older_lcrecords' in UTF-2000.
2065         (make_older_vector): New function in UTF-2000.
2066         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2067         UTF-2000.
2068
2069         * lisp.h (make_older_vector): New prototype in UTF-2000.
2070
2071 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2072
2073         * lrecord.h (enum lrecord_type): Rename
2074         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2075
2076         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2077         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2078         `get_char_code_table'.
2079
2080         * mule-charset.c (mark_char_id_table): Renamed from
2081         `mark_char_code_table'.
2082         (char_id_table_equal): Renamed from `char_code_table_equal'.
2083         (char_id_table_hash): Renamed from `char_code_table_hash'.
2084         (make_char_id_table): Renamed from `make_char_code_table'.
2085         (copy_char_id_table): Renamed from `copy_char_code_table'.
2086         (get_char_id_table): Renamed from `get_char_code_table'.
2087         (put_char_id_table): Renamed from `put_char_code_table'.
2088         (to_char_id): Renamed from `to_char_code'.
2089
2090         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2091         `Lisp_Char_Code_Table'.
2092         (char_id_table): Renamed from `char_code_table'.
2093         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2094         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2095         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2096         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2097         (get_char_id_table): Renamed from `get_char_code_table'.
2098
2099 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2100
2101         * lrecord.h (enum lrecord_type): Rename
2102         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2103
2104         * mule-charset.c (mark_byte_table): Renamed from
2105         `mark_char_byte_table'.
2106         (byte_table_equal): Renamed from `char_byte_table_equal'.
2107         (byte_table_hash): Renamed from `byte_table_hash'.
2108         (make_byte_table): Renamed from `make_byte_table'.
2109         (copy_byte_table): Renamed from `copy_char_byte_table'.
2110
2111         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2112         `Lisp_Char_Byte_Table'.
2113         (byte_table): Renamed from `char_byte_table'.
2114         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2115         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2116         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2117         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2118
2119 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2120
2121         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2122         (dfc_convert_to_internal_format): Likewise.
2123         
2124         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2125         * text-coding.c (Fcoding_system_alias_p): New function.
2126         * text-coding.c (Fcoding_system_aliasee): New function.
2127         * text-coding.c (append_suffix_to_symbol): New function.
2128         * text-coding.c (dangling_coding_system_alias_p): New function.
2129         * text-coding.c (Ffind_coding_system):
2130         * text-coding.c (Fcopy_coding_system):
2131         * text-coding.c (encode_coding_no_conversion):
2132         * text-coding.c (syms_of_file_coding):
2133         * text-coding.c (vars_of_file_coding):
2134         Rewrite coding system alias code.
2135         Allow nested aliases, like symbolic links.
2136         Allow redefinition of coding system aliases.
2137         Prevent existence of dangling coding system aliases.
2138         Eliminate convert_to_external_format.
2139         Eliminate convert_to_internal_format.
2140         
2141         * text-coding.c: Change enum eol_type to eol_type_t.
2142
2143 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2144
2145         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2146         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2147
2148         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2149         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2150
2151 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2152
2153         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2154         `ideograph-daikanwa'.
2155
2156         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2157         (Vcharset_ucs_bmp): Likewise.
2158         (Vcharset_mojikyo): Add new extern variable definition.
2159         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2160         (Vcharset_latin_iso8859_3): Likewise.
2161         (Vcharset_latin_iso8859_4): Likewise.
2162         (Vcharset_latin_iso8859_9): Likewise.
2163         (Vcharset_latin_viscii_lower): Likewise.
2164         (Vcharset_latin_viscii_upper): Likewise.
2165         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2166         `mojikyo' code-point is used to decode.
2167         (encode_char_2): New function [to convert `mojikyo' code-point to
2168         Mojikyo font encoding].
2169         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2170         (breakup_char_1): Likewise.
2171         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2172
2173 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2174
2175         * text-coding.c (Fmake_coding_system): Add document about
2176         `disable-composition' property.
2177
2178 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2179
2180         * text-coding.c (Qdisable_composition): New variable; delete
2181         `Qcomposite'.
2182         (Fmake_coding_system): Add new property `disable-composite';
2183         delete property `composite'.
2184         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2185         instead of `!CODING_SYSTEM_COMPOSITE'.
2186         (syms_of_file_coding): Add new symbol `disable-composition';
2187         delete symbol `composite'.
2188
2189         * file-coding.h (struct Lisp_Coding_System): Add
2190         `disable_composition'; delete `enable_composition'.
2191         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2192         `CODING_SYSTEM_COMPOSITE'.
2193         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2194         `XCODING_SYSTEM_COMPOSITE'.
2195
2196 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197
2198         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2199         to 0.15.
2200
2201 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2202
2203         * text-coding.c (Qcomposite): New variable.
2204         (Fmake_coding_system): Add new property `composite'.
2205         (struct decoding_stream): Add `combined_char_count',
2206         `combined_chars' and `combining_table' in UTF-2000.
2207         (COMPOSE_FLUSH_CHARS): New macro.
2208         (COMPOSE_ADD_CHAR): New macro.
2209         (reset_decoding_stream): Reset `str->combined_char_count' and
2210         `str->combining_table' in UTF-2000.
2211         (decode_coding_iso2022): Modify for character-decomposition.
2212         (syms_of_file_coding): Add new symbol `composite'.
2213
2214 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2215
2216         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2217         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2218         of `Vcharacter_composition_table' if `->decomposition' property
2219         has only 1 element.
2220         (Qlatin_tcvn5712): New variable.
2221         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2222         (complex_vars_of_mule_charset): Add new coded-charset
2223         `latin-tcvn5712'.
2224
2225         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2226
2227 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2228
2229         * file-coding.h (struct Lisp_Coding_System): Add
2230         `enable_composition'.
2231         (CODING_SYSTEM_COMPOSITE): New macro.
2232         (XCODING_SYSTEM_COMPOSITE): New macro.
2233
2234 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2235
2236         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2237
2238 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2239
2240         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2241         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2242
2243 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2244
2245         * mule-charset.c (Vcharset_mojikyo): New variable.
2246         (Fdefine_char): Don't use coded-charset which does not have
2247         non-builtin character range to allocate character-id.
2248         (Qmojikyo): New variable.
2249         (syms_of_mule_charset): Add new symbol `mojikyo'.
2250         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2251
2252         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2253         (LEADING_BYTE_MOJIKYO): New macro.
2254         (MIN_CHAR_MOJIKYO): New macro.
2255         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2256         (MAX_CHAR_MOJIKYO): New macro.
2257
2258 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2259
2260         * mule-charset.c (remove_char_attribute): Fixed.
2261
2262 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2263
2264         * mule-charset.c (remove_char_attribute): New function.
2265         (Fremove_char_attribute): New function.
2266         (encode_builtin_char_1): Comment out builtin-support for
2267         greek-iso8859-7 and cyrillic-iso8859-5.
2268         (Fdecode_char): Check `code' is an integer.
2269         (syms_of_mule_charset): Add `remove-char-attribute'.
2270         (MIN_CHAR_GREEK): Deleted.
2271         (MAX_CHAR_GREEK): Likewise.
2272         (MIN_CHAR_CYRILLIC): Likewise.
2273         (MAX_CHAR_CYRILLIC): Likewise.
2274         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2275         MAX_CHAR_GREEK for `greek-iso8859-7'.
2276
2277         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2278         (MAX_CHAR_GREEK): Likewise.
2279         (MIN_CHAR_CYRILLIC): Likewise.
2280         (MAX_CHAR_CYRILLIC): Likewise.
2281
2282 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2283
2284         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2285         format is used without `ucs' property.
2286         (Fdecode_char): Fix problem with GR representation.
2287         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2288         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2289
2290 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2291
2292         * mule-charset.c (make_builtin_char): New function.
2293         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2294         (Fset_charset_mapping_table): Modify for new representation of
2295         code-point.
2296         (Fdecode_char): New function.
2297         (syms_of_mule_charset): Add new builtin function `decode-char' in
2298         UTF-2000.
2299
2300         * char-ucs.h (make_builtin_char): New prototype.
2301         (DECODE_CHAR): New inline function.
2302         (MAKE_CHAR): Use `DECODE_CHAR'.
2303
2304 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2305
2306         * text-coding.c (parse_charset_conversion_specs): Use
2307         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2308         `XCHARSET_TYPE'.
2309         (iso2022_designate): Likewise.
2310
2311         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2312         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2313
2314         * mule-charset.c (Vcharset_ucs): New variable.
2315         (print_charset): Change design; use `CHARSET_CHARS' and
2316         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2317         (make_charset): Change signature to specify `chars' and
2318         `dimension' instead of `type'.
2319         (range_charset_code_point): Modify for 256^n-set.
2320         (encode_builtin_char_1): Encode as `ucs' in default.
2321         (Fmake_charset): Modify for `make_charset'.
2322         (Fmake_reverse_direction_charset): Likewise.
2323         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2324         UTF-2000.
2325         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2326         for `make_charset'.
2327
2328         * char-ucs.h (Vcharset_ucs): New variable.
2329         (LEADING_BYTE_UCS): New macro.
2330         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2331         and `chars' to `unsigned short' from `unsigned int'.
2332         (CHARSET_TYPE): Deleted.
2333         (XCHARSET_TYPE): Deleted.
2334
2335 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2336
2337         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2338
2339         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2340         (ENCODE_CHAR): New macro.
2341
2342 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2343
2344         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2345         to 0.14 (Kawachi-Katakami).
2346
2347 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2348
2349         * text-coding.c (char_encode_shift_jis): Modify for
2350         `charset_code_point'.
2351         (char_encode_iso2022): Likewise.
2352
2353         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2354         (integer) instead of list of <Lisp_Object>s (integers) as the
2355         format of code-point of a coded-charset.
2356         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2357         (encode_builtin_char_1): New function; delete
2358         `split_builtin_char'.
2359         (charset_code_point): Return <int> instead of <Lisp_Object>.
2360         (Fsplit_char): Don't use `SPLIT_CHAR'.
2361
2362         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2363         prototype for `split_builtin_char'.
2364         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2365         (charset_code_point): Likewise.
2366         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2367         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2368
2369 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2370
2371         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2372         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2373
2374 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2375
2376         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2377
2378         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2379         (MAX_CHAR_OBS_94x94): Deleted.
2380
2381 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2382
2383         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2384
2385         * char-ucs.h (MAX_CHAR_BMP): New macro.
2386
2387 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2388
2389         * text-coding.c: Sync with r21-2-24.
2390
2391 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2392
2393         * file-coding.c: Modify for UTF-2000.
2394
2395 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2396
2397         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2398         to 0.13 (Takaida).
2399
2400 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2401
2402         * mule-charset.c (split_builtin_char): Delete builtin support for
2403         `katakana-jisx0201'.
2404         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2405         BMP area in builtin representation.
2406
2407         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2408         `Vcharset_katakana_jisx0201'.
2409
2410 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2411
2412         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2413         (Qisolated): New variable.
2414         (Qinitial): New variable.
2415         (Qmedial): New variable.
2416         (Qfinal): New variable.
2417         (Qvertical): New variable.
2418         (Qsmall): New variable.
2419         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2420         `Qvertical' and `Qsmall'.
2421         (Qmojikyo_pj_[1 .. 21]): New variable.
2422         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2423         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2424         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2425         .. 21]'.
2426
2427 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2428
2429         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2430         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2431         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2432
2433 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2434
2435         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2436         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2437         BMP.
2438         (Qjapanese_jisx0208_1990): New variable.
2439         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2440         (complex_vars_of_mule_charset): Add new coded-charset
2441         `japanese-jisx0208-1990'.
2442
2443         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2444         (MIN_CHAR_JIS_X0208_1990): New macro.
2445         (MAX_CHAR_JIS_X0208_1990): New macro.
2446
2447 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2448
2449         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2450         coded-charset is not found.
2451
2452 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2453
2454         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2455         (Fdefine_char): Use `Fmake_char'.
2456
2457 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2458
2459         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2460         (Vcharset_hiragana_jisx0208): Deleted.
2461         (Vcharset_katakana_jisx0208): Deleted.
2462         (Qideograph_daikanwa): New variable.
2463         (Qhiragana_jisx0208): Deleted.
2464         (Qkatakana_jisx0208): Deleted.
2465         (split_builtin_char): Split `ideograph-daikanwa'.
2466         (Fsplit_char): New implementation for UTF-2000.
2467         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2468         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2469         (complex_vars_of_mule_charset): Add new coded-charset
2470         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2471         `katakana-jisx0208'.
2472
2473         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2474         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2475         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2476         (MIN_CHAR_DAIKANWA): New macro.
2477         (MAX_CHAR_DAIKANWA): New macro.
2478
2479 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2480
2481         * data.c (Fstring_to_number): Don't recognize floating point if
2482         base is not 10.
2483
2484 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2485
2486         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2487
2488 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2489
2490         * mule-charset.c (Qsquare): New variable.
2491         (to_char_code): Add `Qsquare'.
2492         (syms_of_mule_charset): Add new symbol `square'.
2493
2494 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2495
2496         * mule-charset.c (Qcircle): New variable.
2497         (to_char_code): Add `Qcircle'.
2498         (syms_of_mule_charset): Add new symbol `circle'.
2499
2500 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2501
2502         * mule-charset.c (Qfont): New variable.
2503         (to_char_code): Add `Qfont'.
2504         (syms_of_mule_charset): Add new symbol `font'.
2505
2506 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2507
2508         * mule-charset.c (Qsub): New variable.
2509         (to_char_code): Add `Qsub'.
2510         (syms_of_mule_charset): Add new symbol `sub'.
2511
2512 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2513
2514         * mule-charset.c (Fput_char_attribute): Convert each element of
2515         VALUE to GL position if ATTRIBUTE is a GR-set,
2516
2517 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2518
2519         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2520         coded-charset is a GR-set.
2521
2522 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2523
2524         * mule-charset.c (Fput_char_attribute): Check each element of
2525         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2526
2527 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2528
2529         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2530         UTF-2000.
2531         (Qethiopic_ucs): New variable in UTF-2000.
2532         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2533         (complex_vars_of_mule_charset): Add new coded-charset
2534         `ethiopic-ucs' in UTF-2000.
2535
2536         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2537         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2538         9)'.
2539         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2540         10)'.
2541         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2542
2543 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2544
2545         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2546         `ascii'.
2547
2548 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2549
2550         * mule-charset.c (Vcharacter_variant_table): New variable.
2551         (Q_ucs): New variable.
2552         (Fchar_variants): New function.
2553         (Fput_char_attribute): Register `->ucs' value to
2554         `Vcharacter_variant_table'.
2555         (syms_of_mule_charset): Add new function `char-variants' and new
2556         symbol `->ucs'.
2557         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2558
2559 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2560
2561         * mule-charset.c (get_char_code_table): Allow negative character
2562         code.
2563         (put_char_code_table): Likewise.
2564         (Vcharacter_composition_table): New variable.
2565         (Q_decomposition): New variable.
2566         (Qwide): New variable.
2567         (Qnarrow): New variable.
2568         (Qcompat): New variable.
2569         (QnoBreak): New variable.
2570         (Qsuper): New variable.
2571         (Qfraction): New variable.
2572         (to_char_code): New function.
2573         (Fget_composite_char): New function.
2574         (Fput_char_attribute): Register `->decomposition' value to
2575         `Vcharacter_composition_table'.
2576         (syms_of_mule_charset): Add new function `get-composite-char', new
2577         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2578         `super' and `fraction'.
2579         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2580
2581 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2582
2583         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2584         character; copy the return value.
2585
2586 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2587
2588         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2589
2590         * mule-charset.c (range_charset_code_point): Must use make_int.
2591         (split_builtin_char): New function.
2592
2593 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2594
2595         * mule-charset.c (char_byte_table): Change name from
2596         "char-code-table" to "char-byte-table".
2597         (mark_char_code_table): New function.
2598         (char_code_table_equal): New function.
2599         (char_code_table_hash): New function.
2600         (char_code_table_description): New constant.
2601         (char_code_table): New type.
2602         (make_char_code_table): New function.
2603         (copy_char_code_table): New function.
2604         (get_char_code_table): Modify for `char_code_table' type.
2605         (put_char_code_table): Likewise.
2606         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2607         (Kashiwara).
2608
2609         * char-ucs.h (char_code_table): New type.
2610         (XCHAR_CODE_TABLE): New macro.
2611         (XSETCHAR_CODE_TABLE): New macro.
2612         (CHAR_CODE_TABLE_P): New macro.
2613         (GC_CHAR_CODE_TABLE_P): New macro.
2614         (struct Lisp_Char_Code_Table): New structure.
2615
2616 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2617
2618         * mule-charset.c (Fmake_charset): Setup byte_offset for
2619         {94|96}^n-set.
2620
2621 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2622
2623         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2624         character.
2625
2626 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2627
2628         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2629         is found.
2630
2631 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2632
2633         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2634         charset, it is regarded as a charset.
2635         (put_char_attribute): New function in UTF-2000.
2636         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2637         charset, mapping-table of the charset is modified.
2638         (Fdefine_char): New function in UTF-2000.
2639         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2640         `Fput_char_attribute'.
2641         (syms_of_mule_charset): Add new function `define-char' and new
2642         symbol `ucs' in UTF-2000.
2643         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2644
2645 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2646
2647         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2648         non-UTF-2000 configuration.
2649
2650 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2651
2652         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2653         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2654
2655         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2656         deleted.
2657         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2658         (Fset_charset_mapping_table): Likewise.
2659
2660         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2661         (CHARSET_ENCODING_TABLE): Delete.
2662         (XCHARSET_ENCODING_TABLE): Delete.
2663         (charset_code_point): New interface.
2664
2665 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2666
2667         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2668         instead of `charset_get_byte1' and `charset_get_byte2'.
2669
2670         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2671         (charset_get_byte2): Deleted.
2672
2673 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2674
2675         * char-ucs.h (SPLIT_CHAR): New inline function.
2676         (breakup_char_1): Use `SPLIT_CHAR'.
2677
2678         * mule-charset.c (range_charset_code_point): New function.
2679         (charset_code_point): New function.
2680
2681         * char-ucs.h (range_charset_code_point): New interface.
2682         (breakup_char_1): Use `range_charset_code_point'.
2683
2684 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2685
2686         * mule-charset.c (Fmake_charset): Delete unused local variable
2687         `code_offset'.
2688
2689         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2690         (breakup_char_1): Find a charset and code-point in
2691         `Vcharacter_attribute_table'.
2692
2693 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2694
2695         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2696         to 0.10 (Yao).
2697
2698 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2699
2700         * mule-charset.c (Vcharacter_attribute_table): New variable.
2701         (Fchar_attribute_alist): New function.
2702         (Fget_char_attribute): New function.
2703         (Fput_char_attribute): New function.
2704         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2705         too.
2706         (syms_of_mule_charset): Add new function `char-attribute-alist',
2707         `get-char-attribute' and `put-char-attribute'.
2708         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2709
2710 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2711
2712         * mule-charset.c (Fmake_charset): Just use
2713         `get_unallocated_leading_byte'.
2714
2715         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2716         sets; don't use final-byte based number for private sets.
2717
2718 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2719
2720         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2721         integer.
2722
2723 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2724
2725         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2726         to 0.9.
2727
2728 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2729
2730         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2731         of `CHAR_LEADING_BYTE' in UTF-2000.
2732
2733         * insdel.c (find_charsets_in_bufbyte_string): Use
2734         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2735         (find_charsets_in_emchar_string): Likewise.
2736
2737         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2738         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2739
2740         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2741         (CHAR_CHARSET_ID): New macro.
2742
2743 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2744
2745         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2746         charset-id - MIN_LEADING_BYTE.
2747         (put_char_table): Likewise.
2748
2749 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2750
2751         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2752         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2753         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2754         (CHARSET_ID_OFFSET): New macro.
2755         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2756         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2757         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2758         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2759         4).
2760         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2761         5).
2762         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2763         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2764         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2765         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2766         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2767
2768 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2769
2770         * mule-charset.c (next_allocated_leading_byte): New variable in
2771         UTF-2000.
2772         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2773         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2774         (get_unallocated_leading_byte): Simply use
2775         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2776         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2777         UTF-2000.
2778
2779         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2780         (MAX_LEADING_BYTE_PRIVATE): New macro.
2781         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2782         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2783
2784 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2785
2786         * mule-charset.c (Fmake_charset): Allocate final-byte based
2787         charset-id for 94-set, 96-set and 94x94-set.
2788
2789 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2790
2791         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2792         ambiguous `else'.
2793         (Fmake_charset): Likewise.
2794         (complex_vars_of_mule_charset): Modify the font registry of
2795         `ucs-bmp' not to match `Ethiopic-Unicode'.
2796
2797 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2798
2799         * mule-charset.c (complex_vars_of_mule_charset): Add font
2800         registory of `ucs-bmp'.
2801
2802 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2803
2804         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2805         coded-charsets in `default-coded-charset-priority-list' when
2806         breaking up a character.
2807
2808         * mule-charset.c (Vcharset_latin_viscii): New variable.
2809         (Qlatin_viscii): New variable.
2810         (make_charset): Don't use `decoding_table'.
2811         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2812         byte_offset.
2813         (Fset_charset_mapping_table): New implementation.
2814         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2815         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2816         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2817         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2818         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2819         charset `latin_viscii'.
2820
2821         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2822         (CHARSET_TYPE_94X94): Change to 1 from 2.
2823         (CHARSET_TYPE_96): Change to 2 from 1.
2824         (CHARSET_TYPE_128): New macro.
2825         (CHARSET_TYPE_128X128): Change to 5 from 4.
2826         (CHARSET_TYPE_256): New macro.
2827         (CHARSET_TYPE_256X256): Change to 7 from 5.
2828         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2829
2830 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2831
2832         * text-coding.c (char_encode_shift_jis): Refer
2833         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2834         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2835
2836         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2837         (char_byte_table_equal): New function in UTF-2000.
2838         (char_byte_table_hash): New function in UTF-2000.
2839         (char_byte_table_description): New constant in UTF-2000.
2840         (char_byte_table): New type in UTF-2000.
2841         (make_char_byte_table): New function in UTF-2000.
2842         (copy_char_byte_table): New function in UTF-2000.
2843         (make_char_code_table): New macro in UTF-2000.
2844         (get_char_code_table): New function in UTF-2000.
2845         (put_char_code_table): New function in UTF-2000.
2846         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2847         (charset_description): Add setting in UTF-2000.
2848         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2849         `CHARSET_TO_BYTE1_TABLE(cs)'.
2850         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2851         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2852         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2853         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2854         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2855         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2856         `CHARSET_TO_BYTE2_TABLE(cs)'.
2857
2858         * char-ucs.h (char_byte_table): New type.
2859         (XCHAR_BYTE_TABLE): New macro.
2860         (XSETCHAR_BYTE_TABLE): New macro.
2861         (CHAR_BYTE_TABLE_P): New macro.
2862         (GC_CHAR_BYTE_TABLE_P): New macro.
2863         (struct Lisp_Char_Byte_Table): New structure.
2864         (get_char_code_table): New interface.
2865         (Emchar_to_byte_table): Deleted.
2866         (get_byte_from_character_table): Deleted.
2867         (struct Lisp_Charset): Add `encoding_table'; delete
2868         `to_byte1_table' and `to_byte2_table'.
2869         (CHARSET_ENCODING_TABLE): New macro.
2870         (CHARSET_TO_BYTE1_TABLE): Deleted.
2871         (CHARSET_TO_BYTE2_TABLE): Deleted.
2872         (XCHARSET_ENCODING_TABLE): New macro.
2873         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2874         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2875
2876 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2877
2878         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2879         `vietnamese-viscii-*'.
2880
2881 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2882
2883         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2884         (Qvietnamese_viscii_upper): New variable.
2885         (Fdefine_charset_alias): New function.
2886         (syms_of_mule_charset): Add new function `define-charset-alias'.
2887         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2888         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2889         `latin-viscii-*'.
2890
2891 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2892
2893         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2894         (MAX_CHAR_OBS_94x94): New macro.
2895         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2896         for 94x94 sets.
2897
2898         * mule-charset.c (put_byte_from_character_table): Change unit size
2899         from 128 to 256.
2900         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2901         not defined.
2902         (Fmake_reverse_direction_charset): Modify dummy argument of
2903         `make_charset' for non-UTF-2000 environment.
2904
2905 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2906
2907         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2908
2909         * mule-charset.c (destroy_byte_from_character_table): New macro.
2910         (latin_jisx0201_to_ucs): Deleted.
2911         (latin_iso8859_2_to_ucs): Deleted.
2912         (latin_iso8859_3_to_ucs): Deleted.
2913         (latin_iso8859_4_to_ucs): Deleted.
2914         (latin_iso8859_9_to_ucs): Deleted.
2915         (latin_viscii_lower_to_ucs): Deleted.
2916         (latin_viscii_upper_to_ucs): Deleted.
2917         (mark_charset): Mark `cs->decoding_table'.
2918         (Fcharset_mapping_table): Fix DOC-string.
2919         (Fset_charset_mapping_table): New function.
2920         (syms_of_mule_charset): Add nwe function
2921         `set-charset-mapping-table'.
2922         (complex_vars_of_mule_charset): Don't setup and use
2923         `latin_*_to_ucs'.
2924
2925 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2926
2927         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2928         charset.
2929
2930 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2931
2932         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2933         (Vcharset_katakana_jisx0208): New variable.
2934         (Qhiragana_jisx0208): New variable.
2935         (Qkatakana_jisx0208): New variable.
2936         (make_charset): Add new argument `byte_offset'.
2937         (charset_get_byte1): Modify for new coded-charset definition; use
2938         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2939         `XCHARSET_BYTE_OFFSET'.
2940         (Fmake_charset): Modify for `make_charset'.
2941         (Fmake_reverse_direction_charset): Likewise.
2942         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2943         `katakana-jisx0208'.
2944         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2945         `.'  in font registry of charset `katakana-jisx0201',
2946         `latin-jisx0201', `vietnamese-viscii-lower' and
2947         `vietnamese-viscii-upper'; modify DOC-string of charset
2948         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2949         registry of charset `japanese-jisx0208' not to use font for JIS
2950         X0208:1990; add new charset `hiragana-jisx0208' and
2951         `katakana-jisx0208'.
2952
2953         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2954         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2955         (struct Lisp_Charset): Add `byte_offset'.
2956         (CHARSET_BYTE_OFFSET): New macro.
2957         (XCHARSET_UCS_MIN): New macro.
2958         (XCHARSET_UCS_MAX): New macro.
2959         (XCHARSET_CODE_OFFSET): New macro.
2960         (XCHARSET_BYTE_OFFSET): New macro.
2961         (MIN_CHAR_HIRAGANA): New macro.
2962         (MAX_CHAR_HIRAGANA): New macro.
2963         (MIN_CHAR_KATAKANA): New macro.
2964         (MAX_CHAR_KATAKANA): New macro.
2965         (MAKE_CHAR): Modify for new coded-charset definition; use
2966         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2967         `XCHARSET_BYTE_OFFSET'.
2968
2969 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2970
2971         * mule-charset.c (CHAR96): Deleted.
2972         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2973         <Lisp_Object>.
2974         (latin_iso8859_2_to_ucs): Likewise.
2975         (latin_iso8859_3_to_ucs): Likewise.
2976         (latin_iso8859_4_to_ucs): Likewise.
2977         (latin_iso8859_9_to_ucs): Likewise.
2978         (latin_viscii_lower_to_ucs): Likewise.
2979         (latin_viscii_upper_to_ucs): Likewise.
2980         (latin_tcvn5712_to_ucs): Commented out.
2981         (make_charset): Change type of argument `decoding_table' from
2982         <Emchar*> to <Lisp_Object> [vector of characters].
2983         (Fmake_charset): Modify for `make_charset'.
2984         (Fmake_reverse_direction_charset): Likewise.
2985         (Fcharset_mapping_table): New function in UTF-2000.
2986         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2987         UTF-2000.
2988         (complex_vars_of_mule_charset): Modify for type change of
2989         `*_to_ucs'; modify for `make_charset'.
2990
2991         * char-ucs.h (struct Lisp_Charset): Change type of
2992         `decoding_table' from <Emchar*> to <Lisp_Object>.
2993         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2994
2995 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2996
2997         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2998         error with non-UTF-2000-Mule.
2999
3000 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3001
3002         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3003         in lisp again].
3004         (Vcharset_chinese_cns11643_4): Likewise.
3005         (Vcharset_chinese_cns11643_5): Likewise.
3006         (Vcharset_chinese_cns11643_6): Likewise.
3007         (Vcharset_chinese_cns11643_7): Likewise.
3008         (Qchinese_cns11643_3): Likewise.
3009         (Qchinese_cns11643_4): Likewise.
3010         (Qchinese_cns11643_5): Likewise.
3011         (Qchinese_cns11643_6): Likewise.
3012         (Qchinese_cns11643_7): Likewise.
3013         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3014         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3015         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3016         (complex_vars_of_mule_charset): Likewise.
3017
3018 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3019
3020         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3021         96-set.
3022         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3023         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3024
3025 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3026
3027         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3028         0xFF60.
3029         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3030         (breakup_char_1): Likewise.
3031
3032         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3033         one of them includes the specified character.
3034
3035 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3036
3037         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3038
3039 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3040
3041         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3042
3043 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3044
3045         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3046         definition for non-UTF-2000 Mule.
3047         (latin_iso8859_3_to_ucs): Likewise.
3048         (latin_iso8859_4_to_ucs): Likewise.
3049         (latin_iso8859_9_to_ucs): Likewise.
3050         (latin_jisx0201_to_ucs): Likewise.
3051         (MIN_CHAR_THAI): Likewise.
3052         (MAX_CHAR_THAI): Likewise.
3053         (MIN_CHAR_GREEK): Likewise.
3054         (MAX_CHAR_GREEK): Likewise.
3055         (MIN_CHAR_HEBREW): Likewise.
3056         (MAX_CHAR_HEBREW): Likewise.
3057         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3058         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3059         (MIN_CHAR_CYRILLIC): Likewise.
3060         (MAX_CHAR_CYRILLIC): Likewise.
3061
3062 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3063
3064         * char-ucs.h (breakup_char_1): Use
3065         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3066         thai-tis620 and katakana-jisx0201 area.
3067
3068 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3069
3070         * char-ucs.h (breakup_char_1): Use
3071         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3072         area.
3073
3074         * text-coding.c (reset_encoding_stream): Fixed.
3075         (char_encode_ucs4): Delete `& 255'.
3076
3077         * char-ucs.h (breakup_char_1): Use
3078         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3079
3080 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3081
3082         * file-coding.c (Fmake_coding_system): Don't set up
3083         `codesys->fixed.size'.
3084         (encode_coding_no_conversion): Don't refer
3085         `str->codesys->fixed.size'.
3086
3087 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3088
3089         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3090         (latin_a_char_to_byte1): Deleted.
3091         (latin_a_char_to_byte2): Deleted.
3092
3093 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3094
3095         * mule-charset.c (make_charset): Add new argument `ucs_min',
3096         `ucs_max' and `code_offset'.
3097         (charset_get_byte1): New implementation [delete specific charset
3098         depended implementations].
3099         (Fmake_charset): Modify for `make_charset'.
3100         (Fmake_reverse_direction_charset): Likewise.
3101         (complex_vars_of_mule_charset): Likewise.
3102
3103         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3104         `code_offset'.
3105         (CHARSET_UCS_MIN): New macro.
3106         (CHARSET_UCS_MAX): New macro.
3107         (CHARSET_CODE_OFFSET): New macro.
3108         (MAKE_CHAR): Delete charset depended definitions [except
3109         katakana-jisx0201].
3110
3111 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3112
3113         * char-ucs.h (breakup_char_1): Use
3114         `Vdefault_coded_charset_priority_list' for C0-Controls,
3115         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3116
3117 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3118
3119         * char-ucs.h (charset_get_byte1): New function.
3120         (XCHARSET_GET_BYTE1): Deleted.
3121         (charset_get_byte2): New function.
3122         (XCHARSET_GET_BYTE2): Deleted.
3123         (Vdefault_coded_charset_priority_list): New external variable.
3124         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3125         `Vdefault_preferred_coded_charset_list'.
3126
3127         * mule-charset.c (charset_get_byte1): New function.
3128         (charset_get_byte2): New function.
3129         (Vdefault_coded_charset_priority_list): New variable.
3130         (vars_of_mule_charset): Add new variable
3131         `default-coded-charset-priority-list'.
3132
3133 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3134
3135         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3136         (XCHARSET_GET_BYTE2): New inline function.
3137         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3138         `XCHARSET_GET_BYTE2'.
3139
3140 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3141
3142         * mule-charset.c (make_charset): Initialize
3143         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3144         NULL if table is not defined.
3145
3146 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3147
3148         * text-coding.c (char_encode_shift_jis): Use
3149         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3150         `ucs_to_latin_jisx0201'.
3151
3152         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3153         (ucs_to_latin_iso8859_2): Deleted.
3154         (ucs_to_latin_iso8859_3): Deleted.
3155         (ucs_to_latin_iso8859_4): Deleted.
3156         (ucs_to_latin_iso8859_9): Deleted.
3157         (ucs_to_latin_viscii_lower): Deleted.
3158         (ucs_to_latin_viscii_upper): Deleted.
3159         (ucs_to_latin_tcvn5712): Deleted.
3160         (make_charset): Add new argument `decoding_table'; set up
3161         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3162         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3163         `decoding_table' is defined in UTF-2000.
3164         (Fmake_charset): Modify for `make_charset'.
3165         (Fmake_reverse_direction_charset): Likewise.
3166         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3167         and `GENERATE_96_SET'.
3168
3169         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3170         (ucs_to_latin_jisx0201): Deleted.
3171         (latin_iso8859_2_to_ucs): Deleted.
3172         (ucs_to_latin_iso8859_2): Deleted.
3173         (latin_iso8859_3_to_ucs): Deleted.
3174         (ucs_to_latin_iso8859_3): Deleted.
3175         (latin_iso8859_4_to_ucs): Deleted.
3176         (ucs_to_latin_iso8859_4): Deleted.
3177         (latin_iso8859_9_to_ucs): Deleted.
3178         (ucs_to_latin_iso8859_9): Deleted.
3179         (latin_viscii_lower_to_ucs): Deleted.
3180         (ucs_to_latin_viscii_lower): Deleted.
3181         (latin_viscii_upper_to_ucs): Deleted.
3182         (ucs_to_latin_viscii_upper): Deleted.
3183         (struct Lisp_Charset): Renamed `encoding_table' to
3184         `to_byte1_table'; add `to_byte2_table'.
3185         (CHARSET_DECODING_TABLE): New macro.
3186         (CHARSET_TO_BYTE1_TABLE): New macro.
3187         (CHARSET_TO_BYTE2_TABLE): New macro.
3188         (XCHARSET_DECODING_TABLE): New macro.
3189         (XCHARSET_TO_BYTE1_TABLE): New macro.
3190         (XCHARSET_TO_BYTE2_TABLE): New macro.
3191         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3192         tables.
3193         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3194         don't use `ucs_to_*' tables.
3195
3196 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3197
3198         * text-coding.c (Fmake_coding_system): Don't set up
3199         `codesys->fixed.size'.
3200         (encode_coding_no_conversion): Use `if' instead of `switch'.
3201
3202         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3203
3204 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3205
3206         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3207         (Fmake_charset): Modify for `make_charset'.
3208         (Fmake_reverse_direction_charset): Likewise.
3209         (complex_vars_of_mule_charset): Likewise.
3210
3211 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3212
3213         * text-coding.c (char_encode_shift_jis): Use table
3214         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3215
3216 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3217
3218         * text-coding.c (text_encode_generic): Use `if' instead of
3219         `switch'.
3220         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3221         decode JIS-Latin.
3222
3223 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3224
3225         * text-coding.c (encode_coding_sjis): Deleted.
3226         (char_encode_shift_jis): New function.
3227         (char_finish_shift_jis): New function.
3228         (reset_encoding_stream): Set up `encode_char' and `finish' for
3229         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3230         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3231         (char_encode_utf8): Treat `eol_type'.
3232
3233 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3234
3235         * file-coding.c (decode_coding_iso2022): Use
3236         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3237
3238 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3239
3240         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3241         to 0.7 (Hirano).
3242
3243 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3244
3245         * char-lb.h (CHAR_COLUMNS): New macro.
3246
3247 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3248
3249         * text-coding.c (char_encode_ucs4): New function.
3250         (char_finish_ucs4): New function.
3251         (encode_coding_ucs4): Deleted.
3252         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3253         (text_encode_generic): Delete local variable `charset' and `half'.
3254         (ucs_to_mule_table): Deleted.
3255         (mule_to_ucs_table): Deleted.
3256         (Fset_ucs_char): Deleted.
3257         (ucs_to_char): Deleted.
3258         (Fucs_char): Deleted.
3259         (Fset_char_ucs): Deleted.
3260         (Fchar_ucs): Deleted.
3261         (decode_ucs4): Deleted.
3262         (mule_char_to_ucs4): Deleted.
3263         (encode_ucs4): Deleted.
3264         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3265         (decode_coding_utf8): Likewise.
3266         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3267         (char_encode_iso2022): Fixed.
3268         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3269         `Fset_char_ucs' and `Fchar_ucs'.
3270         (complex_vars_of_file_coding): Don't initialize
3271         `ucs_to_mule_table'.
3272
3273         * objects-tty.c (tty_initialize_font_instance): Don't use
3274         `XCHARSET_COLUMNS'.
3275
3276         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3277         UTF-2000.
3278
3279         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3280         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3281
3282         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3283         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3284         (emchar_string_displayed_columns): Likewise.
3285
3286         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3287         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3288         (string_column_at_point): Likewise.
3289         (Fmove_to_column): Likewise.
3290
3291         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3292         `encoding_table' and `decoding_table'.
3293         (CHARSET_REP_BYTES): Deleted.
3294         (XCHARSET_REP_BYTES): Deleted.
3295         (XCHARSET_COLUMNS): Deleted.
3296         (CHAR_COLUMNS): New macro.
3297         (lookup_composite_char): Deleted unconditionally.
3298         (composite_char_string): Likewise.
3299
3300 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3301
3302         * char-ucs.h (Emchar_to_byte_table): New type.
3303         (get_byte_from_character_table): New function interface.
3304         (Vcharset_latin_jisx0201): New variable.
3305         (latin_jisx0201_to_ucs): New variable.
3306         (ucs_to_latin_jisx0201): New variable.
3307         (Vcharset_latin_iso8859_2): New variable.
3308         (latin_iso8859_2_to_ucs): New variable.
3309         (ucs_to_latin_iso8859_2): New variable.
3310         (Vcharset_latin_iso8859_3): New variable.
3311         (latin_iso8859_3_to_ucs): New variable.
3312         (ucs_to_latin_iso8859_3): New variable.
3313         (Vcharset_latin_iso8859_4): New variable.
3314         (latin_iso8859_4_to_ucs): New variable.
3315         (ucs_to_latin_iso8859_4): New variable.
3316         (Vcharset_latin_iso8859_9): New variable.
3317         (latin_iso8859_9_to_ucs): New variable.
3318         (ucs_to_latin_iso8859_9): New variable.
3319         (Vcharset_latin_viscii_lower): New variable.
3320         (latin_viscii_lower_to_ucs): New variable.
3321         (ucs_to_latin_viscii_lower): New variable.
3322         (Vcharset_latin_viscii_upper): New variable.
3323         (latin_viscii_upper_to_ucs): New variable.
3324         (ucs_to_latin_viscii_upper): New variable.
3325         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3326         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3327         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3328         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3329         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3330         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3331         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3332         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3333         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3334         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3335
3336         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3337         (Vcharset_latin_viscii_upper): New variable.
3338         (make_byte_from_character_table): New function.
3339         (put_byte_from_character_table): New function.
3340         (get_byte_from_character_table): New function.
3341         (CHAR96): New macro.
3342         (ucs_to_latin_jisx0201): New variable.
3343         (latin_jisx0201_to_ucs): New variable.
3344         (ucs_to_latin_iso8859_2): New variable.
3345         (latin_iso8859_2_to_ucs): New variable.
3346         (ucs_to_latin_iso8859_3): New variable.
3347         (latin_iso8859_3_to_ucs): New variable.
3348         (ucs_to_latin_iso8859_4): New variable.
3349         (latin_iso8859_4_to_ucs): New variable.
3350         (ucs_to_latin_iso8859_9): New variable.
3351         (latin_iso8859_9_to_ucs): New variable.
3352         (ucs_to_latin_viscii_lower): New variable.
3353         (latin_viscii_lower_to_ucs): New variable.
3354         (ucs_to_latin_viscii_upper): New variable.
3355         (latin_viscii_upper_to_ucs): New variable.
3356         (ucs_to_latin_tcvn5712): New variable.
3357         (latin_tcvn5712_to_ucs): New variable.
3358         (Qlatin_viscii_lower): New variable.
3359         (Qlatin_viscii_upper): New variable.
3360         (syms_of_mule_charset): Set up new symbol
3361         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3362         (complex_vars_of_mule_charset): Set up new charset
3363         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3364         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3365         `ucs_to_<CHARSET>' tables.
3366
3367 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3368
3369         * text-coding.c: New file.
3370
3371 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3372
3373         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3374
3375         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3376         (MAKE_CHAR): Modify for `ucs-bmp'.
3377         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3378         non-MULE characters of BMP.
3379
3380 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3381
3382         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3383         to 0.6.
3384
3385 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3386
3387         * lstream.h:
3388         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3389         - Include character.h for `CHAR_ASCII_P'.
3390
3391         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3392
3393         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3394         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3395
3396         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3397         (BYTE_C0_P): Likewise.
3398         (BYTE_C1_P): Likewise.
3399         (Lstream_get_emchar_1): Likewise.
3400         (Lstream_fput_emchar): Likewise.
3401         (Lstream_funget_emchar): Likewise.
3402         (copy_internal_to_external): Likewise.
3403         (copy_external_to_internal): Likewise.
3404
3405         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3406         (BYTE_C0_P): Likewise.
3407         (BYTE_C1_P): Likewise.
3408         (Lstream_get_emchar_1): Likewise.
3409         (Lstream_fput_emchar): Likewise.
3410         (Lstream_funget_emchar): Likewise.
3411         (copy_internal_to_external): Likewise.
3412         (copy_external_to_internal): Likewise.
3413
3414         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3415         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3416
3417         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3418         (BYTE_ASCII_P): Moved to mb-1byte.h.
3419
3420 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3421
3422         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3423
3424         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3425         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3426         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3427         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3428         (VALIDATE_CHARPTR_FORWARD): Likewise.
3429         (simple_charptr_emchar): Moved to mb-multibyte.h.
3430         (simple_set_charptr_emchar): Likewise.
3431         (simple_charptr_copy_char): Likewise.
3432         (non_ascii_charptr_emchar): Likewise.
3433         (non_ascii_set_charptr_emchar): Likewise.
3434         (non_ascii_charptr_copy_char): Likewise.
3435         (charptr_emchar): Moved to mb-*byte.h.
3436         (set_charptr_emchar): Likewise.
3437         (charptr_copy_char): Likewise.
3438
3439         * mb-1byte.h, mb-multibyte.h: New files.
3440
3441 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3442
3443         * mb-utf-8.h (MULTIBYTE): New macro.
3444         (MAX_EMCHAR_LEN): Moved from buffer.h.
3445         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3446
3447         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3448
3449         * mb-lb.h, multibyte.h: New files.
3450
3451         * char-1byte.h (Charset_ID): Moved from buffer.h.
3452         (MIN_LEADING_BYTE): Likewise.
3453         (LEADING_BYTE_ASCII): Likewise.
3454         (NUM_LEADING_BYTES): Likewise.
3455         (CHARSETP): Likewise.
3456         (CHARSET_BY_LEADING_BYTE): Likewise.
3457         (XCHARSET_LEADING_BYTE): Likewise.
3458         (XCHARSET_GRAPHIC): Likewise.
3459         (XCHARSET_COLUMNS): Likewise.
3460         (XCHARSET_DIMENSION): Likewise.
3461         (CHAR_CHARSET): Likewise.
3462         (CHAR_LEADING_BYTE): Likewise.
3463         (BREAKUP_CHAR): Likewise.
3464         (Vcharset_ascii): Likewise.
3465
3466         * buffer.h: Include multibyte.h unconditionally.
3467         (VALID_CHARPTR_P): Moved to multibyte.h.
3468         (ASSERT_VALID_CHARPTR): Likewise.
3469         (REAL_INC_CHARPTR): Likewise.
3470         (REAL_INC_CHARBYTIND): Likewise.
3471         (REAL_DEC_CHARPTR): Likewise.
3472         (INC_CHARPTR): Likewise.
3473         (INC_CHARBYTIND): Likewise.
3474         (DEC_CHARPTR): Likewise.
3475         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3476         (VALIDATE_CHARPTR_FORWARD): Likewise.
3477         (charptr_n_addr): Likewise.
3478         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3479         (simple_charptr_emchar): Moved to multibyte.h.
3480         (simple_set_charptr_emchar): Likewise.
3481         (simple_charptr_copy_char): Likewise.
3482         (non_ascii_charptr_emchar): Likewise.
3483         (non_ascii_set_charptr_emchar): Likewise.
3484         (non_ascii_charptr_copy_char): Likewise.
3485         (charptr_emchar): Likewise.
3486         (set_charptr_emchar): Likewise.
3487         (charptr_copy_char): Likewise.
3488         (charptr_emchar_n): Likewise.
3489         (Charset_ID): Moved to char-1byte.h.
3490         (Vcharset_ascii): Likewise.
3491         (CHAR_CHARSET): Likewise.
3492         (CHAR_LEADING_BYTE): Likewise.
3493         (LEADING_BYTE_ASCII): Likewise.
3494         (NUM_LEADING_BYTES): Likewise.
3495         (MIN_LEADING_BYTE): Likewise.
3496         (CHARSETP): Likewise.
3497         (CHARSET_BY_LEADING_BYTE): Likewise.
3498         (XCHARSET_LEADING_BYTE): Likewise.
3499         (XCHARSET_GRAPHIC): Likewise.
3500         (XCHARSET_COLUMNS): Likewise.
3501         (XCHARSET_DIMENSION): Likewise.
3502         (BREAKUP_CHAR): Likewise.
3503
3504 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3505
3506         * character.h: Add document about interface for characters.
3507
3508         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3509         (MAKE_CHAR): Delete comment about
3510         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3511         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3512         (BREAKUP_CHAR): Modify name of arguments.
3513         (CHAR_CHARSET): Modify name of argument.
3514
3515         * buffer.h: Delete document about Emchar accessors.
3516
3517 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3518
3519         * character.h (CHAR_INTP): Moved from buffer.h
3520         (CHAR_OR_CHAR_INTP): Likewise.
3521         (XCHAR_OR_CHAR_INT): Likewise.
3522         (CHECK_CHAR_COERCE_INT): Likewise.
3523
3524         * buffer.h (CHAR_INTP): Moved to character.h
3525         (CHAR_OR_CHAR_INTP): Likewise.
3526         (XCHAR_OR_CHAR_INT): Likewise.
3527         (CHECK_CHAR_COERCE_INT): Likewise.
3528
3529 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3530
3531         * character.h:
3532         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3533         - Include char-1byte.h, char-lb.h or char-ucs.h.
3534
3535         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3536
3537         * buffer.h: Include character unconditionally.
3538         (valid_char_p): Moved to char-*.h.
3539         (non_ascii_valid_char_p): Moved to char-lb.h.
3540
3541         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3542
3543 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3544
3545         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3546         in UTF-2000 because it is not ported yet and not to use
3547         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3548         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3549         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3550
3551         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3552         (CHAR_ASCII_P): Moved from character.h.
3553
3554         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3555         (CHAR_ASCII_P): Likewise.
3556         (CHAR_FIELD1_MASK): Deleted.
3557         (CHAR_FIELD2_MASK): Deleted.
3558         (CHAR_FIELD3_MASK): Deleted.
3559         (MAX_CHAR_BASIC_LATIN): New macro.
3560         (CHAR_FIELD1): Deleted.
3561         (CHAR_FIELD2_INTERNAL): Deleted.
3562         (CHAR_FIELD3_INTERNAL): Deleted.
3563         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3564         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3565         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3566         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3567         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3568         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3569         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3570         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3571         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3572         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3573         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3574         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3575         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3576         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3577         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3578         (MIN_CHAR_COMPOSITION): Deleted.
3579         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3580         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3581
3582 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3583
3584         * buffer.h: Include mb-utf-8.h in UTF-2000.
3585
3586         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3587
3588         * mb-utf-8.h: New file.
3589
3590 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3591
3592         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3593         instead of `int'.
3594
3595         * mule-charset.h, buffer.h (Charset_ID): New type.
3596
3597 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3598
3599         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3600         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3601         instead of `MULE_CHAR_PRIVATE_OFFSET',
3602         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3603         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3604         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3605
3606         * character.h (Vcharset_japanese_jisx0212): New variable
3607         definition.
3608
3609 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3610
3611         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3612         (charset_by_attributes): Delete array about direction.
3613         (latin_a_char_to_charset): New variable in UTF-2000.
3614         (latin_a_char_to_byte1): New variable in UTF-2000.
3615         (latin_a_char_to_byte2): New variable in UTF-2000.
3616         (Qucs_bmp): New variable.
3617         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3618         `Bufbyte'.
3619         (next_allocated_2_byte_leading_byte): Likewise.
3620         (non_ascii_set_charptr_emchar): Likewise.
3621         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3622         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3623         `charset_by_attributes'.
3624         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3625         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3626         and `CHARSET_BY_LEADING_BYTE'.
3627         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3628         `utf-2000-version' to `vars_of_mule_charset'.
3629         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3630         define `leading-code-private-11' in UTF-2000; move setting of
3631         `utf-2000-version' from `syms_of_mule_charset'.
3632         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3633         UTF-2000.
3634
3635         * character.h (Charset_ID): New type.
3636         (LEADING_BYTE_UCS_BMP): New macro.
3637         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3638         (CHARSET_ID_OFFSET_94): New macro.
3639         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3640         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3641         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3642         final-byte.
3643         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3644         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3645         (CHARSET_ID_OFFSET_96): New macro.
3646         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3647         CHARSET_ID_OFFSET_96 and final-byte.
3648         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3649         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3650         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3651         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3652         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3653         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3654         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3655         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3656         (LEADING_BYTE_THAI_TIS620): Likewise.
3657         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3658         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3659         (CHARSET_ID_OFFSET_94x94): New macro.
3660         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3661         CHARSET_ID_OFFSET_94x94 and final-byte.
3662         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3663         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3664         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3665         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3666         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3667         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3668         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3669         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3670         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3671         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3672         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3673         (CHARSET_TYPE_128X128): New macro.
3674         (CHARSET_TYPE_256X256): New macro.
3675         (XCHARSET_PRIVATE_P): Delete unconditionally.
3676         (charset_by_attributes): Delete array about direction.
3677         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3678         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3679         (MIN_CHAR_94): New macro.
3680         (MAX_CHAR_94): New macro.
3681         (MIN_CHAR_96): New macro.
3682         (MAX_CHAR_96): New macro.
3683         (MIN_CHAR_94x94): New macro.
3684         (MAX_CHAR_94x94): New macro.
3685         (MIN_CHAR_96x96): New macro.
3686         (MAX_CHAR_96x96): New macro.
3687         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3688         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3689         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3690         - 32)'.
3691         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3692         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3693         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3694         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3695         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3696         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3697         `XCHARSET_LEADING_BYTE' to make code-point.
3698         (latin_a_char_to_charset): New variable.
3699         (latin_a_char_to_byte1): New variable.
3700         (latin_a_char_to_byte2): New variable.
3701         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3702         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3703         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3704
3705         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3706         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3707         (find_charsets_in_emchar_string): Likewise.
3708         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3709
3710         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3711         `int'.
3712         (decode_coding_iso2022): Likewise.
3713
3714         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3715         of `unsigned char'.
3716
3717         * redisplay.c (redisplay_text_width_emchar_string): Use
3718         `Charset_ID' instead of `unsigned char'.
3719         (redisplay_frame_text_width_string): Likewise.
3720
3721         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3722         `unsigned char'.
3723
3724         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3725         instead of `unsigned char'.
3726         (face_cachel_charset_font_metric_info): Likewise.
3727
3728         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3729         (get_non_ascii_char_table_value): Likewise.
3730         (get_char_table): Likewise.
3731         (put_char_table): Likewise.
3732         (map_over_other_charset): Likewise.
3733         (map_char_table): Likewise.
3734
3735         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3736         instead of `unsigned char'.
3737
3738 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3739
3740         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3741         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3742
3743         * mule-charset.c (leading_code_private_11): Don't define in
3744         UTF-2000.
3745
3746         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3747         in UTF-2000 because it is not ported yet and not to use
3748         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3749
3750 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3751
3752         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3753
3754 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3755
3756         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3757         in UTF-2000.
3758
3759         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3760         of unsigned char to store leading-byte.
3761
3762         * chartab.c (get_non_ascii_char_table_value): Don't use
3763         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3764
3765         * file-coding.c (encode_coding_big5): Delete bogus implementation
3766         in UTF2000.
3767
3768         * character.h (LEADING_BYTE_*): Delete definition for
3769         non-UTF-2000.
3770         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3771         (LEADING_BYTE_PREFIX_P): Deleted.
3772         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3773         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3774         (BUFBYTE_LEADING_BYTE_P): Deleted.
3775         (CHARSET_PRIVATE_P): Deleted unconditionally.
3776         (rep_bytes_by_first_byte): Deleted unconditionally.
3777         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3778         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3779         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3780         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3781         (CHAR_FIELD2): Deleted.
3782         (CHAR_FIELD3): Deleted.
3783         (MAKE_CHAR): Delete definition for non-UTF-2000.
3784         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3785         (breakup_char_1): New implementation.
3786         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3787         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3788
3789 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3790
3791         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3792         condition.
3793
3794 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3795
3796         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3797         (CHARSET_PRIVATE_P): Likewise.
3798         (XCHARSET_PRIVATE_P): Likewise.
3799         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3800
3801         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3802         UTF2000.
3803         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3804
3805 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3806
3807         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3808         (NUM_LEADING_BYTES): Changed from 128 to 256.
3809         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3810         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3811         UTF2000.
3812         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3813
3814         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3815         UTF2000.
3816         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3817         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3818         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3819         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3820         (Qchinese_cns11643_3): New variable in UTF2000.
3821         (Qchinese_cns11643_4): New variable in UTF2000.
3822         (Qchinese_cns11643_5): New variable in UTF2000.
3823         (Qchinese_cns11643_6): New variable in UTF2000.
3824         (Qchinese_cns11643_7): New variable in UTF2000.
3825         (syms_of_mule_charset): Define `chinese-cns11643-3',
3826         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3827         and `chinese-cns11643-7' in UTF2000.
3828         (vars_of_mule_charset): Initialize
3829         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3830         + 1 in UTF2000.
3831         (complex_vars_of_mule_charset): Setup charset
3832         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3833         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3834
3835 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3836
3837         * mule-charset.c: Move setting for `leading-code-private-11' from
3838         `syms_of_mule_charset' to `vars_of_mule_charset'.
3839
3840 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3841
3842         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3843         and `NUM_LEADING_BYTES' in assert.
3844
3845 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3846
3847         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3848         instead of 128.
3849         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3850         `NUM_LEADING_BYTES' instead of 128.
3851
3852 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3853
3854         * mule-charset.h (charset_by_leading_byte): Use
3855         `NUM_LEADING_BYTES' instead of 128.
3856         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3857
3858         * mule-charset.c (charset_by_leading_byte): Use
3859         `NUM_LEADING_BYTES' instead of 128.
3860         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3861
3862         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3863         128.
3864
3865 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3866
3867         * mule-charset.c (syms_of_mule_charset): Update to
3868         0.4 (Shin-Imamiya).
3869
3870 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3871
3872         * file-coding.c (encode_coding_sjis): New implementation for
3873         UTF2000.  (decode_coding_sjis): Ditto.
3874
3875 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3876
3877         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3878         Don't define in UTF2000.
3879
3880         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3881         defined.
3882
3883         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3884         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3885         MULE.
3886
3887 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3888
3889         * config.h.in (CHAR_IS_UCS4): New macro.
3890
3891         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3892         conventional MULE representation.
3893         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3894
3895         * mule-charset.h: Reverted to original.
3896
3897         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3898         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3899         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3900
3901         * character.h: New file.
3902
3903         * file-coding.c (Fmake_coding_system): Set 1 to
3904         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3905         defined.
3906         (encode_coding_no_conversion): New implementation for UTF2000.
3907
3908         * file-coding.h (struct Lisp_Coding_System): Add new member
3909         `fixed.size'.
3910
3911 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3912
3913         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3914         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3915         (encode_coding_iso2022): New implementation for UTF2000.
3916
3917 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3918
3919         * mule-canna.c (c2mu): New implementation for UTF2000.
3920         (m2c): Likewise.
3921
3922 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3923
3924         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3925
3926 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3927
3928         * file-coding.c (reset_encoding_stream): Set 0 to
3929         `str->iso2022.current_char_boundary' in UTF2000.
3930         (encode_utf8): Don't define in UTF2000.
3931         (encode_coding_utf8): New implementation for UTF-8 representation
3932         of UTF2000.
3933         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3934
3935 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3936
3937         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3938
3939         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3940         UTF2000.
3941         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3942
3943         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3944
3945         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3946         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3947         as UTF-8 in UTF2000.
3948         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3949         (non_ascii_valid_char_p): Don't define in UTF2000.
3950         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3951         (Lstream_get_emchar_1): Likewise.
3952         (utf-2000-version): New variable in UTF2000.
3953
3954         * lread.c (read_escape): Add new reader `u'.
3955
3956         * insdel.c (three_to_one_table): Don't define in UTF2000.
3957         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3958         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3959         UTF2000.
3960         (bytind_to_bufpos_func): Likewise.
3961         (buffer_mule_signal_inserted_region): Likewise.
3962         (vars_of_insdel): Don't initialize `three_to_one_table'.
3963         (init_buffer_text): Use `buf->text->mule_size' instead of
3964         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3965         UTF2000.
3966
3967         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3968         UTF-8 representation in UTF2000.
3969         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3970         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3971         (decode_coding_iso2022): Don't define local variable `lb' in
3972         UTF2000; don't use LEADING_BYTE in UTF2000; use
3973         `DECODE_ADD_UCS_CHAR' in UTF2000.
3974         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3975
3976         * config.h.in (UTF2000): New macro.
3977
3978         * buffer.h (struct buffer_text): Add new member `mule_size' and
3979         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3980         (valid_char_p): Return always 1 in UTF2000.
3981         (MAX_EMCHAR_LEN): 6 in UTF2000.
3982         (three_to_one_table): Don't define in UTF2000.
3983         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3984         UTF2000.
3985         (real_bytind_to_bufpos): Likewise.
3986
3987         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3988
3989 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3990
3991         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3992         representation change.
3993         (Vutf_2000_version): New variable.
3994         (leading_code_private_11): New variable.
3995         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3996         `leading-code-private-11'.
3997
3998         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3999         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4000         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4001         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4002         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4003         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4004         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4005         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4006         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4007         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4008         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4009         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4010         (MIN_CHAR_GREEK): New macro.
4011         (MAX_CHAR_GREEK): New macro.
4012         (MIN_CHAR_CYRILLIC): New macro.
4013         (MAX_CHAR_CYRILLIC): New macro.
4014         (MIN_CHAR_HEBREW): New macro.
4015         (MAX_CHAR_HEBREW): New macro.
4016         (MIN_CHAR_THAI): New macro.
4017         (MAX_CHAR_THAI): New macro.
4018         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4019         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4020         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4021         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4022         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4023         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4024         (CHAR_FIELD2): New inline function.
4025         (CHAR_FIELD3): New inline function.
4026         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4027         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4028         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4029         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4030         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4031         (MIN_CHAR_COMPOSITION): Likewise.
4032         (CHAR_LEADING_BYTE): Modified for character representation change.
4033         (MAKE_CHAR): Likewise.
4034
4035         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4036         (Vcharset_greek_iso8859_7): Likewise.
4037         (Vcharset_cyrillic_iso8859_5): Likewise.
4038         (Vcharset_hebrew_iso8859_8): Likewise.
4039         (Vcharset_thai_tis620): Likewise.
4040         (Vcharset_katakana_jisx0201): Likewise.
4041
4042 2001-02-08  Martin Buchholz <martin@xemacs.org>
4043
4044         * XEmacs 21.2.44 "Thalia" is released.
4045
4046 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4047
4048         Fixes crashes in kill-emacs on some systems.
4049         * process-unix.c (unix_kill_child_process):
4050         It's OK for kill() to fail with ESRCH.
4051
4052 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4053
4054         Contortions to make .gdbinit tricks work on most systems.
4055         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4056         * alloc.c (dbg_valmask): Make non-const.
4057         * alloc.c (dbg_typemask): Make non-const.
4058         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4059         * alloc.c (dbg_valbits): Make non-const.
4060         * alloc.c (dbg_gctypebits): Make non-const.
4061         * .gdbinit (decode_object): Make it work with AIX cc.
4062
4063 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4064
4065         * elhash.c (make_general_lisp_hash_table):
4066         Use simpler and more efficient calloc to clear entries.
4067
4068 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4069
4070         * window.c (window_scroll): Work around an AIX C compiler bug.
4071         Fixes 'scroll-up' does nothing problem with xlC.
4072
4073 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4074
4075         * .gdbinit: Remove obsolete comment.
4076
4077 2001-01-31  Mike Alexander  <mta@arbortext.com>
4078
4079         * select.c (Fown_selection_internal): Set owned_p for device
4080         method correctly.
4081
4082 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4083
4084         Port to g++ 2.97.
4085         "not" cannot be used as a macro name as it is an operator in C++
4086         * config.h.in: Stop #defining `not'.
4087         * chartab.c (check_category_char): not ==> not_p
4088         * chartab.h: Likewise.
4089         * regex.c (re_match_2_internal): Likewise.
4090
4091 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4092
4093         * lisp-disunion.h: Fix up comments.
4094
4095 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4096
4097         * keymap.c (define_key_check_and_coerce_keysym):
4098         (syms_of_keymap):
4099         Support mouse-6 and mouse-7 bindings in the obvious way.
4100
4101 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4102
4103         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4104
4105 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4106
4107         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4108         Previous patch missed DEFVAR_INT_MAGIC.
4109         Make sure future DEFVAR_foo use correct types.
4110         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4111         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4112         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4113         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4114         * (DEFVAR_INT): Likewise.
4115         * redisplay.c (vertical_clip): Should be of type Fixnum.
4116         * redisplay.c (horizontal_clip): Likewise.
4117         * lisp.h (dump_add_opaque_int): New.
4118         (dump_add_opaque_fixnum): New.
4119
4120 2001-01-29  Andy Piper  <andy@xemacs.org>
4121
4122         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4123         since they can be eval'ed
4124
4125 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4126
4127         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4128         Oops, XEmacs redefines `class'.  Use `typename' instead.
4129
4130 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4131
4132         * dumper.c: Fix C++ compile errors.
4133
4134 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4135
4136         * tparam.c: Use correct prototypes.
4137
4138 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4139
4140         * sysproc.h: #include util.h for NetBSD's openpty.
4141
4142 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4143
4144         More 64-bit correctness.
4145         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4146         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4147         Fix up comments.
4148         This finally finishes the 64-bit SGI port.
4149         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4150         * symbols.c: Fix up comments and type casts.
4151         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4152         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4153         * symeval.h (Fixnum): New type.
4154         * symeval.h (symbol_value_type): Fix up comment.
4155
4156         * commands.h:
4157         * nt.c:
4158         * emacs.c:
4159         * data.c:
4160         * redisplay.c:
4161         * abbrev.c:
4162         * dired-msw.c:
4163         * event-Xt.c:
4164         * eldap.c:
4165         * window.c:
4166         * sound.c:
4167         * event-stream.c:
4168         * eval.c:
4169         * buffer.c:
4170         * mule-canna.c: A million DEFVAR_INTs here...
4171         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4172         * extents.c:
4173         * cmdloop.c:
4174         * lisp.h:
4175         * select-x.c:
4176         * console-x.h:
4177         * event-msw.c:
4178         * mule-wnnfns.c:
4179         * hpplay.c:
4180         * ralloc.c:
4181         * alloc.c:
4182         * keymap.c:
4183         * profile.c:
4184         s/int/Fixnum/g in DEFVAR_INT declarations.
4185
4186 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4187
4188         Port pdump to SGI alignment-sensitive environment.
4189         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4190         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4191         properly aligned.
4192         Define and use aligned reading and writing macros.
4193         Use buffered stdio instead of posix i/o for faster dumping.
4194         Eliminate kludgy 256 byte space for header.
4195         Read and write from dump file using structs for alignment safety.
4196         * dumper.c (pdump_align_stream): New.
4197         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4198         * dumper.c (PDUMP_READ_ALIGNED): New.
4199         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4200         * dumper.c (pdump_static_Lisp_Object): New struct.
4201         * dumper.c (pdump_static_pointer): New struct.
4202         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4203         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4204         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4205         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4206
4207         * dumper.c (pdump_backtrace):
4208         * dumper.c (pdump_get_indirect_count):
4209         * dumper.c (pdump_register_object):
4210         * dumper.c (pdump_register_struct):
4211         * dumper.c (pdump_reloc_one):
4212         * dumper.c (pdump_scan_by_alignment):
4213         * dumper.c (pdump_dump_from_root_struct_ptrs):
4214         * dumper.c (pdump_dump_opaques):
4215         * dumper.c (pdump_dump_rtables):
4216         * dumper.c (pdump_dump_from_root_objects):
4217         * dumper.c (pdump):
4218         * dumper.c (pdump_load_finish):
4219         Use aligned reading and writing.
4220
4221         * dumper.c (pdump_free): Make static.
4222         * dumper.c (pdump_hFile): Likewise.
4223         * dumper.c (pdump_hMap): Likewise.
4224
4225 2001-01-26  Martin Buchholz <martin@xemacs.org>
4226
4227         * XEmacs 21.2.43 "Terspichore" is released.
4228
4229 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4230
4231         Type fiddling for window_config.saved_windows_count
4232         * window.c (struct window_config): 
4233         Make saved_windows_count member unsigned.
4234         * window.c (sizeof_window_config_for_n_windows): 
4235         Make parameter unsigned.
4236         * window.c (mark_window_config):
4237         * window.c (window_config_equal):
4238         * window.c (free_window_configuration):
4239         * window.c (Fset_window_configuration):
4240         * window.c (count_windows):
4241         * window.c (Fcurrent_window_configuration):
4242         * window.c (reinit_vars_of_window):
4243         Update all callers and users.
4244
4245 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4246
4247         Alignment correctness for flexible arrays.
4248         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4249         Make alignment-correct. Add interesting comments.
4250         * alloc.c (size_vector):
4251         * alloc.c (make_vector_internal):
4252         * alloc.c (make_bit_vector_internal):
4253         * alloc.c (sweep_bit_vectors_1):
4254         * fns.c (size_bit_vector):
4255         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4256         * window.c (sizeof_window_config_for_n_windows): 
4257         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4258
4259 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4260
4261         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4262
4263 2001-01-23  Andy Piper  <andy@xemacs.org>
4264
4265         * select.c (Fown_selection_internal): pass owned_p
4266
4267         * select-msw.c (mswindows_own_selection): New Signature.
4268
4269         * console.h (struct console_methods): add owned_p to
4270         _own_selection.
4271
4272         * select-x.c (x_own_selection): pass owned_p
4273         (hack_motif_clipboard_selection): use owned_p
4274         (vars_of_select_x): new variable -
4275         x_selection_strict_motif_ownership.
4276
4277 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4278
4279         * specifier.h (specifier_data_offset): Remove pointless parens.
4280         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4281
4282 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4283
4284         Make Lisp_Object sizeof methods be alignment-correct.
4285         pdump must restore objects to the same alignment as the C compiler
4286         assumes.  It really matters on SGIs.
4287         * lstream.c (aligned_sizeof_lstream): New.
4288         (sizeof_lstream): Use aligned_sizeof_lstream.
4289         (Lstream_new): Likewise.
4290         * opaque.c (aligned_sizeof_opaque): New.
4291         (sizeof_opaque): Use aligned_sizeof_opaque.
4292         (make_opaque): Likewise.
4293         * specifier.c (aligned_sizeof_specifier): New.
4294         (sizeof_specifier): Use aligned_sizeof_specifier.
4295         (make_specifier_internal): Likewise.
4296
4297 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4298
4299         * lstream.h (struct lstream): Use max_align_t for trailing data.
4300         * specifier.h (struct Lisp_Specifier): Likewise.
4301
4302 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4303
4304         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4305         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4306         (CCL_SUSPEND): Likewise.
4307         (CCL_INVALID_CMD): Likewise.
4308         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4309         (ccl_driver): Likewise.
4310         (CCL_WRITE_CHAR): Macro hygiene.
4311         (CCL_WRITE_STRING): Macro hygiene.
4312
4313 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4314
4315         Port "portable" dumper to SunOS 4 and HP-UX.
4316         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4317         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4318         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4319
4320 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4321
4322         * lisp.h (ALIGNOF): A better definition for C++.
4323
4324 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4325
4326         Macro hygiene.
4327         Fix printf warnings: int format, long int arg.
4328         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4329         (PUSH_FAILURE_POINT): Use correct printf formats.
4330         (POP_FAILURE_POINT): Use correct printf formats.  
4331         Use do {...} while (0)
4332
4333 2001-01-20  Martin Buchholz <martin@xemacs.org>
4334
4335         * XEmacs 21.2.42 "Poseidon" is released.
4336
4337 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4338
4339         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4340
4341 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4342
4343         De-kludgify FIXED_TYPE free list frobbing.
4344         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4345         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4346         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4347         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4348         * alloc.c (LRECORD_FREE_P): New.
4349         * alloc.c (MARK_LRECORD_AS_FREE): New.
4350         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4351         * alloc.c (STRUCT_FREE_P): Deleted.
4352         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4353         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4354         * alloc.c (STRING_CHARS_FREE_P): New.
4355         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4356         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4357         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4358         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4359         * alloc.c (resize_string): Use new definitions.
4360         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4361         * alloc.c (verify_string_chars_integrity): Use new definitions.
4362         * alloc.c (compact_string_chars): Use new definitions.
4363         * alloc.c: Update monster comments.
4364         * lrecord.h (lrecord_type): Add some new lrecord types for
4365         alloc.c's use.
4366
4367 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4368
4369         Improve alignment hackery.
4370         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4371         (max_align_t): Moved from opaque.h - general purpose.
4372         (ALIGN_PTR): Use size_t, not long.
4373         * opaque.h (max_align_t): Move to lisp.h.
4374
4375 2001-01-18  Norbert Koch  <nk@LF.net>
4376
4377         * gui.h: Fix and add prototypes to fix build problems.
4378
4379 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4380
4381         temacs is going away, so `dump-temacs' is now a bad name.
4382         * .dbxrc (dump-temacs): Rename to `dmp'.
4383         * .gdbinit (dump-temacs): Rename to `dmp'.
4384
4385 2001-01-17  Andy Piper  <andy@xemacs.org>
4386
4387         * glyphs.c (print_image_instance): comment to make martin happy.
4388
4389         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4390         change.
4391
4392         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4393         activation.
4394         (mswindows_tab_control_redisplay): warning suppression.
4395
4396         * glyphs-widget.c (widget_update): re-write to cope with updated
4397         items.
4398         (widget_instantiate): use new gui_item functions.
4399         (tab_control_update): deleted.
4400         (progress_gauge_update): deleted.
4401         (image_instantiator_progress_guage): take out update reference.
4402         (image_instantiator_tree_view): ditto.
4403         (image_instantiator_tab_control): ditto.
4404
4405         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4406         Right the new way.
4407         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4408         return whether anything was changed.
4409         (update_gui_item_keywords): as it sounds.
4410
4411         * gui.h: declare widget_gui_parse_item_keywords.
4412
4413         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4414         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4415
4416 2001-01-17  Martin Buchholz <martin@xemacs.org>
4417
4418         * XEmacs 21.2.41 "Polyhymnia" is released.
4419
4420 2001-01-16  Didier Verna  <didier@xemacs.org>
4421
4422         * glyphs.c (image_instantiate): don't use fallbacks when
4423         instantiating a face's background pixmap by inheritance.
4424
4425 2001-01-14  Mike Sperber <mike@xemacs.org>
4426
4427         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4428         Conditionalize accordingly.
4429
4430 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4431
4432         * dumper.c (pdump_file_get): Fix a compiler warning.
4433
4434 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4435
4436         Make Purify happy when pdumping.
4437         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4438         iniitalizing all bits of new lisp object memory.
4439         * symbols.c (Fmake_local_variable): Likewise.
4440         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4441         * symbols.c (Fdefvaralias): Likewise.
4442         * mule-charset.c (vars_of_mule_charset): Likewise.
4443
4444 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4445         Add the `-nd' flag when running pre-dump operations under the debugger.
4446         * .dbxrc (run-temacs): Add `-nd'.
4447         * .dbxrc (update-elc): Likewise.
4448         * .dbxrc (dump-temacs): Likewise.
4449         * .gdbinit (run-temacs): Likewise.
4450         * .gdbinit (check-temacs): Likewise.
4451         * .gdbinit (update-elc): Likewise.
4452         * .gdbinit (dump-temacs): Likewise.
4453
4454 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4455
4456         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4457         export OBJECT_MODE=64
4458         configure --pdump --use-union-type=no
4459         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4460         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4461
4462         * miscplay.c (sndcnv8U_2mono):
4463         Avoid two uses of `++' in the same expression.
4464         Suppresses a GCC warning.
4465
4466 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4467
4468         Make sure future compilers don't miscompile alloc.c.
4469         * alloc.c:
4470         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4471         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4472
4473 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4474
4475         * dumper.c: A little post-pdump-rename comment fixup.
4476
4477 2001-01-09  Jerry James  <james@eecs.ku.edu>
4478
4479         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4480
4481 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4482
4483         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4484         script:
4485         #!/bin/sh
4486         replace_symbol () {
4487           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4488         }
4489
4490         replace_symbol pdump_wire_lists pdump_weak_object_chains
4491         replace_symbol pdump_wire_list dump_add_weak_object_chain
4492
4493         replace_symbol pdump_wires pdump_root_objects
4494         replace_symbol pdump_wire dump_add_root_object
4495
4496         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4497         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4498
4499         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4500         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4501         replace_symbol dumpstructinfo pdump_root_struct_ptr
4502         replace_symbol dumpstruct dump_add_root_struct_ptr
4503
4504         replace_symbol dumpopaque dump_add_opaque
4505         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4506         replace_symbol dumpopaqueinfos pdump_opaques
4507         replace_symbol dumpopaqueinfo pdump_opaque
4508
4509         replace_symbol nb_structdump nb_root_struct_ptrs
4510         replace_symbol nb_opaquedump nb_opaques
4511
4512         replace_symbol align_table pdump_align_table
4513         replace_symbol dump_header pdump_header
4514
4515         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4516         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4517
4518
4519 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4520
4521         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4522         optimizing bytecount_to_charcount().
4523
4524 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4525
4526         * config.h.in:
4527         (HAVE_DLFCN_H): Removed.
4528         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4529
4530 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4531
4532         Portable dumper maintainability improvements.
4533         * alloc.c (staticpro):
4534         * alloc.c (staticpro_nodump):
4535         * alloc.c (garbage_collect_1):
4536         * alloc.c (reinit_alloc_once_early):
4537         * alloc.c (init_alloc_once_early):
4538         * alloc.c: Move dumper functions to alloc.c.
4539         * dumper.c (pdump_backtrace):
4540         * dumper.c (pdump_dump_structs):
4541         * dumper.c (pdump_dump_opaques):
4542         * dumper.c (pdump_dump_rtables):
4543         * dumper.c (pdump_dump_wired):
4544         * dumper.c (pdump):
4545         * dumper.c (pdump_load_check):
4546         * dumper.c (pdump_load_finish):
4547         * dumper.c (pdump_file_unmap):
4548         * dumper.c (pdump_file_get):
4549         * dumper.c (pdump_resource_free):
4550         * dumper.c (pdump_resource_get):
4551         * dumper.c (pdump_file_free):
4552         * dumper.c (pdump_file_try):
4553         * dumper.c (pdump_load):
4554         Remove fixed size limits on staticpro(), staticpro_nodump(),
4555         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4556         Remove custom code for dumping lrecord_implementations_table - use
4557         dumpopaque instead.
4558         Remove (most of the) custom code for dumping staticpros - dump it
4559         like any other dynarr.
4560
4561         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4562         * dumper.c: Moved functions from alloc.c.
4563         * alloc.c (dumpstruct): Moved to dumper.c.
4564         * alloc.c (dumpopaque): Likewise.
4565         * alloc.c (pdump_wire): Likewise.
4566         * alloc.c (pdump_wire_list): Likewise.
4567
4568         * lisp.h (Dynarr_sizeof): New.
4569         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4570         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4571         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4572
4573         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4574         * lisp.h (dumpopaque): ditto.
4575         * lisp.h (pdump_wire): ditto.
4576         * lisp.h (pdump_wire_list): ditto.
4577
4578 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4579
4580         * make-src-depend (PrintPatternDeps):
4581         Use `sort' to make output independent of perl version.
4582
4583 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4584
4585         Port to Netbsd 1.5.
4586         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4587         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4588
4589 2001-01-03  Didier Verna  <didier@xemacs.org>
4590
4591         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4592         that `focus_frame' is alive before thinking of calling
4593         `redisplay_redraw_cursor' on it.
4594
4595 2001-01-08  Martin Buchholz <martin@xemacs.org>
4596
4597         * XEmacs 21.2.40 is released.
4598
4599 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4600
4601         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4602
4603 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4604
4605         * alloc.c (dbg_valmask): Make const.
4606         * alloc.c (dbg_typemask): Make const.
4607         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4608         * alloc.c (dbg_valbits): Make const.
4609         * alloc.c (dbg_gctypebits): Make const.
4610
4611 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4612
4613         * redisplay-x.c (x_bevel_area):
4614         redisplay.h (struct rune):
4615         Typo fixes in comments.
4616
4617 2001-01-05  Andy Piper  <andy@xemacs.org>
4618
4619         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4620         adjustment.
4621
4622         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4623
4624 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4625
4626         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4627
4628         * mule-ccl.c (stack_idx_of_map_multiple):
4629         Non const global data must not be initialized!
4630         Found by MIYASHITA Hisashi.
4631
4632 2001-01-02  Andy Piper  <andy@xemacs.org>
4633
4634         * frame.c (change_frame_size): make sure frame size is always
4635         marked as changed.
4636
4637         * glyphs.c (image_instance_layout): minor code reuse.
4638
4639         * window.c (Fcurrent_window_configuration): revert previous
4640         change.
4641
4642 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4643
4644         * glyphs.h:
4645         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4646
4647 2000-12-31  Andy Piper  <andy@xemacs.org>
4648
4649         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4650         when widget gets unmapped.
4651
4652         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4653         function. Make sure widgets losing focus don't just drop it.
4654         (handle_focus_event_1): record the widget with focus.
4655
4656 2000-12-31  Andy Piper  <andy@xemacs.org>
4657
4658         * window.c (allocate_window): use
4659         make_image_instance_cache_hash_table.
4660         (make_dummy_parent): ditto.
4661         (Fset_window_configuration): ditto.
4662
4663         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4664
4665         * glyphs.c (process_image_string_instantiator): use
4666         INSTANTIATOR_TYPE.
4667         (get_image_instantiator_governing_domain): ditto.
4668         (normalize_image_instantiator): ditto.
4669         (instantiate_image_instantiator): ditto.
4670         (make_image_instance_1): ditto.
4671         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4672         (instantiator_eq_equal): new function for use with instance hash
4673         tables.
4674         (instantiator_eq_hash): ditto.
4675         (make_image_instance_cache_hash_table): create a suitable hash
4676         table for storing image instances.
4677
4678         * elhash.h (hash_table_weakness): new internal weakness type
4679         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4680         declare new functions.
4681
4682         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4683         another weakness type for glyphs.
4684         (make_standard_lisp_hash_table): new function split out from
4685         make_general_lisp_hash_table.
4686         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4687         (hash_table_instantiate): ditto.
4688         (Fmake_hash_table): ditto.
4689
4690 2000-12-31  Martin Buchholz <martin@xemacs.org>
4691
4692         * XEmacs 21.2.39 is released.
4693
4694 2000-12-29  Andy Piper  <andy@xemacs.org>
4695
4696         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4697
4698         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4699         the frame has changed so that we pick up geometry changes such as
4700         menubar visibility.
4701
4702 2000-12-28  Andy Piper  <andy@xemacs.org>
4703
4704         * lastfile.c (my_ebss): make a char array so we can pad the
4705         bss. Fixes cygwin unexec.
4706
4707         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4708
4709 2000-12-26  Andy Piper  <andy@xemacs.org>
4710
4711         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4712         comments and try and be more precise about a non-/SIGIO world.
4713         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4714         SIGIO.
4715
4716         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4717         we don't normalize to zero width or height.
4718
4719 2000-12-24  Andy Piper  <andy@xemacs.org>
4720
4721         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4722
4723 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4724
4725         * s/sco5.h: SCO 5 has pty support.
4726
4727 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4728
4729         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4730         input-method-xlib.c contains whole contents of input-method-xfs.c,
4731         so we can use input-method-xlib.c's code for USE_XFONTSET
4732         using #ifdefs.
4733         * input-method-xfs.c: removed.
4734
4735 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4736
4737         * file-coding.h (enum coding_category_type): reorder enumerators to
4738         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4739         (now one greater than largest real coding_category_type enumerator).
4740         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4741         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4742         Fcoding_category_list, Fset_coding_priority_list,
4743         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4744         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4745
4746 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4747
4748         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4749         * redisplay-output.c (redisplay_output_window): Clear top of window
4750         when face is changed.
4751         * redisplay-x.c (x_redraw_exposed_window): Call
4752         redisplay_clear_top_of_window.
4753         * redisplay.h: Publish redisplay_clear_top_of_window.
4754
4755 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4756
4757         * buffer.c (Fkill_buffer): Map over all devices.
4758         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4759         (list_windows): New function.
4760         (list_all_windows): Ditto.
4761         (Freplace_buffer_in_windows): Use them.
4762
4763 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4764
4765         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4766         (Fopen_database): Use `db_create' instead of `db_open'.
4767         (syms_of_database): Initialize Qqueue.
4768
4769 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4770
4771         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4772         buffer_local_face_property.
4773         * buffer.h (struct buffer): New member buffer_local_face_property.
4774         * window.c (Fset_window_buffer):  Mark window's face as changed
4775         when buffer has buffer local face.
4776         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4777         * objects.c (color_after_change): Set buffer_local_face_property
4778         when locale of face specifier is buffer.
4779         * objects.c (font_after_change): Ditto.
4780         * objects.c (face_boolean_after_change): Ditto.
4781         * glyphs.c (image_after_change): Ditto.
4782
4783 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4784
4785         * nt.c (mswindows_fstat): Report file permissions, volume serial
4786         number, etc. Code adapted from FSF Emacs 20.7.
4787
4788 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4789
4790         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4791         of stat when we don't have symbolic links, to make sure
4792         mswindows_stat is called on mswindows.
4793
4794 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4795
4796         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4797
4798 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4799
4800         * doprnt.c (emacs_doprnt_1): More printing fixes.
4801         Make printing of numbers compatible with libc and FSF Emacs.
4802         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4803         Use the system printf to do most of the hard work of formatting,
4804         instead of doprnt_1().
4805         Calculate memory to allocate for format string.
4806         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4807         (doprnt_1): Cleaner code and documentation.
4808
4809 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4810
4811         * Makefile.in.in: Use the loop variable to install headers.
4812
4813 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4814
4815         * window.c (Fsplit_window): Don't invalidate face cache.
4816
4817 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4818
4819         * minibuf.c (Fall_completions): Undo the previous change
4820         which removed checking elements start with space.
4821
4822 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4823
4824         * mule-canna.c: Didier suppression.
4825
4826 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4827
4828         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4829         (warning suppression).  Add English comment translations.
4830
4831 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4832
4833         * unexelfsgi.c (unexec): Better test for mmap failure.
4834
4835 2000-12-05  Martin Buchholz <martin@xemacs.org>
4836
4837         * XEmacs 21.2.38 is released.
4838
4839 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4840
4841         * redisplay.c (bar-cursor): Make a user variable.
4842
4843         * symsinit.h: Add init_postgresql_from_environment.
4844
4845 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4846
4847         * regex.c: Convert to clean C.
4848
4849 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4850
4851         * realpath.c:
4852         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4853         initialization.
4854         (sys_readlink): renamed to system_readlink to avoid conflict with
4855         the other sys_readlink.
4856
4857 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4858
4859         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4860
4861 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4862
4863         * postgresql.c (init_postgresql_from_environment): new function.
4864         (vars_of_postgresql): Move code initializing Lisp variables out and
4865         into init_postgresql_from_environment.
4866         emacs.c (main_1): Call init_postgresql_from_environment if and only
4867         if running a dumped XEmacs.
4868
4869 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4870
4871         * buffer.c: Make find-file-compare-truenames default to true on
4872         windows.
4873
4874         * realpath.c (win32_abs_start):
4875         (cygwin_readlink):
4876         (win32_readlink): New functions.
4877         (xrealpath): Return really real filenames on windows.
4878
4879         * fileio.c (Ffile_truename): Make file-truename work on windows.
4880
4881 2000-11-29  Didier Verna  <didier@xemacs.org>
4882
4883         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4884         * faces.c (update_face_cachel_data): use it.
4885         * faces.c (add_face_cachel): use it. Complete background pixmap
4886         frobbing in face cache if `update_face_cachel_data' has not done so.
4887
4888 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4889
4890         * search.c (string_match_1): Don't set last_thing_searched
4891         when search failed.
4892
4893 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4894
4895         * buffer.c: Include casetab.h
4896         (common_init_complex_vars_of_buffer): Use new case-table object.
4897         * buffer.h: Include casetab.h
4898         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4899         (DOWNCASE_TABLE_OF): Ditto.
4900         * bufslots.h: Remove char-tables and add case-table.
4901         * casetab.c: Include casetab.h
4902         (CASE_TABLE_P): Removed.
4903         (mark_case_table): New function.
4904         (allocate_case_table): New function.
4905         (Fcase_table_p): Use new case-table.
4906         (case_table_char): New function.
4907         (Fget_case_table): Ditto.
4908         (Fput_case_table): Ditto.
4909         (Fput_case_table_pair): Ditto.
4910         (Fcopy_case_table): Ditto.
4911         (Fcurrent_case_table): Return case-table.
4912         (Fstandard_case_table): Return case-table.
4913         (Fset_case_table): Fix doc-string.
4914         (set_case_table): Use case-table
4915         (syms_of_casetab): DEFSUBR new functions.
4916         (complex_vars_of_casetab): Set up standard case-table.
4917         * casetab.h: New file.
4918         * editfns.c: Include casetab.h
4919         (Fcompare_buffer_substrings): Use case-table.
4920         * inline.c: Include casetab.h
4921         * lisp.h: Remove bogus extern.
4922         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4923         * search.c: Include casetab.h
4924         (TRANSLATE_ASCII): Removed.
4925         (TRANSLATE): Unconditionally translate character.
4926         (looking_at_1): Use case-table.
4927         (string_match_1): Ditto.
4928         (fast_string_match): Ditto.
4929         (search_command): Ditto.
4930         (search_buffer): Separate boyer_moore.  Check whether
4931         boyer_moore is possible.
4932         (simple_search): New function.
4933         (boyer_moore): Separated from search_buffer. Translate char.
4934
4935 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4936
4937         * regex.c (RE_TR_ASCII): Removed.
4938         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4939         (PATFETCH): Call PATFETCH_RAW.
4940         (PATFETCH_RAW): Fetch Emchar.
4941         (PATUNFETCH): Decrement charptr.
4942         (GET_BUFFER_SPACE): Rename b to buf_end.
4943         (BUF_PUSH): Ditto.
4944         (BUF_PUSH_2): Ditto.
4945         (BUF_PUSH_3): Ditto.
4946         (EXTEND_BUFFER): Ditto.
4947         (SET_LIST_BIT): Ditto.
4948         (regex_compile): Ditto.  Translate non ASCII char.
4949         (compile_range): Ditto.
4950         (re_search_2): Ditto.
4951         (re_match_2_internal): Compare Emchar.
4952         (bcmp_translate): Ditto.
4953
4954 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4955
4956         * lisp.h (basic char/int typedefs):  comment improvement.
4957
4958 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4959
4960         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4961         unstomp inhibit_site_lisp.  Improve comments.
4962
4963 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4964
4965         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4966
4967 2000-11-28  Andy Piper  <andy@xemacs.org>
4968
4969         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4970         clipped display for windows in the gutter also.
4971         (redisplay_display_boxes_in_window_p): change semantics of return
4972         codes to be more intuitive.
4973
4974         * gutter.h: declare display_boxes_in_gutter_p.
4975
4976         * gutter.c (display_boxes_in_gutter_p): new function for
4977         redisplay.
4978
4979 2000-11-22  Andy Piper  <andy@xemacs.org>
4980
4981         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4982         autodetect domain.
4983
4984 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4985
4986         * callproc.c (Fold_call_process_internal):
4987         * gpm.c (Freceive_gpm_event):
4988         (tty_get_foreign_selection): Might be just warning supression.
4989         * fileio.c (Fwrite_region_internal):
4990         (Fset_visited_file_modtime):
4991         * keymap.c (event_matches_key_specifier_p):
4992         Initialize GCPROed variable.
4993
4994         * menubar-x.c (command_builder_find_menu_accelerator):
4995         Initialize before use.
4996
4997 2000-11-23  Andy Piper  <andy@xemacs.org>
4998
4999         * unexcw.c (unexec): make the resulting executable executable.
5000
5001 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5002
5003         * doc.c (get_doc_string):
5004         Use size_t, not int, for result of XSTRING_LENGTH.
5005
5006         * cmds.c (Fdelete_char):
5007         * cmds.c (Fpoint_at_eol):
5008         * cmds.c (Fself_insert_command):
5009         Use EMACS_INT, not int, for result of XINT.
5010         Someday, someone will want to insert more than 2**31 identical characters.
5011
5012         * cmds.c (Fdelete_char):
5013         * cmds.c (Fdelete_backward_char):
5014         * syntax.c (Fforward_word):
5015         * syntax.c (Fforward_comment):
5016         Make COUNT argument optional, for consistency with forward-char et al.
5017
5018 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5019
5020         * lisp.h:
5021         * print.c (long_to_string):
5022         Return a useful value: the pointer at end of data written.
5023
5024         * doprnt.c:
5025         Use `static const char * const' for constant strings.
5026         (union printf_arg): Delete `i', `ui' members.
5027         (get_doprnt_args):
5028         (emacs_doprnt_1):
5029         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5030         Do all printf-ing via the `l' specifier.
5031         Use EMACS_INT instead of int.
5032         Optimize.
5033
5034 2000-11-20  Didier Verna  <didier@xemacs.org>
5035
5036         * faces.c (update_face_cachel_data): don't frob the background
5037         pixmap when the window is being created. The face is needed but
5038         does not exist yet.
5039
5040 2000-11-20  Andy Piper  <andy@xemacs.org>
5041
5042         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5043         messing with a debug environment.
5044
5045 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5046
5047         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5048
5049 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5050
5051         * casetab.c (Fcase_table_p): Fix compile error and crash.
5052
5053 2000-11-18  Philip Aston  <philipa@mail.com>
5054
5055         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5056
5057 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5058
5059         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5060         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5061
5062 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5063
5064         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5065         * unexelf.c: Use HAVE_ELF_H.
5066         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5067         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5068         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5069         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5070         for testing.
5071         So this is an unexelfsgi.c from a different line of development.
5072
5073 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5074
5075         * regex.c (RE_TR_ASCII): New function.
5076         (RE_TRANSLATE): Call it.
5077
5078 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5079
5080         * buffer.h (TRT_TABLE_OF): Remove assert.
5081         (IN_TRT_TABLE_DOMAIN): Removed.
5082
5083 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5084
5085         * free-hook.c (log_gcpro):
5086         (show_gcprohist): Add support for GCPRO5.
5087
5088 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5089
5090         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5091
5092 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5093
5094         * symeval.h: Declare flush_all_buffer_local_cache.
5095
5096         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5097         (flush_buffer_local_cache): Added.
5098         (flush_all_buffer_local_cache): Added.
5099
5100         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5101
5102         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5103         (pdump_dump_data): Ditto.
5104         (pdump_reloc_one): Ditto.
5105         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5106         before dumping.
5107
5108
5109 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5110
5111         * buffer.c: Remove if 0'ed entry.
5112         * buffer.h: Rewrite TRT to use char-table.
5113         * bufslots.h: Remove mirror tables.
5114         * casetab.c: Remove mirror tables.
5115         (CASE_TABLE_P): New macro.
5116         (Fcase_table_p): Element of a case table is string or char-table.
5117         (make_mirror_trt_table): Removed.
5118         (set_case_table): Setup char-table from strings for backward
5119         compatibility.
5120         * dired.c (Fdirectory_files):
5121         * dired-msw.c: (mswindows_get_files):
5122         * lisp.h: Change prototype of re_pattern_buffer.
5123         * regex.c: (RE_TRANSLATE): New macro.
5124         (TRANSLATE_P): Ditto.
5125         Change translate to type RE_TRANSLATE_TYPE.
5126         * regex.h: Define RE_TRANSLATE_TYPE
5127         * search.c (TRANSLATE): New macro.
5128         (TRANSLATE_ASCII): New macro.
5129         Translate table is changed to Lisp_Object.
5130         (signal_failure): Inhibit return.
5131
5132 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5133
5134         * device-msw.c:
5135         * eldap.c:
5136         * event-Xt.c:
5137         * event-stream.c:
5138         * print.c:
5139         Do UNGCPRO before return.
5140
5141 2000-11-14  Martin Buchholz <martin@xemacs.org>
5142
5143         * XEmacs 21.2.37 is released.
5144
5145 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5146
5147         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5148         Add comments about discarded return value.
5149
5150 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5151
5152         * callint.c:
5153         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5154
5155 2000-10-27  Andy Piper  <andy@xemacs.org>
5156
5157         * gutter.c (Fset_default_gutter_position): default left and right
5158         gutters to visible.
5159         (calculate_gutter_size): calculate resonable heuristic for left
5160         and right gutter sizes.
5161         (specifier_vars_of_gutter): change left and right gutter sizes to
5162         autodetect.
5163         (calculate_gutter_size_from_display_lines): new function.
5164         (output_gutter): check for resizing on left and right gutters.
5165         (clear_gutter): don't special case top and left gutters.
5166         (specifier_vars_of_gutter): use new signature for
5167         set_specifier_caching.
5168
5169         * glyphs-x.c (x_redisplay_widget): spelling fix.
5170         * glyphs.c (specifier_vars_of_glyphs):
5171         * menubar.c (specifier_vars_of_menubar):
5172         * redisplay.c (specifier_vars_of_redisplay):
5173         * toolbar.c (specifier_vars_of_toolbar):
5174         * window.c (specifier_vars_of_window):
5175         * scrollbar.c (specifier_vars_of_scrollbar):
5176         (complex_vars_of_scrollbar): use new signature for
5177         set_specifier_caching.
5178
5179         * specifier.c (set_specifier_caching): include recompute flag.
5180         (recompute_one_cached_specifier_in_window): always recompute if
5181         flag set.
5182         (recompute_one_cached_specifier_in_frame): ditto.
5183
5184         * specifier.h (struct specifier_caching): add recompute flag.
5185
5186 2000-10-24  Andy Piper  <andy@xemacs.org>
5187
5188         * unexcw.c (copy_executable_and_dump_data_section): add new
5189         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5190         5.0 happy.
5191
5192 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5193
5194         * console-x.h (x_device): New member modifier_release_time.
5195         * event-Xt.c (x_handle_sticky_modifiers):
5196         Bound interval modifier keys are sticky.
5197         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5198         * events.h: extern it.
5199
5200 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5201
5202         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5203
5204 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5205
5206         * event-stream.c (execute_command_event): Preserve current_events
5207         and the like when event is misc-user-event.
5208         Inhibit quit during the call to maybe_echo_keys.
5209
5210 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5211
5212         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5213         symlink when buffer is killed.
5214         (inhibit_clash_detection): New variable.
5215
5216 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5217
5218         * console.c (Fset_input_method): Trigger redisplay on tty.
5219
5220 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5221
5222         * process.c (Fprocess_status): Revert to previous behavior:
5223         (process-status "nosuchprocess") ==> nil
5224
5225 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5226
5227         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5228         Work around another GCC 2.95.2 optimizer bug.
5229
5230 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5231
5232         * process.c (Fget_process): Use LIST_LOOP_2.
5233         (kill_buffer_processes): Use LIST_LOOP_2.
5234
5235         * minibuf.c (Fall_completions):
5236         Delete old non-functional code for FSF fourth argument.
5237
5238         * frame.c (frame_matches_frame_spec):
5239         Renamed from `frame_matches_frametype'.  Update all callers.
5240         (device_matches_device_spec):
5241         Renamed from 'device_matches_console_spec'.  Update all callers.
5242
5243         * doc.c (Fsubstitute_command_keys):
5244         Remove buffer overflow crash.  Small code cleanups.
5245
5246         * casetab.c (check_case_table): Simpler code.
5247
5248         * window.c (Freplace_buffer_in_windows):
5249         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5250         (and similar implementation) as Fdelete_windows_on.
5251         Update all callers.
5252
5253         * alloc.c (Fmake_list):
5254         * alloc.c (make_vector):
5255         * alloc.c (Fmake_vector):
5256         * alloc.c (make_bit_vector):
5257         * alloc.c (Fmake_bit_vector):
5258         * alloc.c (Fbit_vector):
5259         * alloc.c (Fmake_string):
5260         * alloc.c (Fpurecopy):
5261         * alloc.c (Fmemory_limit):
5262         * buffer.c:
5263         * buffer.c (Fget_buffer):
5264         * buffer.c (Fkill_buffer):
5265         * buffer.c (complex_vars_of_buffer):
5266         * bytecode.c (Fcompiled_function_stack_depth):
5267         * callint.c (Fprefix_numeric_value):
5268         * event-stream.c:
5269         * event-stream.c (Fread_key_sequence):
5270         * casetab.c:
5271         * casetab.c (Fcase_table_p):
5272         * casetab.c (check_case_table):
5273         * casetab.c (Fset_case_table):
5274         * casetab.c (Fset_standard_case_table):
5275         * chartab.c:
5276         * chartab.c (Fchar_table_type):
5277         * chartab.c (Freset_char_table):
5278         * chartab.c (Fget_char_table):
5279         * chartab.c (Fget_range_char_table):
5280         * chartab.c (Fput_char_table):
5281         * chartab.c (Fmap_char_table):
5282         * chartab.c (Fcategory_table_p):
5283         * chartab.c (Fcheck_category_at):
5284         * chartab.c (Fchar_in_category_p):
5285         * chartab.c (Fcategory_table):
5286         * chartab.c (Fcopy_category_table):
5287         * chartab.c (Fset_category_table):
5288         * chartab.c (Fcategory_designator_p):
5289         * chartab.c (Fcategory_table_value_p):
5290         * cmds.c (Fdelete_char):
5291         * cmds.c (Fdelete_backward_char):
5292         * cmds.c (Fself_insert_command):
5293         * cmds.c (Fself_insert_internal):
5294         * console.c (Fvalid_console_type_p):
5295         * console.c (Fcdfw_console):
5296         * console.c (Fconsole_type):
5297         * console.c (Fconsole_name):
5298         * console.c (Fconsole_device_list):
5299         * console.c (Fconsole_on_window_system_p):
5300         * data.c:
5301         * data.c (Feq):
5302         * data.c (Fold_eq):
5303         * data.c (Fsubr_interactive):
5304         * data.c (Fchar_to_int):
5305         * data.c (Fint_to_char):
5306         * data.c (Fsetcar):
5307         * data.c (Fsetcdr):
5308         * data.c (Fnumber_to_string):
5309         * data.c (Fstring_to_number):
5310         * data.c (Frem):
5311         * database.c (mark_database):
5312         * database.c (finalize_database):
5313         * database.c (Fdatabase_live_p):
5314         * database.c (Fdatabasep):
5315         * device-x.c (Fx_get_resource):
5316         * device.c (Fdfw_device):
5317         * dired.c:
5318         * dired.c (Ffile_name_completion):
5319         * dired.c (Ffile_name_all_completions):
5320         * dired.c (Fuser_name_completion):
5321         * dired.c (Fuser_name_completion_1):
5322         * dired.c (Fuser_name_all_completions):
5323         * doc.c (Fdocumentation):
5324         * doc.c (Fdocumentation_property):
5325         * doc.c (Fsubstitute_command_keys):
5326         * editfns.c:
5327         * editfns.c (Fchar_to_string):
5328         * editfns.c (Fstring_to_char):
5329         * editfns.c (Ftemp_directory):
5330         * editfns.c (Finsert_char):
5331         * editfns.c (Fbuffer_substring_no_properties):
5332         * editfns.c (Fnarrow_to_region):
5333         * editfns.c (Fchar_equal):
5334         * editfns.c (Fchar_Equal):
5335         * editfns.c (Ftranspose_regions):
5336         * emacs.c (Fdump_emacs):
5337         * eval.c (Fthrow):
5338         * eval.c (Fcommand_execute):
5339         * eval.c (Fautoload):
5340         * eval.c (Fbacktrace):
5341         * eval.c (Fbacktrace_frame):
5342         * events.c:
5343         * events.c (Fcopy_event):
5344         * events.c (Fcharacter_to_event):
5345         * events.c (Fevent_button):
5346         * events.c (Fevent_process):
5347         * extents.c:
5348         * extents.c (Fnext_extent_change):
5349         * extents.c (Fextent_property):
5350         * faces.c (Ffacep):
5351         * faces.c (Fmake_face):
5352         * file-coding.c:
5353         * file-coding.c (Fencode_shift_jis_char):
5354         * file-coding.c (Fencode_big5_char):
5355         * fileio.c (Ffile_name_directory):
5356         * fileio.c (Ffile_name_nondirectory):
5357         * fileio.c (Ffile_name_as_directory):
5358         * fileio.c (Fdirectory_file_name):
5359         * fileio.c (Ffile_truename):
5360         * fileio.c (Fsubstitute_in_file_name):
5361         * fileio.c (Ffile_modes):
5362         * fileio.c (Fset_file_modes):
5363         * fileio.c (Fset_default_file_modes):
5364         * fileio.c (Fverify_visited_file_modtime):
5365         * floatfns.c (Facos):
5366         * floatfns.c (Fasin):
5367         * floatfns.c (Fatan):
5368         * floatfns.c (Fcos):
5369         * floatfns.c (Fsin):
5370         * floatfns.c (Ftan):
5371         * floatfns.c (Fbessel_j0):
5372         * floatfns.c (Fbessel_j1):
5373         * floatfns.c (Fbessel_jn):
5374         * floatfns.c (Fbessel_y0):
5375         * floatfns.c (Fbessel_y1):
5376         * floatfns.c (Fbessel_yn):
5377         * floatfns.c (Ferf):
5378         * floatfns.c (Ferfc):
5379         * floatfns.c (Flog_gamma):
5380         * floatfns.c (Fexp):
5381         * floatfns.c (Fexpt):
5382         * floatfns.c (Flog):
5383         * floatfns.c (Flog10):
5384         * floatfns.c (Fsqrt):
5385         * floatfns.c (Fcube_root):
5386         * floatfns.c (Facosh):
5387         * floatfns.c (Fasinh):
5388         * floatfns.c (Fatanh):
5389         * floatfns.c (Fcosh):
5390         * floatfns.c (Fsinh):
5391         * floatfns.c (Ftanh):
5392         * floatfns.c (Fabs):
5393         * floatfns.c (Ffloat):
5394         * floatfns.c (Flogb):
5395         * floatfns.c (Fceiling):
5396         * floatfns.c (Ffloor):
5397         * floatfns.c (Fround):
5398         * floatfns.c (Ftruncate):
5399         * floatfns.c (Ffceiling):
5400         * floatfns.c (Fffloor):
5401         * floatfns.c (Ffround):
5402         * floatfns.c (Fftruncate):
5403         * fns.c (Fstring_equal):
5404         * fns.c (Fstring_lessp):
5405         * fns.c (concat2):
5406         * fns.c (concat3):
5407         * fns.c (vconcat2):
5408         * fns.c (vconcat3):
5409         * fns.c (Fsubstring):
5410         * fns.c (Fassoc):
5411         * fns.c (Fold_assoc):
5412         * fns.c (assoc_no_quit):
5413         * fns.c (Fassq):
5414         * fns.c (Fold_assq):
5415         * fns.c (assq_no_quit):
5416         * fns.c (Frassoc):
5417         * fns.c (Fold_rassoc):
5418         * fns.c (Frassq):
5419         * fns.c (Fold_rassq):
5420         * fns.c (rassq_no_quit):
5421         * fns.c (Fremassoc):
5422         * fns.c (remassoc_no_quit):
5423         * fns.c (Fremassq):
5424         * fns.c (remassq_no_quit):
5425         * fns.c (Fremrassoc):
5426         * fns.c (Fremrassq):
5427         * fns.c (remrassq_no_quit):
5428         * fns.c (Fsort):
5429         * fns.c (Fplist_get):
5430         * fns.c (Fplist_put):
5431         * fns.c (Fplist_remprop):
5432         * fns.c (Fplist_member):
5433         * fns.c (Flax_plist_get):
5434         * fns.c (Flax_plist_put):
5435         * fns.c (Flax_plist_remprop):
5436         * fns.c (Flax_plist_member):
5437         * fns.c (Fequal):
5438         * fns.c (Fold_equal):
5439         * fns.c (Frequire):
5440         * fns.c (Fbase64_encode_region):
5441         * fns.c (Fbase64_encode_string):
5442         * fns.c (Fbase64_decode_region):
5443         * frame.c:
5444         * frame.c (frame_matches_frame_spec):
5445         * frame.c (device_matches_device_spec):
5446         * frame.c (next_frame):
5447         * frame.c (previous_frame):
5448         * frame.c (Fnext_frame):
5449         * frame.c (Fprevious_frame):
5450         * frame.c (Fframe_property):
5451         * frame.c (Fset_frame_height):
5452         * frame.c (Fset_frame_size):
5453         * frame.h:
5454         * glyphs.c:
5455         * glyphs.c (if):
5456         * glyphs.c (decode_error_behavior_flag):
5457         * glyphs.c (Fmake_image_instance):
5458         * indent.c (Findent_to):
5459         * intl.c (Fignore_defer_gettext):
5460         * keymap.c (Fkeymapp):
5461         * keymap.c (Flookup_key):
5462         * lread.c:
5463         * lread.c (Fload_internal):
5464         * lread.c (Feval_buffer):
5465         * lread.c (Feval_region):
5466         * macros.c (Fexecute_kbd_macro):
5467         * marker.c (set_marker_internal):
5468         * marker.c (Fset_marker):
5469         * marker.c (set_marker_restricted):
5470         * marker.c (Fcopy_marker):
5471         * marker.c (noseeum_copy_marker):
5472         * menubar.c:
5473         * menubar.c (Fpopup_menu):
5474         * minibuf.c:
5475         * mule-charset.c (Fcharset_name):
5476         * mule-charset.c (Fchar_charset):
5477         * mule-charset.c (Fchar_octet):
5478         * mule-charset.c (Fsplit_char):
5479         * mule-wnnfns.c (Fwnn_open):
5480         * mule-wnnfns.c (Fwnn_dict_comment):
5481         * mule-wnnfns.c (Fwnn_quit_henkan):
5482         * mule-wnnfns.c (Fwnn_word_toroku):
5483         * mule-wnnfns.c (Fwnn_word_sakujo):
5484         * mule-wnnfns.c (Fwnn_word_use):
5485         * mule-wnnfns.c (Fwnn_hindo_set):
5486         * objects.c:
5487         * objects.c (Fmake_color_instance):
5488         * objects.c (Fmake_font_instance):
5489         * print.c (Fwrite_char):
5490         * process.c:
5491         * process.c (mark_process):
5492         * process.c (print_process):
5493         * process.c (get_process_from_usid):
5494         * process.c (Fprocessp):
5495         * process.c (Fprocess_live_p):
5496         * process.c (Fget_process):
5497         * process.c (Fget_buffer_process):
5498         * process.c (get_process):
5499         * process.c (Fprocess_id):
5500         * process.c (Fprocess_name):
5501         * process.c (Fprocess_command):
5502         * process.c (init_process_io_handles):
5503         * process.c (start_process_unwind):
5504         * process.c (Fstart_process_internal):
5505         * process.c (Fopen_multicast_group_internal):
5506         * process.c (Fset_process_window_size):
5507         * process.c (read_process_output):
5508         * process.c (send_process):
5509         * process.c (Fprocess_tty_name):
5510         * process.c (Fset_process_buffer):
5511         * process.c (Fprocess_buffer):
5512         * process.c (Fprocess_mark):
5513         * process.c (set_process_filter):
5514         * process.c (Fset_process_filter):
5515         * process.c (Fprocess_filter):
5516         * process.c (Fprocess_send_region):
5517         * process.c (Fprocess_send_string):
5518         * process.c (exec_sentinel):
5519         * process.c (Fset_process_sentinel):
5520         * process.c (Fprocess_sentinel):
5521         * process.c (status_notify):
5522         * process.c (Fprocess_status):
5523         * process.c (Fprocess_exit_status):
5524         * process.c (process_send_signal):
5525         * process.c (Fprocess_send_eof):
5526         * process.c (deactivate_process):
5527         * process.c (remove_process):
5528         * process.c (Fdelete_process):
5529         * process.c (kill_buffer_processes):
5530         * process.c (Fprocess_kill_without_query):
5531         * process.c (Fprocess_kill_without_query_p):
5532         * rangetab.c:
5533         * rangetab.c (Fget_range_table):
5534         * rangetab.c (Fput_range_table):
5535         * rangetab.c (Fremove_range_table):
5536         * rangetab.c (Fclear_range_table):
5537         * search.c:
5538         * search.c (Fskip_chars_forward):
5539         * search.c (Fskip_chars_backward):
5540         * search.c (Fskip_syntax_forward):
5541         * search.c (Fskip_syntax_backward):
5542         * search.c (search_command):
5543         * search.c (Freplace_match):
5544         * search.c (Fregexp_quote):
5545         * select.c (Fown_selection_internal):
5546         * select.c (Fselection_owner_p):
5547         * select.c (Fselection_exists_p):
5548         * select.c (Fget_selection_internal):
5549         * specifier.c:
5550         * symbols.c:
5551         * symbols.c (Fintern):
5552         * symbols.c (Fintern_soft):
5553         * symbols.c (Funintern):
5554         * symbols.c (Fapropos_internal):
5555         * symbols.c (Fset_default):
5556         * syntax.c:
5557         * syntax.c (Fsyntax_table_p):
5558         * syntax.c (Fcopy_syntax_table):
5559         * syntax.c (Fset_syntax_table):
5560         * syntax.c (Fchar_syntax):
5561         * syntax.c (syntax_match):
5562         * syntax.c (Fmatching_paren):
5563         * syntax.c (Fforward_word):
5564         * syntax.c (scan_lists):
5565         * syntax.c (Fscan_lists):
5566         * syntax.c (Fscan_sexps):
5567         * syntax.c (Fparse_partial_sexp):
5568         * toolbar.c (Fcheck_toolbar_button_syntax):
5569         * tooltalk.doc:
5570         * window.c:
5571         * window.c (Fwindowp):
5572         * window.c (Fwindow_live_p):
5573         * window.c (Fwindow_point):
5574         * window.c (Fdelete_window):
5575         * window.c (Fnext_window):
5576         * window.c (Fprevious_window):
5577         * window.c (Fother_window):
5578         * window.c (window_loop):
5579         * window.c (Fget_lru_window):
5580         * window.c (Fsplit_window):
5581         * window.c (Fenlarge_window):
5582         * window.c (Fenlarge_window_pixels):
5583         * window.c (Fshrink_window):
5584         * window.c (Fshrink_window_pixels):
5585         * window.c (change_window_height):
5586         * window.c (Fwindow_configuration_p):
5587         * window.c (Fcurrent_window_configuration):
5588         * window.h:
5589         * casefiddle.c (casify_object):
5590         * casefiddle.c (Fupcase):
5591         * casefiddle.c (Fdowncase):
5592         * casefiddle.c (Fcapitalize):
5593         * casefiddle.c (Fupcase_initials):
5594         * casefiddle.c (casify_region_internal):
5595         * casefiddle.c (casify_region):
5596         * casefiddle.c (Fupcase_region):
5597         * casefiddle.c (Fdowncase_region):
5598         * casefiddle.c (Fcapitalize_region):
5599         * casefiddle.c (Fupcase_initials_region):
5600         * casefiddle.c (Fupcase_word):
5601         * casefiddle.c (Fdowncase_word):
5602         * casefiddle.c (Fcapitalize_word):
5603         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5604         Replace 0 with '\0' when working with bytes.
5605         Replace initial "(" with "\(" in docstrings.
5606
5607 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5608
5609         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5610
5611         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5612
5613 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5614
5615         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5616
5617 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5618
5619         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5620         correctly.
5621
5622 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5623
5624         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5625         (inhibit_auto_save_session): New variable.
5626         (vars_of_fileio): Declare and initialize them.
5627         * fileio.c (Fdo_auto_save): Don't create session file if
5628         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5629
5630 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5631
5632         * sgiplay.c (play_internal): C++ compilability.
5633         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5634         * callproc.c (Fold_call_process_internal):
5635         Remove unused vars `env', `first'.
5636         * scrollbar.c (update_scrollbar_instance):
5637         #### unused var `current_window'.
5638         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5639         etc. within #ifdef NOT_YET.
5640         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5641         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5642         * specifier.c (specifier_instance):
5643         #### unused var `tag'.
5644         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5645
5646 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5647
5648         * fns.c (Fbutlast):
5649         * fns.c (list_sort):
5650         * fns.c (Ffillarray):
5651         * fns.c (bytecode_nconc2):
5652         * fns.c (Fnconc):
5653         * fns.c (mapcar1):
5654         * fns.c (Fmapconcat):
5655         Be pedantically 64-bit correct.  For the time when someone will
5656         want to have a list with length > 2**32.
5657
5658         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5659         Work around MIPSpro compiler bug.
5660
5661         * process-unix.c (unix_kill_child_process): Add snarky comment.
5662         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5663
5664         * config.h.in: Oops, _getpt ==> _getpty
5665
5666 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5667
5668         * config.h.in:
5669         * regex.c:
5670         Use void*, not char*, as return type of alloca().
5671
5672         * alloc.c (free_marker): Side effect inside assert expression!
5673
5674 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5675
5676         * mule-charset.c (Fset_charset_ccl_program): To check
5677         if the given ccl program is valid, use setup_ccl_program()
5678         instead of CHECK_VECTOR().
5679         (Fmake_charset): Likewise.
5680
5681 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5682
5683         * faces.c (get_extent_fragment_face_cache_index):
5684         Fix cachel.merged_faces memory leak.
5685
5686 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5687
5688         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5689         Reset MSB of octets obtained by DECODE_SJIS
5690         because of the incompatibility with Emacs.
5691         (ccl_driver)<CCL_ENCODE_SJIS>:
5692         Set MSB of octets before passing them to
5693         ENCODE_SJIS because of the incompatibility
5694         with Emacs.
5695
5696 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5697
5698         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5699         (DECLARE_LRECORD): Undo the last change.
5700         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5701
5702 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5703
5704         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5705         the implementation to lrecord_implementations_table.
5706
5707 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5708
5709         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5710         initial value of `lrecord_type_##c_name' and
5711         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5712         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5713         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5714         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5715         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5716
5717 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5718
5719         * miscplay.c (sndcnv8S_2mono):
5720         (sndcnv2monounsigned):
5721         (sndcnvULaw_2linear):
5722         (sndcnv16swap):
5723         Remove implementation-defined behavior.
5724
5725 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5726
5727         * input-method-xlib.c: Warning suppression.
5728
5729 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5730
5731         * mule-ccl.c: Sync up with Emacs 21.0.90.
5732         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5733         Do nothing.
5734         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5735         Likewise.
5736         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5737         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5738         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5739         leading char belongs to official 2-dimensional charset.
5740         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5741         write the given character as is.  Otherwise,
5742         if it is a multibyte char, convert it by
5743         non_ascii_set_charptr_emchar, then write it.
5744         (CCL_WRITE_STRING): Likewise.
5745         (ccl_get_compiled_code): New function.
5746         (setup_ccl_program): When ccl_prog is invalid,
5747         return -1.
5748         (Fregister_code_conversion_map): New function.
5749         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5750
5751         * mule-ccl.h: Sync up with Emacs 21.0.90.
5752         (Fregister_ccl_program): export it.
5753
5754         * redisplay-msw.c (separate_textual_runs):
5755         If ccl program is not valid, don't do ccl conversion.
5756
5757         * redisplay-x.c (separate_textual_runs): Ditto.
5758
5759         * file-coding.c (Fmake_coding_system):
5760         When type is ccl and value is vector, register it
5761         with a proper symbol.  And checks whether the
5762         given ccl program is valid.
5763         (mule_decode): When calling ccl_driver, if src indicates
5764         NULL pointer, set an empty string instead.
5765         (mule_encode): Likewise.
5766
5767 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5768
5769         The following large batch of changes gets us back to a state of
5770         C++ compilability.  Extbyte is now a char, which means that
5771         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5772
5773         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5774
5775         * sound.c (Fplay_sound): Type correctness.
5776
5777         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5778         (x_get_window_property): Type correctness.
5779         (receive_incremental_selection): unsigned char ==> Extbyte
5780         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5781         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5782         (Fx_store_cutbuffer_internal): Type correctness.
5783
5784         * process-unix.c (try_to_initialize_subtty): Type correctness.
5785
5786         * objects-x.c (x_print_color_instance): Type correctness.
5787         (x_print_font_instance): Type correctness.
5788         (x_list_fonts): SExtbyte ==> Extbyte.
5789         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5790         (x_find_charset_font): SExtbyte ==> Extbyte.
5791         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5792         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5793         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5794         Use bufbyte_strcmp.
5795
5796         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5797         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5798         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5799         (BYTE_C0_P): Use bit ops for char-signedness safety.
5800         (BYTE_C1_P): Use bit ops for char-signedness safety.
5801         (CHARSET_BY_LEADING_BYTE):
5802         (CHARSET_BY_ATTRIBUTES):
5803         Always use inline function.
5804         Use type_checking_assert.
5805         Hide chlook.
5806
5807         * mule-charset.c (non_ascii_charptr_copy_char):
5808         Modify to work with both ASCII and non-ASCII characters.
5809         Improve docs and variable names.
5810         Replace over-clever fall-through switch with a simple loop.
5811         (Lstream_get_emchar_1):
5812         Replace over-clever fall-through switch with a simple loop.
5813
5814         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5815         Warning suppression.
5816
5817         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5818         the return value of Lstream_getc, which could be EOF as well.
5819
5820         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5821
5822         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5823         APIs can be used on Extbytes without casts.  Risky!
5824         (SExtbyte): Remove.
5825         (UExtbyte): Remove.
5826
5827         * input-method-xlib.c (XIM_init_device):
5828         Use Xlib.h instead of IntrinsicP.h.
5829         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5830         which will break in X11R7.
5831         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5832         to call XRegisterIMInstantiateCallback with correct types.
5833
5834         * gui-x.c (button_item_to_widget_value): Type correctness.
5835
5836         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5837
5838         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5839         (xbm_instantiate_1): Type correctness.
5840         (BUILD_GLYPH_INST):  Type correctness.
5841
5842         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5843
5844         * file-coding.c:
5845         (decode_coding_sjis):
5846         (decode_coding_big5):
5847         (decode_coding_ucs4):
5848         (decode_coding_utf8):
5849         (decode_coding_iso2022):
5850         (decode_coding_no_conversion):
5851         Make all decoding functions take an Extbyte * arg.
5852         (encode_coding_sjis):
5853         (encode_coding_big5):
5854         (encode_coding_ucs4):
5855         (encode_coding_utf8):
5856         (encode_coding_iso2022):
5857         (encode_coding_no_conversion):
5858         Make all encoding functions take a Bufbyte * arg.
5859         Use size_t instead of unsigned int for memory sizes.
5860         Only cast to unsigned char whenever dereferencing Extbyte *.
5861
5862         * doc.c (unparesseuxify_doc_string): Type correctness.
5863
5864         * console-x.c (split_up_display_spec):
5865         Rewrite without using details of internal string representation.
5866         (x_semi_canonicalize_device_connection): Type correctness.
5867
5868         * config.h.in:
5869         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5870         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5871         (HAVE_XFREE386): Removed.
5872
5873         * buffer.h (DEC_CHARPTR): `const' correctness.
5874         (bufbyte_strcmp): New.
5875         (bufbyte_memcmp): New.
5876
5877         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5878
5879         * buffer.h (XCHAR_OR_CHAR_INT):
5880         Always use inline function.
5881         Remove redundant type checking assert() - XINT will abort quite nicely.
5882
5883 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5884
5885         * search.c (Freplace_match): Set newtext to an empty string.
5886
5887 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5888
5889         * s/decosf1-3.h: Remove #include of stropts.h
5890         * s/ptx.h: Remove #include of stropts.h
5891         * s/usg5-4.h: Remove #include of stropts.h
5892         * sysproc.h:
5893         * config.h.in:
5894         Use stropts.h, not sys/stropts.h.
5895         Use strtio.h, not sys/strtio.h.
5896
5897 2000-10-04  Martin Buchholz <martin@xemacs.org>
5898
5899         * XEmacs 21.2.36 is released.
5900
5901 2000-09-21  Andy Piper  <andy@xemacs.org>
5902
5903         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5904         changes still involve copying the widget tree.
5905         (update_widget_face): make sure a change is register in the widget
5906         tree. Call update_tab_widget_face appropriately.
5907         (update_tab_widget_face): ditto.
5908         (x_tab_control_redisplay): make sure non-structural changes still
5909         involve copying the widget tree.
5910
5911 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5912
5913         * lread.c (locate_file): Check the path element is non-nil.
5914
5915 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5916
5917         * lisp.h: Warning suppression for SCO compilers.
5918
5919         * redisplay-tty.c (reset_tty_modes): Fix crash.
5920         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5921
5922 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5923
5924         Big signal/process handling overhaul.  Bugs fixed:
5925         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5926         M-x comint-kill-subjob should work for both values nil and t of
5927         process-connection-type. It was broken on most platforms.
5928         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5929         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5930         * process-unix.c: Signal/Process handling overhaul.
5931         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5932         (allocate_pty): Use all available modern methods of allocating
5933         ptys, falling back to old style BSD allocation as a last resort.
5934         Use allegedly more secure Unix98 pty allocation by default.
5935         (allocate_pty_the_old_fashioned_way): New. the last resort.
5936         (unix_create_process): Push ptem, ldterm, ttcompat where
5937         available.  Autoconfiscate.
5938         (try_to_initialize_subtty): New.
5939         (unix_kill_child_process): Proper signal handling for ptys on most
5940         platforms, using special knowledge of AIX, BSD, etc...
5941         (unix_create_process): Always disconnect_controlling_terminal() for
5942         subprocesses, whether using ptys or not.
5943         * process.h: Remove old getpt-dependent PTY code.
5944         * process.c (Fprocess_send_signal): New, obvious generic function.
5945         (decode_signal): New.
5946         (Finterrupt_process):
5947         (Fkill_process):
5948         (Fquit_process):
5949         (Fstop_process):
5950         (Fcontinue_process):
5951         (Fsignal_process): Use decode_signal.
5952         (process_send_signal):
5953         Many docstring corrections.
5954         Allow any signal to be sent to a process object.
5955         * config.h.in: Add symbols for big signal/process overhaul.
5956         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5957         * sysproc.h: Include process-related headers, where available:
5958         sys/stropts.h sys/strtio.h pty.h libutil.h
5959         * s/irix4-0.h:
5960         * s/irix5-0.h:
5961         * s/cygwin32.h:
5962         * s/gnu.h:
5963         * s/linux.h:
5964         * s/hpux.h:
5965         * s/aix3-1.h:
5966         Remove old S&M pty stuff.
5967         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5968         * systty.h: Simplify cpp hackery, improve comments.
5969         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5970
5971         * editfns.c (Fformat_time_string):
5972         Be a little more paranoid with the return value of ctime.
5973
5974         * fileio.c (check_executable):
5975         (check_writable):
5976         Use symbolic constants X_OK, W_OK.
5977
5978         * console-x.c (split_up_display_spec): Fix a warning.
5979
5980 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5981
5982         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5983         * ntproc.c (sys_spawnve): make_string ==> build_string
5984         Small clarity improvements.
5985
5986 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5987
5988         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5989
5990         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5991
5992         * config.h.in (HAVE_STRCASECMP): Remove.
5993
5994 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5995
5996         * redisplay-output.c (redisplay_output_pixmap):
5997         Cleaner and possibly more 64-bit correct code.
5998
5999 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6000
6001         * dumper.c (pdump_load_finish): move restoration of
6002         `noninteractive1' to emacs.c (main_1).
6003         * emacs.c (main_1): protect LISP-visible command-line flags
6004         from pdump_load().
6005
6006 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6007
6008         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6009         DUMP_TARGET instead of literal program names.
6010
6011 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6012
6013         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6014
6015 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6016
6017         * *: Spelling mega-patch
6018
6019 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6020
6021         * fns.c (bad_bad_turtle):
6022         Delete "Eek!" comment, since we fixed the bug to which it refers.
6023
6024 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6025
6026         * alloca.c: Replace REGISTER with register.
6027
6028 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6029
6030         * file-coding.c (ucs_to_char): Use countof.
6031
6032 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6033
6034         * file-coding.c: (ucs_to_char):
6035         (complex_vars_of_file_coding):
6036         Use countof instead of sizeof.
6037         Use CHECK_NATNUM instead of CHECK_INT.
6038
6039         * sysdep.c (strcasecmp): Remove.
6040         * device-x.c (ascii_strcasecmp): New.
6041         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6042         Avoid using non-standard non-portable strcasecmp.
6043
6044 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6045
6046         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6047         * font-lock.c: remove reference to emacsfns.h.
6048         * search.c: small doc improvement.
6049         * event-Xt.c: correct file names in comments.
6050         * console-x.h Correct file names in comments.
6051         * frame.c: Correct file names in comments.
6052         * event-stream.c: remove Energize from comments.
6053
6054 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6055
6056         * symeval.h (DEFERROR_STANDARD):
6057         (DEFERROR):
6058         (DEFSYMBOL):
6059         (DEFSYMBOL_NO_DUMP):
6060         (DEFSYMBOL_MULTIWORD_PREDICATE):
6061         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6062         (DEFKEYWORD):
6063         The construct &##name is not sensible C.
6064         Fixes compilation errors with Unixware native compiler.
6065
6066 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6067
6068         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6069         (next_frame_internal): Removed.  We now just have next_frame.
6070         (next_frame):
6071         Write a simpler and cleaner one-pass algorithm.
6072         Remove called_from_delete_device arg and #ifdefed-out code.
6073         (previous_frame):
6074         Renamed from prev_frame.  Update callers.
6075         Cleaned up to have an analogous implementation to next_frame.
6076         (other_visible_frames_internal): Remove the
6077         called_from_delete_device bogus arg, and hence, remove this
6078         function.  Just use other_visible_frames().
6079
6080         * window.c (Fnext_window):
6081         Prettify docstring.
6082         Since next_frame() is guaranteed to return a frame, remove check
6083         for nil inserted in previous patch.
6084         (Fprevious_window):
6085         Prettify docstring.
6086         Make code look more like Fnext_window.
6087         (window_loop):
6088         Respect the `console' arg when iterating through windows.
6089         Fixes bug: (get-buffer-window buffer t device) not respecting
6090         the `device' arg.
6091         This function needs more work, as others have pointed out.
6092
6093         * frame.h: Rename prev_frame to previous_frame.
6094         device_matches_console_spec no longer takes a `frame' arg.
6095
6096         * s/gnu.h:
6097         * s/linux.h:
6098         * s/hpux.h:
6099         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6100         From "Golubev I. N." <gin@mo.msk.ru>.
6101
6102         * make-src-depend: Fix typo.
6103
6104 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6105
6106         * window.c (Fnext_window):
6107         next_frame() might return nil, not a frame.
6108         Fixes this crash:
6109         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6110
6111         * frame.c (next_frame_internal):
6112         We've passed a frame if we've passed its device.
6113         Fixes this crash:
6114         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6115 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6116
6117 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6118
6119         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6120         Allow option to suppress accelerators in menu/dialog items.
6121         (populate_or_checksum_helper): Pass dialog title through above.
6122
6123 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6124
6125         * event-msw.c (mswindows_key_to_emacs_keysym):
6126         Add "pause" key, fix "menu" key.
6127
6128 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6129
6130         * eval.c (reinit_vars_of_eval):
6131         Increase max_lisp_eval_depth to 1000,
6132         required for thai-xtis.el to byte-compile under some circumstances.
6133
6134 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6135
6136         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6137         From Kenichi Handa.
6138
6139 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6140
6141         * make-src-depend: Make the generated Makefiles smaller.
6142
6143         * s/hpux.h (SETUP_SLAVE_PTY):
6144         Provide a %d in the format string for the errno argument.
6145
6146         * editfns.c (Ftemp_directory):
6147         Warning fix.
6148         Avoid buffer overrun on very long file name.
6149
6150         * input-method-xlib.c (XIM_init_device):
6151         6th parameter of XRegisterIMInstantiateCallback has different
6152         pointer types on different OSes, so simply cast to (void *).
6153
6154         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6155
6156         * sysdll.c (dll_open):
6157         shl_load will hang hard if passed a NULL filename.
6158         Simply return NULL for compatibility with dlopen.
6159         * sysdll.c: Conform to XEmacs coding standards.
6160
6161         * sysdep.c (get_pty_max_bytes):
6162         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6163
6164 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6165
6166         * tooltalk.c: Add #include <syssignal.h>
6167
6168 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6169
6170         * s/hpux.h: Don't use undefined function sigunblock().
6171
6172 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6173
6174         * config.h.in: Add HAVE_BALLOON_HELP.
6175         * emacs.c: Use HAVE_BALLOON_HELP.
6176         * Makefile.in.in (x_objs):
6177         Make Balloon Help conditional on finding shape.h.
6178
6179 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6180
6181         * syntax.c (regex_emacs_buffer_p): New variable.
6182         * syntax.h (regex_emacs_buffer_p): extern.
6183         * search.c (looking_at_1):
6184         (string_match_1):
6185         (fast_string_match):
6186         (search_buffer): Set regex_emacs_buffer_p.
6187         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6188         when before_dot, at_dot, after_dot.
6189
6190 2000-08-23  Andy Piper  <andy@xemacs.org>
6191
6192         * gui-x.c (popup_selection_callback): Only set action_occurred
6193         when we really have an image instance.
6194         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6195
6196 2000-08-23  Andy Piper  <andy@xemacs.org>
6197
6198         * gui-msw.c (mswindows_handle_gui_wm_command): set
6199         action_occurred.
6200         * gui-x.c (popup_selection_callback): ditto.
6201
6202         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6203         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6204         (struct Lisp_Image_Instance): add action_occurred flag.
6205
6206         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6207         (image_instance_changed): ditto.
6208         (reset_frame_subwindow_instance_cache): only unmap windows - do
6209         not remove them from the cache also.
6210
6211         * glyphs-widget.c (tab_control_update): better debug.
6212         (progress_gauge_update): ditto.
6213         (layout_update): ditto.
6214         (layout_instantiate): ditto.
6215         (tab_control_order_only_changed): cope with null pending items.
6216
6217         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6218         debug. Force selection of an item when an action occurred. Cope
6219         with null pending_items.
6220         (mswindows_progress_gauge_redisplay): better debug.
6221         * glyphs-x.c (x_tab_control_redisplay): ditto.
6222
6223         * redisplay.c (redisplay_frame): reset the frame cache if the
6224         frame is garbaged.
6225
6226         * window.c (Fset_window_configuration): potentially re-enable
6227         frame cache reset.
6228         (window_unmap_subwindows): need to finalize instances here since
6229         it is only used in mark_window_as_deleted.
6230
6231 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6232
6233         * nas.c (SndOpenDataForReading):
6234         nas.c (WaveOpenDataForReading):
6235         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6236         Somehow escaped from the 2000-08-14 patch.
6237
6238 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6239
6240         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6241         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6242
6243 2000-08-21  Andy Piper  <andy@xemacs.org>
6244
6245         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6246         window if it is not already displayed.
6247
6248         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6249         it is not already displayed.
6250
6251         * window.c (Fset_window_configuration): don't reset the frame
6252         cache.
6253
6254         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6255         instances from the frame cache if we are actually finalizing them.
6256         (reset_frame_subwindow_instance_cache): reset frame cache only
6257         after unmapping everything.
6258         (map_subwindow): set displayed flag after mapping.
6259
6260 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6261
6262         * data.c (indirect_function):
6263         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6264
6265         * eval.c (function_argcount):
6266         Use original function when signaling errors.
6267
6268 2000-08-18  Andy Piper  <andy@xemacs.org>
6269
6270         * frame.c (delete_frame_internal): use new
6271         free_frame_subwindow_instances name.
6272
6273         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6274         (add_tab_item): make return type correct.
6275         (mswindows_tab_control_instantiate): assert index of tab.
6276         (mswindows_tab_control_redisplay): Re-code to use
6277         gui_item_equal_sans_selected and gui_item_list_find_selected.
6278
6279         * glyphs-widget.c (tab_control_update): Correct comment.
6280
6281         * window.c (window_unmap_subwindows): use new
6282         unmap_subwindow_instance_cache_mapper.
6283         (window_unmap_subwindows_cache_mapper): deleted.
6284         (Fset_window_configuration): comparisons should now be with
6285         EQ. Preserve the subwindow instance cache across configuration
6286         changes.
6287         (allocate_window): ditto.
6288         (make_dummy_parent): ditto.
6289
6290         * glyphs.c (free_frame_subwindow_instances): rename from
6291         free_frame_subwindow_instance_cache. finalize all instances rather
6292         than just those in the display cache.
6293         (finalize_all_subwindow_instances): walk windows unmapping and
6294         finalizing subwindows.
6295         (unmap_subwindow_instance_cache_mapper): moved from
6296         window.c. Allow finalization as well as unmapping.
6297
6298         * gui.c (gui_item_list_find_selected): new function.
6299
6300         * gui.h (gui_item_list_find_selected): declare.
6301
6302         * glyphs-x.c (x_tab_control_redisplay): pick tab
6303         explicitly. Re-code to use gui_item_equal_sans_selected and
6304         gui_item_list_find_selected.
6305
6306         * glyphs-x.h: add lwlib-utils.h
6307
6308         * buffer.c (Frecord_buffer): undo previous change.
6309
6310 2000-08-09  Vin Shelton  <acs@xemacs.org>
6311
6312         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6313         possible.  Create temporary files more securely.  The patch was
6314         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6315         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6316         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6317         for details.
6318
6319 2000-08-07  Ben Wing  <ben@xemacs.org>
6320
6321         * getloadavg.c: remove duplicate (and windows-breaking)
6322         includes of fcntl.h and sys/file.h.
6323
6324         * nt.c: remove duplicate getloadavg() definition.
6325
6326         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6327         encodings.
6328
6329 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6330
6331         * eval.c (function_argcount): If function needs to be autoloaded
6332         actually use the loaded definition.
6333         GCPRO function.
6334
6335 2000-08-05  Ben Wing  <ben@xemacs.org>
6336
6337         * getloadavg.c: add prototype for getloadavg().  remove
6338         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6339         of the code).  remove duplicate header includes.
6340
6341         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6342
6343         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6344         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6345         useful load average.
6346
6347         * alloc.c (reinit_alloc_once_early): removed references to
6348         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6349         the lisp vars are the only things referencing the malloc_sbrk_*
6350         vars, and they were already if 0'd out.  these vars only exist
6351         in the older malloc.c, which is basically unused, and they're
6352         only for informational purposes.
6353
6354         * m\*.h: removed useless VIRT_ADDR_VARIES.
6355
6356         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6357
6358 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6359
6360         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6361         color if the image is a mono pixmap.
6362
6363 2000-07-30  Ben Wing  <ben@xemacs.org>
6364
6365         * Makefile.in.in (release):
6366         Remove stray @.
6367
6368         * buffer.c (directory_is_current_directory):
6369         * dired-msw.c (mswindows_get_files):
6370         * dired.c:
6371         * dired.c (Fdirectory_files):
6372         * dired.c (file_name_completion_stat):
6373         * dired.c (Ffile_attributes):
6374         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6375         preprocessor tricks, to avoid problems on some machines
6376         (e.g. SCO).
6377
6378         * callproc.c (egetenv): GC docs.
6379
6380         * console-msw.h:
6381         * console-msw.h (struct mswindows_dialog_id):
6382         * lrecord.h (lrecord_type):
6383         New object for use with MSW dialogs.
6384
6385         * console.h (struct console_methods):
6386         New enable/disable frame methods, for proper modal dialogs.
6387
6388         * device-msw.c (msprinter_default_printer): Fix to follow
6389         proper Mule conventions.
6390
6391         * device-msw.c:
6392         * device-msw.c (signal_open_printer_error):
6393         * device-msw.c (msprinter_init_device):
6394         * device-msw.c (ensure_not_printing):
6395         * device-msw.c (plist_get_margin):
6396         * device-msw.c (Fmsprinter_select_settings):
6397         * device-msw.c (finalize_devmode):
6398         * device-msw.c (Fmsprinter_settings_despecialize):
6399         * device-msw.c (signal_enum_priner_error):
6400         * extents.c (decode_extent):
6401         * extents.c (decode_map_extents_flags):
6402         * extents.c (decode_extent_at_flag):
6403         * extents.c (Fextent_at):
6404         * extents.c (Fextents_at):
6405         * extents.c (symbol_to_glyph_layout):
6406         [[[[2]]]] Use structured errors.
6407
6408         * dialog-msw.c:
6409         * dialog-msw.c (mswindows_is_dialog_msg):
6410         * dialog-msw.c (mark_mswindows_dialog_id):
6411         * dialog-msw.c (dialog_proc):
6412         * dialog-msw.c (handle_question_dialog_box):
6413         * dialog-msw.c (syms_of_dialog_mswindows):
6414         Define new object to clean up marking; use it as a dialog identifier.
6415         Call new delete-dialog-box-hook.
6416
6417         * dialog-x.c (dbox_selection_callback):
6418         * dialog-x.c (dbox_descriptor_to_widget_value):
6419         * dialog-x.c (x_make_dialog_box_internal):
6420         Call new delete-dialog-box-hook.
6421         Return an id.
6422
6423         * dialog.c:
6424         * dialog.c (syms_of_dialog):
6425         * dialog.c (vars_of_dialog):
6426         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6427
6428         * eval.c:
6429         * eval.c (signal_call_debugger):
6430         when noninteractive, output stack traces on the console instead
6431         of in a (never-seen) buffer.
6432
6433         * eval.c (signal_type_error):
6434         * eval.c (invalid_argument_2):
6435         * lisp.h:
6436         new funs for use w/structured errors.
6437
6438         * event-Xt.c:
6439         * event-Xt.c (x_to_emacs_keysym):
6440         * event-Xt.c (describe_event):
6441         * event-Xt.c (emacs_Xt_event_handler):
6442         * event-Xt.c (vars_of_event_Xt):
6443         * event-msw.c:
6444         * event-msw.c (mswindows_wnd_proc):
6445         * event-msw.c (vars_of_event_mswindows):
6446         rename {x,mswindows}-debug-events to debug-{}-events for
6447         consistency with other debug-foo variables.
6448
6449         * event-stream.c:
6450         document next-event more clearly.
6451
6452         * fileio.c (Ffile_name_directory):
6453         * fileio.c (Ffile_name_nondirectory):
6454         * fileio.c (Funhandled_file_name_directory):
6455         * fileio.c (file_name_as_directory):
6456         * fileio.c (Ffile_name_as_directory):
6457         * fileio.c (directory_file_name):
6458         * fileio.c (Fdirectory_file_name):
6459         * fileio.c (Fmake_temp_name):
6460         * fileio.c (Ffile_truename):
6461         * fileio.c (Fsubstitute_in_file_name):
6462         * fileio.c (expand_and_dir_to_file):
6463         * fileio.c (barf_or_query_if_file_exists):
6464         * fileio.c (check_executable):
6465         * fileio.c (Ffile_exists_p):
6466         * fileio.c (Ffile_writable_p):
6467         * fileio.c (Ffile_directory_p):
6468         * fileio.c (Ffile_regular_p):
6469         * fileio.c (Ffile_modes):
6470         * fileio.c (Ffile_newer_than_file_p):
6471         * fileio.c (Fverify_visited_file_modtime):
6472         * fileio.c (Fset_visited_file_modtime):
6473         * fileio.c (auto_save_1):
6474         (1). (2).
6475         fix up gcpro's.
6476
6477         * frame-msw.c:
6478         * frame-msw.c (mswindows_init_frame_1):
6479         * frame-msw.c (mswindows_enable_frame):
6480         * frame-msw.c (error_frame_unsizable):
6481         * frame-msw.c (msprinter_init_frame_1):
6482         * frame-msw.c (msprinter_init_frame_3):
6483         * frame-msw.c (console_type_create_frame_mswindows):
6484         (2).
6485         implement new enable/disable frame methods.
6486
6487         * frame-x.c:
6488         * frame-x.c (x_enable_frame):
6489         * frame-x.c (console_type_create_frame_x):
6490         implement new enable/disable frame methods.
6491
6492         * frame.c:
6493         * frame.c (Fdisable_frame):
6494         * frame.c (syms_of_frame):
6495         * frame.h (struct frame):
6496         implement new enable/disable frame methods/functions.
6497
6498         * general-slots.h:
6499         add initial-focus.
6500
6501         * glyphs-msw.c (mswindows_widget_instantiate):
6502         comment that initial-focus should be implemented.
6503
6504         * glyphs-widget.c:
6505         * glyphs-widget.c (check_valid_instantiator):
6506         * glyphs-widget.c (check_valid_orientation):
6507         * glyphs-widget.c (check_valid_tab_orientation):
6508         * glyphs-widget.c (check_valid_justification):
6509         * glyphs-widget.c (check_valid_border):
6510         * glyphs-widget.c (check_valid_callback):
6511         * glyphs-widget.c (check_valid_int_or_function):
6512         * glyphs-widget.c (check_valid_string_or_vector):
6513         * glyphs-widget.c (check_valid_item_list_1):
6514         * glyphs-widget.c (widget_validate):
6515         * glyphs-widget.c (combo_box_validate):
6516         * glyphs-widget.c (widget_instantiate):
6517         * glyphs-widget.c (syms_of_glyphs_widget):
6518         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6519         * glyphs-widget.c (image_instantiator_combo_box):
6520         * glyphs-widget.c (image_instantiator_scrollbar):
6521         * glyphs-widget.c (image_instantiator_tab_control):
6522         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6523         (2).
6524         support (unimplemented) keyword initial-focus.
6525         reindent long macros.
6526
6527         * glyphs-x.c (x_redisplay_widget):
6528         * glyphs-x.c (x_button_instantiate):
6529         * glyphs-x.c (x_button_redisplay):
6530         * glyphs-x.c (x_progress_gauge_instantiate):
6531         * glyphs-x.c (x_edit_field_instantiate):
6532         * glyphs-x.c (x_combo_box_instantiate):
6533         * glyphs-x.c (x_tab_control_instantiate):
6534         * glyphs-x.c (x_label_instantiate):
6535         * gui-x.c:
6536         * gui-x.c (button_item_to_widget_value):
6537         * gui-x.c (gui_items_to_widget_values_1):
6538         * gui-x.c (gui_item_children_to_widget_values):
6539         * gui-x.c (gui_items_to_widget_values):
6540         * gui-x.h:
6541         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6542         add new flag to gui-parsing routines to indicate whether
6543         accelerator specs should be supported.
6544
6545         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6546
6547         * glyphs.h (struct Lisp_Image_Instance):
6548         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6549         add initial-focus flag.
6550
6551         * gui.c:
6552         * gui.c (syms_of_gui):
6553         * gui.c (vars_of_gui):
6554         clean up menu-no-selection-hook.
6555
6556         * gui.h:
6557         support delete-dialog-box-hook.
6558
6559         * lread.c (Fload_internal):
6560         * lread.c (locate_file_in_directory_mapper):
6561         (1).
6562
6563         * lrecord.h:
6564         * lrecord.h (struct toolbar_button):
6565         * lrecord.h (syms_of_toolbar):
6566         document how to create a new object.
6567
6568         * menubar-msw.c (mswindows_char_is_accelerator):
6569         may be called on frames w/o menus.
6570
6571         * menubar.c (vars_of_menubar):
6572         clean up :filter docs.
6573
6574         * nt.c (readdir):
6575         * ntproc.c:
6576         (1).
6577
6578         * process-nt.c:
6579         * process-nt.c (validate_signal_number):
6580         * process-nt.c (signal_cannot_launch):
6581         * process-nt.c (nt_create_process):
6582         * process-nt.c (nt_send_process):
6583         * process-nt.c (nt_kill_child_process):
6584         * process-nt.c (nt_open_network_stream):
6585         * process-nt.c (syms_of_process_nt):
6586         (2).
6587         delete quote-handling.  call new lisp code that does it better.
6588
6589         * process-unix.c (connect_to_file_descriptor):
6590         * process-unix.c (allocate_pty):
6591         * process-unix.c (unix_send_process):
6592         * process-unix.c (unix_kill_child_process):
6593         * process-unix.c (unix_open_network_stream):
6594         * process-unix.c (unix_open_multicast_group):
6595         (1). (2).
6596
6597         * process.c:
6598         * process.c (Fstart_process_internal):
6599         (2).  need to canonicalize process path even if absolute.
6600
6601         * select-msw.c (symbol_to_ms_cf):
6602         * select-msw.c (ms_cf_to_symbol):
6603         * select-msw.c (cf_is_autofreed):
6604         * select-msw.c (mswindows_destroy_selection):
6605         * select.c:
6606         * select.c (syms_of_select):
6607         * select.h:
6608         support dibv5, fix bugs. (from Mike Alexander)
6609
6610         * select.c (Fget_selection_internal):
6611         * select.c (select_convert_out):
6612
6613         * sysdep.c:
6614         * sysdep.c (xemacs_stat):
6615         renamed.
6616
6617         * sysdep.c (mkdir):
6618         * sysdep.c (rmdir):
6619         but keep original stat() here because we provide encapsulation
6620         around these funs.
6621
6622         * sysfile.h:
6623         * sysfile.h (fstat):
6624         remove stat garbage.
6625
6626         * syswindows.h:
6627         fix X/MSW conflict.
6628         don't include tchar.h.  it's inappropriate because it makes
6629         compile-time distinctions when we want runtime distinctions.
6630         (we provide our own tchar replacements)
6631
6632         * toolbar.c:
6633         use default object printer for toolbar-button.
6634
6635         * unexcw.c:
6636         make sure we don't encapsulate.
6637
6638         * window.c (vars_of_window):
6639         emphasize that temp-buffer-show-hook is obsolete.
6640
6641 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6642
6643         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6644         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6645
6646         * events.c (Fevent_timestamp_lessp):
6647         Not 64-bit clean.  Use EMACS_INT, not int.
6648
6649 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6650
6651         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6652         unsigned int and changed the last enum to
6653         lrecord_type_last_built_in_type.
6654         (lrecord_implementations_table): changed prototype to know how
6655         long the array is supposed to be.
6656         (lrecord_type_count): new unsigned int to keep track of the
6657         current number of lisp lrecord types.
6658         (DEFINE_EXTERNAL_LRECORD):
6659         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6660         dynamic-modules to declare new lisp types. They are the same
6661         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6662         int for each new type, and increment lrecord_type_count by 1.
6663
6664         * alloc.c (lrecord_implementations_table): Changed to reference
6665         lrecord_type_last_built_in_type for the size of the array.
6666         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6667
6668 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6669
6670         * glyphs.h (check_valid_item_list): Renamed from
6671         check_valid_item_list_1.
6672
6673 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6674
6675         * select.c (Qselect_coerce): New.
6676         * select.c (Vselection_coercion_alist): New.
6677         * select.c (syms_of_select): Declare.
6678         * select.c (get-selection-internal): Use it.
6679         Use the new select-coerce functionality.
6680
6681         * select.c (select_coerce): New.
6682         * select.h (select_coerce): Declare.
6683         New function to coerce one type of data into another.
6684
6685 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6686
6687         * callproc.c (Fcall_process_internal):
6688         (Fcall_process_internal):
6689         * process-unix.c (unix_create_process):
6690         Save and restore the value of errno, so that error messages are accurate.
6691
6692 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6693
6694         * elhash.c (print_hash_table):
6695         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6696         Prettify docstrings and indentation.
6697
6698 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6699
6700         * window.c (Fwindow_pixel_edges): Subtract frame border and
6701         gutter size.
6702
6703 2000-07-31  Andy Piper  <andy@xemacs.org>
6704
6705         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6706         will acknowledge the change.
6707
6708         * glyphs.h: declare tab_control_order_only_changed.
6709
6710         * glyphs-x.c (x_tab_control_redisplay): use
6711         tab_control_order_only_changed.
6712
6713         * glyphs-widget.c (tab_control_order_only_changed): new function.
6714
6715         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6716         tab_control_order_only_changed.
6717
6718         * gui.c (gui_item_equal_sans_selected): new function.
6719         (gui_item_equal): use it.
6720
6721         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6722         :properties in favor of :items..
6723
6724         * glyphs-widget.c (check_valid_item_list): rename from
6725         check_valid_item_list_1.
6726         (check_valid_item_list_1): renamed.
6727         (combo_box_validate): deprecate :properties in favor of :items.
6728         (widget_instantiate): ditto.
6729         (tab_control_update): ditto.
6730         (image_instantiator_combo_box): ditto.
6731         (image_instantiator_tree_view): ditto.
6732         (image_instantiator_tab_control): ditto.
6733         (layout_post_instantiate): remove dead code.
6734
6735         * print.c (debug_print_no_newline): only write to debugger if in
6736         WIN32_NATIVE.
6737
6738         * elhash.c (Fmake_hash_table): update doc string.
6739
6740         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6741         messages whilst in GC. This at least stops XEmacs crashing but has
6742         the potential for wierd behaviour.
6743
6744 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6745
6746         * config.h.in:
6747         Make existence of s&m files optional.
6748
6749         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6750         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6751         * s/gnu.h: Remove HAVE_GETLOADAVG.
6752         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6753         * s/sol2.h: Remove HAVE_GETLOADAVG.
6754         * lisp.h: Remove getloadavg() declaration.
6755         * fns.c:
6756         Include <sys/loadavg.h> if available.
6757         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6758         * config.h.in:  Group together getloadavg()-related macros.
6759         Use only configure-time tests to detect getloadavg().
6760
6761 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6762
6763         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6764
6765 2000-07-25  Andy Piper  <andy@xemacs.org>
6766
6767         * syswindows.h: add tchar.h for native builds.
6768
6769         * frame.c (syms_of_frame): remove set-glyph-image.
6770
6771         * general-slots.h: add Qset_glyph_image.
6772
6773         * glyphs-widget.c (layout_update): add domain arg to
6774         set-glyph-image.
6775         (syms_of_glyphs_widget): remove set-glyph-image.
6776
6777 2000-07-23  Ben Wing  <ben@xemacs.org>
6778
6779         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6780         Vpopup_frame_list.
6781
6782 2000-07-22  Andy Piper  <andy@xemacs.org>
6783
6784         * symsinit.h: add syms_of_win32().
6785
6786         * gui-msw.c (syms_of_gui_mswindows): remove
6787         Fmswindows_shell_execute.
6788         (Fmswindows_shell_execute): moved to win32.c.
6789
6790         * emacs.c (main_1): add syms_of_win32 ().
6791
6792         * win32.c (init_potentially_nonexistent_functions): rewrite in
6793         compiler-friendly terms.
6794         (Fmswindows_shell_execute): move here from gui-msw.c.
6795         (syms_of_win32): new.
6796
6797         * device-msw.c (Fmswindows_printer_list): clean up args to
6798         EnumPrinters.
6799         Don't include tchar under cygwin or mingw.
6800         (msprinter_default_printer): make cygwin-friendly.
6801
6802 2000-07-21  Andy Piper  <andy@xemacs.org>
6803
6804         * glyphs-widget.c (image_instantiator_tree_view): use tab
6805         control's update function.
6806         (layout_property): new function. Retrieve items.
6807
6808         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6809         function. Re-populate the tree view from the pending items.
6810
6811         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6812         is designated the parent if the domain is an image instance. This
6813         is needed so that dirtiness can be cascade up the hierarchy and
6814         thus for layout children to be redisplayed correctly.
6815         (allocate_image_instance): rename glyph -> parent.
6816
6817         * redisplay.h: change redisplay_output_layout signature.
6818
6819         * redisplay-msw.c (mswindows_output_display_block): use domain
6820         arg.
6821
6822         * redisplay-x.c (x_output_display_block): use domain arg.
6823
6824 2000-07-10  Andy Piper  <andy@xemacs.org>
6825
6826         * window.c (Fset_window_configuration): add comment.
6827
6828         * redisplay-output.c (compare_runes):
6829         (redisplay_output_subwindow): redisplay rather than update subwindow.
6830         (redisplay_output_layout): ditto.
6831
6832         * redisplay-msw.c (mswindows_frame_output_end):
6833         (mswindows_frame_output_end): make defer window pos optional.
6834
6835         * lisp.h: add Flast.
6836
6837         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6838         normalize method. Change update method to be for changed
6839         instantiators. Add redisplay method. Change signature of layout
6840         method.
6841         (struct Lisp_Image_Instance): add instantiator.
6842         (IMAGE_INSTANCE_INSTANTIATOR): new.
6843         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6844         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6845         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6846
6847         * glyphs.c:
6848         (find_instantiator_differences): new function.
6849         (Fset_instantiator_property): new convenience function.
6850         (check_image_instance_structure): strictly check for vector
6851         instantiators.
6852         (normalize_image_instantiator): make non-static.
6853         (instantiate_image_instantiator): pass on dest_mask and use new
6854         signatures for image_instance_layout and friends.
6855         (mark_image_instance): mark the instantiator. Mark the subwindow
6856         face not the widget face.
6857         (image_instance_equal): add instantiator.
6858         (image_instance_hash): ditto.
6859         (allocate_image_instance): ditto.
6860         (Fset_image_instance_property): removed.
6861         (Fimage_instance_file_name): ditto.
6862         (Fcolorize_image_instance): ditto.
6863         (image_instance_layout): add offsets to be set.
6864         (update_image_instance): new function. update an image instance
6865         from its changed instantiator.
6866         (inherit_normalize): add dest_mask.
6867         (xbm_normalize): ditto.
6868         (xface_normalize): ditto.
6869         (xpm_normalize): ditto.
6870         (text_update): set_property -> update.
6871         (image_instantiate): use the glyph identity as a hash key, not the
6872         instantiator.
6873         (glyph_width): use new image_instance_layout signature.
6874         (glyph_ascent): ditto.
6875         (glyph_descent): ditto.
6876         (glyph_height): ditto.
6877         (glyph_query_geometry): ressurrect.
6878         (glyph_layout): ditto.
6879         (redisplay_subwindow): update -> redisplay.
6880         (syms_of_glyphs): add Fset_instantiator_property.
6881         (image_instantiator_format_create): set_property -> update.
6882
6883         * glyphs-x.c:
6884         (autodetect_normalize): add dest_maks to signature.
6885         (x_redisplay_subwindow): update -> redisplay.
6886         (x_redisplay_widget): ditto.
6887         (x_button_redisplay): ditto.
6888         (x_progress_gauge_redisplay): ditto.
6889         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6890         stacking order.
6891         (console_type_create_glyphs_x): update -> redisplay.
6892         (image_instantiator_format_create_glyphs_x): ditto.
6893
6894         * glyphs-widget.c:
6895         (check_valid_instantiator): disallow glyphs in the instantiator,
6896         they must now be vectors.
6897         (check_valid_instantiator_list): ditto.
6898         (glyph_instantiator_to_glyph): use internal symbol rather than
6899         intern.
6900         (widget_update): renamed from widget_set_property. Call cascaded
6901         update methods.
6902         (redisplay_widget): renamed from update_widget.
6903         (widget_layout): image_instance_layout now takes position as well
6904         as size.
6905         (widget_normalize): ditto.
6906         (widget_instantiate): ditto.
6907         (tab_control_query_geometry) ditto.:
6908         (tab_control_update): renamed from tab_control_set_property.
6909         (progress_gauge_update): set_property -> update.
6910         (layout_normalize): rewrite so that child instantiators are
6911         normalized also.
6912         (layout_update): new function. Create glyphs from the normalized
6913         children and cope with any other layout keywords. We do not
6914         instantiate children here that will be take care of by
6915         redisplay_output_layout.
6916         (layout_instantiate): call layout_update and not much else.
6917         (layout_post_instantiate): not sure whether this is needed
6918         anymore.
6919         (layout_query_geometry): query glyph geometry rather than
6920         image_instance geometry.
6921         (layout_layout): set offsets from pass in parameters. Use glyph
6922         geometry and layout functions rather than image instance ones.
6923         (native_layout_layout): ditto.
6924         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6925         (image_instantiator_widget): set_property -> update.
6926         (image_instantiator_buttons): ditto.
6927         (image_instantiator_progress_guage): ditto.
6928         (image_instantiator_tab_control): ditto.
6929         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6930         (image_instantiator_layout): add update method.
6931
6932         * glyphs-msw.c (bmp_normalize):
6933         (mswindows_resource_normalize): add dest_mask so that it can be
6934         proprogated by layout_normalize.
6935         (begin_defer_window_pos): make optional because it may not be the
6936         right thing to do and it introduces differences with X.
6937         (mswindows_unmap_subwindow): ditto.
6938         (mswindows_map_subwindow): ditto.
6939         (mswindows_redisplay_subwindow): renamed from
6940         mswindows_update_subwindow.
6941         (mswindows_redisplay_widget): ditto.
6942         (mswindows_button_redisplay): renamed from
6943         mswindows_button_update. Update is now what the instantiation
6944         function does for a changed instantiator.
6945         (mswindows_progress_gauge_instantiate): set the progress value
6946         here if appropriate.
6947         (mswindows_tab_control_redisplay): cope with re-ordering of the
6948         members of the tab widget by simply selecting the new top
6949         widget. This makes things appear ok if you click on a tab.
6950         (mswindows_combo_box_instantiate): image_instance_layout now takes
6951         position as well as size.
6952         (mswindows_progress_gauge_redisplay): renamed from
6953         mswindows_progress_gauge_update.
6954         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6955         (image_instantiator_format_create_glyphs_mswindows): ditto.
6956
6957         * glyphs-eimage.c (jpeg_normalize):
6958         (gif_normalize):
6959         (png_normalize):
6960         (tiff_normalize): add dest_mask so that it can be proprogated by
6961         layout_normalize.
6962
6963         * elhash.c:
6964         (print_hash_table):
6965         (hash_table_weakness_validate):
6966         (decode_hash_table_weakness):
6967         (Fhash_table_weakness):
6968         (Fhash_table_type):
6969         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6970
6971         * console.h (struct console_methods): move update_* to
6972         redisplay_*.
6973
6974 2000-07-20  Ben Wing  <ben@xemacs.org>
6975
6976         * *.[ch] (XSETOBJ): remove unused middle argument.
6977         lisp-disunion.h: correct wrap_object() to one argument.
6978
6979 2000-07-15  Ben Wing  <ben@xemacs.org>
6980
6981         * s/cygwin32.h:
6982         * s/cygwin32.h (CYGWIN_CONV_PATH):
6983         Add missing logb prototype for v1.1.
6984         Use post-b20 names and alias to pre-b20 names when pre-b20.
6985
6986         * s/windowsnt.h: [5].
6987
6988 2000-07-15  Ben Wing  <ben@xemacs.org>
6989
6990         * Makefile.in.in (x_objs):
6991         * Makefile.in.in (sheap_objs):
6992         * Makefile.in.in (objs):
6993         added win32.o, cosmetic cleanups.
6994
6995         * alloc.c (Fmake_byte_code):
6996         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6997         etc. macros which declare their own args now.
6998
6999         * alloc.c (syms_of_alloc):
7000         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7001
7002         * buffer.c:
7003         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7004
7005         * buffer.c (Fget_file_buffer):
7006         Fixed GCPRO problem.
7007
7008         * buffer.c (get_truename_buffer):
7009         Fixed comment about GC checking.
7010
7011         * buffer.c (syms_of_buffer):
7012         Undeclared those dedicated frame funs.
7013         [2].
7014
7015         * buffer.h:
7016         Define convenience macros for internal/external conversions.
7017         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7018         and Qenvironment_variable_encoding for cleaner code.
7019
7020         * bufslots.h:
7021         Remove dedicated-frame; in lisp.
7022
7023         * bytecode.c (funcall_compiled_function):
7024         [1].
7025
7026         * bytecode.c (syms_of_bytecode):
7027         [2].
7028
7029         * console-msw.c:
7030         * console-msw.c (mswindows_show_console): Rewrote.
7031
7032         * console-msw.c (Fmswindows_debugging_output): New.
7033         Sends to OutputDebugString (special MSWin debugger interface).
7034
7035         * console-msw.c (Fmswindows_message_box):
7036         Fixed stupid bugs so it works when called from kill-emacs.
7037
7038         * console-msw.c (syms_of_console_mswindows):
7039         Declare Fmswindows_debugging_output.
7040
7041         * console-msw.h:
7042         New MSWin prototypes.
7043
7044         * console-msw.h (struct mswindows_frame):
7045         New entry last-click-mods for improved button-modifier support.
7046
7047         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7048         New struct entry `popup' with corresponding accessor.
7049
7050         * console-x.c:
7051         * console-x.c (split_up_display_spec):
7052         * console-x.c (get_display_arg_connection):
7053         * console-x.c (x_semi_canonicalize_console_connection):
7054         * console-x.c (x_canonicalize_device_connection):
7055         [[[6]]]: Change char to more specific type.
7056         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7057
7058         * console-x.c (x_semi_canonicalize_console_connection):
7059         * console-x.c (x_canonicalize_device_connection):
7060         [[[9]]]: Fix up error signalling to use new structured error system.
7061
7062         * console-x.h:
7063         [[[4]]]: Define codesys aliases:
7064         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7065         Qx_color_name_encoding, Qx_display_name_encoding.
7066
7067         * console.h (struct console_methods):
7068         New method make_dialog_box_internal supersedes older
7069         popup_dialog_box method.
7070
7071         * data.c:
7072         Define many new errors, part of new structured errors.
7073
7074         * data.c (init_errors_once_early):
7075         * data.c (syms_of_data):
7076         [2].
7077
7078         * device-msw.c (mswindows_init_device):
7079         [[[5]]]: Cleanup to support NT 3.51.
7080
7081         * device-msw.c (decode_devmode): Cleanup.
7082
7083         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7084         * device-msw.c (mswindows_handle_print_dialog_box):
7085         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7086         * device-msw.c (syms_of_device_mswindows):
7087         Delete the dialog box primitives recently introduced by Kirill and
7088         instead interface to general dialog box interface.
7089
7090         * device-x.c:
7091         * device-x.c (compute_x_app_name):
7092         * device-x.c (x_init_device):
7093         * device-x.c (Fx_valid_keysym_name_p):
7094         * device-x.c (Fx_set_font_path):
7095         [6].
7096         [7].
7097
7098         * device.h (wrap_device): New.
7099         First of its kind; meant to replace XSETDEVICE.
7100
7101         * dialog-msw.c: Many file-dialog symbols.
7102
7103         * dialog-msw.c (mswindows_register_popup_frame): New.
7104         * dialog-msw.c (mswindows_is_dialog_msg): New.
7105         For supporting kbd traversal in dialog boxes.
7106
7107         * dialog-msw.c (dialog_proc):
7108         Support hitting ESC in dialogs.
7109
7110         * dialog-msw.c (struct):
7111         Common dialog box errors.
7112
7113         * dialog-msw.c (handle_file_dialog_box): New.
7114         Add file dialog code.
7115
7116         * dialog-msw.c (handle_question_dialog_box):
7117         Redo existing code to support new question dialog syntax.
7118
7119         * dialog-msw.c (console_type_create_dialog_mswindows):
7120         We support new dialog console method.
7121
7122         * dialog-msw.c (syms_of_dialog_mswindows):
7123         * dialog-msw.c (vars_of_dialog_mswindows):
7124         New file dialog symbols, vars.
7125
7126         * dialog-x.c:
7127         * dialog-x.c (maybe_run_dbox_text_callback):
7128         * dialog-x.c (dbox_descriptor_to_widget_value):
7129         * dialog-x.c (x_make_dialog_box_internal):
7130         * dialog-x.c (console_type_create_dialog_x):
7131         Mule-ize entire file.
7132         Redo to support question dialog syntax.
7133         [6].
7134
7135         * dialog.c:
7136         * dialog.c (Fmake_dialog_box_internal):
7137         * dialog.c (syms_of_dialog):
7138         Kill old popup-dialog-box, replace with new primitive.
7139         Just call device method or signal error.
7140
7141         * eldap.c (Fldap_open):
7142         * eldap.c (Fldap_search_basic):
7143         * eldap.c (Fldap_add):
7144         * eldap.c (Fldap_modify):
7145         [1].
7146         [7].
7147
7148         * emacs.c:
7149         * emacs.c (make_arg_list_1):
7150         * emacs.c (make_arg_list):
7151         Mule-ize call to dll_init().
7152         [6].
7153         [8].
7154
7155         * emacs.c (make_argc_argv):
7156         * emacs.c (free_argc_argv):
7157         * emacs.c (init_cmdargs):
7158         * emacs.c (main_1):
7159         * emacs.c (Fkill_emacs):
7160         * emacs.c (Fdump_emacs):
7161         Update comments about what can be used in syms_* etc.
7162         Call init_win32() when necessary.
7163         Fix up MS Win dialog box in kill-buffer to actually work right.
7164         [7].
7165
7166         * eval.c:
7167         * eval.c (For):
7168         * eval.c (Fand):
7169         * eval.c (Fprogn):
7170         * eval.c (Fprog1):
7171         * eval.c (Fprog2):
7172         * eval.c (FletX):
7173         * eval.c (Flet):
7174         * eval.c (condition_case_3):
7175         * eval.c (Feval):
7176         * eval.c (function_argcount):
7177         * eval.c (funcall_lambda):
7178         [1].
7179
7180         * eval.c (type_error): New.
7181         * eval.c (maybe_type_error): New.
7182         * eval.c (continuable_type_error): New.
7183         * eval.c (maybe_continuable_type_error): New.
7184         * eval.c (type_error_with_frob): New.
7185         * eval.c (maybe_type_error_with_frob): New.
7186         * eval.c (continuable_type_error_with_frob): New.
7187         * eval.c (maybe_continuable_type_error_with_frob): New.
7188         New functions for use with structured errors.
7189
7190         * event-Xt.c:
7191         * event-Xt.c (x_event_to_emacs_event):
7192         Buttons are now modifiers too.
7193
7194         * event-Xt.c (emacs_Xt_current_event_timestamp):
7195         Implement new event method.
7196         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7197
7198         * event-msw.c:
7199         * event-msw.c (ntpipe_shove_writer): [5].
7200         * event-msw.c (mswindows_enqueue_mouse_button_event):
7201         * event-msw.c (mswindows_drain_windows_queue):
7202         * event-msw.c (mswindows_wnd_proc): [7].
7203         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7204         * event-msw.c (mswindows_modifier_state):
7205         Throughout: support new button modifiers.
7206
7207         * event-msw.c (emacs_mswindows_current_event_timestamp):
7208         Implement new event method.
7209         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7210
7211         * event-stream.c:
7212         * event-stream.c (event_stream_current_event_timestamp): New.
7213         * event-stream.c (maybe_kbd_translate): New functionality.
7214         * event-stream.c (vars_of_event_stream):
7215         Document new kbd-translate-table functionality.
7216
7217         * event-stream.c (Fcurrent_event_timestamp): New.
7218         New primitive for use in fabricated events.
7219         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7220
7221         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7222
7223         * events.c:
7224         * events.c (Fmake_event):
7225         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7226         [1].
7227         [9].
7228
7229         * events.c (format_event_object): fix gcc warnings.
7230
7231         * events.c (Fevent_timestamp): Document new primitives.
7232
7233         * events.c (TIMESTAMP_HALFSPACE): New.
7234
7235         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7236         comparing timestamps correctly (half-space algorithm).
7237
7238         * events.c (Fevent_modifier_bits): Doc fix.
7239
7240         * events.c (Fevent_modifiers): Major doc addition.
7241         * events.c (event_x_y_pixel_internal): Typo fix.
7242         * events.c (syms_of_events): Declare new primitives.
7243
7244         * events.h:
7245         Update long comment for button modifiers, timestamps.
7246
7247         * events.h (struct event_stream):
7248         New current_event_timestamp method.
7249
7250         * extents.c:
7251         * extents.c (extent_in_region_p):
7252         * extents.c (decode_extent):
7253         * extents.c (Fset_extent_parent):
7254         * extents.c (decode_map_extents_flags):
7255         Fix gcc warnings.
7256         [9].
7257
7258         * extents.c (struct extent_at_arg):
7259         * extents.c (decode_extent_at_flag):
7260         * extents.c (extent_at_mapper):
7261         * extents.c (extent_at_bytind):
7262         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7263         * extents.c (Fextents_at): New primitive. [9].
7264         * extents.c (symbol_to_glyph_layout): [9].
7265         Support new primitive `extents-at'.
7266
7267
7268         * extents.c (get_text_property_bytind):
7269         extent_at_bytind has another arg.
7270         [9].
7271
7272         * extents.c (syms_of_extents): New primitive.
7273
7274         * file-coding.c (Fmake_coding_system): [1].
7275         * file-coding.c (subsidiary_coding_system): fix gcc warning
7276         * file-coding.c (syms_of_file_coding): [2].
7277
7278         * fileio.c (Fexpand_file_name):
7279         * fileio.c (Fsysnetunam):
7280         * fileio.c (Ffile_exists_p):
7281         * fileio.c (Ffile_executable_p):
7282         * fileio.c (Fverify_visited_file_modtime):
7283         Clean up GCPROing.
7284
7285         * fileio.c (syms_of_fileio): [2].
7286
7287         * filelock.c (lock_file_1):
7288         * filelock.c (current_lock_owner):
7289         * filelock.c (lock_if_free):
7290         * filelock.c (lock_file):
7291         * filelock.c (unlock_file):
7292         Clean up GCPROing.
7293
7294         * fns.c (concat): Fix gcc warning.
7295
7296         * fns.c (Fmember):
7297         * fns.c (Fold_member):
7298         * fns.c (Fmemq):
7299         * fns.c (Fold_memq):
7300         * fns.c (memq_no_quit):
7301         * fns.c (Fassoc):
7302         * fns.c (Fold_assoc):
7303         * fns.c (Fassq):
7304         * fns.c (Fold_assq):
7305         * fns.c (assq_no_quit):
7306         * fns.c (Frassoc):
7307         * fns.c (Fold_rassoc):
7308         * fns.c (Frassq):
7309         * fns.c (Fold_rassq):
7310         * fns.c (rassq_no_quit):
7311         * fns.c (Fdelete):
7312         * fns.c (Fold_delete):
7313         * fns.c (Fdelq):
7314         * fns.c (Fold_delq):
7315         * fns.c (delq_no_quit):
7316         * fns.c (Fremassoc):
7317         * fns.c (Fremassq):
7318         * fns.c (remassq_no_quit):
7319         * fns.c (Fremrassoc):
7320         * fns.c (Fremrassq):
7321         * fns.c (remrassq_no_quit):
7322         * fns.c (Freverse):
7323         * fns.c (mapcar1):
7324         [1].
7325
7326         * frame-msw.c (mswindows_init_frame_1):
7327         * frame-msw.c (mswindows_delete_frame):
7328         Register popups with dialog code so keyboard traversing works.
7329
7330         * frame-tty.c (tty_raise_frame_no_select): [1].
7331
7332         * frame-x.c:
7333         * frame-x.c (x_set_frame_text_value):
7334         * frame-x.c (x_set_frame_properties):
7335         * frame-x.c (x_create_widgets):
7336         [7].
7337
7338         * frame.c:
7339         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7340
7341         * frame.h (wrap_frame): New.
7342         Macro like wrap_device.
7343
7344         * general.c:
7345         * general.c (SYMBOL):
7346         * general.c (syms_of_general):
7347         Major reorg.  This is now just a wrapper and symbols themselves
7348         are listed in general-slots.h.
7349
7350         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7351         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7352
7353         * glyphs-msw.c (mswindows_native_layout_instantiate):
7354         Add DS_CONTROL so keyboard traversal will work.
7355
7356         * glyphs-widget.c:
7357         * glyphs-widget.c (syms_of_glyphs_widget):
7358         Move some symbols to general-slots.h.
7359
7360         * glyphs-x.c:
7361         * glyphs-x.c (xbm_instantiate_1):
7362         * glyphs-x.c (x_xbm_instantiate):
7363         * glyphs-x.c (x_xface_instantiate):
7364         * glyphs-x.c (autodetect_instantiate):
7365         * glyphs-x.c (cursor_font_instantiate):
7366         * glyphs-x.c (x_update_widget):
7367         * glyphs-x.c (x_widget_instantiate):
7368         * glyphs.c (bitmap_to_lisp_data):
7369         * glyphs.c (pixmap_to_lisp_data):
7370         [7].
7371
7372         * glyphs.c (syms_of_glyphs):
7373         [2].
7374
7375         * gui-x.c:
7376         * gui-x.c (print_widget_value):
7377         * gui-x.c (menu_separator_style_and_to_external):
7378         * gui-x.c (add_accel_and_to_external):
7379         * gui-x.c (button_item_to_widget_value):
7380         * gui-x.c (gui_items_to_widget_values_1):
7381         * gui-x.c (gui_items_to_widget_values):
7382         * gui-x.c (syms_of_gui_x):
7383         * gui-x.c (vars_of_gui_x):
7384         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7385         [9].
7386
7387         * gui-x.h:
7388         Muleize, prototype changes matching gui-x.c.
7389
7390         * gui.c:
7391         * gui.c (separator_string_p):
7392         * gui.c (gui_item_add_keyval_pair):
7393         * gui.c (make_gui_item_from_keywords_internal):
7394         * gui.c (signal_too_long_error):
7395         * gui.c (parse_gui_item_tree_item):
7396         * gui.c (syms_of_gui):
7397         * gui.c (vars_of_gui):
7398         * gui.h:
7399         menu-no-selection-hook moved here (used by MSWin).
7400         Move some symbols to general-slots.h.
7401         [6].
7402         [9].
7403
7404         * insdel.c (get_buffer_pos_char):
7405         * insdel.c (get_buffer_range_char):
7406         Add GC comments.
7407
7408         * keymap.c (keymap_lookup_directly):
7409         * keymap.c (keymap_store):
7410         * keymap.c (ensure_meta_prefix_char_keymapp):
7411         * keymap.c (describe_map):
7412         * keymap.h:
7413         Support new button modifiers.
7414
7415         * lisp-disunion.h (wrap_object):
7416         * lisp-disunion.h (XSETOBJ):
7417         Rename make_obj to wrap_object.
7418
7419         * lisp-union.h:
7420         * lisp-union.h (make_int):
7421         * lisp-union.h (make_char):
7422         Support wrap_object.
7423
7424         * lisp.h:
7425         * lisp.h (LIST_LOOP):
7426         * lisp.h (EXTERNAL_LIST_LOOP):
7427         * lisp.h (LIST_LOOP_2):
7428         * lisp.h (EXTERNAL_LIST_LOOP_1):
7429         * lisp.h (EXTERNAL_LIST_LOOP_2):
7430         * lisp.h (EXTERNAL_LIST_LOOP_3):
7431         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7432         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7433         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7434         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7435         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7436         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7437         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7438         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7439         * lisp.h (struct Lisp_Symbol):
7440         * lisp.h (maybe_continuable_error_with_frob):
7441         Fix up section comments.
7442         Add new types for char to indicate usage.
7443         Delete symbols auto-generated from general-slots.h.
7444         Add prototypes for structured error functions.
7445         Add long comments describing looping macros and change interface
7446         so that lvalues are automatically declared.
7447         Add NO_DECLARE macro in case callers want to declare lvalues
7448         themselves.
7449
7450         * lread.c (read_syntax_error):
7451         * lread.c (continuable_read_syntax_error):
7452         * lread.c (read_structure):
7453         * lread.c (sequence_reader):
7454         * lread.c (read_list_conser):
7455         * lread.c (read_compiled_function):
7456         Rename syntax_error and continuable_syntax_error to avoid clash
7457         with same-named structured error functions.
7458
7459         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7460         * menubar-msw.c (populate_menu_add_item):
7461         * menubar-msw.c (populate_or_checksum_helper):
7462         [5].
7463         [9].
7464
7465         * menubar-x.c:
7466         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7467         Mule-ize whole file.
7468
7469         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7470
7471         * mule-charset.c (Fmake_charset):
7472         * mule-wnnfns.c (Fwnn_set_param):
7473         [1].
7474
7475         * ntproc.c (create_child):
7476         * ntproc.c (Fwin32_set_current_locale):
7477         Add comments portending doom.
7478
7479         * objects-msw.c:
7480         * objects-msw.c (old_font_enum_callback_2):
7481         * objects-msw.c (font_enum_callback_1):
7482         * objects-msw.c (mswindows_enumerate_fonts):
7483         [5].
7484
7485         * objects-x.c:
7486         * objects-x.c (allocate_nearest_color):
7487         * objects-x.c (x_parse_nearest_color):
7488         * objects-x.c (x_initialize_color_instance):
7489         * objects-x.c (x_print_color_instance):
7490         * objects-x.c (x_finalize_color_instance):
7491         * objects-x.c (x_valid_color_name_p):
7492         * objects-x.c (x_initialize_font_instance):
7493         * objects-x.c (x_print_font_instance):
7494         * objects-x.c (valid_x_font_name_p):
7495         * objects-x.c (truename_via_FONT_prop):
7496         * objects-x.c (truename_via_random_props):
7497         * objects-x.c (truename_via_XListFonts):
7498         * objects-x.c (x_font_truename):
7499         * objects-x.c (x_font_instance_truename):
7500         * objects-x.c (x_font_instance_properties):
7501         * objects-x.c (x_list_fonts):
7502         * objects-x.c (x_find_charset_font):
7503         Mule-ize entire file.
7504         [7].
7505
7506         * objects-x.h:
7507         Mule-verify.
7508
7509         * print.c:
7510         * print.c (std_handle_out_external):
7511         * print.c (debug_print_no_newline):
7512         * print.c (syms_of_print):
7513         Output to all debugger kinds in debug-print.
7514         Fix console-output code under MSWin to actually work.
7515
7516         * process-nt.c (send_signal):
7517         * process-nt.c (nt_create_process):
7518         Use newer Unicode macros.
7519
7520         * process-unix.c (unix_create_process):
7521         * process-unix.c (unix_canonicalize_host_name):
7522         * process-unix.c (unix_open_network_stream):
7523         [7].
7524
7525         * scrollbar-x.c:
7526         Mule-verify.
7527
7528         * search.c (syms_of_search):
7529         [2].
7530
7531         * select-msw.c (mswindows_destroy_selection):
7532         Use LIST_LOOP_2.
7533
7534         * select-x.c (symbol_to_x_atom):
7535         [7].
7536
7537         * select.c (syms_of_select):
7538         [2].
7539
7540         * sound.c (Fplay_sound_file):
7541         [7].
7542
7543         * specifier.c:
7544         * specifier.c (decode_specifier_type):
7545         * specifier.c (Fvalid_specifier_locale_type_p):
7546         * specifier.c (check_valid_locale_or_locale_type):
7547         * specifier.c (decode_locale):
7548         * specifier.c (decode_locale_type):
7549         * specifier.c (decode_locale_list):
7550         * specifier.c (check_valid_domain):
7551         * specifier.c (decode_specifier_tag_set):
7552         * specifier.c (Fcanonicalize_tag_set):
7553         * specifier.c (Fdefine_specifier_tag):
7554         * specifier.c (Fspecifier_tag_predicate):
7555         * specifier.c (check_valid_inst_list):
7556         * specifier.c (check_valid_spec_list):
7557         * specifier.c (decode_how_to_add_specification):
7558         * specifier.c (check_modifiable_specifier):
7559         * specifier.c (specifier_add_spec):
7560         * specifier.c (boolean_validate):
7561         * specifier.c (display_table_validate):
7562         [9].
7563
7564         * specifier.c (syms_of_specifier):
7565         Move some symbols to general-slots.h.
7566         [2].
7567
7568         * symbols.c:
7569         * symbols.c (Fmapatoms):
7570         * symbols.c (Fapropos_internal):
7571         Add GCPROs.
7572
7573         * symbols.c (set_default_buffer_slot_variable):
7574         * symbols.c (set_default_console_slot_variable):
7575         [1].
7576
7577         * symbols.c (defsymbol_massage_name_1):
7578         * symbols.c (defkeyword_massage_name):
7579         * symbols.c (deferror_1):
7580         * symbols.c (deferror):
7581         * symbols.c (deferror_massage_name_and_message):
7582         * symeval.h:
7583         * symeval.h (DEFSYMBOL):
7584         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7585
7586         * symbols.c (syms_of_symbols):
7587         [2].
7588
7589         * symsinit.h:
7590         * symsinit.h (init_win32): New.
7591         Also new is syms_of_dialog_mswindows.
7592
7593         * syswindows.h:
7594         Add new Unicode macros, missing Cygwin wide-char functions,
7595         convenience conversion macros for Qmswindows_tstr, macros for
7596         encapsulating required MSWin <-> Cygwin filename conversions,
7597         prototype for dynamically-extracted (not in NT 3.51) functions.
7598
7599         * toolbar-x.c:
7600         Mule-verify.
7601
7602         * tooltalk.c (Fadd_tooltalk_message_arg):
7603         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7604         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7605         [7].
7606
7607         * tooltalk.c (syms_of_tooltalk):
7608         [2].
7609
7610         * unexnt.c:
7611         * unexnt.c (unexec):
7612         Fix up headers, declaration of unexec() to be more standard.
7613
7614 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7615
7616         * offix.h: Revert change to guard macros - they're used in offix.c!
7617
7618 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7619
7620         * lisp.h: Defsubred Fdelete.
7621
7622         * console-msw.h:  (msprinter_default_printer): Added.
7623
7624         * console-msw.c (msprinter_canonicalize_console_connection):
7625         (msprinter_canonicalize_device_connection): Added.
7626
7627         * device-msw.c (msprinter_default_printer):
7628         (Fmswingows_get_default_printer):
7629         (signal_enum_priner_error):
7630         (Fmswingows_printer_list): Added.
7631
7632 2000-07-19  Martin Buchholz <martin@xemacs.org>
7633
7634         * XEmacs 21.2.35 is released.
7635
7636 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7637
7638         * select-x.c (x_handle_selection_request):
7639         Text selected in xemacs and pasted into xterm failed to appear.
7640         Spelling fixes and cosmetic changes.
7641
7642 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7643
7644         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7645         XEmacs frame (fix for doubling chars in dialog boxes).
7646
7647 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7648
7649         * select.c (select_convert_in, select_convert_out):
7650         Don't call intern() every time.
7651
7652         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7653         * select.c (vars_of_select): Initialise them.
7654
7655 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7656
7657         * select.c (selection-coercible-types): New.
7658
7659         * select.c (own-selection-internal):
7660         * select.c (get-selection-internal):
7661         MULE bug fix - these should default to COMPOUND_TEXT and not
7662         STRING for MULE. I think.
7663
7664         * select.c (select_convert_out): Use selection-coercible-types
7665         to find types that we can attempt to perform coercions on.
7666
7667 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7668
7669         * mule-wnnfns.c:
7670         * mule-canna.c:
7671         Add coding: cookie to identify encoding.
7672
7673         * mule-canna.c (CANNA_mode_keys): make static.
7674         Use proper prototypes, even for functions of no arguments.
7675         Remove external prototype for Fding().
7676
7677         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7678
7679         * select.c (syms_of_select): Add missing DEFSUBR.
7680
7681 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7682
7683         * select.c (get_selection_internal, own_selection_internal):
7684         Make the type default to STRING, rather than placing a nil type
7685         into Vselection_alist.
7686
7687 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7688
7689         * gpmevent.c (tty_selection_exists_p):
7690         * gpmevent.c (tty_own_selection):
7691         Updated parameter lists.
7692
7693 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7694
7695         * select.h (selection-alist): Removed declaration.
7696
7697         * select.h (get_local_selection):
7698         * select.c (get_local_selection):
7699         Made static.
7700
7701         * select.h (convert_selection): Removed declaration.
7702         * select.c (convert_selection): Removed.
7703         This function belongs in Lisp.
7704
7705         * select.h (select_convert_in): Declare.
7706         * select.h (select_convert_out): Declare.
7707         * select.c (select_convert_in): New.
7708         * select.c (select_convert_out): New.
7709         New conversion functions for other files to call.
7710
7711         * select.h (select_notify_buffer_kill): Declare.
7712         * select.c (select_notify_buffer_kill): New.
7713         New functions that get called from kill-buffer.
7714
7715         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7716         X-specific lisp code.
7717
7718         * select.h: Declare some of the lisp-visible functions for
7719         external use.
7720
7721         * select.c (clean_local_selection_data): Removed. This was
7722         a disgusting function, and previously should have been in
7723         select-x.c in any case. The functionality is now provided
7724         in select-convert-from-integer (select.el).
7725
7726         * select.c (available-selection-types): Fixed stupidity where
7727         INTEGER and ATOM got added twice. Also add STRING when we see an
7728         extent.
7729
7730         * select.c (get-selection-internal): Removed symbol stripping. No
7731         longer causes conversion when data comes from the internal cache.
7732
7733         * select.c (syms_of_select): Added new functions.
7734
7735         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7736         error checking - previously this called abort!
7737
7738         * select-x.c (x_own_selection): Changed comment.
7739
7740         * select-x.c (x_handle_selection_request): Use select_convert_out.
7741         Don't mess with selection-alist; it's an internal variable of select.c.
7742
7743         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7744
7745         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7746         rather than messing with selection-alist.
7747
7748         * select-msw.c (mswindows_get_foreign_selection):
7749         Use TO_INTERNAL_FORMAT rather than hacking.
7750
7751 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7752
7753         * process-unix.c (unix_open_multicast_group):
7754         (unix_open_multicast_group): Remove useless casts.
7755
7756 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7757
7758         * sound.c (Fplay_sound): Fix `unused variable' warning.
7759
7760         * emacs.c (main): Use correct type for _environ on SCO5.
7761
7762 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7763
7764         * console.h (own_selection_method):
7765         * console.h (selection_exists_p_method):
7766         * console.h (available_selection_types_method): New.
7767         * console.h (register_selection_data_type_method): New.
7768         * console.h (selection_data_type_name): New.
7769
7770         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7771         function & alist to track GlobalAlloc()'d handles that need
7772         releasing when the clipboard data gets replaced or emptied.
7773
7774         * event-msw.c (mswindows_wnd_proc): Call it.
7775
7776         * lisp.h, general.c (Qappend): New symbol representing a
7777         `how-to-add' mode.
7778
7779         * select.c (own-selection-internal):
7780         * select.c (selection-exists-p):
7781         * select.c (available-selection-types): New.
7782         * select.c (register-selection-data-type): New.
7783         * select.c (selection-data-type-name): New.  New functions to deal
7784         with device-specific selection data formats.
7785         * select.c (selection-converter-out-alist): Renamed.
7786         * select.c (selection-converter-in-alist): New.
7787         * select.c (selection-appender-alist): New.  Added new alists.
7788         * select.c (syms_of_select, vars_of_select): Added new symbols &
7789         variables.
7790         * select.c (get_local_selection): Split.
7791         * select.c: Removed spurious type checking - selections may now be
7792         of any type, not just strings.
7793         * select.c (own-selection-internal):
7794
7795         * select.h, select.c (convert_selection): New. Created
7796         convert_selection() function based on get_local_selection().
7797         * select.h, select.c (QCF_*): New symbols representing mswindows
7798         clipboard formats.
7799         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7800         symbols representing `how-to-add' modes.
7801
7802         * select-msw.c (x_sym_p): New.
7803         * select-msw.c (symbol_to_ms_cf): New.
7804         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7805         symbols & clipboard formats. Can also handle string names.
7806         * select-msw.c (mswindows_own_selection):
7807         * select-msw.c (mswindows_selection_exists_p):
7808         Added `data-type' parameter. Use it.
7809         * select-msw.c (mswindows_available_selection_types): New.
7810         * select-msw.c (mswindows_register_selection_data_type): New.
7811         * select-msw.c (mswindows_selection_data_type_name): New.
7812         * select-msw.c (mswindows_own_selection):
7813         * select-msw.c (mswindows_get_foreign_selection):
7814         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7815         * select-msw.c (console_create_select_mswindows): Added new methods.
7816         * select-msw.c (mswindows_destroy_selection): New.
7817         * select-msw.c (Vhandle_alist): New list.
7818         * select-msw.c (mswindows_own_selection):
7819
7820         * select-x.c (x_own_selection):
7821         * select-x.c (x_selection_exists_p):
7822         * select-x.c: Added some comments about maybe using new
7823         functionality.
7824         * select-x.c (x_own_selection):
7825
7826         * specifier.c: Remove definition of Qappend (now in general.c)
7827         * specifier.c (syms_of_specifier): Remove Qappend.
7828
7829 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7830
7831         * config.h.in: Add socklen_t.
7832
7833         * s/decosf4-0.h: No special compiler flags needed or desired.
7834         In particular, undefine _BSD for DEC OSF 4.0.
7835
7836 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7837
7838         * redisplay-msw.c (msprinter_frame_output_end): Added.
7839         (console_type_create_redisplay_mswindows): Referred the above.
7840
7841         * frame.c (setup_frame_without_minibuffer): Do not create a
7842         default minibuffer frame on a printer device.
7843
7844         * frame-msw.c (apply_dc_geometry): Added.
7845         (msprinter_start_page):
7846         (msprinter_init_frame_3):
7847         (msprinter_eject_page): Use it.
7848
7849         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7850         and removed residual duplex and orientation properties.
7851
7852 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7853
7854         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7855
7856         * unexalpha.c: Remove system prototypes from C sources!
7857
7858 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7859
7860         * eval.c: Remove references to M-x edit-options in DEFUNs for
7861         `defvar' and `defconst'.
7862
7863 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7864
7865         * config.h.in: Remove SMART_INCLUDE hackery.
7866
7867         PostgreSQL hacking:
7868         * config.h.in: Don't use SMART_INCLUDE.
7869
7870         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7871         * inline.c: Simply #include "postgresql.h"
7872         * postgresql.c:
7873         - Don't use SMART_INCLUDE
7874         - Use simply "const".
7875         - Use standard doc string conventions.
7876         - Use correct type for result of PQstatus.
7877
7878 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7879
7880         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7881
7882         C++ compilation changes.
7883         * config.h.in (EXTERN_C): Define.
7884         * config.h.in (not): This is also a C++ keyword.
7885         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7886         * cm.c: Use EXTERN_C.
7887         * redisplay-tty.c: Use EXTERN_C.
7888         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7889
7890 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7891
7892         * general.c: Remove duplicate definition for Qfunction.
7893
7894 2000-07-08  Ben Wing  <ben@xemacs.org>
7895
7896         * device-msw.c (msprinter_init_device):
7897         * device-msw.c (sync_printer_with_devmode):
7898         * device-msw.c (handle_devmode_changes):
7899         * device-msw.c (print_dialog_worker):
7900         * device-msw.c (Fmsprinter_apply_settings):
7901         * device-msw.c (hash_devmode):
7902         * device-msw.c (Fmsprinter_settings_despecialize):
7903         use Qmswindows_tstr, not Qctext.
7904
7905         * vm-limit.c (check_memory_limits):
7906         avoid infinite loop printing warning messages.
7907
7908 2000-07-05  Craig Lanning  <lanning@scra.org>
7909
7910         * Makefile.in.in: Add support for including the Windows resources
7911         when building with the cygwin and mingw targets.
7912
7913         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7914         not set or not correct.
7915         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7916         (init_initial_directory): Don't try to use $PWD on the
7917         WIN32_NATIVE target.
7918
7919         * s\cygwin32.h:
7920         [[Add -mwindows to eliminate console window.]] not required --ben
7921         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7922         (MAIL_USE_POP): removed; now handled by configure.
7923
7924         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7925         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7926         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7927         (MAIL_USE_POP): removed; now handled by configure.
7928         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7929         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7930         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7931         constant string.
7932         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7933         up from <winsock.h> via systime.h.
7934         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7935         (getpagesize): from Dan Holmsand, added.
7936         Added #endif which was left dangling by Ben's mega patch; added
7937         comment to help prevent this in the future.
7938
7939         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7940
7941 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7942
7943         * console-msw.h (struct mswindows_device): Removed unnecessary
7944         cached device geometry values.
7945         Added update_tick and an accessor macro.
7946         (Lisp_Devmode): Added lrecord declaration.
7947         (struct msprinter_device): Contain devmode as a Lisp object.
7948         Added mswindows_get_selected_frame_hwnd();
7949
7950         * console.h (struct console_methods): Indentation nitpicking.
7951
7952         * device-msw.c (mswindows_init_device): Do not initialize geometry
7953         cache. Initialize update tick.
7954         (mswindows_device_system_metrics): Ask the device for its geometry.
7955         (global_free_2_maybe):
7956         (devmode_to_hglobal):
7957         (handle_printer_changes):
7958         (ensure_not_printing):
7959         (print_dialog_worker):
7960         (Fmsprinter_print_setup_dialog):
7961         (Fmsprinter_print_dialog):
7962         (plist_get_margin):
7963         (plist_set_margin):
7964         (Fmsprinter_page_setup_dialog): Added functions.
7965         (sync_printer_with_devmode):
7966         (handle_devmode_changes):
7967         (Fmsprinter_get_settings):
7968         (Fmsprinter_select_settings):
7969         (Fmsprinter_apply_settings):
7970         (allocate_devmode):
7971         (Fmsprinter_settings_copy):
7972         (Fmsprinter_settings_despecialize):
7973         (print_devmode):
7974         (finalize_devmode):
7975         (equal_devmode):
7976         (hash_devmode): Added functions
7977         (syms_of_device_mswindows): Init devmode lrecord class.
7978
7979         * device.h: Added an exfun for find-device.
7980
7981         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7982         geometry; although, recreate the device compatible DC.
7983
7984         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7985         (msprinter_init_frame_3):
7986         (msprinter_frame_property):
7987         (msprinter_internal_frame_property_p):
7988         (msprinter_frame_properties):
7989         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7990         print job properties (will move to device settings).
7991
7992         * lisp.h: Added symbols.
7993
7994         * general.c (syms_of_general): Declared them.
7995
7996         * hash.c (string_hash): Added.
7997
7998         * lrecord.h (lrecord_type): Added devmode lrecord type.
7999
8000 2000-07-02  Mike Sperber <mike@xemacs.org>
8001
8002         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8003         FreeBSD 4.0.
8004
8005 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8006
8007         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8008         integer.
8009
8010 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8011
8012         * data.c (Fstring_to_number): Don't recognize floating point if
8013         base is not 10.
8014
8015 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8016
8017         * glyphs-widget.c (tab_control_query_geometry):
8018         (widget_query_geometry):
8019         (button_query_geometry):
8020         * glyphs.c (text_query_geometry):
8021         Enforce type correctness.
8022
8023 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8024
8025         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8026         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8027
8028 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8029
8030         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8031         conflicts with gcc's fixincluded version of FOO.h.
8032
8033         * glyphs.h (image_instance_geometry): Remove trailing `,'
8034
8035 2000-06-08  Mike Alexander  <mta@arbortext.com>
8036
8037         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8038         (shove_thread): Don't write the same output twice
8039         (make_ntpipe_output_stream): Increase priority of shove thread
8040         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8041         chance to run
8042         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8043         it.
8044
8045 2000-06-12  Ben Wing  <ben@xemacs.org>
8046
8047         * s\mingw32.h (sigset):
8048         * s\windowsnt.h (sigset):
8049         rename msw_ to mswindows_ for consistency with general convention.
8050
8051 2000-06-12  Ben Wing  <ben@xemacs.org>
8052
8053         * console-msw.c:
8054         * console-msw.c (mswindows_get_console_hwnd):
8055         * console-msw.c (mswindows_ensure_console_allocated):
8056         * console-msw.c (mswindows_hide_console):
8057         * console-msw.c (mswindows_show_console):
8058         * console-msw.c (mswindows_ensure_console_buffered):
8059         * console-msw.c (mswindows_output_console_string):
8060         * console-msw.c (mswindows_windows9x_p):
8061         * console-msw.h:
8062         * device-msw.c (mswindows_get_workspace_coords):
8063         * device-msw.c (mswindows_device_system_metrics):
8064         * dialog-msw.c (mswindows_popup_dialog_box):
8065         * event-msw.c (mswindows_wnd_proc):
8066         * frame-msw.c (mswindows_size_frame_internal):
8067         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8068         * menubar-msw.c (displayable_menu_item):
8069         * menubar-msw.c (mswindows_char_is_accelerator):
8070         * nt.c:
8071         * nt.c (mswindows_sigset):
8072         * nt.c (mswindows_sigrelse):
8073         * nt.c (mswindows_sigpause):
8074         * nt.c (mswindows_raise):
8075         * nt.c (timer_proc):
8076         * ntproc.c:
8077         * ntproc.c (find_child_console):
8078         * ntproc.c (sys_kill):
8079         * print.c:
8080         * print.c (std_handle_out_external):
8081         * process-nt.c (find_child_console):
8082         * process-nt.c (send_signal_the_95_way):
8083         * process-nt.c (ensure_console_window_exists):
8084         * process-nt.c (nt_create_process):
8085         * syssignal.h:
8086         rename msw_ to mswindows_ for consistency with general convention.
8087
8088         * emacs.c:
8089         * dumper.c:
8090         include nt.h, not syswindows.h.
8091
8092         * nt.c (mswindows_fstat):
8093         * nt.c (mswindows_stat):
8094         prefix mswindows_ instead of attempting to directly override the
8095         library functions.  fix declarations.
8096
8097         * nt.h:
8098         include syswindows.h.  move some sysdep.h stuff here.
8099
8100         * ntheap.h:
8101         include syswindows.h, not <windows.h>.
8102
8103         * ntplay.c:
8104         clean up headers.
8105
8106         * sysdep.c:
8107         clean up headers.
8108
8109         * sysdep.c (sys_fstat):
8110         * sysdep.c (sys_stat):
8111         call mswindows versions when appropriate.
8112
8113         * sysdep.h:
8114         move mswin decls to nt.h.
8115
8116         * syswindows.h:
8117         add long comment describing appropriate use of the various windows
8118         headers.
8119
8120 2000-06-11  Ben Wing  <ben@xemacs.org>
8121
8122         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8123
8124 2000-06-10  Ben Wing  <ben@xemacs.org>
8125
8126         * Makefile.in.in (release):
8127         Correction to make sure xemacs.exe always dumped when correct.
8128
8129         * alloca.c:
8130         * balloon_help.c:
8131         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8132
8133         * buffer.c (set_buffer_internal):
8134         [[[[2]]]]: Remove HAVE_FEP code.
8135
8136         * buffer.c (init_initial_directory):
8137         [3].
8138
8139         * bytecode.c:
8140         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8141         individual files.
8142
8143         * callproc.c:
8144         * callproc.c (call_process_cleanup):
8145         * callproc.c (Fold_call_process_internal):
8146         * callproc.c (child_setup):
8147         * callproc.c (getenv_internal):
8148         * callproc.c (init_callproc):
8149         * callproc.c (vars_of_callproc):
8150         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8151         __CYGWIN32__ -> CYGWIN.
8152         DOS_NT -> WIN32_NATIVE.
8153         Remove MSDOS support/references, converting to WIN32_NATIVE
8154           where correct.
8155         __MINGW32__ -> MINGW.
8156         Fix windows.h includes.
8157         Remove bogus HAVE_NTGUI.
8158
8159         * config.h.in:
8160         [2].
8161
8162         * console-msw.c:
8163         mswindows_message_outputted added for use in allowing startup
8164         errors on the console to be seen.
8165
8166         * console-msw.c (msw_ensure_console_allocated):
8167         * console-msw.c (msw_output_console_string):
8168         * console-msw.c (DHEADER):
8169         * console-msw.c (DOPAQUE_DATA):
8170         * console-msw.c (DEVENT):
8171         * console-msw.c (DCONS):
8172         * console-msw.c (DCONSCDR):
8173         * console-msw.c (DSTRING):
8174         * console-msw.c (DVECTOR):
8175         * console-msw.c (DSYMBOL):
8176         * console-msw.c (DSYMNAME):
8177         Fix warnings.
8178
8179         * console-stream.c (stream_init_console):
8180         Fix text/binary problems.
8181
8182         * device-msw.c:
8183         * device-msw.c (mswindows_finish_init_device):
8184         * device-msw.c (mswindows_delete_device):
8185         [1].
8186
8187         * device.c (handle_asynch_device_change):
8188         [3].
8189
8190         * dgif_lib.c:
8191         * dgif_lib.c (DGifOpenFileName):
8192         * dgif_lib.c (DGifOpenFileHandle):
8193         * dgif_lib.c (DGifGetLine):
8194         * dgif_lib.c (DGifGetPixel):
8195         Added config.h/lisp.h, fix up includes.
8196         [1].
8197
8198         * dired-msw.c:
8199         [4].
8200
8201         * dired.c:
8202         * dired.c (file_name_completion):
8203         * dired.c (Ffile_attributes):
8204         * dired.c (syms_of_dired):
8205         [1].
8206
8207         * dumper.c:
8208         * dumper.c (pdump_file_unmap):
8209         * dumper.c (pdump_load):
8210         [1].
8211
8212         * editfns.c:
8213         * editfns.c (Ftemp_directory):
8214         * editfns.c (user_login_name):
8215         * editfns.c (Fuser_real_login_name):
8216         * editfns.c (get_home_directory):
8217         [1].
8218
8219         * elhash.c (finish_marking_weak_hash_tables):
8220         [[[[5]]]]: Fix GCC warnings.
8221
8222         * emacs.c:
8223         * emacs.c (mswindows_handle_hardware_exceptions):
8224         * emacs.c (make_arg_list_1):
8225         * emacs.c (main_1):
8226         * emacs.c (Fkill_emacs):
8227         * emacs.c (Fdump_emacs):
8228         [1].
8229         Fix problems with nested crashes, add long comment.
8230
8231         * event-Xt.c (init_event_Xt_late):
8232         [1].
8233
8234         * event-msw.c:
8235         * event-msw.c (mswindows_dde_callback):
8236         * event-msw.c (mswindows_handle_sticky_modifiers):
8237         * event-msw.c (mswindows_wnd_proc):
8238         [1].
8239         [5].
8240
8241         * events.c (character_to_event):
8242         [1].
8243
8244         * fileio.c:
8245         * fileio.c (Ffile_name_directory):
8246         * fileio.c (Ffile_name_nondirectory):
8247         * fileio.c (directory_file_name):
8248         * fileio.c (Fexpand_file_name):
8249         * fileio.c (Fsubstitute_in_file_name):
8250         * fileio.c (Ffile_name_absolute_p):
8251         * fileio.c (check_executable):
8252         * fileio.c (Ffile_readable_p):
8253         * fileio.c (Ffile_accessible_directory_p):
8254         * fileio.c (Ffile_modes):
8255         * fileio.c (Funix_sync):
8256         * fileio.c (vars_of_fileio):
8257         [1]. [4].
8258
8259         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8260
8261         Expand getdefdir defn.
8262         Fix bogus rename() comment.
8263
8264         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8265         to use standard XEmacs include files, e.g. sysfile.h, rather
8266         than system-specific includes.
8267
8268         * fns.c:
8269         * fns.c (Fsubseq):
8270         [5]. [6].
8271
8272         * frame.c (vars_of_frame):
8273         [1].
8274
8275         * getloadavg.c:
8276         * getloadavg.c (getloadavg):
8277         [1]. [6].
8278         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8279         (We don't use it elsewhere in the code; just add a comment.)
8280
8281         * gif_io.c:
8282         [6].
8283         Add config.h.
8284
8285         * glyphs-msw.c:
8286         * glyphs-msw.c (mswindows_resource_instantiate):
8287         [1].
8288
8289         * glyphs-x.c (x_native_layout_instantiate):
8290         [5].
8291
8292         * gui-msw.c (Fmswindows_shell_execute):
8293         [1].
8294
8295         * insdel.c:
8296         [4].
8297
8298         * lisp.h:
8299         [4]. [5].
8300
8301         * lread.c (locate_file_in_directory_mapper):
8302         [1].
8303
8304         * lstream.c:
8305         [4].
8306
8307         * mem-limits.h:
8308         * mem-limits.h (get_lim_data):
8309         [1].
8310
8311         * menubar-msw.c:
8312         [4].
8313
8314         * ndir.h:
8315         [1].
8316
8317         * nt.c:
8318         * nt.c (getwd):
8319         * nt.c (closedir):
8320         * nt.c (rva_to_section):
8321         * nt.c (mswindows_executable_type):
8322         [1]. [6].
8323         Fix closedir() defn.
8324
8325         * nt.h:
8326         [[[[8]]]]: *_OK defs moved to sysfile.h.
8327
8328         * ntproc.c:
8329         [6]. [7].
8330
8331         * objects-x.c:
8332         [4].
8333
8334         * print.c:
8335         * print.c (std_handle_out_external):
8336         [1]. [4].
8337
8338         * process-nt.c:
8339         * process-nt.c (nt_create_process):
8340         [6].
8341         try to fix process quoting somewhat.
8342
8343         * process-unix.c (unix_create_process):
8344         [1].
8345
8346         * process.c:
8347         * process.c (vars_of_process):
8348         Add Vnull_device.
8349
8350         * process.h:
8351         [1].
8352
8353         * realpath.c:
8354         * realpath.c (xrealpath):
8355         [1].
8356
8357         * redisplay-tty.c (init_tty_for_redisplay):
8358         [3].
8359
8360         * redisplay.c:
8361         [4]. [6].
8362
8363         * scrollbar-msw.c:
8364         [4].
8365
8366         * sheap.c:
8367         * sheap.c (more_static_core):
8368         * sheap.c (report_sheap_usage):
8369         [5]. [6].
8370
8371         * signal.c:
8372         * signal.c (alarm_signal):
8373         [1]. [6].
8374
8375         * sound.c:
8376         [6].
8377
8378         * strftime.c:
8379         * strftime.c (zone_name):
8380         [1]. [5].
8381
8382         * symsinit.h (init_sunpro):
8383         [1].
8384
8385         * syscommctrl.h:
8386         commctrl.h not in Cygwin b20.1.
8387
8388         * sysdep.c:
8389         * sysdep.c (endif):
8390         * sysdep.c (sys_subshell):
8391         * sysdep.c (init_baud_rate):
8392         * sysdep.c (emacs_get_tty):
8393         * sysdep.c (emacs_set_tty):
8394         * sysdep.c (tty_init_sys_modes_on_device):
8395         * sysdep.c (init_system_name):
8396         * sysdep.c (sys_open):
8397         * sysdep.c (interruptible_open):
8398         * sysdep.c (sys_fopen):
8399         * sysdep.c (sys_mkdir):
8400         * sysdep.c (sys_rename):
8401         * sysdep.c (get_process_times_1):
8402         [1]. [6].
8403
8404         * sysdep.h:
8405         [1].
8406
8407         * sysdir.h:
8408         * sysdir.h (DIRENTRY_NONEMPTY):
8409         [1]. [6].
8410
8411         * sysdll.c (dll_init):
8412         * sysdll.h:
8413         [1].
8414
8415         * sysfile.h:
8416         [1]. [6]. [8].
8417         added text/binary defs.
8418
8419         * sysfloat.h:
8420         [1].
8421
8422         * sysproc.h:
8423         * sysproc.h (EDESTADDRREQ):
8424         * sysproc.h (poll_fds_for_input):
8425         [1]. [6].
8426
8427         * syspwd.h:
8428         [6].
8429
8430         * syssignal.h:
8431         [1].
8432
8433         * systime.h:
8434         [1]. [6].
8435
8436         * systty.h:
8437         [1].
8438
8439         * syswindows.h:
8440         [1].
8441         Always define WIN32_LEAN_AND_MEAN.
8442
8443         * unexcw.c (unexec):
8444         [5].
8445
8446         * unexec.c:
8447         * unexec.c (copy_text_and_data):
8448         * unexec.c (adjust_lnnoptrs):
8449         [1].
8450
8451         * unexnt.c:
8452         * unexnt.c (_start):
8453         [1].
8454
8455 2000-06-07  Ben Wing  <ben@xemacs.org>
8456
8457         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8458         was used only as a model.  We've long since extracted any useful
8459         logic or code out of this. (I just did an exhaustive search.)
8460
8461         * s\msdos.h: Removed.
8462
8463         * s\windows95.h: Removed.
8464
8465 2000-06-10  Ben Wing  <ben@xemacs.org>
8466
8467         * s\cygwin32.h:
8468         [1]. [5].
8469         Don't use extern with fun defs.
8470
8471         * s\mingw32.h:
8472         [1]. [7].
8473         Remove nt\inc include.
8474         Remove getdisk, getdefdir. (The former is unused, the latter
8475         expanded in fileio.h.)
8476
8477         * s\windowsnt.h:
8478         * s\windowsnt.h (WIN32_NATIVE):
8479         * s\windowsnt.h (HAVE_STRCASECMP):
8480         [1]. [7].
8481         Add long comment about preprocessor changes.
8482         Remove getdisk, getdefdir. (The former is unused, the latter
8483         expanded in fileio.h.)
8484
8485 2000-06-10  Ben Wing  <ben@xemacs.org>
8486
8487         * m\arm.h:
8488         * m\delta.h:
8489         * m\intel386.h:
8490         * m\sequent.h:
8491         * m\template.h:
8492         * m\windowsnt.h:
8493         [1].
8494         Remove bogus/unused NO_SOCK_SIGIO.
8495
8496 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8497
8498         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8499         not an Emchar.
8500
8501 2000-06-04  Mike Sperber <mike@xemacs.org>
8502
8503         * casetab.c (set_case_table): For `set-standard-case-table',
8504         actually deposit the new case tables where the rest of XEmacs can
8505         see them.
8506
8507 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8508
8509         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8510
8511 2000-06-05  Ben Wing  <ben@xemacs.org>
8512
8513         * callproc.c (child_setup): Don't do close_load_descs() under
8514         MS Windows.  Put in a comment explaining why.
8515
8516 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8517
8518         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8519         Toolkit shell" which breaks `kill-compilation' on Windows NT
8520         native, retaining STDERR handling improvements.
8521
8522 2000-06-01  Andreas Jaeger  <aj@suse.de>
8523
8524         * s/s390.h: Support for S390, based on a patch by Martin
8525         Schwidefsky <schwidefsky@de.ibm.com>.
8526
8527 2000-05-30  Andy Piper  <andy@xemacs.org>
8528
8529         * window.c (allocate_window):
8530         (make_dummy_parent):
8531         (Fset_window_configuration): use new hashtable type.
8532
8533         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8534         (struct image_instantiator_methods):
8535         (struct Lisp_Image_Instance): make instance geometry signed.
8536
8537         * glyphs.c (instantiate_image_instantiator):
8538         (image_instance_query_geometry):
8539         (image_instance_layout):
8540         (image_instance_layout):
8541         (query_string_geometry):
8542         (text_query_geometry):
8543         (image_instantiate):
8544         (image_instantiate):
8545         (cache_subwindow_instance_in_frame_maybe):
8546         (subwindow_query_geometry): make instance geometry signed.
8547
8548         * glyphs-widget.c (widget_query_geometry):
8549         (widget_layout):
8550         (button_query_geometry):
8551         (tree_view_query_geometry):
8552         (tab_control_query_geometry):
8553         (layout_query_geometry):
8554         (layout_layout):
8555         (native_layout_layout): make instance geometry signed.
8556
8557 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8558
8559         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8560         constant.
8561
8562         * general.c (syms_of_general): Add Qfull_assoc symbol.
8563
8564         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8565         correctly.
8566         (decode_weak_list_type): Decode full-assoc type.
8567         (encode_weak_list_type): Encode full-assoc type.
8568         (Fmake_weak_list): Update doc string.
8569
8570 2000-05-30  Andy Piper  <andy@xemacs.org>
8571
8572         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8573
8574         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8575         (decode_hash_table_weakness): ditto.
8576         (Fhash_table_weakness): ditto.
8577         (Fhash_table_type): ditto.
8578         (finish_marking_weak_hash_tables): ditto.
8579         (hash_table_weakness_validate): ditto.
8580         (syms_of_elhash): ditto.
8581
8582 2000-05-28  Martin Buchholz <martin@xemacs.org>
8583
8584         * XEmacs 21.2.34 is released.
8585
8586 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8587
8588         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8589         start cache.
8590         (updating_line_start_cache): Gone.
8591         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8592         generic code to force a minimum of 1 line laid out in the
8593         CMOTION_DISP case.
8594
8595 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8596
8597         * glyphs.c (instantiate_image_instantiator): Check for initialized
8598         height & width no longer special cases IMAGE_NOTHING.
8599         (nothing_instantiate): Set height and width of instance.
8600
8601 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8602
8603         * unexelf.c (unexec): Search for ".data" section.
8604         Initialize new_data2_offset from old_data_index.
8605         Remove redundant check for ElfW.
8606
8607 2000-05-23  Andy Piper  <andy@xemacs.org>
8608
8609         * glyphs.c (get_image_instantiator_governing_domain): allow more
8610         specific domains as the governing domain rather than expecting an
8611         exact match. This fixes problems with layouts.
8612
8613 2000-05-22  Andy Piper  <andy@xemacs.org>
8614
8615         * redisplay-output.c (compare_runes): check for non-images
8616
8617         * glyphs.c (set_glyph_dirty_p): ditto.
8618         (update_glyph_cachel_data): ditto.
8619
8620         * glyphs-widget.c (layout_post_instantiate): ditto.
8621         (layout_post_instantiate): ditto.
8622
8623         * event-msw.c (mswindows_wnd_proc): warning removal.
8624
8625 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8626
8627         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8628
8629         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8630
8631         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8632
8633         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8634         (mswindows_executable_type): mingw32 now has enough headers for
8635         this to work.
8636
8637 2000-05-20  Andy Piper  <andy@xemacs.org>
8638
8639         * console-msw.c (mswindows_output_last_error): ; -> ,
8640
8641 2000-05-12  Andy Piper  <andy@xemacs.org>
8642
8643         * console-msw.c (FROB): compare ints with ints.
8644
8645 2000-05-11  Andy Piper  <andy@xemacs.org>
8646
8647         * glyphs-x.c (x_finalize_image_instance): make minimal build
8648         happy.
8649
8650 2000-05-20  Ben Wing  <ben@xemacs.org>
8651
8652         * event-Xt.c:
8653         * event-Xt.c (vars_of_event_Xt):
8654         move modifier-keys-are-sticky to event-stream.c.
8655
8656         * event-msw.c:
8657         * event-msw.c (mswindows_enqueue_mouse_button_event):
8658         * event-msw.c (key_needs_default_processing_p):
8659         * event-msw.c (XEMSW_LCONTROL):
8660         * event-msw.c (mswindows_handle_sticky_modifiers):
8661         * event-msw.c (FROB):
8662         * event-msw.c (clear_sticky_modifiers):
8663         * event-msw.c (output_modifier_keyboard_state):
8664         * event-msw.c (output_alt_keyboard_state):
8665         * event-msw.c (mswindows_wnd_proc):
8666         * event-msw.c (mswindows_modifier_state):
8667         * event-msw.c (emacs_mswindows_handle_magic_event):
8668         implement sticky modifiers.
8669
8670         * event-stream.c:
8671         * event-stream.c (vars_of_event_stream):
8672         move modifier-keys-are-sticky here.
8673
8674         * lisp.h:
8675         add CHECK_FUNCTION.
8676
8677         * rangetab.c:
8678         implement map-range-table.
8679
8680
8681 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8682
8683         * redisplay-tty.c (reset_tty_modes):
8684         (tty_redisplay_shutdown): Adjust argument type to
8685         tty_frame_output_end.
8686
8687 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8688
8689         * eval.c (Fbacktrace): Don't output a line with only right
8690         parenthesis.
8691
8692 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8693
8694         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8695         (Fpq_reset_poll): Ditto.
8696
8697 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8698
8699         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8700
8701 2000-05-16  Ben Wing  <ben@xemacs.org>
8702
8703         * buffer.c:
8704         * buffer.c (dfc_convert_to/from_internal_format):
8705         * buffer.c (reinit_vars_of_buffer):
8706         Fix conversion functions to allow reentrancy.
8707
8708         * console-msw.c:
8709         * console-msw.c (mswindows_output_last_error):
8710         New fun, generally useful -- output a human-readable
8711         version of GetLastError() on the console.
8712
8713         * console-msw.h:
8714         * console-msw.h (struct mswindows_frame):
8715         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8716
8717         * console-stream.c (stream_output_begin):
8718         * console-stream.c (stream_output_end):
8719         * console-stream.c (stream_output_vertical_divider):
8720         * console-stream.c (stream_clear_region):
8721         * console-stream.c (stream_flash):
8722         * console-stream.c (console_type_create_stream):
8723         Delete blank stream methods, not needed.
8724
8725         * console.h (struct console_methods):
8726         Split begin/end methods into window and frame.
8727
8728         * event-msw.c:
8729         * event-msw.c (mswindows_handle_paint):
8730         * event-msw.c (output_alt_keyboard_state):
8731         * event-msw.c (mswindows_wnd_proc):
8732         * event-msw.c (vars_of_event_mswindows):
8733         Comment about problems with ignored-expose.
8734         Define mswindows-debug-events; not really implemented.
8735
8736         * frame-msw.c (mswindows_init_frame_1):
8737         random cleanups.
8738
8739         * glyphs-msw.c:
8740         * glyphs-msw.c (begin_defer_window_pos):
8741         * glyphs-msw.c (mswindows_unmap_subwindow):
8742         * glyphs-msw.c (mswindows_map_subwindow):
8743         * glyphs-msw.c (mswindows_resize_subwindow):
8744         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8745
8746         * glyphs.c (make_image_instance_1):
8747         Fix crash.
8748
8749         * gutter.c (Fredisplay_gutter_area):
8750         Use new begin/end methods.
8751
8752         * lisp.h (Dynarr_new2):
8753         New creation fun.
8754
8755         * redisplay-msw.c:
8756         * redisplay-msw.c (mswindows_frame_output_begin):
8757         * redisplay-msw.c (mswindows_frame_output_end):
8758         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8759         New begin/end methods -- handle DeferWindowPos.
8760
8761         * redisplay-output.c (redisplay_move_cursor):
8762         * redisplay-output.c (redraw_cursor_in_window):
8763         * redisplay-output.c (redisplay_update_line):
8764         * redisplay-output.c (redisplay_output_window):
8765         New begin/end methods.
8766
8767         * redisplay-tty.c:
8768         * redisplay-tty.c (tty_frame_output_begin):
8769         * redisplay-tty.c (tty_frame_output_end):
8770         * redisplay-tty.c (console_type_create_redisplay_tty):
8771         New begin/end methods.
8772
8773         * redisplay-x.c:
8774         * redisplay-x.c (x_window_output_begin):
8775         * redisplay-x.c (x_window_output_end):
8776         * redisplay-x.c (console_type_create_redisplay_x):
8777         New begin/end methods.
8778
8779         * redisplay.c (redisplay_frame):
8780         * redisplay.c (Fredisplay_echo_area):
8781         New begin/end methods.
8782         use MAYBE_DEVMETH for clear_frame; it may not exist.
8783
8784         * window.h (WINDOW_XFRAME):
8785         WINDOW_XFOO macros -- get locale and decode struct pointer.
8786
8787
8788 2000-05-12  Ben Wing  <ben@xemacs.org>
8789
8790         * emacs.c:
8791         * emacs.c (ensure_no_quitting_from_now_on):
8792         * emacs.c (fatal_error_signal):
8793         * emacs.c (mswindows_handle_hardware_exceptions):
8794         * emacs.c (main):
8795         * emacs.c (Fkill_emacs):
8796         * emacs.c (shut_down_emacs):
8797         * emacs.c (assert_failed):
8798         various improvements in fatal error handling.
8799
8800         * eval.c:
8801         move preparing_for_armageddon to emacs.c.
8802
8803         * lisp.h:
8804         declare fatal_error_in_progress.
8805
8806         * print.c:
8807         * print.c (std_handle_out_external):
8808         * print.c (std_handle_out_va):
8809         * print.c (stderr_out):
8810         * print.c (stdout_out):
8811         use console under mswin when no standard output.
8812         don't do code conversion during fatal error.
8813
8814         * scrollbar.c (Fscrollbar_page_up):
8815         * scrollbar.c (Fscrollbar_page_down):
8816         fix missing else.  reindent.
8817
8818 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8819
8820         Emergency fix.
8821
8822         * glyphs.h (GLYPH_CACHEL_DESCENT):
8823         (GLYPH_CACHEL_DESCENT):
8824         (GLYPH_CACHEL_DESCENT):
8825         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8826         used in case these are inline functions.
8827         Use more absurd values to error check.
8828
8829         include window.h for error check functions.
8830
8831 2000-05-11  Ben Wing  <ben@xemacs.org>
8832
8833         * cmdloop.c (Freally_early_error_handler):
8834         Display message box under windows; otherwise, message will disappear
8835         before it can be viewed.
8836
8837         * console-msw.c:
8838         * console-msw.c (Fmswindows_message_box):
8839         * console-msw.c (FROB):
8840         * console-msw.c (syms_of_console_mswindows):
8841         Define new fun `mswindows-message-box'.
8842         #### I will merge this into `popup-dialog-box'; just give me
8843         a bit of time.
8844
8845         * general.c:
8846         * general.c (syms_of_general):
8847         Some new symbols used in `mswindows-message-box'.
8848
8849         * glyphs.c:
8850         * glyphs.c (Fset_image_instance_property):
8851         put warning in this fun.
8852
8853         * glyphs.h:
8854         * glyphs.h (GLYPH_CACHEL_WIDTH):
8855         * glyphs.h (GLYPH_CACHEL_ASCENT):
8856         * glyphs.h (GLYPH_CACHEL):
8857         * glyphs.h (GLYPH_CACHEL_GLYPH):
8858         define error-checking versions to try to catch a bug i've seen --
8859         redisplay gets in an infinite loop because the glyph width of the
8860         continuation glyph is 65535.
8861
8862         * lisp.h:
8863         Extern message-box stuff.
8864
8865         * window.c (allocate_window):
8866         * window.c (make_dummy_parent):
8867         * window.c (Fset_window_configuration):
8868         Use EQUAL not EQ for subwindow caches to make them work a bit
8869         better. (Something is still very broken.)
8870
8871
8872 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8873
8874         * glyphs.c (image_instantiate): Suppress gcc warnings.
8875         (Fmake_image_instance): Fix doc string.
8876         * specifier.c (Fmake_specifier): Ditto.
8877
8878 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8879
8880         * paths.h.in (PATH_LOCK): Removed.
8881         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8882         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8883
8884 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8885
8886         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8887         Document (featurep '(and xemacs 21.02)).
8888
8889 2000-05-09  Ben Wing  <ben@xemacs.org>
8890
8891         * buffer.c (complex_vars_of_buffer):
8892         update modeline-format doc.
8893
8894         * device.h:
8895         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8896
8897         * emacs.c:
8898         timeline of all released versions of Emacs, for use in creating
8899         authorship comments and in synching up.
8900
8901         * glyphs-widget.c (image_instantiator_buttons):
8902         * glyphs-widget.c (image_instantiator_edit_fields):
8903         * glyphs-widget.c (image_instantiator_combo_box):
8904         * glyphs-widget.c (image_instantiator_scrollbar):
8905         * glyphs-widget.c (image_instantiator_progress_guage):
8906         * glyphs-widget.c (image_instantiator_tree_view):
8907         * glyphs-widget.c (image_instantiator_tab_control):
8908         * glyphs-widget.c (image_instantiator_labels):
8909         * glyphs-widget.c (image_instantiator_layout):
8910         * glyphs-widget.c (image_instantiator_native_layout):
8911         rename decode_domain method to governing_domain.
8912
8913         * glyphs.c:
8914         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8915         * glyphs.c (add_entry_to_device_ii_format_list):
8916         make sure we don't put an entry more than once into the list.
8917         * glyphs.c (check_instance_cache_mapper):
8918         *************************************************************
8919         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8920         HAVE BEEN GETTING.
8921         *************************************************************
8922         * glyphs.c (get_image_instantiator_governing_domain):
8923         clean up, expand on new concept of governing domain.
8924         * glyphs.c (instantiate_image_instantiator):
8925         * glyphs.c (allocate_image_instance):
8926         use governing_domain instead of cache_domain in naming.
8927         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8928         * glyphs.c (make_image_instance_1):
8929         * glyphs.c (Fmake_image_instance):
8930         allow for any domain (not just device), and process the
8931         governing domain correctly.  very big doc fix.
8932         * glyphs.c (Fimage_instance_domain):
8933         new primitive, to retrieve the governing domain of an image instance.
8934         * glyphs.c (image_instantiate):
8935         use new governing_domain stuff.  this fixes a crash you could get
8936         by instantiating certain widget glyphs in frame locales. (should
8937         signal an error instead of crashing.)
8938         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8939         * glyphs.c (Fglyphp): clean up doc.
8940         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8941         * glyphs.c (syms_of_glyphs):
8942         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8943         * glyphs.c (image_instantiator_format_create): add some comments about
8944         bogus code.
8945         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8946         for current-display-table. (Apparently Hrjove implemented in 1998 a
8947         design I wrote up in 1996, but didn't update the doc string.)
8948
8949         * glyphs.h: clean up a doc string.
8950         * glyphs.h (governing_domain):
8951         * glyphs.h (struct image_instantiator_methods):
8952         changes for governing_domain stuff.
8953
8954         * gutter.c:
8955         * gutter.c (Fgutter_specifier_p):
8956         * gutter.c (Fgutter_size_specifier_p):
8957         * gutter.c (Fgutter_visible_specifier_p):
8958         * objects.c:
8959         * objects.c (Fcolor_specifier_p):
8960         * objects.c (Ffont_specifier_p):
8961         * objects.c (Fface_boolean_specifier_p):
8962         doc strings moved to make-*-specifier.
8963
8964         * redisplay.c (add_disp_table_entry_runes_1):
8965         * redisplay.c (generate_fstring_runes):
8966         * redisplay.c (screen):
8967         add random comments and doc strings.
8968
8969         * specifier.c:
8970         * specifier.c (Fmake_specifier):
8971         major overhaul of this doc string.
8972
8973         * specifier.c (Fvalid_specifier_domain_p):
8974         comment about the bogosity of image instances being domains.
8975         * specifier.c (decode_domain):
8976         now non-static, used in glyphs.c.
8977         * specifier.c (specifier_instance):
8978         comment about the bogosity of image instances being domains.
8979         * specifier.c (Fgeneric_specifier_p):
8980         move doc string to make-generic-specifier.
8981         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8982         rebackslashify.
8983
8984         * specifier.h:
8985         * specifier.h (DOMAIN_FRAME):
8986         * specifier.h (DOMAIN_LIVE_P):
8987         * specifier.h (DOMAIN_XDEVICE):
8988         rebackslashify.
8989         add comments about problems with these macros.
8990         prototype for decode_domain.
8991
8992         * toolbar.c:
8993         * toolbar.c (Ftoolbar_specifier_p):
8994         move doc string to `make-toolbar-specifier'.
8995
8996         * window.c (window_unmap_subwindows_cache_mapper):
8997         *************************************************************
8998         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8999         HAVE BEEN GETTING.
9000         *************************************************************
9001
9002 2000-05-09  Andy Piper  <andy@xemacs.org>
9003
9004         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9005
9006         * window.c (Fset_window_configuration): reset the frame subwindow
9007         cache and re-initialize the window subwindow caches.
9008
9009         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9010
9011 2000-05-09  Ben Wing  <ben@xemacs.org>
9012
9013         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9014         DWORD.
9015
9016 2000-04-26  Mike Woolley  <mike@bulsara.com>
9017
9018         * ntheap.c: Changed recreate_heap to limit the amount reserved
9019         for the heap to that which is actually available. Also now
9020         displays a message box (with some dignostics) in the event that
9021         it still can't start.
9022
9023 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9024
9025         * callproc.c (Fold_call_process_internal): GCPRO path
9026
9027 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9028
9029         Patch by Bill Perry.
9030
9031         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9032         back data instead of #ifdef.
9033         (Fscrollbar_page_down): ditto.
9034
9035 2000-05-07  Ben Wing  <ben@xemacs.org>
9036
9037         * buffer.h:
9038         Kludge for defining Qmswindows_tstr.
9039
9040         * nt.c:
9041         * nt.c (open_input_file):
9042         * nt.c (open_output_file):
9043         * nt.c (rva_to_section):
9044         * nt.c (mswindows_executable_type):
9045         Move all memory-mapped-file routines here (some were in unexnt.c,
9046         which is bad because they are used by process-nt.c, and unexnt
9047         won't be around when portable dumping).  Synched the above routines
9048         with FSF 20.6.
9049
9050         * nt.h:
9051         Removed ifdef'd out bogus code.
9052         Fixed some prototypes.
9053
9054         * nt.h (file_data):
9055         * nt.h (OFFSET_TO_RVA):
9056         * nt.h (RVA_TO_OFFSET):
9057         * nt.h (RVA_TO_PTR):
9058         Moved the memory-mapped-file structures, macros and prototypes
9059         here, to parallel nt.c.  ntheap.h should really be removed
9060         entirely, and it's a non-portable-dumper specific file.
9061
9062         * ntheap.h (round_to_next):
9063         Moved the memory-mapped-file structures, macros and prototypes
9064         to nt.h.
9065
9066         * ntproc.c (compare_env):
9067         Moved rva_to_section and mswindows_executable_type to nt.c.
9068         Moved compare_env to process-nt.c.
9069         ntproc.c will die, one day.
9070
9071         * ntproc.c (sys_spawnve):
9072         Account for win32_ -> mswindows_.
9073
9074         * process-nt.c:
9075         * process-nt.c (struct nt_process_data):
9076         * process-nt.c (ensure_console_window_exists):
9077         * process-nt.c (compare_env):
9078         * process-nt.c (nt_create_process):
9079         * process-nt.c (nt_kill_process_by_pid):
9080         * process-nt.c (syms_of_process_nt):
9081         * process-nt.c (vars_of_process_nt):
9082         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9083         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9084         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9085         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9086         Move compare_env here from ntproc.c.
9087
9088         * process.c (Fprocess_send_region):
9089         Takes an optional fourth argument, BUFFER, which should fix some
9090         problems with call-process.
9091
9092         * syscommctrl.h:
9093         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9094
9095         * syswindows.h:
9096         Move ICC_BAR_CLASSES to syscommctrl.h.
9097         Add preliminary macros for MSWindows/Mule.  More to come.
9098
9099         * unexnt.c:
9100         * unexnt.c (unexec):
9101         open_output_file moved to nt.c.
9102
9103
9104 2000-05-05  Andy Piper  <andy@xemacs.org>
9105
9106         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9107         instance from the frame cache also since GC may catch up too late
9108         to make frame deletion sane.
9109
9110 2000-05-04  Andy Piper  <andy@xemacs.org>
9111
9112         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9113         (x_finalize_image_instance): ungcpro on deletion.
9114
9115         * glyphs.c (image_instantiator_format_create): give pointers a
9116         query geometry method so that the geometry is at least set.
9117
9118         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9119         initialize layouts if using widgets.
9120
9121 2000-05-03  Andy Piper  <andy@xemacs.org>
9122
9123         * nt.c: remove bogus reference to sysmmsystem.h
9124
9125         * gui-x.c (popup_selection_callback): fix no selection abort.
9126
9127 2000-05-02  Andy Piper  <andy@xemacs.org>
9128
9129         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9130         (mswindows_widget_instantiate): ditto.
9131
9132         * glyphs-widget.c (initialize_widget_image_instance): initialize
9133         children correctly.
9134         (widget_instantiate): cope with children and items in the same
9135         instance.
9136
9137         * glyphs.c (mark_image_instance): cope with children as a first
9138         class member.
9139         (image_instance_equal): ditto.
9140         (image_instance_hash): ditto.
9141         (image_instance_changed): ditto.
9142
9143 2000-04-30  Andy Piper  <andy@xemacs.org>
9144
9145         * glyphs.c (subwindow_query_geometry): new function. Return some
9146         defaults.
9147         (subwindow_instantiate): don't assign dimensions if none have been
9148         given.
9149         (image_instantiator_format_create): add subwindow_query_geometry.
9150         (print_image_instance): cope with layouts as widgets.
9151
9152 2000-04-29  Andy Piper  <andy@xemacs.org>
9153
9154         * frame.c (delete_frame_internal): call
9155         free_frame_subwindow_instance_cache so that all subwindows are
9156         finalized before their parent.
9157         (mark_frame): remove subwindow_cachels.
9158         (Fmake_frame): remove subwindow_cachel manipulation.
9159         (allocate_frame_core): subwindow_instance_cache is a weak list.
9160         (delete_frame_internal): set subwindow_instance_cache to nil.
9161
9162         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9163         finalization safe.
9164         (mswindows_finalize_image_instance): use the device
9165         not the domain as the domain may have died already.
9166
9167         * glyphs-x.c (x_finalize_image_instance): ditto.
9168         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9169         HEIGHT.
9170
9171         * redisplay-output.c (redisplay_unmap_subwindows): update for
9172         subwindow instance cache as a weak list.
9173         (redisplay_unmap_subwindows_maybe): ditto.
9174         (redisplay_unmap_subwindows_except_us): ditto.
9175
9176         * glyphs.c (unmap_subwindow): error checking will check the domain
9177         so don't deal with it here. Don't use cachels anymore.
9178         (map_subwindow): ditto.
9179         (update_subwindow_cachel_data): remove old accessor names.
9180         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9181         (Fresize_subwindow): don't update cachel.
9182         (mark_subwindow_cachels):
9183         (update_subwindow_cachel_data):
9184         (add_subwindow_cachel):
9185         (get_subwindow_cachel_index):
9186         (update_subwindow_cachel):
9187         (reset_subwindow_cachels):
9188         (mark_subwindow_cachels_as_not_updated): deleted.
9189         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9190         subwindow instance to the frame cache.
9191         (find_matching_subwindow): update for subwindow instance cache as
9192         a weak list.
9193         (update_widget_instances): ditto.
9194         (image_instance_type_to_mask):inlined.
9195         (free_frame_subwindow_instance_cache): new function. finalize all
9196         subwindows that are instantiated.
9197
9198         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9199         of cachel information.
9200         (IMAGE_INSTANCE_DISPLAY_X):
9201         (IMAGE_INSTANCE_DISPLAY_Y):
9202         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9203         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9204         (XIMAGE_INSTANCE_DISPLAY_X):
9205         (XIMAGE_INSTANCE_DISPLAY_Y):
9206         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9207         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9208         remove subwindow_cachel structure and function references.
9209         (image_instance_type_to_mask): inline from glyphs.c
9210
9211         * redisplay.c (redisplay_frame): remove subwindow_cachel
9212         references.
9213
9214         * frame.h (struct frame): remove subwindow_cachels.
9215         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9216
9217         * frameslots.h: add subwindow_instance_cache.
9218
9219         * window.c (replace_window): check subwindow cache of replacement.
9220         (window_unmap_subwindows_cache_mapper):
9221         (window_unmap_subwindows): new functions. Unmap all subwindows
9222         cached on this window.
9223         (mark_window_as_deleted): unmap all subwindows.
9224
9225 2000-04-27  Andy Piper  <andy@xemacs.org>
9226
9227         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9228
9229         * glyphs-widget.c (widget_layout): return something.
9230         (layout_layout): return something. Fail if not initialized.
9231         (layout_query_geometry): ditto.
9232         (image_instantiator_native_layout): new function. Initialized the
9233         native layout type.
9234         (widget_instantiate): don't do layout stuff here.
9235
9236         * glyphs.c (instantiate_image_instantiator): reorded calling or
9237         instantiate and post_instantiate with layout in between.
9238         (image_instance_layout): be more selective about deciding whether
9239         the layout has been done or not.
9240
9241         * glyphs.h (struct image_instantiator_methods): return a value
9242         from layout_method.
9243
9244 2000-04-26  Andy Piper  <andy@xemacs.org>
9245
9246         * glyphs.c (allocate_image_instance): make initial width and
9247         height unspecified. Set initialized to 0.
9248
9249         * syscommctrl.h new file. Encapsulates commctrl.h.
9250
9251         * syswindows.h new file. Encapsulates windows.h.
9252
9253         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9254         * nt.c: ditto.
9255         * console-msw.h: ditto.
9256
9257         * redisplay-tty.c (tty_output_display_block): remove layout references.
9258
9259         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9260         window handle rather than just the frame.
9261
9262         * glyphs.c (mark_image_instance): remove layout references.
9263         (print_image_instance): ditto.
9264         (image_instance_equal): ditto.
9265         (image_instance_hash): ditto.
9266         (decode_image_instance_type): ditto.
9267         (encode_image_instance_type): ditto.
9268         (image_instantiate): ditto.
9269         (allocate_glyph): ditto.
9270         (Fimage_instance_height): ditto.
9271         (Fimage_instance_width): ditto.
9272         (update_subwindow): ditto.
9273
9274         * redisplay-x.c (x_output_display_block): recode for layouts as
9275         widgets.
9276
9277         * redisplay-output.c (redisplay_output_layout): recode for layouts
9278         as widgets.
9279         (compare_runes): remove layout references.
9280
9281         * redisplay-msw.c (mswindows_output_display_block): recode for
9282         layouts as widgets.
9283
9284         * glyphs-widget.c (image_instantiator_layout): remove
9285         layout_possible_dest_types.
9286         (layout_possible_dest_types): deleted.
9287
9288         * glyphs.h (image_instance_type): remove layout references.
9289         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9290         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9291         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9292
9293 2000-04-25  Andy Piper  <andy@xemacs.org>
9294
9295         * glyphs-widget.c (image_instantiator_buttons):
9296         (image_instantiator_edit_fields):
9297         (image_instantiator_combo_box):
9298         (image_instantiator_scrollbar):
9299         (image_instantiator_progress_guage):
9300         (image_instantiator_tree_view):
9301         (image_instantiator_tab_control):
9302         (image_instantiator_labels):
9303         (image_instantiator_layout): call default post_instantiate method.
9304         (widget_post_instantiate): new function. Simply lays out the
9305         widgets.
9306
9307         * glyphs.h (struct image_instantiator_methods): add
9308         post_instantiate method.
9309
9310         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9311         method calls.
9312
9313 2000-04-23  Andy Piper  <andy@xemacs.org>
9314
9315         * glyphs.h (struct image_instantiator_methods): add
9316         decode_domain_method.
9317         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9318         derived from the domain.
9319         (IMAGE_INSTANCE_FRAME): new accessor.
9320         (XIMAGE_INSTANCE_FRAME): ditto.
9321
9322         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9323         instead of _SUBWINDOW_FRAME.
9324         (finalize_image_instance): ditto.
9325         (Fimage_instance_foreground): ditto.
9326         (Fimage_instance_background): ditto.
9327         (image_instantiate): ditto.
9328         (update_subwindow_cachel): ditto.
9329         (update_subwindow): ditto.
9330         (unmap_subwindow): ditto.
9331         (map_subwindow): ditto
9332         (subwindow_instantiate): ditto.
9333         * glyphs-msw.c (mswindows_update_widget): ditto.
9334         (mswindows_progress_gauge_instantiate): ditto.
9335         (mswindows_tab_control_update): ditto.
9336         * glyphs-x.c (x_update_widget): ditto.
9337         (x_widget_instantiate): ditto.
9338         (x_tab_control_instantiate): ditto.
9339         (x_tab_control_update): ditto.
9340         * event-msw.c (mswindows_wnd_proc): ditto
9341
9342         * glyphs-widget.c (image_instantiator_layout): use
9343         subwindow_decode_domain.
9344         (image_instantiator_buttons): ditto.
9345         (image_instantiator_edit_fields): ditto.
9346         (image_instantiator_combo_box): ditto.
9347         (image_instantiator_scrollbar): ditto.
9348         (image_instantiator_progress_guage): ditto.
9349         (image_instantiator_tree_view): ditto.
9350         (image_instantiator_tab_control): ditto.
9351         (image_instantiator_labels): ditto.
9352         (image_instantiator_layout): ditto.
9353
9354         * glyphs.c: add instance error checking to many functions.
9355         (instantiate_image_instantiator): decode device from cache_domain.
9356         (image_instantiate): partially rewrite by using
9357         decode_image_instantiator_domain to determine what domain the
9358         instance needs to be cached in.
9359         (decode_image_instantiator_domain): new function. Determine what
9360         domain the image needs to be cached in.
9361         (check_window_subwindow_cache): new error checking function.
9362         (check_instance_cache_mapper): ditto.
9363         (check_image_instance_structure): ditto.
9364         (subwindow_decode_domain): new function. Encodes a window as a
9365         subwindow's cache domain.
9366         (image_instantiator_format_create): use it for text and
9367         subwindows.
9368
9369 2000-04-21  Andy Piper  <andy@xemacs.org>
9370
9371         * glyphs.c (image_instance_device): new function.
9372         (image_instance_frame): new function.
9373         (image_instance_window): new function.
9374         (image_instance_live_p): new function.
9375
9376         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9377         cache to nil.
9378
9379         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9380         (IMAGE_INSTANCE_DOMAIN): new accessor.
9381         (XIMAGE_INSTANCE_DOMAIN): ditto.
9382
9383         * glyphs-x.c (x_finalize_image_instance): device->domain.
9384
9385         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9386         (mswindows_finalize_image_instance): ditto.
9387
9388         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9389         (gif_instantiate): ditto.
9390         (png_instantiate): ditto.
9391         (tiff_instantiate): ditto.
9392
9393         * glyphs.c (instantiate_image_instantiator): use domain rather
9394         than device.
9395         (mark_image_instance): device -> domain.
9396         (print_image_instance): ditto.
9397         (finalize_image_instance): ditto.
9398         (image_instance_equal): ditto.
9399         (allocate_image_instance): ditto.
9400         (Fcolorize_image_instance): ditto.
9401         (query_string_geometry): ditto.
9402         (image_instantiate): ditto
9403         (query_string_font): ditto.
9404         (image_instantiate): ditto.
9405         (update_subwindow): ditto.
9406         (unmap_subwindow): ditto.
9407         (map_subwindow): ditto.
9408         (subwindow_instantiate): ditto.
9409
9410         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9411         (DOMAIN_FRAME): ditto.
9412         (DOMAIN_WINDOW): ditto.
9413         (DOMAIN_LIVE_P): ditto.
9414         (XDOMAIN_DEVICE): ditto.
9415         (XDOMAIN_FRAME): ditto.
9416         (XDOMAIN_WINDOW): ditto.
9417
9418         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9419         a valid specifier domain.
9420
9421 2000-04-19  Andy Piper  <andy@xemacs.org>
9422
9423         * glyphs-widget.c (syms_of_glyphs_widget): remove
9424         widget-callback-current-channel.
9425         (vars_of_glyphs_widget): ditto.
9426         * glyphs.h: ditto
9427
9428         * gui.c (get_gui_callback): revert to previous behaviour.
9429
9430 2000-04-18  Andy Piper  <andy@xemacs.org>
9431
9432         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9433         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9434         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9435
9436         * glyphs.c (image_instance_equal): add margin_width.
9437         (image_instance_hash): ditto.
9438
9439         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9440         (layout_query_geometry): ditto.
9441         (layout_layout): ditto.
9442         (syms_of_glyphs_widget): add margin-width.
9443         (image_instantiator_layout): allow margin-width.
9444
9445         * glyphs.c (update_widget_instances): make a normal function.
9446         (syms_of_glyphs): remove Qupdate_widget_instances.
9447         * glyphs.h: ditto.
9448
9449         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9450         so that we don't corrupt ideas about the last event or
9451         command. Remove widget-callback-current-channel fiddling.
9452         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9453
9454 2000-05-01  Martin Buchholz <martin@xemacs.org>
9455
9456         * XEmacs 21.2.33 is released.
9457
9458 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9459
9460         * make-src-depend: Allow dots in header file name.
9461
9462 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9463
9464         * mule-charset.h (struct charset_lookup): Add
9465         next_allocated_1_byte_leading_byte and
9466         next_allocated_2_byte_leading_byte.
9467         * mule-charset.c: Move above two variables so that those values
9468         will be dumped.
9469
9470 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9471
9472         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9473         when string length is zero.
9474         (find_charsets_in_emchar_string): Ditto.
9475
9476 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9477
9478         * lisp.h: extern Qdialog and Qmenubar.
9479
9480         * gui-x.c: added events.h.
9481                 also fixed typo which made the file uncompilable.
9482
9483         * general.c: Added Qmenubar and Qdialog
9484
9485 2000-04-28  Ben Wing  <ben@xemacs.org>
9486
9487         * frame-msw.c (mswindows_init_frame_1):
9488         * frame-msw.c (mswindows_mark_frame):
9489         * event-msw.c (mswindows_enqueue_dispatch_event):
9490         * console-msw.h:
9491         * console-msw.h (struct mswindows_frame):
9492         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9493         there are now three hash tables for callbacks.
9494         mswindows_enqueue_dispatch_event is no longer static.
9495
9496         * dialog-x.c (maybe_run_dbox_text_callback):
9497         * dialog-x.c (dbox_descriptor_to_widget_value):
9498         switch to new cons3 form for callbacks.
9499
9500         * glyphs-msw.c (mswindows_register_gui_item):
9501         * glyphs-msw.c (mswindows_widget_instantiate):
9502         * glyphs-msw.c (add_tree_item):
9503         * glyphs-msw.c (add_tab_item):
9504         new image instance parameter, so it can be passed to callback-ex.
9505         respect :callback-ex as well as :callback.
9506
9507         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9508         add :callback-ex.
9509
9510         * glyphs.c (print_image_instance):
9511         prettify, e.g. now prints widget type.
9512
9513         * gui-x.h:
9514         certain funs have new image instance parameter.
9515
9516         * gui.c:
9517         * gui.c (get_gui_callback):
9518         * gui.c (gui_item_add_keyval_pair):
9519         * gui.c (gui_item_init):
9520         * gui.c (gui_add_item_keywords_to_plist):
9521         * gui.c (mark_gui_item):
9522         * gui.c (gui_item_hash):
9523         * gui.c (gui_item_equal):
9524         * gui.c (copy_gui_item):
9525         * gui.c (syms_of_gui):
9526         recognize callback-ex in a number of places.
9527         also, fix the annoying "can't get out of yes-no dialog" bug.
9528
9529         * gui.h:
9530         * gui.h (struct Lisp_Gui_Item):
9531         recognize callback-ex in a number of places.
9532
9533         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9534         new parameter in button_item_to_widget_value.
9535
9536         * glyphs-x.c (x_update_widget):
9537         * glyphs-x.c (x_button_instantiate):
9538         * glyphs-x.c (x_button_update):
9539         * glyphs-x.c (x_progress_gauge_instantiate):
9540         * glyphs-x.c (x_edit_field_instantiate):
9541         * glyphs-x.c (x_combo_box_instantiate):
9542         * glyphs-x.c (x_tab_control_instantiate):
9543         * glyphs-x.c (x_label_instantiate):
9544         new image instance parameter in various places.
9545
9546         * event-Xt.c:
9547         * event-Xt.c (enqueue_Xt_dispatch_event):
9548         this fun gets exported.
9549
9550         * gui-msw.c:
9551         * gui-msw.c (mswindows_handle_gui_wm_command):
9552         handle both :callback and :callback-ex, and generate our own
9553         event because it's one of the callback-ex arguments.
9554
9555         * gui-x.c:
9556         * gui-x.c (popup_selection_callback):
9557         handle both :callback and :callback-ex, and generate our own
9558         event because it's one of the callback-ex arguments.
9559         * gui-x.c (button_item_to_widget_value):
9560         * gui-x.c (gui_items_to_widget_values_1):
9561         * gui-x.c (gui_item_children_to_widget_values):
9562         * gui-x.c (gui_items_to_widget_values):
9563         new image instance parameter in various places.
9564
9565         * fns.c (Freplace_list):
9566         fix small typo in doc string.
9567
9568         * lisp.h:
9569         declare enqueue_Xt_dispatch_event.
9570
9571 2000-04-28  Ben Wing  <ben@xemacs.org>
9572
9573         * buffer.c:
9574         * buffer.c (Frecord_buffer):
9575         * buffer.c (syms_of_buffer):
9576         delete record-buffer-hook.
9577
9578         * fns.c:
9579         * fns.c (Freplace_list):
9580         * fns.c (syms_of_fns):
9581         new primitive replace-list.
9582
9583         * frameslots.h:
9584         slot for old buffer-alist.
9585
9586         * lisp.h:
9587         exfun replace-list.
9588
9589         * redisplay.c:
9590         * redisplay.c (redisplay_frame):
9591         * redisplay.c (syms_of_redisplay):
9592         * redisplay.c (vars_of_redisplay):
9593         new hook buffer-list-changed-hook.
9594         call it.
9595
9596 2000-04-27  Ben Wing  <ben@xemacs.org>
9597
9598         * extents.h: extern in_modeline_generation.
9599
9600         * redisplay.c (generate_formatted_string_db): set
9601         in_modeline_generation.
9602
9603         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9604         flags if in modeline generation.  otherwise frame-modified-tick
9605         is ticked far too often.
9606         Declare in_modeline_generation.
9607
9608 2000-04-26  Ben Wing  <ben@xemacs.org>
9609
9610         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9611         option.
9612         (vars_of_emacs): add quick-build as an error-checking option.
9613         A bit kludgy, but there doesn't seem much point in creating
9614         a real var for this.
9615
9616         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9617
9618 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9619
9620         * redisplay.h (struct display_line): Add a new variable,
9621         line_continuation.
9622
9623         * redisplay.c (create_text_block): Set dl->line_continuation if
9624         the line continues.
9625         (create_string_text_block): Ditto.
9626         (regenerate_window_incrementally): Use line_continuation instead
9627         of searching continuation glyph.
9628         (add_margin_runes): Call add_glyph_rune.
9629         (add_glyph_rune): Handle margin glyph.
9630
9631 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9632
9633         * filelock.c (fill_in_lock_file_name):
9634         ANSIfy.
9635         Check for IS_ANY_SEP instead of '/'.
9636         (lock_file_1):
9637         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9638         Never check errno without first seeing that system call failed.
9639         (unlock_file): Add GCPRO.
9640         (Flock_buffer): Fix docstring.
9641         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9642
9643 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9644
9645         * sysdep.c (get_pty_max_bytes):
9646         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9647         strings longer than 252 bytes.
9648
9649         * md5.c: Unconditionally include ANSI header <limits.h>
9650
9651         * glyphs-x.c (convert_EImage_to_XImage):
9652         * lisp-union.h (union Lisp_Object):
9653         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9654
9655 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9656
9657         * filelock.c (current_lock_owner): Remove unused variable o, p.
9658
9659 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9660
9661         * callint.c: Remove multiply defined symbol Qlet
9662         (syms_of_callint): ditto.
9663
9664 2000-04-14  Andy Piper  <andy@xemacs.org>
9665
9666         * general.c (syms_of_general): add last-command, this-command, let
9667         and funcall.
9668
9669         * lisp.h: declare various symbols.
9670
9671         * glyphs.h: declare Qwidget_callback_current_channel;
9672
9673         * glyphs-widget.c (syms_of_glyphs_widget): add
9674         Qgui_callback_current_channel.
9675         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9676
9677         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9678         widget-callback-current-channel when invoking the interactive
9679         arg. Also bind last-command and next-command when invoking the
9680         widget updates.
9681         * gui-x.c (popup_selection_callback): ditto.
9682
9683         * gui.c (get_gui_callback): massage args so that we are always
9684         calling eval. This allows us to add our own variable bindings
9685         outside.
9686
9687         * glyphs-x.c (x_button_instantiate): use
9688         gui_items_to_widget_values since this is GC safe.
9689         (x_progress_gauge_instantiate): ditto.
9690         (x_edit_field_instantiate): ditto.
9691         (x_label_instantiate): ditto.
9692
9693         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9694         (emacs_Xt_event_widget_focus_out): new function
9695         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9696         focus.
9697         (emacs_Xt_event_add_widget_actions): new function. add focus
9698         functions as actions.
9699         (init_event_Xt_late): use it.
9700
9701 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9702
9703         * event-stream.c (Fdispatch_event): Doc fix.
9704
9705 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9706
9707         * postgresql.c: Remove all references to PQsetenv*.
9708
9709         * postgresql.h: Remove references to PGsetenvHandler object.
9710         * lrecord.h (lrecord_type): Ditto.
9711
9712 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9713
9714         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9715         real_heigh and real_width members, and accessor macros for these.
9716
9717         * glyphs-msw.c (init_image_instance_geometry): New function.
9718         (init_image_instance_from_dibitmap): Use it.
9719         (mswindows_resource_instantiate): Use it.
9720         (init_image_instance_from_xbm_inline): Use it.
9721         (mswindows_initialize_image_instance_mask): Use real bitmap
9722         geometry.
9723         (mswindows_create_resized_bitmap): Ditto.
9724         (mswindows_create_resized_mask): Ditto.
9725
9726         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9727         and bitmap to their surface size.
9728
9729 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9730
9731         * process-unix.c (unix_send_process): Guard against process MIA
9732         after Faccept_process_output.
9733
9734 2000-04-11  Ben Wing  <ben@xemacs.org>
9735
9736         * eval.c (unbind_to_hairy): fix brokenness introduced by
9737         nanosecond speed improvements.
9738
9739 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9740
9741         * sunplay.c (init_device): To play sounds correctly, the device
9742         apparently needs to be initialized at least once by XEmacs.  Make
9743         it so.
9744
9745 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9746
9747         * redisplay.c (add_margin_runes): Add text image glyph
9748           handling.
9749
9750 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9751
9752         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9753         gcc is newer than 2.5.
9754
9755 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9756
9757         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9758
9759         * fns.c (size_bit_vector):
9760         * alloc.c (size_vector):
9761         (make_vector_internal):
9762         (make_bit_vector_internal):
9763         (sweep_bit_vectors_1):
9764         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9765
9766 2000-04-06  Andy Piper  <andy@xemacs.org>
9767
9768         * gmalloc.c (malloc): undo previous change.
9769         (malloc): ditto.
9770         (free): ditto.
9771         (realloc): ditto.
9772
9773 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9774
9775         * line-number.c (buffer_line_number): Revert to former version.
9776
9777 2000-04-06  Andy Piper  <andy@xemacs.org>
9778
9779         * gmalloc.c (malloc): add error checking.
9780         (malloc): ditto.
9781         (free): ditto.
9782         (realloc): ditto.
9783
9784         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9785         button_item_to_widget_value arg.
9786
9787         * glyphs-x.c (x_button_instantiate): add extra
9788         button_item_to_widget_value arg.
9789         (x_progress_gauge_instantiate): ditto.
9790         (x_edit_field_instantiate): ditto.
9791         (x_label_instantiate): ditto.
9792
9793         * gui-x.c (gui_items_to_widget_values_1): add extra
9794         button_item_to_widget_value arg.
9795         (button_item_to_widget_value): add extra menu_item_p arg.
9796
9797         * gui-x.h: change signature of button_item_to_widget_value.
9798
9799         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9800         button_item_to_widget_value arg.
9801
9802 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9803
9804         * buffer.h (struct buffer): auto_save_modified should be long.
9805
9806 2000-04-05  Andy Piper  <andy@xemacs.org>
9807
9808         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9809         type.
9810         (button_query_geometry): give a little more room so that athena
9811         buttons fit.
9812
9813 2000-04-05  Andy Piper  <andy@xemacs.org>
9814
9815         * faces.c (complex_vars_of_faces): The widget face should inherit
9816         the font of the gui-element face.
9817
9818 2000-04-04  Andy Piper  <andy@xemacs.org>
9819
9820         * glyphs-x.c (x_button_update): new function. unconditionally
9821         update a button's state when the instance is dirty.
9822         (image_instantiator_format_create_glyphs_x): add x_button_update.
9823         (x_widget_instantiate): remove old resize cruft.
9824
9825 2000-04-02  Andy Piper  <andy@xemacs.org>
9826
9827         * frame.c (change_frame_size_1): The introduction of gutters means
9828         that we need to allow 0 as a potential frame dimension.
9829
9830 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9831
9832         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9833         image glyph if allow_cursor.
9834         (add_hscroll_rune): Don't allow cursor to border glyph.
9835         (create_text_block): Ditto.
9836
9837         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9838         text not in buffer.
9839         (redisplay_output_layout): Call ensure_face_cachel_complete for
9840         text image glyph.
9841
9842
9843 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9844
9845         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9846
9847         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9848         not in buffer
9849
9850         * redisplay-tty.c (tty_output_display_block): Delete the routine
9851         for text image glyph
9852         * redisplay-x.c (x_output_display_block): ditto
9853         * redisplay-msw.c (mswindows_output_display_block): ditto
9854
9855 2000-02-02  Mike Alexander  <mta@arbortext.com>
9856
9857         Note: Some of these were committed by accident as part of other
9858         patches.
9859
9860         * regex.c (regex_compile): Avoid compiler warnings.
9861
9862         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9863
9864         * nt.h: Declare term_ntproc correctly.
9865
9866         * nt.c: Remove incorrect declaration of get_home_directory which
9867         is declared correctly in lisp.h.
9868
9869         * keymap.c (get_keyelt): Avoid compiler warnings.
9870         (raw_lookup_key_mapper): Avoid compiler warnings.
9871
9872         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9873
9874         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9875
9876         * filemode.c (mode_string): Avoid compiler warnings.
9877
9878         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9879         avoid warning.
9880
9881         * events-mod.h: Undef some things that winuser.h defines differently.
9882
9883         * data.c (Faset): Avoid compiler warnings.
9884
9885         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9886
9887 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9888
9889         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9890         Fall through to simple beep on error.
9891         Replace "extern" by real header file.
9892
9893         * linuxplay.c: Use nativesound.h
9894         (play_sound_data): Return error code. Be less verbose on error.
9895
9896         * sunplay.c: Use nativesound.h
9897         (play_sound_data): Return error code. Be less verbose on error.
9898
9899         * ntplay.c: Use nativesound.h
9900         (play_sound_data): Return fake error code
9901
9902         * sgiplay.c: Use nativesound.h
9903         (play_sound_data): Return error code
9904
9905         * hpplay.c: Use nativesound.h, partially implement
9906         new error code. Break compilation until finished.
9907         (play_sound_data): error code.
9908
9909         * nativesound.h (play_sound_file):
9910           (play_sound_data): Prototype in new header.
9911
9912 2000-03-31  Andy Piper  <andy@xemacs.org>
9913
9914         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9915         for toggle and radio buttons.
9916         (image_instantiator_buttons): use it.
9917
9918 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9919
9920         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9921         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9922         found. Scrollbar event probably belonged to some old config.
9923
9924 2000-03-31  Andy Piper  <andy@xemacs.org>
9925
9926         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9927         than 1.
9928         (initialize_widget_image_instance): default layout to
9929         LAYOUT_HORIZONTAL rather than 0.
9930         (widget_instantiate): reverse the item list at the end rather than
9931         every iteration.
9932         (layout_layout): re-code for the border text at the front of the
9933         item list rather than at the end.
9934         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9935         provided by the user.
9936         (widget_query_geometry): comment.
9937
9938 2000-03-30  Andy Piper  <andy@xemacs.org>
9939
9940         * glyphs-widget.c (image_instantiator_layout): allow standard
9941         widget keywords in layouts.
9942
9943         * gutter.c (output_gutter): cope with nil gutter contents.
9944
9945         * frame.c (Fset_frame_properties): add gutter docs.
9946
9947 2000-03-29  Andy Piper  <andy@xemacs.org>
9948
9949         * toolbar-msw.c (TBSTYLE_FLAT): add.
9950         (mswindows_output_toolbar): minor fiddling.
9951
9952 2000-03-29  Andy Piper  <andy@xemacs.org>
9953
9954         * gutter.c (output_gutter): force gutter size recalculation if
9955         what we are trying to display won't fit.
9956         (update_gutter_geometry): new function. A per-gutter version of
9957         update_frame_gutter_geometry.
9958         (update_frame_gutter_geometry): use it.
9959         (redraw_exposed_gutter): add extra debugging output.
9960
9961 2000-03-28  Mike Alexander  <mta@arbortext.com>
9962
9963         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9964         (pdump_file_unmap): Implement it on Windows
9965         (pdump_file_get): Save alocated handles for pdump_file_unmap
9966
9967 2000-03-28  Andy Piper  <andy@xemacs.org>
9968
9969         * gui.c (get_gui_callback): treat Quit specially.
9970
9971 2000-03-27  Andy Piper  <andy@xemacs.org>
9972
9973         * glyphs.c (image_instantiate): be careful to check in the same
9974         way we assigned.
9975
9976 2000-03-27  Didier Verna  <didier@xemacs.org>
9977
9978         * config.h.in: define the proper SMART_INCLUDE macro.
9979         handle renaming of `foo_h_path' to `foo_h_file'.
9980
9981         * database.c: ditto.
9982
9983         * emacs.c: ditto.
9984
9985         * linuxplay.c: ditto.
9986
9987         * terminfo.c: ditto.
9988
9989         * tooltalk.h: ditto.
9990
9991 2000-03-27  Andy Piper  <andy@xemacs.org>
9992
9993         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9994         gets updated whenever the face might have changed.
9995
9996 2000-03-26  Mike Alexander  <mta@arbortext.com>
9997
9998         * dumper.c (pdump_resource_free): Fix the comment.
9999
10000 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10001
10002         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10003
10004 2000-03-22  Mike Alexander  <mta@arbortext.com>
10005
10006         * dumper.c: Include Windows headers on Windows
10007         (pdump_resource_free): Add a body to the function
10008         (pdump_load): exe_name -> exe_path and add some comments.
10009
10010 2000-03-25  Mike Alexander  <mta@arbortext.com>
10011
10012         * gui.c (copy_gui_item_tree): Return a value in all cases
10013
10014 2000-03-21  Didier Verna  <didier@xemacs.org>
10015
10016         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10017         lwlib/config.h.in.
10018         (SMART_INCLUDE): new macro.
10019         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10020         the proper location.
10021
10022         * postgresql.c: use it.
10023
10024         * inline.c: ditto.
10025
10026 2000-03-24  Andy Piper  <andy@xemacs.org>
10027
10028         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10029         do this.
10030
10031 2000-03-24  Andy Piper  <andy@xemacs.org>
10032
10033         * redisplay-output.c (compare_runes): use image_instance_changed
10034         to detect changes. Do not depend on glyphs_changed, only depend on
10035         dirtiness.
10036          (redisplay_output_layout): add debug messages.
10037         (compare_runes): ditto.
10038
10039         * glyphs.h: declare new functions.
10040         (struct Lisp_Image_Instance): remove percent and associated
10041         accessors.
10042
10043         * gui.h: declare new copying functions.
10044
10045         * gui.c (copy_gui_item_tree): new function.
10046         (copy_gui_item): new function.
10047         (gui_item_id_hash): revert to standard hash.
10048         (gui_item_hash): ditto.
10049         (gui_item_hash_internal): deleted.
10050         (mark_gui_item): mark value.
10051         (gui_item_add_keyval_pair): add value.
10052         (gui_item_init): ditto.
10053         (gui_add_item_keywords_to_plist): ditto.
10054         (gui_item_equal): ditto.
10055         (syms_of_gui): add Q_value.
10056
10057         * glyphs-x.c (x_progress_gauge_update): use pending items and
10058         value for setting the state.
10059         (x_update_widget): don't set items from pending here.
10060
10061         * glyphs-widget.c (update_widget): update items here.
10062         (progress_gauge_set_property): use items for storing value. Put
10063         new value in pending items.
10064
10065         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10066         items for new value. Convert percent -> value.
10067         (mswindows_tab_control_update): don't update items here.
10068
10069         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10070         (update_subwindow): ditto.
10071         (image_instance_changed): new function. Compare hash values and
10072         past and present widget items.
10073         (image_instantiate): We more careful about where we instantiate
10074         things.
10075         (image_instantiate): add error checking.
10076
10077         * gutter.c (syms_of_gutter): use -hook.
10078
10079 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10080
10081         * console-tty.c (Fset_console_tty_input_coding_system): Use
10082         Qkeyboard.
10083         (Fset_console_tty_output_coding_system): Use Qterminal.
10084         (tty_init_console): Use Qkeyboard and Qterminal.
10085
10086 2000-03-21  Ben Wing  <ben@xemacs.org>
10087
10088         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10089         From Mike Alexander <mta@arbortext.com>.
10090
10091 2000-03-21  Ben Wing  <ben@xemacs.org>
10092
10093         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10094         process brokenness.  Proper implementation to come.
10095         * callproc.c:
10096         Rename call-process-internal to old-call-process-internal.
10097         New impl. in process.el.
10098
10099 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10100
10101         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10102
10103 2000-03-20  Andy Piper  <andy@xemacs.org>
10104
10105         * glyphs.c (full_list_hash): make hashes of the same elements in
10106         different orders return different values.
10107
10108 2000-03-20  Martin Buchholz <martin@xemacs.org>
10109
10110         * XEmacs 21.2.32 is released.
10111
10112 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10113
10114         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10115         (DFC_MALLOC_USE_CONVERTED_DATA):
10116         Add aliasing-safe casts to allow use with char* or unsigned char*
10117         lvalues.
10118
10119         * eldap.c (Fldap_open):
10120         (Fldap_search_basic):
10121         (Fldap_add):
10122         (Fldap_modify):
10123         Make C++-compilable.
10124         Make sure GCPRO'ed variables are initialized.
10125         Use temp variables to avoid repeated calls to Flength.
10126
10127 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10128
10129         * sysfile.h:
10130         Make sure PATH_MAX is always defined.
10131         Include limits.h for PATH_MAX.
10132         Deprecate use of MAXPATHLEN.
10133
10134 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10135
10136         * emacs.c: Add reinit_vars_of_fileio.
10137         * symsinit.h: Add reinit_vars_of_fileio.
10138         * fileio.c (reinit_vars_of_fileio): New.
10139         * fileio.c (Fmake_temp_name):
10140         Initialize temp_name random number from microseconds to make
10141         collisions even less likely.  Initialize always at process startup
10142         time.  (make-temp-name) used to return the same file name twice in
10143         a row when PDUMP.
10144         Random stylistic fiddling.
10145         Comment fixes.
10146
10147 2000-03-20  Andy Piper  <andy@xemacs.org>
10148
10149         * glyphs.c (image_instantiate): allow text glyphs to be
10150         instantiated in the minibuffer window.
10151
10152 2000-03-19  Andy Piper  <andy@xemacs.org>
10153
10154         * glyphs.c (image_instance_hash): be careful about which items we
10155         hash on.
10156
10157         * glyphs-widget.c (tab_control_set_property): record into pending
10158         items rather than the actual items.
10159
10160         * glyphs-x.c (x_update_widget): use pending items to update with.
10161
10162         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10163         to update with.
10164
10165         * glyphs.c (mark_image_instance): mark pending items.
10166
10167         * window.c (Fset_window_configuration): record the buffer.
10168         (Fselect_window): totally revert previous change which breaks many
10169         things.
10170
10171 2000-03-18  Andy Piper  <andy@xemacs.org>
10172
10173         * glyphs-msw.c (mswindows_tab_control_update): force selected
10174         item.
10175
10176         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10177         window domain cache, otherwise we get inconsistencies at
10178         startup. There is something fishy at startup which can lead to the
10179         minibuffer being the selected window when the gutter content is
10180         instantiated.
10181
10182         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10183         gcpros.
10184         (parse_gui_item_tree_children): ditto.
10185         (parse_gui_item_tree_item): ditto.
10186
10187         * glyphs.c (Fupdate_widget_instances): return something.
10188
10189 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10190
10191         * window.c (Fselect_window): Undo 2000-03-17 change.
10192
10193 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10194
10195         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10196         against v7.0 libraries.  Insta-coredump city until the postgres
10197         folks fix it.
10198
10199 2000-03-17  Andy Piper  <andy@xemacs.org>
10200
10201         * faces.c (complex_vars_of_faces): don't give the widget face an
10202         inherited background pixmap.
10203
10204         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10205         selected item.
10206
10207         * event-stream.c (Fdispatch_non_command_events): return something.
10208
10209         * gutter.c (output_gutter): use widget face.
10210         (clear_gutter): ditto.
10211
10212         * NEWS: adjust again.
10213
10214         * window.c (Fselect_window): make sure this runs to completion to
10215         avoid oddities with Fset_window_configuration.
10216         (Fcurrent_window_configuration): in general do not save the
10217         minibuffer as the selected window.
10218
10219         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10220
10221 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10222
10223         * emacs.c (Frunning_temacs_p): Revert previous patch.
10224         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10225
10226 2000-03-16  Andy Piper  <andy@xemacs.org>
10227
10228         * glyphs-x.c (x_tab_control_update): if no widget values then
10229         return.
10230
10231         * NEWS: update for new features.
10232
10233         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10234         synthetic event to the native system.
10235         (reinit_vars_of_event_Xt): set force_event_pending to
10236         emacs_Xt_force_event_pending.
10237
10238         * events.h (struct event_stream): add force_event_pending.
10239
10240         * specifier.c (recompute_one_cached_specifier_in_window): add
10241         comment.
10242
10243         * redisplay.c (redisplay_frame): don't call
10244         update_frame_subwindows. Reset subwindow cachels when
10245         subwindows_changed, removing this was an optimization too far.
10246
10247         * redisplay-output.c (compare_runes): reorganize so that we catch
10248         glyph changes when we want them. Set optimize_output when this
10249         would help layouts.
10250         (redisplay_output_layout): remove frame_really_changed, use
10251         optimize_output instead.
10252
10253         * redisplay-msw.c (mswindows_output_display_block): reset
10254         optimize_output after outputting a glyph.
10255         * redisplay-x.c (x_output_display_block): ditto.
10256         * redisplay-tty.c (tty_output_display_block): ditto.
10257
10258         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10259         functions.
10260         (gutter_specs_changed): do specific gutter positions.
10261         (top_gutter_specs_changed): new function. Only update the
10262         specified gutter specs.
10263         (bottom_gutter_specs_changed): ditto.
10264         (left_gutter_specs_changed): ditto.
10265         (right_gutter_specs_changed): ditto.
10266
10267         * gui.c (gui_item_hash_internal): new function, does a real hash.
10268         (gui_item_id_hash): use it.
10269         (gui_item_hash): hash the eval'ed gui_item.
10270
10271         * gui-x.c (popup_selection_callback): send an eval event to call
10272         Fupdate_widget_instances.
10273
10274         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10275         to call Fupdate_widget_instances.
10276
10277         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10278         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10279
10280         * glyphs.c: (update_frame_subwindows): deleted.
10281         (Fupdate_widget_instances): new function for updating the dirty
10282         state of widgets that might have changed.
10283         (syms_of_glyphs): add Qupdate_widget_instances.
10284         (full_list_hash): hash a list completely.
10285         (image_instance_hash): use it for items and properties.
10286
10287         * frame-msw.c (mswindows_size_frame_internal): remove unused
10288         variable.
10289
10290         * faces.h (struct face_cachel): fix comment.
10291
10292         * event-stream.c (Fdispatch_non_command_events): new
10293         function. Process non-command events, forcing an event cycle
10294         beforehand.
10295         (syms_of_event_stream): declare.
10296         (event_stream_force_event_pending): new function. Force an event
10297         on the native event queue so that an event cycle will occur next
10298         time we check.
10299
10300         * event-msw.c:
10301         (struct ntpipe_shove_stream):
10302         (mswindows_enqueue_dispatch_event):
10303         (mswindows_dequeue_dispatch_event):
10304         (mswindows_cancel_dispatch_event):
10305         (mswindows_pump_outstanding_events):
10306         (mswindows_drain_windows_queue):
10307         (mswindows_handle_paint):
10308         (mswindows_wnd_proc):
10309         (mswindows_key_to_emacs_keysym):
10310         (get_process_input_waitable):
10311         (emacs_mswindows_delete_stream_pair): re-indent file.
10312         (mswindows_need_event): do not process further fds if the windows
10313         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10314         fixes the 100% cpu problem.
10315         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10316
10317 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10318
10319         * alloc.h: New.
10320         * dumper.h: New.
10321         * dumper.c: New.
10322
10323         * emacs.c: Moved dump file searching to dumper.c.
10324         (Frunning_temacs_p): Fixed.
10325
10326         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10327         last_lrecord_type_index_assigned.
10328
10329 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10330
10331         * symsinit.h: Added reinit parameter to init_console_stream
10332         declaration.
10333
10334         * lisp.h: Added file parameter to pdump_load declaration.
10335
10336         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10337         support.  Added dump file searching.
10338
10339         * config.h.in: Added EMACS_PROGNAME.
10340
10341         * console-stream.c (init_console_stream): Fix reinitialisation
10342         when running from temacs.
10343
10344         * alloc.c (pdump): Add id support.
10345         (pdump_load): Add file parameter and signature/id support.
10346
10347         * Makefile.in.in: Add full pdump support.
10348
10349 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10350
10351         * postgresql.c: Update documentation to reflect latest code
10352         status.
10353         (print_result): Show tuple counts in printed representation when
10354         appropriate.
10355         (Fpq_put_nbytes): MULE-ize.
10356         (Fpq_get_line_async): Ditto.
10357
10358 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10359
10360         * postgresql.c (Fpq_lo_import): Fix return value.
10361         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10362
10363 2000-03-13  Ben Wing  <ben@xemacs.org>
10364
10365         * alloc.c (pdump_load):
10366         Fix compile warning under mswin.
10367
10368 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10369
10370         * postgresql.c: Mule-ization, bug fixes.
10371         Use PG_CODING to encapsulate coding system name changes.
10372         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10373         (pg-coding-system): Create.
10374
10375         (Fpq_conn_defaults): Mule-ize.
10376         (Fpq_connectdb): Mule-ize & bug fix.
10377         (Fpq_connect_start): Mule-ize.
10378         (Fpq_set_client_encoding): Mule-ize.
10379         (Fpq_finish): Document `DEAD' connection status.
10380         (Fpq_clear): Ditto.
10381         (Fpq_pgconn): Mule-ize.
10382         (Fpq_exec): Mule-ize & bug fix.
10383         (Fpq_send_query): Ditto.
10384         (Fpq_get_result): Ditto.
10385         (Fpq_res_status): Mule-ize.
10386         (Fpq_result_error_message): Mule-ize.
10387         (Fpq_ntuples): fix comments.
10388         (Fpq_fname): Mule-ize.
10389         (Fpq_fnumber): Mule-ize.
10390         (Fpq_ftype): fix comments.
10391         (Fpq_get_value): Mule-ize.
10392         (Fpq_cmd_status): Ditto.
10393         (Fpq_cmd_tuples): Ditto.
10394         (Fpq_oid_value): Ditto.
10395         (Fpq_notifies): Ditto.
10396         (Fpq_lo_import): Ditto.
10397         (Fpq_lo_export): Ditto.
10398         (Fpq_get_line): Ditto.
10399         (Fpq_put_line): Mule-ize and bug fix.
10400         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10401
10402 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10403
10404         * postgresql.c (vars_of_postgresql): Mule-ize.
10405         (Fpq_conn_defaults): Ditto.
10406
10407 2000-03-12  Ben Wing  <ben@xemacs.org>
10408
10409         * alloc.c (Fmake_byte_code):
10410         * alloc.c (debug_string_purity_print):
10411         * alloc.c (pdump_backtrace):
10412         * alloc.c (pdump_get_indirect_count):
10413         * alloc.c (pdump_register_sub):
10414         * alloc.c (pdump_register_object):
10415         * alloc.c (pdump_register_struct):
10416         * alloc.c (pdump_dump_data):
10417         * alloc.c (pdump_reloc_one):
10418         Minor cleanups.
10419
10420         * console-msw.c:
10421         * console-msw.c (GetConsoleHwnd):
10422         * console-msw.c (msw_hide_console):
10423         * console-msw.c (msw_show_console):
10424         * console-msw.c (msw_ensure_console_buffered):
10425         * console-msw.c (msw_output_console_string):
10426         * console-msw.c (console_type_create_mswindows):
10427
10428         a) Added functions to manipulate the console window for use with
10429         shell support.
10430
10431         b) Added support for writing text to the console, which is now
10432         used under Windows when xemacs is not being run non-interactively,
10433         to write text that would otherwise be destined for stdout because
10434         under these circumstances, text written to stdout tends to
10435         disappear and not be seen.
10436
10437         * console-msw.h:
10438         * event-Xt.c:
10439         * event-Xt.c (x_event_to_emacs_event):
10440         * event-Xt.c (describe_event_window):
10441         * events-mod.h (XEMACS_MOD_CONTROL):
10442         * events.c:
10443         * events.c (Fmake_event):
10444         * events.c (character_to_event):
10445         * events.c (event_to_character):
10446         * events.c (format_event_object):
10447         * events.c (Fevent_modifiers):
10448         * events.h:
10449         * events.h (struct key_data):
10450         * events.h (struct button_data):
10451         * events.h (struct misc_user_data):
10452         * frame-x.c (Fcde_start_drag_internal):
10453         * frame-x.c (Foffix_start_drag_internal):
10454         * gpmevent.c (Freceive_gpm_event):
10455         * keymap.c:
10456         * keymap.c (bucky_sym_to_bucky_bit):
10457         * keymap.c (control_meta_superify):
10458         * keymap.c (make_key_description):
10459         * keymap.c (keymap_lookup_directly):
10460         * keymap.c (create_bucky_submap):
10461         * keymap.c (keymap_store):
10462         * keymap.c (define_key_check_and_coerce_keysym):
10463         * keymap.c (define_key_parser):
10464         * keymap.c (define_key_alternate_name):
10465         * keymap.c (Fdefine_key):
10466         * keymap.c (raw_lookup_key_mapper):
10467         * keymap.c (struct map_keymap_unsorted_closure):
10468         * keymap.c (map_keymap_unsorted_mapper):
10469         * keymap.c (map_keymap_sort_predicate):
10470         * keymap.c (map_keymap_sorted):
10471         * keymap.c (accessible_keymaps_mapper_1):
10472         * keymap.c (where_is_recursive_mapper):
10473         * keymap.c (describe_map_mapper):
10474         * keymap.c (describe_map_sort_predicate):
10475         * keymap.c (describe_map):
10476         * keymap.c (complex_vars_of_keymap):
10477         And a number of other files, the key modifier preprocessor
10478         constants that xemacs uses have names that conflict with constants
10479         defined under MS Windows for other purposes, so they were renamed
10480         to begin with the prefix XEMACS_. The variables that hold such
10481         modifiers were changed to consistently be of type int to fix
10482         various compile warnings.
10483
10484         * console.c (complex_vars_of_console):
10485         * device.c:
10486         * device-msw.c:
10487         * device-msw.c (mswindows_finish_init_device):
10488         * device-msw.c (msw_get_workspace_coords):
10489         * device-msw.c (mswindows_device_system_metrics):
10490         and various other files, added support for a new
10491         device property called offset-workspace which returns the position
10492         of the upper left corner of the workspace area and goes along with
10493         the existing size-workspace property.
10494
10495         * dialog-msw.c:
10496         * dialog-msw.c (push_bufbyte_string_as_unicode):
10497         * dialog-msw.c (mswindows_popup_dialog_box):
10498         Added support for XEmacs-style accelerator specifications in
10499         button text.  Note: I didn't add support for this under X Windows,
10500         and somebody needs to do this.
10501
10502         * dialog.c:
10503         * dialog.c (Fpopup_dialog_box):
10504         Documented the support for accelerators that was just mentioned.
10505
10506         editfns.c (get_home_directory): Changed behavior under Windows
10507         when HOME not defined; former behavior was irretrievably broken.
10508
10509         * emacs.c:
10510         * emacs.c (main_1):
10511         * emacs.c (main):
10512         * minibuf.c (clear_echo_area_internal):
10513         * minibuf.c (echo_area_append):
10514         * print.c:
10515         * print.c (std_handle_out_external):
10516         * print.c (std_handle_out_va):
10517         * print.c (fatal):
10518         * print.c (write_string_to_stdio_stream):
10519         * print.c (output_string):
10520         * print.c (debug_print):
10521         * print.c (debug_backtrace):
10522         * print.c (debug_short_backtrace):
10523         Cleaned up the code that prints text to stdout so that this can be
10524         changed to output into a console window instead under MS Windows,
10525         as described above.
10526
10527         * eval.c:
10528         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10529         * eval.c (internal_catch):
10530         * eval.c (unwind_to_catch):
10531         * eval.c (throw_or_bomb_out):
10532         * eval.c (condition_case_1):
10533         * eval.c (signal_1):
10534         * eval.c (check_error_state_sanity):
10535         * eval.c (call_with_suspended_errors_1):
10536         * eval.c (call_with_suspended_errors):
10537         * eval.c (reinit_vars_of_eval):
10538         Added code to catch throw loops and check for a pesky bug that may
10539         be gone now.
10540
10541         * event-msw.c:
10542         * event-msw.c (key_needs_default_processing_p):
10543         * event-msw.c (mswindows_wnd_proc):
10544         * event-msw.c (mswindows_modifier_state):
10545         * event-msw.c (emacs_mswindows_quit_p):
10546         * event-msw.c (vars_of_event_mswindows):
10547         a) Added support for using the alt key to select menu items as is
10548         standard under MS Windows.  This is controlled using the variable
10549         menu-accelerator-enabled, just like under X Windows.  There is an
10550         option on the options menu to turn this support on.  I really
10551         think that it should be on by default under Windows, but I'm not
10552         going to make this change yet.
10553
10554         b)  Added support for dynamic display size changes under Windows.
10555
10556         * event-stream.c:
10557         * event-stream.c (maybe_echo_keys):
10558         * event-stream.c (Fnext_event):
10559         * event-stream.c (command_builder_find_leaf):
10560         * event-stream.c (lookup_command_event):
10561         * event-stream.c (execute_command_event):
10562         * event-stream.c (pre_command_hook):
10563         * event-stream.c (post_command_hook):
10564         * event-stream.c (syms_of_event_stream):
10565         * event-stream.c (vars_of_event_stream):
10566         * event-stream.c (complex_vars_of_event_stream):
10567         * events.h (struct command_builder):
10568
10569         a) Tried to clean up a little bit the horribly written x-specific
10570         accelerator code that crept into this file.  I moved this code
10571         into menubar-x.c where it belongs. I also needed to move the
10572         command builder structure into the file events.h because it is
10573         accessed directly by this accelerator code.  What I didn't do, but
10574         which should be done at some point, is to properly abstract this
10575         code using device methods instead of the kludgy way that it
10576         currently hooks into the event code.
10577
10578         b) Added the lisp variables this-command-properties and
10579         last-command- properties, which should be used to synchronize two
10580         adjacent commands in preference to playing games with the variable
10581         this-command, which is typically what happens.
10582
10583         c) Added some slightly nasty code to hook into the lisp support
10584         for shifted- motion-key selection.  This is actually necessary for
10585         somewhat complicated reasons, which are described in
10586         simple.el. (NB: I think the proper thing would be to have the code
10587         that calls the pre and post command hooks also call out to generic
10588         lisp functions in simple.el, where all built-in stuff could be
10589         added.  I will think about this more.)
10590
10591         * event-unixoid.c (poll_fds_for_input):
10592         * lread.c (readchar):
10593         * redisplay-tty.c (tty_clear_frame):
10594         * redisplay-x.c (x_get_gc):
10595         * signal.c (interrupt_signal):
10596         And a whole bunch of other files: fixed up places that printed
10597         directly to stderr to instead call the function stderr_out so that
10598         the changes I made under Windows work correctly.
10599
10600         * filemode.c (mode_string):
10601         Warning fixes.
10602
10603         * frame-msw.c:
10604         * frame-msw.c (mswindows_size_frame_internal):
10605         Fixed the computation of frame size and position to keep the frame
10606         within the workspace area, rather than within the physical
10607         dimensions of the screen, so that the frame doesn't overlap window
10608         manager decorations, such as the start menu and toolbar, typically
10609         at the bottom of the screen.
10610
10611         * frame.c (vars_of_frame):
10612         Changed the default frame title format under MS Windows to consist
10613         of buffername-XEmacs, which is standard under MS Windows.  I think
10614         it might be a good idea to change this everywhere because I think
10615         it is superior to the current frame title format, but this is the
10616         kind of change that is likely to cause some people to get annoyed,
10617         so I'm not making it.
10618
10619         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10620
10621         * gui-msw.c (mswindows_handle_gui_wm_command):
10622         Fixed compile warnings.
10623
10624         * gui-x.c:
10625         * gui-x.c (strdup_and_add_accel):
10626         * gui-x.c (button_item_to_widget_value):
10627         * gui-x.h:
10628         Added code to automatically put an accelerator onto the beginning
10629         of menu items that don't have one as is now the standard, and is
10630         described more later.  Also fixed things so that the menu item
10631         name can be an evaluated expression, again a new standard.
10632
10633         * gui.c:
10634         * gui.c (gui_item_add_keyval_pair):
10635         * gui.c (make_gui_item_from_keywords_internal):
10636         * gui.c (gui_add_item_keywords_to_plist):
10637         * gui.c (gui_item_accelerator):
10638         * gui.c (gui_name_accelerator):
10639         * gui.c (gui_item_included_p):
10640         * gui.c (gui_item_display_flush_left):
10641         * gui.c (gui_item_display_flush_right):
10642         * gui.c (parse_gui_item_tree_item):
10643         * gui.c (parse_gui_item_tree_children):
10644         * gui.c (parse_gui_item_tree_list):
10645         Mule-ized.  Cleanup.  GCPRO addition.
10646
10647         * line-number.c (buffer_line_number):
10648         * lisp.h:
10649         * lisp.h (EMACS_INT_MAX):
10650         Added the manifest constant EMACS_INT_MIN corresponding to the
10651         existing constant EMACS_INT_MAX.  This is partially to fix compile
10652         warnings under Windows, and partly for cleanliness.
10653
10654         * menubar-msw.c:
10655         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10656         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10657         * menubar-msw.c (displayable_menu_item):
10658         * menubar-msw.c (populate_menu_add_item):
10659         * menubar-msw.c (populate_or_checksum_helper):
10660         * menubar-msw.c (populate_menu):
10661         * menubar-msw.c (update_frame_menubar_maybe):
10662         * menubar-msw.c (prune_menubar):
10663         * menubar-msw.c (msw_char_is_accelerator):
10664         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10665         * menubar-msw.c (mswindows_handle_wm_command):
10666         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10667         * menubar-msw.c (mswindows_handle_wm_initmenu):
10668         * menubar-msw.c (mswindows_update_frame_menubars):
10669         * menubar-msw.c (mswindows_free_frame_menubars):
10670         * menubar-msw.c (mswindows_popup_menu):
10671         Fixed a bug in handling accelerators where an extra character
10672         would be displayed in the menu item.  Also generalized the
10673         function displayable_menu_item because it is now used by the
10674         dialog box code as well.  And finally, added code in the functions
10675         that create the menubar to extract a list of accelerators for the
10676         top level menubar, which is used in the event code to determine
10677         whether a particular alt-key combination should be used to invoke
10678         a menu item, or should be passed through to access the standard
10679         XEmacs keymap binding for this key combination.
10680
10681         Much needed GCPROing.
10682
10683         * menubar-x.c:
10684         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10685         * menubar-x.c (menu_item_descriptor_to_widget_value):
10686         * menubar-x.c (restore_in_menu_callback):
10687         * menubar-x.c (x_popup_menu):
10688         * menubar-x.c (menu_move_up):
10689         * menubar-x.c (menu_move_down):
10690         * menubar-x.c (menu_move_left):
10691         * menubar-x.c (menu_move_right):
10692         * menubar-x.c (menu_select_item):
10693         * menubar-x.c (command_builder_operate_menu_accelerator):
10694         * menubar-x.c (menu_accelerator_junk_on_error):
10695         * menubar-x.c (command_builder_find_menu_accelerator):
10696         * menubar-x.c (Faccelerate_menu):
10697         * menubar.h:
10698         Moved a whole bunch of code here that was previously in
10699         event-stream.c as described above.  There is also code connected
10700         to the new standard of adding an accelerator to the beginning of
10701         menu items that don't have one as described above and below.
10702
10703         * menubar.c:
10704         * menubar.c (menu_parse_submenu_keywords):
10705         * menubar.c (Fmenu_find_real_submenu):
10706         * menubar.c (Fnormalize_menu_item_name):
10707         * menubar.c (syms_of_menubar):
10708         * menubar.c (vars_of_menubar):
10709         * menubar.c (complex_vars_of_menubar):
10710
10711         a) Cleaned up a bunch of documentation and improved it.
10712
10713         b) XEmacs now automatically adds an accelerator onto the beginning
10714         of any menu items that don't have one.  I did this because there
10715         will inevitably be some menu items on the main menubar that don't
10716         have accelerators on them because the package that adds that
10717         particular menu item hasn't yet been fixed up to have accelerators
10718         in them and it looked rather strange to have some items with and
10719         some items without accelerators, especially since even in items
10720         without accelerators, you can, at least under windows, still
10721         access the item through an accelerator corresponding to the first
10722         character in the item's name.  If people don't like this behavior,
10723         I can add a variable to turn it off optionally, but I'm not sure
10724         this is a good idea because we really do need to have accelerators
10725         on all of the menu items, and if a package doesn't like the
10726         accelerators being put on the first character, then it should put
10727         the accelerators where they belong.
10728
10729         c) I made a behavior change, which is that the descriptor that
10730         specifies the text of the menu item, which formerly was just a
10731         string, can now also be an evaluated expression.  This makes this
10732         descriptor parallel with all of the others, which could also be
10733         evaluated expressions.  This also obviates the need for the
10734         keyword :label, which was previously listed in the documentation
10735         as unimplemented, and which was for the same purpose.
10736
10737         d) GCPROing.
10738
10739         * ntproc.c:
10740         * ntproc.c (new_child):
10741         * ntproc.c (sys_spawnve):
10742         * ntproc.c (find_child_console):
10743         * ntproc.c (sys_kill):
10744         Fixed compile warnings.  By the way, this file should really go
10745         away entirely, and this will happen as soon as Kirill makes his
10746         final round of process cleanups, which affect the function
10747         call-process.
10748
10749         * process-nt.c:
10750         * process-nt.c (struct nt_process_data):
10751         * process-nt.c (find_process_from_pid):
10752         * process-nt.c (send_signal_the_nt_way):
10753         * process-nt.c (enable_child_signals):
10754         * process-nt.c (find_child_console):
10755         * process-nt.c (send_signal_the_95_way):
10756         * process-nt.c (nt_finalize_process_data):
10757         * process-nt.c (ensure_console_window_exists):
10758         * process-nt.c (nt_create_process):
10759         * process-nt.c (nt_kill_child_process):
10760         * process-nt.c (nt_kill_process_by_pid):
10761         * process-nt.c (nt_open_network_stream):
10762         * process-nt.c (vars_of_process_nt):
10763         Copied over code from Emacs 20.5 to correctly send signals to sub-
10764         processes under Windows 95.  Also added code to automatically
10765         create and hide console window when a sub-process is created under
10766         Windows 95, which obviates the need for the separate runemacs.exe
10767         executable, and finally implemented some variables that were
10768         implemented in Emacs 20.5, but previously not in XEmacs.  These
10769         include mswindows- start-process-share-console and
10770         mswindows-start-process-inherit-error-mode. (Both of these only
10771         apply to Windows 95.)
10772
10773         * regex.c (regex_compile): Fixed a compile warning.
10774
10775         * select-msw.c:
10776         * select-msw.c (mswindows_own_selection):
10777         * select-msw.c (mswindows_get_foreign_selection):
10778         * select-msw.c (mswindows_disown_selection):
10779         * select-msw.c (console_type_create_select_mswindows):
10780         * select-msw.c (syms_of_select_mswindows):
10781         Cleaned up the file and implemented the device method
10782         selection_exists_p, which had accidentally been left out.  Also
10783         removed four lisp functions that were remnants from before the
10784         time when the selection code was properly device abstracted.
10785         These functions are no longer needed because there are generic
10786         equivalents, and because they were added recently and don't exist
10787         in FSF Emacs, I don't think there's any problem with just deleting
10788         them.
10789
10790         * sysdep.c:
10791         * sysdep.c (sys_subshell):
10792         Fixed a compile warning, although in this case there's probably
10793         something wrong with this code, and it ought to be looked into
10794         more thoroughly by somebody who understands it.
10795
10796         * window.c:
10797         * window.c (Fwindow_text_area_height):
10798         * window.c (Fwindow_width):
10799         * window.c (Fwindow_full_width):
10800         * window.c (Fwindow_pixel_width):
10801         * window.c (debug_print_window):
10802         * window.c (syms_of_window):
10803         Added functions window-text-area-height and window-full-width,
10804         which are functions for returning various width and height
10805         characteristics of a window. (One of these functions is necessary
10806         for making the file dialog box work correctly, and the other one
10807         was added for completeness.)  Also added a table to the
10808         documentation for window-height which describes the entire scheme
10809         for accessing width and height characteristics of a window.
10810
10811 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10812
10813         * nt.c (fstat): Added a comment for another problem with
10814         non-encapsulated [f]stat(), reported by Adrian Aichner
10815         <aichner@ecf.teradyne.com>.
10816
10817 2000-03-11  Andy Piper  <andy@xemacs.org>
10818
10819         * window.c (make_dummy_parent): initialize subwindow instance
10820         cache.
10821         (Fset_window_configuration): zero extent_modiff.
10822
10823 2000-03-10  Andy Piper  <andy@xemacs.org>
10824
10825         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10826         more changes can be triggered.
10827         (Fredisplay_frame): ditto.
10828         (Fredraw_device): ditto.
10829         (Fredisplay_device): ditto.
10830         (redisplay_frame): make non-static.
10831         (redisplay_frame): call update_frame_gutter_geometry outside of
10832         display proper.
10833
10834         * gutter.h: declare update_frame_gutter_geometry.
10835
10836         * redisplay.h: declare redisplay_frame.
10837
10838         * gutter.c (update_frame_gutter_geometry): move geometry changes
10839         in update_frame_gutters here. Geometry changes can only occur
10840         outside of redisplay.
10841         (update_frame_gutters): remove geometry change code.
10842         (Fredisplay_gutter_area): make sure that we are in display when we
10843         update and that we have flushed any size changes.
10844
10845 2000-03-11  Andy Piper  <andy@xemacs.org>
10846
10847         * alloc.c (pdump_dump_data): remove i & count shadows.
10848
10849 2000-02-27  Mike Alexander  <mta@arbortext.com>
10850
10851         * sysdep.h: Declare pdump_read_file
10852
10853         * sysdep.c (pdump_read_file): New function
10854
10855         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10856         dump data
10857
10858 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10859
10860         * lrecord.h: add `lrecord_type_pgsetenv'.
10861
10862 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10863
10864         * symsinit.h: declare (vars|syms)_of* functions.
10865         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10866
10867 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10868
10869         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10870
10871         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10872         GCCs.
10873
10874         * emacs.c (main_1): Call postgres initialization code.
10875
10876         * postgresql.h: New file.  PostgreSQL RDBMS support.
10877         * postgresql.c: New file.
10878
10879 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10880
10881         * redisplay-output.c (redisplay_output_display_block): Disable
10882         redundant code.
10883
10884 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10885
10886         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10887         (Fcanna_henkan_next): Ditto.
10888         (Fcanna_bunsetu_henkou): Ditto.
10889         (Fcanna_henkan_kakutei): Ditto.
10890         (Fcanna_henkan_end): Ditto.
10891         (Fcanna_henkan_quit): Ditto.
10892         (Fcanna_henkan_next): Set retun value correctly.
10893         (c2mu): Use unsigned char instead of signed char.
10894
10895 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10896
10897         * emacs.c (main_1): Always call syms_of_gui.
10898         * inline.c: include gui.h
10899
10900 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10901
10902         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10903         converted to Lisp_Object.
10904         (Qtop_bottom): New variable.
10905         (syms_of_redisplay): Initialize it.
10906         * redisplay.h (Vvisible_bell): Ditto.
10907         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10908         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10909         only flash top and bottom.
10910
10911 2000-03-08  Andy Piper  <andy@xemacs.org>
10912
10913         * buffer.c (Frename_buffer): record new buffer name the right way.
10914
10915 2000-03-08  Andy Piper  <andy@xemacs.org>
10916
10917         * glyphs.c (update_subwindow): increase hash depth so that widget
10918         items get picked up properly.
10919
10920         * redisplay-output.c (compare_runes): increase hash depth so that
10921         widget items get picked up properly.
10922
10923 2000-03-08  Andy Piper  <andy@xemacs.org>
10924
10925         * gutter.c (output_gutter): add some debug.
10926
10927         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10928         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10929         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10930
10931         * redisplay-output.c (compare_runes): use display_hash to
10932         determine if glyphs really are not the same.
10933
10934         * glyphs.c (update_subwindow): check display_hash to see if
10935         anything really needs to be updated. If not then do
10936         nothing. Record the display_hash after updating.
10937         (image_instance_equal): compare the image_instance face also.
10938
10939 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10940
10941         * redisplay.h: Fix comment style.
10942
10943 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10944
10945         * consle-msw.h (struct mswindows_frame):
10946         Added new member paint_pending to indicate whether a WM_PAINT
10947         magic event has been queued for this frame.
10948
10949         * event-msw.c (mswindows_drain_windows_queue):
10950         Don't queue a WM_PAINT magic event if one is already queued.
10951         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10952
10953         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10954
10955 2000-03-07  Didier Verna  <didier@xemacs.org>
10956
10957         * dired.c: #include `regex.h' after `sysfile.h'.
10958
10959 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10960
10961         * sound.c (init_nas_sound): Fix compiler warning.
10962
10963         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10964         (FREE_STRUCT_P):
10965         (MARK_STRUCT_AS_FREE):
10966         (MARK_STRUCT_AS_NOT_FREE):
10967         Make `gcc -fstrict-aliasing' work properly.
10968
10969 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10970
10971         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10972         (mswindows_delete_device): Call CoUnnitialize().
10973
10974         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10975
10976 2000-02-25    <CraigL@DyCon.com>
10977
10978         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10979         <errno.h>.
10980
10981         * sysdep.c: This extern declaration for environ prevents MinGW
10982         from finding the variable in CRTDLL.DLL.
10983
10984         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10985         windows headers.
10986         (SHGFI_EXETYPE): ..
10987         (WM_MOUSEWHEEL): ..
10988         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10989         definitions.
10990         (MMRESULT): Removed, now defined in cygwin's windows headers.
10991         (TIMECAPS): ..
10992         (uid_t,gid_t,pid_t,ssize_t): ..
10993         (_timeb): Removed, MinGW defines both _timeb and timeb.
10994         (HAVE_H_ERRNO): Added.
10995         (HAVE_TZNAME): Added, configure is not detecting this.
10996
10997 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10998
10999         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11000         * syntax.c (syntax_match): Use it.
11001
11002         * cmds.c: Import auto-fill-chars from FSF Emacs.
11003         (Vauto_fill_chars): New variables.
11004         (internal_self_insert): Check Vauto_fill_chars.
11005         (vars_of_cmds):
11006         Declare auto-fill-chars as a Lisp variable and initialize it.
11007
11008 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11009
11010         * fileio.c (Fmake_symbolic_link):
11011         (Ffile_symlink_p):
11012         Run handlers even if local machine doesn't have symlinks.
11013
11014 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11015
11016         * event-msw.c (mswindows_drain_windows_queue):
11017         Don't generate paint magic events for non-XEmacs frames.
11018
11019 2000-03-05  Andy Piper  <andy@xemacs.org>
11020
11021         * redisplay.c (redisplay_frame): generate_displayable_area and
11022         friends assumes that we are not in GC, we therefore have to make
11023         sure that this doesn't happen.
11024
11025         * gutter.c (calculate_gutter_size): generate_displayable_area
11026         assumes that we are not in GC, we therefore have to make sure that
11027         this doesn't happen.
11028
11029 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11030
11031         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11032
11033 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11034
11035         * redisplay.c (regenerate_window): Make sure we set a sane value
11036         for end_pos even if we jump out of the loop.
11037         (regenerate_window): Answer Ben's question :-).
11038         (start_end_of_last_line): Add may_error argument.
11039         (start_of_last_line):
11040         (end_of_last_line): Pass may_error = 0.
11041         (end_of_last_line_may_error): New function.
11042         (pixel_to_glyph_translation): Use it, so we don't crash in
11043         event_to_glyph.
11044
11045 2000-03-04  Andy Piper  <andy@xemacs.org>
11046
11047         * window.h (struct window): add gutter_extent_modiff.
11048
11049         * window.c (allocate_window): zero out gutter_extent_modiff.
11050
11051         * redisplay.h: declare sync_display_line_structs.
11052
11053         * redisplay.c (add_glyph_rune): add a better comment.
11054
11055         * redisplay-output.c (sync_display_line_structs): made non-static.
11056         (compare_runes): remove unneccesary glyph cachel access.
11057
11058         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11059
11060         * gutter.c (output_gutter): don't output the gutter if extent
11061         changes only involve extents in buffers. use 4 sets of display
11062         lines.
11063         (gutter_extent_signal_changed_region_maybe): new function. Mark
11064         extents in gutters as changed.
11065         (update_frame_gutters): use 4 sets of display lines.
11066         (reset_gutter_display_lines): ditto.
11067         (free_frame_gutters): ditto.
11068         (redraw_exposed_gutter): force output of gutters.
11069
11070         * frame.h (struct frame): add 4 sets of gutter display lines.
11071
11072         * extents.c: (extent_changed_for_redisplay): signal changes to
11073         extents in strings in the gutter as well as extents in buffers.
11074
11075 2000-03-02  Andy Piper  <andy@xemacs.org>
11076
11077         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11078
11079         * frame.c (Fmake_frame): make sure the gutters get initialized
11080         after the frame is visible.
11081         (set_frame_selected_window): re-arrange compilation macros a
11082         little.
11083         (change_frame_size_1): mark gutters changed.
11084
11085         * device.c (Fset_device_class): mark gutters changed.
11086
11087 2000-03-01  Andy Piper  <andy@xemacs.org>
11088
11089         * window.c (window_top_frame_gutter_height): deleted.
11090         (window_bottom_frame_gutter_height): ditto.
11091         (window_left_frame_gutter_height): ditto.
11092         (window_right_frame_gutter_height): ditto.
11093         (window_top_gutter_height): don't use them.
11094         (window_bottom_gutter_height): ditto.
11095         (window_left_gutter_width): ditto.
11096         (window_right_gutter_width): ditto.
11097         (Fsplit_window): ditto.
11098         (Fwindow_pixel_edges): don't use border dimensions here.
11099
11100         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11101         (update_scrollbar_instance): ditto.
11102
11103         * redisplay.c (generate_modeline): don't take gutters into account.
11104         (generate_modeline): ditto.
11105         (redisplay_frame): small gutter display optimization.
11106
11107         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11108
11109         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11110         gutters into account.
11111
11112         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11113         for window position and type.
11114
11115         * gutter.c (get_gutter_coords): fix for frame gutters.
11116         (update_frame_gutters): update frame geometry if the gutters have
11117         changed.
11118         (init_frame_gutters): record current gutter geometries.
11119
11120         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11121         var.
11122         (mswindows_widget_instantiate): ditto.
11123
11124         * frame.h (struct frame): add current_gutter_bounds.
11125
11126         * frame.c (change_frame_size_1): position window and minibuffer
11127         appropriately taking into account the frame gutters.
11128
11129         * frame-x.c: (x_initialize_frame_size): take into account the
11130         frame gutters.
11131
11132 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11133
11134         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11135
11136 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11137
11138         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11139
11140 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11141
11142         * file-coding.c (reset_decoding_stream): Clear previous
11143         detection state when autodetect.
11144
11145 2000-02-29  Didier Verna  <didier@xemacs.org>
11146
11147         * extents.c (set_extent_glyph_1): don't require extents to be
11148         attached.
11149
11150 2000-02-27  Andy Piper  <andy@xemacs.org>
11151
11152         * gutter.c (Fset_default_gutter_position): don't default left and
11153         right gutter visibility to t.
11154         (Fset_default_gutter_position): run
11155         default-gutter-position-changed-hook.
11156         (syms_of_gutter): add default-gutter-position-changed-hook.
11157
11158 2000-02-26  Andy Piper  <andy@xemacs.org>
11159
11160         * specifier.c (Fmake_specifier): add gutter references.
11161
11162         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11163
11164         * lisp.h: declare Fvalid_plist_p.
11165
11166         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11167         as changed.
11168         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11169         well as its visibility so that it gets reconstructed.
11170         (construct_window_gutter_spec): new function. Construct a string
11171         to be displayed in the gutter from a plist of strings. Take care
11172         to only use elements that are declared as visible.
11173         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11174         WINDOW_GUTTER.
11175         (gutter_validate): allow plists of strings in the specifier.
11176         (gutter_specs_changed): construct the real_gutter from the gutter
11177         specs using construct_window_gutter_spec.
11178         (gutter_visible_validate): gutter-visible is a new specifier type.
11179         (Fgutter_visible_specifier_p): new function for the new specifier.
11180         (syms_of_gutter): declare gutter-visible and
11181         Fgutter_visible_specifier_p.
11182         (specifier_type_create_gutter): intitalize new gutter-visible
11183         specifier.
11184         (reinit_specifier_type_create_gutter): ditto.
11185         (specifier_vars_of_gutter): use new specifier type for gutter
11186         visibility.
11187         (init_frame_gutters): construct real_gutter correctly.
11188         (Fgutter_specifier_p): beef up documentation.
11189         (Fgutter_size_specifier_p): ditto.
11190
11191         * winslots.h: add real_gutter slots.
11192
11193 2000-02-25  Andy Piper  <andy@xemacs.org>
11194
11195         * device-msw.c: Be kind to older cygwin versions. From Raymond
11196         Toy <toy@rtp.ericsson.se>.
11197
11198         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11199         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11200
11201 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11202
11203         * elhash.c (MARK_OBJ): Practice macro hygiene.
11204
11205 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11206
11207         * miscplay.c: s/__inline__/inline/g;
11208         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11209         (get_device_compdc): INLINE ==> static inline
11210         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11211         find -name '*.h' | \
11212         xargs global-replace \
11213         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11214
11215 2000-02-25  Andy Piper  <andy@xemacs.org>
11216
11217         * window.c (window_top_frame_gutter_height): new function.
11218         (window_top_window_gutter_height): ditto.
11219         (window_top_gutter_height): use them.
11220         (window_bottom_frame_gutter_height): new function.
11221         (window_bottom_window_gutter_height): ditto.
11222         (window_bottom_gutter_height): use them.
11223         (window_left_window_gutter_width): new function.
11224         (window_left_frame_gutter_width): ditto.
11225         (window_left_gutter_width): use them.
11226         (window_right_window_gutter_width): new function.
11227         (window_right_frame_gutter_width): ditto.
11228         (window_right_gutter_width): use them.
11229         (window_pixel_height): new function. calulate window pixel height
11230         with frame gutter involvement.
11231         (Fsplit_window): calculate new sizes taking frame gutters into
11232         account.
11233         (window_char_height_to_pixel_height): don't include frame gutters.
11234         (window_char_height): use window_pixel_height.
11235         (window_pixheight): rename from window_pixel_height.
11236         (change_window_height): use it.
11237         (window_pixel_height_to_char_height): don't include frame gutters.
11238         (window_char_width_to_pixel_width): ditto.
11239
11240 2000-02-25  Andy Piper  <andy@xemacs.org>
11241
11242         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11243         if it is.
11244
11245 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11246
11247         * alloc.c (staticpro):
11248         (staticpro_nodump):
11249         (dumpstruct):
11250         (dumpopaque):
11251         (pdump_wire):
11252         (pdump_wire_list):
11253         (compact_string_chars):
11254         (pdump_dump_wired):
11255         Convert:  if (foo) abort();  ==>  assert (! foo);
11256
11257         * eldap.c (Fldap_search_basic):
11258         (Fldap_add):
11259         (Fldap_modify):
11260         (Fldap_delete):
11261         Fix compiler warnings, and possible crashes if (random) return
11262         value were to be used.
11263
11264 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11265
11266         * device-msw.c: Workaround ResetDC failure.
11267
11268         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11269         applying a devmode.
11270
11271         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11272         (mswindows_text_width): Do not start printer page.
11273
11274         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11275
11276         * glyphs-msw.c: Added image methods to msprinter console and
11277         msprinter-specific image instantiation.
11278
11279 2000-02-20  Mike Alexander  <mta@arbortext.com>
11280
11281         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11282         to avoid crashes when selection-sets-clipboard is on
11283         (mswindows_own_selection): ditto
11284
11285 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11286
11287         * glyphs-msw.c:
11288         * redisplay-msw.c (get_frame_dc):
11289         (get_frame_compdc):
11290         * console-msw.h:
11291         * device-msw.c (mswindows_init_device):
11292         (mswindows_delete_device):
11293         (msprinter_init_device):
11294         (msprinter_delete_device):
11295         * frame-msw.c (mswindows_init_frame_1):
11296         (mswindows_delete_frame):
11297         (msprinter_init_frame_3):
11298         (msprinter_delete_frame): Move compatible DC to device object from
11299         frame object, for both mswindows and msprinter. Only one at a time
11300         is needed, it is a real waste to have one per frame!
11301
11302 2000-02-23  Andy Piper  <andy@xemacs.org>
11303
11304         * glyphs.c: add dynamic width and height elements.
11305         (image_instance_equal): ditto.
11306
11307         * glyphs-widget.c (widget_query_geometry): calculate width and
11308         height dynamically if required.
11309         (initialize_widget_image_instance): initialize dynamic dimensions.
11310         (widget_instantiate): pick-up dynamic dimensions.
11311
11312         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11313         dynamic determination. Add appropriate macros.
11314
11315         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11316         dimensions safe.
11317         (WINDOW_GUTTER_SIZE): ditto.
11318         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11319
11320         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11321         inline.
11322         (get_frame_dc): ditto.
11323
11324         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11325         here.
11326
11327 2000-02-23  Martin Buchholz <martin@xemacs.org>
11328
11329         * XEmacs 21.2.31 is released.
11330
11331 2000-02-22  Ben Wing <ben@xemacs.org>
11332
11333         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11334
11335 2000-02-22  Andy Piper  <andy@xemacs.org>
11336
11337         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11338
11339 2000-02-21  Mike Sperber <mike@xemacs.org>
11340
11341         * .dbxrc:
11342         * .gdbinit:
11343         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11344         variables.
11345
11346 2000-02-21  Mike Sperber <mike@xemacs.org>
11347
11348         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11349
11350 2000-02-21  Martin Buchholz <martin@xemacs.org>
11351
11352         * XEmacs 21.2.30 is released.
11353
11354 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11355
11356         Performance hacking.
11357         * *.c (syms_of_*):
11358         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11359         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11360         * emacs.c (main_1):
11361         * lisp.h (DEFUN):
11362         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11363         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11364         * symeval.h (DEFVAR_SYMVAL_FWD):
11365         * symbols.c (guts_of_unbound_marker):
11366         Make all c_readonly objects also lisp_readonly and marked for life.
11367         * lrecord.h (struct lrecord_implementation):
11368         Document flags better.
11369         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11370         * lrecord.h (DECLARE_LRECORD):
11371         * lrecord.h (XSETRECORD):
11372         * lrecord.h (RECORDP):
11373         * lrecord.h (RECORD_TYPEP):
11374         * lrecord.h (RECORD_MARKER): New.
11375         * lrecord.h (error_check_*):
11376         * lrecord.h (CONCHECK_NONRECORD):
11377         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11378         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11379         * lrecord.h (set_lheader_implementation):
11380         * lrecord.h (enum lrecord_type): New.
11381         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11382         * alloc.c (disksave_object_finalization_1):
11383         * alloc.c (mark_object):
11384         * alloc.c (lrecord_type_index):
11385         * alloc.c (tick_lcrecord_stats):
11386         * alloc.c (Fgarbage_collect):
11387         * alloc.c (init_alloc_once_early):
11388         * alloc.c (pdump_load):
11389         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11390         * alloc.c (lrecord_type_index): Delete.
11391         Make lisp object type indexes be constant.
11392           Makes (byte-compile) 5% faster.
11393         Put all marker functions into their own array.
11394           Makes (garbage-collect) 5% faster.
11395         Optimize SYMBOL_VALUE_MAGIC_P.
11396           Makes (byte-compile) 2-3% faster.
11397         * config.h.in (gc_checking_assert): New.
11398         * alloc.c: Use gc_checking_assert().
11399         * .dbxrc: Make compatible with new object type implementation.
11400         * .gdbinit: Make compatible with new object type implementation.
11401         * alloc.c: Delete all symbols defined only for debugging, such as
11402         Lisp_Type_Vector and lrecord_charset.
11403
11404 2000-02-21  Andy Piper  <andy@xemacs.org>
11405
11406         * gui-msw.c (Fmswindows_shell_execute): fix file location
11407         problems.
11408
11409         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11410         unshowing so that set_window_buffer doesn't undo
11411         kill_buffer_hook's hard work.
11412
11413         * glyphs-widget.c (tab_control_query_geometry): don't count the
11414         first item when calculating geometry.
11415
11416         * glyphs.c (map_subwindow): remove redundant code.
11417         (update_frame_subwindows): be more circumspect about when to
11418         update subwindows.
11419
11420         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11421         when items haven't changed. Update faces if faces have changed as
11422         well as just the widget face.
11423         (x_tab_control_update): Update faces if faces have changed as well
11424         as just the widget face.
11425
11426 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11427
11428         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11429         registration.
11430         (build_syscolor_string): Use mswindows_color_to_string to try to
11431         get a named color.
11432         (mswindows_device_system_metrics): Reverse the foreground and
11433         background colors so that they match the documentation.
11434
11435         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11436         they match the default Windows palette.
11437         (mswindows_color_to_string): New function.
11438
11439 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11440
11441         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11442
11443 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11444
11445         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11446         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11447
11448         * symbols.c (init_symbols_once_early): Removed obsolete
11449         DATA_SEG_BITS related kludge.
11450         (defvar_magic): Ditto.
11451
11452         * malloc.c: Removed obsolete DATA_SEG_BITS
11453         * ralloc.c: Ditto.
11454         * mem-limits.h: Ditto.
11455
11456         * Makefile.in.in: Removed obsolete HAVE_SHM
11457         * emacs.c: Ditto.
11458
11459 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11460
11461         *  device-msw.c (mswindows_delete_device): Free DDE string
11462         handles.
11463
11464 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11465
11466         * keymap.c (get_keyelt):
11467         * unexnt.c (unexec):
11468         * vm-limit.c (memory_warnings):
11469         * ntheap.c (recreate_heap):
11470         * ntheap.h (UNINIT_PTR):
11471         * select-msw.c (Fmswindows_get_clipboard):
11472         (Fmswindows_set_clipboard):
11473         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11474         * objects-msw.c:
11475         * menubar-msw.c (displayable_menu_item):
11476         * glyphs-msw.c:
11477         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11478         * sysdep.c (sys_subshell):
11479         * process-nt.c (nt_create_process):
11480         * nt.c (normalize_filename):
11481         (dostounix_filename):
11482         (unixtodos_filename):
11483         * ntproc.c (win32_executable_type):
11484         * ntplay.c (play_sound_data_1):
11485         (play_sound_file):
11486         * editfns.c (get_home_directory):
11487         * event-msw.c (struct winsock_stream):
11488         (mswindows_dde_callback):
11489         * device-msw.c (msprinter_init_device):
11490         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11491
11492         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11493         mswindows_clear_toolbar were swapped!
11494
11495         * objects-msw.c:(colormap_t):
11496         (fontmap_t):
11497         * emacs.c (struct standard_args): Fixed const jumble.
11498
11499         * glyphs-widget.c (update_widget): Fixed comparison notation.
11500
11501         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11502
11503         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11504         __declspec(noreturn) syntax.
11505
11506 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11507
11508         * eldap.c (Fldap_open):
11509         (Fldap_search_basic):
11510         (Fldap_add):
11511         (Fldap_modify):
11512         Use new coding system conversion macros.
11513
11514 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11515
11516         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11517
11518 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11519
11520         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11521         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11522
11523         * eldap.c (Qadd, Qreplace): New constant symbols
11524         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11525         interruptions by XEmacs signals
11526         Remove unnecessary calls to slow_down_interrupts and
11527         speed_up_interrupts
11528         (Fldap_search_basic): Renamed from Fldap_search_internal
11529         Added new optional parameter VERBOSE that triggers the
11530         display of progress messages
11531         Remove unnecessary calls to slow_down_interrupts and
11532         speed_up_interrupts
11533         LDAP result code analysis rewritten
11534         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11535         (syms_of_eldap): Define the new symbols and functions
11536
11537
11538 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11539
11540         * realpath.c: Determine PATH_MAX maximally portably.
11541
11542         * insdel.c (bytecount_to_charcount): Optimize.
11543         The function used to be optimized for entirely ASCII sequences.
11544         Now it is optimized for successive characters from the same
11545         charset.  This also wins big for _mostly_ ASCII sequences.
11546
11547         * fileio.c (Ffile_truename): convert return from realpath() using
11548         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11549         - Rewrite GCPROing slightly.
11550
11551         * sysdep.c (sys_open): Do filename conversion, like all other
11552         sys_* functions.  Fixes bug:
11553         (let ((file-name-coding-system 'iso-8859-2))
11554            (write-region x y latin2-name))
11555         ==> writes filename using internal encoding.
11556
11557 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11558
11559         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11560         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11561         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11562         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11563         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11564         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11565         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11566         (CONST_IF_NOT_DEBUG): Delete.
11567         * alloc.c (this_one_is_unmarkable): Delete.
11568         (mark_object): Don't check for this_one_is_unmarkable. Use the
11569         c_readonly flag instead.
11570         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11571
11572 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11573
11574         * event-msw.c (mswindows_drain_windows_queue):
11575         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11576         away redundant repaint events.
11577
11578 2000-02-17  Andy Piper  <andy@xemacs.org>
11579
11580         * redisplay.h: declare mark_redisplay_structs.
11581
11582         * redisplay.c (redisplay_window):
11583         (redisplay_frame): don't check subwindows_state_changed.
11584         (mark_redisplay): mark gutters here.
11585
11586         * glyphs.c: (instantiate_image_instantiator): always layout if we
11587         haven't done so already.
11588         (allocate_image_instance): don't mark as dirty.
11589         (update_subwindow): bind inhibit_quit.
11590
11591         * gutter.c (mark_gutters): new function.
11592
11593         * glyphs-x.c (x_update_widget): Always resize to get round a
11594         widget bug.
11595
11596         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11597         breaking absolutely everything.
11598
11599         * gutter.h: declare mark_gutters.
11600
11601 2000-02-16  Martin Buchholz <martin@xemacs.org>
11602
11603         * XEmacs 21.2.29 is released.
11604
11605 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11606
11607         * fns.c (size_bit_vector): Fix computation of the size.
11608
11609 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11610
11611         * *.[ch]: Change CONST to const globally.
11612         find -name '*.[ch]' | \
11613         xargs global-replace \
11614         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11615         - Remove vestigial references to CONST_IS_LOSING
11616
11617 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11618
11619         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11620         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11621         events instead of dispatching them directly.
11622         (mswindows_handle_paint): New function to do repainting.
11623         (mswindows_wnd_proc):
11624         (emacs_mswindows_handle_magic_event): Call above function.
11625
11626 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11627
11628         * objects-msw.c (mswindows_create_font_variant): Return the new
11629         font handle.
11630         (initialize_font_instance): Get font metrics from the underlined
11631         variant of the font to cope with the case where the underlined
11632         font has a bigger descent.
11633
11634 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11635
11636         * gui.c (gui_item_accelerator): Return the first underlined
11637         character in item name.
11638
11639 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11640
11641         * lisp.h: Added Qprinter.
11642
11643         * general.c (syms_of_general): Initialized it.
11644
11645         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11646         (get_frame_dc):
11647         (get_frame_compdc): Made inline.
11648
11649         * console.h (struct console_methods): Added eject_page method.
11650
11651         * frame.h: Added FRAME_DISPLAY_P and friends.
11652         Aligned backslahes in many macros in more readable fashion.
11653         Added page_number to struct frame, and an accessor macro
11654         for it.
11655
11656         * defice.h: Added DEVICE_DISPLAY_P and friends.
11657
11658         * device.c (Fdevice_printer_p): Used these.
11659
11660         * frame.c (allocate_frame_core): Initialize page number.
11661         (Fprint_job_page_number):
11662         (Fprint_job_eject_page): Implemented.
11663
11664         * frame-msw.c (msprinter_eject_page): Added method.
11665         (msprinter_start_page): Added.
11666
11667         * window.c (Fwindow_truncated_p): Fixed docstring.
11668         (Fwindow_last_line_visible_height): Implemented.
11669
11670 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11671
11672         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11673
11674 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11675
11676         * syntax.c (scan_words): Always advance at least one character.
11677
11678 2000-02-13  Andy Piper  <andy@xemacs.org>
11679
11680         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11681         to make sure the glyph is in the cachels.
11682
11683         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11684         global image instance flag.
11685         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11686         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11687
11688         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11689         (Fset_image_instance_property): mark layout as changed.
11690         (invalidate_glyph_geometry_maybe): mark layout as changed.
11691         (glyph_width): use new NEEDS_LAYOUT macro.
11692         (glyph_ascent): ditto.
11693         (glyph_descent): ditto.
11694         (glyph_height): ditto.
11695         (image_instance_layout): mark layout as clean after laying out.
11696         (update_subwindow): don't mark layout as clean here.
11697
11698         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11699         should no longer be needed.
11700
11701         * glyphs-x.c (x_update_widget): sanitize asserts.
11702         (x_finalize_image_instance): sanitize assignment to widgets.
11703
11704         * glyphs-widget.c (widget_instantiate): don't need to clear the
11705         layout flag here.
11706
11707 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11708
11709         * sysdep.c (getcwd): Use standard prototype.
11710         * sysdep.h (getcwd): Use standard prototype.
11711
11712         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11713         (sequence, start, end).
11714         Remove redundant type checking.
11715         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11716         view of `caller-protects') to avoid a crash where the real fix was
11717         found elsewhere.
11718
11719 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11720
11721         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11722
11723         * s/sol2.h: Remove feature macro initialization.
11724
11725         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11726         (vector_hash): New.  Code from internal_hash.
11727         * lrecord.h:
11728         Fix up allocation subsystem comments.
11729
11730         * config.h.in: Add __EXTENSIONS__ for Solaris.
11731
11732         * systime.h (EMACS_GETTIMEOFDAY): New.
11733         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11734         Remove Solaris-specific code.
11735         Use void* for the (ignored) second arg for gettimeofday().
11736
11737         * elhash.c (hash_table_hash): Implement it, finally.
11738         * elhash.c:  Use hashcode_t.
11739
11740         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11741         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11742
11743         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11744         * fns.c (size_bit_vector):
11745         * alloc.c (size_vector):
11746         (make_vector_internal):
11747         (make_bit_vector_internal):
11748         (sweep_bit_vectors_1):
11749         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11750
11751 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11752
11753         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11754         Include strings.h to avoid warnings for bzero and strcasecmp.
11755
11756 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11757
11758         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11759         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11760
11761         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11762         sequence.
11763
11764 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11765
11766         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11767         use a value field instead.
11768         (symbol_value_forward_forward): Use value field.
11769         (DEFVAR_SYMVAL_FWD): Use value field.
11770         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11771         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11772         (DEFVAR_CONST_INT): Ditto.
11773         (DEFVAR_BOOL): Ditto.
11774         (DEFVAR_CONST_BOOL): Ditto.
11775         (DEFVAR_INT_MAGIC): Ditto.
11776         (DEFVAR_BOOL_MAGIC): Ditto.
11777
11778         * symbols.c (guts_of_unbound_marker): Use value field.
11779         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11780         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11781
11782         * lisp.h: Declare dumpopaque and noninteractive1.
11783
11784         * alloc.c (dumpopaque): Added.
11785         (pdump_dump_opaquevec): Added.
11786         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11787         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11788         noninteractive.
11789
11790 2000-02-10  Andy Piper  <andy@xemacs.org>
11791
11792         * glyphs.c (image_instance_layout): if the size changes, mark it
11793         as such.
11794
11795         * redisplay-output.c (redisplay_output_layout): Update the
11796         subwindow here.
11797         (redisplay_output_subwindow): ditto.
11798
11799         * glyphs.c (update_subwindow): make sure we reset flags for
11800         layouts as well as everything else.
11801
11802         * glyphs-widget.c (layout_layout): don't need to set the instances
11803         dimensions here.
11804
11805 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11806
11807         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11808         not HAVE_DLOPEN, which is a lower-level thing.
11809
11810         * .cvsignore: Ignore gmon.out
11811
11812 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11813
11814         * .cvsignore: Ignore portable dumper xemacs.dmp file
11815
11816 2000-02-09  Andy Piper  <andy@xemacs.org>
11817
11818         * redisplay-output.c (redisplay_output_layout): be more clever
11819         about when we output based on the changed flags.
11820
11821         * glyphs.h (struct image_instantiator_methods): add update_method.
11822         (struct Lisp_Image_Instance): add changed flags. Declare new
11823         macros for manipulating them.
11824
11825         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11826         (image_instance_parent_glyph): find an image_instance's parent
11827         glyph or image_instance.
11828         (image_instance_layout): mark the size as changed.
11829         (set_image_instance_dirty_p): new function. mark an image
11830         instance, plus all of its parents, as dirty.
11831         (Fset_image_instance_property): use it.
11832         (Fglyph_animated_timeout_handler): use it.
11833         (update_subwindow): call update_widget and device methods for
11834         update_subwindow. Mark all changed flags as clean.
11835         (Fresize_subwindow): mark size as changed.
11836
11837         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11838         failures.
11839         (x_update_subwindow): only resize subwindows here.
11840         (x_update_widget): new function. Update all changed properties of
11841         a widget.
11842         (x_resize_subwindow): deleted.
11843         (x_widget_set_property): deleted.
11844         (x_progress_gauge_set_property): deleted.
11845         (x_progress_gauge_update): new function. Implement recorded
11846         changes.
11847         (x_tab_control_update): ditto.
11848         (x_tab_control_set_property): deleted.
11849         (console_type_create_glyphs_x): declare new functions.
11850         (image_instantiator_format_create_glyphs_x): ditto.
11851
11852         * glyphs-widget.c (widget_set_property): mark text changed.
11853         (update_widget): new function. Update properties of a widget.
11854         (widget_instantiate): for layouts make sure we set their
11855         children's parent correctly.
11856         (tab_control_set_property): new function. Record changes that will
11857         take place under redisplay's control.
11858         (progress_gauge_set_property): ditto.
11859         (image_instantiator_progress_guage): declare new functions.
11860         (image_instantiator_tab_control): ditto.
11861
11862         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11863         now.
11864         (mswindows_update_widget): new function. Update all properties on
11865         a widget that have changed.
11866         (mswindows_button_update): new function. Update a button's set
11867         state.
11868         (mswindows_tab_control_update): new function. Update the items in
11869         a tab.
11870         (mswindows_tab_control_set_property): deleted.
11871         (mswindows_progress_gauge_update): new function. Update the
11872         progress gauge's progress.
11873         (mswindows_widget_set_property): deleted. This is all done
11874         asynchronously now.
11875         (mswindows_progress_gauge_set_property): ditto.
11876         (console_type_create_glyphs_mswindows): declare new methods.
11877         (image_instantiator_format_create_glyphs_mswindows): ditto.
11878
11879         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11880         (msprinter_set_frame_properties): ditto.
11881
11882         * console.h (struct console_methods): Add update_widget_method.
11883
11884 2000-02-09  Andy Piper  <andy@xemacs.org>
11885
11886         * gui-msw.c (Fmswindows_shell_execute): Make
11887         mswindows-shell-execute industrial strength.
11888
11889 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11890
11891         * lrecord.h: Make macro argument `props' match member function `plist'.
11892         * fns.c (Fget):
11893         * fns.c (Fput):
11894         * fns.c (Fremprop):
11895         * fns.c (Fobject_plist):
11896         * alloc.c:
11897         * symbols.c:
11898         Object property list frobbing cleanup.
11899         - Allow any lisp object (compared with `eq'), not just symbols, as
11900           keys in object plists.
11901         - Move symbol plist frobbing into symbols.c, where it belongs.
11902         - Move string plist frobbing into alloc.c, where it belongs.
11903         - Everything's an lrecord now, so no need to test for symbolp, etc.
11904         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11905
11906         * extents.c: Reorder code to remove declarations.
11907
11908         * frame.h (store_in_alist): Remove useless declaration.
11909
11910 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11911
11912         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11913         * config.h.in: Add HAVE_XCONVERTCASE.
11914
11915 2000-02-07  Andy Piper  <andy@xemacs.org>
11916
11917         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11918         it breaks many things.
11919
11920 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11921
11922         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11923         actually can start a common comment type.
11924         * src/syntax.h (SYNTAX_END_P): ditto for end.
11925
11926 2000-02-07  Martin Buchholz <martin@xemacs.org>
11927
11928         * XEmacs 21.2.28 is released.
11929
11930 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11931
11932         * event-Xt.c (x_keysym_to_character): New.
11933         (maybe_define_x_key_as_self_inserting_character): New.
11934         (x_has_keysym): New.
11935         Auto-define all keys on the keyboard as self-insert-key.
11936
11937 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11938
11939         * menubar.c (vars_of_menubar): A small code simplification.
11940
11941         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11942
11943         * ExternalShell.c:
11944         * ExternalClient.c:
11945         * EmacsShell-sub.c:
11946         * EmacsManager.c:
11947         * EmacsFrame.c:
11948         Use consistent style for specifying X resources.
11949
11950         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11951         This makes (dontusethis-set-symbol-value-handler) actually usable.
11952
11953         * lrecord.h (lrecord_decription_type):
11954         * alloc.c (pdump_register_sub):
11955         (pdump_dump_data):
11956         (pdump_reloc_one):
11957         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11958         Comply with XEmacs coding style.
11959         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11960         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11961
11962         * keymap.c (Faccessible_keymaps):
11963         Make (accessible-keymaps map "\C-h") do the Right Thing.
11964         Make (accessible-keymaps map []) do the Right Thing.
11965         Make (accessible-keymaps map "") do the Right Thing.
11966         (check_keymap_definition_loop): New function.
11967         (keymap_store_internal): Keep luser from shooting self in foot,
11968           via (define-key ctl-x-4-map "p" global-map).
11969         Remove fullness slot from struct Lisp_Keymap, since hash tables
11970         are now reliable.
11971         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11972
11973 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11974
11975         * redisplay.c (init_redisplay): Fix small memory leak.
11976         * elhash.h:
11977         * elhash.c (pdump_reorganize_hash_table):
11978         Rename from reorganize_hash_table. Change prototype.
11979         Reuse the original memory for hentries.  Save 100k.
11980         * alloc.c (PDUMP_READ): new macro.
11981         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11982         * alloc.c: No need to #ifndef before #undef.
11983
11984         * print.c: Allow debug_print() to print readably by modifying
11985         debug_print_readably.  Use consistent variable names.
11986
11987         * .dbxrc: Try to get things to work even if stopped in a function
11988         without source available by explicitly specifying source files.
11989 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11990
11991         * unexnt.c (_start): Removed bogus code which caused loading heap
11992         from differrent executable file.
11993         Removed bogus assignment to _fmode, which caused inconsistencies.
11994
11995 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11996
11997         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11998         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11999         Do not preliminary `#define signal sigset'.
12000
12001         * systime.h: Do not prototype environ on windows nt and cygwin,
12002         this conflicts with system header.
12003
12004         * syssignal.h: Use correct define for WINDOWSNT
12005
12006         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12007         with system header.
12008
12009         * sysdep.c (near start of file): Fixed commentary and rearranged
12010         ifdefs in readable order.
12011         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12012         (start_of_text):
12013         (end_of_text):
12014         (end_of_data): Do not compile in if using PDUMP.
12015
12016         * symsinit.h: Prototyped vars_of_nt().
12017
12018         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12019         (find_child_console): Use it.
12020         (sys_kill): Use it.
12021
12022         * ntheap.h: Do not extern os_subtype.
12023
12024         * ntheap.c (cache_system_info): Do not cache unneeded:
12025         nt_major_version, nt_minor_version and os_subtype.
12026         (recreate_heap): Do not compile in when PDUMPing.
12027
12028         * nt.c (geteuid and friends): Use the new varibale
12029         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12030         (init_user_info): Removed the above mentioned hackery.
12031         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12032         stat has been fixed in the C runtime.
12033         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12034
12035         * file-coding.c (struct file_coding_dump): Do not define
12036         ucs_to_mule_table in the struct if not MULE.
12037         (struct struct lrecord_description fcd_description_1): Do not dump
12038         the above.
12039
12040         * emacs.c (main_1): Call vars_of_nt().
12041         (right before Fdump_emacs_data): Don't need lastfile if using both
12042         portabe dumper and system malloc.
12043
12044         * alloc.c (Fmemory_limit): Conditionalized out.
12045         (pdump): Use OPEN_BINARY for the portable dump file.
12046         (pdump_load): Ditto.
12047
12048 2000-02-02  Mike Alexander  <mta@arbortext.com>
12049
12050         * nt.c (convert_time): Set tm_isdst before calling mktime and
12051         avoid calling it at all if the compiler supports 64 bit integers.
12052         Also initialize utc_base_ft before using it.
12053
12054 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12055
12056         * frame.c (change_frame_size_1): Take f->internal_border_width
12057         into consideration when calculating the width of the frame.
12058
12059 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12060
12061         * window.c (frame_min_height):
12062         (frame_size_valid_p):
12063         (frame_pixsize_valid_p): Added.
12064         (check_frame_size): Generalized.
12065
12066         * window.h: Prototyped the above.
12067
12068         * lisp.h:
12069         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12070         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12071         Deleted Vwin32_* and Vbinary_process_* unused variables.
12072
12073         * device-msw.c (msprinter_init_device): Do not get printer font
12074         list; Added DEVMODE functions.
12075
12076         * frame-msw.c: Added lots of printer code.
12077
12078         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12079         general.c.
12080
12081         * console-msw.h: Added more msprinter device private slots.
12082
12083 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12084
12085         * event-msw.c (key_needs_default_processing_p): Added.
12086         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12087
12088 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12089
12090         * glyphs.c (image_instance_layout): Mark image instance as clean
12091         after layout.
12092         (glyph_dirty_p): Removed redundant function.
12093         (invalidate_glyph_geometry_maybe): Added.
12094         (update_glyph_cachel_data): Call it.
12095
12096         * glyphs.h: Prototyped it.
12097
12098         * redisplay.c (add_glyph_rune): Call it.
12099         (redisplay_window): Reset glyphs cachels when frame faces have
12100         changed, thus forcing recomputation of built-in border glyphs.
12101
12102 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12103
12104         * Makefile.in.in: Make portable dumper and purify play well together.
12105         Add imperfect, but better than nothing, support for pdump.
12106         Remove xemacs.dmp when temacs is re-generated.
12107         Don't ignore errors when dumping xemacs.
12108
12109         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12110
12111 2000-01-28  Andy Piper  <andy@xemacs.org>
12112
12113         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12114         (setup_normal_frame): ditto.
12115         (setup_frame_without_minibuffer): ditto.
12116         (setup_minibuffer_frame): ditto.
12117         (delete_frame_internal): ditto.
12118         (Fmake_frame_invisible): ditto.
12119         (Ficonify_frame): ditto.
12120
12121         * window.h: change Fset_window_buffer signature.
12122
12123         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12124         (Fset_window_buffer): allow recording of buffer if the window is
12125         the selected window.
12126         (window_loop): Use new Fset_window signature.
12127
12128 2000-01-23  Daniel Pittman  <daniel@danann.net>
12129
12130         * config.h.in: Added template for `HAVE_ATHENA_3D'
12131
12132 2000-01-29  Andy Piper  <andy@xemacs.org>
12133
12134         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12135
12136         * gutter.c (output_gutter): Don't output if the window isn't live.
12137
12138 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12139
12140         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12141         of 01/12/00: Moved SetFocus back here where it belongs.
12142
12143 2000-01-23  Andy Piper  <andy@xemacs.org>
12144
12145         * s/cygwin32.h: declare printer things.
12146
12147 2000-01-26  Andy Piper  <andy@xemacs.org>
12148
12149         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12150         Alexander.
12151
12152 2000-01-24  Andy Piper  <andy@xemacs.org>
12153
12154         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12155         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12156
12157         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12158
12159         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12160
12161         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12162
12163         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12164         (mswindows_output_display_block): Avoid local shadows.
12165
12166         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12167         (mswindows_enqueue_mouse_button_event): ditto.
12168         (mswindows_handle_gui_wm_command): remove declaration.
12169
12170         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12171         warnings.
12172
12173         * console-msw.h: Avoid shadows.
12174         (mswindows_get_toolbar_button_text):
12175         (emacs_mswindows_create_stream_pair):
12176         (emacs_mswindows_delete_stream_pair):
12177         (mswindows_handle_toolbar_wm_command): declare.
12178
12179         * device-msw.c (build_syscolor_string): Avoid shadows.
12180
12181 2000-01-23  Andy Piper  <andy@xemacs.org>
12182
12183         * glyphs-widget.c (widget_instantiate): reverse the items for
12184         layouts so that children are in the expected order.
12185
12186 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12187
12188         * ralloc.c: safe_bcopy ==> memmove
12189         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12190         * s/msdos.h: Remove BCOPY macros.
12191         * insdel.c (gap_right): Remove BCOPY conditional code.
12192         * insdel.c (gap_left): Remove BCOPY conditional code.
12193         XEmacs demands a working ANSI C compiler - hence memmove.
12194
12195         * regex.c (regex_compile): Remove accidental use of trigraphs.
12196
12197 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12198
12199         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12200         event timestamp.
12201
12202 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12203
12204         * event-msw.c (mswindows_drain_windows_queue): Added the
12205         parameter.
12206         (mswindows_need_event): Commented the call to
12207         mswindows_drain_windows_queue().
12208         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12209         only.
12210
12211         * console-msw.h: Moved a few function prototypes here from
12212         event-msw.c.
12213
12214         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12215         parameter from unsigned short to unsigned long.
12216         (Fmswindows_shell_execute): Added return value.
12217
12218 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12219
12220         * sysdep.c (init_system_name):
12221           process-unix.c (unix_canonicalized_host_name):
12222         Don't call freeaddrinfo() if getaddrinfo() fails.
12223
12224         * process-unix.c (unix_open_unix_network_stream):
12225         Moved the code to get a port # into address loop.
12226
12227 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12228
12229         * buffer.c (reinit_vars_of_buffer):
12230         The right place to initialize conversion_in_dynarr and
12231         conversion_out_dynarr.
12232
12233         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12234
12235         * process-unix.c (unix_canonicalize_host_name): Muleize.
12236         (unix_open_network_stream): Muleize.
12237
12238         * buffer.h: Fix up prototypes for ralloc.c functions.
12239
12240 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12241         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12242         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12243                 instead of gethostbyname()
12244         * process-unix.c: In unix_canonicalize_host_name() and
12245                 unix_open_network_stream(), add code to use getaddrinfo()
12246                 instead of gethostbyname().
12247
12248 2000-01-27  Daniel Pittman <daniel@danann.net>
12249
12250         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12251         libs when built with flat Athena.
12252
12253 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12254
12255         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12256         Use coding standards for function prototypes.
12257
12258 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12259
12260         * dialog-msw.c (push_lisp_string_as_unicode):
12261         * doc.c (unparesseuxify_doc_string):
12262         * dired.c (Fuser_name_completion_1):
12263         * dired.c (Fuser_name_all_completions):
12264         * dired.c (free_user_cache):
12265         * dired.c (user_name_completion):
12266         * console-x.c (get_display_arg_connection):
12267         * minibuf.c (clear_echo_area_internal):
12268         * minibuf.c (echo_area_append):
12269         * eldap.c (Fldap_open):
12270         * eldap.c (Fldap_search_internal):
12271         * frame-x.c (x_set_frame_text_value):
12272         * frame-x.c (x_set_frame_properties):
12273         * frame-x.c (x_create_widgets):
12274         * redisplay-tty.c (term_get_fkeys_1):
12275         * objects-x.c (x_parse_nearest_color):
12276         * objects-x.c (x_valid_color_name_p):
12277         * objects-x.c (x_initialize_font_instance):
12278         * objects-x.c (x_list_fonts):
12279         * objects-x.c (x_find_charset_font):
12280         * tooltalk.c (Fadd_tooltalk_message_arg):
12281         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12282         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12283         * process-unix.c (unix_create_process):
12284         * ntproc.c (sys_spawnve):
12285         * sound.c (Fplay_sound_file):
12286         * sound.c (Fplay_sound):
12287         * buffer.c (init_initial_directory):
12288         * buffer.c (init_buffer):
12289         * editfns.c (init_editfns):
12290         * editfns.c (Ftemp_directory):
12291         * editfns.c (Fuser_full_name):
12292         * editfns.c (uncache_home_directory):
12293         * editfns.c (get_home_directory):
12294         * editfns.c (Fuser_home_directory):
12295         * editfns.c (Fformat_time_string):
12296         * editfns.c (Fcurrent_time_string):
12297         * gui-x.c (button_item_to_widget_value):
12298         * database.c (Fopen_database):
12299         * event-Xt.c (x_to_emacs_keysym):
12300         * event-Xt.c (x_event_to_emacs_event):
12301         * event-Xt.c (describe_event_window):
12302         * event-msw.c (mswindows_wnd_proc):
12303         * glyphs-eimage.c (jpeg_instantiate):
12304         * glyphs-eimage.c (gif_instantiate):
12305         * glyphs-eimage.c (png_instantiate):
12306         * glyphs-eimage.c (tiff_instantiate):
12307         * glyphs-x.c (xbm_instantiate_1):
12308         * glyphs-x.c (x_xbm_instantiate):
12309         * glyphs-x.c (x_xface_instantiate):
12310         * glyphs-x.c (autodetect_instantiate):
12311         * glyphs-x.c (cursor_font_instantiate):
12312         * glyphs-x.c (x_widget_instantiate):
12313         * glyphs-x.c (x_widget_set_property):
12314         * glyphs-x.c (x_widget_property):
12315         * glyphs-x.c (BUILD_GLYPH_INST):
12316         * print.c (write_string_to_stdio_stream):
12317         * print.c (output_string):
12318         * print.c (Falternate_debugging_output):
12319         * print.c (Fexternal_debugging_output):
12320         * glyphs-msw.c (extract_xpm_color_names):
12321         * glyphs-msw.c (mswindows_xpm_instantiate):
12322         * glyphs-msw.c (bmp_instantiate):
12323         * glyphs-msw.c (resource_name_to_resource):
12324         * glyphs-msw.c (mswindows_resource_instantiate):
12325         * glyphs-msw.c (xbm_instantiate_1):
12326         * glyphs-msw.c (mswindows_xbm_instantiate):
12327         * glyphs-msw.c (mswindows_xface_instantiate):
12328         * glyphs-msw.c (mswindows_widget_instantiate):
12329         * glyphs-msw.c (add_tree_item):
12330         * glyphs-msw.c (add_tab_item):
12331         * glyphs-msw.c (mswindows_combo_box_instantiate):
12332         * glyphs-msw.c (mswindows_widget_property):
12333         * glyphs-msw.c (mswindows_combo_box_property):
12334         * glyphs-msw.c (mswindows_widget_set_property):
12335         * console.c (stuff_buffered_input):
12336         * objects-msw.c (mswindows_initialize_color_instance):
12337         * objects-msw.c (mswindows_valid_color_name_p):
12338         * objects-msw.c (mswindows_list_fonts):
12339         * objects-msw.c (mswindows_font_instance_truename):
12340         * bytecode.c (optimize_compiled_function):
12341         * select-x.c (symbol_to_x_atom):
12342         * select-x.c (x_atom_to_symbol):
12343         * select-x.c (hack_motif_clipboard_selection):
12344         * select-x.c (selection_data_to_lisp_data):
12345         * select-x.c (lisp_data_to_selection_data):
12346         * select-x.c (Fx_get_cutbuffer_internal):
12347         * select-x.c (Fx_store_cutbuffer_internal):
12348         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12349         * buffer.h (TO_INTERNAL_FORMAT): New function.
12350         * emacs.c (make_arg_list_1):
12351         * emacs.c (make_argc_argv):
12352         * emacs.c (main_1):
12353         * emacs.c (Fdump_emacs):
12354         * emacs.c (split_string_by_emchar_1):
12355         * file-coding.h:
12356         * lisp.h:
12357         * lstream.h:
12358         * symsinit.h:
12359         * device-x.c (x_init_device):
12360         * device-x.c (Fx_valid_keysym_name_p):
12361         * device-x.c (Fx_get_font_path):
12362         * device-x.c (Fx_set_font_path):
12363         * glyphs.c (bitmap_to_lisp_data):
12364         * glyphs.c (pixmap_to_lisp_data):
12365         * alloc.c (make_ext_string): Use coding system arguments.  Update
12366         all callers.
12367         * alloc.c (build_string):
12368         * callproc.c (child_setup):
12369         * callproc.c (init_callproc):
12370         * fileio.c (lisp_strerror):
12371         * fileio.c (directory_file_name):
12372         * fileio.c (Fexpand_file_name):
12373         * fileio.c (Ffile_truename):
12374         * fileio.c (Fsysnetunam):
12375         * fileio.c (Fdo_auto_save):
12376         * sysdep.c (sys_readdir):
12377         * tests.c: New file.  Allow adding C tests.
12378         Replace GET_* macros with a more comprehensible and flexible
12379         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12380         Modify all calls.
12381         Any coding system can be used to do format conversion.
12382         Eliminate enum external_data_format.
12383         Eliminate convert_to_external_format.
12384         Eliminate convert_to_internal_format.
12385         Make sure file-name, keyboard, terminal, and ctext are always
12386         defined as coding systems or aliases.  Make
12387         file-name-coding-system, terminal-coding-system, and
12388         keyboard-coding-system magical variables that are equivalent to
12389         defining the corresponding coding system aliases.
12390
12391         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12392         * file-coding.c (Fcoding_system_alias_p): New function.
12393         * file-coding.c (Fcoding_system_aliasee): New function.
12394         * file-coding.c (append_suffix_to_symbol): New function.
12395         * file-coding.c (dangling_coding_system_alias_p): New function.
12396         * file-coding.c (Ffind_coding_system):
12397         * file-coding.c (Fcopy_coding_system):
12398         * file-coding.c (encode_coding_no_conversion):
12399         * file-coding.c (syms_of_file_coding):
12400         * file-coding.c (vars_of_file_coding):
12401         Rewrite coding system alias code.
12402         Allow nested aliases, like symbolic links.
12403         Allow redefinition of coding system aliases.
12404         Prevent existence of dangling coding system aliases.
12405
12406         * dired.c (Fuser_name_completion_1):
12407         * dired.c (Fuser_name_all_completions):
12408         A crash would happen if user did QUIT in the middle of building
12409         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12410
12411         * lisp.h:
12412         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12413
12414         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12415         an unsigned char *.  Update all callers.
12416
12417 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12418
12419         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12420
12421 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12422
12423         * elhash.c (hentry_description): Use more portable definition.
12424         (resize_hash_table): Initialize new hentries using
12425         xnew_array_and_zero, thereby simplifying the code.
12426
12427         * mule-charset.c (make_charset): Make sure entire object is
12428         initialized, to avoid Purify warnings.
12429
12430         * alloc.c (resize_string): Fix unlikely crash with big strings.
12431
12432 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12433
12434         * realpath.c (xrealpath):
12435         Don't call getwd().
12436
12437 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12438
12439         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12440
12441 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12442
12443         * unexelfsgi.c (unexec): Change the way we decide which segment
12444         should be extended.
12445
12446         Assumption that .bss section should be outside the PT_LOADable
12447         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12448         it's present) is inside the 'data' segment. This would fail the
12449         test which was used to find a segment to grow and cover new
12450         heap. Instead of this assumption, I created another one - on IRIX
12451         the segment to grow should start below .bss and it's address
12452         should extent above the end of .bss. Once this segment is
12453         identified, it's grown to accommodate the new heap and new
12454         zero-length .bss section is added at the end of .data2.
12455
12456 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12457
12458         * eval.c (Feval): Wrong number of arguments should use original
12459         function, not the indirect_function version of it.
12460
12461 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12462
12463         * glyphs-x.c (x_button_instantiate): Don't add image if
12464         it is not a pixmap.
12465         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12466         is relative.
12467
12468 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12469
12470         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12471         declaration.
12472         (DEFVAR_INT_MAGIC): Ditto.
12473         (DEFVAR_BOOL_MAGIC): Ditto.
12474         * glyphs.h: Reindent backslash.
12475
12476 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12477
12478         * glyphs-widget.c (layout_query_geometry):
12479         (layout_layout): Use correct types for gheight, gwidth.
12480
12481 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12482
12483         * EmacsManager.c (QueryGeometry): Purified.
12484
12485 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12486
12487         * alloc.c (make_float): Make sure entire object is initialized, to
12488         avoid Purify warnings.
12489         (pdump_register_sub): Remove useless assignment.
12490         (pdump): Use xmalloc, not malloc.
12491         (pdump_load): Use xmalloc, not malloc.
12492
12493 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12494
12495         * callproc.c:
12496         * dired-msw.c:
12497         * fileio.c:
12498         * process-nt.c:
12499         * redisplay-msw.c:
12500         * sysdep.c: Removed redundant #include <windows.h>
12501
12502 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12503
12504         * frame.c (delete_frame_internal): Do not delete device when its
12505         implementation so declares.
12506         (delete_frame_internal): Set device selected frame to nil when
12507         last frame goes away.
12508
12509         * device-msw.c (msprinter_device_system_metrics): Implemented.
12510         (mswindows_device_system_metrics): Added 'device-dpi property.
12511
12512         * device.c: (Fdevice_printer_p): Added.
12513         Added 'offset-workspace device metric.
12514
12515         * console.h (device_metrics): Declared DM_offset_workspace.
12516
12517 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12518
12519         * fileio.c (Ffile_truename): Remove pointless and confusing
12520         initialization of elen.
12521
12522         * glyphs-widget.c: Compiler warning fixes.
12523
12524 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12525
12526         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12527         instead of a Lisp_Object as argument to make it consistent with
12528         the other LIVE_P macros.
12529         (CHECK_LIVE_PROCESS): New macro.
12530
12531         * process.c: Declare Qprocess_live_p.
12532         (Fprocess_live_p): New function.
12533         (create_process): Use PROCESS_LIVE_P.
12534         (read_process_output): Ditto.
12535         (set_process_filter): Ditto.
12536         (Fdelete_process): Ditto.
12537         (kill_buffer_processes): Ditto
12538         (process_send_signal): Use CHECK_LIVE_PROCESS.
12539         (Fprocess_input_coding_system): Check whether process is still
12540         alive (fix PR#1061).
12541         (Fprocess_output_coding_system): Ditto.
12542         (Fprocess_coding_system): Ditto.
12543         (Fset_process_input_coding_system): Ditto.
12544         (Fset_process_output_coding_system): Ditto.
12545
12546 2000-01-23  Andy Piper  <andy@xemacs.org>
12547
12548         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12549         layout and widget.
12550
12551         * glyphs.c (mark_image_instance): take into account changed
12552         image_instance format.
12553         (image_instance_equal): ditto.
12554         (image_instance_hash): ditto.
12555
12556         * glyphs-widget.c (widget_instantiate): Incorporate layout
12557         instantiation here. Delay layout of the layout until later.
12558         (layout_instantiate): deleted.
12559         (layout_query_geometry): new function. get the geometry of a
12560         layout.
12561         (layout_layout): layout a layout dynamically.
12562         (image_instantiator_widget): New function - splitting up
12563         image_instantiator_format_create_glyphs_widget for netwinder
12564         compilation.
12565         (image_instantiator_buttons):
12566         (image_instantiator_edit_fields):
12567         (image_instantiator_combo_box):
12568         (image_instantiator_scrollbar):
12569         (image_instantiator_progress_guage):
12570         (image_instantiator_tree_view):
12571         (image_instantiator_tab_control):
12572         (image_instantiator_labels):
12573         (image_instantiator_layout): ditto.
12574         (image_instantiator_format_create_glyphs_widget): Call preceding
12575         functions.
12576
12577 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12578
12579         * process.c (Fset_process_coding_system):
12580         * device-x.c (Fx_keysym_hash_table):
12581         Docstring fixes.
12582
12583         * lstream.c (Lstream_write): Return documented value, not 0.
12584
12585         * fileio.c (directory_file_name):
12586         (Fsubstitute_in_file_name):
12587         (Fsubstitute_insert_file_contents_internal):
12588         (Fwrite_region_internal):
12589         * emacs.c:
12590         * sysdep.c:
12591         * getloadavg.c:
12592         * systty.h:
12593         Remove vestigial APOLLO-conditional code.
12594
12595 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12596
12597         * getpagesize.h: Add guard macros.
12598         * libsst.h: Add guard macros.
12599         * libst.h: Add guard macros.
12600         * line-number.h: Add guard macros.
12601         * ndir.h: Add guard macros.
12602         * sysfloat.h: Add guard macros.
12603         * sysfile.h: Add guard macros.
12604         * sysproc.h: Add guard macros.
12605         * syswait.h: Add guard macros.
12606         * xintrinsic.h: Add guard macros.
12607         * xintrinsicp.h: Add guard macros.
12608         * xmmanager.h: Add guard macros.
12609         * xmmanagerp.h: Add guard macros.
12610         * xmprimitive.h: Add guard macros.
12611         * xmu.h: Add guard macros.
12612         * gpmevent.h: Add copyright statement. Add guard macros.
12613         * miscplay.h: Add guard macros.
12614         * *.h: Use consistent C-standards-approved guard macro names.
12615
12616         * opaque.c (make_opaque): Switch parameter order.
12617         * opaque.h (make_opaque): Switch parameter order.
12618         Update all callers.
12619         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12620
12621         * config.h.in (type_checking_assert): Added.
12622         (bufpos_checking_assert): Added.
12623
12624 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12625
12626         * alloc.c: Harmless pdump changes.
12627         - Use countof().
12628         - spell alignment correctly.
12629         * sysdep.c: Use countof()
12630
12631 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12632
12633         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12634         initially_selected_for_input() console method, default to 0.
12635         (semi_canonicalize_console_connection): Try to delegate to
12636         canonicalize_console_connection if no such console method.
12637         (canonicalize_console_connection): Vice versa.
12638         (print_console): Do not print nil connection.
12639
12640         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12641         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12642         (XDEVIMPF_FRAMELESS_OK): Added.
12643         (CONSOLE_INHERITS_METHOD): Added.
12644
12645         * console-msw.c (mswindows_canonicalize_console_connection):
12646         Added.
12647         (mswindows_canonicalize_device_connection): Added.
12648
12649         * console-msw.h (struct msprinter_device): Added this struct and
12650         accessor macros.
12651         (mswindows_device): Made fontlist a lisp object.
12652
12653         * device.c (semi_canonicalize_device_connection):  Try to delegate
12654         to canonicalize_device_connection if no such console method.
12655         (canonicalize_device_connection): Vice versa.
12656         (print_device): Do not print nil connection.
12657
12658         * device-msw.c (mswindows_init_device): Call InitCommonControls
12659         when have widgets.
12660         (mswindows_delete_device): Removed fontlist deallocation.
12661         (mswindows_mark_device): Added.
12662
12663         * events.c (event_equal): Added abort() at unreached code.
12664         (event_hash): Ditto.
12665
12666         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12667         fallback tags of Windows devices.
12668
12669         * general.c (syms_of_general): Initialized Qmsprinter.
12670
12671         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12672         of fallback tags of Windows devices.
12673
12674         * lisp.h: Declared Qmsprinter.
12675
12676         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12677         of strings.
12678         (mswindows_list_fonts): Ditto.
12679         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12680         that it can be used by both mswindows and msprinter devices.
12681         (initialize_font_instance): Added.
12682         (mswindows_initialize_font_instance): Use it.
12683         (msprinter_initialize_font_instance): Added.
12684
12685         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12686         and implementation flags check.
12687         (redisplay_without_hooks): Changed the call to the above.
12688         (Fredraw_device): Ditto.
12689         (Fredisplay_device): Ditto.
12690
12691         * redisplay-msw.c (get_frame_dc): Implemented.
12692         (get_frame_compdc): Implemented.
12693         (many functions): Use the two functions above to get device
12694         contexts, ether for a window or a printer.
12695
12696 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12697
12698         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12699         initialization here.
12700         (init_symbols_once_early): Call it.
12701         * emacs.c (main_1): Call it.
12702         * symsinit.h: Declare it.
12703
12704 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12705
12706         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12707         Lisp_Object.
12708         (pdump_backtrace): Ditto.
12709         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12710         (pdump_get_entry): Abort if trying to register a null pointer.
12711         (pdump_dump_data): Cleanup types when relocating.
12712         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12713         (pdump_dump_rtables): Remove bad casts.
12714         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12715         Lisp_Object instead of a EMACS_INT for the hashtable
12716         reorganization.
12717
12718 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12719
12720         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12721
12722         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12723
12724         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12725
12726         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12727
12728 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12729
12730         * faces.h (FACE_STRIKETHRU_P): Added.
12731
12732         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12733         of font variants.
12734
12735         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12736         (mswindows_set_dc_font): New function, aware of font variants,
12737         separated from mswindows_update_dc.
12738
12739         * objects-msw.h (struct mswindows_font_instance_data): Added
12740         definition.
12741
12742         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12743         cached fonts and the data structure.
12744         (mswindows_initialize_font_instance): Added creation of font data
12745         structure.
12746         (mswindows_print_font_instance): Print at least something.
12747         (mswindows_create_font_variant): Implemented.
12748         (mswindows_get_hfont): Implemented.
12749
12750 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12751
12752         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12753         prototyping problem with msvc.
12754
12755         * emacs.c (main_1): added syms_of_gui_mswindows() call
12756
12757         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12758         syms_of_gui_mswindows() function
12759
12760         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12761
12762 2000-01-18  Martin Buchholz <martin@xemacs.org>
12763
12764         * XEmacs 21.2.27 is released.
12765
12766 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12767
12768         * glyphs-eimage.c (struct tiff_error_struct):
12769         (tiff_error_func):
12770         (tiff_warning_func):
12771         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12772
12773         * unexmips.c:
12774         * unexhp9k3.c:
12775         * unexfreebsd.c:
12776         * unexec.c: Remove vestigial Lucid C code.
12777         * unexalpha.c:
12778         * unexaix.c:
12779         * termcap.c:
12780         * libsst.c: Ansify.
12781         Remove declarations of errno and strerror().
12782
12783         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12784
12785         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12786
12787 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12788
12789         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12790         Optimize.
12791
12792 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12793
12794         * md5.c:
12795         * file-coding.c:
12796         * file-coding.h:
12797         Change enum eol_type to eol_type_t.
12798
12799 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12800
12801         * gui.c (get_gui_callback): Check cons before accessing car.
12802
12803 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12804
12805         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12806         (XSETSPECIFIER_TYPE): Ditto.
12807
12808 2000-01-17  Didier Verna  <didier@xemacs.org>
12809
12810         * redisplay.c (generate_fstring_runes): compute string size in
12811         characters, not bytes.
12812
12813 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12814
12815         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12816
12817 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12818
12819         * print.c (print_error_message): Call print_prepare().
12820
12821 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12822
12823         * .dbxrc: Renamed from dbxrc.
12824
12825         * events.c (event_to_character):
12826         Use `assert (foo)' instead of `if (!foo) abort()'
12827
12828         * .gdbinit (xtype): Add documentation.
12829         * .gdbinit (check-temacs): New function.
12830         * .gdbinit (check-xemacs): New function.
12831         * dbxrc (check-xemacs): New function.
12832         * dbxrc (check-xemacs): New function.
12833
12834 2000-01-14  Andy Piper  <andy@xemacs.org>
12835
12836         * glyphs-widget.c (widget_query_geometry): Make sure that we
12837         calculate default dimensions correctly.
12838
12839 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12840
12841         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12842
12843         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12844         pdump_wire'd variable.
12845
12846         * emacs.c: (main_1): Conditionalized calls to
12847         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12848
12849 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12850
12851         * window.c (Fset_window_configuration):
12852         * sysdep.c (_start):
12853         * input-method-motif.c (res):
12854         * event-Xt.c (Xt_process_to_emacs_event):
12855         Simple compiler warning fixes.
12856
12857         * bytecode.c (funcall_compiled_function): Use the original
12858         function symbol on the backtrace list in preference to the
12859         compiled_function object in error messages.
12860
12861 2000-01-13  Andy Piper  <andy@xemacs.org>
12862
12863         * glyphs-x.c (update_widget_face): Make sure we update the widget
12864         background as well as foreground.
12865
12866 2000-01-13  Andy Piper  <andy@xemacs.org>
12867
12868         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12869         fields to subwindow.
12870         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12871         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12872         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12873         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12874
12875         * glyphs-widget.c (check_valid_tab_orientation): new function.
12876         (initialize_widget_image_instance): zero orientation and
12877         justification.
12878         (widget_instantiate): pick up orientation.
12879         (tab_control_query_geometry): return appropriate values for
12880         vertical tabs.
12881
12882         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12883         appropriate creation flags for left, right and bottom tabs.
12884
12885         * s/cygwin32.h: add tab definitions.
12886
12887 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12888
12889         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12890         frame upon hiding a subwindow.
12891         (mswindows_button_instantiate): Changed the push button style to
12892         BS_PUSHBUTTON.
12893         (mswindows_button_instantiate): Removed button BS_NOTIFY
12894         style.
12895         (mswindows_button_instantiate): Removed redundant check for
12896         a disabled gui item.
12897         (mswindows_button_instantiate): Made use of WS_TABSTOP
12898         consistent: "operable" controls (edit, button, tree, scroll) have
12899         this style, "display-only" ones (static, progress gauge) do
12900         not. This style is currently ignored by XEmacs though. Also,
12901         removed the WS_EX_CONTROLPARENT style - it is not for children,
12902         it is for their parents!
12903         (mswindows_edit_field_instantiate): Ditto.
12904         (mswindows_progress_gauge_instantiate): Ditto.
12905         (mswindows_tree_view_instantiate): Ditto.
12906         (mswindows_tab_control_instantiate): Ditto.
12907         (mswindows_scrollbar_instantiate): Ditto.
12908         (mswindows_combo_box_instantiate): Ditto.
12909         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12910         style to the "clip" window.
12911         (mswindows_button_instantiate): Removed compilation warning by
12912         equally typing terms of the ?: operator.
12913
12914 2000-01-12  Didier Verna  <didier@xemacs.org>
12915
12916         * redisplay.c (generate_fstring_runes): new parameter holding the
12917         last modeline-format extent.
12918         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12919         extent, fill the glyph block with it.
12920         (generate_fstring_runes): handle these parameters.
12921         (generate_formatted_string_db): ditto.
12922
12923         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12924         glyphs'extents in the modeline.
12925
12926 1999-01-11  Mike Woolley  <mike@bulsara.com>
12927
12928         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12929         256Mb, as a workaround for the non-starting problem many people
12930         have experienced.
12931
12932 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12933
12934         * console-tty.c (Fset_console_tty_output_coding_system):
12935         Force redrawing tty frame.
12936
12937 2000-01-10  Didier Verna  <didier@xemacs.org>
12938
12939         * redisplay.c (generate_fstring_runes): fix size computation bug.
12940
12941 2000-01-09  William M. Perry <wmperry@aventail.com>
12942
12943         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12944
12945 2000-01-09  Andy Piper  <andy@xemacs.org>
12946
12947         * glyphs-msw.c: index -> i to avoid shadows.
12948         (xbm_create_bitmap_from_data): make static.
12949         (check_valid_string_or_int): deleted.
12950         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12951
12952         * glyphs-x.c (x_update_subwindow): remove unused args.
12953
12954         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12955         back pointer - this is done in allocate_image_instance.
12956         (query_string_font): return Qnil to make the compiler happy.
12957         (unmap_subwindow): set to ~0 to make the compiler happy.
12958         (glyph_query_geometry): comment out until used.
12959         (glyph_layout): ditto.
12960
12961 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12962
12963         * insdel.c (signal_after_change): Remove extraneous unbind_to().