update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
4         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
5         CHISE client feature.
6
7 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
8
9         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
10
11 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
12
13         * mule-charset.c (charset_lookup_description_1): Use
14         `NUM_LEADING_BYTES' in UTF-2000.
15
16 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
17
18         * char-ucs.h (GC_CHARSETP): Deleted.
19
20 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
21
22         * char-ucs.h (MAX_CHAR_GT): Updated.
23
24 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
25
26         * text-coding.c: Sync with XEmacs 21.4.10.
27
28 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
29
30         * mule-charset.c (Vcharset_china3_jef): Deleted.
31         (Qchina3_jef): Deleted.
32         (syms_of_mule_charset): Don't define `china3-jef'.
33         (complex_vars_of_mule_charset): Likewise.
34
35         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
36         (MIN_CHAR_CHINA3_JEF): Comment out.
37         (MAX_CHAR_CHINA3_JEF): Comment out.
38
39 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * mule-charset.c (Vcharset_ucs_gb): New variable.
42         (Qucs_gb): New variable.
43         (syms_of_mule_charset): Add new symbol `ucs-gb'.
44         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
45
46         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
47
48 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
49
50         * mule-charset.c (charset_code_point): if a coded-charset has a
51         final-byte, don't inherit the builtin range of the mother CCS.
52
53 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * mule-charset.c (charset_code_point): Fix problem about
56         inheritance.
57
58 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
59
60         * mule-charset.c (decode_builtin_char): Reorganized.
61
62 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
63
64         * text-coding.c (char_encode_as_entity_reference): Modify for
65         `charset_code_point'.
66         (char_encode_shift_jis): Likewise.
67         (char_encode_big5): Likewise.
68         (char_encode_utf8): Likewise.
69         (char_encode_iso2022): Likewise.
70
71         * mule-charset.c (charset_code_point): Add new argument
72         `defined_only'.
73         (Fencode_char): Add new optional argument `defined_only'.
74
75         * chartab.c (put_char_table): Modify for `charset_code_point'.
76
77         * char-ucs.h (charset_code_point): Add new argument
78         `defined_only'.
79         (encode_char_1): Modify for `charset_code_point'.
80
81 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
84         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
85
86 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
89         (Qjis_x0208): Likewise.
90         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
91         XCHARSET_FINAL(charset).
92         (charset_code_point): Modify condition for final-byte based
93         builtin-chars.
94         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
95         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
96         in UTF-2000; specify `=jis-x0208' as the mother of
97         `japanese-jisx0208-1978', `japanese-jisx0208' and
98         `japanese-jisx0208-1990' in UTF-2000.
99
100 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
101
102         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
103
104 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * text-coding.c (decode_coding_utf16): Support UTF-16.
107         (char_encode_utf16): Fixed.
108
109 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
110
111         * text-coding.c (Qutf16): New variable in MULE.
112         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
113         (Fcoding_system_type): Add `utf-16' in MULE.
114         (struct detection_state): Add a structure for utf16 in MULE.
115         (detect_coding_type): Setup st->utf16.mask in MULE.
116         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
117         MULE.
118         (reset_encoding_stream): Use `char_encode_utf16' and
119         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
120         (detect_coding_utf16): New function [incomplete].
121         (decode_coding_utf16): New function [support only UCS-2].
122         (char_encode_utf16): New function.
123         (char_finish_utf16): New function.
124         (syms_of_file_coding): Add new symbol `utf-16'; setup
125         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
126
127         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
128         UTF-2000.
129         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
130         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
131
132 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
133
134         * chartab.c (put_char_table): When a charset is specified as a
135         range in UTF-2000, don't support builtin characters.
136
137 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
138
139         * mule-charset.c (decode_defined_char): Don't refer external
140         database if Qunbound or Qnil are found.
141         (Fsave_charset_mapping_table): Don't define it if
142         HAVE_CHISE_CLIENT is not defined.
143         (Freset_charset_mapping_table): New function.
144         (load_char_decoding_entry_maybe): Store Qnil if a character is not
145         found in external database.
146         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
147         if HAVE_CHISE_CLIENT is not defined; add new builtin function
148         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
149
150 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
151
152         * text-coding.c (decode_coding_utf8): Check CCS is specified or
153         not.
154
155 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
156
157         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
158         Q_lowercase, Q_uppercase in UTF-2000.
159
160         * chartab.c (get_char_table): Add special code for the standard
161         case table to use character attribute `->downcase' and
162         `->uppercase' for case operations in UTF-2000.
163
164         * casetab.c (Qflippedcase): New variable in UTF-2000.
165         (Q_lowercase): Likewise.
166         (Q_uppercase): Likewise.
167         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
168         and `->uppercase' in UTF-2000.
169         (complex_vars_of_casetab): Assign attribute name `downcase' to
170         downcase and CANON table of Vstandard_case_table in UTF-2000;
171         assign attribute name `flippedcase' to upcase and EQV table of
172         Vstandard_case_table in UTF-2000.
173
174 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
175
176         * text-coding.c (decode_add_er_char): Support isolated-chars.
177         (char_encode_as_entity_reference): Likewise.
178
179 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
180
181         * emacs.c (Vutf_2000_lisp_directory): New variable.
182         (Vconfigure_utf_2000_lisp_directory): Likewise.
183         (complex_vars_of_emacs): Add new variable
184         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
185
186 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
187
188         * char-ucs.h (DECODE_CHAR): Delete special code for
189         `chinese-big5-1' and `chinese-big5-2'.
190
191         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
192         (Qbig5_2): Likewise.
193         (decode_defined_char): Support CONVERSION_BIG5_1 and
194         CONVERSION_BIG5_2.
195         (decode_builtin_char): Likewise.
196         (charset_code_point): Likewise.
197         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
198         'conversion in UTF-2000.
199         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
200         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
201         `chinese-big5-2' as children of `chinese-big5'.
202
203         * char-ucs.h (CONVERSION_BIG5_1): New macro.
204         (CONVERSION_BIG5_2): New macro.
205
206 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
207
208         * text-coding.c (char_encode_big5): Support entity-reference.
209
210 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
211
212         * text-coding.c (char_encode_as_entity_reference): New function.
213         (char_encode_utf8): Use `char_encode_as_entity_reference'.
214
215 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
216
217         * text-coding.c (decode_coding_big5): Support entity-reference
218         decoding feature.
219
220 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
221
222         * text-coding.c (allocate_coding_system): Initialize initial
223         charsets for CODESYS_UTF8.
224         (Fmake_coding_system): Accept charset-g0, charset-g1 and
225         charset-g2 for CODESYS_UTF8.
226         (decode_coding_utf8): Use charset-g0.
227         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
228         to force variants to map to UCS.
229
230 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
231
232         * text-coding.c (Qutf_8_mcs): New variable.
233         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
234         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
235         instead of `utf-8' in UTF-2000.
236
237 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
238
239         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
240         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
241         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
242         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
243         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
244         CONVERSION_96x96x96x96 are introduced.
245         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
246         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
247         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
248
249         * char-ucs.h (CONVERSION_94): New macro.
250         (CONVERSION_96): New macro.
251         (CONVERSION_94x94): New macro.
252         (CONVERSION_96x96): New macro.
253         (CONVERSION_94x94x94): New macro.
254         (CONVERSION_96x96x96): New macro.
255         (CONVERSION_94x94x94x60): New macro.
256         (CONVERSION_94x94x94x94): New macro.
257         (CONVERSION_96x96x96x96): New macro.
258
259 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
260
261         * chartab.c (Vcharacter_variant_table): Deleted.
262         (Fchar_variants): Use character-attribute `->ucs-variants' instead
263         of `Vcharacter_variant_table'.
264         (Fput_char_attribute): Likewise.
265         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
266         (complex_vars_of_chartab): Likewise.
267
268 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
269
270         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
271
272         * fns.c (Qideographic_structure): New variable.
273         (Qkeyword_char): New variable.
274         (ids_format_unit): New function.
275         (Fideographic_structure_to_ids): New function.
276         (syms_of_fns): Add new symbols `ideographic-structure' and
277         `:char'; add new builtin function `ideographic-structure-to-ids'.
278
279         * data.c (Fchar_ref_p): New function.
280         (syms_of_data): Add new builtin function `char-ref-p'.
281
282         * chartab.h: Add an EXFUN for `Ffind_char'.
283
284 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * text-coding.c (Vcharacter_composition_table): Deleted.
287         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
288         in every UTF-2000.
289
290         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
291         UTF-2000.
292         (Vcharacter_composition_table): Deleted.
293         (Fget_composite_char): Use the implementation for external-DB
294         support in every UTF-2000.
295         (Fput_char_attribute): Likewise.
296         (char_attribute_system_db_file): Don't define if external-DB
297         feature is not available.
298         (Fsave_char_attribute_table): Likewise.
299         (Fmount_char_attribute_table): Likewise.
300         (Fclose_char_attribute_table): Likewise.
301         (Freset_char_attribute_table): Likewise.
302         (Fload_char_attribute_table): Likewise.
303         (syms_of_chartab): Don't define `save-char-attribute-table',
304         `mount-char-attribute-table', `reset-char-attribute-table',
305         `close-char-attribute-table' and `load-char-attribute-table' if
306         external-DB feature is not available.
307         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
308
309 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
310
311         * text-coding.c (Qcomposition): Add extern if external-DB feature
312         is supported.
313         (Vcharacter_composition_table): Don't add extern if external-DB
314         feature is supported.
315         (COMPOSE_ADD_CHAR): Modify for new data-representation of
316         character composition rule if external-DB feature is supported.
317
318         * chartab.c (Vcharacter_composition_table): Don't define if
319         external-DB feature is supported.
320         (Qcomposition): New variable.
321         (Fget_composite_char): New implementation for external-DB support.
322         (Fput_char_attribute): Use `composition' property of each
323         character instead of `Vcharacter_composition_table' to store
324         character-composition rules if external-DB feature is supported.
325         (syms_of_chartab): Add new symbol `composition'.
326         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
327         external-DB feature is supported.
328
329 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
330
331         * chartab.c (Vchar_db_stingy_mode): New variable.
332         (load_char_attribute_maybe): Close database if
333         Vchar_db_stingy_mode is not NIL.
334         (Fload_char_attribute_table_map_function): Use
335         `get_char_id_table_0' instead of `get_char_id_table'.
336         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
337
338         * chartab.h (get_char_id_table_0): New inline function.
339         (get_char_id_table): Use `get_char_id_table_0'.
340
341 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
342
343         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
344         and `COMPOSE_ADD_CHAR'.
345         (decode_coding_iso2022): Use `decode_flush_er_chars'.
346
347 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
348
349         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
350         instead of `DECODE_ADD_UCS_CHAR'.
351         (COMPOSE_ADD_CHAR): Likewise.
352
353 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
354
355         * text-coding.c (decode_flush_er_chars): New inline function.
356         (decode_add_er_char): New function.
357         (decode_coding_utf8): Use `decode_flush_er_chars' and
358         `decode_add_er_char'.
359
360 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
361
362         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
363         done before `decode_output_utf8_partial_char'.
364
365         * mule-charset.c (complex_vars_of_mule_charset): Specify
366         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
367         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
368
369 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * mule-charset.c (decode_defined_char): New function; search
372         mother.
373         (decode_builtin_char): Don't search mother if
374         XCHARSET_MAX_CODE(charset) == 0.
375         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
376         == 0 even if code >= XCHARSET_MAX_CODE(charset).
377         (Fdecode_char): Use `decode_defined_char' instead of
378         `DECODE_DEFINED_CHAR'.
379         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
380         mother of `Vcharset_ucs_jis'.
381
382         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
383         instead of `DECODE_DEFINED_CHAR'.
384
385         * char-ucs.h (decode_defined_char): Renamed from
386         `DECODE_DEFINED_CHAR'; changed to normal function.
387         (DECODE_CHAR): Use `decode_defined_char' instead of
388         `DECODE_DEFINED_CHAR'.
389
390         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
391
392 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
393
394         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
395
396         * text-coding.c (Vcoded_charset_entity_reference_alist): New
397         variable.
398         (Quse_entity_reference): New variable.
399         (Qd): New variable.
400         (Qx): New variable.
401         (QX): New variable.
402         (coding_system_description): Add description for
403         `ccs_priority_list'.
404         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
405         (allocate_coding_system): Initialize `ccs_priority_list' in
406         UTF-2000.
407         (Fmake_coding_system): Add description about
408         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
409         (codesys).
410         (Fcoding_system_property): Accept `disable-composition' and
411         `use-entity-reference' in UTF-2000.
412         (struct decoding_stream): Add new member `er_counter' and `er_buf'
413         in UTF-2000.
414         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
415         (decode_coding_utf8): Decode entity-reference if
416         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
417         (char_encode_utf8): Encode non-Unicode characters as
418         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
419         (str->codesys).
420         (syms_of_file_coding): Add new symbols `use-entity-reference',
421         `d', `x', `X'.
422         (vars_of_file_coding): Add new variable
423         `coded-charset-entity-reference-alist'.
424         (complex_vars_of_file_coding): Declare `disable-composition' and
425         `use-entity-reference' to be coding-system-properties in UTF-2000.
426
427         * file-coding.h (struct Lisp_Coding_System): Add new member
428         `use_entity_reference' and `ccs_priority_list'.
429         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
430         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
431         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
432
433 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
434
435         * chartab.c (save_uint8_byte_table): Don't clear the table.
436         (save_uint16_byte_table): Likewise.
437         (save_byte_table): Likewise.
438         (Fmount_char_attribute_table): New function.
439         (syms_of_chartab): Add new builtin function
440         `mount-char-attribute-table'.
441
442 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * mule-charset.c (Fsave_charset_mapping_table): Open database as
445         "w+" mode.
446         (load_char_decoding_entry_maybe): Open database as read-only mode.
447
448         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
449         open database as "w+" mode.
450         (load_char_attribute_maybe): Open database as read-only mode.
451         (Fload_char_attribute_table): Likewise.
452
453 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
454
455         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
456         (char_table_description): Delete member `db_file'.
457         (Fmake_char_table): Don't refer `ct->db_file'.
458         (Fcopy_char_table): Likewise.
459         (Fsave_char_attribute_table): Likewise.
460         (Fclose_char_attribute_table): Likewise.
461         (Freset_char_attribute_table): Likewise.
462         (load_char_attribute_maybe): Likewise.
463         (Fload_char_attribute_table): Likewise.
464
465         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
466
467 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
468
469         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
470         (Fsave_char_attribute_table): Don't check `ct->db_file' if
471         `ct->db' is living.
472         (load_char_attribute_maybe): Likewise.
473         (Fload_char_attribute_table): Likewise.
474
475 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
476
477         * chartab.c (Fclose_char_attribute_table): Set Qnil on
478         `ct->db_file' unconditionally.
479
480 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
481
482         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
483         UTF-2000.
484         (char_table_description): Add description for `db_file' and `db'
485         in UTF-2000.
486         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
487         UTF-2000.
488         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
489         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
490         (Fclose_char_attribute_table): New function.
491         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
492         (load_char_attribute_maybe): Change interface; use `cit->db_file'
493         and `cit->db'.
494         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
495         (syms_of_chartab): Add new builtin function
496         `Fclose_char_attribute_table'.
497
498 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
499
500         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
501         `db' in UTF-2000.
502         (load_char_attribute_maybe): Change interface.
503         (get_char_id_table): Modify for `load_char_attribute_maybe'.
504
505 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
506
507         * database.h: Add an EXFUN for `Fdatabase_live_p'.
508
509 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
510
511         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
512         instead of `DECODE_CHAR' for mother; don't use special code for
513         chinese-big5 to use code space of chinese-big5-1 and
514         chinese-big5-2.
515         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
516         `MAX_CHAR_BIG5_CDP' for chinese-big5.
517
518         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
519         (MAX_CHAR_BIG5_CDP): Revival.
520
521 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
524         the XLFD registry-encoding name of `chinese-big5'.
525
526 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
527
528         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
529         (Qchinese_big5_cdp): Deleted.
530         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
531         (complex_vars_of_mule_charset): Delete coded-charset
532         `chinese-big5-cdp'.
533
534         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
535         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
536         `CHARSET_ID_OFFSET - n' for private CCS.
537         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
538         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
539         of `MIN_LEADING_BYTE'.
540         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
541         `(CHARSET_ID_OFFSET - 97)'.
542         (MIN_CHAR_BIG5_CDP): Deleted.
543         (MAX_CHAR_BIG5_CDP): Deleted.
544
545 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
548
549 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
550
551         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
552         (vars_of_mule): Add new variable `utf-2000-version' [moved from
553         chartab.c].
554
555         * chartab.c (Vutf_2000_version): Moved to mule.c.
556         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
557
558 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
559
560         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
561         when HAVE_CHISE_CLIENT is not defined.
562
563         * mule.c (vars_of_mule): Provide feature `chise' when
564         HAVE_CHISE_CLIENT is defined.
565
566 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
567
568         * config.h.in (UTF2000): Add comment.
569         (HAVE_CHISE_CLIENT): New macro.
570
571 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
572
573         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
574         CONSP.
575         (Fput_char_attribute): Likewise.
576         (char_attribute_system_db_file): Encode file-name of attribute.
577         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
578         the initial value.
579
580 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
581
582         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
583         (Fsave_charset_mapping_table): Use
584         `char_attribute_system_db_file'.
585         (load_char_decoding_entry_maybe): Likewise.
586
587         * chartab.h (Qsystem_char_id): New external variable.
588         (char_attribute_system_db_file): New prototype.
589
590         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
591         (char_attribute_system_db_file): New function.
592         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
593         (Freset_char_attribute_table): Likewise.
594         (load_char_attribute_maybe): Likewise.
595         (Fload_char_attribute_table): Likewise.
596         (syms_of_chartab): Add new symbol `system-char-id'.
597
598 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
599
600         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
601         `XCHARSET_GRAPHIC(ccs)'.
602
603 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
606
607 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
608
609         * chartab.c (Q_ucs_variants): New variable.
610         (syms_of_chartab): Add new symbol `->ucs-variants'.
611         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
612         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
613         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
614
615         * mule-charset.c (load_char_decoding_entry_maybe): New function.
616
617         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
618         `HAVE_DATABASE' is defined.
619         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
620         `HAVE_DATABASE' is defined.
621
622 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
623
624         * chartab.c (Fsave_char_attribute_table): Don't clear internal
625         attribute-table.
626         (Freset_char_attribute_table): New function.
627         (syms_of_chartab): Add new builtin function
628         `reset-char-attribute-table'.
629
630 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
631
632         * chartab.c (load_char_attribute_maybe): Don't make directories.
633
634 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
635
636         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
637
638         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
639         for decoding-table.
640
641 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
642
643         * mule-charset.c (Fsave_charset_mapping_table): Use
644         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
645
646         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
647         instead of `XCHARSET_CHARS'.
648
649 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
650
651         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
652         (XCHARSET_BYTE_SIZE): Likewise.
653
654         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
655         mule-charset.c].
656         (XCHARSET_BYTE_SIZE): Likewise.
657
658 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
659
660         * chartab.c (Fput_char_attribute): Use exec-directory instead of
661         data-directory to store database.
662         (Fsave_char_attribute_table): Likewise.
663         (load_char_attribute_maybe): Likewise.
664         (Fload_char_attribute_table): Likewise.
665
666 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
667
668         * mule-charset.c (Fsave_charset_mapping_table): New function.
669         (syms_of_mule_charset): Add new builtin function
670         `save-charset-mapping-table'.
671
672 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
673
674         * char-ucs.h (decoding_table_check_elements): Delete prototype.
675         (get_ccs_octet_table): New inline function.
676         (put_ccs_octet_table): Likewise.
677         (decoding_table_put_char): Use `get_ccs_octet_table' and
678         `put_ccs_octet_table'.
679         (decoding_table_remove_char): Use `decoding_table_put_char'.
680         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
681
682         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
683         into encoding_table.
684         (make_charset): Use Qunbound instead Qnil as initial value of
685         decoding_table.
686
687 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
688
689         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
690         element is Qunloaded.
691         (map_over_uint16_byte_table): Likewise.
692         (map_over_byte_table): Likewise.
693         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
694         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
695         database support, load encoding-table of the specified
696         coded-charset if it is not loaded yet.
697         (save_uint8_byte_table): New function of UTF-2000 with external
698         database support.
699         (save_uint16_byte_table): Likewise.
700         (save_byte_table): Likewise.
701         (Fput_char_attribute): Don't store value into external database
702         even if the external database feature is supported in UTF-2000;
703         set `attribute' as name of char-table if the external database
704         feature is supported.
705         (Fsave_char_attribute_table): New function in UTF-2000.
706         (syms_of_chartab): Add new builtin function
707         `save-char-attribute-table' in UTF-2000.
708
709 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
710
711         * chartab.c (char_attribute_table_to_put): New variable in
712         UTF-2000.
713         (Qput_char_table_map_function): Likewise.
714         (value_to_put): Likewise.
715         (Fput_char_table_map_function): New function in UTF-2000.
716         (put_char_table): Use `Fmap_char_attribute' for
717         CHARTAB_RANGE_CHARSET in UTF-2000.
718         (Fput_char_attribute): Store symbol instead of string in
719         `XCHAR_TABLE_NAME (table)'.
720         (load_char_attribute_maybe): Likewise.
721         (syms_of_chartab): Add new symbol/function
722         `put-char-table-map-function'.
723
724 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
725
726         * database.h: Add new EXFUN for `Fmap_database'.
727
728         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
729         (syms_of_database): Likewise.
730
731         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
732         UTF-2000.
733         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
734         (XCHAR_TABLE_UNLOADED): Likewise.
735
736         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
737         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
738         HAVE_DATABASE is defined.
739         (char_attribute_table_to_load): New variable of UTF-2000 with
740         external database support.
741         (Qload_char_attribute_table_map_function): Likewise.
742         (Fload_char_attribute_table_map_function): New function of
743         UTF-2000 with external database support.
744         (Fload_char_attribute_table): New function of UTF-2000.
745         (Fmap_char_attribute): Call Fload_char_attribute_table if
746         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
747         (syms_of_chartab): Add new symbol and function
748         `load-char-attribute-table-map-function' in UTF-2000 with external
749         database support; add new function `load-char-attribute-table' in
750         UTF-2000.
751
752 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
753
754         * chartab.h (load_char_attribute_maybe): New prototype for
755         UTF-2000 with DATABASE support.
756         (get_char_id_table): Use `load_char_attribute_maybe' if
757         HAVE_DATABASE is defined.
758
759         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
760         with DATABASE support.
761
762 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
763
764         * chartab.c (Fput_char_attribute): Use S-expression as key of
765         external database.
766
767         * chartab.h (get_char_id_table): Use S-expression as key of
768         external database.
769
770 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
771
772         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
773         if an element is not loaded, load the corresponding attributes
774         from an external database.
775         (map_over_uint16_byte_table): Likewise.
776         (map_over_byte_table): Likewise.
777         (map_char_table): Modify for `map_over_uint8_byte_table',
778         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
779         element is not loaded, load the corresponding attributes from an
780         external database.
781         (Fput_char_attribute): Change initial values to Qunloaded.
782
783         * chartab.h (get_char_id_table): If a character attribute is not
784         loaded and the attribute value is not found in an external
785         database, store Qunbound as the attribute value.
786
787 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
788
789         * chartab.c (BT_UINT8_unloaded): New macro.
790         (UINT8_VALUE_P): Accept Qunloaded.
791         (UINT8_ENCODE): Likewise.
792         (UINT8_DECODE): Likewise.
793         (BT_UINT16_unloaded): New macro.
794         (UINT16_VALUE_P): Accept Qunloaded.
795         (UINT16_ENCODE): Likewise.
796         (UINT16_DECODE): Likewise.
797         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
798         BT_UINT16_unloaded.
799         (mark_char_table): Mark `ct->name' in UTF-2000.
800         (char_table_description): Add `name' in UTF-2000.
801         (Fmake_char_table): Initialize `ct->name'.
802         (Fcopy_char_table): Copy `ct->name'.
803         (Fput_char_attribute): Store value into an external database if
804         HAVE_DATABASE is defined.
805
806         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
807         UTF-2000.
808         (CHAR_TABLE_NAME): New macro in UTF-2000.
809         (XCHAR_TABLE_NAME): New macro in UTF-2000.
810         (get_char_id_table): Try to read an external database if Qunloaded
811         is stored in a table.
812
813         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
814         Qunloaded.
815
816 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
817
818         * database.h: Add EXFUN definitions for Fopen_database,
819         Fput_database, Fget_database and Fclose_database.
820
821         * data.c (Qunloaded): New variable in UTF-2000.
822
823         * lisp.h (Qunloaded): New variable in UTF-2000.
824
825 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
826
827         * mule-charset.c (put_char_ccs_code_point): Modify for
828         `decoding_table_remove_char' and `decoding_table_put_char'.
829         (remove_char_ccs): Modify for `decoding_table_remove_char'.
830
831         * char-ucs.h (decoding_table_remove_char): Change arguments to
832         hide decoding_table vector.
833         (decoding_table_put_char): Likewise.
834
835 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
836
837         * mule-charset.c (decoding_table_remove_char): Moved to
838         char-ucs.h.
839         (decoding_table_put_char): Likewise.
840
841         * char-ucs.h (decoding_table_check_elements): New prototype [moved
842         from mule-charset.c].
843         (decoding_table_remove_char): New inline function [moved from
844         mule-charset.c].
845         (decoding_table_put_char): Likewise.
846
847 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
848
849         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
850         extension.
851
852 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
853
854         * mule-charset.c (decode_builtin_char): Support mother charsets.
855
856 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
857
858         * mule-charset.c (Q94x94x60): New variable.
859         (charset_code_point): Support conversion `94x94x60'.
860         (Fmake_charset): Likewise.
861         (syms_of_mule_charset): Add new symbol `94x94x60'.
862
863         * char-ucs.h (CONVERSION_94x94x60): New macro.
864
865 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
866
867         * mule-charset.c (charset_code_point): Unify code about
868         `code-offset'.
869
870 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
871
872         * mule-charset.c (charset_code_point): Merge code about builtin
873         characters into code about mother charsets; don't use
874         `range_charset_code_point'.
875         (range_charset_code_point): Deleted.
876
877 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
878
879         * mule-charset.c (Qcode_offset): New variable.
880         (Fmake_charset): Use `XUINT' to get value of `min-code' and
881         `max-code'; accept new property `code-offset'.
882         (syms_of_mule_charset): Add new symbol `code-offset'.
883
884 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * mule-charset.c (range_charset_code_point): Fixed.
887
888 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
889
890         * mule-charset.c (decode_builtin_char): Change semantics of
891         code-offset of coded-charset.
892         (charset_code_point): Likewise.
893         (range_charset_code_point): Likewise.
894         (complex_vars_of_mule_charset): Modify for the change.
895
896 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * mule-charset.c (Fencode_char): Reverse arguments.
899
900         * mule-charset.c (charset_code_point): Fixed.
901
902 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
903
904         * mule-charset.c (Vcharset_mojikyo): Deleted.
905         (Vcharset_mojikyo_2022_1): Deleted.
906         (Vcharset_mojikyo_pj_{1..21}): Deleted.
907         (Qmin_code): New variable in UTF-2000.
908         (Qmax_code): Likewise.
909         (Qmother): Likewise.
910         (Qconversion): Likewise.
911         (Q94x60): Likewise.
912         (Qmojikyo): Deleted.
913         (Qmojikyo_2022_1): Deleted.
914         (Qmojikyo_pj_{1..22}): Deleted.
915         (mark_charset): Mark `cs->mother'.
916         (charset_description): Add description for `mother'.
917         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
918         new arguments `mother' and `conversion'; use
919         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
920         (charset_code_point): Moved from char-ucs.h; support `mother'
921         charset feature.
922         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
923         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
924         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
925         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
926         allow 2 as the value of `graphic' in UTF-2000; add new properties
927         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
928         require `final' in UTF-2000; modify for `make_charset'.
929         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
930         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
931         (Fcharset_property): Support `mother', `min-code' and `max-code'.
932         (Fencode_char): New function.
933         (syms_of_mule_charset): Add new builtin function `encode-char' in
934         UTF-2000; add new symbols `min-code', `max-code', `mother',
935         `conversion' and `94x60'; delete symbols `mojikyo',
936         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
937         (complex_vars_of_mule_charset): Modify for `make_charset' change;
938         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
939         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
940
941         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
942         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
943
944         * char-ucs.h (Vcharset_mojikyo): Deleted.
945         (Vcharset_mojikyo_2022_1): Deleted.
946         (LEADING_BYTE_MOJIKYO): Deleted.
947         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
948         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
949         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
950         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
951         add new member `mother'; add new member `conversion'.
952         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
953         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
954         (CHARSET_MOTHER): New macro.
955         (CHARSET_CONVERSION): New macro.
956         (CONVERSION_IDENTICAL): New macro.
957         (CONVERSION_94x60): New macro.
958         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
959         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
960         (XCHARSET_MOTHER): New macro.
961         (XCHARSET_CONVERSION): New macro.
962         (MIN_CHAR_MOJIKYO): Deleted.
963         (MAX_CHAR_MOJIKYO): Deleted.
964         (DECODE_MOJIKYO_2022): Deleted.
965         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
966         (charset_code_point): Changed to non-inline function.
967         (encode_char_1): Use `charset_code_point'.
968         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
969
970 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
971
972         * lread.c (read_compiled_function): Fix prototype.
973         (read_vector): Likewise.
974
975 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * lrecord.h (struct lrecord_header): Delete `older'.
978         (set_lheader_implementation): Delete code for `older'.
979         (set_lheader_older_implementation): Deleted.
980         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
981         (OLDER_RECORD_P): Deleted.
982         (OLDER_RECORD_HEADER_P): Deleted.
983         (alloc_older_lcrecord): Deleted.
984         (alloc_older_lcrecord_type): Deleted.
985
986         * alloc.c (all_older_lcrecords): Deleted.
987         (alloc_older_lcrecord): Deleted.
988         (disksave_object_finalization_1): Delete code for older objects.
989         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
990         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
991
992 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
993
994         * mule-charset.c (decoding_table_put_char): Use `make_vector'
995         instead of `make_older_vector'.
996         (put_char_ccs_code_point): Likewise.
997         (mark_charset): Mark `cs->decoding_table'.
998         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
999
1000         * lisp.h (make_older_vector): Deleted.
1001         (make_vector_newer): Deleted.
1002
1003         * config.h.in (HAVE_GGC): Deleted.
1004
1005         * alloc.c (make_older_vector): Deleted.
1006         (make_vector_newer_1): Deleted.
1007         (make_vector_newer): Deleted.
1008
1009 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1010
1011         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1012         (Qideograph_daikanwa_2): New variable.
1013         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1014         (complex_vars_of_mule_charset): Add new coded-charset
1015         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1016         `LEADING_BYTE_DAIKANWA'.
1017
1018         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1019         (LEADING_BYTE_DAIKANWA_1): New macro.
1020         (LEADING_BYTE_DAIKANWA_2): New macro.
1021         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1022
1023 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1024
1025         * mule-charset.c (complex_vars_of_mule_charset): Change
1026         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1027         the second revised version.
1028
1029 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030
1031         * mule-charset.c (Vcharset_ucs_smp): New variable.
1032         (Vcharset_ucs_sip): New variable.
1033         (Qucs_smp): New variable.
1034         (Qucs_sip): New variable.
1035         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1036         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1037         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1038         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1039         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1040         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1041
1042         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1043         (LEADING_BYTE_UCS_SIP): New macro.
1044         (MIN_CHAR_SMP): New macro.
1045         (MAX_CHAR_SMP): New macro.
1046         (MIN_CHAR_SIP): New macro.
1047         (MAX_CHAR_SIP): New macro.
1048
1049 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1050
1051         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1052         utf-2000.
1053
1054 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1055
1056         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1057         value; don't store value into `encoding_table' of `Lisp_Charset'.
1058         (mark_charset): `encoding_table' was deleted.
1059         (charset_description): Likewise.
1060         (make_charset): Likewise.
1061         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1062         `put_char_ccs_code_point'.
1063
1064         * chartab.h (Fput_char_attribute): New EXFUN.
1065
1066         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1067         is unified with normal symbol space.
1068         (Fget_char_attribute): Likewise.
1069         (Fput_char_attribute): Likewise; behavior of
1070         `put_char_ccs_code_point' is changed.
1071
1072         * char-ucs.h: Include "elhash.h".
1073         (Vchar_attribute_hash_table): New external variable.
1074         (struct Lisp_Charset): Delete `encoding_table'.
1075         (CHARSET_ENCODING_TABLE): New implementation; refer
1076         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1077         `Lisp_Charset'.
1078
1079 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1080
1081         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1082         (cs) == 0.
1083
1084 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1085
1086         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1087         `chinese-big5'.
1088
1089 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1090
1091         * chartab.c (uint8_byte_table_description): New constant.
1092         (uint8-byte-table): Use `uint8_byte_table_description'.
1093         (uint16_byte_table_description): New constant.
1094         (uint16-byte-table): Use `uint16_byte_table_description'.
1095
1096 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1099         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1100
1101 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102
1103         * mule-charset.c (Vcharset_ucs_ks): New variable.
1104         (Qucs_ks): New variable.
1105         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1106         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1107
1108         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1109
1110 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111
1112         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1113         (Fdecode_char): Likewise.
1114
1115         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1116         chartab.h.
1117         (Fdefine_char): Modify for Fdecode_char.
1118         (Ffind_char): Likewise.
1119
1120         * mule-charset.c (Fdecode_char): Add new optional argument
1121         `defined-only'.
1122         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1123
1124 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1125
1126         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1127         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1128         (allocate_coding_system): Initialize initial-charsets of
1129         CODESYS_BIG5 in XEmacs UTF-2000.
1130         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1131         CODESYS_BIG5 in XEmacs UTF-2000.
1132         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1133         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1134
1135         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1136         variables.
1137         (Qideograph_hanziku_{1 .. 12}): Likewise.
1138         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1139         .. 12}'.
1140         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1141         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1142         `ideograph-hanziku-{1 .. 12}'.
1143
1144         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1145         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1146         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1147         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1148         (DECODE_DEFINED_CHAR): New inline function.
1149         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1150
1151 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1152
1153         * mule-charset.c (Vcharset_china3_jef): Renamed from
1154         `Vcharset_japanese_jef_china3'.
1155         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1156         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1157         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1158         (syms_of_mule_charset): Rename `china3-jef' from
1159         `japanese-jef-china3'.
1160         (complex_vars_of_mule_charset): Likewise; rename
1161         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1162
1163         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1164         `LEADING_BYTE_JEF_CHINA3'.
1165         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1166         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1167
1168 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169
1170         * mule-charset.c (encode_builtin_char_1): Comment out special code
1171         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1172
1173         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1174         (MAX_CHAR_MOJIKYO_0): Comment out.
1175         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1176         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1177         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1178         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1179
1180 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1181
1182         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1183         (Qideograph_cbeta): New variable.
1184         (encode_builtin_char_1): Comment out special code for
1185         coded-charset `mojikyo' and `japanese-jef-china3'.
1186         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1187         (complex_vars_of_mule_charset): Add new coded-charset
1188         `ideograph-cbeta'.
1189
1190         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1191         (MIN_CHAR_CBETA): New macro.
1192         (MAX_CHAR_CBETA): New macro.
1193
1194 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195
1196         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1197         (LEADING_BYTE_JEF_CHINA3): New macro.
1198         (MIN_CHAR_JEF_CHINA3): New macro.
1199         (MAX_CHAR_JEF_CHINA3): Likewise.
1200         (DECODE_CHAR): Fixed.
1201
1202 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1205         (Qjapanese_jef_china3): New variable.
1206         (encode_builtin_char_1): Support `japanese-jef-china3'.
1207         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1208         (complex_vars_of_mule_charset): Add new coded-charset
1209         `japanese-jef-china3'.
1210
1211 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1212
1213         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1214         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1215         94^4, 96^3, 96^4, 128^n and 256^n set.
1216         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1217         (map_char_table): Likewise.
1218
1219 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1220
1221         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1222         UTF-2000.
1223
1224 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1225
1226         * chartab.h (get_char_id_table): New inline function.
1227
1228         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1229         function.
1230
1231 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232
1233         * chartab.h (decode_char_table_range): New prototype in XEmacs
1234         UTF-2000.
1235         (put_char_id_table): New inline function in XEmacs UTF-2000.
1236
1237         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1238         function.
1239         (decode_char_table_range): Delete static declaration in XEmacs
1240         UTF-2000.
1241
1242 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1243
1244         * chartab.c (put_char_id_table): Use `put_char_table'.
1245
1246 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1247
1248         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
1249         (map_over_uint16_byte_table): Likewise.
1250         (map_over_byte_table): Likewise.
1251         (map_char_table): Modify for `map_over_uint8_byte_table',
1252         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
1253         UTF-2000.
1254
1255 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1256
1257         * chartab.c (struct map_char_table_for_charset_arg): New
1258         structure.
1259         (map_char_table_for_charset_fun): New function.
1260         (map_char_table): Use `map_char_table' for encoding_table of
1261         `range->charset'.
1262
1263 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264
1265         * chartab.c (map_char_table): Check a character is found in
1266         range->charset instead of non default value is defined in
1267         char-table when range is CHARTAB_RANGE_ROW.
1268
1269 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1270
1271         * chartab.c (map_char_id_table): Deleted.
1272         (Fmap_char_attribute): Use `map_char_table' instead of
1273         `map_char_id_table'.
1274
1275 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276
1277         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
1278         UTF-2000.
1279         (update_syntax_table): Deleted in XEmacs UTF-2000.
1280
1281         * syntax.c (find_defun_start): Use `syntax_table' instead of
1282         `mirror_syntax_table' in XEmacs UTF-2000.
1283         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
1284         UTF-2000.
1285         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
1286         XEmacs UTF-2000.
1287         (Fmatching_paren): Likewise.
1288         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
1289         in XEmacs UTF-2000.
1290         (find_start_of_comment): Likewise.
1291         (find_end_of_comment): Likewise.
1292         (Fforward_comment): Likewise.
1293         (scan_lists): Likewise.
1294         (char_quoted): Likewise.
1295         (Fbackward_prefix_chars): Likewise.
1296         (scan_sexps_forward): Likewise.
1297         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
1298         (update_syntax_table): Likewise.
1299
1300         * search.c (skip_chars): Use `syntax_table' instead of
1301         `mirror_syntax_table' in XEmacs UTF-2000.
1302         (wordify): Likewise.
1303         (Freplace_match): Likewise.
1304
1305         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
1306         `mirror_syntax_table' in XEmacs UTF-2000.
1307         (WORDCHAR_P_UNSAFE): Likewise.
1308         (re_match_2_internal): Likewise.
1309
1310         * font-lock.c (find_context): Use `buf->syntax_table' instead of
1311         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1312
1313         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
1314         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
1315
1316         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
1317         XEmacs UTF-2000.
1318
1319         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
1320         UTF-2000.
1321         (print_char_table): Print `default_value' in XEmacs UTF-2000.
1322         (char_table_description): Delete `mirror_table' in XEmacs
1323         UTF-2000.
1324         (fill_char_table): Don't call `update_syntax_table' in XEmacs
1325         UTF-2000.
1326         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
1327         (Fcopy_char_table): Likewise.
1328         (put_char_table): Don't call `update_syntax_table' in XEmacs
1329         UTF-2000.
1330
1331         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
1332         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1333         (casify_region_internal): Likewise.
1334
1335         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
1336
1337         * buffer.c (common_init_complex_vars_of_buffer): Don't use
1338         `mirror_syntax_table' in XEmacs UTF-2000.
1339
1340         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
1341         `buf->mirror_syntax_table' in XEmacs UTF-2000.
1342         (Fexpand_abbrev): Likewise.
1343
1344 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1345
1346         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
1347
1348 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349
1350         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
1351         (map_over_uint16_byte_table): Likewise.
1352         (map_over_byte_table): Likewise.
1353         (get_char_id_table): Refer `cit->default_value'.
1354         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1355         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
1356         of character-id ranges.
1357         (mark_char_table): Mark `ct->default_value'.
1358         (char_table_description): Add `default_value'.
1359         (fill_char_table): Use `default_value'.
1360         (decode_char_table_range): Decode `nil' as
1361         `CHARTAB_RANGE_DEFAULT'.
1362         (get_char_id_table): Refer `cit->default_value'.
1363         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
1364         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
1365         temporary hack; check value of char-table is bound or not.
1366         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
1367
1368         * chartab.h (struct Lisp_Char_Table): Add new member
1369         `default_value' in XEmacs UTF-2000.
1370         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
1371         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
1372         UTF-2000.
1373
1374 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1375
1376         * chartab.h (Lisp_Char_ID_Table): Deleted.
1377
1378         * chartab.c (char_table_description): Fix typo.
1379         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1380         `Lisp_Char_ID_Table'.
1381
1382 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1383
1384         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1385         `CHAR_ID_TABLE_P'.
1386
1387         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1388         `CHAR_ID_TABLE_P'.
1389
1390         * chartab.h (XCHAR_ID_TABLE): Deleted.
1391         (XSETCHAR_ID_TABLE): Deleted.
1392         (CHAR_ID_TABLE_P): Deleted.
1393
1394         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1395         `CHAR_ID_TABLE_P'.
1396         (Fget_composite_char): Likewise.
1397         (put_char_table): Likewise.
1398         (add_char_attribute_alist_mapper): Fixed.
1399         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1400         `CHAR_ID_TABLE_P'.
1401         (Fget_char_attribute): Likewise.
1402         (Fget_char_attribute): Likewise.
1403         (Fmap_char_attribute): Likewise.
1404
1405         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1406         `CHAR_ID_TABLE_P'.
1407         (encode_char_1): Likewise.
1408
1409 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1410
1411         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1412         `XCHAR_ID_TABLE'.
1413
1414         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1415         instead of `XCHAR_ID_TABLE'.
1416         (remove_char_ccs): Likewise.
1417
1418         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1419         `XCHAR_ID_TABLE'.
1420         (Fget_composite_char): Likewise.
1421         (Fchar_variants): Likewise.
1422         (put_char_table): Likewise.
1423         (add_char_attribute_alist_mapper): Likewise.
1424         (Fchar_attribute_alist): Likewise.
1425         (Fget_char_attribute): Likewise.
1426         (Fput_char_attribute): Likewise.
1427         (Fmap_char_attribute): Likewise.
1428         (Fmap_char_attribute): Likewise.
1429
1430         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1431         `XCHAR_ID_TABLE'.
1432         (encode_char_1): Likewise.
1433
1434 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435
1436         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1437         `Lisp_Char_ID_Table'.
1438         (mark_char_id_table): Deleted.
1439         (print_char_id_table): Likewise.
1440         (char_id_table_equal): Likewise.
1441         (char_id_table_hash): Likewise.
1442         (char_id_table_description): Likewise.
1443         (char_id_table): Likewise.
1444         (make_char_id_table): Use `Fmake_char_table' and
1445         `fill_char_table'.
1446         (get_char_id_table): Use `Lisp_Char_Table' instead of
1447         `Lisp_Char_ID_Table'.
1448         (put_char_id_table): Likewise.
1449         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1450         `XCHAR_ID_TABLE'.
1451         (Fremove_char_attribute): Likewise.
1452         (syms_of_chartab): Don't define type `char-id-table'.
1453
1454         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1455         (char_id_table): Likewise.
1456         (GC_CHAR_ID_TABLE_P): Likewise.
1457         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1458         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1459         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1460         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1461         (get_char_id_table): Use `Lisp_Char_Table' instead of
1462         `Lisp_Char_ID_Table'.
1463         (put_char_id_table_0): Likewise.
1464         (put_char_id_table): Likewise.
1465
1466 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1467
1468         * chartab.h: Lisp_Byte_Table related codes are moved from
1469         chartab.h.
1470
1471         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1472
1473 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1474
1475         * chartab.h: Don't include "chartab.h".
1476         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1477         (Lisp_Char_ID_Table): Likewise.
1478         (char_id_table): Likewise.
1479         (XCHAR_ID_TABLE): Likewise.
1480         (XSETCHAR_ID_TABLE): Likewise.
1481         (CHAR_ID_TABLE_P): Likewise.
1482         (GC_CHAR_ID_TABLE_P): Likewise.
1483         (get_char_id_table): Likewise.
1484
1485         * char-ucs.h: Include "chartab.h".
1486         (struct Lisp_Char_ID_Table): Moved to chartab.h.
1487         (Lisp_Char_ID_Table): Likewise.
1488         (char_id_table): Likewise.
1489         (XCHAR_ID_TABLE): Likewise.
1490         (XSETCHAR_ID_TABLE): Likewise.
1491         (CHAR_ID_TABLE_P): Likewise.
1492         (GC_CHAR_ID_TABLE_P): Likewise.
1493         (get_char_id_table): Likewise.
1494
1495 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1496
1497         * chartab.c (copy_uint8_byte_table): New function.
1498         (copy_uint16_byte_table): New function.
1499         (copy_byte_table): New function.
1500         (map_over_uint8_byte_table): Modify to avoid huge numbers of
1501         characters to call.
1502         (map_over_uint16_byte_table): Likewise.
1503         (map_over_byte_table): Likewise.
1504         (get_byte_table): Move prototype to chartab.h.
1505         (put_byte_table): Likewise.
1506         (put_char_id_table_0): Moved to chartab.h.
1507         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1508         (char_table_entry_equal): Likewise.
1509         (char_table_entry_hash): Likewise.
1510         (char_table_entry_description): Likewise.
1511         (char_table_entry): Likewise.
1512         (make_char_table_entry): Likewise.
1513         (copy_char_table_entry): Likewise.
1514         (get_non_ascii_char_table_value): Likewise.
1515         (map_over_charset_ascii): Likewise.
1516         (map_over_charset_control_1): Likewise.
1517         (map_over_charset_row): Likewise.
1518         (map_over_other_charset): Likewise.
1519         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1520         (print_char_table): Likewise.
1521         (char_table_equal): Likewise.
1522         (char_table_hash): Likewise.
1523         (char_table_description): Likewise.
1524         (fill_char_table): Likewise.
1525         (Fcopy_char_table): Likewise.
1526         (get_char_table): Likewise.
1527         (Fget_range_char_table): Likewise.
1528         (put_char_table): Likewise.
1529         (map_char_table): Likewise.
1530         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1531         UTF-2000.
1532
1533 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1534
1535         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1536         `Vauto_fill_chars' in XEmacs UTF-2000.
1537
1538         * chartab.h (get_byte_table): New prototype [moved from
1539         chartab.c].
1540         (put_byte_table): Likewise [moved from chartab.c].
1541         (put_char_id_table_0): New inline function [moved from chartab.c].
1542         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1543         (Lisp_Char_Table_Entry): Likewise.
1544         (char_table_entry): Likewise.
1545         (XCHAR_TABLE_ENTRY): Likewise.
1546         (XSETCHAR_TABLE_ENTRY): Likewise.
1547         (CHAR_TABLE_ENTRYP): Likewise.
1548         (CHECK_CHAR_TABLE_ENTRY): Likewise.
1549         (NUM_ASCII_CHARS): Likewise.
1550         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1551         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1552
1553 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1554
1555         * chartab.c (get_char_id_table): Change interface.
1556         (put_char_id_table_0): New function.
1557         (put_char_id_table): Change interface; new implementation.
1558         (Fget_composite_char): Modify for interface change of
1559         `get_char_id_table'.
1560         (Fchar_variants): Likewise.
1561         (add_char_attribute_alist_mapper): Likewise.
1562         (Fchar_attribute_alist): Likewise.
1563         (Fget_char_attribute): Likewise.
1564         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1565         as same as character as the first argument like `put-char-table';
1566         modify for interface change of `put_char_id_table'.
1567         (Fremove_char_attribute): Modify for interface change of
1568         `put_char_id_table'.
1569
1570 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1571
1572         * text-coding.c: Sync up with XEmacs 21.2.41.
1573         (COMPOSE_ADD_CHAR): Modify for interface change of
1574         `get_char_id_table'.
1575
1576         * mule-charset.c (put_char_ccs_code_point): Modify for interface
1577         change of `put_char_id_table'.
1578         (remove_char_ccs): Likewise.
1579
1580         * chartab.h (put_char_id_table): Change interface.
1581
1582         * char-ucs.h (get_char_id_table): Change interface.
1583         (charset_code_point): Modify for interface change of
1584         `get_char_id_table'.
1585         (encode_char_1): Likewise.
1586
1587 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1588
1589         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1590         argument `ccs'.
1591         (map_over_uint16_byte_table): Likewise.
1592         (map_over_byte_table): Likewise.
1593         (map_char_id_table): Add new argument `range' like
1594         `map_char_table'.
1595         (Fmap_char_attribute): Add new argument `range' like
1596         `Fmap_char_table'.
1597
1598 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1599
1600         * chartab.c (map_over_uint8_byte_table): Change interface of
1601         mapping function to use struct chartab_range instead of Emchar.
1602         (map_over_uint16_byte_table): Likewise.
1603         (map_over_byte_table): Likewise.
1604         (map_char_id_table): Likewise.
1605         (struct slow_map_char_id_table_arg): Deleted.
1606         (slow_map_char_id_table_fun): Deleted.
1607         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1608         function `slow_map_char_table_fun' instead of struct
1609         `slow_map_char_id_table_arg' and function
1610         `slow_map_char_id_table_fun'.
1611
1612 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1613
1614         * mule-charset.c: Move char-it-table related codes to chartab.c.
1615         (Vutf_2000_version): Moved to chartab.c.
1616         (Fdefine_char): Likewise.
1617         (Ffind_char): Likewise.
1618         (syms_of_mule_charset): Move types `uint8-byte-table',
1619         `uint16-byte-table', `byte-table' and `char-id-table' to
1620         chartab.c; move functions `char_attribute_list,
1621         `find_char_attribute_table, `char_attribute_alist,
1622         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1623         `map_char_attribute, `define_char, `find_char, `char_variants and
1624         `get_composite_char to chartab.c; move symbols `=>ucs',
1625         `->decomposition', `compat', `isolated', `initial', `medial',
1626         `final', `vertical', `noBreak', `fraction', `super', `sub',
1627         `circle', `square', `wide', `narrow', `small' and `font' to
1628         chartab.c.
1629         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1630         setting codes for `Vcharacter_composition_table' and
1631         `Vcharacter_variant_table' to chartab.c.
1632         (complex_vars_of_mule_charset): Move setting code for
1633         `Vchar_attribute_hash_table' to chartab.c.
1634
1635         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1636         (make_char_id_table): New prototype.
1637         (put_char_id_table): Likewise.
1638         (Fget_char_attribute): Likewise.
1639
1640         * chartab.c: Move char-id-table related code from mule-charset.c.
1641         (Vutf_2000_version): Moved from mule-charset.c.
1642
1643         * char-ucs.h (Qucs): New external variable.
1644         (put_char_ccs_code_point): New prototype.
1645         (remove_char_ccs): Likewise.
1646
1647 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
1648
1649         * mule-charset.c (Vcharset_ucs_jis): New variable.
1650         (Qucs_jis): Likewise.
1651         (syms_of_mule_charset): Add new symbol `ucs-jis'.
1652         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1653
1654         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1655
1656 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1657
1658         * mule-charset.c (map_over_uint8_byte_table): New function.
1659         (map_over_uint16_byte_table): Likewise.
1660         (map_over_byte_table): Likewise.
1661         (map_char_id_table): Likewise.
1662         (slow_map_char_id_table_fun): Likewise.
1663         (Fmap_char_attribute): Likewise.
1664         (syms_of_mule_charset): Add new function `map-char-attribute'.
1665
1666 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1667
1668         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1669         (syms_of_mule_charset): Add new function `find-char'.
1670
1671 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1672
1673         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1674         XEmacs UTF-2000.
1675         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1676         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1677         XEmacs UTF-2000.
1678         (complex_vars_of_mule_charset): Add new coded-charset
1679         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1680         `ideograph-gt-pj-*'.
1681
1682         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1683
1684 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1685
1686         * mule-charset.c (encode_builtin_char_1): Purge codes about
1687         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1688         {MIN|MAX}_CHAR_HEBREW.
1689         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1690         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1691
1692         * char-ucs.h (MIN_CHAR_GREEK): Purged.
1693         (MAX_CHAR_GREEK): Purged.
1694         (MIN_CHAR_CYRILLIC): Purged.
1695         (MAX_CHAR_CYRILLIC): Purged.
1696         (MIN_CHAR_HEBREW): Commented out.
1697         (MAX_CHAR_HEBREW): Likewise.
1698
1699 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1700
1701         * mule-charset.c (Qto_ucs): New variable.
1702         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1703         (Fdefine_char): Likewise.
1704         (syms_of_mule_charset): Add new symbol `=>ucs'.
1705
1706 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1707
1708         * mule-charset.c (Fdecode_char): Fixed.
1709
1710 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1711
1712         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1713         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1714         "tcvn5712-1".
1715
1716 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1717
1718         * mule-charset.c (Vcharset_ucs_big5): New variable.
1719         (Qucs_big5): Likewise.
1720         (syms_of_mule_charset): Add new symbol `ucs-big5'.
1721         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1722
1723         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1724
1725 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1726
1727         * mule-charset.c (decode_builtin_char): Check Big5 code range
1728         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1729
1730 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1731
1732         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1733         (Qchinese_gb12345): Likewise.
1734         (Fdecode_builtin_char): Fixed.
1735         (syms_of_mule_charset): Add `chinese-gb12345'.
1736         (complex_vars_of_mule_charset): Add coded-charset
1737         `chinese-gb12345'.
1738
1739         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1740         (LEADING_BYTE_CHINESE_GB12345): New macro.
1741
1742 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1743
1744         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1745         and `latin-viscii-upper' for `latin-viscii'.
1746
1747 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1748
1749         * mule-charset.c (Fdecode_builtin_char): Comment out
1750         regularization code for ISO-IR GR representation.
1751
1752 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1753
1754         * mule-charset.c (decode_builtin_char): New function; renamed from
1755         `make_builtin_char'; return -1 instead of signal.
1756         (Fdecode_builtin_char): Use `decode_builtin_char'.
1757
1758         * char-ucs.h (decode_builtin_char): New prototype; renamed from
1759         `make_builtin_char'.
1760         (DECODE_CHAR): Use `decode_builtin_char' instead of
1761         `make_builtin_char'; use mapping table of `chinese-big5' for
1762         `chinese-big5-{1,2}'.
1763
1764 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1765
1766         * text-coding.c (char_encode_big5): New function.
1767         (char_finish_big5): Likewise.
1768         (reset_encoding_stream): Use `char_encode_big5' and
1769         `char_finish_big5' for CODESYS_BIG5.
1770         (mule_encode): Don't use `encode_coding_big5'.
1771         (encode_coding_big5): Deleted.
1772
1773 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1774
1775         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1776         0x81- in XEmacs UTF-2000.
1777         (detect_coding_big5): Likewise.
1778
1779 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1780
1781         * mule-charset.c (Fdefine_char): Don't use a CCS property to
1782         generate character-id if the CCS property does not have
1783         corresponding predefined character.
1784         (make_builtin_char): Return -1 if corresponding predefined
1785         character is not found.
1786         (Fdecode_char): Return nil if corresponding character is not
1787         found.
1788         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1789         don't map to builtin ucs space.
1790
1791 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1794         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1795
1796 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1797
1798         * mule-charset.c (Vcharset_ideograph_gt): New variable.
1799         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1800         (Qideograph_gt): Likewise.
1801         (Qideograph_gt_pj_{1..11}): Likewise.
1802         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1803         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1804         `ideograph-gt-pj-11'.
1805         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1806         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1807         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1808
1809         * char-ucs.h (LEADING_BYTE_GT): New macro.
1810         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1811         (MIN_CHAR_GT): Likewise.
1812         (MAX_CHAR_GT): Likewise.
1813
1814 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1817         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1818
1819         * doprnt.c (unsigned_int_converters): Add `c'.
1820         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1821
1822         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1823         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1824         `MIN_CHAR_MOJIKYO'.
1825         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1826         (MAX_CHAR_MOJIKYO_0): New macro.
1827         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1828
1829 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1830
1831         * mule-charset.c (Fdefine_char): Delete cemented out code.
1832         (encode_builtin_char_1): Modify for new allocation of builtin
1833         Mojikyo characters.
1834
1835         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1836
1837 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1838
1839         * mule-charset.c (Vcharset_ucs_cns): New variable.
1840         (Qucs_cns): New variable.
1841         (syms_of_mule_charset): Add new symbol `ucs-cns'.
1842         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1843
1844 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1845
1846         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1847
1848 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1849
1850         * search.c (search_buffer): Make `charset_base_code' as
1851         character-id >> 6 to eliminate the corresponding last byte in
1852         UTF-8 representation [I'm not sure it is right thing].
1853         (boyer_moore): Likewise.
1854
1855 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1856
1857         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1858         representation in MULE.
1859
1860 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1861
1862         * text-coding.c (Fmake_coding_system): Use
1863         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1864         `EXTERNAL_PROPERTY_LIST_LOOP'.
1865
1866 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1867
1868         * text-coding.c (decode_output_utf8_partial_char): New function.
1869         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1870
1871 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1872
1873         * text-coding.c (decode_coding_utf8): Output original byte
1874         sequence if it is broken; change order of conditions.
1875
1876         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1877         of conditions.
1878
1879         * mb-multibyte.h (BYTE_ASCII_P):
1880         Use bit ops for char-signedness safety.
1881         (BYTE_C0_P): Use bit ops for char-signedness safety.
1882         (BYTE_C1_P): Use bit ops for char-signedness safety.
1883
1884         * character.h: (XCHAR_OR_CHAR_INT):
1885         Always use inline function.
1886         Remove redundant type checking assert() - XINT will abort quite
1887         nicely.
1888
1889 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1890
1891         * text-coding.c: (Fencode_shift_jis_char):
1892         (Fencode_big5_char):
1893         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1894         Replace 0 with '\0' when working with bytes.
1895         Replace initial "(" with "\(" in docstrings.
1896
1897         (Fmake_coding_system):
1898         When type is ccl and value is vector, register it with a proper
1899         symbol.  And checks whether the given ccl program is valid.
1900         (mule_decode): When calling ccl_driver, if src indicates
1901         NULL pointer, set an empty string instead.
1902         (mule_encode): Likewise.
1903
1904         (detect_eol_type):
1905         (detect_coding_sjis):
1906         (decode_coding_sjis):
1907         (detect_coding_big5):
1908         (decode_coding_big5):
1909         (detect_coding_ucs4):
1910         (decode_coding_ucs4):
1911         (detect_coding_utf8):
1912         (decode_coding_utf8):
1913         (detect_coding_iso2022):
1914         (decode_coding_iso2022):
1915         (decode_coding_no_conversion):
1916         (mule_decode):
1917         Make all detecting and decoding functions take an Extbyte * arg.
1918         (text_encode_generic):
1919         (encode_coding_big5):
1920         (encode_coding_no_conversion):
1921         (mule_encode):
1922         Make all encoding functions take a Bufbyte * arg.
1923         Use size_t instead of unsigned int for memory sizes.
1924         Only cast to unsigned char whenever dereferencing Extbyte *.
1925
1926         (struct lrecord_description fcd_description_1): Use countof.
1927         (complex_vars_of_file_coding):
1928         Use countof instead of sizeof.
1929         Use CHECK_NATNUM instead of CHECK_INT.
1930
1931 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1932
1933         * mule-charset.c (Fget_char_attribute): Add new optional argument
1934         `default-value'.
1935         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1936         (remove_char_ccs): Likewise.
1937
1938 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939
1940         * text-coding.c (char_encode_shift_jis): New implementation in
1941         UTF-2000.
1942         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1943         ...)'.
1944
1945         * mule-charset.c (Vcharset_chinese_big5): New variable in
1946         UTF-2000.
1947         (Qchinese_big5): New variable in UTF-2000.
1948         (BIG5_SAME_ROW): New macro in UTF-2000.
1949         (make_builtin_char): Use builtin characters of
1950         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1951         characters of `Vcharset_chinese_big5'.
1952         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1953         (complex_vars_of_mule_charset): Add new coded-charset
1954         `chinese-big5' in UTF-2000.
1955
1956         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1957         (Vcharset_chinese_big5): New external variable declaration.
1958         (Vcharset_japanese_jisx0208_1990): Likewise.
1959
1960 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961
1962         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1963         function.
1964         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1965
1966 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1967
1968         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1969         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1970         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1971         `mojikyo-pj-*'.
1972
1973 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1974
1975         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1976
1977 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1978
1979         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1980         to 0.17.
1981
1982 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1983
1984         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1985         for `CHARSET_BY_ATTRIBUTES'.
1986         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1987         `CHARSET_BY_ATTRIBUTES'.
1988
1989         * text-coding.c (struct decoding_stream): Rename member `CH' to
1990         `CPOS'.
1991         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1992         (decode_coding_sjis): Likewise.
1993         (decode_coding_big5): Likewise.
1994         (decode_coding_ucs4): Likewise.
1995         (decode_coding_utf8): Likewise.
1996         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1997         `CHARSET_BY_ATTRIBUTES'.
1998         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1999         `str->counter'; decode 3, 4 bytes sets.
2000         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2001         sets.
2002         (decode_coding_no_conversion): Use `str->cpos' instead of
2003         `str->ch'.
2004
2005         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2006         (Qmojikyo_2022_1): New variable.
2007         (make_charset): Don't use `CHARSET_TYPE_*'.
2008         (range_charset_code_point): Support coded-charset
2009         `mojikyo-2022-1'.
2010         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2011         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2012         `CHARSET_BY_ATTRIBUTES'.
2013         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2014         `CHARSET_BY_ATTRIBUTES'.
2015         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2016         (complex_vars_of_mule_charset): Add new coded-charset
2017         `mojikyo-2022-1'.
2018
2019         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2020         interface; changed to inline function.
2021
2022         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2023         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2024         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2025         (CHARSET_TYPE_94): Deleted.
2026         (CHARSET_TYPE_94X94): Deleted.
2027         (CHARSET_TYPE_96): Deleted.
2028         (CHARSET_TYPE_96X96): Deleted.
2029         (CHARSET_TYPE_128): Deleted.
2030         (CHARSET_TYPE_128X128): Deleted.
2031         (CHARSET_TYPE_256): Deleted.
2032         (CHARSET_TYPE_256X256): Deleted.
2033         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2034         to inline function.
2035         (DECODE_MOJIKYO_2022): New inline function.
2036         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2037         `Vcharset_mojikyo_2022_1'.
2038
2039 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040
2041         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2042         instead of `EQ'.
2043         (put_byte_table): Likewise.
2044         (char_id_table_equal): Use `get_byte_table' [new implementation].
2045
2046 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2047
2048         * mule-charset.c: Include <limits.h> in UTF-2000.
2049         (BT_UINT8_MIN): New macro in UTF-2000.
2050         (BT_UINT8_MAX): New macro in UTF-2000.
2051         (BT_UINT8_t): New macro in UTF-2000.
2052         (BT_UINT8_nil): New macro in UTF-2000.
2053         (BT_UINT8_unbound): New macro in UTF-2000.
2054         (INT_UINT8_P): New inline function in UTF-2000.
2055         (UINT8_VALUE_P): New inline function in UTF-2000.
2056         (UINT8_ENCODE): New inline function in UTF-2000.
2057         (UINT8_DECODE): New inline function in UTF-2000.
2058         (mark_uint8_byte_table): New function in UTF-2000.
2059         (print_uint8_byte_table): New function in UTF-2000.
2060         (uint8_byte_table_equal): New function in UTF-2000.
2061         (uint8_byte_table_hash): New function in UTF-2000.
2062         (make_uint8_byte_table): New function in UTF-2000.
2063         (uint8_byte_table_same_value_p): New function in UTF-2000.
2064         (BT_UINT16_MIN): New macro in UTF-2000.
2065         (BT_UINT16_MAX): New macro in UTF-2000.
2066         (BT_UINT16_t): New macro in UTF-2000.
2067         (BT_UINT16_nil): New macro in UTF-2000.
2068         (BT_UINT16_unbound): New macro in UTF-2000.
2069         (INT_UINT16_P): New inline function in UTF-2000.
2070         (UINT16_VALUE_P): New inline function in UTF-2000.
2071         (UINT16_ENCODE): New inline function in UTF-2000.
2072         (UINT16_DECODE): New inline function in UTF-2000.
2073         (UINT8_TO_UINT16): New inline function in UTF-2000.
2074         (mark_uint16_byte_table): New function in UTF-2000.
2075         (print_uint16_byte_table): New function in UTF-2000.
2076         (uint16_byte_table_equal): New function in UTF-2000.
2077         (uint16_byte_table_hash): New function in UTF-2000.
2078         (make_uint16_byte_table): New function in UTF-2000.
2079         (uint16_byte_table_same_value_p): New function in UTF-2000.
2080         (print_byte_table): New function in UTF-2000.
2081         (byte-table): Use `print_byte_table' as printer.
2082         (make_byte_table): Delete second argument `older'.
2083         (byte_table_same_value_p): New function in UTF-2000.
2084         (copy_byte_table): Deleted.
2085         (get_byte_table): New function in UTF-2000.
2086         (put_byte_table): New function in UTF-2000.
2087         (print_char_id_table): New function in UTF-2000.
2088         (char-id-table): Use `print_char_id_table' as printer.
2089         (make_char_id_table): Delete second argument `older'.
2090         (get_char_id_table): Use `get_byte_table [new implementation].
2091         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2092         implementation].
2093         (Ffind_char_attribute_table): New function in UTF-2000.
2094         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2095         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2096         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2097         (syms_of_mule_charset): Add new function
2098         `find-char-attribute-table' in UTF-2000.
2099
2100         * lrecord.h (enum lrecord_type): Add
2101         `lrecord_type_uint16_byte_table' and
2102         `lrecord_type_uint8_byte_table'.
2103
2104         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2105         (Lisp_Uint8_Byte_Table): New type.
2106         (XUINT8_BYTE_TABLE): New macro.
2107         (XSETUINT8_BYTE_TABLE): New macro.
2108         (UINT8_BYTE_TABLE_P): New macro.
2109         (GC_UINT8_BYTE_TABLE_P): New macro.
2110         (struct Lisp_Uint16_Byte_Table): New structure.
2111         (Lisp_Uint16_Byte_Table): New type.
2112         (XUINT16_BYTE_TABLE): New macro.
2113         (XSETUINT16_BYTE_TABLE): New macro.
2114         (UINT16_BYTE_TABLE_P): New macro.
2115         (GC_UINT16_BYTE_TABLE_P): New macro.
2116
2117 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2120         (Vcharacter_ideographic_strokes_table): Deleted.
2121         (Vcharacter_total_strokes_table): Deleted.
2122         (Vcharacter_morohashi_daikanwa_table): Deleted.
2123         (Vcharacter_decomposition_table): Deleted.
2124         (Qname): Deleted because it is duplicated.
2125         (Qideographic_radical): Deleted.
2126         (Qideographic_strokes): Deleted.
2127         (Qtotal_strokes): Deleted.
2128         (Qmorohashi_daikanwa): Deleted.
2129         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2130         `ideographic-radical', `ideographic-strokes', `total-strokes',
2131         `morohashi-daikanwa' and `->decomposition'.
2132         (Fget_char_attribute): Likewise.
2133         (Fput_char_attribute): Likewise; use `make-vector' instead of
2134         `make_older_vector' for `->decomposition' value.
2135         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2136         `ideograph-daikanwa'.
2137         (syms_of_mule_charset): Delete builtin symbols `name',
2138         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2139         `morohashi-daikanwa'.
2140         (vars_of_mule_charset): Don't setup
2141         `Vcharacter_ideographic_radical_table',
2142         `Vcharacter_ideographic_strokes_table',
2143         `Vcharacter_total_strokes_table',
2144         `Vcharacter_morohashi_daikanwa_table' and
2145         `Vcharacter_decomposition_table'.
2146
2147 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2148
2149         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2150         `make_older_vector', `make_vector_newer_1' and
2151         `make_vector_newer'.
2152
2153         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2154         `make_older_vector' and `make_vector_newer'.
2155
2156         * config.h.in (HAVE_GGC): New macro.
2157
2158 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2159
2160         * mule-charset.c (struct char_attribute_list_closure): New
2161         structure in UTF-2000.
2162         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2163         (Fchar_attribute_list): Likewise.
2164         (Fset_charset_mapping_table): Use `make_vector_newer'.
2165         (Fdecode_builtin_char): New function in UTF-2000.
2166         (syms_of_mule_charset): Add new function `char-attribute-list' and
2167         `decode-builtin-char' in UTF-2000.
2168
2169         * lisp.h (make_vector_newer): New prototype.
2170
2171         * alloc.c (make_vector_newer_1): New function.
2172         (make_vector_newer): New function.
2173
2174 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2175
2176         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2177         50100)'.
2178
2179 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180
2181         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2182         (Vcharacter_attribute_table): Deleted.
2183         (Vcharacter_name_table): Deleted.
2184         (put_char_attribute): Deleted.
2185         (remove_char_attribute): Deleted.
2186         (struct char_attribute_alist_closure): New structure.
2187         (add_char_attribute_alist_mapper): New function.
2188         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2189         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2190         (Fget_char_attribute): Likewise.
2191         (Fput_char_attribute): Likewise.
2192         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2193         of `remove_char_attribute'.
2194         (Fdefine_char): Return character.
2195         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2196         and `Vcharacter_name_table'.
2197         (complex_vars_of_mule_charset): Likewise
2198         `Vchar_attribute_hash_table'.
2199
2200 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2201
2202         * character.h (CHARC_CHARSET): New macro.
2203         (CHARC_CHARSET_ID): New macro.
2204         (CHARC_CODE_POINT): New macro.
2205         (CHARC_COLUMNS): New macro.
2206         (CHARC_TO_CHAR): New inline function.
2207         (CHARC_EQ): New inline function.
2208         (CHARC_ASCII_EQ): New inline function.
2209         (CHARC_IS_SPACE): New inline function.
2210         (ASCII_TO_CHARC): New inline function.
2211
2212         * char-ucs.h (encode_char_2): Deleted.
2213         (ENCODE_CHAR): Use `encode_char_1' again.
2214         (breakup_char_1): Likewise.
2215         (CHAR_TO_CHARC): New inline function.
2216
2217         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2218
2219 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2220
2221         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2222         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2223         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2224         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2225         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2226         `CHARC_IS_SPACE'.
2227         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2228
2229         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2230         `CHARC_CODE_POINT'.
2231         (x_output_display_block): Use `CHARC_CHARSET' and
2232         `CHARC_ASCII_EQ'.
2233
2234         * redisplay-tty.c (tty_output_display_block): Use
2235         `CHARC_ASCII_EQ'.
2236         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2237
2238         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2239
2240         * insdel.c (find_charsets_in_charc_string): Use
2241         `CHARC_CHARSET_ID'.
2242         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
2243         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
2244         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
2245         (convert_charc_string_into_malloced_string): Likewise.
2246
2247 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
2250         instead of <Emchar_dynarr *> for buf; use
2251         `convert_bufbyte_string_into_charc_dynarr' instead of
2252         `convert_bufbyte_string_into_emchar_dynarr'; use
2253         `find_charsets_in_charc_string' instead of
2254         `find_charsets_in_emchar_string'.
2255
2256         * redisplay.h:
2257         - Include "character.h".
2258         (struct rune): New member `cglyph'; delete member `chr'.
2259
2260         * redisplay.c (redisplay_text_width_charc_string): New function;
2261         delete `redisplay_text_width_emchar_string'.
2262         (rtw_charc_dynarr): New variable; renamed from
2263         `rtw_emchar_dynarr'.
2264         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
2265         `rtw_emchar_dynarr'; use
2266         `convert_bufbyte_string_into_charc_dynarr' instead of
2267         `convert_bufbyte_string_into_emchar_dynarr'; use
2268         `redisplay_text_width_charc_string' instead of
2269         `redisplay_text_width_emchar_string'.
2270         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
2271         instead of `rtw_emchar_dynarr'; use
2272         `convert_bufbyte_string_into_charc_dynarr' instead of
2273         `convert_bufbyte_string_into_emchar_dynarr'.
2274         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
2275         `redisplay_text_width_charc_string' instead of
2276         `redisplay_text_width_emchar_string'.
2277         (create_text_block): Modify for <struct rune> change.
2278         (generate_formatted_string_db): Likewise.
2279         (create_string_text_block): Likewise.
2280         (pixel_to_glyph_translation): Likewise.
2281
2282         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
2283         instead of <const Emchar *>.
2284         (x_text_width): Likewise.
2285         (x_output_display_block): Use <Charc_dynarr *> instead
2286         <Emchar_dynarr *>; modify for <structure rune> change.
2287         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
2288         *>.
2289
2290         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
2291         <const Emchar *>; use `charc_string_displayed_columns' instead of
2292         `emchar_string_displayed_columns'.
2293         (tty_output_display_block): Use <Charc_dynarr *> instead of
2294         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
2295         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
2296         (tty_output_charc_dynarr_dynarr): New variable; renamed from
2297         `tty_output_emchar_dynarr_dynarr'.
2298         (tty_output_charc_dynarr): New function; delete
2299         `tty_output_charc_dynarr'.
2300
2301         * redisplay-output.c (compare_runes): Modify for `struct rune'.
2302         (redisplay_output_layout): Use <Charc_dynarr *> instead of
2303         <Emchar_dynarr *> for buf; use
2304         `convert_bufbyte_string_into_charc_dynarr' instead of
2305         `convert_bufbyte_string_into_emchar_dynarr'.
2306
2307         * frame.c (title_string_charc_dynarr): New variable; renamed from
2308         `title_string_emchar_dynarr'.
2309         (generate_title_string): Use `title_string_charc_dynarr' instead
2310         of `title_string_emchar_dynarr'; use
2311         `convert_charc_string_into_malloced_string' instead of
2312         `convert_emchar_string_into_malloced_string'.
2313         (init_frame): Use `title_string_charc_dynarr' instead of
2314         `title_string_emchar_dynarr'.
2315
2316         * console.h:
2317         - Include "character.h".
2318         (struct console_methods): Use <const Charc *> instead of <const
2319         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
2320         <Emchar_dynarr *> in output_string_method.
2321
2322         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
2323         <Emchar_dynarr *>.
2324
2325         * console-stream.c (stream_text_width): Use <const Charc *>
2326         instead of <const Emchar *>.
2327
2328         * character.h (Charc_dynarr): New type.
2329
2330         * char-ucs.h (structure Charc): New structure; define new type
2331         `Charc'.
2332
2333         * char-lb.h (DECODE_CHAR): New inline function.
2334         (encode_char_1): New inline function.
2335         (ENCODE_CHAR): New macro.
2336         (structure Charc): New structure; define new type `Charc'.
2337
2338         * char-1byte.h (Vcharset_control_1): New macro.
2339         (Vcharset_latin_iso8859_1): New macro.
2340         (DECODE_CHAR): New inline function.
2341         (encode_char_1): New inline function.
2342         (ENCODE_CHAR): New macro.
2343         (structure Charc): New structure; define new type `Charc'.
2344
2345         * insdel.c (find_charsets_in_charc_string): New function; delete
2346         `find_charsets_in_emchar_string'.
2347         (charc_string_displayed_columns): New function; delete
2348         `emchar_string_displayed_columns'.
2349         (convert_bufbyte_string_into_charc_dynarr): New function; delete
2350         `convert_bufbyte_string_into_emchar_dynarr'.
2351         (convert_charc_string_into_bufbyte_dynarr): New function; delete
2352         `convert_charc_string_into_bufbyte_dynarr'.
2353         (convert_charc_string_into_malloced_string): New function; delete
2354         `convert_charc_string_into_malloced_string'.
2355
2356         * buffer.h (find_charsets_in_charc_string): New prototype; delete
2357         `find_charsets_in_emchar_string'.
2358         (charc_string_displayed_columns): New prototype; delete
2359         `emchar_string_displayed_columns'.
2360         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
2361         `convert_charc_string_into_bufbyte_dynarr'.
2362         (convert_charc_string_into_malloced_string): New prototype; delete
2363         `convert_charc_string_into_malloced_string'.
2364
2365 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2366
2367         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
2368
2369 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2370
2371         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
2372
2373         * char-ucs.h: Use <short> for <Charset_ID>.
2374
2375         * mule-charset.h, char-1byte.h: Use <unsigned char> for
2376         <Charset_ID>.
2377
2378 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2379
2380         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2381         to 0.16.
2382
2383 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2384
2385         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2386         variable.
2387         (Qmorohashi_daikanwa): New variable.
2388         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2389         for `morohashi-daikanwa' attribute.
2390         (Fget_char_attribute): Likewise.
2391         (Fput_char_attribute): Likewise.
2392         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2393         has the same value of `ideograph-daikanwa'.
2394         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2395         (vars_of_mule_charset): Setup
2396         `Vcharacter_morohashi_daikanwa_table'.
2397
2398 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2399
2400         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2401         attributes.
2402         (add_charset_to_list_mapper): Add `key' instead of
2403         `XCHARSET_NAME (value)' to return aliases.
2404
2405 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2406
2407         * mule-charset.c (Vcharacter_ideographic_radical_table): New
2408         variable.
2409         (Vcharacter_ideographic_strokes_table): New variable.
2410         (Qideographic_radical): New variable.
2411         (Qideographic_strokes): New variable.
2412         (Fchar_attribute_alist): Use
2413         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2414         attribute; use `Vcharacter_ideographic_strokes_table' for
2415         `ideographic-strokes' attribute.
2416         (Fget_char_attribute): Likewise.
2417         (Fput_char_attribute): Likewise.
2418         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2419         `ideographic-strokes'.
2420         (vars_of_mule_charset): Setup
2421         `Vcharacter_ideographic_radical_table' and
2422         `Vcharacter_ideographic_strokes_table'.
2423
2424 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2425
2426         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2427         (Qtotal_strokes): New variable.
2428         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2429         `total-strokes' attribute.
2430         (Fget_char_attribute): Likewise.
2431         (Fput_char_attribute): Likewise.
2432         (syms_of_mule_charset): Add new symbol `total-strokes'.
2433         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2434
2435 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2436
2437         * mule-charset.c (Vcharacter_decomposition_table): New variable.
2438         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2439         are found.
2440         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2441         `->decomposition' attribute.
2442         (Fput_char_attribute): Likewise.
2443         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2444
2445 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2446
2447         * mule-charset.c (decoding_table_check_elements): New function.
2448         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2449
2450 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2451
2452         * mule-charset.c (Fset_charset_mapping_table): Use
2453         `put_char_ccs_code_point'.
2454
2455 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2456
2457         * mule-charset.c (decoding_table_put_char): New inline function.
2458         (put_char_ccs_code_point): Use `decoding_table_put_char'.
2459
2460 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2461
2462         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2463         (XCHARSET_BYTE_SIZE): New macro.
2464         (decoding_table_remove_char): New inline function.
2465         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2466         `decoding_table_remove_char'.
2467         (remove_char_ccs): Use `decoding_table_remove_char'.
2468         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2469
2470 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2471
2472         * mule-charset.c (Vcharacter_name_table): New variable.
2473         (Qname): New variable.
2474         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2475         attribute.
2476         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2477         `Vcharacter_name_table' for `name' attribute.
2478         (Fremove_char_attribute): Use function `remove_char_ccs'.
2479         (put_char_ccs_code_point): New function.
2480         (remove_char_ccs): New function.
2481         (syms_of_mule_charset): Add new symbol `name'.
2482         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2483
2484 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2485
2486         * mule-charset.c (make_byte_table): Add new argument `older'.
2487         (make_char_id_table): Likewise.
2488         (copy_char_id_table): Comment out because it is not used.
2489         (put_char_id_table): Modify for `make_byte_table'.
2490         (Fput_char_attribute): Make encoding_table as older object;
2491         inherit older bit of `Vcharacter_composition_table'.
2492         (mark_charset): Don't mark `cs->encoding_table'.
2493         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2494         normal object; make `Vcharacter_composition_table' as an older
2495         object; delete staticpro for `Vcharacter_composition_table'; make
2496         `Vcharacter_variant_table' as a normal object.
2497
2498         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2499         (mark_object): Don't check older object in UTF-2000.
2500
2501         * lrecord.h (struct lrecord_header): Add new member `older' in
2502         UTF-2000.
2503         (set_lheader_implementation): Setup `SLI_header->older' in
2504         UTF-2000.
2505         (set_lheader_older_implementation): New macro in UTF-2000.
2506         (OLDER_RECORD_P): New macro in UTF-2000.
2507         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2508         (alloc_older_lcrecord): New prototype in UTF-2000.
2509         (alloc_older_lcrecord_type): New macro in UTF-2000.
2510
2511 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2512
2513         * mule-charset.c (byte_table_description): Use
2514         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2515         (char_id_table_description): Delete bogus `, 1'.
2516         (Fget_char_attribute): Refer encoding_table of each coded-charset
2517         to get value of coded-charset attribute of a character.
2518         (Fput_char_attribute): Use `make_older_vector' instead of
2519         `make_vector'; use encoding_table of each coded-charset to store
2520         value of coded-charset attribute of a character.
2521         (Fremove_char_attribute): Use encoding_table of each coded-charset
2522         to store value of coded-charset attribute of a character.
2523         (mark_charset): Mark `cs->encoding_table'; don't mark
2524         `cs->decoding_table'.
2525         (charset_description): Add description of new member
2526         `encoding_table'.
2527         (make_charset): Initialize `encoding_table'.
2528
2529         * char-ucs.h (struct Lisp_Charset): Add new member
2530         `encoding_table'.
2531         (CHARSET_ENCODING_TABLE): New macro.
2532         (XCHARSET_ENCODING_TABLE): New macro.
2533         (charset_code_point): New implementation.
2534         (encode_char_1): Likewise.
2535
2536         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2537         (disksave_object_finalization_1): Call finalizers of
2538         `all_older_lcrecords' in UTF-2000.
2539         (make_older_vector): New function in UTF-2000.
2540         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2541         UTF-2000.
2542
2543         * lisp.h (make_older_vector): New prototype in UTF-2000.
2544
2545 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2546
2547         * lrecord.h (enum lrecord_type): Rename
2548         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2549
2550         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2551         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2552         `get_char_code_table'.
2553
2554         * mule-charset.c (mark_char_id_table): Renamed from
2555         `mark_char_code_table'.
2556         (char_id_table_equal): Renamed from `char_code_table_equal'.
2557         (char_id_table_hash): Renamed from `char_code_table_hash'.
2558         (make_char_id_table): Renamed from `make_char_code_table'.
2559         (copy_char_id_table): Renamed from `copy_char_code_table'.
2560         (get_char_id_table): Renamed from `get_char_code_table'.
2561         (put_char_id_table): Renamed from `put_char_code_table'.
2562         (to_char_id): Renamed from `to_char_code'.
2563
2564         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2565         `Lisp_Char_Code_Table'.
2566         (char_id_table): Renamed from `char_code_table'.
2567         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2568         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2569         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2570         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2571         (get_char_id_table): Renamed from `get_char_code_table'.
2572
2573 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2574
2575         * lrecord.h (enum lrecord_type): Rename
2576         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2577
2578         * mule-charset.c (mark_byte_table): Renamed from
2579         `mark_char_byte_table'.
2580         (byte_table_equal): Renamed from `char_byte_table_equal'.
2581         (byte_table_hash): Renamed from `byte_table_hash'.
2582         (make_byte_table): Renamed from `make_byte_table'.
2583         (copy_byte_table): Renamed from `copy_char_byte_table'.
2584
2585         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2586         `Lisp_Char_Byte_Table'.
2587         (byte_table): Renamed from `char_byte_table'.
2588         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2589         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2590         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2591         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2592
2593 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2594
2595         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2596         (dfc_convert_to_internal_format): Likewise.
2597         
2598         * text-coding.c (Fcoding_system_canonical_name_p): New function.
2599         * text-coding.c (Fcoding_system_alias_p): New function.
2600         * text-coding.c (Fcoding_system_aliasee): New function.
2601         * text-coding.c (append_suffix_to_symbol): New function.
2602         * text-coding.c (dangling_coding_system_alias_p): New function.
2603         * text-coding.c (Ffind_coding_system):
2604         * text-coding.c (Fcopy_coding_system):
2605         * text-coding.c (encode_coding_no_conversion):
2606         * text-coding.c (syms_of_file_coding):
2607         * text-coding.c (vars_of_file_coding):
2608         Rewrite coding system alias code.
2609         Allow nested aliases, like symbolic links.
2610         Allow redefinition of coding system aliases.
2611         Prevent existence of dangling coding system aliases.
2612         Eliminate convert_to_external_format.
2613         Eliminate convert_to_internal_format.
2614         
2615         * text-coding.c: Change enum eol_type to eol_type_t.
2616
2617 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2618
2619         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2620         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2621
2622         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2623         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2624
2625 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2626
2627         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2628         `ideograph-daikanwa'.
2629
2630         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2631         (Vcharset_ucs_bmp): Likewise.
2632         (Vcharset_mojikyo): Add new extern variable definition.
2633         (Vcharset_latin_iso8859_2): Deleted because it is not used.
2634         (Vcharset_latin_iso8859_3): Likewise.
2635         (Vcharset_latin_iso8859_4): Likewise.
2636         (Vcharset_latin_iso8859_9): Likewise.
2637         (Vcharset_latin_viscii_lower): Likewise.
2638         (Vcharset_latin_viscii_upper): Likewise.
2639         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2640         `mojikyo' code-point is used to decode.
2641         (encode_char_2): New function [to convert `mojikyo' code-point to
2642         Mojikyo font encoding].
2643         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2644         (breakup_char_1): Likewise.
2645         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2646
2647 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2648
2649         * text-coding.c (Fmake_coding_system): Add document about
2650         `disable-composition' property.
2651
2652 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2653
2654         * text-coding.c (Qdisable_composition): New variable; delete
2655         `Qcomposite'.
2656         (Fmake_coding_system): Add new property `disable-composite';
2657         delete property `composite'.
2658         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2659         instead of `!CODING_SYSTEM_COMPOSITE'.
2660         (syms_of_file_coding): Add new symbol `disable-composition';
2661         delete symbol `composite'.
2662
2663         * file-coding.h (struct Lisp_Coding_System): Add
2664         `disable_composition'; delete `enable_composition'.
2665         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2666         `CODING_SYSTEM_COMPOSITE'.
2667         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2668         `XCODING_SYSTEM_COMPOSITE'.
2669
2670 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2671
2672         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2673         to 0.15.
2674
2675 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2676
2677         * text-coding.c (Qcomposite): New variable.
2678         (Fmake_coding_system): Add new property `composite'.
2679         (struct decoding_stream): Add `combined_char_count',
2680         `combined_chars' and `combining_table' in UTF-2000.
2681         (COMPOSE_FLUSH_CHARS): New macro.
2682         (COMPOSE_ADD_CHAR): New macro.
2683         (reset_decoding_stream): Reset `str->combined_char_count' and
2684         `str->combining_table' in UTF-2000.
2685         (decode_coding_iso2022): Modify for character-decomposition.
2686         (syms_of_file_coding): Add new symbol `composite'.
2687
2688 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2689
2690         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2691         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2692         of `Vcharacter_composition_table' if `->decomposition' property
2693         has only 1 element.
2694         (Qlatin_tcvn5712): New variable.
2695         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2696         (complex_vars_of_mule_charset): Add new coded-charset
2697         `latin-tcvn5712'.
2698
2699         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2700
2701 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2702
2703         * file-coding.h (struct Lisp_Coding_System): Add
2704         `enable_composition'.
2705         (CODING_SYSTEM_COMPOSITE): New macro.
2706         (XCODING_SYSTEM_COMPOSITE): New macro.
2707
2708 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
2709
2710         * mule-canna.c (c2mu): Fix problem with UTF-2000.
2711
2712 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
2713
2714         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2715         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2716
2717 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
2718
2719         * mule-charset.c (Vcharset_mojikyo): New variable.
2720         (Fdefine_char): Don't use coded-charset which does not have
2721         non-builtin character range to allocate character-id.
2722         (Qmojikyo): New variable.
2723         (syms_of_mule_charset): Add new symbol `mojikyo'.
2724         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2725
2726         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2727         (LEADING_BYTE_MOJIKYO): New macro.
2728         (MIN_CHAR_MOJIKYO): New macro.
2729         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2730         (MAX_CHAR_MOJIKYO): New macro.
2731
2732 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
2733
2734         * mule-charset.c (remove_char_attribute): Fixed.
2735
2736 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
2737
2738         * mule-charset.c (remove_char_attribute): New function.
2739         (Fremove_char_attribute): New function.
2740         (encode_builtin_char_1): Comment out builtin-support for
2741         greek-iso8859-7 and cyrillic-iso8859-5.
2742         (Fdecode_char): Check `code' is an integer.
2743         (syms_of_mule_charset): Add `remove-char-attribute'.
2744         (MIN_CHAR_GREEK): Deleted.
2745         (MAX_CHAR_GREEK): Likewise.
2746         (MIN_CHAR_CYRILLIC): Likewise.
2747         (MAX_CHAR_CYRILLIC): Likewise.
2748         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2749         MAX_CHAR_GREEK for `greek-iso8859-7'.
2750
2751         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2752         (MAX_CHAR_GREEK): Likewise.
2753         (MIN_CHAR_CYRILLIC): Likewise.
2754         (MAX_CHAR_CYRILLIC): Likewise.
2755
2756 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
2757
2758         * mule-charset.c (Fdefine_char): Fix problem when new code-point
2759         format is used without `ucs' property.
2760         (Fdecode_char): Fix problem with GR representation.
2761         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2762         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2763
2764 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2765
2766         * mule-charset.c (make_builtin_char): New function.
2767         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2768         (Fset_charset_mapping_table): Modify for new representation of
2769         code-point.
2770         (Fdecode_char): New function.
2771         (syms_of_mule_charset): Add new builtin function `decode-char' in
2772         UTF-2000.
2773
2774         * char-ucs.h (make_builtin_char): New prototype.
2775         (DECODE_CHAR): New inline function.
2776         (MAKE_CHAR): Use `DECODE_CHAR'.
2777
2778 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
2779
2780         * text-coding.c (parse_charset_conversion_specs): Use
2781         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2782         `XCHARSET_TYPE'.
2783         (iso2022_designate): Likewise.
2784
2785         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2786         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2787
2788         * mule-charset.c (Vcharset_ucs): New variable.
2789         (print_charset): Change design; use `CHARSET_CHARS' and
2790         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2791         (make_charset): Change signature to specify `chars' and
2792         `dimension' instead of `type'.
2793         (range_charset_code_point): Modify for 256^n-set.
2794         (encode_builtin_char_1): Encode as `ucs' in default.
2795         (Fmake_charset): Modify for `make_charset'.
2796         (Fmake_reverse_direction_charset): Likewise.
2797         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2798         UTF-2000.
2799         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2800         for `make_charset'.
2801
2802         * char-ucs.h (Vcharset_ucs): New variable.
2803         (LEADING_BYTE_UCS): New macro.
2804         (struct Lisp_Charset): Delete `type'; change type of `dimension'
2805         and `chars' to `unsigned short' from `unsigned int'.
2806         (CHARSET_TYPE): Deleted.
2807         (XCHARSET_TYPE): Deleted.
2808
2809 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
2810
2811         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2812
2813         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2814         (ENCODE_CHAR): New macro.
2815
2816 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2817
2818         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2819         to 0.14 (Kawachi-Katakami).
2820
2821 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
2822
2823         * text-coding.c (char_encode_shift_jis): Modify for
2824         `charset_code_point'.
2825         (char_encode_iso2022): Likewise.
2826
2827         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2828         (integer) instead of list of <Lisp_Object>s (integers) as the
2829         format of code-point of a coded-charset.
2830         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2831         (encode_builtin_char_1): New function; delete
2832         `split_builtin_char'.
2833         (charset_code_point): Return <int> instead of <Lisp_Object>.
2834         (Fsplit_char): Don't use `SPLIT_CHAR'.
2835
2836         * char-ucs.h (encode_builtin_char_1): New prototype; delete
2837         prototype for `split_builtin_char'.
2838         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2839         (charset_code_point): Likewise.
2840         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2841         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2842
2843 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
2844
2845         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2846         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2847
2848 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2849
2850         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2851
2852         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2853         (MAX_CHAR_OBS_94x94): Deleted.
2854
2855 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2856
2857         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2858
2859         * char-ucs.h (MAX_CHAR_BMP): New macro.
2860
2861 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2862
2863         * text-coding.c: Sync with r21-2-24.
2864
2865 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2866
2867         * file-coding.c: Modify for UTF-2000.
2868
2869 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2870
2871         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2872         to 0.13 (Takaida).
2873
2874 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2875
2876         * mule-charset.c (split_builtin_char): Delete builtin support for
2877         `katakana-jisx0201'.
2878         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2879         BMP area in builtin representation.
2880
2881         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2882         `Vcharset_katakana_jisx0201'.
2883
2884 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2885
2886         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2887         (Qisolated): New variable.
2888         (Qinitial): New variable.
2889         (Qmedial): New variable.
2890         (Qfinal): New variable.
2891         (Qvertical): New variable.
2892         (Qsmall): New variable.
2893         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2894         `Qvertical' and `Qsmall'.
2895         (Qmojikyo_pj_[1 .. 21]): New variable.
2896         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2897         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2898         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2899         .. 21]'.
2900
2901 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2902
2903         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2904         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2905         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2906
2907 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2908
2909         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2910         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2911         BMP.
2912         (Qjapanese_jisx0208_1990): New variable.
2913         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2914         (complex_vars_of_mule_charset): Add new coded-charset
2915         `japanese-jisx0208-1990'.
2916
2917         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2918         (MIN_CHAR_JIS_X0208_1990): New macro.
2919         (MAX_CHAR_JIS_X0208_1990): New macro.
2920
2921 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2922
2923         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2924         coded-charset is not found.
2925
2926 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2927
2928         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2929         (Fdefine_char): Use `Fmake_char'.
2930
2931 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2932
2933         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2934         (Vcharset_hiragana_jisx0208): Deleted.
2935         (Vcharset_katakana_jisx0208): Deleted.
2936         (Qideograph_daikanwa): New variable.
2937         (Qhiragana_jisx0208): Deleted.
2938         (Qkatakana_jisx0208): Deleted.
2939         (split_builtin_char): Split `ideograph-daikanwa'.
2940         (Fsplit_char): New implementation for UTF-2000.
2941         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2942         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2943         (complex_vars_of_mule_charset): Add new coded-charset
2944         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2945         `katakana-jisx0208'.
2946
2947         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2948         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2949         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2950         (MIN_CHAR_DAIKANWA): New macro.
2951         (MAX_CHAR_DAIKANWA): New macro.
2952
2953 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2954
2955         * data.c (Fstring_to_number): Don't recognize floating point if
2956         base is not 10.
2957
2958 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2959
2960         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2961
2962 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2963
2964         * mule-charset.c (Qsquare): New variable.
2965         (to_char_code): Add `Qsquare'.
2966         (syms_of_mule_charset): Add new symbol `square'.
2967
2968 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2969
2970         * mule-charset.c (Qcircle): New variable.
2971         (to_char_code): Add `Qcircle'.
2972         (syms_of_mule_charset): Add new symbol `circle'.
2973
2974 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2975
2976         * mule-charset.c (Qfont): New variable.
2977         (to_char_code): Add `Qfont'.
2978         (syms_of_mule_charset): Add new symbol `font'.
2979
2980 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2981
2982         * mule-charset.c (Qsub): New variable.
2983         (to_char_code): Add `Qsub'.
2984         (syms_of_mule_charset): Add new symbol `sub'.
2985
2986 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2987
2988         * mule-charset.c (Fput_char_attribute): Convert each element of
2989         VALUE to GL position if ATTRIBUTE is a GR-set,
2990
2991 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2992
2993         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2994         coded-charset is a GR-set.
2995
2996 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2997
2998         * mule-charset.c (Fput_char_attribute): Check each element of
2999         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3000
3001 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3002
3003         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3004         UTF-2000.
3005         (Qethiopic_ucs): New variable in UTF-2000.
3006         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3007         (complex_vars_of_mule_charset): Add new coded-charset
3008         `ethiopic-ucs' in UTF-2000.
3009
3010         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3011         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3012         9)'.
3013         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3014         10)'.
3015         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3016
3017 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3018
3019         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3020         `ascii'.
3021
3022 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3023
3024         * mule-charset.c (Vcharacter_variant_table): New variable.
3025         (Q_ucs): New variable.
3026         (Fchar_variants): New function.
3027         (Fput_char_attribute): Register `->ucs' value to
3028         `Vcharacter_variant_table'.
3029         (syms_of_mule_charset): Add new function `char-variants' and new
3030         symbol `->ucs'.
3031         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3032
3033 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3034
3035         * mule-charset.c (get_char_code_table): Allow negative character
3036         code.
3037         (put_char_code_table): Likewise.
3038         (Vcharacter_composition_table): New variable.
3039         (Q_decomposition): New variable.
3040         (Qwide): New variable.
3041         (Qnarrow): New variable.
3042         (Qcompat): New variable.
3043         (QnoBreak): New variable.
3044         (Qsuper): New variable.
3045         (Qfraction): New variable.
3046         (to_char_code): New function.
3047         (Fget_composite_char): New function.
3048         (Fput_char_attribute): Register `->decomposition' value to
3049         `Vcharacter_composition_table'.
3050         (syms_of_mule_charset): Add new function `get-composite-char', new
3051         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3052         `super' and `fraction'.
3053         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3054
3055 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3056
3057         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3058         character; copy the return value.
3059
3060 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3061
3062         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3063
3064         * mule-charset.c (range_charset_code_point): Must use make_int.
3065         (split_builtin_char): New function.
3066
3067 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3068
3069         * mule-charset.c (char_byte_table): Change name from
3070         "char-code-table" to "char-byte-table".
3071         (mark_char_code_table): New function.
3072         (char_code_table_equal): New function.
3073         (char_code_table_hash): New function.
3074         (char_code_table_description): New constant.
3075         (char_code_table): New type.
3076         (make_char_code_table): New function.
3077         (copy_char_code_table): New function.
3078         (get_char_code_table): Modify for `char_code_table' type.
3079         (put_char_code_table): Likewise.
3080         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3081         (Kashiwara).
3082
3083         * char-ucs.h (char_code_table): New type.
3084         (XCHAR_CODE_TABLE): New macro.
3085         (XSETCHAR_CODE_TABLE): New macro.
3086         (CHAR_CODE_TABLE_P): New macro.
3087         (GC_CHAR_CODE_TABLE_P): New macro.
3088         (struct Lisp_Char_Code_Table): New structure.
3089
3090 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3091
3092         * mule-charset.c (Fmake_charset): Setup byte_offset for
3093         {94|96}^n-set.
3094
3095 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3096
3097         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3098         character.
3099
3100 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3101
3102         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3103         is found.
3104
3105 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3106
3107         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3108         charset, it is regarded as a charset.
3109         (put_char_attribute): New function in UTF-2000.
3110         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3111         charset, mapping-table of the charset is modified.
3112         (Fdefine_char): New function in UTF-2000.
3113         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3114         `Fput_char_attribute'.
3115         (syms_of_mule_charset): Add new function `define-char' and new
3116         symbol `ucs' in UTF-2000.
3117         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3118
3119 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3120
3121         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3122         non-UTF-2000 configuration.
3123
3124 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3125
3126         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3127         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3128
3129         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3130         deleted.
3131         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3132         (Fset_charset_mapping_table): Likewise.
3133
3134         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3135         (CHARSET_ENCODING_TABLE): Delete.
3136         (XCHARSET_ENCODING_TABLE): Delete.
3137         (charset_code_point): New interface.
3138
3139 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3140
3141         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3142         instead of `charset_get_byte1' and `charset_get_byte2'.
3143
3144         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3145         (charset_get_byte2): Deleted.
3146
3147 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3148
3149         * char-ucs.h (SPLIT_CHAR): New inline function.
3150         (breakup_char_1): Use `SPLIT_CHAR'.
3151
3152         * mule-charset.c (range_charset_code_point): New function.
3153         (charset_code_point): New function.
3154
3155         * char-ucs.h (range_charset_code_point): New interface.
3156         (breakup_char_1): Use `range_charset_code_point'.
3157
3158 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3159
3160         * mule-charset.c (Fmake_charset): Delete unused local variable
3161         `code_offset'.
3162
3163         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3164         (breakup_char_1): Find a charset and code-point in
3165         `Vcharacter_attribute_table'.
3166
3167 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3168
3169         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3170         to 0.10 (Yao).
3171
3172 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3173
3174         * mule-charset.c (Vcharacter_attribute_table): New variable.
3175         (Fchar_attribute_alist): New function.
3176         (Fget_char_attribute): New function.
3177         (Fput_char_attribute): New function.
3178         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3179         too.
3180         (syms_of_mule_charset): Add new function `char-attribute-alist',
3181         `get-char-attribute' and `put-char-attribute'.
3182         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3183
3184 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3185
3186         * mule-charset.c (Fmake_charset): Just use
3187         `get_unallocated_leading_byte'.
3188
3189         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3190         sets; don't use final-byte based number for private sets.
3191
3192 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3193
3194         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3195         integer.
3196
3197 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3198
3199         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3200         to 0.9.
3201
3202 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3203
3204         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3205         of `CHAR_LEADING_BYTE' in UTF-2000.
3206
3207         * insdel.c (find_charsets_in_bufbyte_string): Use
3208         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3209         (find_charsets_in_emchar_string): Likewise.
3210
3211         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3212         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3213
3214         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3215         (CHAR_CHARSET_ID): New macro.
3216
3217 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3218
3219         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3220         charset-id - MIN_LEADING_BYTE.
3221         (put_char_table): Likewise.
3222
3223 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3224
3225         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3226         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3227         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3228         (CHARSET_ID_OFFSET): New macro.
3229         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3230         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3231         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3232         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3233         4).
3234         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3235         5).
3236         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3237         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3238         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3239         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
3240         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
3241
3242 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3243
3244         * mule-charset.c (next_allocated_leading_byte): New variable in
3245         UTF-2000.
3246         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
3247         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
3248         (get_unallocated_leading_byte): Simply use
3249         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
3250         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
3251         UTF-2000.
3252
3253         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
3254         (MAX_LEADING_BYTE_PRIVATE): New macro.
3255         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
3256         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
3257
3258 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3259
3260         * mule-charset.c (Fmake_charset): Allocate final-byte based
3261         charset-id for 94-set, 96-set and 94x94-set.
3262
3263 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3264
3265         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
3266         ambiguous `else'.
3267         (Fmake_charset): Likewise.
3268         (complex_vars_of_mule_charset): Modify the font registry of
3269         `ucs-bmp' not to match `Ethiopic-Unicode'.
3270
3271 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3272
3273         * mule-charset.c (complex_vars_of_mule_charset): Add font
3274         registory of `ucs-bmp'.
3275
3276 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3277
3278         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
3279         coded-charsets in `default-coded-charset-priority-list' when
3280         breaking up a character.
3281
3282         * mule-charset.c (Vcharset_latin_viscii): New variable.
3283         (Qlatin_viscii): New variable.
3284         (make_charset): Don't use `decoding_table'.
3285         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
3286         byte_offset.
3287         (Fset_charset_mapping_table): New implementation.
3288         (syms_of_mule_charset): Add new symbol `latin-viscii'.
3289         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
3290         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
3291         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
3292         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
3293         charset `latin_viscii'.
3294
3295         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
3296         (CHARSET_TYPE_94X94): Change to 1 from 2.
3297         (CHARSET_TYPE_96): Change to 2 from 1.
3298         (CHARSET_TYPE_128): New macro.
3299         (CHARSET_TYPE_128X128): Change to 5 from 4.
3300         (CHARSET_TYPE_256): New macro.
3301         (CHARSET_TYPE_256X256): Change to 7 from 5.
3302         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
3303
3304 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3305
3306         * text-coding.c (char_encode_shift_jis): Refer
3307         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
3308         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
3309
3310         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
3311         (char_byte_table_equal): New function in UTF-2000.
3312         (char_byte_table_hash): New function in UTF-2000.
3313         (char_byte_table_description): New constant in UTF-2000.
3314         (char_byte_table): New type in UTF-2000.
3315         (make_char_byte_table): New function in UTF-2000.
3316         (copy_char_byte_table): New function in UTF-2000.
3317         (make_char_code_table): New macro in UTF-2000.
3318         (get_char_code_table): New function in UTF-2000.
3319         (put_char_code_table): New function in UTF-2000.
3320         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3321         (charset_description): Add setting in UTF-2000.
3322         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
3323         `CHARSET_TO_BYTE1_TABLE(cs)'.
3324         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
3325         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
3326         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
3327         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
3328         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
3329         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
3330         `CHARSET_TO_BYTE2_TABLE(cs)'.
3331
3332         * char-ucs.h (char_byte_table): New type.
3333         (XCHAR_BYTE_TABLE): New macro.
3334         (XSETCHAR_BYTE_TABLE): New macro.
3335         (CHAR_BYTE_TABLE_P): New macro.
3336         (GC_CHAR_BYTE_TABLE_P): New macro.
3337         (struct Lisp_Char_Byte_Table): New structure.
3338         (get_char_code_table): New interface.
3339         (Emchar_to_byte_table): Deleted.
3340         (get_byte_from_character_table): Deleted.
3341         (struct Lisp_Charset): Add `encoding_table'; delete
3342         `to_byte1_table' and `to_byte2_table'.
3343         (CHARSET_ENCODING_TABLE): New macro.
3344         (CHARSET_TO_BYTE1_TABLE): Deleted.
3345         (CHARSET_TO_BYTE2_TABLE): Deleted.
3346         (XCHARSET_ENCODING_TABLE): New macro.
3347         (XCHARSET_TO_BYTE1_TABLE): Deleted.
3348         (XCHARSET_TO_BYTE2_TABLE): Deleted.
3349
3350 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3351
3352         * mule-charset.c (syms_of_mule_charset): Delete charset alias
3353         `vietnamese-viscii-*'.
3354
3355 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3356
3357         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
3358         (Qvietnamese_viscii_upper): New variable.
3359         (Fdefine_charset_alias): New function.
3360         (syms_of_mule_charset): Add new function `define-charset-alias'.
3361         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
3362         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
3363         `latin-viscii-*'.
3364
3365 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
3366
3367         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
3368         (MAX_CHAR_OBS_94x94): New macro.
3369         (breakup_char_1): Support obsolete XEmacs-UCS private code space
3370         for 94x94 sets.
3371
3372         * mule-charset.c (put_byte_from_character_table): Change unit size
3373         from 128 to 256.
3374         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
3375         not defined.
3376         (Fmake_reverse_direction_charset): Modify dummy argument of
3377         `make_charset' for non-UTF-2000 environment.
3378
3379 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3380
3381         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3382
3383         * mule-charset.c (destroy_byte_from_character_table): New macro.
3384         (latin_jisx0201_to_ucs): Deleted.
3385         (latin_iso8859_2_to_ucs): Deleted.
3386         (latin_iso8859_3_to_ucs): Deleted.
3387         (latin_iso8859_4_to_ucs): Deleted.
3388         (latin_iso8859_9_to_ucs): Deleted.
3389         (latin_viscii_lower_to_ucs): Deleted.
3390         (latin_viscii_upper_to_ucs): Deleted.
3391         (mark_charset): Mark `cs->decoding_table'.
3392         (Fcharset_mapping_table): Fix DOC-string.
3393         (Fset_charset_mapping_table): New function.
3394         (syms_of_mule_charset): Add nwe function
3395         `set-charset-mapping-table'.
3396         (complex_vars_of_mule_charset): Don't setup and use
3397         `latin_*_to_ucs'.
3398
3399 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3400
3401         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3402         charset.
3403
3404 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3405
3406         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3407         (Vcharset_katakana_jisx0208): New variable.
3408         (Qhiragana_jisx0208): New variable.
3409         (Qkatakana_jisx0208): New variable.
3410         (make_charset): Add new argument `byte_offset'.
3411         (charset_get_byte1): Modify for new coded-charset definition; use
3412         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3413         `XCHARSET_BYTE_OFFSET'.
3414         (Fmake_charset): Modify for `make_charset'.
3415         (Fmake_reverse_direction_charset): Likewise.
3416         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3417         `katakana-jisx0208'.
3418         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3419         `.'  in font registry of charset `katakana-jisx0201',
3420         `latin-jisx0201', `vietnamese-viscii-lower' and
3421         `vietnamese-viscii-upper'; modify DOC-string of charset
3422         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3423         registry of charset `japanese-jisx0208' not to use font for JIS
3424         X0208:1990; add new charset `hiragana-jisx0208' and
3425         `katakana-jisx0208'.
3426
3427         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3428         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3429         (struct Lisp_Charset): Add `byte_offset'.
3430         (CHARSET_BYTE_OFFSET): New macro.
3431         (XCHARSET_UCS_MIN): New macro.
3432         (XCHARSET_UCS_MAX): New macro.
3433         (XCHARSET_CODE_OFFSET): New macro.
3434         (XCHARSET_BYTE_OFFSET): New macro.
3435         (MIN_CHAR_HIRAGANA): New macro.
3436         (MAX_CHAR_HIRAGANA): New macro.
3437         (MIN_CHAR_KATAKANA): New macro.
3438         (MAX_CHAR_KATAKANA): New macro.
3439         (MAKE_CHAR): Modify for new coded-charset definition; use
3440         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3441         `XCHARSET_BYTE_OFFSET'.
3442
3443 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3444
3445         * mule-charset.c (CHAR96): Deleted.
3446         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3447         <Lisp_Object>.
3448         (latin_iso8859_2_to_ucs): Likewise.
3449         (latin_iso8859_3_to_ucs): Likewise.
3450         (latin_iso8859_4_to_ucs): Likewise.
3451         (latin_iso8859_9_to_ucs): Likewise.
3452         (latin_viscii_lower_to_ucs): Likewise.
3453         (latin_viscii_upper_to_ucs): Likewise.
3454         (latin_tcvn5712_to_ucs): Commented out.
3455         (make_charset): Change type of argument `decoding_table' from
3456         <Emchar*> to <Lisp_Object> [vector of characters].
3457         (Fmake_charset): Modify for `make_charset'.
3458         (Fmake_reverse_direction_charset): Likewise.
3459         (Fcharset_mapping_table): New function in UTF-2000.
3460         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3461         UTF-2000.
3462         (complex_vars_of_mule_charset): Modify for type change of
3463         `*_to_ucs'; modify for `make_charset'.
3464
3465         * char-ucs.h (struct Lisp_Charset): Change type of
3466         `decoding_table' from <Emchar*> to <Lisp_Object>.
3467         (MAKE_CHAR): Modify for new specification of `decoding_table'.
3468
3469 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3470
3471         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3472         error with non-UTF-2000-Mule.
3473
3474 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
3475
3476         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3477         in lisp again].
3478         (Vcharset_chinese_cns11643_4): Likewise.
3479         (Vcharset_chinese_cns11643_5): Likewise.
3480         (Vcharset_chinese_cns11643_6): Likewise.
3481         (Vcharset_chinese_cns11643_7): Likewise.
3482         (Qchinese_cns11643_3): Likewise.
3483         (Qchinese_cns11643_4): Likewise.
3484         (Qchinese_cns11643_5): Likewise.
3485         (Qchinese_cns11643_6): Likewise.
3486         (Qchinese_cns11643_7): Likewise.
3487         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3488         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3489         and `chinese-cns11643-7' to lisp/mule/chinese.el.
3490         (complex_vars_of_mule_charset): Likewise.
3491
3492 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3493
3494         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3495         96-set.
3496         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3497         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3498
3499 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3500
3501         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3502         0xFF60.
3503         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3504         (breakup_char_1): Likewise.
3505
3506         * text-coding.c (char_encode_iso2022): Keep designated charsets if
3507         one of them includes the specified character.
3508
3509 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3510
3511         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3512
3513 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3514
3515         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3516
3517 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3518
3519         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3520         definition for non-UTF-2000 Mule.
3521         (latin_iso8859_3_to_ucs): Likewise.
3522         (latin_iso8859_4_to_ucs): Likewise.
3523         (latin_iso8859_9_to_ucs): Likewise.
3524         (latin_jisx0201_to_ucs): Likewise.
3525         (MIN_CHAR_THAI): Likewise.
3526         (MAX_CHAR_THAI): Likewise.
3527         (MIN_CHAR_GREEK): Likewise.
3528         (MAX_CHAR_GREEK): Likewise.
3529         (MIN_CHAR_HEBREW): Likewise.
3530         (MAX_CHAR_HEBREW): Likewise.
3531         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3532         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3533         (MIN_CHAR_CYRILLIC): Likewise.
3534         (MAX_CHAR_CYRILLIC): Likewise.
3535
3536 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
3537
3538         * char-ucs.h (breakup_char_1): Use
3539         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3540         thai-tis620 and katakana-jisx0201 area.
3541
3542 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3543
3544         * char-ucs.h (breakup_char_1): Use
3545         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3546         area.
3547
3548         * text-coding.c (reset_encoding_stream): Fixed.
3549         (char_encode_ucs4): Delete `& 255'.
3550
3551         * char-ucs.h (breakup_char_1): Use
3552         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3553
3554 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3555
3556         * file-coding.c (Fmake_coding_system): Don't set up
3557         `codesys->fixed.size'.
3558         (encode_coding_no_conversion): Don't refer
3559         `str->codesys->fixed.size'.
3560
3561 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3562
3563         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3564         (latin_a_char_to_byte1): Deleted.
3565         (latin_a_char_to_byte2): Deleted.
3566
3567 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3568
3569         * mule-charset.c (make_charset): Add new argument `ucs_min',
3570         `ucs_max' and `code_offset'.
3571         (charset_get_byte1): New implementation [delete specific charset
3572         depended implementations].
3573         (Fmake_charset): Modify for `make_charset'.
3574         (Fmake_reverse_direction_charset): Likewise.
3575         (complex_vars_of_mule_charset): Likewise.
3576
3577         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3578         `code_offset'.
3579         (CHARSET_UCS_MIN): New macro.
3580         (CHARSET_UCS_MAX): New macro.
3581         (CHARSET_CODE_OFFSET): New macro.
3582         (MAKE_CHAR): Delete charset depended definitions [except
3583         katakana-jisx0201].
3584
3585 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3586
3587         * char-ucs.h (breakup_char_1): Use
3588         `Vdefault_coded_charset_priority_list' for C0-Controls,
3589         Basic-Latin, C1-Controls and Latin-1-Supplement area.
3590
3591 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3592
3593         * char-ucs.h (charset_get_byte1): New function.
3594         (XCHARSET_GET_BYTE1): Deleted.
3595         (charset_get_byte2): New function.
3596         (XCHARSET_GET_BYTE2): Deleted.
3597         (Vdefault_coded_charset_priority_list): New external variable.
3598         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3599         `Vdefault_preferred_coded_charset_list'.
3600
3601         * mule-charset.c (charset_get_byte1): New function.
3602         (charset_get_byte2): New function.
3603         (Vdefault_coded_charset_priority_list): New variable.
3604         (vars_of_mule_charset): Add new variable
3605         `default-coded-charset-priority-list'.
3606
3607 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3608
3609         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3610         (XCHARSET_GET_BYTE2): New inline function.
3611         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3612         `XCHARSET_GET_BYTE2'.
3613
3614 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3615
3616         * mule-charset.c (make_charset): Initialize
3617         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3618         NULL if table is not defined.
3619
3620 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3621
3622         * text-coding.c (char_encode_shift_jis): Use
3623         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3624         `ucs_to_latin_jisx0201'.
3625
3626         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3627         (ucs_to_latin_iso8859_2): Deleted.
3628         (ucs_to_latin_iso8859_3): Deleted.
3629         (ucs_to_latin_iso8859_4): Deleted.
3630         (ucs_to_latin_iso8859_9): Deleted.
3631         (ucs_to_latin_viscii_lower): Deleted.
3632         (ucs_to_latin_viscii_upper): Deleted.
3633         (ucs_to_latin_tcvn5712): Deleted.
3634         (make_charset): Add new argument `decoding_table'; set up
3635         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3636         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3637         `decoding_table' is defined in UTF-2000.
3638         (Fmake_charset): Modify for `make_charset'.
3639         (Fmake_reverse_direction_charset): Likewise.
3640         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3641         and `GENERATE_96_SET'.
3642
3643         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3644         (ucs_to_latin_jisx0201): Deleted.
3645         (latin_iso8859_2_to_ucs): Deleted.
3646         (ucs_to_latin_iso8859_2): Deleted.
3647         (latin_iso8859_3_to_ucs): Deleted.
3648         (ucs_to_latin_iso8859_3): Deleted.
3649         (latin_iso8859_4_to_ucs): Deleted.
3650         (ucs_to_latin_iso8859_4): Deleted.
3651         (latin_iso8859_9_to_ucs): Deleted.
3652         (ucs_to_latin_iso8859_9): Deleted.
3653         (latin_viscii_lower_to_ucs): Deleted.
3654         (ucs_to_latin_viscii_lower): Deleted.
3655         (latin_viscii_upper_to_ucs): Deleted.
3656         (ucs_to_latin_viscii_upper): Deleted.
3657         (struct Lisp_Charset): Renamed `encoding_table' to
3658         `to_byte1_table'; add `to_byte2_table'.
3659         (CHARSET_DECODING_TABLE): New macro.
3660         (CHARSET_TO_BYTE1_TABLE): New macro.
3661         (CHARSET_TO_BYTE2_TABLE): New macro.
3662         (XCHARSET_DECODING_TABLE): New macro.
3663         (XCHARSET_TO_BYTE1_TABLE): New macro.
3664         (XCHARSET_TO_BYTE2_TABLE): New macro.
3665         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3666         tables.
3667         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3668         don't use `ucs_to_*' tables.
3669
3670 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3671
3672         * text-coding.c (Fmake_coding_system): Don't set up
3673         `codesys->fixed.size'.
3674         (encode_coding_no_conversion): Use `if' instead of `switch'.
3675
3676         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3677
3678 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3679
3680         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3681         (Fmake_charset): Modify for `make_charset'.
3682         (Fmake_reverse_direction_charset): Likewise.
3683         (complex_vars_of_mule_charset): Likewise.
3684
3685 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3686
3687         * text-coding.c (char_encode_shift_jis): Use table
3688         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3689
3690 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3691
3692         * text-coding.c (text_encode_generic): Use `if' instead of
3693         `switch'.
3694         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3695         decode JIS-Latin.
3696
3697 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3698
3699         * text-coding.c (encode_coding_sjis): Deleted.
3700         (char_encode_shift_jis): New function.
3701         (char_finish_shift_jis): New function.
3702         (reset_encoding_stream): Set up `encode_char' and `finish' for
3703         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3704         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3705         (char_encode_utf8): Treat `eol_type'.
3706
3707 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3708
3709         * file-coding.c (decode_coding_iso2022): Use
3710         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3711
3712 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3713
3714         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3715         to 0.7 (Hirano).
3716
3717 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3718
3719         * char-lb.h (CHAR_COLUMNS): New macro.
3720
3721 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3722
3723         * text-coding.c (char_encode_ucs4): New function.
3724         (char_finish_ucs4): New function.
3725         (encode_coding_ucs4): Deleted.
3726         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3727         (text_encode_generic): Delete local variable `charset' and `half'.
3728         (ucs_to_mule_table): Deleted.
3729         (mule_to_ucs_table): Deleted.
3730         (Fset_ucs_char): Deleted.
3731         (ucs_to_char): Deleted.
3732         (Fucs_char): Deleted.
3733         (Fset_char_ucs): Deleted.
3734         (Fchar_ucs): Deleted.
3735         (decode_ucs4): Deleted.
3736         (mule_char_to_ucs4): Deleted.
3737         (encode_ucs4): Deleted.
3738         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3739         (decode_coding_utf8): Likewise.
3740         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3741         (char_encode_iso2022): Fixed.
3742         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3743         `Fset_char_ucs' and `Fchar_ucs'.
3744         (complex_vars_of_file_coding): Don't initialize
3745         `ucs_to_mule_table'.
3746
3747         * objects-tty.c (tty_initialize_font_instance): Don't use
3748         `XCHARSET_COLUMNS'.
3749
3750         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3751         UTF-2000.
3752
3753         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3754         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3755
3756         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3757         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3758         (emchar_string_displayed_columns): Likewise.
3759
3760         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3761         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3762         (string_column_at_point): Likewise.
3763         (Fmove_to_column): Likewise.
3764
3765         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3766         `encoding_table' and `decoding_table'.
3767         (CHARSET_REP_BYTES): Deleted.
3768         (XCHARSET_REP_BYTES): Deleted.
3769         (XCHARSET_COLUMNS): Deleted.
3770         (CHAR_COLUMNS): New macro.
3771         (lookup_composite_char): Deleted unconditionally.
3772         (composite_char_string): Likewise.
3773
3774 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3775
3776         * char-ucs.h (Emchar_to_byte_table): New type.
3777         (get_byte_from_character_table): New function interface.
3778         (Vcharset_latin_jisx0201): New variable.
3779         (latin_jisx0201_to_ucs): New variable.
3780         (ucs_to_latin_jisx0201): New variable.
3781         (Vcharset_latin_iso8859_2): New variable.
3782         (latin_iso8859_2_to_ucs): New variable.
3783         (ucs_to_latin_iso8859_2): New variable.
3784         (Vcharset_latin_iso8859_3): New variable.
3785         (latin_iso8859_3_to_ucs): New variable.
3786         (ucs_to_latin_iso8859_3): New variable.
3787         (Vcharset_latin_iso8859_4): New variable.
3788         (latin_iso8859_4_to_ucs): New variable.
3789         (ucs_to_latin_iso8859_4): New variable.
3790         (Vcharset_latin_iso8859_9): New variable.
3791         (latin_iso8859_9_to_ucs): New variable.
3792         (ucs_to_latin_iso8859_9): New variable.
3793         (Vcharset_latin_viscii_lower): New variable.
3794         (latin_viscii_lower_to_ucs): New variable.
3795         (ucs_to_latin_viscii_lower): New variable.
3796         (Vcharset_latin_viscii_upper): New variable.
3797         (latin_viscii_upper_to_ucs): New variable.
3798         (ucs_to_latin_viscii_upper): New variable.
3799         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3800         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3801         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3802         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3803         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3804         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3805         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3806         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3807         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3808         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3809
3810         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3811         (Vcharset_latin_viscii_upper): New variable.
3812         (make_byte_from_character_table): New function.
3813         (put_byte_from_character_table): New function.
3814         (get_byte_from_character_table): New function.
3815         (CHAR96): New macro.
3816         (ucs_to_latin_jisx0201): New variable.
3817         (latin_jisx0201_to_ucs): New variable.
3818         (ucs_to_latin_iso8859_2): New variable.
3819         (latin_iso8859_2_to_ucs): New variable.
3820         (ucs_to_latin_iso8859_3): New variable.
3821         (latin_iso8859_3_to_ucs): New variable.
3822         (ucs_to_latin_iso8859_4): New variable.
3823         (latin_iso8859_4_to_ucs): New variable.
3824         (ucs_to_latin_iso8859_9): New variable.
3825         (latin_iso8859_9_to_ucs): New variable.
3826         (ucs_to_latin_viscii_lower): New variable.
3827         (latin_viscii_lower_to_ucs): New variable.
3828         (ucs_to_latin_viscii_upper): New variable.
3829         (latin_viscii_upper_to_ucs): New variable.
3830         (ucs_to_latin_tcvn5712): New variable.
3831         (latin_tcvn5712_to_ucs): New variable.
3832         (Qlatin_viscii_lower): New variable.
3833         (Qlatin_viscii_upper): New variable.
3834         (syms_of_mule_charset): Set up new symbol
3835         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3836         (complex_vars_of_mule_charset): Set up new charset
3837         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3838         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3839         `ucs_to_<CHARSET>' tables.
3840
3841 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3842
3843         * text-coding.c: New file.
3844
3845 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3846
3847         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3848
3849         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3850         (MAKE_CHAR): Modify for `ucs-bmp'.
3851         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3852         non-MULE characters of BMP.
3853
3854 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3855
3856         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3857         to 0.6.
3858
3859 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3860
3861         * lstream.h:
3862         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3863         - Include character.h for `CHAR_ASCII_P'.
3864
3865         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3866
3867         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3868         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3869
3870         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3871         (BYTE_C0_P): Likewise.
3872         (BYTE_C1_P): Likewise.
3873         (Lstream_get_emchar_1): Likewise.
3874         (Lstream_fput_emchar): Likewise.
3875         (Lstream_funget_emchar): Likewise.
3876         (copy_internal_to_external): Likewise.
3877         (copy_external_to_internal): Likewise.
3878
3879         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3880         (BYTE_C0_P): Likewise.
3881         (BYTE_C1_P): Likewise.
3882         (Lstream_get_emchar_1): Likewise.
3883         (Lstream_fput_emchar): Likewise.
3884         (Lstream_funget_emchar): Likewise.
3885         (copy_internal_to_external): Likewise.
3886         (copy_external_to_internal): Likewise.
3887
3888         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3889         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3890
3891         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3892         (BYTE_ASCII_P): Moved to mb-1byte.h.
3893
3894 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3895
3896         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3897
3898         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3899         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3900         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3901         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3902         (VALIDATE_CHARPTR_FORWARD): Likewise.
3903         (simple_charptr_emchar): Moved to mb-multibyte.h.
3904         (simple_set_charptr_emchar): Likewise.
3905         (simple_charptr_copy_char): Likewise.
3906         (non_ascii_charptr_emchar): Likewise.
3907         (non_ascii_set_charptr_emchar): Likewise.
3908         (non_ascii_charptr_copy_char): Likewise.
3909         (charptr_emchar): Moved to mb-*byte.h.
3910         (set_charptr_emchar): Likewise.
3911         (charptr_copy_char): Likewise.
3912
3913         * mb-1byte.h, mb-multibyte.h: New files.
3914
3915 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3916
3917         * mb-utf-8.h (MULTIBYTE): New macro.
3918         (MAX_EMCHAR_LEN): Moved from buffer.h.
3919         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3920
3921         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3922
3923         * mb-lb.h, multibyte.h: New files.
3924
3925         * char-1byte.h (Charset_ID): Moved from buffer.h.
3926         (MIN_LEADING_BYTE): Likewise.
3927         (LEADING_BYTE_ASCII): Likewise.
3928         (NUM_LEADING_BYTES): Likewise.
3929         (CHARSETP): Likewise.
3930         (CHARSET_BY_LEADING_BYTE): Likewise.
3931         (XCHARSET_LEADING_BYTE): Likewise.
3932         (XCHARSET_GRAPHIC): Likewise.
3933         (XCHARSET_COLUMNS): Likewise.
3934         (XCHARSET_DIMENSION): Likewise.
3935         (CHAR_CHARSET): Likewise.
3936         (CHAR_LEADING_BYTE): Likewise.
3937         (BREAKUP_CHAR): Likewise.
3938         (Vcharset_ascii): Likewise.
3939
3940         * buffer.h: Include multibyte.h unconditionally.
3941         (VALID_CHARPTR_P): Moved to multibyte.h.
3942         (ASSERT_VALID_CHARPTR): Likewise.
3943         (REAL_INC_CHARPTR): Likewise.
3944         (REAL_INC_CHARBYTIND): Likewise.
3945         (REAL_DEC_CHARPTR): Likewise.
3946         (INC_CHARPTR): Likewise.
3947         (INC_CHARBYTIND): Likewise.
3948         (DEC_CHARPTR): Likewise.
3949         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3950         (VALIDATE_CHARPTR_FORWARD): Likewise.
3951         (charptr_n_addr): Likewise.
3952         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3953         (simple_charptr_emchar): Moved to multibyte.h.
3954         (simple_set_charptr_emchar): Likewise.
3955         (simple_charptr_copy_char): Likewise.
3956         (non_ascii_charptr_emchar): Likewise.
3957         (non_ascii_set_charptr_emchar): Likewise.
3958         (non_ascii_charptr_copy_char): Likewise.
3959         (charptr_emchar): Likewise.
3960         (set_charptr_emchar): Likewise.
3961         (charptr_copy_char): Likewise.
3962         (charptr_emchar_n): Likewise.
3963         (Charset_ID): Moved to char-1byte.h.
3964         (Vcharset_ascii): Likewise.
3965         (CHAR_CHARSET): Likewise.
3966         (CHAR_LEADING_BYTE): Likewise.
3967         (LEADING_BYTE_ASCII): Likewise.
3968         (NUM_LEADING_BYTES): Likewise.
3969         (MIN_LEADING_BYTE): Likewise.
3970         (CHARSETP): Likewise.
3971         (CHARSET_BY_LEADING_BYTE): Likewise.
3972         (XCHARSET_LEADING_BYTE): Likewise.
3973         (XCHARSET_GRAPHIC): Likewise.
3974         (XCHARSET_COLUMNS): Likewise.
3975         (XCHARSET_DIMENSION): Likewise.
3976         (BREAKUP_CHAR): Likewise.
3977
3978 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3979
3980         * character.h: Add document about interface for characters.
3981
3982         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3983         (MAKE_CHAR): Delete comment about
3984         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3985         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3986         (BREAKUP_CHAR): Modify name of arguments.
3987         (CHAR_CHARSET): Modify name of argument.
3988
3989         * buffer.h: Delete document about Emchar accessors.
3990
3991 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3992
3993         * character.h (CHAR_INTP): Moved from buffer.h
3994         (CHAR_OR_CHAR_INTP): Likewise.
3995         (XCHAR_OR_CHAR_INT): Likewise.
3996         (CHECK_CHAR_COERCE_INT): Likewise.
3997
3998         * buffer.h (CHAR_INTP): Moved to character.h
3999         (CHAR_OR_CHAR_INTP): Likewise.
4000         (XCHAR_OR_CHAR_INT): Likewise.
4001         (CHECK_CHAR_COERCE_INT): Likewise.
4002
4003 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4004
4005         * character.h:
4006         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4007         - Include char-1byte.h, char-lb.h or char-ucs.h.
4008
4009         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4010
4011         * buffer.h: Include character unconditionally.
4012         (valid_char_p): Moved to char-*.h.
4013         (non_ascii_valid_char_p): Moved to char-lb.h.
4014
4015         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4016
4017 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4018
4019         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4020         in UTF-2000 because it is not ported yet and not to use
4021         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4022         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4023         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4024
4025         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4026         (CHAR_ASCII_P): Moved from character.h.
4027
4028         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4029         (CHAR_ASCII_P): Likewise.
4030         (CHAR_FIELD1_MASK): Deleted.
4031         (CHAR_FIELD2_MASK): Deleted.
4032         (CHAR_FIELD3_MASK): Deleted.
4033         (MAX_CHAR_BASIC_LATIN): New macro.
4034         (CHAR_FIELD1): Deleted.
4035         (CHAR_FIELD2_INTERNAL): Deleted.
4036         (CHAR_FIELD3_INTERNAL): Deleted.
4037         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4038         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4039         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4040         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4041         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4042         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4043         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4044         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4045         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4046         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4047         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4048         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4049         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4050         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4051         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4052         (MIN_CHAR_COMPOSITION): Deleted.
4053         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4054         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4055
4056 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4057
4058         * buffer.h: Include mb-utf-8.h in UTF-2000.
4059
4060         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4061
4062         * mb-utf-8.h: New file.
4063
4064 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4065
4066         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4067         instead of `int'.
4068
4069         * mule-charset.h, buffer.h (Charset_ID): New type.
4070
4071 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4072
4073         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4074         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4075         instead of `MULE_CHAR_PRIVATE_OFFSET',
4076         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4077         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4078         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4079
4080         * character.h (Vcharset_japanese_jisx0212): New variable
4081         definition.
4082
4083 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4084
4085         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4086         (charset_by_attributes): Delete array about direction.
4087         (latin_a_char_to_charset): New variable in UTF-2000.
4088         (latin_a_char_to_byte1): New variable in UTF-2000.
4089         (latin_a_char_to_byte2): New variable in UTF-2000.
4090         (Qucs_bmp): New variable.
4091         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4092         `Bufbyte'.
4093         (next_allocated_2_byte_leading_byte): Likewise.
4094         (non_ascii_set_charptr_emchar): Likewise.
4095         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4096         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4097         `charset_by_attributes'.
4098         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4099         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4100         and `CHARSET_BY_LEADING_BYTE'.
4101         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4102         `utf-2000-version' to `vars_of_mule_charset'.
4103         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4104         define `leading-code-private-11' in UTF-2000; move setting of
4105         `utf-2000-version' from `syms_of_mule_charset'.
4106         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4107         UTF-2000.
4108
4109         * character.h (Charset_ID): New type.
4110         (LEADING_BYTE_UCS_BMP): New macro.
4111         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4112         (CHARSET_ID_OFFSET_94): New macro.
4113         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4114         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4115         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4116         final-byte.
4117         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4118         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4119         (CHARSET_ID_OFFSET_96): New macro.
4120         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4121         CHARSET_ID_OFFSET_96 and final-byte.
4122         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4123         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4124         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4125         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4126         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4127         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4128         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4129         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4130         (LEADING_BYTE_THAI_TIS620): Likewise.
4131         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4132         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4133         (CHARSET_ID_OFFSET_94x94): New macro.
4134         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4135         CHARSET_ID_OFFSET_94x94 and final-byte.
4136         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4137         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4138         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4139         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4140         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4141         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4142         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4143         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4144         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4145         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4146         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4147         (CHARSET_TYPE_128X128): New macro.
4148         (CHARSET_TYPE_256X256): New macro.
4149         (XCHARSET_PRIVATE_P): Delete unconditionally.
4150         (charset_by_attributes): Delete array about direction.
4151         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4152         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4153         (MIN_CHAR_94): New macro.
4154         (MAX_CHAR_94): New macro.
4155         (MIN_CHAR_96): New macro.
4156         (MAX_CHAR_96): New macro.
4157         (MIN_CHAR_94x94): New macro.
4158         (MAX_CHAR_94x94): New macro.
4159         (MIN_CHAR_96x96): New macro.
4160         (MAX_CHAR_96x96): New macro.
4161         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4162         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4163         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4164         - 32)'.
4165         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4166         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4167         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4168         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4169         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4170         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4171         `XCHARSET_LEADING_BYTE' to make code-point.
4172         (latin_a_char_to_charset): New variable.
4173         (latin_a_char_to_byte1): New variable.
4174         (latin_a_char_to_byte2): New variable.
4175         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4176         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4177         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4178
4179         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4180         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4181         (find_charsets_in_emchar_string): Likewise.
4182         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4183
4184         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4185         `int'.
4186         (decode_coding_iso2022): Likewise.
4187
4188         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4189         of `unsigned char'.
4190
4191         * redisplay.c (redisplay_text_width_emchar_string): Use
4192         `Charset_ID' instead of `unsigned char'.
4193         (redisplay_frame_text_width_string): Likewise.
4194
4195         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4196         `unsigned char'.
4197
4198         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4199         instead of `unsigned char'.
4200         (face_cachel_charset_font_metric_info): Likewise.
4201
4202         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4203         (get_non_ascii_char_table_value): Likewise.
4204         (get_char_table): Likewise.
4205         (put_char_table): Likewise.
4206         (map_over_other_charset): Likewise.
4207         (map_char_table): Likewise.
4208
4209         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4210         instead of `unsigned char'.
4211
4212 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4213
4214         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4215         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4216
4217         * mule-charset.c (leading_code_private_11): Don't define in
4218         UTF-2000.
4219
4220         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4221         in UTF-2000 because it is not ported yet and not to use
4222         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4223
4224 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4225
4226         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4227
4228 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4229
4230         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4231         in UTF-2000.
4232
4233         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4234         of unsigned char to store leading-byte.
4235
4236         * chartab.c (get_non_ascii_char_table_value): Don't use
4237         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4238
4239         * file-coding.c (encode_coding_big5): Delete bogus implementation
4240         in UTF2000.
4241
4242         * character.h (LEADING_BYTE_*): Delete definition for
4243         non-UTF-2000.
4244         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
4245         (LEADING_BYTE_PREFIX_P): Deleted.
4246         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
4247         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
4248         (BUFBYTE_LEADING_BYTE_P): Deleted.
4249         (CHARSET_PRIVATE_P): Deleted unconditionally.
4250         (rep_bytes_by_first_byte): Deleted unconditionally.
4251         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
4252         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
4253         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4254         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
4255         (CHAR_FIELD2): Deleted.
4256         (CHAR_FIELD3): Deleted.
4257         (MAKE_CHAR): Delete definition for non-UTF-2000.
4258         (BREAKUP_CHAR_1_UNSAFE): Deleted.
4259         (breakup_char_1): New implementation.
4260         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
4261         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
4262
4263 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4264
4265         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
4266         condition.
4267
4268 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4269
4270         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
4271         (CHARSET_PRIVATE_P): Likewise.
4272         (XCHARSET_PRIVATE_P): Likewise.
4273         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
4274
4275         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
4276         UTF2000.
4277         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
4278
4279 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4280
4281         * character.h (LEADING_BYTE_*): Changed in UTF2000.
4282         (NUM_LEADING_BYTES): Changed from 128 to 256.
4283         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4284         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
4285         UTF2000.
4286         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
4287
4288         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
4289         UTF2000.
4290         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
4291         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
4292         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
4293         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
4294         (Qchinese_cns11643_3): New variable in UTF2000.
4295         (Qchinese_cns11643_4): New variable in UTF2000.
4296         (Qchinese_cns11643_5): New variable in UTF2000.
4297         (Qchinese_cns11643_6): New variable in UTF2000.
4298         (Qchinese_cns11643_7): New variable in UTF2000.
4299         (syms_of_mule_charset): Define `chinese-cns11643-3',
4300         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4301         and `chinese-cns11643-7' in UTF2000.
4302         (vars_of_mule_charset): Initialize
4303         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
4304         + 1 in UTF2000.
4305         (complex_vars_of_mule_charset): Setup charset
4306         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
4307         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
4308
4309 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4310
4311         * mule-charset.c: Move setting for `leading-code-private-11' from
4312         `syms_of_mule_charset' to `vars_of_mule_charset'.
4313
4314 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4315
4316         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
4317         and `NUM_LEADING_BYTES' in assert.
4318
4319 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4320
4321         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
4322         instead of 128.
4323         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
4324         `NUM_LEADING_BYTES' instead of 128.
4325
4326 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4327
4328         * mule-charset.h (charset_by_leading_byte): Use
4329         `NUM_LEADING_BYTES' instead of 128.
4330         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
4331
4332         * mule-charset.c (charset_by_leading_byte): Use
4333         `NUM_LEADING_BYTES' instead of 128.
4334         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
4335
4336         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
4337         128.
4338
4339 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4340
4341         * mule-charset.c (syms_of_mule_charset): Update to
4342         0.4 (Shin-Imamiya).
4343
4344 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4345
4346         * file-coding.c (encode_coding_sjis): New implementation for
4347         UTF2000.  (decode_coding_sjis): Ditto.
4348
4349 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4350
4351         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
4352         Don't define in UTF2000.
4353
4354         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
4355         defined.
4356
4357         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4358         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
4359         MULE.
4360
4361 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4362
4363         * config.h.in (CHAR_IS_UCS4): New macro.
4364
4365         * mule-charset.c (rep_bytes_by_first_byte): Modify for
4366         conventional MULE representation.
4367         (syms_of_mule_charset): Update to 0.3 (Imamiya).
4368
4369         * mule-charset.h: Reverted to original.
4370
4371         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
4372         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
4373         "mule-charset.h" if CHAR_IS_UCS4 is defined.
4374
4375         * character.h: New file.
4376
4377         * file-coding.c (Fmake_coding_system): Set 1 to
4378         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4379         defined.
4380         (encode_coding_no_conversion): New implementation for UTF2000.
4381
4382         * file-coding.h (struct Lisp_Coding_System): Add new member
4383         `fixed.size'.
4384
4385 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
4386
4387         * file-coding.c (decode_coding_iso2022): Code-point arguments of
4388         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4389         (encode_coding_iso2022): New implementation for UTF2000.
4390
4391 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4392
4393         * mule-canna.c (c2mu): New implementation for UTF2000.
4394         (m2c): Likewise.
4395
4396 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4397
4398         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4399
4400 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4401
4402         * file-coding.c (reset_encoding_stream): Set 0 to
4403         `str->iso2022.current_char_boundary' in UTF2000.
4404         (encode_utf8): Don't define in UTF2000.
4405         (encode_coding_utf8): New implementation for UTF-8 representation
4406         of UTF2000.
4407         (complex_vars_of_file_coding): Define coding-system `utf-8'.
4408
4409 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4410
4411         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4412
4413         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4414         UTF2000.
4415         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4416
4417         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4418
4419         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4420         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4421         as UTF-8 in UTF2000.
4422         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4423         (non_ascii_valid_char_p): Don't define in UTF2000.
4424         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4425         (Lstream_get_emchar_1): Likewise.
4426         (utf-2000-version): New variable in UTF2000.
4427
4428         * lread.c (read_escape): Add new reader `u'.
4429
4430         * insdel.c (three_to_one_table): Don't define in UTF2000.
4431         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4432         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4433         UTF2000.
4434         (bytind_to_bufpos_func): Likewise.
4435         (buffer_mule_signal_inserted_region): Likewise.
4436         (vars_of_insdel): Don't initialize `three_to_one_table'.
4437         (init_buffer_text): Use `buf->text->mule_size' instead of
4438         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4439         UTF2000.
4440
4441         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4442         UTF-8 representation in UTF2000.
4443         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4444         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4445         (decode_coding_iso2022): Don't define local variable `lb' in
4446         UTF2000; don't use LEADING_BYTE in UTF2000; use
4447         `DECODE_ADD_UCS_CHAR' in UTF2000.
4448         (convert_to_external_format): Decode as UTF-8 in UTF2000.
4449
4450         * config.h.in (UTF2000): New macro.
4451
4452         * buffer.h (struct buffer_text): Add new member `mule_size' and
4453         don't add `mule_shifter' and `mule_three_p' in UTF2000.
4454         (valid_char_p): Return always 1 in UTF2000.
4455         (MAX_EMCHAR_LEN): 6 in UTF2000.
4456         (three_to_one_table): Don't define in UTF2000.
4457         (real_bufpos_to_bytind): Modify for UTF-8 representation in
4458         UTF2000.
4459         (real_bytind_to_bufpos): Likewise.
4460
4461         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4462
4463 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4464
4465         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4466         representation change.
4467         (Vutf_2000_version): New variable.
4468         (leading_code_private_11): New variable.
4469         (syms_of_mule_charset): Add new variables `utf-2000-version' and
4470         `leading-code-private-11'.
4471
4472         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4473         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4474         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4475         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4476         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4477         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4478         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4479         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4480         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4481         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4482         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4483         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4484         (MIN_CHAR_GREEK): New macro.
4485         (MAX_CHAR_GREEK): New macro.
4486         (MIN_CHAR_CYRILLIC): New macro.
4487         (MAX_CHAR_CYRILLIC): New macro.
4488         (MIN_CHAR_HEBREW): New macro.
4489         (MAX_CHAR_HEBREW): New macro.
4490         (MIN_CHAR_THAI): New macro.
4491         (MAX_CHAR_THAI): New macro.
4492         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4493         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4494         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4495         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4496         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4497         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4498         (CHAR_FIELD2): New inline function.
4499         (CHAR_FIELD3): New inline function.
4500         (MULE_CHAR_PRIVATE_OFFSET): New macro.
4501         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4502         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4503         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4504         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4505         (MIN_CHAR_COMPOSITION): Likewise.
4506         (CHAR_LEADING_BYTE): Modified for character representation change.
4507         (MAKE_CHAR): Likewise.
4508
4509         * lisp.h (Vcharset_latin_iso8859_1): New variable.
4510         (Vcharset_greek_iso8859_7): Likewise.
4511         (Vcharset_cyrillic_iso8859_5): Likewise.
4512         (Vcharset_hebrew_iso8859_8): Likewise.
4513         (Vcharset_thai_tis620): Likewise.
4514         (Vcharset_katakana_jisx0201): Likewise.
4515
4516 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
4517
4518         * XEmacs 21.4.10 "Military Intelligence" is released.
4519
4520 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
4521
4522         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
4523         using the NAS private array SoundFileInfo that no longer exists in
4524         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
4525         and earlier.  This is broken for some versions between 1.5a and
4526         1.5f.
4527
4528 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
4529
4530         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
4531
4532         * emacs.c (shut_down_emacs): Improve crash message.
4533
4534 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
4535
4536         * file-coding.c (determine_real_coding_system): Check for coding
4537         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
4538         shebangs and Python PEP 263.
4539
4540 2002-10-08  Andy Piper  <andy@xemacs.org>
4541
4542         * glyphs-widget.c (layout_query_geometry): only resize dynamically
4543         if static sizes haven't been set.
4544
4545 2002-08-30  Mike Alexander  <mta@arbortext.com>
4546
4547         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
4548         to close a socket.
4549
4550 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
4551
4552         * callproc.c (child_setup): 21.4 doesn't have retry_close.
4553
4554 2002-09-20  Mike Sperber <mike@xemacs.org>
4555
4556         (This partially gets back my patch from 2002-07-20 without the
4557         bug.)
4558         * callproc.c (child_setup): Remove Ben's comment noting confusion
4559         over the file descriptors >= 3: close_process_descs() doesn't
4560         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
4561         * process-unix.c (unix_create_process): Call
4562         begin_dont_check_for_quit to inhibit unwanted interaction (and
4563         thus breaking of X event synchronicity) in the child.
4564
4565 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
4566
4567         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
4568         widget.
4569
4570 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
4571
4572         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
4573         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
4574         the xemacs process did not exit, but looped infinitely here.  This
4575         fixes that problem.
4576
4577 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
4578
4579         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
4580         (find_context): Improve comments.
4581
4582         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
4583         (re_match_2): An XCHAR_TABLE operation was missing.
4584
4585         Many of the following changes were inspired by Andy Piper's (now
4586         obsolete) patch to make syntax-table text property lookup optional.
4587
4588         [Documentation]
4589
4590         * syntax.h (top level): Document semantics of syntax flags.
4591         * syntax.c (comstr_start, Fforward_comment): Improve comments.
4592         * syntax.c, syntax.h (top level): Document syntax cache better in
4593         comments.
4594
4595         [Instrument syntax caching (temporary change)]
4596
4597         * syntax.h (enum syntax_cache_statistics_functions, struct
4598         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
4599         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
4600         * syntax.c (scan_words, Fforward_comment, scan_lists,
4601         Fbackward_prefix_characters):
4602         * font-lock.c (find_context):
4603         Use them to instrument syntax caching. 
4604         * syntax.c (struct syntax_cache_statistics, scs_statistics,
4605         syntax_cache_statistics_function_names): New type and variables.
4606         * syntax.c (update_syntax_cache): Update and report statistics.
4607
4608         [Major syntax cache optimizations]
4609
4610         syntax.c (lookup_syntax_properties): Default off.
4611
4612         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
4613         * syntax.c (update_syntax_cache):
4614         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
4615
4616         [Minor syntax cache optimizations and code clarifications]
4617
4618         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
4619         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
4620         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
4621         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
4622         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
4623         (Code clarification.)
4624
4625         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
4626         scan_lists): Compute code from syncode, use Boolean macros instead
4627         of redundant masking operations.  (Code clarification; any decent
4628         compiler can do this optimization.)
4629
4630         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
4631         for clarity.
4632
4633         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
4634         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
4635         use F*_single_property_change instead of F*_extent_change.
4636         Currently F*_single_property_change is _much_ less efficient.
4637
4638         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
4639         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
4640         syntax_cache.object properly, don't leave Qt or Qnil.
4641         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
4642         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
4643         tests for Qt or Qnil.
4644
4645 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
4646
4647         * redisplay.c (point_in_line_start_cache): 
4648         * extents.c (print_extent_1):
4649         Fix warnings.
4650
4651         * extents.c (Fset_extent_property): Document `syntax-table' property.
4652
4653         * extents.h (Fnext_single_property_change): EXFUN it.
4654
4655 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4656
4657         * search.c (clear_unused_search_regs): New static function.
4658         (search_buffer): 
4659         (simple_search): 
4660         (boyer_moore):
4661         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
4662         Minor clarifications in comments.
4663
4664         * regex.c (re_match_2_internal): Ensure no stale submatches.
4665
4666 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
4667
4668         * event-Xt.c (enqueue_focus_event): Add missing prototype.
4669
4670 2002-08-29  Jerry James  <james@xemacs.org>
4671
4672         * lisp.h: structrures -> structures.
4673
4674 2002-06-03  Andy Piper  <andy@xemacs.org>
4675
4676         * frame.c (frame_conversion_internal): add conversion appropriate
4677         for setting frame dimensions in pixels.
4678
4679         * console.h (struct console_methods): add device-specific widget
4680         layout functions.
4681
4682         * emacs.c (main_1): initialize glyph vars.
4683
4684         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
4685         (handle_focus_event_2): new function. Allow focus to
4686         be set to a particular window and widget.
4687         (enqueue_focus_event): new function. Create a
4688         synthetic focus event.
4689         (emacs_Xt_handle_magic_event): call
4690         handle_focus_event_2.
4691
4692         * frame.c (Fset_frame_pixel_height): new function. Allow
4693         pixel-based sizing. Does the right thing on character-oriented
4694         displays.
4695         (Fset_frame_pixel_width): ditto.
4696         (Fset_frame_pixel_size): ditto.
4697         (syms_of_frame): declare.
4698
4699         * general-slots.h: add :vertically-justify and
4700         :horizontally-justify.
4701
4702         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
4703         (mswindows_widget_border_width): new function.
4704         (mswindows_combo_box_instantiate): set border widths.
4705         (console_type_create_glyphs_mswindows): declare.
4706
4707         * glyphs-widget.c:
4708         (check_valid_justification): allow vertical and horizontal
4709         justification.
4710         (widget_border_width): new function. Call device methods.
4711         (widget_instance_border_width): ditto.
4712         (logical_unit_height): new function. Determine the height of a
4713         logical-unit. Logical units are intended to provide grid-like
4714         layout for subcontrols in a layout. If the layout is
4715         :vertically-justify top then subcontrols will be positioned on
4716         logical-unit boundaries, thus allowing adjacent subcontrols to
4717         line up.
4718         (widget_logical_unit_height): ditto for widgets.
4719         (redisplay_widget): misc cleanup.
4720         (widget_spacing): new function. Call device specific
4721         methods. Intended to be the default gap between adjacent widgets.
4722         (widget_query_geometry): use new spacing functions to determine
4723         appropriate geometry.
4724         (initialize_widget_image_instance): initialize horizontal and
4725         vertical justification.
4726         (widget_instantiate): use logica-units where appropriate for
4727         sizing large widgets.
4728         (button_query_geometry): use widget_instance_border_width.
4729         (tree_view_query_geometry): ditto.
4730         (tab_control_query_geometry): ditto.
4731         (edit_field_query_geometry): new function.
4732         (layout_update): pick up :justify, :horizontally-justify and
4733         :vertically-justify none of which worked previously. :justify is
4734         used as a fallback for both horizontal and vertical justification.
4735         (layout_query_geometry): use logical units to size appropriately.
4736         (layout_layout): ditto.
4737         (Fwidget_logical_to_character_width): new function. Allow users to
4738         convert from logical units to characters so that frame sizes can
4739         be set appropriately.
4740         (Fwidget_logical_to_character_height): ditto.
4741         (syms_of_glyphs_widget): declare.
4742         (image_instantiator_edit_fields): add edit_field_query_geometry.
4743         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
4744         :horizontally-justify.
4745         (specifier_vars_of_glyphs_widget): new function. Declare
4746         Vwidget_border_width which is not yet used.
4747
4748         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
4749         (x_widget_border_width): new function.
4750         (x_widget_instantiate): create a sensible name for widgets.
4751         (console_type_create_glyphs_x): declare x_widget_border_width.
4752
4753         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
4754         (struct Lisp_Image_Instance): add :vertically-justify and
4755         :horizontally-justify.
4756         (LAYOUT_JUSTIFY_TOP): new.
4757         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
4758         (ROUND_UP): new macro. Round argument up to next integral
4759         interval.
4760
4761         * redisplay-output.c (redisplay_output_layout): misc formatting.
4762
4763         * symsinit.h: declare specifier_vars_of_glyphs_widget.
4764
4765 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
4766
4767         * XEmacs 21.4.9 "Informed Management" is released.
4768
4769 2002-08-19  Andy Piper  <andy@xemacs.org>
4770
4771         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
4772         win32 format.
4773
4774         * realpath.c (xrealpath): normalize drive spec also so that dir
4775         sep chars are not mixed on cygwin.
4776
4777 2002-08-06  Jerry James  <james@xemacs.org>
4778
4779         * window.c (Fsplit_window): Count only half of the divider width
4780         against the left window when splitting horizontally. 
4781
4782 2002-06-24  Andy Piper  <andy@xemacs.org>
4783
4784         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
4785         toolbar was cleared.
4786
4787         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
4788         function. Split out from mswindows_output_frame_toolbars.
4789         (mswindows_output_frame_toolbars): move clear pieces to
4790         mswindows_output_frame_toolbars.
4791
4792         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
4793         out from gtk_output_frame_toolbars.
4794         (gtk_output_frame_toolbars): move clear pieces to
4795         gtk_clear_frame_toolbars.
4796
4797         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
4798         the frame is cleared. How this ever worked before is a mystery.
4799         (x_output_frame_toolbars): Only output toolbars.
4800         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
4801
4802         * gutter.c (update_gutter_geometry):
4803         Mark frame layout changed.
4804         (update_frame_gutter_geometry, update_frame_gutters):
4805         Respect frame_layout_changed.
4806
4807         * console.h (struct console_methods): add
4808         clear_frame_toolbars_method.
4809
4810         * redisplay.c (redisplay_frame): call
4811         update_frame_toolbars_geometry and re-order update_frame_toolbars.
4812
4813         * toolbar.h: declare update_frame_toolbars_geometry.
4814
4815         * toolbar.c (update_frame_toolbars_geometry): new function. Split
4816         out from update_frame_toolbars.  Call clear_frame_toolbars.
4817         (update_frame_toolbars): only output, do not change geometry.
4818
4819         * redisplay.c: add frame_layout_changed.
4820
4821         * redisplay.h: add frame_layout_changed.
4822         (CLASS_RESET_CHANGED_FLAGS): set it.
4823         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
4824         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
4825         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
4826
4827         * device.h (struct device): add frame_layout_changed.
4828         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
4829
4830         * frame.h (struct frame): add frame_layout_changed.
4831         (MARK_FRAME_LAYOUT_CHANGED): new.
4832
4833 2002-06-30  Mike Alexander  <mta@arbortext.com>
4834
4835         * event-msw.c (mswindows_need_event): Don't wait for a new message
4836         if the queue is not empty.  Suggested by Paul Moore.
4837
4838 2002-06-12  Andy Piper  <andy@xemacs.org>
4839
4840         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
4841         for printing on accurately.
4842
4843 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
4844
4845         * event-msw.c (mswindows_wnd_proc): Add a handler for the
4846         WM_ACTIVATE message. Make sure that the frame is visible if the
4847         window is visible. This seemss to fix the problem where XEmacs
4848         appears to freeze after switching desktops with certain virtual
4849         window managers.
4850         (debug_output_mswin_message): Added code to output message
4851         parameters for WM_WINDOWPOSCHANGED, 
4852         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
4853
4854 2002-05-25  Andy Piper  <andy@xemacs.org>
4855
4856         * select-x.c (vars_of_select_x): Fix docstring of
4857         x-selection-strict-motif-ownership
4858
4859 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4860
4861         * keymap.c (get_keymap):
4862         Add comment about do_autoload GCPROs own args.
4863
4864 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4865
4866         * bytecode.c (execute_optimized_program): check_opcode ifdef
4867         ERROR_CHECK_BYTE_CODE.
4868
4869 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
4870
4871         Thanks to Ben Wing and Michael Sperber.
4872
4873         * eval.c (Fcommand_execute):
4874         (Feval):
4875         (Ffuncall):
4876         (Fmacroexpand_internal):
4877         (function_argcount):
4878         callint.c (Fcall_interactively):
4879         Add comment about do_autoload GCPROs own args.
4880
4881         * (do_autoload): GCPRO both args as well as local Lisp_Object.
4882
4883         * eval.c (Ffuncall): Extra braces to placate GCC.
4884
4885 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
4886
4887         * backtrace.h (grow_specpdl):
4888         (SPECPDL_RESERVE):
4889         * EmacsFrame.c (EmacsFrameSetValues):
4890         * eval.c (grow_specpdl):
4891         * ExternalShell.c (hack_event_masks_1):
4892         * glyphs-x.c (convert_EImage_to_XImage): 
4893         (x_finalize_image_instance):
4894         * ralloc.c (page_size):
4895         (r_alloc_sbrk):
4896         * xgccache.c (gc_cache_hash):
4897         Fix unsigned comparison warnings.
4898
4899 2002-07-29  Jerry James  <james@xemacs.org>
4900
4901         * lread.c (locate_file): Any nonnegative return value indicates
4902         success if MODE is nonnegative.
4903
4904 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
4905
4906         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
4907         argument. 
4908
4909 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
4910
4911         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
4912
4913         * dumper.c (pdump_get_indirect_count):
4914         (pdump_scan_by_alignment):
4915         (pdump_dump_root_struct_ptrs):
4916         (pdump_dump_rtables):
4917         (pdump_dump_root_objects):
4918         (pdump):
4919         * nas.c (WaveOpenDataForReading):
4920         * fns.c (print_bit_vector):
4921         * font-lock.c (SINGLE_SYNTAX_STYLE):
4922         * glyphs.c (check_for_ignored_expose):
4923         (find_matching_subwindow):
4924         * glyphs-eimage.c:
4925         * imgproc.c (get_histogram):
4926         * redisplay.c (point_in_line_start_cache):
4927         * redisplay-output.c (redisplay_unmap_subwindows):
4928         * symbols.c (defsymbol_massage_name_1):
4929         (defkeyword_massage_name):
4930         (deferror_massage_name_and_message):
4931         * redisplay-x.c (x_output_string): 
4932         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
4933         * frame.h (struct frame):
4934         * filelock.c (current_lock_owner):
4935         * doprnt.c (emacs_doprnt_1):
4936         * lisp.h (struct Lisp_Bit_Vector):
4937         (DO_REALLOC):
4938         Fix warnings.
4939
4940 2002-02-13  Ben Wing  <ben@xemacs.org>
4941
4942         * event-stream.c (reset_key_echo):
4943         * event-stream.c (reset_this_command_keys):
4944         * event-stream.c (execute_command_event):
4945         If console is dead as a result of C-x 5 0, then post-command stuff
4946         needs to be careful and do only non-console-specific stuff.
4947
4948 2002-07-01  Mike Sperber <mike@xemacs.org>
4949
4950         * process-unix.c (unix_send_process): Mark coding_outstream as
4951         non-open upon SIGPIPE.
4952
4953         * event-stream.c (Fnext_event): Reorder switch cases to something
4954         that makes sense.
4955
4956 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
4957
4958         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
4959         Don't bogusly reinitialize ascii_character property.
4960
4961 2002-07-08  Mike Sperber <mike@xemacs.org>
4962
4963         * process.c (Fstart_process_internal): Do error checking before we
4964         fork off the child, so the child can't muck with the state of the
4965         parent.
4966
4967 2002-07-08  Mike Sperber <mike@xemacs.org>
4968
4969         * ralloc.c (init_ralloc): Allocate properly for pdump.
4970
4971 2002-06-12  Andy Piper  <andy@xemacs.org>
4972
4973         * glyphs.c (query_string_geometry): check the string.
4974
4975         * glyphs-widget.c (widget_logical_unit_height): cope with nil
4976         widget names.
4977
4978 2002-06-17  Jerry James  <james@xemacs.org>
4979
4980         * sysdll.c: Remove RTLD_GLOBAL initialization.
4981         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
4982
4983 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
4984
4985         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
4986
4987 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
4988
4989         * sysdep.c (sys_rename): Make sys_rename work for the case where
4990         Windows rename sets errno to EACCES if target file exists.
4991
4992 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
4993
4994         * device-msw.c (mswindows_handle_page_setup_dialog_box):
4995         Fix detection of metric units to work on Win95
4996
4997 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
4998
4999         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
5000
5001 2002-04-25  Andy Piper  <andy@xemacs.org>
5002
5003         * redisplay.c (create_text_block): Remove extra comment trailer.
5004
5005 2002-04-24  Andy Piper  <andy@xemacs.org>
5006
5007         * redisplay.c (create_text_block): Don't actually add propagation
5008         data if the line ends after we have added a glyph.
5009
5010 2002-04-22  Andy Piper  <andy@xemacs.org>
5011
5012         * extents.c (extent_fragment_update): check for glyphs we have
5013         previously displayed.
5014         * extents.c (print_extent_1): warning removal.
5015         * extents.h: change prototype.
5016         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
5017         widths correctly for wide glyphs.
5018         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
5019         * redisplay.c (prop_type): add PROP_GLYPH.
5020         * redisplay.c (struct prop_block): add glyph type
5021         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
5022         to the propagation data.
5023         * redisplay.c (create_text_block): if there is a glyph in the
5024         propagation data use it to salt extent_fragment_update.
5025         * redisplay.c (create_string_text_block): ditto.
5026
5027 2002-04-13  Nix  <nix@esperi.demon.co.uk>
5028
5029         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
5030         * redisplay-output.c (compare_runes): Compare them.
5031         * redisplay.c: Update copyright date.
5032         * redisplay.c (pos_data): Add need_baseline_computation field.
5033         * redisplay.c (add_glyph_rune): Update ascent, descent, and
5034         need_baseline_computation; zero yoffset. Set max_pixmap_height
5035         for all pixmaps, not just automatically positioned ones.
5036         * redisplay.c (calculate_yoffset): New, compute yoffset values.
5037         * redisplay.c (calculate_baseline): New, compute textual baseline.
5038         * redisplay.c (add_glyph_rune): Call them.
5039         * redisplay.c (create_text_block): Likewise.
5040         * redisplay.c (create_overlay_glyph_block): Likewise.
5041         * redisplay.c (add_margin_runes): Likewise.
5042         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
5043
5044         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
5045         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
5046         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
5047         * redisplay-msw.c (mswindows_output_string): Likewise.
5048         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
5049         * redisplay-gtk.c (gtk_output_display_block): Likewise.
5050         * redisplay-x.c (x_output_display_block): Likewise.
5051
5052 2002-03-28  Ben Wing  <ben@xemacs.org>
5053
5054         * redisplay.c: Fixed bug in redisplay
5055         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
5056         and down of the lines, since they're bigger than the line
5057         size. (It was seen most obviously when there's a horizontal scroll
5058         bar, e.g. do C-h a glyph or something like that.) The problem was
5059         that the glyph-contrib-p setting on glyphs was ignored even if it
5060         was set properly, which it wasn't until now.
5061
5062 2002-04-24  Andy Piper  <andy@xemacs.org>
5063
5064         * lisp.h (Dynarr_end): Fix definition.
5065
5066 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
5067
5068         * redisplay.c (mark_redisplay): Remove call to
5069         update_frame_window_mirror.
5070
5071 2001-11-15  Andy Piper  <andy@xemacs.org>
5072
5073         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
5074         cygwin (again).
5075
5076 2002-02-13  Andy Piper  <andy@xemacs.org>
5077
5078         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
5079         we did in fact enqueue the XM_MAPFRAME event.
5080
5081 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
5082
5083         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
5084         to fix problem switching between virtual desktops under virtuawin
5085         virtual window manager.
5086
5087 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
5088
5089         * event-msw.c: Typo fix.
5090         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
5091         magic XM_MAPFRAME event has been sent.
5092
5093 2001-11-23  Andy Piper  <andy@xemacs.org>
5094
5095         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
5096
5097 2001-11-21  Andy Piper  <andy@xemacs.org>
5098
5099         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
5100         mouse events outside the frame.
5101
5102 2002-03-20  Andy Piper  <andy@xemacs.org>
5103
5104         * menubar-msw.c (mswindows_popup_menu): warning removal.
5105         * dialog-msw.c (dialog_popped_down): ditto.
5106
5107 2001-12-11  Andy Piper  <andy@xemacs.org>
5108
5109         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
5110         * dialog-msw.c (mswindows_make_dialog_box_internal): set
5111         popup_up_p.
5112         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
5113         * menubar-msw.c (mswindows_handle_wm_command): ditto.
5114         * menubar-msw.c (mswindows_popup_menu): ditto.
5115
5116 2001-10-29  Andy Piper  <andy@xemacs.org>
5117
5118         * dialog-msw.c (handle_directory_dialog_box): quit if the user
5119         cancels.
5120
5121 2002-01-03  Andy Piper  <andy@xemacs.org>
5122
5123         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
5124         letters.
5125         (xrealpath): ditto.
5126
5127 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
5128
5129         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
5130         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
5131         * device-msw.c (mswindows_handle_page_setup_dialog_box):
5132         Detect and handle case where machine is set up for metric units
5133
5134 2002-04-02  Andy Piper  <andy@xemacs.org>
5135
5136         * dired-msw.c (mswindows_get_files): 
5137         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
5138         completely handled by XEmacs. Suggested by Thomas Vogler
5139         <mail@thomas-vogler.de>.
5140
5141 2001-11-14  Andy Piper  <andy@xemacs.org>
5142
5143         * nt.c (REG_ROOT): change registry key to XEmacs.
5144
5145 2002-04-27  Andy Piper  <andy@xemacs.org>
5146
5147         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
5148
5149 2002-04-26  Andy Piper  <andy@xemacs.org>
5150
5151         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
5152         behavior.
5153
5154 2002-03-14  Mike Alexander  <mta@arbortext.com>
5155
5156         * event-msw.c (mswindows_unwait_process): New, remove process from
5157         wait list
5158         * process-nt.c (nt_finalize_process_data): Call
5159         mswindows_unwait_process
5160         * console-msw.h: Declare mswindows_unwait_process
5161
5162 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
5163
5164         * editfns.c (Fdecode_time):
5165         (Fformat_time_string):
5166         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
5167         (make_time): Warning elimination (change arg name).
5168
5169 2001-11-24  Andy Piper  <andy@xemacs.org>
5170
5171         * window.c (Fsplit_window): Doc return type.
5172
5173 2002-04-01  Andy Piper  <andy@xemacs.org>
5174
5175         * emacs.c (Fkill_emacs): Only output message box in interactive
5176         mode.
5177
5178 2002-04-26  Andy Piper  <andy@xemacs.org>
5179  
5180         * config.h.in: pull in 21.5.x change to stop alloca warnings under
5181         cygwin.
5182
5183 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
5184
5185         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
5186         bit platform.
5187
5188 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
5189
5190         * XEmacs 21.4.8 "Honest Recruiter" is released.
5191
5192 2002-05-07  Nix  <nix@esperi.demon.co.uk>
5193
5194         Supersedes 2002-04-17 patch.
5195
5196         * process.h (PROCESS_LIVE_P): Use the process status as
5197         evidence of health, not the state of the input stream.
5198         (PROCESS_READABLE_P): Say if the process is readable
5199         from. (It may be dead nonetheless.)
5200         (CHECK_READABLE_PROCESS): Test for that condition.
5201
5202         * process.c (create_process): Use PROCESS_READABLE_P.
5203         (read_process_output, set_process_filter): Likewise.
5204
5205         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
5206         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
5207
5208         This code is #if 0'd, this is not the time to add new functions:
5209
5210         * process.c (Fprocess_readable_p): Report readability status.
5211         * process.c (Qprocess_readable_p): New, associated symbol...
5212         * process.c (syms_of_process): ... initialize it.
5213
5214 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
5215
5216         * XEmacs 21.4.7 "Economic Science" is released.
5217
5218 2002-04-17  Nix  <nix@esperi.demon.co.uk>
5219
5220         * process.h (PROCESS_LIVE_P): Use the process status as
5221         evidence of health, not the state of the input stream.
5222
5223 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
5224
5225         * sysdep.c (sys_siglist): change "signum" to "signal"
5226
5227 2001-04-21  Martin Buchholz  <martin@xemacs.org>
5228
5229         * s/darwin.h: New file.
5230         Thanks to Greg Parker <gparker@cs.stanford.edu>.
5231         
5232 2002-04-23  Andreas Jaeger  <aj@suse.de>
5233
5234         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
5235         which use lib64 for 64-bit libs.
5236         (START_FILES): Likewise.
5237
5238 2002-02-11  Mike Sperber  <mike@xemacs.org>
5239
5240         * device-x.c: 
5241         (x_IO_error_handler):
5242         (x_init_device): Temporarily keep device in static variable
5243         `device_being_initialized' so we can recover gracefully from
5244         internal XOpenDevice failure.  (XOpenDevice is documented to
5245         return NULL on failure, but sometimes calls the IO error handler
5246         instead.)
5247
5248 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
5249
5250         * dired.c (Ffile_name_all_completions): Change documentation --
5251         remove reference to completion-ignored-extensions.
5252         * dired.c (vars_of_dired): Change documentation for
5253         completion-ignored-extensions -- remove reference to
5254         file-name-all-completions.
5255
5256 2002-03-06  Jerry James  <james@xemacs.org>
5257
5258         * emodules.c (emodules_load): Fix multiple loading of same module.
5259
5260 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
5261         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
5262         RTLD_LAZY to avoid incorrect symbol binding when using nested
5263         shared libraries on Solaris.
5264
5265 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
5266
5267         * fileio.c (Ffind_file_name_handler): Improve docstring.
5268
5269 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
5270
5271         * fns.c (Fmapconcat): Improve docstring.
5272
5273 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
5274
5275         * device-gtk.c: Add prototype for
5276         emacs_gtk_selection_clear_event_handle.
5277         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
5278         selection.  Setup signal handler for "selection_clear_event"
5279         (emacs_gtk_selection_clear_event_handle).
5280
5281         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
5282         other applications owning the clipboard (based on
5283         x_handle_selection_clear).
5284
5285 2001-12-23  William M. Perry  <wmperry@gnu.org>
5286
5287         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
5288         
5289 2002-01-04  Martin Buchholz  <martin@xemacs.org>
5290
5291         * keymap.c (define_key_alternate_name): Parenthesize EQ.
5292
5293 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
5294
5295         * XEmacs 21.4.6 "Common Lisp" is released.
5296
5297 2001-12-16  Torsten Duwe  <duwe@caldera.de>
5298
5299         * search.c (Freplace_match): Add missing sub-expression functionality.
5300
5301         * buffer.c (decode_buffer): Add a check for pointer type to
5302         decode_buffer, before gcc's CSE optimization reorders a
5303         dereference in front of the allow_string test.
5304
5305 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
5306
5307         * window.c (window_loop): Fix bug that sometimes prevented
5308         window_loop() from iterating across multiple devices.  Also, at
5309         Ben's request, changed infloop-detecting code to abort() instead
5310         of silently terminating window_loop().
5311
5312 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
5313
5314         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
5315         * editfns.c (make_time): New function.
5316         (Fencode_time): Use it instead of wasteful_word_to_lisp.
5317         * lisp.h (make_time): Prototype and comment it.
5318         * dired.c (wasteful_word_to_lisp): Deprecate.
5319         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
5320
5321 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
5322
5323         * fileio.c (auto_save_1): Use current coding system, not
5324         escape-quoted.
5325
5326 2001-11-13  Ben Wing  <ben@xemacs.org>
5327
5328         * window.c:
5329         * window.c (window_truncation_on):
5330         * window.c (syms_of_window):
5331         truncate-partial-width-windows should respect the buffer being
5332         displayed, like other redisplay vars.
5333
5334 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
5335
5336         * event-stream.c (Fread_key_sequence): save current buffer.
5337
5338 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5339
5340         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
5341
5342 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
5343
5344         * alloc.c (lcrecord_stats): Add space for types defined in modules.
5345
5346 2001-10-26  Mike Alexander  <mta@arbortext.com>
5347
5348         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
5349
5350 2001-10-25  Andy Piper  <andy@xemacs.org>
5351
5352         * ChangeLog:
5353         * dialog-msw.c (handle_directory_proc): new function.
5354          (handle_directory_dialog_box): new fucntion.
5355          (handle_file_dialog_box): use new directory dialog support.
5356          (mswindows_make_dialog_box_internal): ditto.
5357         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
5358         handling.
5359         (mswindows_find_frame): make global.
5360         * fileio.c (Fexpand_file_name): build fix.
5361         * general-slots.h: add Qdirectory.
5362         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
5363         handling.
5364         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
5365         cygwin not leaving win32 paths unchanged.
5366         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
5367         cygwin runtime to do path conversion.
5368         (Fmswindows_shell_execute): fix cygwin handling of URLs.
5369         (syms_of_win32): add new function.
5370         * window.c (window_loop): build fix.
5371
5372 2001-10-15  Andy Piper  <andy@xemacs.org>
5373
5374         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
5375
5376 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
5377
5378         * XEmacs 21.4.5 "Civil Service" is released.
5379
5380 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
5381
5382         * glyphs-x.c: Force buffer-tab highlight update when moving the
5383         buffer, avoiding an ugly black border, used for keyboard focus
5384         indication, on a widget that can never have keyboard focus, the
5385         buffer tab.
5386
5387 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
5388
5389         * process-unix.c (unix_open_multicast_group): Remove too much
5390         conversion between host and network byte order.
5391
5392 2001-09-10  Nix  <nix@esperi.demon.co.uk>
5393
5394         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
5395         before replacing them.
5396
5397         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
5398         operation.
5399
5400         * src/window.c (undedicate_windows): Use it.
5401         * src/window.h: Add prototype.
5402
5403 2001-09-17  Ben Wing  <ben@xemacs.org>
5404
5405         * fileio.c (normalize_filename):
5406         * fileio.c (Fexpand_file_name):
5407         Fix various C++ compile errors in Andy's recent code.
5408         
5409         * callint.c (Fcall_interactively):
5410         * editfns.c (Ftemp_directory):
5411         * editfns.c (Fuser_full_name):
5412         * emacs.c (argmatch):
5413         * lread.c (locate_file_map_suffixes):
5414         * redisplay-x.c (x_ring_bell):
5415         Fix sign-compare warnings.
5416         
5417 2001-09-08  Andy Piper  <andy@xemacs.org>
5418
5419         * fileio.c (normalize_filename): copied from nt.c
5420         * (Ffile_name_directory): enable win32 paths under cygwin.
5421         * (Ffile_name_nondirectory): ditto.
5422         * (directory_file_name): ditto.
5423         * (Fexpand_file_name): ditto.
5424         * (Ffile_truename): ditto.
5425         * (Fsubstitute_in_file_name): ditto.
5426         * (Ffile_name_absolute_p): ditto.
5427         * (Ffile_readable_p): ditto.
5428
5429 2001-09-08  Andy Piper  <andy@xemacs.org>
5430
5431         * device-msw.c (mswindows_finish_init_device): remove dde
5432         initialization.
5433         * device-msw.c (mswindows_init_dde): factor out from
5434         mswindows_finish_init_device()
5435         * device-msw.c (init_mswindows_very_early): new function
5436         initialize but don't enable dde.
5437         * emacs.c (main_1): call init_mswindows_very_early.
5438         * event-msw.c:
5439         * event-msw.c (mswindows_dde_callback): only execute when we are
5440         ready.
5441         * symsinit.h: declare init_mswindows_very_early.
5442
5443 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5444
5445         [sjt: This has been in 21.5 for months with no complaints.]
5446
5447         * console.h (struct console_methods): Added flags member.
5448         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
5449         (CONMETH_IMPL_FLAG):
5450         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
5451         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5452
5453         * device.c (window_system_pixelated_geometry): Use the above macros.
5454
5455         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
5456         implememntation flag.
5457         * device.h (DEVICE_DISPLAY_P): Use it.
5458
5459         * frame.c (delete_frame_internal): Use the above macro.
5460
5461         * redisplay.c (redisplay_device): Use it.
5462         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
5463         (redisplay_frame): Ditto.
5464
5465         * device-msw.c (mswindows_device_implementation_flags): Removed.
5466         (msprinter_device_implementation_flags): Removed.
5467         (console_type_create_device_mswindows): Removed references to
5468         implementation_flags methods, set implementation flags here.
5469         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
5470
5471         * device-gtk.c (gtk_device_implementation_flags): Removed method.
5472         (console_type_create_device_gtk): Removed method declaration.
5473         Added commented out statement which semantically matches the
5474         commented out statement in the above removed method.
5475
5476 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
5477
5478         The attached patch fixes a few warnings. 
5479
5480         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
5481         * src/frame-gtk.c: guard against GNOME calls in GTK only
5482         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
5483         * src/select-gtk.c: prototype lisp_to_time
5484
5485 2001-06-08  Ben Wing  <ben@xemacs.org>
5486
5487         ------ gc-in-window-procedure fixes ------
5488         
5489         * alloc.c:
5490         * alloc.c (struct post_gc_action):
5491         * alloc.c (register_post_gc_action):
5492         * alloc.c (run_post_gc_actions):
5493         * alloc.c (garbage_collect_1):
5494         Create "post-gc actions", to avoid those dreaded "GC during window
5495         procedure" problems.
5496
5497         * event-msw.c:
5498         Abort, clean and simple, when GC in window procedure.  We want
5499         to flush these puppies out.
5500
5501         * glyphs-msw.c:
5502         * glyphs-msw.c (finalize_destroy_window):
5503         * glyphs-msw.c (mswindows_finalize_image_instance):
5504         Use a post-gc action when destroying subwindows.
5505
5506         * lisp.h:
5507         Declare register_post_gc_action().
5508
5509         * scrollbar-msw.c:
5510         * scrollbar-msw.c (unshow_that_mofo):
5511         Use a post-gc action when unshowing scrollbar windows, if in gc.
5512
5513         * redisplay.c (mark_redisplay):
5514         Add comment about the utter evilness of what's going down here.
5515
5516         ------ cygwin setitimer fixes ------
5517         
5518         * Makefile.in.in (sheap_objs):
5519         * Makefile.in.in (profile_objs):
5520         * Makefile.in.in (objs):
5521         Compile profile.c only when HAVE_SETITIMER.
5522         
5523         * nt.c (mswindows_sigset):
5524         * nt.c (mswindows_sighold):
5525         * nt.c (mswindows_sigrelse):
5526         * nt.c (mswindows_sigpause):
5527         * nt.c (mswindows_raise):
5528         * nt.c (close_file_data):
5529         Style fixes.
5530         
5531         * nt.c:
5532         Move setitimer() emulation to win32.c, because Cygwin needs it too.
5533         
5534         * profile.c:
5535         * profile.c (Fstart_profiling):
5536         * profile.c (Fstop_profiling):
5537         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
5538         instead of just plain setitimer().
5539         
5540         * signal.c:
5541         * signal.c (set_one_shot_timer):
5542         * signal.c (alarm):
5543         Define qxe_setitimer() as an encapsulation around setitimer() --
5544         call setitimer() directly unless Cygwin or MS Win, in which case
5545         we use our simulated version in win32.c.
5546         
5547         * systime.h:
5548         * systime.h (struct itimerval):
5549         * systime.h (ITIMER_REAL):
5550         Prototype mswindows_setitimer() and qxe_setitimer().  Long
5551         comment about "qxe" and the policy regarding encapsulation.
5552
5553         * win32.c:
5554         * win32.c (setitimer_helper_proc):
5555         * win32.c (setitimer_helper_period):
5556         * win32.c (setitimer_helper):
5557         * win32.c (mswindows_setitimer):
5558         Move setitimer() emulation here, so Cygwin can use it.
5559         Rename a couple of functions and variables to be longer and more
5560         descriptive.  In setitimer_helper_proc(), send the signal
5561         using either mswindows_raise() or (on Cygwin) kill().  If for
5562         some reason we are still getting lockups, we'll change the kill()
5563         to directly invoke the signal handlers.
5564
5565         ------ windows shell fixes ------
5566         
5567         * callproc.c:
5568         * ntproc.c:
5569         Comments about how these two files must die.
5570
5571         * callproc.c (init_callproc):
5572         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
5573         not just COMSPEC. (more correct and closer to FSF.) Don't
5574         force a value for SHELL into the environment. (Comments added
5575         to explain why not.)
5576         
5577         * nt.c (init_user_info):
5578         Don't shove a fabricated SHELL into the environment.  See above.
5579
5580 2001-06-01  Ben Wing  <ben@xemacs.org>
5581
5582         * Makefile.in.in (ldflags):
5583         eliminate that pesky "defaulting to 00401000" warning.
5584         * nt.h:
5585         eliminate warnings.
5586
5587 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
5588
5589         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
5590         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
5591
5592 2001-04-24  Jerry James <james@xemacs.org>
5593
5594         * faces.h: pass parameters to Fadd_spec_to_specifier in the
5595         correct order.
5596
5597 2001-06-01  Ben Wing  <ben@xemacs.org>
5598
5599         * event-msw.c (debug_mswin_messages):
5600         conditionalize the messages that were causing compile errors.
5601         (if only macros could generate #ifdef statements ...)
5602
5603 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
5604
5605         * XEmacs 21.4.4 "Artificial Intelligence" is released.
5606
5607 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5608
5609         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
5610
5611 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
5612
5613         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
5614         * process-unix.c (unix_canonicalize_host_name):
5615         sysdep.c (init_system_name):
5616         Use it to conditionally support IPv6 canonicalization.
5617
5618 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
5619
5620         * event-msw.c:
5621         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
5622
5623 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
5624
5625         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
5626         attempt is made to scroll when no scroll bar is available.
5627
5628 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5629
5630         * input-method-motif.c (XIM_delete_frame): New callback.
5631         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
5632         got deleted from 21.4.3.)
5633
5634 2001-06-01  Ben Wing  <ben@xemacs.org>
5635
5636         * nt.c (mswindows_utime):
5637         * nt.c (close_file_data):
5638         fix off-by-one-indirection error.
5639
5640 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
5641
5642         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
5643         because set_file_times() now takes Lisp_Object path, instead of
5644         char*.
5645         * nt.c: Include buffer.h.
5646         * nt.c (convert_from_time_t): New.
5647         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
5648         not set mtime correctly.
5649         * nt.h: Declare mswindows_utime().
5650         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
5651         path, instead of char*.
5652         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
5653
5654 2001-05-30  Ben Wing  <ben@xemacs.org>
5655
5656         For 21.4:
5657
5658         (Stephen, just take all event-msw.c patches.  This includes
5659         the "iconify" fix below.)
5660
5661         * event-msw.c:
5662         * event-msw.c (mswindows_dequeue_dispatch_event):
5663         * event-msw.c (assert):
5664         * event-msw.c (emacs_mswindows_quit_p):
5665         * event-msw.c (debug_mswin_messages):
5666         * event-msw.c (debug_output_mswin_message):
5667         * event-msw.c (vars_of_event_mswindows):
5668         Fix yet more problems with C-g handling.
5669         Implement debug-mswindows-events.
5670         
5671 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
5672
5673         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
5674         
5675 2001-05-23  Ben Wing  <ben@xemacs.org>
5676
5677         * event-msw.c (winsock_writer):
5678         * event-msw.c (winsock_closer):
5679         prior kludgy code was clobbering the buffer, thinking it was
5680         "unused" space to store an unneeded return value; instead, use
5681         the variable we've already got staring us in the face.
5682
5683 2001-05-17  Andy Piper  <andy@xemacs.org>
5684
5685         * sysfile.h: don't assume that file attributes are boolean
5686
5687 2001-05-23  Ben Wing  <ben@xemacs.org>
5688
5689         * device-msw.c (msprinter_init_device):
5690         signal an error rather than crash with an unavailable network
5691         printer (from Mike Alexander).
5692         
5693         * event-msw.c:
5694         * event-msw.c (struct winsock_stream):
5695         * event-msw.c (winsock_writer):
5696         * event-msw.c (winsock_closer):
5697         * event-msw.c (make_winsock_stream_1):
5698         cleanup headers.  fix (hopefully) an error with data corruption
5699         when sending to a network connection.
5700
5701         * fileio.c (Fexpand_file_name): Fix evil code that attempts
5702         to handle the ~user prefix by (a) always assuming we're referencing
5703         ourselves and not even verifying the user -- hence any file with
5704         a tilde as its first char is invalid! (b) if there wasn't a slash
5705         following the filename, the pointer was set *past* the end of
5706         file and we started reading from uninitialized memory.  Now we
5707         simply treat these as files, always.
5708
5709         * buffer.c (common_init_complex_vars_of_buffer): comment change.
5710         
5711 2001-05-19  Ben Wing  <ben@xemacs.org>
5712
5713         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
5714
5715         * process-nt.c:
5716         * process-nt.c (vars_of_process_nt):
5717         remove unused mswindows-quote-process-args.  rec for 21.4.
5718         
5719 2001-05-12  Ben Wing  <ben@xemacs.org>
5720
5721         * event-msw.c (mswindows_dde_callback):
5722         * event-msw.c (mswindows_wnd_proc):
5723         eliminate cygwin warnings.
5724
5725 2001-05-06  Ben Wing  <ben@xemacs.org>
5726
5727         * console-msw.h:
5728         * device-msw.c:
5729         * device-msw.c (print_dialog_worker):
5730         * device-msw.c (mswindows_handle_print_dialog_box):
5731         * device-msw.c (syms_of_device_mswindows):
5732         * dialog-msw.c (mswindows_make_dialog_box_internal):
5733         * general-slots.h:
5734         implement printing the selection when it's selected.
5735
5736 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
5737
5738         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
5739
5740 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
5741
5742         * lisp.h (EMACS_INT_MAX): This should be one bit less since
5743         EMACS_INT is signed.
5744
5745 2001-04-15  Michael Lausch  <mla@1012surf.net>
5746
5747         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
5748         gtk_widget_request_size() to give scrollbar >0 width for
5749         GTK >1.2.8.
5750
5751 2001-05-30  William M. Perry  <wmperry@gnu.org>
5752
5753         * event-gtk.c: Check for buttons as modifier keys.
5754
5755 2001-05-25  Craig Lanning  <CraigL@Knology.net>
5756
5757         * s\mingw32.h:
5758         Properly find MinGW's <process.h> inside Cygwin's restructured
5759         include directories.  Don't try to include <cygwin/version.h>
5760         since we are dropping support for MinGW in versions of Cygwin
5761         earlier than b21.
5762         * nt.c:
5763         Drop support for MinGW in versions of Cygwin before b21.
5764         * sysdep.c:
5765         Properly find MinGW's <process.h> inside Cygwin's restructured
5766         include directories.
5767         * syswindows.h:
5768         Drop support for MinGW in versions of Cygwin before b21.
5769         * unexcw.c:
5770         Even though a.out.h is no longer detected by configure, allow
5771         MinGW to use it until we figure out how to do the job with Win32.
5772
5773 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
5774
5775         * syntax.c (find_start_of_comment):
5776         Fix `unbalanced parentheses' bug when dealing with mixed comment
5777         styles in c++/java/etc. mode
5778
5779 2001-05-29  Mike Alexander  <mta@arbortext.com>
5780
5781         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
5782         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
5783
5784 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
5785
5786         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
5787
5788 2001-03-31  Mike Sperber <mike@xemacs.org>
5789
5790         * search.c (Freplace_match): Support FSF-style specification of
5791         match subexpression when applied to a buffer.
5792
5793 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5794
5795         * event-stream.c (is_scrollbar_event): add missing semicolon
5796
5797 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
5798
5799         * Makefile.in.in: Use TAR macro instead of hardcoding
5800           tar.  Allows use of GNU tar instead of system tar
5801
5802 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
5803
5804         * event-stream.c (is_scrollbar_event): add missing semicolon
5805
5806 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5807
5808         * XEmacs 21.4.3 "Academic Rigor" is released.
5809
5810 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
5811
5812         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
5813
5814 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
5815
5816         * buffer.c (Vcase_fold_search): Remove obsolete
5817           comment about non ASCII case-fold-search.  This
5818           bug has been fixed by case-table changes.
5819
5820 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
5821
5822         * event-msw.c: Restore include of events-mod.h.
5823
5824 2001-04-22   zhaoway  <zw@debian.org>
5825
5826         * event-stream.c (is_scrollbar_event): Noop returning 0 if
5827         !HAVE_SCROLLBARS.
5828
5829 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
5830
5831         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
5832
5833 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
5834
5835         * mule-charset.c (Fmake_charset): Add missing else.
5836
5837 2001-04-23  Ben Wing  <ben@xemacs.org>
5838
5839         * event-msw.c (FAKE_MOD_QUIT):
5840         * event-msw.c (mswindows_dequeue_dispatch_event):
5841         * event-msw.c (mswindows_wnd_proc):
5842         * event-msw.c (emacs_mswindows_quit_p):
5843         Get critical quit working.
5844
5845 2001-05-05  Ben Wing  <ben@xemacs.org>
5846
5847         * console-msw.h:
5848         * device-msw.c:
5849         * device-msw.c (mswindows_get_default_margin):
5850         * frame-msw.c (mswindows_size_frame_internal):
5851         * frame-msw.c (msprinter_init_frame_1):
5852         * frame-msw.c (vars_of_frame_mswindows):
5853         Change top/bottom margin defaults to 0.5 inches.
5854
5855 2001-05-01  Martin Buchholz  <martin@xemacs.org>
5856
5857         Fix link error with gcc 3.0 on Linux.
5858         * terminfo.c (UP): Remove.
5859         * terminfo.c (BC): Remove.
5860         * terminfo.c (PC): Remove.
5861         They weren't used, and in any case, these symbols should be
5862         defined in the *library*.
5863
5864 2001-05-03  Martin Buchholz  <martin@xemacs.org>
5865
5866         * s/aix4.h: Fix crash with xlc -O3.
5867         Improve comment explaining how -O3 works.
5868
5869 2001-04-15  Ben Wing  <ben@xemacs.org>
5870
5871         * event-stream.c:
5872         * event-stream.c (Fnext_event):
5873         * event-stream.c (is_scrollbar_event):
5874         * event-stream.c (execute_command_event):
5875         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
5876         crash' problem.  His fix introduces other problems.  We filter
5877         out scrollbar events specifically, making them somewhat invisible
5878         to command-building, and not appearing in `this-command-keys'.
5879         More work is still needed (see comments in event-stream.c), but
5880         this fixes all the major problems.
5881
5882 2001-04-20  Ben Wing  <ben@xemacs.org>
5883
5884         * .cvsignore: Added stuff for Windows.
5885
5886 2001-04-28  Ben Wing  <ben@xemacs.org>
5887
5888         * buffer.c (Ferase_buffer):
5889         * editfns.c (buffer_insert1):
5890         * editfns.c (Finsert_before_markers):
5891         * editfns.c (Finsert_string):
5892         * editfns.c (Finsert_char):
5893         * editfns.c (Fdelete_region):
5894         * editfns.c (Fwiden):
5895         * editfns.c (Fnarrow_to_region):
5896         remove bogus lines setting zmacs_region_stays to 0.
5897         
5898 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5899
5900         * process-unix.c (unix_open_network_stream): If connect() fails
5901         invalidate file descriptor after closing it.
5902
5903 2001-03-08  Mike Alexander  <mta@arbortext.com>
5904
5905         * event-msw.c (mswindows_need_event_in_modal_loop):
5906         Don't dispatch a message if we didn't get one.
5907         (mswindows_need_event):
5908         Terminate the correct process when one exits instead of the first
5909         one on Vprocess_list and look for process termination when in
5910         mswindows_protect_modal_loop.
5911
5912 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
5913
5914         * XEmacs 21.4.1 "Copyleft" is released.
5915
5916 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
5917
5918         * input-method-motif.c (XIM_delete_frame): New callback.
5919         (XIM_init_frame): Register it.
5920
5921 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
5922
5923         * XEmacs 21.4.0 "Solid Vapor" is released.
5924
5925 2001-04-15  Ben Wing  <ben@xemacs.org>
5926
5927         * cmdloop.c (call_command_loop):
5928         Fix braino in bit-rotting code.
5929         
5930 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
5931
5932         * extents.c (Fset_extent_endpoints): Force creation of extent info
5933         in buffer_or_string.
5934
5935         * extents.c (process_extents_for_insertion_mapper): Correctly
5936         check for open-open zero-length extents.
5937
5938 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
5939
5940         * lisp.h: New typedefs Memory_count, Element_count.
5941         * regex.c:
5942         * regex.h:
5943         Sign-compare warning elimination: several unsigned -> signed.
5944         Based on work by Ben Wing <ben@xemacs.org>.
5945
5946 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
5947
5948         * XEmacs 21.2.47 "Zephir" is released.
5949
5950 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
5951
5952         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
5953
5954 2001-04-03  Mike Sperber <mike@xemacs.org>
5955
5956         * search.c: Revert previous patch due because of release.
5957
5958 2001-03-30  Ben Wing  <ben@xemacs.org>
5959
5960         * s\cygwin32.h:
5961         Add missing killpg prototype.
5962
5963         * elhash.c:
5964         Add a comment about fixing problems when a new entry is added
5965         while mapping.
5966
5967         * frame-msw.c (mswindows_init_frame_1):
5968         Fix compile warnings.
5969
5970         * menubar.c (vars_of_menubar):
5971         Provide `menu-accelerator-support' to indicate that we properly
5972         support %_ in menu specifications, so that package code can
5973         conditionalize on this (and remove %_ from menu specifications
5974         on older versions).
5975
5976         * event-msw.c:
5977         * scrollbar-msw.c:
5978         * scrollbar-msw.c (can_scroll):
5979         * scrollbar-msw.h:
5980         Fix handling of mouse wheel under Windows to follow standards --
5981         now scrolls window under pointer, not selected window.
5982
5983 2001-03-31  Mike Sperber <mike@xemacs.org>
5984
5985         * search.c (Freplace_match): Support FSF-style specification of
5986         match subexpression when applied to a buffer.
5987
5988 2001-03-15  Martin Buchholz  <martin@xemacs.org>
5989
5990         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
5991         function to modify KEYMAP, so map over a copy of the hash table.
5992
5993 2001-03-21  Martin Buchholz <martin@xemacs.org>
5994
5995         * XEmacs 21.2.46 "Urania" is released.
5996
5997 2001-03-20  Dan Holmsand  <dan@eyebee.com>
5998
5999         * realpath.c (xrealpath): Make file-truename work with symlinks to
6000         /cygdrive paths on cygwin. Always lowercase drive-letters on
6001         native windows.
6002         (cygwin_readlink): Don't try to find canonical filename unless
6003         file exists.
6004
6005 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
6006
6007         * ChangeLog: Log GTK merge.
6008
6009         * dumper.c:
6010         * select-x.c:
6011         * specifier.c:
6012         * symeval.h:
6013         Revert gratuitous whitespace changes from GTK merge.
6014
6015         * emacs.c: Document end of complex #ifdef @ l. 1495.
6016
6017
6018 2001-03-12  Andy Piper  <andy@xemacs.org>
6019
6020         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
6021         have to do likewise.
6022
6023 2001-03-12  Andy Piper  <andy@xemacs.org>
6024
6025         * sysdep.c: we only support mingw now.
6026
6027 2001-03-09  Andy Piper  <andy@xemacs.org>
6028
6029         * unexcw.c (copy_executable_and_dump_data_section): making approx
6030         overrun a warning only.
6031
6032 2001-03-10  William M. Perry  <wmperry@aventail.com>
6033
6034         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
6035         satisfy Stephen's identical-after-cpp plea.
6036
6037 2001-03-02  Ben Wing  <ben@xemacs.org>
6038
6039         * cmds.c:
6040         * cmds.c (Fforward_char):
6041         * syntax.c:
6042         * window.c:
6043
6044         Augment documentation of the most common motion commands to make
6045         note of the shifted-motion support.
6046         
6047 2001-03-02  Ben Wing  <ben@xemacs.org>
6048
6049         * nt.c (mswindows_fstat):
6050         * nt.c (mswindows_stat):
6051         * search.c (boyer_moore):
6052         Fix compile warnings under Windows.
6053         
6054         * sysdep.c (sys_readdir):
6055         Fix buggy filename-conversion code under Mule.
6056
6057 2001-03-09  William M. Perry  <wmperry@aventail.com>
6058
6059         * Makefile.in.in:
6060         * config.h.in:
6061         * console.c:
6062         * console.h:
6063         * device.c:
6064         * device.h:
6065         * dragdrop.c:
6066         * emacs.c:
6067         * event-stream.c:
6068         * events.c:
6069         * events.h:
6070         * faces.c:
6071         * frame.h:
6072         * general-slots.h:
6073         * glyphs.c:
6074         * gutter.c:
6075         * inline.c:
6076         * lisp.h:
6077         * lrecord.h:
6078         * make-src-depend:
6079         * redisplay-output.c:
6080         * redisplay.c:
6081         * symsinit.h:
6082         * sysfile.h:
6083         * toolbar.c:
6084         * window.c:
6085         The Great GTK Merge.
6086
6087         * ChangeLog.GTK:
6088         * console-gtk.c:
6089         * console-gtk.h:
6090         * device-gtk.c:
6091         * emacs-marshals.c:
6092         * emacs-widget-accessors.c:
6093         * event-gtk.c:
6094         * frame-gtk.c:
6095         * gccache-gtk.c:
6096         * gccache-gtk.h:
6097         * glade.c:
6098         * glyphs-gtk.c:
6099         * glyphs-gtk.h:
6100         * gtk-glue.c:
6101         * gtk-xemacs.c:
6102         * gtk-xemacs.h:
6103         * gui-gtk.c:
6104         * gui-gtk.h:
6105         * menubar-gtk.c:
6106         * native-gtk-toolbar.c:
6107         * objects-gtk.c:
6108         * objects-gtk.h:
6109         * redisplay-gtk.c:
6110         * scrollbar-gtk.c:
6111         * scrollbar-gtk.h:
6112         * select-gtk.c:
6113         * toolbar-gtk.c:
6114         * ui-byhand.c:
6115         * ui-gtk.c:
6116         * ui-gtk.h:
6117         The Great GTK Merge: new files.
6118
6119 2001-02-26  Ben Wing  <ben@xemacs.org>
6120
6121         Reapplied Lstream change.
6122
6123 2001-02-26  Ben Wing  <ben@xemacs.org>
6124
6125         Undid the last change, since it is more controversial than I
6126         thought.  It should be back in at some point soon.
6127         
6128 2001-02-25  Ben Wing  <ben@xemacs.org>
6129
6130         * buffer.c:
6131         * callproc.c (Fold_call_process_internal):
6132         * event-msw.c (ntpipe_slurp_reader):
6133         * event-msw.c (ntpipe_shove_writer):
6134         * event-msw.c (winsock_reader):
6135         * event-msw.c (winsock_writer):
6136         * file-coding.c:
6137         * file-coding.c (detect_eol_type):
6138         * file-coding.c (detect_coding_type):
6139         * file-coding.c (determine_real_coding_system):
6140         * file-coding.c (Fdetect_coding_region):
6141         * file-coding.c (decoding_reader):
6142         * file-coding.c (decoding_writer):
6143         * file-coding.c (mule_decode):
6144         * file-coding.c (Fdecode_coding_region):
6145         * file-coding.c (encoding_reader):
6146         * file-coding.c (encoding_writer):
6147         * file-coding.c (mule_encode):
6148         * file-coding.c (Fencode_coding_region):
6149         * file-coding.c (detect_coding_sjis):
6150         * file-coding.c (decode_coding_sjis):
6151         * file-coding.c (encode_coding_sjis):
6152         * file-coding.c (detect_coding_big5):
6153         * file-coding.c (decode_coding_big5):
6154         * file-coding.c (encode_coding_big5):
6155         * file-coding.c (detect_coding_ucs4):
6156         * file-coding.c (decode_coding_ucs4):
6157         * file-coding.c (encode_coding_ucs4):
6158         * file-coding.c (detect_coding_utf8):
6159         * file-coding.c (decode_coding_utf8):
6160         * file-coding.c (encode_coding_utf8):
6161         * file-coding.c (detect_coding_iso2022):
6162         * file-coding.c (decode_coding_iso2022):
6163         * file-coding.c (encode_coding_iso2022):
6164         * file-coding.c (decode_coding_no_conversion):
6165         * file-coding.c (encode_coding_no_conversion):
6166         * glyphs-x.c (write_lisp_string_to_temp_file):
6167         * gpmevent.c (tty_get_foreign_selection):
6168         * lisp.h:
6169         * lstream.c:
6170         * lstream.c (Lstream_flush_out):
6171         * lstream.c (Lstream_adding):
6172         * lstream.c (Lstream_write_1):
6173         * lstream.c (Lstream_write):
6174         * lstream.c (Lstream_raw_read):
6175         * lstream.c (Lstream_read_more):
6176         * lstream.c (Lstream_read):
6177         * lstream.c (Lstream_unread):
6178         * lstream.c (Lstream_fputc):
6179         * lstream.c (stdio_reader):
6180         * lstream.c (stdio_writer):
6181         * lstream.c (filedesc_reader):
6182         * lstream.c (filedesc_writer):
6183         * lstream.c (lisp_string_reader):
6184         * lstream.c (struct fixed_buffer_stream):
6185         * lstream.c (make_fixed_buffer_input_stream):
6186         * lstream.c (make_fixed_buffer_output_stream):
6187         * lstream.c (fixed_buffer_reader):
6188         * lstream.c (fixed_buffer_writer):
6189         * lstream.c (struct resizing_buffer_stream):
6190         * lstream.c (resizing_buffer_writer):
6191         * lstream.c (dynarr_writer):
6192         * lstream.c (lisp_buffer_reader):
6193         * lstream.c (lisp_buffer_writer):
6194         * lstream.h:
6195         * lstream.h (lstream_implementation):
6196         * lstream.h (struct lstream):
6197         * md5.c (Fmd5):
6198         * process-nt.c (nt_send_process):
6199         * process-unix.c (unix_send_process):
6200         
6201         Correct Lstream lossage due to mixing of signed and unsigned
6202         quantities.  All Lstream uses of size_t and ssize_t are now a
6203         single signed data type Lstream_data_count.  This fixes problems
6204         under Windows with sending large quantities of data to a process,
6205         and may well fix other subtle bugs.
6206
6207 2001-02-23  Martin Buchholz <martin@xemacs.org>
6208
6209         * XEmacs 21.2.45 "Thelxepeia" is released.
6210
6211 2001-02-21  Martin Buchholz  <martin@xemacs.org>
6212
6213         * lisp-union.h (XSETINT): 
6214         (XSETCHAR):
6215         (XSETOBJ): 
6216         Reverse previous change of 2001-02-06.
6217
6218 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
6219
6220         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
6221         buffers.
6222         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6223         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
6224         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
6225         * regex.c (POS_AS_IN_BUFFER): removed
6226         * regex.c (re_search_2):
6227         * regex.c (re_match_2):
6228         Don't use an offset of 1 when calculating buffer positions, since
6229         `BI_BUF_BEGV' does it already.
6230
6231 2001-02-18  Wim Dumon  <wim@easics.be>
6232
6233         * insdel.c (prepare_to_modify_buffer): Also check for
6234         supersession when clash-detection is enabled. 
6235
6236 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
6237
6238         * regex.c (re_match_2_internal):
6239         Convert temp characters from 'const unsigned char' to 're_char'.
6240         Fix crashing bug with extended characters under mule.
6241         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
6242         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
6243         font-lock, pdump, and new syntax-table code.
6244         * syntax.c (find_start_of_comment):
6245         (find_end_of_comment):
6246         (forward-comment):
6247         Fix crashing bugs involving moving beyond end of buffer.
6248         * syntax.c (find_start_of_comment):
6249         Fixed logic to allow proper detection of cases where the same
6250         character is used to end both a two-char comment start and a
6251         two-char comment end sequence. Fixes `(forward-comment -1)'.
6252         * syntax.c (find_start_of_comment):
6253         Return position just past last comment-end character for all cases
6254         (previously was only done for two-char comment-end sequences).
6255         * syntax.c (forward-comment):
6256         Take value returned from `find_end_of_comment', rather than
6257         incrementing it.
6258         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
6259         Properly deal with BUFFERP (syntax_cache.object)
6260
6261 2001-02-17  Martin Buchholz  <martin@xemacs.org>
6262
6263         * alloc.c (Fgarbage_collect): 
6264         * alloc.c (make_bit_vector_from_byte_vector):
6265         -Wsign-compare-correctness.
6266
6267 2001-02-16  Martin Buchholz  <martin@xemacs.org>
6268
6269         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
6270         (XSETCHAR): Likewise.
6271         (XSETOBJ): Likewise.
6272
6273 2001-02-15  Martin Buchholz  <martin@xemacs.org>
6274
6275         * mule-canna.c (canna-func-delete_previous): 
6276         Rename to canna-func-delete-previous.
6277
6278 2001-02-14  Martin Buchholz  <martin@xemacs.org>
6279
6280         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
6281
6282 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
6283
6284         * font-lock.c (find_context): Fix C++ compile errors introduced by
6285         recent patch
6286
6287 2001-02-13  Martin Buchholz  <martin@xemacs.org>
6288
6289         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
6290         pragma, but earlier ones barf on the same pragma.
6291
6292 2001-02-06  Mike Sperber <mike@xemacs.org>
6293
6294         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
6295         `configure-mule-lisp-directory'.
6296
6297 2001-02-12  Martin Buchholz  <martin@xemacs.org>
6298
6299         Make sure dump-id.c is compiled in the same way as other .c's.
6300         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
6301         * dump-id.h: Remove.
6302         * emacs.c: Move dump-id.h into dumper.h.
6303         * dumper.h: Move dump-id.h into dumper.h.
6304         * Makefile.in.in:
6305         Use standard .c.o rule for building dump-id.o.
6306         Remove preprocessor flags from link command.
6307         Add dump-id.o to ${otherobjs} if PDUMP.
6308
6309 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
6310
6311         Port FSF 20.7 syntax table improvements.
6312         * syntax.c.
6313         * syntax.h.
6314
6315         Fixups for new syntax table stuff.
6316         * dired.c: Include syntax.c.
6317         (Fdirectory_files): Initialize regex_match_object and
6318         regex_emacs_buffer.
6319         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
6320         and Fget_char_property.
6321
6322         Use ported FSF 20.7 syntax table improvements.
6323         * font-lock.c.
6324         * regex.c.
6325         * search.c.
6326         
6327 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6328
6329         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
6330         Unixware's enum boolean from sys/types.h.
6331
6332 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6333
6334         Fix support for building with latest Purify.
6335         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
6336         (PURIFY_FLAGS): Likewise.
6337
6338 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6339
6340         * fileio.c (lisp_string_set_file_times): New.
6341         * fileio.c (Fcopy_file): Use it.
6342         Fixes bug:
6343         (copy-file filename non-ascii-filename t t)
6344         ==> No such file or directory, non-ascii-filename
6345
6346 2001-02-10  Martin Buchholz  <martin@xemacs.org>
6347
6348         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
6349         USHRT_MAX seems clearer than ~0 anyways.
6350
6351 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6352
6353         dumper improvements.  Inspired by Olivier.
6354         * dumper.c (pdump_max_align): New.
6355         * dumper.c (pdump_add_entry): Use pdump_max_align.
6356         * dumper.c (pdump_get_entry_list): Likewise.
6357         * dumper.c (pdump_scan_by_alignment): Likewise.
6358         Don't iterate through unnecessary alignments.
6359         * dumper.c (pdump_file_get): No need to align result of malloc().
6360         * dumper.c (pdump_mallocadr): Remove.  
6361         The result of malloc() is guaranteed to be maximally aligned.
6362         * dumper.c: s/elmt/elt/g;
6363         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
6364         * dumper.c (pdump_alert_undump_object): Likewise.
6365         * dumper.c (pdump_align_table): 
6366         Don't support alignments > 64.
6367         Store ALIGNOF's, not shift counts, in table.
6368
6369 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6370
6371         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
6372         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
6373         * systime.h: Use HAVE_UTIME.
6374         * sysdep.c (struct utimbuf): Remove.
6375         * sysdep.c (set_file_times): Prefer utime() to utimes().
6376         * config.h.in (HAVE_UTIME): New.
6377         * config.h.in (HAVE_UTIME_H): Remove.
6378         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
6379
6380 2001-02-09  Martin Buchholz  <martin@xemacs.org>
6381
6382         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
6383
6384 2001-02-08  Martin Buchholz  <martin@xemacs.org>
6385
6386         * s/irix6-0.h: Use the standard system memmove, not bcopy.
6387
6388 2001-02-08  Martin Buchholz <martin@xemacs.org>
6389
6390         * XEmacs 21.2.44 "Thalia" is released.
6391
6392 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6393
6394         Fixes crashes in kill-emacs on some systems.
6395         * process-unix.c (unix_kill_child_process):
6396         It's OK for kill() to fail with ESRCH.
6397
6398 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6399
6400         Contortions to make .gdbinit tricks work on most systems.
6401         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
6402         * alloc.c (dbg_valmask): Make non-const.
6403         * alloc.c (dbg_typemask): Make non-const.
6404         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
6405         * alloc.c (dbg_valbits): Make non-const.
6406         * alloc.c (dbg_gctypebits): Make non-const.
6407         * .gdbinit (decode_object): Make it work with AIX cc.
6408
6409 2001-02-06  Martin Buchholz  <martin@xemacs.org>
6410
6411         * elhash.c (make_general_lisp_hash_table):
6412         Use simpler and more efficient calloc to clear entries.
6413
6414 2001-02-07  Martin Buchholz  <martin@xemacs.org>
6415
6416         * window.c (window_scroll): Work around an AIX C compiler bug.
6417         Fixes 'scroll-up' does nothing problem with xlC.
6418
6419 2001-02-05  Martin Buchholz  <martin@xemacs.org>
6420
6421         * .gdbinit: Remove obsolete comment.
6422
6423 2001-01-31  Mike Alexander  <mta@arbortext.com>
6424
6425         * select.c (Fown_selection_internal): Set owned_p for device
6426         method correctly.
6427
6428 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6429
6430         Port to g++ 2.97.
6431         "not" cannot be used as a macro name as it is an operator in C++
6432         * config.h.in: Stop #defining `not'.
6433         * chartab.c (check_category_char): not ==> not_p
6434         * chartab.h: Likewise.
6435         * regex.c (re_match_2_internal): Likewise.
6436
6437 2001-02-02  Martin Buchholz  <martin@xemacs.org>
6438
6439         * lisp-disunion.h: Fix up comments.
6440
6441 2001-01-31  Martin Buchholz  <martin@xemacs.org>
6442
6443         * keymap.c (define_key_check_and_coerce_keysym):
6444         (syms_of_keymap):
6445         Support mouse-6 and mouse-7 bindings in the obvious way.
6446
6447 2001-02-01  Martin Buchholz  <martin@xemacs.org>
6448
6449         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
6450
6451 2001-01-30  Martin Buchholz  <martin@xemacs.org>
6452
6453         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
6454         Previous patch missed DEFVAR_INT_MAGIC.
6455         Make sure future DEFVAR_foo use correct types.
6456         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
6457         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
6458         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
6459         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
6460         * (DEFVAR_INT): Likewise.
6461         * redisplay.c (vertical_clip): Should be of type Fixnum.
6462         * redisplay.c (horizontal_clip): Likewise.
6463         * lisp.h (dump_add_opaque_int): New.
6464         (dump_add_opaque_fixnum): New.
6465
6466 2001-01-29  Andy Piper  <andy@xemacs.org>
6467
6468         * glyphs-widget.c (check_valid_int_or_function): allow symbols
6469         since they can be eval'ed
6470
6471 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6472
6473         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
6474         Oops, XEmacs redefines `class'.  Use `typename' instead.
6475
6476 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6477
6478         * dumper.c: Fix C++ compile errors.
6479
6480 2001-01-29  Martin Buchholz  <martin@xemacs.org>
6481
6482         * tparam.c: Use correct prototypes.
6483
6484 2001-01-28  Martin Buchholz  <martin@xemacs.org>
6485
6486         * sysproc.h: #include util.h for NetBSD's openpty.
6487
6488 2001-01-27  Martin Buchholz  <martin@xemacs.org>
6489
6490         More 64-bit correctness.
6491         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
6492         Use a typedef `fixnum' for the type used for DEFVAR_INT.
6493         Fix up comments.
6494         This finally finishes the 64-bit SGI port.
6495         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
6496         * symbols.c: Fix up comments and type casts.
6497         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
6498         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
6499         * symeval.h (Fixnum): New type.
6500         * symeval.h (symbol_value_type): Fix up comment.
6501
6502         * commands.h:
6503         * nt.c:
6504         * emacs.c:
6505         * data.c:
6506         * redisplay.c:
6507         * abbrev.c:
6508         * dired-msw.c:
6509         * event-Xt.c:
6510         * eldap.c:
6511         * window.c:
6512         * sound.c:
6513         * event-stream.c:
6514         * eval.c:
6515         * buffer.c:
6516         * mule-canna.c: A million DEFVAR_INTs here...
6517         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
6518         * extents.c:
6519         * cmdloop.c:
6520         * lisp.h:
6521         * select-x.c:
6522         * console-x.h:
6523         * event-msw.c:
6524         * mule-wnnfns.c:
6525         * hpplay.c:
6526         * ralloc.c:
6527         * alloc.c:
6528         * keymap.c:
6529         * profile.c:
6530         s/int/Fixnum/g in DEFVAR_INT declarations.
6531
6532 2001-01-26  Martin Buchholz  <martin@xemacs.org>
6533
6534         Port pdump to SGI alignment-sensitive environment.
6535         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
6536         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
6537         properly aligned.
6538         Define and use aligned reading and writing macros.
6539         Use buffered stdio instead of posix i/o for faster dumping.
6540         Eliminate kludgy 256 byte space for header.
6541         Read and write from dump file using structs for alignment safety.
6542         * dumper.c (pdump_align_stream): New.
6543         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
6544         * dumper.c (PDUMP_READ_ALIGNED): New.
6545         * dumper.c (PDUMP_WRITE_ALIGNED): New.
6546         * dumper.c (pdump_static_Lisp_Object): New struct.
6547         * dumper.c (pdump_static_pointer): New struct.
6548         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
6549         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
6550         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
6551         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
6552
6553         * dumper.c (pdump_backtrace):
6554         * dumper.c (pdump_get_indirect_count):
6555         * dumper.c (pdump_register_object):
6556         * dumper.c (pdump_register_struct):
6557         * dumper.c (pdump_reloc_one):
6558         * dumper.c (pdump_scan_by_alignment):
6559         * dumper.c (pdump_dump_from_root_struct_ptrs):
6560         * dumper.c (pdump_dump_opaques):
6561         * dumper.c (pdump_dump_rtables):
6562         * dumper.c (pdump_dump_from_root_objects):
6563         * dumper.c (pdump):
6564         * dumper.c (pdump_load_finish):
6565         Use aligned reading and writing.
6566
6567         * dumper.c (pdump_free): Make static.
6568         * dumper.c (pdump_hFile): Likewise.
6569         * dumper.c (pdump_hMap): Likewise.
6570
6571 2001-01-26  Martin Buchholz <martin@xemacs.org>
6572
6573         * XEmacs 21.2.43 "Terspichore" is released.
6574
6575 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6576
6577         Type fiddling for window_config.saved_windows_count
6578         * window.c (struct window_config): 
6579         Make saved_windows_count member unsigned.
6580         * window.c (sizeof_window_config_for_n_windows): 
6581         Make parameter unsigned.
6582         * window.c (mark_window_config):
6583         * window.c (window_config_equal):
6584         * window.c (free_window_configuration):
6585         * window.c (Fset_window_configuration):
6586         * window.c (count_windows):
6587         * window.c (Fcurrent_window_configuration):
6588         * window.c (reinit_vars_of_window):
6589         Update all callers and users.
6590
6591 2001-01-25  Martin Buchholz  <martin@xemacs.org>
6592
6593         Alignment correctness for flexible arrays.
6594         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
6595         Make alignment-correct. Add interesting comments.
6596         * alloc.c (size_vector):
6597         * alloc.c (make_vector_internal):
6598         * alloc.c (make_bit_vector_internal):
6599         * alloc.c (sweep_bit_vectors_1):
6600         * fns.c (size_bit_vector):
6601         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
6602         * window.c (sizeof_window_config_for_n_windows): 
6603         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
6604
6605 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6606
6607         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
6608
6609 2001-01-23  Andy Piper  <andy@xemacs.org>
6610
6611         * select.c (Fown_selection_internal): pass owned_p
6612
6613         * select-msw.c (mswindows_own_selection): New Signature.
6614
6615         * console.h (struct console_methods): add owned_p to
6616         _own_selection.
6617
6618         * select-x.c (x_own_selection): pass owned_p
6619         (hack_motif_clipboard_selection): use owned_p
6620         (vars_of_select_x): new variable -
6621         x_selection_strict_motif_ownership.
6622
6623 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6624
6625         * specifier.h (specifier_data_offset): Remove pointless parens.
6626         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
6627
6628 2001-01-24  Martin Buchholz  <martin@xemacs.org>
6629
6630         Make Lisp_Object sizeof methods be alignment-correct.
6631         pdump must restore objects to the same alignment as the C compiler
6632         assumes.  It really matters on SGIs.
6633         * lstream.c (aligned_sizeof_lstream): New.
6634         (sizeof_lstream): Use aligned_sizeof_lstream.
6635         (Lstream_new): Likewise.
6636         * opaque.c (aligned_sizeof_opaque): New.
6637         (sizeof_opaque): Use aligned_sizeof_opaque.
6638         (make_opaque): Likewise.
6639         * specifier.c (aligned_sizeof_specifier): New.
6640         (sizeof_specifier): Use aligned_sizeof_specifier.
6641         (make_specifier_internal): Likewise.
6642
6643 2001-01-23  Martin Buchholz  <martin@xemacs.org>
6644
6645         * lstream.h (struct lstream): Use max_align_t for trailing data.
6646         * specifier.h (struct Lisp_Specifier): Likewise.
6647
6648 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6649
6650         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
6651         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
6652         (CCL_SUSPEND): Likewise.
6653         (CCL_INVALID_CMD): Likewise.
6654         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
6655         (ccl_driver): Likewise.
6656         (CCL_WRITE_CHAR): Macro hygiene.
6657         (CCL_WRITE_STRING): Macro hygiene.
6658
6659 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6660
6661         Port "portable" dumper to SunOS 4 and HP-UX.
6662         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
6663         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
6664         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
6665
6666 2001-01-22  Martin Buchholz  <martin@xemacs.org>
6667
6668         * lisp.h (ALIGNOF): A better definition for C++.
6669
6670 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6671
6672         Macro hygiene.
6673         Fix printf warnings: int format, long int arg.
6674         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
6675         (PUSH_FAILURE_POINT): Use correct printf formats.
6676         (POP_FAILURE_POINT): Use correct printf formats.  
6677         Use do {...} while (0)
6678
6679 2001-01-20  Martin Buchholz <martin@xemacs.org>
6680
6681         * XEmacs 21.2.42 "Poseidon" is released.
6682
6683 2001-01-20  Martin Buchholz  <martin@xemacs.org>
6684
6685         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
6686
6687 2001-01-19  Martin Buchholz  <martin@xemacs.org>
6688
6689         De-kludgify FIXED_TYPE free list frobbing.
6690         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
6691         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
6692         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
6693         * alloc.c (Lisp_Free): New pseudo lisp object definition.
6694         * alloc.c (LRECORD_FREE_P): New.
6695         * alloc.c (MARK_LRECORD_AS_FREE): New.
6696         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
6697         * alloc.c (STRUCT_FREE_P): Deleted.
6698         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
6699         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
6700         * alloc.c (STRING_CHARS_FREE_P): New.
6701         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
6702         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
6703         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
6704         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
6705         * alloc.c (resize_string): Use new definitions.
6706         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
6707         * alloc.c (verify_string_chars_integrity): Use new definitions.
6708         * alloc.c (compact_string_chars): Use new definitions.
6709         * alloc.c: Update monster comments.
6710         * lrecord.h (lrecord_type): Add some new lrecord types for
6711         alloc.c's use.
6712
6713 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6714
6715         Improve alignment hackery.
6716         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
6717         (max_align_t): Moved from opaque.h - general purpose.
6718         (ALIGN_PTR): Use size_t, not long.
6719         * opaque.h (max_align_t): Move to lisp.h.
6720
6721 2001-01-18  Norbert Koch  <nk@LF.net>
6722
6723         * gui.h: Fix and add prototypes to fix build problems.
6724
6725 2001-01-18  Martin Buchholz  <martin@xemacs.org>
6726
6727         temacs is going away, so `dump-temacs' is now a bad name.
6728         * .dbxrc (dump-temacs): Rename to `dmp'.
6729         * .gdbinit (dump-temacs): Rename to `dmp'.
6730
6731 2001-01-17  Andy Piper  <andy@xemacs.org>
6732
6733         * glyphs.c (print_image_instance): comment to make martin happy.
6734
6735         * glyphs-x.c (x_redisplay_widget): update faces after a frame
6736         change.
6737
6738         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
6739         activation.
6740         (mswindows_tab_control_redisplay): warning suppression.
6741
6742         * glyphs-widget.c (widget_update): re-write to cope with updated
6743         items.
6744         (widget_instantiate): use new gui_item functions.
6745         (tab_control_update): deleted.
6746         (progress_gauge_update): deleted.
6747         (image_instantiator_progress_guage): take out update reference.
6748         (image_instantiator_tree_view): ditto.
6749         (image_instantiator_tab_control): ditto.
6750
6751         * gui.c (widget_gui_parse_item_keywords): new function. Do things
6752         Right the new way.
6753         (gui_item_add_keyval_pair): re-write to cope with descriptors and
6754         return whether anything was changed.
6755         (update_gui_item_keywords): as it sounds.
6756
6757         * gui.h: declare widget_gui_parse_item_keywords.
6758
6759         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
6760         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
6761
6762 2001-01-17  Martin Buchholz <martin@xemacs.org>
6763
6764         * XEmacs 21.2.41 "Polyhymnia" is released.
6765
6766 2001-01-16  Didier Verna  <didier@xemacs.org>
6767
6768         * glyphs.c (image_instantiate): don't use fallbacks when
6769         instantiating a face's background pixmap by inheritance.
6770
6771 2001-01-14  Mike Sperber <mike@xemacs.org>
6772
6773         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
6774         Conditionalize accordingly.
6775
6776 2001-01-16  Martin Buchholz  <martin@xemacs.org>
6777
6778         * dumper.c (pdump_file_get): Fix a compiler warning.
6779
6780 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6781
6782         Make Purify happy when pdumping.
6783         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
6784         iniitalizing all bits of new lisp object memory.
6785         * symbols.c (Fmake_local_variable): Likewise.
6786         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
6787         * symbols.c (Fdefvaralias): Likewise.
6788         * mule-charset.c (vars_of_mule_charset): Likewise.
6789
6790 2001-01-15  Martin Buchholz  <martin@xemacs.org>
6791         Add the `-nd' flag when running pre-dump operations under the debugger.
6792         * .dbxrc (run-temacs): Add `-nd'.
6793         * .dbxrc (update-elc): Likewise.
6794         * .dbxrc (dump-temacs): Likewise.
6795         * .gdbinit (run-temacs): Likewise.
6796         * .gdbinit (check-temacs): Likewise.
6797         * .gdbinit (update-elc): Likewise.
6798         * .gdbinit (dump-temacs): Likewise.
6799
6800 2001-01-14  Martin Buchholz  <martin@xemacs.org>
6801
6802         Allow building 64-bit executables on AIX with GNU malloc, e.g.
6803         export OBJECT_MODE=64
6804         configure --pdump --use-union-type=no
6805         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
6806         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
6807
6808         * miscplay.c (sndcnv8U_2mono):
6809         Avoid two uses of `++' in the same expression.
6810         Suppresses a GCC warning.
6811
6812 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6813
6814         Make sure future compilers don't miscompile alloc.c.
6815         * alloc.c:
6816         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
6817         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
6818
6819 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6820
6821         * dumper.c: A little post-pdump-rename comment fixup.
6822
6823 2001-01-09  Jerry James  <james@eecs.ku.edu>
6824
6825         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
6826
6827 2001-01-13  Martin Buchholz  <martin@xemacs.org>
6828
6829         * *.[ch]: Globally rename symbols using the following `pdump-rename'
6830         script:
6831         #!/bin/sh
6832         replace_symbol () {
6833           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
6834         }
6835
6836         replace_symbol pdump_wire_lists pdump_weak_object_chains
6837         replace_symbol pdump_wire_list dump_add_weak_object_chain
6838
6839         replace_symbol pdump_wires pdump_root_objects
6840         replace_symbol pdump_wire dump_add_root_object
6841
6842         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
6843         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
6844
6845         replace_symbol dumpstructinfos pdump_root_struct_ptrs
6846         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
6847         replace_symbol dumpstructinfo pdump_root_struct_ptr
6848         replace_symbol dumpstruct dump_add_root_struct_ptr
6849
6850         replace_symbol dumpopaque dump_add_opaque
6851         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
6852         replace_symbol dumpopaqueinfos pdump_opaques
6853         replace_symbol dumpopaqueinfo pdump_opaque
6854
6855         replace_symbol nb_structdump nb_root_struct_ptrs
6856         replace_symbol nb_opaquedump nb_opaques
6857
6858         replace_symbol align_table pdump_align_table
6859         replace_symbol dump_header pdump_header
6860
6861         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
6862         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
6863
6864
6865 2001-01-12  Martin Buchholz  <martin@xemacs.org>
6866
6867         * s/aix4.h: Keep the C for AIX compiler from overaggressively
6868         optimizing bytecount_to_charcount().
6869
6870 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
6871
6872         * config.h.in:
6873         (HAVE_DLFCN_H): Removed.
6874         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
6875
6876 2001-01-06  Martin Buchholz  <martin@xemacs.org>
6877
6878         Portable dumper maintainability improvements.
6879         * alloc.c (staticpro):
6880         * alloc.c (staticpro_nodump):
6881         * alloc.c (garbage_collect_1):
6882         * alloc.c (reinit_alloc_once_early):
6883         * alloc.c (init_alloc_once_early):
6884         * alloc.c: Move dumper functions to alloc.c.
6885         * dumper.c (pdump_backtrace):
6886         * dumper.c (pdump_dump_structs):
6887         * dumper.c (pdump_dump_opaques):
6888         * dumper.c (pdump_dump_rtables):
6889         * dumper.c (pdump_dump_wired):
6890         * dumper.c (pdump):
6891         * dumper.c (pdump_load_check):
6892         * dumper.c (pdump_load_finish):
6893         * dumper.c (pdump_file_unmap):
6894         * dumper.c (pdump_file_get):
6895         * dumper.c (pdump_resource_free):
6896         * dumper.c (pdump_resource_get):
6897         * dumper.c (pdump_file_free):
6898         * dumper.c (pdump_file_try):
6899         * dumper.c (pdump_load):
6900         Remove fixed size limits on staticpro(), staticpro_nodump(),
6901         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
6902         Remove custom code for dumping lrecord_implementations_table - use
6903         dumpopaque instead.
6904         Remove (most of the) custom code for dumping staticpros - dump it
6905         like any other dynarr.
6906
6907         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
6908         * dumper.c: Moved functions from alloc.c.
6909         * alloc.c (dumpstruct): Moved to dumper.c.
6910         * alloc.c (dumpopaque): Likewise.
6911         * alloc.c (pdump_wire): Likewise.
6912         * alloc.c (pdump_wire_list): Likewise.
6913
6914         * lisp.h (Dynarr_sizeof): New.
6915         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
6916         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
6917         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
6918
6919         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
6920         * lisp.h (dumpopaque): ditto.
6921         * lisp.h (pdump_wire): ditto.
6922         * lisp.h (pdump_wire_list): ditto.
6923
6924 2001-01-09  Martin Buchholz  <martin@xemacs.org>
6925
6926         * make-src-depend (PrintPatternDeps):
6927         Use `sort' to make output independent of perl version.
6928
6929 2001-01-08  Martin Buchholz  <martin@xemacs.org>
6930
6931         Port to Netbsd 1.5.
6932         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
6933         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
6934
6935 2001-01-03  Didier Verna  <didier@xemacs.org>
6936
6937         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
6938         that `focus_frame' is alive before thinking of calling
6939         `redisplay_redraw_cursor' on it.
6940
6941 2001-01-08  Martin Buchholz <martin@xemacs.org>
6942
6943         * XEmacs 21.2.40 is released.
6944
6945 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
6946
6947         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
6948
6949 2001-01-06  Martin Buchholz  <martin@xemacs.org>
6950
6951         * alloc.c (dbg_valmask): Make const.
6952         * alloc.c (dbg_typemask): Make const.
6953         * alloc.c (dbg_USE_UNION_TYPE): Make const.
6954         * alloc.c (dbg_valbits): Make const.
6955         * alloc.c (dbg_gctypebits): Make const.
6956
6957 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
6958
6959         * redisplay-x.c (x_bevel_area):
6960         redisplay.h (struct rune):
6961         Typo fixes in comments.
6962
6963 2001-01-05  Andy Piper  <andy@xemacs.org>
6964
6965         * glyphs-x.c (x_redisplay_widget): use size changed for offset
6966         adjustment.
6967
6968         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
6969
6970 2001-01-05  Martin Buchholz  <martin@xemacs.org>
6971
6972         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
6973
6974         * mule-ccl.c (stack_idx_of_map_multiple):
6975         Non const global data must not be initialized!
6976         Found by MIYASHITA Hisashi.
6977
6978 2001-01-02  Andy Piper  <andy@xemacs.org>
6979
6980         * frame.c (change_frame_size): make sure frame size is always
6981         marked as changed.
6982
6983         * glyphs.c (image_instance_layout): minor code reuse.
6984
6985         * window.c (Fcurrent_window_configuration): revert previous
6986         change.
6987
6988 2001-01-02  Martin Buchholz  <martin@xemacs.org>
6989
6990         * glyphs.h:
6991         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
6992
6993 2000-12-31  Andy Piper  <andy@xemacs.org>
6994
6995         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
6996         when widget gets unmapped.
6997
6998         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
6999         function. Make sure widgets losing focus don't just drop it.
7000         (handle_focus_event_1): record the widget with focus.
7001
7002 2000-12-31  Andy Piper  <andy@xemacs.org>
7003
7004         * window.c (allocate_window): use
7005         make_image_instance_cache_hash_table.
7006         (make_dummy_parent): ditto.
7007         (Fset_window_configuration): ditto.
7008
7009         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
7010
7011         * glyphs.c (process_image_string_instantiator): use
7012         INSTANTIATOR_TYPE.
7013         (get_image_instantiator_governing_domain): ditto.
7014         (normalize_image_instantiator): ditto.
7015         (instantiate_image_instantiator): ditto.
7016         (make_image_instance_1): ditto.
7017         (image_instantiate): ditto. Key on glyph *and* instantiator type.
7018         (instantiator_eq_equal): new function for use with instance hash
7019         tables.
7020         (instantiator_eq_hash): ditto.
7021         (make_image_instance_cache_hash_table): create a suitable hash
7022         table for storing image instances.
7023
7024         * elhash.h (hash_table_weakness): new internal weakness type
7025         HASH_TABLE_KEY_CAR_VALUE_WEAK.
7026         declare new functions.
7027
7028         * elhash.c (finish_marking_weak_hash_tables): introduce yet
7029         another weakness type for glyphs.
7030         (make_standard_lisp_hash_table): new function split out from
7031         make_general_lisp_hash_table.
7032         (make_lisp_hash_table): call make_standard_lisp_hash_table.
7033         (hash_table_instantiate): ditto.
7034         (Fmake_hash_table): ditto.
7035
7036 2000-12-31  Martin Buchholz <martin@xemacs.org>
7037
7038         * XEmacs 21.2.39 is released.
7039
7040 2000-12-29  Andy Piper  <andy@xemacs.org>
7041
7042         * menubar.c (menubar_visible_p_changed): signal the frame changed.
7043
7044         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
7045         the frame has changed so that we pick up geometry changes such as
7046         menubar visibility.
7047
7048 2000-12-28  Andy Piper  <andy@xemacs.org>
7049
7050         * lastfile.c (my_ebss): make a char array so we can pad the
7051         bss. Fixes cygwin unexec.
7052
7053         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
7054
7055 2000-12-26  Andy Piper  <andy@xemacs.org>
7056
7057         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
7058         comments and try and be more precise about a non-/SIGIO world.
7059         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
7060         SIGIO.
7061
7062         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
7063         we don't normalize to zero width or height.
7064
7065 2000-12-24  Andy Piper  <andy@xemacs.org>
7066
7067         * Makefile.in.in (ldflags): add -mwindows when appropriate.
7068
7069 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
7070
7071         * s/sco5.h: SCO 5 has pty support.
7072
7073 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
7074
7075         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
7076         input-method-xlib.c contains whole contents of input-method-xfs.c,
7077         so we can use input-method-xlib.c's code for USE_XFONTSET
7078         using #ifdefs.
7079         * input-method-xfs.c: removed.
7080
7081 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
7082
7083         * file-coding.h (enum coding_category_type): reorder enumerators to
7084         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
7085         (now one greater than largest real coding_category_type enumerator).
7086         * file-coding.c (coding_category_symbol, coding_category_by_priority,
7087         coding_category_system, fcd_descriptihon_1, decode_coding_category,
7088         Fcoding_category_list, Fset_coding_priority_list,
7089         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
7090         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
7091
7092 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7093
7094         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
7095         * redisplay-output.c (redisplay_output_window): Clear top of window
7096         when face is changed.
7097         * redisplay-x.c (x_redraw_exposed_window): Call
7098         redisplay_clear_top_of_window.
7099         * redisplay.h: Publish redisplay_clear_top_of_window.
7100
7101 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
7102
7103         * buffer.c (Fkill_buffer): Map over all devices.
7104         * window.c (window_loop): Remove UNSHOW_BUFFER code.
7105         (list_windows): New function.
7106         (list_all_windows): Ditto.
7107         (Freplace_buffer_in_windows): Use them.
7108
7109 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
7110
7111         * database.c (berkdb_subtype): Recognize new subtype `queue'.
7112         (Fopen_database): Use `db_create' instead of `db_open'.
7113         (syms_of_database): Initialize Qqueue.
7114
7115 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7116
7117         * buffer.c (common_init_complex_vars_of_buffer): Initialize
7118         buffer_local_face_property.
7119         * buffer.h (struct buffer): New member buffer_local_face_property.
7120         * window.c (Fset_window_buffer):  Mark window's face as changed
7121         when buffer has buffer local face.
7122         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
7123         * objects.c (color_after_change): Set buffer_local_face_property
7124         when locale of face specifier is buffer.
7125         * objects.c (font_after_change): Ditto.
7126         * objects.c (face_boolean_after_change): Ditto.
7127         * glyphs.c (image_after_change): Ditto.
7128
7129 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7130
7131         * nt.c (mswindows_fstat): Report file permissions, volume serial
7132         number, etc. Code adapted from FSF Emacs 20.7.
7133
7134 2000-12-09  Dan Holmsand  <dan@eyebee.com>
7135
7136         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
7137         of stat when we don't have symbolic links, to make sure
7138         mswindows_stat is called on mswindows.
7139
7140 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7141
7142         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
7143
7144 2000-12-12  Martin Buchholz  <martin@xemacs.org>
7145
7146         * doprnt.c (emacs_doprnt_1): More printing fixes.
7147         Make printing of numbers compatible with libc and FSF Emacs.
7148         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
7149         Use the system printf to do most of the hard work of formatting,
7150         instead of doprnt_1().
7151         Calculate memory to allocate for format string.
7152         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
7153         (doprnt_1): Cleaner code and documentation.
7154
7155 2000-12-01  Jerry James  <james@eecs.ukans.edu>
7156
7157         * Makefile.in.in: Use the loop variable to install headers.
7158
7159 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7160
7161         * window.c (Fsplit_window): Don't invalidate face cache.
7162
7163 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7164
7165         * minibuf.c (Fall_completions): Undo the previous change
7166         which removed checking elements start with space.
7167
7168 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7169
7170         * mule-canna.c: Didier suppression.
7171
7172 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
7173
7174         * mule-canna.c: rename static unsigned char buf[] to key_buffer
7175         (warning suppression).  Add English comment translations.
7176
7177 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7178
7179         * unexelfsgi.c (unexec): Better test for mmap failure.
7180
7181 2000-12-05  Martin Buchholz <martin@xemacs.org>
7182
7183         * XEmacs 21.2.38 is released.
7184
7185 2000-12-05  Martin Buchholz  <martin@xemacs.org>
7186
7187         * redisplay.c (bar-cursor): Make a user variable.
7188
7189         * symsinit.h: Add init_postgresql_from_environment.
7190
7191 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
7192
7193         * regex.c: Convert to clean C.
7194
7195 2000-12-05  Dan Holmsand  <dan@eyebee.com>
7196
7197         * realpath.c:
7198         Don't #include sysfile.h. Revert to duplicating PATH_MAX
7199         initialization.
7200         (sys_readlink): renamed to system_readlink to avoid conflict with
7201         the other sys_readlink.
7202
7203 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
7204
7205         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
7206
7207 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
7208
7209         * postgresql.c (init_postgresql_from_environment): new function.
7210         (vars_of_postgresql): Move code initializing Lisp variables out and
7211         into init_postgresql_from_environment.
7212         emacs.c (main_1): Call init_postgresql_from_environment if and only
7213         if running a dumped XEmacs.
7214
7215 2000-08-31  Dan Holmsand  <dan@eyebee.com>
7216
7217         * buffer.c: Make find-file-compare-truenames default to true on
7218         windows.
7219
7220         * realpath.c (win32_abs_start):
7221         (cygwin_readlink):
7222         (win32_readlink): New functions.
7223         (xrealpath): Return really real filenames on windows.
7224
7225         * fileio.c (Ffile_truename): Make file-truename work on windows.
7226
7227 2000-11-29  Didier Verna  <didier@xemacs.org>
7228
7229         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
7230         * faces.c (update_face_cachel_data): use it.
7231         * faces.c (add_face_cachel): use it. Complete background pixmap
7232         frobbing in face cache if `update_face_cachel_data' has not done so.
7233
7234 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
7235
7236         * search.c (string_match_1): Don't set last_thing_searched
7237         when search failed.
7238
7239 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
7240
7241         * buffer.c: Include casetab.h
7242         (common_init_complex_vars_of_buffer): Use new case-table object.
7243         * buffer.h: Include casetab.h
7244         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
7245         (DOWNCASE_TABLE_OF): Ditto.
7246         * bufslots.h: Remove char-tables and add case-table.
7247         * casetab.c: Include casetab.h
7248         (CASE_TABLE_P): Removed.
7249         (mark_case_table): New function.
7250         (allocate_case_table): New function.
7251         (Fcase_table_p): Use new case-table.
7252         (case_table_char): New function.
7253         (Fget_case_table): Ditto.
7254         (Fput_case_table): Ditto.
7255         (Fput_case_table_pair): Ditto.
7256         (Fcopy_case_table): Ditto.
7257         (Fcurrent_case_table): Return case-table.
7258         (Fstandard_case_table): Return case-table.
7259         (Fset_case_table): Fix doc-string.
7260         (set_case_table): Use case-table
7261         (syms_of_casetab): DEFSUBR new functions.
7262         (complex_vars_of_casetab): Set up standard case-table.
7263         * casetab.h: New file.
7264         * editfns.c: Include casetab.h
7265         (Fcompare_buffer_substrings): Use case-table.
7266         * inline.c: Include casetab.h
7267         * lisp.h: Remove bogus extern.
7268         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
7269         * search.c: Include casetab.h
7270         (TRANSLATE_ASCII): Removed.
7271         (TRANSLATE): Unconditionally translate character.
7272         (looking_at_1): Use case-table.
7273         (string_match_1): Ditto.
7274         (fast_string_match): Ditto.
7275         (search_command): Ditto.
7276         (search_buffer): Separate boyer_moore.  Check whether
7277         boyer_moore is possible.
7278         (simple_search): New function.
7279         (boyer_moore): Separated from search_buffer. Translate char.
7280
7281 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
7282
7283         * regex.c (RE_TR_ASCII): Removed.
7284         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
7285         (PATFETCH): Call PATFETCH_RAW.
7286         (PATFETCH_RAW): Fetch Emchar.
7287         (PATUNFETCH): Decrement charptr.
7288         (GET_BUFFER_SPACE): Rename b to buf_end.
7289         (BUF_PUSH): Ditto.
7290         (BUF_PUSH_2): Ditto.
7291         (BUF_PUSH_3): Ditto.
7292         (EXTEND_BUFFER): Ditto.
7293         (SET_LIST_BIT): Ditto.
7294         (regex_compile): Ditto.  Translate non ASCII char.
7295         (compile_range): Ditto.
7296         (re_search_2): Ditto.
7297         (re_match_2_internal): Compare Emchar.
7298         (bcmp_translate): Ditto.
7299
7300 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
7301
7302         * lisp.h (basic char/int typedefs):  comment improvement.
7303
7304 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
7305
7306         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
7307         unstomp inhibit_site_lisp.  Improve comments.
7308
7309 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
7310
7311         * mule-charset.c (Fcharset_property):  improve type checking, comments.
7312
7313 2000-11-28  Andy Piper  <andy@xemacs.org>
7314
7315         * redisplay-output.c (redisplay_output_subwindow): make sure we do
7316         clipped display for windows in the gutter also.
7317         (redisplay_display_boxes_in_window_p): change semantics of return
7318         codes to be more intuitive.
7319
7320         * gutter.h: declare display_boxes_in_gutter_p.
7321
7322         * gutter.c (display_boxes_in_gutter_p): new function for
7323         redisplay.
7324
7325 2000-11-22  Andy Piper  <andy@xemacs.org>
7326
7327         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
7328         autodetect domain.
7329
7330 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
7331
7332         * callproc.c (Fold_call_process_internal):
7333         * gpm.c (Freceive_gpm_event):
7334         (tty_get_foreign_selection): Might be just warning supression.
7335         * fileio.c (Fwrite_region_internal):
7336         (Fset_visited_file_modtime):
7337         * keymap.c (event_matches_key_specifier_p):
7338         Initialize GCPROed variable.
7339
7340         * menubar-x.c (command_builder_find_menu_accelerator):
7341         Initialize before use.
7342
7343 2000-11-23  Andy Piper  <andy@xemacs.org>
7344
7345         * unexcw.c (unexec): make the resulting executable executable.
7346
7347 2000-11-21  Martin Buchholz  <martin@xemacs.org>
7348
7349         * doc.c (get_doc_string):
7350         Use size_t, not int, for result of XSTRING_LENGTH.
7351
7352         * cmds.c (Fdelete_char):
7353         * cmds.c (Fpoint_at_eol):
7354         * cmds.c (Fself_insert_command):
7355         Use EMACS_INT, not int, for result of XINT.
7356         Someday, someone will want to insert more than 2**31 identical characters.
7357
7358         * cmds.c (Fdelete_char):
7359         * cmds.c (Fdelete_backward_char):
7360         * syntax.c (Fforward_word):
7361         * syntax.c (Fforward_comment):
7362         Make COUNT argument optional, for consistency with forward-char et al.
7363
7364 2000-11-22  Martin Buchholz  <martin@xemacs.org>
7365
7366         * lisp.h:
7367         * print.c (long_to_string):
7368         Return a useful value: the pointer at end of data written.
7369
7370         * doprnt.c:
7371         Use `static const char * const' for constant strings.
7372         (union printf_arg): Delete `i', `ui' members.
7373         (get_doprnt_args):
7374         (emacs_doprnt_1):
7375         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
7376         Do all printf-ing via the `l' specifier.
7377         Use EMACS_INT instead of int.
7378         Optimize.
7379
7380 2000-11-20  Didier Verna  <didier@xemacs.org>
7381
7382         * faces.c (update_face_cachel_data): don't frob the background
7383         pixmap when the window is being created. The face is needed but
7384         does not exist yet.
7385
7386 2000-11-20  Andy Piper  <andy@xemacs.org>
7387
7388         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
7389         messing with a debug environment.
7390
7391 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7392
7393         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
7394
7395 2000-11-20  Martin Buchholz  <martin@xemacs.org>
7396
7397         * casetab.c (Fcase_table_p): Fix compile error and crash.
7398
7399 2000-11-18  Philip Aston  <philipa@mail.com>
7400
7401         * s/cygwin32.h: Cygwin has SVR4-like pty support.
7402
7403 2000-11-18  Martin Buchholz  <martin@xemacs.org>
7404
7405         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
7406         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
7407
7408 2000-11-17  Martin Buchholz  <martin@xemacs.org>
7409
7410         * config.h.in: Define HAVE_ELF_H if elf.h exists.
7411         * unexelf.c: Use HAVE_ELF_H.
7412         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
7413         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
7414         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
7415         Greg Harrington <greg_harrington@hotmail.com> provided a machine
7416         for testing.
7417         So this is an unexelfsgi.c from a different line of development.
7418
7419 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7420
7421         * regex.c (RE_TR_ASCII): New function.
7422         (RE_TRANSLATE): Call it.
7423
7424 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
7425
7426         * buffer.h (TRT_TABLE_OF): Remove assert.
7427         (IN_TRT_TABLE_DOMAIN): Removed.
7428
7429 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7430
7431         * free-hook.c (log_gcpro):
7432         (show_gcprohist): Add support for GCPRO5.
7433
7434 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
7435
7436         * emacs.c (main_1): Improve -sd error message when --pdump=no.
7437
7438 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
7439
7440         * symeval.h: Declare flush_all_buffer_local_cache.
7441
7442         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
7443         (flush_buffer_local_cache): Added.
7444         (flush_all_buffer_local_cache): Added.
7445
7446         * lrecord.h: Remove unused XD_LO_RESET_NIL.
7447
7448         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
7449         (pdump_dump_data): Ditto.
7450         (pdump_reloc_one): Ditto.
7451         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
7452         before dumping.
7453
7454
7455 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7456
7457         * buffer.c: Remove if 0'ed entry.
7458         * buffer.h: Rewrite TRT to use char-table.
7459         * bufslots.h: Remove mirror tables.
7460         * casetab.c: Remove mirror tables.
7461         (CASE_TABLE_P): New macro.
7462         (Fcase_table_p): Element of a case table is string or char-table.
7463         (make_mirror_trt_table): Removed.
7464         (set_case_table): Setup char-table from strings for backward
7465         compatibility.
7466         * dired.c (Fdirectory_files):
7467         * dired-msw.c: (mswindows_get_files):
7468         * lisp.h: Change prototype of re_pattern_buffer.
7469         * regex.c: (RE_TRANSLATE): New macro.
7470         (TRANSLATE_P): Ditto.
7471         Change translate to type RE_TRANSLATE_TYPE.
7472         * regex.h: Define RE_TRANSLATE_TYPE
7473         * search.c (TRANSLATE): New macro.
7474         (TRANSLATE_ASCII): New macro.
7475         Translate table is changed to Lisp_Object.
7476         (signal_failure): Inhibit return.
7477
7478 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
7479
7480         * device-msw.c:
7481         * eldap.c:
7482         * event-Xt.c:
7483         * event-stream.c:
7484         * print.c:
7485         Do UNGCPRO before return.
7486
7487 2000-11-14  Martin Buchholz <martin@xemacs.org>
7488
7489         * XEmacs 21.2.37 is released.
7490
7491 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
7492
7493         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
7494         Add comments about discarded return value.
7495
7496 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
7497
7498         * callint.c:
7499         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
7500
7501 2000-10-27  Andy Piper  <andy@xemacs.org>
7502
7503         * gutter.c (Fset_default_gutter_position): default left and right
7504         gutters to visible.
7505         (calculate_gutter_size): calculate resonable heuristic for left
7506         and right gutter sizes.
7507         (specifier_vars_of_gutter): change left and right gutter sizes to
7508         autodetect.
7509         (calculate_gutter_size_from_display_lines): new function.
7510         (output_gutter): check for resizing on left and right gutters.
7511         (clear_gutter): don't special case top and left gutters.
7512         (specifier_vars_of_gutter): use new signature for
7513         set_specifier_caching.
7514
7515         * glyphs-x.c (x_redisplay_widget): spelling fix.
7516         * glyphs.c (specifier_vars_of_glyphs):
7517         * menubar.c (specifier_vars_of_menubar):
7518         * redisplay.c (specifier_vars_of_redisplay):
7519         * toolbar.c (specifier_vars_of_toolbar):
7520         * window.c (specifier_vars_of_window):
7521         * scrollbar.c (specifier_vars_of_scrollbar):
7522         (complex_vars_of_scrollbar): use new signature for
7523         set_specifier_caching.
7524
7525         * specifier.c (set_specifier_caching): include recompute flag.
7526         (recompute_one_cached_specifier_in_window): always recompute if
7527         flag set.
7528         (recompute_one_cached_specifier_in_frame): ditto.
7529
7530         * specifier.h (struct specifier_caching): add recompute flag.
7531
7532 2000-10-24  Andy Piper  <andy@xemacs.org>
7533
7534         * unexcw.c (copy_executable_and_dump_data_section): add new
7535         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
7536         5.0 happy.
7537
7538 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7539
7540         * console-x.h (x_device): New member modifier_release_time.
7541         * event-Xt.c (x_handle_sticky_modifiers):
7542         Bound interval modifier keys are sticky.
7543         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
7544         * events.h: extern it.
7545
7546 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7547
7548         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
7549
7550 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
7551
7552         * event-stream.c (execute_command_event): Preserve current_events
7553         and the like when event is misc-user-event.
7554         Inhibit quit during the call to maybe_echo_keys.
7555
7556 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
7557
7558         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
7559         symlink when buffer is killed.
7560         (inhibit_clash_detection): New variable.
7561
7562 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7563
7564         * console.c (Fset_input_method): Trigger redisplay on tty.
7565
7566 2000-11-07  Martin Buchholz  <martin@xemacs.org>
7567
7568         * process.c (Fprocess_status): Revert to previous behavior:
7569         (process-status "nosuchprocess") ==> nil
7570
7571 2000-11-06  Martin Buchholz  <martin@xemacs.org>
7572
7573         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
7574         Work around another GCC 2.95.2 optimizer bug.
7575
7576 2000-11-02  Martin Buchholz  <martin@xemacs.org>
7577
7578         * process.c (Fget_process): Use LIST_LOOP_2.
7579         (kill_buffer_processes): Use LIST_LOOP_2.
7580
7581         * minibuf.c (Fall_completions):
7582         Delete old non-functional code for FSF fourth argument.
7583
7584         * frame.c (frame_matches_frame_spec):
7585         Renamed from `frame_matches_frametype'.  Update all callers.
7586         (device_matches_device_spec):
7587         Renamed from 'device_matches_console_spec'.  Update all callers.
7588
7589         * doc.c (Fsubstitute_command_keys):
7590         Remove buffer overflow crash.  Small code cleanups.
7591
7592         * casetab.c (check_case_table): Simpler code.
7593
7594         * window.c (Freplace_buffer_in_windows):
7595         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
7596         (and similar implementation) as Fdelete_windows_on.
7597         Update all callers.
7598
7599         * alloc.c (Fmake_list):
7600         * alloc.c (make_vector):
7601         * alloc.c (Fmake_vector):
7602         * alloc.c (make_bit_vector):
7603         * alloc.c (Fmake_bit_vector):
7604         * alloc.c (Fbit_vector):
7605         * alloc.c (Fmake_string):
7606         * alloc.c (Fpurecopy):
7607         * alloc.c (Fmemory_limit):
7608         * buffer.c:
7609         * buffer.c (Fget_buffer):
7610         * buffer.c (Fkill_buffer):
7611         * buffer.c (complex_vars_of_buffer):
7612         * bytecode.c (Fcompiled_function_stack_depth):
7613         * callint.c (Fprefix_numeric_value):
7614         * event-stream.c:
7615         * event-stream.c (Fread_key_sequence):
7616         * casetab.c:
7617         * casetab.c (Fcase_table_p):
7618         * casetab.c (check_case_table):
7619         * casetab.c (Fset_case_table):
7620         * casetab.c (Fset_standard_case_table):
7621         * chartab.c:
7622         * chartab.c (Fchar_table_type):
7623         * chartab.c (Freset_char_table):
7624         * chartab.c (Fget_char_table):
7625         * chartab.c (Fget_range_char_table):
7626         * chartab.c (Fput_char_table):
7627         * chartab.c (Fmap_char_table):
7628         * chartab.c (Fcategory_table_p):
7629         * chartab.c (Fcheck_category_at):
7630         * chartab.c (Fchar_in_category_p):
7631         * chartab.c (Fcategory_table):
7632         * chartab.c (Fcopy_category_table):
7633         * chartab.c (Fset_category_table):
7634         * chartab.c (Fcategory_designator_p):
7635         * chartab.c (Fcategory_table_value_p):
7636         * cmds.c (Fdelete_char):
7637         * cmds.c (Fdelete_backward_char):
7638         * cmds.c (Fself_insert_command):
7639         * cmds.c (Fself_insert_internal):
7640         * console.c (Fvalid_console_type_p):
7641         * console.c (Fcdfw_console):
7642         * console.c (Fconsole_type):
7643         * console.c (Fconsole_name):
7644         * console.c (Fconsole_device_list):
7645         * console.c (Fconsole_on_window_system_p):
7646         * data.c:
7647         * data.c (Feq):
7648         * data.c (Fold_eq):
7649         * data.c (Fsubr_interactive):
7650         * data.c (Fchar_to_int):
7651         * data.c (Fint_to_char):
7652         * data.c (Fsetcar):
7653         * data.c (Fsetcdr):
7654         * data.c (Fnumber_to_string):
7655         * data.c (Fstring_to_number):
7656         * data.c (Frem):
7657         * database.c (mark_database):
7658         * database.c (finalize_database):
7659         * database.c (Fdatabase_live_p):
7660         * database.c (Fdatabasep):
7661         * device-x.c (Fx_get_resource):
7662         * device.c (Fdfw_device):
7663         * dired.c:
7664         * dired.c (Ffile_name_completion):
7665         * dired.c (Ffile_name_all_completions):
7666         * dired.c (Fuser_name_completion):
7667         * dired.c (Fuser_name_completion_1):
7668         * dired.c (Fuser_name_all_completions):
7669         * doc.c (Fdocumentation):
7670         * doc.c (Fdocumentation_property):
7671         * doc.c (Fsubstitute_command_keys):
7672         * editfns.c:
7673         * editfns.c (Fchar_to_string):
7674         * editfns.c (Fstring_to_char):
7675         * editfns.c (Ftemp_directory):
7676         * editfns.c (Finsert_char):
7677         * editfns.c (Fbuffer_substring_no_properties):
7678         * editfns.c (Fnarrow_to_region):
7679         * editfns.c (Fchar_equal):
7680         * editfns.c (Fchar_Equal):
7681         * editfns.c (Ftranspose_regions):
7682         * emacs.c (Fdump_emacs):
7683         * eval.c (Fthrow):
7684         * eval.c (Fcommand_execute):
7685         * eval.c (Fautoload):
7686         * eval.c (Fbacktrace):
7687         * eval.c (Fbacktrace_frame):
7688         * events.c:
7689         * events.c (Fcopy_event):
7690         * events.c (Fcharacter_to_event):
7691         * events.c (Fevent_button):
7692         * events.c (Fevent_process):
7693         * extents.c:
7694         * extents.c (Fnext_extent_change):
7695         * extents.c (Fextent_property):
7696         * faces.c (Ffacep):
7697         * faces.c (Fmake_face):
7698         * file-coding.c:
7699         * file-coding.c (Fencode_shift_jis_char):
7700         * file-coding.c (Fencode_big5_char):
7701         * fileio.c (Ffile_name_directory):
7702         * fileio.c (Ffile_name_nondirectory):
7703         * fileio.c (Ffile_name_as_directory):
7704         * fileio.c (Fdirectory_file_name):
7705         * fileio.c (Ffile_truename):
7706         * fileio.c (Fsubstitute_in_file_name):
7707         * fileio.c (Ffile_modes):
7708         * fileio.c (Fset_file_modes):
7709         * fileio.c (Fset_default_file_modes):
7710         * fileio.c (Fverify_visited_file_modtime):
7711         * floatfns.c (Facos):
7712         * floatfns.c (Fasin):
7713         * floatfns.c (Fatan):
7714         * floatfns.c (Fcos):
7715         * floatfns.c (Fsin):
7716         * floatfns.c (Ftan):
7717         * floatfns.c (Fbessel_j0):
7718         * floatfns.c (Fbessel_j1):
7719         * floatfns.c (Fbessel_jn):
7720         * floatfns.c (Fbessel_y0):
7721         * floatfns.c (Fbessel_y1):
7722         * floatfns.c (Fbessel_yn):
7723         * floatfns.c (Ferf):
7724         * floatfns.c (Ferfc):
7725         * floatfns.c (Flog_gamma):
7726         * floatfns.c (Fexp):
7727         * floatfns.c (Fexpt):
7728         * floatfns.c (Flog):
7729         * floatfns.c (Flog10):
7730         * floatfns.c (Fsqrt):
7731         * floatfns.c (Fcube_root):
7732         * floatfns.c (Facosh):
7733         * floatfns.c (Fasinh):
7734         * floatfns.c (Fatanh):
7735         * floatfns.c (Fcosh):
7736         * floatfns.c (Fsinh):
7737         * floatfns.c (Ftanh):
7738         * floatfns.c (Fabs):
7739         * floatfns.c (Ffloat):
7740         * floatfns.c (Flogb):
7741         * floatfns.c (Fceiling):
7742         * floatfns.c (Ffloor):
7743         * floatfns.c (Fround):
7744         * floatfns.c (Ftruncate):
7745         * floatfns.c (Ffceiling):
7746         * floatfns.c (Fffloor):
7747         * floatfns.c (Ffround):
7748         * floatfns.c (Fftruncate):
7749         * fns.c (Fstring_equal):
7750         * fns.c (Fstring_lessp):
7751         * fns.c (concat2):
7752         * fns.c (concat3):
7753         * fns.c (vconcat2):
7754         * fns.c (vconcat3):
7755         * fns.c (Fsubstring):
7756         * fns.c (Fassoc):
7757         * fns.c (Fold_assoc):
7758         * fns.c (assoc_no_quit):
7759         * fns.c (Fassq):
7760         * fns.c (Fold_assq):
7761         * fns.c (assq_no_quit):
7762         * fns.c (Frassoc):
7763         * fns.c (Fold_rassoc):
7764         * fns.c (Frassq):
7765         * fns.c (Fold_rassq):
7766         * fns.c (rassq_no_quit):
7767         * fns.c (Fremassoc):
7768         * fns.c (remassoc_no_quit):
7769         * fns.c (Fremassq):
7770         * fns.c (remassq_no_quit):
7771         * fns.c (Fremrassoc):
7772         * fns.c (Fremrassq):
7773         * fns.c (remrassq_no_quit):
7774         * fns.c (Fsort):
7775         * fns.c (Fplist_get):
7776         * fns.c (Fplist_put):
7777         * fns.c (Fplist_remprop):
7778         * fns.c (Fplist_member):
7779         * fns.c (Flax_plist_get):
7780         * fns.c (Flax_plist_put):
7781         * fns.c (Flax_plist_remprop):
7782         * fns.c (Flax_plist_member):
7783         * fns.c (Fequal):
7784         * fns.c (Fold_equal):
7785         * fns.c (Frequire):
7786         * fns.c (Fbase64_encode_region):
7787         * fns.c (Fbase64_encode_string):
7788         * fns.c (Fbase64_decode_region):
7789         * frame.c:
7790         * frame.c (frame_matches_frame_spec):
7791         * frame.c (device_matches_device_spec):
7792         * frame.c (next_frame):
7793         * frame.c (previous_frame):
7794         * frame.c (Fnext_frame):
7795         * frame.c (Fprevious_frame):
7796         * frame.c (Fframe_property):
7797         * frame.c (Fset_frame_height):
7798         * frame.c (Fset_frame_size):
7799         * frame.h:
7800         * glyphs.c:
7801         * glyphs.c (if):
7802         * glyphs.c (decode_error_behavior_flag):
7803         * glyphs.c (Fmake_image_instance):
7804         * indent.c (Findent_to):
7805         * intl.c (Fignore_defer_gettext):
7806         * keymap.c (Fkeymapp):
7807         * keymap.c (Flookup_key):
7808         * lread.c:
7809         * lread.c (Fload_internal):
7810         * lread.c (Feval_buffer):
7811         * lread.c (Feval_region):
7812         * macros.c (Fexecute_kbd_macro):
7813         * marker.c (set_marker_internal):
7814         * marker.c (Fset_marker):
7815         * marker.c (set_marker_restricted):
7816         * marker.c (Fcopy_marker):
7817         * marker.c (noseeum_copy_marker):
7818         * menubar.c:
7819         * menubar.c (Fpopup_menu):
7820         * minibuf.c:
7821         * mule-charset.c (Fcharset_name):
7822         * mule-charset.c (Fchar_charset):
7823         * mule-charset.c (Fchar_octet):
7824         * mule-charset.c (Fsplit_char):
7825         * mule-wnnfns.c (Fwnn_open):
7826         * mule-wnnfns.c (Fwnn_dict_comment):
7827         * mule-wnnfns.c (Fwnn_quit_henkan):
7828         * mule-wnnfns.c (Fwnn_word_toroku):
7829         * mule-wnnfns.c (Fwnn_word_sakujo):
7830         * mule-wnnfns.c (Fwnn_word_use):
7831         * mule-wnnfns.c (Fwnn_hindo_set):
7832         * objects.c:
7833         * objects.c (Fmake_color_instance):
7834         * objects.c (Fmake_font_instance):
7835         * print.c (Fwrite_char):
7836         * process.c:
7837         * process.c (mark_process):
7838         * process.c (print_process):
7839         * process.c (get_process_from_usid):
7840         * process.c (Fprocessp):
7841         * process.c (Fprocess_live_p):
7842         * process.c (Fget_process):
7843         * process.c (Fget_buffer_process):
7844         * process.c (get_process):
7845         * process.c (Fprocess_id):
7846         * process.c (Fprocess_name):
7847         * process.c (Fprocess_command):
7848         * process.c (init_process_io_handles):
7849         * process.c (start_process_unwind):
7850         * process.c (Fstart_process_internal):
7851         * process.c (Fopen_multicast_group_internal):
7852         * process.c (Fset_process_window_size):
7853         * process.c (read_process_output):
7854         * process.c (send_process):
7855         * process.c (Fprocess_tty_name):
7856         * process.c (Fset_process_buffer):
7857         * process.c (Fprocess_buffer):
7858         * process.c (Fprocess_mark):
7859         * process.c (set_process_filter):
7860         * process.c (Fset_process_filter):
7861         * process.c (Fprocess_filter):
7862         * process.c (Fprocess_send_region):
7863         * process.c (Fprocess_send_string):
7864         * process.c (exec_sentinel):
7865         * process.c (Fset_process_sentinel):
7866         * process.c (Fprocess_sentinel):
7867         * process.c (status_notify):
7868         * process.c (Fprocess_status):
7869         * process.c (Fprocess_exit_status):
7870         * process.c (process_send_signal):
7871         * process.c (Fprocess_send_eof):
7872         * process.c (deactivate_process):
7873         * process.c (remove_process):
7874         * process.c (Fdelete_process):
7875         * process.c (kill_buffer_processes):
7876         * process.c (Fprocess_kill_without_query):
7877         * process.c (Fprocess_kill_without_query_p):
7878         * rangetab.c:
7879         * rangetab.c (Fget_range_table):
7880         * rangetab.c (Fput_range_table):
7881         * rangetab.c (Fremove_range_table):
7882         * rangetab.c (Fclear_range_table):
7883         * search.c:
7884         * search.c (Fskip_chars_forward):
7885         * search.c (Fskip_chars_backward):
7886         * search.c (Fskip_syntax_forward):
7887         * search.c (Fskip_syntax_backward):
7888         * search.c (search_command):
7889         * search.c (Freplace_match):
7890         * search.c (Fregexp_quote):
7891         * select.c (Fown_selection_internal):
7892         * select.c (Fselection_owner_p):
7893         * select.c (Fselection_exists_p):
7894         * select.c (Fget_selection_internal):
7895         * specifier.c:
7896         * symbols.c:
7897         * symbols.c (Fintern):
7898         * symbols.c (Fintern_soft):
7899         * symbols.c (Funintern):
7900         * symbols.c (Fapropos_internal):
7901         * symbols.c (Fset_default):
7902         * syntax.c:
7903         * syntax.c (Fsyntax_table_p):
7904         * syntax.c (Fcopy_syntax_table):
7905         * syntax.c (Fset_syntax_table):
7906         * syntax.c (Fchar_syntax):
7907         * syntax.c (syntax_match):
7908         * syntax.c (Fmatching_paren):
7909         * syntax.c (Fforward_word):
7910         * syntax.c (scan_lists):
7911         * syntax.c (Fscan_lists):
7912         * syntax.c (Fscan_sexps):
7913         * syntax.c (Fparse_partial_sexp):
7914         * toolbar.c (Fcheck_toolbar_button_syntax):
7915         * tooltalk.doc:
7916         * window.c:
7917         * window.c (Fwindowp):
7918         * window.c (Fwindow_live_p):
7919         * window.c (Fwindow_point):
7920         * window.c (Fdelete_window):
7921         * window.c (Fnext_window):
7922         * window.c (Fprevious_window):
7923         * window.c (Fother_window):
7924         * window.c (window_loop):
7925         * window.c (Fget_lru_window):
7926         * window.c (Fsplit_window):
7927         * window.c (Fenlarge_window):
7928         * window.c (Fenlarge_window_pixels):
7929         * window.c (Fshrink_window):
7930         * window.c (Fshrink_window_pixels):
7931         * window.c (change_window_height):
7932         * window.c (Fwindow_configuration_p):
7933         * window.c (Fcurrent_window_configuration):
7934         * window.h:
7935         * casefiddle.c (casify_object):
7936         * casefiddle.c (Fupcase):
7937         * casefiddle.c (Fdowncase):
7938         * casefiddle.c (Fcapitalize):
7939         * casefiddle.c (Fupcase_initials):
7940         * casefiddle.c (casify_region_internal):
7941         * casefiddle.c (casify_region):
7942         * casefiddle.c (Fupcase_region):
7943         * casefiddle.c (Fdowncase_region):
7944         * casefiddle.c (Fcapitalize_region):
7945         * casefiddle.c (Fupcase_initials_region):
7946         * casefiddle.c (Fupcase_word):
7947         * casefiddle.c (Fdowncase_word):
7948         * casefiddle.c (Fcapitalize_word):
7949         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
7950         Replace 0 with '\0' when working with bytes.
7951         Replace initial "(" with "\(" in docstrings.
7952
7953 2000-11-01  Martin Buchholz  <martin@xemacs.org>
7954
7955         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
7956
7957         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
7958
7959 2000-10-31  Martin Buchholz  <martin@xemacs.org>
7960
7961         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
7962
7963 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7964
7965         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
7966         correctly.
7967
7968 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
7969
7970         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
7971         (inhibit_auto_save_session): New variable.
7972         (vars_of_fileio): Declare and initialize them.
7973         * fileio.c (Fdo_auto_save): Don't create session file if
7974         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
7975
7976 2000-10-31  Martin Buchholz  <martin@xemacs.org>
7977
7978         * sgiplay.c (play_internal): C++ compilability.
7979         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
7980         * callproc.c (Fold_call_process_internal):
7981         Remove unused vars `env', `first'.
7982         * scrollbar.c (update_scrollbar_instance):
7983         #### unused var `current_window'.
7984         * redisplay-tty.c: Put currently unused vars insert_mode_on,
7985         etc. within #ifdef NOT_YET.
7986         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
7987         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
7988         * specifier.c (specifier_instance):
7989         #### unused var `tag'.
7990         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
7991
7992 2000-10-27  Martin Buchholz  <martin@xemacs.org>
7993
7994         * fns.c (Fbutlast):
7995         * fns.c (list_sort):
7996         * fns.c (Ffillarray):
7997         * fns.c (bytecode_nconc2):
7998         * fns.c (Fnconc):
7999         * fns.c (mapcar1):
8000         * fns.c (Fmapconcat):
8001         Be pedantically 64-bit correct.  For the time when someone will
8002         want to have a list with length > 2**32.
8003
8004         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
8005         Work around MIPSpro compiler bug.
8006
8007         * process-unix.c (unix_kill_child_process): Add snarky comment.
8008         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
8009
8010         * config.h.in: Oops, _getpt ==> _getpty
8011
8012 2000-10-26  Martin Buchholz  <martin@xemacs.org>
8013
8014         * config.h.in:
8015         * regex.c:
8016         Use void*, not char*, as return type of alloca().
8017
8018         * alloc.c (free_marker): Side effect inside assert expression!
8019
8020 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
8021
8022         * mule-charset.c (Fset_charset_ccl_program): To check
8023         if the given ccl program is valid, use setup_ccl_program()
8024         instead of CHECK_VECTOR().
8025         (Fmake_charset): Likewise.
8026
8027 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
8028
8029         * faces.c (get_extent_fragment_face_cache_index):
8030         Fix cachel.merged_faces memory leak.
8031
8032 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
8033
8034         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
8035         Reset MSB of octets obtained by DECODE_SJIS
8036         because of the incompatibility with Emacs.
8037         (ccl_driver)<CCL_ENCODE_SJIS>:
8038         Set MSB of octets before passing them to
8039         ENCODE_SJIS because of the incompatibility
8040         with Emacs.
8041
8042 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
8043
8044         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
8045         (DECLARE_LRECORD): Undo the last change.
8046         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
8047
8048 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
8049
8050         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
8051         the implementation to lrecord_implementations_table.
8052
8053 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
8054
8055         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
8056         initial value of `lrecord_type_##c_name' and
8057         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
8058         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
8059         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
8060         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
8061         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
8062
8063 2000-10-17  Martin Buchholz  <martin@xemacs.org>
8064
8065         * miscplay.c (sndcnv8S_2mono):
8066         (sndcnv2monounsigned):
8067         (sndcnvULaw_2linear):
8068         (sndcnv16swap):
8069         Remove implementation-defined behavior.
8070
8071 2000-10-12  Martin Buchholz  <martin@xemacs.org>
8072
8073         * input-method-xlib.c: Warning suppression.
8074
8075 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
8076
8077         * mule-ccl.c: Sync up with Emacs 21.0.90.
8078         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
8079         Do nothing.
8080         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
8081         Likewise.
8082         (ccl_driver[WriteMultibyteChar2]): Bug fix.
8083         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
8084         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
8085         leading char belongs to official 2-dimensional charset.
8086         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
8087         write the given character as is.  Otherwise,
8088         if it is a multibyte char, convert it by
8089         non_ascii_set_charptr_emchar, then write it.
8090         (CCL_WRITE_STRING): Likewise.
8091         (ccl_get_compiled_code): New function.
8092         (setup_ccl_program): When ccl_prog is invalid,
8093         return -1.
8094         (Fregister_code_conversion_map): New function.
8095         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
8096
8097         * mule-ccl.h: Sync up with Emacs 21.0.90.
8098         (Fregister_ccl_program): export it.
8099
8100         * redisplay-msw.c (separate_textual_runs):
8101         If ccl program is not valid, don't do ccl conversion.
8102
8103         * redisplay-x.c (separate_textual_runs): Ditto.
8104
8105         * file-coding.c (Fmake_coding_system):
8106         When type is ccl and value is vector, register it
8107         with a proper symbol.  And checks whether the
8108         given ccl program is valid.
8109         (mule_decode): When calling ccl_driver, if src indicates
8110         NULL pointer, set an empty string instead.
8111         (mule_encode): Likewise.
8112
8113 2000-10-11  Martin Buchholz  <martin@xemacs.org>
8114
8115         The following large batch of changes gets us back to a state of
8116         C++ compilability.  Extbyte is now a char, which means that
8117         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
8118
8119         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
8120
8121         * sound.c (Fplay_sound): Type correctness.
8122
8123         * select-x.c (hack_motif_clipboard_selection): Type correctness.
8124         (x_get_window_property): Type correctness.
8125         (receive_incremental_selection): unsigned char ==> Extbyte
8126         (selection_data_to_lisp_data): unsigned char ==> Extbyte
8127         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
8128         (Fx_store_cutbuffer_internal): Type correctness.
8129
8130         * process-unix.c (try_to_initialize_subtty): Type correctness.
8131
8132         * objects-x.c (x_print_color_instance): Type correctness.
8133         (x_print_font_instance): Type correctness.
8134         (x_list_fonts): SExtbyte ==> Extbyte.
8135         (valid_x_font_name_p): SExtbyte ==> Extbyte.
8136         (x_find_charset_font): SExtbyte ==> Extbyte.
8137         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
8138         (truename_via_XListFonts): SExtbyte ==> Extbyte.
8139         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
8140         Use bufbyte_strcmp.
8141
8142         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
8143         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
8144         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
8145         (BYTE_C0_P): Use bit ops for char-signedness safety.
8146         (BYTE_C1_P): Use bit ops for char-signedness safety.
8147         (CHARSET_BY_LEADING_BYTE):
8148         (CHARSET_BY_ATTRIBUTES):
8149         Always use inline function.
8150         Use type_checking_assert.
8151         Hide chlook.
8152
8153         * mule-charset.c (non_ascii_charptr_copy_char):
8154         Modify to work with both ASCII and non-ASCII characters.
8155         Improve docs and variable names.
8156         Replace over-clever fall-through switch with a simple loop.
8157         (Lstream_get_emchar_1):
8158         Replace over-clever fall-through switch with a simple loop.
8159
8160         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8161         Warning suppression.
8162
8163         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
8164         the return value of Lstream_getc, which could be EOF as well.
8165
8166         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
8167
8168         * lisp.h: Make Extbyte a char, not unsigned char, so that external
8169         APIs can be used on Extbytes without casts.  Risky!
8170         (SExtbyte): Remove.
8171         (UExtbyte): Remove.
8172
8173         * input-method-xlib.c (XIM_init_device):
8174         Use Xlib.h instead of IntrinsicP.h.
8175         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
8176         which will break in X11R7.
8177         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
8178         to call XRegisterIMInstantiateCallback with correct types.
8179
8180         * gui-x.c (button_item_to_widget_value): Type correctness.
8181
8182         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
8183
8184         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
8185         (xbm_instantiate_1): Type correctness.
8186         (BUILD_GLYPH_INST):  Type correctness.
8187
8188         * fileio.c (Fsubstitute_in_file_name): Type correctness.
8189
8190         * file-coding.c:
8191         (decode_coding_sjis):
8192         (decode_coding_big5):
8193         (decode_coding_ucs4):
8194         (decode_coding_utf8):
8195         (decode_coding_iso2022):
8196         (decode_coding_no_conversion):
8197         Make all decoding functions take an Extbyte * arg.
8198         (encode_coding_sjis):
8199         (encode_coding_big5):
8200         (encode_coding_ucs4):
8201         (encode_coding_utf8):
8202         (encode_coding_iso2022):
8203         (encode_coding_no_conversion):
8204         Make all encoding functions take a Bufbyte * arg.
8205         Use size_t instead of unsigned int for memory sizes.
8206         Only cast to unsigned char whenever dereferencing Extbyte *.
8207
8208         * doc.c (unparesseuxify_doc_string): Type correctness.
8209
8210         * console-x.c (split_up_display_spec):
8211         Rewrite without using details of internal string representation.
8212         (x_semi_canonicalize_device_connection): Type correctness.
8213
8214         * config.h.in:
8215         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
8216         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
8217         (HAVE_XFREE386): Removed.
8218
8219         * buffer.h (DEC_CHARPTR): `const' correctness.
8220         (bufbyte_strcmp): New.
8221         (bufbyte_memcmp): New.
8222
8223         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
8224
8225         * buffer.h (XCHAR_OR_CHAR_INT):
8226         Always use inline function.
8227         Remove redundant type checking assert() - XINT will abort quite nicely.
8228
8229 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
8230
8231         * search.c (Freplace_match): Set newtext to an empty string.
8232
8233 2000-10-10  Martin Buchholz  <martin@xemacs.org>
8234
8235         * s/decosf1-3.h: Remove #include of stropts.h
8236         * s/ptx.h: Remove #include of stropts.h
8237         * s/usg5-4.h: Remove #include of stropts.h
8238         * sysproc.h:
8239         * config.h.in:
8240         Use stropts.h, not sys/stropts.h.
8241         Use strtio.h, not sys/strtio.h.
8242
8243 2000-10-04  Martin Buchholz <martin@xemacs.org>
8244
8245         * XEmacs 21.2.36 is released.
8246
8247 2000-09-21  Andy Piper  <andy@xemacs.org>
8248
8249         * glyphs-x.c (x_redisplay_widget): make sure non-structural
8250         changes still involve copying the widget tree.
8251         (update_widget_face): make sure a change is register in the widget
8252         tree. Call update_tab_widget_face appropriately.
8253         (update_tab_widget_face): ditto.
8254         (x_tab_control_redisplay): make sure non-structural changes still
8255         involve copying the widget tree.
8256
8257 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
8258
8259         * lread.c (locate_file): Check the path element is non-nil.
8260
8261 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8262
8263         * lisp.h: Warning suppression for SCO compilers.
8264
8265         * redisplay-tty.c (reset_tty_modes): Fix crash.
8266         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
8267
8268 2000-09-27  Martin Buchholz  <martin@xemacs.org>
8269
8270         Big signal/process handling overhaul.  Bugs fixed:
8271         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
8272         M-x comint-kill-subjob should work for both values nil and t of
8273         process-connection-type. It was broken on most platforms.
8274         Testing on Irix and Cygwin still needed.  Other plaforms tested.
8275         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
8276         * process-unix.c: Signal/Process handling overhaul.
8277         (pty_name): make 64 bytes, as `expect' does, for paranoia.
8278         (allocate_pty): Use all available modern methods of allocating
8279         ptys, falling back to old style BSD allocation as a last resort.
8280         Use allegedly more secure Unix98 pty allocation by default.
8281         (allocate_pty_the_old_fashioned_way): New. the last resort.
8282         (unix_create_process): Push ptem, ldterm, ttcompat where
8283         available.  Autoconfiscate.
8284         (try_to_initialize_subtty): New.
8285         (unix_kill_child_process): Proper signal handling for ptys on most
8286         platforms, using special knowledge of AIX, BSD, etc...
8287         (unix_create_process): Always disconnect_controlling_terminal() for
8288         subprocesses, whether using ptys or not.
8289         * process.h: Remove old getpt-dependent PTY code.
8290         * process.c (Fprocess_send_signal): New, obvious generic function.
8291         (decode_signal): New.
8292         (Finterrupt_process):
8293         (Fkill_process):
8294         (Fquit_process):
8295         (Fstop_process):
8296         (Fcontinue_process):
8297         (Fsignal_process): Use decode_signal.
8298         (process_send_signal):
8299         Many docstring corrections.
8300         Allow any signal to be sent to a process object.
8301         * config.h.in: Add symbols for big signal/process overhaul.
8302         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
8303         * sysproc.h: Include process-related headers, where available:
8304         sys/stropts.h sys/strtio.h pty.h libutil.h
8305         * s/irix4-0.h:
8306         * s/irix5-0.h:
8307         * s/cygwin32.h:
8308         * s/gnu.h:
8309         * s/linux.h:
8310         * s/hpux.h:
8311         * s/aix3-1.h:
8312         Remove old S&M pty stuff.
8313         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
8314         * systty.h: Simplify cpp hackery, improve comments.
8315         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
8316
8317         * editfns.c (Fformat_time_string):
8318         Be a little more paranoid with the return value of ctime.
8319
8320         * fileio.c (check_executable):
8321         (check_writable):
8322         Use symbolic constants X_OK, W_OK.
8323
8324         * console-x.c (split_up_display_spec): Fix a warning.
8325
8326 2000-10-02  Martin Buchholz  <martin@xemacs.org>
8327
8328         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
8329         * ntproc.c (sys_spawnve): make_string ==> build_string
8330         Small clarity improvements.
8331
8332 2000-09-30  Martin Buchholz  <martin@xemacs.org>
8333
8334         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
8335
8336         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
8337
8338         * config.h.in (HAVE_STRCASECMP): Remove.
8339
8340 2000-09-29  Martin Buchholz  <martin@xemacs.org>
8341
8342         * redisplay-output.c (redisplay_output_pixmap):
8343         Cleaner and possibly more 64-bit correct code.
8344
8345 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
8346
8347         * dumper.c (pdump_load_finish): move restoration of
8348         `noninteractive1' to emacs.c (main_1).
8349         * emacs.c (main_1): protect LISP-visible command-line flags
8350         from pdump_load().
8351
8352 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
8353
8354         * Makefile.in.in (versionclean):  Use EXE_TARGET and
8355         DUMP_TARGET instead of literal program names.
8356
8357 2000-09-20  Martin Buchholz  <martin@xemacs.org>
8358
8359         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
8360
8361 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8362
8363         * *: Spelling mega-patch
8364
8365 2000-09-19  Martin Buchholz  <martin@xemacs.org>
8366
8367         * fns.c (bad_bad_turtle):
8368         Delete "Eek!" comment, since we fixed the bug to which it refers.
8369
8370 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8371
8372         * alloca.c: Replace REGISTER with register.
8373
8374 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
8375
8376         * file-coding.c (ucs_to_char): Use countof.
8377
8378 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8379
8380         * file-coding.c: (ucs_to_char):
8381         (complex_vars_of_file_coding):
8382         Use countof instead of sizeof.
8383         Use CHECK_NATNUM instead of CHECK_INT.
8384
8385         * sysdep.c (strcasecmp): Remove.
8386         * device-x.c (ascii_strcasecmp): New.
8387         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
8388         Avoid using non-standard non-portable strcasecmp.
8389
8390 2000-09-16  Martin Buchholz  <martin@xemacs.org>
8391
8392         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
8393         * font-lock.c: remove reference to emacsfns.h.
8394         * search.c: small doc improvement.
8395         * event-Xt.c: correct file names in comments.
8396         * console-x.h Correct file names in comments.
8397         * frame.c: Correct file names in comments.
8398         * event-stream.c: remove Energize from comments.
8399
8400 2000-09-15  Martin Buchholz  <martin@xemacs.org>
8401
8402         * symeval.h (DEFERROR_STANDARD):
8403         (DEFERROR):
8404         (DEFSYMBOL):
8405         (DEFSYMBOL_NO_DUMP):
8406         (DEFSYMBOL_MULTIWORD_PREDICATE):
8407         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
8408         (DEFKEYWORD):
8409         The construct &##name is not sensible C.
8410         Fixes compilation errors with Unixware native compiler.
8411
8412 2000-09-14  Martin Buchholz  <martin@xemacs.org>
8413
8414         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
8415         (next_frame_internal): Removed.  We now just have next_frame.
8416         (next_frame):
8417         Write a simpler and cleaner one-pass algorithm.
8418         Remove called_from_delete_device arg and #ifdefed-out code.
8419         (previous_frame):
8420         Renamed from prev_frame.  Update callers.
8421         Cleaned up to have an analogous implementation to next_frame.
8422         (other_visible_frames_internal): Remove the
8423         called_from_delete_device bogus arg, and hence, remove this
8424         function.  Just use other_visible_frames().
8425
8426         * window.c (Fnext_window):
8427         Prettify docstring.
8428         Since next_frame() is guaranteed to return a frame, remove check
8429         for nil inserted in previous patch.
8430         (Fprevious_window):
8431         Prettify docstring.
8432         Make code look more like Fnext_window.
8433         (window_loop):
8434         Respect the `console' arg when iterating through windows.
8435         Fixes bug: (get-buffer-window buffer t device) not respecting
8436         the `device' arg.
8437         This function needs more work, as others have pointed out.
8438
8439         * frame.h: Rename prev_frame to previous_frame.
8440         device_matches_console_spec no longer takes a `frame' arg.
8441
8442         * s/gnu.h:
8443         * s/linux.h:
8444         * s/hpux.h:
8445         Use EMACS_BLOCK_SIGNAL instead of sigblock.
8446         From "Golubev I. N." <gin@mo.msk.ru>.
8447
8448         * make-src-depend: Fix typo.
8449
8450 2000-09-13  Martin Buchholz  <martin@xemacs.org>
8451
8452         * window.c (Fnext_window):
8453         next_frame() might return nil, not a frame.
8454         Fixes this crash:
8455         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8456
8457         * frame.c (next_frame_internal):
8458         We've passed a frame if we've passed its device.
8459         Fixes this crash:
8460         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
8461 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
8462
8463 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8464
8465         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8466         Allow option to suppress accelerators in menu/dialog items.
8467         (populate_or_checksum_helper): Pass dialog title through above.
8468
8469 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
8470
8471         * event-msw.c (mswindows_key_to_emacs_keysym):
8472         Add "pause" key, fix "menu" key.
8473
8474 2000-09-09  Martin Buchholz  <martin@xemacs.org>
8475
8476         * eval.c (reinit_vars_of_eval):
8477         Increase max_lisp_eval_depth to 1000,
8478         required for thai-xtis.el to byte-compile under some circumstances.
8479
8480 2000-09-04  Martin Buchholz  <martin@xemacs.org>
8481
8482         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
8483         From Kenichi Handa.
8484
8485 2000-09-01  Martin Buchholz  <martin@xemacs.org>
8486
8487         * make-src-depend: Make the generated Makefiles smaller.
8488
8489         * s/hpux.h (SETUP_SLAVE_PTY):
8490         Provide a %d in the format string for the errno argument.
8491
8492         * editfns.c (Ftemp_directory):
8493         Warning fix.
8494         Avoid buffer overrun on very long file name.
8495
8496         * input-method-xlib.c (XIM_init_device):
8497         6th parameter of XRegisterIMInstantiateCallback has different
8498         pointer types on different OSes, so simply cast to (void *).
8499
8500         * unexhp9k800.c: Warning fixes.  Fiddly changes.
8501
8502         * sysdll.c (dll_open):
8503         shl_load will hang hard if passed a NULL filename.
8504         Simply return NULL for compatibility with dlopen.
8505         * sysdll.c: Conform to XEmacs coding standards.
8506
8507         * sysdep.c (get_pty_max_bytes):
8508         Support pty input lines longer than 512 bytes on HP-UX 10.20.
8509
8510 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8511
8512         * tooltalk.c: Add #include <syssignal.h>
8513
8514 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
8515
8516         * s/hpux.h: Don't use undefined function sigunblock().
8517
8518 2000-08-31  Martin Buchholz  <martin@xemacs.org>
8519
8520         * config.h.in: Add HAVE_BALLOON_HELP.
8521         * emacs.c: Use HAVE_BALLOON_HELP.
8522         * Makefile.in.in (x_objs):
8523         Make Balloon Help conditional on finding shape.h.
8524
8525 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
8526
8527         * syntax.c (regex_emacs_buffer_p): New variable.
8528         * syntax.h (regex_emacs_buffer_p): extern.
8529         * search.c (looking_at_1):
8530         (string_match_1):
8531         (fast_string_match):
8532         (search_buffer): Set regex_emacs_buffer_p.
8533         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
8534         when before_dot, at_dot, after_dot.
8535
8536 2000-08-23  Andy Piper  <andy@xemacs.org>
8537
8538         * gui-x.c (popup_selection_callback): Only set action_occurred
8539         when we really have an image instance.
8540         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
8541
8542 2000-08-23  Andy Piper  <andy@xemacs.org>
8543
8544         * gui-msw.c (mswindows_handle_gui_wm_command): set
8545         action_occurred.
8546         * gui-x.c (popup_selection_callback): ditto.
8547
8548         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
8549         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
8550         (struct Lisp_Image_Instance): add action_occurred flag.
8551
8552         * glyphs.c (redisplay_subwindow): use action_occurred flag.
8553         (image_instance_changed): ditto.
8554         (reset_frame_subwindow_instance_cache): only unmap windows - do
8555         not remove them from the cache also.
8556
8557         * glyphs-widget.c (tab_control_update): better debug.
8558         (progress_gauge_update): ditto.
8559         (layout_update): ditto.
8560         (layout_instantiate): ditto.
8561         (tab_control_order_only_changed): cope with null pending items.
8562
8563         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
8564         debug. Force selection of an item when an action occurred. Cope
8565         with null pending_items.
8566         (mswindows_progress_gauge_redisplay): better debug.
8567         * glyphs-x.c (x_tab_control_redisplay): ditto.
8568
8569         * redisplay.c (redisplay_frame): reset the frame cache if the
8570         frame is garbaged.
8571
8572         * window.c (Fset_window_configuration): potentially re-enable
8573         frame cache reset.
8574         (window_unmap_subwindows): need to finalize instances here since
8575         it is only used in mark_window_as_deleted.
8576
8577 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
8578
8579         * nas.c (SndOpenDataForReading):
8580         nas.c (WaveOpenDataForReading):
8581         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
8582         Somehow escaped from the 2000-08-14 patch.
8583
8584 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
8585
8586         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
8587         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
8588
8589 2000-08-21  Andy Piper  <andy@xemacs.org>
8590
8591         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
8592         window if it is not already displayed.
8593
8594         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
8595         it is not already displayed.
8596
8597         * window.c (Fset_window_configuration): don't reset the frame
8598         cache.
8599
8600         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
8601         instances from the frame cache if we are actually finalizing them.
8602         (reset_frame_subwindow_instance_cache): reset frame cache only
8603         after unmapping everything.
8604         (map_subwindow): set displayed flag after mapping.
8605
8606 2000-08-21  Martin Buchholz  <martin@xemacs.org>
8607
8608         * data.c (indirect_function):
8609         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
8610
8611         * eval.c (function_argcount):
8612         Use original function when signaling errors.
8613
8614 2000-08-18  Andy Piper  <andy@xemacs.org>
8615
8616         * frame.c (delete_frame_internal): use new
8617         free_frame_subwindow_instances name.
8618
8619         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
8620         (add_tab_item): make return type correct.
8621         (mswindows_tab_control_instantiate): assert index of tab.
8622         (mswindows_tab_control_redisplay): Re-code to use
8623         gui_item_equal_sans_selected and gui_item_list_find_selected.
8624
8625         * glyphs-widget.c (tab_control_update): Correct comment.
8626
8627         * window.c (window_unmap_subwindows): use new
8628         unmap_subwindow_instance_cache_mapper.
8629         (window_unmap_subwindows_cache_mapper): deleted.
8630         (Fset_window_configuration): comparisons should now be with
8631         EQ. Preserve the subwindow instance cache across configuration
8632         changes.
8633         (allocate_window): ditto.
8634         (make_dummy_parent): ditto.
8635
8636         * glyphs.c (free_frame_subwindow_instances): rename from
8637         free_frame_subwindow_instance_cache. finalize all instances rather
8638         than just those in the display cache.
8639         (finalize_all_subwindow_instances): walk windows unmapping and
8640         finalizing subwindows.
8641         (unmap_subwindow_instance_cache_mapper): moved from
8642         window.c. Allow finalization as well as unmapping.
8643
8644         * gui.c (gui_item_list_find_selected): new function.
8645
8646         * gui.h (gui_item_list_find_selected): declare.
8647
8648         * glyphs-x.c (x_tab_control_redisplay): pick tab
8649         explicitly. Re-code to use gui_item_equal_sans_selected and
8650         gui_item_list_find_selected.
8651
8652         * glyphs-x.h: add lwlib-utils.h
8653
8654         * buffer.c (Frecord_buffer): undo previous change.
8655
8656 2000-08-09  Vin Shelton  <acs@xemacs.org>
8657
8658         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
8659         possible.  Create temporary files more securely.  The patch was
8660         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
8661         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
8662         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
8663         for details.
8664
8665 2000-08-07  Ben Wing  <ben@xemacs.org>
8666
8667         * getloadavg.c: remove duplicate (and windows-breaking)
8668         includes of fcntl.h and sys/file.h.
8669
8670         * nt.c: remove duplicate getloadavg() definition.
8671
8672         * sysdll.h (Qdll_filename_encoding): add missing stand-in
8673         encodings.
8674
8675 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8676
8677         * eval.c (function_argcount): If function needs to be autoloaded
8678         actually use the loaded definition.
8679         GCPRO function.
8680
8681 2000-08-05  Ben Wing  <ben@xemacs.org>
8682
8683         * getloadavg.c: add prototype for getloadavg().  remove
8684         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
8685         of the code).  remove duplicate header includes.
8686
8687         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
8688
8689         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
8690         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
8691         useful load average.
8692
8693         * alloc.c (reinit_alloc_once_early): removed references to
8694         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
8695         the lisp vars are the only things referencing the malloc_sbrk_*
8696         vars, and they were already if 0'd out.  these vars only exist
8697         in the older malloc.c, which is basically unused, and they're
8698         only for informational purposes.
8699
8700         * m\*.h: removed useless VIRT_ADDR_VARIES.
8701
8702         * m\powerpc.h: removed stray NO_ARG_ARRAY.
8703
8704 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
8705
8706         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
8707         color if the image is a mono pixmap.
8708
8709 2000-07-30  Ben Wing  <ben@xemacs.org>
8710
8711         * Makefile.in.in (release):
8712         Remove stray @.
8713
8714         * buffer.c (directory_is_current_directory):
8715         * dired-msw.c (mswindows_get_files):
8716         * dired.c:
8717         * dired.c (Fdirectory_files):
8718         * dired.c (file_name_completion_stat):
8719         * dired.c (Ffile_attributes):
8720         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
8721         preprocessor tricks, to avoid problems on some machines
8722         (e.g. SCO).
8723
8724         * callproc.c (egetenv): GC docs.
8725
8726         * console-msw.h:
8727         * console-msw.h (struct mswindows_dialog_id):
8728         * lrecord.h (lrecord_type):
8729         New object for use with MSW dialogs.
8730
8731         * console.h (struct console_methods):
8732         New enable/disable frame methods, for proper modal dialogs.
8733
8734         * device-msw.c (msprinter_default_printer): Fix to follow
8735         proper Mule conventions.
8736
8737         * device-msw.c:
8738         * device-msw.c (signal_open_printer_error):
8739         * device-msw.c (msprinter_init_device):
8740         * device-msw.c (ensure_not_printing):
8741         * device-msw.c (plist_get_margin):
8742         * device-msw.c (Fmsprinter_select_settings):
8743         * device-msw.c (finalize_devmode):
8744         * device-msw.c (Fmsprinter_settings_despecialize):
8745         * device-msw.c (signal_enum_priner_error):
8746         * extents.c (decode_extent):
8747         * extents.c (decode_map_extents_flags):
8748         * extents.c (decode_extent_at_flag):
8749         * extents.c (Fextent_at):
8750         * extents.c (Fextents_at):
8751         * extents.c (symbol_to_glyph_layout):
8752         [[[[2]]]] Use structured errors.
8753
8754         * dialog-msw.c:
8755         * dialog-msw.c (mswindows_is_dialog_msg):
8756         * dialog-msw.c (mark_mswindows_dialog_id):
8757         * dialog-msw.c (dialog_proc):
8758         * dialog-msw.c (handle_question_dialog_box):
8759         * dialog-msw.c (syms_of_dialog_mswindows):
8760         Define new object to clean up marking; use it as a dialog identifier.
8761         Call new delete-dialog-box-hook.
8762
8763         * dialog-x.c (dbox_selection_callback):
8764         * dialog-x.c (dbox_descriptor_to_widget_value):
8765         * dialog-x.c (x_make_dialog_box_internal):
8766         Call new delete-dialog-box-hook.
8767         Return an id.
8768
8769         * dialog.c:
8770         * dialog.c (syms_of_dialog):
8771         * dialog.c (vars_of_dialog):
8772         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
8773
8774         * eval.c:
8775         * eval.c (signal_call_debugger):
8776         when noninteractive, output stack traces on the console instead
8777         of in a (never-seen) buffer.
8778
8779         * eval.c (signal_type_error):
8780         * eval.c (invalid_argument_2):
8781         * lisp.h:
8782         new funs for use w/structured errors.
8783
8784         * event-Xt.c:
8785         * event-Xt.c (x_to_emacs_keysym):
8786         * event-Xt.c (describe_event):
8787         * event-Xt.c (emacs_Xt_event_handler):
8788         * event-Xt.c (vars_of_event_Xt):
8789         * event-msw.c:
8790         * event-msw.c (mswindows_wnd_proc):
8791         * event-msw.c (vars_of_event_mswindows):
8792         rename {x,mswindows}-debug-events to debug-{}-events for
8793         consistency with other debug-foo variables.
8794
8795         * event-stream.c:
8796         document next-event more clearly.
8797
8798         * fileio.c (Ffile_name_directory):
8799         * fileio.c (Ffile_name_nondirectory):
8800         * fileio.c (Funhandled_file_name_directory):
8801         * fileio.c (file_name_as_directory):
8802         * fileio.c (Ffile_name_as_directory):
8803         * fileio.c (directory_file_name):
8804         * fileio.c (Fdirectory_file_name):
8805         * fileio.c (Fmake_temp_name):
8806         * fileio.c (Ffile_truename):
8807         * fileio.c (Fsubstitute_in_file_name):
8808         * fileio.c (expand_and_dir_to_file):
8809         * fileio.c (barf_or_query_if_file_exists):
8810         * fileio.c (check_executable):
8811         * fileio.c (Ffile_exists_p):
8812         * fileio.c (Ffile_writable_p):
8813         * fileio.c (Ffile_directory_p):
8814         * fileio.c (Ffile_regular_p):
8815         * fileio.c (Ffile_modes):
8816         * fileio.c (Ffile_newer_than_file_p):
8817         * fileio.c (Fverify_visited_file_modtime):
8818         * fileio.c (Fset_visited_file_modtime):
8819         * fileio.c (auto_save_1):
8820         (1). (2).
8821         fix up gcpro's.
8822
8823         * frame-msw.c:
8824         * frame-msw.c (mswindows_init_frame_1):
8825         * frame-msw.c (mswindows_enable_frame):
8826         * frame-msw.c (error_frame_unsizable):
8827         * frame-msw.c (msprinter_init_frame_1):
8828         * frame-msw.c (msprinter_init_frame_3):
8829         * frame-msw.c (console_type_create_frame_mswindows):
8830         (2).
8831         implement new enable/disable frame methods.
8832
8833         * frame-x.c:
8834         * frame-x.c (x_enable_frame):
8835         * frame-x.c (console_type_create_frame_x):
8836         implement new enable/disable frame methods.
8837
8838         * frame.c:
8839         * frame.c (Fdisable_frame):
8840         * frame.c (syms_of_frame):
8841         * frame.h (struct frame):
8842         implement new enable/disable frame methods/functions.
8843
8844         * general-slots.h:
8845         add initial-focus.
8846
8847         * glyphs-msw.c (mswindows_widget_instantiate):
8848         comment that initial-focus should be implemented.
8849
8850         * glyphs-widget.c:
8851         * glyphs-widget.c (check_valid_instantiator):
8852         * glyphs-widget.c (check_valid_orientation):
8853         * glyphs-widget.c (check_valid_tab_orientation):
8854         * glyphs-widget.c (check_valid_justification):
8855         * glyphs-widget.c (check_valid_border):
8856         * glyphs-widget.c (check_valid_callback):
8857         * glyphs-widget.c (check_valid_int_or_function):
8858         * glyphs-widget.c (check_valid_string_or_vector):
8859         * glyphs-widget.c (check_valid_item_list_1):
8860         * glyphs-widget.c (widget_validate):
8861         * glyphs-widget.c (combo_box_validate):
8862         * glyphs-widget.c (widget_instantiate):
8863         * glyphs-widget.c (syms_of_glyphs_widget):
8864         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
8865         * glyphs-widget.c (image_instantiator_combo_box):
8866         * glyphs-widget.c (image_instantiator_scrollbar):
8867         * glyphs-widget.c (image_instantiator_tab_control):
8868         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
8869         (2).
8870         support (unimplemented) keyword initial-focus.
8871         reindent long macros.
8872
8873         * glyphs-x.c (x_redisplay_widget):
8874         * glyphs-x.c (x_button_instantiate):
8875         * glyphs-x.c (x_button_redisplay):
8876         * glyphs-x.c (x_progress_gauge_instantiate):
8877         * glyphs-x.c (x_edit_field_instantiate):
8878         * glyphs-x.c (x_combo_box_instantiate):
8879         * glyphs-x.c (x_tab_control_instantiate):
8880         * glyphs-x.c (x_label_instantiate):
8881         * gui-x.c:
8882         * gui-x.c (button_item_to_widget_value):
8883         * gui-x.c (gui_items_to_widget_values_1):
8884         * gui-x.c (gui_item_children_to_widget_values):
8885         * gui-x.c (gui_items_to_widget_values):
8886         * gui-x.h:
8887         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
8888         add new flag to gui-parsing routines to indicate whether
8889         accelerator specs should be supported.
8890
8891         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
8892
8893         * glyphs.h (struct Lisp_Image_Instance):
8894         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
8895         add initial-focus flag.
8896
8897         * gui.c:
8898         * gui.c (syms_of_gui):
8899         * gui.c (vars_of_gui):
8900         clean up menu-no-selection-hook.
8901
8902         * gui.h:
8903         support delete-dialog-box-hook.
8904
8905         * lread.c (Fload_internal):
8906         * lread.c (locate_file_in_directory_mapper):
8907         (1).
8908
8909         * lrecord.h:
8910         * lrecord.h (struct toolbar_button):
8911         * lrecord.h (syms_of_toolbar):
8912         document how to create a new object.
8913
8914         * menubar-msw.c (mswindows_char_is_accelerator):
8915         may be called on frames w/o menus.
8916
8917         * menubar.c (vars_of_menubar):
8918         clean up :filter docs.
8919
8920         * nt.c (readdir):
8921         * ntproc.c:
8922         (1).
8923
8924         * process-nt.c:
8925         * process-nt.c (validate_signal_number):
8926         * process-nt.c (signal_cannot_launch):
8927         * process-nt.c (nt_create_process):
8928         * process-nt.c (nt_send_process):
8929         * process-nt.c (nt_kill_child_process):
8930         * process-nt.c (nt_open_network_stream):
8931         * process-nt.c (syms_of_process_nt):
8932         (2).
8933         delete quote-handling.  call new lisp code that does it better.
8934
8935         * process-unix.c (connect_to_file_descriptor):
8936         * process-unix.c (allocate_pty):
8937         * process-unix.c (unix_send_process):
8938         * process-unix.c (unix_kill_child_process):
8939         * process-unix.c (unix_open_network_stream):
8940         * process-unix.c (unix_open_multicast_group):
8941         (1). (2).
8942
8943         * process.c:
8944         * process.c (Fstart_process_internal):
8945         (2).  need to canonicalize process path even if absolute.
8946
8947         * select-msw.c (symbol_to_ms_cf):
8948         * select-msw.c (ms_cf_to_symbol):
8949         * select-msw.c (cf_is_autofreed):
8950         * select-msw.c (mswindows_destroy_selection):
8951         * select.c:
8952         * select.c (syms_of_select):
8953         * select.h:
8954         support dibv5, fix bugs. (from Mike Alexander)
8955
8956         * select.c (Fget_selection_internal):
8957         * select.c (select_convert_out):
8958
8959         * sysdep.c:
8960         * sysdep.c (xemacs_stat):
8961         renamed.
8962
8963         * sysdep.c (mkdir):
8964         * sysdep.c (rmdir):
8965         but keep original stat() here because we provide encapsulation
8966         around these funs.
8967
8968         * sysfile.h:
8969         * sysfile.h (fstat):
8970         remove stat garbage.
8971
8972         * syswindows.h:
8973         fix X/MSW conflict.
8974         don't include tchar.h.  it's inappropriate because it makes
8975         compile-time distinctions when we want runtime distinctions.
8976         (we provide our own tchar replacements)
8977
8978         * toolbar.c:
8979         use default object printer for toolbar-button.
8980
8981         * unexcw.c:
8982         make sure we don't encapsulate.
8983
8984         * window.c (vars_of_window):
8985         emphasize that temp-buffer-show-hook is obsolete.
8986
8987 2000-08-05  Martin Buchholz  <martin@xemacs.org>
8988
8989         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
8990         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
8991
8992         * events.c (Fevent_timestamp_lessp):
8993         Not 64-bit clean.  Use EMACS_INT, not int.
8994
8995 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
8996
8997         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
8998         unsigned int and changed the last enum to
8999         lrecord_type_last_built_in_type.
9000         (lrecord_implementations_table): changed prototype to know how
9001         long the array is supposed to be.
9002         (lrecord_type_count): new unsigned int to keep track of the
9003         current number of lisp lrecord types.
9004         (DEFINE_EXTERNAL_LRECORD):
9005         (DECLARE_EXTERNAL_LRECORD): Added these two for external
9006         dynamic-modules to declare new lisp types. They are the same
9007         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
9008         int for each new type, and increment lrecord_type_count by 1.
9009
9010         * alloc.c (lrecord_implementations_table): Changed to reference
9011         lrecord_type_last_built_in_type for the size of the array.
9012         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
9013
9014 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9015
9016         * glyphs.h (check_valid_item_list): Renamed from
9017         check_valid_item_list_1.
9018
9019 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
9020
9021         * select.c (Qselect_coerce): New.
9022         * select.c (Vselection_coercion_alist): New.
9023         * select.c (syms_of_select): Declare.
9024         * select.c (get-selection-internal): Use it.
9025         Use the new select-coerce functionality.
9026
9027         * select.c (select_coerce): New.
9028         * select.h (select_coerce): Declare.
9029         New function to coerce one type of data into another.
9030
9031 2000-08-03  Martin Buchholz  <martin@xemacs.org>
9032
9033         * callproc.c (Fcall_process_internal):
9034         (Fcall_process_internal):
9035         * process-unix.c (unix_create_process):
9036         Save and restore the value of errno, so that error messages are accurate.
9037
9038 2000-08-01  Martin Buchholz  <martin@xemacs.org>
9039
9040         * elhash.c (print_hash_table):
9041         Fix printing of hash tables to also use `key-and-value' instead of `t'.
9042         Prettify docstrings and indentation.
9043
9044 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9045
9046         * window.c (Fwindow_pixel_edges): Subtract frame border and
9047         gutter size.
9048
9049 2000-07-31  Andy Piper  <andy@xemacs.org>
9050
9051         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
9052         will acknowledge the change.
9053
9054         * glyphs.h: declare tab_control_order_only_changed.
9055
9056         * glyphs-x.c (x_tab_control_redisplay): use
9057         tab_control_order_only_changed.
9058
9059         * glyphs-widget.c (tab_control_order_only_changed): new function.
9060
9061         * glyphs-msw.c (mswindows_tab_control_redisplay): use
9062         tab_control_order_only_changed.
9063
9064         * gui.c (gui_item_equal_sans_selected): new function.
9065         (gui_item_equal): use it.
9066
9067         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
9068         :properties in favor of :items..
9069
9070         * glyphs-widget.c (check_valid_item_list): rename from
9071         check_valid_item_list_1.
9072         (check_valid_item_list_1): renamed.
9073         (combo_box_validate): deprecate :properties in favor of :items.
9074         (widget_instantiate): ditto.
9075         (tab_control_update): ditto.
9076         (image_instantiator_combo_box): ditto.
9077         (image_instantiator_tree_view): ditto.
9078         (image_instantiator_tab_control): ditto.
9079         (layout_post_instantiate): remove dead code.
9080
9081         * print.c (debug_print_no_newline): only write to debugger if in
9082         WIN32_NATIVE.
9083
9084         * elhash.c (Fmake_hash_table): update doc string.
9085
9086         * event-msw.c (mswindows_wnd_proc): don't allow processing of
9087         messages whilst in GC. This at least stops XEmacs crashing but has
9088         the potential for wierd behaviour.
9089
9090 2000-07-31  Martin Buchholz  <martin@xemacs.org>
9091
9092         * config.h.in:
9093         Make existence of s&m files optional.
9094
9095         * s/bsd386.h: Remove HAVE_GETLOADAVG.
9096         * s/freebsd.h: Remove HAVE_GETLOADAVG.
9097         * s/gnu.h: Remove HAVE_GETLOADAVG.
9098         * s/netbsd.h: Remove HAVE_GETLOADAVG.
9099         * s/sol2.h: Remove HAVE_GETLOADAVG.
9100         * lisp.h: Remove getloadavg() declaration.
9101         * fns.c:
9102         Include <sys/loadavg.h> if available.
9103         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
9104         * config.h.in:  Group together getloadavg()-related macros.
9105         Use only configure-time tests to detect getloadavg().
9106
9107 2000-07-30  Martin Buchholz  <martin@xemacs.org>
9108
9109         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
9110
9111 2000-07-25  Andy Piper  <andy@xemacs.org>
9112
9113         * syswindows.h: add tchar.h for native builds.
9114
9115         * frame.c (syms_of_frame): remove set-glyph-image.
9116
9117         * general-slots.h: add Qset_glyph_image.
9118
9119         * glyphs-widget.c (layout_update): add domain arg to
9120         set-glyph-image.
9121         (syms_of_glyphs_widget): remove set-glyph-image.
9122
9123 2000-07-23  Ben Wing  <ben@xemacs.org>
9124
9125         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
9126         Vpopup_frame_list.
9127
9128 2000-07-22  Andy Piper  <andy@xemacs.org>
9129
9130         * symsinit.h: add syms_of_win32().
9131
9132         * gui-msw.c (syms_of_gui_mswindows): remove
9133         Fmswindows_shell_execute.
9134         (Fmswindows_shell_execute): moved to win32.c.
9135
9136         * emacs.c (main_1): add syms_of_win32 ().
9137
9138         * win32.c (init_potentially_nonexistent_functions): rewrite in
9139         compiler-friendly terms.
9140         (Fmswindows_shell_execute): move here from gui-msw.c.
9141         (syms_of_win32): new.
9142
9143         * device-msw.c (Fmswindows_printer_list): clean up args to
9144         EnumPrinters.
9145         Don't include tchar under cygwin or mingw.
9146         (msprinter_default_printer): make cygwin-friendly.
9147
9148 2000-07-21  Andy Piper  <andy@xemacs.org>
9149
9150         * glyphs-widget.c (image_instantiator_tree_view): use tab
9151         control's update function.
9152         (layout_property): new function. Retrieve items.
9153
9154         * glyphs-msw.c (mswindows_tree_view_redisplay): new
9155         function. Re-populate the tree view from the pending items.
9156
9157         * glyphs.c (instantiate_image_instantiator): Make sure the domain
9158         is designated the parent if the domain is an image instance. This
9159         is needed so that dirtiness can be cascade up the hierarchy and
9160         thus for layout children to be redisplayed correctly.
9161         (allocate_image_instance): rename glyph -> parent.
9162
9163         * redisplay.h: change redisplay_output_layout signature.
9164
9165         * redisplay-msw.c (mswindows_output_display_block): use domain
9166         arg.
9167
9168         * redisplay-x.c (x_output_display_block): use domain arg.
9169
9170 2000-07-10  Andy Piper  <andy@xemacs.org>
9171
9172         * window.c (Fset_window_configuration): add comment.
9173
9174         * redisplay-output.c (compare_runes):
9175         (redisplay_output_subwindow): redisplay rather than update subwindow.
9176         (redisplay_output_layout): ditto.
9177
9178         * redisplay-msw.c (mswindows_frame_output_end):
9179         (mswindows_frame_output_end): make defer window pos optional.
9180
9181         * lisp.h: add Flast.
9182
9183         * glyphs.h (struct image_instantiator_methods): add dest_mask top
9184         normalize method. Change update method to be for changed
9185         instantiators. Add redisplay method. Change signature of layout
9186         method.
9187         (struct Lisp_Image_Instance): add instantiator.
9188         (IMAGE_INSTANCE_INSTANTIATOR): new.
9189         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
9190         (XIMAGE_INSTANCE_INSTANTIATOR): new.
9191         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
9192
9193         * glyphs.c:
9194         (find_instantiator_differences): new function.
9195         (Fset_instantiator_property): new convenience function.
9196         (check_image_instance_structure): strictly check for vector
9197         instantiators.
9198         (normalize_image_instantiator): make non-static.
9199         (instantiate_image_instantiator): pass on dest_mask and use new
9200         signatures for image_instance_layout and friends.
9201         (mark_image_instance): mark the instantiator. Mark the subwindow
9202         face not the widget face.
9203         (image_instance_equal): add instantiator.
9204         (image_instance_hash): ditto.
9205         (allocate_image_instance): ditto.
9206         (Fset_image_instance_property): removed.
9207         (Fimage_instance_file_name): ditto.
9208         (Fcolorize_image_instance): ditto.
9209         (image_instance_layout): add offsets to be set.
9210         (update_image_instance): new function. update an image instance
9211         from its changed instantiator.
9212         (inherit_normalize): add dest_mask.
9213         (xbm_normalize): ditto.
9214         (xface_normalize): ditto.
9215         (xpm_normalize): ditto.
9216         (text_update): set_property -> update.
9217         (image_instantiate): use the glyph identity as a hash key, not the
9218         instantiator.
9219         (glyph_width): use new image_instance_layout signature.
9220         (glyph_ascent): ditto.
9221         (glyph_descent): ditto.
9222         (glyph_height): ditto.
9223         (glyph_query_geometry): ressurrect.
9224         (glyph_layout): ditto.
9225         (redisplay_subwindow): update -> redisplay.
9226         (syms_of_glyphs): add Fset_instantiator_property.
9227         (image_instantiator_format_create): set_property -> update.
9228
9229         * glyphs-x.c:
9230         (autodetect_normalize): add dest_maks to signature.
9231         (x_redisplay_subwindow): update -> redisplay.
9232         (x_redisplay_widget): ditto.
9233         (x_button_redisplay): ditto.
9234         (x_progress_gauge_redisplay): ditto.
9235         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
9236         stacking order.
9237         (console_type_create_glyphs_x): update -> redisplay.
9238         (image_instantiator_format_create_glyphs_x): ditto.
9239
9240         * glyphs-widget.c:
9241         (check_valid_instantiator): disallow glyphs in the instantiator,
9242         they must now be vectors.
9243         (check_valid_instantiator_list): ditto.
9244         (glyph_instantiator_to_glyph): use internal symbol rather than
9245         intern.
9246         (widget_update): renamed from widget_set_property. Call cascaded
9247         update methods.
9248         (redisplay_widget): renamed from update_widget.
9249         (widget_layout): image_instance_layout now takes position as well
9250         as size.
9251         (widget_normalize): ditto.
9252         (widget_instantiate): ditto.
9253         (tab_control_query_geometry) ditto.:
9254         (tab_control_update): renamed from tab_control_set_property.
9255         (progress_gauge_update): set_property -> update.
9256         (layout_normalize): rewrite so that child instantiators are
9257         normalized also.
9258         (layout_update): new function. Create glyphs from the normalized
9259         children and cope with any other layout keywords. We do not
9260         instantiate children here that will be take care of by
9261         redisplay_output_layout.
9262         (layout_instantiate): call layout_update and not much else.
9263         (layout_post_instantiate): not sure whether this is needed
9264         anymore.
9265         (layout_query_geometry): query glyph geometry rather than
9266         image_instance geometry.
9267         (layout_layout): set offsets from pass in parameters. Use glyph
9268         geometry and layout functions rather than image instance ones.
9269         (native_layout_layout): ditto.
9270         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
9271         (image_instantiator_widget): set_property -> update.
9272         (image_instantiator_buttons): ditto.
9273         (image_instantiator_progress_guage): ditto.
9274         (image_instantiator_tab_control): ditto.
9275         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
9276         (image_instantiator_layout): add update method.
9277
9278         * glyphs-msw.c (bmp_normalize):
9279         (mswindows_resource_normalize): add dest_mask so that it can be
9280         proprogated by layout_normalize.
9281         (begin_defer_window_pos): make optional because it may not be the
9282         right thing to do and it introduces differences with X.
9283         (mswindows_unmap_subwindow): ditto.
9284         (mswindows_map_subwindow): ditto.
9285         (mswindows_redisplay_subwindow): renamed from
9286         mswindows_update_subwindow.
9287         (mswindows_redisplay_widget): ditto.
9288         (mswindows_button_redisplay): renamed from
9289         mswindows_button_update. Update is now what the instantiation
9290         function does for a changed instantiator.
9291         (mswindows_progress_gauge_instantiate): set the progress value
9292         here if appropriate.
9293         (mswindows_tab_control_redisplay): cope with re-ordering of the
9294         members of the tab widget by simply selecting the new top
9295         widget. This makes things appear ok if you click on a tab.
9296         (mswindows_combo_box_instantiate): image_instance_layout now takes
9297         position as well as size.
9298         (mswindows_progress_gauge_redisplay): renamed from
9299         mswindows_progress_gauge_update.
9300         (console_type_create_glyphs_mswindows): fix update -> redisplay.
9301         (image_instantiator_format_create_glyphs_mswindows): ditto.
9302
9303         * glyphs-eimage.c (jpeg_normalize):
9304         (gif_normalize):
9305         (png_normalize):
9306         (tiff_normalize): add dest_mask so that it can be proprogated by
9307         layout_normalize.
9308
9309         * elhash.c:
9310         (print_hash_table):
9311         (hash_table_weakness_validate):
9312         (decode_hash_table_weakness):
9313         (Fhash_table_weakness):
9314         (Fhash_table_type):
9315         (syms_of_elhash): use Ben's naming scheme for hashtable types..
9316
9317         * console.h (struct console_methods): move update_* to
9318         redisplay_*.
9319
9320 2000-07-20  Ben Wing  <ben@xemacs.org>
9321
9322         * *.[ch] (XSETOBJ): remove unused middle argument.
9323         lisp-disunion.h: correct wrap_object() to one argument.
9324
9325 2000-07-15  Ben Wing  <ben@xemacs.org>
9326
9327         * s/cygwin32.h:
9328         * s/cygwin32.h (CYGWIN_CONV_PATH):
9329         Add missing logb prototype for v1.1.
9330         Use post-b20 names and alias to pre-b20 names when pre-b20.
9331
9332         * s/windowsnt.h: [5].
9333
9334 2000-07-15  Ben Wing  <ben@xemacs.org>
9335
9336         * Makefile.in.in (x_objs):
9337         * Makefile.in.in (sheap_objs):
9338         * Makefile.in.in (objs):
9339         added win32.o, cosmetic cleanups.
9340
9341         * alloc.c (Fmake_byte_code):
9342         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
9343         etc. macros which declare their own args now.
9344
9345         * alloc.c (syms_of_alloc):
9346         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
9347
9348         * buffer.c:
9349         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
9350
9351         * buffer.c (Fget_file_buffer):
9352         Fixed GCPRO problem.
9353
9354         * buffer.c (get_truename_buffer):
9355         Fixed comment about GC checking.
9356
9357         * buffer.c (syms_of_buffer):
9358         Undeclared those dedicated frame funs.
9359         [2].
9360
9361         * buffer.h:
9362         Define convenience macros for internal/external conversions.
9363         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
9364         and Qenvironment_variable_encoding for cleaner code.
9365
9366         * bufslots.h:
9367         Remove dedicated-frame; in lisp.
9368
9369         * bytecode.c (funcall_compiled_function):
9370         [1].
9371
9372         * bytecode.c (syms_of_bytecode):
9373         [2].
9374
9375         * console-msw.c:
9376         * console-msw.c (mswindows_show_console): Rewrote.
9377
9378         * console-msw.c (Fmswindows_debugging_output): New.
9379         Sends to OutputDebugString (special MSWin debugger interface).
9380
9381         * console-msw.c (Fmswindows_message_box):
9382         Fixed stupid bugs so it works when called from kill-emacs.
9383
9384         * console-msw.c (syms_of_console_mswindows):
9385         Declare Fmswindows_debugging_output.
9386
9387         * console-msw.h:
9388         New MSWin prototypes.
9389
9390         * console-msw.h (struct mswindows_frame):
9391         New entry last-click-mods for improved button-modifier support.
9392
9393         * console-msw.h (FRAME_MSWINDOWS_POPUP):
9394         New struct entry `popup' with corresponding accessor.
9395
9396         * console-x.c:
9397         * console-x.c (split_up_display_spec):
9398         * console-x.c (get_display_arg_connection):
9399         * console-x.c (x_semi_canonicalize_console_connection):
9400         * console-x.c (x_canonicalize_device_connection):
9401         [[[6]]]: Change char to more specific type.
9402         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
9403
9404         * console-x.c (x_semi_canonicalize_console_connection):
9405         * console-x.c (x_canonicalize_device_connection):
9406         [[[9]]]: Fix up error signalling to use new structured error system.
9407
9408         * console-x.h:
9409         [[[4]]]: Define codesys aliases:
9410         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
9411         Qx_color_name_encoding, Qx_display_name_encoding.
9412
9413         * console.h (struct console_methods):
9414         New method make_dialog_box_internal supersedes older
9415         popup_dialog_box method.
9416
9417         * data.c:
9418         Define many new errors, part of new structured errors.
9419
9420         * data.c (init_errors_once_early):
9421         * data.c (syms_of_data):
9422         [2].
9423
9424         * device-msw.c (mswindows_init_device):
9425         [[[5]]]: Cleanup to support NT 3.51.
9426
9427         * device-msw.c (decode_devmode): Cleanup.
9428
9429         * device-msw.c (mswindows_handle_print_setup_dialog_box):
9430         * device-msw.c (mswindows_handle_print_dialog_box):
9431         * device-msw.c (mswindows_handle_page_setup_dialog_box):
9432         * device-msw.c (syms_of_device_mswindows):
9433         Delete the dialog box primitives recently introduced by Kirill and
9434         instead interface to general dialog box interface.
9435
9436         * device-x.c:
9437         * device-x.c (compute_x_app_name):
9438         * device-x.c (x_init_device):
9439         * device-x.c (Fx_valid_keysym_name_p):
9440         * device-x.c (Fx_set_font_path):
9441         [6].
9442         [7].
9443
9444         * device.h (wrap_device): New.
9445         First of its kind; meant to replace XSETDEVICE.
9446
9447         * dialog-msw.c: Many file-dialog symbols.
9448
9449         * dialog-msw.c (mswindows_register_popup_frame): New.
9450         * dialog-msw.c (mswindows_is_dialog_msg): New.
9451         For supporting kbd traversal in dialog boxes.
9452
9453         * dialog-msw.c (dialog_proc):
9454         Support hitting ESC in dialogs.
9455
9456         * dialog-msw.c (struct):
9457         Common dialog box errors.
9458
9459         * dialog-msw.c (handle_file_dialog_box): New.
9460         Add file dialog code.
9461
9462         * dialog-msw.c (handle_question_dialog_box):
9463         Redo existing code to support new question dialog syntax.
9464
9465         * dialog-msw.c (console_type_create_dialog_mswindows):
9466         We support new dialog console method.
9467
9468         * dialog-msw.c (syms_of_dialog_mswindows):
9469         * dialog-msw.c (vars_of_dialog_mswindows):
9470         New file dialog symbols, vars.
9471
9472         * dialog-x.c:
9473         * dialog-x.c (maybe_run_dbox_text_callback):
9474         * dialog-x.c (dbox_descriptor_to_widget_value):
9475         * dialog-x.c (x_make_dialog_box_internal):
9476         * dialog-x.c (console_type_create_dialog_x):
9477         Mule-ize entire file.
9478         Redo to support question dialog syntax.
9479         [6].
9480
9481         * dialog.c:
9482         * dialog.c (Fmake_dialog_box_internal):
9483         * dialog.c (syms_of_dialog):
9484         Kill old popup-dialog-box, replace with new primitive.
9485         Just call device method or signal error.
9486
9487         * eldap.c (Fldap_open):
9488         * eldap.c (Fldap_search_basic):
9489         * eldap.c (Fldap_add):
9490         * eldap.c (Fldap_modify):
9491         [1].
9492         [7].
9493
9494         * emacs.c:
9495         * emacs.c (make_arg_list_1):
9496         * emacs.c (make_arg_list):
9497         Mule-ize call to dll_init().
9498         [6].
9499         [8].
9500
9501         * emacs.c (make_argc_argv):
9502         * emacs.c (free_argc_argv):
9503         * emacs.c (init_cmdargs):
9504         * emacs.c (main_1):
9505         * emacs.c (Fkill_emacs):
9506         * emacs.c (Fdump_emacs):
9507         Update comments about what can be used in syms_* etc.
9508         Call init_win32() when necessary.
9509         Fix up MS Win dialog box in kill-buffer to actually work right.
9510         [7].
9511
9512         * eval.c:
9513         * eval.c (For):
9514         * eval.c (Fand):
9515         * eval.c (Fprogn):
9516         * eval.c (Fprog1):
9517         * eval.c (Fprog2):
9518         * eval.c (FletX):
9519         * eval.c (Flet):
9520         * eval.c (condition_case_3):
9521         * eval.c (Feval):
9522         * eval.c (function_argcount):
9523         * eval.c (funcall_lambda):
9524         [1].
9525
9526         * eval.c (type_error): New.
9527         * eval.c (maybe_type_error): New.
9528         * eval.c (continuable_type_error): New.
9529         * eval.c (maybe_continuable_type_error): New.
9530         * eval.c (type_error_with_frob): New.
9531         * eval.c (maybe_type_error_with_frob): New.
9532         * eval.c (continuable_type_error_with_frob): New.
9533         * eval.c (maybe_continuable_type_error_with_frob): New.
9534         New functions for use with structured errors.
9535
9536         * event-Xt.c:
9537         * event-Xt.c (x_event_to_emacs_event):
9538         Buttons are now modifiers too.
9539
9540         * event-Xt.c (emacs_Xt_current_event_timestamp):
9541         Implement new event method.
9542         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
9543
9544         * event-msw.c:
9545         * event-msw.c (ntpipe_shove_writer): [5].
9546         * event-msw.c (mswindows_enqueue_mouse_button_event):
9547         * event-msw.c (mswindows_drain_windows_queue):
9548         * event-msw.c (mswindows_wnd_proc): [7].
9549         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
9550         * event-msw.c (mswindows_modifier_state):
9551         Throughout: support new button modifiers.
9552
9553         * event-msw.c (emacs_mswindows_current_event_timestamp):
9554         Implement new event method.
9555         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
9556
9557         * event-stream.c:
9558         * event-stream.c (event_stream_current_event_timestamp): New.
9559         * event-stream.c (maybe_kbd_translate): New functionality.
9560         * event-stream.c (vars_of_event_stream):
9561         Document new kbd-translate-table functionality.
9562
9563         * event-stream.c (Fcurrent_event_timestamp): New.
9564         New primitive for use in fabricated events.
9565         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
9566
9567         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
9568
9569         * events.c:
9570         * events.c (Fmake_event):
9571         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
9572         [1].
9573         [9].
9574
9575         * events.c (format_event_object): fix gcc warnings.
9576
9577         * events.c (Fevent_timestamp): Document new primitives.
9578
9579         * events.c (TIMESTAMP_HALFSPACE): New.
9580
9581         * events.c (Fevent_timestamp_lessp): New.  New primitive for
9582         comparing timestamps correctly (half-space algorithm).
9583
9584         * events.c (Fevent_modifier_bits): Doc fix.
9585
9586         * events.c (Fevent_modifiers): Major doc addition.
9587         * events.c (event_x_y_pixel_internal): Typo fix.
9588         * events.c (syms_of_events): Declare new primitives.
9589
9590         * events.h:
9591         Update long comment for button modifiers, timestamps.
9592
9593         * events.h (struct event_stream):
9594         New current_event_timestamp method.
9595
9596         * extents.c:
9597         * extents.c (extent_in_region_p):
9598         * extents.c (decode_extent):
9599         * extents.c (Fset_extent_parent):
9600         * extents.c (decode_map_extents_flags):
9601         Fix gcc warnings.
9602         [9].
9603
9604         * extents.c (struct extent_at_arg):
9605         * extents.c (decode_extent_at_flag):
9606         * extents.c (extent_at_mapper):
9607         * extents.c (extent_at_bytind):
9608         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
9609         * extents.c (Fextents_at): New primitive. [9].
9610         * extents.c (symbol_to_glyph_layout): [9].
9611         Support new primitive `extents-at'.
9612
9613
9614         * extents.c (get_text_property_bytind):
9615         extent_at_bytind has another arg.
9616         [9].
9617
9618         * extents.c (syms_of_extents): New primitive.
9619
9620         * file-coding.c (Fmake_coding_system): [1].
9621         * file-coding.c (subsidiary_coding_system): fix gcc warning
9622         * file-coding.c (syms_of_file_coding): [2].
9623
9624         * fileio.c (Fexpand_file_name):
9625         * fileio.c (Fsysnetunam):
9626         * fileio.c (Ffile_exists_p):
9627         * fileio.c (Ffile_executable_p):
9628         * fileio.c (Fverify_visited_file_modtime):
9629         Clean up GCPROing.
9630
9631         * fileio.c (syms_of_fileio): [2].
9632
9633         * filelock.c (lock_file_1):
9634         * filelock.c (current_lock_owner):
9635         * filelock.c (lock_if_free):
9636         * filelock.c (lock_file):
9637         * filelock.c (unlock_file):
9638         Clean up GCPROing.
9639
9640         * fns.c (concat): Fix gcc warning.
9641
9642         * fns.c (Fmember):
9643         * fns.c (Fold_member):
9644         * fns.c (Fmemq):
9645         * fns.c (Fold_memq):
9646         * fns.c (memq_no_quit):
9647         * fns.c (Fassoc):
9648         * fns.c (Fold_assoc):
9649         * fns.c (Fassq):
9650         * fns.c (Fold_assq):
9651         * fns.c (assq_no_quit):
9652         * fns.c (Frassoc):
9653         * fns.c (Fold_rassoc):
9654         * fns.c (Frassq):
9655         * fns.c (Fold_rassq):
9656         * fns.c (rassq_no_quit):
9657         * fns.c (Fdelete):
9658         * fns.c (Fold_delete):
9659         * fns.c (Fdelq):
9660         * fns.c (Fold_delq):
9661         * fns.c (delq_no_quit):
9662         * fns.c (Fremassoc):
9663         * fns.c (Fremassq):
9664         * fns.c (remassq_no_quit):
9665         * fns.c (Fremrassoc):
9666         * fns.c (Fremrassq):
9667         * fns.c (remrassq_no_quit):
9668         * fns.c (Freverse):
9669         * fns.c (mapcar1):
9670         [1].
9671
9672         * frame-msw.c (mswindows_init_frame_1):
9673         * frame-msw.c (mswindows_delete_frame):
9674         Register popups with dialog code so keyboard traversing works.
9675
9676         * frame-tty.c (tty_raise_frame_no_select): [1].
9677
9678         * frame-x.c:
9679         * frame-x.c (x_set_frame_text_value):
9680         * frame-x.c (x_set_frame_properties):
9681         * frame-x.c (x_create_widgets):
9682         [7].
9683
9684         * frame.c:
9685         * frame.c (Fmouse_pixel_position): Minor doc fixes.
9686
9687         * frame.h (wrap_frame): New.
9688         Macro like wrap_device.
9689
9690         * general.c:
9691         * general.c (SYMBOL):
9692         * general.c (syms_of_general):
9693         Major reorg.  This is now just a wrapper and symbols themselves
9694         are listed in general-slots.h.
9695
9696         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
9697         * glyphs-msw.c (mswindows_resource_instantiate): [5].
9698
9699         * glyphs-msw.c (mswindows_native_layout_instantiate):
9700         Add DS_CONTROL so keyboard traversal will work.
9701
9702         * glyphs-widget.c:
9703         * glyphs-widget.c (syms_of_glyphs_widget):
9704         Move some symbols to general-slots.h.
9705
9706         * glyphs-x.c:
9707         * glyphs-x.c (xbm_instantiate_1):
9708         * glyphs-x.c (x_xbm_instantiate):
9709         * glyphs-x.c (x_xface_instantiate):
9710         * glyphs-x.c (autodetect_instantiate):
9711         * glyphs-x.c (cursor_font_instantiate):
9712         * glyphs-x.c (x_update_widget):
9713         * glyphs-x.c (x_widget_instantiate):
9714         * glyphs.c (bitmap_to_lisp_data):
9715         * glyphs.c (pixmap_to_lisp_data):
9716         [7].
9717
9718         * glyphs.c (syms_of_glyphs):
9719         [2].
9720
9721         * gui-x.c:
9722         * gui-x.c (print_widget_value):
9723         * gui-x.c (menu_separator_style_and_to_external):
9724         * gui-x.c (add_accel_and_to_external):
9725         * gui-x.c (button_item_to_widget_value):
9726         * gui-x.c (gui_items_to_widget_values_1):
9727         * gui-x.c (gui_items_to_widget_values):
9728         * gui-x.c (syms_of_gui_x):
9729         * gui-x.c (vars_of_gui_x):
9730         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
9731         [9].
9732
9733         * gui-x.h:
9734         Muleize, prototype changes matching gui-x.c.
9735
9736         * gui.c:
9737         * gui.c (separator_string_p):
9738         * gui.c (gui_item_add_keyval_pair):
9739         * gui.c (make_gui_item_from_keywords_internal):
9740         * gui.c (signal_too_long_error):
9741         * gui.c (parse_gui_item_tree_item):
9742         * gui.c (syms_of_gui):
9743         * gui.c (vars_of_gui):
9744         * gui.h:
9745         menu-no-selection-hook moved here (used by MSWin).
9746         Move some symbols to general-slots.h.
9747         [6].
9748         [9].
9749
9750         * insdel.c (get_buffer_pos_char):
9751         * insdel.c (get_buffer_range_char):
9752         Add GC comments.
9753
9754         * keymap.c (keymap_lookup_directly):
9755         * keymap.c (keymap_store):
9756         * keymap.c (ensure_meta_prefix_char_keymapp):
9757         * keymap.c (describe_map):
9758         * keymap.h:
9759         Support new button modifiers.
9760
9761         * lisp-disunion.h (wrap_object):
9762         * lisp-disunion.h (XSETOBJ):
9763         Rename make_obj to wrap_object.
9764
9765         * lisp-union.h:
9766         * lisp-union.h (make_int):
9767         * lisp-union.h (make_char):
9768         Support wrap_object.
9769
9770         * lisp.h:
9771         * lisp.h (LIST_LOOP):
9772         * lisp.h (EXTERNAL_LIST_LOOP):
9773         * lisp.h (LIST_LOOP_2):
9774         * lisp.h (EXTERNAL_LIST_LOOP_1):
9775         * lisp.h (EXTERNAL_LIST_LOOP_2):
9776         * lisp.h (EXTERNAL_LIST_LOOP_3):
9777         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
9778         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9779         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
9780         * lisp.h (EXTERNAL_ALIST_LOOP_5):
9781         * lisp.h (EXTERNAL_ALIST_LOOP_6):
9782         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
9783         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
9784         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
9785         * lisp.h (struct Lisp_Symbol):
9786         * lisp.h (maybe_continuable_error_with_frob):
9787         Fix up section comments.
9788         Add new types for char to indicate usage.
9789         Delete symbols auto-generated from general-slots.h.
9790         Add prototypes for structured error functions.
9791         Add long comments describing looping macros and change interface
9792         so that lvalues are automatically declared.
9793         Add NO_DECLARE macro in case callers want to declare lvalues
9794         themselves.
9795
9796         * lread.c (read_syntax_error):
9797         * lread.c (continuable_read_syntax_error):
9798         * lread.c (read_structure):
9799         * lread.c (sequence_reader):
9800         * lread.c (read_list_conser):
9801         * lread.c (read_compiled_function):
9802         Rename syntax_error and continuable_syntax_error to avoid clash
9803         with same-named structured error functions.
9804
9805         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9806         * menubar-msw.c (populate_menu_add_item):
9807         * menubar-msw.c (populate_or_checksum_helper):
9808         [5].
9809         [9].
9810
9811         * menubar-x.c:
9812         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9813         Mule-ize whole file.
9814
9815         * menubar.c (Fnormalize_menu_item_name): Add optimization.
9816
9817         * mule-charset.c (Fmake_charset):
9818         * mule-wnnfns.c (Fwnn_set_param):
9819         [1].
9820
9821         * ntproc.c (create_child):
9822         * ntproc.c (Fwin32_set_current_locale):
9823         Add comments portending doom.
9824
9825         * objects-msw.c:
9826         * objects-msw.c (old_font_enum_callback_2):
9827         * objects-msw.c (font_enum_callback_1):
9828         * objects-msw.c (mswindows_enumerate_fonts):
9829         [5].
9830
9831         * objects-x.c:
9832         * objects-x.c (allocate_nearest_color):
9833         * objects-x.c (x_parse_nearest_color):
9834         * objects-x.c (x_initialize_color_instance):
9835         * objects-x.c (x_print_color_instance):
9836         * objects-x.c (x_finalize_color_instance):
9837         * objects-x.c (x_valid_color_name_p):
9838         * objects-x.c (x_initialize_font_instance):
9839         * objects-x.c (x_print_font_instance):
9840         * objects-x.c (valid_x_font_name_p):
9841         * objects-x.c (truename_via_FONT_prop):
9842         * objects-x.c (truename_via_random_props):
9843         * objects-x.c (truename_via_XListFonts):
9844         * objects-x.c (x_font_truename):
9845         * objects-x.c (x_font_instance_truename):
9846         * objects-x.c (x_font_instance_properties):
9847         * objects-x.c (x_list_fonts):
9848         * objects-x.c (x_find_charset_font):
9849         Mule-ize entire file.
9850         [7].
9851
9852         * objects-x.h:
9853         Mule-verify.
9854
9855         * print.c:
9856         * print.c (std_handle_out_external):
9857         * print.c (debug_print_no_newline):
9858         * print.c (syms_of_print):
9859         Output to all debugger kinds in debug-print.
9860         Fix console-output code under MSWin to actually work.
9861
9862         * process-nt.c (send_signal):
9863         * process-nt.c (nt_create_process):
9864         Use newer Unicode macros.
9865
9866         * process-unix.c (unix_create_process):
9867         * process-unix.c (unix_canonicalize_host_name):
9868         * process-unix.c (unix_open_network_stream):
9869         [7].
9870
9871         * scrollbar-x.c:
9872         Mule-verify.
9873
9874         * search.c (syms_of_search):
9875         [2].
9876
9877         * select-msw.c (mswindows_destroy_selection):
9878         Use LIST_LOOP_2.
9879
9880         * select-x.c (symbol_to_x_atom):
9881         [7].
9882
9883         * select.c (syms_of_select):
9884         [2].
9885
9886         * sound.c (Fplay_sound_file):
9887         [7].
9888
9889         * specifier.c:
9890         * specifier.c (decode_specifier_type):
9891         * specifier.c (Fvalid_specifier_locale_type_p):
9892         * specifier.c (check_valid_locale_or_locale_type):
9893         * specifier.c (decode_locale):
9894         * specifier.c (decode_locale_type):
9895         * specifier.c (decode_locale_list):
9896         * specifier.c (check_valid_domain):
9897         * specifier.c (decode_specifier_tag_set):
9898         * specifier.c (Fcanonicalize_tag_set):
9899         * specifier.c (Fdefine_specifier_tag):
9900         * specifier.c (Fspecifier_tag_predicate):
9901         * specifier.c (check_valid_inst_list):
9902         * specifier.c (check_valid_spec_list):
9903         * specifier.c (decode_how_to_add_specification):
9904         * specifier.c (check_modifiable_specifier):
9905         * specifier.c (specifier_add_spec):
9906         * specifier.c (boolean_validate):
9907         * specifier.c (display_table_validate):
9908         [9].
9909
9910         * specifier.c (syms_of_specifier):
9911         Move some symbols to general-slots.h.
9912         [2].
9913
9914         * symbols.c:
9915         * symbols.c (Fmapatoms):
9916         * symbols.c (Fapropos_internal):
9917         Add GCPROs.
9918
9919         * symbols.c (set_default_buffer_slot_variable):
9920         * symbols.c (set_default_console_slot_variable):
9921         [1].
9922
9923         * symbols.c (defsymbol_massage_name_1):
9924         * symbols.c (defkeyword_massage_name):
9925         * symbols.c (deferror_1):
9926         * symbols.c (deferror):
9927         * symbols.c (deferror_massage_name_and_message):
9928         * symeval.h:
9929         * symeval.h (DEFSYMBOL):
9930         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
9931
9932         * symbols.c (syms_of_symbols):
9933         [2].
9934
9935         * symsinit.h:
9936         * symsinit.h (init_win32): New.
9937         Also new is syms_of_dialog_mswindows.
9938
9939         * syswindows.h:
9940         Add new Unicode macros, missing Cygwin wide-char functions,
9941         convenience conversion macros for Qmswindows_tstr, macros for
9942         encapsulating required MSWin <-> Cygwin filename conversions,
9943         prototype for dynamically-extracted (not in NT 3.51) functions.
9944
9945         * toolbar-x.c:
9946         Mule-verify.
9947
9948         * tooltalk.c (Fadd_tooltalk_message_arg):
9949         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
9950         * tooltalk.c (Fadd_tooltalk_pattern_arg):
9951         [7].
9952
9953         * tooltalk.c (syms_of_tooltalk):
9954         [2].
9955
9956         * unexnt.c:
9957         * unexnt.c (unexec):
9958         Fix up headers, declaration of unexec() to be more standard.
9959
9960 2000-07-20  Martin Buchholz  <martin@xemacs.org>
9961
9962         * offix.h: Revert change to guard macros - they're used in offix.c!
9963
9964 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9965
9966         * lisp.h: Defsubred Fdelete.
9967
9968         * console-msw.h:  (msprinter_default_printer): Added.
9969
9970         * console-msw.c (msprinter_canonicalize_console_connection):
9971         (msprinter_canonicalize_device_connection): Added.
9972
9973         * device-msw.c (msprinter_default_printer):
9974         (Fmswingows_get_default_printer):
9975         (signal_enum_priner_error):
9976         (Fmswingows_printer_list): Added.
9977
9978 2000-07-19  Martin Buchholz <martin@xemacs.org>
9979
9980         * XEmacs 21.2.35 is released.
9981
9982 2000-07-19  Martin Buchholz  <martin@xemacs.org>
9983
9984         * select-x.c (x_handle_selection_request):
9985         Text selected in xemacs and pasted into xterm failed to appear.
9986         Spelling fixes and cosmetic changes.
9987
9988 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9989
9990         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
9991         XEmacs frame (fix for doubling chars in dialog boxes).
9992
9993 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
9994
9995         * select.c (select_convert_in, select_convert_out):
9996         Don't call intern() every time.
9997
9998         * select.c (Qselect_convert_in, Qselect_convert_out): New.
9999         * select.c (vars_of_select): Initialise them.
10000
10001 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10002
10003         * select.c (selection-coercible-types): New.
10004
10005         * select.c (own-selection-internal):
10006         * select.c (get-selection-internal):
10007         MULE bug fix - these should default to COMPOUND_TEXT and not
10008         STRING for MULE. I think.
10009
10010         * select.c (select_convert_out): Use selection-coercible-types
10011         to find types that we can attempt to perform coercions on.
10012
10013 2000-07-18  Martin Buchholz  <martin@xemacs.org>
10014
10015         * mule-wnnfns.c:
10016         * mule-canna.c:
10017         Add coding: cookie to identify encoding.
10018
10019         * mule-canna.c (CANNA_mode_keys): make static.
10020         Use proper prototypes, even for functions of no arguments.
10021         Remove external prototype for Fding().
10022
10023         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
10024
10025         * select.c (syms_of_select): Add missing DEFSUBR.
10026
10027 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
10028
10029         * select.c (get_selection_internal, own_selection_internal):
10030         Make the type default to STRING, rather than placing a nil type
10031         into Vselection_alist.
10032
10033 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
10034
10035         * gpmevent.c (tty_selection_exists_p):
10036         * gpmevent.c (tty_own_selection):
10037         Updated parameter lists.
10038
10039 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
10040
10041         * select.h (selection-alist): Removed declaration.
10042
10043         * select.h (get_local_selection):
10044         * select.c (get_local_selection):
10045         Made static.
10046
10047         * select.h (convert_selection): Removed declaration.
10048         * select.c (convert_selection): Removed.
10049         This function belongs in Lisp.
10050
10051         * select.h (select_convert_in): Declare.
10052         * select.h (select_convert_out): Declare.
10053         * select.c (select_convert_in): New.
10054         * select.c (select_convert_out): New.
10055         New conversion functions for other files to call.
10056
10057         * select.h (select_notify_buffer_kill): Declare.
10058         * select.c (select_notify_buffer_kill): New.
10059         New functions that get called from kill-buffer.
10060
10061         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
10062         X-specific lisp code.
10063
10064         * select.h: Declare some of the lisp-visible functions for
10065         external use.
10066
10067         * select.c (clean_local_selection_data): Removed. This was
10068         a disgusting function, and previously should have been in
10069         select-x.c in any case. The functionality is now provided
10070         in select-convert-from-integer (select.el).
10071
10072         * select.c (available-selection-types): Fixed stupidity where
10073         INTEGER and ATOM got added twice. Also add STRING when we see an
10074         extent.
10075
10076         * select.c (get-selection-internal): Removed symbol stripping. No
10077         longer causes conversion when data comes from the internal cache.
10078
10079         * select.c (syms_of_select): Added new functions.
10080
10081         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
10082         error checking - previously this called abort!
10083
10084         * select-x.c (x_own_selection): Changed comment.
10085
10086         * select-x.c (x_handle_selection_request): Use select_convert_out.
10087         Don't mess with selection-alist; it's an internal variable of select.c.
10088
10089         * select-x.c (x_get_foreign_selection): Use select_convert_in.
10090
10091         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
10092         rather than messing with selection-alist.
10093
10094         * select-msw.c (mswindows_get_foreign_selection):
10095         Use TO_INTERNAL_FORMAT rather than hacking.
10096
10097 2000-07-14  Martin Buchholz  <martin@xemacs.org>
10098
10099         * process-unix.c (unix_open_multicast_group):
10100         (unix_open_multicast_group): Remove useless casts.
10101
10102 2000-07-13  Martin Buchholz  <martin@xemacs.org>
10103
10104         * sound.c (Fplay_sound): Fix `unused variable' warning.
10105
10106         * emacs.c (main): Use correct type for _environ on SCO5.
10107
10108 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
10109
10110         * console.h (own_selection_method):
10111         * console.h (selection_exists_p_method):
10112         * console.h (available_selection_types_method): New.
10113         * console.h (register_selection_data_type_method): New.
10114         * console.h (selection_data_type_name): New.
10115
10116         * console-msw.h (mswindows_destroy_selection): Declare it.  New
10117         function & alist to track GlobalAlloc()'d handles that need
10118         releasing when the clipboard data gets replaced or emptied.
10119
10120         * event-msw.c (mswindows_wnd_proc): Call it.
10121
10122         * lisp.h, general.c (Qappend): New symbol representing a
10123         `how-to-add' mode.
10124
10125         * select.c (own-selection-internal):
10126         * select.c (selection-exists-p):
10127         * select.c (available-selection-types): New.
10128         * select.c (register-selection-data-type): New.
10129         * select.c (selection-data-type-name): New.  New functions to deal
10130         with device-specific selection data formats.
10131         * select.c (selection-converter-out-alist): Renamed.
10132         * select.c (selection-converter-in-alist): New.
10133         * select.c (selection-appender-alist): New.  Added new alists.
10134         * select.c (syms_of_select, vars_of_select): Added new symbols &
10135         variables.
10136         * select.c (get_local_selection): Split.
10137         * select.c: Removed spurious type checking - selections may now be
10138         of any type, not just strings.
10139         * select.c (own-selection-internal):
10140
10141         * select.h, select.c (convert_selection): New. Created
10142         convert_selection() function based on get_local_selection().
10143         * select.h, select.c (QCF_*): New symbols representing mswindows
10144         clipboard formats.
10145         * select.h, select.c (Qreplace_all, Qreplace_existing): New
10146         symbols representing `how-to-add' modes.
10147
10148         * select-msw.c (x_sym_p): New.
10149         * select-msw.c (symbol_to_ms_cf): New.
10150         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
10151         symbols & clipboard formats. Can also handle string names.
10152         * select-msw.c (mswindows_own_selection):
10153         * select-msw.c (mswindows_selection_exists_p):
10154         Added `data-type' parameter. Use it.
10155         * select-msw.c (mswindows_available_selection_types): New.
10156         * select-msw.c (mswindows_register_selection_data_type): New.
10157         * select-msw.c (mswindows_selection_data_type_name): New.
10158         * select-msw.c (mswindows_own_selection):
10159         * select-msw.c (mswindows_get_foreign_selection):
10160         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
10161         * select-msw.c (console_create_select_mswindows): Added new methods.
10162         * select-msw.c (mswindows_destroy_selection): New.
10163         * select-msw.c (Vhandle_alist): New list.
10164         * select-msw.c (mswindows_own_selection):
10165
10166         * select-x.c (x_own_selection):
10167         * select-x.c (x_selection_exists_p):
10168         * select-x.c: Added some comments about maybe using new
10169         functionality.
10170         * select-x.c (x_own_selection):
10171
10172         * specifier.c: Remove definition of Qappend (now in general.c)
10173         * specifier.c (syms_of_specifier): Remove Qappend.
10174
10175 2000-07-12  Martin Buchholz  <martin@xemacs.org>
10176
10177         * config.h.in: Add socklen_t.
10178
10179         * s/decosf4-0.h: No special compiler flags needed or desired.
10180         In particular, undefine _BSD for DEC OSF 4.0.
10181
10182 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10183
10184         * redisplay-msw.c (msprinter_frame_output_end): Added.
10185         (console_type_create_redisplay_mswindows): Referred the above.
10186
10187         * frame.c (setup_frame_without_minibuffer): Do not create a
10188         default minibuffer frame on a printer device.
10189
10190         * frame-msw.c (apply_dc_geometry): Added.
10191         (msprinter_start_page):
10192         (msprinter_init_frame_3):
10193         (msprinter_eject_page): Use it.
10194
10195         * console-msw.h (struct msprinter_frame): Added pix_left and top,
10196         and removed residual duplex and orientation properties.
10197
10198 2000-07-11  Martin Buchholz  <martin@xemacs.org>
10199
10200         * eval.c (function_argcount): Work around a DEC CC compiler bug.
10201
10202         * unexalpha.c: Remove system prototypes from C sources!
10203
10204 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
10205
10206         * eval.c: Remove references to M-x edit-options in DEFUNs for
10207         `defvar' and `defconst'.
10208
10209 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10210
10211         * config.h.in: Remove SMART_INCLUDE hackery.
10212
10213         PostgreSQL hacking:
10214         * config.h.in: Don't use SMART_INCLUDE.
10215
10216         * postgresql.h: Include libpq-fe.h here.  Fix typo.
10217         * inline.c: Simply #include "postgresql.h"
10218         * postgresql.c:
10219         - Don't use SMART_INCLUDE
10220         - Use simply "const".
10221         - Use standard doc string conventions.
10222         - Use correct type for result of PQstatus.
10223
10224 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10225
10226         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
10227
10228         C++ compilation changes.
10229         * config.h.in (EXTERN_C): Define.
10230         * config.h.in (not): This is also a C++ keyword.
10231         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
10232         * cm.c: Use EXTERN_C.
10233         * redisplay-tty.c: Use EXTERN_C.
10234         * sysdep.c: Use EXTERN_C.  Remove Gould support.
10235
10236 2000-07-09  Martin Buchholz  <martin@xemacs.org>
10237
10238         * general.c: Remove duplicate definition for Qfunction.
10239
10240 2000-07-08  Ben Wing  <ben@xemacs.org>
10241
10242         * device-msw.c (msprinter_init_device):
10243         * device-msw.c (sync_printer_with_devmode):
10244         * device-msw.c (handle_devmode_changes):
10245         * device-msw.c (print_dialog_worker):
10246         * device-msw.c (Fmsprinter_apply_settings):
10247         * device-msw.c (hash_devmode):
10248         * device-msw.c (Fmsprinter_settings_despecialize):
10249         use Qmswindows_tstr, not Qctext.
10250
10251         * vm-limit.c (check_memory_limits):
10252         avoid infinite loop printing warning messages.
10253
10254 2000-07-05  Craig Lanning  <lanning@scra.org>
10255
10256         * Makefile.in.in: Add support for including the Windows resources
10257         when building with the cygwin and mingw targets.
10258
10259         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
10260         not set or not correct.
10261         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
10262         (init_initial_directory): Don't try to use $PWD on the
10263         WIN32_NATIVE target.
10264
10265         * s\cygwin32.h:
10266         [[Add -mwindows to eliminate console window.]] not required --ben
10267         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10268         (MAIL_USE_POP): removed; now handled by configure.
10269
10270         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
10271         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
10272         (HAVE_NATIVE_SOUND): removed; now handled by configure.
10273         (MAIL_USE_POP): removed; now handled by configure.
10274         (ENCAPSULATE_STAT): from Dan Holmsand, added.
10275         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
10276         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
10277         constant string.
10278         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
10279         up from <winsock.h> via systime.h.
10280         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
10281         (getpagesize): from Dan Holmsand, added.
10282         Added #endif which was left dangling by Ben's mega patch; added
10283         comment to help prevent this in the future.
10284
10285         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
10286
10287 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10288
10289         * console-msw.h (struct mswindows_device): Removed unnecessary
10290         cached device geometry values.
10291         Added update_tick and an accessor macro.
10292         (Lisp_Devmode): Added lrecord declaration.
10293         (struct msprinter_device): Contain devmode as a Lisp object.
10294         Added mswindows_get_selected_frame_hwnd();
10295
10296         * console.h (struct console_methods): Indentation nitpicking.
10297
10298         * device-msw.c (mswindows_init_device): Do not initialize geometry
10299         cache. Initialize update tick.
10300         (mswindows_device_system_metrics): Ask the device for its geometry.
10301         (global_free_2_maybe):
10302         (devmode_to_hglobal):
10303         (handle_printer_changes):
10304         (ensure_not_printing):
10305         (print_dialog_worker):
10306         (Fmsprinter_print_setup_dialog):
10307         (Fmsprinter_print_dialog):
10308         (plist_get_margin):
10309         (plist_set_margin):
10310         (Fmsprinter_page_setup_dialog): Added functions.
10311         (sync_printer_with_devmode):
10312         (handle_devmode_changes):
10313         (Fmsprinter_get_settings):
10314         (Fmsprinter_select_settings):
10315         (Fmsprinter_apply_settings):
10316         (allocate_devmode):
10317         (Fmsprinter_settings_copy):
10318         (Fmsprinter_settings_despecialize):
10319         (print_devmode):
10320         (finalize_devmode):
10321         (equal_devmode):
10322         (hash_devmode): Added functions
10323         (syms_of_device_mswindows): Init devmode lrecord class.
10324
10325         * device.h: Added an exfun for find-device.
10326
10327         * event-msw.c (mswindows_wnd_proc): Do not update the cached
10328         geometry; although, recreate the device compatible DC.
10329
10330         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
10331         (msprinter_init_frame_3):
10332         (msprinter_frame_property):
10333         (msprinter_internal_frame_property_p):
10334         (msprinter_frame_properties):
10335         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
10336         print job properties (will move to device settings).
10337
10338         * lisp.h: Added symbols.
10339
10340         * general.c (syms_of_general): Declared them.
10341
10342         * hash.c (string_hash): Added.
10343
10344         * lrecord.h (lrecord_type): Added devmode lrecord type.
10345
10346 2000-07-02  Mike Sperber <mike@xemacs.org>
10347
10348         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
10349         FreeBSD 4.0.
10350
10351 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
10352
10353         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
10354         integer.
10355
10356 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
10357
10358         * data.c (Fstring_to_number): Don't recognize floating point if
10359         base is not 10.
10360
10361 2000-06-22  Martin Buchholz  <martin@xemacs.org>
10362
10363         * glyphs-widget.c (tab_control_query_geometry):
10364         (widget_query_geometry):
10365         (button_query_geometry):
10366         * glyphs.c (text_query_geometry):
10367         Enforce type correctness.
10368
10369 2000-06-18  Martin Buchholz  <martin@xemacs.org>
10370
10371         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
10372         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
10373
10374 2000-06-17  Martin Buchholz  <martin@xemacs.org>
10375
10376         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
10377         conflicts with gcc's fixincluded version of FOO.h.
10378
10379         * glyphs.h (image_instance_geometry): Remove trailing `,'
10380
10381 2000-06-08  Mike Alexander  <mta@arbortext.com>
10382
10383         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
10384         (shove_thread): Don't write the same output twice
10385         (make_ntpipe_output_stream): Increase priority of shove thread
10386         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
10387         chance to run
10388         (ntpipe_shove_closer): Don't delete the pipe until we're done with
10389         it.
10390
10391 2000-06-12  Ben Wing  <ben@xemacs.org>
10392
10393         * s\mingw32.h (sigset):
10394         * s\windowsnt.h (sigset):
10395         rename msw_ to mswindows_ for consistency with general convention.
10396
10397 2000-06-12  Ben Wing  <ben@xemacs.org>
10398
10399         * console-msw.c:
10400         * console-msw.c (mswindows_get_console_hwnd):
10401         * console-msw.c (mswindows_ensure_console_allocated):
10402         * console-msw.c (mswindows_hide_console):
10403         * console-msw.c (mswindows_show_console):
10404         * console-msw.c (mswindows_ensure_console_buffered):
10405         * console-msw.c (mswindows_output_console_string):
10406         * console-msw.c (mswindows_windows9x_p):
10407         * console-msw.h:
10408         * device-msw.c (mswindows_get_workspace_coords):
10409         * device-msw.c (mswindows_device_system_metrics):
10410         * dialog-msw.c (mswindows_popup_dialog_box):
10411         * event-msw.c (mswindows_wnd_proc):
10412         * frame-msw.c (mswindows_size_frame_internal):
10413         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10414         * menubar-msw.c (displayable_menu_item):
10415         * menubar-msw.c (mswindows_char_is_accelerator):
10416         * nt.c:
10417         * nt.c (mswindows_sigset):
10418         * nt.c (mswindows_sigrelse):
10419         * nt.c (mswindows_sigpause):
10420         * nt.c (mswindows_raise):
10421         * nt.c (timer_proc):
10422         * ntproc.c:
10423         * ntproc.c (find_child_console):
10424         * ntproc.c (sys_kill):
10425         * print.c:
10426         * print.c (std_handle_out_external):
10427         * process-nt.c (find_child_console):
10428         * process-nt.c (send_signal_the_95_way):
10429         * process-nt.c (ensure_console_window_exists):
10430         * process-nt.c (nt_create_process):
10431         * syssignal.h:
10432         rename msw_ to mswindows_ for consistency with general convention.
10433
10434         * emacs.c:
10435         * dumper.c:
10436         include nt.h, not syswindows.h.
10437
10438         * nt.c (mswindows_fstat):
10439         * nt.c (mswindows_stat):
10440         prefix mswindows_ instead of attempting to directly override the
10441         library functions.  fix declarations.
10442
10443         * nt.h:
10444         include syswindows.h.  move some sysdep.h stuff here.
10445
10446         * ntheap.h:
10447         include syswindows.h, not <windows.h>.
10448
10449         * ntplay.c:
10450         clean up headers.
10451
10452         * sysdep.c:
10453         clean up headers.
10454
10455         * sysdep.c (sys_fstat):
10456         * sysdep.c (sys_stat):
10457         call mswindows versions when appropriate.
10458
10459         * sysdep.h:
10460         move mswin decls to nt.h.
10461
10462         * syswindows.h:
10463         add long comment describing appropriate use of the various windows
10464         headers.
10465
10466 2000-06-11  Ben Wing  <ben@xemacs.org>
10467
10468         * device-x.c: Correct doc string for sixth arg of x-get-resource.
10469
10470 2000-06-10  Ben Wing  <ben@xemacs.org>
10471
10472         * Makefile.in.in (release):
10473         Correction to make sure xemacs.exe always dumped when correct.
10474
10475         * alloca.c:
10476         * balloon_help.c:
10477         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
10478
10479         * buffer.c (set_buffer_internal):
10480         [[[[2]]]]: Remove HAVE_FEP code.
10481
10482         * buffer.c (init_initial_directory):
10483         [3].
10484
10485         * bytecode.c:
10486         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
10487         individual files.
10488
10489         * callproc.c:
10490         * callproc.c (call_process_cleanup):
10491         * callproc.c (Fold_call_process_internal):
10492         * callproc.c (child_setup):
10493         * callproc.c (getenv_internal):
10494         * callproc.c (init_callproc):
10495         * callproc.c (vars_of_callproc):
10496         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
10497         __CYGWIN32__ -> CYGWIN.
10498         DOS_NT -> WIN32_NATIVE.
10499         Remove MSDOS support/references, converting to WIN32_NATIVE
10500           where correct.
10501         __MINGW32__ -> MINGW.
10502         Fix windows.h includes.
10503         Remove bogus HAVE_NTGUI.
10504
10505         * config.h.in:
10506         [2].
10507
10508         * console-msw.c:
10509         mswindows_message_outputted added for use in allowing startup
10510         errors on the console to be seen.
10511
10512         * console-msw.c (msw_ensure_console_allocated):
10513         * console-msw.c (msw_output_console_string):
10514         * console-msw.c (DHEADER):
10515         * console-msw.c (DOPAQUE_DATA):
10516         * console-msw.c (DEVENT):
10517         * console-msw.c (DCONS):
10518         * console-msw.c (DCONSCDR):
10519         * console-msw.c (DSTRING):
10520         * console-msw.c (DVECTOR):
10521         * console-msw.c (DSYMBOL):
10522         * console-msw.c (DSYMNAME):
10523         Fix warnings.
10524
10525         * console-stream.c (stream_init_console):
10526         Fix text/binary problems.
10527
10528         * device-msw.c:
10529         * device-msw.c (mswindows_finish_init_device):
10530         * device-msw.c (mswindows_delete_device):
10531         [1].
10532
10533         * device.c (handle_asynch_device_change):
10534         [3].
10535
10536         * dgif_lib.c:
10537         * dgif_lib.c (DGifOpenFileName):
10538         * dgif_lib.c (DGifOpenFileHandle):
10539         * dgif_lib.c (DGifGetLine):
10540         * dgif_lib.c (DGifGetPixel):
10541         Added config.h/lisp.h, fix up includes.
10542         [1].
10543
10544         * dired-msw.c:
10545         [4].
10546
10547         * dired.c:
10548         * dired.c (file_name_completion):
10549         * dired.c (Ffile_attributes):
10550         * dired.c (syms_of_dired):
10551         [1].
10552
10553         * dumper.c:
10554         * dumper.c (pdump_file_unmap):
10555         * dumper.c (pdump_load):
10556         [1].
10557
10558         * editfns.c:
10559         * editfns.c (Ftemp_directory):
10560         * editfns.c (user_login_name):
10561         * editfns.c (Fuser_real_login_name):
10562         * editfns.c (get_home_directory):
10563         [1].
10564
10565         * elhash.c (finish_marking_weak_hash_tables):
10566         [[[[5]]]]: Fix GCC warnings.
10567
10568         * emacs.c:
10569         * emacs.c (mswindows_handle_hardware_exceptions):
10570         * emacs.c (make_arg_list_1):
10571         * emacs.c (main_1):
10572         * emacs.c (Fkill_emacs):
10573         * emacs.c (Fdump_emacs):
10574         [1].
10575         Fix problems with nested crashes, add long comment.
10576
10577         * event-Xt.c (init_event_Xt_late):
10578         [1].
10579
10580         * event-msw.c:
10581         * event-msw.c (mswindows_dde_callback):
10582         * event-msw.c (mswindows_handle_sticky_modifiers):
10583         * event-msw.c (mswindows_wnd_proc):
10584         [1].
10585         [5].
10586
10587         * events.c (character_to_event):
10588         [1].
10589
10590         * fileio.c:
10591         * fileio.c (Ffile_name_directory):
10592         * fileio.c (Ffile_name_nondirectory):
10593         * fileio.c (directory_file_name):
10594         * fileio.c (Fexpand_file_name):
10595         * fileio.c (Fsubstitute_in_file_name):
10596         * fileio.c (Ffile_name_absolute_p):
10597         * fileio.c (check_executable):
10598         * fileio.c (Ffile_readable_p):
10599         * fileio.c (Ffile_accessible_directory_p):
10600         * fileio.c (Ffile_modes):
10601         * fileio.c (Funix_sync):
10602         * fileio.c (vars_of_fileio):
10603         [1]. [4].
10604
10605         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
10606
10607         Expand getdefdir defn.
10608         Fix bogus rename() comment.
10609
10610         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
10611         to use standard XEmacs include files, e.g. sysfile.h, rather
10612         than system-specific includes.
10613
10614         * fns.c:
10615         * fns.c (Fsubseq):
10616         [5]. [6].
10617
10618         * frame.c (vars_of_frame):
10619         [1].
10620
10621         * getloadavg.c:
10622         * getloadavg.c (getloadavg):
10623         [1]. [6].
10624         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
10625         (We don't use it elsewhere in the code; just add a comment.)
10626
10627         * gif_io.c:
10628         [6].
10629         Add config.h.
10630
10631         * glyphs-msw.c:
10632         * glyphs-msw.c (mswindows_resource_instantiate):
10633         [1].
10634
10635         * glyphs-x.c (x_native_layout_instantiate):
10636         [5].
10637
10638         * gui-msw.c (Fmswindows_shell_execute):
10639         [1].
10640
10641         * insdel.c:
10642         [4].
10643
10644         * lisp.h:
10645         [4]. [5].
10646
10647         * lread.c (locate_file_in_directory_mapper):
10648         [1].
10649
10650         * lstream.c:
10651         [4].
10652
10653         * mem-limits.h:
10654         * mem-limits.h (get_lim_data):
10655         [1].
10656
10657         * menubar-msw.c:
10658         [4].
10659
10660         * ndir.h:
10661         [1].
10662
10663         * nt.c:
10664         * nt.c (getwd):
10665         * nt.c (closedir):
10666         * nt.c (rva_to_section):
10667         * nt.c (mswindows_executable_type):
10668         [1]. [6].
10669         Fix closedir() defn.
10670
10671         * nt.h:
10672         [[[[8]]]]: *_OK defs moved to sysfile.h.
10673
10674         * ntproc.c:
10675         [6]. [7].
10676
10677         * objects-x.c:
10678         [4].
10679
10680         * print.c:
10681         * print.c (std_handle_out_external):
10682         [1]. [4].
10683
10684         * process-nt.c:
10685         * process-nt.c (nt_create_process):
10686         [6].
10687         try to fix process quoting somewhat.
10688
10689         * process-unix.c (unix_create_process):
10690         [1].
10691
10692         * process.c:
10693         * process.c (vars_of_process):
10694         Add Vnull_device.
10695
10696         * process.h:
10697         [1].
10698
10699         * realpath.c:
10700         * realpath.c (xrealpath):
10701         [1].
10702
10703         * redisplay-tty.c (init_tty_for_redisplay):
10704         [3].
10705
10706         * redisplay.c:
10707         [4]. [6].
10708
10709         * scrollbar-msw.c:
10710         [4].
10711
10712         * sheap.c:
10713         * sheap.c (more_static_core):
10714         * sheap.c (report_sheap_usage):
10715         [5]. [6].
10716
10717         * signal.c:
10718         * signal.c (alarm_signal):
10719         [1]. [6].
10720
10721         * sound.c:
10722         [6].
10723
10724         * strftime.c:
10725         * strftime.c (zone_name):
10726         [1]. [5].
10727
10728         * symsinit.h (init_sunpro):
10729         [1].
10730
10731         * syscommctrl.h:
10732         commctrl.h not in Cygwin b20.1.
10733
10734         * sysdep.c:
10735         * sysdep.c (endif):
10736         * sysdep.c (sys_subshell):
10737         * sysdep.c (init_baud_rate):
10738         * sysdep.c (emacs_get_tty):
10739         * sysdep.c (emacs_set_tty):
10740         * sysdep.c (tty_init_sys_modes_on_device):
10741         * sysdep.c (init_system_name):
10742         * sysdep.c (sys_open):
10743         * sysdep.c (interruptible_open):
10744         * sysdep.c (sys_fopen):
10745         * sysdep.c (sys_mkdir):
10746         * sysdep.c (sys_rename):
10747         * sysdep.c (get_process_times_1):
10748         [1]. [6].
10749
10750         * sysdep.h:
10751         [1].
10752
10753         * sysdir.h:
10754         * sysdir.h (DIRENTRY_NONEMPTY):
10755         [1]. [6].
10756
10757         * sysdll.c (dll_init):
10758         * sysdll.h:
10759         [1].
10760
10761         * sysfile.h:
10762         [1]. [6]. [8].
10763         added text/binary defs.
10764
10765         * sysfloat.h:
10766         [1].
10767
10768         * sysproc.h:
10769         * sysproc.h (EDESTADDRREQ):
10770         * sysproc.h (poll_fds_for_input):
10771         [1]. [6].
10772
10773         * syspwd.h:
10774         [6].
10775
10776         * syssignal.h:
10777         [1].
10778
10779         * systime.h:
10780         [1]. [6].
10781
10782         * systty.h:
10783         [1].
10784
10785         * syswindows.h:
10786         [1].
10787         Always define WIN32_LEAN_AND_MEAN.
10788
10789         * unexcw.c (unexec):
10790         [5].
10791
10792         * unexec.c:
10793         * unexec.c (copy_text_and_data):
10794         * unexec.c (adjust_lnnoptrs):
10795         [1].
10796
10797         * unexnt.c:
10798         * unexnt.c (_start):
10799         [1].
10800
10801 2000-06-07  Ben Wing  <ben@xemacs.org>
10802
10803         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
10804         was used only as a model.  We've long since extracted any useful
10805         logic or code out of this. (I just did an exhaustive search.)
10806
10807         * s\msdos.h: Removed.
10808
10809         * s\windows95.h: Removed.
10810
10811 2000-06-10  Ben Wing  <ben@xemacs.org>
10812
10813         * s\cygwin32.h:
10814         [1]. [5].
10815         Don't use extern with fun defs.
10816
10817         * s\mingw32.h:
10818         [1]. [7].
10819         Remove nt\inc include.
10820         Remove getdisk, getdefdir. (The former is unused, the latter
10821         expanded in fileio.h.)
10822
10823         * s\windowsnt.h:
10824         * s\windowsnt.h (WIN32_NATIVE):
10825         * s\windowsnt.h (HAVE_STRCASECMP):
10826         [1]. [7].
10827         Add long comment about preprocessor changes.
10828         Remove getdisk, getdefdir. (The former is unused, the latter
10829         expanded in fileio.h.)
10830
10831 2000-06-10  Ben Wing  <ben@xemacs.org>
10832
10833         * m\arm.h:
10834         * m\delta.h:
10835         * m\intel386.h:
10836         * m\sequent.h:
10837         * m\template.h:
10838         * m\windowsnt.h:
10839         [1].
10840         Remove bogus/unused NO_SOCK_SIGIO.
10841
10842 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
10843
10844         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
10845         not an Emchar.
10846
10847 2000-06-04  Mike Sperber <mike@xemacs.org>
10848
10849         * casetab.c (set_case_table): For `set-standard-case-table',
10850         actually deposit the new case tables where the rest of XEmacs can
10851         see them.
10852
10853 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
10854
10855         * data.c (Faset): Don't cast XCHAR() to unsigned char.
10856
10857 2000-06-05  Ben Wing  <ben@xemacs.org>
10858
10859         * callproc.c (child_setup): Don't do close_load_descs() under
10860         MS Windows.  Put in a comment explaining why.
10861
10862 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
10863
10864         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
10865         Toolkit shell" which breaks `kill-compilation' on Windows NT
10866         native, retaining STDERR handling improvements.
10867
10868 2000-06-01  Andreas Jaeger  <aj@suse.de>
10869
10870         * s/s390.h: Support for S390, based on a patch by Martin
10871         Schwidefsky <schwidefsky@de.ibm.com>.
10872
10873 2000-05-30  Andy Piper  <andy@xemacs.org>
10874
10875         * window.c (allocate_window):
10876         (make_dummy_parent):
10877         (Fset_window_configuration): use new hashtable type.
10878
10879         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
10880         (struct image_instantiator_methods):
10881         (struct Lisp_Image_Instance): make instance geometry signed.
10882
10883         * glyphs.c (instantiate_image_instantiator):
10884         (image_instance_query_geometry):
10885         (image_instance_layout):
10886         (image_instance_layout):
10887         (query_string_geometry):
10888         (text_query_geometry):
10889         (image_instantiate):
10890         (image_instantiate):
10891         (cache_subwindow_instance_in_frame_maybe):
10892         (subwindow_query_geometry): make instance geometry signed.
10893
10894         * glyphs-widget.c (widget_query_geometry):
10895         (widget_layout):
10896         (button_query_geometry):
10897         (tree_view_query_geometry):
10898         (tab_control_query_geometry):
10899         (layout_query_geometry):
10900         (layout_layout):
10901         (native_layout_layout): make instance geometry signed.
10902
10903 2000-05-29  Olivier Galibert  <galibert@pobox.com>
10904
10905         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
10906         constant.
10907
10908         * general.c (syms_of_general): Add Qfull_assoc symbol.
10909
10910         * data.c (finish_marking_weak_lists): Mark full-assoc lists
10911         correctly.
10912         (decode_weak_list_type): Decode full-assoc type.
10913         (encode_weak_list_type): Encode full-assoc type.
10914         (Fmake_weak_list): Update doc string.
10915
10916 2000-05-30  Andy Piper  <andy@xemacs.org>
10917
10918         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
10919
10920         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
10921         (decode_hash_table_weakness): ditto.
10922         (Fhash_table_weakness): ditto.
10923         (Fhash_table_type): ditto.
10924         (finish_marking_weak_hash_tables): ditto.
10925         (hash_table_weakness_validate): ditto.
10926         (syms_of_elhash): ditto.
10927
10928 2000-05-28  Martin Buchholz <martin@xemacs.org>
10929
10930         * XEmacs 21.2.34 is released.
10931
10932 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
10933
10934         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
10935         start cache.
10936         (updating_line_start_cache): Gone.
10937         (regenerate_window): Replace resetting of VERTICAL_CLIP by
10938         generic code to force a minimum of 1 line laid out in the
10939         CMOTION_DISP case.
10940
10941 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
10942
10943         * glyphs.c (instantiate_image_instantiator): Check for initialized
10944         height & width no longer special cases IMAGE_NOTHING.
10945         (nothing_instantiate): Set height and width of instance.
10946
10947 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10948
10949         * unexelf.c (unexec): Search for ".data" section.
10950         Initialize new_data2_offset from old_data_index.
10951         Remove redundant check for ElfW.
10952
10953 2000-05-23  Andy Piper  <andy@xemacs.org>
10954
10955         * glyphs.c (get_image_instantiator_governing_domain): allow more
10956         specific domains as the governing domain rather than expecting an
10957         exact match. This fixes problems with layouts.
10958
10959 2000-05-22  Andy Piper  <andy@xemacs.org>
10960
10961         * redisplay-output.c (compare_runes): check for non-images
10962
10963         * glyphs.c (set_glyph_dirty_p): ditto.
10964         (update_glyph_cachel_data): ditto.
10965
10966         * glyphs-widget.c (layout_post_instantiate): ditto.
10967         (layout_post_instantiate): ditto.
10968
10969         * event-msw.c (mswindows_wnd_proc): warning removal.
10970
10971 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
10972
10973         * s\mingw32.h: Added #undef for CLASH_DETECTION.
10974
10975         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
10976
10977         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
10978
10979         * nt.c (rva_to_section): mingw32 needs rva_to_section.
10980         (mswindows_executable_type): mingw32 now has enough headers for
10981         this to work.
10982
10983 2000-05-20  Andy Piper  <andy@xemacs.org>
10984
10985         * console-msw.c (mswindows_output_last_error): ; -> ,
10986
10987 2000-05-12  Andy Piper  <andy@xemacs.org>
10988
10989         * console-msw.c (FROB): compare ints with ints.
10990
10991 2000-05-11  Andy Piper  <andy@xemacs.org>
10992
10993         * glyphs-x.c (x_finalize_image_instance): make minimal build
10994         happy.
10995
10996 2000-05-20  Ben Wing  <ben@xemacs.org>
10997
10998         * event-Xt.c:
10999         * event-Xt.c (vars_of_event_Xt):
11000         move modifier-keys-are-sticky to event-stream.c.
11001
11002         * event-msw.c:
11003         * event-msw.c (mswindows_enqueue_mouse_button_event):
11004         * event-msw.c (key_needs_default_processing_p):
11005         * event-msw.c (XEMSW_LCONTROL):
11006         * event-msw.c (mswindows_handle_sticky_modifiers):
11007         * event-msw.c (FROB):
11008         * event-msw.c (clear_sticky_modifiers):
11009         * event-msw.c (output_modifier_keyboard_state):
11010         * event-msw.c (output_alt_keyboard_state):
11011         * event-msw.c (mswindows_wnd_proc):
11012         * event-msw.c (mswindows_modifier_state):
11013         * event-msw.c (emacs_mswindows_handle_magic_event):
11014         implement sticky modifiers.
11015
11016         * event-stream.c:
11017         * event-stream.c (vars_of_event_stream):
11018         move modifier-keys-are-sticky here.
11019
11020         * lisp.h:
11021         add CHECK_FUNCTION.
11022
11023         * rangetab.c:
11024         implement map-range-table.
11025
11026
11027 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
11028
11029         * redisplay-tty.c (reset_tty_modes):
11030         (tty_redisplay_shutdown): Adjust argument type to
11031         tty_frame_output_end.
11032
11033 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11034
11035         * eval.c (Fbacktrace): Don't output a line with only right
11036         parenthesis.
11037
11038 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
11039
11040         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
11041         (Fpq_reset_poll): Ditto.
11042
11043 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
11044
11045         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
11046
11047 2000-05-16  Ben Wing  <ben@xemacs.org>
11048
11049         * buffer.c:
11050         * buffer.c (dfc_convert_to/from_internal_format):
11051         * buffer.c (reinit_vars_of_buffer):
11052         Fix conversion functions to allow reentrancy.
11053
11054         * console-msw.c:
11055         * console-msw.c (mswindows_output_last_error):
11056         New fun, generally useful -- output a human-readable
11057         version of GetLastError() on the console.
11058
11059         * console-msw.h:
11060         * console-msw.h (struct mswindows_frame):
11061         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
11062
11063         * console-stream.c (stream_output_begin):
11064         * console-stream.c (stream_output_end):
11065         * console-stream.c (stream_output_vertical_divider):
11066         * console-stream.c (stream_clear_region):
11067         * console-stream.c (stream_flash):
11068         * console-stream.c (console_type_create_stream):
11069         Delete blank stream methods, not needed.
11070
11071         * console.h (struct console_methods):
11072         Split begin/end methods into window and frame.
11073
11074         * event-msw.c:
11075         * event-msw.c (mswindows_handle_paint):
11076         * event-msw.c (output_alt_keyboard_state):
11077         * event-msw.c (mswindows_wnd_proc):
11078         * event-msw.c (vars_of_event_mswindows):
11079         Comment about problems with ignored-expose.
11080         Define mswindows-debug-events; not really implemented.
11081
11082         * frame-msw.c (mswindows_init_frame_1):
11083         random cleanups.
11084
11085         * glyphs-msw.c:
11086         * glyphs-msw.c (begin_defer_window_pos):
11087         * glyphs-msw.c (mswindows_unmap_subwindow):
11088         * glyphs-msw.c (mswindows_map_subwindow):
11089         * glyphs-msw.c (mswindows_resize_subwindow):
11090         Use DeferWindowPos to reduce flashing when mapping/unmapping.
11091
11092         * glyphs.c (make_image_instance_1):
11093         Fix crash.
11094
11095         * gutter.c (Fredisplay_gutter_area):
11096         Use new begin/end methods.
11097
11098         * lisp.h (Dynarr_new2):
11099         New creation fun.
11100
11101         * redisplay-msw.c:
11102         * redisplay-msw.c (mswindows_frame_output_begin):
11103         * redisplay-msw.c (mswindows_frame_output_end):
11104         * redisplay-msw.c (console_type_create_redisplay_mswindows):
11105         New begin/end methods -- handle DeferWindowPos.
11106
11107         * redisplay-output.c (redisplay_move_cursor):
11108         * redisplay-output.c (redraw_cursor_in_window):
11109         * redisplay-output.c (redisplay_update_line):
11110         * redisplay-output.c (redisplay_output_window):
11111         New begin/end methods.
11112
11113         * redisplay-tty.c:
11114         * redisplay-tty.c (tty_frame_output_begin):
11115         * redisplay-tty.c (tty_frame_output_end):
11116         * redisplay-tty.c (console_type_create_redisplay_tty):
11117         New begin/end methods.
11118
11119         * redisplay-x.c:
11120         * redisplay-x.c (x_window_output_begin):
11121         * redisplay-x.c (x_window_output_end):
11122         * redisplay-x.c (console_type_create_redisplay_x):
11123         New begin/end methods.
11124
11125         * redisplay.c (redisplay_frame):
11126         * redisplay.c (Fredisplay_echo_area):
11127         New begin/end methods.
11128         use MAYBE_DEVMETH for clear_frame; it may not exist.
11129
11130         * window.h (WINDOW_XFRAME):
11131         WINDOW_XFOO macros -- get locale and decode struct pointer.
11132
11133
11134 2000-05-12  Ben Wing  <ben@xemacs.org>
11135
11136         * emacs.c:
11137         * emacs.c (ensure_no_quitting_from_now_on):
11138         * emacs.c (fatal_error_signal):
11139         * emacs.c (mswindows_handle_hardware_exceptions):
11140         * emacs.c (main):
11141         * emacs.c (Fkill_emacs):
11142         * emacs.c (shut_down_emacs):
11143         * emacs.c (assert_failed):
11144         various improvements in fatal error handling.
11145
11146         * eval.c:
11147         move preparing_for_armageddon to emacs.c.
11148
11149         * lisp.h:
11150         declare fatal_error_in_progress.
11151
11152         * print.c:
11153         * print.c (std_handle_out_external):
11154         * print.c (std_handle_out_va):
11155         * print.c (stderr_out):
11156         * print.c (stdout_out):
11157         use console under mswin when no standard output.
11158         don't do code conversion during fatal error.
11159
11160         * scrollbar.c (Fscrollbar_page_up):
11161         * scrollbar.c (Fscrollbar_page_down):
11162         fix missing else.  reindent.
11163
11164 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
11165
11166         Emergency fix.
11167
11168         * glyphs.h (GLYPH_CACHEL_DESCENT):
11169         (GLYPH_CACHEL_DESCENT):
11170         (GLYPH_CACHEL_DESCENT):
11171         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
11172         used in case these are inline functions.
11173         Use more absurd values to error check.
11174
11175         include window.h for error check functions.
11176
11177 2000-05-11  Ben Wing  <ben@xemacs.org>
11178
11179         * cmdloop.c (Freally_early_error_handler):
11180         Display message box under windows; otherwise, message will disappear
11181         before it can be viewed.
11182
11183         * console-msw.c:
11184         * console-msw.c (Fmswindows_message_box):
11185         * console-msw.c (FROB):
11186         * console-msw.c (syms_of_console_mswindows):
11187         Define new fun `mswindows-message-box'.
11188         #### I will merge this into `popup-dialog-box'; just give me
11189         a bit of time.
11190
11191         * general.c:
11192         * general.c (syms_of_general):
11193         Some new symbols used in `mswindows-message-box'.
11194
11195         * glyphs.c:
11196         * glyphs.c (Fset_image_instance_property):
11197         put warning in this fun.
11198
11199         * glyphs.h:
11200         * glyphs.h (GLYPH_CACHEL_WIDTH):
11201         * glyphs.h (GLYPH_CACHEL_ASCENT):
11202         * glyphs.h (GLYPH_CACHEL):
11203         * glyphs.h (GLYPH_CACHEL_GLYPH):
11204         define error-checking versions to try to catch a bug i've seen --
11205         redisplay gets in an infinite loop because the glyph width of the
11206         continuation glyph is 65535.
11207
11208         * lisp.h:
11209         Extern message-box stuff.
11210
11211         * window.c (allocate_window):
11212         * window.c (make_dummy_parent):
11213         * window.c (Fset_window_configuration):
11214         Use EQUAL not EQ for subwindow caches to make them work a bit
11215         better. (Something is still very broken.)
11216
11217
11218 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
11219
11220         * glyphs.c (image_instantiate): Suppress gcc warnings.
11221         (Fmake_image_instance): Fix doc string.
11222         * specifier.c (Fmake_specifier): Ditto.
11223
11224 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
11225
11226         * paths.h.in (PATH_LOCK): Removed.
11227         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
11228         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
11229
11230 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
11231
11232         * fns.c (Ffeaturep): Update e-mail address in doc-string.
11233         Document (featurep '(and xemacs 21.02)).
11234
11235 2000-05-09  Ben Wing  <ben@xemacs.org>
11236
11237         * buffer.c (complex_vars_of_buffer):
11238         update modeline-format doc.
11239
11240         * device.h:
11241         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
11242
11243         * emacs.c:
11244         timeline of all released versions of Emacs, for use in creating
11245         authorship comments and in synching up.
11246
11247         * glyphs-widget.c (image_instantiator_buttons):
11248         * glyphs-widget.c (image_instantiator_edit_fields):
11249         * glyphs-widget.c (image_instantiator_combo_box):
11250         * glyphs-widget.c (image_instantiator_scrollbar):
11251         * glyphs-widget.c (image_instantiator_progress_guage):
11252         * glyphs-widget.c (image_instantiator_tree_view):
11253         * glyphs-widget.c (image_instantiator_tab_control):
11254         * glyphs-widget.c (image_instantiator_labels):
11255         * glyphs-widget.c (image_instantiator_layout):
11256         * glyphs-widget.c (image_instantiator_native_layout):
11257         rename decode_domain method to governing_domain.
11258
11259         * glyphs.c:
11260         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
11261         * glyphs.c (add_entry_to_device_ii_format_list):
11262         make sure we don't put an entry more than once into the list.
11263         * glyphs.c (check_instance_cache_mapper):
11264         *************************************************************
11265         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11266         HAVE BEEN GETTING.
11267         *************************************************************
11268         * glyphs.c (get_image_instantiator_governing_domain):
11269         clean up, expand on new concept of governing domain.
11270         * glyphs.c (instantiate_image_instantiator):
11271         * glyphs.c (allocate_image_instance):
11272         use governing_domain instead of cache_domain in naming.
11273         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
11274         * glyphs.c (make_image_instance_1):
11275         * glyphs.c (Fmake_image_instance):
11276         allow for any domain (not just device), and process the
11277         governing domain correctly.  very big doc fix.
11278         * glyphs.c (Fimage_instance_domain):
11279         new primitive, to retrieve the governing domain of an image instance.
11280         * glyphs.c (image_instantiate):
11281         use new governing_domain stuff.  this fixes a crash you could get
11282         by instantiating certain widget glyphs in frame locales. (should
11283         signal an error instead of crashing.)
11284         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
11285         * glyphs.c (Fglyphp): clean up doc.
11286         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
11287         * glyphs.c (syms_of_glyphs):
11288         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
11289         * glyphs.c (image_instantiator_format_create): add some comments about
11290         bogus code.
11291         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
11292         for current-display-table. (Apparently Hrjove implemented in 1998 a
11293         design I wrote up in 1996, but didn't update the doc string.)
11294
11295         * glyphs.h: clean up a doc string.
11296         * glyphs.h (governing_domain):
11297         * glyphs.h (struct image_instantiator_methods):
11298         changes for governing_domain stuff.
11299
11300         * gutter.c:
11301         * gutter.c (Fgutter_specifier_p):
11302         * gutter.c (Fgutter_size_specifier_p):
11303         * gutter.c (Fgutter_visible_specifier_p):
11304         * objects.c:
11305         * objects.c (Fcolor_specifier_p):
11306         * objects.c (Ffont_specifier_p):
11307         * objects.c (Fface_boolean_specifier_p):
11308         doc strings moved to make-*-specifier.
11309
11310         * redisplay.c (add_disp_table_entry_runes_1):
11311         * redisplay.c (generate_fstring_runes):
11312         * redisplay.c (screen):
11313         add random comments and doc strings.
11314
11315         * specifier.c:
11316         * specifier.c (Fmake_specifier):
11317         major overhaul of this doc string.
11318
11319         * specifier.c (Fvalid_specifier_domain_p):
11320         comment about the bogosity of image instances being domains.
11321         * specifier.c (decode_domain):
11322         now non-static, used in glyphs.c.
11323         * specifier.c (specifier_instance):
11324         comment about the bogosity of image instances being domains.
11325         * specifier.c (Fgeneric_specifier_p):
11326         move doc string to make-generic-specifier.
11327         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
11328         rebackslashify.
11329
11330         * specifier.h:
11331         * specifier.h (DOMAIN_FRAME):
11332         * specifier.h (DOMAIN_LIVE_P):
11333         * specifier.h (DOMAIN_XDEVICE):
11334         rebackslashify.
11335         add comments about problems with these macros.
11336         prototype for decode_domain.
11337
11338         * toolbar.c:
11339         * toolbar.c (Ftoolbar_specifier_p):
11340         move doc string to `make-toolbar-specifier'.
11341
11342         * window.c (window_unmap_subwindows_cache_mapper):
11343         *************************************************************
11344         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
11345         HAVE BEEN GETTING.
11346         *************************************************************
11347
11348 2000-05-09  Andy Piper  <andy@xemacs.org>
11349
11350         * glyphs.h: declare reset_frame_subwindow_instance_cache.
11351
11352         * window.c (Fset_window_configuration): reset the frame subwindow
11353         cache and re-initialize the window subwindow caches.
11354
11355         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
11356
11357 2000-05-09  Ben Wing  <ben@xemacs.org>
11358
11359         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
11360         DWORD.
11361
11362 2000-04-26  Mike Woolley  <mike@bulsara.com>
11363
11364         * ntheap.c: Changed recreate_heap to limit the amount reserved
11365         for the heap to that which is actually available. Also now
11366         displays a message box (with some dignostics) in the event that
11367         it still can't start.
11368
11369 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11370
11371         * callproc.c (Fold_call_process_internal): GCPRO path
11372
11373 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
11374
11375         Patch by Bill Perry.
11376
11377         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
11378         back data instead of #ifdef.
11379         (Fscrollbar_page_down): ditto.
11380
11381 2000-05-07  Ben Wing  <ben@xemacs.org>
11382
11383         * buffer.h:
11384         Kludge for defining Qmswindows_tstr.
11385
11386         * nt.c:
11387         * nt.c (open_input_file):
11388         * nt.c (open_output_file):
11389         * nt.c (rva_to_section):
11390         * nt.c (mswindows_executable_type):
11391         Move all memory-mapped-file routines here (some were in unexnt.c,
11392         which is bad because they are used by process-nt.c, and unexnt
11393         won't be around when portable dumping).  Synched the above routines
11394         with FSF 20.6.
11395
11396         * nt.h:
11397         Removed ifdef'd out bogus code.
11398         Fixed some prototypes.
11399
11400         * nt.h (file_data):
11401         * nt.h (OFFSET_TO_RVA):
11402         * nt.h (RVA_TO_OFFSET):
11403         * nt.h (RVA_TO_PTR):
11404         Moved the memory-mapped-file structures, macros and prototypes
11405         here, to parallel nt.c.  ntheap.h should really be removed
11406         entirely, and it's a non-portable-dumper specific file.
11407
11408         * ntheap.h (round_to_next):
11409         Moved the memory-mapped-file structures, macros and prototypes
11410         to nt.h.
11411
11412         * ntproc.c (compare_env):
11413         Moved rva_to_section and mswindows_executable_type to nt.c.
11414         Moved compare_env to process-nt.c.
11415         ntproc.c will die, one day.
11416
11417         * ntproc.c (sys_spawnve):
11418         Account for win32_ -> mswindows_.
11419
11420         * process-nt.c:
11421         * process-nt.c (struct nt_process_data):
11422         * process-nt.c (ensure_console_window_exists):
11423         * process-nt.c (compare_env):
11424         * process-nt.c (nt_create_process):
11425         * process-nt.c (nt_kill_process_by_pid):
11426         * process-nt.c (syms_of_process_nt):
11427         * process-nt.c (vars_of_process_nt):
11428         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
11429         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
11430         changes).  Eliminate our old `nt-quote-process-args' mechanism.
11431         Synch up nt_create_process with FSF 20.6 sys_spawnve.
11432         Move compare_env here from ntproc.c.
11433
11434         * process.c (Fprocess_send_region):
11435         Takes an optional fourth argument, BUFFER, which should fix some
11436         problems with call-process.
11437
11438         * syscommctrl.h:
11439         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
11440
11441         * syswindows.h:
11442         Move ICC_BAR_CLASSES to syscommctrl.h.
11443         Add preliminary macros for MSWindows/Mule.  More to come.
11444
11445         * unexnt.c:
11446         * unexnt.c (unexec):
11447         open_output_file moved to nt.c.
11448
11449
11450 2000-05-05  Andy Piper  <andy@xemacs.org>
11451
11452         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
11453         instance from the frame cache also since GC may catch up too late
11454         to make frame deletion sane.
11455
11456 2000-05-04  Andy Piper  <andy@xemacs.org>
11457
11458         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
11459         (x_finalize_image_instance): ungcpro on deletion.
11460
11461         * glyphs.c (image_instantiator_format_create): give pointers a
11462         query geometry method so that the geometry is at least set.
11463
11464         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
11465         initialize layouts if using widgets.
11466
11467 2000-05-03  Andy Piper  <andy@xemacs.org>
11468
11469         * nt.c: remove bogus reference to sysmmsystem.h
11470
11471         * gui-x.c (popup_selection_callback): fix no selection abort.
11472
11473 2000-05-02  Andy Piper  <andy@xemacs.org>
11474
11475         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
11476         (mswindows_widget_instantiate): ditto.
11477
11478         * glyphs-widget.c (initialize_widget_image_instance): initialize
11479         children correctly.
11480         (widget_instantiate): cope with children and items in the same
11481         instance.
11482
11483         * glyphs.c (mark_image_instance): cope with children as a first
11484         class member.
11485         (image_instance_equal): ditto.
11486         (image_instance_hash): ditto.
11487         (image_instance_changed): ditto.
11488
11489 2000-04-30  Andy Piper  <andy@xemacs.org>
11490
11491         * glyphs.c (subwindow_query_geometry): new function. Return some
11492         defaults.
11493         (subwindow_instantiate): don't assign dimensions if none have been
11494         given.
11495         (image_instantiator_format_create): add subwindow_query_geometry.
11496         (print_image_instance): cope with layouts as widgets.
11497
11498 2000-04-29  Andy Piper  <andy@xemacs.org>
11499
11500         * frame.c (delete_frame_internal): call
11501         free_frame_subwindow_instance_cache so that all subwindows are
11502         finalized before their parent.
11503         (mark_frame): remove subwindow_cachels.
11504         (Fmake_frame): remove subwindow_cachel manipulation.
11505         (allocate_frame_core): subwindow_instance_cache is a weak list.
11506         (delete_frame_internal): set subwindow_instance_cache to nil.
11507
11508         * glyphs-msw.c (mswindows_finalize_image_instance): make double
11509         finalization safe.
11510         (mswindows_finalize_image_instance): use the device
11511         not the domain as the domain may have died already.
11512
11513         * glyphs-x.c (x_finalize_image_instance): ditto.
11514         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
11515         HEIGHT.
11516
11517         * redisplay-output.c (redisplay_unmap_subwindows): update for
11518         subwindow instance cache as a weak list.
11519         (redisplay_unmap_subwindows_maybe): ditto.
11520         (redisplay_unmap_subwindows_except_us): ditto.
11521
11522         * glyphs.c (unmap_subwindow): error checking will check the domain
11523         so don't deal with it here. Don't use cachels anymore.
11524         (map_subwindow): ditto.
11525         (update_subwindow_cachel_data): remove old accessor names.
11526         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
11527         (Fresize_subwindow): don't update cachel.
11528         (mark_subwindow_cachels):
11529         (update_subwindow_cachel_data):
11530         (add_subwindow_cachel):
11531         (get_subwindow_cachel_index):
11532         (update_subwindow_cachel):
11533         (reset_subwindow_cachels):
11534         (mark_subwindow_cachels_as_not_updated): deleted.
11535         (cache_subwindow_instance_in_frame_maybe): new function. Add a
11536         subwindow instance to the frame cache.
11537         (find_matching_subwindow): update for subwindow instance cache as
11538         a weak list.
11539         (update_widget_instances): ditto.
11540         (image_instance_type_to_mask):inlined.
11541         (free_frame_subwindow_instance_cache): new function. finalize all
11542         subwindows that are instantiated.
11543
11544         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
11545         of cachel information.
11546         (IMAGE_INSTANCE_DISPLAY_X):
11547         (IMAGE_INSTANCE_DISPLAY_Y):
11548         (IMAGE_INSTANCE_DISPLAY_WIDTH):
11549         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
11550         (XIMAGE_INSTANCE_DISPLAY_X):
11551         (XIMAGE_INSTANCE_DISPLAY_Y):
11552         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
11553         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
11554         remove subwindow_cachel structure and function references.
11555         (image_instance_type_to_mask): inline from glyphs.c
11556
11557         * redisplay.c (redisplay_frame): remove subwindow_cachel
11558         references.
11559
11560         * frame.h (struct frame): remove subwindow_cachels.
11561         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
11562
11563         * frameslots.h: add subwindow_instance_cache.
11564
11565         * window.c (replace_window): check subwindow cache of replacement.
11566         (window_unmap_subwindows_cache_mapper):
11567         (window_unmap_subwindows): new functions. Unmap all subwindows
11568         cached on this window.
11569         (mark_window_as_deleted): unmap all subwindows.
11570
11571 2000-04-27  Andy Piper  <andy@xemacs.org>
11572
11573         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
11574
11575         * glyphs-widget.c (widget_layout): return something.
11576         (layout_layout): return something. Fail if not initialized.
11577         (layout_query_geometry): ditto.
11578         (image_instantiator_native_layout): new function. Initialized the
11579         native layout type.
11580         (widget_instantiate): don't do layout stuff here.
11581
11582         * glyphs.c (instantiate_image_instantiator): reorded calling or
11583         instantiate and post_instantiate with layout in between.
11584         (image_instance_layout): be more selective about deciding whether
11585         the layout has been done or not.
11586
11587         * glyphs.h (struct image_instantiator_methods): return a value
11588         from layout_method.
11589
11590 2000-04-26  Andy Piper  <andy@xemacs.org>
11591
11592         * glyphs.c (allocate_image_instance): make initial width and
11593         height unspecified. Set initialized to 0.
11594
11595         * syscommctrl.h new file. Encapsulates commctrl.h.
11596
11597         * syswindows.h new file. Encapsulates windows.h.
11598
11599         * ntplay.c: use new syswindows.h and syscommctrl.h header.
11600         * nt.c: ditto.
11601         * console-msw.h: ditto.
11602
11603         * redisplay-tty.c (tty_output_display_block): remove layout references.
11604
11605         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
11606         window handle rather than just the frame.
11607
11608         * glyphs.c (mark_image_instance): remove layout references.
11609         (print_image_instance): ditto.
11610         (image_instance_equal): ditto.
11611         (image_instance_hash): ditto.
11612         (decode_image_instance_type): ditto.
11613         (encode_image_instance_type): ditto.
11614         (image_instantiate): ditto.
11615         (allocate_glyph): ditto.
11616         (Fimage_instance_height): ditto.
11617         (Fimage_instance_width): ditto.
11618         (update_subwindow): ditto.
11619
11620         * redisplay-x.c (x_output_display_block): recode for layouts as
11621         widgets.
11622
11623         * redisplay-output.c (redisplay_output_layout): recode for layouts
11624         as widgets.
11625         (compare_runes): remove layout references.
11626
11627         * redisplay-msw.c (mswindows_output_display_block): recode for
11628         layouts as widgets.
11629
11630         * glyphs-widget.c (image_instantiator_layout): remove
11631         layout_possible_dest_types.
11632         (layout_possible_dest_types): deleted.
11633
11634         * glyphs.h (image_instance_type): remove layout references.
11635         (struct Lisp_Image_Instance): ditto. Add initialized flag.
11636         (IMAGE_INSTANCE_INITIALIZED): new accessor.
11637         (XIMAGE_INSTANCE_INITIALIZED): ditto.
11638
11639 2000-04-25  Andy Piper  <andy@xemacs.org>
11640
11641         * glyphs-widget.c (image_instantiator_buttons):
11642         (image_instantiator_edit_fields):
11643         (image_instantiator_combo_box):
11644         (image_instantiator_scrollbar):
11645         (image_instantiator_progress_guage):
11646         (image_instantiator_tree_view):
11647         (image_instantiator_tab_control):
11648         (image_instantiator_labels):
11649         (image_instantiator_layout): call default post_instantiate method.
11650         (widget_post_instantiate): new function. Simply lays out the
11651         widgets.
11652
11653         * glyphs.h (struct image_instantiator_methods): add
11654         post_instantiate method.
11655
11656         * glyphs.c (instantiate_image_instantiator): add post_instantiate
11657         method calls.
11658
11659 2000-04-23  Andy Piper  <andy@xemacs.org>
11660
11661         * glyphs.h (struct image_instantiator_methods): add
11662         decode_domain_method.
11663         (struct Lisp_Image_Instance): remove subwindow frame - it can be
11664         derived from the domain.
11665         (IMAGE_INSTANCE_FRAME): new accessor.
11666         (XIMAGE_INSTANCE_FRAME): ditto.
11667
11668         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
11669         instead of _SUBWINDOW_FRAME.
11670         (finalize_image_instance): ditto.
11671         (Fimage_instance_foreground): ditto.
11672         (Fimage_instance_background): ditto.
11673         (image_instantiate): ditto.
11674         (update_subwindow_cachel): ditto.
11675         (update_subwindow): ditto.
11676         (unmap_subwindow): ditto.
11677         (map_subwindow): ditto
11678         (subwindow_instantiate): ditto.
11679         * glyphs-msw.c (mswindows_update_widget): ditto.
11680         (mswindows_progress_gauge_instantiate): ditto.
11681         (mswindows_tab_control_update): ditto.
11682         * glyphs-x.c (x_update_widget): ditto.
11683         (x_widget_instantiate): ditto.
11684         (x_tab_control_instantiate): ditto.
11685         (x_tab_control_update): ditto.
11686         * event-msw.c (mswindows_wnd_proc): ditto
11687
11688         * glyphs-widget.c (image_instantiator_layout): use
11689         subwindow_decode_domain.
11690         (image_instantiator_buttons): ditto.
11691         (image_instantiator_edit_fields): ditto.
11692         (image_instantiator_combo_box): ditto.
11693         (image_instantiator_scrollbar): ditto.
11694         (image_instantiator_progress_guage): ditto.
11695         (image_instantiator_tree_view): ditto.
11696         (image_instantiator_tab_control): ditto.
11697         (image_instantiator_labels): ditto.
11698         (image_instantiator_layout): ditto.
11699
11700         * glyphs.c: add instance error checking to many functions.
11701         (instantiate_image_instantiator): decode device from cache_domain.
11702         (image_instantiate): partially rewrite by using
11703         decode_image_instantiator_domain to determine what domain the
11704         instance needs to be cached in.
11705         (decode_image_instantiator_domain): new function. Determine what
11706         domain the image needs to be cached in.
11707         (check_window_subwindow_cache): new error checking function.
11708         (check_instance_cache_mapper): ditto.
11709         (check_image_instance_structure): ditto.
11710         (subwindow_decode_domain): new function. Encodes a window as a
11711         subwindow's cache domain.
11712         (image_instantiator_format_create): use it for text and
11713         subwindows.
11714
11715 2000-04-21  Andy Piper  <andy@xemacs.org>
11716
11717         * glyphs.c (image_instance_device): new function.
11718         (image_instance_frame): new function.
11719         (image_instance_window): new function.
11720         (image_instance_live_p): new function.
11721
11722         * window.c (mark_window_as_deleted): reset the subwindow_instance_
11723         cache to nil.
11724
11725         * glyphs.h (struct Lisp_Image_Instance): device->domain.
11726         (IMAGE_INSTANCE_DOMAIN): new accessor.
11727         (XIMAGE_INSTANCE_DOMAIN): ditto.
11728
11729         * glyphs-x.c (x_finalize_image_instance): device->domain.
11730
11731         * glyphs-msw.c (init_image_instance_geometry): device->domain.
11732         (mswindows_finalize_image_instance): ditto.
11733
11734         * glyphs-eimage.c (jpeg_instantiate): device->domain.
11735         (gif_instantiate): ditto.
11736         (png_instantiate): ditto.
11737         (tiff_instantiate): ditto.
11738
11739         * glyphs.c (instantiate_image_instantiator): use domain rather
11740         than device.
11741         (mark_image_instance): device -> domain.
11742         (print_image_instance): ditto.
11743         (finalize_image_instance): ditto.
11744         (image_instance_equal): ditto.
11745         (allocate_image_instance): ditto.
11746         (Fcolorize_image_instance): ditto.
11747         (query_string_geometry): ditto.
11748         (image_instantiate): ditto
11749         (query_string_font): ditto.
11750         (image_instantiate): ditto.
11751         (update_subwindow): ditto.
11752         (unmap_subwindow): ditto.
11753         (map_subwindow): ditto.
11754         (subwindow_instantiate): ditto.
11755
11756         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
11757         (DOMAIN_FRAME): ditto.
11758         (DOMAIN_WINDOW): ditto.
11759         (DOMAIN_LIVE_P): ditto.
11760         (XDOMAIN_DEVICE): ditto.
11761         (XDOMAIN_FRAME): ditto.
11762         (XDOMAIN_WINDOW): ditto.
11763
11764         * specifier.c (Fvalid_specifier_domain_p): add image instances as
11765         a valid specifier domain.
11766
11767 2000-04-19  Andy Piper  <andy@xemacs.org>
11768
11769         * glyphs-widget.c (syms_of_glyphs_widget): remove
11770         widget-callback-current-channel.
11771         (vars_of_glyphs_widget): ditto.
11772         * glyphs.h: ditto
11773
11774         * gui.c (get_gui_callback): revert to previous behaviour.
11775
11776 2000-04-18  Andy Piper  <andy@xemacs.org>
11777
11778         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
11779         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
11780         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
11781
11782         * glyphs.c (image_instance_equal): add margin_width.
11783         (image_instance_hash): ditto.
11784
11785         * glyphs-widget.c (widget_instantiate): deal with margin-width.
11786         (layout_query_geometry): ditto.
11787         (layout_layout): ditto.
11788         (syms_of_glyphs_widget): add margin-width.
11789         (image_instantiator_layout): allow margin-width.
11790
11791         * glyphs.c (update_widget_instances): make a normal function.
11792         (syms_of_glyphs): remove Qupdate_widget_instances.
11793         * glyphs.h: ditto.
11794
11795         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
11796         so that we don't corrupt ideas about the last event or
11797         command. Remove widget-callback-current-channel fiddling.
11798         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11799
11800 2000-05-01  Martin Buchholz <martin@xemacs.org>
11801
11802         * XEmacs 21.2.33 is released.
11803
11804 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
11805
11806         * make-src-depend: Allow dots in header file name.
11807
11808 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
11809
11810         * mule-charset.h (struct charset_lookup): Add
11811         next_allocated_1_byte_leading_byte and
11812         next_allocated_2_byte_leading_byte.
11813         * mule-charset.c: Move above two variables so that those values
11814         will be dumped.
11815
11816 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
11817
11818         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
11819         when string length is zero.
11820         (find_charsets_in_emchar_string): Ditto.
11821
11822 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
11823
11824         * lisp.h: extern Qdialog and Qmenubar.
11825
11826         * gui-x.c: added events.h.
11827                 also fixed typo which made the file uncompilable.
11828
11829         * general.c: Added Qmenubar and Qdialog
11830
11831 2000-04-28  Ben Wing  <ben@xemacs.org>
11832
11833         * frame-msw.c (mswindows_init_frame_1):
11834         * frame-msw.c (mswindows_mark_frame):
11835         * event-msw.c (mswindows_enqueue_dispatch_event):
11836         * console-msw.h:
11837         * console-msw.h (struct mswindows_frame):
11838         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
11839         there are now three hash tables for callbacks.
11840         mswindows_enqueue_dispatch_event is no longer static.
11841
11842         * dialog-x.c (maybe_run_dbox_text_callback):
11843         * dialog-x.c (dbox_descriptor_to_widget_value):
11844         switch to new cons3 form for callbacks.
11845
11846         * glyphs-msw.c (mswindows_register_gui_item):
11847         * glyphs-msw.c (mswindows_widget_instantiate):
11848         * glyphs-msw.c (add_tree_item):
11849         * glyphs-msw.c (add_tab_item):
11850         new image instance parameter, so it can be passed to callback-ex.
11851         respect :callback-ex as well as :callback.
11852
11853         * glyphs-widget.c (VALID_GUI_KEYWORDS):
11854         add :callback-ex.
11855
11856         * glyphs.c (print_image_instance):
11857         prettify, e.g. now prints widget type.
11858
11859         * gui-x.h:
11860         certain funs have new image instance parameter.
11861
11862         * gui.c:
11863         * gui.c (get_gui_callback):
11864         * gui.c (gui_item_add_keyval_pair):
11865         * gui.c (gui_item_init):
11866         * gui.c (gui_add_item_keywords_to_plist):
11867         * gui.c (mark_gui_item):
11868         * gui.c (gui_item_hash):
11869         * gui.c (gui_item_equal):
11870         * gui.c (copy_gui_item):
11871         * gui.c (syms_of_gui):
11872         recognize callback-ex in a number of places.
11873         also, fix the annoying "can't get out of yes-no dialog" bug.
11874
11875         * gui.h:
11876         * gui.h (struct Lisp_Gui_Item):
11877         recognize callback-ex in a number of places.
11878
11879         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11880         new parameter in button_item_to_widget_value.
11881
11882         * glyphs-x.c (x_update_widget):
11883         * glyphs-x.c (x_button_instantiate):
11884         * glyphs-x.c (x_button_update):
11885         * glyphs-x.c (x_progress_gauge_instantiate):
11886         * glyphs-x.c (x_edit_field_instantiate):
11887         * glyphs-x.c (x_combo_box_instantiate):
11888         * glyphs-x.c (x_tab_control_instantiate):
11889         * glyphs-x.c (x_label_instantiate):
11890         new image instance parameter in various places.
11891
11892         * event-Xt.c:
11893         * event-Xt.c (enqueue_Xt_dispatch_event):
11894         this fun gets exported.
11895
11896         * gui-msw.c:
11897         * gui-msw.c (mswindows_handle_gui_wm_command):
11898         handle both :callback and :callback-ex, and generate our own
11899         event because it's one of the callback-ex arguments.
11900
11901         * gui-x.c:
11902         * gui-x.c (popup_selection_callback):
11903         handle both :callback and :callback-ex, and generate our own
11904         event because it's one of the callback-ex arguments.
11905         * gui-x.c (button_item_to_widget_value):
11906         * gui-x.c (gui_items_to_widget_values_1):
11907         * gui-x.c (gui_item_children_to_widget_values):
11908         * gui-x.c (gui_items_to_widget_values):
11909         new image instance parameter in various places.
11910
11911         * fns.c (Freplace_list):
11912         fix small typo in doc string.
11913
11914         * lisp.h:
11915         declare enqueue_Xt_dispatch_event.
11916
11917 2000-04-28  Ben Wing  <ben@xemacs.org>
11918
11919         * buffer.c:
11920         * buffer.c (Frecord_buffer):
11921         * buffer.c (syms_of_buffer):
11922         delete record-buffer-hook.
11923
11924         * fns.c:
11925         * fns.c (Freplace_list):
11926         * fns.c (syms_of_fns):
11927         new primitive replace-list.
11928
11929         * frameslots.h:
11930         slot for old buffer-alist.
11931
11932         * lisp.h:
11933         exfun replace-list.
11934
11935         * redisplay.c:
11936         * redisplay.c (redisplay_frame):
11937         * redisplay.c (syms_of_redisplay):
11938         * redisplay.c (vars_of_redisplay):
11939         new hook buffer-list-changed-hook.
11940         call it.
11941
11942 2000-04-27  Ben Wing  <ben@xemacs.org>
11943
11944         * extents.h: extern in_modeline_generation.
11945
11946         * redisplay.c (generate_formatted_string_db): set
11947         in_modeline_generation.
11948
11949         * extents.c (extent_changed_for_redisplay): don't mark redisplay
11950         flags if in modeline generation.  otherwise frame-modified-tick
11951         is ticked far too often.
11952         Declare in_modeline_generation.
11953
11954 2000-04-26  Ben Wing  <ben@xemacs.org>
11955
11956         * emacs.c (vars_of_emacs): document quick-build "error-checking"
11957         option.
11958         (vars_of_emacs): add quick-build as an error-checking option.
11959         A bit kludgy, but there doesn't seem much point in creating
11960         a real var for this.
11961
11962         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
11963
11964 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11965
11966         * redisplay.h (struct display_line): Add a new variable,
11967         line_continuation.
11968
11969         * redisplay.c (create_text_block): Set dl->line_continuation if
11970         the line continues.
11971         (create_string_text_block): Ditto.
11972         (regenerate_window_incrementally): Use line_continuation instead
11973         of searching continuation glyph.
11974         (add_margin_runes): Call add_glyph_rune.
11975         (add_glyph_rune): Handle margin glyph.
11976
11977 2000-04-20  Martin Buchholz  <martin@xemacs.org>
11978
11979         * filelock.c (fill_in_lock_file_name):
11980         ANSIfy.
11981         Check for IS_ANY_SEP instead of '/'.
11982         (lock_file_1):
11983         Avoid generating gratuitous garbage.  Call user_login_name() directly.
11984         Never check errno without first seeing that system call failed.
11985         (unlock_file): Add GCPRO.
11986         (Flock_buffer): Fix docstring.
11987         (Ffile_locked_p): Fix docstring.  Add GCPRO.
11988
11989 2000-04-19  Martin Buchholz  <martin@xemacs.org>
11990
11991         * sysdep.c (get_pty_max_bytes):
11992         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
11993         strings longer than 252 bytes.
11994
11995         * md5.c: Unconditionally include ANSI header <limits.h>
11996
11997         * glyphs-x.c (convert_EImage_to_XImage):
11998         * lisp-union.h (union Lisp_Object):
11999         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
12000
12001 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
12002
12003         * filelock.c (current_lock_owner): Remove unused variable o, p.
12004
12005 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
12006
12007         * callint.c: Remove multiply defined symbol Qlet
12008         (syms_of_callint): ditto.
12009
12010 2000-04-14  Andy Piper  <andy@xemacs.org>
12011
12012         * general.c (syms_of_general): add last-command, this-command, let
12013         and funcall.
12014
12015         * lisp.h: declare various symbols.
12016
12017         * glyphs.h: declare Qwidget_callback_current_channel;
12018
12019         * glyphs-widget.c (syms_of_glyphs_widget): add
12020         Qgui_callback_current_channel.
12021         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
12022
12023         * gui-msw.c (mswindows_handle_gui_wm_command): bind
12024         widget-callback-current-channel when invoking the interactive
12025         arg. Also bind last-command and next-command when invoking the
12026         widget updates.
12027         * gui-x.c (popup_selection_callback): ditto.
12028
12029         * gui.c (get_gui_callback): massage args so that we are always
12030         calling eval. This allows us to add our own variable bindings
12031         outside.
12032
12033         * glyphs-x.c (x_button_instantiate): use
12034         gui_items_to_widget_values since this is GC safe.
12035         (x_progress_gauge_instantiate): ditto.
12036         (x_edit_field_instantiate): ditto.
12037         (x_label_instantiate): ditto.
12038
12039         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
12040         (emacs_Xt_event_widget_focus_out): new function
12041         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
12042         focus.
12043         (emacs_Xt_event_add_widget_actions): new function. add focus
12044         functions as actions.
12045         (init_event_Xt_late): use it.
12046
12047 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
12048
12049         * event-stream.c (Fdispatch_event): Doc fix.
12050
12051 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
12052
12053         * postgresql.c: Remove all references to PQsetenv*.
12054
12055         * postgresql.h: Remove references to PGsetenvHandler object.
12056         * lrecord.h (lrecord_type): Ditto.
12057
12058 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12059
12060         * glyphs-msw.h (struct mswindows_image_instance_data): Added
12061         real_heigh and real_width members, and accessor macros for these.
12062
12063         * glyphs-msw.c (init_image_instance_geometry): New function.
12064         (init_image_instance_from_dibitmap): Use it.
12065         (mswindows_resource_instantiate): Use it.
12066         (init_image_instance_from_xbm_inline): Use it.
12067         (mswindows_initialize_image_instance_mask): Use real bitmap
12068         geometry.
12069         (mswindows_create_resized_bitmap): Ditto.
12070         (mswindows_create_resized_mask): Ditto.
12071
12072         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
12073         and bitmap to their surface size.
12074
12075 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
12076
12077         * process-unix.c (unix_send_process): Guard against process MIA
12078         after Faccept_process_output.
12079
12080 2000-04-11  Ben Wing  <ben@xemacs.org>
12081
12082         * eval.c (unbind_to_hairy): fix brokenness introduced by
12083         nanosecond speed improvements.
12084
12085 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
12086
12087         * sunplay.c (init_device): To play sounds correctly, the device
12088         apparently needs to be initialized at least once by XEmacs.  Make
12089         it so.
12090
12091 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12092
12093         * redisplay.c (add_margin_runes): Add text image glyph
12094           handling.
12095
12096 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
12097
12098         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
12099         gcc is newer than 2.5.
12100
12101 2000-04-06  Colin Rafferty  <colin@xemacs.org>
12102
12103         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
12104
12105         * fns.c (size_bit_vector):
12106         * alloc.c (size_vector):
12107         (make_vector_internal):
12108         (make_bit_vector_internal):
12109         (sweep_bit_vectors_1):
12110         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
12111
12112 2000-04-06  Andy Piper  <andy@xemacs.org>
12113
12114         * gmalloc.c (malloc): undo previous change.
12115         (malloc): ditto.
12116         (free): ditto.
12117         (realloc): ditto.
12118
12119 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
12120
12121         * line-number.c (buffer_line_number): Revert to former version.
12122
12123 2000-04-06  Andy Piper  <andy@xemacs.org>
12124
12125         * gmalloc.c (malloc): add error checking.
12126         (malloc): ditto.
12127         (free): ditto.
12128         (realloc): ditto.
12129
12130         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
12131         button_item_to_widget_value arg.
12132
12133         * glyphs-x.c (x_button_instantiate): add extra
12134         button_item_to_widget_value arg.
12135         (x_progress_gauge_instantiate): ditto.
12136         (x_edit_field_instantiate): ditto.
12137         (x_label_instantiate): ditto.
12138
12139         * gui-x.c (gui_items_to_widget_values_1): add extra
12140         button_item_to_widget_value arg.
12141         (button_item_to_widget_value): add extra menu_item_p arg.
12142
12143         * gui-x.h: change signature of button_item_to_widget_value.
12144
12145         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
12146         button_item_to_widget_value arg.
12147
12148 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
12149
12150         * buffer.h (struct buffer): auto_save_modified should be long.
12151
12152 2000-04-05  Andy Piper  <andy@xemacs.org>
12153
12154         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
12155         type.
12156         (button_query_geometry): give a little more room so that athena
12157         buttons fit.
12158
12159 2000-04-05  Andy Piper  <andy@xemacs.org>
12160
12161         * faces.c (complex_vars_of_faces): The widget face should inherit
12162         the font of the gui-element face.
12163
12164 2000-04-04  Andy Piper  <andy@xemacs.org>
12165
12166         * glyphs-x.c (x_button_update): new function. unconditionally
12167         update a button's state when the instance is dirty.
12168         (image_instantiator_format_create_glyphs_x): add x_button_update.
12169         (x_widget_instantiate): remove old resize cruft.
12170
12171 2000-04-02  Andy Piper  <andy@xemacs.org>
12172
12173         * frame.c (change_frame_size_1): The introduction of gutters means
12174         that we need to allow 0 as a potential frame dimension.
12175
12176 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12177
12178         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
12179         image glyph if allow_cursor.
12180         (add_hscroll_rune): Don't allow cursor to border glyph.
12181         (create_text_block): Ditto.
12182
12183         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
12184         text not in buffer.
12185         (redisplay_output_layout): Call ensure_face_cachel_complete for
12186         text image glyph.
12187
12188
12189 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12190
12191         * redisplay.c (add_glyph_rune): Adding text image as text runes.
12192
12193         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
12194         not in buffer
12195
12196         * redisplay-tty.c (tty_output_display_block): Delete the routine
12197         for text image glyph
12198         * redisplay-x.c (x_output_display_block): ditto
12199         * redisplay-msw.c (mswindows_output_display_block): ditto
12200
12201 2000-02-02  Mike Alexander  <mta@arbortext.com>
12202
12203         Note: Some of these were committed by accident as part of other
12204         patches.
12205
12206         * regex.c (regex_compile): Avoid compiler warnings.
12207
12208         * ntproc.c (sys_spawnve): Avoid compiler warnings.
12209
12210         * nt.h: Declare term_ntproc correctly.
12211
12212         * nt.c: Remove incorrect declaration of get_home_directory which
12213         is declared correctly in lisp.h.
12214
12215         * keymap.c (get_keyelt): Avoid compiler warnings.
12216         (raw_lookup_key_mapper): Avoid compiler warnings.
12217
12218         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
12219
12220         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
12221
12222         * filemode.c (mode_string): Avoid compiler warnings.
12223
12224         * file-coding.c (Fcoding_system_aliasee): Add return statement to
12225         avoid warning.
12226
12227         * events-mod.h: Undef some things that winuser.h defines differently.
12228
12229         * data.c (Faset): Avoid compiler warnings.
12230
12231         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
12232
12233 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12234
12235         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
12236         Fall through to simple beep on error.
12237         Replace "extern" by real header file.
12238
12239         * linuxplay.c: Use nativesound.h
12240         (play_sound_data): Return error code. Be less verbose on error.
12241
12242         * sunplay.c: Use nativesound.h
12243         (play_sound_data): Return error code. Be less verbose on error.
12244
12245         * ntplay.c: Use nativesound.h
12246         (play_sound_data): Return fake error code
12247
12248         * sgiplay.c: Use nativesound.h
12249         (play_sound_data): Return error code
12250
12251         * hpplay.c: Use nativesound.h, partially implement
12252         new error code. Break compilation until finished.
12253         (play_sound_data): error code.
12254
12255         * nativesound.h (play_sound_file):
12256           (play_sound_data): Prototype in new header.
12257
12258 2000-03-31  Andy Piper  <andy@xemacs.org>
12259
12260         * glyphs-widget.c: (button_query_geometry): new function. Adjust
12261         for toggle and radio buttons.
12262         (image_instantiator_buttons): use it.
12263
12264 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
12265
12266         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
12267         (x_update_horizontal_scrollbar_callback): Return if no mirror was
12268         found. Scrollbar event probably belonged to some old config.
12269
12270 2000-03-31  Andy Piper  <andy@xemacs.org>
12271
12272         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
12273         than 1.
12274         (initialize_widget_image_instance): default layout to
12275         LAYOUT_HORIZONTAL rather than 0.
12276         (widget_instantiate): reverse the item list at the end rather than
12277         every iteration.
12278         (layout_layout): re-code for the border text at the front of the
12279         item list rather than at the end.
12280         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
12281         provided by the user.
12282         (widget_query_geometry): comment.
12283
12284 2000-03-30  Andy Piper  <andy@xemacs.org>
12285
12286         * glyphs-widget.c (image_instantiator_layout): allow standard
12287         widget keywords in layouts.
12288
12289         * gutter.c (output_gutter): cope with nil gutter contents.
12290
12291         * frame.c (Fset_frame_properties): add gutter docs.
12292
12293 2000-03-29  Andy Piper  <andy@xemacs.org>
12294
12295         * toolbar-msw.c (TBSTYLE_FLAT): add.
12296         (mswindows_output_toolbar): minor fiddling.
12297
12298 2000-03-29  Andy Piper  <andy@xemacs.org>
12299
12300         * gutter.c (output_gutter): force gutter size recalculation if
12301         what we are trying to display won't fit.
12302         (update_gutter_geometry): new function. A per-gutter version of
12303         update_frame_gutter_geometry.
12304         (update_frame_gutter_geometry): use it.
12305         (redraw_exposed_gutter): add extra debugging output.
12306
12307 2000-03-28  Mike Alexander  <mta@arbortext.com>
12308
12309         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
12310         (pdump_file_unmap): Implement it on Windows
12311         (pdump_file_get): Save alocated handles for pdump_file_unmap
12312
12313 2000-03-28  Andy Piper  <andy@xemacs.org>
12314
12315         * gui.c (get_gui_callback): treat Quit specially.
12316
12317 2000-03-27  Andy Piper  <andy@xemacs.org>
12318
12319         * glyphs.c (image_instantiate): be careful to check in the same
12320         way we assigned.
12321
12322 2000-03-27  Didier Verna  <didier@xemacs.org>
12323
12324         * config.h.in: define the proper SMART_INCLUDE macro.
12325         handle renaming of `foo_h_path' to `foo_h_file'.
12326
12327         * database.c: ditto.
12328
12329         * emacs.c: ditto.
12330
12331         * linuxplay.c: ditto.
12332
12333         * terminfo.c: ditto.
12334
12335         * tooltalk.h: ditto.
12336
12337 2000-03-27  Andy Piper  <andy@xemacs.org>
12338
12339         * glyphs-msw.c (mswindows_update_widget): make sure the widget
12340         gets updated whenever the face might have changed.
12341
12342 2000-03-26  Mike Alexander  <mta@arbortext.com>
12343
12344         * dumper.c (pdump_resource_free): Fix the comment.
12345
12346 2000-03-21  Olivier Galibert  <galibert@pobox.com>
12347
12348         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
12349
12350 2000-03-22  Mike Alexander  <mta@arbortext.com>
12351
12352         * dumper.c: Include Windows headers on Windows
12353         (pdump_resource_free): Add a body to the function
12354         (pdump_load): exe_name -> exe_path and add some comments.
12355
12356 2000-03-25  Mike Alexander  <mta@arbortext.com>
12357
12358         * gui.c (copy_gui_item_tree): Return a value in all cases
12359
12360 2000-03-21  Didier Verna  <didier@xemacs.org>
12361
12362         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
12363         lwlib/config.h.in.
12364         (SMART_INCLUDE): new macro.
12365         (POSTGRES_INCLUDE): new macro to include postgresql headers from
12366         the proper location.
12367
12368         * postgresql.c: use it.
12369
12370         * inline.c: ditto.
12371
12372 2000-03-24  Andy Piper  <andy@xemacs.org>
12373
12374         * gutter.c (redraw_exposed_gutters): must be "in display" when we
12375         do this.
12376
12377 2000-03-24  Andy Piper  <andy@xemacs.org>
12378
12379         * redisplay-output.c (compare_runes): use image_instance_changed
12380         to detect changes. Do not depend on glyphs_changed, only depend on
12381         dirtiness.
12382          (redisplay_output_layout): add debug messages.
12383         (compare_runes): ditto.
12384
12385         * glyphs.h: declare new functions.
12386         (struct Lisp_Image_Instance): remove percent and associated
12387         accessors.
12388
12389         * gui.h: declare new copying functions.
12390
12391         * gui.c (copy_gui_item_tree): new function.
12392         (copy_gui_item): new function.
12393         (gui_item_id_hash): revert to standard hash.
12394         (gui_item_hash): ditto.
12395         (gui_item_hash_internal): deleted.
12396         (mark_gui_item): mark value.
12397         (gui_item_add_keyval_pair): add value.
12398         (gui_item_init): ditto.
12399         (gui_add_item_keywords_to_plist): ditto.
12400         (gui_item_equal): ditto.
12401         (syms_of_gui): add Q_value.
12402
12403         * glyphs-x.c (x_progress_gauge_update): use pending items and
12404         value for setting the state.
12405         (x_update_widget): don't set items from pending here.
12406
12407         * glyphs-widget.c (update_widget): update items here.
12408         (progress_gauge_set_property): use items for storing value. Put
12409         new value in pending items.
12410
12411         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
12412         items for new value. Convert percent -> value.
12413         (mswindows_tab_control_update): don't update items here.
12414
12415         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
12416         (update_subwindow): ditto.
12417         (image_instance_changed): new function. Compare hash values and
12418         past and present widget items.
12419         (image_instantiate): We more careful about where we instantiate
12420         things.
12421         (image_instantiate): add error checking.
12422
12423         * gutter.c (syms_of_gutter): use -hook.
12424
12425 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
12426
12427         * console-tty.c (Fset_console_tty_input_coding_system): Use
12428         Qkeyboard.
12429         (Fset_console_tty_output_coding_system): Use Qterminal.
12430         (tty_init_console): Use Qkeyboard and Qterminal.
12431
12432 2000-03-21  Ben Wing  <ben@xemacs.org>
12433
12434         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
12435         From Mike Alexander <mta@arbortext.com>.
12436
12437 2000-03-21  Ben Wing  <ben@xemacs.org>
12438
12439         * event-msw.c (mswindows_need_event): Horrible kludge to fix
12440         process brokenness.  Proper implementation to come.
12441         * callproc.c:
12442         Rename call-process-internal to old-call-process-internal.
12443         New impl. in process.el.
12444
12445 2000-03-21  Martin Buchholz  <martin@xemacs.org>
12446
12447         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
12448
12449 2000-03-20  Andy Piper  <andy@xemacs.org>
12450
12451         * glyphs.c (full_list_hash): make hashes of the same elements in
12452         different orders return different values.
12453
12454 2000-03-20  Martin Buchholz <martin@xemacs.org>
12455
12456         * XEmacs 21.2.32 is released.
12457
12458 2000-03-20  Martin Buchholz  <martin@xemacs.org>
12459
12460         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
12461         (DFC_MALLOC_USE_CONVERTED_DATA):
12462         Add aliasing-safe casts to allow use with char* or unsigned char*
12463         lvalues.
12464
12465         * eldap.c (Fldap_open):
12466         (Fldap_search_basic):
12467         (Fldap_add):
12468         (Fldap_modify):
12469         Make C++-compilable.
12470         Make sure GCPRO'ed variables are initialized.
12471         Use temp variables to avoid repeated calls to Flength.
12472
12473 2000-03-16  Martin Buchholz  <martin@xemacs.org>
12474
12475         * sysfile.h:
12476         Make sure PATH_MAX is always defined.
12477         Include limits.h for PATH_MAX.
12478         Deprecate use of MAXPATHLEN.
12479
12480 2000-03-10  Martin Buchholz  <martin@xemacs.org>
12481
12482         * emacs.c: Add reinit_vars_of_fileio.
12483         * symsinit.h: Add reinit_vars_of_fileio.
12484         * fileio.c (reinit_vars_of_fileio): New.
12485         * fileio.c (Fmake_temp_name):
12486         Initialize temp_name random number from microseconds to make
12487         collisions even less likely.  Initialize always at process startup
12488         time.  (make-temp-name) used to return the same file name twice in
12489         a row when PDUMP.
12490         Random stylistic fiddling.
12491         Comment fixes.
12492
12493 2000-03-20  Andy Piper  <andy@xemacs.org>
12494
12495         * glyphs.c (image_instantiate): allow text glyphs to be
12496         instantiated in the minibuffer window.
12497
12498 2000-03-19  Andy Piper  <andy@xemacs.org>
12499
12500         * glyphs.c (image_instance_hash): be careful about which items we
12501         hash on.
12502
12503         * glyphs-widget.c (tab_control_set_property): record into pending
12504         items rather than the actual items.
12505
12506         * glyphs-x.c (x_update_widget): use pending items to update with.
12507
12508         * glyphs-msw.c (mswindows_tab_control_update): use pending items
12509         to update with.
12510
12511         * glyphs.c (mark_image_instance): mark pending items.
12512
12513         * window.c (Fset_window_configuration): record the buffer.
12514         (Fselect_window): totally revert previous change which breaks many
12515         things.
12516
12517 2000-03-18  Andy Piper  <andy@xemacs.org>
12518
12519         * glyphs-msw.c (mswindows_tab_control_update): force selected
12520         item.
12521
12522         * glyphs.c (image_instantiate): don't allow the minibuffer as a
12523         window domain cache, otherwise we get inconsistencies at
12524         startup. There is something fishy at startup which can lead to the
12525         minibuffer being the selected window when the gutter content is
12526         instantiated.
12527
12528         * gui.c (parse_gui_item_tree_list): add probably unnecessary
12529         gcpros.
12530         (parse_gui_item_tree_children): ditto.
12531         (parse_gui_item_tree_item): ditto.
12532
12533         * glyphs.c (Fupdate_widget_instances): return something.
12534
12535 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
12536
12537         * window.c (Fselect_window): Undo 2000-03-17 change.
12538
12539 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
12540
12541         * postgresql.c (Fpq_setenv): Remove this turkey when linking
12542         against v7.0 libraries.  Insta-coredump city until the postgres
12543         folks fix it.
12544
12545 2000-03-17  Andy Piper  <andy@xemacs.org>
12546
12547         * faces.c (complex_vars_of_faces): don't give the widget face an
12548         inherited background pixmap.
12549
12550         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
12551         selected item.
12552
12553         * event-stream.c (Fdispatch_non_command_events): return something.
12554
12555         * gutter.c (output_gutter): use widget face.
12556         (clear_gutter): ditto.
12557
12558         * NEWS: adjust again.
12559
12560         * window.c (Fselect_window): make sure this runs to completion to
12561         avoid oddities with Fset_window_configuration.
12562         (Fcurrent_window_configuration): in general do not save the
12563         minibuffer as the selected window.
12564
12565         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
12566
12567 2000-03-16  Olivier Galibert  <galibert@pobox.com>
12568
12569         * emacs.c (Frunning_temacs_p): Revert previous patch.
12570         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
12571
12572 2000-03-16  Andy Piper  <andy@xemacs.org>
12573
12574         * glyphs-x.c (x_tab_control_update): if no widget values then
12575         return.
12576
12577         * NEWS: update for new features.
12578
12579         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
12580         synthetic event to the native system.
12581         (reinit_vars_of_event_Xt): set force_event_pending to
12582         emacs_Xt_force_event_pending.
12583
12584         * events.h (struct event_stream): add force_event_pending.
12585
12586         * specifier.c (recompute_one_cached_specifier_in_window): add
12587         comment.
12588
12589         * redisplay.c (redisplay_frame): don't call
12590         update_frame_subwindows. Reset subwindow cachels when
12591         subwindows_changed, removing this was an optimization too far.
12592
12593         * redisplay-output.c (compare_runes): reorganize so that we catch
12594         glyph changes when we want them. Set optimize_output when this
12595         would help layouts.
12596         (redisplay_output_layout): remove frame_really_changed, use
12597         optimize_output instead.
12598
12599         * redisplay-msw.c (mswindows_output_display_block): reset
12600         optimize_output after outputting a glyph.
12601         * redisplay-x.c (x_output_display_block): ditto.
12602         * redisplay-tty.c (tty_output_display_block): ditto.
12603
12604         * gutter.c: (specifier_vars_of_gutter): use new spec changed
12605         functions.
12606         (gutter_specs_changed): do specific gutter positions.
12607         (top_gutter_specs_changed): new function. Only update the
12608         specified gutter specs.
12609         (bottom_gutter_specs_changed): ditto.
12610         (left_gutter_specs_changed): ditto.
12611         (right_gutter_specs_changed): ditto.
12612
12613         * gui.c (gui_item_hash_internal): new function, does a real hash.
12614         (gui_item_id_hash): use it.
12615         (gui_item_hash): hash the eval'ed gui_item.
12616
12617         * gui-x.c (popup_selection_callback): send an eval event to call
12618         Fupdate_widget_instances.
12619
12620         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
12621         to call Fupdate_widget_instances.
12622
12623         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
12624         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
12625
12626         * glyphs.c: (update_frame_subwindows): deleted.
12627         (Fupdate_widget_instances): new function for updating the dirty
12628         state of widgets that might have changed.
12629         (syms_of_glyphs): add Qupdate_widget_instances.
12630         (full_list_hash): hash a list completely.
12631         (image_instance_hash): use it for items and properties.
12632
12633         * frame-msw.c (mswindows_size_frame_internal): remove unused
12634         variable.
12635
12636         * faces.h (struct face_cachel): fix comment.
12637
12638         * event-stream.c (Fdispatch_non_command_events): new
12639         function. Process non-command events, forcing an event cycle
12640         beforehand.
12641         (syms_of_event_stream): declare.
12642         (event_stream_force_event_pending): new function. Force an event
12643         on the native event queue so that an event cycle will occur next
12644         time we check.
12645
12646         * event-msw.c:
12647         (struct ntpipe_shove_stream):
12648         (mswindows_enqueue_dispatch_event):
12649         (mswindows_dequeue_dispatch_event):
12650         (mswindows_cancel_dispatch_event):
12651         (mswindows_pump_outstanding_events):
12652         (mswindows_drain_windows_queue):
12653         (mswindows_handle_paint):
12654         (mswindows_wnd_proc):
12655         (mswindows_key_to_emacs_keysym):
12656         (get_process_input_waitable):
12657         (emacs_mswindows_delete_stream_pair): re-indent file.
12658         (mswindows_need_event): do not process further fds if the windows
12659         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
12660         fixes the 100% cpu problem.
12661         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
12662
12663 2000-03-15  Olivier Galibert  <galibert@pobox.com>
12664
12665         * alloc.h: New.
12666         * dumper.h: New.
12667         * dumper.c: New.
12668
12669         * emacs.c: Moved dump file searching to dumper.c.
12670         (Frunning_temacs_p): Fixed.
12671
12672         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
12673         last_lrecord_type_index_assigned.
12674
12675 2000-02-20  Olivier Galibert  <galibert@pobox.com>
12676
12677         * symsinit.h: Added reinit parameter to init_console_stream
12678         declaration.
12679
12680         * lisp.h: Added file parameter to pdump_load declaration.
12681
12682         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
12683         support.  Added dump file searching.
12684
12685         * config.h.in: Added EMACS_PROGNAME.
12686
12687         * console-stream.c (init_console_stream): Fix reinitialisation
12688         when running from temacs.
12689
12690         * alloc.c (pdump): Add id support.
12691         (pdump_load): Add file parameter and signature/id support.
12692
12693         * Makefile.in.in: Add full pdump support.
12694
12695 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
12696
12697         * postgresql.c: Update documentation to reflect latest code
12698         status.
12699         (print_result): Show tuple counts in printed representation when
12700         appropriate.
12701         (Fpq_put_nbytes): MULE-ize.
12702         (Fpq_get_line_async): Ditto.
12703
12704 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12705
12706         * postgresql.c (Fpq_lo_import): Fix return value.
12707         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
12708
12709 2000-03-13  Ben Wing  <ben@xemacs.org>
12710
12711         * alloc.c (pdump_load):
12712         Fix compile warning under mswin.
12713
12714 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
12715
12716         * postgresql.c: Mule-ization, bug fixes.
12717         Use PG_CODING to encapsulate coding system name changes.
12718         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
12719         (pg-coding-system): Create.
12720
12721         (Fpq_conn_defaults): Mule-ize.
12722         (Fpq_connectdb): Mule-ize & bug fix.
12723         (Fpq_connect_start): Mule-ize.
12724         (Fpq_set_client_encoding): Mule-ize.
12725         (Fpq_finish): Document `DEAD' connection status.
12726         (Fpq_clear): Ditto.
12727         (Fpq_pgconn): Mule-ize.
12728         (Fpq_exec): Mule-ize & bug fix.
12729         (Fpq_send_query): Ditto.
12730         (Fpq_get_result): Ditto.
12731         (Fpq_res_status): Mule-ize.
12732         (Fpq_result_error_message): Mule-ize.
12733         (Fpq_ntuples): fix comments.
12734         (Fpq_fname): Mule-ize.
12735         (Fpq_fnumber): Mule-ize.
12736         (Fpq_ftype): fix comments.
12737         (Fpq_get_value): Mule-ize.
12738         (Fpq_cmd_status): Ditto.
12739         (Fpq_cmd_tuples): Ditto.
12740         (Fpq_oid_value): Ditto.
12741         (Fpq_notifies): Ditto.
12742         (Fpq_lo_import): Ditto.
12743         (Fpq_lo_export): Ditto.
12744         (Fpq_get_line): Ditto.
12745         (Fpq_put_line): Mule-ize and bug fix.
12746         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
12747
12748 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
12749
12750         * postgresql.c (vars_of_postgresql): Mule-ize.
12751         (Fpq_conn_defaults): Ditto.
12752
12753 2000-03-12  Ben Wing  <ben@xemacs.org>
12754
12755         * alloc.c (Fmake_byte_code):
12756         * alloc.c (debug_string_purity_print):
12757         * alloc.c (pdump_backtrace):
12758         * alloc.c (pdump_get_indirect_count):
12759         * alloc.c (pdump_register_sub):
12760         * alloc.c (pdump_register_object):
12761         * alloc.c (pdump_register_struct):
12762         * alloc.c (pdump_dump_data):
12763         * alloc.c (pdump_reloc_one):
12764         Minor cleanups.
12765
12766         * console-msw.c:
12767         * console-msw.c (GetConsoleHwnd):
12768         * console-msw.c (msw_hide_console):
12769         * console-msw.c (msw_show_console):
12770         * console-msw.c (msw_ensure_console_buffered):
12771         * console-msw.c (msw_output_console_string):
12772         * console-msw.c (console_type_create_mswindows):
12773
12774         a) Added functions to manipulate the console window for use with
12775         shell support.
12776
12777         b) Added support for writing text to the console, which is now
12778         used under Windows when xemacs is not being run non-interactively,
12779         to write text that would otherwise be destined for stdout because
12780         under these circumstances, text written to stdout tends to
12781         disappear and not be seen.
12782
12783         * console-msw.h:
12784         * event-Xt.c:
12785         * event-Xt.c (x_event_to_emacs_event):
12786         * event-Xt.c (describe_event_window):
12787         * events-mod.h (XEMACS_MOD_CONTROL):
12788         * events.c:
12789         * events.c (Fmake_event):
12790         * events.c (character_to_event):
12791         * events.c (event_to_character):
12792         * events.c (format_event_object):
12793         * events.c (Fevent_modifiers):
12794         * events.h:
12795         * events.h (struct key_data):
12796         * events.h (struct button_data):
12797         * events.h (struct misc_user_data):
12798         * frame-x.c (Fcde_start_drag_internal):
12799         * frame-x.c (Foffix_start_drag_internal):
12800         * gpmevent.c (Freceive_gpm_event):
12801         * keymap.c:
12802         * keymap.c (bucky_sym_to_bucky_bit):
12803         * keymap.c (control_meta_superify):
12804         * keymap.c (make_key_description):
12805         * keymap.c (keymap_lookup_directly):
12806         * keymap.c (create_bucky_submap):
12807         * keymap.c (keymap_store):
12808         * keymap.c (define_key_check_and_coerce_keysym):
12809         * keymap.c (define_key_parser):
12810         * keymap.c (define_key_alternate_name):
12811         * keymap.c (Fdefine_key):
12812         * keymap.c (raw_lookup_key_mapper):
12813         * keymap.c (struct map_keymap_unsorted_closure):
12814         * keymap.c (map_keymap_unsorted_mapper):
12815         * keymap.c (map_keymap_sort_predicate):
12816         * keymap.c (map_keymap_sorted):
12817         * keymap.c (accessible_keymaps_mapper_1):
12818         * keymap.c (where_is_recursive_mapper):
12819         * keymap.c (describe_map_mapper):
12820         * keymap.c (describe_map_sort_predicate):
12821         * keymap.c (describe_map):
12822         * keymap.c (complex_vars_of_keymap):
12823         And a number of other files, the key modifier preprocessor
12824         constants that xemacs uses have names that conflict with constants
12825         defined under MS Windows for other purposes, so they were renamed
12826         to begin with the prefix XEMACS_. The variables that hold such
12827         modifiers were changed to consistently be of type int to fix
12828         various compile warnings.
12829
12830         * console.c (complex_vars_of_console):
12831         * device.c:
12832         * device-msw.c:
12833         * device-msw.c (mswindows_finish_init_device):
12834         * device-msw.c (msw_get_workspace_coords):
12835         * device-msw.c (mswindows_device_system_metrics):
12836         and various other files, added support for a new
12837         device property called offset-workspace which returns the position
12838         of the upper left corner of the workspace area and goes along with
12839         the existing size-workspace property.
12840
12841         * dialog-msw.c:
12842         * dialog-msw.c (push_bufbyte_string_as_unicode):
12843         * dialog-msw.c (mswindows_popup_dialog_box):
12844         Added support for XEmacs-style accelerator specifications in
12845         button text.  Note: I didn't add support for this under X Windows,
12846         and somebody needs to do this.
12847
12848         * dialog.c:
12849         * dialog.c (Fpopup_dialog_box):
12850         Documented the support for accelerators that was just mentioned.
12851
12852         editfns.c (get_home_directory): Changed behavior under Windows
12853         when HOME not defined; former behavior was irretrievably broken.
12854
12855         * emacs.c:
12856         * emacs.c (main_1):
12857         * emacs.c (main):
12858         * minibuf.c (clear_echo_area_internal):
12859         * minibuf.c (echo_area_append):
12860         * print.c:
12861         * print.c (std_handle_out_external):
12862         * print.c (std_handle_out_va):
12863         * print.c (fatal):
12864         * print.c (write_string_to_stdio_stream):
12865         * print.c (output_string):
12866         * print.c (debug_print):
12867         * print.c (debug_backtrace):
12868         * print.c (debug_short_backtrace):
12869         Cleaned up the code that prints text to stdout so that this can be
12870         changed to output into a console window instead under MS Windows,
12871         as described above.
12872
12873         * eval.c:
12874         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
12875         * eval.c (internal_catch):
12876         * eval.c (unwind_to_catch):
12877         * eval.c (throw_or_bomb_out):
12878         * eval.c (condition_case_1):
12879         * eval.c (signal_1):
12880         * eval.c (check_error_state_sanity):
12881         * eval.c (call_with_suspended_errors_1):
12882         * eval.c (call_with_suspended_errors):
12883         * eval.c (reinit_vars_of_eval):
12884         Added code to catch throw loops and check for a pesky bug that may
12885         be gone now.
12886
12887         * event-msw.c:
12888         * event-msw.c (key_needs_default_processing_p):
12889         * event-msw.c (mswindows_wnd_proc):
12890         * event-msw.c (mswindows_modifier_state):
12891         * event-msw.c (emacs_mswindows_quit_p):
12892         * event-msw.c (vars_of_event_mswindows):
12893         a) Added support for using the alt key to select menu items as is
12894         standard under MS Windows.  This is controlled using the variable
12895         menu-accelerator-enabled, just like under X Windows.  There is an
12896         option on the options menu to turn this support on.  I really
12897         think that it should be on by default under Windows, but I'm not
12898         going to make this change yet.
12899
12900         b)  Added support for dynamic display size changes under Windows.
12901
12902         * event-stream.c:
12903         * event-stream.c (maybe_echo_keys):
12904         * event-stream.c (Fnext_event):
12905         * event-stream.c (command_builder_find_leaf):
12906         * event-stream.c (lookup_command_event):
12907         * event-stream.c (execute_command_event):
12908         * event-stream.c (pre_command_hook):
12909         * event-stream.c (post_command_hook):
12910         * event-stream.c (syms_of_event_stream):
12911         * event-stream.c (vars_of_event_stream):
12912         * event-stream.c (complex_vars_of_event_stream):
12913         * events.h (struct command_builder):
12914
12915         a) Tried to clean up a little bit the horribly written x-specific
12916         accelerator code that crept into this file.  I moved this code
12917         into menubar-x.c where it belongs. I also needed to move the
12918         command builder structure into the file events.h because it is
12919         accessed directly by this accelerator code.  What I didn't do, but
12920         which should be done at some point, is to properly abstract this
12921         code using device methods instead of the kludgy way that it
12922         currently hooks into the event code.
12923
12924         b) Added the lisp variables this-command-properties and
12925         last-command- properties, which should be used to synchronize two
12926         adjacent commands in preference to playing games with the variable
12927         this-command, which is typically what happens.
12928
12929         c) Added some slightly nasty code to hook into the lisp support
12930         for shifted- motion-key selection.  This is actually necessary for
12931         somewhat complicated reasons, which are described in
12932         simple.el. (NB: I think the proper thing would be to have the code
12933         that calls the pre and post command hooks also call out to generic
12934         lisp functions in simple.el, where all built-in stuff could be
12935         added.  I will think about this more.)
12936
12937         * event-unixoid.c (poll_fds_for_input):
12938         * lread.c (readchar):
12939         * redisplay-tty.c (tty_clear_frame):
12940         * redisplay-x.c (x_get_gc):
12941         * signal.c (interrupt_signal):
12942         And a whole bunch of other files: fixed up places that printed
12943         directly to stderr to instead call the function stderr_out so that
12944         the changes I made under Windows work correctly.
12945
12946         * filemode.c (mode_string):
12947         Warning fixes.
12948
12949         * frame-msw.c:
12950         * frame-msw.c (mswindows_size_frame_internal):
12951         Fixed the computation of frame size and position to keep the frame
12952         within the workspace area, rather than within the physical
12953         dimensions of the screen, so that the frame doesn't overlap window
12954         manager decorations, such as the start menu and toolbar, typically
12955         at the bottom of the screen.
12956
12957         * frame.c (vars_of_frame):
12958         Changed the default frame title format under MS Windows to consist
12959         of buffername-XEmacs, which is standard under MS Windows.  I think
12960         it might be a good idea to change this everywhere because I think
12961         it is superior to the current frame title format, but this is the
12962         kind of change that is likely to cause some people to get annoyed,
12963         so I'm not making it.
12964
12965         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
12966
12967         * gui-msw.c (mswindows_handle_gui_wm_command):
12968         Fixed compile warnings.
12969
12970         * gui-x.c:
12971         * gui-x.c (strdup_and_add_accel):
12972         * gui-x.c (button_item_to_widget_value):
12973         * gui-x.h:
12974         Added code to automatically put an accelerator onto the beginning
12975         of menu items that don't have one as is now the standard, and is
12976         described more later.  Also fixed things so that the menu item
12977         name can be an evaluated expression, again a new standard.
12978
12979         * gui.c:
12980         * gui.c (gui_item_add_keyval_pair):
12981         * gui.c (make_gui_item_from_keywords_internal):
12982         * gui.c (gui_add_item_keywords_to_plist):
12983         * gui.c (gui_item_accelerator):
12984         * gui.c (gui_name_accelerator):
12985         * gui.c (gui_item_included_p):
12986         * gui.c (gui_item_display_flush_left):
12987         * gui.c (gui_item_display_flush_right):
12988         * gui.c (parse_gui_item_tree_item):
12989         * gui.c (parse_gui_item_tree_children):
12990         * gui.c (parse_gui_item_tree_list):
12991         Mule-ized.  Cleanup.  GCPRO addition.
12992
12993         * line-number.c (buffer_line_number):
12994         * lisp.h:
12995         * lisp.h (EMACS_INT_MAX):
12996         Added the manifest constant EMACS_INT_MIN corresponding to the
12997         existing constant EMACS_INT_MAX.  This is partially to fix compile
12998         warnings under Windows, and partly for cleanliness.
12999
13000         * menubar-msw.c:
13001         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
13002         * menubar-msw.c (msw_translate_menu_or_dialog_item):
13003         * menubar-msw.c (displayable_menu_item):
13004         * menubar-msw.c (populate_menu_add_item):
13005         * menubar-msw.c (populate_or_checksum_helper):
13006         * menubar-msw.c (populate_menu):
13007         * menubar-msw.c (update_frame_menubar_maybe):
13008         * menubar-msw.c (prune_menubar):
13009         * menubar-msw.c (msw_char_is_accelerator):
13010         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
13011         * menubar-msw.c (mswindows_handle_wm_command):
13012         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
13013         * menubar-msw.c (mswindows_handle_wm_initmenu):
13014         * menubar-msw.c (mswindows_update_frame_menubars):
13015         * menubar-msw.c (mswindows_free_frame_menubars):
13016         * menubar-msw.c (mswindows_popup_menu):
13017         Fixed a bug in handling accelerators where an extra character
13018         would be displayed in the menu item.  Also generalized the
13019         function displayable_menu_item because it is now used by the
13020         dialog box code as well.  And finally, added code in the functions
13021         that create the menubar to extract a list of accelerators for the
13022         top level menubar, which is used in the event code to determine
13023         whether a particular alt-key combination should be used to invoke
13024         a menu item, or should be passed through to access the standard
13025         XEmacs keymap binding for this key combination.
13026
13027         Much needed GCPROing.
13028
13029         * menubar-x.c:
13030         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13031         * menubar-x.c (menu_item_descriptor_to_widget_value):
13032         * menubar-x.c (restore_in_menu_callback):
13033         * menubar-x.c (x_popup_menu):
13034         * menubar-x.c (menu_move_up):
13035         * menubar-x.c (menu_move_down):
13036         * menubar-x.c (menu_move_left):
13037         * menubar-x.c (menu_move_right):
13038         * menubar-x.c (menu_select_item):
13039         * menubar-x.c (command_builder_operate_menu_accelerator):
13040         * menubar-x.c (menu_accelerator_junk_on_error):
13041         * menubar-x.c (command_builder_find_menu_accelerator):
13042         * menubar-x.c (Faccelerate_menu):
13043         * menubar.h:
13044         Moved a whole bunch of code here that was previously in
13045         event-stream.c as described above.  There is also code connected
13046         to the new standard of adding an accelerator to the beginning of
13047         menu items that don't have one as described above and below.
13048
13049         * menubar.c:
13050         * menubar.c (menu_parse_submenu_keywords):
13051         * menubar.c (Fmenu_find_real_submenu):
13052         * menubar.c (Fnormalize_menu_item_name):
13053         * menubar.c (syms_of_menubar):
13054         * menubar.c (vars_of_menubar):
13055         * menubar.c (complex_vars_of_menubar):
13056
13057         a) Cleaned up a bunch of documentation and improved it.
13058
13059         b) XEmacs now automatically adds an accelerator onto the beginning
13060         of any menu items that don't have one.  I did this because there
13061         will inevitably be some menu items on the main menubar that don't
13062         have accelerators on them because the package that adds that
13063         particular menu item hasn't yet been fixed up to have accelerators
13064         in them and it looked rather strange to have some items with and
13065         some items without accelerators, especially since even in items
13066         without accelerators, you can, at least under windows, still
13067         access the item through an accelerator corresponding to the first
13068         character in the item's name.  If people don't like this behavior,
13069         I can add a variable to turn it off optionally, but I'm not sure
13070         this is a good idea because we really do need to have accelerators
13071         on all of the menu items, and if a package doesn't like the
13072         accelerators being put on the first character, then it should put
13073         the accelerators where they belong.
13074
13075         c) I made a behavior change, which is that the descriptor that
13076         specifies the text of the menu item, which formerly was just a
13077         string, can now also be an evaluated expression.  This makes this
13078         descriptor parallel with all of the others, which could also be
13079         evaluated expressions.  This also obviates the need for the
13080         keyword :label, which was previously listed in the documentation
13081         as unimplemented, and which was for the same purpose.
13082
13083         d) GCPROing.
13084
13085         * ntproc.c:
13086         * ntproc.c (new_child):
13087         * ntproc.c (sys_spawnve):
13088         * ntproc.c (find_child_console):
13089         * ntproc.c (sys_kill):
13090         Fixed compile warnings.  By the way, this file should really go
13091         away entirely, and this will happen as soon as Kirill makes his
13092         final round of process cleanups, which affect the function
13093         call-process.
13094
13095         * process-nt.c:
13096         * process-nt.c (struct nt_process_data):
13097         * process-nt.c (find_process_from_pid):
13098         * process-nt.c (send_signal_the_nt_way):
13099         * process-nt.c (enable_child_signals):
13100         * process-nt.c (find_child_console):
13101         * process-nt.c (send_signal_the_95_way):
13102         * process-nt.c (nt_finalize_process_data):
13103         * process-nt.c (ensure_console_window_exists):
13104         * process-nt.c (nt_create_process):
13105         * process-nt.c (nt_kill_child_process):
13106         * process-nt.c (nt_kill_process_by_pid):
13107         * process-nt.c (nt_open_network_stream):
13108         * process-nt.c (vars_of_process_nt):
13109         Copied over code from Emacs 20.5 to correctly send signals to sub-
13110         processes under Windows 95.  Also added code to automatically
13111         create and hide console window when a sub-process is created under
13112         Windows 95, which obviates the need for the separate runemacs.exe
13113         executable, and finally implemented some variables that were
13114         implemented in Emacs 20.5, but previously not in XEmacs.  These
13115         include mswindows- start-process-share-console and
13116         mswindows-start-process-inherit-error-mode. (Both of these only
13117         apply to Windows 95.)
13118
13119         * regex.c (regex_compile): Fixed a compile warning.
13120
13121         * select-msw.c:
13122         * select-msw.c (mswindows_own_selection):
13123         * select-msw.c (mswindows_get_foreign_selection):
13124         * select-msw.c (mswindows_disown_selection):
13125         * select-msw.c (console_type_create_select_mswindows):
13126         * select-msw.c (syms_of_select_mswindows):
13127         Cleaned up the file and implemented the device method
13128         selection_exists_p, which had accidentally been left out.  Also
13129         removed four lisp functions that were remnants from before the
13130         time when the selection code was properly device abstracted.
13131         These functions are no longer needed because there are generic
13132         equivalents, and because they were added recently and don't exist
13133         in FSF Emacs, I don't think there's any problem with just deleting
13134         them.
13135
13136         * sysdep.c:
13137         * sysdep.c (sys_subshell):
13138         Fixed a compile warning, although in this case there's probably
13139         something wrong with this code, and it ought to be looked into
13140         more thoroughly by somebody who understands it.
13141
13142         * window.c:
13143         * window.c (Fwindow_text_area_height):
13144         * window.c (Fwindow_width):
13145         * window.c (Fwindow_full_width):
13146         * window.c (Fwindow_pixel_width):
13147         * window.c (debug_print_window):
13148         * window.c (syms_of_window):
13149         Added functions window-text-area-height and window-full-width,
13150         which are functions for returning various width and height
13151         characteristics of a window. (One of these functions is necessary
13152         for making the file dialog box work correctly, and the other one
13153         was added for completeness.)  Also added a table to the
13154         documentation for window-height which describes the entire scheme
13155         for accessing width and height characteristics of a window.
13156
13157 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13158
13159         * nt.c (fstat): Added a comment for another problem with
13160         non-encapsulated [f]stat(), reported by Adrian Aichner
13161         <aichner@ecf.teradyne.com>.
13162
13163 2000-03-11  Andy Piper  <andy@xemacs.org>
13164
13165         * window.c (make_dummy_parent): initialize subwindow instance
13166         cache.
13167         (Fset_window_configuration): zero extent_modiff.
13168
13169 2000-03-10  Andy Piper  <andy@xemacs.org>
13170
13171         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
13172         more changes can be triggered.
13173         (Fredisplay_frame): ditto.
13174         (Fredraw_device): ditto.
13175         (Fredisplay_device): ditto.
13176         (redisplay_frame): make non-static.
13177         (redisplay_frame): call update_frame_gutter_geometry outside of
13178         display proper.
13179
13180         * gutter.h: declare update_frame_gutter_geometry.
13181
13182         * redisplay.h: declare redisplay_frame.
13183
13184         * gutter.c (update_frame_gutter_geometry): move geometry changes
13185         in update_frame_gutters here. Geometry changes can only occur
13186         outside of redisplay.
13187         (update_frame_gutters): remove geometry change code.
13188         (Fredisplay_gutter_area): make sure that we are in display when we
13189         update and that we have flushed any size changes.
13190
13191 2000-03-11  Andy Piper  <andy@xemacs.org>
13192
13193         * alloc.c (pdump_dump_data): remove i & count shadows.
13194
13195 2000-02-27  Mike Alexander  <mta@arbortext.com>
13196
13197         * sysdep.h: Declare pdump_read_file
13198
13199         * sysdep.c (pdump_read_file): New function
13200
13201         * alloc.c (pdump_load): Call pdump_read_file to get the portable
13202         dump data
13203
13204 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13205
13206         * lrecord.h: add `lrecord_type_pgsetenv'.
13207
13208 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
13209
13210         * symsinit.h: declare (vars|syms)_of* functions.
13211         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
13212
13213 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
13214
13215         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
13216
13217         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
13218         GCCs.
13219
13220         * emacs.c (main_1): Call postgres initialization code.
13221
13222         * postgresql.h: New file.  PostgreSQL RDBMS support.
13223         * postgresql.c: New file.
13224
13225 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13226
13227         * redisplay-output.c (redisplay_output_display_block): Disable
13228         redundant code.
13229
13230 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13231
13232         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
13233         (Fcanna_henkan_next): Ditto.
13234         (Fcanna_bunsetu_henkou): Ditto.
13235         (Fcanna_henkan_kakutei): Ditto.
13236         (Fcanna_henkan_end): Ditto.
13237         (Fcanna_henkan_quit): Ditto.
13238         (Fcanna_henkan_next): Set retun value correctly.
13239         (c2mu): Use unsigned char instead of signed char.
13240
13241 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13242
13243         * emacs.c (main_1): Always call syms_of_gui.
13244         * inline.c: include gui.h
13245
13246 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
13247
13248         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
13249         converted to Lisp_Object.
13250         (Qtop_bottom): New variable.
13251         (syms_of_redisplay): Initialize it.
13252         * redisplay.h (Vvisible_bell): Ditto.
13253         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
13254         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
13255         only flash top and bottom.
13256
13257 2000-03-08  Andy Piper  <andy@xemacs.org>
13258
13259         * buffer.c (Frename_buffer): record new buffer name the right way.
13260
13261 2000-03-08  Andy Piper  <andy@xemacs.org>
13262
13263         * glyphs.c (update_subwindow): increase hash depth so that widget
13264         items get picked up properly.
13265
13266         * redisplay-output.c (compare_runes): increase hash depth so that
13267         widget items get picked up properly.
13268
13269 2000-03-08  Andy Piper  <andy@xemacs.org>
13270
13271         * gutter.c (output_gutter): add some debug.
13272
13273         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
13274         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
13275         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
13276
13277         * redisplay-output.c (compare_runes): use display_hash to
13278         determine if glyphs really are not the same.
13279
13280         * glyphs.c (update_subwindow): check display_hash to see if
13281         anything really needs to be updated. If not then do
13282         nothing. Record the display_hash after updating.
13283         (image_instance_equal): compare the image_instance face also.
13284
13285 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
13286
13287         * redisplay.h: Fix comment style.
13288
13289 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13290
13291         * consle-msw.h (struct mswindows_frame):
13292         Added new member paint_pending to indicate whether a WM_PAINT
13293         magic event has been queued for this frame.
13294
13295         * event-msw.c (mswindows_drain_windows_queue):
13296         Don't queue a WM_PAINT magic event if one is already queued.
13297         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
13298
13299         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
13300
13301 2000-03-07  Didier Verna  <didier@xemacs.org>
13302
13303         * dired.c: #include `regex.h' after `sysfile.h'.
13304
13305 2000-03-06  Martin Buchholz  <martin@xemacs.org>
13306
13307         * sound.c (init_nas_sound): Fix compiler warning.
13308
13309         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
13310         (FREE_STRUCT_P):
13311         (MARK_STRUCT_AS_FREE):
13312         (MARK_STRUCT_AS_NOT_FREE):
13313         Make `gcc -fstrict-aliasing' work properly.
13314
13315 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13316
13317         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
13318         (mswindows_delete_device): Call CoUnnitialize().
13319
13320         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
13321
13322 2000-02-25    <CraigL@DyCon.com>
13323
13324         * process-nt.c: MinGW now has <shellapi.h>, but still needs
13325         <errno.h>.
13326
13327         * sysdep.c: This extern declaration for environ prevents MinGW
13328         from finding the variable in CRTDLL.DLL.
13329
13330         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
13331         windows headers.
13332         (SHGFI_EXETYPE): ..
13333         (WM_MOUSEWHEEL): ..
13334         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
13335         definitions.
13336         (MMRESULT): Removed, now defined in cygwin's windows headers.
13337         (TIMECAPS): ..
13338         (uid_t,gid_t,pid_t,ssize_t): ..
13339         (_timeb): Removed, MinGW defines both _timeb and timeb.
13340         (HAVE_H_ERRNO): Added.
13341         (HAVE_TZNAME): Added, configure is not detecting this.
13342
13343 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
13344
13345         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
13346         * syntax.c (syntax_match): Use it.
13347
13348         * cmds.c: Import auto-fill-chars from FSF Emacs.
13349         (Vauto_fill_chars): New variables.
13350         (internal_self_insert): Check Vauto_fill_chars.
13351         (vars_of_cmds):
13352         Declare auto-fill-chars as a Lisp variable and initialize it.
13353
13354 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13355
13356         * fileio.c (Fmake_symbolic_link):
13357         (Ffile_symlink_p):
13358         Run handlers even if local machine doesn't have symlinks.
13359
13360 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13361
13362         * event-msw.c (mswindows_drain_windows_queue):
13363         Don't generate paint magic events for non-XEmacs frames.
13364
13365 2000-03-05  Andy Piper  <andy@xemacs.org>
13366
13367         * redisplay.c (redisplay_frame): generate_displayable_area and
13368         friends assumes that we are not in GC, we therefore have to make
13369         sure that this doesn't happen.
13370
13371         * gutter.c (calculate_gutter_size): generate_displayable_area
13372         assumes that we are not in GC, we therefore have to make sure that
13373         this doesn't happen.
13374
13375 2000-03-05  Martin Buchholz  <martin@xemacs.org>
13376
13377         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
13378
13379 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13380
13381         * redisplay.c (regenerate_window): Make sure we set a sane value
13382         for end_pos even if we jump out of the loop.
13383         (regenerate_window): Answer Ben's question :-).
13384         (start_end_of_last_line): Add may_error argument.
13385         (start_of_last_line):
13386         (end_of_last_line): Pass may_error = 0.
13387         (end_of_last_line_may_error): New function.
13388         (pixel_to_glyph_translation): Use it, so we don't crash in
13389         event_to_glyph.
13390
13391 2000-03-04  Andy Piper  <andy@xemacs.org>
13392
13393         * window.h (struct window): add gutter_extent_modiff.
13394
13395         * window.c (allocate_window): zero out gutter_extent_modiff.
13396
13397         * redisplay.h: declare sync_display_line_structs.
13398
13399         * redisplay.c (add_glyph_rune): add a better comment.
13400
13401         * redisplay-output.c (sync_display_line_structs): made non-static.
13402         (compare_runes): remove unneccesary glyph cachel access.
13403
13404         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
13405
13406         * gutter.c (output_gutter): don't output the gutter if extent
13407         changes only involve extents in buffers. use 4 sets of display
13408         lines.
13409         (gutter_extent_signal_changed_region_maybe): new function. Mark
13410         extents in gutters as changed.
13411         (update_frame_gutters): use 4 sets of display lines.
13412         (reset_gutter_display_lines): ditto.
13413         (free_frame_gutters): ditto.
13414         (redraw_exposed_gutter): force output of gutters.
13415
13416         * frame.h (struct frame): add 4 sets of gutter display lines.
13417
13418         * extents.c: (extent_changed_for_redisplay): signal changes to
13419         extents in strings in the gutter as well as extents in buffers.
13420
13421 2000-03-02  Andy Piper  <andy@xemacs.org>
13422
13423         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
13424
13425         * frame.c (Fmake_frame): make sure the gutters get initialized
13426         after the frame is visible.
13427         (set_frame_selected_window): re-arrange compilation macros a
13428         little.
13429         (change_frame_size_1): mark gutters changed.
13430
13431         * device.c (Fset_device_class): mark gutters changed.
13432
13433 2000-03-01  Andy Piper  <andy@xemacs.org>
13434
13435         * window.c (window_top_frame_gutter_height): deleted.
13436         (window_bottom_frame_gutter_height): ditto.
13437         (window_left_frame_gutter_height): ditto.
13438         (window_right_frame_gutter_height): ditto.
13439         (window_top_gutter_height): don't use them.
13440         (window_bottom_gutter_height): ditto.
13441         (window_left_gutter_width): ditto.
13442         (window_right_gutter_width): ditto.
13443         (Fsplit_window): ditto.
13444         (Fwindow_pixel_edges): don't use border dimensions here.
13445
13446         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
13447         (update_scrollbar_instance): ditto.
13448
13449         * redisplay.c (generate_modeline): don't take gutters into account.
13450         (generate_modeline): ditto.
13451         (redisplay_frame): small gutter display optimization.
13452
13453         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
13454
13455         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
13456         gutters into account.
13457
13458         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
13459         for window position and type.
13460
13461         * gutter.c (get_gutter_coords): fix for frame gutters.
13462         (update_frame_gutters): update frame geometry if the gutters have
13463         changed.
13464         (init_frame_gutters): record current gutter geometries.
13465
13466         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
13467         var.
13468         (mswindows_widget_instantiate): ditto.
13469
13470         * frame.h (struct frame): add current_gutter_bounds.
13471
13472         * frame.c (change_frame_size_1): position window and minibuffer
13473         appropriately taking into account the frame gutters.
13474
13475         * frame-x.c: (x_initialize_frame_size): take into account the
13476         frame gutters.
13477
13478 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13479
13480         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
13481
13482 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
13483
13484         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
13485
13486 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13487
13488         * file-coding.c (reset_decoding_stream): Clear previous
13489         detection state when autodetect.
13490
13491 2000-02-29  Didier Verna  <didier@xemacs.org>
13492
13493         * extents.c (set_extent_glyph_1): don't require extents to be
13494         attached.
13495
13496 2000-02-27  Andy Piper  <andy@xemacs.org>
13497
13498         * gutter.c (Fset_default_gutter_position): don't default left and
13499         right gutter visibility to t.
13500         (Fset_default_gutter_position): run
13501         default-gutter-position-changed-hook.
13502         (syms_of_gutter): add default-gutter-position-changed-hook.
13503
13504 2000-02-26  Andy Piper  <andy@xemacs.org>
13505
13506         * specifier.c (Fmake_specifier): add gutter references.
13507
13508         * gutter.h (RAW_WINDOW_GUTTER): new macro.
13509
13510         * lisp.h: declare Fvalid_plist_p.
13511
13512         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
13513         as changed.
13514         (default_gutter_visible_p_changed_in_window): invalidate gutter as
13515         well as its visibility so that it gets reconstructed.
13516         (construct_window_gutter_spec): new function. Construct a string
13517         to be displayed in the gutter from a plist of strings. Take care
13518         to only use elements that are declared as visible.
13519         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
13520         WINDOW_GUTTER.
13521         (gutter_validate): allow plists of strings in the specifier.
13522         (gutter_specs_changed): construct the real_gutter from the gutter
13523         specs using construct_window_gutter_spec.
13524         (gutter_visible_validate): gutter-visible is a new specifier type.
13525         (Fgutter_visible_specifier_p): new function for the new specifier.
13526         (syms_of_gutter): declare gutter-visible and
13527         Fgutter_visible_specifier_p.
13528         (specifier_type_create_gutter): intitalize new gutter-visible
13529         specifier.
13530         (reinit_specifier_type_create_gutter): ditto.
13531         (specifier_vars_of_gutter): use new specifier type for gutter
13532         visibility.
13533         (init_frame_gutters): construct real_gutter correctly.
13534         (Fgutter_specifier_p): beef up documentation.
13535         (Fgutter_size_specifier_p): ditto.
13536
13537         * winslots.h: add real_gutter slots.
13538
13539 2000-02-25  Andy Piper  <andy@xemacs.org>
13540
13541         * device-msw.c: Be kind to older cygwin versions. From Raymond
13542         Toy <toy@rtp.ericsson.se>.
13543
13544         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
13545         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
13546
13547 2000-02-25  Martin Buchholz  <martin@xemacs.org>
13548
13549         * elhash.c (MARK_OBJ): Practice macro hygiene.
13550
13551 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13552
13553         * miscplay.c: s/__inline__/inline/g;
13554         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
13555         (get_device_compdc): INLINE ==> static inline
13556         * *.[ch]: Change INLINE to INLINE_HEADER globally.
13557         find -name '*.h' | \
13558         xargs global-replace \
13559         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
13560
13561 2000-02-25  Andy Piper  <andy@xemacs.org>
13562
13563         * window.c (window_top_frame_gutter_height): new function.
13564         (window_top_window_gutter_height): ditto.
13565         (window_top_gutter_height): use them.
13566         (window_bottom_frame_gutter_height): new function.
13567         (window_bottom_window_gutter_height): ditto.
13568         (window_bottom_gutter_height): use them.
13569         (window_left_window_gutter_width): new function.
13570         (window_left_frame_gutter_width): ditto.
13571         (window_left_gutter_width): use them.
13572         (window_right_window_gutter_width): new function.
13573         (window_right_frame_gutter_width): ditto.
13574         (window_right_gutter_width): use them.
13575         (window_pixel_height): new function. calulate window pixel height
13576         with frame gutter involvement.
13577         (Fsplit_window): calculate new sizes taking frame gutters into
13578         account.
13579         (window_char_height_to_pixel_height): don't include frame gutters.
13580         (window_char_height): use window_pixel_height.
13581         (window_pixheight): rename from window_pixel_height.
13582         (change_window_height): use it.
13583         (window_pixel_height_to_char_height): don't include frame gutters.
13584         (window_char_width_to_pixel_width): ditto.
13585
13586 2000-02-25  Andy Piper  <andy@xemacs.org>
13587
13588         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
13589         if it is.
13590
13591 2000-02-24  Martin Buchholz  <martin@xemacs.org>
13592
13593         * alloc.c (staticpro):
13594         (staticpro_nodump):
13595         (dumpstruct):
13596         (dumpopaque):
13597         (pdump_wire):
13598         (pdump_wire_list):
13599         (compact_string_chars):
13600         (pdump_dump_wired):
13601         Convert:  if (foo) abort();  ==>  assert (! foo);
13602
13603         * eldap.c (Fldap_search_basic):
13604         (Fldap_add):
13605         (Fldap_modify):
13606         (Fldap_delete):
13607         Fix compiler warnings, and possible crashes if (random) return
13608         value were to be used.
13609
13610 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13611
13612         * device-msw.c: Workaround ResetDC failure.
13613
13614         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
13615         applying a devmode.
13616
13617         * redisplay-msw.c (get_frame_dc): Added start_page_p.
13618         (mswindows_text_width): Do not start printer page.
13619
13620         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
13621
13622         * glyphs-msw.c: Added image methods to msprinter console and
13623         msprinter-specific image instantiation.
13624
13625 2000-02-20  Mike Alexander  <mta@arbortext.com>
13626
13627         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
13628         to avoid crashes when selection-sets-clipboard is on
13629         (mswindows_own_selection): ditto
13630
13631 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13632
13633         * glyphs-msw.c:
13634         * redisplay-msw.c (get_frame_dc):
13635         (get_frame_compdc):
13636         * console-msw.h:
13637         * device-msw.c (mswindows_init_device):
13638         (mswindows_delete_device):
13639         (msprinter_init_device):
13640         (msprinter_delete_device):
13641         * frame-msw.c (mswindows_init_frame_1):
13642         (mswindows_delete_frame):
13643         (msprinter_init_frame_3):
13644         (msprinter_delete_frame): Move compatible DC to device object from
13645         frame object, for both mswindows and msprinter. Only one at a time
13646         is needed, it is a real waste to have one per frame!
13647
13648 2000-02-23  Andy Piper  <andy@xemacs.org>
13649
13650         * glyphs.c: add dynamic width and height elements.
13651         (image_instance_equal): ditto.
13652
13653         * glyphs-widget.c (widget_query_geometry): calculate width and
13654         height dynamically if required.
13655         (initialize_widget_image_instance): initialize dynamic dimensions.
13656         (widget_instantiate): pick-up dynamic dimensions.
13657
13658         * glyphs.h (struct Lisp_Image_Instance): add width and height for
13659         dynamic determination. Add appropriate macros.
13660
13661         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
13662         dimensions safe.
13663         (WINDOW_GUTTER_SIZE): ditto.
13664         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
13665
13666         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
13667         inline.
13668         (get_frame_dc): ditto.
13669
13670         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
13671         here.
13672
13673 2000-02-23  Martin Buchholz <martin@xemacs.org>
13674
13675         * XEmacs 21.2.31 is released.
13676
13677 2000-02-22  Ben Wing <ben@xemacs.org>
13678
13679         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
13680
13681 2000-02-22  Andy Piper  <andy@xemacs.org>
13682
13683         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
13684
13685 2000-02-21  Mike Sperber <mike@xemacs.org>
13686
13687         * .dbxrc:
13688         * .gdbinit:
13689         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
13690         variables.
13691
13692 2000-02-21  Mike Sperber <mike@xemacs.org>
13693
13694         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
13695
13696 2000-02-21  Martin Buchholz <martin@xemacs.org>
13697
13698         * XEmacs 21.2.30 is released.
13699
13700 2000-02-20  Martin Buchholz  <martin@xemacs.org>
13701
13702         Performance hacking.
13703         * *.c (syms_of_*):
13704         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
13705         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
13706         * emacs.c (main_1):
13707         * lisp.h (DEFUN):
13708         * console.c (DEFVAR_CONSOLE_LOCAL_1):
13709         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
13710         * symeval.h (DEFVAR_SYMVAL_FWD):
13711         * symbols.c (guts_of_unbound_marker):
13712         Make all c_readonly objects also lisp_readonly and marked for life.
13713         * lrecord.h (struct lrecord_implementation):
13714         Document flags better.
13715         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
13716         * lrecord.h (DECLARE_LRECORD):
13717         * lrecord.h (XSETRECORD):
13718         * lrecord.h (RECORDP):
13719         * lrecord.h (RECORD_TYPEP):
13720         * lrecord.h (RECORD_MARKER): New.
13721         * lrecord.h (error_check_*):
13722         * lrecord.h (CONCHECK_NONRECORD):
13723         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
13724         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
13725         * lrecord.h (set_lheader_implementation):
13726         * lrecord.h (enum lrecord_type): New.
13727         * symeval.h (SYMBOL_VALUE_MAGIC_P):
13728         * alloc.c (disksave_object_finalization_1):
13729         * alloc.c (mark_object):
13730         * alloc.c (lrecord_type_index):
13731         * alloc.c (tick_lcrecord_stats):
13732         * alloc.c (Fgarbage_collect):
13733         * alloc.c (init_alloc_once_early):
13734         * alloc.c (pdump_load):
13735         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
13736         * alloc.c (lrecord_type_index): Delete.
13737         Make lisp object type indexes be constant.
13738           Makes (byte-compile) 5% faster.
13739         Put all marker functions into their own array.
13740           Makes (garbage-collect) 5% faster.
13741         Optimize SYMBOL_VALUE_MAGIC_P.
13742           Makes (byte-compile) 2-3% faster.
13743         * config.h.in (gc_checking_assert): New.
13744         * alloc.c: Use gc_checking_assert().
13745         * .dbxrc: Make compatible with new object type implementation.
13746         * .gdbinit: Make compatible with new object type implementation.
13747         * alloc.c: Delete all symbols defined only for debugging, such as
13748         Lisp_Type_Vector and lrecord_charset.
13749
13750 2000-02-21  Andy Piper  <andy@xemacs.org>
13751
13752         * gui-msw.c (Fmswindows_shell_execute): fix file location
13753         problems.
13754
13755         * buffer.c (Fkill_buffer): remove buffer from alist buffer
13756         unshowing so that set_window_buffer doesn't undo
13757         kill_buffer_hook's hard work.
13758
13759         * glyphs-widget.c (tab_control_query_geometry): don't count the
13760         first item when calculating geometry.
13761
13762         * glyphs.c (map_subwindow): remove redundant code.
13763         (update_frame_subwindows): be more circumspect about when to
13764         update subwindows.
13765
13766         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
13767         when items haven't changed. Update faces if faces have changed as
13768         well as just the widget face.
13769         (x_tab_control_update): Update faces if faces have changed as well
13770         as just the widget face.
13771
13772 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13773
13774         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
13775         registration.
13776         (build_syscolor_string): Use mswindows_color_to_string to try to
13777         get a named color.
13778         (mswindows_device_system_metrics): Reverse the foreground and
13779         background colors so that they match the documentation.
13780
13781         * objects-msw.c: (mswindows_X_color_map): tweak some values so
13782         they match the default Windows palette.
13783         (mswindows_color_to_string): New function.
13784
13785 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13786
13787         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
13788
13789 2000-02-18  Olivier Galibert  <galibert@pobox.com>
13790
13791         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
13792         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
13793
13794         * symbols.c (init_symbols_once_early): Removed obsolete
13795         DATA_SEG_BITS related kludge.
13796         (defvar_magic): Ditto.
13797
13798         * malloc.c: Removed obsolete DATA_SEG_BITS
13799         * ralloc.c: Ditto.
13800         * mem-limits.h: Ditto.
13801
13802         * Makefile.in.in: Removed obsolete HAVE_SHM
13803         * emacs.c: Ditto.
13804
13805 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13806
13807         *  device-msw.c (mswindows_delete_device): Free DDE string
13808         handles.
13809
13810 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13811
13812         * keymap.c (get_keyelt):
13813         * unexnt.c (unexec):
13814         * vm-limit.c (memory_warnings):
13815         * ntheap.c (recreate_heap):
13816         * ntheap.h (UNINIT_PTR):
13817         * select-msw.c (Fmswindows_get_clipboard):
13818         (Fmswindows_set_clipboard):
13819         * objects-msw.h (MSWINDOWS_BAD_HFONT):
13820         * objects-msw.c:
13821         * menubar-msw.c (displayable_menu_item):
13822         * glyphs-msw.c:
13823         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
13824         * sysdep.c (sys_subshell):
13825         * process-nt.c (nt_create_process):
13826         * nt.c (normalize_filename):
13827         (dostounix_filename):
13828         (unixtodos_filename):
13829         * ntproc.c (win32_executable_type):
13830         * ntplay.c (play_sound_data_1):
13831         (play_sound_file):
13832         * editfns.c (get_home_directory):
13833         * event-msw.c (struct winsock_stream):
13834         (mswindows_dde_callback):
13835         * device-msw.c (msprinter_init_device):
13836         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
13837
13838         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
13839         mswindows_clear_toolbar were swapped!
13840
13841         * objects-msw.c:(colormap_t):
13842         (fontmap_t):
13843         * emacs.c (struct standard_args): Fixed const jumble.
13844
13845         * glyphs-widget.c (update_widget): Fixed comparison notation.
13846
13847         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
13848
13849         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
13850         __declspec(noreturn) syntax.
13851
13852 2000-02-19  Martin Buchholz  <martin@xemacs.org>
13853
13854         * eldap.c (Fldap_open):
13855         (Fldap_search_basic):
13856         (Fldap_add):
13857         (Fldap_modify):
13858         Use new coding system conversion macros.
13859
13860 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
13861
13862         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
13863
13864 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
13865
13866         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
13867         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13868
13869         * eldap.c (Qadd, Qreplace): New constant symbols
13870         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
13871         interruptions by XEmacs signals
13872         Remove unnecessary calls to slow_down_interrupts and
13873         speed_up_interrupts
13874         (Fldap_search_basic): Renamed from Fldap_search_internal
13875         Added new optional parameter VERBOSE that triggers the
13876         display of progress messages
13877         Remove unnecessary calls to slow_down_interrupts and
13878         speed_up_interrupts
13879         LDAP result code analysis rewritten
13880         (Fldap_add, Fldap_modify, Fldap_delete): New functions
13881         (syms_of_eldap): Define the new symbols and functions
13882
13883
13884 2000-02-17  Martin Buchholz  <martin@xemacs.org>
13885
13886         * realpath.c: Determine PATH_MAX maximally portably.
13887
13888         * insdel.c (bytecount_to_charcount): Optimize.
13889         The function used to be optimized for entirely ASCII sequences.
13890         Now it is optimized for successive characters from the same
13891         charset.  This also wins big for _mostly_ ASCII sequences.
13892
13893         * fileio.c (Ffile_truename): convert return from realpath() using
13894         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
13895         - Rewrite GCPROing slightly.
13896
13897         * sysdep.c (sys_open): Do filename conversion, like all other
13898         sys_* functions.  Fixes bug:
13899         (let ((file-name-coding-system 'iso-8859-2))
13900            (write-region x y latin2-name))
13901         ==> writes filename using internal encoding.
13902
13903 2000-02-18  Martin Buchholz  <martin@xemacs.org>
13904
13905         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
13906         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
13907         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
13908         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
13909         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
13910         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
13911         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
13912         (CONST_IF_NOT_DEBUG): Delete.
13913         * alloc.c (this_one_is_unmarkable): Delete.
13914         (mark_object): Don't check for this_one_is_unmarkable. Use the
13915         c_readonly flag instead.
13916         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
13917
13918 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13919
13920         * event-msw.c (mswindows_drain_windows_queue):
13921         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
13922         away redundant repaint events.
13923
13924 2000-02-17  Andy Piper  <andy@xemacs.org>
13925
13926         * redisplay.h: declare mark_redisplay_structs.
13927
13928         * redisplay.c (redisplay_window):
13929         (redisplay_frame): don't check subwindows_state_changed.
13930         (mark_redisplay): mark gutters here.
13931
13932         * glyphs.c: (instantiate_image_instantiator): always layout if we
13933         haven't done so already.
13934         (allocate_image_instance): don't mark as dirty.
13935         (update_subwindow): bind inhibit_quit.
13936
13937         * gutter.c (mark_gutters): new function.
13938
13939         * glyphs-x.c (x_update_widget): Always resize to get round a
13940         widget bug.
13941
13942         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
13943         breaking absolutely everything.
13944
13945         * gutter.h: declare mark_gutters.
13946
13947 2000-02-16  Martin Buchholz <martin@xemacs.org>
13948
13949         * XEmacs 21.2.29 is released.
13950
13951 2000-02-15  Olivier Galibert  <galibert@pobox.com>
13952
13953         * fns.c (size_bit_vector): Fix computation of the size.
13954
13955 2000-02-15  Martin Buchholz  <martin@xemacs.org>
13956
13957         * *.[ch]: Change CONST to const globally.
13958         find -name '*.[ch]' | \
13959         xargs global-replace \
13960         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
13961         - Remove vestigial references to CONST_IS_LOSING
13962
13963 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13964
13965         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
13966         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
13967         events instead of dispatching them directly.
13968         (mswindows_handle_paint): New function to do repainting.
13969         (mswindows_wnd_proc):
13970         (emacs_mswindows_handle_magic_event): Call above function.
13971
13972 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
13973
13974         * objects-msw.c (mswindows_create_font_variant): Return the new
13975         font handle.
13976         (initialize_font_instance): Get font metrics from the underlined
13977         variant of the font to cope with the case where the underlined
13978         font has a bigger descent.
13979
13980 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
13981
13982         * gui.c (gui_item_accelerator): Return the first underlined
13983         character in item name.
13984
13985 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13986
13987         * lisp.h: Added Qprinter.
13988
13989         * general.c (syms_of_general): Initialized it.
13990
13991         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
13992         (get_frame_dc):
13993         (get_frame_compdc): Made inline.
13994
13995         * console.h (struct console_methods): Added eject_page method.
13996
13997         * frame.h: Added FRAME_DISPLAY_P and friends.
13998         Aligned backslahes in many macros in more readable fashion.
13999         Added page_number to struct frame, and an accessor macro
14000         for it.
14001
14002         * defice.h: Added DEVICE_DISPLAY_P and friends.
14003
14004         * device.c (Fdevice_printer_p): Used these.
14005
14006         * frame.c (allocate_frame_core): Initialize page number.
14007         (Fprint_job_page_number):
14008         (Fprint_job_eject_page): Implemented.
14009
14010         * frame-msw.c (msprinter_eject_page): Added method.
14011         (msprinter_start_page): Added.
14012
14013         * window.c (Fwindow_truncated_p): Fixed docstring.
14014         (Fwindow_last_line_visible_height): Implemented.
14015
14016 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14017
14018         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
14019
14020 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14021
14022         * syntax.c (scan_words): Always advance at least one character.
14023
14024 2000-02-13  Andy Piper  <andy@xemacs.org>
14025
14026         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
14027         to make sure the glyph is in the cachels.
14028
14029         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
14030         global image instance flag.
14031         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
14032         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
14033
14034         * glyphs.c (allocate_image_instance): set dirty bits correctly.
14035         (Fset_image_instance_property): mark layout as changed.
14036         (invalidate_glyph_geometry_maybe): mark layout as changed.
14037         (glyph_width): use new NEEDS_LAYOUT macro.
14038         (glyph_ascent): ditto.
14039         (glyph_descent): ditto.
14040         (glyph_height): ditto.
14041         (image_instance_layout): mark layout as clean after laying out.
14042         (update_subwindow): don't mark layout as clean here.
14043
14044         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
14045         should no longer be needed.
14046
14047         * glyphs-x.c (x_update_widget): sanitize asserts.
14048         (x_finalize_image_instance): sanitize assignment to widgets.
14049
14050         * glyphs-widget.c (widget_instantiate): don't need to clear the
14051         layout flag here.
14052
14053 2000-02-13  Martin Buchholz  <martin@xemacs.org>
14054
14055         * sysdep.c (getcwd): Use standard prototype.
14056         * sysdep.h (getcwd): Use standard prototype.
14057
14058         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
14059         (sequence, start, end).
14060         Remove redundant type checking.
14061         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
14062         view of `caller-protects') to avoid a crash where the real fix was
14063         found elsewhere.
14064
14065 2000-02-12  Martin Buchholz  <martin@xemacs.org>
14066
14067         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
14068
14069         * s/sol2.h: Remove feature macro initialization.
14070
14071         * alloc.c (alloc_lcrecord): Add more type checking assertions.
14072         (vector_hash): New.  Code from internal_hash.
14073         * lrecord.h:
14074         Fix up allocation subsystem comments.
14075
14076         * config.h.in: Add __EXTENSIONS__ for Solaris.
14077
14078         * systime.h (EMACS_GETTIMEOFDAY): New.
14079         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
14080         Remove Solaris-specific code.
14081         Use void* for the (ignored) second arg for gettimeofday().
14082
14083         * elhash.c (hash_table_hash): Implement it, finally.
14084         * elhash.c:  Use hashcode_t.
14085
14086         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
14087         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
14088
14089         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
14090         * fns.c (size_bit_vector):
14091         * alloc.c (size_vector):
14092         (make_vector_internal):
14093         (make_bit_vector_internal):
14094         (sweep_bit_vectors_1):
14095         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
14096
14097 2000-02-10  Martin Buchholz  <martin@xemacs.org>
14098
14099         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
14100         Include strings.h to avoid warnings for bzero and strcasecmp.
14101
14102 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14103
14104         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
14105         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
14106
14107         * fns.c (size_bit_vector): New.  Declare bit vectors as a
14108         sequence.
14109
14110 2000-02-10  Olivier Galibert  <galibert@pobox.com>
14111
14112         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
14113         use a value field instead.
14114         (symbol_value_forward_forward): Use value field.
14115         (DEFVAR_SYMVAL_FWD): Use value field.
14116         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
14117         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
14118         (DEFVAR_CONST_INT): Ditto.
14119         (DEFVAR_BOOL): Ditto.
14120         (DEFVAR_CONST_BOOL): Ditto.
14121         (DEFVAR_INT_MAGIC): Ditto.
14122         (DEFVAR_BOOL_MAGIC): Ditto.
14123
14124         * symbols.c (guts_of_unbound_marker): Use value field.
14125         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
14126         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
14127
14128         * lisp.h: Declare dumpopaque and noninteractive1.
14129
14130         * alloc.c (dumpopaque): Added.
14131         (pdump_dump_opaquevec): Added.
14132         (pdump): Call pdump_dump_opaquevec to dump opaque data.
14133         (pdump_load): Reload opaque data.  Sync noninteractive1 with
14134         noninteractive.
14135
14136 2000-02-10  Andy Piper  <andy@xemacs.org>
14137
14138         * glyphs.c (image_instance_layout): if the size changes, mark it
14139         as such.
14140
14141         * redisplay-output.c (redisplay_output_layout): Update the
14142         subwindow here.
14143         (redisplay_output_subwindow): ditto.
14144
14145         * glyphs.c (update_subwindow): make sure we reset flags for
14146         layouts as well as everything else.
14147
14148         * glyphs-widget.c (layout_layout): don't need to set the instances
14149         dimensions here.
14150
14151 2000-02-09  Martin Buchholz  <martin@xemacs.org>
14152
14153         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
14154         not HAVE_DLOPEN, which is a lower-level thing.
14155
14156         * .cvsignore: Ignore gmon.out
14157
14158 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
14159
14160         * .cvsignore: Ignore portable dumper xemacs.dmp file
14161
14162 2000-02-09  Andy Piper  <andy@xemacs.org>
14163
14164         * redisplay-output.c (redisplay_output_layout): be more clever
14165         about when we output based on the changed flags.
14166
14167         * glyphs.h (struct image_instantiator_methods): add update_method.
14168         (struct Lisp_Image_Instance): add changed flags. Declare new
14169         macros for manipulating them.
14170
14171         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
14172         (image_instance_parent_glyph): find an image_instance's parent
14173         glyph or image_instance.
14174         (image_instance_layout): mark the size as changed.
14175         (set_image_instance_dirty_p): new function. mark an image
14176         instance, plus all of its parents, as dirty.
14177         (Fset_image_instance_property): use it.
14178         (Fglyph_animated_timeout_handler): use it.
14179         (update_subwindow): call update_widget and device methods for
14180         update_subwindow. Mark all changed flags as clean.
14181         (Fresize_subwindow): mark size as changed.
14182
14183         * glyphs-x.c (x_finalize_image_instance): try and detect gc
14184         failures.
14185         (x_update_subwindow): only resize subwindows here.
14186         (x_update_widget): new function. Update all changed properties of
14187         a widget.
14188         (x_resize_subwindow): deleted.
14189         (x_widget_set_property): deleted.
14190         (x_progress_gauge_set_property): deleted.
14191         (x_progress_gauge_update): new function. Implement recorded
14192         changes.
14193         (x_tab_control_update): ditto.
14194         (x_tab_control_set_property): deleted.
14195         (console_type_create_glyphs_x): declare new functions.
14196         (image_instantiator_format_create_glyphs_x): ditto.
14197
14198         * glyphs-widget.c (widget_set_property): mark text changed.
14199         (update_widget): new function. Update properties of a widget.
14200         (widget_instantiate): for layouts make sure we set their
14201         children's parent correctly.
14202         (tab_control_set_property): new function. Record changes that will
14203         take place under redisplay's control.
14204         (progress_gauge_set_property): ditto.
14205         (image_instantiator_progress_guage): declare new functions.
14206         (image_instantiator_tab_control): ditto.
14207
14208         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
14209         now.
14210         (mswindows_update_widget): new function. Update all properties on
14211         a widget that have changed.
14212         (mswindows_button_update): new function. Update a button's set
14213         state.
14214         (mswindows_tab_control_update): new function. Update the items in
14215         a tab.
14216         (mswindows_tab_control_set_property): deleted.
14217         (mswindows_progress_gauge_update): new function. Update the
14218         progress gauge's progress.
14219         (mswindows_widget_set_property): deleted. This is all done
14220         asynchronously now.
14221         (mswindows_progress_gauge_set_property): ditto.
14222         (console_type_create_glyphs_mswindows): declare new methods.
14223         (image_instantiator_format_create_glyphs_mswindows): ditto.
14224
14225         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
14226         (msprinter_set_frame_properties): ditto.
14227
14228         * console.h (struct console_methods): Add update_widget_method.
14229
14230 2000-02-09  Andy Piper  <andy@xemacs.org>
14231
14232         * gui-msw.c (Fmswindows_shell_execute): Make
14233         mswindows-shell-execute industrial strength.
14234
14235 2000-02-08  Martin Buchholz  <martin@xemacs.org>
14236
14237         * lrecord.h: Make macro argument `props' match member function `plist'.
14238         * fns.c (Fget):
14239         * fns.c (Fput):
14240         * fns.c (Fremprop):
14241         * fns.c (Fobject_plist):
14242         * alloc.c:
14243         * symbols.c:
14244         Object property list frobbing cleanup.
14245         - Allow any lisp object (compared with `eq'), not just symbols, as
14246           keys in object plists.
14247         - Move symbol plist frobbing into symbols.c, where it belongs.
14248         - Move string plist frobbing into alloc.c, where it belongs.
14249         - Everything's an lrecord now, so no need to test for symbolp, etc.
14250         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
14251
14252         * extents.c: Reorder code to remove declarations.
14253
14254         * frame.h (store_in_alist): Remove useless declaration.
14255
14256 2000-02-07  Martin Buchholz  <martin@xemacs.org>
14257
14258         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
14259         * config.h.in: Add HAVE_XCONVERTCASE.
14260
14261 2000-02-07  Andy Piper  <andy@xemacs.org>
14262
14263         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
14264         it breaks many things.
14265
14266 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14267
14268         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
14269         actually can start a common comment type.
14270         * src/syntax.h (SYNTAX_END_P): ditto for end.
14271
14272 2000-02-07  Martin Buchholz <martin@xemacs.org>
14273
14274         * XEmacs 21.2.28 is released.
14275
14276 2000-02-06  Martin Buchholz  <martin@xemacs.org>
14277
14278         * event-Xt.c (x_keysym_to_character): New.
14279         (maybe_define_x_key_as_self_inserting_character): New.
14280         (x_has_keysym): New.
14281         Auto-define all keys on the keyboard as self-insert-key.
14282
14283 2000-02-02  Martin Buchholz  <martin@xemacs.org>
14284
14285         * menubar.c (vars_of_menubar): A small code simplification.
14286
14287         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
14288
14289         * ExternalShell.c:
14290         * ExternalClient.c:
14291         * EmacsShell-sub.c:
14292         * EmacsManager.c:
14293         * EmacsFrame.c:
14294         Use consistent style for specifying X resources.
14295
14296         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
14297         This makes (dontusethis-set-symbol-value-handler) actually usable.
14298
14299         * lrecord.h (lrecord_decription_type):
14300         * alloc.c (pdump_register_sub):
14301         (pdump_dump_data):
14302         (pdump_reloc_one):
14303         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
14304         Comply with XEmacs coding style.
14305         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
14306         args, and XD_LISP_OBJECT_ARRAY with 3 args.
14307
14308         * keymap.c (Faccessible_keymaps):
14309         Make (accessible-keymaps map "\C-h") do the Right Thing.
14310         Make (accessible-keymaps map []) do the Right Thing.
14311         Make (accessible-keymaps map "") do the Right Thing.
14312         (check_keymap_definition_loop): New function.
14313         (keymap_store_internal): Keep luser from shooting self in foot,
14314           via (define-key ctl-x-4-map "p" global-map).
14315         Remove fullness slot from struct Lisp_Keymap, since hash tables
14316         are now reliable.
14317         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
14318
14319 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14320
14321         * redisplay.c (init_redisplay): Fix small memory leak.
14322         * elhash.h:
14323         * elhash.c (pdump_reorganize_hash_table):
14324         Rename from reorganize_hash_table. Change prototype.
14325         Reuse the original memory for hentries.  Save 100k.
14326         * alloc.c (PDUMP_READ): new macro.
14327         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
14328         * alloc.c: No need to #ifndef before #undef.
14329
14330         * print.c: Allow debug_print() to print readably by modifying
14331         debug_print_readably.  Use consistent variable names.
14332
14333         * .dbxrc: Try to get things to work even if stopped in a function
14334         without source available by explicitly specifying source files.
14335 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14336
14337         * unexnt.c (_start): Removed bogus code which caused loading heap
14338         from differrent executable file.
14339         Removed bogus assignment to _fmode, which caused inconsistencies.
14340
14341 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14342
14343         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
14344         Have spawnve encapsulation regard DONT_ENCAPSULATE.
14345         Do not preliminary `#define signal sigset'.
14346
14347         * systime.h: Do not prototype environ on windows nt and cygwin,
14348         this conflicts with system header.
14349
14350         * syssignal.h: Use correct define for WINDOWSNT
14351
14352         * sysdep.h: Do not prototype environ on windows nt, this conflicts
14353         with system header.
14354
14355         * sysdep.c (near start of file): Fixed commentary and rearranged
14356         ifdefs in readable order.
14357         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
14358         (start_of_text):
14359         (end_of_text):
14360         (end_of_data): Do not compile in if using PDUMP.
14361
14362         * symsinit.h: Prototyped vars_of_nt().
14363
14364         * ntproc.c (windows9x_p): Added, instead of os_subtype.
14365         (find_child_console): Use it.
14366         (sys_kill): Use it.
14367
14368         * ntheap.h: Do not extern os_subtype.
14369
14370         * ntheap.c (cache_system_info): Do not cache unneeded:
14371         nt_major_version, nt_minor_version and os_subtype.
14372         (recreate_heap): Do not compile in when PDUMPing.
14373
14374         * nt.c (geteuid and friends): Use the new varibale
14375         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
14376         (init_user_info): Removed the above mentioned hackery.
14377         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
14378         stat has been fixed in the C runtime.
14379         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
14380
14381         * file-coding.c (struct file_coding_dump): Do not define
14382         ucs_to_mule_table in the struct if not MULE.
14383         (struct struct lrecord_description fcd_description_1): Do not dump
14384         the above.
14385
14386         * emacs.c (main_1): Call vars_of_nt().
14387         (right before Fdump_emacs_data): Don't need lastfile if using both
14388         portabe dumper and system malloc.
14389
14390         * alloc.c (Fmemory_limit): Conditionalized out.
14391         (pdump): Use OPEN_BINARY for the portable dump file.
14392         (pdump_load): Ditto.
14393
14394 2000-02-02  Mike Alexander  <mta@arbortext.com>
14395
14396         * nt.c (convert_time): Set tm_isdst before calling mktime and
14397         avoid calling it at all if the compiler supports 64 bit integers.
14398         Also initialize utc_base_ft before using it.
14399
14400 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14401
14402         * frame.c (change_frame_size_1): Take f->internal_border_width
14403         into consideration when calculating the width of the frame.
14404
14405 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14406
14407         * window.c (frame_min_height):
14408         (frame_size_valid_p):
14409         (frame_pixsize_valid_p): Added.
14410         (check_frame_size): Generalized.
14411
14412         * window.h: Prototyped the above.
14413
14414         * lisp.h:
14415         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
14416         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
14417         Deleted Vwin32_* and Vbinary_process_* unused variables.
14418
14419         * device-msw.c (msprinter_init_device): Do not get printer font
14420         list; Added DEVMODE functions.
14421
14422         * frame-msw.c: Added lots of printer code.
14423
14424         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
14425         general.c.
14426
14427         * console-msw.h: Added more msprinter device private slots.
14428
14429 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14430
14431         * event-msw.c (key_needs_default_processing_p): Added.
14432         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
14433
14434 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14435
14436         * glyphs.c (image_instance_layout): Mark image instance as clean
14437         after layout.
14438         (glyph_dirty_p): Removed redundant function.
14439         (invalidate_glyph_geometry_maybe): Added.
14440         (update_glyph_cachel_data): Call it.
14441
14442         * glyphs.h: Prototyped it.
14443
14444         * redisplay.c (add_glyph_rune): Call it.
14445         (redisplay_window): Reset glyphs cachels when frame faces have
14446         changed, thus forcing recomputation of built-in border glyphs.
14447
14448 2000-01-30  Martin Buchholz  <martin@xemacs.org>
14449
14450         * Makefile.in.in: Make portable dumper and purify play well together.
14451         Add imperfect, but better than nothing, support for pdump.
14452         Remove xemacs.dmp when temacs is re-generated.
14453         Don't ignore errors when dumping xemacs.
14454
14455         * symbols.c (maybe_call_magic_handler): Remove one magic number.
14456
14457 2000-01-28  Andy Piper  <andy@xemacs.org>
14458
14459         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
14460         (setup_normal_frame): ditto.
14461         (setup_frame_without_minibuffer): ditto.
14462         (setup_minibuffer_frame): ditto.
14463         (delete_frame_internal): ditto.
14464         (Fmake_frame_invisible): ditto.
14465         (Ficonify_frame): ditto.
14466
14467         * window.h: change Fset_window_buffer signature.
14468
14469         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
14470         (Fset_window_buffer): allow recording of buffer if the window is
14471         the selected window.
14472         (window_loop): Use new Fset_window signature.
14473
14474 2000-01-23  Daniel Pittman  <daniel@danann.net>
14475
14476         * config.h.in: Added template for `HAVE_ATHENA_3D'
14477
14478 2000-01-29  Andy Piper  <andy@xemacs.org>
14479
14480         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
14481
14482         * gutter.c (output_gutter): Don't output if the window isn't live.
14483
14484 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14485
14486         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
14487         of 01/12/00: Moved SetFocus back here where it belongs.
14488
14489 2000-01-23  Andy Piper  <andy@xemacs.org>
14490
14491         * s/cygwin32.h: declare printer things.
14492
14493 2000-01-26  Andy Piper  <andy@xemacs.org>
14494
14495         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
14496         Alexander.
14497
14498 2000-01-24  Andy Piper  <andy@xemacs.org>
14499
14500         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
14501         (mswindows_button_instantiate): Make sure glyph is a pixmap.
14502
14503         * glyphs-widget.c (widget_instantiate): Avoid shadows.
14504
14505         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
14506
14507         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
14508
14509         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
14510         (mswindows_output_display_block): Avoid local shadows.
14511
14512         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
14513         (mswindows_enqueue_mouse_button_event): ditto.
14514         (mswindows_handle_gui_wm_command): remove declaration.
14515
14516         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
14517         warnings.
14518
14519         * console-msw.h: Avoid shadows.
14520         (mswindows_get_toolbar_button_text):
14521         (emacs_mswindows_create_stream_pair):
14522         (emacs_mswindows_delete_stream_pair):
14523         (mswindows_handle_toolbar_wm_command): declare.
14524
14525         * device-msw.c (build_syscolor_string): Avoid shadows.
14526
14527 2000-01-23  Andy Piper  <andy@xemacs.org>
14528
14529         * glyphs-widget.c (widget_instantiate): reverse the items for
14530         layouts so that children are in the expected order.
14531
14532 2000-01-28  Martin Buchholz  <martin@xemacs.org>
14533
14534         * ralloc.c: safe_bcopy ==> memmove
14535         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
14536         * s/msdos.h: Remove BCOPY macros.
14537         * insdel.c (gap_right): Remove BCOPY conditional code.
14538         * insdel.c (gap_left): Remove BCOPY conditional code.
14539         XEmacs demands a working ANSI C compiler - hence memmove.
14540
14541         * regex.c (regex_compile): Remove accidental use of trigraphs.
14542
14543 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14544
14545         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
14546         event timestamp.
14547
14548 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14549
14550         * event-msw.c (mswindows_drain_windows_queue): Added the
14551         parameter.
14552         (mswindows_need_event): Commented the call to
14553         mswindows_drain_windows_queue().
14554         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
14555         only.
14556
14557         * console-msw.h: Moved a few function prototypes here from
14558         event-msw.c.
14559
14560         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
14561         parameter from unsigned short to unsigned long.
14562         (Fmswindows_shell_execute): Added return value.
14563
14564 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14565
14566         * sysdep.c (init_system_name):
14567           process-unix.c (unix_canonicalized_host_name):
14568         Don't call freeaddrinfo() if getaddrinfo() fails.
14569
14570         * process-unix.c (unix_open_unix_network_stream):
14571         Moved the code to get a port # into address loop.
14572
14573 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14574
14575         * buffer.c (reinit_vars_of_buffer):
14576         The right place to initialize conversion_in_dynarr and
14577         conversion_out_dynarr.
14578
14579         * alloc.c (pdump): Use the real open() till sys_open() is functional.
14580
14581         * process-unix.c (unix_canonicalize_host_name): Muleize.
14582         (unix_open_network_stream): Muleize.
14583
14584         * buffer.h: Fix up prototypes for ralloc.c functions.
14585
14586 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
14587         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
14588         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
14589                 instead of gethostbyname()
14590         * process-unix.c: In unix_canonicalize_host_name() and
14591                 unix_open_network_stream(), add code to use getaddrinfo()
14592                 instead of gethostbyname().
14593
14594 2000-01-27  Daniel Pittman <daniel@danann.net>
14595
14596         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
14597         libs when built with flat Athena.
14598
14599 2000-01-27  Martin Buchholz  <martin@xemacs.org>
14600
14601         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
14602         Use coding standards for function prototypes.
14603
14604 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14605
14606         * dialog-msw.c (push_lisp_string_as_unicode):
14607         * doc.c (unparesseuxify_doc_string):
14608         * dired.c (Fuser_name_completion_1):
14609         * dired.c (Fuser_name_all_completions):
14610         * dired.c (free_user_cache):
14611         * dired.c (user_name_completion):
14612         * console-x.c (get_display_arg_connection):
14613         * minibuf.c (clear_echo_area_internal):
14614         * minibuf.c (echo_area_append):
14615         * eldap.c (Fldap_open):
14616         * eldap.c (Fldap_search_internal):
14617         * frame-x.c (x_set_frame_text_value):
14618         * frame-x.c (x_set_frame_properties):
14619         * frame-x.c (x_create_widgets):
14620         * redisplay-tty.c (term_get_fkeys_1):
14621         * objects-x.c (x_parse_nearest_color):
14622         * objects-x.c (x_valid_color_name_p):
14623         * objects-x.c (x_initialize_font_instance):
14624         * objects-x.c (x_list_fonts):
14625         * objects-x.c (x_find_charset_font):
14626         * tooltalk.c (Fadd_tooltalk_message_arg):
14627         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
14628         * tooltalk.c (Fadd_tooltalk_pattern_arg):
14629         * process-unix.c (unix_create_process):
14630         * ntproc.c (sys_spawnve):
14631         * sound.c (Fplay_sound_file):
14632         * sound.c (Fplay_sound):
14633         * buffer.c (init_initial_directory):
14634         * buffer.c (init_buffer):
14635         * editfns.c (init_editfns):
14636         * editfns.c (Ftemp_directory):
14637         * editfns.c (Fuser_full_name):
14638         * editfns.c (uncache_home_directory):
14639         * editfns.c (get_home_directory):
14640         * editfns.c (Fuser_home_directory):
14641         * editfns.c (Fformat_time_string):
14642         * editfns.c (Fcurrent_time_string):
14643         * gui-x.c (button_item_to_widget_value):
14644         * database.c (Fopen_database):
14645         * event-Xt.c (x_to_emacs_keysym):
14646         * event-Xt.c (x_event_to_emacs_event):
14647         * event-Xt.c (describe_event_window):
14648         * event-msw.c (mswindows_wnd_proc):
14649         * glyphs-eimage.c (jpeg_instantiate):
14650         * glyphs-eimage.c (gif_instantiate):
14651         * glyphs-eimage.c (png_instantiate):
14652         * glyphs-eimage.c (tiff_instantiate):
14653         * glyphs-x.c (xbm_instantiate_1):
14654         * glyphs-x.c (x_xbm_instantiate):
14655         * glyphs-x.c (x_xface_instantiate):
14656         * glyphs-x.c (autodetect_instantiate):
14657         * glyphs-x.c (cursor_font_instantiate):
14658         * glyphs-x.c (x_widget_instantiate):
14659         * glyphs-x.c (x_widget_set_property):
14660         * glyphs-x.c (x_widget_property):
14661         * glyphs-x.c (BUILD_GLYPH_INST):
14662         * print.c (write_string_to_stdio_stream):
14663         * print.c (output_string):
14664         * print.c (Falternate_debugging_output):
14665         * print.c (Fexternal_debugging_output):
14666         * glyphs-msw.c (extract_xpm_color_names):
14667         * glyphs-msw.c (mswindows_xpm_instantiate):
14668         * glyphs-msw.c (bmp_instantiate):
14669         * glyphs-msw.c (resource_name_to_resource):
14670         * glyphs-msw.c (mswindows_resource_instantiate):
14671         * glyphs-msw.c (xbm_instantiate_1):
14672         * glyphs-msw.c (mswindows_xbm_instantiate):
14673         * glyphs-msw.c (mswindows_xface_instantiate):
14674         * glyphs-msw.c (mswindows_widget_instantiate):
14675         * glyphs-msw.c (add_tree_item):
14676         * glyphs-msw.c (add_tab_item):
14677         * glyphs-msw.c (mswindows_combo_box_instantiate):
14678         * glyphs-msw.c (mswindows_widget_property):
14679         * glyphs-msw.c (mswindows_combo_box_property):
14680         * glyphs-msw.c (mswindows_widget_set_property):
14681         * console.c (stuff_buffered_input):
14682         * objects-msw.c (mswindows_initialize_color_instance):
14683         * objects-msw.c (mswindows_valid_color_name_p):
14684         * objects-msw.c (mswindows_list_fonts):
14685         * objects-msw.c (mswindows_font_instance_truename):
14686         * bytecode.c (optimize_compiled_function):
14687         * select-x.c (symbol_to_x_atom):
14688         * select-x.c (x_atom_to_symbol):
14689         * select-x.c (hack_motif_clipboard_selection):
14690         * select-x.c (selection_data_to_lisp_data):
14691         * select-x.c (lisp_data_to_selection_data):
14692         * select-x.c (Fx_get_cutbuffer_internal):
14693         * select-x.c (Fx_store_cutbuffer_internal):
14694         * buffer.h (TO_EXTERNAL_FORMAT): New function.
14695         * buffer.h (TO_INTERNAL_FORMAT): New function.
14696         * emacs.c (make_arg_list_1):
14697         * emacs.c (make_argc_argv):
14698         * emacs.c (main_1):
14699         * emacs.c (Fdump_emacs):
14700         * emacs.c (split_string_by_emchar_1):
14701         * file-coding.h:
14702         * lisp.h:
14703         * lstream.h:
14704         * symsinit.h:
14705         * device-x.c (x_init_device):
14706         * device-x.c (Fx_valid_keysym_name_p):
14707         * device-x.c (Fx_get_font_path):
14708         * device-x.c (Fx_set_font_path):
14709         * glyphs.c (bitmap_to_lisp_data):
14710         * glyphs.c (pixmap_to_lisp_data):
14711         * alloc.c (make_ext_string): Use coding system arguments.  Update
14712         all callers.
14713         * alloc.c (build_string):
14714         * callproc.c (child_setup):
14715         * callproc.c (init_callproc):
14716         * fileio.c (lisp_strerror):
14717         * fileio.c (directory_file_name):
14718         * fileio.c (Fexpand_file_name):
14719         * fileio.c (Ffile_truename):
14720         * fileio.c (Fsysnetunam):
14721         * fileio.c (Fdo_auto_save):
14722         * sysdep.c (sys_readdir):
14723         * tests.c: New file.  Allow adding C tests.
14724         Replace GET_* macros with a more comprehensible and flexible
14725         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
14726         Modify all calls.
14727         Any coding system can be used to do format conversion.
14728         Eliminate enum external_data_format.
14729         Eliminate convert_to_external_format.
14730         Eliminate convert_to_internal_format.
14731         Make sure file-name, keyboard, terminal, and ctext are always
14732         defined as coding systems or aliases.  Make
14733         file-name-coding-system, terminal-coding-system, and
14734         keyboard-coding-system magical variables that are equivalent to
14735         defining the corresponding coding system aliases.
14736
14737         * file-coding.c (Fcoding_system_canonical_name_p): New function.
14738         * file-coding.c (Fcoding_system_alias_p): New function.
14739         * file-coding.c (Fcoding_system_aliasee): New function.
14740         * file-coding.c (append_suffix_to_symbol): New function.
14741         * file-coding.c (dangling_coding_system_alias_p): New function.
14742         * file-coding.c (Ffind_coding_system):
14743         * file-coding.c (Fcopy_coding_system):
14744         * file-coding.c (encode_coding_no_conversion):
14745         * file-coding.c (syms_of_file_coding):
14746         * file-coding.c (vars_of_file_coding):
14747         Rewrite coding system alias code.
14748         Allow nested aliases, like symbolic links.
14749         Allow redefinition of coding system aliases.
14750         Prevent existence of dangling coding system aliases.
14751
14752         * dired.c (Fuser_name_completion_1):
14753         * dired.c (Fuser_name_all_completions):
14754         A crash would happen if user did QUIT in the middle of building
14755         user_name_cache.  Remove redundant code in mainline and unwind_protect.
14756
14757         * lisp.h:
14758         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
14759
14760         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
14761         an unsigned char *.  Update all callers.
14762
14763 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14764
14765         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
14766
14767 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14768
14769         * elhash.c (hentry_description): Use more portable definition.
14770         (resize_hash_table): Initialize new hentries using
14771         xnew_array_and_zero, thereby simplifying the code.
14772
14773         * mule-charset.c (make_charset): Make sure entire object is
14774         initialized, to avoid Purify warnings.
14775
14776         * alloc.c (resize_string): Fix unlikely crash with big strings.
14777
14778 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14779
14780         * realpath.c (xrealpath):
14781         Don't call getwd().
14782
14783 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14784
14785         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
14786
14787 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
14788
14789         * unexelfsgi.c (unexec): Change the way we decide which segment
14790         should be extended.
14791
14792         Assumption that .bss section should be outside the PT_LOADable
14793         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
14794         it's present) is inside the 'data' segment. This would fail the
14795         test which was used to find a segment to grow and cover new
14796         heap. Instead of this assumption, I created another one - on IRIX
14797         the segment to grow should start below .bss and it's address
14798         should extent above the end of .bss. Once this segment is
14799         identified, it's grown to accommodate the new heap and new
14800         zero-length .bss section is added at the end of .data2.
14801
14802 2000-01-25  Martin Buchholz  <martin@xemacs.org>
14803
14804         * eval.c (Feval): Wrong number of arguments should use original
14805         function, not the indirect_function version of it.
14806
14807 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
14808
14809         * glyphs-x.c (x_button_instantiate): Don't add image if
14810         it is not a pixmap.
14811         (x_locate_pixmap_file): Call Fexpand_file_name when file name
14812         is relative.
14813
14814 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
14815
14816         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
14817         declaration.
14818         (DEFVAR_INT_MAGIC): Ditto.
14819         (DEFVAR_BOOL_MAGIC): Ditto.
14820         * glyphs.h: Reindent backslash.
14821
14822 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14823
14824         * glyphs-widget.c (layout_query_geometry):
14825         (layout_layout): Use correct types for gheight, gwidth.
14826
14827 2000-01-24  Martin Buchholz  <martin@xemacs.org>
14828
14829         * EmacsManager.c (QueryGeometry): Purified.
14830
14831 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14832
14833         * alloc.c (make_float): Make sure entire object is initialized, to
14834         avoid Purify warnings.
14835         (pdump_register_sub): Remove useless assignment.
14836         (pdump): Use xmalloc, not malloc.
14837         (pdump_load): Use xmalloc, not malloc.
14838
14839 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14840
14841         * callproc.c:
14842         * dired-msw.c:
14843         * fileio.c:
14844         * process-nt.c:
14845         * redisplay-msw.c:
14846         * sysdep.c: Removed redundant #include <windows.h>
14847
14848 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14849
14850         * frame.c (delete_frame_internal): Do not delete device when its
14851         implementation so declares.
14852         (delete_frame_internal): Set device selected frame to nil when
14853         last frame goes away.
14854
14855         * device-msw.c (msprinter_device_system_metrics): Implemented.
14856         (mswindows_device_system_metrics): Added 'device-dpi property.
14857
14858         * device.c: (Fdevice_printer_p): Added.
14859         Added 'offset-workspace device metric.
14860
14861         * console.h (device_metrics): Declared DM_offset_workspace.
14862
14863 2000-01-23  Martin Buchholz  <martin@xemacs.org>
14864
14865         * fileio.c (Ffile_truename): Remove pointless and confusing
14866         initialization of elen.
14867
14868         * glyphs-widget.c: Compiler warning fixes.
14869
14870 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
14871
14872         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
14873         instead of a Lisp_Object as argument to make it consistent with
14874         the other LIVE_P macros.
14875         (CHECK_LIVE_PROCESS): New macro.
14876
14877         * process.c: Declare Qprocess_live_p.
14878         (Fprocess_live_p): New function.
14879         (create_process): Use PROCESS_LIVE_P.
14880         (read_process_output): Ditto.
14881         (set_process_filter): Ditto.
14882         (Fdelete_process): Ditto.
14883         (kill_buffer_processes): Ditto
14884         (process_send_signal): Use CHECK_LIVE_PROCESS.
14885         (Fprocess_input_coding_system): Check whether process is still
14886         alive (fix PR#1061).
14887         (Fprocess_output_coding_system): Ditto.
14888         (Fprocess_coding_system): Ditto.
14889         (Fset_process_input_coding_system): Ditto.
14890         (Fset_process_output_coding_system): Ditto.
14891
14892 2000-01-23  Andy Piper  <andy@xemacs.org>
14893
14894         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
14895         layout and widget.
14896
14897         * glyphs.c (mark_image_instance): take into account changed
14898         image_instance format.
14899         (image_instance_equal): ditto.
14900         (image_instance_hash): ditto.
14901
14902         * glyphs-widget.c (widget_instantiate): Incorporate layout
14903         instantiation here. Delay layout of the layout until later.
14904         (layout_instantiate): deleted.
14905         (layout_query_geometry): new function. get the geometry of a
14906         layout.
14907         (layout_layout): layout a layout dynamically.
14908         (image_instantiator_widget): New function - splitting up
14909         image_instantiator_format_create_glyphs_widget for netwinder
14910         compilation.
14911         (image_instantiator_buttons):
14912         (image_instantiator_edit_fields):
14913         (image_instantiator_combo_box):
14914         (image_instantiator_scrollbar):
14915         (image_instantiator_progress_guage):
14916         (image_instantiator_tree_view):
14917         (image_instantiator_tab_control):
14918         (image_instantiator_labels):
14919         (image_instantiator_layout): ditto.
14920         (image_instantiator_format_create_glyphs_widget): Call preceding
14921         functions.
14922
14923 2000-01-22  Martin Buchholz  <martin@xemacs.org>
14924
14925         * process.c (Fset_process_coding_system):
14926         * device-x.c (Fx_keysym_hash_table):
14927         Docstring fixes.
14928
14929         * lstream.c (Lstream_write): Return documented value, not 0.
14930
14931         * fileio.c (directory_file_name):
14932         (Fsubstitute_in_file_name):
14933         (Fsubstitute_insert_file_contents_internal):
14934         (Fwrite_region_internal):
14935         * emacs.c:
14936         * sysdep.c:
14937         * getloadavg.c:
14938         * systty.h:
14939         Remove vestigial APOLLO-conditional code.
14940
14941 2000-01-21  Martin Buchholz  <martin@xemacs.org>
14942
14943         * getpagesize.h: Add guard macros.
14944         * libsst.h: Add guard macros.
14945         * libst.h: Add guard macros.
14946         * line-number.h: Add guard macros.
14947         * ndir.h: Add guard macros.
14948         * sysfloat.h: Add guard macros.
14949         * sysfile.h: Add guard macros.
14950         * sysproc.h: Add guard macros.
14951         * syswait.h: Add guard macros.
14952         * xintrinsic.h: Add guard macros.
14953         * xintrinsicp.h: Add guard macros.
14954         * xmmanager.h: Add guard macros.
14955         * xmmanagerp.h: Add guard macros.
14956         * xmprimitive.h: Add guard macros.
14957         * xmu.h: Add guard macros.
14958         * gpmevent.h: Add copyright statement. Add guard macros.
14959         * miscplay.h: Add guard macros.
14960         * *.h: Use consistent C-standards-approved guard macro names.
14961
14962         * opaque.c (make_opaque): Switch parameter order.
14963         * opaque.h (make_opaque): Switch parameter order.
14964         Update all callers.
14965         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
14966
14967         * config.h.in (type_checking_assert): Added.
14968         (bufpos_checking_assert): Added.
14969
14970 2000-01-21  Martin Buchholz  <martin@xemacs.org>
14971
14972         * alloc.c: Harmless pdump changes.
14973         - Use countof().
14974         - spell alignment correctly.
14975         * sysdep.c: Use countof()
14976
14977 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14978
14979         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
14980         initially_selected_for_input() console method, default to 0.
14981         (semi_canonicalize_console_connection): Try to delegate to
14982         canonicalize_console_connection if no such console method.
14983         (canonicalize_console_connection): Vice versa.
14984         (print_console): Do not print nil connection.
14985
14986         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
14987         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
14988         (XDEVIMPF_FRAMELESS_OK): Added.
14989         (CONSOLE_INHERITS_METHOD): Added.
14990
14991         * console-msw.c (mswindows_canonicalize_console_connection):
14992         Added.
14993         (mswindows_canonicalize_device_connection): Added.
14994
14995         * console-msw.h (struct msprinter_device): Added this struct and
14996         accessor macros.
14997         (mswindows_device): Made fontlist a lisp object.
14998
14999         * device.c (semi_canonicalize_device_connection):  Try to delegate
15000         to canonicalize_device_connection if no such console method.
15001         (canonicalize_device_connection): Vice versa.
15002         (print_device): Do not print nil connection.
15003
15004         * device-msw.c (mswindows_init_device): Call InitCommonControls
15005         when have widgets.
15006         (mswindows_delete_device): Removed fontlist deallocation.
15007         (mswindows_mark_device): Added.
15008
15009         * events.c (event_equal): Added abort() at unreached code.
15010         (event_hash): Ditto.
15011
15012         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
15013         fallback tags of Windows devices.
15014
15015         * general.c (syms_of_general): Initialized Qmsprinter.
15016
15017         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
15018         of fallback tags of Windows devices.
15019
15020         * lisp.h: Declared Qmsprinter.
15021
15022         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
15023         of strings.
15024         (mswindows_list_fonts): Ditto.
15025         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
15026         that it can be used by both mswindows and msprinter devices.
15027         (initialize_font_instance): Added.
15028         (mswindows_initialize_font_instance): Use it.
15029         (msprinter_initialize_font_instance): Added.
15030
15031         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
15032         and implementation flags check.
15033         (redisplay_without_hooks): Changed the call to the above.
15034         (Fredraw_device): Ditto.
15035         (Fredisplay_device): Ditto.
15036
15037         * redisplay-msw.c (get_frame_dc): Implemented.
15038         (get_frame_compdc): Implemented.
15039         (many functions): Use the two functions above to get device
15040         contexts, ether for a window or a printer.
15041
15042 2000-01-21  Olivier Galibert  <galibert@pobox.com>
15043
15044         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
15045         initialization here.
15046         (init_symbols_once_early): Call it.
15047         * emacs.c (main_1): Call it.
15048         * symsinit.h: Declare it.
15049
15050 2000-01-19  Olivier Galibert  <galibert@pobox.com>
15051
15052         * alloc.c: Use a lrecord_header * in the backtrace instead of a
15053         Lisp_Object.
15054         (pdump_backtrace): Ditto.
15055         (pdump_register_object): Ditto.  Cleanup use of the pointers.
15056         (pdump_get_entry): Abort if trying to register a null pointer.
15057         (pdump_dump_data): Cleanup types when relocating.
15058         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
15059         (pdump_dump_rtables): Remove bad casts.
15060         (pdump_load): Cleanup relocation w.r.t union type.  Use a
15061         Lisp_Object instead of a EMACS_INT for the hashtable
15062         reorganization.
15063
15064 2000-01-20  Martin Buchholz  <martin@xemacs.org>
15065
15066         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
15067
15068         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
15069
15070         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
15071
15072         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
15073
15074 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15075
15076         * faces.h (FACE_STRIKETHRU_P): Added.
15077
15078         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
15079         of font variants.
15080
15081         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
15082         (mswindows_set_dc_font): New function, aware of font variants,
15083         separated from mswindows_update_dc.
15084
15085         * objects-msw.h (struct mswindows_font_instance_data): Added
15086         definition.
15087
15088         * objects-msw.c (mswindows_finalize_font_instance): Delete all
15089         cached fonts and the data structure.
15090         (mswindows_initialize_font_instance): Added creation of font data
15091         structure.
15092         (mswindows_print_font_instance): Print at least something.
15093         (mswindows_create_font_variant): Implemented.
15094         (mswindows_get_hfont): Implemented.
15095
15096 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
15097
15098         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
15099         prototyping problem with msvc.
15100
15101         * emacs.c (main_1): added syms_of_gui_mswindows() call
15102
15103         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
15104         syms_of_gui_mswindows() function
15105
15106         * symsinit.h: added the prototype for syms_of_gui_mswindows()
15107
15108 2000-01-18  Martin Buchholz <martin@xemacs.org>
15109
15110         * XEmacs 21.2.27 is released.
15111
15112 2000-01-18  Martin Buchholz  <martin@xemacs.org>
15113
15114         * glyphs-eimage.c (struct tiff_error_struct):
15115         (tiff_error_func):
15116         (tiff_warning_func):
15117         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
15118
15119         * unexmips.c:
15120         * unexhp9k3.c:
15121         * unexfreebsd.c:
15122         * unexec.c: Remove vestigial Lucid C code.
15123         * unexalpha.c:
15124         * unexaix.c:
15125         * termcap.c:
15126         * libsst.c: Ansify.
15127         Remove declarations of errno and strerror().
15128
15129         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
15130
15131         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
15132
15133 2000-01-16  Martin Buchholz  <martin@xemacs.org>
15134
15135         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
15136         Optimize.
15137
15138 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15139
15140         * md5.c:
15141         * file-coding.c:
15142         * file-coding.h:
15143         Change enum eol_type to eol_type_t.
15144
15145 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15146
15147         * gui.c (get_gui_callback): Check cons before accessing car.
15148
15149 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15150
15151         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
15152         (XSETSPECIFIER_TYPE): Ditto.
15153
15154 2000-01-17  Didier Verna  <didier@xemacs.org>
15155
15156         * redisplay.c (generate_fstring_runes): compute string size in
15157         characters, not bytes.
15158
15159 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15160
15161         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
15162
15163 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
15164
15165         * print.c (print_error_message): Call print_prepare().
15166
15167 2000-01-14  Martin Buchholz  <martin@xemacs.org>
15168
15169         * .dbxrc: Renamed from dbxrc.
15170
15171         * events.c (event_to_character):
15172         Use `assert (foo)' instead of `if (!foo) abort()'
15173
15174         * .gdbinit (xtype): Add documentation.
15175         * .gdbinit (check-temacs): New function.
15176         * .gdbinit (check-xemacs): New function.
15177         * dbxrc (check-xemacs): New function.
15178         * dbxrc (check-xemacs): New function.
15179
15180 2000-01-14  Andy Piper  <andy@xemacs.org>
15181
15182         * glyphs-widget.c (widget_query_geometry): Make sure that we
15183         calculate default dimensions correctly.
15184
15185 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15186
15187         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
15188
15189         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
15190         pdump_wire'd variable.
15191
15192         * emacs.c: (main_1): Conditionalized calls to
15193         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
15194
15195 2000-01-13  Martin Buchholz  <martin@xemacs.org>
15196
15197         * window.c (Fset_window_configuration):
15198         * sysdep.c (_start):
15199         * input-method-motif.c (res):
15200         * event-Xt.c (Xt_process_to_emacs_event):
15201         Simple compiler warning fixes.
15202
15203         * bytecode.c (funcall_compiled_function): Use the original
15204         function symbol on the backtrace list in preference to the
15205         compiled_function object in error messages.
15206
15207 2000-01-13  Andy Piper  <andy@xemacs.org>
15208
15209         * glyphs-x.c (update_widget_face): Make sure we update the widget
15210         background as well as foreground.
15211
15212 2000-01-13  Andy Piper  <andy@xemacs.org>
15213
15214         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
15215         fields to subwindow.
15216         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
15217         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
15218         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15219         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
15220
15221         * glyphs-widget.c (check_valid_tab_orientation): new function.
15222         (initialize_widget_image_instance): zero orientation and
15223         justification.
15224         (widget_instantiate): pick up orientation.
15225         (tab_control_query_geometry): return appropriate values for
15226         vertical tabs.
15227
15228         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
15229         appropriate creation flags for left, right and bottom tabs.
15230
15231         * s/cygwin32.h: add tab definitions.
15232
15233 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15234
15235         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
15236         frame upon hiding a subwindow.
15237         (mswindows_button_instantiate): Changed the push button style to
15238         BS_PUSHBUTTON.
15239         (mswindows_button_instantiate): Removed button BS_NOTIFY
15240         style.
15241         (mswindows_button_instantiate): Removed redundant check for
15242         a disabled gui item.
15243         (mswindows_button_instantiate): Made use of WS_TABSTOP
15244         consistent: "operable" controls (edit, button, tree, scroll) have
15245         this style, "display-only" ones (static, progress gauge) do
15246         not. This style is currently ignored by XEmacs though. Also,
15247         removed the WS_EX_CONTROLPARENT style - it is not for children,
15248         it is for their parents!
15249         (mswindows_edit_field_instantiate): Ditto.
15250         (mswindows_progress_gauge_instantiate): Ditto.
15251         (mswindows_tree_view_instantiate): Ditto.
15252         (mswindows_tab_control_instantiate): Ditto.
15253         (mswindows_scrollbar_instantiate): Ditto.
15254         (mswindows_combo_box_instantiate): Ditto.
15255         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
15256         style to the "clip" window.
15257         (mswindows_button_instantiate): Removed compilation warning by
15258         equally typing terms of the ?: operator.
15259
15260 2000-01-12  Didier Verna  <didier@xemacs.org>
15261
15262         * redisplay.c (generate_fstring_runes): new parameter holding the
15263         last modeline-format extent.
15264         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
15265         extent, fill the glyph block with it.
15266         (generate_fstring_runes): handle these parameters.
15267         (generate_formatted_string_db): ditto.
15268
15269         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
15270         glyphs'extents in the modeline.
15271
15272 1999-01-11  Mike Woolley  <mike@bulsara.com>
15273
15274         * ntheap.c: Reduced the reserved heap space from 1Gb down to
15275         256Mb, as a workaround for the non-starting problem many people
15276         have experienced.
15277
15278 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15279
15280         * console-tty.c (Fset_console_tty_output_coding_system):
15281         Force redrawing tty frame.
15282
15283 2000-01-10  Didier Verna  <didier@xemacs.org>
15284
15285         * redisplay.c (generate_fstring_runes): fix size computation bug.
15286
15287 2000-01-09  William M. Perry <wmperry@aventail.com>
15288
15289         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
15290
15291 2000-01-09  Andy Piper  <andy@xemacs.org>
15292
15293         * glyphs-msw.c: index -> i to avoid shadows.
15294         (xbm_create_bitmap_from_data): make static.
15295         (check_valid_string_or_int): deleted.
15296         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
15297
15298         * glyphs-x.c (x_update_subwindow): remove unused args.
15299
15300         * glyphs.c (glyph_image_instance): return the thing. Don't set the
15301         back pointer - this is done in allocate_image_instance.
15302         (query_string_font): return Qnil to make the compiler happy.
15303         (unmap_subwindow): set to ~0 to make the compiler happy.
15304         (glyph_query_geometry): comment out until used.
15305         (glyph_layout): ditto.
15306
15307 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
15308
15309         * insdel.c (signal_after_change): Remove extraneous unbind_to().