49d7ceda3ce771a8fff797fe77fcd2b1ce4c5906
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
4         instead of `DECODE_ADD_UCS_CHAR'.
5         (COMPOSE_ADD_CHAR): Likewise.
6
7 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
8
9         * text-coding.c (decode_flush_er_chars): New inline function.
10         (decode_add_er_char): New function.
11         (decode_coding_utf8): Use `decode_flush_er_chars' and
12         `decode_add_er_char'.
13
14 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
15
16         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
17         done before `decode_output_utf8_partial_char'.
18
19         * mule-charset.c (complex_vars_of_mule_charset): Specify
20         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
21         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
22
23 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
24
25         * mule-charset.c (decode_defined_char): New function; search
26         mother.
27         (decode_builtin_char): Don't search mother if
28         XCHARSET_MAX_CODE(charset) == 0.
29         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
30         == 0 even if code >= XCHARSET_MAX_CODE(charset).
31         (Fdecode_char): Use `decode_defined_char' instead of
32         `DECODE_DEFINED_CHAR'.
33         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
34         mother of `Vcharset_ucs_jis'.
35
36         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
37         instead of `DECODE_DEFINED_CHAR'.
38
39         * char-ucs.h (decode_defined_char): Renamed from
40         `DECODE_DEFINED_CHAR'; changed to normal function.
41         (DECODE_CHAR): Use `decode_defined_char' instead of
42         `DECODE_DEFINED_CHAR'.
43
44         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
45
46 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
47
48         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
49
50         * text-coding.c (Vcoded_charset_entity_reference_alist): New
51         variable.
52         (Quse_entity_reference): New variable.
53         (Qd): New variable.
54         (Qx): New variable.
55         (QX): New variable.
56         (coding_system_description): Add description for
57         `ccs_priority_list'.
58         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
59         (allocate_coding_system): Initialize `ccs_priority_list' in
60         UTF-2000.
61         (Fmake_coding_system): Add description about
62         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
63         (codesys).
64         (Fcoding_system_property): Accept `disable-composition' and
65         `use-entity-reference' in UTF-2000.
66         (struct decoding_stream): Add new member `er_counter' and `er_buf'
67         in UTF-2000.
68         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
69         (decode_coding_utf8): Decode entity-reference if
70         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
71         (char_encode_utf8): Encode non-Unicode characters as
72         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
73         (str->codesys).
74         (syms_of_file_coding): Add new symbols `use-entity-reference',
75         `d', `x', `X'.
76         (vars_of_file_coding): Add new variable
77         `coded-charset-entity-reference-alist'.
78         (complex_vars_of_file_coding): Declare `disable-composition' and
79         `use-entity-reference' to be coding-system-properties in UTF-2000.
80
81         * file-coding.h (struct Lisp_Coding_System): Add new member
82         `use_entity_reference' and `ccs_priority_list'.
83         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
84         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
85         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
86
87 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
88
89         * chartab.c (save_uint8_byte_table): Don't clear the table.
90         (save_uint16_byte_table): Likewise.
91         (save_byte_table): Likewise.
92         (Fmount_char_attribute_table): New function.
93         (syms_of_chartab): Add new builtin function
94         `mount-char-attribute-table'.
95
96 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * mule-charset.c (Fsave_charset_mapping_table): Open database as
99         "w+" mode.
100         (load_char_decoding_entry_maybe): Open database as read-only mode.
101
102         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
103         open database as "w+" mode.
104         (load_char_attribute_maybe): Open database as read-only mode.
105         (Fload_char_attribute_table): Likewise.
106
107 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
110         (char_table_description): Delete member `db_file'.
111         (Fmake_char_table): Don't refer `ct->db_file'.
112         (Fcopy_char_table): Likewise.
113         (Fsave_char_attribute_table): Likewise.
114         (Fclose_char_attribute_table): Likewise.
115         (Freset_char_attribute_table): Likewise.
116         (load_char_attribute_maybe): Likewise.
117         (Fload_char_attribute_table): Likewise.
118
119         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
120
121 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
122
123         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
124         (Fsave_char_attribute_table): Don't check `ct->db_file' if
125         `ct->db' is living.
126         (load_char_attribute_maybe): Likewise.
127         (Fload_char_attribute_table): Likewise.
128
129 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
130
131         * chartab.c (Fclose_char_attribute_table): Set Qnil on
132         `ct->db_file' unconditionally.
133
134 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
135
136         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
137         UTF-2000.
138         (char_table_description): Add description for `db_file' and `db'
139         in UTF-2000.
140         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
141         UTF-2000.
142         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
143         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
144         (Fclose_char_attribute_table): New function.
145         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
146         (load_char_attribute_maybe): Change interface; use `cit->db_file'
147         and `cit->db'.
148         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
149         (syms_of_chartab): Add new builtin function
150         `Fclose_char_attribute_table'.
151
152 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
153
154         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
155         `db' in UTF-2000.
156         (load_char_attribute_maybe): Change interface.
157         (get_char_id_table): Modify for `load_char_attribute_maybe'.
158
159 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
160
161         * database.h: Add an EXFUN for `Fdatabase_live_p'.
162
163 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
164
165         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
166         instead of `DECODE_CHAR' for mother; don't use special code for
167         chinese-big5 to use code space of chinese-big5-1 and
168         chinese-big5-2.
169         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
170         `MAX_CHAR_BIG5_CDP' for chinese-big5.
171
172         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
173         (MAX_CHAR_BIG5_CDP): Revival.
174
175 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
178         the XLFD registry-encoding name of `chinese-big5'.
179
180 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
181
182         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
183         (Qchinese_big5_cdp): Deleted.
184         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
185         (complex_vars_of_mule_charset): Delete coded-charset
186         `chinese-big5-cdp'.
187
188         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
189         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
190         `CHARSET_ID_OFFSET - n' for private CCS.
191         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
192         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
193         of `MIN_LEADING_BYTE'.
194         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
195         `(CHARSET_ID_OFFSET - 97)'.
196         (MIN_CHAR_BIG5_CDP): Deleted.
197         (MAX_CHAR_BIG5_CDP): Deleted.
198
199 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
200
201         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
202
203 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
204
205         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
206         (vars_of_mule): Add new variable `utf-2000-version' [moved from
207         chartab.c].
208
209         * chartab.c (Vutf_2000_version): Moved to mule.c.
210         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
211
212 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
213
214         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
215         when HAVE_CHISE_CLIENT is not defined.
216
217         * mule.c (vars_of_mule): Provide feature `chise' when
218         HAVE_CHISE_CLIENT is defined.
219
220 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
221
222         * config.h.in (UTF2000): Add comment.
223         (HAVE_CHISE_CLIENT): New macro.
224
225 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
226
227         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
228         CONSP.
229         (Fput_char_attribute): Likewise.
230         (char_attribute_system_db_file): Encode file-name of attribute.
231         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
232         the initial value.
233
234 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
235
236         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
237         (Fsave_charset_mapping_table): Use
238         `char_attribute_system_db_file'.
239         (load_char_decoding_entry_maybe): Likewise.
240
241         * chartab.h (Qsystem_char_id): New external variable.
242         (char_attribute_system_db_file): New prototype.
243
244         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
245         (char_attribute_system_db_file): New function.
246         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
247         (Freset_char_attribute_table): Likewise.
248         (load_char_attribute_maybe): Likewise.
249         (Fload_char_attribute_table): Likewise.
250         (syms_of_chartab): Add new symbol `system-char-id'.
251
252 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
253
254         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
255         `XCHARSET_GRAPHIC(ccs)'.
256
257 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
260
261 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
262
263         * chartab.c (Q_ucs_variants): New variable.
264         (syms_of_chartab): Add new symbol `->ucs-variants'.
265         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
266         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
267         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
268
269         * mule-charset.c (load_char_decoding_entry_maybe): New function.
270
271         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
272         `HAVE_DATABASE' is defined.
273         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
274         `HAVE_DATABASE' is defined.
275
276 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
277
278         * chartab.c (Fsave_char_attribute_table): Don't clear internal
279         attribute-table.
280         (Freset_char_attribute_table): New function.
281         (syms_of_chartab): Add new builtin function
282         `reset-char-attribute-table'.
283
284 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
285
286         * chartab.c (load_char_attribute_maybe): Don't make directories.
287
288 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
289
290         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
291
292         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
293         for decoding-table.
294
295 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
296
297         * mule-charset.c (Fsave_charset_mapping_table): Use
298         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
299
300         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
301         instead of `XCHARSET_CHARS'.
302
303 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
304
305         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
306         (XCHARSET_BYTE_SIZE): Likewise.
307
308         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
309         mule-charset.c].
310         (XCHARSET_BYTE_SIZE): Likewise.
311
312 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
313
314         * chartab.c (Fput_char_attribute): Use exec-directory instead of
315         data-directory to store database.
316         (Fsave_char_attribute_table): Likewise.
317         (load_char_attribute_maybe): Likewise.
318         (Fload_char_attribute_table): Likewise.
319
320 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
321
322         * mule-charset.c (Fsave_charset_mapping_table): New function.
323         (syms_of_mule_charset): Add new builtin function
324         `save-charset-mapping-table'.
325
326 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
327
328         * char-ucs.h (decoding_table_check_elements): Delete prototype.
329         (get_ccs_octet_table): New inline function.
330         (put_ccs_octet_table): Likewise.
331         (decoding_table_put_char): Use `get_ccs_octet_table' and
332         `put_ccs_octet_table'.
333         (decoding_table_remove_char): Use `decoding_table_put_char'.
334         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
335
336         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
337         into encoding_table.
338         (make_charset): Use Qunbound instead Qnil as initial value of
339         decoding_table.
340
341 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
342
343         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
344         element is Qunloaded.
345         (map_over_uint16_byte_table): Likewise.
346         (map_over_byte_table): Likewise.
347         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
348         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
349         database support, load encoding-table of the specified
350         coded-charset if it is not loaded yet.
351         (save_uint8_byte_table): New function of UTF-2000 with external
352         database support.
353         (save_uint16_byte_table): Likewise.
354         (save_byte_table): Likewise.
355         (Fput_char_attribute): Don't store value into external database
356         even if the external database feature is supported in UTF-2000;
357         set `attribute' as name of char-table if the external database
358         feature is supported.
359         (Fsave_char_attribute_table): New function in UTF-2000.
360         (syms_of_chartab): Add new builtin function
361         `save-char-attribute-table' in UTF-2000.
362
363 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
364
365         * chartab.c (char_attribute_table_to_put): New variable in
366         UTF-2000.
367         (Qput_char_table_map_function): Likewise.
368         (value_to_put): Likewise.
369         (Fput_char_table_map_function): New function in UTF-2000.
370         (put_char_table): Use `Fmap_char_attribute' for
371         CHARTAB_RANGE_CHARSET in UTF-2000.
372         (Fput_char_attribute): Store symbol instead of string in
373         `XCHAR_TABLE_NAME (table)'.
374         (load_char_attribute_maybe): Likewise.
375         (syms_of_chartab): Add new symbol/function
376         `put-char-table-map-function'.
377
378 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
379
380         * database.h: Add new EXFUN for `Fmap_database'.
381
382         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
383         (syms_of_database): Likewise.
384
385         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
386         UTF-2000.
387         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
388         (XCHAR_TABLE_UNLOADED): Likewise.
389
390         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
391         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
392         HAVE_DATABASE is defined.
393         (char_attribute_table_to_load): New variable of UTF-2000 with
394         external database support.
395         (Qload_char_attribute_table_map_function): Likewise.
396         (Fload_char_attribute_table_map_function): New function of
397         UTF-2000 with external database support.
398         (Fload_char_attribute_table): New function of UTF-2000.
399         (Fmap_char_attribute): Call Fload_char_attribute_table if
400         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
401         (syms_of_chartab): Add new symbol and function
402         `load-char-attribute-table-map-function' in UTF-2000 with external
403         database support; add new function `load-char-attribute-table' in
404         UTF-2000.
405
406 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
407
408         * chartab.h (load_char_attribute_maybe): New prototype for
409         UTF-2000 with DATABASE support.
410         (get_char_id_table): Use `load_char_attribute_maybe' if
411         HAVE_DATABASE is defined.
412
413         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
414         with DATABASE support.
415
416 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
417
418         * chartab.c (Fput_char_attribute): Use S-expression as key of
419         external database.
420
421         * chartab.h (get_char_id_table): Use S-expression as key of
422         external database.
423
424 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
427         if an element is not loaded, load the corresponding attributes
428         from an external database.
429         (map_over_uint16_byte_table): Likewise.
430         (map_over_byte_table): Likewise.
431         (map_char_table): Modify for `map_over_uint8_byte_table',
432         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
433         element is not loaded, load the corresponding attributes from an
434         external database.
435         (Fput_char_attribute): Change initial values to Qunloaded.
436
437         * chartab.h (get_char_id_table): If a character attribute is not
438         loaded and the attribute value is not found in an external
439         database, store Qunbound as the attribute value.
440
441 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
442
443         * chartab.c (BT_UINT8_unloaded): New macro.
444         (UINT8_VALUE_P): Accept Qunloaded.
445         (UINT8_ENCODE): Likewise.
446         (UINT8_DECODE): Likewise.
447         (BT_UINT16_unloaded): New macro.
448         (UINT16_VALUE_P): Accept Qunloaded.
449         (UINT16_ENCODE): Likewise.
450         (UINT16_DECODE): Likewise.
451         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
452         BT_UINT16_unloaded.
453         (mark_char_table): Mark `ct->name' in UTF-2000.
454         (char_table_description): Add `name' in UTF-2000.
455         (Fmake_char_table): Initialize `ct->name'.
456         (Fcopy_char_table): Copy `ct->name'.
457         (Fput_char_attribute): Store value into an external database if
458         HAVE_DATABASE is defined.
459
460         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
461         UTF-2000.
462         (CHAR_TABLE_NAME): New macro in UTF-2000.
463         (XCHAR_TABLE_NAME): New macro in UTF-2000.
464         (get_char_id_table): Try to read an external database if Qunloaded
465         is stored in a table.
466
467         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
468         Qunloaded.
469
470 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
471
472         * database.h: Add EXFUN definitions for Fopen_database,
473         Fput_database, Fget_database and Fclose_database.
474
475         * data.c (Qunloaded): New variable in UTF-2000.
476
477         * lisp.h (Qunloaded): New variable in UTF-2000.
478
479 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
480
481         * mule-charset.c (put_char_ccs_code_point): Modify for
482         `decoding_table_remove_char' and `decoding_table_put_char'.
483         (remove_char_ccs): Modify for `decoding_table_remove_char'.
484
485         * char-ucs.h (decoding_table_remove_char): Change arguments to
486         hide decoding_table vector.
487         (decoding_table_put_char): Likewise.
488
489 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
490
491         * mule-charset.c (decoding_table_remove_char): Moved to
492         char-ucs.h.
493         (decoding_table_put_char): Likewise.
494
495         * char-ucs.h (decoding_table_check_elements): New prototype [moved
496         from mule-charset.c].
497         (decoding_table_remove_char): New inline function [moved from
498         mule-charset.c].
499         (decoding_table_put_char): Likewise.
500
501 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
502
503         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
504         extension.
505
506 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
507
508         * mule-charset.c (decode_builtin_char): Support mother charsets.
509
510 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
511
512         * mule-charset.c (Q94x94x60): New variable.
513         (charset_code_point): Support conversion `94x94x60'.
514         (Fmake_charset): Likewise.
515         (syms_of_mule_charset): Add new symbol `94x94x60'.
516
517         * char-ucs.h (CONVERSION_94x94x60): New macro.
518
519 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
520
521         * mule-charset.c (charset_code_point): Unify code about
522         `code-offset'.
523
524 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
525
526         * mule-charset.c (charset_code_point): Merge code about builtin
527         characters into code about mother charsets; don't use
528         `range_charset_code_point'.
529         (range_charset_code_point): Deleted.
530
531 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
532
533         * mule-charset.c (Qcode_offset): New variable.
534         (Fmake_charset): Use `XUINT' to get value of `min-code' and
535         `max-code'; accept new property `code-offset'.
536         (syms_of_mule_charset): Add new symbol `code-offset'.
537
538 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
539
540         * mule-charset.c (range_charset_code_point): Fixed.
541
542 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
543
544         * mule-charset.c (decode_builtin_char): Change semantics of
545         code-offset of coded-charset.
546         (charset_code_point): Likewise.
547         (range_charset_code_point): Likewise.
548         (complex_vars_of_mule_charset): Modify for the change.
549
550 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
551
552         * mule-charset.c (Fencode_char): Reverse arguments.
553
554         * mule-charset.c (charset_code_point): Fixed.
555
556 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
557
558         * mule-charset.c (Vcharset_mojikyo): Deleted.
559         (Vcharset_mojikyo_2022_1): Deleted.
560         (Vcharset_mojikyo_pj_{1..21}): Deleted.
561         (Qmin_code): New variable in UTF-2000.
562         (Qmax_code): Likewise.
563         (Qmother): Likewise.
564         (Qconversion): Likewise.
565         (Q94x60): Likewise.
566         (Qmojikyo): Deleted.
567         (Qmojikyo_2022_1): Deleted.
568         (Qmojikyo_pj_{1..22}): Deleted.
569         (mark_charset): Mark `cs->mother'.
570         (charset_description): Add description for `mother'.
571         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
572         new arguments `mother' and `conversion'; use
573         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
574         (charset_code_point): Moved from char-ucs.h; support `mother'
575         charset feature.
576         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
577         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
578         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
579         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
580         allow 2 as the value of `graphic' in UTF-2000; add new properties
581         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
582         require `final' in UTF-2000; modify for `make_charset'.
583         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
584         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
585         (Fcharset_property): Support `mother', `min-code' and `max-code'.
586         (Fencode_char): New function.
587         (syms_of_mule_charset): Add new builtin function `encode-char' in
588         UTF-2000; add new symbols `min-code', `max-code', `mother',
589         `conversion' and `94x60'; delete symbols `mojikyo',
590         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
591         (complex_vars_of_mule_charset): Modify for `make_charset' change;
592         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
593         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
594
595         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
596         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
597
598         * char-ucs.h (Vcharset_mojikyo): Deleted.
599         (Vcharset_mojikyo_2022_1): Deleted.
600         (LEADING_BYTE_MOJIKYO): Deleted.
601         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
602         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
603         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
604         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
605         add new member `mother'; add new member `conversion'.
606         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
607         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
608         (CHARSET_MOTHER): New macro.
609         (CHARSET_CONVERSION): New macro.
610         (CONVERSION_IDENTICAL): New macro.
611         (CONVERSION_94x60): New macro.
612         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
613         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
614         (XCHARSET_MOTHER): New macro.
615         (XCHARSET_CONVERSION): New macro.
616         (MIN_CHAR_MOJIKYO): Deleted.
617         (MAX_CHAR_MOJIKYO): Deleted.
618         (DECODE_MOJIKYO_2022): Deleted.
619         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
620         (charset_code_point): Changed to non-inline function.
621         (encode_char_1): Use `charset_code_point'.
622         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
623
624 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * lread.c (read_compiled_function): Fix prototype.
627         (read_vector): Likewise.
628
629 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * lrecord.h (struct lrecord_header): Delete `older'.
632         (set_lheader_implementation): Delete code for `older'.
633         (set_lheader_older_implementation): Deleted.
634         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
635         (OLDER_RECORD_P): Deleted.
636         (OLDER_RECORD_HEADER_P): Deleted.
637         (alloc_older_lcrecord): Deleted.
638         (alloc_older_lcrecord_type): Deleted.
639
640         * alloc.c (all_older_lcrecords): Deleted.
641         (alloc_older_lcrecord): Deleted.
642         (disksave_object_finalization_1): Delete code for older objects.
643         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
644         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
645
646 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
647
648         * mule-charset.c (decoding_table_put_char): Use `make_vector'
649         instead of `make_older_vector'.
650         (put_char_ccs_code_point): Likewise.
651         (mark_charset): Mark `cs->decoding_table'.
652         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
653
654         * lisp.h (make_older_vector): Deleted.
655         (make_vector_newer): Deleted.
656
657         * config.h.in (HAVE_GGC): Deleted.
658
659         * alloc.c (make_older_vector): Deleted.
660         (make_vector_newer_1): Deleted.
661         (make_vector_newer): Deleted.
662
663 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
664
665         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
666         (Qideograph_daikanwa_2): New variable.
667         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
668         (complex_vars_of_mule_charset): Add new coded-charset
669         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
670         `LEADING_BYTE_DAIKANWA'.
671
672         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
673         (LEADING_BYTE_DAIKANWA_1): New macro.
674         (LEADING_BYTE_DAIKANWA_2): New macro.
675         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
676
677 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
678
679         * mule-charset.c (complex_vars_of_mule_charset): Change
680         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
681         the second revised version.
682
683 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
684
685         * mule-charset.c (Vcharset_ucs_smp): New variable.
686         (Vcharset_ucs_sip): New variable.
687         (Qucs_smp): New variable.
688         (Qucs_sip): New variable.
689         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
690         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
691         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
692         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
693         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
694         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
695
696         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
697         (LEADING_BYTE_UCS_SIP): New macro.
698         (MIN_CHAR_SMP): New macro.
699         (MAX_CHAR_SMP): New macro.
700         (MIN_CHAR_SIP): New macro.
701         (MAX_CHAR_SIP): New macro.
702
703 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
704
705         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
706         utf-2000.
707
708 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
711         value; don't store value into `encoding_table' of `Lisp_Charset'.
712         (mark_charset): `encoding_table' was deleted.
713         (charset_description): Likewise.
714         (make_charset): Likewise.
715         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
716         `put_char_ccs_code_point'.
717
718         * chartab.h (Fput_char_attribute): New EXFUN.
719
720         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
721         is unified with normal symbol space.
722         (Fget_char_attribute): Likewise.
723         (Fput_char_attribute): Likewise; behavior of
724         `put_char_ccs_code_point' is changed.
725
726         * char-ucs.h: Include "elhash.h".
727         (Vchar_attribute_hash_table): New external variable.
728         (struct Lisp_Charset): Delete `encoding_table'.
729         (CHARSET_ENCODING_TABLE): New implementation; refer
730         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
731         `Lisp_Charset'.
732
733 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
734
735         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
736         (cs) == 0.
737
738 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
739
740         * text-coding.c (char_encode_big5): Prefer charset-g1 than
741         `chinese-big5'.
742
743 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
744
745         * chartab.c (uint8_byte_table_description): New constant.
746         (uint8-byte-table): Use `uint8_byte_table_description'.
747         (uint16_byte_table_description): New constant.
748         (uint16-byte-table): Use `uint16_byte_table_description'.
749
750 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
753         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
754
755 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
756
757         * mule-charset.c (Vcharset_ucs_ks): New variable.
758         (Qucs_ks): New variable.
759         (syms_of_mule_charset): Add new symbol `ucs-ks'.
760         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
761
762         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
763
764 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
765
766         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
767         (Fdecode_char): Likewise.
768
769         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
770         chartab.h.
771         (Fdefine_char): Modify for Fdecode_char.
772         (Ffind_char): Likewise.
773
774         * mule-charset.c (Fdecode_char): Add new optional argument
775         `defined-only'.
776         (Fdecode_builtin_char): Modify for `Fdecode_char'.
777
778 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
781         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
782         (allocate_coding_system): Initialize initial-charsets of
783         CODESYS_BIG5 in XEmacs UTF-2000.
784         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
785         CODESYS_BIG5 in XEmacs UTF-2000.
786         (decode_coding_big5): Use initial-charset-g0 and -g1 of
787         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
788
789         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
790         variables.
791         (Qideograph_hanziku_{1 .. 12}): Likewise.
792         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
793         .. 12}'.
794         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
795         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
796         `ideograph-hanziku-{1 .. 12}'.
797
798         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
799         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
800         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
801         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
802         (DECODE_DEFINED_CHAR): New inline function.
803         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
804
805 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * mule-charset.c (Vcharset_china3_jef): Renamed from
808         `Vcharset_japanese_jef_china3'.
809         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
810         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
811         `{MIN|MAX}_CHAR_JEF_CHINA3'..
812         (syms_of_mule_charset): Rename `china3-jef' from
813         `japanese-jef-china3'.
814         (complex_vars_of_mule_charset): Likewise; rename
815         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
816
817         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
818         `LEADING_BYTE_JEF_CHINA3'.
819         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
820         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
821
822 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
823
824         * mule-charset.c (encode_builtin_char_1): Comment out special code
825         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
826
827         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
828         (MAX_CHAR_MOJIKYO_0): Comment out.
829         (MIN_CHAR_CBETA): Changed to 0x00E20000.
830         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
831         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
832         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
833
834 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
835
836         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
837         (Qideograph_cbeta): New variable.
838         (encode_builtin_char_1): Comment out special code for
839         coded-charset `mojikyo' and `japanese-jef-china3'.
840         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
841         (complex_vars_of_mule_charset): Add new coded-charset
842         `ideograph-cbeta'.
843
844         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
845         (MIN_CHAR_CBETA): New macro.
846         (MAX_CHAR_CBETA): New macro.
847
848 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
849
850         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
851         (LEADING_BYTE_JEF_CHINA3): New macro.
852         (MIN_CHAR_JEF_CHINA3): New macro.
853         (MAX_CHAR_JEF_CHINA3): Likewise.
854         (DECODE_CHAR): Fixed.
855
856 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
857
858         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
859         (Qjapanese_jef_china3): New variable.
860         (encode_builtin_char_1): Support `japanese-jef-china3'.
861         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
862         (complex_vars_of_mule_charset): Add new coded-charset
863         `japanese-jef-china3'.
864
865 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
868         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
869         94^4, 96^3, 96^4, 128^n and 256^n set.
870         (put_char_table): Use `XCHARSET_CELL_RANGE'.
871         (map_char_table): Likewise.
872
873 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
874
875         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
876         UTF-2000.
877
878 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * chartab.h (get_char_id_table): New inline function.
881
882         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
883         function.
884
885 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
886
887         * chartab.h (decode_char_table_range): New prototype in XEmacs
888         UTF-2000.
889         (put_char_id_table): New inline function in XEmacs UTF-2000.
890
891         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
892         function.
893         (decode_char_table_range): Delete static declaration in XEmacs
894         UTF-2000.
895
896 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * chartab.c (put_char_id_table): Use `put_char_table'.
899
900 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
901
902         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
903         (map_over_uint16_byte_table): Likewise.
904         (map_over_byte_table): Likewise.
905         (map_char_table): Modify for `map_over_uint8_byte_table',
906         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
907         UTF-2000.
908
909 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
910
911         * chartab.c (struct map_char_table_for_charset_arg): New
912         structure.
913         (map_char_table_for_charset_fun): New function.
914         (map_char_table): Use `map_char_table' for encoding_table of
915         `range->charset'.
916
917 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * chartab.c (map_char_table): Check a character is found in
920         range->charset instead of non default value is defined in
921         char-table when range is CHARTAB_RANGE_ROW.
922
923 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * chartab.c (map_char_id_table): Deleted.
926         (Fmap_char_attribute): Use `map_char_table' instead of
927         `map_char_id_table'.
928
929 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
930
931         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
932         UTF-2000.
933         (update_syntax_table): Deleted in XEmacs UTF-2000.
934
935         * syntax.c (find_defun_start): Use `syntax_table' instead of
936         `mirror_syntax_table' in XEmacs UTF-2000.
937         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
938         UTF-2000.
939         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
940         XEmacs UTF-2000.
941         (Fmatching_paren): Likewise.
942         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
943         in XEmacs UTF-2000.
944         (find_start_of_comment): Likewise.
945         (find_end_of_comment): Likewise.
946         (Fforward_comment): Likewise.
947         (scan_lists): Likewise.
948         (char_quoted): Likewise.
949         (Fbackward_prefix_chars): Likewise.
950         (scan_sexps_forward): Likewise.
951         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
952         (update_syntax_table): Likewise.
953
954         * search.c (skip_chars): Use `syntax_table' instead of
955         `mirror_syntax_table' in XEmacs UTF-2000.
956         (wordify): Likewise.
957         (Freplace_match): Likewise.
958
959         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
960         `mirror_syntax_table' in XEmacs UTF-2000.
961         (WORDCHAR_P_UNSAFE): Likewise.
962         (re_match_2_internal): Likewise.
963
964         * font-lock.c (find_context): Use `buf->syntax_table' instead of
965         `buf->mirror_syntax_table' in XEmacs UTF-2000.
966
967         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
968         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
969
970         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
971         XEmacs UTF-2000.
972
973         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
974         UTF-2000.
975         (print_char_table): Print `default_value' in XEmacs UTF-2000.
976         (char_table_description): Delete `mirror_table' in XEmacs
977         UTF-2000.
978         (fill_char_table): Don't call `update_syntax_table' in XEmacs
979         UTF-2000.
980         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
981         (Fcopy_char_table): Likewise.
982         (put_char_table): Don't call `update_syntax_table' in XEmacs
983         UTF-2000.
984
985         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
986         `buf->mirror_syntax_table' in XEmacs UTF-2000.
987         (casify_region_internal): Likewise.
988
989         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
990
991         * buffer.c (common_init_complex_vars_of_buffer): Don't use
992         `mirror_syntax_table' in XEmacs UTF-2000.
993
994         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
995         `buf->mirror_syntax_table' in XEmacs UTF-2000.
996         (Fexpand_abbrev): Likewise.
997
998 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
999
1000         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1001
1002 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1003
1004         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1005         (map_over_uint16_byte_table): Likewise.
1006         (map_over_byte_table): Likewise.
1007         (get_char_id_table): Refer `cit->default_value'.
1008         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1009         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1010         of character-id ranges.
1011         (mark_char_table): Mark `ct->default_value'.
1012         (char_table_description): Add `default_value'.
1013         (fill_char_table): Use `default_value'.
1014         (decode_char_table_range): Decode `nil' as
1015         `CHARTAB_RANGE_DEFAULT'.
1016         (get_char_id_table): Refer `cit->default_value'.
1017         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1018         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1019         temporary hack; check value of char-table is bound or not.
1020         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1021
1022         * chartab.h (struct Lisp_Char_Table): Add new member
1023         `default_value' in XEmacs UTF-2000.
1024         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1025         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1026         UTF-2000.
1027
1028 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1029
1030         * chartab.h (Lisp_Char_ID_Table): Deleted.
1031
1032         * chartab.c (char_table_description): Fix typo.
1033         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1034         `Lisp_Char_ID_Table'.
1035
1036 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037
1038         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1039         `CHAR_ID_TABLE_P'.
1040
1041         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1042         `CHAR_ID_TABLE_P'.
1043
1044         * chartab.h (XCHAR_ID_TABLE): Deleted.
1045         (XSETCHAR_ID_TABLE): Deleted.
1046         (CHAR_ID_TABLE_P): Deleted.
1047
1048         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1049         `CHAR_ID_TABLE_P'.
1050         (Fget_composite_char): Likewise.
1051         (put_char_table): Likewise.
1052         (add_char_attribute_alist_mapper): Fixed.
1053         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1054         `CHAR_ID_TABLE_P'.
1055         (Fget_char_attribute): Likewise.
1056         (Fget_char_attribute): Likewise.
1057         (Fmap_char_attribute): Likewise.
1058
1059         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1060         `CHAR_ID_TABLE_P'.
1061         (encode_char_1): Likewise.
1062
1063 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1064
1065         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1066         `XCHAR_ID_TABLE'.
1067
1068         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1069         instead of `XCHAR_ID_TABLE'.
1070         (remove_char_ccs): Likewise.
1071
1072         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1073         `XCHAR_ID_TABLE'.
1074         (Fget_composite_char): Likewise.
1075         (Fchar_variants): Likewise.
1076         (put_char_table): Likewise.
1077         (add_char_attribute_alist_mapper): Likewise.
1078         (Fchar_attribute_alist): Likewise.
1079         (Fget_char_attribute): Likewise.
1080         (Fput_char_attribute): Likewise.
1081         (Fmap_char_attribute): Likewise.
1082         (Fmap_char_attribute): Likewise.
1083
1084         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1085         `XCHAR_ID_TABLE'.
1086         (encode_char_1): Likewise.
1087
1088 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1089
1090         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1091         `Lisp_Char_ID_Table'.
1092         (mark_char_id_table): Deleted.
1093         (print_char_id_table): Likewise.
1094         (char_id_table_equal): Likewise.
1095         (char_id_table_hash): Likewise.
1096         (char_id_table_description): Likewise.
1097         (char_id_table): Likewise.
1098         (make_char_id_table): Use `Fmake_char_table' and
1099         `fill_char_table'.
1100         (get_char_id_table): Use `Lisp_Char_Table' instead of
1101         `Lisp_Char_ID_Table'.
1102         (put_char_id_table): Likewise.
1103         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1104         `XCHAR_ID_TABLE'.
1105         (Fremove_char_attribute): Likewise.
1106         (syms_of_chartab): Don't define type `char-id-table'.
1107
1108         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1109         (char_id_table): Likewise.
1110         (GC_CHAR_ID_TABLE_P): Likewise.
1111         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1112         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1113         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1114         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1115         (get_char_id_table): Use `Lisp_Char_Table' instead of
1116         `Lisp_Char_ID_Table'.
1117         (put_char_id_table_0): Likewise.
1118         (put_char_id_table): Likewise.
1119
1120 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1121
1122         * chartab.h: Lisp_Byte_Table related codes are moved from
1123         chartab.h.
1124
1125         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1126
1127 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1128
1129         * chartab.h: Don't include "chartab.h".
1130         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1131         (Lisp_Char_ID_Table): Likewise.
1132         (char_id_table): Likewise.
1133         (XCHAR_ID_TABLE): Likewise.
1134         (XSETCHAR_ID_TABLE): Likewise.
1135         (CHAR_ID_TABLE_P): Likewise.
1136         (GC_CHAR_ID_TABLE_P): Likewise.
1137         (get_char_id_table): Likewise.
1138
1139         * char-ucs.h: Include "chartab.h".
1140         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1141         (Lisp_Char_ID_Table): Likewise.
1142         (char_id_table): Likewise.
1143         (XCHAR_ID_TABLE): Likewise.
1144         (XSETCHAR_ID_TABLE): Likewise.
1145         (CHAR_ID_TABLE_P): Likewise.
1146         (GC_CHAR_ID_TABLE_P): Likewise.
1147         (get_char_id_table): Likewise.
1148
1149 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1150
1151         * chartab.c (copy_uint8_byte_table): New function.
1152         (copy_uint16_byte_table): New function.
1153         (copy_byte_table): New function.
1154         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1155         characters to call.
1156         (map_over_uint16_byte_table): Likewise.
1157         (map_over_byte_table): Likewise.
1158         (get_byte_table): Move prototype to chartab.h.
1159         (put_byte_table): Likewise.
1160         (put_char_id_table_0): Moved to chartab.h.
1161         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1162         (char_table_entry_equal): Likewise.
1163         (char_table_entry_hash): Likewise.
1164         (char_table_entry_description): Likewise.
1165         (char_table_entry): Likewise.
1166         (make_char_table_entry): Likewise.
1167         (copy_char_table_entry): Likewise.
1168         (get_non_ascii_char_table_value): Likewise.
1169         (map_over_charset_ascii): Likewise.
1170         (map_over_charset_control_1): Likewise.
1171         (map_over_charset_row): Likewise.
1172         (map_over_other_charset): Likewise.
1173         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1174         (print_char_table): Likewise.
1175         (char_table_equal): Likewise.
1176         (char_table_hash): Likewise.
1177         (char_table_description): Likewise.
1178         (fill_char_table): Likewise.
1179         (Fcopy_char_table): Likewise.
1180         (get_char_table): Likewise.
1181         (Fget_range_char_table): Likewise.
1182         (put_char_table): Likewise.
1183         (map_char_table): Likewise.
1184         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1185         UTF-2000.
1186
1187 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1188
1189         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1190         `Vauto_fill_chars' in XEmacs UTF-2000.
1191
1192         * chartab.h (get_byte_table): New prototype [moved from
1193         chartab.c].
1194         (put_byte_table): Likewise [moved from chartab.c].
1195         (put_char_id_table_0): New inline function [moved from chartab.c].
1196         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1197         (Lisp_Char_Table_Entry): Likewise.
1198         (char_table_entry): Likewise.
1199         (XCHAR_TABLE_ENTRY): Likewise.
1200         (XSETCHAR_TABLE_ENTRY): Likewise.
1201         (CHAR_TABLE_ENTRYP): Likewise.
1202         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1203         (NUM_ASCII_CHARS): Likewise.
1204         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1205         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1206
1207 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1208
1209         * chartab.c (get_char_id_table): Change interface.
1210         (put_char_id_table_0): New function.
1211         (put_char_id_table): Change interface; new implementation.
1212         (Fget_composite_char): Modify for interface change of
1213         `get_char_id_table'.
1214         (Fchar_variants): Likewise.
1215         (add_char_attribute_alist_mapper): Likewise.
1216         (Fchar_attribute_alist): Likewise.
1217         (Fget_char_attribute): Likewise.
1218         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1219         as same as character as the first argument like `put-char-table';
1220         modify for interface change of `put_char_id_table'.
1221         (Fremove_char_attribute): Modify for interface change of
1222         `put_char_id_table'.
1223
1224 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1225
1226         * text-coding.c: Sync up with XEmacs 21.2.41.
1227         (COMPOSE_ADD_CHAR): Modify for interface change of
1228         `get_char_id_table'.
1229
1230         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1231         change of `put_char_id_table'.
1232         (remove_char_ccs): Likewise.
1233
1234         * chartab.h (put_char_id_table): Change interface.
1235
1236         * char-ucs.h (get_char_id_table): Change interface.
1237         (charset_code_point): Modify for interface change of
1238         `get_char_id_table'.
1239         (encode_char_1): Likewise.
1240
1241 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1242
1243         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1244         argument `ccs'.
1245         (map_over_uint16_byte_table): Likewise.
1246         (map_over_byte_table): Likewise.
1247         (map_char_id_table): Add new argument `range' like
1248         `map_char_table'.
1249         (Fmap_char_attribute): Add new argument `range' like
1250         `Fmap_char_table'.
1251
1252 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253
1254         * chartab.c (map_over_uint8_byte_table): Change interface of
1255         mapping function to use struct chartab_range instead of Emchar.
1256         (map_over_uint16_byte_table): Likewise.
1257         (map_over_byte_table): Likewise.
1258         (map_char_id_table): Likewise.
1259         (struct slow_map_char_id_table_arg): Deleted.
1260         (slow_map_char_id_table_fun): Deleted.
1261         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1262         function `slow_map_char_table_fun' instead of struct
1263         `slow_map_char_id_table_arg' and function
1264         `slow_map_char_id_table_fun'.
1265
1266 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267
1268         * mule-charset.c: Move char-it-table related codes to chartab.c.
1269         (Vutf_2000_version): Moved to chartab.c.
1270         (Fdefine_char): Likewise.
1271         (Ffind_char): Likewise.
1272         (syms_of_mule_charset): Move types `uint8-byte-table',
1273         `uint16-byte-table', `byte-table' and `char-id-table' to
1274         chartab.c; move functions `char_attribute_list,
1275         `find_char_attribute_table, `char_attribute_alist,
1276         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1277         `map_char_attribute, `define_char, `find_char, `char_variants and
1278         `get_composite_char to chartab.c; move symbols `=>ucs',
1279         `->decomposition', `compat', `isolated', `initial', `medial',
1280         `final', `vertical', `noBreak', `fraction', `super', `sub',
1281         `circle', `square', `wide', `narrow', `small' and `font' to
1282         chartab.c.
1283         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1284         setting codes for `Vcharacter_composition_table' and
1285         `Vcharacter_variant_table' to chartab.c.
1286         (complex_vars_of_mule_charset): Move setting code for
1287         `Vchar_attribute_hash_table' to chartab.c.
1288
1289         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1290         (make_char_id_table): New prototype.
1291         (put_char_id_table): Likewise.
1292         (Fget_char_attribute): Likewise.
1293
1294         * chartab.c: Move char-id-table related code from mule-charset.c.
1295         (Vutf_2000_version): Moved from mule-charset.c.
1296
1297         * char-ucs.h (Qucs): New external variable.
1298         (put_char_ccs_code_point): New prototype.
1299         (remove_char_ccs): Likewise.
1300
1301 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1302
1303         * mule-charset.c (Vcharset_ucs_jis): New variable.
1304         (Qucs_jis): Likewise.
1305         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1306         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1307
1308         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1309
1310 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311
1312         * mule-charset.c (map_over_uint8_byte_table): New function.
1313         (map_over_uint16_byte_table): Likewise.
1314         (map_over_byte_table): Likewise.
1315         (map_char_id_table): Likewise.
1316         (slow_map_char_id_table_fun): Likewise.
1317         (Fmap_char_attribute): Likewise.
1318         (syms_of_mule_charset): Add new function `map-char-attribute'.
1319
1320 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1321
1322         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1323         (syms_of_mule_charset): Add new function `find-char'.
1324
1325 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1326
1327         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1328         XEmacs UTF-2000.
1329         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1330         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1331         XEmacs UTF-2000.
1332         (complex_vars_of_mule_charset): Add new coded-charset
1333         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1334         `ideograph-gt-pj-*'.
1335
1336         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1337
1338 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1339
1340         * mule-charset.c (encode_builtin_char_1): Purge codes about
1341         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1342         {MIN|MAX}_CHAR_HEBREW.
1343         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1344         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1345
1346         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1347         (MAX_CHAR_GREEK): Purged.
1348         (MIN_CHAR_CYRILLIC): Purged.
1349         (MAX_CHAR_CYRILLIC): Purged.
1350         (MIN_CHAR_HEBREW): Commented out.
1351         (MAX_CHAR_HEBREW): Likewise.
1352
1353 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1354
1355         * mule-charset.c (Qto_ucs): New variable.
1356         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1357         (Fdefine_char): Likewise.
1358         (syms_of_mule_charset): Add new symbol `=>ucs'.
1359
1360 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1361
1362         * mule-charset.c (Fdecode_char): Fixed.
1363
1364 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1365
1366         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1367         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1368         "tcvn5712-1".
1369
1370 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1371
1372         * mule-charset.c (Vcharset_ucs_big5): New variable.
1373         (Qucs_big5): Likewise.
1374         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1375         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1376
1377         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1378
1379 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1380
1381         * mule-charset.c (decode_builtin_char): Check Big5 code range
1382         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1383
1384 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1385
1386         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1387         (Qchinese_gb12345): Likewise.
1388         (Fdecode_builtin_char): Fixed.
1389         (syms_of_mule_charset): Add `chinese-gb12345'.
1390         (complex_vars_of_mule_charset): Add coded-charset
1391         `chinese-gb12345'.
1392
1393         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1394         (LEADING_BYTE_CHINESE_GB12345): New macro.
1395
1396 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1399         and `latin-viscii-upper' for `latin-viscii'.
1400
1401 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1402
1403         * mule-charset.c (Fdecode_builtin_char): Comment out
1404         regularization code for ISO-IR GR representation.
1405
1406 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1407
1408         * mule-charset.c (decode_builtin_char): New function; renamed from
1409         `make_builtin_char'; return -1 instead of signal.
1410         (Fdecode_builtin_char): Use `decode_builtin_char'.
1411
1412         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1413         `make_builtin_char'.
1414         (DECODE_CHAR): Use `decode_builtin_char' instead of
1415         `make_builtin_char'; use mapping table of `chinese-big5' for
1416         `chinese-big5-{1,2}'.
1417
1418 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1419
1420         * text-coding.c (char_encode_big5): New function.
1421         (char_finish_big5): Likewise.
1422         (reset_encoding_stream): Use `char_encode_big5' and
1423         `char_finish_big5' for CODESYS_BIG5.
1424         (mule_encode): Don't use `encode_coding_big5'.
1425         (encode_coding_big5): Deleted.
1426
1427 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1428
1429         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1430         0x81- in XEmacs UTF-2000.
1431         (detect_coding_big5): Likewise.
1432
1433 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1434
1435         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1436         generate character-id if the CCS property does not have
1437         corresponding predefined character.
1438         (make_builtin_char): Return -1 if corresponding predefined
1439         character is not found.
1440         (Fdecode_char): Return nil if corresponding character is not
1441         found.
1442         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1443         don't map to builtin ucs space.
1444
1445 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1446
1447         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1448         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1449
1450 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1451
1452         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1453         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1454         (Qideograph_gt): Likewise.
1455         (Qideograph_gt_pj_{1..11}): Likewise.
1456         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1457         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1458         `ideograph-gt-pj-11'.
1459         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1460         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1461         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1462
1463         * char-ucs.h (LEADING_BYTE_GT): New macro.
1464         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1465         (MIN_CHAR_GT): Likewise.
1466         (MAX_CHAR_GT): Likewise.
1467
1468 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1469
1470         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1471         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1472
1473         * doprnt.c (unsigned_int_converters): Add `c'.
1474         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1475
1476         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1477         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1478         `MIN_CHAR_MOJIKYO'.
1479         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1480         (MAX_CHAR_MOJIKYO_0): New macro.
1481         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1482
1483 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1484
1485         * mule-charset.c (Fdefine_char): Delete cemented out code.
1486         (encode_builtin_char_1): Modify for new allocation of builtin
1487         Mojikyo characters.
1488
1489         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1490
1491 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1492
1493         * mule-charset.c (Vcharset_ucs_cns): New variable.
1494         (Qucs_cns): New variable.
1495         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1496         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1497
1498 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499
1500         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1501
1502 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1503
1504         * search.c (search_buffer): Make `charset_base_code' as
1505         character-id >> 6 to eliminate the corresponding last byte in
1506         UTF-8 representation [I'm not sure it is right thing].
1507         (boyer_moore): Likewise.
1508
1509 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1510
1511         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1512         representation in MULE.
1513
1514 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1515
1516         * text-coding.c (Fmake_coding_system): Use
1517         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1518         `EXTERNAL_PROPERTY_LIST_LOOP'.
1519
1520 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * text-coding.c (decode_output_utf8_partial_char): New function.
1523         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1524
1525 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1526
1527         * text-coding.c (decode_coding_utf8): Output original byte
1528         sequence if it is broken; change order of conditions.
1529
1530         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1531         of conditions.
1532
1533         * mb-multibyte.h (BYTE_ASCII_P):
1534         Use bit ops for char-signedness safety.
1535         (BYTE_C0_P): Use bit ops for char-signedness safety.
1536         (BYTE_C1_P): Use bit ops for char-signedness safety.
1537
1538         * character.h: (XCHAR_OR_CHAR_INT):
1539         Always use inline function.
1540         Remove redundant type checking assert() - XINT will abort quite
1541         nicely.
1542
1543 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1544
1545         * text-coding.c: (Fencode_shift_jis_char):
1546         (Fencode_big5_char):
1547         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1548         Replace 0 with '\0' when working with bytes.
1549         Replace initial "(" with "\(" in docstrings.
1550
1551         (Fmake_coding_system):
1552         When type is ccl and value is vector, register it with a proper
1553         symbol.  And checks whether the given ccl program is valid.
1554         (mule_decode): When calling ccl_driver, if src indicates
1555         NULL pointer, set an empty string instead.
1556         (mule_encode): Likewise.
1557
1558         (detect_eol_type):
1559         (detect_coding_sjis):
1560         (decode_coding_sjis):
1561         (detect_coding_big5):
1562         (decode_coding_big5):
1563         (detect_coding_ucs4):
1564         (decode_coding_ucs4):
1565         (detect_coding_utf8):
1566         (decode_coding_utf8):
1567         (detect_coding_iso2022):
1568         (decode_coding_iso2022):
1569         (decode_coding_no_conversion):
1570         (mule_decode):
1571         Make all detecting and decoding functions take an Extbyte * arg.
1572         (text_encode_generic):
1573         (encode_coding_big5):
1574         (encode_coding_no_conversion):
1575         (mule_encode):
1576         Make all encoding functions take a Bufbyte * arg.
1577         Use size_t instead of unsigned int for memory sizes.
1578         Only cast to unsigned char whenever dereferencing Extbyte *.
1579
1580         (struct lrecord_description fcd_description_1): Use countof.
1581         (complex_vars_of_file_coding):
1582         Use countof instead of sizeof.
1583         Use CHECK_NATNUM instead of CHECK_INT.
1584
1585 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1586
1587         * mule-charset.c (Fget_char_attribute): Add new optional argument
1588         `default-value'.
1589         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1590         (remove_char_ccs): Likewise.
1591
1592 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1593
1594         * text-coding.c (char_encode_shift_jis): New implementation in
1595         UTF-2000.
1596         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1597         ...)'.
1598
1599         * mule-charset.c (Vcharset_chinese_big5): New variable in
1600         UTF-2000.
1601         (Qchinese_big5): New variable in UTF-2000.
1602         (BIG5_SAME_ROW): New macro in UTF-2000.
1603         (make_builtin_char): Use builtin characters of
1604         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1605         characters of `Vcharset_chinese_big5'.
1606         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1607         (complex_vars_of_mule_charset): Add new coded-charset
1608         `chinese-big5' in UTF-2000.
1609
1610         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1611         (Vcharset_chinese_big5): New external variable declaration.
1612         (Vcharset_japanese_jisx0208_1990): Likewise.
1613
1614 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1615
1616         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1617         function.
1618         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1619
1620 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1621
1622         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1623         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1624         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1625         `mojikyo-pj-*'.
1626
1627 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628
1629         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1630
1631 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1632
1633         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1634         to 0.17.
1635
1636 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1637
1638         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1639         for `CHARSET_BY_ATTRIBUTES'.
1640         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1641         `CHARSET_BY_ATTRIBUTES'.
1642
1643         * text-coding.c (struct decoding_stream): Rename member `CH' to
1644         `CPOS'.
1645         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1646         (decode_coding_sjis): Likewise.
1647         (decode_coding_big5): Likewise.
1648         (decode_coding_ucs4): Likewise.
1649         (decode_coding_utf8): Likewise.
1650         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1651         `CHARSET_BY_ATTRIBUTES'.
1652         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1653         `str->counter'; decode 3, 4 bytes sets.
1654         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1655         sets.
1656         (decode_coding_no_conversion): Use `str->cpos' instead of
1657         `str->ch'.
1658
1659         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1660         (Qmojikyo_2022_1): New variable.
1661         (make_charset): Don't use `CHARSET_TYPE_*'.
1662         (range_charset_code_point): Support coded-charset
1663         `mojikyo-2022-1'.
1664         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1665         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1666         `CHARSET_BY_ATTRIBUTES'.
1667         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1668         `CHARSET_BY_ATTRIBUTES'.
1669         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1670         (complex_vars_of_mule_charset): Add new coded-charset
1671         `mojikyo-2022-1'.
1672
1673         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1674         interface; changed to inline function.
1675
1676         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1677         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1678         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1679         (CHARSET_TYPE_94): Deleted.
1680         (CHARSET_TYPE_94X94): Deleted.
1681         (CHARSET_TYPE_96): Deleted.
1682         (CHARSET_TYPE_96X96): Deleted.
1683         (CHARSET_TYPE_128): Deleted.
1684         (CHARSET_TYPE_128X128): Deleted.
1685         (CHARSET_TYPE_256): Deleted.
1686         (CHARSET_TYPE_256X256): Deleted.
1687         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1688         to inline function.
1689         (DECODE_MOJIKYO_2022): New inline function.
1690         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1691         `Vcharset_mojikyo_2022_1'.
1692
1693 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1694
1695         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1696         instead of `EQ'.
1697         (put_byte_table): Likewise.
1698         (char_id_table_equal): Use `get_byte_table' [new implementation].
1699
1700 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1701
1702         * mule-charset.c: Include <limits.h> in UTF-2000.
1703         (BT_UINT8_MIN): New macro in UTF-2000.
1704         (BT_UINT8_MAX): New macro in UTF-2000.
1705         (BT_UINT8_t): New macro in UTF-2000.
1706         (BT_UINT8_nil): New macro in UTF-2000.
1707         (BT_UINT8_unbound): New macro in UTF-2000.
1708         (INT_UINT8_P): New inline function in UTF-2000.
1709         (UINT8_VALUE_P): New inline function in UTF-2000.
1710         (UINT8_ENCODE): New inline function in UTF-2000.
1711         (UINT8_DECODE): New inline function in UTF-2000.
1712         (mark_uint8_byte_table): New function in UTF-2000.
1713         (print_uint8_byte_table): New function in UTF-2000.
1714         (uint8_byte_table_equal): New function in UTF-2000.
1715         (uint8_byte_table_hash): New function in UTF-2000.
1716         (make_uint8_byte_table): New function in UTF-2000.
1717         (uint8_byte_table_same_value_p): New function in UTF-2000.
1718         (BT_UINT16_MIN): New macro in UTF-2000.
1719         (BT_UINT16_MAX): New macro in UTF-2000.
1720         (BT_UINT16_t): New macro in UTF-2000.
1721         (BT_UINT16_nil): New macro in UTF-2000.
1722         (BT_UINT16_unbound): New macro in UTF-2000.
1723         (INT_UINT16_P): New inline function in UTF-2000.
1724         (UINT16_VALUE_P): New inline function in UTF-2000.
1725         (UINT16_ENCODE): New inline function in UTF-2000.
1726         (UINT16_DECODE): New inline function in UTF-2000.
1727         (UINT8_TO_UINT16): New inline function in UTF-2000.
1728         (mark_uint16_byte_table): New function in UTF-2000.
1729         (print_uint16_byte_table): New function in UTF-2000.
1730         (uint16_byte_table_equal): New function in UTF-2000.
1731         (uint16_byte_table_hash): New function in UTF-2000.
1732         (make_uint16_byte_table): New function in UTF-2000.
1733         (uint16_byte_table_same_value_p): New function in UTF-2000.
1734         (print_byte_table): New function in UTF-2000.
1735         (byte-table): Use `print_byte_table' as printer.
1736         (make_byte_table): Delete second argument `older'.
1737         (byte_table_same_value_p): New function in UTF-2000.
1738         (copy_byte_table): Deleted.
1739         (get_byte_table): New function in UTF-2000.
1740         (put_byte_table): New function in UTF-2000.
1741         (print_char_id_table): New function in UTF-2000.
1742         (char-id-table): Use `print_char_id_table' as printer.
1743         (make_char_id_table): Delete second argument `older'.
1744         (get_char_id_table): Use `get_byte_table [new implementation].
1745         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1746         implementation].
1747         (Ffind_char_attribute_table): New function in UTF-2000.
1748         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1749         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1750         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1751         (syms_of_mule_charset): Add new function
1752         `find-char-attribute-table' in UTF-2000.
1753
1754         * lrecord.h (enum lrecord_type): Add
1755         `lrecord_type_uint16_byte_table' and
1756         `lrecord_type_uint8_byte_table'.
1757
1758         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1759         (Lisp_Uint8_Byte_Table): New type.
1760         (XUINT8_BYTE_TABLE): New macro.
1761         (XSETUINT8_BYTE_TABLE): New macro.
1762         (UINT8_BYTE_TABLE_P): New macro.
1763         (GC_UINT8_BYTE_TABLE_P): New macro.
1764         (struct Lisp_Uint16_Byte_Table): New structure.
1765         (Lisp_Uint16_Byte_Table): New type.
1766         (XUINT16_BYTE_TABLE): New macro.
1767         (XSETUINT16_BYTE_TABLE): New macro.
1768         (UINT16_BYTE_TABLE_P): New macro.
1769         (GC_UINT16_BYTE_TABLE_P): New macro.
1770
1771 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1772
1773         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1774         (Vcharacter_ideographic_strokes_table): Deleted.
1775         (Vcharacter_total_strokes_table): Deleted.
1776         (Vcharacter_morohashi_daikanwa_table): Deleted.
1777         (Vcharacter_decomposition_table): Deleted.
1778         (Qname): Deleted because it is duplicated.
1779         (Qideographic_radical): Deleted.
1780         (Qideographic_strokes): Deleted.
1781         (Qtotal_strokes): Deleted.
1782         (Qmorohashi_daikanwa): Deleted.
1783         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1784         `ideographic-radical', `ideographic-strokes', `total-strokes',
1785         `morohashi-daikanwa' and `->decomposition'.
1786         (Fget_char_attribute): Likewise.
1787         (Fput_char_attribute): Likewise; use `make-vector' instead of
1788         `make_older_vector' for `->decomposition' value.
1789         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1790         `ideograph-daikanwa'.
1791         (syms_of_mule_charset): Delete builtin symbols `name',
1792         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1793         `morohashi-daikanwa'.
1794         (vars_of_mule_charset): Don't setup
1795         `Vcharacter_ideographic_radical_table',
1796         `Vcharacter_ideographic_strokes_table',
1797         `Vcharacter_total_strokes_table',
1798         `Vcharacter_morohashi_daikanwa_table' and
1799         `Vcharacter_decomposition_table'.
1800
1801 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1804         `make_older_vector', `make_vector_newer_1' and
1805         `make_vector_newer'.
1806
1807         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1808         `make_older_vector' and `make_vector_newer'.
1809
1810         * config.h.in (HAVE_GGC): New macro.
1811
1812 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1813
1814         * mule-charset.c (struct char_attribute_list_closure): New
1815         structure in UTF-2000.
1816         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1817         (Fchar_attribute_list): Likewise.
1818         (Fset_charset_mapping_table): Use `make_vector_newer'.
1819         (Fdecode_builtin_char): New function in UTF-2000.
1820         (syms_of_mule_charset): Add new function `char-attribute-list' and
1821         `decode-builtin-char' in UTF-2000.
1822
1823         * lisp.h (make_vector_newer): New prototype.
1824
1825         * alloc.c (make_vector_newer_1): New function.
1826         (make_vector_newer): New function.
1827
1828 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1829
1830         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1831         50100)'.
1832
1833 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1834
1835         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1836         (Vcharacter_attribute_table): Deleted.
1837         (Vcharacter_name_table): Deleted.
1838         (put_char_attribute): Deleted.
1839         (remove_char_attribute): Deleted.
1840         (struct char_attribute_alist_closure): New structure.
1841         (add_char_attribute_alist_mapper): New function.
1842         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1843         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1844         (Fget_char_attribute): Likewise.
1845         (Fput_char_attribute): Likewise.
1846         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1847         of `remove_char_attribute'.
1848         (Fdefine_char): Return character.
1849         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1850         and `Vcharacter_name_table'.
1851         (complex_vars_of_mule_charset): Likewise
1852         `Vchar_attribute_hash_table'.
1853
1854 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1855
1856         * character.h (CHARC_CHARSET): New macro.
1857         (CHARC_CHARSET_ID): New macro.
1858         (CHARC_CODE_POINT): New macro.
1859         (CHARC_COLUMNS): New macro.
1860         (CHARC_TO_CHAR): New inline function.
1861         (CHARC_EQ): New inline function.
1862         (CHARC_ASCII_EQ): New inline function.
1863         (CHARC_IS_SPACE): New inline function.
1864         (ASCII_TO_CHARC): New inline function.
1865
1866         * char-ucs.h (encode_char_2): Deleted.
1867         (ENCODE_CHAR): Use `encode_char_1' again.
1868         (breakup_char_1): Likewise.
1869         (CHAR_TO_CHARC): New inline function.
1870
1871         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1872
1873 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1874
1875         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1876         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1877         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1878         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1879         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1880         `CHARC_IS_SPACE'.
1881         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1882
1883         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1884         `CHARC_CODE_POINT'.
1885         (x_output_display_block): Use `CHARC_CHARSET' and
1886         `CHARC_ASCII_EQ'.
1887
1888         * redisplay-tty.c (tty_output_display_block): Use
1889         `CHARC_ASCII_EQ'.
1890         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1891
1892         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1893
1894         * insdel.c (find_charsets_in_charc_string): Use
1895         `CHARC_CHARSET_ID'.
1896         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1897         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1898         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1899         (convert_charc_string_into_malloced_string): Likewise.
1900
1901 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1902
1903         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1904         instead of <Emchar_dynarr *> for buf; use
1905         `convert_bufbyte_string_into_charc_dynarr' instead of
1906         `convert_bufbyte_string_into_emchar_dynarr'; use
1907         `find_charsets_in_charc_string' instead of
1908         `find_charsets_in_emchar_string'.
1909
1910         * redisplay.h:
1911         - Include "character.h".
1912         (struct rune): New member `cglyph'; delete member `chr'.
1913
1914         * redisplay.c (redisplay_text_width_charc_string): New function;
1915         delete `redisplay_text_width_emchar_string'.
1916         (rtw_charc_dynarr): New variable; renamed from
1917         `rtw_emchar_dynarr'.
1918         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1919         `rtw_emchar_dynarr'; use
1920         `convert_bufbyte_string_into_charc_dynarr' instead of
1921         `convert_bufbyte_string_into_emchar_dynarr'; use
1922         `redisplay_text_width_charc_string' instead of
1923         `redisplay_text_width_emchar_string'.
1924         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1925         instead of `rtw_emchar_dynarr'; use
1926         `convert_bufbyte_string_into_charc_dynarr' instead of
1927         `convert_bufbyte_string_into_emchar_dynarr'.
1928         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1929         `redisplay_text_width_charc_string' instead of
1930         `redisplay_text_width_emchar_string'.
1931         (create_text_block): Modify for <struct rune> change.
1932         (generate_formatted_string_db): Likewise.
1933         (create_string_text_block): Likewise.
1934         (pixel_to_glyph_translation): Likewise.
1935
1936         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1937         instead of <const Emchar *>.
1938         (x_text_width): Likewise.
1939         (x_output_display_block): Use <Charc_dynarr *> instead
1940         <Emchar_dynarr *>; modify for <structure rune> change.
1941         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1942         *>.
1943
1944         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1945         <const Emchar *>; use `charc_string_displayed_columns' instead of
1946         `emchar_string_displayed_columns'.
1947         (tty_output_display_block): Use <Charc_dynarr *> instead of
1948         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1949         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1950         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1951         `tty_output_emchar_dynarr_dynarr'.
1952         (tty_output_charc_dynarr): New function; delete
1953         `tty_output_charc_dynarr'.
1954
1955         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1956         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1957         <Emchar_dynarr *> for buf; use
1958         `convert_bufbyte_string_into_charc_dynarr' instead of
1959         `convert_bufbyte_string_into_emchar_dynarr'.
1960
1961         * frame.c (title_string_charc_dynarr): New variable; renamed from
1962         `title_string_emchar_dynarr'.
1963         (generate_title_string): Use `title_string_charc_dynarr' instead
1964         of `title_string_emchar_dynarr'; use
1965         `convert_charc_string_into_malloced_string' instead of
1966         `convert_emchar_string_into_malloced_string'.
1967         (init_frame): Use `title_string_charc_dynarr' instead of
1968         `title_string_emchar_dynarr'.
1969
1970         * console.h:
1971         - Include "character.h".
1972         (struct console_methods): Use <const Charc *> instead of <const
1973         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1974         <Emchar_dynarr *> in output_string_method.
1975
1976         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1977         <Emchar_dynarr *>.
1978
1979         * console-stream.c (stream_text_width): Use <const Charc *>
1980         instead of <const Emchar *>.
1981
1982         * character.h (Charc_dynarr): New type.
1983
1984         * char-ucs.h (structure Charc): New structure; define new type
1985         `Charc'.
1986
1987         * char-lb.h (DECODE_CHAR): New inline function.
1988         (encode_char_1): New inline function.
1989         (ENCODE_CHAR): New macro.
1990         (structure Charc): New structure; define new type `Charc'.
1991
1992         * char-1byte.h (Vcharset_control_1): New macro.
1993         (Vcharset_latin_iso8859_1): New macro.
1994         (DECODE_CHAR): New inline function.
1995         (encode_char_1): New inline function.
1996         (ENCODE_CHAR): New macro.
1997         (structure Charc): New structure; define new type `Charc'.
1998
1999         * insdel.c (find_charsets_in_charc_string): New function; delete
2000         `find_charsets_in_emchar_string'.
2001         (charc_string_displayed_columns): New function; delete
2002         `emchar_string_displayed_columns'.
2003         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2004         `convert_bufbyte_string_into_emchar_dynarr'.
2005         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2006         `convert_charc_string_into_bufbyte_dynarr'.
2007         (convert_charc_string_into_malloced_string): New function; delete
2008         `convert_charc_string_into_malloced_string'.
2009
2010         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2011         `find_charsets_in_emchar_string'.
2012         (charc_string_displayed_columns): New prototype; delete
2013         `emchar_string_displayed_columns'.
2014         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2015         `convert_charc_string_into_bufbyte_dynarr'.
2016         (convert_charc_string_into_malloced_string): New prototype; delete
2017         `convert_charc_string_into_malloced_string'.
2018
2019 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2020
2021         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2022
2023 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2024
2025         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2026
2027         * char-ucs.h: Use <short> for <Charset_ID>.
2028
2029         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2030         <Charset_ID>.
2031
2032 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2033
2034         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2035         to 0.16.
2036
2037 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2038
2039         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2040         variable.
2041         (Qmorohashi_daikanwa): New variable.
2042         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2043         for `morohashi-daikanwa' attribute.
2044         (Fget_char_attribute): Likewise.
2045         (Fput_char_attribute): Likewise.
2046         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2047         has the same value of `ideograph-daikanwa'.
2048         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2049         (vars_of_mule_charset): Setup
2050         `Vcharacter_morohashi_daikanwa_table'.
2051
2052 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2053
2054         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2055         attributes.
2056         (add_charset_to_list_mapper): Add `key' instead of
2057         `XCHARSET_NAME (value)' to return aliases.
2058
2059 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2060
2061         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2062         variable.
2063         (Vcharacter_ideographic_strokes_table): New variable.
2064         (Qideographic_radical): New variable.
2065         (Qideographic_strokes): New variable.
2066         (Fchar_attribute_alist): Use
2067         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2068         attribute; use `Vcharacter_ideographic_strokes_table' for
2069         `ideographic-strokes' attribute.
2070         (Fget_char_attribute): Likewise.
2071         (Fput_char_attribute): Likewise.
2072         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2073         `ideographic-strokes'.
2074         (vars_of_mule_charset): Setup
2075         `Vcharacter_ideographic_radical_table' and
2076         `Vcharacter_ideographic_strokes_table'.
2077
2078 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2079
2080         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2081         (Qtotal_strokes): New variable.
2082         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2083         `total-strokes' attribute.
2084         (Fget_char_attribute): Likewise.
2085         (Fput_char_attribute): Likewise.
2086         (syms_of_mule_charset): Add new symbol `total-strokes'.
2087         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2088
2089 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2090
2091         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2092         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2093         are found.
2094         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2095         `->decomposition' attribute.
2096         (Fput_char_attribute): Likewise.
2097         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2098
2099 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2100
2101         * mule-charset.c (decoding_table_check_elements): New function.
2102         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2103
2104 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2105
2106         * mule-charset.c (Fset_charset_mapping_table): Use
2107         `put_char_ccs_code_point'.
2108
2109 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * mule-charset.c (decoding_table_put_char): New inline function.
2112         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2113
2114 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2115
2116         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2117         (XCHARSET_BYTE_SIZE): New macro.
2118         (decoding_table_remove_char): New inline function.
2119         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2120         `decoding_table_remove_char'.
2121         (remove_char_ccs): Use `decoding_table_remove_char'.
2122         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2123
2124 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2125
2126         * mule-charset.c (Vcharacter_name_table): New variable.
2127         (Qname): New variable.
2128         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2129         attribute.
2130         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2131         `Vcharacter_name_table' for `name' attribute.
2132         (Fremove_char_attribute): Use function `remove_char_ccs'.
2133         (put_char_ccs_code_point): New function.
2134         (remove_char_ccs): New function.
2135         (syms_of_mule_charset): Add new symbol `name'.
2136         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2137
2138 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2139
2140         * mule-charset.c (make_byte_table): Add new argument `older'.
2141         (make_char_id_table): Likewise.
2142         (copy_char_id_table): Comment out because it is not used.
2143         (put_char_id_table): Modify for `make_byte_table'.
2144         (Fput_char_attribute): Make encoding_table as older object;
2145         inherit older bit of `Vcharacter_composition_table'.
2146         (mark_charset): Don't mark `cs->encoding_table'.
2147         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2148         normal object; make `Vcharacter_composition_table' as an older
2149         object; delete staticpro for `Vcharacter_composition_table'; make
2150         `Vcharacter_variant_table' as a normal object.
2151
2152         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2153         (mark_object): Don't check older object in UTF-2000.
2154
2155         * lrecord.h (struct lrecord_header): Add new member `older' in
2156         UTF-2000.
2157         (set_lheader_implementation): Setup `SLI_header->older' in
2158         UTF-2000.
2159         (set_lheader_older_implementation): New macro in UTF-2000.
2160         (OLDER_RECORD_P): New macro in UTF-2000.
2161         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2162         (alloc_older_lcrecord): New prototype in UTF-2000.
2163         (alloc_older_lcrecord_type): New macro in UTF-2000.
2164
2165 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2166
2167         * mule-charset.c (byte_table_description): Use
2168         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2169         (char_id_table_description): Delete bogus `, 1'.
2170         (Fget_char_attribute): Refer encoding_table of each coded-charset
2171         to get value of coded-charset attribute of a character.
2172         (Fput_char_attribute): Use `make_older_vector' instead of
2173         `make_vector'; use encoding_table of each coded-charset to store
2174         value of coded-charset attribute of a character.
2175         (Fremove_char_attribute): Use encoding_table of each coded-charset
2176         to store value of coded-charset attribute of a character.
2177         (mark_charset): Mark `cs->encoding_table'; don't mark
2178         `cs->decoding_table'.
2179         (charset_description): Add description of new member
2180         `encoding_table'.
2181         (make_charset): Initialize `encoding_table'.
2182
2183         * char-ucs.h (struct Lisp_Charset): Add new member
2184         `encoding_table'.
2185         (CHARSET_ENCODING_TABLE): New macro.
2186         (XCHARSET_ENCODING_TABLE): New macro.
2187         (charset_code_point): New implementation.
2188         (encode_char_1): Likewise.
2189
2190         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2191         (disksave_object_finalization_1): Call finalizers of
2192         `all_older_lcrecords' in UTF-2000.
2193         (make_older_vector): New function in UTF-2000.
2194         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2195         UTF-2000.
2196
2197         * lisp.h (make_older_vector): New prototype in UTF-2000.
2198
2199 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2200
2201         * lrecord.h (enum lrecord_type): Rename
2202         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2203
2204         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2205         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2206         `get_char_code_table'.
2207
2208         * mule-charset.c (mark_char_id_table): Renamed from
2209         `mark_char_code_table'.
2210         (char_id_table_equal): Renamed from `char_code_table_equal'.
2211         (char_id_table_hash): Renamed from `char_code_table_hash'.
2212         (make_char_id_table): Renamed from `make_char_code_table'.
2213         (copy_char_id_table): Renamed from `copy_char_code_table'.
2214         (get_char_id_table): Renamed from `get_char_code_table'.
2215         (put_char_id_table): Renamed from `put_char_code_table'.
2216         (to_char_id): Renamed from `to_char_code'.
2217
2218         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2219         `Lisp_Char_Code_Table'.
2220         (char_id_table): Renamed from `char_code_table'.
2221         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2222         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2223         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2224         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2225         (get_char_id_table): Renamed from `get_char_code_table'.
2226
2227 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2228
2229         * lrecord.h (enum lrecord_type): Rename
2230         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2231
2232         * mule-charset.c (mark_byte_table): Renamed from
2233         `mark_char_byte_table'.
2234         (byte_table_equal): Renamed from `char_byte_table_equal'.
2235         (byte_table_hash): Renamed from `byte_table_hash'.
2236         (make_byte_table): Renamed from `make_byte_table'.
2237         (copy_byte_table): Renamed from `copy_char_byte_table'.
2238
2239         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2240         `Lisp_Char_Byte_Table'.
2241         (byte_table): Renamed from `char_byte_table'.
2242         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2243         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2244         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2245         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2246
2247 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2250         (dfc_convert_to_internal_format): Likewise.
2251         
2252         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2253         * text-coding.c (Fcoding_system_alias_p): New function.
2254         * text-coding.c (Fcoding_system_aliasee): New function.
2255         * text-coding.c (append_suffix_to_symbol): New function.
2256         * text-coding.c (dangling_coding_system_alias_p): New function.
2257         * text-coding.c (Ffind_coding_system):
2258         * text-coding.c (Fcopy_coding_system):
2259         * text-coding.c (encode_coding_no_conversion):
2260         * text-coding.c (syms_of_file_coding):
2261         * text-coding.c (vars_of_file_coding):
2262         Rewrite coding system alias code.
2263         Allow nested aliases, like symbolic links.
2264         Allow redefinition of coding system aliases.
2265         Prevent existence of dangling coding system aliases.
2266         Eliminate convert_to_external_format.
2267         Eliminate convert_to_internal_format.
2268         
2269         * text-coding.c: Change enum eol_type to eol_type_t.
2270
2271 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2272
2273         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2274         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2275
2276         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2277         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2278
2279 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2280
2281         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2282         `ideograph-daikanwa'.
2283
2284         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2285         (Vcharset_ucs_bmp): Likewise.
2286         (Vcharset_mojikyo): Add new extern variable definition.
2287         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2288         (Vcharset_latin_iso8859_3): Likewise.
2289         (Vcharset_latin_iso8859_4): Likewise.
2290         (Vcharset_latin_iso8859_9): Likewise.
2291         (Vcharset_latin_viscii_lower): Likewise.
2292         (Vcharset_latin_viscii_upper): Likewise.
2293         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2294         `mojikyo' code-point is used to decode.
2295         (encode_char_2): New function [to convert `mojikyo' code-point to
2296         Mojikyo font encoding].
2297         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2298         (breakup_char_1): Likewise.
2299         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2300
2301 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2302
2303         * text-coding.c (Fmake_coding_system): Add document about
2304         `disable-composition' property.
2305
2306 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2307
2308         * text-coding.c (Qdisable_composition): New variable; delete
2309         `Qcomposite'.
2310         (Fmake_coding_system): Add new property `disable-composite';
2311         delete property `composite'.
2312         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2313         instead of `!CODING_SYSTEM_COMPOSITE'.
2314         (syms_of_file_coding): Add new symbol `disable-composition';
2315         delete symbol `composite'.
2316
2317         * file-coding.h (struct Lisp_Coding_System): Add
2318         `disable_composition'; delete `enable_composition'.
2319         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2320         `CODING_SYSTEM_COMPOSITE'.
2321         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2322         `XCODING_SYSTEM_COMPOSITE'.
2323
2324 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325
2326         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2327         to 0.15.
2328
2329 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2330
2331         * text-coding.c (Qcomposite): New variable.
2332         (Fmake_coding_system): Add new property `composite'.
2333         (struct decoding_stream): Add `combined_char_count',
2334         `combined_chars' and `combining_table' in UTF-2000.
2335         (COMPOSE_FLUSH_CHARS): New macro.
2336         (COMPOSE_ADD_CHAR): New macro.
2337         (reset_decoding_stream): Reset `str->combined_char_count' and
2338         `str->combining_table' in UTF-2000.
2339         (decode_coding_iso2022): Modify for character-decomposition.
2340         (syms_of_file_coding): Add new symbol `composite'.
2341
2342 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2343
2344         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2345         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2346         of `Vcharacter_composition_table' if `->decomposition' property
2347         has only 1 element.
2348         (Qlatin_tcvn5712): New variable.
2349         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2350         (complex_vars_of_mule_charset): Add new coded-charset
2351         `latin-tcvn5712'.
2352
2353         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2354
2355 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2356
2357         * file-coding.h (struct Lisp_Coding_System): Add
2358         `enable_composition'.
2359         (CODING_SYSTEM_COMPOSITE): New macro.
2360         (XCODING_SYSTEM_COMPOSITE): New macro.
2361
2362 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2363
2364         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2365
2366 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2367
2368         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2369         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2370
2371 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2372
2373         * mule-charset.c (Vcharset_mojikyo): New variable.
2374         (Fdefine_char): Don't use coded-charset which does not have
2375         non-builtin character range to allocate character-id.
2376         (Qmojikyo): New variable.
2377         (syms_of_mule_charset): Add new symbol `mojikyo'.
2378         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2379
2380         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2381         (LEADING_BYTE_MOJIKYO): New macro.
2382         (MIN_CHAR_MOJIKYO): New macro.
2383         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2384         (MAX_CHAR_MOJIKYO): New macro.
2385
2386 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2387
2388         * mule-charset.c (remove_char_attribute): Fixed.
2389
2390 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2391
2392         * mule-charset.c (remove_char_attribute): New function.
2393         (Fremove_char_attribute): New function.
2394         (encode_builtin_char_1): Comment out builtin-support for
2395         greek-iso8859-7 and cyrillic-iso8859-5.
2396         (Fdecode_char): Check `code' is an integer.
2397         (syms_of_mule_charset): Add `remove-char-attribute'.
2398         (MIN_CHAR_GREEK): Deleted.
2399         (MAX_CHAR_GREEK): Likewise.
2400         (MIN_CHAR_CYRILLIC): Likewise.
2401         (MAX_CHAR_CYRILLIC): Likewise.
2402         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2403         MAX_CHAR_GREEK for `greek-iso8859-7'.
2404
2405         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2406         (MAX_CHAR_GREEK): Likewise.
2407         (MIN_CHAR_CYRILLIC): Likewise.
2408         (MAX_CHAR_CYRILLIC): Likewise.
2409
2410 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2411
2412         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2413         format is used without `ucs' property.
2414         (Fdecode_char): Fix problem with GR representation.
2415         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2416         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2417
2418 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2419
2420         * mule-charset.c (make_builtin_char): New function.
2421         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2422         (Fset_charset_mapping_table): Modify for new representation of
2423         code-point.
2424         (Fdecode_char): New function.
2425         (syms_of_mule_charset): Add new builtin function `decode-char' in
2426         UTF-2000.
2427
2428         * char-ucs.h (make_builtin_char): New prototype.
2429         (DECODE_CHAR): New inline function.
2430         (MAKE_CHAR): Use `DECODE_CHAR'.
2431
2432 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2433
2434         * text-coding.c (parse_charset_conversion_specs): Use
2435         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2436         `XCHARSET_TYPE'.
2437         (iso2022_designate): Likewise.
2438
2439         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2440         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2441
2442         * mule-charset.c (Vcharset_ucs): New variable.
2443         (print_charset): Change design; use `CHARSET_CHARS' and
2444         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2445         (make_charset): Change signature to specify `chars' and
2446         `dimension' instead of `type'.
2447         (range_charset_code_point): Modify for 256^n-set.
2448         (encode_builtin_char_1): Encode as `ucs' in default.
2449         (Fmake_charset): Modify for `make_charset'.
2450         (Fmake_reverse_direction_charset): Likewise.
2451         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2452         UTF-2000.
2453         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2454         for `make_charset'.
2455
2456         * char-ucs.h (Vcharset_ucs): New variable.
2457         (LEADING_BYTE_UCS): New macro.
2458         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2459         and `chars' to `unsigned short' from `unsigned int'.
2460         (CHARSET_TYPE): Deleted.
2461         (XCHARSET_TYPE): Deleted.
2462
2463 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2464
2465         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2466
2467         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2468         (ENCODE_CHAR): New macro.
2469
2470 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2471
2472         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2473         to 0.14 (Kawachi-Katakami).
2474
2475 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2476
2477         * text-coding.c (char_encode_shift_jis): Modify for
2478         `charset_code_point'.
2479         (char_encode_iso2022): Likewise.
2480
2481         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2482         (integer) instead of list of <Lisp_Object>s (integers) as the
2483         format of code-point of a coded-charset.
2484         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2485         (encode_builtin_char_1): New function; delete
2486         `split_builtin_char'.
2487         (charset_code_point): Return <int> instead of <Lisp_Object>.
2488         (Fsplit_char): Don't use `SPLIT_CHAR'.
2489
2490         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2491         prototype for `split_builtin_char'.
2492         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2493         (charset_code_point): Likewise.
2494         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2495         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2496
2497 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2498
2499         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2500         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2501
2502 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2503
2504         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2505
2506         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2507         (MAX_CHAR_OBS_94x94): Deleted.
2508
2509 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2510
2511         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2512
2513         * char-ucs.h (MAX_CHAR_BMP): New macro.
2514
2515 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2516
2517         * text-coding.c: Sync with r21-2-24.
2518
2519 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2520
2521         * file-coding.c: Modify for UTF-2000.
2522
2523 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2524
2525         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2526         to 0.13 (Takaida).
2527
2528 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2529
2530         * mule-charset.c (split_builtin_char): Delete builtin support for
2531         `katakana-jisx0201'.
2532         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2533         BMP area in builtin representation.
2534
2535         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2536         `Vcharset_katakana_jisx0201'.
2537
2538 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2539
2540         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2541         (Qisolated): New variable.
2542         (Qinitial): New variable.
2543         (Qmedial): New variable.
2544         (Qfinal): New variable.
2545         (Qvertical): New variable.
2546         (Qsmall): New variable.
2547         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2548         `Qvertical' and `Qsmall'.
2549         (Qmojikyo_pj_[1 .. 21]): New variable.
2550         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2551         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2552         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2553         .. 21]'.
2554
2555 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2556
2557         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2558         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2559         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2560
2561 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2562
2563         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2564         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2565         BMP.
2566         (Qjapanese_jisx0208_1990): New variable.
2567         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2568         (complex_vars_of_mule_charset): Add new coded-charset
2569         `japanese-jisx0208-1990'.
2570
2571         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2572         (MIN_CHAR_JIS_X0208_1990): New macro.
2573         (MAX_CHAR_JIS_X0208_1990): New macro.
2574
2575 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2576
2577         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2578         coded-charset is not found.
2579
2580 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2581
2582         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2583         (Fdefine_char): Use `Fmake_char'.
2584
2585 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2586
2587         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2588         (Vcharset_hiragana_jisx0208): Deleted.
2589         (Vcharset_katakana_jisx0208): Deleted.
2590         (Qideograph_daikanwa): New variable.
2591         (Qhiragana_jisx0208): Deleted.
2592         (Qkatakana_jisx0208): Deleted.
2593         (split_builtin_char): Split `ideograph-daikanwa'.
2594         (Fsplit_char): New implementation for UTF-2000.
2595         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2596         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2597         (complex_vars_of_mule_charset): Add new coded-charset
2598         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2599         `katakana-jisx0208'.
2600
2601         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2602         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2603         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2604         (MIN_CHAR_DAIKANWA): New macro.
2605         (MAX_CHAR_DAIKANWA): New macro.
2606
2607 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2608
2609         * data.c (Fstring_to_number): Don't recognize floating point if
2610         base is not 10.
2611
2612 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2613
2614         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2615
2616 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2617
2618         * mule-charset.c (Qsquare): New variable.
2619         (to_char_code): Add `Qsquare'.
2620         (syms_of_mule_charset): Add new symbol `square'.
2621
2622 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2623
2624         * mule-charset.c (Qcircle): New variable.
2625         (to_char_code): Add `Qcircle'.
2626         (syms_of_mule_charset): Add new symbol `circle'.
2627
2628 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2629
2630         * mule-charset.c (Qfont): New variable.
2631         (to_char_code): Add `Qfont'.
2632         (syms_of_mule_charset): Add new symbol `font'.
2633
2634 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2635
2636         * mule-charset.c (Qsub): New variable.
2637         (to_char_code): Add `Qsub'.
2638         (syms_of_mule_charset): Add new symbol `sub'.
2639
2640 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2641
2642         * mule-charset.c (Fput_char_attribute): Convert each element of
2643         VALUE to GL position if ATTRIBUTE is a GR-set,
2644
2645 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2646
2647         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2648         coded-charset is a GR-set.
2649
2650 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2651
2652         * mule-charset.c (Fput_char_attribute): Check each element of
2653         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2654
2655 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2656
2657         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2658         UTF-2000.
2659         (Qethiopic_ucs): New variable in UTF-2000.
2660         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2661         (complex_vars_of_mule_charset): Add new coded-charset
2662         `ethiopic-ucs' in UTF-2000.
2663
2664         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2665         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2666         9)'.
2667         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2668         10)'.
2669         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2670
2671 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2672
2673         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2674         `ascii'.
2675
2676 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2677
2678         * mule-charset.c (Vcharacter_variant_table): New variable.
2679         (Q_ucs): New variable.
2680         (Fchar_variants): New function.
2681         (Fput_char_attribute): Register `->ucs' value to
2682         `Vcharacter_variant_table'.
2683         (syms_of_mule_charset): Add new function `char-variants' and new
2684         symbol `->ucs'.
2685         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2686
2687 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2688
2689         * mule-charset.c (get_char_code_table): Allow negative character
2690         code.
2691         (put_char_code_table): Likewise.
2692         (Vcharacter_composition_table): New variable.
2693         (Q_decomposition): New variable.
2694         (Qwide): New variable.
2695         (Qnarrow): New variable.
2696         (Qcompat): New variable.
2697         (QnoBreak): New variable.
2698         (Qsuper): New variable.
2699         (Qfraction): New variable.
2700         (to_char_code): New function.
2701         (Fget_composite_char): New function.
2702         (Fput_char_attribute): Register `->decomposition' value to
2703         `Vcharacter_composition_table'.
2704         (syms_of_mule_charset): Add new function `get-composite-char', new
2705         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2706         `super' and `fraction'.
2707         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2708
2709 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2710
2711         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2712         character; copy the return value.
2713
2714 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2715
2716         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2717
2718         * mule-charset.c (range_charset_code_point): Must use make_int.
2719         (split_builtin_char): New function.
2720
2721 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2722
2723         * mule-charset.c (char_byte_table): Change name from
2724         "char-code-table" to "char-byte-table".
2725         (mark_char_code_table): New function.
2726         (char_code_table_equal): New function.
2727         (char_code_table_hash): New function.
2728         (char_code_table_description): New constant.
2729         (char_code_table): New type.
2730         (make_char_code_table): New function.
2731         (copy_char_code_table): New function.
2732         (get_char_code_table): Modify for `char_code_table' type.
2733         (put_char_code_table): Likewise.
2734         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2735         (Kashiwara).
2736
2737         * char-ucs.h (char_code_table): New type.
2738         (XCHAR_CODE_TABLE): New macro.
2739         (XSETCHAR_CODE_TABLE): New macro.
2740         (CHAR_CODE_TABLE_P): New macro.
2741         (GC_CHAR_CODE_TABLE_P): New macro.
2742         (struct Lisp_Char_Code_Table): New structure.
2743
2744 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2745
2746         * mule-charset.c (Fmake_charset): Setup byte_offset for
2747         {94|96}^n-set.
2748
2749 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2750
2751         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2752         character.
2753
2754 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2755
2756         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2757         is found.
2758
2759 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2760
2761         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2762         charset, it is regarded as a charset.
2763         (put_char_attribute): New function in UTF-2000.
2764         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2765         charset, mapping-table of the charset is modified.
2766         (Fdefine_char): New function in UTF-2000.
2767         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2768         `Fput_char_attribute'.
2769         (syms_of_mule_charset): Add new function `define-char' and new
2770         symbol `ucs' in UTF-2000.
2771         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2772
2773 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2774
2775         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2776         non-UTF-2000 configuration.
2777
2778 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2779
2780         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2781         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2782
2783         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2784         deleted.
2785         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2786         (Fset_charset_mapping_table): Likewise.
2787
2788         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2789         (CHARSET_ENCODING_TABLE): Delete.
2790         (XCHARSET_ENCODING_TABLE): Delete.
2791         (charset_code_point): New interface.
2792
2793 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2794
2795         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2796         instead of `charset_get_byte1' and `charset_get_byte2'.
2797
2798         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2799         (charset_get_byte2): Deleted.
2800
2801 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2802
2803         * char-ucs.h (SPLIT_CHAR): New inline function.
2804         (breakup_char_1): Use `SPLIT_CHAR'.
2805
2806         * mule-charset.c (range_charset_code_point): New function.
2807         (charset_code_point): New function.
2808
2809         * char-ucs.h (range_charset_code_point): New interface.
2810         (breakup_char_1): Use `range_charset_code_point'.
2811
2812 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2813
2814         * mule-charset.c (Fmake_charset): Delete unused local variable
2815         `code_offset'.
2816
2817         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2818         (breakup_char_1): Find a charset and code-point in
2819         `Vcharacter_attribute_table'.
2820
2821 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2822
2823         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2824         to 0.10 (Yao).
2825
2826 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2827
2828         * mule-charset.c (Vcharacter_attribute_table): New variable.
2829         (Fchar_attribute_alist): New function.
2830         (Fget_char_attribute): New function.
2831         (Fput_char_attribute): New function.
2832         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2833         too.
2834         (syms_of_mule_charset): Add new function `char-attribute-alist',
2835         `get-char-attribute' and `put-char-attribute'.
2836         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2837
2838 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2839
2840         * mule-charset.c (Fmake_charset): Just use
2841         `get_unallocated_leading_byte'.
2842
2843         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2844         sets; don't use final-byte based number for private sets.
2845
2846 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2847
2848         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2849         integer.
2850
2851 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2852
2853         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2854         to 0.9.
2855
2856 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2857
2858         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2859         of `CHAR_LEADING_BYTE' in UTF-2000.
2860
2861         * insdel.c (find_charsets_in_bufbyte_string): Use
2862         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2863         (find_charsets_in_emchar_string): Likewise.
2864
2865         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2866         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2867
2868         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2869         (CHAR_CHARSET_ID): New macro.
2870
2871 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2872
2873         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2874         charset-id - MIN_LEADING_BYTE.
2875         (put_char_table): Likewise.
2876
2877 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2878
2879         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2880         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2881         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2882         (CHARSET_ID_OFFSET): New macro.
2883         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2884         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2885         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2886         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2887         4).
2888         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2889         5).
2890         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2891         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2892         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2893         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2894         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2895
2896 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2897
2898         * mule-charset.c (next_allocated_leading_byte): New variable in
2899         UTF-2000.
2900         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2901         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2902         (get_unallocated_leading_byte): Simply use
2903         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2904         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2905         UTF-2000.
2906
2907         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2908         (MAX_LEADING_BYTE_PRIVATE): New macro.
2909         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2910         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2911
2912 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2913
2914         * mule-charset.c (Fmake_charset): Allocate final-byte based
2915         charset-id for 94-set, 96-set and 94x94-set.
2916
2917 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2918
2919         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2920         ambiguous `else'.
2921         (Fmake_charset): Likewise.
2922         (complex_vars_of_mule_charset): Modify the font registry of
2923         `ucs-bmp' not to match `Ethiopic-Unicode'.
2924
2925 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2926
2927         * mule-charset.c (complex_vars_of_mule_charset): Add font
2928         registory of `ucs-bmp'.
2929
2930 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2931
2932         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2933         coded-charsets in `default-coded-charset-priority-list' when
2934         breaking up a character.
2935
2936         * mule-charset.c (Vcharset_latin_viscii): New variable.
2937         (Qlatin_viscii): New variable.
2938         (make_charset): Don't use `decoding_table'.
2939         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2940         byte_offset.
2941         (Fset_charset_mapping_table): New implementation.
2942         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2943         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2944         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2945         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2946         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2947         charset `latin_viscii'.
2948
2949         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2950         (CHARSET_TYPE_94X94): Change to 1 from 2.
2951         (CHARSET_TYPE_96): Change to 2 from 1.
2952         (CHARSET_TYPE_128): New macro.
2953         (CHARSET_TYPE_128X128): Change to 5 from 4.
2954         (CHARSET_TYPE_256): New macro.
2955         (CHARSET_TYPE_256X256): Change to 7 from 5.
2956         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2957
2958 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2959
2960         * text-coding.c (char_encode_shift_jis): Refer
2961         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2962         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2963
2964         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2965         (char_byte_table_equal): New function in UTF-2000.
2966         (char_byte_table_hash): New function in UTF-2000.
2967         (char_byte_table_description): New constant in UTF-2000.
2968         (char_byte_table): New type in UTF-2000.
2969         (make_char_byte_table): New function in UTF-2000.
2970         (copy_char_byte_table): New function in UTF-2000.
2971         (make_char_code_table): New macro in UTF-2000.
2972         (get_char_code_table): New function in UTF-2000.
2973         (put_char_code_table): New function in UTF-2000.
2974         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2975         (charset_description): Add setting in UTF-2000.
2976         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2977         `CHARSET_TO_BYTE1_TABLE(cs)'.
2978         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2979         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2980         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2981         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2982         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2983         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2984         `CHARSET_TO_BYTE2_TABLE(cs)'.
2985
2986         * char-ucs.h (char_byte_table): New type.
2987         (XCHAR_BYTE_TABLE): New macro.
2988         (XSETCHAR_BYTE_TABLE): New macro.
2989         (CHAR_BYTE_TABLE_P): New macro.
2990         (GC_CHAR_BYTE_TABLE_P): New macro.
2991         (struct Lisp_Char_Byte_Table): New structure.
2992         (get_char_code_table): New interface.
2993         (Emchar_to_byte_table): Deleted.
2994         (get_byte_from_character_table): Deleted.
2995         (struct Lisp_Charset): Add `encoding_table'; delete
2996         `to_byte1_table' and `to_byte2_table'.
2997         (CHARSET_ENCODING_TABLE): New macro.
2998         (CHARSET_TO_BYTE1_TABLE): Deleted.
2999         (CHARSET_TO_BYTE2_TABLE): Deleted.
3000         (XCHARSET_ENCODING_TABLE): New macro.
3001         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3002         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3003
3004 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3005
3006         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3007         `vietnamese-viscii-*'.
3008
3009 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3010
3011         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3012         (Qvietnamese_viscii_upper): New variable.
3013         (Fdefine_charset_alias): New function.
3014         (syms_of_mule_charset): Add new function `define-charset-alias'.
3015         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3016         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3017         `latin-viscii-*'.
3018
3019 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3020
3021         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3022         (MAX_CHAR_OBS_94x94): New macro.
3023         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3024         for 94x94 sets.
3025
3026         * mule-charset.c (put_byte_from_character_table): Change unit size
3027         from 128 to 256.
3028         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3029         not defined.
3030         (Fmake_reverse_direction_charset): Modify dummy argument of
3031         `make_charset' for non-UTF-2000 environment.
3032
3033 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3034
3035         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3036
3037         * mule-charset.c (destroy_byte_from_character_table): New macro.
3038         (latin_jisx0201_to_ucs): Deleted.
3039         (latin_iso8859_2_to_ucs): Deleted.
3040         (latin_iso8859_3_to_ucs): Deleted.
3041         (latin_iso8859_4_to_ucs): Deleted.
3042         (latin_iso8859_9_to_ucs): Deleted.
3043         (latin_viscii_lower_to_ucs): Deleted.
3044         (latin_viscii_upper_to_ucs): Deleted.
3045         (mark_charset): Mark `cs->decoding_table'.
3046         (Fcharset_mapping_table): Fix DOC-string.
3047         (Fset_charset_mapping_table): New function.
3048         (syms_of_mule_charset): Add nwe function
3049         `set-charset-mapping-table'.
3050         (complex_vars_of_mule_charset): Don't setup and use
3051         `latin_*_to_ucs'.
3052
3053 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3054
3055         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3056         charset.
3057
3058 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3059
3060         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3061         (Vcharset_katakana_jisx0208): New variable.
3062         (Qhiragana_jisx0208): New variable.
3063         (Qkatakana_jisx0208): New variable.
3064         (make_charset): Add new argument `byte_offset'.
3065         (charset_get_byte1): Modify for new coded-charset definition; use
3066         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3067         `XCHARSET_BYTE_OFFSET'.
3068         (Fmake_charset): Modify for `make_charset'.
3069         (Fmake_reverse_direction_charset): Likewise.
3070         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3071         `katakana-jisx0208'.
3072         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3073         `.'  in font registry of charset `katakana-jisx0201',
3074         `latin-jisx0201', `vietnamese-viscii-lower' and
3075         `vietnamese-viscii-upper'; modify DOC-string of charset
3076         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3077         registry of charset `japanese-jisx0208' not to use font for JIS
3078         X0208:1990; add new charset `hiragana-jisx0208' and
3079         `katakana-jisx0208'.
3080
3081         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3082         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3083         (struct Lisp_Charset): Add `byte_offset'.
3084         (CHARSET_BYTE_OFFSET): New macro.
3085         (XCHARSET_UCS_MIN): New macro.
3086         (XCHARSET_UCS_MAX): New macro.
3087         (XCHARSET_CODE_OFFSET): New macro.
3088         (XCHARSET_BYTE_OFFSET): New macro.
3089         (MIN_CHAR_HIRAGANA): New macro.
3090         (MAX_CHAR_HIRAGANA): New macro.
3091         (MIN_CHAR_KATAKANA): New macro.
3092         (MAX_CHAR_KATAKANA): New macro.
3093         (MAKE_CHAR): Modify for new coded-charset definition; use
3094         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3095         `XCHARSET_BYTE_OFFSET'.
3096
3097 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3098
3099         * mule-charset.c (CHAR96): Deleted.
3100         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3101         <Lisp_Object>.
3102         (latin_iso8859_2_to_ucs): Likewise.
3103         (latin_iso8859_3_to_ucs): Likewise.
3104         (latin_iso8859_4_to_ucs): Likewise.
3105         (latin_iso8859_9_to_ucs): Likewise.
3106         (latin_viscii_lower_to_ucs): Likewise.
3107         (latin_viscii_upper_to_ucs): Likewise.
3108         (latin_tcvn5712_to_ucs): Commented out.
3109         (make_charset): Change type of argument `decoding_table' from
3110         <Emchar*> to <Lisp_Object> [vector of characters].
3111         (Fmake_charset): Modify for `make_charset'.
3112         (Fmake_reverse_direction_charset): Likewise.
3113         (Fcharset_mapping_table): New function in UTF-2000.
3114         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3115         UTF-2000.
3116         (complex_vars_of_mule_charset): Modify for type change of
3117         `*_to_ucs'; modify for `make_charset'.
3118
3119         * char-ucs.h (struct Lisp_Charset): Change type of
3120         `decoding_table' from <Emchar*> to <Lisp_Object>.
3121         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3122
3123 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3124
3125         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3126         error with non-UTF-2000-Mule.
3127
3128 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3129
3130         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3131         in lisp again].
3132         (Vcharset_chinese_cns11643_4): Likewise.
3133         (Vcharset_chinese_cns11643_5): Likewise.
3134         (Vcharset_chinese_cns11643_6): Likewise.
3135         (Vcharset_chinese_cns11643_7): Likewise.
3136         (Qchinese_cns11643_3): Likewise.
3137         (Qchinese_cns11643_4): Likewise.
3138         (Qchinese_cns11643_5): Likewise.
3139         (Qchinese_cns11643_6): Likewise.
3140         (Qchinese_cns11643_7): Likewise.
3141         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3142         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3143         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3144         (complex_vars_of_mule_charset): Likewise.
3145
3146 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3147
3148         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3149         96-set.
3150         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3151         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3152
3153 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3154
3155         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3156         0xFF60.
3157         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3158         (breakup_char_1): Likewise.
3159
3160         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3161         one of them includes the specified character.
3162
3163 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3164
3165         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3166
3167 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3168
3169         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3170
3171 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3172
3173         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3174         definition for non-UTF-2000 Mule.
3175         (latin_iso8859_3_to_ucs): Likewise.
3176         (latin_iso8859_4_to_ucs): Likewise.
3177         (latin_iso8859_9_to_ucs): Likewise.
3178         (latin_jisx0201_to_ucs): Likewise.
3179         (MIN_CHAR_THAI): Likewise.
3180         (MAX_CHAR_THAI): Likewise.
3181         (MIN_CHAR_GREEK): Likewise.
3182         (MAX_CHAR_GREEK): Likewise.
3183         (MIN_CHAR_HEBREW): Likewise.
3184         (MAX_CHAR_HEBREW): Likewise.
3185         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3186         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3187         (MIN_CHAR_CYRILLIC): Likewise.
3188         (MAX_CHAR_CYRILLIC): Likewise.
3189
3190 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3191
3192         * char-ucs.h (breakup_char_1): Use
3193         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3194         thai-tis620 and katakana-jisx0201 area.
3195
3196 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3197
3198         * char-ucs.h (breakup_char_1): Use
3199         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3200         area.
3201
3202         * text-coding.c (reset_encoding_stream): Fixed.
3203         (char_encode_ucs4): Delete `& 255'.
3204
3205         * char-ucs.h (breakup_char_1): Use
3206         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3207
3208 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3209
3210         * file-coding.c (Fmake_coding_system): Don't set up
3211         `codesys->fixed.size'.
3212         (encode_coding_no_conversion): Don't refer
3213         `str->codesys->fixed.size'.
3214
3215 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3216
3217         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3218         (latin_a_char_to_byte1): Deleted.
3219         (latin_a_char_to_byte2): Deleted.
3220
3221 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3222
3223         * mule-charset.c (make_charset): Add new argument `ucs_min',
3224         `ucs_max' and `code_offset'.
3225         (charset_get_byte1): New implementation [delete specific charset
3226         depended implementations].
3227         (Fmake_charset): Modify for `make_charset'.
3228         (Fmake_reverse_direction_charset): Likewise.
3229         (complex_vars_of_mule_charset): Likewise.
3230
3231         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3232         `code_offset'.
3233         (CHARSET_UCS_MIN): New macro.
3234         (CHARSET_UCS_MAX): New macro.
3235         (CHARSET_CODE_OFFSET): New macro.
3236         (MAKE_CHAR): Delete charset depended definitions [except
3237         katakana-jisx0201].
3238
3239 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3240
3241         * char-ucs.h (breakup_char_1): Use
3242         `Vdefault_coded_charset_priority_list' for C0-Controls,
3243         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3244
3245 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3246
3247         * char-ucs.h (charset_get_byte1): New function.
3248         (XCHARSET_GET_BYTE1): Deleted.
3249         (charset_get_byte2): New function.
3250         (XCHARSET_GET_BYTE2): Deleted.
3251         (Vdefault_coded_charset_priority_list): New external variable.
3252         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3253         `Vdefault_preferred_coded_charset_list'.
3254
3255         * mule-charset.c (charset_get_byte1): New function.
3256         (charset_get_byte2): New function.
3257         (Vdefault_coded_charset_priority_list): New variable.
3258         (vars_of_mule_charset): Add new variable
3259         `default-coded-charset-priority-list'.
3260
3261 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3262
3263         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3264         (XCHARSET_GET_BYTE2): New inline function.
3265         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3266         `XCHARSET_GET_BYTE2'.
3267
3268 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3269
3270         * mule-charset.c (make_charset): Initialize
3271         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3272         NULL if table is not defined.
3273
3274 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3275
3276         * text-coding.c (char_encode_shift_jis): Use
3277         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3278         `ucs_to_latin_jisx0201'.
3279
3280         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3281         (ucs_to_latin_iso8859_2): Deleted.
3282         (ucs_to_latin_iso8859_3): Deleted.
3283         (ucs_to_latin_iso8859_4): Deleted.
3284         (ucs_to_latin_iso8859_9): Deleted.
3285         (ucs_to_latin_viscii_lower): Deleted.
3286         (ucs_to_latin_viscii_upper): Deleted.
3287         (ucs_to_latin_tcvn5712): Deleted.
3288         (make_charset): Add new argument `decoding_table'; set up
3289         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3290         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3291         `decoding_table' is defined in UTF-2000.
3292         (Fmake_charset): Modify for `make_charset'.
3293         (Fmake_reverse_direction_charset): Likewise.
3294         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3295         and `GENERATE_96_SET'.
3296
3297         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3298         (ucs_to_latin_jisx0201): Deleted.
3299         (latin_iso8859_2_to_ucs): Deleted.
3300         (ucs_to_latin_iso8859_2): Deleted.
3301         (latin_iso8859_3_to_ucs): Deleted.
3302         (ucs_to_latin_iso8859_3): Deleted.
3303         (latin_iso8859_4_to_ucs): Deleted.
3304         (ucs_to_latin_iso8859_4): Deleted.
3305         (latin_iso8859_9_to_ucs): Deleted.
3306         (ucs_to_latin_iso8859_9): Deleted.
3307         (latin_viscii_lower_to_ucs): Deleted.
3308         (ucs_to_latin_viscii_lower): Deleted.
3309         (latin_viscii_upper_to_ucs): Deleted.
3310         (ucs_to_latin_viscii_upper): Deleted.
3311         (struct Lisp_Charset): Renamed `encoding_table' to
3312         `to_byte1_table'; add `to_byte2_table'.
3313         (CHARSET_DECODING_TABLE): New macro.
3314         (CHARSET_TO_BYTE1_TABLE): New macro.
3315         (CHARSET_TO_BYTE2_TABLE): New macro.
3316         (XCHARSET_DECODING_TABLE): New macro.
3317         (XCHARSET_TO_BYTE1_TABLE): New macro.
3318         (XCHARSET_TO_BYTE2_TABLE): New macro.
3319         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3320         tables.
3321         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3322         don't use `ucs_to_*' tables.
3323
3324 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3325
3326         * text-coding.c (Fmake_coding_system): Don't set up
3327         `codesys->fixed.size'.
3328         (encode_coding_no_conversion): Use `if' instead of `switch'.
3329
3330         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3331
3332 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3333
3334         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3335         (Fmake_charset): Modify for `make_charset'.
3336         (Fmake_reverse_direction_charset): Likewise.
3337         (complex_vars_of_mule_charset): Likewise.
3338
3339 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3340
3341         * text-coding.c (char_encode_shift_jis): Use table
3342         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3343
3344 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3345
3346         * text-coding.c (text_encode_generic): Use `if' instead of
3347         `switch'.
3348         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3349         decode JIS-Latin.
3350
3351 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3352
3353         * text-coding.c (encode_coding_sjis): Deleted.
3354         (char_encode_shift_jis): New function.
3355         (char_finish_shift_jis): New function.
3356         (reset_encoding_stream): Set up `encode_char' and `finish' for
3357         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3358         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3359         (char_encode_utf8): Treat `eol_type'.
3360
3361 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3362
3363         * file-coding.c (decode_coding_iso2022): Use
3364         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3365
3366 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3367
3368         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3369         to 0.7 (Hirano).
3370
3371 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3372
3373         * char-lb.h (CHAR_COLUMNS): New macro.
3374
3375 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3376
3377         * text-coding.c (char_encode_ucs4): New function.
3378         (char_finish_ucs4): New function.
3379         (encode_coding_ucs4): Deleted.
3380         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3381         (text_encode_generic): Delete local variable `charset' and `half'.
3382         (ucs_to_mule_table): Deleted.
3383         (mule_to_ucs_table): Deleted.
3384         (Fset_ucs_char): Deleted.
3385         (ucs_to_char): Deleted.
3386         (Fucs_char): Deleted.
3387         (Fset_char_ucs): Deleted.
3388         (Fchar_ucs): Deleted.
3389         (decode_ucs4): Deleted.
3390         (mule_char_to_ucs4): Deleted.
3391         (encode_ucs4): Deleted.
3392         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3393         (decode_coding_utf8): Likewise.
3394         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3395         (char_encode_iso2022): Fixed.
3396         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3397         `Fset_char_ucs' and `Fchar_ucs'.
3398         (complex_vars_of_file_coding): Don't initialize
3399         `ucs_to_mule_table'.
3400
3401         * objects-tty.c (tty_initialize_font_instance): Don't use
3402         `XCHARSET_COLUMNS'.
3403
3404         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3405         UTF-2000.
3406
3407         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3408         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3409
3410         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3411         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3412         (emchar_string_displayed_columns): Likewise.
3413
3414         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3415         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3416         (string_column_at_point): Likewise.
3417         (Fmove_to_column): Likewise.
3418
3419         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3420         `encoding_table' and `decoding_table'.
3421         (CHARSET_REP_BYTES): Deleted.
3422         (XCHARSET_REP_BYTES): Deleted.
3423         (XCHARSET_COLUMNS): Deleted.
3424         (CHAR_COLUMNS): New macro.
3425         (lookup_composite_char): Deleted unconditionally.
3426         (composite_char_string): Likewise.
3427
3428 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3429
3430         * char-ucs.h (Emchar_to_byte_table): New type.
3431         (get_byte_from_character_table): New function interface.
3432         (Vcharset_latin_jisx0201): New variable.
3433         (latin_jisx0201_to_ucs): New variable.
3434         (ucs_to_latin_jisx0201): New variable.
3435         (Vcharset_latin_iso8859_2): New variable.
3436         (latin_iso8859_2_to_ucs): New variable.
3437         (ucs_to_latin_iso8859_2): New variable.
3438         (Vcharset_latin_iso8859_3): New variable.
3439         (latin_iso8859_3_to_ucs): New variable.
3440         (ucs_to_latin_iso8859_3): New variable.
3441         (Vcharset_latin_iso8859_4): New variable.
3442         (latin_iso8859_4_to_ucs): New variable.
3443         (ucs_to_latin_iso8859_4): New variable.
3444         (Vcharset_latin_iso8859_9): New variable.
3445         (latin_iso8859_9_to_ucs): New variable.
3446         (ucs_to_latin_iso8859_9): New variable.
3447         (Vcharset_latin_viscii_lower): New variable.
3448         (latin_viscii_lower_to_ucs): New variable.
3449         (ucs_to_latin_viscii_lower): New variable.
3450         (Vcharset_latin_viscii_upper): New variable.
3451         (latin_viscii_upper_to_ucs): New variable.
3452         (ucs_to_latin_viscii_upper): New variable.
3453         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3454         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3455         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3456         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3457         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3458         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3459         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3460         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3461         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3462         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3463
3464         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3465         (Vcharset_latin_viscii_upper): New variable.
3466         (make_byte_from_character_table): New function.
3467         (put_byte_from_character_table): New function.
3468         (get_byte_from_character_table): New function.
3469         (CHAR96): New macro.
3470         (ucs_to_latin_jisx0201): New variable.
3471         (latin_jisx0201_to_ucs): New variable.
3472         (ucs_to_latin_iso8859_2): New variable.
3473         (latin_iso8859_2_to_ucs): New variable.
3474         (ucs_to_latin_iso8859_3): New variable.
3475         (latin_iso8859_3_to_ucs): New variable.
3476         (ucs_to_latin_iso8859_4): New variable.
3477         (latin_iso8859_4_to_ucs): New variable.
3478         (ucs_to_latin_iso8859_9): New variable.
3479         (latin_iso8859_9_to_ucs): New variable.
3480         (ucs_to_latin_viscii_lower): New variable.
3481         (latin_viscii_lower_to_ucs): New variable.
3482         (ucs_to_latin_viscii_upper): New variable.
3483         (latin_viscii_upper_to_ucs): New variable.
3484         (ucs_to_latin_tcvn5712): New variable.
3485         (latin_tcvn5712_to_ucs): New variable.
3486         (Qlatin_viscii_lower): New variable.
3487         (Qlatin_viscii_upper): New variable.
3488         (syms_of_mule_charset): Set up new symbol
3489         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3490         (complex_vars_of_mule_charset): Set up new charset
3491         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3492         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3493         `ucs_to_<CHARSET>' tables.
3494
3495 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3496
3497         * text-coding.c: New file.
3498
3499 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3500
3501         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3502
3503         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3504         (MAKE_CHAR): Modify for `ucs-bmp'.
3505         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3506         non-MULE characters of BMP.
3507
3508 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3509
3510         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3511         to 0.6.
3512
3513 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3514
3515         * lstream.h:
3516         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3517         - Include character.h for `CHAR_ASCII_P'.
3518
3519         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3520
3521         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3522         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3523
3524         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3525         (BYTE_C0_P): Likewise.
3526         (BYTE_C1_P): Likewise.
3527         (Lstream_get_emchar_1): Likewise.
3528         (Lstream_fput_emchar): Likewise.
3529         (Lstream_funget_emchar): Likewise.
3530         (copy_internal_to_external): Likewise.
3531         (copy_external_to_internal): Likewise.
3532
3533         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3534         (BYTE_C0_P): Likewise.
3535         (BYTE_C1_P): Likewise.
3536         (Lstream_get_emchar_1): Likewise.
3537         (Lstream_fput_emchar): Likewise.
3538         (Lstream_funget_emchar): Likewise.
3539         (copy_internal_to_external): Likewise.
3540         (copy_external_to_internal): Likewise.
3541
3542         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3543         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3544
3545         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3546         (BYTE_ASCII_P): Moved to mb-1byte.h.
3547
3548 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3549
3550         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3551
3552         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3553         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3554         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3555         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3556         (VALIDATE_CHARPTR_FORWARD): Likewise.
3557         (simple_charptr_emchar): Moved to mb-multibyte.h.
3558         (simple_set_charptr_emchar): Likewise.
3559         (simple_charptr_copy_char): Likewise.
3560         (non_ascii_charptr_emchar): Likewise.
3561         (non_ascii_set_charptr_emchar): Likewise.
3562         (non_ascii_charptr_copy_char): Likewise.
3563         (charptr_emchar): Moved to mb-*byte.h.
3564         (set_charptr_emchar): Likewise.
3565         (charptr_copy_char): Likewise.
3566
3567         * mb-1byte.h, mb-multibyte.h: New files.
3568
3569 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3570
3571         * mb-utf-8.h (MULTIBYTE): New macro.
3572         (MAX_EMCHAR_LEN): Moved from buffer.h.
3573         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3574
3575         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3576
3577         * mb-lb.h, multibyte.h: New files.
3578
3579         * char-1byte.h (Charset_ID): Moved from buffer.h.
3580         (MIN_LEADING_BYTE): Likewise.
3581         (LEADING_BYTE_ASCII): Likewise.
3582         (NUM_LEADING_BYTES): Likewise.
3583         (CHARSETP): Likewise.
3584         (CHARSET_BY_LEADING_BYTE): Likewise.
3585         (XCHARSET_LEADING_BYTE): Likewise.
3586         (XCHARSET_GRAPHIC): Likewise.
3587         (XCHARSET_COLUMNS): Likewise.
3588         (XCHARSET_DIMENSION): Likewise.
3589         (CHAR_CHARSET): Likewise.
3590         (CHAR_LEADING_BYTE): Likewise.
3591         (BREAKUP_CHAR): Likewise.
3592         (Vcharset_ascii): Likewise.
3593
3594         * buffer.h: Include multibyte.h unconditionally.
3595         (VALID_CHARPTR_P): Moved to multibyte.h.
3596         (ASSERT_VALID_CHARPTR): Likewise.
3597         (REAL_INC_CHARPTR): Likewise.
3598         (REAL_INC_CHARBYTIND): Likewise.
3599         (REAL_DEC_CHARPTR): Likewise.
3600         (INC_CHARPTR): Likewise.
3601         (INC_CHARBYTIND): Likewise.
3602         (DEC_CHARPTR): Likewise.
3603         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3604         (VALIDATE_CHARPTR_FORWARD): Likewise.
3605         (charptr_n_addr): Likewise.
3606         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3607         (simple_charptr_emchar): Moved to multibyte.h.
3608         (simple_set_charptr_emchar): Likewise.
3609         (simple_charptr_copy_char): Likewise.
3610         (non_ascii_charptr_emchar): Likewise.
3611         (non_ascii_set_charptr_emchar): Likewise.
3612         (non_ascii_charptr_copy_char): Likewise.
3613         (charptr_emchar): Likewise.
3614         (set_charptr_emchar): Likewise.
3615         (charptr_copy_char): Likewise.
3616         (charptr_emchar_n): Likewise.
3617         (Charset_ID): Moved to char-1byte.h.
3618         (Vcharset_ascii): Likewise.
3619         (CHAR_CHARSET): Likewise.
3620         (CHAR_LEADING_BYTE): Likewise.
3621         (LEADING_BYTE_ASCII): Likewise.
3622         (NUM_LEADING_BYTES): Likewise.
3623         (MIN_LEADING_BYTE): Likewise.
3624         (CHARSETP): Likewise.
3625         (CHARSET_BY_LEADING_BYTE): Likewise.
3626         (XCHARSET_LEADING_BYTE): Likewise.
3627         (XCHARSET_GRAPHIC): Likewise.
3628         (XCHARSET_COLUMNS): Likewise.
3629         (XCHARSET_DIMENSION): Likewise.
3630         (BREAKUP_CHAR): Likewise.
3631
3632 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3633
3634         * character.h: Add document about interface for characters.
3635
3636         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3637         (MAKE_CHAR): Delete comment about
3638         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3639         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3640         (BREAKUP_CHAR): Modify name of arguments.
3641         (CHAR_CHARSET): Modify name of argument.
3642
3643         * buffer.h: Delete document about Emchar accessors.
3644
3645 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3646
3647         * character.h (CHAR_INTP): Moved from buffer.h
3648         (CHAR_OR_CHAR_INTP): Likewise.
3649         (XCHAR_OR_CHAR_INT): Likewise.
3650         (CHECK_CHAR_COERCE_INT): Likewise.
3651
3652         * buffer.h (CHAR_INTP): Moved to character.h
3653         (CHAR_OR_CHAR_INTP): Likewise.
3654         (XCHAR_OR_CHAR_INT): Likewise.
3655         (CHECK_CHAR_COERCE_INT): Likewise.
3656
3657 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3658
3659         * character.h:
3660         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3661         - Include char-1byte.h, char-lb.h or char-ucs.h.
3662
3663         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3664
3665         * buffer.h: Include character unconditionally.
3666         (valid_char_p): Moved to char-*.h.
3667         (non_ascii_valid_char_p): Moved to char-lb.h.
3668
3669         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3670
3671 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3672
3673         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3674         in UTF-2000 because it is not ported yet and not to use
3675         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3676         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3677         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3678
3679         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3680         (CHAR_ASCII_P): Moved from character.h.
3681
3682         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3683         (CHAR_ASCII_P): Likewise.
3684         (CHAR_FIELD1_MASK): Deleted.
3685         (CHAR_FIELD2_MASK): Deleted.
3686         (CHAR_FIELD3_MASK): Deleted.
3687         (MAX_CHAR_BASIC_LATIN): New macro.
3688         (CHAR_FIELD1): Deleted.
3689         (CHAR_FIELD2_INTERNAL): Deleted.
3690         (CHAR_FIELD3_INTERNAL): Deleted.
3691         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3692         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3693         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3694         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3695         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3696         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3697         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3698         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3699         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3700         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3701         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3702         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3703         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3704         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3705         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3706         (MIN_CHAR_COMPOSITION): Deleted.
3707         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3708         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3709
3710 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3711
3712         * buffer.h: Include mb-utf-8.h in UTF-2000.
3713
3714         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3715
3716         * mb-utf-8.h: New file.
3717
3718 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3719
3720         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3721         instead of `int'.
3722
3723         * mule-charset.h, buffer.h (Charset_ID): New type.
3724
3725 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3726
3727         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3728         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3729         instead of `MULE_CHAR_PRIVATE_OFFSET',
3730         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3731         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3732         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3733
3734         * character.h (Vcharset_japanese_jisx0212): New variable
3735         definition.
3736
3737 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3738
3739         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3740         (charset_by_attributes): Delete array about direction.
3741         (latin_a_char_to_charset): New variable in UTF-2000.
3742         (latin_a_char_to_byte1): New variable in UTF-2000.
3743         (latin_a_char_to_byte2): New variable in UTF-2000.
3744         (Qucs_bmp): New variable.
3745         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3746         `Bufbyte'.
3747         (next_allocated_2_byte_leading_byte): Likewise.
3748         (non_ascii_set_charptr_emchar): Likewise.
3749         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3750         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3751         `charset_by_attributes'.
3752         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3753         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3754         and `CHARSET_BY_LEADING_BYTE'.
3755         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3756         `utf-2000-version' to `vars_of_mule_charset'.
3757         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3758         define `leading-code-private-11' in UTF-2000; move setting of
3759         `utf-2000-version' from `syms_of_mule_charset'.
3760         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3761         UTF-2000.
3762
3763         * character.h (Charset_ID): New type.
3764         (LEADING_BYTE_UCS_BMP): New macro.
3765         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3766         (CHARSET_ID_OFFSET_94): New macro.
3767         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3768         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3769         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3770         final-byte.
3771         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3772         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3773         (CHARSET_ID_OFFSET_96): New macro.
3774         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3775         CHARSET_ID_OFFSET_96 and final-byte.
3776         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3777         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3778         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3779         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3780         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3781         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3782         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3783         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3784         (LEADING_BYTE_THAI_TIS620): Likewise.
3785         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3786         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3787         (CHARSET_ID_OFFSET_94x94): New macro.
3788         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3789         CHARSET_ID_OFFSET_94x94 and final-byte.
3790         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3791         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3792         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3793         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3794         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3795         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3796         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3797         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3798         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3799         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3800         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3801         (CHARSET_TYPE_128X128): New macro.
3802         (CHARSET_TYPE_256X256): New macro.
3803         (XCHARSET_PRIVATE_P): Delete unconditionally.
3804         (charset_by_attributes): Delete array about direction.
3805         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3806         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3807         (MIN_CHAR_94): New macro.
3808         (MAX_CHAR_94): New macro.
3809         (MIN_CHAR_96): New macro.
3810         (MAX_CHAR_96): New macro.
3811         (MIN_CHAR_94x94): New macro.
3812         (MAX_CHAR_94x94): New macro.
3813         (MIN_CHAR_96x96): New macro.
3814         (MAX_CHAR_96x96): New macro.
3815         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3816         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3817         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3818         - 32)'.
3819         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3820         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3821         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3822         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3823         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3824         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3825         `XCHARSET_LEADING_BYTE' to make code-point.
3826         (latin_a_char_to_charset): New variable.
3827         (latin_a_char_to_byte1): New variable.
3828         (latin_a_char_to_byte2): New variable.
3829         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3830         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3831         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3832
3833         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3834         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3835         (find_charsets_in_emchar_string): Likewise.
3836         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3837
3838         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3839         `int'.
3840         (decode_coding_iso2022): Likewise.
3841
3842         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3843         of `unsigned char'.
3844
3845         * redisplay.c (redisplay_text_width_emchar_string): Use
3846         `Charset_ID' instead of `unsigned char'.
3847         (redisplay_frame_text_width_string): Likewise.
3848
3849         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3850         `unsigned char'.
3851
3852         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3853         instead of `unsigned char'.
3854         (face_cachel_charset_font_metric_info): Likewise.
3855
3856         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3857         (get_non_ascii_char_table_value): Likewise.
3858         (get_char_table): Likewise.
3859         (put_char_table): Likewise.
3860         (map_over_other_charset): Likewise.
3861         (map_char_table): Likewise.
3862
3863         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3864         instead of `unsigned char'.
3865
3866 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3867
3868         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3869         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3870
3871         * mule-charset.c (leading_code_private_11): Don't define in
3872         UTF-2000.
3873
3874         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3875         in UTF-2000 because it is not ported yet and not to use
3876         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3877
3878 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3879
3880         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3881
3882 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3883
3884         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3885         in UTF-2000.
3886
3887         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3888         of unsigned char to store leading-byte.
3889
3890         * chartab.c (get_non_ascii_char_table_value): Don't use
3891         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3892
3893         * file-coding.c (encode_coding_big5): Delete bogus implementation
3894         in UTF2000.
3895
3896         * character.h (LEADING_BYTE_*): Delete definition for
3897         non-UTF-2000.
3898         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3899         (LEADING_BYTE_PREFIX_P): Deleted.
3900         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3901         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3902         (BUFBYTE_LEADING_BYTE_P): Deleted.
3903         (CHARSET_PRIVATE_P): Deleted unconditionally.
3904         (rep_bytes_by_first_byte): Deleted unconditionally.
3905         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3906         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3907         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3908         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3909         (CHAR_FIELD2): Deleted.
3910         (CHAR_FIELD3): Deleted.
3911         (MAKE_CHAR): Delete definition for non-UTF-2000.
3912         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3913         (breakup_char_1): New implementation.
3914         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3915         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3916
3917 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3918
3919         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3920         condition.
3921
3922 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3923
3924         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3925         (CHARSET_PRIVATE_P): Likewise.
3926         (XCHARSET_PRIVATE_P): Likewise.
3927         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3928
3929         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3930         UTF2000.
3931         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3932
3933 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3934
3935         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3936         (NUM_LEADING_BYTES): Changed from 128 to 256.
3937         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3938         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3939         UTF2000.
3940         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3941
3942         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3943         UTF2000.
3944         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3945         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3946         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3947         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3948         (Qchinese_cns11643_3): New variable in UTF2000.
3949         (Qchinese_cns11643_4): New variable in UTF2000.
3950         (Qchinese_cns11643_5): New variable in UTF2000.
3951         (Qchinese_cns11643_6): New variable in UTF2000.
3952         (Qchinese_cns11643_7): New variable in UTF2000.
3953         (syms_of_mule_charset): Define `chinese-cns11643-3',
3954         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3955         and `chinese-cns11643-7' in UTF2000.
3956         (vars_of_mule_charset): Initialize
3957         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3958         + 1 in UTF2000.
3959         (complex_vars_of_mule_charset): Setup charset
3960         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3961         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3962
3963 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3964
3965         * mule-charset.c: Move setting for `leading-code-private-11' from
3966         `syms_of_mule_charset' to `vars_of_mule_charset'.
3967
3968 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3969
3970         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3971         and `NUM_LEADING_BYTES' in assert.
3972
3973 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3974
3975         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3976         instead of 128.
3977         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3978         `NUM_LEADING_BYTES' instead of 128.
3979
3980 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3981
3982         * mule-charset.h (charset_by_leading_byte): Use
3983         `NUM_LEADING_BYTES' instead of 128.
3984         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3985
3986         * mule-charset.c (charset_by_leading_byte): Use
3987         `NUM_LEADING_BYTES' instead of 128.
3988         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3989
3990         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3991         128.
3992
3993 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3994
3995         * mule-charset.c (syms_of_mule_charset): Update to
3996         0.4 (Shin-Imamiya).
3997
3998 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3999
4000         * file-coding.c (encode_coding_sjis): New implementation for
4001         UTF2000.  (decode_coding_sjis): Ditto.
4002
4003 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4004
4005         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4006         Don't define in UTF2000.
4007
4008         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4009         defined.
4010
4011         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4012         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4013         MULE.
4014
4015 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4016
4017         * config.h.in (CHAR_IS_UCS4): New macro.
4018
4019         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4020         conventional MULE representation.
4021         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4022
4023         * mule-charset.h: Reverted to original.
4024
4025         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4026         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4027         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4028
4029         * character.h: New file.
4030
4031         * file-coding.c (Fmake_coding_system): Set 1 to
4032         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4033         defined.
4034         (encode_coding_no_conversion): New implementation for UTF2000.
4035
4036         * file-coding.h (struct Lisp_Coding_System): Add new member
4037         `fixed.size'.
4038
4039 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4040
4041         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4042         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4043         (encode_coding_iso2022): New implementation for UTF2000.
4044
4045 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4046
4047         * mule-canna.c (c2mu): New implementation for UTF2000.
4048         (m2c): Likewise.
4049
4050 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4051
4052         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4053
4054 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4055
4056         * file-coding.c (reset_encoding_stream): Set 0 to
4057         `str->iso2022.current_char_boundary' in UTF2000.
4058         (encode_utf8): Don't define in UTF2000.
4059         (encode_coding_utf8): New implementation for UTF-8 representation
4060         of UTF2000.
4061         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4062
4063 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4064
4065         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4066
4067         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4068         UTF2000.
4069         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4070
4071         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4072
4073         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4074         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4075         as UTF-8 in UTF2000.
4076         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4077         (non_ascii_valid_char_p): Don't define in UTF2000.
4078         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4079         (Lstream_get_emchar_1): Likewise.
4080         (utf-2000-version): New variable in UTF2000.
4081
4082         * lread.c (read_escape): Add new reader `u'.
4083
4084         * insdel.c (three_to_one_table): Don't define in UTF2000.
4085         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4086         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4087         UTF2000.
4088         (bytind_to_bufpos_func): Likewise.
4089         (buffer_mule_signal_inserted_region): Likewise.
4090         (vars_of_insdel): Don't initialize `three_to_one_table'.
4091         (init_buffer_text): Use `buf->text->mule_size' instead of
4092         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4093         UTF2000.
4094
4095         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4096         UTF-8 representation in UTF2000.
4097         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4098         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4099         (decode_coding_iso2022): Don't define local variable `lb' in
4100         UTF2000; don't use LEADING_BYTE in UTF2000; use
4101         `DECODE_ADD_UCS_CHAR' in UTF2000.
4102         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4103
4104         * config.h.in (UTF2000): New macro.
4105
4106         * buffer.h (struct buffer_text): Add new member `mule_size' and
4107         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4108         (valid_char_p): Return always 1 in UTF2000.
4109         (MAX_EMCHAR_LEN): 6 in UTF2000.
4110         (three_to_one_table): Don't define in UTF2000.
4111         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4112         UTF2000.
4113         (real_bytind_to_bufpos): Likewise.
4114
4115         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4116
4117 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4118
4119         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4120         representation change.
4121         (Vutf_2000_version): New variable.
4122         (leading_code_private_11): New variable.
4123         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4124         `leading-code-private-11'.
4125
4126         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4127         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4128         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4129         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4130         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4131         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4132         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4133         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4134         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4135         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4136         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4137         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4138         (MIN_CHAR_GREEK): New macro.
4139         (MAX_CHAR_GREEK): New macro.
4140         (MIN_CHAR_CYRILLIC): New macro.
4141         (MAX_CHAR_CYRILLIC): New macro.
4142         (MIN_CHAR_HEBREW): New macro.
4143         (MAX_CHAR_HEBREW): New macro.
4144         (MIN_CHAR_THAI): New macro.
4145         (MAX_CHAR_THAI): New macro.
4146         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4147         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4148         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4149         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4150         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4151         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4152         (CHAR_FIELD2): New inline function.
4153         (CHAR_FIELD3): New inline function.
4154         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4155         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4156         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4157         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4158         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4159         (MIN_CHAR_COMPOSITION): Likewise.
4160         (CHAR_LEADING_BYTE): Modified for character representation change.
4161         (MAKE_CHAR): Likewise.
4162
4163         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4164         (Vcharset_greek_iso8859_7): Likewise.
4165         (Vcharset_cyrillic_iso8859_5): Likewise.
4166         (Vcharset_hebrew_iso8859_8): Likewise.
4167         (Vcharset_thai_tis620): Likewise.
4168         (Vcharset_katakana_jisx0201): Likewise.
4169
4170 2001-02-08  Martin Buchholz <martin@xemacs.org>
4171
4172         * XEmacs 21.2.44 "Thalia" is released.
4173
4174 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4175
4176         Fixes crashes in kill-emacs on some systems.
4177         * process-unix.c (unix_kill_child_process):
4178         It's OK for kill() to fail with ESRCH.
4179
4180 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4181
4182         Contortions to make .gdbinit tricks work on most systems.
4183         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4184         * alloc.c (dbg_valmask): Make non-const.
4185         * alloc.c (dbg_typemask): Make non-const.
4186         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4187         * alloc.c (dbg_valbits): Make non-const.
4188         * alloc.c (dbg_gctypebits): Make non-const.
4189         * .gdbinit (decode_object): Make it work with AIX cc.
4190
4191 2001-02-06  Martin Buchholz  <martin@xemacs.org>
4192
4193         * elhash.c (make_general_lisp_hash_table):
4194         Use simpler and more efficient calloc to clear entries.
4195
4196 2001-02-07  Martin Buchholz  <martin@xemacs.org>
4197
4198         * window.c (window_scroll): Work around an AIX C compiler bug.
4199         Fixes 'scroll-up' does nothing problem with xlC.
4200
4201 2001-02-05  Martin Buchholz  <martin@xemacs.org>
4202
4203         * .gdbinit: Remove obsolete comment.
4204
4205 2001-01-31  Mike Alexander  <mta@arbortext.com>
4206
4207         * select.c (Fown_selection_internal): Set owned_p for device
4208         method correctly.
4209
4210 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4211
4212         Port to g++ 2.97.
4213         "not" cannot be used as a macro name as it is an operator in C++
4214         * config.h.in: Stop #defining `not'.
4215         * chartab.c (check_category_char): not ==> not_p
4216         * chartab.h: Likewise.
4217         * regex.c (re_match_2_internal): Likewise.
4218
4219 2001-02-02  Martin Buchholz  <martin@xemacs.org>
4220
4221         * lisp-disunion.h: Fix up comments.
4222
4223 2001-01-31  Martin Buchholz  <martin@xemacs.org>
4224
4225         * keymap.c (define_key_check_and_coerce_keysym):
4226         (syms_of_keymap):
4227         Support mouse-6 and mouse-7 bindings in the obvious way.
4228
4229 2001-02-01  Martin Buchholz  <martin@xemacs.org>
4230
4231         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4232
4233 2001-01-30  Martin Buchholz  <martin@xemacs.org>
4234
4235         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4236         Previous patch missed DEFVAR_INT_MAGIC.
4237         Make sure future DEFVAR_foo use correct types.
4238         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4239         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4240         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4241         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4242         * (DEFVAR_INT): Likewise.
4243         * redisplay.c (vertical_clip): Should be of type Fixnum.
4244         * redisplay.c (horizontal_clip): Likewise.
4245         * lisp.h (dump_add_opaque_int): New.
4246         (dump_add_opaque_fixnum): New.
4247
4248 2001-01-29  Andy Piper  <andy@xemacs.org>
4249
4250         * glyphs-widget.c (check_valid_int_or_function): allow symbols
4251         since they can be eval'ed
4252
4253 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4254
4255         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4256         Oops, XEmacs redefines `class'.  Use `typename' instead.
4257
4258 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4259
4260         * dumper.c: Fix C++ compile errors.
4261
4262 2001-01-29  Martin Buchholz  <martin@xemacs.org>
4263
4264         * tparam.c: Use correct prototypes.
4265
4266 2001-01-28  Martin Buchholz  <martin@xemacs.org>
4267
4268         * sysproc.h: #include util.h for NetBSD's openpty.
4269
4270 2001-01-27  Martin Buchholz  <martin@xemacs.org>
4271
4272         More 64-bit correctness.
4273         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4274         Use a typedef `fixnum' for the type used for DEFVAR_INT.
4275         Fix up comments.
4276         This finally finishes the 64-bit SGI port.
4277         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4278         * symbols.c: Fix up comments and type casts.
4279         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4280         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4281         * symeval.h (Fixnum): New type.
4282         * symeval.h (symbol_value_type): Fix up comment.
4283
4284         * commands.h:
4285         * nt.c:
4286         * emacs.c:
4287         * data.c:
4288         * redisplay.c:
4289         * abbrev.c:
4290         * dired-msw.c:
4291         * event-Xt.c:
4292         * eldap.c:
4293         * window.c:
4294         * sound.c:
4295         * event-stream.c:
4296         * eval.c:
4297         * buffer.c:
4298         * mule-canna.c: A million DEFVAR_INTs here...
4299         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4300         * extents.c:
4301         * cmdloop.c:
4302         * lisp.h:
4303         * select-x.c:
4304         * console-x.h:
4305         * event-msw.c:
4306         * mule-wnnfns.c:
4307         * hpplay.c:
4308         * ralloc.c:
4309         * alloc.c:
4310         * keymap.c:
4311         * profile.c:
4312         s/int/Fixnum/g in DEFVAR_INT declarations.
4313
4314 2001-01-26  Martin Buchholz  <martin@xemacs.org>
4315
4316         Port pdump to SGI alignment-sensitive environment.
4317         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
4318         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4319         properly aligned.
4320         Define and use aligned reading and writing macros.
4321         Use buffered stdio instead of posix i/o for faster dumping.
4322         Eliminate kludgy 256 byte space for header.
4323         Read and write from dump file using structs for alignment safety.
4324         * dumper.c (pdump_align_stream): New.
4325         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4326         * dumper.c (PDUMP_READ_ALIGNED): New.
4327         * dumper.c (PDUMP_WRITE_ALIGNED): New.
4328         * dumper.c (pdump_static_Lisp_Object): New struct.
4329         * dumper.c (pdump_static_pointer): New struct.
4330         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4331         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4332         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4333         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4334
4335         * dumper.c (pdump_backtrace):
4336         * dumper.c (pdump_get_indirect_count):
4337         * dumper.c (pdump_register_object):
4338         * dumper.c (pdump_register_struct):
4339         * dumper.c (pdump_reloc_one):
4340         * dumper.c (pdump_scan_by_alignment):
4341         * dumper.c (pdump_dump_from_root_struct_ptrs):
4342         * dumper.c (pdump_dump_opaques):
4343         * dumper.c (pdump_dump_rtables):
4344         * dumper.c (pdump_dump_from_root_objects):
4345         * dumper.c (pdump):
4346         * dumper.c (pdump_load_finish):
4347         Use aligned reading and writing.
4348
4349         * dumper.c (pdump_free): Make static.
4350         * dumper.c (pdump_hFile): Likewise.
4351         * dumper.c (pdump_hMap): Likewise.
4352
4353 2001-01-26  Martin Buchholz <martin@xemacs.org>
4354
4355         * XEmacs 21.2.43 "Terspichore" is released.
4356
4357 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4358
4359         Type fiddling for window_config.saved_windows_count
4360         * window.c (struct window_config): 
4361         Make saved_windows_count member unsigned.
4362         * window.c (sizeof_window_config_for_n_windows): 
4363         Make parameter unsigned.
4364         * window.c (mark_window_config):
4365         * window.c (window_config_equal):
4366         * window.c (free_window_configuration):
4367         * window.c (Fset_window_configuration):
4368         * window.c (count_windows):
4369         * window.c (Fcurrent_window_configuration):
4370         * window.c (reinit_vars_of_window):
4371         Update all callers and users.
4372
4373 2001-01-25  Martin Buchholz  <martin@xemacs.org>
4374
4375         Alignment correctness for flexible arrays.
4376         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4377         Make alignment-correct. Add interesting comments.
4378         * alloc.c (size_vector):
4379         * alloc.c (make_vector_internal):
4380         * alloc.c (make_bit_vector_internal):
4381         * alloc.c (sweep_bit_vectors_1):
4382         * fns.c (size_bit_vector):
4383         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4384         * window.c (sizeof_window_config_for_n_windows): 
4385         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4386
4387 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4388
4389         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4390
4391 2001-01-23  Andy Piper  <andy@xemacs.org>
4392
4393         * select.c (Fown_selection_internal): pass owned_p
4394
4395         * select-msw.c (mswindows_own_selection): New Signature.
4396
4397         * console.h (struct console_methods): add owned_p to
4398         _own_selection.
4399
4400         * select-x.c (x_own_selection): pass owned_p
4401         (hack_motif_clipboard_selection): use owned_p
4402         (vars_of_select_x): new variable -
4403         x_selection_strict_motif_ownership.
4404
4405 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4406
4407         * specifier.h (specifier_data_offset): Remove pointless parens.
4408         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4409
4410 2001-01-24  Martin Buchholz  <martin@xemacs.org>
4411
4412         Make Lisp_Object sizeof methods be alignment-correct.
4413         pdump must restore objects to the same alignment as the C compiler
4414         assumes.  It really matters on SGIs.
4415         * lstream.c (aligned_sizeof_lstream): New.
4416         (sizeof_lstream): Use aligned_sizeof_lstream.
4417         (Lstream_new): Likewise.
4418         * opaque.c (aligned_sizeof_opaque): New.
4419         (sizeof_opaque): Use aligned_sizeof_opaque.
4420         (make_opaque): Likewise.
4421         * specifier.c (aligned_sizeof_specifier): New.
4422         (sizeof_specifier): Use aligned_sizeof_specifier.
4423         (make_specifier_internal): Likewise.
4424
4425 2001-01-23  Martin Buchholz  <martin@xemacs.org>
4426
4427         * lstream.h (struct lstream): Use max_align_t for trailing data.
4428         * specifier.h (struct Lisp_Specifier): Likewise.
4429
4430 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4431
4432         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4433         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4434         (CCL_SUSPEND): Likewise.
4435         (CCL_INVALID_CMD): Likewise.
4436         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4437         (ccl_driver): Likewise.
4438         (CCL_WRITE_CHAR): Macro hygiene.
4439         (CCL_WRITE_STRING): Macro hygiene.
4440
4441 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4442
4443         Port "portable" dumper to SunOS 4 and HP-UX.
4444         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4445         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4446         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4447
4448 2001-01-22  Martin Buchholz  <martin@xemacs.org>
4449
4450         * lisp.h (ALIGNOF): A better definition for C++.
4451
4452 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4453
4454         Macro hygiene.
4455         Fix printf warnings: int format, long int arg.
4456         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4457         (PUSH_FAILURE_POINT): Use correct printf formats.
4458         (POP_FAILURE_POINT): Use correct printf formats.  
4459         Use do {...} while (0)
4460
4461 2001-01-20  Martin Buchholz <martin@xemacs.org>
4462
4463         * XEmacs 21.2.42 "Poseidon" is released.
4464
4465 2001-01-20  Martin Buchholz  <martin@xemacs.org>
4466
4467         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
4468
4469 2001-01-19  Martin Buchholz  <martin@xemacs.org>
4470
4471         De-kludgify FIXED_TYPE free list frobbing.
4472         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4473         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4474         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4475         * alloc.c (Lisp_Free): New pseudo lisp object definition.
4476         * alloc.c (LRECORD_FREE_P): New.
4477         * alloc.c (MARK_LRECORD_AS_FREE): New.
4478         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4479         * alloc.c (STRUCT_FREE_P): Deleted.
4480         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4481         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4482         * alloc.c (STRING_CHARS_FREE_P): New.
4483         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4484         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4485         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4486         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4487         * alloc.c (resize_string): Use new definitions.
4488         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4489         * alloc.c (verify_string_chars_integrity): Use new definitions.
4490         * alloc.c (compact_string_chars): Use new definitions.
4491         * alloc.c: Update monster comments.
4492         * lrecord.h (lrecord_type): Add some new lrecord types for
4493         alloc.c's use.
4494
4495 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4496
4497         Improve alignment hackery.
4498         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4499         (max_align_t): Moved from opaque.h - general purpose.
4500         (ALIGN_PTR): Use size_t, not long.
4501         * opaque.h (max_align_t): Move to lisp.h.
4502
4503 2001-01-18  Norbert Koch  <nk@LF.net>
4504
4505         * gui.h: Fix and add prototypes to fix build problems.
4506
4507 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4508
4509         temacs is going away, so `dump-temacs' is now a bad name.
4510         * .dbxrc (dump-temacs): Rename to `dmp'.
4511         * .gdbinit (dump-temacs): Rename to `dmp'.
4512
4513 2001-01-17  Andy Piper  <andy@xemacs.org>
4514
4515         * glyphs.c (print_image_instance): comment to make martin happy.
4516
4517         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4518         change.
4519
4520         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4521         activation.
4522         (mswindows_tab_control_redisplay): warning suppression.
4523
4524         * glyphs-widget.c (widget_update): re-write to cope with updated
4525         items.
4526         (widget_instantiate): use new gui_item functions.
4527         (tab_control_update): deleted.
4528         (progress_gauge_update): deleted.
4529         (image_instantiator_progress_guage): take out update reference.
4530         (image_instantiator_tree_view): ditto.
4531         (image_instantiator_tab_control): ditto.
4532
4533         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4534         Right the new way.
4535         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4536         return whether anything was changed.
4537         (update_gui_item_keywords): as it sounds.
4538
4539         * gui.h: declare widget_gui_parse_item_keywords.
4540
4541         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4542         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4543
4544 2001-01-17  Martin Buchholz <martin@xemacs.org>
4545
4546         * XEmacs 21.2.41 "Polyhymnia" is released.
4547
4548 2001-01-16  Didier Verna  <didier@xemacs.org>
4549
4550         * glyphs.c (image_instantiate): don't use fallbacks when
4551         instantiating a face's background pixmap by inheritance.
4552
4553 2001-01-14  Mike Sperber <mike@xemacs.org>
4554
4555         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4556         Conditionalize accordingly.
4557
4558 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4559
4560         * dumper.c (pdump_file_get): Fix a compiler warning.
4561
4562 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4563
4564         Make Purify happy when pdumping.
4565         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4566         iniitalizing all bits of new lisp object memory.
4567         * symbols.c (Fmake_local_variable): Likewise.
4568         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4569         * symbols.c (Fdefvaralias): Likewise.
4570         * mule-charset.c (vars_of_mule_charset): Likewise.
4571
4572 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4573         Add the `-nd' flag when running pre-dump operations under the debugger.
4574         * .dbxrc (run-temacs): Add `-nd'.
4575         * .dbxrc (update-elc): Likewise.
4576         * .dbxrc (dump-temacs): Likewise.
4577         * .gdbinit (run-temacs): Likewise.
4578         * .gdbinit (check-temacs): Likewise.
4579         * .gdbinit (update-elc): Likewise.
4580         * .gdbinit (dump-temacs): Likewise.
4581
4582 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4583
4584         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4585         export OBJECT_MODE=64
4586         configure --pdump --use-union-type=no
4587         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4588         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4589
4590         * miscplay.c (sndcnv8U_2mono):
4591         Avoid two uses of `++' in the same expression.
4592         Suppresses a GCC warning.
4593
4594 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4595
4596         Make sure future compilers don't miscompile alloc.c.
4597         * alloc.c:
4598         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4599         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4600
4601 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4602
4603         * dumper.c: A little post-pdump-rename comment fixup.
4604
4605 2001-01-09  Jerry James  <james@eecs.ku.edu>
4606
4607         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4608
4609 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4610
4611         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4612         script:
4613         #!/bin/sh
4614         replace_symbol () {
4615           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4616         }
4617
4618         replace_symbol pdump_wire_lists pdump_weak_object_chains
4619         replace_symbol pdump_wire_list dump_add_weak_object_chain
4620
4621         replace_symbol pdump_wires pdump_root_objects
4622         replace_symbol pdump_wire dump_add_root_object
4623
4624         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4625         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4626
4627         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4628         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4629         replace_symbol dumpstructinfo pdump_root_struct_ptr
4630         replace_symbol dumpstruct dump_add_root_struct_ptr
4631
4632         replace_symbol dumpopaque dump_add_opaque
4633         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4634         replace_symbol dumpopaqueinfos pdump_opaques
4635         replace_symbol dumpopaqueinfo pdump_opaque
4636
4637         replace_symbol nb_structdump nb_root_struct_ptrs
4638         replace_symbol nb_opaquedump nb_opaques
4639
4640         replace_symbol align_table pdump_align_table
4641         replace_symbol dump_header pdump_header
4642
4643         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4644         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4645
4646
4647 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4648
4649         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4650         optimizing bytecount_to_charcount().
4651
4652 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4653
4654         * config.h.in:
4655         (HAVE_DLFCN_H): Removed.
4656         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4657
4658 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4659
4660         Portable dumper maintainability improvements.
4661         * alloc.c (staticpro):
4662         * alloc.c (staticpro_nodump):
4663         * alloc.c (garbage_collect_1):
4664         * alloc.c (reinit_alloc_once_early):
4665         * alloc.c (init_alloc_once_early):
4666         * alloc.c: Move dumper functions to alloc.c.
4667         * dumper.c (pdump_backtrace):
4668         * dumper.c (pdump_dump_structs):
4669         * dumper.c (pdump_dump_opaques):
4670         * dumper.c (pdump_dump_rtables):
4671         * dumper.c (pdump_dump_wired):
4672         * dumper.c (pdump):
4673         * dumper.c (pdump_load_check):
4674         * dumper.c (pdump_load_finish):
4675         * dumper.c (pdump_file_unmap):
4676         * dumper.c (pdump_file_get):
4677         * dumper.c (pdump_resource_free):
4678         * dumper.c (pdump_resource_get):
4679         * dumper.c (pdump_file_free):
4680         * dumper.c (pdump_file_try):
4681         * dumper.c (pdump_load):
4682         Remove fixed size limits on staticpro(), staticpro_nodump(),
4683         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4684         Remove custom code for dumping lrecord_implementations_table - use
4685         dumpopaque instead.
4686         Remove (most of the) custom code for dumping staticpros - dump it
4687         like any other dynarr.
4688
4689         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4690         * dumper.c: Moved functions from alloc.c.
4691         * alloc.c (dumpstruct): Moved to dumper.c.
4692         * alloc.c (dumpopaque): Likewise.
4693         * alloc.c (pdump_wire): Likewise.
4694         * alloc.c (pdump_wire_list): Likewise.
4695
4696         * lisp.h (Dynarr_sizeof): New.
4697         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4698         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4699         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4700
4701         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4702         * lisp.h (dumpopaque): ditto.
4703         * lisp.h (pdump_wire): ditto.
4704         * lisp.h (pdump_wire_list): ditto.
4705
4706 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4707
4708         * make-src-depend (PrintPatternDeps):
4709         Use `sort' to make output independent of perl version.
4710
4711 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4712
4713         Port to Netbsd 1.5.
4714         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4715         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4716
4717 2001-01-03  Didier Verna  <didier@xemacs.org>
4718
4719         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4720         that `focus_frame' is alive before thinking of calling
4721         `redisplay_redraw_cursor' on it.
4722
4723 2001-01-08  Martin Buchholz <martin@xemacs.org>
4724
4725         * XEmacs 21.2.40 is released.
4726
4727 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4728
4729         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4730
4731 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4732
4733         * alloc.c (dbg_valmask): Make const.
4734         * alloc.c (dbg_typemask): Make const.
4735         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4736         * alloc.c (dbg_valbits): Make const.
4737         * alloc.c (dbg_gctypebits): Make const.
4738
4739 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4740
4741         * redisplay-x.c (x_bevel_area):
4742         redisplay.h (struct rune):
4743         Typo fixes in comments.
4744
4745 2001-01-05  Andy Piper  <andy@xemacs.org>
4746
4747         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4748         adjustment.
4749
4750         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4751
4752 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4753
4754         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4755
4756         * mule-ccl.c (stack_idx_of_map_multiple):
4757         Non const global data must not be initialized!
4758         Found by MIYASHITA Hisashi.
4759
4760 2001-01-02  Andy Piper  <andy@xemacs.org>
4761
4762         * frame.c (change_frame_size): make sure frame size is always
4763         marked as changed.
4764
4765         * glyphs.c (image_instance_layout): minor code reuse.
4766
4767         * window.c (Fcurrent_window_configuration): revert previous
4768         change.
4769
4770 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4771
4772         * glyphs.h:
4773         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4774
4775 2000-12-31  Andy Piper  <andy@xemacs.org>
4776
4777         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4778         when widget gets unmapped.
4779
4780         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4781         function. Make sure widgets losing focus don't just drop it.
4782         (handle_focus_event_1): record the widget with focus.
4783
4784 2000-12-31  Andy Piper  <andy@xemacs.org>
4785
4786         * window.c (allocate_window): use
4787         make_image_instance_cache_hash_table.
4788         (make_dummy_parent): ditto.
4789         (Fset_window_configuration): ditto.
4790
4791         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4792
4793         * glyphs.c (process_image_string_instantiator): use
4794         INSTANTIATOR_TYPE.
4795         (get_image_instantiator_governing_domain): ditto.
4796         (normalize_image_instantiator): ditto.
4797         (instantiate_image_instantiator): ditto.
4798         (make_image_instance_1): ditto.
4799         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4800         (instantiator_eq_equal): new function for use with instance hash
4801         tables.
4802         (instantiator_eq_hash): ditto.
4803         (make_image_instance_cache_hash_table): create a suitable hash
4804         table for storing image instances.
4805
4806         * elhash.h (hash_table_weakness): new internal weakness type
4807         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4808         declare new functions.
4809
4810         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4811         another weakness type for glyphs.
4812         (make_standard_lisp_hash_table): new function split out from
4813         make_general_lisp_hash_table.
4814         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4815         (hash_table_instantiate): ditto.
4816         (Fmake_hash_table): ditto.
4817
4818 2000-12-31  Martin Buchholz <martin@xemacs.org>
4819
4820         * XEmacs 21.2.39 is released.
4821
4822 2000-12-29  Andy Piper  <andy@xemacs.org>
4823
4824         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4825
4826         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4827         the frame has changed so that we pick up geometry changes such as
4828         menubar visibility.
4829
4830 2000-12-28  Andy Piper  <andy@xemacs.org>
4831
4832         * lastfile.c (my_ebss): make a char array so we can pad the
4833         bss. Fixes cygwin unexec.
4834
4835         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4836
4837 2000-12-26  Andy Piper  <andy@xemacs.org>
4838
4839         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4840         comments and try and be more precise about a non-/SIGIO world.
4841         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4842         SIGIO.
4843
4844         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4845         we don't normalize to zero width or height.
4846
4847 2000-12-24  Andy Piper  <andy@xemacs.org>
4848
4849         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4850
4851 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4852
4853         * s/sco5.h: SCO 5 has pty support.
4854
4855 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4856
4857         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4858         input-method-xlib.c contains whole contents of input-method-xfs.c,
4859         so we can use input-method-xlib.c's code for USE_XFONTSET
4860         using #ifdefs.
4861         * input-method-xfs.c: removed.
4862
4863 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4864
4865         * file-coding.h (enum coding_category_type): reorder enumerators to
4866         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4867         (now one greater than largest real coding_category_type enumerator).
4868         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4869         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4870         Fcoding_category_list, Fset_coding_priority_list,
4871         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4872         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4873
4874 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4875
4876         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4877         * redisplay-output.c (redisplay_output_window): Clear top of window
4878         when face is changed.
4879         * redisplay-x.c (x_redraw_exposed_window): Call
4880         redisplay_clear_top_of_window.
4881         * redisplay.h: Publish redisplay_clear_top_of_window.
4882
4883 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4884
4885         * buffer.c (Fkill_buffer): Map over all devices.
4886         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4887         (list_windows): New function.
4888         (list_all_windows): Ditto.
4889         (Freplace_buffer_in_windows): Use them.
4890
4891 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4892
4893         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4894         (Fopen_database): Use `db_create' instead of `db_open'.
4895         (syms_of_database): Initialize Qqueue.
4896
4897 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4898
4899         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4900         buffer_local_face_property.
4901         * buffer.h (struct buffer): New member buffer_local_face_property.
4902         * window.c (Fset_window_buffer):  Mark window's face as changed
4903         when buffer has buffer local face.
4904         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4905         * objects.c (color_after_change): Set buffer_local_face_property
4906         when locale of face specifier is buffer.
4907         * objects.c (font_after_change): Ditto.
4908         * objects.c (face_boolean_after_change): Ditto.
4909         * glyphs.c (image_after_change): Ditto.
4910
4911 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4912
4913         * nt.c (mswindows_fstat): Report file permissions, volume serial
4914         number, etc. Code adapted from FSF Emacs 20.7.
4915
4916 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4917
4918         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4919         of stat when we don't have symbolic links, to make sure
4920         mswindows_stat is called on mswindows.
4921
4922 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4923
4924         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4925
4926 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4927
4928         * doprnt.c (emacs_doprnt_1): More printing fixes.
4929         Make printing of numbers compatible with libc and FSF Emacs.
4930         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4931         Use the system printf to do most of the hard work of formatting,
4932         instead of doprnt_1().
4933         Calculate memory to allocate for format string.
4934         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4935         (doprnt_1): Cleaner code and documentation.
4936
4937 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4938
4939         * Makefile.in.in: Use the loop variable to install headers.
4940
4941 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4942
4943         * window.c (Fsplit_window): Don't invalidate face cache.
4944
4945 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4946
4947         * minibuf.c (Fall_completions): Undo the previous change
4948         which removed checking elements start with space.
4949
4950 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4951
4952         * mule-canna.c: Didier suppression.
4953
4954 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4955
4956         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4957         (warning suppression).  Add English comment translations.
4958
4959 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4960
4961         * unexelfsgi.c (unexec): Better test for mmap failure.
4962
4963 2000-12-05  Martin Buchholz <martin@xemacs.org>
4964
4965         * XEmacs 21.2.38 is released.
4966
4967 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4968
4969         * redisplay.c (bar-cursor): Make a user variable.
4970
4971         * symsinit.h: Add init_postgresql_from_environment.
4972
4973 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4974
4975         * regex.c: Convert to clean C.
4976
4977 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4978
4979         * realpath.c:
4980         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4981         initialization.
4982         (sys_readlink): renamed to system_readlink to avoid conflict with
4983         the other sys_readlink.
4984
4985 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4986
4987         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4988
4989 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4990
4991         * postgresql.c (init_postgresql_from_environment): new function.
4992         (vars_of_postgresql): Move code initializing Lisp variables out and
4993         into init_postgresql_from_environment.
4994         emacs.c (main_1): Call init_postgresql_from_environment if and only
4995         if running a dumped XEmacs.
4996
4997 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4998
4999         * buffer.c: Make find-file-compare-truenames default to true on
5000         windows.
5001
5002         * realpath.c (win32_abs_start):
5003         (cygwin_readlink):
5004         (win32_readlink): New functions.
5005         (xrealpath): Return really real filenames on windows.
5006
5007         * fileio.c (Ffile_truename): Make file-truename work on windows.
5008
5009 2000-11-29  Didier Verna  <didier@xemacs.org>
5010
5011         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
5012         * faces.c (update_face_cachel_data): use it.
5013         * faces.c (add_face_cachel): use it. Complete background pixmap
5014         frobbing in face cache if `update_face_cachel_data' has not done so.
5015
5016 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
5017
5018         * search.c (string_match_1): Don't set last_thing_searched
5019         when search failed.
5020
5021 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
5022
5023         * buffer.c: Include casetab.h
5024         (common_init_complex_vars_of_buffer): Use new case-table object.
5025         * buffer.h: Include casetab.h
5026         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
5027         (DOWNCASE_TABLE_OF): Ditto.
5028         * bufslots.h: Remove char-tables and add case-table.
5029         * casetab.c: Include casetab.h
5030         (CASE_TABLE_P): Removed.
5031         (mark_case_table): New function.
5032         (allocate_case_table): New function.
5033         (Fcase_table_p): Use new case-table.
5034         (case_table_char): New function.
5035         (Fget_case_table): Ditto.
5036         (Fput_case_table): Ditto.
5037         (Fput_case_table_pair): Ditto.
5038         (Fcopy_case_table): Ditto.
5039         (Fcurrent_case_table): Return case-table.
5040         (Fstandard_case_table): Return case-table.
5041         (Fset_case_table): Fix doc-string.
5042         (set_case_table): Use case-table
5043         (syms_of_casetab): DEFSUBR new functions.
5044         (complex_vars_of_casetab): Set up standard case-table.
5045         * casetab.h: New file.
5046         * editfns.c: Include casetab.h
5047         (Fcompare_buffer_substrings): Use case-table.
5048         * inline.c: Include casetab.h
5049         * lisp.h: Remove bogus extern.
5050         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5051         * search.c: Include casetab.h
5052         (TRANSLATE_ASCII): Removed.
5053         (TRANSLATE): Unconditionally translate character.
5054         (looking_at_1): Use case-table.
5055         (string_match_1): Ditto.
5056         (fast_string_match): Ditto.
5057         (search_command): Ditto.
5058         (search_buffer): Separate boyer_moore.  Check whether
5059         boyer_moore is possible.
5060         (simple_search): New function.
5061         (boyer_moore): Separated from search_buffer. Translate char.
5062
5063 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
5064
5065         * regex.c (RE_TR_ASCII): Removed.
5066         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5067         (PATFETCH): Call PATFETCH_RAW.
5068         (PATFETCH_RAW): Fetch Emchar.
5069         (PATUNFETCH): Decrement charptr.
5070         (GET_BUFFER_SPACE): Rename b to buf_end.
5071         (BUF_PUSH): Ditto.
5072         (BUF_PUSH_2): Ditto.
5073         (BUF_PUSH_3): Ditto.
5074         (EXTEND_BUFFER): Ditto.
5075         (SET_LIST_BIT): Ditto.
5076         (regex_compile): Ditto.  Translate non ASCII char.
5077         (compile_range): Ditto.
5078         (re_search_2): Ditto.
5079         (re_match_2_internal): Compare Emchar.
5080         (bcmp_translate): Ditto.
5081
5082 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
5083
5084         * lisp.h (basic char/int typedefs):  comment improvement.
5085
5086 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
5087
5088         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
5089         unstomp inhibit_site_lisp.  Improve comments.
5090
5091 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
5092
5093         * mule-charset.c (Fcharset_property):  improve type checking, comments.
5094
5095 2000-11-28  Andy Piper  <andy@xemacs.org>
5096
5097         * redisplay-output.c (redisplay_output_subwindow): make sure we do
5098         clipped display for windows in the gutter also.
5099         (redisplay_display_boxes_in_window_p): change semantics of return
5100         codes to be more intuitive.
5101
5102         * gutter.h: declare display_boxes_in_gutter_p.
5103
5104         * gutter.c (display_boxes_in_gutter_p): new function for
5105         redisplay.
5106
5107 2000-11-22  Andy Piper  <andy@xemacs.org>
5108
5109         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5110         autodetect domain.
5111
5112 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
5113
5114         * callproc.c (Fold_call_process_internal):
5115         * gpm.c (Freceive_gpm_event):
5116         (tty_get_foreign_selection): Might be just warning supression.
5117         * fileio.c (Fwrite_region_internal):
5118         (Fset_visited_file_modtime):
5119         * keymap.c (event_matches_key_specifier_p):
5120         Initialize GCPROed variable.
5121
5122         * menubar-x.c (command_builder_find_menu_accelerator):
5123         Initialize before use.
5124
5125 2000-11-23  Andy Piper  <andy@xemacs.org>
5126
5127         * unexcw.c (unexec): make the resulting executable executable.
5128
5129 2000-11-21  Martin Buchholz  <martin@xemacs.org>
5130
5131         * doc.c (get_doc_string):
5132         Use size_t, not int, for result of XSTRING_LENGTH.
5133
5134         * cmds.c (Fdelete_char):
5135         * cmds.c (Fpoint_at_eol):
5136         * cmds.c (Fself_insert_command):
5137         Use EMACS_INT, not int, for result of XINT.
5138         Someday, someone will want to insert more than 2**31 identical characters.
5139
5140         * cmds.c (Fdelete_char):
5141         * cmds.c (Fdelete_backward_char):
5142         * syntax.c (Fforward_word):
5143         * syntax.c (Fforward_comment):
5144         Make COUNT argument optional, for consistency with forward-char et al.
5145
5146 2000-11-22  Martin Buchholz  <martin@xemacs.org>
5147
5148         * lisp.h:
5149         * print.c (long_to_string):
5150         Return a useful value: the pointer at end of data written.
5151
5152         * doprnt.c:
5153         Use `static const char * const' for constant strings.
5154         (union printf_arg): Delete `i', `ui' members.
5155         (get_doprnt_args):
5156         (emacs_doprnt_1):
5157         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5158         Do all printf-ing via the `l' specifier.
5159         Use EMACS_INT instead of int.
5160         Optimize.
5161
5162 2000-11-20  Didier Verna  <didier@xemacs.org>
5163
5164         * faces.c (update_face_cachel_data): don't frob the background
5165         pixmap when the window is being created. The face is needed but
5166         does not exist yet.
5167
5168 2000-11-20  Andy Piper  <andy@xemacs.org>
5169
5170         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5171         messing with a debug environment.
5172
5173 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5174
5175         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5176
5177 2000-11-20  Martin Buchholz  <martin@xemacs.org>
5178
5179         * casetab.c (Fcase_table_p): Fix compile error and crash.
5180
5181 2000-11-18  Philip Aston  <philipa@mail.com>
5182
5183         * s/cygwin32.h: Cygwin has SVR4-like pty support.
5184
5185 2000-11-18  Martin Buchholz  <martin@xemacs.org>
5186
5187         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
5188         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5189
5190 2000-11-17  Martin Buchholz  <martin@xemacs.org>
5191
5192         * config.h.in: Define HAVE_ELF_H if elf.h exists.
5193         * unexelf.c: Use HAVE_ELF_H.
5194         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5195         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5196         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5197         Greg Harrington <greg_harrington@hotmail.com> provided a machine
5198         for testing.
5199         So this is an unexelfsgi.c from a different line of development.
5200
5201 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5202
5203         * regex.c (RE_TR_ASCII): New function.
5204         (RE_TRANSLATE): Call it.
5205
5206 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
5207
5208         * buffer.h (TRT_TABLE_OF): Remove assert.
5209         (IN_TRT_TABLE_DOMAIN): Removed.
5210
5211 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5212
5213         * free-hook.c (log_gcpro):
5214         (show_gcprohist): Add support for GCPRO5.
5215
5216 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
5217
5218         * emacs.c (main_1): Improve -sd error message when --pdump=no.
5219
5220 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
5221
5222         * symeval.h: Declare flush_all_buffer_local_cache.
5223
5224         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5225         (flush_buffer_local_cache): Added.
5226         (flush_all_buffer_local_cache): Added.
5227
5228         * lrecord.h: Remove unused XD_LO_RESET_NIL.
5229
5230         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5231         (pdump_dump_data): Ditto.
5232         (pdump_reloc_one): Ditto.
5233         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
5234         before dumping.
5235
5236
5237 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5238
5239         * buffer.c: Remove if 0'ed entry.
5240         * buffer.h: Rewrite TRT to use char-table.
5241         * bufslots.h: Remove mirror tables.
5242         * casetab.c: Remove mirror tables.
5243         (CASE_TABLE_P): New macro.
5244         (Fcase_table_p): Element of a case table is string or char-table.
5245         (make_mirror_trt_table): Removed.
5246         (set_case_table): Setup char-table from strings for backward
5247         compatibility.
5248         * dired.c (Fdirectory_files):
5249         * dired-msw.c: (mswindows_get_files):
5250         * lisp.h: Change prototype of re_pattern_buffer.
5251         * regex.c: (RE_TRANSLATE): New macro.
5252         (TRANSLATE_P): Ditto.
5253         Change translate to type RE_TRANSLATE_TYPE.
5254         * regex.h: Define RE_TRANSLATE_TYPE
5255         * search.c (TRANSLATE): New macro.
5256         (TRANSLATE_ASCII): New macro.
5257         Translate table is changed to Lisp_Object.
5258         (signal_failure): Inhibit return.
5259
5260 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
5261
5262         * device-msw.c:
5263         * eldap.c:
5264         * event-Xt.c:
5265         * event-stream.c:
5266         * print.c:
5267         Do UNGCPRO before return.
5268
5269 2000-11-14  Martin Buchholz <martin@xemacs.org>
5270
5271         * XEmacs 21.2.37 is released.
5272
5273 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
5274
5275         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5276         Add comments about discarded return value.
5277
5278 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
5279
5280         * callint.c:
5281         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
5282
5283 2000-10-27  Andy Piper  <andy@xemacs.org>
5284
5285         * gutter.c (Fset_default_gutter_position): default left and right
5286         gutters to visible.
5287         (calculate_gutter_size): calculate resonable heuristic for left
5288         and right gutter sizes.
5289         (specifier_vars_of_gutter): change left and right gutter sizes to
5290         autodetect.
5291         (calculate_gutter_size_from_display_lines): new function.
5292         (output_gutter): check for resizing on left and right gutters.
5293         (clear_gutter): don't special case top and left gutters.
5294         (specifier_vars_of_gutter): use new signature for
5295         set_specifier_caching.
5296
5297         * glyphs-x.c (x_redisplay_widget): spelling fix.
5298         * glyphs.c (specifier_vars_of_glyphs):
5299         * menubar.c (specifier_vars_of_menubar):
5300         * redisplay.c (specifier_vars_of_redisplay):
5301         * toolbar.c (specifier_vars_of_toolbar):
5302         * window.c (specifier_vars_of_window):
5303         * scrollbar.c (specifier_vars_of_scrollbar):
5304         (complex_vars_of_scrollbar): use new signature for
5305         set_specifier_caching.
5306
5307         * specifier.c (set_specifier_caching): include recompute flag.
5308         (recompute_one_cached_specifier_in_window): always recompute if
5309         flag set.
5310         (recompute_one_cached_specifier_in_frame): ditto.
5311
5312         * specifier.h (struct specifier_caching): add recompute flag.
5313
5314 2000-10-24  Andy Piper  <andy@xemacs.org>
5315
5316         * unexcw.c (copy_executable_and_dump_data_section): add new
5317         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5318         5.0 happy.
5319
5320 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5321
5322         * console-x.h (x_device): New member modifier_release_time.
5323         * event-Xt.c (x_handle_sticky_modifiers):
5324         Bound interval modifier keys are sticky.
5325         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5326         * events.h: extern it.
5327
5328 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5329
5330         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5331
5332 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
5333
5334         * event-stream.c (execute_command_event): Preserve current_events
5335         and the like when event is misc-user-event.
5336         Inhibit quit during the call to maybe_echo_keys.
5337
5338 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
5339
5340         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5341         symlink when buffer is killed.
5342         (inhibit_clash_detection): New variable.
5343
5344 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5345
5346         * console.c (Fset_input_method): Trigger redisplay on tty.
5347
5348 2000-11-07  Martin Buchholz  <martin@xemacs.org>
5349
5350         * process.c (Fprocess_status): Revert to previous behavior:
5351         (process-status "nosuchprocess") ==> nil
5352
5353 2000-11-06  Martin Buchholz  <martin@xemacs.org>
5354
5355         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5356         Work around another GCC 2.95.2 optimizer bug.
5357
5358 2000-11-02  Martin Buchholz  <martin@xemacs.org>
5359
5360         * process.c (Fget_process): Use LIST_LOOP_2.
5361         (kill_buffer_processes): Use LIST_LOOP_2.
5362
5363         * minibuf.c (Fall_completions):
5364         Delete old non-functional code for FSF fourth argument.
5365
5366         * frame.c (frame_matches_frame_spec):
5367         Renamed from `frame_matches_frametype'.  Update all callers.
5368         (device_matches_device_spec):
5369         Renamed from 'device_matches_console_spec'.  Update all callers.
5370
5371         * doc.c (Fsubstitute_command_keys):
5372         Remove buffer overflow crash.  Small code cleanups.
5373
5374         * casetab.c (check_case_table): Simpler code.
5375
5376         * window.c (Freplace_buffer_in_windows):
5377         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5378         (and similar implementation) as Fdelete_windows_on.
5379         Update all callers.
5380
5381         * alloc.c (Fmake_list):
5382         * alloc.c (make_vector):
5383         * alloc.c (Fmake_vector):
5384         * alloc.c (make_bit_vector):
5385         * alloc.c (Fmake_bit_vector):
5386         * alloc.c (Fbit_vector):
5387         * alloc.c (Fmake_string):
5388         * alloc.c (Fpurecopy):
5389         * alloc.c (Fmemory_limit):
5390         * buffer.c:
5391         * buffer.c (Fget_buffer):
5392         * buffer.c (Fkill_buffer):
5393         * buffer.c (complex_vars_of_buffer):
5394         * bytecode.c (Fcompiled_function_stack_depth):
5395         * callint.c (Fprefix_numeric_value):
5396         * event-stream.c:
5397         * event-stream.c (Fread_key_sequence):
5398         * casetab.c:
5399         * casetab.c (Fcase_table_p):
5400         * casetab.c (check_case_table):
5401         * casetab.c (Fset_case_table):
5402         * casetab.c (Fset_standard_case_table):
5403         * chartab.c:
5404         * chartab.c (Fchar_table_type):
5405         * chartab.c (Freset_char_table):
5406         * chartab.c (Fget_char_table):
5407         * chartab.c (Fget_range_char_table):
5408         * chartab.c (Fput_char_table):
5409         * chartab.c (Fmap_char_table):
5410         * chartab.c (Fcategory_table_p):
5411         * chartab.c (Fcheck_category_at):
5412         * chartab.c (Fchar_in_category_p):
5413         * chartab.c (Fcategory_table):
5414         * chartab.c (Fcopy_category_table):
5415         * chartab.c (Fset_category_table):
5416         * chartab.c (Fcategory_designator_p):
5417         * chartab.c (Fcategory_table_value_p):
5418         * cmds.c (Fdelete_char):
5419         * cmds.c (Fdelete_backward_char):
5420         * cmds.c (Fself_insert_command):
5421         * cmds.c (Fself_insert_internal):
5422         * console.c (Fvalid_console_type_p):
5423         * console.c (Fcdfw_console):
5424         * console.c (Fconsole_type):
5425         * console.c (Fconsole_name):
5426         * console.c (Fconsole_device_list):
5427         * console.c (Fconsole_on_window_system_p):
5428         * data.c:
5429         * data.c (Feq):
5430         * data.c (Fold_eq):
5431         * data.c (Fsubr_interactive):
5432         * data.c (Fchar_to_int):
5433         * data.c (Fint_to_char):
5434         * data.c (Fsetcar):
5435         * data.c (Fsetcdr):
5436         * data.c (Fnumber_to_string):
5437         * data.c (Fstring_to_number):
5438         * data.c (Frem):
5439         * database.c (mark_database):
5440         * database.c (finalize_database):
5441         * database.c (Fdatabase_live_p):
5442         * database.c (Fdatabasep):
5443         * device-x.c (Fx_get_resource):
5444         * device.c (Fdfw_device):
5445         * dired.c:
5446         * dired.c (Ffile_name_completion):
5447         * dired.c (Ffile_name_all_completions):
5448         * dired.c (Fuser_name_completion):
5449         * dired.c (Fuser_name_completion_1):
5450         * dired.c (Fuser_name_all_completions):
5451         * doc.c (Fdocumentation):
5452         * doc.c (Fdocumentation_property):
5453         * doc.c (Fsubstitute_command_keys):
5454         * editfns.c:
5455         * editfns.c (Fchar_to_string):
5456         * editfns.c (Fstring_to_char):
5457         * editfns.c (Ftemp_directory):
5458         * editfns.c (Finsert_char):
5459         * editfns.c (Fbuffer_substring_no_properties):
5460         * editfns.c (Fnarrow_to_region):
5461         * editfns.c (Fchar_equal):
5462         * editfns.c (Fchar_Equal):
5463         * editfns.c (Ftranspose_regions):
5464         * emacs.c (Fdump_emacs):
5465         * eval.c (Fthrow):
5466         * eval.c (Fcommand_execute):
5467         * eval.c (Fautoload):
5468         * eval.c (Fbacktrace):
5469         * eval.c (Fbacktrace_frame):
5470         * events.c:
5471         * events.c (Fcopy_event):
5472         * events.c (Fcharacter_to_event):
5473         * events.c (Fevent_button):
5474         * events.c (Fevent_process):
5475         * extents.c:
5476         * extents.c (Fnext_extent_change):
5477         * extents.c (Fextent_property):
5478         * faces.c (Ffacep):
5479         * faces.c (Fmake_face):
5480         * file-coding.c:
5481         * file-coding.c (Fencode_shift_jis_char):
5482         * file-coding.c (Fencode_big5_char):
5483         * fileio.c (Ffile_name_directory):
5484         * fileio.c (Ffile_name_nondirectory):
5485         * fileio.c (Ffile_name_as_directory):
5486         * fileio.c (Fdirectory_file_name):
5487         * fileio.c (Ffile_truename):
5488         * fileio.c (Fsubstitute_in_file_name):
5489         * fileio.c (Ffile_modes):
5490         * fileio.c (Fset_file_modes):
5491         * fileio.c (Fset_default_file_modes):
5492         * fileio.c (Fverify_visited_file_modtime):
5493         * floatfns.c (Facos):
5494         * floatfns.c (Fasin):
5495         * floatfns.c (Fatan):
5496         * floatfns.c (Fcos):
5497         * floatfns.c (Fsin):
5498         * floatfns.c (Ftan):
5499         * floatfns.c (Fbessel_j0):
5500         * floatfns.c (Fbessel_j1):
5501         * floatfns.c (Fbessel_jn):
5502         * floatfns.c (Fbessel_y0):
5503         * floatfns.c (Fbessel_y1):
5504         * floatfns.c (Fbessel_yn):
5505         * floatfns.c (Ferf):
5506         * floatfns.c (Ferfc):
5507         * floatfns.c (Flog_gamma):
5508         * floatfns.c (Fexp):
5509         * floatfns.c (Fexpt):
5510         * floatfns.c (Flog):
5511         * floatfns.c (Flog10):
5512         * floatfns.c (Fsqrt):
5513         * floatfns.c (Fcube_root):
5514         * floatfns.c (Facosh):
5515         * floatfns.c (Fasinh):
5516         * floatfns.c (Fatanh):
5517         * floatfns.c (Fcosh):
5518         * floatfns.c (Fsinh):
5519         * floatfns.c (Ftanh):
5520         * floatfns.c (Fabs):
5521         * floatfns.c (Ffloat):
5522         * floatfns.c (Flogb):
5523         * floatfns.c (Fceiling):
5524         * floatfns.c (Ffloor):
5525         * floatfns.c (Fround):
5526         * floatfns.c (Ftruncate):
5527         * floatfns.c (Ffceiling):
5528         * floatfns.c (Fffloor):
5529         * floatfns.c (Ffround):
5530         * floatfns.c (Fftruncate):
5531         * fns.c (Fstring_equal):
5532         * fns.c (Fstring_lessp):
5533         * fns.c (concat2):
5534         * fns.c (concat3):
5535         * fns.c (vconcat2):
5536         * fns.c (vconcat3):
5537         * fns.c (Fsubstring):
5538         * fns.c (Fassoc):
5539         * fns.c (Fold_assoc):
5540         * fns.c (assoc_no_quit):
5541         * fns.c (Fassq):
5542         * fns.c (Fold_assq):
5543         * fns.c (assq_no_quit):
5544         * fns.c (Frassoc):
5545         * fns.c (Fold_rassoc):
5546         * fns.c (Frassq):
5547         * fns.c (Fold_rassq):
5548         * fns.c (rassq_no_quit):
5549         * fns.c (Fremassoc):
5550         * fns.c (remassoc_no_quit):
5551         * fns.c (Fremassq):
5552         * fns.c (remassq_no_quit):
5553         * fns.c (Fremrassoc):
5554         * fns.c (Fremrassq):
5555         * fns.c (remrassq_no_quit):
5556         * fns.c (Fsort):
5557         * fns.c (Fplist_get):
5558         * fns.c (Fplist_put):
5559         * fns.c (Fplist_remprop):
5560         * fns.c (Fplist_member):
5561         * fns.c (Flax_plist_get):
5562         * fns.c (Flax_plist_put):
5563         * fns.c (Flax_plist_remprop):
5564         * fns.c (Flax_plist_member):
5565         * fns.c (Fequal):
5566         * fns.c (Fold_equal):
5567         * fns.c (Frequire):
5568         * fns.c (Fbase64_encode_region):
5569         * fns.c (Fbase64_encode_string):
5570         * fns.c (Fbase64_decode_region):
5571         * frame.c:
5572         * frame.c (frame_matches_frame_spec):
5573         * frame.c (device_matches_device_spec):
5574         * frame.c (next_frame):
5575         * frame.c (previous_frame):
5576         * frame.c (Fnext_frame):
5577         * frame.c (Fprevious_frame):
5578         * frame.c (Fframe_property):
5579         * frame.c (Fset_frame_height):
5580         * frame.c (Fset_frame_size):
5581         * frame.h:
5582         * glyphs.c:
5583         * glyphs.c (if):
5584         * glyphs.c (decode_error_behavior_flag):
5585         * glyphs.c (Fmake_image_instance):
5586         * indent.c (Findent_to):
5587         * intl.c (Fignore_defer_gettext):
5588         * keymap.c (Fkeymapp):
5589         * keymap.c (Flookup_key):
5590         * lread.c:
5591         * lread.c (Fload_internal):
5592         * lread.c (Feval_buffer):
5593         * lread.c (Feval_region):
5594         * macros.c (Fexecute_kbd_macro):
5595         * marker.c (set_marker_internal):
5596         * marker.c (Fset_marker):
5597         * marker.c (set_marker_restricted):
5598         * marker.c (Fcopy_marker):
5599         * marker.c (noseeum_copy_marker):
5600         * menubar.c:
5601         * menubar.c (Fpopup_menu):
5602         * minibuf.c:
5603         * mule-charset.c (Fcharset_name):
5604         * mule-charset.c (Fchar_charset):
5605         * mule-charset.c (Fchar_octet):
5606         * mule-charset.c (Fsplit_char):
5607         * mule-wnnfns.c (Fwnn_open):
5608         * mule-wnnfns.c (Fwnn_dict_comment):
5609         * mule-wnnfns.c (Fwnn_quit_henkan):
5610         * mule-wnnfns.c (Fwnn_word_toroku):
5611         * mule-wnnfns.c (Fwnn_word_sakujo):
5612         * mule-wnnfns.c (Fwnn_word_use):
5613         * mule-wnnfns.c (Fwnn_hindo_set):
5614         * objects.c:
5615         * objects.c (Fmake_color_instance):
5616         * objects.c (Fmake_font_instance):
5617         * print.c (Fwrite_char):
5618         * process.c:
5619         * process.c (mark_process):
5620         * process.c (print_process):
5621         * process.c (get_process_from_usid):
5622         * process.c (Fprocessp):
5623         * process.c (Fprocess_live_p):
5624         * process.c (Fget_process):
5625         * process.c (Fget_buffer_process):
5626         * process.c (get_process):
5627         * process.c (Fprocess_id):
5628         * process.c (Fprocess_name):
5629         * process.c (Fprocess_command):
5630         * process.c (init_process_io_handles):
5631         * process.c (start_process_unwind):
5632         * process.c (Fstart_process_internal):
5633         * process.c (Fopen_multicast_group_internal):
5634         * process.c (Fset_process_window_size):
5635         * process.c (read_process_output):
5636         * process.c (send_process):
5637         * process.c (Fprocess_tty_name):
5638         * process.c (Fset_process_buffer):
5639         * process.c (Fprocess_buffer):
5640         * process.c (Fprocess_mark):
5641         * process.c (set_process_filter):
5642         * process.c (Fset_process_filter):
5643         * process.c (Fprocess_filter):
5644         * process.c (Fprocess_send_region):
5645         * process.c (Fprocess_send_string):
5646         * process.c (exec_sentinel):
5647         * process.c (Fset_process_sentinel):
5648         * process.c (Fprocess_sentinel):
5649         * process.c (status_notify):
5650         * process.c (Fprocess_status):
5651         * process.c (Fprocess_exit_status):
5652         * process.c (process_send_signal):
5653         * process.c (Fprocess_send_eof):
5654         * process.c (deactivate_process):
5655         * process.c (remove_process):
5656         * process.c (Fdelete_process):
5657         * process.c (kill_buffer_processes):
5658         * process.c (Fprocess_kill_without_query):
5659         * process.c (Fprocess_kill_without_query_p):
5660         * rangetab.c:
5661         * rangetab.c (Fget_range_table):
5662         * rangetab.c (Fput_range_table):
5663         * rangetab.c (Fremove_range_table):
5664         * rangetab.c (Fclear_range_table):
5665         * search.c:
5666         * search.c (Fskip_chars_forward):
5667         * search.c (Fskip_chars_backward):
5668         * search.c (Fskip_syntax_forward):
5669         * search.c (Fskip_syntax_backward):
5670         * search.c (search_command):
5671         * search.c (Freplace_match):
5672         * search.c (Fregexp_quote):
5673         * select.c (Fown_selection_internal):
5674         * select.c (Fselection_owner_p):
5675         * select.c (Fselection_exists_p):
5676         * select.c (Fget_selection_internal):
5677         * specifier.c:
5678         * symbols.c:
5679         * symbols.c (Fintern):
5680         * symbols.c (Fintern_soft):
5681         * symbols.c (Funintern):
5682         * symbols.c (Fapropos_internal):
5683         * symbols.c (Fset_default):
5684         * syntax.c:
5685         * syntax.c (Fsyntax_table_p):
5686         * syntax.c (Fcopy_syntax_table):
5687         * syntax.c (Fset_syntax_table):
5688         * syntax.c (Fchar_syntax):
5689         * syntax.c (syntax_match):
5690         * syntax.c (Fmatching_paren):
5691         * syntax.c (Fforward_word):
5692         * syntax.c (scan_lists):
5693         * syntax.c (Fscan_lists):
5694         * syntax.c (Fscan_sexps):
5695         * syntax.c (Fparse_partial_sexp):
5696         * toolbar.c (Fcheck_toolbar_button_syntax):
5697         * tooltalk.doc:
5698         * window.c:
5699         * window.c (Fwindowp):
5700         * window.c (Fwindow_live_p):
5701         * window.c (Fwindow_point):
5702         * window.c (Fdelete_window):
5703         * window.c (Fnext_window):
5704         * window.c (Fprevious_window):
5705         * window.c (Fother_window):
5706         * window.c (window_loop):
5707         * window.c (Fget_lru_window):
5708         * window.c (Fsplit_window):
5709         * window.c (Fenlarge_window):
5710         * window.c (Fenlarge_window_pixels):
5711         * window.c (Fshrink_window):
5712         * window.c (Fshrink_window_pixels):
5713         * window.c (change_window_height):
5714         * window.c (Fwindow_configuration_p):
5715         * window.c (Fcurrent_window_configuration):
5716         * window.h:
5717         * casefiddle.c (casify_object):
5718         * casefiddle.c (Fupcase):
5719         * casefiddle.c (Fdowncase):
5720         * casefiddle.c (Fcapitalize):
5721         * casefiddle.c (Fupcase_initials):
5722         * casefiddle.c (casify_region_internal):
5723         * casefiddle.c (casify_region):
5724         * casefiddle.c (Fupcase_region):
5725         * casefiddle.c (Fdowncase_region):
5726         * casefiddle.c (Fcapitalize_region):
5727         * casefiddle.c (Fupcase_initials_region):
5728         * casefiddle.c (Fupcase_word):
5729         * casefiddle.c (Fdowncase_word):
5730         * casefiddle.c (Fcapitalize_word):
5731         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5732         Replace 0 with '\0' when working with bytes.
5733         Replace initial "(" with "\(" in docstrings.
5734
5735 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5736
5737         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5738
5739         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5740
5741 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5742
5743         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5744
5745 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5746
5747         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5748         correctly.
5749
5750 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5751
5752         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5753         (inhibit_auto_save_session): New variable.
5754         (vars_of_fileio): Declare and initialize them.
5755         * fileio.c (Fdo_auto_save): Don't create session file if
5756         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5757
5758 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5759
5760         * sgiplay.c (play_internal): C++ compilability.
5761         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5762         * callproc.c (Fold_call_process_internal):
5763         Remove unused vars `env', `first'.
5764         * scrollbar.c (update_scrollbar_instance):
5765         #### unused var `current_window'.
5766         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5767         etc. within #ifdef NOT_YET.
5768         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5769         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5770         * specifier.c (specifier_instance):
5771         #### unused var `tag'.
5772         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5773
5774 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5775
5776         * fns.c (Fbutlast):
5777         * fns.c (list_sort):
5778         * fns.c (Ffillarray):
5779         * fns.c (bytecode_nconc2):
5780         * fns.c (Fnconc):
5781         * fns.c (mapcar1):
5782         * fns.c (Fmapconcat):
5783         Be pedantically 64-bit correct.  For the time when someone will
5784         want to have a list with length > 2**32.
5785
5786         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5787         Work around MIPSpro compiler bug.
5788
5789         * process-unix.c (unix_kill_child_process): Add snarky comment.
5790         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5791
5792         * config.h.in: Oops, _getpt ==> _getpty
5793
5794 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5795
5796         * config.h.in:
5797         * regex.c:
5798         Use void*, not char*, as return type of alloca().
5799
5800         * alloc.c (free_marker): Side effect inside assert expression!
5801
5802 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5803
5804         * mule-charset.c (Fset_charset_ccl_program): To check
5805         if the given ccl program is valid, use setup_ccl_program()
5806         instead of CHECK_VECTOR().
5807         (Fmake_charset): Likewise.
5808
5809 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5810
5811         * faces.c (get_extent_fragment_face_cache_index):
5812         Fix cachel.merged_faces memory leak.
5813
5814 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5815
5816         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5817         Reset MSB of octets obtained by DECODE_SJIS
5818         because of the incompatibility with Emacs.
5819         (ccl_driver)<CCL_ENCODE_SJIS>:
5820         Set MSB of octets before passing them to
5821         ENCODE_SJIS because of the incompatibility
5822         with Emacs.
5823
5824 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5825
5826         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5827         (DECLARE_LRECORD): Undo the last change.
5828         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5829
5830 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5831
5832         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5833         the implementation to lrecord_implementations_table.
5834
5835 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5836
5837         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5838         initial value of `lrecord_type_##c_name' and
5839         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5840         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5841         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5842         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5843         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5844
5845 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5846
5847         * miscplay.c (sndcnv8S_2mono):
5848         (sndcnv2monounsigned):
5849         (sndcnvULaw_2linear):
5850         (sndcnv16swap):
5851         Remove implementation-defined behavior.
5852
5853 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5854
5855         * input-method-xlib.c: Warning suppression.
5856
5857 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5858
5859         * mule-ccl.c: Sync up with Emacs 21.0.90.
5860         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5861         Do nothing.
5862         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5863         Likewise.
5864         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5865         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5866         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5867         leading char belongs to official 2-dimensional charset.
5868         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5869         write the given character as is.  Otherwise,
5870         if it is a multibyte char, convert it by
5871         non_ascii_set_charptr_emchar, then write it.
5872         (CCL_WRITE_STRING): Likewise.
5873         (ccl_get_compiled_code): New function.
5874         (setup_ccl_program): When ccl_prog is invalid,
5875         return -1.
5876         (Fregister_code_conversion_map): New function.
5877         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5878
5879         * mule-ccl.h: Sync up with Emacs 21.0.90.
5880         (Fregister_ccl_program): export it.
5881
5882         * redisplay-msw.c (separate_textual_runs):
5883         If ccl program is not valid, don't do ccl conversion.
5884
5885         * redisplay-x.c (separate_textual_runs): Ditto.
5886
5887         * file-coding.c (Fmake_coding_system):
5888         When type is ccl and value is vector, register it
5889         with a proper symbol.  And checks whether the
5890         given ccl program is valid.
5891         (mule_decode): When calling ccl_driver, if src indicates
5892         NULL pointer, set an empty string instead.
5893         (mule_encode): Likewise.
5894
5895 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5896
5897         The following large batch of changes gets us back to a state of
5898         C++ compilability.  Extbyte is now a char, which means that
5899         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5900
5901         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5902
5903         * sound.c (Fplay_sound): Type correctness.
5904
5905         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5906         (x_get_window_property): Type correctness.
5907         (receive_incremental_selection): unsigned char ==> Extbyte
5908         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5909         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5910         (Fx_store_cutbuffer_internal): Type correctness.
5911
5912         * process-unix.c (try_to_initialize_subtty): Type correctness.
5913
5914         * objects-x.c (x_print_color_instance): Type correctness.
5915         (x_print_font_instance): Type correctness.
5916         (x_list_fonts): SExtbyte ==> Extbyte.
5917         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5918         (x_find_charset_font): SExtbyte ==> Extbyte.
5919         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5920         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5921         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5922         Use bufbyte_strcmp.
5923
5924         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5925         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5926         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5927         (BYTE_C0_P): Use bit ops for char-signedness safety.
5928         (BYTE_C1_P): Use bit ops for char-signedness safety.
5929         (CHARSET_BY_LEADING_BYTE):
5930         (CHARSET_BY_ATTRIBUTES):
5931         Always use inline function.
5932         Use type_checking_assert.
5933         Hide chlook.
5934
5935         * mule-charset.c (non_ascii_charptr_copy_char):
5936         Modify to work with both ASCII and non-ASCII characters.
5937         Improve docs and variable names.
5938         Replace over-clever fall-through switch with a simple loop.
5939         (Lstream_get_emchar_1):
5940         Replace over-clever fall-through switch with a simple loop.
5941
5942         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5943         Warning suppression.
5944
5945         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5946         the return value of Lstream_getc, which could be EOF as well.
5947
5948         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5949
5950         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5951         APIs can be used on Extbytes without casts.  Risky!
5952         (SExtbyte): Remove.
5953         (UExtbyte): Remove.
5954
5955         * input-method-xlib.c (XIM_init_device):
5956         Use Xlib.h instead of IntrinsicP.h.
5957         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5958         which will break in X11R7.
5959         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5960         to call XRegisterIMInstantiateCallback with correct types.
5961
5962         * gui-x.c (button_item_to_widget_value): Type correctness.
5963
5964         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5965
5966         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5967         (xbm_instantiate_1): Type correctness.
5968         (BUILD_GLYPH_INST):  Type correctness.
5969
5970         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5971
5972         * file-coding.c:
5973         (decode_coding_sjis):
5974         (decode_coding_big5):
5975         (decode_coding_ucs4):
5976         (decode_coding_utf8):
5977         (decode_coding_iso2022):
5978         (decode_coding_no_conversion):
5979         Make all decoding functions take an Extbyte * arg.
5980         (encode_coding_sjis):
5981         (encode_coding_big5):
5982         (encode_coding_ucs4):
5983         (encode_coding_utf8):
5984         (encode_coding_iso2022):
5985         (encode_coding_no_conversion):
5986         Make all encoding functions take a Bufbyte * arg.
5987         Use size_t instead of unsigned int for memory sizes.
5988         Only cast to unsigned char whenever dereferencing Extbyte *.
5989
5990         * doc.c (unparesseuxify_doc_string): Type correctness.
5991
5992         * console-x.c (split_up_display_spec):
5993         Rewrite without using details of internal string representation.
5994         (x_semi_canonicalize_device_connection): Type correctness.
5995
5996         * config.h.in:
5997         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5998         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5999         (HAVE_XFREE386): Removed.
6000
6001         * buffer.h (DEC_CHARPTR): `const' correctness.
6002         (bufbyte_strcmp): New.
6003         (bufbyte_memcmp): New.
6004
6005         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
6006
6007         * buffer.h (XCHAR_OR_CHAR_INT):
6008         Always use inline function.
6009         Remove redundant type checking assert() - XINT will abort quite nicely.
6010
6011 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6012
6013         * search.c (Freplace_match): Set newtext to an empty string.
6014
6015 2000-10-10  Martin Buchholz  <martin@xemacs.org>
6016
6017         * s/decosf1-3.h: Remove #include of stropts.h
6018         * s/ptx.h: Remove #include of stropts.h
6019         * s/usg5-4.h: Remove #include of stropts.h
6020         * sysproc.h:
6021         * config.h.in:
6022         Use stropts.h, not sys/stropts.h.
6023         Use strtio.h, not sys/strtio.h.
6024
6025 2000-10-04  Martin Buchholz <martin@xemacs.org>
6026
6027         * XEmacs 21.2.36 is released.
6028
6029 2000-09-21  Andy Piper  <andy@xemacs.org>
6030
6031         * glyphs-x.c (x_redisplay_widget): make sure non-structural
6032         changes still involve copying the widget tree.
6033         (update_widget_face): make sure a change is register in the widget
6034         tree. Call update_tab_widget_face appropriately.
6035         (update_tab_widget_face): ditto.
6036         (x_tab_control_redisplay): make sure non-structural changes still
6037         involve copying the widget tree.
6038
6039 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
6040
6041         * lread.c (locate_file): Check the path element is non-nil.
6042
6043 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6044
6045         * lisp.h: Warning suppression for SCO compilers.
6046
6047         * redisplay-tty.c (reset_tty_modes): Fix crash.
6048         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6049
6050 2000-09-27  Martin Buchholz  <martin@xemacs.org>
6051
6052         Big signal/process handling overhaul.  Bugs fixed:
6053         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6054         M-x comint-kill-subjob should work for both values nil and t of
6055         process-connection-type. It was broken on most platforms.
6056         Testing on Irix and Cygwin still needed.  Other plaforms tested.
6057         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
6058         * process-unix.c: Signal/Process handling overhaul.
6059         (pty_name): make 64 bytes, as `expect' does, for paranoia.
6060         (allocate_pty): Use all available modern methods of allocating
6061         ptys, falling back to old style BSD allocation as a last resort.
6062         Use allegedly more secure Unix98 pty allocation by default.
6063         (allocate_pty_the_old_fashioned_way): New. the last resort.
6064         (unix_create_process): Push ptem, ldterm, ttcompat where
6065         available.  Autoconfiscate.
6066         (try_to_initialize_subtty): New.
6067         (unix_kill_child_process): Proper signal handling for ptys on most
6068         platforms, using special knowledge of AIX, BSD, etc...
6069         (unix_create_process): Always disconnect_controlling_terminal() for
6070         subprocesses, whether using ptys or not.
6071         * process.h: Remove old getpt-dependent PTY code.
6072         * process.c (Fprocess_send_signal): New, obvious generic function.
6073         (decode_signal): New.
6074         (Finterrupt_process):
6075         (Fkill_process):
6076         (Fquit_process):
6077         (Fstop_process):
6078         (Fcontinue_process):
6079         (Fsignal_process): Use decode_signal.
6080         (process_send_signal):
6081         Many docstring corrections.
6082         Allow any signal to be sent to a process object.
6083         * config.h.in: Add symbols for big signal/process overhaul.
6084         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6085         * sysproc.h: Include process-related headers, where available:
6086         sys/stropts.h sys/strtio.h pty.h libutil.h
6087         * s/irix4-0.h:
6088         * s/irix5-0.h:
6089         * s/cygwin32.h:
6090         * s/gnu.h:
6091         * s/linux.h:
6092         * s/hpux.h:
6093         * s/aix3-1.h:
6094         Remove old S&M pty stuff.
6095         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6096         * systty.h: Simplify cpp hackery, improve comments.
6097         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6098
6099         * editfns.c (Fformat_time_string):
6100         Be a little more paranoid with the return value of ctime.
6101
6102         * fileio.c (check_executable):
6103         (check_writable):
6104         Use symbolic constants X_OK, W_OK.
6105
6106         * console-x.c (split_up_display_spec): Fix a warning.
6107
6108 2000-10-02  Martin Buchholz  <martin@xemacs.org>
6109
6110         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6111         * ntproc.c (sys_spawnve): make_string ==> build_string
6112         Small clarity improvements.
6113
6114 2000-09-30  Martin Buchholz  <martin@xemacs.org>
6115
6116         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6117
6118         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6119
6120         * config.h.in (HAVE_STRCASECMP): Remove.
6121
6122 2000-09-29  Martin Buchholz  <martin@xemacs.org>
6123
6124         * redisplay-output.c (redisplay_output_pixmap):
6125         Cleaner and possibly more 64-bit correct code.
6126
6127 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6128
6129         * dumper.c (pdump_load_finish): move restoration of
6130         `noninteractive1' to emacs.c (main_1).
6131         * emacs.c (main_1): protect LISP-visible command-line flags
6132         from pdump_load().
6133
6134 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
6135
6136         * Makefile.in.in (versionclean):  Use EXE_TARGET and
6137         DUMP_TARGET instead of literal program names.
6138
6139 2000-09-20  Martin Buchholz  <martin@xemacs.org>
6140
6141         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6142
6143 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6144
6145         * *: Spelling mega-patch
6146
6147 2000-09-19  Martin Buchholz  <martin@xemacs.org>
6148
6149         * fns.c (bad_bad_turtle):
6150         Delete "Eek!" comment, since we fixed the bug to which it refers.
6151
6152 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6153
6154         * alloca.c: Replace REGISTER with register.
6155
6156 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
6157
6158         * file-coding.c (ucs_to_char): Use countof.
6159
6160 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6161
6162         * file-coding.c: (ucs_to_char):
6163         (complex_vars_of_file_coding):
6164         Use countof instead of sizeof.
6165         Use CHECK_NATNUM instead of CHECK_INT.
6166
6167         * sysdep.c (strcasecmp): Remove.
6168         * device-x.c (ascii_strcasecmp): New.
6169         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6170         Avoid using non-standard non-portable strcasecmp.
6171
6172 2000-09-16  Martin Buchholz  <martin@xemacs.org>
6173
6174         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6175         * font-lock.c: remove reference to emacsfns.h.
6176         * search.c: small doc improvement.
6177         * event-Xt.c: correct file names in comments.
6178         * console-x.h Correct file names in comments.
6179         * frame.c: Correct file names in comments.
6180         * event-stream.c: remove Energize from comments.
6181
6182 2000-09-15  Martin Buchholz  <martin@xemacs.org>
6183
6184         * symeval.h (DEFERROR_STANDARD):
6185         (DEFERROR):
6186         (DEFSYMBOL):
6187         (DEFSYMBOL_NO_DUMP):
6188         (DEFSYMBOL_MULTIWORD_PREDICATE):
6189         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6190         (DEFKEYWORD):
6191         The construct &##name is not sensible C.
6192         Fixes compilation errors with Unixware native compiler.
6193
6194 2000-09-14  Martin Buchholz  <martin@xemacs.org>
6195
6196         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6197         (next_frame_internal): Removed.  We now just have next_frame.
6198         (next_frame):
6199         Write a simpler and cleaner one-pass algorithm.
6200         Remove called_from_delete_device arg and #ifdefed-out code.
6201         (previous_frame):
6202         Renamed from prev_frame.  Update callers.
6203         Cleaned up to have an analogous implementation to next_frame.
6204         (other_visible_frames_internal): Remove the
6205         called_from_delete_device bogus arg, and hence, remove this
6206         function.  Just use other_visible_frames().
6207
6208         * window.c (Fnext_window):
6209         Prettify docstring.
6210         Since next_frame() is guaranteed to return a frame, remove check
6211         for nil inserted in previous patch.
6212         (Fprevious_window):
6213         Prettify docstring.
6214         Make code look more like Fnext_window.
6215         (window_loop):
6216         Respect the `console' arg when iterating through windows.
6217         Fixes bug: (get-buffer-window buffer t device) not respecting
6218         the `device' arg.
6219         This function needs more work, as others have pointed out.
6220
6221         * frame.h: Rename prev_frame to previous_frame.
6222         device_matches_console_spec no longer takes a `frame' arg.
6223
6224         * s/gnu.h:
6225         * s/linux.h:
6226         * s/hpux.h:
6227         Use EMACS_BLOCK_SIGNAL instead of sigblock.
6228         From "Golubev I. N." <gin@mo.msk.ru>.
6229
6230         * make-src-depend: Fix typo.
6231
6232 2000-09-13  Martin Buchholz  <martin@xemacs.org>
6233
6234         * window.c (Fnext_window):
6235         next_frame() might return nil, not a frame.
6236         Fixes this crash:
6237         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6238
6239         * frame.c (next_frame_internal):
6240         We've passed a frame if we've passed its device.
6241         Fixes this crash:
6242         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6243 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6244
6245 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6246
6247         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6248         Allow option to suppress accelerators in menu/dialog items.
6249         (populate_or_checksum_helper): Pass dialog title through above.
6250
6251 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
6252
6253         * event-msw.c (mswindows_key_to_emacs_keysym):
6254         Add "pause" key, fix "menu" key.
6255
6256 2000-09-09  Martin Buchholz  <martin@xemacs.org>
6257
6258         * eval.c (reinit_vars_of_eval):
6259         Increase max_lisp_eval_depth to 1000,
6260         required for thai-xtis.el to byte-compile under some circumstances.
6261
6262 2000-09-04  Martin Buchholz  <martin@xemacs.org>
6263
6264         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6265         From Kenichi Handa.
6266
6267 2000-09-01  Martin Buchholz  <martin@xemacs.org>
6268
6269         * make-src-depend: Make the generated Makefiles smaller.
6270
6271         * s/hpux.h (SETUP_SLAVE_PTY):
6272         Provide a %d in the format string for the errno argument.
6273
6274         * editfns.c (Ftemp_directory):
6275         Warning fix.
6276         Avoid buffer overrun on very long file name.
6277
6278         * input-method-xlib.c (XIM_init_device):
6279         6th parameter of XRegisterIMInstantiateCallback has different
6280         pointer types on different OSes, so simply cast to (void *).
6281
6282         * unexhp9k800.c: Warning fixes.  Fiddly changes.
6283
6284         * sysdll.c (dll_open):
6285         shl_load will hang hard if passed a NULL filename.
6286         Simply return NULL for compatibility with dlopen.
6287         * sysdll.c: Conform to XEmacs coding standards.
6288
6289         * sysdep.c (get_pty_max_bytes):
6290         Support pty input lines longer than 512 bytes on HP-UX 10.20.
6291
6292 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6293
6294         * tooltalk.c: Add #include <syssignal.h>
6295
6296 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
6297
6298         * s/hpux.h: Don't use undefined function sigunblock().
6299
6300 2000-08-31  Martin Buchholz  <martin@xemacs.org>
6301
6302         * config.h.in: Add HAVE_BALLOON_HELP.
6303         * emacs.c: Use HAVE_BALLOON_HELP.
6304         * Makefile.in.in (x_objs):
6305         Make Balloon Help conditional on finding shape.h.
6306
6307 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
6308
6309         * syntax.c (regex_emacs_buffer_p): New variable.
6310         * syntax.h (regex_emacs_buffer_p): extern.
6311         * search.c (looking_at_1):
6312         (string_match_1):
6313         (fast_string_match):
6314         (search_buffer): Set regex_emacs_buffer_p.
6315         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6316         when before_dot, at_dot, after_dot.
6317
6318 2000-08-23  Andy Piper  <andy@xemacs.org>
6319
6320         * gui-x.c (popup_selection_callback): Only set action_occurred
6321         when we really have an image instance.
6322         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6323
6324 2000-08-23  Andy Piper  <andy@xemacs.org>
6325
6326         * gui-msw.c (mswindows_handle_gui_wm_command): set
6327         action_occurred.
6328         * gui-x.c (popup_selection_callback): ditto.
6329
6330         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6331         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6332         (struct Lisp_Image_Instance): add action_occurred flag.
6333
6334         * glyphs.c (redisplay_subwindow): use action_occurred flag.
6335         (image_instance_changed): ditto.
6336         (reset_frame_subwindow_instance_cache): only unmap windows - do
6337         not remove them from the cache also.
6338
6339         * glyphs-widget.c (tab_control_update): better debug.
6340         (progress_gauge_update): ditto.
6341         (layout_update): ditto.
6342         (layout_instantiate): ditto.
6343         (tab_control_order_only_changed): cope with null pending items.
6344
6345         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6346         debug. Force selection of an item when an action occurred. Cope
6347         with null pending_items.
6348         (mswindows_progress_gauge_redisplay): better debug.
6349         * glyphs-x.c (x_tab_control_redisplay): ditto.
6350
6351         * redisplay.c (redisplay_frame): reset the frame cache if the
6352         frame is garbaged.
6353
6354         * window.c (Fset_window_configuration): potentially re-enable
6355         frame cache reset.
6356         (window_unmap_subwindows): need to finalize instances here since
6357         it is only used in mark_window_as_deleted.
6358
6359 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
6360
6361         * nas.c (SndOpenDataForReading):
6362         nas.c (WaveOpenDataForReading):
6363         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6364         Somehow escaped from the 2000-08-14 patch.
6365
6366 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6367
6368         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6369         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6370
6371 2000-08-21  Andy Piper  <andy@xemacs.org>
6372
6373         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6374         window if it is not already displayed.
6375
6376         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6377         it is not already displayed.
6378
6379         * window.c (Fset_window_configuration): don't reset the frame
6380         cache.
6381
6382         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6383         instances from the frame cache if we are actually finalizing them.
6384         (reset_frame_subwindow_instance_cache): reset frame cache only
6385         after unmapping everything.
6386         (map_subwindow): set displayed flag after mapping.
6387
6388 2000-08-21  Martin Buchholz  <martin@xemacs.org>
6389
6390         * data.c (indirect_function):
6391         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6392
6393         * eval.c (function_argcount):
6394         Use original function when signaling errors.
6395
6396 2000-08-18  Andy Piper  <andy@xemacs.org>
6397
6398         * frame.c (delete_frame_internal): use new
6399         free_frame_subwindow_instances name.
6400
6401         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6402         (add_tab_item): make return type correct.
6403         (mswindows_tab_control_instantiate): assert index of tab.
6404         (mswindows_tab_control_redisplay): Re-code to use
6405         gui_item_equal_sans_selected and gui_item_list_find_selected.
6406
6407         * glyphs-widget.c (tab_control_update): Correct comment.
6408
6409         * window.c (window_unmap_subwindows): use new
6410         unmap_subwindow_instance_cache_mapper.
6411         (window_unmap_subwindows_cache_mapper): deleted.
6412         (Fset_window_configuration): comparisons should now be with
6413         EQ. Preserve the subwindow instance cache across configuration
6414         changes.
6415         (allocate_window): ditto.
6416         (make_dummy_parent): ditto.
6417
6418         * glyphs.c (free_frame_subwindow_instances): rename from
6419         free_frame_subwindow_instance_cache. finalize all instances rather
6420         than just those in the display cache.
6421         (finalize_all_subwindow_instances): walk windows unmapping and
6422         finalizing subwindows.
6423         (unmap_subwindow_instance_cache_mapper): moved from
6424         window.c. Allow finalization as well as unmapping.
6425
6426         * gui.c (gui_item_list_find_selected): new function.
6427
6428         * gui.h (gui_item_list_find_selected): declare.
6429
6430         * glyphs-x.c (x_tab_control_redisplay): pick tab
6431         explicitly. Re-code to use gui_item_equal_sans_selected and
6432         gui_item_list_find_selected.
6433
6434         * glyphs-x.h: add lwlib-utils.h
6435
6436         * buffer.c (Frecord_buffer): undo previous change.
6437
6438 2000-08-09  Vin Shelton  <acs@xemacs.org>
6439
6440         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6441         possible.  Create temporary files more securely.  The patch was
6442         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6443         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
6444         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6445         for details.
6446
6447 2000-08-07  Ben Wing  <ben@xemacs.org>
6448
6449         * getloadavg.c: remove duplicate (and windows-breaking)
6450         includes of fcntl.h and sys/file.h.
6451
6452         * nt.c: remove duplicate getloadavg() definition.
6453
6454         * sysdll.h (Qdll_filename_encoding): add missing stand-in
6455         encodings.
6456
6457 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6458
6459         * eval.c (function_argcount): If function needs to be autoloaded
6460         actually use the loaded definition.
6461         GCPRO function.
6462
6463 2000-08-05  Ben Wing  <ben@xemacs.org>
6464
6465         * getloadavg.c: add prototype for getloadavg().  remove
6466         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6467         of the code).  remove duplicate header includes.
6468
6469         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6470
6471         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6472         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6473         useful load average.
6474
6475         * alloc.c (reinit_alloc_once_early): removed references to
6476         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6477         the lisp vars are the only things referencing the malloc_sbrk_*
6478         vars, and they were already if 0'd out.  these vars only exist
6479         in the older malloc.c, which is basically unused, and they're
6480         only for informational purposes.
6481
6482         * m\*.h: removed useless VIRT_ADDR_VARIES.
6483
6484         * m\powerpc.h: removed stray NO_ARG_ARRAY.
6485
6486 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
6487
6488         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6489         color if the image is a mono pixmap.
6490
6491 2000-07-30  Ben Wing  <ben@xemacs.org>
6492
6493         * Makefile.in.in (release):
6494         Remove stray @.
6495
6496         * buffer.c (directory_is_current_directory):
6497         * dired-msw.c (mswindows_get_files):
6498         * dired.c:
6499         * dired.c (Fdirectory_files):
6500         * dired.c (file_name_completion_stat):
6501         * dired.c (Ffile_attributes):
6502         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6503         preprocessor tricks, to avoid problems on some machines
6504         (e.g. SCO).
6505
6506         * callproc.c (egetenv): GC docs.
6507
6508         * console-msw.h:
6509         * console-msw.h (struct mswindows_dialog_id):
6510         * lrecord.h (lrecord_type):
6511         New object for use with MSW dialogs.
6512
6513         * console.h (struct console_methods):
6514         New enable/disable frame methods, for proper modal dialogs.
6515
6516         * device-msw.c (msprinter_default_printer): Fix to follow
6517         proper Mule conventions.
6518
6519         * device-msw.c:
6520         * device-msw.c (signal_open_printer_error):
6521         * device-msw.c (msprinter_init_device):
6522         * device-msw.c (ensure_not_printing):
6523         * device-msw.c (plist_get_margin):
6524         * device-msw.c (Fmsprinter_select_settings):
6525         * device-msw.c (finalize_devmode):
6526         * device-msw.c (Fmsprinter_settings_despecialize):
6527         * device-msw.c (signal_enum_priner_error):
6528         * extents.c (decode_extent):
6529         * extents.c (decode_map_extents_flags):
6530         * extents.c (decode_extent_at_flag):
6531         * extents.c (Fextent_at):
6532         * extents.c (Fextents_at):
6533         * extents.c (symbol_to_glyph_layout):
6534         [[[[2]]]] Use structured errors.
6535
6536         * dialog-msw.c:
6537         * dialog-msw.c (mswindows_is_dialog_msg):
6538         * dialog-msw.c (mark_mswindows_dialog_id):
6539         * dialog-msw.c (dialog_proc):
6540         * dialog-msw.c (handle_question_dialog_box):
6541         * dialog-msw.c (syms_of_dialog_mswindows):
6542         Define new object to clean up marking; use it as a dialog identifier.
6543         Call new delete-dialog-box-hook.
6544
6545         * dialog-x.c (dbox_selection_callback):
6546         * dialog-x.c (dbox_descriptor_to_widget_value):
6547         * dialog-x.c (x_make_dialog_box_internal):
6548         Call new delete-dialog-box-hook.
6549         Return an id.
6550
6551         * dialog.c:
6552         * dialog.c (syms_of_dialog):
6553         * dialog.c (vars_of_dialog):
6554         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6555
6556         * eval.c:
6557         * eval.c (signal_call_debugger):
6558         when noninteractive, output stack traces on the console instead
6559         of in a (never-seen) buffer.
6560
6561         * eval.c (signal_type_error):
6562         * eval.c (invalid_argument_2):
6563         * lisp.h:
6564         new funs for use w/structured errors.
6565
6566         * event-Xt.c:
6567         * event-Xt.c (x_to_emacs_keysym):
6568         * event-Xt.c (describe_event):
6569         * event-Xt.c (emacs_Xt_event_handler):
6570         * event-Xt.c (vars_of_event_Xt):
6571         * event-msw.c:
6572         * event-msw.c (mswindows_wnd_proc):
6573         * event-msw.c (vars_of_event_mswindows):
6574         rename {x,mswindows}-debug-events to debug-{}-events for
6575         consistency with other debug-foo variables.
6576
6577         * event-stream.c:
6578         document next-event more clearly.
6579
6580         * fileio.c (Ffile_name_directory):
6581         * fileio.c (Ffile_name_nondirectory):
6582         * fileio.c (Funhandled_file_name_directory):
6583         * fileio.c (file_name_as_directory):
6584         * fileio.c (Ffile_name_as_directory):
6585         * fileio.c (directory_file_name):
6586         * fileio.c (Fdirectory_file_name):
6587         * fileio.c (Fmake_temp_name):
6588         * fileio.c (Ffile_truename):
6589         * fileio.c (Fsubstitute_in_file_name):
6590         * fileio.c (expand_and_dir_to_file):
6591         * fileio.c (barf_or_query_if_file_exists):
6592         * fileio.c (check_executable):
6593         * fileio.c (Ffile_exists_p):
6594         * fileio.c (Ffile_writable_p):
6595         * fileio.c (Ffile_directory_p):
6596         * fileio.c (Ffile_regular_p):
6597         * fileio.c (Ffile_modes):
6598         * fileio.c (Ffile_newer_than_file_p):
6599         * fileio.c (Fverify_visited_file_modtime):
6600         * fileio.c (Fset_visited_file_modtime):
6601         * fileio.c (auto_save_1):
6602         (1). (2).
6603         fix up gcpro's.
6604
6605         * frame-msw.c:
6606         * frame-msw.c (mswindows_init_frame_1):
6607         * frame-msw.c (mswindows_enable_frame):
6608         * frame-msw.c (error_frame_unsizable):
6609         * frame-msw.c (msprinter_init_frame_1):
6610         * frame-msw.c (msprinter_init_frame_3):
6611         * frame-msw.c (console_type_create_frame_mswindows):
6612         (2).
6613         implement new enable/disable frame methods.
6614
6615         * frame-x.c:
6616         * frame-x.c (x_enable_frame):
6617         * frame-x.c (console_type_create_frame_x):
6618         implement new enable/disable frame methods.
6619
6620         * frame.c:
6621         * frame.c (Fdisable_frame):
6622         * frame.c (syms_of_frame):
6623         * frame.h (struct frame):
6624         implement new enable/disable frame methods/functions.
6625
6626         * general-slots.h:
6627         add initial-focus.
6628
6629         * glyphs-msw.c (mswindows_widget_instantiate):
6630         comment that initial-focus should be implemented.
6631
6632         * glyphs-widget.c:
6633         * glyphs-widget.c (check_valid_instantiator):
6634         * glyphs-widget.c (check_valid_orientation):
6635         * glyphs-widget.c (check_valid_tab_orientation):
6636         * glyphs-widget.c (check_valid_justification):
6637         * glyphs-widget.c (check_valid_border):
6638         * glyphs-widget.c (check_valid_callback):
6639         * glyphs-widget.c (check_valid_int_or_function):
6640         * glyphs-widget.c (check_valid_string_or_vector):
6641         * glyphs-widget.c (check_valid_item_list_1):
6642         * glyphs-widget.c (widget_validate):
6643         * glyphs-widget.c (combo_box_validate):
6644         * glyphs-widget.c (widget_instantiate):
6645         * glyphs-widget.c (syms_of_glyphs_widget):
6646         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6647         * glyphs-widget.c (image_instantiator_combo_box):
6648         * glyphs-widget.c (image_instantiator_scrollbar):
6649         * glyphs-widget.c (image_instantiator_tab_control):
6650         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6651         (2).
6652         support (unimplemented) keyword initial-focus.
6653         reindent long macros.
6654
6655         * glyphs-x.c (x_redisplay_widget):
6656         * glyphs-x.c (x_button_instantiate):
6657         * glyphs-x.c (x_button_redisplay):
6658         * glyphs-x.c (x_progress_gauge_instantiate):
6659         * glyphs-x.c (x_edit_field_instantiate):
6660         * glyphs-x.c (x_combo_box_instantiate):
6661         * glyphs-x.c (x_tab_control_instantiate):
6662         * glyphs-x.c (x_label_instantiate):
6663         * gui-x.c:
6664         * gui-x.c (button_item_to_widget_value):
6665         * gui-x.c (gui_items_to_widget_values_1):
6666         * gui-x.c (gui_item_children_to_widget_values):
6667         * gui-x.c (gui_items_to_widget_values):
6668         * gui-x.h:
6669         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6670         add new flag to gui-parsing routines to indicate whether
6671         accelerator specs should be supported.
6672
6673         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6674
6675         * glyphs.h (struct Lisp_Image_Instance):
6676         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6677         add initial-focus flag.
6678
6679         * gui.c:
6680         * gui.c (syms_of_gui):
6681         * gui.c (vars_of_gui):
6682         clean up menu-no-selection-hook.
6683
6684         * gui.h:
6685         support delete-dialog-box-hook.
6686
6687         * lread.c (Fload_internal):
6688         * lread.c (locate_file_in_directory_mapper):
6689         (1).
6690
6691         * lrecord.h:
6692         * lrecord.h (struct toolbar_button):
6693         * lrecord.h (syms_of_toolbar):
6694         document how to create a new object.
6695
6696         * menubar-msw.c (mswindows_char_is_accelerator):
6697         may be called on frames w/o menus.
6698
6699         * menubar.c (vars_of_menubar):
6700         clean up :filter docs.
6701
6702         * nt.c (readdir):
6703         * ntproc.c:
6704         (1).
6705
6706         * process-nt.c:
6707         * process-nt.c (validate_signal_number):
6708         * process-nt.c (signal_cannot_launch):
6709         * process-nt.c (nt_create_process):
6710         * process-nt.c (nt_send_process):
6711         * process-nt.c (nt_kill_child_process):
6712         * process-nt.c (nt_open_network_stream):
6713         * process-nt.c (syms_of_process_nt):
6714         (2).
6715         delete quote-handling.  call new lisp code that does it better.
6716
6717         * process-unix.c (connect_to_file_descriptor):
6718         * process-unix.c (allocate_pty):
6719         * process-unix.c (unix_send_process):
6720         * process-unix.c (unix_kill_child_process):
6721         * process-unix.c (unix_open_network_stream):
6722         * process-unix.c (unix_open_multicast_group):
6723         (1). (2).
6724
6725         * process.c:
6726         * process.c (Fstart_process_internal):
6727         (2).  need to canonicalize process path even if absolute.
6728
6729         * select-msw.c (symbol_to_ms_cf):
6730         * select-msw.c (ms_cf_to_symbol):
6731         * select-msw.c (cf_is_autofreed):
6732         * select-msw.c (mswindows_destroy_selection):
6733         * select.c:
6734         * select.c (syms_of_select):
6735         * select.h:
6736         support dibv5, fix bugs. (from Mike Alexander)
6737
6738         * select.c (Fget_selection_internal):
6739         * select.c (select_convert_out):
6740
6741         * sysdep.c:
6742         * sysdep.c (xemacs_stat):
6743         renamed.
6744
6745         * sysdep.c (mkdir):
6746         * sysdep.c (rmdir):
6747         but keep original stat() here because we provide encapsulation
6748         around these funs.
6749
6750         * sysfile.h:
6751         * sysfile.h (fstat):
6752         remove stat garbage.
6753
6754         * syswindows.h:
6755         fix X/MSW conflict.
6756         don't include tchar.h.  it's inappropriate because it makes
6757         compile-time distinctions when we want runtime distinctions.
6758         (we provide our own tchar replacements)
6759
6760         * toolbar.c:
6761         use default object printer for toolbar-button.
6762
6763         * unexcw.c:
6764         make sure we don't encapsulate.
6765
6766         * window.c (vars_of_window):
6767         emphasize that temp-buffer-show-hook is obsolete.
6768
6769 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6770
6771         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6772         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6773
6774         * events.c (Fevent_timestamp_lessp):
6775         Not 64-bit clean.  Use EMACS_INT, not int.
6776
6777 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6778
6779         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6780         unsigned int and changed the last enum to
6781         lrecord_type_last_built_in_type.
6782         (lrecord_implementations_table): changed prototype to know how
6783         long the array is supposed to be.
6784         (lrecord_type_count): new unsigned int to keep track of the
6785         current number of lisp lrecord types.
6786         (DEFINE_EXTERNAL_LRECORD):
6787         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6788         dynamic-modules to declare new lisp types. They are the same
6789         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6790         int for each new type, and increment lrecord_type_count by 1.
6791
6792         * alloc.c (lrecord_implementations_table): Changed to reference
6793         lrecord_type_last_built_in_type for the size of the array.
6794         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6795
6796 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6797
6798         * glyphs.h (check_valid_item_list): Renamed from
6799         check_valid_item_list_1.
6800
6801 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6802
6803         * select.c (Qselect_coerce): New.
6804         * select.c (Vselection_coercion_alist): New.
6805         * select.c (syms_of_select): Declare.
6806         * select.c (get-selection-internal): Use it.
6807         Use the new select-coerce functionality.
6808
6809         * select.c (select_coerce): New.
6810         * select.h (select_coerce): Declare.
6811         New function to coerce one type of data into another.
6812
6813 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6814
6815         * callproc.c (Fcall_process_internal):
6816         (Fcall_process_internal):
6817         * process-unix.c (unix_create_process):
6818         Save and restore the value of errno, so that error messages are accurate.
6819
6820 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6821
6822         * elhash.c (print_hash_table):
6823         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6824         Prettify docstrings and indentation.
6825
6826 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6827
6828         * window.c (Fwindow_pixel_edges): Subtract frame border and
6829         gutter size.
6830
6831 2000-07-31  Andy Piper  <andy@xemacs.org>
6832
6833         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6834         will acknowledge the change.
6835
6836         * glyphs.h: declare tab_control_order_only_changed.
6837
6838         * glyphs-x.c (x_tab_control_redisplay): use
6839         tab_control_order_only_changed.
6840
6841         * glyphs-widget.c (tab_control_order_only_changed): new function.
6842
6843         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6844         tab_control_order_only_changed.
6845
6846         * gui.c (gui_item_equal_sans_selected): new function.
6847         (gui_item_equal): use it.
6848
6849         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6850         :properties in favor of :items..
6851
6852         * glyphs-widget.c (check_valid_item_list): rename from
6853         check_valid_item_list_1.
6854         (check_valid_item_list_1): renamed.
6855         (combo_box_validate): deprecate :properties in favor of :items.
6856         (widget_instantiate): ditto.
6857         (tab_control_update): ditto.
6858         (image_instantiator_combo_box): ditto.
6859         (image_instantiator_tree_view): ditto.
6860         (image_instantiator_tab_control): ditto.
6861         (layout_post_instantiate): remove dead code.
6862
6863         * print.c (debug_print_no_newline): only write to debugger if in
6864         WIN32_NATIVE.
6865
6866         * elhash.c (Fmake_hash_table): update doc string.
6867
6868         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6869         messages whilst in GC. This at least stops XEmacs crashing but has
6870         the potential for wierd behaviour.
6871
6872 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6873
6874         * config.h.in:
6875         Make existence of s&m files optional.
6876
6877         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6878         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6879         * s/gnu.h: Remove HAVE_GETLOADAVG.
6880         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6881         * s/sol2.h: Remove HAVE_GETLOADAVG.
6882         * lisp.h: Remove getloadavg() declaration.
6883         * fns.c:
6884         Include <sys/loadavg.h> if available.
6885         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6886         * config.h.in:  Group together getloadavg()-related macros.
6887         Use only configure-time tests to detect getloadavg().
6888
6889 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6890
6891         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6892
6893 2000-07-25  Andy Piper  <andy@xemacs.org>
6894
6895         * syswindows.h: add tchar.h for native builds.
6896
6897         * frame.c (syms_of_frame): remove set-glyph-image.
6898
6899         * general-slots.h: add Qset_glyph_image.
6900
6901         * glyphs-widget.c (layout_update): add domain arg to
6902         set-glyph-image.
6903         (syms_of_glyphs_widget): remove set-glyph-image.
6904
6905 2000-07-23  Ben Wing  <ben@xemacs.org>
6906
6907         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6908         Vpopup_frame_list.
6909
6910 2000-07-22  Andy Piper  <andy@xemacs.org>
6911
6912         * symsinit.h: add syms_of_win32().
6913
6914         * gui-msw.c (syms_of_gui_mswindows): remove
6915         Fmswindows_shell_execute.
6916         (Fmswindows_shell_execute): moved to win32.c.
6917
6918         * emacs.c (main_1): add syms_of_win32 ().
6919
6920         * win32.c (init_potentially_nonexistent_functions): rewrite in
6921         compiler-friendly terms.
6922         (Fmswindows_shell_execute): move here from gui-msw.c.
6923         (syms_of_win32): new.
6924
6925         * device-msw.c (Fmswindows_printer_list): clean up args to
6926         EnumPrinters.
6927         Don't include tchar under cygwin or mingw.
6928         (msprinter_default_printer): make cygwin-friendly.
6929
6930 2000-07-21  Andy Piper  <andy@xemacs.org>
6931
6932         * glyphs-widget.c (image_instantiator_tree_view): use tab
6933         control's update function.
6934         (layout_property): new function. Retrieve items.
6935
6936         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6937         function. Re-populate the tree view from the pending items.
6938
6939         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6940         is designated the parent if the domain is an image instance. This
6941         is needed so that dirtiness can be cascade up the hierarchy and
6942         thus for layout children to be redisplayed correctly.
6943         (allocate_image_instance): rename glyph -> parent.
6944
6945         * redisplay.h: change redisplay_output_layout signature.
6946
6947         * redisplay-msw.c (mswindows_output_display_block): use domain
6948         arg.
6949
6950         * redisplay-x.c (x_output_display_block): use domain arg.
6951
6952 2000-07-10  Andy Piper  <andy@xemacs.org>
6953
6954         * window.c (Fset_window_configuration): add comment.
6955
6956         * redisplay-output.c (compare_runes):
6957         (redisplay_output_subwindow): redisplay rather than update subwindow.
6958         (redisplay_output_layout): ditto.
6959
6960         * redisplay-msw.c (mswindows_frame_output_end):
6961         (mswindows_frame_output_end): make defer window pos optional.
6962
6963         * lisp.h: add Flast.
6964
6965         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6966         normalize method. Change update method to be for changed
6967         instantiators. Add redisplay method. Change signature of layout
6968         method.
6969         (struct Lisp_Image_Instance): add instantiator.
6970         (IMAGE_INSTANCE_INSTANTIATOR): new.
6971         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6972         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6973         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6974
6975         * glyphs.c:
6976         (find_instantiator_differences): new function.
6977         (Fset_instantiator_property): new convenience function.
6978         (check_image_instance_structure): strictly check for vector
6979         instantiators.
6980         (normalize_image_instantiator): make non-static.
6981         (instantiate_image_instantiator): pass on dest_mask and use new
6982         signatures for image_instance_layout and friends.
6983         (mark_image_instance): mark the instantiator. Mark the subwindow
6984         face not the widget face.
6985         (image_instance_equal): add instantiator.
6986         (image_instance_hash): ditto.
6987         (allocate_image_instance): ditto.
6988         (Fset_image_instance_property): removed.
6989         (Fimage_instance_file_name): ditto.
6990         (Fcolorize_image_instance): ditto.
6991         (image_instance_layout): add offsets to be set.
6992         (update_image_instance): new function. update an image instance
6993         from its changed instantiator.
6994         (inherit_normalize): add dest_mask.
6995         (xbm_normalize): ditto.
6996         (xface_normalize): ditto.
6997         (xpm_normalize): ditto.
6998         (text_update): set_property -> update.
6999         (image_instantiate): use the glyph identity as a hash key, not the
7000         instantiator.
7001         (glyph_width): use new image_instance_layout signature.
7002         (glyph_ascent): ditto.
7003         (glyph_descent): ditto.
7004         (glyph_height): ditto.
7005         (glyph_query_geometry): ressurrect.
7006         (glyph_layout): ditto.
7007         (redisplay_subwindow): update -> redisplay.
7008         (syms_of_glyphs): add Fset_instantiator_property.
7009         (image_instantiator_format_create): set_property -> update.
7010
7011         * glyphs-x.c:
7012         (autodetect_normalize): add dest_maks to signature.
7013         (x_redisplay_subwindow): update -> redisplay.
7014         (x_redisplay_widget): ditto.
7015         (x_button_redisplay): ditto.
7016         (x_progress_gauge_redisplay): ditto.
7017         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
7018         stacking order.
7019         (console_type_create_glyphs_x): update -> redisplay.
7020         (image_instantiator_format_create_glyphs_x): ditto.
7021
7022         * glyphs-widget.c:
7023         (check_valid_instantiator): disallow glyphs in the instantiator,
7024         they must now be vectors.
7025         (check_valid_instantiator_list): ditto.
7026         (glyph_instantiator_to_glyph): use internal symbol rather than
7027         intern.
7028         (widget_update): renamed from widget_set_property. Call cascaded
7029         update methods.
7030         (redisplay_widget): renamed from update_widget.
7031         (widget_layout): image_instance_layout now takes position as well
7032         as size.
7033         (widget_normalize): ditto.
7034         (widget_instantiate): ditto.
7035         (tab_control_query_geometry) ditto.:
7036         (tab_control_update): renamed from tab_control_set_property.
7037         (progress_gauge_update): set_property -> update.
7038         (layout_normalize): rewrite so that child instantiators are
7039         normalized also.
7040         (layout_update): new function. Create glyphs from the normalized
7041         children and cope with any other layout keywords. We do not
7042         instantiate children here that will be take care of by
7043         redisplay_output_layout.
7044         (layout_instantiate): call layout_update and not much else.
7045         (layout_post_instantiate): not sure whether this is needed
7046         anymore.
7047         (layout_query_geometry): query glyph geometry rather than
7048         image_instance geometry.
7049         (layout_layout): set offsets from pass in parameters. Use glyph
7050         geometry and layout functions rather than image instance ones.
7051         (native_layout_layout): ditto.
7052         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7053         (image_instantiator_widget): set_property -> update.
7054         (image_instantiator_buttons): ditto.
7055         (image_instantiator_progress_guage): ditto.
7056         (image_instantiator_tab_control): ditto.
7057         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7058         (image_instantiator_layout): add update method.
7059
7060         * glyphs-msw.c (bmp_normalize):
7061         (mswindows_resource_normalize): add dest_mask so that it can be
7062         proprogated by layout_normalize.
7063         (begin_defer_window_pos): make optional because it may not be the
7064         right thing to do and it introduces differences with X.
7065         (mswindows_unmap_subwindow): ditto.
7066         (mswindows_map_subwindow): ditto.
7067         (mswindows_redisplay_subwindow): renamed from
7068         mswindows_update_subwindow.
7069         (mswindows_redisplay_widget): ditto.
7070         (mswindows_button_redisplay): renamed from
7071         mswindows_button_update. Update is now what the instantiation
7072         function does for a changed instantiator.
7073         (mswindows_progress_gauge_instantiate): set the progress value
7074         here if appropriate.
7075         (mswindows_tab_control_redisplay): cope with re-ordering of the
7076         members of the tab widget by simply selecting the new top
7077         widget. This makes things appear ok if you click on a tab.
7078         (mswindows_combo_box_instantiate): image_instance_layout now takes
7079         position as well as size.
7080         (mswindows_progress_gauge_redisplay): renamed from
7081         mswindows_progress_gauge_update.
7082         (console_type_create_glyphs_mswindows): fix update -> redisplay.
7083         (image_instantiator_format_create_glyphs_mswindows): ditto.
7084
7085         * glyphs-eimage.c (jpeg_normalize):
7086         (gif_normalize):
7087         (png_normalize):
7088         (tiff_normalize): add dest_mask so that it can be proprogated by
7089         layout_normalize.
7090
7091         * elhash.c:
7092         (print_hash_table):
7093         (hash_table_weakness_validate):
7094         (decode_hash_table_weakness):
7095         (Fhash_table_weakness):
7096         (Fhash_table_type):
7097         (syms_of_elhash): use Ben's naming scheme for hashtable types..
7098
7099         * console.h (struct console_methods): move update_* to
7100         redisplay_*.
7101
7102 2000-07-20  Ben Wing  <ben@xemacs.org>
7103
7104         * *.[ch] (XSETOBJ): remove unused middle argument.
7105         lisp-disunion.h: correct wrap_object() to one argument.
7106
7107 2000-07-15  Ben Wing  <ben@xemacs.org>
7108
7109         * s/cygwin32.h:
7110         * s/cygwin32.h (CYGWIN_CONV_PATH):
7111         Add missing logb prototype for v1.1.
7112         Use post-b20 names and alias to pre-b20 names when pre-b20.
7113
7114         * s/windowsnt.h: [5].
7115
7116 2000-07-15  Ben Wing  <ben@xemacs.org>
7117
7118         * Makefile.in.in (x_objs):
7119         * Makefile.in.in (sheap_objs):
7120         * Makefile.in.in (objs):
7121         added win32.o, cosmetic cleanups.
7122
7123         * alloc.c (Fmake_byte_code):
7124         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7125         etc. macros which declare their own args now.
7126
7127         * alloc.c (syms_of_alloc):
7128         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7129
7130         * buffer.c:
7131         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7132
7133         * buffer.c (Fget_file_buffer):
7134         Fixed GCPRO problem.
7135
7136         * buffer.c (get_truename_buffer):
7137         Fixed comment about GC checking.
7138
7139         * buffer.c (syms_of_buffer):
7140         Undeclared those dedicated frame funs.
7141         [2].
7142
7143         * buffer.h:
7144         Define convenience macros for internal/external conversions.
7145         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7146         and Qenvironment_variable_encoding for cleaner code.
7147
7148         * bufslots.h:
7149         Remove dedicated-frame; in lisp.
7150
7151         * bytecode.c (funcall_compiled_function):
7152         [1].
7153
7154         * bytecode.c (syms_of_bytecode):
7155         [2].
7156
7157         * console-msw.c:
7158         * console-msw.c (mswindows_show_console): Rewrote.
7159
7160         * console-msw.c (Fmswindows_debugging_output): New.
7161         Sends to OutputDebugString (special MSWin debugger interface).
7162
7163         * console-msw.c (Fmswindows_message_box):
7164         Fixed stupid bugs so it works when called from kill-emacs.
7165
7166         * console-msw.c (syms_of_console_mswindows):
7167         Declare Fmswindows_debugging_output.
7168
7169         * console-msw.h:
7170         New MSWin prototypes.
7171
7172         * console-msw.h (struct mswindows_frame):
7173         New entry last-click-mods for improved button-modifier support.
7174
7175         * console-msw.h (FRAME_MSWINDOWS_POPUP):
7176         New struct entry `popup' with corresponding accessor.
7177
7178         * console-x.c:
7179         * console-x.c (split_up_display_spec):
7180         * console-x.c (get_display_arg_connection):
7181         * console-x.c (x_semi_canonicalize_console_connection):
7182         * console-x.c (x_canonicalize_device_connection):
7183         [[[6]]]: Change char to more specific type.
7184         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7185
7186         * console-x.c (x_semi_canonicalize_console_connection):
7187         * console-x.c (x_canonicalize_device_connection):
7188         [[[9]]]: Fix up error signalling to use new structured error system.
7189
7190         * console-x.h:
7191         [[[4]]]: Define codesys aliases:
7192         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7193         Qx_color_name_encoding, Qx_display_name_encoding.
7194
7195         * console.h (struct console_methods):
7196         New method make_dialog_box_internal supersedes older
7197         popup_dialog_box method.
7198
7199         * data.c:
7200         Define many new errors, part of new structured errors.
7201
7202         * data.c (init_errors_once_early):
7203         * data.c (syms_of_data):
7204         [2].
7205
7206         * device-msw.c (mswindows_init_device):
7207         [[[5]]]: Cleanup to support NT 3.51.
7208
7209         * device-msw.c (decode_devmode): Cleanup.
7210
7211         * device-msw.c (mswindows_handle_print_setup_dialog_box):
7212         * device-msw.c (mswindows_handle_print_dialog_box):
7213         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7214         * device-msw.c (syms_of_device_mswindows):
7215         Delete the dialog box primitives recently introduced by Kirill and
7216         instead interface to general dialog box interface.
7217
7218         * device-x.c:
7219         * device-x.c (compute_x_app_name):
7220         * device-x.c (x_init_device):
7221         * device-x.c (Fx_valid_keysym_name_p):
7222         * device-x.c (Fx_set_font_path):
7223         [6].
7224         [7].
7225
7226         * device.h (wrap_device): New.
7227         First of its kind; meant to replace XSETDEVICE.
7228
7229         * dialog-msw.c: Many file-dialog symbols.
7230
7231         * dialog-msw.c (mswindows_register_popup_frame): New.
7232         * dialog-msw.c (mswindows_is_dialog_msg): New.
7233         For supporting kbd traversal in dialog boxes.
7234
7235         * dialog-msw.c (dialog_proc):
7236         Support hitting ESC in dialogs.
7237
7238         * dialog-msw.c (struct):
7239         Common dialog box errors.
7240
7241         * dialog-msw.c (handle_file_dialog_box): New.
7242         Add file dialog code.
7243
7244         * dialog-msw.c (handle_question_dialog_box):
7245         Redo existing code to support new question dialog syntax.
7246
7247         * dialog-msw.c (console_type_create_dialog_mswindows):
7248         We support new dialog console method.
7249
7250         * dialog-msw.c (syms_of_dialog_mswindows):
7251         * dialog-msw.c (vars_of_dialog_mswindows):
7252         New file dialog symbols, vars.
7253
7254         * dialog-x.c:
7255         * dialog-x.c (maybe_run_dbox_text_callback):
7256         * dialog-x.c (dbox_descriptor_to_widget_value):
7257         * dialog-x.c (x_make_dialog_box_internal):
7258         * dialog-x.c (console_type_create_dialog_x):
7259         Mule-ize entire file.
7260         Redo to support question dialog syntax.
7261         [6].
7262
7263         * dialog.c:
7264         * dialog.c (Fmake_dialog_box_internal):
7265         * dialog.c (syms_of_dialog):
7266         Kill old popup-dialog-box, replace with new primitive.
7267         Just call device method or signal error.
7268
7269         * eldap.c (Fldap_open):
7270         * eldap.c (Fldap_search_basic):
7271         * eldap.c (Fldap_add):
7272         * eldap.c (Fldap_modify):
7273         [1].
7274         [7].
7275
7276         * emacs.c:
7277         * emacs.c (make_arg_list_1):
7278         * emacs.c (make_arg_list):
7279         Mule-ize call to dll_init().
7280         [6].
7281         [8].
7282
7283         * emacs.c (make_argc_argv):
7284         * emacs.c (free_argc_argv):
7285         * emacs.c (init_cmdargs):
7286         * emacs.c (main_1):
7287         * emacs.c (Fkill_emacs):
7288         * emacs.c (Fdump_emacs):
7289         Update comments about what can be used in syms_* etc.
7290         Call init_win32() when necessary.
7291         Fix up MS Win dialog box in kill-buffer to actually work right.
7292         [7].
7293
7294         * eval.c:
7295         * eval.c (For):
7296         * eval.c (Fand):
7297         * eval.c (Fprogn):
7298         * eval.c (Fprog1):
7299         * eval.c (Fprog2):
7300         * eval.c (FletX):
7301         * eval.c (Flet):
7302         * eval.c (condition_case_3):
7303         * eval.c (Feval):
7304         * eval.c (function_argcount):
7305         * eval.c (funcall_lambda):
7306         [1].
7307
7308         * eval.c (type_error): New.
7309         * eval.c (maybe_type_error): New.
7310         * eval.c (continuable_type_error): New.
7311         * eval.c (maybe_continuable_type_error): New.
7312         * eval.c (type_error_with_frob): New.
7313         * eval.c (maybe_type_error_with_frob): New.
7314         * eval.c (continuable_type_error_with_frob): New.
7315         * eval.c (maybe_continuable_type_error_with_frob): New.
7316         New functions for use with structured errors.
7317
7318         * event-Xt.c:
7319         * event-Xt.c (x_event_to_emacs_event):
7320         Buttons are now modifiers too.
7321
7322         * event-Xt.c (emacs_Xt_current_event_timestamp):
7323         Implement new event method.
7324         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7325
7326         * event-msw.c:
7327         * event-msw.c (ntpipe_shove_writer): [5].
7328         * event-msw.c (mswindows_enqueue_mouse_button_event):
7329         * event-msw.c (mswindows_drain_windows_queue):
7330         * event-msw.c (mswindows_wnd_proc): [7].
7331         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7332         * event-msw.c (mswindows_modifier_state):
7333         Throughout: support new button modifiers.
7334
7335         * event-msw.c (emacs_mswindows_current_event_timestamp):
7336         Implement new event method.
7337         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7338
7339         * event-stream.c:
7340         * event-stream.c (event_stream_current_event_timestamp): New.
7341         * event-stream.c (maybe_kbd_translate): New functionality.
7342         * event-stream.c (vars_of_event_stream):
7343         Document new kbd-translate-table functionality.
7344
7345         * event-stream.c (Fcurrent_event_timestamp): New.
7346         New primitive for use in fabricated events.
7347         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7348
7349         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7350
7351         * events.c:
7352         * events.c (Fmake_event):
7353         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7354         [1].
7355         [9].
7356
7357         * events.c (format_event_object): fix gcc warnings.
7358
7359         * events.c (Fevent_timestamp): Document new primitives.
7360
7361         * events.c (TIMESTAMP_HALFSPACE): New.
7362
7363         * events.c (Fevent_timestamp_lessp): New.  New primitive for
7364         comparing timestamps correctly (half-space algorithm).
7365
7366         * events.c (Fevent_modifier_bits): Doc fix.
7367
7368         * events.c (Fevent_modifiers): Major doc addition.
7369         * events.c (event_x_y_pixel_internal): Typo fix.
7370         * events.c (syms_of_events): Declare new primitives.
7371
7372         * events.h:
7373         Update long comment for button modifiers, timestamps.
7374
7375         * events.h (struct event_stream):
7376         New current_event_timestamp method.
7377
7378         * extents.c:
7379         * extents.c (extent_in_region_p):
7380         * extents.c (decode_extent):
7381         * extents.c (Fset_extent_parent):
7382         * extents.c (decode_map_extents_flags):
7383         Fix gcc warnings.
7384         [9].
7385
7386         * extents.c (struct extent_at_arg):
7387         * extents.c (decode_extent_at_flag):
7388         * extents.c (extent_at_mapper):
7389         * extents.c (extent_at_bytind):
7390         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7391         * extents.c (Fextents_at): New primitive. [9].
7392         * extents.c (symbol_to_glyph_layout): [9].
7393         Support new primitive `extents-at'.
7394
7395
7396         * extents.c (get_text_property_bytind):
7397         extent_at_bytind has another arg.
7398         [9].
7399
7400         * extents.c (syms_of_extents): New primitive.
7401
7402         * file-coding.c (Fmake_coding_system): [1].
7403         * file-coding.c (subsidiary_coding_system): fix gcc warning
7404         * file-coding.c (syms_of_file_coding): [2].
7405
7406         * fileio.c (Fexpand_file_name):
7407         * fileio.c (Fsysnetunam):
7408         * fileio.c (Ffile_exists_p):
7409         * fileio.c (Ffile_executable_p):
7410         * fileio.c (Fverify_visited_file_modtime):
7411         Clean up GCPROing.
7412
7413         * fileio.c (syms_of_fileio): [2].
7414
7415         * filelock.c (lock_file_1):
7416         * filelock.c (current_lock_owner):
7417         * filelock.c (lock_if_free):
7418         * filelock.c (lock_file):
7419         * filelock.c (unlock_file):
7420         Clean up GCPROing.
7421
7422         * fns.c (concat): Fix gcc warning.
7423
7424         * fns.c (Fmember):
7425         * fns.c (Fold_member):
7426         * fns.c (Fmemq):
7427         * fns.c (Fold_memq):
7428         * fns.c (memq_no_quit):
7429         * fns.c (Fassoc):
7430         * fns.c (Fold_assoc):
7431         * fns.c (Fassq):
7432         * fns.c (Fold_assq):
7433         * fns.c (assq_no_quit):
7434         * fns.c (Frassoc):
7435         * fns.c (Fold_rassoc):
7436         * fns.c (Frassq):
7437         * fns.c (Fold_rassq):
7438         * fns.c (rassq_no_quit):
7439         * fns.c (Fdelete):
7440         * fns.c (Fold_delete):
7441         * fns.c (Fdelq):
7442         * fns.c (Fold_delq):
7443         * fns.c (delq_no_quit):
7444         * fns.c (Fremassoc):
7445         * fns.c (Fremassq):
7446         * fns.c (remassq_no_quit):
7447         * fns.c (Fremrassoc):
7448         * fns.c (Fremrassq):
7449         * fns.c (remrassq_no_quit):
7450         * fns.c (Freverse):
7451         * fns.c (mapcar1):
7452         [1].
7453
7454         * frame-msw.c (mswindows_init_frame_1):
7455         * frame-msw.c (mswindows_delete_frame):
7456         Register popups with dialog code so keyboard traversing works.
7457
7458         * frame-tty.c (tty_raise_frame_no_select): [1].
7459
7460         * frame-x.c:
7461         * frame-x.c (x_set_frame_text_value):
7462         * frame-x.c (x_set_frame_properties):
7463         * frame-x.c (x_create_widgets):
7464         [7].
7465
7466         * frame.c:
7467         * frame.c (Fmouse_pixel_position): Minor doc fixes.
7468
7469         * frame.h (wrap_frame): New.
7470         Macro like wrap_device.
7471
7472         * general.c:
7473         * general.c (SYMBOL):
7474         * general.c (syms_of_general):
7475         Major reorg.  This is now just a wrapper and symbols themselves
7476         are listed in general-slots.h.
7477
7478         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7479         * glyphs-msw.c (mswindows_resource_instantiate): [5].
7480
7481         * glyphs-msw.c (mswindows_native_layout_instantiate):
7482         Add DS_CONTROL so keyboard traversal will work.
7483
7484         * glyphs-widget.c:
7485         * glyphs-widget.c (syms_of_glyphs_widget):
7486         Move some symbols to general-slots.h.
7487
7488         * glyphs-x.c:
7489         * glyphs-x.c (xbm_instantiate_1):
7490         * glyphs-x.c (x_xbm_instantiate):
7491         * glyphs-x.c (x_xface_instantiate):
7492         * glyphs-x.c (autodetect_instantiate):
7493         * glyphs-x.c (cursor_font_instantiate):
7494         * glyphs-x.c (x_update_widget):
7495         * glyphs-x.c (x_widget_instantiate):
7496         * glyphs.c (bitmap_to_lisp_data):
7497         * glyphs.c (pixmap_to_lisp_data):
7498         [7].
7499
7500         * glyphs.c (syms_of_glyphs):
7501         [2].
7502
7503         * gui-x.c:
7504         * gui-x.c (print_widget_value):
7505         * gui-x.c (menu_separator_style_and_to_external):
7506         * gui-x.c (add_accel_and_to_external):
7507         * gui-x.c (button_item_to_widget_value):
7508         * gui-x.c (gui_items_to_widget_values_1):
7509         * gui-x.c (gui_items_to_widget_values):
7510         * gui-x.c (syms_of_gui_x):
7511         * gui-x.c (vars_of_gui_x):
7512         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7513         [9].
7514
7515         * gui-x.h:
7516         Muleize, prototype changes matching gui-x.c.
7517
7518         * gui.c:
7519         * gui.c (separator_string_p):
7520         * gui.c (gui_item_add_keyval_pair):
7521         * gui.c (make_gui_item_from_keywords_internal):
7522         * gui.c (signal_too_long_error):
7523         * gui.c (parse_gui_item_tree_item):
7524         * gui.c (syms_of_gui):
7525         * gui.c (vars_of_gui):
7526         * gui.h:
7527         menu-no-selection-hook moved here (used by MSWin).
7528         Move some symbols to general-slots.h.
7529         [6].
7530         [9].
7531
7532         * insdel.c (get_buffer_pos_char):
7533         * insdel.c (get_buffer_range_char):
7534         Add GC comments.
7535
7536         * keymap.c (keymap_lookup_directly):
7537         * keymap.c (keymap_store):
7538         * keymap.c (ensure_meta_prefix_char_keymapp):
7539         * keymap.c (describe_map):
7540         * keymap.h:
7541         Support new button modifiers.
7542
7543         * lisp-disunion.h (wrap_object):
7544         * lisp-disunion.h (XSETOBJ):
7545         Rename make_obj to wrap_object.
7546
7547         * lisp-union.h:
7548         * lisp-union.h (make_int):
7549         * lisp-union.h (make_char):
7550         Support wrap_object.
7551
7552         * lisp.h:
7553         * lisp.h (LIST_LOOP):
7554         * lisp.h (EXTERNAL_LIST_LOOP):
7555         * lisp.h (LIST_LOOP_2):
7556         * lisp.h (EXTERNAL_LIST_LOOP_1):
7557         * lisp.h (EXTERNAL_LIST_LOOP_2):
7558         * lisp.h (EXTERNAL_LIST_LOOP_3):
7559         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7560         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7561         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7562         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7563         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7564         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7565         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7566         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7567         * lisp.h (struct Lisp_Symbol):
7568         * lisp.h (maybe_continuable_error_with_frob):
7569         Fix up section comments.
7570         Add new types for char to indicate usage.
7571         Delete symbols auto-generated from general-slots.h.
7572         Add prototypes for structured error functions.
7573         Add long comments describing looping macros and change interface
7574         so that lvalues are automatically declared.
7575         Add NO_DECLARE macro in case callers want to declare lvalues
7576         themselves.
7577
7578         * lread.c (read_syntax_error):
7579         * lread.c (continuable_read_syntax_error):
7580         * lread.c (read_structure):
7581         * lread.c (sequence_reader):
7582         * lread.c (read_list_conser):
7583         * lread.c (read_compiled_function):
7584         Rename syntax_error and continuable_syntax_error to avoid clash
7585         with same-named structured error functions.
7586
7587         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7588         * menubar-msw.c (populate_menu_add_item):
7589         * menubar-msw.c (populate_or_checksum_helper):
7590         [5].
7591         [9].
7592
7593         * menubar-x.c:
7594         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7595         Mule-ize whole file.
7596
7597         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7598
7599         * mule-charset.c (Fmake_charset):
7600         * mule-wnnfns.c (Fwnn_set_param):
7601         [1].
7602
7603         * ntproc.c (create_child):
7604         * ntproc.c (Fwin32_set_current_locale):
7605         Add comments portending doom.
7606
7607         * objects-msw.c:
7608         * objects-msw.c (old_font_enum_callback_2):
7609         * objects-msw.c (font_enum_callback_1):
7610         * objects-msw.c (mswindows_enumerate_fonts):
7611         [5].
7612
7613         * objects-x.c:
7614         * objects-x.c (allocate_nearest_color):
7615         * objects-x.c (x_parse_nearest_color):
7616         * objects-x.c (x_initialize_color_instance):
7617         * objects-x.c (x_print_color_instance):
7618         * objects-x.c (x_finalize_color_instance):
7619         * objects-x.c (x_valid_color_name_p):
7620         * objects-x.c (x_initialize_font_instance):
7621         * objects-x.c (x_print_font_instance):
7622         * objects-x.c (valid_x_font_name_p):
7623         * objects-x.c (truename_via_FONT_prop):
7624         * objects-x.c (truename_via_random_props):
7625         * objects-x.c (truename_via_XListFonts):
7626         * objects-x.c (x_font_truename):
7627         * objects-x.c (x_font_instance_truename):
7628         * objects-x.c (x_font_instance_properties):
7629         * objects-x.c (x_list_fonts):
7630         * objects-x.c (x_find_charset_font):
7631         Mule-ize entire file.
7632         [7].
7633
7634         * objects-x.h:
7635         Mule-verify.
7636
7637         * print.c:
7638         * print.c (std_handle_out_external):
7639         * print.c (debug_print_no_newline):
7640         * print.c (syms_of_print):
7641         Output to all debugger kinds in debug-print.
7642         Fix console-output code under MSWin to actually work.
7643
7644         * process-nt.c (send_signal):
7645         * process-nt.c (nt_create_process):
7646         Use newer Unicode macros.
7647
7648         * process-unix.c (unix_create_process):
7649         * process-unix.c (unix_canonicalize_host_name):
7650         * process-unix.c (unix_open_network_stream):
7651         [7].
7652
7653         * scrollbar-x.c:
7654         Mule-verify.
7655
7656         * search.c (syms_of_search):
7657         [2].
7658
7659         * select-msw.c (mswindows_destroy_selection):
7660         Use LIST_LOOP_2.
7661
7662         * select-x.c (symbol_to_x_atom):
7663         [7].
7664
7665         * select.c (syms_of_select):
7666         [2].
7667
7668         * sound.c (Fplay_sound_file):
7669         [7].
7670
7671         * specifier.c:
7672         * specifier.c (decode_specifier_type):
7673         * specifier.c (Fvalid_specifier_locale_type_p):
7674         * specifier.c (check_valid_locale_or_locale_type):
7675         * specifier.c (decode_locale):
7676         * specifier.c (decode_locale_type):
7677         * specifier.c (decode_locale_list):
7678         * specifier.c (check_valid_domain):
7679         * specifier.c (decode_specifier_tag_set):
7680         * specifier.c (Fcanonicalize_tag_set):
7681         * specifier.c (Fdefine_specifier_tag):
7682         * specifier.c (Fspecifier_tag_predicate):
7683         * specifier.c (check_valid_inst_list):
7684         * specifier.c (check_valid_spec_list):
7685         * specifier.c (decode_how_to_add_specification):
7686         * specifier.c (check_modifiable_specifier):
7687         * specifier.c (specifier_add_spec):
7688         * specifier.c (boolean_validate):
7689         * specifier.c (display_table_validate):
7690         [9].
7691
7692         * specifier.c (syms_of_specifier):
7693         Move some symbols to general-slots.h.
7694         [2].
7695
7696         * symbols.c:
7697         * symbols.c (Fmapatoms):
7698         * symbols.c (Fapropos_internal):
7699         Add GCPROs.
7700
7701         * symbols.c (set_default_buffer_slot_variable):
7702         * symbols.c (set_default_console_slot_variable):
7703         [1].
7704
7705         * symbols.c (defsymbol_massage_name_1):
7706         * symbols.c (defkeyword_massage_name):
7707         * symbols.c (deferror_1):
7708         * symbols.c (deferror):
7709         * symbols.c (deferror_massage_name_and_message):
7710         * symeval.h:
7711         * symeval.h (DEFSYMBOL):
7712         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7713
7714         * symbols.c (syms_of_symbols):
7715         [2].
7716
7717         * symsinit.h:
7718         * symsinit.h (init_win32): New.
7719         Also new is syms_of_dialog_mswindows.
7720
7721         * syswindows.h:
7722         Add new Unicode macros, missing Cygwin wide-char functions,
7723         convenience conversion macros for Qmswindows_tstr, macros for
7724         encapsulating required MSWin <-> Cygwin filename conversions,
7725         prototype for dynamically-extracted (not in NT 3.51) functions.
7726
7727         * toolbar-x.c:
7728         Mule-verify.
7729
7730         * tooltalk.c (Fadd_tooltalk_message_arg):
7731         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7732         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7733         [7].
7734
7735         * tooltalk.c (syms_of_tooltalk):
7736         [2].
7737
7738         * unexnt.c:
7739         * unexnt.c (unexec):
7740         Fix up headers, declaration of unexec() to be more standard.
7741
7742 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7743
7744         * offix.h: Revert change to guard macros - they're used in offix.c!
7745
7746 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7747
7748         * lisp.h: Defsubred Fdelete.
7749
7750         * console-msw.h:  (msprinter_default_printer): Added.
7751
7752         * console-msw.c (msprinter_canonicalize_console_connection):
7753         (msprinter_canonicalize_device_connection): Added.
7754
7755         * device-msw.c (msprinter_default_printer):
7756         (Fmswingows_get_default_printer):
7757         (signal_enum_priner_error):
7758         (Fmswingows_printer_list): Added.
7759
7760 2000-07-19  Martin Buchholz <martin@xemacs.org>
7761
7762         * XEmacs 21.2.35 is released.
7763
7764 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7765
7766         * select-x.c (x_handle_selection_request):
7767         Text selected in xemacs and pasted into xterm failed to appear.
7768         Spelling fixes and cosmetic changes.
7769
7770 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7771
7772         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7773         XEmacs frame (fix for doubling chars in dialog boxes).
7774
7775 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7776
7777         * select.c (select_convert_in, select_convert_out):
7778         Don't call intern() every time.
7779
7780         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7781         * select.c (vars_of_select): Initialise them.
7782
7783 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7784
7785         * select.c (selection-coercible-types): New.
7786
7787         * select.c (own-selection-internal):
7788         * select.c (get-selection-internal):
7789         MULE bug fix - these should default to COMPOUND_TEXT and not
7790         STRING for MULE. I think.
7791
7792         * select.c (select_convert_out): Use selection-coercible-types
7793         to find types that we can attempt to perform coercions on.
7794
7795 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7796
7797         * mule-wnnfns.c:
7798         * mule-canna.c:
7799         Add coding: cookie to identify encoding.
7800
7801         * mule-canna.c (CANNA_mode_keys): make static.
7802         Use proper prototypes, even for functions of no arguments.
7803         Remove external prototype for Fding().
7804
7805         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7806
7807         * select.c (syms_of_select): Add missing DEFSUBR.
7808
7809 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7810
7811         * select.c (get_selection_internal, own_selection_internal):
7812         Make the type default to STRING, rather than placing a nil type
7813         into Vselection_alist.
7814
7815 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7816
7817         * gpmevent.c (tty_selection_exists_p):
7818         * gpmevent.c (tty_own_selection):
7819         Updated parameter lists.
7820
7821 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7822
7823         * select.h (selection-alist): Removed declaration.
7824
7825         * select.h (get_local_selection):
7826         * select.c (get_local_selection):
7827         Made static.
7828
7829         * select.h (convert_selection): Removed declaration.
7830         * select.c (convert_selection): Removed.
7831         This function belongs in Lisp.
7832
7833         * select.h (select_convert_in): Declare.
7834         * select.h (select_convert_out): Declare.
7835         * select.c (select_convert_in): New.
7836         * select.c (select_convert_out): New.
7837         New conversion functions for other files to call.
7838
7839         * select.h (select_notify_buffer_kill): Declare.
7840         * select.c (select_notify_buffer_kill): New.
7841         New functions that get called from kill-buffer.
7842
7843         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7844         X-specific lisp code.
7845
7846         * select.h: Declare some of the lisp-visible functions for
7847         external use.
7848
7849         * select.c (clean_local_selection_data): Removed. This was
7850         a disgusting function, and previously should have been in
7851         select-x.c in any case. The functionality is now provided
7852         in select-convert-from-integer (select.el).
7853
7854         * select.c (available-selection-types): Fixed stupidity where
7855         INTEGER and ATOM got added twice. Also add STRING when we see an
7856         extent.
7857
7858         * select.c (get-selection-internal): Removed symbol stripping. No
7859         longer causes conversion when data comes from the internal cache.
7860
7861         * select.c (syms_of_select): Added new functions.
7862
7863         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7864         error checking - previously this called abort!
7865
7866         * select-x.c (x_own_selection): Changed comment.
7867
7868         * select-x.c (x_handle_selection_request): Use select_convert_out.
7869         Don't mess with selection-alist; it's an internal variable of select.c.
7870
7871         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7872
7873         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7874         rather than messing with selection-alist.
7875
7876         * select-msw.c (mswindows_get_foreign_selection):
7877         Use TO_INTERNAL_FORMAT rather than hacking.
7878
7879 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7880
7881         * process-unix.c (unix_open_multicast_group):
7882         (unix_open_multicast_group): Remove useless casts.
7883
7884 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7885
7886         * sound.c (Fplay_sound): Fix `unused variable' warning.
7887
7888         * emacs.c (main): Use correct type for _environ on SCO5.
7889
7890 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7891
7892         * console.h (own_selection_method):
7893         * console.h (selection_exists_p_method):
7894         * console.h (available_selection_types_method): New.
7895         * console.h (register_selection_data_type_method): New.
7896         * console.h (selection_data_type_name): New.
7897
7898         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7899         function & alist to track GlobalAlloc()'d handles that need
7900         releasing when the clipboard data gets replaced or emptied.
7901
7902         * event-msw.c (mswindows_wnd_proc): Call it.
7903
7904         * lisp.h, general.c (Qappend): New symbol representing a
7905         `how-to-add' mode.
7906
7907         * select.c (own-selection-internal):
7908         * select.c (selection-exists-p):
7909         * select.c (available-selection-types): New.
7910         * select.c (register-selection-data-type): New.
7911         * select.c (selection-data-type-name): New.  New functions to deal
7912         with device-specific selection data formats.
7913         * select.c (selection-converter-out-alist): Renamed.
7914         * select.c (selection-converter-in-alist): New.
7915         * select.c (selection-appender-alist): New.  Added new alists.
7916         * select.c (syms_of_select, vars_of_select): Added new symbols &
7917         variables.
7918         * select.c (get_local_selection): Split.
7919         * select.c: Removed spurious type checking - selections may now be
7920         of any type, not just strings.
7921         * select.c (own-selection-internal):
7922
7923         * select.h, select.c (convert_selection): New. Created
7924         convert_selection() function based on get_local_selection().
7925         * select.h, select.c (QCF_*): New symbols representing mswindows
7926         clipboard formats.
7927         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7928         symbols representing `how-to-add' modes.
7929
7930         * select-msw.c (x_sym_p): New.
7931         * select-msw.c (symbol_to_ms_cf): New.
7932         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7933         symbols & clipboard formats. Can also handle string names.
7934         * select-msw.c (mswindows_own_selection):
7935         * select-msw.c (mswindows_selection_exists_p):
7936         Added `data-type' parameter. Use it.
7937         * select-msw.c (mswindows_available_selection_types): New.
7938         * select-msw.c (mswindows_register_selection_data_type): New.
7939         * select-msw.c (mswindows_selection_data_type_name): New.
7940         * select-msw.c (mswindows_own_selection):
7941         * select-msw.c (mswindows_get_foreign_selection):
7942         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7943         * select-msw.c (console_create_select_mswindows): Added new methods.
7944         * select-msw.c (mswindows_destroy_selection): New.
7945         * select-msw.c (Vhandle_alist): New list.
7946         * select-msw.c (mswindows_own_selection):
7947
7948         * select-x.c (x_own_selection):
7949         * select-x.c (x_selection_exists_p):
7950         * select-x.c: Added some comments about maybe using new
7951         functionality.
7952         * select-x.c (x_own_selection):
7953
7954         * specifier.c: Remove definition of Qappend (now in general.c)
7955         * specifier.c (syms_of_specifier): Remove Qappend.
7956
7957 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7958
7959         * config.h.in: Add socklen_t.
7960
7961         * s/decosf4-0.h: No special compiler flags needed or desired.
7962         In particular, undefine _BSD for DEC OSF 4.0.
7963
7964 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7965
7966         * redisplay-msw.c (msprinter_frame_output_end): Added.
7967         (console_type_create_redisplay_mswindows): Referred the above.
7968
7969         * frame.c (setup_frame_without_minibuffer): Do not create a
7970         default minibuffer frame on a printer device.
7971
7972         * frame-msw.c (apply_dc_geometry): Added.
7973         (msprinter_start_page):
7974         (msprinter_init_frame_3):
7975         (msprinter_eject_page): Use it.
7976
7977         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7978         and removed residual duplex and orientation properties.
7979
7980 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7981
7982         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7983
7984         * unexalpha.c: Remove system prototypes from C sources!
7985
7986 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7987
7988         * eval.c: Remove references to M-x edit-options in DEFUNs for
7989         `defvar' and `defconst'.
7990
7991 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7992
7993         * config.h.in: Remove SMART_INCLUDE hackery.
7994
7995         PostgreSQL hacking:
7996         * config.h.in: Don't use SMART_INCLUDE.
7997
7998         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7999         * inline.c: Simply #include "postgresql.h"
8000         * postgresql.c:
8001         - Don't use SMART_INCLUDE
8002         - Use simply "const".
8003         - Use standard doc string conventions.
8004         - Use correct type for result of PQstatus.
8005
8006 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8007
8008         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
8009
8010         C++ compilation changes.
8011         * config.h.in (EXTERN_C): Define.
8012         * config.h.in (not): This is also a C++ keyword.
8013         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
8014         * cm.c: Use EXTERN_C.
8015         * redisplay-tty.c: Use EXTERN_C.
8016         * sysdep.c: Use EXTERN_C.  Remove Gould support.
8017
8018 2000-07-09  Martin Buchholz  <martin@xemacs.org>
8019
8020         * general.c: Remove duplicate definition for Qfunction.
8021
8022 2000-07-08  Ben Wing  <ben@xemacs.org>
8023
8024         * device-msw.c (msprinter_init_device):
8025         * device-msw.c (sync_printer_with_devmode):
8026         * device-msw.c (handle_devmode_changes):
8027         * device-msw.c (print_dialog_worker):
8028         * device-msw.c (Fmsprinter_apply_settings):
8029         * device-msw.c (hash_devmode):
8030         * device-msw.c (Fmsprinter_settings_despecialize):
8031         use Qmswindows_tstr, not Qctext.
8032
8033         * vm-limit.c (check_memory_limits):
8034         avoid infinite loop printing warning messages.
8035
8036 2000-07-05  Craig Lanning  <lanning@scra.org>
8037
8038         * Makefile.in.in: Add support for including the Windows resources
8039         when building with the cygwin and mingw targets.
8040
8041         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8042         not set or not correct.
8043         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8044         (init_initial_directory): Don't try to use $PWD on the
8045         WIN32_NATIVE target.
8046
8047         * s\cygwin32.h:
8048         [[Add -mwindows to eliminate console window.]] not required --ben
8049         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8050         (MAIL_USE_POP): removed; now handled by configure.
8051
8052         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8053         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8054         (HAVE_NATIVE_SOUND): removed; now handled by configure.
8055         (MAIL_USE_POP): removed; now handled by configure.
8056         (ENCAPSULATE_STAT): from Dan Holmsand, added.
8057         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8058         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8059         constant string.
8060         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8061         up from <winsock.h> via systime.h.
8062         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8063         (getpagesize): from Dan Holmsand, added.
8064         Added #endif which was left dangling by Ben's mega patch; added
8065         comment to help prevent this in the future.
8066
8067         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8068
8069 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8070
8071         * console-msw.h (struct mswindows_device): Removed unnecessary
8072         cached device geometry values.
8073         Added update_tick and an accessor macro.
8074         (Lisp_Devmode): Added lrecord declaration.
8075         (struct msprinter_device): Contain devmode as a Lisp object.
8076         Added mswindows_get_selected_frame_hwnd();
8077
8078         * console.h (struct console_methods): Indentation nitpicking.
8079
8080         * device-msw.c (mswindows_init_device): Do not initialize geometry
8081         cache. Initialize update tick.
8082         (mswindows_device_system_metrics): Ask the device for its geometry.
8083         (global_free_2_maybe):
8084         (devmode_to_hglobal):
8085         (handle_printer_changes):
8086         (ensure_not_printing):
8087         (print_dialog_worker):
8088         (Fmsprinter_print_setup_dialog):
8089         (Fmsprinter_print_dialog):
8090         (plist_get_margin):
8091         (plist_set_margin):
8092         (Fmsprinter_page_setup_dialog): Added functions.
8093         (sync_printer_with_devmode):
8094         (handle_devmode_changes):
8095         (Fmsprinter_get_settings):
8096         (Fmsprinter_select_settings):
8097         (Fmsprinter_apply_settings):
8098         (allocate_devmode):
8099         (Fmsprinter_settings_copy):
8100         (Fmsprinter_settings_despecialize):
8101         (print_devmode):
8102         (finalize_devmode):
8103         (equal_devmode):
8104         (hash_devmode): Added functions
8105         (syms_of_device_mswindows): Init devmode lrecord class.
8106
8107         * device.h: Added an exfun for find-device.
8108
8109         * event-msw.c (mswindows_wnd_proc): Do not update the cached
8110         geometry; although, recreate the device compatible DC.
8111
8112         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8113         (msprinter_init_frame_3):
8114         (msprinter_frame_property):
8115         (msprinter_internal_frame_property_p):
8116         (msprinter_frame_properties):
8117         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8118         print job properties (will move to device settings).
8119
8120         * lisp.h: Added symbols.
8121
8122         * general.c (syms_of_general): Declared them.
8123
8124         * hash.c (string_hash): Added.
8125
8126         * lrecord.h (lrecord_type): Added devmode lrecord type.
8127
8128 2000-07-02  Mike Sperber <mike@xemacs.org>
8129
8130         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8131         FreeBSD 4.0.
8132
8133 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
8134
8135         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8136         integer.
8137
8138 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
8139
8140         * data.c (Fstring_to_number): Don't recognize floating point if
8141         base is not 10.
8142
8143 2000-06-22  Martin Buchholz  <martin@xemacs.org>
8144
8145         * glyphs-widget.c (tab_control_query_geometry):
8146         (widget_query_geometry):
8147         (button_query_geometry):
8148         * glyphs.c (text_query_geometry):
8149         Enforce type correctness.
8150
8151 2000-06-18  Martin Buchholz  <martin@xemacs.org>
8152
8153         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8154         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8155
8156 2000-06-17  Martin Buchholz  <martin@xemacs.org>
8157
8158         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8159         conflicts with gcc's fixincluded version of FOO.h.
8160
8161         * glyphs.h (image_instance_geometry): Remove trailing `,'
8162
8163 2000-06-08  Mike Alexander  <mta@arbortext.com>
8164
8165         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8166         (shove_thread): Don't write the same output twice
8167         (make_ntpipe_output_stream): Increase priority of shove thread
8168         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8169         chance to run
8170         (ntpipe_shove_closer): Don't delete the pipe until we're done with
8171         it.
8172
8173 2000-06-12  Ben Wing  <ben@xemacs.org>
8174
8175         * s\mingw32.h (sigset):
8176         * s\windowsnt.h (sigset):
8177         rename msw_ to mswindows_ for consistency with general convention.
8178
8179 2000-06-12  Ben Wing  <ben@xemacs.org>
8180
8181         * console-msw.c:
8182         * console-msw.c (mswindows_get_console_hwnd):
8183         * console-msw.c (mswindows_ensure_console_allocated):
8184         * console-msw.c (mswindows_hide_console):
8185         * console-msw.c (mswindows_show_console):
8186         * console-msw.c (mswindows_ensure_console_buffered):
8187         * console-msw.c (mswindows_output_console_string):
8188         * console-msw.c (mswindows_windows9x_p):
8189         * console-msw.h:
8190         * device-msw.c (mswindows_get_workspace_coords):
8191         * device-msw.c (mswindows_device_system_metrics):
8192         * dialog-msw.c (mswindows_popup_dialog_box):
8193         * event-msw.c (mswindows_wnd_proc):
8194         * frame-msw.c (mswindows_size_frame_internal):
8195         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8196         * menubar-msw.c (displayable_menu_item):
8197         * menubar-msw.c (mswindows_char_is_accelerator):
8198         * nt.c:
8199         * nt.c (mswindows_sigset):
8200         * nt.c (mswindows_sigrelse):
8201         * nt.c (mswindows_sigpause):
8202         * nt.c (mswindows_raise):
8203         * nt.c (timer_proc):
8204         * ntproc.c:
8205         * ntproc.c (find_child_console):
8206         * ntproc.c (sys_kill):
8207         * print.c:
8208         * print.c (std_handle_out_external):
8209         * process-nt.c (find_child_console):
8210         * process-nt.c (send_signal_the_95_way):
8211         * process-nt.c (ensure_console_window_exists):
8212         * process-nt.c (nt_create_process):
8213         * syssignal.h:
8214         rename msw_ to mswindows_ for consistency with general convention.
8215
8216         * emacs.c:
8217         * dumper.c:
8218         include nt.h, not syswindows.h.
8219
8220         * nt.c (mswindows_fstat):
8221         * nt.c (mswindows_stat):
8222         prefix mswindows_ instead of attempting to directly override the
8223         library functions.  fix declarations.
8224
8225         * nt.h:
8226         include syswindows.h.  move some sysdep.h stuff here.
8227
8228         * ntheap.h:
8229         include syswindows.h, not <windows.h>.
8230
8231         * ntplay.c:
8232         clean up headers.
8233
8234         * sysdep.c:
8235         clean up headers.
8236
8237         * sysdep.c (sys_fstat):
8238         * sysdep.c (sys_stat):
8239         call mswindows versions when appropriate.
8240
8241         * sysdep.h:
8242         move mswin decls to nt.h.
8243
8244         * syswindows.h:
8245         add long comment describing appropriate use of the various windows
8246         headers.
8247
8248 2000-06-11  Ben Wing  <ben@xemacs.org>
8249
8250         * device-x.c: Correct doc string for sixth arg of x-get-resource.
8251
8252 2000-06-10  Ben Wing  <ben@xemacs.org>
8253
8254         * Makefile.in.in (release):
8255         Correction to make sure xemacs.exe always dumped when correct.
8256
8257         * alloca.c:
8258         * balloon_help.c:
8259         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8260
8261         * buffer.c (set_buffer_internal):
8262         [[[[2]]]]: Remove HAVE_FEP code.
8263
8264         * buffer.c (init_initial_directory):
8265         [3].
8266
8267         * bytecode.c:
8268         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8269         individual files.
8270
8271         * callproc.c:
8272         * callproc.c (call_process_cleanup):
8273         * callproc.c (Fold_call_process_internal):
8274         * callproc.c (child_setup):
8275         * callproc.c (getenv_internal):
8276         * callproc.c (init_callproc):
8277         * callproc.c (vars_of_callproc):
8278         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8279         __CYGWIN32__ -> CYGWIN.
8280         DOS_NT -> WIN32_NATIVE.
8281         Remove MSDOS support/references, converting to WIN32_NATIVE
8282           where correct.
8283         __MINGW32__ -> MINGW.
8284         Fix windows.h includes.
8285         Remove bogus HAVE_NTGUI.
8286
8287         * config.h.in:
8288         [2].
8289
8290         * console-msw.c:
8291         mswindows_message_outputted added for use in allowing startup
8292         errors on the console to be seen.
8293
8294         * console-msw.c (msw_ensure_console_allocated):
8295         * console-msw.c (msw_output_console_string):
8296         * console-msw.c (DHEADER):
8297         * console-msw.c (DOPAQUE_DATA):
8298         * console-msw.c (DEVENT):
8299         * console-msw.c (DCONS):
8300         * console-msw.c (DCONSCDR):
8301         * console-msw.c (DSTRING):
8302         * console-msw.c (DVECTOR):
8303         * console-msw.c (DSYMBOL):
8304         * console-msw.c (DSYMNAME):
8305         Fix warnings.
8306
8307         * console-stream.c (stream_init_console):
8308         Fix text/binary problems.
8309
8310         * device-msw.c:
8311         * device-msw.c (mswindows_finish_init_device):
8312         * device-msw.c (mswindows_delete_device):
8313         [1].
8314
8315         * device.c (handle_asynch_device_change):
8316         [3].
8317
8318         * dgif_lib.c:
8319         * dgif_lib.c (DGifOpenFileName):
8320         * dgif_lib.c (DGifOpenFileHandle):
8321         * dgif_lib.c (DGifGetLine):
8322         * dgif_lib.c (DGifGetPixel):
8323         Added config.h/lisp.h, fix up includes.
8324         [1].
8325
8326         * dired-msw.c:
8327         [4].
8328
8329         * dired.c:
8330         * dired.c (file_name_completion):
8331         * dired.c (Ffile_attributes):
8332         * dired.c (syms_of_dired):
8333         [1].
8334
8335         * dumper.c:
8336         * dumper.c (pdump_file_unmap):
8337         * dumper.c (pdump_load):
8338         [1].
8339
8340         * editfns.c:
8341         * editfns.c (Ftemp_directory):
8342         * editfns.c (user_login_name):
8343         * editfns.c (Fuser_real_login_name):
8344         * editfns.c (get_home_directory):
8345         [1].
8346
8347         * elhash.c (finish_marking_weak_hash_tables):
8348         [[[[5]]]]: Fix GCC warnings.
8349
8350         * emacs.c:
8351         * emacs.c (mswindows_handle_hardware_exceptions):
8352         * emacs.c (make_arg_list_1):
8353         * emacs.c (main_1):
8354         * emacs.c (Fkill_emacs):
8355         * emacs.c (Fdump_emacs):
8356         [1].
8357         Fix problems with nested crashes, add long comment.
8358
8359         * event-Xt.c (init_event_Xt_late):
8360         [1].
8361
8362         * event-msw.c:
8363         * event-msw.c (mswindows_dde_callback):
8364         * event-msw.c (mswindows_handle_sticky_modifiers):
8365         * event-msw.c (mswindows_wnd_proc):
8366         [1].
8367         [5].
8368
8369         * events.c (character_to_event):
8370         [1].
8371
8372         * fileio.c:
8373         * fileio.c (Ffile_name_directory):
8374         * fileio.c (Ffile_name_nondirectory):
8375         * fileio.c (directory_file_name):
8376         * fileio.c (Fexpand_file_name):
8377         * fileio.c (Fsubstitute_in_file_name):
8378         * fileio.c (Ffile_name_absolute_p):
8379         * fileio.c (check_executable):
8380         * fileio.c (Ffile_readable_p):
8381         * fileio.c (Ffile_accessible_directory_p):
8382         * fileio.c (Ffile_modes):
8383         * fileio.c (Funix_sync):
8384         * fileio.c (vars_of_fileio):
8385         [1]. [4].
8386
8387         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8388
8389         Expand getdefdir defn.
8390         Fix bogus rename() comment.
8391
8392         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
8393         to use standard XEmacs include files, e.g. sysfile.h, rather
8394         than system-specific includes.
8395
8396         * fns.c:
8397         * fns.c (Fsubseq):
8398         [5]. [6].
8399
8400         * frame.c (vars_of_frame):
8401         [1].
8402
8403         * getloadavg.c:
8404         * getloadavg.c (getloadavg):
8405         [1]. [6].
8406         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
8407         (We don't use it elsewhere in the code; just add a comment.)
8408
8409         * gif_io.c:
8410         [6].
8411         Add config.h.
8412
8413         * glyphs-msw.c:
8414         * glyphs-msw.c (mswindows_resource_instantiate):
8415         [1].
8416
8417         * glyphs-x.c (x_native_layout_instantiate):
8418         [5].
8419
8420         * gui-msw.c (Fmswindows_shell_execute):
8421         [1].
8422
8423         * insdel.c:
8424         [4].
8425
8426         * lisp.h:
8427         [4]. [5].
8428
8429         * lread.c (locate_file_in_directory_mapper):
8430         [1].
8431
8432         * lstream.c:
8433         [4].
8434
8435         * mem-limits.h:
8436         * mem-limits.h (get_lim_data):
8437         [1].
8438
8439         * menubar-msw.c:
8440         [4].
8441
8442         * ndir.h:
8443         [1].
8444
8445         * nt.c:
8446         * nt.c (getwd):
8447         * nt.c (closedir):
8448         * nt.c (rva_to_section):
8449         * nt.c (mswindows_executable_type):
8450         [1]. [6].
8451         Fix closedir() defn.
8452
8453         * nt.h:
8454         [[[[8]]]]: *_OK defs moved to sysfile.h.
8455
8456         * ntproc.c:
8457         [6]. [7].
8458
8459         * objects-x.c:
8460         [4].
8461
8462         * print.c:
8463         * print.c (std_handle_out_external):
8464         [1]. [4].
8465
8466         * process-nt.c:
8467         * process-nt.c (nt_create_process):
8468         [6].
8469         try to fix process quoting somewhat.
8470
8471         * process-unix.c (unix_create_process):
8472         [1].
8473
8474         * process.c:
8475         * process.c (vars_of_process):
8476         Add Vnull_device.
8477
8478         * process.h:
8479         [1].
8480
8481         * realpath.c:
8482         * realpath.c (xrealpath):
8483         [1].
8484
8485         * redisplay-tty.c (init_tty_for_redisplay):
8486         [3].
8487
8488         * redisplay.c:
8489         [4]. [6].
8490
8491         * scrollbar-msw.c:
8492         [4].
8493
8494         * sheap.c:
8495         * sheap.c (more_static_core):
8496         * sheap.c (report_sheap_usage):
8497         [5]. [6].
8498
8499         * signal.c:
8500         * signal.c (alarm_signal):
8501         [1]. [6].
8502
8503         * sound.c:
8504         [6].
8505
8506         * strftime.c:
8507         * strftime.c (zone_name):
8508         [1]. [5].
8509
8510         * symsinit.h (init_sunpro):
8511         [1].
8512
8513         * syscommctrl.h:
8514         commctrl.h not in Cygwin b20.1.
8515
8516         * sysdep.c:
8517         * sysdep.c (endif):
8518         * sysdep.c (sys_subshell):
8519         * sysdep.c (init_baud_rate):
8520         * sysdep.c (emacs_get_tty):
8521         * sysdep.c (emacs_set_tty):
8522         * sysdep.c (tty_init_sys_modes_on_device):
8523         * sysdep.c (init_system_name):
8524         * sysdep.c (sys_open):
8525         * sysdep.c (interruptible_open):
8526         * sysdep.c (sys_fopen):
8527         * sysdep.c (sys_mkdir):
8528         * sysdep.c (sys_rename):
8529         * sysdep.c (get_process_times_1):
8530         [1]. [6].
8531
8532         * sysdep.h:
8533         [1].
8534
8535         * sysdir.h:
8536         * sysdir.h (DIRENTRY_NONEMPTY):
8537         [1]. [6].
8538
8539         * sysdll.c (dll_init):
8540         * sysdll.h:
8541         [1].
8542
8543         * sysfile.h:
8544         [1]. [6]. [8].
8545         added text/binary defs.
8546
8547         * sysfloat.h:
8548         [1].
8549
8550         * sysproc.h:
8551         * sysproc.h (EDESTADDRREQ):
8552         * sysproc.h (poll_fds_for_input):
8553         [1]. [6].
8554
8555         * syspwd.h:
8556         [6].
8557
8558         * syssignal.h:
8559         [1].
8560
8561         * systime.h:
8562         [1]. [6].
8563
8564         * systty.h:
8565         [1].
8566
8567         * syswindows.h:
8568         [1].
8569         Always define WIN32_LEAN_AND_MEAN.
8570
8571         * unexcw.c (unexec):
8572         [5].
8573
8574         * unexec.c:
8575         * unexec.c (copy_text_and_data):
8576         * unexec.c (adjust_lnnoptrs):
8577         [1].
8578
8579         * unexnt.c:
8580         * unexnt.c (_start):
8581         [1].
8582
8583 2000-06-07  Ben Wing  <ben@xemacs.org>
8584
8585         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8586         was used only as a model.  We've long since extracted any useful
8587         logic or code out of this. (I just did an exhaustive search.)
8588
8589         * s\msdos.h: Removed.
8590
8591         * s\windows95.h: Removed.
8592
8593 2000-06-10  Ben Wing  <ben@xemacs.org>
8594
8595         * s\cygwin32.h:
8596         [1]. [5].
8597         Don't use extern with fun defs.
8598
8599         * s\mingw32.h:
8600         [1]. [7].
8601         Remove nt\inc include.
8602         Remove getdisk, getdefdir. (The former is unused, the latter
8603         expanded in fileio.h.)
8604
8605         * s\windowsnt.h:
8606         * s\windowsnt.h (WIN32_NATIVE):
8607         * s\windowsnt.h (HAVE_STRCASECMP):
8608         [1]. [7].
8609         Add long comment about preprocessor changes.
8610         Remove getdisk, getdefdir. (The former is unused, the latter
8611         expanded in fileio.h.)
8612
8613 2000-06-10  Ben Wing  <ben@xemacs.org>
8614
8615         * m\arm.h:
8616         * m\delta.h:
8617         * m\intel386.h:
8618         * m\sequent.h:
8619         * m\template.h:
8620         * m\windowsnt.h:
8621         [1].
8622         Remove bogus/unused NO_SOCK_SIGIO.
8623
8624 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8625
8626         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8627         not an Emchar.
8628
8629 2000-06-04  Mike Sperber <mike@xemacs.org>
8630
8631         * casetab.c (set_case_table): For `set-standard-case-table',
8632         actually deposit the new case tables where the rest of XEmacs can
8633         see them.
8634
8635 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8636
8637         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8638
8639 2000-06-05  Ben Wing  <ben@xemacs.org>
8640
8641         * callproc.c (child_setup): Don't do close_load_descs() under
8642         MS Windows.  Put in a comment explaining why.
8643
8644 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8645
8646         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8647         Toolkit shell" which breaks `kill-compilation' on Windows NT
8648         native, retaining STDERR handling improvements.
8649
8650 2000-06-01  Andreas Jaeger  <aj@suse.de>
8651
8652         * s/s390.h: Support for S390, based on a patch by Martin
8653         Schwidefsky <schwidefsky@de.ibm.com>.
8654
8655 2000-05-30  Andy Piper  <andy@xemacs.org>
8656
8657         * window.c (allocate_window):
8658         (make_dummy_parent):
8659         (Fset_window_configuration): use new hashtable type.
8660
8661         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8662         (struct image_instantiator_methods):
8663         (struct Lisp_Image_Instance): make instance geometry signed.
8664
8665         * glyphs.c (instantiate_image_instantiator):
8666         (image_instance_query_geometry):
8667         (image_instance_layout):
8668         (image_instance_layout):
8669         (query_string_geometry):
8670         (text_query_geometry):
8671         (image_instantiate):
8672         (image_instantiate):
8673         (cache_subwindow_instance_in_frame_maybe):
8674         (subwindow_query_geometry): make instance geometry signed.
8675
8676         * glyphs-widget.c (widget_query_geometry):
8677         (widget_layout):
8678         (button_query_geometry):
8679         (tree_view_query_geometry):
8680         (tab_control_query_geometry):
8681         (layout_query_geometry):
8682         (layout_layout):
8683         (native_layout_layout): make instance geometry signed.
8684
8685 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8686
8687         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8688         constant.
8689
8690         * general.c (syms_of_general): Add Qfull_assoc symbol.
8691
8692         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8693         correctly.
8694         (decode_weak_list_type): Decode full-assoc type.
8695         (encode_weak_list_type): Encode full-assoc type.
8696         (Fmake_weak_list): Update doc string.
8697
8698 2000-05-30  Andy Piper  <andy@xemacs.org>
8699
8700         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8701
8702         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8703         (decode_hash_table_weakness): ditto.
8704         (Fhash_table_weakness): ditto.
8705         (Fhash_table_type): ditto.
8706         (finish_marking_weak_hash_tables): ditto.
8707         (hash_table_weakness_validate): ditto.
8708         (syms_of_elhash): ditto.
8709
8710 2000-05-28  Martin Buchholz <martin@xemacs.org>
8711
8712         * XEmacs 21.2.34 is released.
8713
8714 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8715
8716         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8717         start cache.
8718         (updating_line_start_cache): Gone.
8719         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8720         generic code to force a minimum of 1 line laid out in the
8721         CMOTION_DISP case.
8722
8723 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8724
8725         * glyphs.c (instantiate_image_instantiator): Check for initialized
8726         height & width no longer special cases IMAGE_NOTHING.
8727         (nothing_instantiate): Set height and width of instance.
8728
8729 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8730
8731         * unexelf.c (unexec): Search for ".data" section.
8732         Initialize new_data2_offset from old_data_index.
8733         Remove redundant check for ElfW.
8734
8735 2000-05-23  Andy Piper  <andy@xemacs.org>
8736
8737         * glyphs.c (get_image_instantiator_governing_domain): allow more
8738         specific domains as the governing domain rather than expecting an
8739         exact match. This fixes problems with layouts.
8740
8741 2000-05-22  Andy Piper  <andy@xemacs.org>
8742
8743         * redisplay-output.c (compare_runes): check for non-images
8744
8745         * glyphs.c (set_glyph_dirty_p): ditto.
8746         (update_glyph_cachel_data): ditto.
8747
8748         * glyphs-widget.c (layout_post_instantiate): ditto.
8749         (layout_post_instantiate): ditto.
8750
8751         * event-msw.c (mswindows_wnd_proc): warning removal.
8752
8753 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8754
8755         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8756
8757         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8758
8759         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8760
8761         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8762         (mswindows_executable_type): mingw32 now has enough headers for
8763         this to work.
8764
8765 2000-05-20  Andy Piper  <andy@xemacs.org>
8766
8767         * console-msw.c (mswindows_output_last_error): ; -> ,
8768
8769 2000-05-12  Andy Piper  <andy@xemacs.org>
8770
8771         * console-msw.c (FROB): compare ints with ints.
8772
8773 2000-05-11  Andy Piper  <andy@xemacs.org>
8774
8775         * glyphs-x.c (x_finalize_image_instance): make minimal build
8776         happy.
8777
8778 2000-05-20  Ben Wing  <ben@xemacs.org>
8779
8780         * event-Xt.c:
8781         * event-Xt.c (vars_of_event_Xt):
8782         move modifier-keys-are-sticky to event-stream.c.
8783
8784         * event-msw.c:
8785         * event-msw.c (mswindows_enqueue_mouse_button_event):
8786         * event-msw.c (key_needs_default_processing_p):
8787         * event-msw.c (XEMSW_LCONTROL):
8788         * event-msw.c (mswindows_handle_sticky_modifiers):
8789         * event-msw.c (FROB):
8790         * event-msw.c (clear_sticky_modifiers):
8791         * event-msw.c (output_modifier_keyboard_state):
8792         * event-msw.c (output_alt_keyboard_state):
8793         * event-msw.c (mswindows_wnd_proc):
8794         * event-msw.c (mswindows_modifier_state):
8795         * event-msw.c (emacs_mswindows_handle_magic_event):
8796         implement sticky modifiers.
8797
8798         * event-stream.c:
8799         * event-stream.c (vars_of_event_stream):
8800         move modifier-keys-are-sticky here.
8801
8802         * lisp.h:
8803         add CHECK_FUNCTION.
8804
8805         * rangetab.c:
8806         implement map-range-table.
8807
8808
8809 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8810
8811         * redisplay-tty.c (reset_tty_modes):
8812         (tty_redisplay_shutdown): Adjust argument type to
8813         tty_frame_output_end.
8814
8815 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8816
8817         * eval.c (Fbacktrace): Don't output a line with only right
8818         parenthesis.
8819
8820 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8821
8822         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8823         (Fpq_reset_poll): Ditto.
8824
8825 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8826
8827         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8828
8829 2000-05-16  Ben Wing  <ben@xemacs.org>
8830
8831         * buffer.c:
8832         * buffer.c (dfc_convert_to/from_internal_format):
8833         * buffer.c (reinit_vars_of_buffer):
8834         Fix conversion functions to allow reentrancy.
8835
8836         * console-msw.c:
8837         * console-msw.c (mswindows_output_last_error):
8838         New fun, generally useful -- output a human-readable
8839         version of GetLastError() on the console.
8840
8841         * console-msw.h:
8842         * console-msw.h (struct mswindows_frame):
8843         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8844
8845         * console-stream.c (stream_output_begin):
8846         * console-stream.c (stream_output_end):
8847         * console-stream.c (stream_output_vertical_divider):
8848         * console-stream.c (stream_clear_region):
8849         * console-stream.c (stream_flash):
8850         * console-stream.c (console_type_create_stream):
8851         Delete blank stream methods, not needed.
8852
8853         * console.h (struct console_methods):
8854         Split begin/end methods into window and frame.
8855
8856         * event-msw.c:
8857         * event-msw.c (mswindows_handle_paint):
8858         * event-msw.c (output_alt_keyboard_state):
8859         * event-msw.c (mswindows_wnd_proc):
8860         * event-msw.c (vars_of_event_mswindows):
8861         Comment about problems with ignored-expose.
8862         Define mswindows-debug-events; not really implemented.
8863
8864         * frame-msw.c (mswindows_init_frame_1):
8865         random cleanups.
8866
8867         * glyphs-msw.c:
8868         * glyphs-msw.c (begin_defer_window_pos):
8869         * glyphs-msw.c (mswindows_unmap_subwindow):
8870         * glyphs-msw.c (mswindows_map_subwindow):
8871         * glyphs-msw.c (mswindows_resize_subwindow):
8872         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8873
8874         * glyphs.c (make_image_instance_1):
8875         Fix crash.
8876
8877         * gutter.c (Fredisplay_gutter_area):
8878         Use new begin/end methods.
8879
8880         * lisp.h (Dynarr_new2):
8881         New creation fun.
8882
8883         * redisplay-msw.c:
8884         * redisplay-msw.c (mswindows_frame_output_begin):
8885         * redisplay-msw.c (mswindows_frame_output_end):
8886         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8887         New begin/end methods -- handle DeferWindowPos.
8888
8889         * redisplay-output.c (redisplay_move_cursor):
8890         * redisplay-output.c (redraw_cursor_in_window):
8891         * redisplay-output.c (redisplay_update_line):
8892         * redisplay-output.c (redisplay_output_window):
8893         New begin/end methods.
8894
8895         * redisplay-tty.c:
8896         * redisplay-tty.c (tty_frame_output_begin):
8897         * redisplay-tty.c (tty_frame_output_end):
8898         * redisplay-tty.c (console_type_create_redisplay_tty):
8899         New begin/end methods.
8900
8901         * redisplay-x.c:
8902         * redisplay-x.c (x_window_output_begin):
8903         * redisplay-x.c (x_window_output_end):
8904         * redisplay-x.c (console_type_create_redisplay_x):
8905         New begin/end methods.
8906
8907         * redisplay.c (redisplay_frame):
8908         * redisplay.c (Fredisplay_echo_area):
8909         New begin/end methods.
8910         use MAYBE_DEVMETH for clear_frame; it may not exist.
8911
8912         * window.h (WINDOW_XFRAME):
8913         WINDOW_XFOO macros -- get locale and decode struct pointer.
8914
8915
8916 2000-05-12  Ben Wing  <ben@xemacs.org>
8917
8918         * emacs.c:
8919         * emacs.c (ensure_no_quitting_from_now_on):
8920         * emacs.c (fatal_error_signal):
8921         * emacs.c (mswindows_handle_hardware_exceptions):
8922         * emacs.c (main):
8923         * emacs.c (Fkill_emacs):
8924         * emacs.c (shut_down_emacs):
8925         * emacs.c (assert_failed):
8926         various improvements in fatal error handling.
8927
8928         * eval.c:
8929         move preparing_for_armageddon to emacs.c.
8930
8931         * lisp.h:
8932         declare fatal_error_in_progress.
8933
8934         * print.c:
8935         * print.c (std_handle_out_external):
8936         * print.c (std_handle_out_va):
8937         * print.c (stderr_out):
8938         * print.c (stdout_out):
8939         use console under mswin when no standard output.
8940         don't do code conversion during fatal error.
8941
8942         * scrollbar.c (Fscrollbar_page_up):
8943         * scrollbar.c (Fscrollbar_page_down):
8944         fix missing else.  reindent.
8945
8946 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8947
8948         Emergency fix.
8949
8950         * glyphs.h (GLYPH_CACHEL_DESCENT):
8951         (GLYPH_CACHEL_DESCENT):
8952         (GLYPH_CACHEL_DESCENT):
8953         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8954         used in case these are inline functions.
8955         Use more absurd values to error check.
8956
8957         include window.h for error check functions.
8958
8959 2000-05-11  Ben Wing  <ben@xemacs.org>
8960
8961         * cmdloop.c (Freally_early_error_handler):
8962         Display message box under windows; otherwise, message will disappear
8963         before it can be viewed.
8964
8965         * console-msw.c:
8966         * console-msw.c (Fmswindows_message_box):
8967         * console-msw.c (FROB):
8968         * console-msw.c (syms_of_console_mswindows):
8969         Define new fun `mswindows-message-box'.
8970         #### I will merge this into `popup-dialog-box'; just give me
8971         a bit of time.
8972
8973         * general.c:
8974         * general.c (syms_of_general):
8975         Some new symbols used in `mswindows-message-box'.
8976
8977         * glyphs.c:
8978         * glyphs.c (Fset_image_instance_property):
8979         put warning in this fun.
8980
8981         * glyphs.h:
8982         * glyphs.h (GLYPH_CACHEL_WIDTH):
8983         * glyphs.h (GLYPH_CACHEL_ASCENT):
8984         * glyphs.h (GLYPH_CACHEL):
8985         * glyphs.h (GLYPH_CACHEL_GLYPH):
8986         define error-checking versions to try to catch a bug i've seen --
8987         redisplay gets in an infinite loop because the glyph width of the
8988         continuation glyph is 65535.
8989
8990         * lisp.h:
8991         Extern message-box stuff.
8992
8993         * window.c (allocate_window):
8994         * window.c (make_dummy_parent):
8995         * window.c (Fset_window_configuration):
8996         Use EQUAL not EQ for subwindow caches to make them work a bit
8997         better. (Something is still very broken.)
8998
8999
9000 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
9001
9002         * glyphs.c (image_instantiate): Suppress gcc warnings.
9003         (Fmake_image_instance): Fix doc string.
9004         * specifier.c (Fmake_specifier): Ditto.
9005
9006 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
9007
9008         * paths.h.in (PATH_LOCK): Removed.
9009         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
9010         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
9011
9012 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
9013
9014         * fns.c (Ffeaturep): Update e-mail address in doc-string.
9015         Document (featurep '(and xemacs 21.02)).
9016
9017 2000-05-09  Ben Wing  <ben@xemacs.org>
9018
9019         * buffer.c (complex_vars_of_buffer):
9020         update modeline-format doc.
9021
9022         * device.h:
9023         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
9024
9025         * emacs.c:
9026         timeline of all released versions of Emacs, for use in creating
9027         authorship comments and in synching up.
9028
9029         * glyphs-widget.c (image_instantiator_buttons):
9030         * glyphs-widget.c (image_instantiator_edit_fields):
9031         * glyphs-widget.c (image_instantiator_combo_box):
9032         * glyphs-widget.c (image_instantiator_scrollbar):
9033         * glyphs-widget.c (image_instantiator_progress_guage):
9034         * glyphs-widget.c (image_instantiator_tree_view):
9035         * glyphs-widget.c (image_instantiator_tab_control):
9036         * glyphs-widget.c (image_instantiator_labels):
9037         * glyphs-widget.c (image_instantiator_layout):
9038         * glyphs-widget.c (image_instantiator_native_layout):
9039         rename decode_domain method to governing_domain.
9040
9041         * glyphs.c:
9042         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9043         * glyphs.c (add_entry_to_device_ii_format_list):
9044         make sure we don't put an entry more than once into the list.
9045         * glyphs.c (check_instance_cache_mapper):
9046         *************************************************************
9047         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9048         HAVE BEEN GETTING.
9049         *************************************************************
9050         * glyphs.c (get_image_instantiator_governing_domain):
9051         clean up, expand on new concept of governing domain.
9052         * glyphs.c (instantiate_image_instantiator):
9053         * glyphs.c (allocate_image_instance):
9054         use governing_domain instead of cache_domain in naming.
9055         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9056         * glyphs.c (make_image_instance_1):
9057         * glyphs.c (Fmake_image_instance):
9058         allow for any domain (not just device), and process the
9059         governing domain correctly.  very big doc fix.
9060         * glyphs.c (Fimage_instance_domain):
9061         new primitive, to retrieve the governing domain of an image instance.
9062         * glyphs.c (image_instantiate):
9063         use new governing_domain stuff.  this fixes a crash you could get
9064         by instantiating certain widget glyphs in frame locales. (should
9065         signal an error instead of crashing.)
9066         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9067         * glyphs.c (Fglyphp): clean up doc.
9068         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9069         * glyphs.c (syms_of_glyphs):
9070         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9071         * glyphs.c (image_instantiator_format_create): add some comments about
9072         bogus code.
9073         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9074         for current-display-table. (Apparently Hrjove implemented in 1998 a
9075         design I wrote up in 1996, but didn't update the doc string.)
9076
9077         * glyphs.h: clean up a doc string.
9078         * glyphs.h (governing_domain):
9079         * glyphs.h (struct image_instantiator_methods):
9080         changes for governing_domain stuff.
9081
9082         * gutter.c:
9083         * gutter.c (Fgutter_specifier_p):
9084         * gutter.c (Fgutter_size_specifier_p):
9085         * gutter.c (Fgutter_visible_specifier_p):
9086         * objects.c:
9087         * objects.c (Fcolor_specifier_p):
9088         * objects.c (Ffont_specifier_p):
9089         * objects.c (Fface_boolean_specifier_p):
9090         doc strings moved to make-*-specifier.
9091
9092         * redisplay.c (add_disp_table_entry_runes_1):
9093         * redisplay.c (generate_fstring_runes):
9094         * redisplay.c (screen):
9095         add random comments and doc strings.
9096
9097         * specifier.c:
9098         * specifier.c (Fmake_specifier):
9099         major overhaul of this doc string.
9100
9101         * specifier.c (Fvalid_specifier_domain_p):
9102         comment about the bogosity of image instances being domains.
9103         * specifier.c (decode_domain):
9104         now non-static, used in glyphs.c.
9105         * specifier.c (specifier_instance):
9106         comment about the bogosity of image instances being domains.
9107         * specifier.c (Fgeneric_specifier_p):
9108         move doc string to make-generic-specifier.
9109         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9110         rebackslashify.
9111
9112         * specifier.h:
9113         * specifier.h (DOMAIN_FRAME):
9114         * specifier.h (DOMAIN_LIVE_P):
9115         * specifier.h (DOMAIN_XDEVICE):
9116         rebackslashify.
9117         add comments about problems with these macros.
9118         prototype for decode_domain.
9119
9120         * toolbar.c:
9121         * toolbar.c (Ftoolbar_specifier_p):
9122         move doc string to `make-toolbar-specifier'.
9123
9124         * window.c (window_unmap_subwindows_cache_mapper):
9125         *************************************************************
9126         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9127         HAVE BEEN GETTING.
9128         *************************************************************
9129
9130 2000-05-09  Andy Piper  <andy@xemacs.org>
9131
9132         * glyphs.h: declare reset_frame_subwindow_instance_cache.
9133
9134         * window.c (Fset_window_configuration): reset the frame subwindow
9135         cache and re-initialize the window subwindow caches.
9136
9137         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9138
9139 2000-05-09  Ben Wing  <ben@xemacs.org>
9140
9141         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9142         DWORD.
9143
9144 2000-04-26  Mike Woolley  <mike@bulsara.com>
9145
9146         * ntheap.c: Changed recreate_heap to limit the amount reserved
9147         for the heap to that which is actually available. Also now
9148         displays a message box (with some dignostics) in the event that
9149         it still can't start.
9150
9151 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
9152
9153         * callproc.c (Fold_call_process_internal): GCPRO path
9154
9155 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
9156
9157         Patch by Bill Perry.
9158
9159         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9160         back data instead of #ifdef.
9161         (Fscrollbar_page_down): ditto.
9162
9163 2000-05-07  Ben Wing  <ben@xemacs.org>
9164
9165         * buffer.h:
9166         Kludge for defining Qmswindows_tstr.
9167
9168         * nt.c:
9169         * nt.c (open_input_file):
9170         * nt.c (open_output_file):
9171         * nt.c (rva_to_section):
9172         * nt.c (mswindows_executable_type):
9173         Move all memory-mapped-file routines here (some were in unexnt.c,
9174         which is bad because they are used by process-nt.c, and unexnt
9175         won't be around when portable dumping).  Synched the above routines
9176         with FSF 20.6.
9177
9178         * nt.h:
9179         Removed ifdef'd out bogus code.
9180         Fixed some prototypes.
9181
9182         * nt.h (file_data):
9183         * nt.h (OFFSET_TO_RVA):
9184         * nt.h (RVA_TO_OFFSET):
9185         * nt.h (RVA_TO_PTR):
9186         Moved the memory-mapped-file structures, macros and prototypes
9187         here, to parallel nt.c.  ntheap.h should really be removed
9188         entirely, and it's a non-portable-dumper specific file.
9189
9190         * ntheap.h (round_to_next):
9191         Moved the memory-mapped-file structures, macros and prototypes
9192         to nt.h.
9193
9194         * ntproc.c (compare_env):
9195         Moved rva_to_section and mswindows_executable_type to nt.c.
9196         Moved compare_env to process-nt.c.
9197         ntproc.c will die, one day.
9198
9199         * ntproc.c (sys_spawnve):
9200         Account for win32_ -> mswindows_.
9201
9202         * process-nt.c:
9203         * process-nt.c (struct nt_process_data):
9204         * process-nt.c (ensure_console_window_exists):
9205         * process-nt.c (compare_env):
9206         * process-nt.c (nt_create_process):
9207         * process-nt.c (nt_kill_process_by_pid):
9208         * process-nt.c (syms_of_process_nt):
9209         * process-nt.c (vars_of_process_nt):
9210         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9211         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9212         changes).  Eliminate our old `nt-quote-process-args' mechanism.
9213         Synch up nt_create_process with FSF 20.6 sys_spawnve.
9214         Move compare_env here from ntproc.c.
9215
9216         * process.c (Fprocess_send_region):
9217         Takes an optional fourth argument, BUFFER, which should fix some
9218         problems with call-process.
9219
9220         * syscommctrl.h:
9221         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9222
9223         * syswindows.h:
9224         Move ICC_BAR_CLASSES to syscommctrl.h.
9225         Add preliminary macros for MSWindows/Mule.  More to come.
9226
9227         * unexnt.c:
9228         * unexnt.c (unexec):
9229         open_output_file moved to nt.c.
9230
9231
9232 2000-05-05  Andy Piper  <andy@xemacs.org>
9233
9234         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9235         instance from the frame cache also since GC may catch up too late
9236         to make frame deletion sane.
9237
9238 2000-05-04  Andy Piper  <andy@xemacs.org>
9239
9240         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9241         (x_finalize_image_instance): ungcpro on deletion.
9242
9243         * glyphs.c (image_instantiator_format_create): give pointers a
9244         query geometry method so that the geometry is at least set.
9245
9246         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9247         initialize layouts if using widgets.
9248
9249 2000-05-03  Andy Piper  <andy@xemacs.org>
9250
9251         * nt.c: remove bogus reference to sysmmsystem.h
9252
9253         * gui-x.c (popup_selection_callback): fix no selection abort.
9254
9255 2000-05-02  Andy Piper  <andy@xemacs.org>
9256
9257         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9258         (mswindows_widget_instantiate): ditto.
9259
9260         * glyphs-widget.c (initialize_widget_image_instance): initialize
9261         children correctly.
9262         (widget_instantiate): cope with children and items in the same
9263         instance.
9264
9265         * glyphs.c (mark_image_instance): cope with children as a first
9266         class member.
9267         (image_instance_equal): ditto.
9268         (image_instance_hash): ditto.
9269         (image_instance_changed): ditto.
9270
9271 2000-04-30  Andy Piper  <andy@xemacs.org>
9272
9273         * glyphs.c (subwindow_query_geometry): new function. Return some
9274         defaults.
9275         (subwindow_instantiate): don't assign dimensions if none have been
9276         given.
9277         (image_instantiator_format_create): add subwindow_query_geometry.
9278         (print_image_instance): cope with layouts as widgets.
9279
9280 2000-04-29  Andy Piper  <andy@xemacs.org>
9281
9282         * frame.c (delete_frame_internal): call
9283         free_frame_subwindow_instance_cache so that all subwindows are
9284         finalized before their parent.
9285         (mark_frame): remove subwindow_cachels.
9286         (Fmake_frame): remove subwindow_cachel manipulation.
9287         (allocate_frame_core): subwindow_instance_cache is a weak list.
9288         (delete_frame_internal): set subwindow_instance_cache to nil.
9289
9290         * glyphs-msw.c (mswindows_finalize_image_instance): make double
9291         finalization safe.
9292         (mswindows_finalize_image_instance): use the device
9293         not the domain as the domain may have died already.
9294
9295         * glyphs-x.c (x_finalize_image_instance): ditto.
9296         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9297         HEIGHT.
9298
9299         * redisplay-output.c (redisplay_unmap_subwindows): update for
9300         subwindow instance cache as a weak list.
9301         (redisplay_unmap_subwindows_maybe): ditto.
9302         (redisplay_unmap_subwindows_except_us): ditto.
9303
9304         * glyphs.c (unmap_subwindow): error checking will check the domain
9305         so don't deal with it here. Don't use cachels anymore.
9306         (map_subwindow): ditto.
9307         (update_subwindow_cachel_data): remove old accessor names.
9308         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9309         (Fresize_subwindow): don't update cachel.
9310         (mark_subwindow_cachels):
9311         (update_subwindow_cachel_data):
9312         (add_subwindow_cachel):
9313         (get_subwindow_cachel_index):
9314         (update_subwindow_cachel):
9315         (reset_subwindow_cachels):
9316         (mark_subwindow_cachels_as_not_updated): deleted.
9317         (cache_subwindow_instance_in_frame_maybe): new function. Add a
9318         subwindow instance to the frame cache.
9319         (find_matching_subwindow): update for subwindow instance cache as
9320         a weak list.
9321         (update_widget_instances): ditto.
9322         (image_instance_type_to_mask):inlined.
9323         (free_frame_subwindow_instance_cache): new function. finalize all
9324         subwindows that are instantiated.
9325
9326         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9327         of cachel information.
9328         (IMAGE_INSTANCE_DISPLAY_X):
9329         (IMAGE_INSTANCE_DISPLAY_Y):
9330         (IMAGE_INSTANCE_DISPLAY_WIDTH):
9331         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9332         (XIMAGE_INSTANCE_DISPLAY_X):
9333         (XIMAGE_INSTANCE_DISPLAY_Y):
9334         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9335         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9336         remove subwindow_cachel structure and function references.
9337         (image_instance_type_to_mask): inline from glyphs.c
9338
9339         * redisplay.c (redisplay_frame): remove subwindow_cachel
9340         references.
9341
9342         * frame.h (struct frame): remove subwindow_cachels.
9343         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9344
9345         * frameslots.h: add subwindow_instance_cache.
9346
9347         * window.c (replace_window): check subwindow cache of replacement.
9348         (window_unmap_subwindows_cache_mapper):
9349         (window_unmap_subwindows): new functions. Unmap all subwindows
9350         cached on this window.
9351         (mark_window_as_deleted): unmap all subwindows.
9352
9353 2000-04-27  Andy Piper  <andy@xemacs.org>
9354
9355         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9356
9357         * glyphs-widget.c (widget_layout): return something.
9358         (layout_layout): return something. Fail if not initialized.
9359         (layout_query_geometry): ditto.
9360         (image_instantiator_native_layout): new function. Initialized the
9361         native layout type.
9362         (widget_instantiate): don't do layout stuff here.
9363
9364         * glyphs.c (instantiate_image_instantiator): reorded calling or
9365         instantiate and post_instantiate with layout in between.
9366         (image_instance_layout): be more selective about deciding whether
9367         the layout has been done or not.
9368
9369         * glyphs.h (struct image_instantiator_methods): return a value
9370         from layout_method.
9371
9372 2000-04-26  Andy Piper  <andy@xemacs.org>
9373
9374         * glyphs.c (allocate_image_instance): make initial width and
9375         height unspecified. Set initialized to 0.
9376
9377         * syscommctrl.h new file. Encapsulates commctrl.h.
9378
9379         * syswindows.h new file. Encapsulates windows.h.
9380
9381         * ntplay.c: use new syswindows.h and syscommctrl.h header.
9382         * nt.c: ditto.
9383         * console-msw.h: ditto.
9384
9385         * redisplay-tty.c (tty_output_display_block): remove layout references.
9386
9387         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9388         window handle rather than just the frame.
9389
9390         * glyphs.c (mark_image_instance): remove layout references.
9391         (print_image_instance): ditto.
9392         (image_instance_equal): ditto.
9393         (image_instance_hash): ditto.
9394         (decode_image_instance_type): ditto.
9395         (encode_image_instance_type): ditto.
9396         (image_instantiate): ditto.
9397         (allocate_glyph): ditto.
9398         (Fimage_instance_height): ditto.
9399         (Fimage_instance_width): ditto.
9400         (update_subwindow): ditto.
9401
9402         * redisplay-x.c (x_output_display_block): recode for layouts as
9403         widgets.
9404
9405         * redisplay-output.c (redisplay_output_layout): recode for layouts
9406         as widgets.
9407         (compare_runes): remove layout references.
9408
9409         * redisplay-msw.c (mswindows_output_display_block): recode for
9410         layouts as widgets.
9411
9412         * glyphs-widget.c (image_instantiator_layout): remove
9413         layout_possible_dest_types.
9414         (layout_possible_dest_types): deleted.
9415
9416         * glyphs.h (image_instance_type): remove layout references.
9417         (struct Lisp_Image_Instance): ditto. Add initialized flag.
9418         (IMAGE_INSTANCE_INITIALIZED): new accessor.
9419         (XIMAGE_INSTANCE_INITIALIZED): ditto.
9420
9421 2000-04-25  Andy Piper  <andy@xemacs.org>
9422
9423         * glyphs-widget.c (image_instantiator_buttons):
9424         (image_instantiator_edit_fields):
9425         (image_instantiator_combo_box):
9426         (image_instantiator_scrollbar):
9427         (image_instantiator_progress_guage):
9428         (image_instantiator_tree_view):
9429         (image_instantiator_tab_control):
9430         (image_instantiator_labels):
9431         (image_instantiator_layout): call default post_instantiate method.
9432         (widget_post_instantiate): new function. Simply lays out the
9433         widgets.
9434
9435         * glyphs.h (struct image_instantiator_methods): add
9436         post_instantiate method.
9437
9438         * glyphs.c (instantiate_image_instantiator): add post_instantiate
9439         method calls.
9440
9441 2000-04-23  Andy Piper  <andy@xemacs.org>
9442
9443         * glyphs.h (struct image_instantiator_methods): add
9444         decode_domain_method.
9445         (struct Lisp_Image_Instance): remove subwindow frame - it can be
9446         derived from the domain.
9447         (IMAGE_INSTANCE_FRAME): new accessor.
9448         (XIMAGE_INSTANCE_FRAME): ditto.
9449
9450         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9451         instead of _SUBWINDOW_FRAME.
9452         (finalize_image_instance): ditto.
9453         (Fimage_instance_foreground): ditto.
9454         (Fimage_instance_background): ditto.
9455         (image_instantiate): ditto.
9456         (update_subwindow_cachel): ditto.
9457         (update_subwindow): ditto.
9458         (unmap_subwindow): ditto.
9459         (map_subwindow): ditto
9460         (subwindow_instantiate): ditto.
9461         * glyphs-msw.c (mswindows_update_widget): ditto.
9462         (mswindows_progress_gauge_instantiate): ditto.
9463         (mswindows_tab_control_update): ditto.
9464         * glyphs-x.c (x_update_widget): ditto.
9465         (x_widget_instantiate): ditto.
9466         (x_tab_control_instantiate): ditto.
9467         (x_tab_control_update): ditto.
9468         * event-msw.c (mswindows_wnd_proc): ditto
9469
9470         * glyphs-widget.c (image_instantiator_layout): use
9471         subwindow_decode_domain.
9472         (image_instantiator_buttons): ditto.
9473         (image_instantiator_edit_fields): ditto.
9474         (image_instantiator_combo_box): ditto.
9475         (image_instantiator_scrollbar): ditto.
9476         (image_instantiator_progress_guage): ditto.
9477         (image_instantiator_tree_view): ditto.
9478         (image_instantiator_tab_control): ditto.
9479         (image_instantiator_labels): ditto.
9480         (image_instantiator_layout): ditto.
9481
9482         * glyphs.c: add instance error checking to many functions.
9483         (instantiate_image_instantiator): decode device from cache_domain.
9484         (image_instantiate): partially rewrite by using
9485         decode_image_instantiator_domain to determine what domain the
9486         instance needs to be cached in.
9487         (decode_image_instantiator_domain): new function. Determine what
9488         domain the image needs to be cached in.
9489         (check_window_subwindow_cache): new error checking function.
9490         (check_instance_cache_mapper): ditto.
9491         (check_image_instance_structure): ditto.
9492         (subwindow_decode_domain): new function. Encodes a window as a
9493         subwindow's cache domain.
9494         (image_instantiator_format_create): use it for text and
9495         subwindows.
9496
9497 2000-04-21  Andy Piper  <andy@xemacs.org>
9498
9499         * glyphs.c (image_instance_device): new function.
9500         (image_instance_frame): new function.
9501         (image_instance_window): new function.
9502         (image_instance_live_p): new function.
9503
9504         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9505         cache to nil.
9506
9507         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9508         (IMAGE_INSTANCE_DOMAIN): new accessor.
9509         (XIMAGE_INSTANCE_DOMAIN): ditto.
9510
9511         * glyphs-x.c (x_finalize_image_instance): device->domain.
9512
9513         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9514         (mswindows_finalize_image_instance): ditto.
9515
9516         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9517         (gif_instantiate): ditto.
9518         (png_instantiate): ditto.
9519         (tiff_instantiate): ditto.
9520
9521         * glyphs.c (instantiate_image_instantiator): use domain rather
9522         than device.
9523         (mark_image_instance): device -> domain.
9524         (print_image_instance): ditto.
9525         (finalize_image_instance): ditto.
9526         (image_instance_equal): ditto.
9527         (allocate_image_instance): ditto.
9528         (Fcolorize_image_instance): ditto.
9529         (query_string_geometry): ditto.
9530         (image_instantiate): ditto
9531         (query_string_font): ditto.
9532         (image_instantiate): ditto.
9533         (update_subwindow): ditto.
9534         (unmap_subwindow): ditto.
9535         (map_subwindow): ditto.
9536         (subwindow_instantiate): ditto.
9537
9538         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9539         (DOMAIN_FRAME): ditto.
9540         (DOMAIN_WINDOW): ditto.
9541         (DOMAIN_LIVE_P): ditto.
9542         (XDOMAIN_DEVICE): ditto.
9543         (XDOMAIN_FRAME): ditto.
9544         (XDOMAIN_WINDOW): ditto.
9545
9546         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9547         a valid specifier domain.
9548
9549 2000-04-19  Andy Piper  <andy@xemacs.org>
9550
9551         * glyphs-widget.c (syms_of_glyphs_widget): remove
9552         widget-callback-current-channel.
9553         (vars_of_glyphs_widget): ditto.
9554         * glyphs.h: ditto
9555
9556         * gui.c (get_gui_callback): revert to previous behaviour.
9557
9558 2000-04-18  Andy Piper  <andy@xemacs.org>
9559
9560         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9561         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9562         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9563
9564         * glyphs.c (image_instance_equal): add margin_width.
9565         (image_instance_hash): ditto.
9566
9567         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9568         (layout_query_geometry): ditto.
9569         (layout_layout): ditto.
9570         (syms_of_glyphs_widget): add margin-width.
9571         (image_instantiator_layout): allow margin-width.
9572
9573         * glyphs.c (update_widget_instances): make a normal function.
9574         (syms_of_glyphs): remove Qupdate_widget_instances.
9575         * glyphs.h: ditto.
9576
9577         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9578         so that we don't corrupt ideas about the last event or
9579         command. Remove widget-callback-current-channel fiddling.
9580         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9581
9582 2000-05-01  Martin Buchholz <martin@xemacs.org>
9583
9584         * XEmacs 21.2.33 is released.
9585
9586 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9587
9588         * make-src-depend: Allow dots in header file name.
9589
9590 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9591
9592         * mule-charset.h (struct charset_lookup): Add
9593         next_allocated_1_byte_leading_byte and
9594         next_allocated_2_byte_leading_byte.
9595         * mule-charset.c: Move above two variables so that those values
9596         will be dumped.
9597
9598 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9599
9600         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9601         when string length is zero.
9602         (find_charsets_in_emchar_string): Ditto.
9603
9604 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9605
9606         * lisp.h: extern Qdialog and Qmenubar.
9607
9608         * gui-x.c: added events.h.
9609                 also fixed typo which made the file uncompilable.
9610
9611         * general.c: Added Qmenubar and Qdialog
9612
9613 2000-04-28  Ben Wing  <ben@xemacs.org>
9614
9615         * frame-msw.c (mswindows_init_frame_1):
9616         * frame-msw.c (mswindows_mark_frame):
9617         * event-msw.c (mswindows_enqueue_dispatch_event):
9618         * console-msw.h:
9619         * console-msw.h (struct mswindows_frame):
9620         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9621         there are now three hash tables for callbacks.
9622         mswindows_enqueue_dispatch_event is no longer static.
9623
9624         * dialog-x.c (maybe_run_dbox_text_callback):
9625         * dialog-x.c (dbox_descriptor_to_widget_value):
9626         switch to new cons3 form for callbacks.
9627
9628         * glyphs-msw.c (mswindows_register_gui_item):
9629         * glyphs-msw.c (mswindows_widget_instantiate):
9630         * glyphs-msw.c (add_tree_item):
9631         * glyphs-msw.c (add_tab_item):
9632         new image instance parameter, so it can be passed to callback-ex.
9633         respect :callback-ex as well as :callback.
9634
9635         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9636         add :callback-ex.
9637
9638         * glyphs.c (print_image_instance):
9639         prettify, e.g. now prints widget type.
9640
9641         * gui-x.h:
9642         certain funs have new image instance parameter.
9643
9644         * gui.c:
9645         * gui.c (get_gui_callback):
9646         * gui.c (gui_item_add_keyval_pair):
9647         * gui.c (gui_item_init):
9648         * gui.c (gui_add_item_keywords_to_plist):
9649         * gui.c (mark_gui_item):
9650         * gui.c (gui_item_hash):
9651         * gui.c (gui_item_equal):
9652         * gui.c (copy_gui_item):
9653         * gui.c (syms_of_gui):
9654         recognize callback-ex in a number of places.
9655         also, fix the annoying "can't get out of yes-no dialog" bug.
9656
9657         * gui.h:
9658         * gui.h (struct Lisp_Gui_Item):
9659         recognize callback-ex in a number of places.
9660
9661         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9662         new parameter in button_item_to_widget_value.
9663
9664         * glyphs-x.c (x_update_widget):
9665         * glyphs-x.c (x_button_instantiate):
9666         * glyphs-x.c (x_button_update):
9667         * glyphs-x.c (x_progress_gauge_instantiate):
9668         * glyphs-x.c (x_edit_field_instantiate):
9669         * glyphs-x.c (x_combo_box_instantiate):
9670         * glyphs-x.c (x_tab_control_instantiate):
9671         * glyphs-x.c (x_label_instantiate):
9672         new image instance parameter in various places.
9673
9674         * event-Xt.c:
9675         * event-Xt.c (enqueue_Xt_dispatch_event):
9676         this fun gets exported.
9677
9678         * gui-msw.c:
9679         * gui-msw.c (mswindows_handle_gui_wm_command):
9680         handle both :callback and :callback-ex, and generate our own
9681         event because it's one of the callback-ex arguments.
9682
9683         * gui-x.c:
9684         * gui-x.c (popup_selection_callback):
9685         handle both :callback and :callback-ex, and generate our own
9686         event because it's one of the callback-ex arguments.
9687         * gui-x.c (button_item_to_widget_value):
9688         * gui-x.c (gui_items_to_widget_values_1):
9689         * gui-x.c (gui_item_children_to_widget_values):
9690         * gui-x.c (gui_items_to_widget_values):
9691         new image instance parameter in various places.
9692
9693         * fns.c (Freplace_list):
9694         fix small typo in doc string.
9695
9696         * lisp.h:
9697         declare enqueue_Xt_dispatch_event.
9698
9699 2000-04-28  Ben Wing  <ben@xemacs.org>
9700
9701         * buffer.c:
9702         * buffer.c (Frecord_buffer):
9703         * buffer.c (syms_of_buffer):
9704         delete record-buffer-hook.
9705
9706         * fns.c:
9707         * fns.c (Freplace_list):
9708         * fns.c (syms_of_fns):
9709         new primitive replace-list.
9710
9711         * frameslots.h:
9712         slot for old buffer-alist.
9713
9714         * lisp.h:
9715         exfun replace-list.
9716
9717         * redisplay.c:
9718         * redisplay.c (redisplay_frame):
9719         * redisplay.c (syms_of_redisplay):
9720         * redisplay.c (vars_of_redisplay):
9721         new hook buffer-list-changed-hook.
9722         call it.
9723
9724 2000-04-27  Ben Wing  <ben@xemacs.org>
9725
9726         * extents.h: extern in_modeline_generation.
9727
9728         * redisplay.c (generate_formatted_string_db): set
9729         in_modeline_generation.
9730
9731         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9732         flags if in modeline generation.  otherwise frame-modified-tick
9733         is ticked far too often.
9734         Declare in_modeline_generation.
9735
9736 2000-04-26  Ben Wing  <ben@xemacs.org>
9737
9738         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9739         option.
9740         (vars_of_emacs): add quick-build as an error-checking option.
9741         A bit kludgy, but there doesn't seem much point in creating
9742         a real var for this.
9743
9744         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9745
9746 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9747
9748         * redisplay.h (struct display_line): Add a new variable,
9749         line_continuation.
9750
9751         * redisplay.c (create_text_block): Set dl->line_continuation if
9752         the line continues.
9753         (create_string_text_block): Ditto.
9754         (regenerate_window_incrementally): Use line_continuation instead
9755         of searching continuation glyph.
9756         (add_margin_runes): Call add_glyph_rune.
9757         (add_glyph_rune): Handle margin glyph.
9758
9759 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9760
9761         * filelock.c (fill_in_lock_file_name):
9762         ANSIfy.
9763         Check for IS_ANY_SEP instead of '/'.
9764         (lock_file_1):
9765         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9766         Never check errno without first seeing that system call failed.
9767         (unlock_file): Add GCPRO.
9768         (Flock_buffer): Fix docstring.
9769         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9770
9771 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9772
9773         * sysdep.c (get_pty_max_bytes):
9774         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9775         strings longer than 252 bytes.
9776
9777         * md5.c: Unconditionally include ANSI header <limits.h>
9778
9779         * glyphs-x.c (convert_EImage_to_XImage):
9780         * lisp-union.h (union Lisp_Object):
9781         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9782
9783 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9784
9785         * filelock.c (current_lock_owner): Remove unused variable o, p.
9786
9787 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9788
9789         * callint.c: Remove multiply defined symbol Qlet
9790         (syms_of_callint): ditto.
9791
9792 2000-04-14  Andy Piper  <andy@xemacs.org>
9793
9794         * general.c (syms_of_general): add last-command, this-command, let
9795         and funcall.
9796
9797         * lisp.h: declare various symbols.
9798
9799         * glyphs.h: declare Qwidget_callback_current_channel;
9800
9801         * glyphs-widget.c (syms_of_glyphs_widget): add
9802         Qgui_callback_current_channel.
9803         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9804
9805         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9806         widget-callback-current-channel when invoking the interactive
9807         arg. Also bind last-command and next-command when invoking the
9808         widget updates.
9809         * gui-x.c (popup_selection_callback): ditto.
9810
9811         * gui.c (get_gui_callback): massage args so that we are always
9812         calling eval. This allows us to add our own variable bindings
9813         outside.
9814
9815         * glyphs-x.c (x_button_instantiate): use
9816         gui_items_to_widget_values since this is GC safe.
9817         (x_progress_gauge_instantiate): ditto.
9818         (x_edit_field_instantiate): ditto.
9819         (x_label_instantiate): ditto.
9820
9821         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9822         (emacs_Xt_event_widget_focus_out): new function
9823         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9824         focus.
9825         (emacs_Xt_event_add_widget_actions): new function. add focus
9826         functions as actions.
9827         (init_event_Xt_late): use it.
9828
9829 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9830
9831         * event-stream.c (Fdispatch_event): Doc fix.
9832
9833 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9834
9835         * postgresql.c: Remove all references to PQsetenv*.
9836
9837         * postgresql.h: Remove references to PGsetenvHandler object.
9838         * lrecord.h (lrecord_type): Ditto.
9839
9840 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9841
9842         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9843         real_heigh and real_width members, and accessor macros for these.
9844
9845         * glyphs-msw.c (init_image_instance_geometry): New function.
9846         (init_image_instance_from_dibitmap): Use it.
9847         (mswindows_resource_instantiate): Use it.
9848         (init_image_instance_from_xbm_inline): Use it.
9849         (mswindows_initialize_image_instance_mask): Use real bitmap
9850         geometry.
9851         (mswindows_create_resized_bitmap): Ditto.
9852         (mswindows_create_resized_mask): Ditto.
9853
9854         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9855         and bitmap to their surface size.
9856
9857 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9858
9859         * process-unix.c (unix_send_process): Guard against process MIA
9860         after Faccept_process_output.
9861
9862 2000-04-11  Ben Wing  <ben@xemacs.org>
9863
9864         * eval.c (unbind_to_hairy): fix brokenness introduced by
9865         nanosecond speed improvements.
9866
9867 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9868
9869         * sunplay.c (init_device): To play sounds correctly, the device
9870         apparently needs to be initialized at least once by XEmacs.  Make
9871         it so.
9872
9873 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9874
9875         * redisplay.c (add_margin_runes): Add text image glyph
9876           handling.
9877
9878 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9879
9880         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9881         gcc is newer than 2.5.
9882
9883 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9884
9885         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9886
9887         * fns.c (size_bit_vector):
9888         * alloc.c (size_vector):
9889         (make_vector_internal):
9890         (make_bit_vector_internal):
9891         (sweep_bit_vectors_1):
9892         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9893
9894 2000-04-06  Andy Piper  <andy@xemacs.org>
9895
9896         * gmalloc.c (malloc): undo previous change.
9897         (malloc): ditto.
9898         (free): ditto.
9899         (realloc): ditto.
9900
9901 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9902
9903         * line-number.c (buffer_line_number): Revert to former version.
9904
9905 2000-04-06  Andy Piper  <andy@xemacs.org>
9906
9907         * gmalloc.c (malloc): add error checking.
9908         (malloc): ditto.
9909         (free): ditto.
9910         (realloc): ditto.
9911
9912         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9913         button_item_to_widget_value arg.
9914
9915         * glyphs-x.c (x_button_instantiate): add extra
9916         button_item_to_widget_value arg.
9917         (x_progress_gauge_instantiate): ditto.
9918         (x_edit_field_instantiate): ditto.
9919         (x_label_instantiate): ditto.
9920
9921         * gui-x.c (gui_items_to_widget_values_1): add extra
9922         button_item_to_widget_value arg.
9923         (button_item_to_widget_value): add extra menu_item_p arg.
9924
9925         * gui-x.h: change signature of button_item_to_widget_value.
9926
9927         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9928         button_item_to_widget_value arg.
9929
9930 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9931
9932         * buffer.h (struct buffer): auto_save_modified should be long.
9933
9934 2000-04-05  Andy Piper  <andy@xemacs.org>
9935
9936         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9937         type.
9938         (button_query_geometry): give a little more room so that athena
9939         buttons fit.
9940
9941 2000-04-05  Andy Piper  <andy@xemacs.org>
9942
9943         * faces.c (complex_vars_of_faces): The widget face should inherit
9944         the font of the gui-element face.
9945
9946 2000-04-04  Andy Piper  <andy@xemacs.org>
9947
9948         * glyphs-x.c (x_button_update): new function. unconditionally
9949         update a button's state when the instance is dirty.
9950         (image_instantiator_format_create_glyphs_x): add x_button_update.
9951         (x_widget_instantiate): remove old resize cruft.
9952
9953 2000-04-02  Andy Piper  <andy@xemacs.org>
9954
9955         * frame.c (change_frame_size_1): The introduction of gutters means
9956         that we need to allow 0 as a potential frame dimension.
9957
9958 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9959
9960         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9961         image glyph if allow_cursor.
9962         (add_hscroll_rune): Don't allow cursor to border glyph.
9963         (create_text_block): Ditto.
9964
9965         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9966         text not in buffer.
9967         (redisplay_output_layout): Call ensure_face_cachel_complete for
9968         text image glyph.
9969
9970
9971 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9972
9973         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9974
9975         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9976         not in buffer
9977
9978         * redisplay-tty.c (tty_output_display_block): Delete the routine
9979         for text image glyph
9980         * redisplay-x.c (x_output_display_block): ditto
9981         * redisplay-msw.c (mswindows_output_display_block): ditto
9982
9983 2000-02-02  Mike Alexander  <mta@arbortext.com>
9984
9985         Note: Some of these were committed by accident as part of other
9986         patches.
9987
9988         * regex.c (regex_compile): Avoid compiler warnings.
9989
9990         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9991
9992         * nt.h: Declare term_ntproc correctly.
9993
9994         * nt.c: Remove incorrect declaration of get_home_directory which
9995         is declared correctly in lisp.h.
9996
9997         * keymap.c (get_keyelt): Avoid compiler warnings.
9998         (raw_lookup_key_mapper): Avoid compiler warnings.
9999
10000         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
10001
10002         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
10003
10004         * filemode.c (mode_string): Avoid compiler warnings.
10005
10006         * file-coding.c (Fcoding_system_aliasee): Add return statement to
10007         avoid warning.
10008
10009         * events-mod.h: Undef some things that winuser.h defines differently.
10010
10011         * data.c (Faset): Avoid compiler warnings.
10012
10013         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
10014
10015 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10016
10017         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
10018         Fall through to simple beep on error.
10019         Replace "extern" by real header file.
10020
10021         * linuxplay.c: Use nativesound.h
10022         (play_sound_data): Return error code. Be less verbose on error.
10023
10024         * sunplay.c: Use nativesound.h
10025         (play_sound_data): Return error code. Be less verbose on error.
10026
10027         * ntplay.c: Use nativesound.h
10028         (play_sound_data): Return fake error code
10029
10030         * sgiplay.c: Use nativesound.h
10031         (play_sound_data): Return error code
10032
10033         * hpplay.c: Use nativesound.h, partially implement
10034         new error code. Break compilation until finished.
10035         (play_sound_data): error code.
10036
10037         * nativesound.h (play_sound_file):
10038           (play_sound_data): Prototype in new header.
10039
10040 2000-03-31  Andy Piper  <andy@xemacs.org>
10041
10042         * glyphs-widget.c: (button_query_geometry): new function. Adjust
10043         for toggle and radio buttons.
10044         (image_instantiator_buttons): use it.
10045
10046 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10047
10048         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10049         (x_update_horizontal_scrollbar_callback): Return if no mirror was
10050         found. Scrollbar event probably belonged to some old config.
10051
10052 2000-03-31  Andy Piper  <andy@xemacs.org>
10053
10054         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10055         than 1.
10056         (initialize_widget_image_instance): default layout to
10057         LAYOUT_HORIZONTAL rather than 0.
10058         (widget_instantiate): reverse the item list at the end rather than
10059         every iteration.
10060         (layout_layout): re-code for the border text at the front of the
10061         item list rather than at the end.
10062         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10063         provided by the user.
10064         (widget_query_geometry): comment.
10065
10066 2000-03-30  Andy Piper  <andy@xemacs.org>
10067
10068         * glyphs-widget.c (image_instantiator_layout): allow standard
10069         widget keywords in layouts.
10070
10071         * gutter.c (output_gutter): cope with nil gutter contents.
10072
10073         * frame.c (Fset_frame_properties): add gutter docs.
10074
10075 2000-03-29  Andy Piper  <andy@xemacs.org>
10076
10077         * toolbar-msw.c (TBSTYLE_FLAT): add.
10078         (mswindows_output_toolbar): minor fiddling.
10079
10080 2000-03-29  Andy Piper  <andy@xemacs.org>
10081
10082         * gutter.c (output_gutter): force gutter size recalculation if
10083         what we are trying to display won't fit.
10084         (update_gutter_geometry): new function. A per-gutter version of
10085         update_frame_gutter_geometry.
10086         (update_frame_gutter_geometry): use it.
10087         (redraw_exposed_gutter): add extra debugging output.
10088
10089 2000-03-28  Mike Alexander  <mta@arbortext.com>
10090
10091         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10092         (pdump_file_unmap): Implement it on Windows
10093         (pdump_file_get): Save alocated handles for pdump_file_unmap
10094
10095 2000-03-28  Andy Piper  <andy@xemacs.org>
10096
10097         * gui.c (get_gui_callback): treat Quit specially.
10098
10099 2000-03-27  Andy Piper  <andy@xemacs.org>
10100
10101         * glyphs.c (image_instantiate): be careful to check in the same
10102         way we assigned.
10103
10104 2000-03-27  Didier Verna  <didier@xemacs.org>
10105
10106         * config.h.in: define the proper SMART_INCLUDE macro.
10107         handle renaming of `foo_h_path' to `foo_h_file'.
10108
10109         * database.c: ditto.
10110
10111         * emacs.c: ditto.
10112
10113         * linuxplay.c: ditto.
10114
10115         * terminfo.c: ditto.
10116
10117         * tooltalk.h: ditto.
10118
10119 2000-03-27  Andy Piper  <andy@xemacs.org>
10120
10121         * glyphs-msw.c (mswindows_update_widget): make sure the widget
10122         gets updated whenever the face might have changed.
10123
10124 2000-03-26  Mike Alexander  <mta@arbortext.com>
10125
10126         * dumper.c (pdump_resource_free): Fix the comment.
10127
10128 2000-03-21  Olivier Galibert  <galibert@pobox.com>
10129
10130         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10131
10132 2000-03-22  Mike Alexander  <mta@arbortext.com>
10133
10134         * dumper.c: Include Windows headers on Windows
10135         (pdump_resource_free): Add a body to the function
10136         (pdump_load): exe_name -> exe_path and add some comments.
10137
10138 2000-03-25  Mike Alexander  <mta@arbortext.com>
10139
10140         * gui.c (copy_gui_item_tree): Return a value in all cases
10141
10142 2000-03-21  Didier Verna  <didier@xemacs.org>
10143
10144         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10145         lwlib/config.h.in.
10146         (SMART_INCLUDE): new macro.
10147         (POSTGRES_INCLUDE): new macro to include postgresql headers from
10148         the proper location.
10149
10150         * postgresql.c: use it.
10151
10152         * inline.c: ditto.
10153
10154 2000-03-24  Andy Piper  <andy@xemacs.org>
10155
10156         * gutter.c (redraw_exposed_gutters): must be "in display" when we
10157         do this.
10158
10159 2000-03-24  Andy Piper  <andy@xemacs.org>
10160
10161         * redisplay-output.c (compare_runes): use image_instance_changed
10162         to detect changes. Do not depend on glyphs_changed, only depend on
10163         dirtiness.
10164          (redisplay_output_layout): add debug messages.
10165         (compare_runes): ditto.
10166
10167         * glyphs.h: declare new functions.
10168         (struct Lisp_Image_Instance): remove percent and associated
10169         accessors.
10170
10171         * gui.h: declare new copying functions.
10172
10173         * gui.c (copy_gui_item_tree): new function.
10174         (copy_gui_item): new function.
10175         (gui_item_id_hash): revert to standard hash.
10176         (gui_item_hash): ditto.
10177         (gui_item_hash_internal): deleted.
10178         (mark_gui_item): mark value.
10179         (gui_item_add_keyval_pair): add value.
10180         (gui_item_init): ditto.
10181         (gui_add_item_keywords_to_plist): ditto.
10182         (gui_item_equal): ditto.
10183         (syms_of_gui): add Q_value.
10184
10185         * glyphs-x.c (x_progress_gauge_update): use pending items and
10186         value for setting the state.
10187         (x_update_widget): don't set items from pending here.
10188
10189         * glyphs-widget.c (update_widget): update items here.
10190         (progress_gauge_set_property): use items for storing value. Put
10191         new value in pending items.
10192
10193         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10194         items for new value. Convert percent -> value.
10195         (mswindows_tab_control_update): don't update items here.
10196
10197         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10198         (update_subwindow): ditto.
10199         (image_instance_changed): new function. Compare hash values and
10200         past and present widget items.
10201         (image_instantiate): We more careful about where we instantiate
10202         things.
10203         (image_instantiate): add error checking.
10204
10205         * gutter.c (syms_of_gutter): use -hook.
10206
10207 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
10208
10209         * console-tty.c (Fset_console_tty_input_coding_system): Use
10210         Qkeyboard.
10211         (Fset_console_tty_output_coding_system): Use Qterminal.
10212         (tty_init_console): Use Qkeyboard and Qterminal.
10213
10214 2000-03-21  Ben Wing  <ben@xemacs.org>
10215
10216         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10217         From Mike Alexander <mta@arbortext.com>.
10218
10219 2000-03-21  Ben Wing  <ben@xemacs.org>
10220
10221         * event-msw.c (mswindows_need_event): Horrible kludge to fix
10222         process brokenness.  Proper implementation to come.
10223         * callproc.c:
10224         Rename call-process-internal to old-call-process-internal.
10225         New impl. in process.el.
10226
10227 2000-03-21  Martin Buchholz  <martin@xemacs.org>
10228
10229         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10230
10231 2000-03-20  Andy Piper  <andy@xemacs.org>
10232
10233         * glyphs.c (full_list_hash): make hashes of the same elements in
10234         different orders return different values.
10235
10236 2000-03-20  Martin Buchholz <martin@xemacs.org>
10237
10238         * XEmacs 21.2.32 is released.
10239
10240 2000-03-20  Martin Buchholz  <martin@xemacs.org>
10241
10242         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10243         (DFC_MALLOC_USE_CONVERTED_DATA):
10244         Add aliasing-safe casts to allow use with char* or unsigned char*
10245         lvalues.
10246
10247         * eldap.c (Fldap_open):
10248         (Fldap_search_basic):
10249         (Fldap_add):
10250         (Fldap_modify):
10251         Make C++-compilable.
10252         Make sure GCPRO'ed variables are initialized.
10253         Use temp variables to avoid repeated calls to Flength.
10254
10255 2000-03-16  Martin Buchholz  <martin@xemacs.org>
10256
10257         * sysfile.h:
10258         Make sure PATH_MAX is always defined.
10259         Include limits.h for PATH_MAX.
10260         Deprecate use of MAXPATHLEN.
10261
10262 2000-03-10  Martin Buchholz  <martin@xemacs.org>
10263
10264         * emacs.c: Add reinit_vars_of_fileio.
10265         * symsinit.h: Add reinit_vars_of_fileio.
10266         * fileio.c (reinit_vars_of_fileio): New.
10267         * fileio.c (Fmake_temp_name):
10268         Initialize temp_name random number from microseconds to make
10269         collisions even less likely.  Initialize always at process startup
10270         time.  (make-temp-name) used to return the same file name twice in
10271         a row when PDUMP.
10272         Random stylistic fiddling.
10273         Comment fixes.
10274
10275 2000-03-20  Andy Piper  <andy@xemacs.org>
10276
10277         * glyphs.c (image_instantiate): allow text glyphs to be
10278         instantiated in the minibuffer window.
10279
10280 2000-03-19  Andy Piper  <andy@xemacs.org>
10281
10282         * glyphs.c (image_instance_hash): be careful about which items we
10283         hash on.
10284
10285         * glyphs-widget.c (tab_control_set_property): record into pending
10286         items rather than the actual items.
10287
10288         * glyphs-x.c (x_update_widget): use pending items to update with.
10289
10290         * glyphs-msw.c (mswindows_tab_control_update): use pending items
10291         to update with.
10292
10293         * glyphs.c (mark_image_instance): mark pending items.
10294
10295         * window.c (Fset_window_configuration): record the buffer.
10296         (Fselect_window): totally revert previous change which breaks many
10297         things.
10298
10299 2000-03-18  Andy Piper  <andy@xemacs.org>
10300
10301         * glyphs-msw.c (mswindows_tab_control_update): force selected
10302         item.
10303
10304         * glyphs.c (image_instantiate): don't allow the minibuffer as a
10305         window domain cache, otherwise we get inconsistencies at
10306         startup. There is something fishy at startup which can lead to the
10307         minibuffer being the selected window when the gutter content is
10308         instantiated.
10309
10310         * gui.c (parse_gui_item_tree_list): add probably unnecessary
10311         gcpros.
10312         (parse_gui_item_tree_children): ditto.
10313         (parse_gui_item_tree_item): ditto.
10314
10315         * glyphs.c (Fupdate_widget_instances): return something.
10316
10317 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
10318
10319         * window.c (Fselect_window): Undo 2000-03-17 change.
10320
10321 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
10322
10323         * postgresql.c (Fpq_setenv): Remove this turkey when linking
10324         against v7.0 libraries.  Insta-coredump city until the postgres
10325         folks fix it.
10326
10327 2000-03-17  Andy Piper  <andy@xemacs.org>
10328
10329         * faces.c (complex_vars_of_faces): don't give the widget face an
10330         inherited background pixmap.
10331
10332         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10333         selected item.
10334
10335         * event-stream.c (Fdispatch_non_command_events): return something.
10336
10337         * gutter.c (output_gutter): use widget face.
10338         (clear_gutter): ditto.
10339
10340         * NEWS: adjust again.
10341
10342         * window.c (Fselect_window): make sure this runs to completion to
10343         avoid oddities with Fset_window_configuration.
10344         (Fcurrent_window_configuration): in general do not save the
10345         minibuffer as the selected window.
10346
10347         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10348
10349 2000-03-16  Olivier Galibert  <galibert@pobox.com>
10350
10351         * emacs.c (Frunning_temacs_p): Revert previous patch.
10352         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10353
10354 2000-03-16  Andy Piper  <andy@xemacs.org>
10355
10356         * glyphs-x.c (x_tab_control_update): if no widget values then
10357         return.
10358
10359         * NEWS: update for new features.
10360
10361         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10362         synthetic event to the native system.
10363         (reinit_vars_of_event_Xt): set force_event_pending to
10364         emacs_Xt_force_event_pending.
10365
10366         * events.h (struct event_stream): add force_event_pending.
10367
10368         * specifier.c (recompute_one_cached_specifier_in_window): add
10369         comment.
10370
10371         * redisplay.c (redisplay_frame): don't call
10372         update_frame_subwindows. Reset subwindow cachels when
10373         subwindows_changed, removing this was an optimization too far.
10374
10375         * redisplay-output.c (compare_runes): reorganize so that we catch
10376         glyph changes when we want them. Set optimize_output when this
10377         would help layouts.
10378         (redisplay_output_layout): remove frame_really_changed, use
10379         optimize_output instead.
10380
10381         * redisplay-msw.c (mswindows_output_display_block): reset
10382         optimize_output after outputting a glyph.
10383         * redisplay-x.c (x_output_display_block): ditto.
10384         * redisplay-tty.c (tty_output_display_block): ditto.
10385
10386         * gutter.c: (specifier_vars_of_gutter): use new spec changed
10387         functions.
10388         (gutter_specs_changed): do specific gutter positions.
10389         (top_gutter_specs_changed): new function. Only update the
10390         specified gutter specs.
10391         (bottom_gutter_specs_changed): ditto.
10392         (left_gutter_specs_changed): ditto.
10393         (right_gutter_specs_changed): ditto.
10394
10395         * gui.c (gui_item_hash_internal): new function, does a real hash.
10396         (gui_item_id_hash): use it.
10397         (gui_item_hash): hash the eval'ed gui_item.
10398
10399         * gui-x.c (popup_selection_callback): send an eval event to call
10400         Fupdate_widget_instances.
10401
10402         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10403         to call Fupdate_widget_instances.
10404
10405         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10406         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10407
10408         * glyphs.c: (update_frame_subwindows): deleted.
10409         (Fupdate_widget_instances): new function for updating the dirty
10410         state of widgets that might have changed.
10411         (syms_of_glyphs): add Qupdate_widget_instances.
10412         (full_list_hash): hash a list completely.
10413         (image_instance_hash): use it for items and properties.
10414
10415         * frame-msw.c (mswindows_size_frame_internal): remove unused
10416         variable.
10417
10418         * faces.h (struct face_cachel): fix comment.
10419
10420         * event-stream.c (Fdispatch_non_command_events): new
10421         function. Process non-command events, forcing an event cycle
10422         beforehand.
10423         (syms_of_event_stream): declare.
10424         (event_stream_force_event_pending): new function. Force an event
10425         on the native event queue so that an event cycle will occur next
10426         time we check.
10427
10428         * event-msw.c:
10429         (struct ntpipe_shove_stream):
10430         (mswindows_enqueue_dispatch_event):
10431         (mswindows_dequeue_dispatch_event):
10432         (mswindows_cancel_dispatch_event):
10433         (mswindows_pump_outstanding_events):
10434         (mswindows_drain_windows_queue):
10435         (mswindows_handle_paint):
10436         (mswindows_wnd_proc):
10437         (mswindows_key_to_emacs_keysym):
10438         (get_process_input_waitable):
10439         (emacs_mswindows_delete_stream_pair): re-indent file.
10440         (mswindows_need_event): do not process further fds if the windows
10441         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10442         fixes the 100% cpu problem.
10443         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10444
10445 2000-03-15  Olivier Galibert  <galibert@pobox.com>
10446
10447         * alloc.h: New.
10448         * dumper.h: New.
10449         * dumper.c: New.
10450
10451         * emacs.c: Moved dump file searching to dumper.c.
10452         (Frunning_temacs_p): Fixed.
10453
10454         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
10455         last_lrecord_type_index_assigned.
10456
10457 2000-02-20  Olivier Galibert  <galibert@pobox.com>
10458
10459         * symsinit.h: Added reinit parameter to init_console_stream
10460         declaration.
10461
10462         * lisp.h: Added file parameter to pdump_load declaration.
10463
10464         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10465         support.  Added dump file searching.
10466
10467         * config.h.in: Added EMACS_PROGNAME.
10468
10469         * console-stream.c (init_console_stream): Fix reinitialisation
10470         when running from temacs.
10471
10472         * alloc.c (pdump): Add id support.
10473         (pdump_load): Add file parameter and signature/id support.
10474
10475         * Makefile.in.in: Add full pdump support.
10476
10477 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
10478
10479         * postgresql.c: Update documentation to reflect latest code
10480         status.
10481         (print_result): Show tuple counts in printed representation when
10482         appropriate.
10483         (Fpq_put_nbytes): MULE-ize.
10484         (Fpq_get_line_async): Ditto.
10485
10486 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10487
10488         * postgresql.c (Fpq_lo_import): Fix return value.
10489         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10490
10491 2000-03-13  Ben Wing  <ben@xemacs.org>
10492
10493         * alloc.c (pdump_load):
10494         Fix compile warning under mswin.
10495
10496 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
10497
10498         * postgresql.c: Mule-ization, bug fixes.
10499         Use PG_CODING to encapsulate coding system name changes.
10500         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10501         (pg-coding-system): Create.
10502
10503         (Fpq_conn_defaults): Mule-ize.
10504         (Fpq_connectdb): Mule-ize & bug fix.
10505         (Fpq_connect_start): Mule-ize.
10506         (Fpq_set_client_encoding): Mule-ize.
10507         (Fpq_finish): Document `DEAD' connection status.
10508         (Fpq_clear): Ditto.
10509         (Fpq_pgconn): Mule-ize.
10510         (Fpq_exec): Mule-ize & bug fix.
10511         (Fpq_send_query): Ditto.
10512         (Fpq_get_result): Ditto.
10513         (Fpq_res_status): Mule-ize.
10514         (Fpq_result_error_message): Mule-ize.
10515         (Fpq_ntuples): fix comments.
10516         (Fpq_fname): Mule-ize.
10517         (Fpq_fnumber): Mule-ize.
10518         (Fpq_ftype): fix comments.
10519         (Fpq_get_value): Mule-ize.
10520         (Fpq_cmd_status): Ditto.
10521         (Fpq_cmd_tuples): Ditto.
10522         (Fpq_oid_value): Ditto.
10523         (Fpq_notifies): Ditto.
10524         (Fpq_lo_import): Ditto.
10525         (Fpq_lo_export): Ditto.
10526         (Fpq_get_line): Ditto.
10527         (Fpq_put_line): Mule-ize and bug fix.
10528         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10529
10530 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10531
10532         * postgresql.c (vars_of_postgresql): Mule-ize.
10533         (Fpq_conn_defaults): Ditto.
10534
10535 2000-03-12  Ben Wing  <ben@xemacs.org>
10536
10537         * alloc.c (Fmake_byte_code):
10538         * alloc.c (debug_string_purity_print):
10539         * alloc.c (pdump_backtrace):
10540         * alloc.c (pdump_get_indirect_count):
10541         * alloc.c (pdump_register_sub):
10542         * alloc.c (pdump_register_object):
10543         * alloc.c (pdump_register_struct):
10544         * alloc.c (pdump_dump_data):
10545         * alloc.c (pdump_reloc_one):
10546         Minor cleanups.
10547
10548         * console-msw.c:
10549         * console-msw.c (GetConsoleHwnd):
10550         * console-msw.c (msw_hide_console):
10551         * console-msw.c (msw_show_console):
10552         * console-msw.c (msw_ensure_console_buffered):
10553         * console-msw.c (msw_output_console_string):
10554         * console-msw.c (console_type_create_mswindows):
10555
10556         a) Added functions to manipulate the console window for use with
10557         shell support.
10558
10559         b) Added support for writing text to the console, which is now
10560         used under Windows when xemacs is not being run non-interactively,
10561         to write text that would otherwise be destined for stdout because
10562         under these circumstances, text written to stdout tends to
10563         disappear and not be seen.
10564
10565         * console-msw.h:
10566         * event-Xt.c:
10567         * event-Xt.c (x_event_to_emacs_event):
10568         * event-Xt.c (describe_event_window):
10569         * events-mod.h (XEMACS_MOD_CONTROL):
10570         * events.c:
10571         * events.c (Fmake_event):
10572         * events.c (character_to_event):
10573         * events.c (event_to_character):
10574         * events.c (format_event_object):
10575         * events.c (Fevent_modifiers):
10576         * events.h:
10577         * events.h (struct key_data):
10578         * events.h (struct button_data):
10579         * events.h (struct misc_user_data):
10580         * frame-x.c (Fcde_start_drag_internal):
10581         * frame-x.c (Foffix_start_drag_internal):
10582         * gpmevent.c (Freceive_gpm_event):
10583         * keymap.c:
10584         * keymap.c (bucky_sym_to_bucky_bit):
10585         * keymap.c (control_meta_superify):
10586         * keymap.c (make_key_description):
10587         * keymap.c (keymap_lookup_directly):
10588         * keymap.c (create_bucky_submap):
10589         * keymap.c (keymap_store):
10590         * keymap.c (define_key_check_and_coerce_keysym):
10591         * keymap.c (define_key_parser):
10592         * keymap.c (define_key_alternate_name):
10593         * keymap.c (Fdefine_key):
10594         * keymap.c (raw_lookup_key_mapper):
10595         * keymap.c (struct map_keymap_unsorted_closure):
10596         * keymap.c (map_keymap_unsorted_mapper):
10597         * keymap.c (map_keymap_sort_predicate):
10598         * keymap.c (map_keymap_sorted):
10599         * keymap.c (accessible_keymaps_mapper_1):
10600         * keymap.c (where_is_recursive_mapper):
10601         * keymap.c (describe_map_mapper):
10602         * keymap.c (describe_map_sort_predicate):
10603         * keymap.c (describe_map):
10604         * keymap.c (complex_vars_of_keymap):
10605         And a number of other files, the key modifier preprocessor
10606         constants that xemacs uses have names that conflict with constants
10607         defined under MS Windows for other purposes, so they were renamed
10608         to begin with the prefix XEMACS_. The variables that hold such
10609         modifiers were changed to consistently be of type int to fix
10610         various compile warnings.
10611
10612         * console.c (complex_vars_of_console):
10613         * device.c:
10614         * device-msw.c:
10615         * device-msw.c (mswindows_finish_init_device):
10616         * device-msw.c (msw_get_workspace_coords):
10617         * device-msw.c (mswindows_device_system_metrics):
10618         and various other files, added support for a new
10619         device property called offset-workspace which returns the position
10620         of the upper left corner of the workspace area and goes along with
10621         the existing size-workspace property.
10622
10623         * dialog-msw.c:
10624         * dialog-msw.c (push_bufbyte_string_as_unicode):
10625         * dialog-msw.c (mswindows_popup_dialog_box):
10626         Added support for XEmacs-style accelerator specifications in
10627         button text.  Note: I didn't add support for this under X Windows,
10628         and somebody needs to do this.
10629
10630         * dialog.c:
10631         * dialog.c (Fpopup_dialog_box):
10632         Documented the support for accelerators that was just mentioned.
10633
10634         editfns.c (get_home_directory): Changed behavior under Windows
10635         when HOME not defined; former behavior was irretrievably broken.
10636
10637         * emacs.c:
10638         * emacs.c (main_1):
10639         * emacs.c (main):
10640         * minibuf.c (clear_echo_area_internal):
10641         * minibuf.c (echo_area_append):
10642         * print.c:
10643         * print.c (std_handle_out_external):
10644         * print.c (std_handle_out_va):
10645         * print.c (fatal):
10646         * print.c (write_string_to_stdio_stream):
10647         * print.c (output_string):
10648         * print.c (debug_print):
10649         * print.c (debug_backtrace):
10650         * print.c (debug_short_backtrace):
10651         Cleaned up the code that prints text to stdout so that this can be
10652         changed to output into a console window instead under MS Windows,
10653         as described above.
10654
10655         * eval.c:
10656         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10657         * eval.c (internal_catch):
10658         * eval.c (unwind_to_catch):
10659         * eval.c (throw_or_bomb_out):
10660         * eval.c (condition_case_1):
10661         * eval.c (signal_1):
10662         * eval.c (check_error_state_sanity):
10663         * eval.c (call_with_suspended_errors_1):
10664         * eval.c (call_with_suspended_errors):
10665         * eval.c (reinit_vars_of_eval):
10666         Added code to catch throw loops and check for a pesky bug that may
10667         be gone now.
10668
10669         * event-msw.c:
10670         * event-msw.c (key_needs_default_processing_p):
10671         * event-msw.c (mswindows_wnd_proc):
10672         * event-msw.c (mswindows_modifier_state):
10673         * event-msw.c (emacs_mswindows_quit_p):
10674         * event-msw.c (vars_of_event_mswindows):
10675         a) Added support for using the alt key to select menu items as is
10676         standard under MS Windows.  This is controlled using the variable
10677         menu-accelerator-enabled, just like under X Windows.  There is an
10678         option on the options menu to turn this support on.  I really
10679         think that it should be on by default under Windows, but I'm not
10680         going to make this change yet.
10681
10682         b)  Added support for dynamic display size changes under Windows.
10683
10684         * event-stream.c:
10685         * event-stream.c (maybe_echo_keys):
10686         * event-stream.c (Fnext_event):
10687         * event-stream.c (command_builder_find_leaf):
10688         * event-stream.c (lookup_command_event):
10689         * event-stream.c (execute_command_event):
10690         * event-stream.c (pre_command_hook):
10691         * event-stream.c (post_command_hook):
10692         * event-stream.c (syms_of_event_stream):
10693         * event-stream.c (vars_of_event_stream):
10694         * event-stream.c (complex_vars_of_event_stream):
10695         * events.h (struct command_builder):
10696
10697         a) Tried to clean up a little bit the horribly written x-specific
10698         accelerator code that crept into this file.  I moved this code
10699         into menubar-x.c where it belongs. I also needed to move the
10700         command builder structure into the file events.h because it is
10701         accessed directly by this accelerator code.  What I didn't do, but
10702         which should be done at some point, is to properly abstract this
10703         code using device methods instead of the kludgy way that it
10704         currently hooks into the event code.
10705
10706         b) Added the lisp variables this-command-properties and
10707         last-command- properties, which should be used to synchronize two
10708         adjacent commands in preference to playing games with the variable
10709         this-command, which is typically what happens.
10710
10711         c) Added some slightly nasty code to hook into the lisp support
10712         for shifted- motion-key selection.  This is actually necessary for
10713         somewhat complicated reasons, which are described in
10714         simple.el. (NB: I think the proper thing would be to have the code
10715         that calls the pre and post command hooks also call out to generic
10716         lisp functions in simple.el, where all built-in stuff could be
10717         added.  I will think about this more.)
10718
10719         * event-unixoid.c (poll_fds_for_input):
10720         * lread.c (readchar):
10721         * redisplay-tty.c (tty_clear_frame):
10722         * redisplay-x.c (x_get_gc):
10723         * signal.c (interrupt_signal):
10724         And a whole bunch of other files: fixed up places that printed
10725         directly to stderr to instead call the function stderr_out so that
10726         the changes I made under Windows work correctly.
10727
10728         * filemode.c (mode_string):
10729         Warning fixes.
10730
10731         * frame-msw.c:
10732         * frame-msw.c (mswindows_size_frame_internal):
10733         Fixed the computation of frame size and position to keep the frame
10734         within the workspace area, rather than within the physical
10735         dimensions of the screen, so that the frame doesn't overlap window
10736         manager decorations, such as the start menu and toolbar, typically
10737         at the bottom of the screen.
10738
10739         * frame.c (vars_of_frame):
10740         Changed the default frame title format under MS Windows to consist
10741         of buffername-XEmacs, which is standard under MS Windows.  I think
10742         it might be a good idea to change this everywhere because I think
10743         it is superior to the current frame title format, but this is the
10744         kind of change that is likely to cause some people to get annoyed,
10745         so I'm not making it.
10746
10747         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10748
10749         * gui-msw.c (mswindows_handle_gui_wm_command):
10750         Fixed compile warnings.
10751
10752         * gui-x.c:
10753         * gui-x.c (strdup_and_add_accel):
10754         * gui-x.c (button_item_to_widget_value):
10755         * gui-x.h:
10756         Added code to automatically put an accelerator onto the beginning
10757         of menu items that don't have one as is now the standard, and is
10758         described more later.  Also fixed things so that the menu item
10759         name can be an evaluated expression, again a new standard.
10760
10761         * gui.c:
10762         * gui.c (gui_item_add_keyval_pair):
10763         * gui.c (make_gui_item_from_keywords_internal):
10764         * gui.c (gui_add_item_keywords_to_plist):
10765         * gui.c (gui_item_accelerator):
10766         * gui.c (gui_name_accelerator):
10767         * gui.c (gui_item_included_p):
10768         * gui.c (gui_item_display_flush_left):
10769         * gui.c (gui_item_display_flush_right):
10770         * gui.c (parse_gui_item_tree_item):
10771         * gui.c (parse_gui_item_tree_children):
10772         * gui.c (parse_gui_item_tree_list):
10773         Mule-ized.  Cleanup.  GCPRO addition.
10774
10775         * line-number.c (buffer_line_number):
10776         * lisp.h:
10777         * lisp.h (EMACS_INT_MAX):
10778         Added the manifest constant EMACS_INT_MIN corresponding to the
10779         existing constant EMACS_INT_MAX.  This is partially to fix compile
10780         warnings under Windows, and partly for cleanliness.
10781
10782         * menubar-msw.c:
10783         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10784         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10785         * menubar-msw.c (displayable_menu_item):
10786         * menubar-msw.c (populate_menu_add_item):
10787         * menubar-msw.c (populate_or_checksum_helper):
10788         * menubar-msw.c (populate_menu):
10789         * menubar-msw.c (update_frame_menubar_maybe):
10790         * menubar-msw.c (prune_menubar):
10791         * menubar-msw.c (msw_char_is_accelerator):
10792         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10793         * menubar-msw.c (mswindows_handle_wm_command):
10794         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10795         * menubar-msw.c (mswindows_handle_wm_initmenu):
10796         * menubar-msw.c (mswindows_update_frame_menubars):
10797         * menubar-msw.c (mswindows_free_frame_menubars):
10798         * menubar-msw.c (mswindows_popup_menu):
10799         Fixed a bug in handling accelerators where an extra character
10800         would be displayed in the menu item.  Also generalized the
10801         function displayable_menu_item because it is now used by the
10802         dialog box code as well.  And finally, added code in the functions
10803         that create the menubar to extract a list of accelerators for the
10804         top level menubar, which is used in the event code to determine
10805         whether a particular alt-key combination should be used to invoke
10806         a menu item, or should be passed through to access the standard
10807         XEmacs keymap binding for this key combination.
10808
10809         Much needed GCPROing.
10810
10811         * menubar-x.c:
10812         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10813         * menubar-x.c (menu_item_descriptor_to_widget_value):
10814         * menubar-x.c (restore_in_menu_callback):
10815         * menubar-x.c (x_popup_menu):
10816         * menubar-x.c (menu_move_up):
10817         * menubar-x.c (menu_move_down):
10818         * menubar-x.c (menu_move_left):
10819         * menubar-x.c (menu_move_right):
10820         * menubar-x.c (menu_select_item):
10821         * menubar-x.c (command_builder_operate_menu_accelerator):
10822         * menubar-x.c (menu_accelerator_junk_on_error):
10823         * menubar-x.c (command_builder_find_menu_accelerator):
10824         * menubar-x.c (Faccelerate_menu):
10825         * menubar.h:
10826         Moved a whole bunch of code here that was previously in
10827         event-stream.c as described above.  There is also code connected
10828         to the new standard of adding an accelerator to the beginning of
10829         menu items that don't have one as described above and below.
10830
10831         * menubar.c:
10832         * menubar.c (menu_parse_submenu_keywords):
10833         * menubar.c (Fmenu_find_real_submenu):
10834         * menubar.c (Fnormalize_menu_item_name):
10835         * menubar.c (syms_of_menubar):
10836         * menubar.c (vars_of_menubar):
10837         * menubar.c (complex_vars_of_menubar):
10838
10839         a) Cleaned up a bunch of documentation and improved it.
10840
10841         b) XEmacs now automatically adds an accelerator onto the beginning
10842         of any menu items that don't have one.  I did this because there
10843         will inevitably be some menu items on the main menubar that don't
10844         have accelerators on them because the package that adds that
10845         particular menu item hasn't yet been fixed up to have accelerators
10846         in them and it looked rather strange to have some items with and
10847         some items without accelerators, especially since even in items
10848         without accelerators, you can, at least under windows, still
10849         access the item through an accelerator corresponding to the first
10850         character in the item's name.  If people don't like this behavior,
10851         I can add a variable to turn it off optionally, but I'm not sure
10852         this is a good idea because we really do need to have accelerators
10853         on all of the menu items, and if a package doesn't like the
10854         accelerators being put on the first character, then it should put
10855         the accelerators where they belong.
10856
10857         c) I made a behavior change, which is that the descriptor that
10858         specifies the text of the menu item, which formerly was just a
10859         string, can now also be an evaluated expression.  This makes this
10860         descriptor parallel with all of the others, which could also be
10861         evaluated expressions.  This also obviates the need for the
10862         keyword :label, which was previously listed in the documentation
10863         as unimplemented, and which was for the same purpose.
10864
10865         d) GCPROing.
10866
10867         * ntproc.c:
10868         * ntproc.c (new_child):
10869         * ntproc.c (sys_spawnve):
10870         * ntproc.c (find_child_console):
10871         * ntproc.c (sys_kill):
10872         Fixed compile warnings.  By the way, this file should really go
10873         away entirely, and this will happen as soon as Kirill makes his
10874         final round of process cleanups, which affect the function
10875         call-process.
10876
10877         * process-nt.c:
10878         * process-nt.c (struct nt_process_data):
10879         * process-nt.c (find_process_from_pid):
10880         * process-nt.c (send_signal_the_nt_way):
10881         * process-nt.c (enable_child_signals):
10882         * process-nt.c (find_child_console):
10883         * process-nt.c (send_signal_the_95_way):
10884         * process-nt.c (nt_finalize_process_data):
10885         * process-nt.c (ensure_console_window_exists):
10886         * process-nt.c (nt_create_process):
10887         * process-nt.c (nt_kill_child_process):
10888         * process-nt.c (nt_kill_process_by_pid):
10889         * process-nt.c (nt_open_network_stream):
10890         * process-nt.c (vars_of_process_nt):
10891         Copied over code from Emacs 20.5 to correctly send signals to sub-
10892         processes under Windows 95.  Also added code to automatically
10893         create and hide console window when a sub-process is created under
10894         Windows 95, which obviates the need for the separate runemacs.exe
10895         executable, and finally implemented some variables that were
10896         implemented in Emacs 20.5, but previously not in XEmacs.  These
10897         include mswindows- start-process-share-console and
10898         mswindows-start-process-inherit-error-mode. (Both of these only
10899         apply to Windows 95.)
10900
10901         * regex.c (regex_compile): Fixed a compile warning.
10902
10903         * select-msw.c:
10904         * select-msw.c (mswindows_own_selection):
10905         * select-msw.c (mswindows_get_foreign_selection):
10906         * select-msw.c (mswindows_disown_selection):
10907         * select-msw.c (console_type_create_select_mswindows):
10908         * select-msw.c (syms_of_select_mswindows):
10909         Cleaned up the file and implemented the device method
10910         selection_exists_p, which had accidentally been left out.  Also
10911         removed four lisp functions that were remnants from before the
10912         time when the selection code was properly device abstracted.
10913         These functions are no longer needed because there are generic
10914         equivalents, and because they were added recently and don't exist
10915         in FSF Emacs, I don't think there's any problem with just deleting
10916         them.
10917
10918         * sysdep.c:
10919         * sysdep.c (sys_subshell):
10920         Fixed a compile warning, although in this case there's probably
10921         something wrong with this code, and it ought to be looked into
10922         more thoroughly by somebody who understands it.
10923
10924         * window.c:
10925         * window.c (Fwindow_text_area_height):
10926         * window.c (Fwindow_width):
10927         * window.c (Fwindow_full_width):
10928         * window.c (Fwindow_pixel_width):
10929         * window.c (debug_print_window):
10930         * window.c (syms_of_window):
10931         Added functions window-text-area-height and window-full-width,
10932         which are functions for returning various width and height
10933         characteristics of a window. (One of these functions is necessary
10934         for making the file dialog box work correctly, and the other one
10935         was added for completeness.)  Also added a table to the
10936         documentation for window-height which describes the entire scheme
10937         for accessing width and height characteristics of a window.
10938
10939 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10940
10941         * nt.c (fstat): Added a comment for another problem with
10942         non-encapsulated [f]stat(), reported by Adrian Aichner
10943         <aichner@ecf.teradyne.com>.
10944
10945 2000-03-11  Andy Piper  <andy@xemacs.org>
10946
10947         * window.c (make_dummy_parent): initialize subwindow instance
10948         cache.
10949         (Fset_window_configuration): zero extent_modiff.
10950
10951 2000-03-10  Andy Piper  <andy@xemacs.org>
10952
10953         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10954         more changes can be triggered.
10955         (Fredisplay_frame): ditto.
10956         (Fredraw_device): ditto.
10957         (Fredisplay_device): ditto.
10958         (redisplay_frame): make non-static.
10959         (redisplay_frame): call update_frame_gutter_geometry outside of
10960         display proper.
10961
10962         * gutter.h: declare update_frame_gutter_geometry.
10963
10964         * redisplay.h: declare redisplay_frame.
10965
10966         * gutter.c (update_frame_gutter_geometry): move geometry changes
10967         in update_frame_gutters here. Geometry changes can only occur
10968         outside of redisplay.
10969         (update_frame_gutters): remove geometry change code.
10970         (Fredisplay_gutter_area): make sure that we are in display when we
10971         update and that we have flushed any size changes.
10972
10973 2000-03-11  Andy Piper  <andy@xemacs.org>
10974
10975         * alloc.c (pdump_dump_data): remove i & count shadows.
10976
10977 2000-02-27  Mike Alexander  <mta@arbortext.com>
10978
10979         * sysdep.h: Declare pdump_read_file
10980
10981         * sysdep.c (pdump_read_file): New function
10982
10983         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10984         dump data
10985
10986 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10987
10988         * lrecord.h: add `lrecord_type_pgsetenv'.
10989
10990 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10991
10992         * symsinit.h: declare (vars|syms)_of* functions.
10993         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10994
10995 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10996
10997         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10998
10999         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
11000         GCCs.
11001
11002         * emacs.c (main_1): Call postgres initialization code.
11003
11004         * postgresql.h: New file.  PostgreSQL RDBMS support.
11005         * postgresql.c: New file.
11006
11007 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11008
11009         * redisplay-output.c (redisplay_output_display_block): Disable
11010         redundant code.
11011
11012 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11013
11014         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
11015         (Fcanna_henkan_next): Ditto.
11016         (Fcanna_bunsetu_henkou): Ditto.
11017         (Fcanna_henkan_kakutei): Ditto.
11018         (Fcanna_henkan_end): Ditto.
11019         (Fcanna_henkan_quit): Ditto.
11020         (Fcanna_henkan_next): Set retun value correctly.
11021         (c2mu): Use unsigned char instead of signed char.
11022
11023 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11024
11025         * emacs.c (main_1): Always call syms_of_gui.
11026         * inline.c: include gui.h
11027
11028 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11029
11030         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
11031         converted to Lisp_Object.
11032         (Qtop_bottom): New variable.
11033         (syms_of_redisplay): Initialize it.
11034         * redisplay.h (Vvisible_bell): Ditto.
11035         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11036         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11037         only flash top and bottom.
11038
11039 2000-03-08  Andy Piper  <andy@xemacs.org>
11040
11041         * buffer.c (Frename_buffer): record new buffer name the right way.
11042
11043 2000-03-08  Andy Piper  <andy@xemacs.org>
11044
11045         * glyphs.c (update_subwindow): increase hash depth so that widget
11046         items get picked up properly.
11047
11048         * redisplay-output.c (compare_runes): increase hash depth so that
11049         widget items get picked up properly.
11050
11051 2000-03-08  Andy Piper  <andy@xemacs.org>
11052
11053         * gutter.c (output_gutter): add some debug.
11054
11055         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11056         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11057         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11058
11059         * redisplay-output.c (compare_runes): use display_hash to
11060         determine if glyphs really are not the same.
11061
11062         * glyphs.c (update_subwindow): check display_hash to see if
11063         anything really needs to be updated. If not then do
11064         nothing. Record the display_hash after updating.
11065         (image_instance_equal): compare the image_instance face also.
11066
11067 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
11068
11069         * redisplay.h: Fix comment style.
11070
11071 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11072
11073         * consle-msw.h (struct mswindows_frame):
11074         Added new member paint_pending to indicate whether a WM_PAINT
11075         magic event has been queued for this frame.
11076
11077         * event-msw.c (mswindows_drain_windows_queue):
11078         Don't queue a WM_PAINT magic event if one is already queued.
11079         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11080
11081         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11082
11083 2000-03-07  Didier Verna  <didier@xemacs.org>
11084
11085         * dired.c: #include `regex.h' after `sysfile.h'.
11086
11087 2000-03-06  Martin Buchholz  <martin@xemacs.org>
11088
11089         * sound.c (init_nas_sound): Fix compiler warning.
11090
11091         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11092         (FREE_STRUCT_P):
11093         (MARK_STRUCT_AS_FREE):
11094         (MARK_STRUCT_AS_NOT_FREE):
11095         Make `gcc -fstrict-aliasing' work properly.
11096
11097 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11098
11099         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11100         (mswindows_delete_device): Call CoUnnitialize().
11101
11102         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11103
11104 2000-02-25    <CraigL@DyCon.com>
11105
11106         * process-nt.c: MinGW now has <shellapi.h>, but still needs
11107         <errno.h>.
11108
11109         * sysdep.c: This extern declaration for environ prevents MinGW
11110         from finding the variable in CRTDLL.DLL.
11111
11112         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11113         windows headers.
11114         (SHGFI_EXETYPE): ..
11115         (WM_MOUSEWHEEL): ..
11116         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11117         definitions.
11118         (MMRESULT): Removed, now defined in cygwin's windows headers.
11119         (TIMECAPS): ..
11120         (uid_t,gid_t,pid_t,ssize_t): ..
11121         (_timeb): Removed, MinGW defines both _timeb and timeb.
11122         (HAVE_H_ERRNO): Added.
11123         (HAVE_TZNAME): Added, configure is not detecting this.
11124
11125 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
11126
11127         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11128         * syntax.c (syntax_match): Use it.
11129
11130         * cmds.c: Import auto-fill-chars from FSF Emacs.
11131         (Vauto_fill_chars): New variables.
11132         (internal_self_insert): Check Vauto_fill_chars.
11133         (vars_of_cmds):
11134         Declare auto-fill-chars as a Lisp variable and initialize it.
11135
11136 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11137
11138         * fileio.c (Fmake_symbolic_link):
11139         (Ffile_symlink_p):
11140         Run handlers even if local machine doesn't have symlinks.
11141
11142 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11143
11144         * event-msw.c (mswindows_drain_windows_queue):
11145         Don't generate paint magic events for non-XEmacs frames.
11146
11147 2000-03-05  Andy Piper  <andy@xemacs.org>
11148
11149         * redisplay.c (redisplay_frame): generate_displayable_area and
11150         friends assumes that we are not in GC, we therefore have to make
11151         sure that this doesn't happen.
11152
11153         * gutter.c (calculate_gutter_size): generate_displayable_area
11154         assumes that we are not in GC, we therefore have to make sure that
11155         this doesn't happen.
11156
11157 2000-03-05  Martin Buchholz  <martin@xemacs.org>
11158
11159         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11160
11161 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
11162
11163         * redisplay.c (regenerate_window): Make sure we set a sane value
11164         for end_pos even if we jump out of the loop.
11165         (regenerate_window): Answer Ben's question :-).
11166         (start_end_of_last_line): Add may_error argument.
11167         (start_of_last_line):
11168         (end_of_last_line): Pass may_error = 0.
11169         (end_of_last_line_may_error): New function.
11170         (pixel_to_glyph_translation): Use it, so we don't crash in
11171         event_to_glyph.
11172
11173 2000-03-04  Andy Piper  <andy@xemacs.org>
11174
11175         * window.h (struct window): add gutter_extent_modiff.
11176
11177         * window.c (allocate_window): zero out gutter_extent_modiff.
11178
11179         * redisplay.h: declare sync_display_line_structs.
11180
11181         * redisplay.c (add_glyph_rune): add a better comment.
11182
11183         * redisplay-output.c (sync_display_line_structs): made non-static.
11184         (compare_runes): remove unneccesary glyph cachel access.
11185
11186         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11187
11188         * gutter.c (output_gutter): don't output the gutter if extent
11189         changes only involve extents in buffers. use 4 sets of display
11190         lines.
11191         (gutter_extent_signal_changed_region_maybe): new function. Mark
11192         extents in gutters as changed.
11193         (update_frame_gutters): use 4 sets of display lines.
11194         (reset_gutter_display_lines): ditto.
11195         (free_frame_gutters): ditto.
11196         (redraw_exposed_gutter): force output of gutters.
11197
11198         * frame.h (struct frame): add 4 sets of gutter display lines.
11199
11200         * extents.c: (extent_changed_for_redisplay): signal changes to
11201         extents in strings in the gutter as well as extents in buffers.
11202
11203 2000-03-02  Andy Piper  <andy@xemacs.org>
11204
11205         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11206
11207         * frame.c (Fmake_frame): make sure the gutters get initialized
11208         after the frame is visible.
11209         (set_frame_selected_window): re-arrange compilation macros a
11210         little.
11211         (change_frame_size_1): mark gutters changed.
11212
11213         * device.c (Fset_device_class): mark gutters changed.
11214
11215 2000-03-01  Andy Piper  <andy@xemacs.org>
11216
11217         * window.c (window_top_frame_gutter_height): deleted.
11218         (window_bottom_frame_gutter_height): ditto.
11219         (window_left_frame_gutter_height): ditto.
11220         (window_right_frame_gutter_height): ditto.
11221         (window_top_gutter_height): don't use them.
11222         (window_bottom_gutter_height): ditto.
11223         (window_left_gutter_width): ditto.
11224         (window_right_gutter_width): ditto.
11225         (Fsplit_window): ditto.
11226         (Fwindow_pixel_edges): don't use border dimensions here.
11227
11228         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11229         (update_scrollbar_instance): ditto.
11230
11231         * redisplay.c (generate_modeline): don't take gutters into account.
11232         (generate_modeline): ditto.
11233         (redisplay_frame): small gutter display optimization.
11234
11235         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11236
11237         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11238         gutters into account.
11239
11240         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11241         for window position and type.
11242
11243         * gutter.c (get_gutter_coords): fix for frame gutters.
11244         (update_frame_gutters): update frame geometry if the gutters have
11245         changed.
11246         (init_frame_gutters): record current gutter geometries.
11247
11248         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11249         var.
11250         (mswindows_widget_instantiate): ditto.
11251
11252         * frame.h (struct frame): add current_gutter_bounds.
11253
11254         * frame.c (change_frame_size_1): position window and minibuffer
11255         appropriately taking into account the frame gutters.
11256
11257         * frame-x.c: (x_initialize_frame_size): take into account the
11258         frame gutters.
11259
11260 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11261
11262         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
11263
11264 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
11265
11266         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11267
11268 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11269
11270         * file-coding.c (reset_decoding_stream): Clear previous
11271         detection state when autodetect.
11272
11273 2000-02-29  Didier Verna  <didier@xemacs.org>
11274
11275         * extents.c (set_extent_glyph_1): don't require extents to be
11276         attached.
11277
11278 2000-02-27  Andy Piper  <andy@xemacs.org>
11279
11280         * gutter.c (Fset_default_gutter_position): don't default left and
11281         right gutter visibility to t.
11282         (Fset_default_gutter_position): run
11283         default-gutter-position-changed-hook.
11284         (syms_of_gutter): add default-gutter-position-changed-hook.
11285
11286 2000-02-26  Andy Piper  <andy@xemacs.org>
11287
11288         * specifier.c (Fmake_specifier): add gutter references.
11289
11290         * gutter.h (RAW_WINDOW_GUTTER): new macro.
11291
11292         * lisp.h: declare Fvalid_plist_p.
11293
11294         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11295         as changed.
11296         (default_gutter_visible_p_changed_in_window): invalidate gutter as
11297         well as its visibility so that it gets reconstructed.
11298         (construct_window_gutter_spec): new function. Construct a string
11299         to be displayed in the gutter from a plist of strings. Take care
11300         to only use elements that are declared as visible.
11301         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11302         WINDOW_GUTTER.
11303         (gutter_validate): allow plists of strings in the specifier.
11304         (gutter_specs_changed): construct the real_gutter from the gutter
11305         specs using construct_window_gutter_spec.
11306         (gutter_visible_validate): gutter-visible is a new specifier type.
11307         (Fgutter_visible_specifier_p): new function for the new specifier.
11308         (syms_of_gutter): declare gutter-visible and
11309         Fgutter_visible_specifier_p.
11310         (specifier_type_create_gutter): intitalize new gutter-visible
11311         specifier.
11312         (reinit_specifier_type_create_gutter): ditto.
11313         (specifier_vars_of_gutter): use new specifier type for gutter
11314         visibility.
11315         (init_frame_gutters): construct real_gutter correctly.
11316         (Fgutter_specifier_p): beef up documentation.
11317         (Fgutter_size_specifier_p): ditto.
11318
11319         * winslots.h: add real_gutter slots.
11320
11321 2000-02-25  Andy Piper  <andy@xemacs.org>
11322
11323         * device-msw.c: Be kind to older cygwin versions. From Raymond
11324         Toy <toy@rtp.ericsson.se>.
11325
11326         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11327         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11328
11329 2000-02-25  Martin Buchholz  <martin@xemacs.org>
11330
11331         * elhash.c (MARK_OBJ): Practice macro hygiene.
11332
11333 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11334
11335         * miscplay.c: s/__inline__/inline/g;
11336         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11337         (get_device_compdc): INLINE ==> static inline
11338         * *.[ch]: Change INLINE to INLINE_HEADER globally.
11339         find -name '*.h' | \
11340         xargs global-replace \
11341         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11342
11343 2000-02-25  Andy Piper  <andy@xemacs.org>
11344
11345         * window.c (window_top_frame_gutter_height): new function.
11346         (window_top_window_gutter_height): ditto.
11347         (window_top_gutter_height): use them.
11348         (window_bottom_frame_gutter_height): new function.
11349         (window_bottom_window_gutter_height): ditto.
11350         (window_bottom_gutter_height): use them.
11351         (window_left_window_gutter_width): new function.
11352         (window_left_frame_gutter_width): ditto.
11353         (window_left_gutter_width): use them.
11354         (window_right_window_gutter_width): new function.
11355         (window_right_frame_gutter_width): ditto.
11356         (window_right_gutter_width): use them.
11357         (window_pixel_height): new function. calulate window pixel height
11358         with frame gutter involvement.
11359         (Fsplit_window): calculate new sizes taking frame gutters into
11360         account.
11361         (window_char_height_to_pixel_height): don't include frame gutters.
11362         (window_char_height): use window_pixel_height.
11363         (window_pixheight): rename from window_pixel_height.
11364         (change_window_height): use it.
11365         (window_pixel_height_to_char_height): don't include frame gutters.
11366         (window_char_width_to_pixel_width): ditto.
11367
11368 2000-02-25  Andy Piper  <andy@xemacs.org>
11369
11370         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11371         if it is.
11372
11373 2000-02-24  Martin Buchholz  <martin@xemacs.org>
11374
11375         * alloc.c (staticpro):
11376         (staticpro_nodump):
11377         (dumpstruct):
11378         (dumpopaque):
11379         (pdump_wire):
11380         (pdump_wire_list):
11381         (compact_string_chars):
11382         (pdump_dump_wired):
11383         Convert:  if (foo) abort();  ==>  assert (! foo);
11384
11385         * eldap.c (Fldap_search_basic):
11386         (Fldap_add):
11387         (Fldap_modify):
11388         (Fldap_delete):
11389         Fix compiler warnings, and possible crashes if (random) return
11390         value were to be used.
11391
11392 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11393
11394         * device-msw.c: Workaround ResetDC failure.
11395
11396         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11397         applying a devmode.
11398
11399         * redisplay-msw.c (get_frame_dc): Added start_page_p.
11400         (mswindows_text_width): Do not start printer page.
11401
11402         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11403
11404         * glyphs-msw.c: Added image methods to msprinter console and
11405         msprinter-specific image instantiation.
11406
11407 2000-02-20  Mike Alexander  <mta@arbortext.com>
11408
11409         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11410         to avoid crashes when selection-sets-clipboard is on
11411         (mswindows_own_selection): ditto
11412
11413 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11414
11415         * glyphs-msw.c:
11416         * redisplay-msw.c (get_frame_dc):
11417         (get_frame_compdc):
11418         * console-msw.h:
11419         * device-msw.c (mswindows_init_device):
11420         (mswindows_delete_device):
11421         (msprinter_init_device):
11422         (msprinter_delete_device):
11423         * frame-msw.c (mswindows_init_frame_1):
11424         (mswindows_delete_frame):
11425         (msprinter_init_frame_3):
11426         (msprinter_delete_frame): Move compatible DC to device object from
11427         frame object, for both mswindows and msprinter. Only one at a time
11428         is needed, it is a real waste to have one per frame!
11429
11430 2000-02-23  Andy Piper  <andy@xemacs.org>
11431
11432         * glyphs.c: add dynamic width and height elements.
11433         (image_instance_equal): ditto.
11434
11435         * glyphs-widget.c (widget_query_geometry): calculate width and
11436         height dynamically if required.
11437         (initialize_widget_image_instance): initialize dynamic dimensions.
11438         (widget_instantiate): pick-up dynamic dimensions.
11439
11440         * glyphs.h (struct Lisp_Image_Instance): add width and height for
11441         dynamic determination. Add appropriate macros.
11442
11443         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11444         dimensions safe.
11445         (WINDOW_GUTTER_SIZE): ditto.
11446         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11447
11448         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11449         inline.
11450         (get_frame_dc): ditto.
11451
11452         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11453         here.
11454
11455 2000-02-23  Martin Buchholz <martin@xemacs.org>
11456
11457         * XEmacs 21.2.31 is released.
11458
11459 2000-02-22  Ben Wing <ben@xemacs.org>
11460
11461         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11462
11463 2000-02-22  Andy Piper  <andy@xemacs.org>
11464
11465         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11466
11467 2000-02-21  Mike Sperber <mike@xemacs.org>
11468
11469         * .dbxrc:
11470         * .gdbinit:
11471         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11472         variables.
11473
11474 2000-02-21  Mike Sperber <mike@xemacs.org>
11475
11476         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11477
11478 2000-02-21  Martin Buchholz <martin@xemacs.org>
11479
11480         * XEmacs 21.2.30 is released.
11481
11482 2000-02-20  Martin Buchholz  <martin@xemacs.org>
11483
11484         Performance hacking.
11485         * *.c (syms_of_*):
11486         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11487         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11488         * emacs.c (main_1):
11489         * lisp.h (DEFUN):
11490         * console.c (DEFVAR_CONSOLE_LOCAL_1):
11491         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11492         * symeval.h (DEFVAR_SYMVAL_FWD):
11493         * symbols.c (guts_of_unbound_marker):
11494         Make all c_readonly objects also lisp_readonly and marked for life.
11495         * lrecord.h (struct lrecord_implementation):
11496         Document flags better.
11497         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11498         * lrecord.h (DECLARE_LRECORD):
11499         * lrecord.h (XSETRECORD):
11500         * lrecord.h (RECORDP):
11501         * lrecord.h (RECORD_TYPEP):
11502         * lrecord.h (RECORD_MARKER): New.
11503         * lrecord.h (error_check_*):
11504         * lrecord.h (CONCHECK_NONRECORD):
11505         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11506         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11507         * lrecord.h (set_lheader_implementation):
11508         * lrecord.h (enum lrecord_type): New.
11509         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11510         * alloc.c (disksave_object_finalization_1):
11511         * alloc.c (mark_object):
11512         * alloc.c (lrecord_type_index):
11513         * alloc.c (tick_lcrecord_stats):
11514         * alloc.c (Fgarbage_collect):
11515         * alloc.c (init_alloc_once_early):
11516         * alloc.c (pdump_load):
11517         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11518         * alloc.c (lrecord_type_index): Delete.
11519         Make lisp object type indexes be constant.
11520           Makes (byte-compile) 5% faster.
11521         Put all marker functions into their own array.
11522           Makes (garbage-collect) 5% faster.
11523         Optimize SYMBOL_VALUE_MAGIC_P.
11524           Makes (byte-compile) 2-3% faster.
11525         * config.h.in (gc_checking_assert): New.
11526         * alloc.c: Use gc_checking_assert().
11527         * .dbxrc: Make compatible with new object type implementation.
11528         * .gdbinit: Make compatible with new object type implementation.
11529         * alloc.c: Delete all symbols defined only for debugging, such as
11530         Lisp_Type_Vector and lrecord_charset.
11531
11532 2000-02-21  Andy Piper  <andy@xemacs.org>
11533
11534         * gui-msw.c (Fmswindows_shell_execute): fix file location
11535         problems.
11536
11537         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11538         unshowing so that set_window_buffer doesn't undo
11539         kill_buffer_hook's hard work.
11540
11541         * glyphs-widget.c (tab_control_query_geometry): don't count the
11542         first item when calculating geometry.
11543
11544         * glyphs.c (map_subwindow): remove redundant code.
11545         (update_frame_subwindows): be more circumspect about when to
11546         update subwindows.
11547
11548         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11549         when items haven't changed. Update faces if faces have changed as
11550         well as just the widget face.
11551         (x_tab_control_update): Update faces if faces have changed as well
11552         as just the widget face.
11553
11554 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11555
11556         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11557         registration.
11558         (build_syscolor_string): Use mswindows_color_to_string to try to
11559         get a named color.
11560         (mswindows_device_system_metrics): Reverse the foreground and
11561         background colors so that they match the documentation.
11562
11563         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11564         they match the default Windows palette.
11565         (mswindows_color_to_string): New function.
11566
11567 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11568
11569         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11570
11571 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11572
11573         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11574         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11575
11576         * symbols.c (init_symbols_once_early): Removed obsolete
11577         DATA_SEG_BITS related kludge.
11578         (defvar_magic): Ditto.
11579
11580         * malloc.c: Removed obsolete DATA_SEG_BITS
11581         * ralloc.c: Ditto.
11582         * mem-limits.h: Ditto.
11583
11584         * Makefile.in.in: Removed obsolete HAVE_SHM
11585         * emacs.c: Ditto.
11586
11587 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11588
11589         *  device-msw.c (mswindows_delete_device): Free DDE string
11590         handles.
11591
11592 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11593
11594         * keymap.c (get_keyelt):
11595         * unexnt.c (unexec):
11596         * vm-limit.c (memory_warnings):
11597         * ntheap.c (recreate_heap):
11598         * ntheap.h (UNINIT_PTR):
11599         * select-msw.c (Fmswindows_get_clipboard):
11600         (Fmswindows_set_clipboard):
11601         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11602         * objects-msw.c:
11603         * menubar-msw.c (displayable_menu_item):
11604         * glyphs-msw.c:
11605         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11606         * sysdep.c (sys_subshell):
11607         * process-nt.c (nt_create_process):
11608         * nt.c (normalize_filename):
11609         (dostounix_filename):
11610         (unixtodos_filename):
11611         * ntproc.c (win32_executable_type):
11612         * ntplay.c (play_sound_data_1):
11613         (play_sound_file):
11614         * editfns.c (get_home_directory):
11615         * event-msw.c (struct winsock_stream):
11616         (mswindows_dde_callback):
11617         * device-msw.c (msprinter_init_device):
11618         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11619
11620         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11621         mswindows_clear_toolbar were swapped!
11622
11623         * objects-msw.c:(colormap_t):
11624         (fontmap_t):
11625         * emacs.c (struct standard_args): Fixed const jumble.
11626
11627         * glyphs-widget.c (update_widget): Fixed comparison notation.
11628
11629         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11630
11631         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11632         __declspec(noreturn) syntax.
11633
11634 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11635
11636         * eldap.c (Fldap_open):
11637         (Fldap_search_basic):
11638         (Fldap_add):
11639         (Fldap_modify):
11640         Use new coding system conversion macros.
11641
11642 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11643
11644         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11645
11646 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11647
11648         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11649         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11650
11651         * eldap.c (Qadd, Qreplace): New constant symbols
11652         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11653         interruptions by XEmacs signals
11654         Remove unnecessary calls to slow_down_interrupts and
11655         speed_up_interrupts
11656         (Fldap_search_basic): Renamed from Fldap_search_internal
11657         Added new optional parameter VERBOSE that triggers the
11658         display of progress messages
11659         Remove unnecessary calls to slow_down_interrupts and
11660         speed_up_interrupts
11661         LDAP result code analysis rewritten
11662         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11663         (syms_of_eldap): Define the new symbols and functions
11664
11665
11666 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11667
11668         * realpath.c: Determine PATH_MAX maximally portably.
11669
11670         * insdel.c (bytecount_to_charcount): Optimize.
11671         The function used to be optimized for entirely ASCII sequences.
11672         Now it is optimized for successive characters from the same
11673         charset.  This also wins big for _mostly_ ASCII sequences.
11674
11675         * fileio.c (Ffile_truename): convert return from realpath() using
11676         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11677         - Rewrite GCPROing slightly.
11678
11679         * sysdep.c (sys_open): Do filename conversion, like all other
11680         sys_* functions.  Fixes bug:
11681         (let ((file-name-coding-system 'iso-8859-2))
11682            (write-region x y latin2-name))
11683         ==> writes filename using internal encoding.
11684
11685 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11686
11687         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11688         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11689         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11690         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11691         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11692         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11693         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11694         (CONST_IF_NOT_DEBUG): Delete.
11695         * alloc.c (this_one_is_unmarkable): Delete.
11696         (mark_object): Don't check for this_one_is_unmarkable. Use the
11697         c_readonly flag instead.
11698         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11699
11700 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11701
11702         * event-msw.c (mswindows_drain_windows_queue):
11703         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11704         away redundant repaint events.
11705
11706 2000-02-17  Andy Piper  <andy@xemacs.org>
11707
11708         * redisplay.h: declare mark_redisplay_structs.
11709
11710         * redisplay.c (redisplay_window):
11711         (redisplay_frame): don't check subwindows_state_changed.
11712         (mark_redisplay): mark gutters here.
11713
11714         * glyphs.c: (instantiate_image_instantiator): always layout if we
11715         haven't done so already.
11716         (allocate_image_instance): don't mark as dirty.
11717         (update_subwindow): bind inhibit_quit.
11718
11719         * gutter.c (mark_gutters): new function.
11720
11721         * glyphs-x.c (x_update_widget): Always resize to get round a
11722         widget bug.
11723
11724         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11725         breaking absolutely everything.
11726
11727         * gutter.h: declare mark_gutters.
11728
11729 2000-02-16  Martin Buchholz <martin@xemacs.org>
11730
11731         * XEmacs 21.2.29 is released.
11732
11733 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11734
11735         * fns.c (size_bit_vector): Fix computation of the size.
11736
11737 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11738
11739         * *.[ch]: Change CONST to const globally.
11740         find -name '*.[ch]' | \
11741         xargs global-replace \
11742         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11743         - Remove vestigial references to CONST_IS_LOSING
11744
11745 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11746
11747         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11748         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11749         events instead of dispatching them directly.
11750         (mswindows_handle_paint): New function to do repainting.
11751         (mswindows_wnd_proc):
11752         (emacs_mswindows_handle_magic_event): Call above function.
11753
11754 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11755
11756         * objects-msw.c (mswindows_create_font_variant): Return the new
11757         font handle.
11758         (initialize_font_instance): Get font metrics from the underlined
11759         variant of the font to cope with the case where the underlined
11760         font has a bigger descent.
11761
11762 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11763
11764         * gui.c (gui_item_accelerator): Return the first underlined
11765         character in item name.
11766
11767 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11768
11769         * lisp.h: Added Qprinter.
11770
11771         * general.c (syms_of_general): Initialized it.
11772
11773         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11774         (get_frame_dc):
11775         (get_frame_compdc): Made inline.
11776
11777         * console.h (struct console_methods): Added eject_page method.
11778
11779         * frame.h: Added FRAME_DISPLAY_P and friends.
11780         Aligned backslahes in many macros in more readable fashion.
11781         Added page_number to struct frame, and an accessor macro
11782         for it.
11783
11784         * defice.h: Added DEVICE_DISPLAY_P and friends.
11785
11786         * device.c (Fdevice_printer_p): Used these.
11787
11788         * frame.c (allocate_frame_core): Initialize page number.
11789         (Fprint_job_page_number):
11790         (Fprint_job_eject_page): Implemented.
11791
11792         * frame-msw.c (msprinter_eject_page): Added method.
11793         (msprinter_start_page): Added.
11794
11795         * window.c (Fwindow_truncated_p): Fixed docstring.
11796         (Fwindow_last_line_visible_height): Implemented.
11797
11798 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11799
11800         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11801
11802 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11803
11804         * syntax.c (scan_words): Always advance at least one character.
11805
11806 2000-02-13  Andy Piper  <andy@xemacs.org>
11807
11808         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11809         to make sure the glyph is in the cachels.
11810
11811         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11812         global image instance flag.
11813         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11814         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11815
11816         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11817         (Fset_image_instance_property): mark layout as changed.
11818         (invalidate_glyph_geometry_maybe): mark layout as changed.
11819         (glyph_width): use new NEEDS_LAYOUT macro.
11820         (glyph_ascent): ditto.
11821         (glyph_descent): ditto.
11822         (glyph_height): ditto.
11823         (image_instance_layout): mark layout as clean after laying out.
11824         (update_subwindow): don't mark layout as clean here.
11825
11826         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11827         should no longer be needed.
11828
11829         * glyphs-x.c (x_update_widget): sanitize asserts.
11830         (x_finalize_image_instance): sanitize assignment to widgets.
11831
11832         * glyphs-widget.c (widget_instantiate): don't need to clear the
11833         layout flag here.
11834
11835 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11836
11837         * sysdep.c (getcwd): Use standard prototype.
11838         * sysdep.h (getcwd): Use standard prototype.
11839
11840         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11841         (sequence, start, end).
11842         Remove redundant type checking.
11843         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11844         view of `caller-protects') to avoid a crash where the real fix was
11845         found elsewhere.
11846
11847 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11848
11849         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11850
11851         * s/sol2.h: Remove feature macro initialization.
11852
11853         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11854         (vector_hash): New.  Code from internal_hash.
11855         * lrecord.h:
11856         Fix up allocation subsystem comments.
11857
11858         * config.h.in: Add __EXTENSIONS__ for Solaris.
11859
11860         * systime.h (EMACS_GETTIMEOFDAY): New.
11861         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11862         Remove Solaris-specific code.
11863         Use void* for the (ignored) second arg for gettimeofday().
11864
11865         * elhash.c (hash_table_hash): Implement it, finally.
11866         * elhash.c:  Use hashcode_t.
11867
11868         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11869         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11870
11871         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11872         * fns.c (size_bit_vector):
11873         * alloc.c (size_vector):
11874         (make_vector_internal):
11875         (make_bit_vector_internal):
11876         (sweep_bit_vectors_1):
11877         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11878
11879 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11880
11881         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11882         Include strings.h to avoid warnings for bzero and strcasecmp.
11883
11884 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11885
11886         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11887         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11888
11889         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11890         sequence.
11891
11892 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11893
11894         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11895         use a value field instead.
11896         (symbol_value_forward_forward): Use value field.
11897         (DEFVAR_SYMVAL_FWD): Use value field.
11898         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11899         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11900         (DEFVAR_CONST_INT): Ditto.
11901         (DEFVAR_BOOL): Ditto.
11902         (DEFVAR_CONST_BOOL): Ditto.
11903         (DEFVAR_INT_MAGIC): Ditto.
11904         (DEFVAR_BOOL_MAGIC): Ditto.
11905
11906         * symbols.c (guts_of_unbound_marker): Use value field.
11907         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11908         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11909
11910         * lisp.h: Declare dumpopaque and noninteractive1.
11911
11912         * alloc.c (dumpopaque): Added.
11913         (pdump_dump_opaquevec): Added.
11914         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11915         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11916         noninteractive.
11917
11918 2000-02-10  Andy Piper  <andy@xemacs.org>
11919
11920         * glyphs.c (image_instance_layout): if the size changes, mark it
11921         as such.
11922
11923         * redisplay-output.c (redisplay_output_layout): Update the
11924         subwindow here.
11925         (redisplay_output_subwindow): ditto.
11926
11927         * glyphs.c (update_subwindow): make sure we reset flags for
11928         layouts as well as everything else.
11929
11930         * glyphs-widget.c (layout_layout): don't need to set the instances
11931         dimensions here.
11932
11933 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11934
11935         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11936         not HAVE_DLOPEN, which is a lower-level thing.
11937
11938         * .cvsignore: Ignore gmon.out
11939
11940 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11941
11942         * .cvsignore: Ignore portable dumper xemacs.dmp file
11943
11944 2000-02-09  Andy Piper  <andy@xemacs.org>
11945
11946         * redisplay-output.c (redisplay_output_layout): be more clever
11947         about when we output based on the changed flags.
11948
11949         * glyphs.h (struct image_instantiator_methods): add update_method.
11950         (struct Lisp_Image_Instance): add changed flags. Declare new
11951         macros for manipulating them.
11952
11953         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11954         (image_instance_parent_glyph): find an image_instance's parent
11955         glyph or image_instance.
11956         (image_instance_layout): mark the size as changed.
11957         (set_image_instance_dirty_p): new function. mark an image
11958         instance, plus all of its parents, as dirty.
11959         (Fset_image_instance_property): use it.
11960         (Fglyph_animated_timeout_handler): use it.
11961         (update_subwindow): call update_widget and device methods for
11962         update_subwindow. Mark all changed flags as clean.
11963         (Fresize_subwindow): mark size as changed.
11964
11965         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11966         failures.
11967         (x_update_subwindow): only resize subwindows here.
11968         (x_update_widget): new function. Update all changed properties of
11969         a widget.
11970         (x_resize_subwindow): deleted.
11971         (x_widget_set_property): deleted.
11972         (x_progress_gauge_set_property): deleted.
11973         (x_progress_gauge_update): new function. Implement recorded
11974         changes.
11975         (x_tab_control_update): ditto.
11976         (x_tab_control_set_property): deleted.
11977         (console_type_create_glyphs_x): declare new functions.
11978         (image_instantiator_format_create_glyphs_x): ditto.
11979
11980         * glyphs-widget.c (widget_set_property): mark text changed.
11981         (update_widget): new function. Update properties of a widget.
11982         (widget_instantiate): for layouts make sure we set their
11983         children's parent correctly.
11984         (tab_control_set_property): new function. Record changes that will
11985         take place under redisplay's control.
11986         (progress_gauge_set_property): ditto.
11987         (image_instantiator_progress_guage): declare new functions.
11988         (image_instantiator_tab_control): ditto.
11989
11990         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11991         now.
11992         (mswindows_update_widget): new function. Update all properties on
11993         a widget that have changed.
11994         (mswindows_button_update): new function. Update a button's set
11995         state.
11996         (mswindows_tab_control_update): new function. Update the items in
11997         a tab.
11998         (mswindows_tab_control_set_property): deleted.
11999         (mswindows_progress_gauge_update): new function. Update the
12000         progress gauge's progress.
12001         (mswindows_widget_set_property): deleted. This is all done
12002         asynchronously now.
12003         (mswindows_progress_gauge_set_property): ditto.
12004         (console_type_create_glyphs_mswindows): declare new methods.
12005         (image_instantiator_format_create_glyphs_mswindows): ditto.
12006
12007         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
12008         (msprinter_set_frame_properties): ditto.
12009
12010         * console.h (struct console_methods): Add update_widget_method.
12011
12012 2000-02-09  Andy Piper  <andy@xemacs.org>
12013
12014         * gui-msw.c (Fmswindows_shell_execute): Make
12015         mswindows-shell-execute industrial strength.
12016
12017 2000-02-08  Martin Buchholz  <martin@xemacs.org>
12018
12019         * lrecord.h: Make macro argument `props' match member function `plist'.
12020         * fns.c (Fget):
12021         * fns.c (Fput):
12022         * fns.c (Fremprop):
12023         * fns.c (Fobject_plist):
12024         * alloc.c:
12025         * symbols.c:
12026         Object property list frobbing cleanup.
12027         - Allow any lisp object (compared with `eq'), not just symbols, as
12028           keys in object plists.
12029         - Move symbol plist frobbing into symbols.c, where it belongs.
12030         - Move string plist frobbing into alloc.c, where it belongs.
12031         - Everything's an lrecord now, so no need to test for symbolp, etc.
12032         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12033
12034         * extents.c: Reorder code to remove declarations.
12035
12036         * frame.h (store_in_alist): Remove useless declaration.
12037
12038 2000-02-07  Martin Buchholz  <martin@xemacs.org>
12039
12040         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12041         * config.h.in: Add HAVE_XCONVERTCASE.
12042
12043 2000-02-07  Andy Piper  <andy@xemacs.org>
12044
12045         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12046         it breaks many things.
12047
12048 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12049
12050         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12051         actually can start a common comment type.
12052         * src/syntax.h (SYNTAX_END_P): ditto for end.
12053
12054 2000-02-07  Martin Buchholz <martin@xemacs.org>
12055
12056         * XEmacs 21.2.28 is released.
12057
12058 2000-02-06  Martin Buchholz  <martin@xemacs.org>
12059
12060         * event-Xt.c (x_keysym_to_character): New.
12061         (maybe_define_x_key_as_self_inserting_character): New.
12062         (x_has_keysym): New.
12063         Auto-define all keys on the keyboard as self-insert-key.
12064
12065 2000-02-02  Martin Buchholz  <martin@xemacs.org>
12066
12067         * menubar.c (vars_of_menubar): A small code simplification.
12068
12069         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12070
12071         * ExternalShell.c:
12072         * ExternalClient.c:
12073         * EmacsShell-sub.c:
12074         * EmacsManager.c:
12075         * EmacsFrame.c:
12076         Use consistent style for specifying X resources.
12077
12078         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12079         This makes (dontusethis-set-symbol-value-handler) actually usable.
12080
12081         * lrecord.h (lrecord_decription_type):
12082         * alloc.c (pdump_register_sub):
12083         (pdump_dump_data):
12084         (pdump_reloc_one):
12085         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12086         Comply with XEmacs coding style.
12087         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12088         args, and XD_LISP_OBJECT_ARRAY with 3 args.
12089
12090         * keymap.c (Faccessible_keymaps):
12091         Make (accessible-keymaps map "\C-h") do the Right Thing.
12092         Make (accessible-keymaps map []) do the Right Thing.
12093         Make (accessible-keymaps map "") do the Right Thing.
12094         (check_keymap_definition_loop): New function.
12095         (keymap_store_internal): Keep luser from shooting self in foot,
12096           via (define-key ctl-x-4-map "p" global-map).
12097         Remove fullness slot from struct Lisp_Keymap, since hash tables
12098         are now reliable.
12099         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12100
12101 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12102
12103         * redisplay.c (init_redisplay): Fix small memory leak.
12104         * elhash.h:
12105         * elhash.c (pdump_reorganize_hash_table):
12106         Rename from reorganize_hash_table. Change prototype.
12107         Reuse the original memory for hentries.  Save 100k.
12108         * alloc.c (PDUMP_READ): new macro.
12109         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12110         * alloc.c: No need to #ifndef before #undef.
12111
12112         * print.c: Allow debug_print() to print readably by modifying
12113         debug_print_readably.  Use consistent variable names.
12114
12115         * .dbxrc: Try to get things to work even if stopped in a function
12116         without source available by explicitly specifying source files.
12117 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12118
12119         * unexnt.c (_start): Removed bogus code which caused loading heap
12120         from differrent executable file.
12121         Removed bogus assignment to _fmode, which caused inconsistencies.
12122
12123 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12124
12125         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12126         Have spawnve encapsulation regard DONT_ENCAPSULATE.
12127         Do not preliminary `#define signal sigset'.
12128
12129         * systime.h: Do not prototype environ on windows nt and cygwin,
12130         this conflicts with system header.
12131
12132         * syssignal.h: Use correct define for WINDOWSNT
12133
12134         * sysdep.h: Do not prototype environ on windows nt, this conflicts
12135         with system header.
12136
12137         * sysdep.c (near start of file): Fixed commentary and rearranged
12138         ifdefs in readable order.
12139         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12140         (start_of_text):
12141         (end_of_text):
12142         (end_of_data): Do not compile in if using PDUMP.
12143
12144         * symsinit.h: Prototyped vars_of_nt().
12145
12146         * ntproc.c (windows9x_p): Added, instead of os_subtype.
12147         (find_child_console): Use it.
12148         (sys_kill): Use it.
12149
12150         * ntheap.h: Do not extern os_subtype.
12151
12152         * ntheap.c (cache_system_info): Do not cache unneeded:
12153         nt_major_version, nt_minor_version and os_subtype.
12154         (recreate_heap): Do not compile in when PDUMPing.
12155
12156         * nt.c (geteuid and friends): Use the new varibale
12157         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12158         (init_user_info): Removed the above mentioned hackery.
12159         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12160         stat has been fixed in the C runtime.
12161         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12162
12163         * file-coding.c (struct file_coding_dump): Do not define
12164         ucs_to_mule_table in the struct if not MULE.
12165         (struct struct lrecord_description fcd_description_1): Do not dump
12166         the above.
12167
12168         * emacs.c (main_1): Call vars_of_nt().
12169         (right before Fdump_emacs_data): Don't need lastfile if using both
12170         portabe dumper and system malloc.
12171
12172         * alloc.c (Fmemory_limit): Conditionalized out.
12173         (pdump): Use OPEN_BINARY for the portable dump file.
12174         (pdump_load): Ditto.
12175
12176 2000-02-02  Mike Alexander  <mta@arbortext.com>
12177
12178         * nt.c (convert_time): Set tm_isdst before calling mktime and
12179         avoid calling it at all if the compiler supports 64 bit integers.
12180         Also initialize utc_base_ft before using it.
12181
12182 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
12183
12184         * frame.c (change_frame_size_1): Take f->internal_border_width
12185         into consideration when calculating the width of the frame.
12186
12187 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12188
12189         * window.c (frame_min_height):
12190         (frame_size_valid_p):
12191         (frame_pixsize_valid_p): Added.
12192         (check_frame_size): Generalized.
12193
12194         * window.h: Prototyped the above.
12195
12196         * lisp.h:
12197         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12198         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12199         Deleted Vwin32_* and Vbinary_process_* unused variables.
12200
12201         * device-msw.c (msprinter_init_device): Do not get printer font
12202         list; Added DEVMODE functions.
12203
12204         * frame-msw.c: Added lots of printer code.
12205
12206         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12207         general.c.
12208
12209         * console-msw.h: Added more msprinter device private slots.
12210
12211 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12212
12213         * event-msw.c (key_needs_default_processing_p): Added.
12214         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12215
12216 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12217
12218         * glyphs.c (image_instance_layout): Mark image instance as clean
12219         after layout.
12220         (glyph_dirty_p): Removed redundant function.
12221         (invalidate_glyph_geometry_maybe): Added.
12222         (update_glyph_cachel_data): Call it.
12223
12224         * glyphs.h: Prototyped it.
12225
12226         * redisplay.c (add_glyph_rune): Call it.
12227         (redisplay_window): Reset glyphs cachels when frame faces have
12228         changed, thus forcing recomputation of built-in border glyphs.
12229
12230 2000-01-30  Martin Buchholz  <martin@xemacs.org>
12231
12232         * Makefile.in.in: Make portable dumper and purify play well together.
12233         Add imperfect, but better than nothing, support for pdump.
12234         Remove xemacs.dmp when temacs is re-generated.
12235         Don't ignore errors when dumping xemacs.
12236
12237         * symbols.c (maybe_call_magic_handler): Remove one magic number.
12238
12239 2000-01-28  Andy Piper  <andy@xemacs.org>
12240
12241         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12242         (setup_normal_frame): ditto.
12243         (setup_frame_without_minibuffer): ditto.
12244         (setup_minibuffer_frame): ditto.
12245         (delete_frame_internal): ditto.
12246         (Fmake_frame_invisible): ditto.
12247         (Ficonify_frame): ditto.
12248
12249         * window.h: change Fset_window_buffer signature.
12250
12251         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12252         (Fset_window_buffer): allow recording of buffer if the window is
12253         the selected window.
12254         (window_loop): Use new Fset_window signature.
12255
12256 2000-01-23  Daniel Pittman  <daniel@danann.net>
12257
12258         * config.h.in: Added template for `HAVE_ATHENA_3D'
12259
12260 2000-01-29  Andy Piper  <andy@xemacs.org>
12261
12262         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12263
12264         * gutter.c (output_gutter): Don't output if the window isn't live.
12265
12266 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12267
12268         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12269         of 01/12/00: Moved SetFocus back here where it belongs.
12270
12271 2000-01-23  Andy Piper  <andy@xemacs.org>
12272
12273         * s/cygwin32.h: declare printer things.
12274
12275 2000-01-26  Andy Piper  <andy@xemacs.org>
12276
12277         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12278         Alexander.
12279
12280 2000-01-24  Andy Piper  <andy@xemacs.org>
12281
12282         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12283         (mswindows_button_instantiate): Make sure glyph is a pixmap.
12284
12285         * glyphs-widget.c (widget_instantiate): Avoid shadows.
12286
12287         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12288
12289         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12290
12291         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12292         (mswindows_output_display_block): Avoid local shadows.
12293
12294         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12295         (mswindows_enqueue_mouse_button_event): ditto.
12296         (mswindows_handle_gui_wm_command): remove declaration.
12297
12298         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12299         warnings.
12300
12301         * console-msw.h: Avoid shadows.
12302         (mswindows_get_toolbar_button_text):
12303         (emacs_mswindows_create_stream_pair):
12304         (emacs_mswindows_delete_stream_pair):
12305         (mswindows_handle_toolbar_wm_command): declare.
12306
12307         * device-msw.c (build_syscolor_string): Avoid shadows.
12308
12309 2000-01-23  Andy Piper  <andy@xemacs.org>
12310
12311         * glyphs-widget.c (widget_instantiate): reverse the items for
12312         layouts so that children are in the expected order.
12313
12314 2000-01-28  Martin Buchholz  <martin@xemacs.org>
12315
12316         * ralloc.c: safe_bcopy ==> memmove
12317         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12318         * s/msdos.h: Remove BCOPY macros.
12319         * insdel.c (gap_right): Remove BCOPY conditional code.
12320         * insdel.c (gap_left): Remove BCOPY conditional code.
12321         XEmacs demands a working ANSI C compiler - hence memmove.
12322
12323         * regex.c (regex_compile): Remove accidental use of trigraphs.
12324
12325 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12326
12327         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12328         event timestamp.
12329
12330 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12331
12332         * event-msw.c (mswindows_drain_windows_queue): Added the
12333         parameter.
12334         (mswindows_need_event): Commented the call to
12335         mswindows_drain_windows_queue().
12336         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12337         only.
12338
12339         * console-msw.h: Moved a few function prototypes here from
12340         event-msw.c.
12341
12342         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12343         parameter from unsigned short to unsigned long.
12344         (Fmswindows_shell_execute): Added return value.
12345
12346 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12347
12348         * sysdep.c (init_system_name):
12349           process-unix.c (unix_canonicalized_host_name):
12350         Don't call freeaddrinfo() if getaddrinfo() fails.
12351
12352         * process-unix.c (unix_open_unix_network_stream):
12353         Moved the code to get a port # into address loop.
12354
12355 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12356
12357         * buffer.c (reinit_vars_of_buffer):
12358         The right place to initialize conversion_in_dynarr and
12359         conversion_out_dynarr.
12360
12361         * alloc.c (pdump): Use the real open() till sys_open() is functional.
12362
12363         * process-unix.c (unix_canonicalize_host_name): Muleize.
12364         (unix_open_network_stream): Muleize.
12365
12366         * buffer.h: Fix up prototypes for ralloc.c functions.
12367
12368 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12369         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12370         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12371                 instead of gethostbyname()
12372         * process-unix.c: In unix_canonicalize_host_name() and
12373                 unix_open_network_stream(), add code to use getaddrinfo()
12374                 instead of gethostbyname().
12375
12376 2000-01-27  Daniel Pittman <daniel@danann.net>
12377
12378         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12379         libs when built with flat Athena.
12380
12381 2000-01-27  Martin Buchholz  <martin@xemacs.org>
12382
12383         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12384         Use coding standards for function prototypes.
12385
12386 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12387
12388         * dialog-msw.c (push_lisp_string_as_unicode):
12389         * doc.c (unparesseuxify_doc_string):
12390         * dired.c (Fuser_name_completion_1):
12391         * dired.c (Fuser_name_all_completions):
12392         * dired.c (free_user_cache):
12393         * dired.c (user_name_completion):
12394         * console-x.c (get_display_arg_connection):
12395         * minibuf.c (clear_echo_area_internal):
12396         * minibuf.c (echo_area_append):
12397         * eldap.c (Fldap_open):
12398         * eldap.c (Fldap_search_internal):
12399         * frame-x.c (x_set_frame_text_value):
12400         * frame-x.c (x_set_frame_properties):
12401         * frame-x.c (x_create_widgets):
12402         * redisplay-tty.c (term_get_fkeys_1):
12403         * objects-x.c (x_parse_nearest_color):
12404         * objects-x.c (x_valid_color_name_p):
12405         * objects-x.c (x_initialize_font_instance):
12406         * objects-x.c (x_list_fonts):
12407         * objects-x.c (x_find_charset_font):
12408         * tooltalk.c (Fadd_tooltalk_message_arg):
12409         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12410         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12411         * process-unix.c (unix_create_process):
12412         * ntproc.c (sys_spawnve):
12413         * sound.c (Fplay_sound_file):
12414         * sound.c (Fplay_sound):
12415         * buffer.c (init_initial_directory):
12416         * buffer.c (init_buffer):
12417         * editfns.c (init_editfns):
12418         * editfns.c (Ftemp_directory):
12419         * editfns.c (Fuser_full_name):
12420         * editfns.c (uncache_home_directory):
12421         * editfns.c (get_home_directory):
12422         * editfns.c (Fuser_home_directory):
12423         * editfns.c (Fformat_time_string):
12424         * editfns.c (Fcurrent_time_string):
12425         * gui-x.c (button_item_to_widget_value):
12426         * database.c (Fopen_database):
12427         * event-Xt.c (x_to_emacs_keysym):
12428         * event-Xt.c (x_event_to_emacs_event):
12429         * event-Xt.c (describe_event_window):
12430         * event-msw.c (mswindows_wnd_proc):
12431         * glyphs-eimage.c (jpeg_instantiate):
12432         * glyphs-eimage.c (gif_instantiate):
12433         * glyphs-eimage.c (png_instantiate):
12434         * glyphs-eimage.c (tiff_instantiate):
12435         * glyphs-x.c (xbm_instantiate_1):
12436         * glyphs-x.c (x_xbm_instantiate):
12437         * glyphs-x.c (x_xface_instantiate):
12438         * glyphs-x.c (autodetect_instantiate):
12439         * glyphs-x.c (cursor_font_instantiate):
12440         * glyphs-x.c (x_widget_instantiate):
12441         * glyphs-x.c (x_widget_set_property):
12442         * glyphs-x.c (x_widget_property):
12443         * glyphs-x.c (BUILD_GLYPH_INST):
12444         * print.c (write_string_to_stdio_stream):
12445         * print.c (output_string):
12446         * print.c (Falternate_debugging_output):
12447         * print.c (Fexternal_debugging_output):
12448         * glyphs-msw.c (extract_xpm_color_names):
12449         * glyphs-msw.c (mswindows_xpm_instantiate):
12450         * glyphs-msw.c (bmp_instantiate):
12451         * glyphs-msw.c (resource_name_to_resource):
12452         * glyphs-msw.c (mswindows_resource_instantiate):
12453         * glyphs-msw.c (xbm_instantiate_1):
12454         * glyphs-msw.c (mswindows_xbm_instantiate):
12455         * glyphs-msw.c (mswindows_xface_instantiate):
12456         * glyphs-msw.c (mswindows_widget_instantiate):
12457         * glyphs-msw.c (add_tree_item):
12458         * glyphs-msw.c (add_tab_item):
12459         * glyphs-msw.c (mswindows_combo_box_instantiate):
12460         * glyphs-msw.c (mswindows_widget_property):
12461         * glyphs-msw.c (mswindows_combo_box_property):
12462         * glyphs-msw.c (mswindows_widget_set_property):
12463         * console.c (stuff_buffered_input):
12464         * objects-msw.c (mswindows_initialize_color_instance):
12465         * objects-msw.c (mswindows_valid_color_name_p):
12466         * objects-msw.c (mswindows_list_fonts):
12467         * objects-msw.c (mswindows_font_instance_truename):
12468         * bytecode.c (optimize_compiled_function):
12469         * select-x.c (symbol_to_x_atom):
12470         * select-x.c (x_atom_to_symbol):
12471         * select-x.c (hack_motif_clipboard_selection):
12472         * select-x.c (selection_data_to_lisp_data):
12473         * select-x.c (lisp_data_to_selection_data):
12474         * select-x.c (Fx_get_cutbuffer_internal):
12475         * select-x.c (Fx_store_cutbuffer_internal):
12476         * buffer.h (TO_EXTERNAL_FORMAT): New function.
12477         * buffer.h (TO_INTERNAL_FORMAT): New function.
12478         * emacs.c (make_arg_list_1):
12479         * emacs.c (make_argc_argv):
12480         * emacs.c (main_1):
12481         * emacs.c (Fdump_emacs):
12482         * emacs.c (split_string_by_emchar_1):
12483         * file-coding.h:
12484         * lisp.h:
12485         * lstream.h:
12486         * symsinit.h:
12487         * device-x.c (x_init_device):
12488         * device-x.c (Fx_valid_keysym_name_p):
12489         * device-x.c (Fx_get_font_path):
12490         * device-x.c (Fx_set_font_path):
12491         * glyphs.c (bitmap_to_lisp_data):
12492         * glyphs.c (pixmap_to_lisp_data):
12493         * alloc.c (make_ext_string): Use coding system arguments.  Update
12494         all callers.
12495         * alloc.c (build_string):
12496         * callproc.c (child_setup):
12497         * callproc.c (init_callproc):
12498         * fileio.c (lisp_strerror):
12499         * fileio.c (directory_file_name):
12500         * fileio.c (Fexpand_file_name):
12501         * fileio.c (Ffile_truename):
12502         * fileio.c (Fsysnetunam):
12503         * fileio.c (Fdo_auto_save):
12504         * sysdep.c (sys_readdir):
12505         * tests.c: New file.  Allow adding C tests.
12506         Replace GET_* macros with a more comprehensible and flexible
12507         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12508         Modify all calls.
12509         Any coding system can be used to do format conversion.
12510         Eliminate enum external_data_format.
12511         Eliminate convert_to_external_format.
12512         Eliminate convert_to_internal_format.
12513         Make sure file-name, keyboard, terminal, and ctext are always
12514         defined as coding systems or aliases.  Make
12515         file-name-coding-system, terminal-coding-system, and
12516         keyboard-coding-system magical variables that are equivalent to
12517         defining the corresponding coding system aliases.
12518
12519         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12520         * file-coding.c (Fcoding_system_alias_p): New function.
12521         * file-coding.c (Fcoding_system_aliasee): New function.
12522         * file-coding.c (append_suffix_to_symbol): New function.
12523         * file-coding.c (dangling_coding_system_alias_p): New function.
12524         * file-coding.c (Ffind_coding_system):
12525         * file-coding.c (Fcopy_coding_system):
12526         * file-coding.c (encode_coding_no_conversion):
12527         * file-coding.c (syms_of_file_coding):
12528         * file-coding.c (vars_of_file_coding):
12529         Rewrite coding system alias code.
12530         Allow nested aliases, like symbolic links.
12531         Allow redefinition of coding system aliases.
12532         Prevent existence of dangling coding system aliases.
12533
12534         * dired.c (Fuser_name_completion_1):
12535         * dired.c (Fuser_name_all_completions):
12536         A crash would happen if user did QUIT in the middle of building
12537         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12538
12539         * lisp.h:
12540         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12541
12542         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12543         an unsigned char *.  Update all callers.
12544
12545 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12546
12547         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12548
12549 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12550
12551         * elhash.c (hentry_description): Use more portable definition.
12552         (resize_hash_table): Initialize new hentries using
12553         xnew_array_and_zero, thereby simplifying the code.
12554
12555         * mule-charset.c (make_charset): Make sure entire object is
12556         initialized, to avoid Purify warnings.
12557
12558         * alloc.c (resize_string): Fix unlikely crash with big strings.
12559
12560 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12561
12562         * realpath.c (xrealpath):
12563         Don't call getwd().
12564
12565 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12566
12567         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12568
12569 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12570
12571         * unexelfsgi.c (unexec): Change the way we decide which segment
12572         should be extended.
12573
12574         Assumption that .bss section should be outside the PT_LOADable
12575         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12576         it's present) is inside the 'data' segment. This would fail the
12577         test which was used to find a segment to grow and cover new
12578         heap. Instead of this assumption, I created another one - on IRIX
12579         the segment to grow should start below .bss and it's address
12580         should extent above the end of .bss. Once this segment is
12581         identified, it's grown to accommodate the new heap and new
12582         zero-length .bss section is added at the end of .data2.
12583
12584 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12585
12586         * eval.c (Feval): Wrong number of arguments should use original
12587         function, not the indirect_function version of it.
12588
12589 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12590
12591         * glyphs-x.c (x_button_instantiate): Don't add image if
12592         it is not a pixmap.
12593         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12594         is relative.
12595
12596 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12597
12598         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12599         declaration.
12600         (DEFVAR_INT_MAGIC): Ditto.
12601         (DEFVAR_BOOL_MAGIC): Ditto.
12602         * glyphs.h: Reindent backslash.
12603
12604 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12605
12606         * glyphs-widget.c (layout_query_geometry):
12607         (layout_layout): Use correct types for gheight, gwidth.
12608
12609 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12610
12611         * EmacsManager.c (QueryGeometry): Purified.
12612
12613 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12614
12615         * alloc.c (make_float): Make sure entire object is initialized, to
12616         avoid Purify warnings.
12617         (pdump_register_sub): Remove useless assignment.
12618         (pdump): Use xmalloc, not malloc.
12619         (pdump_load): Use xmalloc, not malloc.
12620
12621 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12622
12623         * callproc.c:
12624         * dired-msw.c:
12625         * fileio.c:
12626         * process-nt.c:
12627         * redisplay-msw.c:
12628         * sysdep.c: Removed redundant #include <windows.h>
12629
12630 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12631
12632         * frame.c (delete_frame_internal): Do not delete device when its
12633         implementation so declares.
12634         (delete_frame_internal): Set device selected frame to nil when
12635         last frame goes away.
12636
12637         * device-msw.c (msprinter_device_system_metrics): Implemented.
12638         (mswindows_device_system_metrics): Added 'device-dpi property.
12639
12640         * device.c: (Fdevice_printer_p): Added.
12641         Added 'offset-workspace device metric.
12642
12643         * console.h (device_metrics): Declared DM_offset_workspace.
12644
12645 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12646
12647         * fileio.c (Ffile_truename): Remove pointless and confusing
12648         initialization of elen.
12649
12650         * glyphs-widget.c: Compiler warning fixes.
12651
12652 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12653
12654         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12655         instead of a Lisp_Object as argument to make it consistent with
12656         the other LIVE_P macros.
12657         (CHECK_LIVE_PROCESS): New macro.
12658
12659         * process.c: Declare Qprocess_live_p.
12660         (Fprocess_live_p): New function.
12661         (create_process): Use PROCESS_LIVE_P.
12662         (read_process_output): Ditto.
12663         (set_process_filter): Ditto.
12664         (Fdelete_process): Ditto.
12665         (kill_buffer_processes): Ditto
12666         (process_send_signal): Use CHECK_LIVE_PROCESS.
12667         (Fprocess_input_coding_system): Check whether process is still
12668         alive (fix PR#1061).
12669         (Fprocess_output_coding_system): Ditto.
12670         (Fprocess_coding_system): Ditto.
12671         (Fset_process_input_coding_system): Ditto.
12672         (Fset_process_output_coding_system): Ditto.
12673
12674 2000-01-23  Andy Piper  <andy@xemacs.org>
12675
12676         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12677         layout and widget.
12678
12679         * glyphs.c (mark_image_instance): take into account changed
12680         image_instance format.
12681         (image_instance_equal): ditto.
12682         (image_instance_hash): ditto.
12683
12684         * glyphs-widget.c (widget_instantiate): Incorporate layout
12685         instantiation here. Delay layout of the layout until later.
12686         (layout_instantiate): deleted.
12687         (layout_query_geometry): new function. get the geometry of a
12688         layout.
12689         (layout_layout): layout a layout dynamically.
12690         (image_instantiator_widget): New function - splitting up
12691         image_instantiator_format_create_glyphs_widget for netwinder
12692         compilation.
12693         (image_instantiator_buttons):
12694         (image_instantiator_edit_fields):
12695         (image_instantiator_combo_box):
12696         (image_instantiator_scrollbar):
12697         (image_instantiator_progress_guage):
12698         (image_instantiator_tree_view):
12699         (image_instantiator_tab_control):
12700         (image_instantiator_labels):
12701         (image_instantiator_layout): ditto.
12702         (image_instantiator_format_create_glyphs_widget): Call preceding
12703         functions.
12704
12705 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12706
12707         * process.c (Fset_process_coding_system):
12708         * device-x.c (Fx_keysym_hash_table):
12709         Docstring fixes.
12710
12711         * lstream.c (Lstream_write): Return documented value, not 0.
12712
12713         * fileio.c (directory_file_name):
12714         (Fsubstitute_in_file_name):
12715         (Fsubstitute_insert_file_contents_internal):
12716         (Fwrite_region_internal):
12717         * emacs.c:
12718         * sysdep.c:
12719         * getloadavg.c:
12720         * systty.h:
12721         Remove vestigial APOLLO-conditional code.
12722
12723 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12724
12725         * getpagesize.h: Add guard macros.
12726         * libsst.h: Add guard macros.
12727         * libst.h: Add guard macros.
12728         * line-number.h: Add guard macros.
12729         * ndir.h: Add guard macros.
12730         * sysfloat.h: Add guard macros.
12731         * sysfile.h: Add guard macros.
12732         * sysproc.h: Add guard macros.
12733         * syswait.h: Add guard macros.
12734         * xintrinsic.h: Add guard macros.
12735         * xintrinsicp.h: Add guard macros.
12736         * xmmanager.h: Add guard macros.
12737         * xmmanagerp.h: Add guard macros.
12738         * xmprimitive.h: Add guard macros.
12739         * xmu.h: Add guard macros.
12740         * gpmevent.h: Add copyright statement. Add guard macros.
12741         * miscplay.h: Add guard macros.
12742         * *.h: Use consistent C-standards-approved guard macro names.
12743
12744         * opaque.c (make_opaque): Switch parameter order.
12745         * opaque.h (make_opaque): Switch parameter order.
12746         Update all callers.
12747         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12748
12749         * config.h.in (type_checking_assert): Added.
12750         (bufpos_checking_assert): Added.
12751
12752 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12753
12754         * alloc.c: Harmless pdump changes.
12755         - Use countof().
12756         - spell alignment correctly.
12757         * sysdep.c: Use countof()
12758
12759 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12760
12761         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12762         initially_selected_for_input() console method, default to 0.
12763         (semi_canonicalize_console_connection): Try to delegate to
12764         canonicalize_console_connection if no such console method.
12765         (canonicalize_console_connection): Vice versa.
12766         (print_console): Do not print nil connection.
12767
12768         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12769         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12770         (XDEVIMPF_FRAMELESS_OK): Added.
12771         (CONSOLE_INHERITS_METHOD): Added.
12772
12773         * console-msw.c (mswindows_canonicalize_console_connection):
12774         Added.
12775         (mswindows_canonicalize_device_connection): Added.
12776
12777         * console-msw.h (struct msprinter_device): Added this struct and
12778         accessor macros.
12779         (mswindows_device): Made fontlist a lisp object.
12780
12781         * device.c (semi_canonicalize_device_connection):  Try to delegate
12782         to canonicalize_device_connection if no such console method.
12783         (canonicalize_device_connection): Vice versa.
12784         (print_device): Do not print nil connection.
12785
12786         * device-msw.c (mswindows_init_device): Call InitCommonControls
12787         when have widgets.
12788         (mswindows_delete_device): Removed fontlist deallocation.
12789         (mswindows_mark_device): Added.
12790
12791         * events.c (event_equal): Added abort() at unreached code.
12792         (event_hash): Ditto.
12793
12794         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12795         fallback tags of Windows devices.
12796
12797         * general.c (syms_of_general): Initialized Qmsprinter.
12798
12799         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12800         of fallback tags of Windows devices.
12801
12802         * lisp.h: Declared Qmsprinter.
12803
12804         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12805         of strings.
12806         (mswindows_list_fonts): Ditto.
12807         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12808         that it can be used by both mswindows and msprinter devices.
12809         (initialize_font_instance): Added.
12810         (mswindows_initialize_font_instance): Use it.
12811         (msprinter_initialize_font_instance): Added.
12812
12813         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12814         and implementation flags check.
12815         (redisplay_without_hooks): Changed the call to the above.
12816         (Fredraw_device): Ditto.
12817         (Fredisplay_device): Ditto.
12818
12819         * redisplay-msw.c (get_frame_dc): Implemented.
12820         (get_frame_compdc): Implemented.
12821         (many functions): Use the two functions above to get device
12822         contexts, ether for a window or a printer.
12823
12824 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12825
12826         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12827         initialization here.
12828         (init_symbols_once_early): Call it.
12829         * emacs.c (main_1): Call it.
12830         * symsinit.h: Declare it.
12831
12832 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12833
12834         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12835         Lisp_Object.
12836         (pdump_backtrace): Ditto.
12837         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12838         (pdump_get_entry): Abort if trying to register a null pointer.
12839         (pdump_dump_data): Cleanup types when relocating.
12840         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12841         (pdump_dump_rtables): Remove bad casts.
12842         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12843         Lisp_Object instead of a EMACS_INT for the hashtable
12844         reorganization.
12845
12846 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12847
12848         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12849
12850         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12851
12852         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12853
12854         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12855
12856 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12857
12858         * faces.h (FACE_STRIKETHRU_P): Added.
12859
12860         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12861         of font variants.
12862
12863         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12864         (mswindows_set_dc_font): New function, aware of font variants,
12865         separated from mswindows_update_dc.
12866
12867         * objects-msw.h (struct mswindows_font_instance_data): Added
12868         definition.
12869
12870         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12871         cached fonts and the data structure.
12872         (mswindows_initialize_font_instance): Added creation of font data
12873         structure.
12874         (mswindows_print_font_instance): Print at least something.
12875         (mswindows_create_font_variant): Implemented.
12876         (mswindows_get_hfont): Implemented.
12877
12878 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12879
12880         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12881         prototyping problem with msvc.
12882
12883         * emacs.c (main_1): added syms_of_gui_mswindows() call
12884
12885         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12886         syms_of_gui_mswindows() function
12887
12888         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12889
12890 2000-01-18  Martin Buchholz <martin@xemacs.org>
12891
12892         * XEmacs 21.2.27 is released.
12893
12894 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12895
12896         * glyphs-eimage.c (struct tiff_error_struct):
12897         (tiff_error_func):
12898         (tiff_warning_func):
12899         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12900
12901         * unexmips.c:
12902         * unexhp9k3.c:
12903         * unexfreebsd.c:
12904         * unexec.c: Remove vestigial Lucid C code.
12905         * unexalpha.c:
12906         * unexaix.c:
12907         * termcap.c:
12908         * libsst.c: Ansify.
12909         Remove declarations of errno and strerror().
12910
12911         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12912
12913         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12914
12915 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12916
12917         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12918         Optimize.
12919
12920 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12921
12922         * md5.c:
12923         * file-coding.c:
12924         * file-coding.h:
12925         Change enum eol_type to eol_type_t.
12926
12927 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12928
12929         * gui.c (get_gui_callback): Check cons before accessing car.
12930
12931 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12932
12933         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12934         (XSETSPECIFIER_TYPE): Ditto.
12935
12936 2000-01-17  Didier Verna  <didier@xemacs.org>
12937
12938         * redisplay.c (generate_fstring_runes): compute string size in
12939         characters, not bytes.
12940
12941 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12942
12943         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12944
12945 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12946
12947         * print.c (print_error_message): Call print_prepare().
12948
12949 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12950
12951         * .dbxrc: Renamed from dbxrc.
12952
12953         * events.c (event_to_character):
12954         Use `assert (foo)' instead of `if (!foo) abort()'
12955
12956         * .gdbinit (xtype): Add documentation.
12957         * .gdbinit (check-temacs): New function.
12958         * .gdbinit (check-xemacs): New function.
12959         * dbxrc (check-xemacs): New function.
12960         * dbxrc (check-xemacs): New function.
12961
12962 2000-01-14  Andy Piper  <andy@xemacs.org>
12963
12964         * glyphs-widget.c (widget_query_geometry): Make sure that we
12965         calculate default dimensions correctly.
12966
12967 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12968
12969         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12970
12971         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12972         pdump_wire'd variable.
12973
12974         * emacs.c: (main_1): Conditionalized calls to
12975         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12976
12977 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12978
12979         * window.c (Fset_window_configuration):
12980         * sysdep.c (_start):
12981         * input-method-motif.c (res):
12982         * event-Xt.c (Xt_process_to_emacs_event):
12983         Simple compiler warning fixes.
12984
12985         * bytecode.c (funcall_compiled_function): Use the original
12986         function symbol on the backtrace list in preference to the
12987         compiled_function object in error messages.
12988
12989 2000-01-13  Andy Piper  <andy@xemacs.org>
12990
12991         * glyphs-x.c (update_widget_face): Make sure we update the widget
12992         background as well as foreground.
12993
12994 2000-01-13  Andy Piper  <andy@xemacs.org>
12995
12996         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12997         fields to subwindow.
12998         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12999         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
13000         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13001         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
13002
13003         * glyphs-widget.c (check_valid_tab_orientation): new function.
13004         (initialize_widget_image_instance): zero orientation and
13005         justification.
13006         (widget_instantiate): pick up orientation.
13007         (tab_control_query_geometry): return appropriate values for
13008         vertical tabs.
13009
13010         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
13011         appropriate creation flags for left, right and bottom tabs.
13012
13013         * s/cygwin32.h: add tab definitions.
13014
13015 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13016
13017         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
13018         frame upon hiding a subwindow.
13019         (mswindows_button_instantiate): Changed the push button style to
13020         BS_PUSHBUTTON.
13021         (mswindows_button_instantiate): Removed button BS_NOTIFY
13022         style.
13023         (mswindows_button_instantiate): Removed redundant check for
13024         a disabled gui item.
13025         (mswindows_button_instantiate): Made use of WS_TABSTOP
13026         consistent: "operable" controls (edit, button, tree, scroll) have
13027         this style, "display-only" ones (static, progress gauge) do
13028         not. This style is currently ignored by XEmacs though. Also,
13029         removed the WS_EX_CONTROLPARENT style - it is not for children,
13030         it is for their parents!
13031         (mswindows_edit_field_instantiate): Ditto.
13032         (mswindows_progress_gauge_instantiate): Ditto.
13033         (mswindows_tree_view_instantiate): Ditto.
13034         (mswindows_tab_control_instantiate): Ditto.
13035         (mswindows_scrollbar_instantiate): Ditto.
13036         (mswindows_combo_box_instantiate): Ditto.
13037         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13038         style to the "clip" window.
13039         (mswindows_button_instantiate): Removed compilation warning by
13040         equally typing terms of the ?: operator.
13041
13042 2000-01-12  Didier Verna  <didier@xemacs.org>
13043
13044         * redisplay.c (generate_fstring_runes): new parameter holding the
13045         last modeline-format extent.
13046         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13047         extent, fill the glyph block with it.
13048         (generate_fstring_runes): handle these parameters.
13049         (generate_formatted_string_db): ditto.
13050
13051         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13052         glyphs'extents in the modeline.
13053
13054 1999-01-11  Mike Woolley  <mike@bulsara.com>
13055
13056         * ntheap.c: Reduced the reserved heap space from 1Gb down to
13057         256Mb, as a workaround for the non-starting problem many people
13058         have experienced.
13059
13060 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13061
13062         * console-tty.c (Fset_console_tty_output_coding_system):
13063         Force redrawing tty frame.
13064
13065 2000-01-10  Didier Verna  <didier@xemacs.org>
13066
13067         * redisplay.c (generate_fstring_runes): fix size computation bug.
13068
13069 2000-01-09  William M. Perry <wmperry@aventail.com>
13070
13071         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13072
13073 2000-01-09  Andy Piper  <andy@xemacs.org>
13074
13075         * glyphs-msw.c: index -> i to avoid shadows.
13076         (xbm_create_bitmap_from_data): make static.
13077         (check_valid_string_or_int): deleted.
13078         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13079
13080         * glyphs-x.c (x_update_subwindow): remove unused args.
13081
13082         * glyphs.c (glyph_image_instance): return the thing. Don't set the
13083         back pointer - this is done in allocate_image_instance.
13084         (query_string_font): return Qnil to make the compiler happy.
13085         (unmap_subwindow): set to ~0 to make the compiler happy.
13086         (glyph_query_geometry): comment out until used.
13087         (glyph_layout): ditto.
13088
13089 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
13090
13091         * insdel.c (signal_after_change): Remove extraneous unbind_to().