update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fget_range_char_table): Fix serious problem when
4         `range' is nil.
5
6 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * chartab.c (char_table_get_db): Use `read_from_c_string'.
9
10 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * lread.c (read_from_c_string): New function.
13
14         * lisp.h (read_from_c_string): New prototype.
15
16 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
17
18         * chartab.c (Fput_char_attribute): Convert char-specs in value of
19         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
20         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
21         for `{<-|->}Oracle-Bones[^*]*'.
22
23 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
24
25         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
26         (Kizu).
27
28 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
29
30         * text-coding.c (Qccs_priority_list): New variable in XEmacs
31         CHISE.
32         (Fmake_coding_system): Support new property `ccs-priority-list' in
33         XEmacs CHISE.
34         (Fcoding_system_property): Likewise.
35         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
36         Vdefault_coded_charset_priority_list in XEmacs CHISE.
37         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
38         XEmacs CHISE.
39         (complex_vars_of_file_coding): Define new coding-system-property
40         `ccs-priority-list' in XEmacs CHISE.
41
42         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
43
44 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
47         changed to normal function.
48         (encode_char_2): Likewise.
49
50         * mule-charset.c (decoding_table_put_char): Copied from
51         char-ucs.h; changed to normal function.
52         (encode_char_2): Likewise.
53
54 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
57         New extern.
58         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
59         (encode_char_2_search_children): New inline function.
60         (encode_char_2): Refer
61         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
62         and use `encode_char_2_search_children'.
63
64 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * mule-charset.c
67         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
68         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
69         (vars_of_mule_charset): Add new variable
70         `display-coded-charset-priority-use-inheritance' and
71         `display-coded-charset-priority-use-hierarchy-order'.
72
73 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
74
75         * char-ucs.h (Q_subsumptive): New extern.
76         (Q_denotational): Likewise.
77         (encode_char_2): Search children specified by `->subsumptive' and
78         `->denotational'.
79
80 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
81
82         * mule-charset.c (complex_vars_of_mule_charset): Modify the
83         X-registry of `ucs-bmp'.
84
85 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * chartab.c (char-variants): Refer `->subsumptive',
88         `->denotational' and `->identical' as same as `->ucs-unified'.
89
90 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
91
92         * chartab.c (Fput_char_attribute): Convert char-specs in value of
93         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
94         links.
95
96 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * text-coding.c: Add EXFUN for `Fregexp_quote'.
99         (decode_add_er_char): Fix problem about infinite loop when a CCS
100         specified in `coded-charset-entity-reference-alist' is not
101         existed.
102
103 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * mule-charset.c (syms_of_mule_charset): Rename
106         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
107
108 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * fns.c (simplify_char_spec): Don't allocate new character-object
111         if specified char_spec does not have any CCS-features.
112
113         * chartab.h: Add EXFUN for Fdefine_char.
114
115         * chartab.c: Delete EXFUN for Fdefine_char.
116
117 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
118
119         * fns.c (simplify_char_spec): Use Fdefine_char instead of
120         Ffind_char for char-spec.
121
122 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * lisp-disunion.h (XCHARVAL): Fix condition about
125         SIZEOF_EMACS_INT.
126
127 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
130         <int> for `code'.
131         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
132         point; use <Emchar> instead of <int> for character-id.
133
134 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
137         (make_char): Likewise.
138         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
139         environment.
140         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
141         instead of <int> as the type of return value; use <Lisp_Object>
142         instead of <Emchar> as the type of argument.
143         (XCHARVAL[macro version]): Cast the result into <Emchar>.
144
145         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
146         syntaxcode> instead of <int>.
147
148 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * chartab.c (put_char_composition): Use DECODE_CHAR to get
151         character corresponding with UCS code point.
152         (Fput_char_attribute): Likewise.
153
154         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
155         character in the UCS decoding-table if the char-id is not equal to
156         the UCS code point.
157
158 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
159
160         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
161         for aliases; write `description'; write
162         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
163         not 0.
164
165 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
166
167         * chartab.c (Fsave_char_attribute_table): Don't use
168         `save_charset_properties'.
169
170         * mule-charset.c (Fsave_charset_properties): Renamed from
171         `save_charset_properties' and changed to Lisp function again;
172         write property `type' as `CCS'; write properties `final-byte' and
173         `mother' if they exists.
174         (syms_of_mule_charset): Revive builtin function
175         `save-charset-properties' when HAVE_LIBCHISE is defined.
176
177 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
180         instead of Vexec_directory.
181         (char_attribute_system_db_file): Likewise.
182
183 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
184
185         * chartab.c (Fsave_char_attribute_table): Use
186         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
187         defined.
188
189         * mule-charset.c (save_charset_properties): Renamed from
190         `Fsave_charset_properties'; changed to non-Lisp function.
191         (syms_of_mule_charset): Abolish builtin function
192         `save-charset-properties'.
193
194 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
195
196         * mule-charset.c (Fsave_charset_properties): New function when
197         HAVE_LIBCHISE is defined.
198         (syms_of_mule_charset): Add new builtin function
199         `save-charset-properties' when HAVE_LIBCHISE is defined.
200
201 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
202
203         * chartab.c (Fput_char_attribute): Convert char-specs in value of
204         `{<-|->}ancient[^*]*' to characters and put reverse links.
205         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
206         for `{<-|->}ancient[^*]*'.
207
208 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * chartab.c (Fput_char_attribute): Convert char-specs in value of
211         `{<-|->}original[^*]*' to characters and put reverse links.
212         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
213         for `{<-|->}original[^*]*'.
214
215 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
216
217         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
218
219 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
220
221         * mule-charset.c (Qsystem_char_id): New variable.
222
223         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
224         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
225
226 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
227
228         * chartab.c (Fput_char_attribute): When processing a reference of
229         a character, put into the end of the reversed reference of each
230         target character.
231
232 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
233
234         * chartab.c (Q_same): Deleted.
235         (Q_same_of): Deleted.
236         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
237         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
238         for `{<-|->}same'.
239         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
240
241 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * chartab.c (Q_vulgar): Deleted.
244         (Q_vulgar_of): Deleted.
245         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
246         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
247         for `{<-|->}vulgar'.
248         (syms_of_chartab): Don't define `{<-|->}vulgar'.
249
250 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * chartab.c (Fput_char_attribute): Convert char-specs in value of
253         `{<-|->}wrong[^*]*' to characters and put reverse links.
254         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
255         for `{<-|->}wrong[^*]*'.
256
257 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * chartab.c (Q_vulgar): New variable.
260         (Q_vulgar_of): New variable.
261         (Fput_char_attribute): Convert char-specs in value of
262         `{->|<-}vulgar' to characters and put reverse links.
263         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
264         for `{->|<-}vulgar'.
265         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
266
267 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
268
269         * text-coding.c (decode_add_er_char): Must to quote prefix string
270         as regexp.
271
272 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * mule-charset.c (put_char_ccs_code_point): Store characters of
275         =ucs whose code_points >= 0xF0000.
276
277 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
280         CHISE.
281         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
282         CHISE.
283         (complex_vars_of_mule_charset): Add new coded-charset
284         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
285         builtin characters over 0xEFFFF.
286
287         * chartab.c (syms_of_chartab): Don't define symbol
288         `system-char-id' in every case.
289
290         * char-ucs.h (Qsystem_char_id): New extern variable.
291         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
292
293 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
294
295         * text-coding.c (char_encode_utf8): Try to use entity-references
296         for U-000F0000 ...  U-0010FFFF.
297
298 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
299
300         * text-coding.c (ER_BUF_SIZE): New macro.
301         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
302         `er_buf'.
303         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
304         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
305
306 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
307
308         * chartab.c (find_char_feature_in_family): New function.
309         (Fchar_feature): Use `find_char_feature_in_family' with
310         `->identical', `<-subsumptive' and `<-denotational'.
311
312 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
313
314         * text-coding.c (char_encode_as_entity_reference): Allow prefix
315         within 8 characters; fix infinite loop.
316
317 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * chartab.c (Q_same): New variable.
320         (Q_same_of): New variable.
321         (Fput_char_attribute): Convert char-specs in value of
322         `{->|<-}same' to characters and put reverse links.
323         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
324         for `{->|<-}same'.
325         (syms_of_chartab): Add new symbols `{->|<-}same'.
326
327 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * chartab.c (Q_component): New variable.
330         (Q_component_of): Likewise.
331         (Fput_char_attribute): Convert char-specs in value of
332         `{->|<-}ideographic-component-forms' to characters and put reverse
333         links.
334         (syms_of_chartab): Add new symbols
335         `{->|<-}ideographic-component-forms'.
336
337 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
338
339         * chartab.c (Q_identical): New variable.
340         (Q_identical_from): New variable.
341         (Fchar_feature): Regard `->identical' as a feature to find
342         ancestors.
343         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
344         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
345         for `{->|<-}identical'.
346         (syms_of_chartab): Add new symbols `{->|<-}identical'.
347
348 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * char-ucs.h (encode_char_2): New inline function.
351         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
352
353 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * chartab.c (Fput_char_attribute): Convert char-specs to
356         characters in value of `ideographic-structure'.
357         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
358         for `{<-|->}simplified(@...)'.
359         (Fdefine_char): Try to use predefined character's id.
360
361 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
362
363         * fns.c (simplify_char_spec): Try to convert builtin chars to
364         defined chars.
365
366 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
367
368         * chartab.c (Fput_char_attribute): Convert char-specs in value of
369         `<-simplified[^*]*' to characters and put reverse links.
370
371 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * chartab.c (Q_subsumptive): Renamed from Q_unified.
374         (Q_subsumptive_from): Renamed from Q_unified_from.
375         (Fchar_feature): Use `Q_subsumptive_from' instead of
376         `Q_unified_from'.
377         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
378         `Q_unified'.
379         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
380         `<-unified' to `<-subsumptive'.
381
382 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
385         inheritance itself; fix typo; stop recursive search if cyclic
386         inheritance is found.
387
388 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
389
390         * chartab.c (Q_denotational): New variable.
391         (Q_denotational_from): New variable.
392         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
393         (put_char_attribute): New function.
394         (Fput_char_attribute): Use `put_char_attribute'; regard
395         `->denotational' and `<-denotational' as same as `->unified' and
396         `<-unified'.
397         (syms_of_chartab): Add new symbols `->denotational' and
398         `<-denotational'.
399
400 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
403         `Fget_char_attribute'.
404         (Fchar_variants): Likewise.
405         (get_char_table): Likewise.
406         (Fchar_feature): New function.
407         (put_char_composition): Use `Fchar_feature' instead of
408         `Fget_char_attribute'.
409         (Fput_char_attribute): Likewise; don't put the target character
410         into its `->unified' value.
411         (syms_of_chartab): Add new builtin function `char-feature'.
412
413 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
416         `Fget_char_attribute'.
417         (char_encode_utf8): Likewise.
418
419         * chartab.h: Add an EXFUN for `Fchar_feature'.
420
421 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
422
423         * chartab.c (Vnext_defined_char_id): New variable.
424         (Fput_char_attribute): Accept characters in `->unified'.
425         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
426         new characters which are not related with builtin char-id ranges.
427         (vars_of_chartab): Add new variable `next-defined-char-id'.
428
429 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
430
431         * chartab.c (Q_unified): New variable.
432         (Q_unified_from): New variable.
433         (Fput_char_attribute): Add code for `->unified'.
434         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
435         XEmacs CHISE.
436
437 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * mule-charset.c (decode_ccs_conversion): New function.
440         (decode_defined_char): Use `decode_ccs_conversion'.
441         (decode_builtin_char): Likewise.
442
443 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
444
445         * char-ucs.h: Change some charset-ids of private coded-charsets.
446
447 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
448
449         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
450         (char_encode_as_entity_reference): Likewise.
451         (decode_coding_big5): Modify for `decode_defined_char' and
452         `DECODE_CHAR'.
453         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
454         avoid compiler warning.
455         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
456
457         * mule-charset.c (decode_defined_char): Add new argument
458         `without_inheritance'.
459         (Fdecode_char): Add new optional argument `without_inheritance'.
460         (Fdecode_builtin_char): Modify for `Fdecode_char'.
461
462         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
463         (simplify_char_spec): Likewise.
464
465         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
466         setting.
467
468         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
469         (map_char_table): Likewise.
470         (Fdefine_char): Use `Fdecode_char' without inheritance.
471         (Ffind_char): Modify for `Fdecode_char'.
472
473         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
474
475         * char-ucs.h (decode_defined_char): Add new argument
476         `without_inheritance'.
477         (DECODE_CHAR): Likewise.
478         (MAKE_CHAR): Modify for `DECODE_CHAR'.
479
480 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
481
482         * chartab.c (Vchise_system_db_directory): New variable.
483         (vars_of_chartab): Add new variable `chise-system-db-directory'.
484
485 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
486
487         * chartab.c: EXFUN `Fmount_char_attribute_table'.
488         (print_chartab_range): Don't define when `UTF2000' is defined.
489         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
490         `CHISE_DS_open'.
491
492 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
495         and optional argument `rehash' is specified, call
496         `open_chise_data_source_maybe' before
497         `chise_ds_foreach_char_feature_name' is called.
498
499 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * chartab.c (char_attribute_list_reset_map_func): New function
502         when HAVE_LIBCHISE is defined.
503         (Fchar_attribute_list): Add new optional argument `rehash' when
504         HAVE_LIBCHISE is defined.
505         (open_chise_data_source_maybe): Use "chise-db" instead of
506         "char-db".
507         (char_attribute_system_db_file): Likewise.
508         (Fload_char_attribute_table): Use
509         `chise_feature_foreach_char_with_value' instead of
510         `chise_char_feature_value_iterate'.
511
512 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
513
514         * chartab.c (Vchise_db_directory): New variable.
515         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
516
517 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
520         instead of HAVE_CHISE to specify using with libchise.
521
522         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
523
524         * chartab.h: Don't use HAVE_CHISE_CLIENT.
525
526         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
527         defined or HAVE_LIBCHISE_LIBCHISE is defined.
528         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
529         is defined.
530         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
531         HAVE_CHISE to specify using with libchise.
532         (syms_of_chartab): Don't define symbol `system-char-id' when
533         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
534
535 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
536
537         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
538         specify CHISE DB support.
539         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
540         of `char_attribute_system_db_file' to check feature DB file.
541
542         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
543         HAVE_CHISE_CLIENT to specify CHISE DB support.
544
545         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
546         specify CHISE DB support.
547         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
548         not defined.
549         (Freset_char_attribute_table): Use `chise_feature_setup_db'
550         instead of `char_attribute_system_db_file' to check feature DB
551         file.
552
553 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
556         `HAVE_CHISE_CLIENT'.
557
558 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
559
560         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
561         (Fsave_charset_mapping_table): Don't use
562         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
563
564         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
565         (HAVE_LIBCHISE): New macro.
566
567         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
568
569         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
570         (Fsave_char_attribute_table): Don't use
571         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
572
573 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
574
575         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
576         defined.
577         (save_uint16_byte_table): Likewise.
578         (save_byte_table): Likewise.
579         (char_table_get_db): Use `chise_ds_load_char_feature_value'
580         instead of `chise_char_load_feature_value'.
581         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
582
583 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
584
585         * chartab.h (struct Lisp_Char_Table): Delete member
586         `feature_table' if CHISE is defined.
587
588         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
589         (Fcopy_char_table): Likewise.
590         (char_table_open_db_maybe): Likewise.
591         (char_table_close_db_maybe): Likewise.
592         (char_table_get_db): Likewise.
593         (Fmount_char_attribute_table): Likewise.
594         (Fload_char_attribute_table): Likewise.
595
596 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
597
598         * mule-charset.c (load_char_decoding_entry_maybe): Use
599         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
600         `chise_ccs_decode'.
601
602 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
603
604         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
605         instead of `chise_open_data_source'.
606         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
607         `chise_ds_close'.
608
609 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
610
611         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
612         instead of `chise_ds_open_feature_table'.
613         (char_table_close_db_maybe): Don't use `chise_ft_close'.
614
615 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
616
617         * mule-charset.c (Fsave_charset_mapping_table): Use
618         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
619         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
620         `chise_ccs_sync' instead of `chise_ccst_close'.
621         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
622
623         * chartab.c (open_chise_data_source_maybe): Modify for
624         `chise_open_data_source'.
625         (char_table_open_db_maybe): Modify for
626         `chise_ds_open_feature_table'.
627
628 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
629
630         * mule-charset.c (load_char_decoding_entry_maybe): Use
631         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
632         `chise_ccst_close'.
633
634 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
635
636         * mule-charset.c (Fsave_charset_mapping_table): Use
637         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
638         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
639         `chise_dt_put_char' and `chise_dt_close'.
640         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
641         `chise_ccs_decode' and `chise_ccst_close' instead of
642         `chise_ds_open_decoding_table', `chise_dt_get_char' and
643         `chise_dt_close'.
644
645         * chartab.c (char_table_get_db): Use
646         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
647         (load_char_attribute_table_map_func): Modify for
648         `chise_char_feature_value_iterate'.
649         (Fload_char_attribute_table): Use
650         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
651
652 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
653
654         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
655
656 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
657
658         * chartab.c (put_char_table): Modify for inherited coded-charsets
659         in XEmacs CHISE.
660
661 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
662
663         * chartab.c (Fput_char_table_map_function): Fixed.
664         (word_boundary_p): Don't check charset in XEmacs CHISE.
665
666 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
667
668         * mule-charset.c (Fsave_charset_mapping_table): Use
669         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
670         instead of `chise_open_decoding_table'; refer
671         `default_chise_data_source'; use `chise_dt_close' instead of
672         `chise_close_decoding_table'.
673         (load_char_decoding_entry_maybe): Likewise.
674
675         * chartab.c (default_chise_data_source): New variable when `CHISE'
676         is defined.
677         (Fcopy_char_table): `ct->ds' is deleted.
678         (open_chise_data_source_maybe): New function.
679         (Fclose_char_data_source): New function.
680         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
681         use `chise_ds_open_feature_table' instead of
682         `chise_open_feature_table'.
683         (char_table_close_db_maybe): Use `chise_ft_close' instead of
684         `chise_close_feature_table'; `cit->ds' is deleted.
685         (syms_of_chartab): Add new builtin function
686         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
687
688         * chartab.h (default_chise_data_source): New extern variable.
689         (open_chise_data_source_maybe): New prototype.
690         (struct Lisp_Char_Table): Delete `ds'.
691
692 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
693
694         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
695         `CHISE' is defined.
696
697 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
698
699         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
700         not defined; add code for non-libchise setting.
701         (char_table_close_db_maybe): Likewise.
702         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
703         defined.
704         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
705         even if `CHISE' is not defined.
706         (Freset_char_attribute_table): Likewise.
707         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
708         `char_table_close_db_maybe' even if `CHISE' is not defined; use
709         `char_table_get_db'.
710         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
711         `char_table_close_db_maybe' even if `CHISE' is not defined.
712
713 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
714
715         * chartab.c (char_table_open_db_maybe): New function.
716         (char_table_close_db_maybe): New function.
717         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
718         (Freset_char_attribute_table): Likewise.
719         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
720         `char_table_close_db_maybe'.
721         (Fload_char_attribute_table): Likewise.
722
723 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
724
725         * chartab.c: Don't include <chise.h> because it is included in
726         chartab.h.
727         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
728         defined.
729         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
730         `CHISE' is defined.
731         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
732         `CHISE' is defined.
733         (Fclose_char_attribute_table): Close `ct->feature_table' and
734         `ct->ds' when `CHISE' is defined.
735         (Freset_char_attribute_table): Likewise.
736         (load_char_attribute_maybe): Use `cit->ds' and
737         `cit->feature_table' when `CHISE' is defined.
738         (Fload_char_attribute_table): Likewise.
739
740         * chartab.h: Include <chise.h> when `CHISE' is defined.
741         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
742         when `CHISE' is defined.
743
744 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
745
746         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
747         is defined.
748         (char_table_description): Likewise.
749         (Fmake_char_table): Likewise.
750         (Fcopy_char_table): Likewise.
751         (Fmount_char_attribute_table): Likewise.
752         (Fclose_char_attribute_table): Likewise.
753         (Freset_char_attribute_table): Likewise.
754         (load_char_attribute_maybe): Likewise.
755         (Fload_char_attribute_table): Likewise.
756
757         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
758         defined.
759
760 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
761
762         * chartab.c (load_char_attribute_table_map_func): New function
763         when CHISE is defined.
764         (Qload_char_attribute_table_map_function): Don't define when CHISE
765         is defined.
766         (Fload_char_attribute_table_map_function): Likewise.
767         (Fload_char_attribute_table): Use libchise when `CHISE' is
768         defined.
769         (syms_of_chartab): Don't define
770         `load-char-attribute-table-map-function' when CHISE is defined.
771
772 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
773
774         * chartab.c: Include <chise.h> when `CHISE' is defined.
775         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
776
777 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
778
779         * mule-charset.c (charset_code_point): Fix problem when searching
780         in mother CCS fails with `defined_only' mode.
781
782 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
783
784         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
785         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
786         (put_char_composition): Likewise.
787         (Fput_char_attribute): Likewise.
788         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
789
790 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
791
792         * chartab.c (Q_ucs): Deleted.
793         (Fput_char_attribute): Don't refer `->ucs'.
794         (Fdefine_char): Likewise.
795         (Ffind_char): Likewise.
796         (syms_of_chartab): Delete `->ucs'.
797
798 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
799
800         * mule-charset.c (Qmap_cns11643_2): Renamed from
801         `Qchinese_cns11643_2'.
802         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
803         `chinese-cns11643-2'.
804         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
805         `=cns11643-2'.
806
807 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
808
809         * mule-charset.c (Qmap_cns11643_1): Renamed from
810         `Qchinese_cns11643_1'.
811         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
812         `chinese-cns11643-1'.
813         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
814         `=cns11643-1'.
815
816 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
817
818         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
819         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
820         `chinese-gb12345'.
821         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
822         `=gb12345'.
823
824 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
825
826         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
827         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
828         `chinese-gb2312'.
829         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
830         `=gb2312'.
831
832 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
833
834         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
835         (syms_of_mule_charset): Add new symbol `=big5' instead of
836         `chinese-big5'.
837         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
838
839 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
840
841         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
842         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
843         `korean-ksc5601'.
844         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
845         `=ks-x1001'.
846
847 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
848
849         * mule-charset.c (Qmap_jis_x0212): Renamed from
850         `Qjapanese_jisx0212'.
851         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
852         `japanese-jisx0212'.
853         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
854         `=jis-x0212'.
855
856 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
857
858         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
859         `Qjapanese_jisx0208'.
860         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
861         of `japanese-jisx0208'.
862         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
863         `=jis-x0208-1983'.
864
865 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
868         `Qjapanese_jisx0208_1978'.
869         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
870         of `japanese-jisx0208-1978'.
871         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
872         `=jis-x0208-1978'.
873
874 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
875
876         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
877         only for XEmacs CHISE.
878
879 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
880
881         * char-ucs.h: Compact non-ISO-IR charset-ids.
882         (LEADING_BYTE_UCS): Changed to -177.
883         (LEADING_BYTE_CONTROL_1): Changed to -77.
884         (LEADING_BYTE_UCS_BMP): Changed to -176.
885         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
886
887 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
888
889         * mule-charset.c (Qiso_ir): New variable.
890         (Fmake_charset): Recognise new property `iso-ir'.
891         (syms_of_mule_charset): Add new symbol `iso-ir'.
892
893 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
894
895         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
896         n to -n; charset-id of non ISO-IR sets are changed to positive
897         numbers.
898
899 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
900
901         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
902         for &MCS-XXXXXXXX; values.
903
904 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
905
906         * mule.c (Vxemacs_chise_version): Renamed from
907         `Vutf_2000_version'.
908         (vars_of_mule): Add new variable `xemacs-chise-version'; define
909         `utf-2000-version' as an alias for `xemacs-chise-version'.
910
911 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
912
913         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
914         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
915         defined.
916
917         * config.h.in (CHISE): New macro.
918
919 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
920
921         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
922         of `ucs'.
923         (Qmap_ucs): New variable.
924         (syms_of_mule_charset): Add new symbol `=ucs'.
925         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
926
927         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
928         (simplify_char_spec): Likewise.
929
930         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
931
932         * char-ucs.h (Qmap_ucs): New extern variable.
933
934 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
935
936         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
937         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
938         don't define it when UTF2000 is not defined.
939         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
940         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
941         when UTF2000 is not defined.
942         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
943         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
944
945 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
946
947         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
948
949         * mule-charset.c (Vcharset_ucs_gb): Deleted.
950         (Qucs_gb): Deleted.
951         (syms_of_mule_charset): Delete `ucs-gb'.
952         (complex_vars_of_mule_charset): Likewise.
953
954 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
955
956         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
957
958         * mule-charset.c (Vcharset_ucs_cns): Deleted.
959         (Qucs_cns): Deleted.
960         (syms_of_mule_charset): Delete `ucs-cns'.
961         (complex_vars_of_mule_charset): Likewise.
962
963 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
964
965         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
966
967         * mule-charset.c (Vcharset_ucs_jis): Deleted.
968         (Qucs_jis): Deleted.
969         (syms_of_mule_charset): Delete `ucs-jis'.
970         (complex_vars_of_mule_charset): Likewise.
971
972 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
973
974         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
975
976         * mule-charset.c (Vcharset_ucs_ks): Deleted.
977         (Qucs_ks): Deleted.
978         (syms_of_mule_charset): Delete `ucs-ks'.
979         (complex_vars_of_mule_charset): Likewise.
980
981 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
982
983         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
984         (Qideograph_daikanwa_2): Deleted.
985         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
986         (complex_vars_of_mule_charset): Likewise.
987
988         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
989         (LEADING_BYTE_DAIKANWA_1): Deleted.
990         (LEADING_BYTE_DAIKANWA_2): Deleted.
991         (MIN_CHAR_DAIKANWA): Deleted.
992         (MAX_CHAR_DAIKANWA): Deleted.
993
994 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
995
996         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
997         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
998         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
999
1000         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1001         (Vcharset_ideograph_daikanwa): Deleted.
1002         (Qideograph_hanziku_{1..12}): Deleted.
1003         (Qideograph_daikanwa): Deleted.
1004         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1005         Vcharset_ideograph_daikanwa.
1006         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1007         `ideograph-hanziku-{1..12}'.
1008         (complex_vars_of_mule_charset): Likewise.
1009
1010 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1011
1012         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1013
1014         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1015         (Qideograph_gt_pj_{1..11}): Deleted.
1016         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1017         (complex_vars_of_mule_charset): Likewise.
1018
1019 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1020
1021         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1022         (Vcharset_ideograph_gt): Deleted.
1023         (Qucs_big5): Deleted.
1024         (Qideograph_gt): Deleted.
1025         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1026         `ideograph-gt'.
1027         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1028         and `ideograph-gt'.
1029
1030         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1031         (LEADING_BYTE_GT): Deleted.
1032         (MIN_CHAR_GT): Deleted.
1033         (MAX_CHAR_GT): Deleted.
1034
1035 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1036
1037         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1038
1039 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1040
1041         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1042         (save_uint16_byte_table): Likewise.
1043         (save_byte_table): Likewise; convert values by it.
1044         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1045         for `ideographic-structure'.
1046         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1047         as the filter for `ideographic-structure'.
1048
1049 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1050
1051         * chartab.c (put_char_composition): New function.
1052         (Fput_char_attribute): Use `put_char_composition'; use
1053         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1054
1055         * fns.c (simplify_char_spec): New function.
1056         (char_ref_simplify_spec): New function.
1057         (Fchar_refs_simplify_char_specs): New function.
1058         (syms_of_fns): Add new builtin function
1059         `char-refs-simplify-char-specs'.
1060
1061 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1062
1063         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1064         (Qideograph_cbeta): Deleted.
1065         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1066         (complex_vars_of_mule_charset): Likewise.
1067
1068         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1069         (MIN_CHAR_CBETA): Comment out.
1070         (MAX_CHAR_CBETA): Likewise.
1071
1072 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1073
1074         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1075         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1076         CHISE client feature.
1077
1078 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1079
1080         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1081
1082 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1083
1084         * mule-charset.c (charset_lookup_description_1): Use
1085         `NUM_LEADING_BYTES' in UTF-2000.
1086
1087 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1088
1089         * char-ucs.h (GC_CHARSETP): Deleted.
1090
1091 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * char-ucs.h (MAX_CHAR_GT): Updated.
1094
1095 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1096
1097         * text-coding.c: Sync with XEmacs 21.4.10.
1098
1099 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1100
1101         * mule-charset.c (Vcharset_china3_jef): Deleted.
1102         (Qchina3_jef): Deleted.
1103         (syms_of_mule_charset): Don't define `china3-jef'.
1104         (complex_vars_of_mule_charset): Likewise.
1105
1106         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1107         (MIN_CHAR_CHINA3_JEF): Comment out.
1108         (MAX_CHAR_CHINA3_JEF): Comment out.
1109
1110 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1111
1112         * mule-charset.c (Vcharset_ucs_gb): New variable.
1113         (Qucs_gb): New variable.
1114         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1115         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1116
1117         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1118
1119 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1120
1121         * mule-charset.c (charset_code_point): if a coded-charset has a
1122         final-byte, don't inherit the builtin range of the mother CCS.
1123
1124 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1125
1126         * mule-charset.c (charset_code_point): Fix problem about
1127         inheritance.
1128
1129 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1130
1131         * mule-charset.c (decode_builtin_char): Reorganized.
1132
1133 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1134
1135         * text-coding.c (char_encode_as_entity_reference): Modify for
1136         `charset_code_point'.
1137         (char_encode_shift_jis): Likewise.
1138         (char_encode_big5): Likewise.
1139         (char_encode_utf8): Likewise.
1140         (char_encode_iso2022): Likewise.
1141
1142         * mule-charset.c (charset_code_point): Add new argument
1143         `defined_only'.
1144         (Fencode_char): Add new optional argument `defined_only'.
1145
1146         * chartab.c (put_char_table): Modify for `charset_code_point'.
1147
1148         * char-ucs.h (charset_code_point): Add new argument
1149         `defined_only'.
1150         (encode_char_1): Modify for `charset_code_point'.
1151
1152 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153
1154         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1155         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1156
1157 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1158
1159         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1160         (Qjis_x0208): Likewise.
1161         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1162         XCHARSET_FINAL(charset).
1163         (charset_code_point): Modify condition for final-byte based
1164         builtin-chars.
1165         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1166         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1167         in UTF-2000; specify `=jis-x0208' as the mother of
1168         `japanese-jisx0208-1978', `japanese-jisx0208' and
1169         `japanese-jisx0208-1990' in UTF-2000.
1170
1171 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1172
1173         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1174
1175 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1176
1177         * text-coding.c (decode_coding_utf16): Support UTF-16.
1178         (char_encode_utf16): Fixed.
1179
1180 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1181
1182         * text-coding.c (Qutf16): New variable in MULE.
1183         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1184         (Fcoding_system_type): Add `utf-16' in MULE.
1185         (struct detection_state): Add a structure for utf16 in MULE.
1186         (detect_coding_type): Setup st->utf16.mask in MULE.
1187         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1188         MULE.
1189         (reset_encoding_stream): Use `char_encode_utf16' and
1190         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1191         (detect_coding_utf16): New function [incomplete].
1192         (decode_coding_utf16): New function [support only UCS-2].
1193         (char_encode_utf16): New function.
1194         (char_finish_utf16): New function.
1195         (syms_of_file_coding): Add new symbol `utf-16'; setup
1196         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1197
1198         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1199         UTF-2000.
1200         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1201         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1202
1203 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1204
1205         * chartab.c (put_char_table): When a charset is specified as a
1206         range in UTF-2000, don't support builtin characters.
1207
1208 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1209
1210         * mule-charset.c (decode_defined_char): Don't refer external
1211         database if Qunbound or Qnil are found.
1212         (Fsave_charset_mapping_table): Don't define it if
1213         HAVE_CHISE_CLIENT is not defined.
1214         (Freset_charset_mapping_table): New function.
1215         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1216         found in external database.
1217         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1218         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1219         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1220
1221 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1222
1223         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1224         not.
1225
1226 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1227
1228         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1229         Q_lowercase, Q_uppercase in UTF-2000.
1230
1231         * chartab.c (get_char_table): Add special code for the standard
1232         case table to use character attribute `->downcase' and
1233         `->uppercase' for case operations in UTF-2000.
1234
1235         * casetab.c (Qflippedcase): New variable in UTF-2000.
1236         (Q_lowercase): Likewise.
1237         (Q_uppercase): Likewise.
1238         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1239         and `->uppercase' in UTF-2000.
1240         (complex_vars_of_casetab): Assign attribute name `downcase' to
1241         downcase and CANON table of Vstandard_case_table in UTF-2000;
1242         assign attribute name `flippedcase' to upcase and EQV table of
1243         Vstandard_case_table in UTF-2000.
1244
1245 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1246
1247         * text-coding.c (decode_add_er_char): Support isolated-chars.
1248         (char_encode_as_entity_reference): Likewise.
1249
1250 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1251
1252         * emacs.c (Vutf_2000_lisp_directory): New variable.
1253         (Vconfigure_utf_2000_lisp_directory): Likewise.
1254         (complex_vars_of_emacs): Add new variable
1255         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1256
1257 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1258
1259         * char-ucs.h (DECODE_CHAR): Delete special code for
1260         `chinese-big5-1' and `chinese-big5-2'.
1261
1262         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1263         (Qbig5_2): Likewise.
1264         (decode_defined_char): Support CONVERSION_BIG5_1 and
1265         CONVERSION_BIG5_2.
1266         (decode_builtin_char): Likewise.
1267         (charset_code_point): Likewise.
1268         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1269         'conversion in UTF-2000.
1270         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1271         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1272         `chinese-big5-2' as children of `chinese-big5'.
1273
1274         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1275         (CONVERSION_BIG5_2): New macro.
1276
1277 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1278
1279         * text-coding.c (char_encode_big5): Support entity-reference.
1280
1281 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1282
1283         * text-coding.c (char_encode_as_entity_reference): New function.
1284         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1285
1286 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1287
1288         * text-coding.c (decode_coding_big5): Support entity-reference
1289         decoding feature.
1290
1291 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1292
1293         * text-coding.c (allocate_coding_system): Initialize initial
1294         charsets for CODESYS_UTF8.
1295         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1296         charset-g2 for CODESYS_UTF8.
1297         (decode_coding_utf8): Use charset-g0.
1298         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1299         to force variants to map to UCS.
1300
1301 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1302
1303         * text-coding.c (Qutf_8_mcs): New variable.
1304         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1305         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1306         instead of `utf-8' in UTF-2000.
1307
1308 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1309
1310         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1311         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1312         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1313         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1314         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1315         CONVERSION_96x96x96x96 are introduced.
1316         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1317         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1318         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1319
1320         * char-ucs.h (CONVERSION_94): New macro.
1321         (CONVERSION_96): New macro.
1322         (CONVERSION_94x94): New macro.
1323         (CONVERSION_96x96): New macro.
1324         (CONVERSION_94x94x94): New macro.
1325         (CONVERSION_96x96x96): New macro.
1326         (CONVERSION_94x94x94x60): New macro.
1327         (CONVERSION_94x94x94x94): New macro.
1328         (CONVERSION_96x96x96x96): New macro.
1329
1330 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1331
1332         * chartab.c (Vcharacter_variant_table): Deleted.
1333         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1334         of `Vcharacter_variant_table'.
1335         (Fput_char_attribute): Likewise.
1336         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1337         (complex_vars_of_chartab): Likewise.
1338
1339 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1340
1341         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1342
1343         * fns.c (Qideographic_structure): New variable.
1344         (Qkeyword_char): New variable.
1345         (ids_format_unit): New function.
1346         (Fideographic_structure_to_ids): New function.
1347         (syms_of_fns): Add new symbols `ideographic-structure' and
1348         `:char'; add new builtin function `ideographic-structure-to-ids'.
1349
1350         * data.c (Fchar_ref_p): New function.
1351         (syms_of_data): Add new builtin function `char-ref-p'.
1352
1353         * chartab.h: Add an EXFUN for `Ffind_char'.
1354
1355 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1356
1357         * text-coding.c (Vcharacter_composition_table): Deleted.
1358         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1359         in every UTF-2000.
1360
1361         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1362         UTF-2000.
1363         (Vcharacter_composition_table): Deleted.
1364         (Fget_composite_char): Use the implementation for external-DB
1365         support in every UTF-2000.
1366         (Fput_char_attribute): Likewise.
1367         (char_attribute_system_db_file): Don't define if external-DB
1368         feature is not available.
1369         (Fsave_char_attribute_table): Likewise.
1370         (Fmount_char_attribute_table): Likewise.
1371         (Fclose_char_attribute_table): Likewise.
1372         (Freset_char_attribute_table): Likewise.
1373         (Fload_char_attribute_table): Likewise.
1374         (syms_of_chartab): Don't define `save-char-attribute-table',
1375         `mount-char-attribute-table', `reset-char-attribute-table',
1376         `close-char-attribute-table' and `load-char-attribute-table' if
1377         external-DB feature is not available.
1378         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1379
1380 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1381
1382         * text-coding.c (Qcomposition): Add extern if external-DB feature
1383         is supported.
1384         (Vcharacter_composition_table): Don't add extern if external-DB
1385         feature is supported.
1386         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1387         character composition rule if external-DB feature is supported.
1388
1389         * chartab.c (Vcharacter_composition_table): Don't define if
1390         external-DB feature is supported.
1391         (Qcomposition): New variable.
1392         (Fget_composite_char): New implementation for external-DB support.
1393         (Fput_char_attribute): Use `composition' property of each
1394         character instead of `Vcharacter_composition_table' to store
1395         character-composition rules if external-DB feature is supported.
1396         (syms_of_chartab): Add new symbol `composition'.
1397         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1398         external-DB feature is supported.
1399
1400 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1401
1402         * chartab.c (Vchar_db_stingy_mode): New variable.
1403         (load_char_attribute_maybe): Close database if
1404         Vchar_db_stingy_mode is not NIL.
1405         (Fload_char_attribute_table_map_function): Use
1406         `get_char_id_table_0' instead of `get_char_id_table'.
1407         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1408
1409         * chartab.h (get_char_id_table_0): New inline function.
1410         (get_char_id_table): Use `get_char_id_table_0'.
1411
1412 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1413
1414         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1415         and `COMPOSE_ADD_CHAR'.
1416         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1417
1418 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1419
1420         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1421         instead of `DECODE_ADD_UCS_CHAR'.
1422         (COMPOSE_ADD_CHAR): Likewise.
1423
1424 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1425
1426         * text-coding.c (decode_flush_er_chars): New inline function.
1427         (decode_add_er_char): New function.
1428         (decode_coding_utf8): Use `decode_flush_er_chars' and
1429         `decode_add_er_char'.
1430
1431 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1432
1433         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1434         done before `decode_output_utf8_partial_char'.
1435
1436         * mule-charset.c (complex_vars_of_mule_charset): Specify
1437         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1438         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1439
1440 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1441
1442         * mule-charset.c (decode_defined_char): New function; search
1443         mother.
1444         (decode_builtin_char): Don't search mother if
1445         XCHARSET_MAX_CODE(charset) == 0.
1446         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1447         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1448         (Fdecode_char): Use `decode_defined_char' instead of
1449         `DECODE_DEFINED_CHAR'.
1450         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1451         mother of `Vcharset_ucs_jis'.
1452
1453         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1454         instead of `DECODE_DEFINED_CHAR'.
1455
1456         * char-ucs.h (decode_defined_char): Renamed from
1457         `DECODE_DEFINED_CHAR'; changed to normal function.
1458         (DECODE_CHAR): Use `decode_defined_char' instead of
1459         `DECODE_DEFINED_CHAR'.
1460
1461         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1462
1463 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1464
1465         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1466
1467         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1468         variable.
1469         (Quse_entity_reference): New variable.
1470         (Qd): New variable.
1471         (Qx): New variable.
1472         (QX): New variable.
1473         (coding_system_description): Add description for
1474         `ccs_priority_list'.
1475         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1476         (allocate_coding_system): Initialize `ccs_priority_list' in
1477         UTF-2000.
1478         (Fmake_coding_system): Add description about
1479         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1480         (codesys).
1481         (Fcoding_system_property): Accept `disable-composition' and
1482         `use-entity-reference' in UTF-2000.
1483         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1484         in UTF-2000.
1485         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1486         (decode_coding_utf8): Decode entity-reference if
1487         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1488         (char_encode_utf8): Encode non-Unicode characters as
1489         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1490         (str->codesys).
1491         (syms_of_file_coding): Add new symbols `use-entity-reference',
1492         `d', `x', `X'.
1493         (vars_of_file_coding): Add new variable
1494         `coded-charset-entity-reference-alist'.
1495         (complex_vars_of_file_coding): Declare `disable-composition' and
1496         `use-entity-reference' to be coding-system-properties in UTF-2000.
1497
1498         * file-coding.h (struct Lisp_Coding_System): Add new member
1499         `use_entity_reference' and `ccs_priority_list'.
1500         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1501         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1502         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1503
1504 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1505
1506         * chartab.c (save_uint8_byte_table): Don't clear the table.
1507         (save_uint16_byte_table): Likewise.
1508         (save_byte_table): Likewise.
1509         (Fmount_char_attribute_table): New function.
1510         (syms_of_chartab): Add new builtin function
1511         `mount-char-attribute-table'.
1512
1513 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514
1515         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1516         "w+" mode.
1517         (load_char_decoding_entry_maybe): Open database as read-only mode.
1518
1519         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1520         open database as "w+" mode.
1521         (load_char_attribute_maybe): Open database as read-only mode.
1522         (Fload_char_attribute_table): Likewise.
1523
1524 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1525
1526         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1527         (char_table_description): Delete member `db_file'.
1528         (Fmake_char_table): Don't refer `ct->db_file'.
1529         (Fcopy_char_table): Likewise.
1530         (Fsave_char_attribute_table): Likewise.
1531         (Fclose_char_attribute_table): Likewise.
1532         (Freset_char_attribute_table): Likewise.
1533         (load_char_attribute_maybe): Likewise.
1534         (Fload_char_attribute_table): Likewise.
1535
1536         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1537
1538 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1541         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1542         `ct->db' is living.
1543         (load_char_attribute_maybe): Likewise.
1544         (Fload_char_attribute_table): Likewise.
1545
1546 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1547
1548         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1549         `ct->db_file' unconditionally.
1550
1551 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1552
1553         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1554         UTF-2000.
1555         (char_table_description): Add description for `db_file' and `db'
1556         in UTF-2000.
1557         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1558         UTF-2000.
1559         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1560         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1561         (Fclose_char_attribute_table): New function.
1562         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1563         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1564         and `cit->db'.
1565         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1566         (syms_of_chartab): Add new builtin function
1567         `Fclose_char_attribute_table'.
1568
1569 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1570
1571         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1572         `db' in UTF-2000.
1573         (load_char_attribute_maybe): Change interface.
1574         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1575
1576 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1577
1578         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1579
1580 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1581
1582         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1583         instead of `DECODE_CHAR' for mother; don't use special code for
1584         chinese-big5 to use code space of chinese-big5-1 and
1585         chinese-big5-2.
1586         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1587         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1588
1589         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1590         (MAX_CHAR_BIG5_CDP): Revival.
1591
1592 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1593
1594         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1595         the XLFD registry-encoding name of `chinese-big5'.
1596
1597 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1598
1599         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1600         (Qchinese_big5_cdp): Deleted.
1601         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1602         (complex_vars_of_mule_charset): Delete coded-charset
1603         `chinese-big5-cdp'.
1604
1605         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1606         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1607         `CHARSET_ID_OFFSET - n' for private CCS.
1608         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1609         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1610         of `MIN_LEADING_BYTE'.
1611         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1612         `(CHARSET_ID_OFFSET - 97)'.
1613         (MIN_CHAR_BIG5_CDP): Deleted.
1614         (MAX_CHAR_BIG5_CDP): Deleted.
1615
1616 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1617
1618         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1619
1620 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1621
1622         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1623         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1624         chartab.c].
1625
1626         * chartab.c (Vutf_2000_version): Moved to mule.c.
1627         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1628
1629 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1630
1631         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1632         when HAVE_CHISE_CLIENT is not defined.
1633
1634         * mule.c (vars_of_mule): Provide feature `chise' when
1635         HAVE_CHISE_CLIENT is defined.
1636
1637 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1638
1639         * config.h.in (UTF2000): Add comment.
1640         (HAVE_CHISE_CLIENT): New macro.
1641
1642 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1643
1644         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1645         CONSP.
1646         (Fput_char_attribute): Likewise.
1647         (char_attribute_system_db_file): Encode file-name of attribute.
1648         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1649         the initial value.
1650
1651 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1652
1653         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1654         (Fsave_charset_mapping_table): Use
1655         `char_attribute_system_db_file'.
1656         (load_char_decoding_entry_maybe): Likewise.
1657
1658         * chartab.h (Qsystem_char_id): New external variable.
1659         (char_attribute_system_db_file): New prototype.
1660
1661         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1662         (char_attribute_system_db_file): New function.
1663         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1664         (Freset_char_attribute_table): Likewise.
1665         (load_char_attribute_maybe): Likewise.
1666         (Fload_char_attribute_table): Likewise.
1667         (syms_of_chartab): Add new symbol `system-char-id'.
1668
1669 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1670
1671         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1672         `XCHARSET_GRAPHIC(ccs)'.
1673
1674 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1675
1676         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1677
1678 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1679
1680         * chartab.c (Q_ucs_variants): New variable.
1681         (syms_of_chartab): Add new symbol `->ucs-variants'.
1682         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1683         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1684         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1685
1686         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1687
1688         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1689         `HAVE_DATABASE' is defined.
1690         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1691         `HAVE_DATABASE' is defined.
1692
1693 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1694
1695         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1696         attribute-table.
1697         (Freset_char_attribute_table): New function.
1698         (syms_of_chartab): Add new builtin function
1699         `reset-char-attribute-table'.
1700
1701 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1702
1703         * chartab.c (load_char_attribute_maybe): Don't make directories.
1704
1705 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1706
1707         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1708
1709         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1710         for decoding-table.
1711
1712 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1713
1714         * mule-charset.c (Fsave_charset_mapping_table): Use
1715         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1716
1717         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1718         instead of `XCHARSET_CHARS'.
1719
1720 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1721
1722         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1723         (XCHARSET_BYTE_SIZE): Likewise.
1724
1725         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1726         mule-charset.c].
1727         (XCHARSET_BYTE_SIZE): Likewise.
1728
1729 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1730
1731         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1732         data-directory to store database.
1733         (Fsave_char_attribute_table): Likewise.
1734         (load_char_attribute_maybe): Likewise.
1735         (Fload_char_attribute_table): Likewise.
1736
1737 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1738
1739         * mule-charset.c (Fsave_charset_mapping_table): New function.
1740         (syms_of_mule_charset): Add new builtin function
1741         `save-charset-mapping-table'.
1742
1743 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1744
1745         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1746         (get_ccs_octet_table): New inline function.
1747         (put_ccs_octet_table): Likewise.
1748         (decoding_table_put_char): Use `get_ccs_octet_table' and
1749         `put_ccs_octet_table'.
1750         (decoding_table_remove_char): Use `decoding_table_put_char'.
1751         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1752
1753         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1754         into encoding_table.
1755         (make_charset): Use Qunbound instead Qnil as initial value of
1756         decoding_table.
1757
1758 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1759
1760         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1761         element is Qunloaded.
1762         (map_over_uint16_byte_table): Likewise.
1763         (map_over_byte_table): Likewise.
1764         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1765         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1766         database support, load encoding-table of the specified
1767         coded-charset if it is not loaded yet.
1768         (save_uint8_byte_table): New function of UTF-2000 with external
1769         database support.
1770         (save_uint16_byte_table): Likewise.
1771         (save_byte_table): Likewise.
1772         (Fput_char_attribute): Don't store value into external database
1773         even if the external database feature is supported in UTF-2000;
1774         set `attribute' as name of char-table if the external database
1775         feature is supported.
1776         (Fsave_char_attribute_table): New function in UTF-2000.
1777         (syms_of_chartab): Add new builtin function
1778         `save-char-attribute-table' in UTF-2000.
1779
1780 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1781
1782         * chartab.c (char_attribute_table_to_put): New variable in
1783         UTF-2000.
1784         (Qput_char_table_map_function): Likewise.
1785         (value_to_put): Likewise.
1786         (Fput_char_table_map_function): New function in UTF-2000.
1787         (put_char_table): Use `Fmap_char_attribute' for
1788         CHARTAB_RANGE_CHARSET in UTF-2000.
1789         (Fput_char_attribute): Store symbol instead of string in
1790         `XCHAR_TABLE_NAME (table)'.
1791         (load_char_attribute_maybe): Likewise.
1792         (syms_of_chartab): Add new symbol/function
1793         `put-char-table-map-function'.
1794
1795 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1796
1797         * database.h: Add new EXFUN for `Fmap_database'.
1798
1799         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1800         (syms_of_database): Likewise.
1801
1802         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1803         UTF-2000.
1804         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1805         (XCHAR_TABLE_UNLOADED): Likewise.
1806
1807         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1808         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1809         HAVE_DATABASE is defined.
1810         (char_attribute_table_to_load): New variable of UTF-2000 with
1811         external database support.
1812         (Qload_char_attribute_table_map_function): Likewise.
1813         (Fload_char_attribute_table_map_function): New function of
1814         UTF-2000 with external database support.
1815         (Fload_char_attribute_table): New function of UTF-2000.
1816         (Fmap_char_attribute): Call Fload_char_attribute_table if
1817         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1818         (syms_of_chartab): Add new symbol and function
1819         `load-char-attribute-table-map-function' in UTF-2000 with external
1820         database support; add new function `load-char-attribute-table' in
1821         UTF-2000.
1822
1823 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1824
1825         * chartab.h (load_char_attribute_maybe): New prototype for
1826         UTF-2000 with DATABASE support.
1827         (get_char_id_table): Use `load_char_attribute_maybe' if
1828         HAVE_DATABASE is defined.
1829
1830         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1831         with DATABASE support.
1832
1833 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1834
1835         * chartab.c (Fput_char_attribute): Use S-expression as key of
1836         external database.
1837
1838         * chartab.h (get_char_id_table): Use S-expression as key of
1839         external database.
1840
1841 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842
1843         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1844         if an element is not loaded, load the corresponding attributes
1845         from an external database.
1846         (map_over_uint16_byte_table): Likewise.
1847         (map_over_byte_table): Likewise.
1848         (map_char_table): Modify for `map_over_uint8_byte_table',
1849         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1850         element is not loaded, load the corresponding attributes from an
1851         external database.
1852         (Fput_char_attribute): Change initial values to Qunloaded.
1853
1854         * chartab.h (get_char_id_table): If a character attribute is not
1855         loaded and the attribute value is not found in an external
1856         database, store Qunbound as the attribute value.
1857
1858 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1859
1860         * chartab.c (BT_UINT8_unloaded): New macro.
1861         (UINT8_VALUE_P): Accept Qunloaded.
1862         (UINT8_ENCODE): Likewise.
1863         (UINT8_DECODE): Likewise.
1864         (BT_UINT16_unloaded): New macro.
1865         (UINT16_VALUE_P): Accept Qunloaded.
1866         (UINT16_ENCODE): Likewise.
1867         (UINT16_DECODE): Likewise.
1868         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1869         BT_UINT16_unloaded.
1870         (mark_char_table): Mark `ct->name' in UTF-2000.
1871         (char_table_description): Add `name' in UTF-2000.
1872         (Fmake_char_table): Initialize `ct->name'.
1873         (Fcopy_char_table): Copy `ct->name'.
1874         (Fput_char_attribute): Store value into an external database if
1875         HAVE_DATABASE is defined.
1876
1877         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1878         UTF-2000.
1879         (CHAR_TABLE_NAME): New macro in UTF-2000.
1880         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1881         (get_char_id_table): Try to read an external database if Qunloaded
1882         is stored in a table.
1883
1884         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1885         Qunloaded.
1886
1887 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1888
1889         * database.h: Add EXFUN definitions for Fopen_database,
1890         Fput_database, Fget_database and Fclose_database.
1891
1892         * data.c (Qunloaded): New variable in UTF-2000.
1893
1894         * lisp.h (Qunloaded): New variable in UTF-2000.
1895
1896 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1897
1898         * mule-charset.c (put_char_ccs_code_point): Modify for
1899         `decoding_table_remove_char' and `decoding_table_put_char'.
1900         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1901
1902         * char-ucs.h (decoding_table_remove_char): Change arguments to
1903         hide decoding_table vector.
1904         (decoding_table_put_char): Likewise.
1905
1906 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * mule-charset.c (decoding_table_remove_char): Moved to
1909         char-ucs.h.
1910         (decoding_table_put_char): Likewise.
1911
1912         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1913         from mule-charset.c].
1914         (decoding_table_remove_char): New inline function [moved from
1915         mule-charset.c].
1916         (decoding_table_put_char): Likewise.
1917
1918 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1919
1920         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1921         extension.
1922
1923 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1924
1925         * mule-charset.c (decode_builtin_char): Support mother charsets.
1926
1927 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1928
1929         * mule-charset.c (Q94x94x60): New variable.
1930         (charset_code_point): Support conversion `94x94x60'.
1931         (Fmake_charset): Likewise.
1932         (syms_of_mule_charset): Add new symbol `94x94x60'.
1933
1934         * char-ucs.h (CONVERSION_94x94x60): New macro.
1935
1936 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1937
1938         * mule-charset.c (charset_code_point): Unify code about
1939         `code-offset'.
1940
1941 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1942
1943         * mule-charset.c (charset_code_point): Merge code about builtin
1944         characters into code about mother charsets; don't use
1945         `range_charset_code_point'.
1946         (range_charset_code_point): Deleted.
1947
1948 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1949
1950         * mule-charset.c (Qcode_offset): New variable.
1951         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1952         `max-code'; accept new property `code-offset'.
1953         (syms_of_mule_charset): Add new symbol `code-offset'.
1954
1955 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1956
1957         * mule-charset.c (range_charset_code_point): Fixed.
1958
1959 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1960
1961         * mule-charset.c (decode_builtin_char): Change semantics of
1962         code-offset of coded-charset.
1963         (charset_code_point): Likewise.
1964         (range_charset_code_point): Likewise.
1965         (complex_vars_of_mule_charset): Modify for the change.
1966
1967 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968
1969         * mule-charset.c (Fencode_char): Reverse arguments.
1970
1971         * mule-charset.c (charset_code_point): Fixed.
1972
1973 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1974
1975         * mule-charset.c (Vcharset_mojikyo): Deleted.
1976         (Vcharset_mojikyo_2022_1): Deleted.
1977         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1978         (Qmin_code): New variable in UTF-2000.
1979         (Qmax_code): Likewise.
1980         (Qmother): Likewise.
1981         (Qconversion): Likewise.
1982         (Q94x60): Likewise.
1983         (Qmojikyo): Deleted.
1984         (Qmojikyo_2022_1): Deleted.
1985         (Qmojikyo_pj_{1..22}): Deleted.
1986         (mark_charset): Mark `cs->mother'.
1987         (charset_description): Add description for `mother'.
1988         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1989         new arguments `mother' and `conversion'; use
1990         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1991         (charset_code_point): Moved from char-ucs.h; support `mother'
1992         charset feature.
1993         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1994         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1995         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1996         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1997         allow 2 as the value of `graphic' in UTF-2000; add new properties
1998         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1999         require `final' in UTF-2000; modify for `make_charset'.
2000         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2001         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2002         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2003         (Fencode_char): New function.
2004         (syms_of_mule_charset): Add new builtin function `encode-char' in
2005         UTF-2000; add new symbols `min-code', `max-code', `mother',
2006         `conversion' and `94x60'; delete symbols `mojikyo',
2007         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2008         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2009         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2010         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2011
2012         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2013         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2014
2015         * char-ucs.h (Vcharset_mojikyo): Deleted.
2016         (Vcharset_mojikyo_2022_1): Deleted.
2017         (LEADING_BYTE_MOJIKYO): Deleted.
2018         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2019         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2020         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2021         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2022         add new member `mother'; add new member `conversion'.
2023         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2024         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2025         (CHARSET_MOTHER): New macro.
2026         (CHARSET_CONVERSION): New macro.
2027         (CONVERSION_IDENTICAL): New macro.
2028         (CONVERSION_94x60): New macro.
2029         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2030         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2031         (XCHARSET_MOTHER): New macro.
2032         (XCHARSET_CONVERSION): New macro.
2033         (MIN_CHAR_MOJIKYO): Deleted.
2034         (MAX_CHAR_MOJIKYO): Deleted.
2035         (DECODE_MOJIKYO_2022): Deleted.
2036         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2037         (charset_code_point): Changed to non-inline function.
2038         (encode_char_1): Use `charset_code_point'.
2039         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2040
2041 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2042
2043         * lread.c (read_compiled_function): Fix prototype.
2044         (read_vector): Likewise.
2045
2046 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2047
2048         * lrecord.h (struct lrecord_header): Delete `older'.
2049         (set_lheader_implementation): Delete code for `older'.
2050         (set_lheader_older_implementation): Deleted.
2051         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2052         (OLDER_RECORD_P): Deleted.
2053         (OLDER_RECORD_HEADER_P): Deleted.
2054         (alloc_older_lcrecord): Deleted.
2055         (alloc_older_lcrecord_type): Deleted.
2056
2057         * alloc.c (all_older_lcrecords): Deleted.
2058         (alloc_older_lcrecord): Deleted.
2059         (disksave_object_finalization_1): Delete code for older objects.
2060         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2061         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2062
2063 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2064
2065         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2066         instead of `make_older_vector'.
2067         (put_char_ccs_code_point): Likewise.
2068         (mark_charset): Mark `cs->decoding_table'.
2069         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2070
2071         * lisp.h (make_older_vector): Deleted.
2072         (make_vector_newer): Deleted.
2073
2074         * config.h.in (HAVE_GGC): Deleted.
2075
2076         * alloc.c (make_older_vector): Deleted.
2077         (make_vector_newer_1): Deleted.
2078         (make_vector_newer): Deleted.
2079
2080 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2081
2082         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2083         (Qideograph_daikanwa_2): New variable.
2084         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2085         (complex_vars_of_mule_charset): Add new coded-charset
2086         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2087         `LEADING_BYTE_DAIKANWA'.
2088
2089         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2090         (LEADING_BYTE_DAIKANWA_1): New macro.
2091         (LEADING_BYTE_DAIKANWA_2): New macro.
2092         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2093
2094 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2095
2096         * mule-charset.c (complex_vars_of_mule_charset): Change
2097         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2098         the second revised version.
2099
2100 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101
2102         * mule-charset.c (Vcharset_ucs_smp): New variable.
2103         (Vcharset_ucs_sip): New variable.
2104         (Qucs_smp): New variable.
2105         (Qucs_sip): New variable.
2106         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2107         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2108         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2109         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2110         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2111         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2112
2113         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2114         (LEADING_BYTE_UCS_SIP): New macro.
2115         (MIN_CHAR_SMP): New macro.
2116         (MAX_CHAR_SMP): New macro.
2117         (MIN_CHAR_SIP): New macro.
2118         (MAX_CHAR_SIP): New macro.
2119
2120 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2121
2122         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2123         utf-2000.
2124
2125 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2126
2127         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2128         value; don't store value into `encoding_table' of `Lisp_Charset'.
2129         (mark_charset): `encoding_table' was deleted.
2130         (charset_description): Likewise.
2131         (make_charset): Likewise.
2132         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2133         `put_char_ccs_code_point'.
2134
2135         * chartab.h (Fput_char_attribute): New EXFUN.
2136
2137         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2138         is unified with normal symbol space.
2139         (Fget_char_attribute): Likewise.
2140         (Fput_char_attribute): Likewise; behavior of
2141         `put_char_ccs_code_point' is changed.
2142
2143         * char-ucs.h: Include "elhash.h".
2144         (Vchar_attribute_hash_table): New external variable.
2145         (struct Lisp_Charset): Delete `encoding_table'.
2146         (CHARSET_ENCODING_TABLE): New implementation; refer
2147         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2148         `Lisp_Charset'.
2149
2150 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2151
2152         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2153         (cs) == 0.
2154
2155 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2156
2157         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2158         `chinese-big5'.
2159
2160 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2161
2162         * chartab.c (uint8_byte_table_description): New constant.
2163         (uint8-byte-table): Use `uint8_byte_table_description'.
2164         (uint16_byte_table_description): New constant.
2165         (uint16-byte-table): Use `uint16_byte_table_description'.
2166
2167 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2170         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2171
2172 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2173
2174         * mule-charset.c (Vcharset_ucs_ks): New variable.
2175         (Qucs_ks): New variable.
2176         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2177         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2178
2179         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2180
2181 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2182
2183         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2184         (Fdecode_char): Likewise.
2185
2186         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2187         chartab.h.
2188         (Fdefine_char): Modify for Fdecode_char.
2189         (Ffind_char): Likewise.
2190
2191         * mule-charset.c (Fdecode_char): Add new optional argument
2192         `defined-only'.
2193         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2194
2195 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2196
2197         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2198         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2199         (allocate_coding_system): Initialize initial-charsets of
2200         CODESYS_BIG5 in XEmacs UTF-2000.
2201         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2202         CODESYS_BIG5 in XEmacs UTF-2000.
2203         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2204         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2205
2206         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2207         variables.
2208         (Qideograph_hanziku_{1 .. 12}): Likewise.
2209         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2210         .. 12}'.
2211         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2212         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2213         `ideograph-hanziku-{1 .. 12}'.
2214
2215         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2216         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2217         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2218         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2219         (DECODE_DEFINED_CHAR): New inline function.
2220         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2221
2222 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2223
2224         * mule-charset.c (Vcharset_china3_jef): Renamed from
2225         `Vcharset_japanese_jef_china3'.
2226         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2227         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2228         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2229         (syms_of_mule_charset): Rename `china3-jef' from
2230         `japanese-jef-china3'.
2231         (complex_vars_of_mule_charset): Likewise; rename
2232         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2233
2234         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2235         `LEADING_BYTE_JEF_CHINA3'.
2236         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2237         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2238
2239 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240
2241         * mule-charset.c (encode_builtin_char_1): Comment out special code
2242         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2243
2244         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2245         (MAX_CHAR_MOJIKYO_0): Comment out.
2246         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2247         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2248         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2249         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2250
2251 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2252
2253         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2254         (Qideograph_cbeta): New variable.
2255         (encode_builtin_char_1): Comment out special code for
2256         coded-charset `mojikyo' and `japanese-jef-china3'.
2257         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2258         (complex_vars_of_mule_charset): Add new coded-charset
2259         `ideograph-cbeta'.
2260
2261         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2262         (MIN_CHAR_CBETA): New macro.
2263         (MAX_CHAR_CBETA): New macro.
2264
2265 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2266
2267         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2268         (LEADING_BYTE_JEF_CHINA3): New macro.
2269         (MIN_CHAR_JEF_CHINA3): New macro.
2270         (MAX_CHAR_JEF_CHINA3): Likewise.
2271         (DECODE_CHAR): Fixed.
2272
2273 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2274
2275         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2276         (Qjapanese_jef_china3): New variable.
2277         (encode_builtin_char_1): Support `japanese-jef-china3'.
2278         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2279         (complex_vars_of_mule_charset): Add new coded-charset
2280         `japanese-jef-china3'.
2281
2282 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2283
2284         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2285         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2286         94^4, 96^3, 96^4, 128^n and 256^n set.
2287         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2288         (map_char_table): Likewise.
2289
2290 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2291
2292         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2293         UTF-2000.
2294
2295 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2296
2297         * chartab.h (get_char_id_table): New inline function.
2298
2299         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2300         function.
2301
2302 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2303
2304         * chartab.h (decode_char_table_range): New prototype in XEmacs
2305         UTF-2000.
2306         (put_char_id_table): New inline function in XEmacs UTF-2000.
2307
2308         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2309         function.
2310         (decode_char_table_range): Delete static declaration in XEmacs
2311         UTF-2000.
2312
2313 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2314
2315         * chartab.c (put_char_id_table): Use `put_char_table'.
2316
2317 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2318
2319         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2320         (map_over_uint16_byte_table): Likewise.
2321         (map_over_byte_table): Likewise.
2322         (map_char_table): Modify for `map_over_uint8_byte_table',
2323         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2324         UTF-2000.
2325
2326 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2327
2328         * chartab.c (struct map_char_table_for_charset_arg): New
2329         structure.
2330         (map_char_table_for_charset_fun): New function.
2331         (map_char_table): Use `map_char_table' for encoding_table of
2332         `range->charset'.
2333
2334 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2335
2336         * chartab.c (map_char_table): Check a character is found in
2337         range->charset instead of non default value is defined in
2338         char-table when range is CHARTAB_RANGE_ROW.
2339
2340 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2341
2342         * chartab.c (map_char_id_table): Deleted.
2343         (Fmap_char_attribute): Use `map_char_table' instead of
2344         `map_char_id_table'.
2345
2346 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2347
2348         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2349         UTF-2000.
2350         (update_syntax_table): Deleted in XEmacs UTF-2000.
2351
2352         * syntax.c (find_defun_start): Use `syntax_table' instead of
2353         `mirror_syntax_table' in XEmacs UTF-2000.
2354         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2355         UTF-2000.
2356         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2357         XEmacs UTF-2000.
2358         (Fmatching_paren): Likewise.
2359         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2360         in XEmacs UTF-2000.
2361         (find_start_of_comment): Likewise.
2362         (find_end_of_comment): Likewise.
2363         (Fforward_comment): Likewise.
2364         (scan_lists): Likewise.
2365         (char_quoted): Likewise.
2366         (Fbackward_prefix_chars): Likewise.
2367         (scan_sexps_forward): Likewise.
2368         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2369         (update_syntax_table): Likewise.
2370
2371         * search.c (skip_chars): Use `syntax_table' instead of
2372         `mirror_syntax_table' in XEmacs UTF-2000.
2373         (wordify): Likewise.
2374         (Freplace_match): Likewise.
2375
2376         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2377         `mirror_syntax_table' in XEmacs UTF-2000.
2378         (WORDCHAR_P_UNSAFE): Likewise.
2379         (re_match_2_internal): Likewise.
2380
2381         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2382         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2383
2384         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2385         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2386
2387         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2388         XEmacs UTF-2000.
2389
2390         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2391         UTF-2000.
2392         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2393         (char_table_description): Delete `mirror_table' in XEmacs
2394         UTF-2000.
2395         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2396         UTF-2000.
2397         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2398         (Fcopy_char_table): Likewise.
2399         (put_char_table): Don't call `update_syntax_table' in XEmacs
2400         UTF-2000.
2401
2402         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2403         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2404         (casify_region_internal): Likewise.
2405
2406         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2407
2408         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2409         `mirror_syntax_table' in XEmacs UTF-2000.
2410
2411         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2412         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2413         (Fexpand_abbrev): Likewise.
2414
2415 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2416
2417         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2418
2419 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2420
2421         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2422         (map_over_uint16_byte_table): Likewise.
2423         (map_over_byte_table): Likewise.
2424         (get_char_id_table): Refer `cit->default_value'.
2425         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2426         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2427         of character-id ranges.
2428         (mark_char_table): Mark `ct->default_value'.
2429         (char_table_description): Add `default_value'.
2430         (fill_char_table): Use `default_value'.
2431         (decode_char_table_range): Decode `nil' as
2432         `CHARTAB_RANGE_DEFAULT'.
2433         (get_char_id_table): Refer `cit->default_value'.
2434         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2435         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2436         temporary hack; check value of char-table is bound or not.
2437         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2438
2439         * chartab.h (struct Lisp_Char_Table): Add new member
2440         `default_value' in XEmacs UTF-2000.
2441         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2442         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2443         UTF-2000.
2444
2445 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2446
2447         * chartab.h (Lisp_Char_ID_Table): Deleted.
2448
2449         * chartab.c (char_table_description): Fix typo.
2450         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2451         `Lisp_Char_ID_Table'.
2452
2453 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2454
2455         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2456         `CHAR_ID_TABLE_P'.
2457
2458         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2459         `CHAR_ID_TABLE_P'.
2460
2461         * chartab.h (XCHAR_ID_TABLE): Deleted.
2462         (XSETCHAR_ID_TABLE): Deleted.
2463         (CHAR_ID_TABLE_P): Deleted.
2464
2465         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2466         `CHAR_ID_TABLE_P'.
2467         (Fget_composite_char): Likewise.
2468         (put_char_table): Likewise.
2469         (add_char_attribute_alist_mapper): Fixed.
2470         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2471         `CHAR_ID_TABLE_P'.
2472         (Fget_char_attribute): Likewise.
2473         (Fget_char_attribute): Likewise.
2474         (Fmap_char_attribute): Likewise.
2475
2476         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2477         `CHAR_ID_TABLE_P'.
2478         (encode_char_1): Likewise.
2479
2480 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2481
2482         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2483         `XCHAR_ID_TABLE'.
2484
2485         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2486         instead of `XCHAR_ID_TABLE'.
2487         (remove_char_ccs): Likewise.
2488
2489         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2490         `XCHAR_ID_TABLE'.
2491         (Fget_composite_char): Likewise.
2492         (Fchar_variants): Likewise.
2493         (put_char_table): Likewise.
2494         (add_char_attribute_alist_mapper): Likewise.
2495         (Fchar_attribute_alist): Likewise.
2496         (Fget_char_attribute): Likewise.
2497         (Fput_char_attribute): Likewise.
2498         (Fmap_char_attribute): Likewise.
2499         (Fmap_char_attribute): Likewise.
2500
2501         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2502         `XCHAR_ID_TABLE'.
2503         (encode_char_1): Likewise.
2504
2505 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2506
2507         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2508         `Lisp_Char_ID_Table'.
2509         (mark_char_id_table): Deleted.
2510         (print_char_id_table): Likewise.
2511         (char_id_table_equal): Likewise.
2512         (char_id_table_hash): Likewise.
2513         (char_id_table_description): Likewise.
2514         (char_id_table): Likewise.
2515         (make_char_id_table): Use `Fmake_char_table' and
2516         `fill_char_table'.
2517         (get_char_id_table): Use `Lisp_Char_Table' instead of
2518         `Lisp_Char_ID_Table'.
2519         (put_char_id_table): Likewise.
2520         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2521         `XCHAR_ID_TABLE'.
2522         (Fremove_char_attribute): Likewise.
2523         (syms_of_chartab): Don't define type `char-id-table'.
2524
2525         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2526         (char_id_table): Likewise.
2527         (GC_CHAR_ID_TABLE_P): Likewise.
2528         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2529         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2530         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2531         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2532         (get_char_id_table): Use `Lisp_Char_Table' instead of
2533         `Lisp_Char_ID_Table'.
2534         (put_char_id_table_0): Likewise.
2535         (put_char_id_table): Likewise.
2536
2537 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2538
2539         * chartab.h: Lisp_Byte_Table related codes are moved from
2540         chartab.h.
2541
2542         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2543
2544 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2545
2546         * chartab.h: Don't include "chartab.h".
2547         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2548         (Lisp_Char_ID_Table): Likewise.
2549         (char_id_table): Likewise.
2550         (XCHAR_ID_TABLE): Likewise.
2551         (XSETCHAR_ID_TABLE): Likewise.
2552         (CHAR_ID_TABLE_P): Likewise.
2553         (GC_CHAR_ID_TABLE_P): Likewise.
2554         (get_char_id_table): Likewise.
2555
2556         * char-ucs.h: Include "chartab.h".
2557         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2558         (Lisp_Char_ID_Table): Likewise.
2559         (char_id_table): Likewise.
2560         (XCHAR_ID_TABLE): Likewise.
2561         (XSETCHAR_ID_TABLE): Likewise.
2562         (CHAR_ID_TABLE_P): Likewise.
2563         (GC_CHAR_ID_TABLE_P): Likewise.
2564         (get_char_id_table): Likewise.
2565
2566 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2567
2568         * chartab.c (copy_uint8_byte_table): New function.
2569         (copy_uint16_byte_table): New function.
2570         (copy_byte_table): New function.
2571         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2572         characters to call.
2573         (map_over_uint16_byte_table): Likewise.
2574         (map_over_byte_table): Likewise.
2575         (get_byte_table): Move prototype to chartab.h.
2576         (put_byte_table): Likewise.
2577         (put_char_id_table_0): Moved to chartab.h.
2578         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2579         (char_table_entry_equal): Likewise.
2580         (char_table_entry_hash): Likewise.
2581         (char_table_entry_description): Likewise.
2582         (char_table_entry): Likewise.
2583         (make_char_table_entry): Likewise.
2584         (copy_char_table_entry): Likewise.
2585         (get_non_ascii_char_table_value): Likewise.
2586         (map_over_charset_ascii): Likewise.
2587         (map_over_charset_control_1): Likewise.
2588         (map_over_charset_row): Likewise.
2589         (map_over_other_charset): Likewise.
2590         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2591         (print_char_table): Likewise.
2592         (char_table_equal): Likewise.
2593         (char_table_hash): Likewise.
2594         (char_table_description): Likewise.
2595         (fill_char_table): Likewise.
2596         (Fcopy_char_table): Likewise.
2597         (get_char_table): Likewise.
2598         (Fget_range_char_table): Likewise.
2599         (put_char_table): Likewise.
2600         (map_char_table): Likewise.
2601         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2602         UTF-2000.
2603
2604 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2605
2606         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2607         `Vauto_fill_chars' in XEmacs UTF-2000.
2608
2609         * chartab.h (get_byte_table): New prototype [moved from
2610         chartab.c].
2611         (put_byte_table): Likewise [moved from chartab.c].
2612         (put_char_id_table_0): New inline function [moved from chartab.c].
2613         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2614         (Lisp_Char_Table_Entry): Likewise.
2615         (char_table_entry): Likewise.
2616         (XCHAR_TABLE_ENTRY): Likewise.
2617         (XSETCHAR_TABLE_ENTRY): Likewise.
2618         (CHAR_TABLE_ENTRYP): Likewise.
2619         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2620         (NUM_ASCII_CHARS): Likewise.
2621         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2622         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2623
2624 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2625
2626         * chartab.c (get_char_id_table): Change interface.
2627         (put_char_id_table_0): New function.
2628         (put_char_id_table): Change interface; new implementation.
2629         (Fget_composite_char): Modify for interface change of
2630         `get_char_id_table'.
2631         (Fchar_variants): Likewise.
2632         (add_char_attribute_alist_mapper): Likewise.
2633         (Fchar_attribute_alist): Likewise.
2634         (Fget_char_attribute): Likewise.
2635         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2636         as same as character as the first argument like `put-char-table';
2637         modify for interface change of `put_char_id_table'.
2638         (Fremove_char_attribute): Modify for interface change of
2639         `put_char_id_table'.
2640
2641 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2642
2643         * text-coding.c: Sync up with XEmacs 21.2.41.
2644         (COMPOSE_ADD_CHAR): Modify for interface change of
2645         `get_char_id_table'.
2646
2647         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2648         change of `put_char_id_table'.
2649         (remove_char_ccs): Likewise.
2650
2651         * chartab.h (put_char_id_table): Change interface.
2652
2653         * char-ucs.h (get_char_id_table): Change interface.
2654         (charset_code_point): Modify for interface change of
2655         `get_char_id_table'.
2656         (encode_char_1): Likewise.
2657
2658 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2659
2660         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2661         argument `ccs'.
2662         (map_over_uint16_byte_table): Likewise.
2663         (map_over_byte_table): Likewise.
2664         (map_char_id_table): Add new argument `range' like
2665         `map_char_table'.
2666         (Fmap_char_attribute): Add new argument `range' like
2667         `Fmap_char_table'.
2668
2669 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2670
2671         * chartab.c (map_over_uint8_byte_table): Change interface of
2672         mapping function to use struct chartab_range instead of Emchar.
2673         (map_over_uint16_byte_table): Likewise.
2674         (map_over_byte_table): Likewise.
2675         (map_char_id_table): Likewise.
2676         (struct slow_map_char_id_table_arg): Deleted.
2677         (slow_map_char_id_table_fun): Deleted.
2678         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2679         function `slow_map_char_table_fun' instead of struct
2680         `slow_map_char_id_table_arg' and function
2681         `slow_map_char_id_table_fun'.
2682
2683 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2684
2685         * mule-charset.c: Move char-it-table related codes to chartab.c.
2686         (Vutf_2000_version): Moved to chartab.c.
2687         (Fdefine_char): Likewise.
2688         (Ffind_char): Likewise.
2689         (syms_of_mule_charset): Move types `uint8-byte-table',
2690         `uint16-byte-table', `byte-table' and `char-id-table' to
2691         chartab.c; move functions `char_attribute_list,
2692         `find_char_attribute_table, `char_attribute_alist,
2693         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2694         `map_char_attribute, `define_char, `find_char, `char_variants and
2695         `get_composite_char to chartab.c; move symbols `=>ucs',
2696         `->decomposition', `compat', `isolated', `initial', `medial',
2697         `final', `vertical', `noBreak', `fraction', `super', `sub',
2698         `circle', `square', `wide', `narrow', `small' and `font' to
2699         chartab.c.
2700         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2701         setting codes for `Vcharacter_composition_table' and
2702         `Vcharacter_variant_table' to chartab.c.
2703         (complex_vars_of_mule_charset): Move setting code for
2704         `Vchar_attribute_hash_table' to chartab.c.
2705
2706         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2707         (make_char_id_table): New prototype.
2708         (put_char_id_table): Likewise.
2709         (Fget_char_attribute): Likewise.
2710
2711         * chartab.c: Move char-id-table related code from mule-charset.c.
2712         (Vutf_2000_version): Moved from mule-charset.c.
2713
2714         * char-ucs.h (Qucs): New external variable.
2715         (put_char_ccs_code_point): New prototype.
2716         (remove_char_ccs): Likewise.
2717
2718 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2719
2720         * mule-charset.c (Vcharset_ucs_jis): New variable.
2721         (Qucs_jis): Likewise.
2722         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2723         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2724
2725         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2726
2727 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2728
2729         * mule-charset.c (map_over_uint8_byte_table): New function.
2730         (map_over_uint16_byte_table): Likewise.
2731         (map_over_byte_table): Likewise.
2732         (map_char_id_table): Likewise.
2733         (slow_map_char_id_table_fun): Likewise.
2734         (Fmap_char_attribute): Likewise.
2735         (syms_of_mule_charset): Add new function `map-char-attribute'.
2736
2737 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2738
2739         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2740         (syms_of_mule_charset): Add new function `find-char'.
2741
2742 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2743
2744         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2745         XEmacs UTF-2000.
2746         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2747         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2748         XEmacs UTF-2000.
2749         (complex_vars_of_mule_charset): Add new coded-charset
2750         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2751         `ideograph-gt-pj-*'.
2752
2753         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2754
2755 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2756
2757         * mule-charset.c (encode_builtin_char_1): Purge codes about
2758         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2759         {MIN|MAX}_CHAR_HEBREW.
2760         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2761         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2762
2763         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2764         (MAX_CHAR_GREEK): Purged.
2765         (MIN_CHAR_CYRILLIC): Purged.
2766         (MAX_CHAR_CYRILLIC): Purged.
2767         (MIN_CHAR_HEBREW): Commented out.
2768         (MAX_CHAR_HEBREW): Likewise.
2769
2770 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2771
2772         * mule-charset.c (Qto_ucs): New variable.
2773         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2774         (Fdefine_char): Likewise.
2775         (syms_of_mule_charset): Add new symbol `=>ucs'.
2776
2777 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2778
2779         * mule-charset.c (Fdecode_char): Fixed.
2780
2781 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2782
2783         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2784         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2785         "tcvn5712-1".
2786
2787 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2788
2789         * mule-charset.c (Vcharset_ucs_big5): New variable.
2790         (Qucs_big5): Likewise.
2791         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2792         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2793
2794         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2795
2796 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2797
2798         * mule-charset.c (decode_builtin_char): Check Big5 code range
2799         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2800
2801 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2802
2803         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2804         (Qchinese_gb12345): Likewise.
2805         (Fdecode_builtin_char): Fixed.
2806         (syms_of_mule_charset): Add `chinese-gb12345'.
2807         (complex_vars_of_mule_charset): Add coded-charset
2808         `chinese-gb12345'.
2809
2810         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2811         (LEADING_BYTE_CHINESE_GB12345): New macro.
2812
2813 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2814
2815         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2816         and `latin-viscii-upper' for `latin-viscii'.
2817
2818 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2819
2820         * mule-charset.c (Fdecode_builtin_char): Comment out
2821         regularization code for ISO-IR GR representation.
2822
2823 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2824
2825         * mule-charset.c (decode_builtin_char): New function; renamed from
2826         `make_builtin_char'; return -1 instead of signal.
2827         (Fdecode_builtin_char): Use `decode_builtin_char'.
2828
2829         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2830         `make_builtin_char'.
2831         (DECODE_CHAR): Use `decode_builtin_char' instead of
2832         `make_builtin_char'; use mapping table of `chinese-big5' for
2833         `chinese-big5-{1,2}'.
2834
2835 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2836
2837         * text-coding.c (char_encode_big5): New function.
2838         (char_finish_big5): Likewise.
2839         (reset_encoding_stream): Use `char_encode_big5' and
2840         `char_finish_big5' for CODESYS_BIG5.
2841         (mule_encode): Don't use `encode_coding_big5'.
2842         (encode_coding_big5): Deleted.
2843
2844 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2845
2846         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2847         0x81- in XEmacs UTF-2000.
2848         (detect_coding_big5): Likewise.
2849
2850 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2851
2852         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2853         generate character-id if the CCS property does not have
2854         corresponding predefined character.
2855         (make_builtin_char): Return -1 if corresponding predefined
2856         character is not found.
2857         (Fdecode_char): Return nil if corresponding character is not
2858         found.
2859         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2860         don't map to builtin ucs space.
2861
2862 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863
2864         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2865         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2866
2867 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2868
2869         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2870         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2871         (Qideograph_gt): Likewise.
2872         (Qideograph_gt_pj_{1..11}): Likewise.
2873         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2874         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2875         `ideograph-gt-pj-11'.
2876         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2877         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2878         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2879
2880         * char-ucs.h (LEADING_BYTE_GT): New macro.
2881         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2882         (MIN_CHAR_GT): Likewise.
2883         (MAX_CHAR_GT): Likewise.
2884
2885 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2886
2887         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2888         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2889
2890         * doprnt.c (unsigned_int_converters): Add `c'.
2891         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2892
2893         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2894         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2895         `MIN_CHAR_MOJIKYO'.
2896         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2897         (MAX_CHAR_MOJIKYO_0): New macro.
2898         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2899
2900 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2901
2902         * mule-charset.c (Fdefine_char): Delete cemented out code.
2903         (encode_builtin_char_1): Modify for new allocation of builtin
2904         Mojikyo characters.
2905
2906         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2907
2908 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2909
2910         * mule-charset.c (Vcharset_ucs_cns): New variable.
2911         (Qucs_cns): New variable.
2912         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2913         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2914
2915 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2916
2917         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2918
2919 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2920
2921         * search.c (search_buffer): Make `charset_base_code' as
2922         character-id >> 6 to eliminate the corresponding last byte in
2923         UTF-8 representation [I'm not sure it is right thing].
2924         (boyer_moore): Likewise.
2925
2926 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2927
2928         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2929         representation in MULE.
2930
2931 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2932
2933         * text-coding.c (Fmake_coding_system): Use
2934         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2935         `EXTERNAL_PROPERTY_LIST_LOOP'.
2936
2937 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2938
2939         * text-coding.c (decode_output_utf8_partial_char): New function.
2940         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2941
2942 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2943
2944         * text-coding.c (decode_coding_utf8): Output original byte
2945         sequence if it is broken; change order of conditions.
2946
2947         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2948         of conditions.
2949
2950         * mb-multibyte.h (BYTE_ASCII_P):
2951         Use bit ops for char-signedness safety.
2952         (BYTE_C0_P): Use bit ops for char-signedness safety.
2953         (BYTE_C1_P): Use bit ops for char-signedness safety.
2954
2955         * character.h: (XCHAR_OR_CHAR_INT):
2956         Always use inline function.
2957         Remove redundant type checking assert() - XINT will abort quite
2958         nicely.
2959
2960 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2961
2962         * text-coding.c: (Fencode_shift_jis_char):
2963         (Fencode_big5_char):
2964         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2965         Replace 0 with '\0' when working with bytes.
2966         Replace initial "(" with "\(" in docstrings.
2967
2968         (Fmake_coding_system):
2969         When type is ccl and value is vector, register it with a proper
2970         symbol.  And checks whether the given ccl program is valid.
2971         (mule_decode): When calling ccl_driver, if src indicates
2972         NULL pointer, set an empty string instead.
2973         (mule_encode): Likewise.
2974
2975         (detect_eol_type):
2976         (detect_coding_sjis):
2977         (decode_coding_sjis):
2978         (detect_coding_big5):
2979         (decode_coding_big5):
2980         (detect_coding_ucs4):
2981         (decode_coding_ucs4):
2982         (detect_coding_utf8):
2983         (decode_coding_utf8):
2984         (detect_coding_iso2022):
2985         (decode_coding_iso2022):
2986         (decode_coding_no_conversion):
2987         (mule_decode):
2988         Make all detecting and decoding functions take an Extbyte * arg.
2989         (text_encode_generic):
2990         (encode_coding_big5):
2991         (encode_coding_no_conversion):
2992         (mule_encode):
2993         Make all encoding functions take a Bufbyte * arg.
2994         Use size_t instead of unsigned int for memory sizes.
2995         Only cast to unsigned char whenever dereferencing Extbyte *.
2996
2997         (struct lrecord_description fcd_description_1): Use countof.
2998         (complex_vars_of_file_coding):
2999         Use countof instead of sizeof.
3000         Use CHECK_NATNUM instead of CHECK_INT.
3001
3002 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3003
3004         * mule-charset.c (Fget_char_attribute): Add new optional argument
3005         `default-value'.
3006         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3007         (remove_char_ccs): Likewise.
3008
3009 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3010
3011         * text-coding.c (char_encode_shift_jis): New implementation in
3012         UTF-2000.
3013         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3014         ...)'.
3015
3016         * mule-charset.c (Vcharset_chinese_big5): New variable in
3017         UTF-2000.
3018         (Qchinese_big5): New variable in UTF-2000.
3019         (BIG5_SAME_ROW): New macro in UTF-2000.
3020         (make_builtin_char): Use builtin characters of
3021         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3022         characters of `Vcharset_chinese_big5'.
3023         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3024         (complex_vars_of_mule_charset): Add new coded-charset
3025         `chinese-big5' in UTF-2000.
3026
3027         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3028         (Vcharset_chinese_big5): New external variable declaration.
3029         (Vcharset_japanese_jisx0208_1990): Likewise.
3030
3031 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3032
3033         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3034         function.
3035         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3036
3037 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3038
3039         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3040         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3041         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3042         `mojikyo-pj-*'.
3043
3044 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3045
3046         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3047
3048 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3049
3050         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3051         to 0.17.
3052
3053 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3054
3055         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3056         for `CHARSET_BY_ATTRIBUTES'.
3057         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3058         `CHARSET_BY_ATTRIBUTES'.
3059
3060         * text-coding.c (struct decoding_stream): Rename member `CH' to
3061         `CPOS'.
3062         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3063         (decode_coding_sjis): Likewise.
3064         (decode_coding_big5): Likewise.
3065         (decode_coding_ucs4): Likewise.
3066         (decode_coding_utf8): Likewise.
3067         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3068         `CHARSET_BY_ATTRIBUTES'.
3069         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3070         `str->counter'; decode 3, 4 bytes sets.
3071         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3072         sets.
3073         (decode_coding_no_conversion): Use `str->cpos' instead of
3074         `str->ch'.
3075
3076         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3077         (Qmojikyo_2022_1): New variable.
3078         (make_charset): Don't use `CHARSET_TYPE_*'.
3079         (range_charset_code_point): Support coded-charset
3080         `mojikyo-2022-1'.
3081         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3082         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3083         `CHARSET_BY_ATTRIBUTES'.
3084         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3085         `CHARSET_BY_ATTRIBUTES'.
3086         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3087         (complex_vars_of_mule_charset): Add new coded-charset
3088         `mojikyo-2022-1'.
3089
3090         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3091         interface; changed to inline function.
3092
3093         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3094         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3095         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3096         (CHARSET_TYPE_94): Deleted.
3097         (CHARSET_TYPE_94X94): Deleted.
3098         (CHARSET_TYPE_96): Deleted.
3099         (CHARSET_TYPE_96X96): Deleted.
3100         (CHARSET_TYPE_128): Deleted.
3101         (CHARSET_TYPE_128X128): Deleted.
3102         (CHARSET_TYPE_256): Deleted.
3103         (CHARSET_TYPE_256X256): Deleted.
3104         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3105         to inline function.
3106         (DECODE_MOJIKYO_2022): New inline function.
3107         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3108         `Vcharset_mojikyo_2022_1'.
3109
3110 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3111
3112         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3113         instead of `EQ'.
3114         (put_byte_table): Likewise.
3115         (char_id_table_equal): Use `get_byte_table' [new implementation].
3116
3117 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3118
3119         * mule-charset.c: Include <limits.h> in UTF-2000.
3120         (BT_UINT8_MIN): New macro in UTF-2000.
3121         (BT_UINT8_MAX): New macro in UTF-2000.
3122         (BT_UINT8_t): New macro in UTF-2000.
3123         (BT_UINT8_nil): New macro in UTF-2000.
3124         (BT_UINT8_unbound): New macro in UTF-2000.
3125         (INT_UINT8_P): New inline function in UTF-2000.
3126         (UINT8_VALUE_P): New inline function in UTF-2000.
3127         (UINT8_ENCODE): New inline function in UTF-2000.
3128         (UINT8_DECODE): New inline function in UTF-2000.
3129         (mark_uint8_byte_table): New function in UTF-2000.
3130         (print_uint8_byte_table): New function in UTF-2000.
3131         (uint8_byte_table_equal): New function in UTF-2000.
3132         (uint8_byte_table_hash): New function in UTF-2000.
3133         (make_uint8_byte_table): New function in UTF-2000.
3134         (uint8_byte_table_same_value_p): New function in UTF-2000.
3135         (BT_UINT16_MIN): New macro in UTF-2000.
3136         (BT_UINT16_MAX): New macro in UTF-2000.
3137         (BT_UINT16_t): New macro in UTF-2000.
3138         (BT_UINT16_nil): New macro in UTF-2000.
3139         (BT_UINT16_unbound): New macro in UTF-2000.
3140         (INT_UINT16_P): New inline function in UTF-2000.
3141         (UINT16_VALUE_P): New inline function in UTF-2000.
3142         (UINT16_ENCODE): New inline function in UTF-2000.
3143         (UINT16_DECODE): New inline function in UTF-2000.
3144         (UINT8_TO_UINT16): New inline function in UTF-2000.
3145         (mark_uint16_byte_table): New function in UTF-2000.
3146         (print_uint16_byte_table): New function in UTF-2000.
3147         (uint16_byte_table_equal): New function in UTF-2000.
3148         (uint16_byte_table_hash): New function in UTF-2000.
3149         (make_uint16_byte_table): New function in UTF-2000.
3150         (uint16_byte_table_same_value_p): New function in UTF-2000.
3151         (print_byte_table): New function in UTF-2000.
3152         (byte-table): Use `print_byte_table' as printer.
3153         (make_byte_table): Delete second argument `older'.
3154         (byte_table_same_value_p): New function in UTF-2000.
3155         (copy_byte_table): Deleted.
3156         (get_byte_table): New function in UTF-2000.
3157         (put_byte_table): New function in UTF-2000.
3158         (print_char_id_table): New function in UTF-2000.
3159         (char-id-table): Use `print_char_id_table' as printer.
3160         (make_char_id_table): Delete second argument `older'.
3161         (get_char_id_table): Use `get_byte_table [new implementation].
3162         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3163         implementation].
3164         (Ffind_char_attribute_table): New function in UTF-2000.
3165         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3166         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3167         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3168         (syms_of_mule_charset): Add new function
3169         `find-char-attribute-table' in UTF-2000.
3170
3171         * lrecord.h (enum lrecord_type): Add
3172         `lrecord_type_uint16_byte_table' and
3173         `lrecord_type_uint8_byte_table'.
3174
3175         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3176         (Lisp_Uint8_Byte_Table): New type.
3177         (XUINT8_BYTE_TABLE): New macro.
3178         (XSETUINT8_BYTE_TABLE): New macro.
3179         (UINT8_BYTE_TABLE_P): New macro.
3180         (GC_UINT8_BYTE_TABLE_P): New macro.
3181         (struct Lisp_Uint16_Byte_Table): New structure.
3182         (Lisp_Uint16_Byte_Table): New type.
3183         (XUINT16_BYTE_TABLE): New macro.
3184         (XSETUINT16_BYTE_TABLE): New macro.
3185         (UINT16_BYTE_TABLE_P): New macro.
3186         (GC_UINT16_BYTE_TABLE_P): New macro.
3187
3188 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3189
3190         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3191         (Vcharacter_ideographic_strokes_table): Deleted.
3192         (Vcharacter_total_strokes_table): Deleted.
3193         (Vcharacter_morohashi_daikanwa_table): Deleted.
3194         (Vcharacter_decomposition_table): Deleted.
3195         (Qname): Deleted because it is duplicated.
3196         (Qideographic_radical): Deleted.
3197         (Qideographic_strokes): Deleted.
3198         (Qtotal_strokes): Deleted.
3199         (Qmorohashi_daikanwa): Deleted.
3200         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3201         `ideographic-radical', `ideographic-strokes', `total-strokes',
3202         `morohashi-daikanwa' and `->decomposition'.
3203         (Fget_char_attribute): Likewise.
3204         (Fput_char_attribute): Likewise; use `make-vector' instead of
3205         `make_older_vector' for `->decomposition' value.
3206         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3207         `ideograph-daikanwa'.
3208         (syms_of_mule_charset): Delete builtin symbols `name',
3209         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3210         `morohashi-daikanwa'.
3211         (vars_of_mule_charset): Don't setup
3212         `Vcharacter_ideographic_radical_table',
3213         `Vcharacter_ideographic_strokes_table',
3214         `Vcharacter_total_strokes_table',
3215         `Vcharacter_morohashi_daikanwa_table' and
3216         `Vcharacter_decomposition_table'.
3217
3218 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3219
3220         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3221         `make_older_vector', `make_vector_newer_1' and
3222         `make_vector_newer'.
3223
3224         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3225         `make_older_vector' and `make_vector_newer'.
3226
3227         * config.h.in (HAVE_GGC): New macro.
3228
3229 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3230
3231         * mule-charset.c (struct char_attribute_list_closure): New
3232         structure in UTF-2000.
3233         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3234         (Fchar_attribute_list): Likewise.
3235         (Fset_charset_mapping_table): Use `make_vector_newer'.
3236         (Fdecode_builtin_char): New function in UTF-2000.
3237         (syms_of_mule_charset): Add new function `char-attribute-list' and
3238         `decode-builtin-char' in UTF-2000.
3239
3240         * lisp.h (make_vector_newer): New prototype.
3241
3242         * alloc.c (make_vector_newer_1): New function.
3243         (make_vector_newer): New function.
3244
3245 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3246
3247         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3248         50100)'.
3249
3250 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3251
3252         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3253         (Vcharacter_attribute_table): Deleted.
3254         (Vcharacter_name_table): Deleted.
3255         (put_char_attribute): Deleted.
3256         (remove_char_attribute): Deleted.
3257         (struct char_attribute_alist_closure): New structure.
3258         (add_char_attribute_alist_mapper): New function.
3259         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3260         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3261         (Fget_char_attribute): Likewise.
3262         (Fput_char_attribute): Likewise.
3263         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3264         of `remove_char_attribute'.
3265         (Fdefine_char): Return character.
3266         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3267         and `Vcharacter_name_table'.
3268         (complex_vars_of_mule_charset): Likewise
3269         `Vchar_attribute_hash_table'.
3270
3271 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3272
3273         * character.h (CHARC_CHARSET): New macro.
3274         (CHARC_CHARSET_ID): New macro.
3275         (CHARC_CODE_POINT): New macro.
3276         (CHARC_COLUMNS): New macro.
3277         (CHARC_TO_CHAR): New inline function.
3278         (CHARC_EQ): New inline function.
3279         (CHARC_ASCII_EQ): New inline function.
3280         (CHARC_IS_SPACE): New inline function.
3281         (ASCII_TO_CHARC): New inline function.
3282
3283         * char-ucs.h (encode_char_2): Deleted.
3284         (ENCODE_CHAR): Use `encode_char_1' again.
3285         (breakup_char_1): Likewise.
3286         (CHAR_TO_CHARC): New inline function.
3287
3288         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3289
3290 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3291
3292         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3293         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3294         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3295         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3296         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3297         `CHARC_IS_SPACE'.
3298         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3299
3300         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3301         `CHARC_CODE_POINT'.
3302         (x_output_display_block): Use `CHARC_CHARSET' and
3303         `CHARC_ASCII_EQ'.
3304
3305         * redisplay-tty.c (tty_output_display_block): Use
3306         `CHARC_ASCII_EQ'.
3307         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3308
3309         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3310
3311         * insdel.c (find_charsets_in_charc_string): Use
3312         `CHARC_CHARSET_ID'.
3313         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3314         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3315         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3316         (convert_charc_string_into_malloced_string): Likewise.
3317
3318 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3319
3320         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3321         instead of <Emchar_dynarr *> for buf; use
3322         `convert_bufbyte_string_into_charc_dynarr' instead of
3323         `convert_bufbyte_string_into_emchar_dynarr'; use
3324         `find_charsets_in_charc_string' instead of
3325         `find_charsets_in_emchar_string'.
3326
3327         * redisplay.h:
3328         - Include "character.h".
3329         (struct rune): New member `cglyph'; delete member `chr'.
3330
3331         * redisplay.c (redisplay_text_width_charc_string): New function;
3332         delete `redisplay_text_width_emchar_string'.
3333         (rtw_charc_dynarr): New variable; renamed from
3334         `rtw_emchar_dynarr'.
3335         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3336         `rtw_emchar_dynarr'; use
3337         `convert_bufbyte_string_into_charc_dynarr' instead of
3338         `convert_bufbyte_string_into_emchar_dynarr'; use
3339         `redisplay_text_width_charc_string' instead of
3340         `redisplay_text_width_emchar_string'.
3341         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3342         instead of `rtw_emchar_dynarr'; use
3343         `convert_bufbyte_string_into_charc_dynarr' instead of
3344         `convert_bufbyte_string_into_emchar_dynarr'.
3345         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3346         `redisplay_text_width_charc_string' instead of
3347         `redisplay_text_width_emchar_string'.
3348         (create_text_block): Modify for <struct rune> change.
3349         (generate_formatted_string_db): Likewise.
3350         (create_string_text_block): Likewise.
3351         (pixel_to_glyph_translation): Likewise.
3352
3353         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3354         instead of <const Emchar *>.
3355         (x_text_width): Likewise.
3356         (x_output_display_block): Use <Charc_dynarr *> instead
3357         <Emchar_dynarr *>; modify for <structure rune> change.
3358         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3359         *>.
3360
3361         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3362         <const Emchar *>; use `charc_string_displayed_columns' instead of
3363         `emchar_string_displayed_columns'.
3364         (tty_output_display_block): Use <Charc_dynarr *> instead of
3365         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3366         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3367         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3368         `tty_output_emchar_dynarr_dynarr'.
3369         (tty_output_charc_dynarr): New function; delete
3370         `tty_output_charc_dynarr'.
3371
3372         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3373         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3374         <Emchar_dynarr *> for buf; use
3375         `convert_bufbyte_string_into_charc_dynarr' instead of
3376         `convert_bufbyte_string_into_emchar_dynarr'.
3377
3378         * frame.c (title_string_charc_dynarr): New variable; renamed from
3379         `title_string_emchar_dynarr'.
3380         (generate_title_string): Use `title_string_charc_dynarr' instead
3381         of `title_string_emchar_dynarr'; use
3382         `convert_charc_string_into_malloced_string' instead of
3383         `convert_emchar_string_into_malloced_string'.
3384         (init_frame): Use `title_string_charc_dynarr' instead of
3385         `title_string_emchar_dynarr'.
3386
3387         * console.h:
3388         - Include "character.h".
3389         (struct console_methods): Use <const Charc *> instead of <const
3390         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3391         <Emchar_dynarr *> in output_string_method.
3392
3393         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3394         <Emchar_dynarr *>.
3395
3396         * console-stream.c (stream_text_width): Use <const Charc *>
3397         instead of <const Emchar *>.
3398
3399         * character.h (Charc_dynarr): New type.
3400
3401         * char-ucs.h (structure Charc): New structure; define new type
3402         `Charc'.
3403
3404         * char-lb.h (DECODE_CHAR): New inline function.
3405         (encode_char_1): New inline function.
3406         (ENCODE_CHAR): New macro.
3407         (structure Charc): New structure; define new type `Charc'.
3408
3409         * char-1byte.h (Vcharset_control_1): New macro.
3410         (Vcharset_latin_iso8859_1): New macro.
3411         (DECODE_CHAR): New inline function.
3412         (encode_char_1): New inline function.
3413         (ENCODE_CHAR): New macro.
3414         (structure Charc): New structure; define new type `Charc'.
3415
3416         * insdel.c (find_charsets_in_charc_string): New function; delete
3417         `find_charsets_in_emchar_string'.
3418         (charc_string_displayed_columns): New function; delete
3419         `emchar_string_displayed_columns'.
3420         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3421         `convert_bufbyte_string_into_emchar_dynarr'.
3422         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3423         `convert_charc_string_into_bufbyte_dynarr'.
3424         (convert_charc_string_into_malloced_string): New function; delete
3425         `convert_charc_string_into_malloced_string'.
3426
3427         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3428         `find_charsets_in_emchar_string'.
3429         (charc_string_displayed_columns): New prototype; delete
3430         `emchar_string_displayed_columns'.
3431         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3432         `convert_charc_string_into_bufbyte_dynarr'.
3433         (convert_charc_string_into_malloced_string): New prototype; delete
3434         `convert_charc_string_into_malloced_string'.
3435
3436 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3437
3438         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3439
3440 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3441
3442         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3443
3444         * char-ucs.h: Use <short> for <Charset_ID>.
3445
3446         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3447         <Charset_ID>.
3448
3449 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3450
3451         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3452         to 0.16.
3453
3454 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3455
3456         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3457         variable.
3458         (Qmorohashi_daikanwa): New variable.
3459         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3460         for `morohashi-daikanwa' attribute.
3461         (Fget_char_attribute): Likewise.
3462         (Fput_char_attribute): Likewise.
3463         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3464         has the same value of `ideograph-daikanwa'.
3465         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3466         (vars_of_mule_charset): Setup
3467         `Vcharacter_morohashi_daikanwa_table'.
3468
3469 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3470
3471         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3472         attributes.
3473         (add_charset_to_list_mapper): Add `key' instead of
3474         `XCHARSET_NAME (value)' to return aliases.
3475
3476 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3477
3478         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3479         variable.
3480         (Vcharacter_ideographic_strokes_table): New variable.
3481         (Qideographic_radical): New variable.
3482         (Qideographic_strokes): New variable.
3483         (Fchar_attribute_alist): Use
3484         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3485         attribute; use `Vcharacter_ideographic_strokes_table' for
3486         `ideographic-strokes' attribute.
3487         (Fget_char_attribute): Likewise.
3488         (Fput_char_attribute): Likewise.
3489         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3490         `ideographic-strokes'.
3491         (vars_of_mule_charset): Setup
3492         `Vcharacter_ideographic_radical_table' and
3493         `Vcharacter_ideographic_strokes_table'.
3494
3495 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3496
3497         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3498         (Qtotal_strokes): New variable.
3499         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3500         `total-strokes' attribute.
3501         (Fget_char_attribute): Likewise.
3502         (Fput_char_attribute): Likewise.
3503         (syms_of_mule_charset): Add new symbol `total-strokes'.
3504         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3505
3506 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3507
3508         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3509         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3510         are found.
3511         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3512         `->decomposition' attribute.
3513         (Fput_char_attribute): Likewise.
3514         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3515
3516 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3517
3518         * mule-charset.c (decoding_table_check_elements): New function.
3519         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3520
3521 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3522
3523         * mule-charset.c (Fset_charset_mapping_table): Use
3524         `put_char_ccs_code_point'.
3525
3526 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3527
3528         * mule-charset.c (decoding_table_put_char): New inline function.
3529         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3530
3531 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3532
3533         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3534         (XCHARSET_BYTE_SIZE): New macro.
3535         (decoding_table_remove_char): New inline function.
3536         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3537         `decoding_table_remove_char'.
3538         (remove_char_ccs): Use `decoding_table_remove_char'.
3539         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3540
3541 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3542
3543         * mule-charset.c (Vcharacter_name_table): New variable.
3544         (Qname): New variable.
3545         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3546         attribute.
3547         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3548         `Vcharacter_name_table' for `name' attribute.
3549         (Fremove_char_attribute): Use function `remove_char_ccs'.
3550         (put_char_ccs_code_point): New function.
3551         (remove_char_ccs): New function.
3552         (syms_of_mule_charset): Add new symbol `name'.
3553         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3554
3555 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3556
3557         * mule-charset.c (make_byte_table): Add new argument `older'.
3558         (make_char_id_table): Likewise.
3559         (copy_char_id_table): Comment out because it is not used.
3560         (put_char_id_table): Modify for `make_byte_table'.
3561         (Fput_char_attribute): Make encoding_table as older object;
3562         inherit older bit of `Vcharacter_composition_table'.
3563         (mark_charset): Don't mark `cs->encoding_table'.
3564         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3565         normal object; make `Vcharacter_composition_table' as an older
3566         object; delete staticpro for `Vcharacter_composition_table'; make
3567         `Vcharacter_variant_table' as a normal object.
3568
3569         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3570         (mark_object): Don't check older object in UTF-2000.
3571
3572         * lrecord.h (struct lrecord_header): Add new member `older' in
3573         UTF-2000.
3574         (set_lheader_implementation): Setup `SLI_header->older' in
3575         UTF-2000.
3576         (set_lheader_older_implementation): New macro in UTF-2000.
3577         (OLDER_RECORD_P): New macro in UTF-2000.
3578         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3579         (alloc_older_lcrecord): New prototype in UTF-2000.
3580         (alloc_older_lcrecord_type): New macro in UTF-2000.
3581
3582 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3583
3584         * mule-charset.c (byte_table_description): Use
3585         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3586         (char_id_table_description): Delete bogus `, 1'.
3587         (Fget_char_attribute): Refer encoding_table of each coded-charset
3588         to get value of coded-charset attribute of a character.
3589         (Fput_char_attribute): Use `make_older_vector' instead of
3590         `make_vector'; use encoding_table of each coded-charset to store
3591         value of coded-charset attribute of a character.
3592         (Fremove_char_attribute): Use encoding_table of each coded-charset
3593         to store value of coded-charset attribute of a character.
3594         (mark_charset): Mark `cs->encoding_table'; don't mark
3595         `cs->decoding_table'.
3596         (charset_description): Add description of new member
3597         `encoding_table'.
3598         (make_charset): Initialize `encoding_table'.
3599
3600         * char-ucs.h (struct Lisp_Charset): Add new member
3601         `encoding_table'.
3602         (CHARSET_ENCODING_TABLE): New macro.
3603         (XCHARSET_ENCODING_TABLE): New macro.
3604         (charset_code_point): New implementation.
3605         (encode_char_1): Likewise.
3606
3607         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3608         (disksave_object_finalization_1): Call finalizers of
3609         `all_older_lcrecords' in UTF-2000.
3610         (make_older_vector): New function in UTF-2000.
3611         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3612         UTF-2000.
3613
3614         * lisp.h (make_older_vector): New prototype in UTF-2000.
3615
3616 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3617
3618         * lrecord.h (enum lrecord_type): Rename
3619         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3620
3621         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3622         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3623         `get_char_code_table'.
3624
3625         * mule-charset.c (mark_char_id_table): Renamed from
3626         `mark_char_code_table'.
3627         (char_id_table_equal): Renamed from `char_code_table_equal'.
3628         (char_id_table_hash): Renamed from `char_code_table_hash'.
3629         (make_char_id_table): Renamed from `make_char_code_table'.
3630         (copy_char_id_table): Renamed from `copy_char_code_table'.
3631         (get_char_id_table): Renamed from `get_char_code_table'.
3632         (put_char_id_table): Renamed from `put_char_code_table'.
3633         (to_char_id): Renamed from `to_char_code'.
3634
3635         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3636         `Lisp_Char_Code_Table'.
3637         (char_id_table): Renamed from `char_code_table'.
3638         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3639         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3640         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3641         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3642         (get_char_id_table): Renamed from `get_char_code_table'.
3643
3644 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3645
3646         * lrecord.h (enum lrecord_type): Rename
3647         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3648
3649         * mule-charset.c (mark_byte_table): Renamed from
3650         `mark_char_byte_table'.
3651         (byte_table_equal): Renamed from `char_byte_table_equal'.
3652         (byte_table_hash): Renamed from `byte_table_hash'.
3653         (make_byte_table): Renamed from `make_byte_table'.
3654         (copy_byte_table): Renamed from `copy_char_byte_table'.
3655
3656         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3657         `Lisp_Char_Byte_Table'.
3658         (byte_table): Renamed from `char_byte_table'.
3659         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3660         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3661         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3662         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3663
3664 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3665
3666         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3667         (dfc_convert_to_internal_format): Likewise.
3668         
3669         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3670         * text-coding.c (Fcoding_system_alias_p): New function.
3671         * text-coding.c (Fcoding_system_aliasee): New function.
3672         * text-coding.c (append_suffix_to_symbol): New function.
3673         * text-coding.c (dangling_coding_system_alias_p): New function.
3674         * text-coding.c (Ffind_coding_system):
3675         * text-coding.c (Fcopy_coding_system):
3676         * text-coding.c (encode_coding_no_conversion):
3677         * text-coding.c (syms_of_file_coding):
3678         * text-coding.c (vars_of_file_coding):
3679         Rewrite coding system alias code.
3680         Allow nested aliases, like symbolic links.
3681         Allow redefinition of coding system aliases.
3682         Prevent existence of dangling coding system aliases.
3683         Eliminate convert_to_external_format.
3684         Eliminate convert_to_internal_format.
3685         
3686         * text-coding.c: Change enum eol_type to eol_type_t.
3687
3688 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3689
3690         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3691         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3692
3693         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3694         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3695
3696 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3697
3698         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3699         `ideograph-daikanwa'.
3700
3701         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3702         (Vcharset_ucs_bmp): Likewise.
3703         (Vcharset_mojikyo): Add new extern variable definition.
3704         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3705         (Vcharset_latin_iso8859_3): Likewise.
3706         (Vcharset_latin_iso8859_4): Likewise.
3707         (Vcharset_latin_iso8859_9): Likewise.
3708         (Vcharset_latin_viscii_lower): Likewise.
3709         (Vcharset_latin_viscii_upper): Likewise.
3710         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3711         `mojikyo' code-point is used to decode.
3712         (encode_char_2): New function [to convert `mojikyo' code-point to
3713         Mojikyo font encoding].
3714         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3715         (breakup_char_1): Likewise.
3716         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3717
3718 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3719
3720         * text-coding.c (Fmake_coding_system): Add document about
3721         `disable-composition' property.
3722
3723 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3724
3725         * text-coding.c (Qdisable_composition): New variable; delete
3726         `Qcomposite'.
3727         (Fmake_coding_system): Add new property `disable-composite';
3728         delete property `composite'.
3729         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3730         instead of `!CODING_SYSTEM_COMPOSITE'.
3731         (syms_of_file_coding): Add new symbol `disable-composition';
3732         delete symbol `composite'.
3733
3734         * file-coding.h (struct Lisp_Coding_System): Add
3735         `disable_composition'; delete `enable_composition'.
3736         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3737         `CODING_SYSTEM_COMPOSITE'.
3738         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3739         `XCODING_SYSTEM_COMPOSITE'.
3740
3741 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3742
3743         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3744         to 0.15.
3745
3746 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3747
3748         * text-coding.c (Qcomposite): New variable.
3749         (Fmake_coding_system): Add new property `composite'.
3750         (struct decoding_stream): Add `combined_char_count',
3751         `combined_chars' and `combining_table' in UTF-2000.
3752         (COMPOSE_FLUSH_CHARS): New macro.
3753         (COMPOSE_ADD_CHAR): New macro.
3754         (reset_decoding_stream): Reset `str->combined_char_count' and
3755         `str->combining_table' in UTF-2000.
3756         (decode_coding_iso2022): Modify for character-decomposition.
3757         (syms_of_file_coding): Add new symbol `composite'.
3758
3759 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3760
3761         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3762         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3763         of `Vcharacter_composition_table' if `->decomposition' property
3764         has only 1 element.
3765         (Qlatin_tcvn5712): New variable.
3766         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3767         (complex_vars_of_mule_charset): Add new coded-charset
3768         `latin-tcvn5712'.
3769
3770         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3771
3772 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3773
3774         * file-coding.h (struct Lisp_Coding_System): Add
3775         `enable_composition'.
3776         (CODING_SYSTEM_COMPOSITE): New macro.
3777         (XCODING_SYSTEM_COMPOSITE): New macro.
3778
3779 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3780
3781         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3782
3783 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3784
3785         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3786         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3787
3788 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3789
3790         * mule-charset.c (Vcharset_mojikyo): New variable.
3791         (Fdefine_char): Don't use coded-charset which does not have
3792         non-builtin character range to allocate character-id.
3793         (Qmojikyo): New variable.
3794         (syms_of_mule_charset): Add new symbol `mojikyo'.
3795         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3796
3797         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3798         (LEADING_BYTE_MOJIKYO): New macro.
3799         (MIN_CHAR_MOJIKYO): New macro.
3800         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3801         (MAX_CHAR_MOJIKYO): New macro.
3802
3803 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3804
3805         * mule-charset.c (remove_char_attribute): Fixed.
3806
3807 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3808
3809         * mule-charset.c (remove_char_attribute): New function.
3810         (Fremove_char_attribute): New function.
3811         (encode_builtin_char_1): Comment out builtin-support for
3812         greek-iso8859-7 and cyrillic-iso8859-5.
3813         (Fdecode_char): Check `code' is an integer.
3814         (syms_of_mule_charset): Add `remove-char-attribute'.
3815         (MIN_CHAR_GREEK): Deleted.
3816         (MAX_CHAR_GREEK): Likewise.
3817         (MIN_CHAR_CYRILLIC): Likewise.
3818         (MAX_CHAR_CYRILLIC): Likewise.
3819         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3820         MAX_CHAR_GREEK for `greek-iso8859-7'.
3821
3822         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3823         (MAX_CHAR_GREEK): Likewise.
3824         (MIN_CHAR_CYRILLIC): Likewise.
3825         (MAX_CHAR_CYRILLIC): Likewise.
3826
3827 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3828
3829         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3830         format is used without `ucs' property.
3831         (Fdecode_char): Fix problem with GR representation.
3832         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3833         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3834
3835 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3836
3837         * mule-charset.c (make_builtin_char): New function.
3838         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3839         (Fset_charset_mapping_table): Modify for new representation of
3840         code-point.
3841         (Fdecode_char): New function.
3842         (syms_of_mule_charset): Add new builtin function `decode-char' in
3843         UTF-2000.
3844
3845         * char-ucs.h (make_builtin_char): New prototype.
3846         (DECODE_CHAR): New inline function.
3847         (MAKE_CHAR): Use `DECODE_CHAR'.
3848
3849 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3850
3851         * text-coding.c (parse_charset_conversion_specs): Use
3852         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3853         `XCHARSET_TYPE'.
3854         (iso2022_designate): Likewise.
3855
3856         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3857         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3858
3859         * mule-charset.c (Vcharset_ucs): New variable.
3860         (print_charset): Change design; use `CHARSET_CHARS' and
3861         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3862         (make_charset): Change signature to specify `chars' and
3863         `dimension' instead of `type'.
3864         (range_charset_code_point): Modify for 256^n-set.
3865         (encode_builtin_char_1): Encode as `ucs' in default.
3866         (Fmake_charset): Modify for `make_charset'.
3867         (Fmake_reverse_direction_charset): Likewise.
3868         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3869         UTF-2000.
3870         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3871         for `make_charset'.
3872
3873         * char-ucs.h (Vcharset_ucs): New variable.
3874         (LEADING_BYTE_UCS): New macro.
3875         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3876         and `chars' to `unsigned short' from `unsigned int'.
3877         (CHARSET_TYPE): Deleted.
3878         (XCHARSET_TYPE): Deleted.
3879
3880 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3881
3882         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3883
3884         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3885         (ENCODE_CHAR): New macro.
3886
3887 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3888
3889         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3890         to 0.14 (Kawachi-Katakami).
3891
3892 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3893
3894         * text-coding.c (char_encode_shift_jis): Modify for
3895         `charset_code_point'.
3896         (char_encode_iso2022): Likewise.
3897
3898         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3899         (integer) instead of list of <Lisp_Object>s (integers) as the
3900         format of code-point of a coded-charset.
3901         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3902         (encode_builtin_char_1): New function; delete
3903         `split_builtin_char'.
3904         (charset_code_point): Return <int> instead of <Lisp_Object>.
3905         (Fsplit_char): Don't use `SPLIT_CHAR'.
3906
3907         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3908         prototype for `split_builtin_char'.
3909         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3910         (charset_code_point): Likewise.
3911         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3912         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3913
3914 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3915
3916         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3917         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3918
3919 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3920
3921         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3922
3923         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3924         (MAX_CHAR_OBS_94x94): Deleted.
3925
3926 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3927
3928         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3929
3930         * char-ucs.h (MAX_CHAR_BMP): New macro.
3931
3932 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3933
3934         * text-coding.c: Sync with r21-2-24.
3935
3936 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3937
3938         * file-coding.c: Modify for UTF-2000.
3939
3940 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3941
3942         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3943         to 0.13 (Takaida).
3944
3945 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3946
3947         * mule-charset.c (split_builtin_char): Delete builtin support for
3948         `katakana-jisx0201'.
3949         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3950         BMP area in builtin representation.
3951
3952         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3953         `Vcharset_katakana_jisx0201'.
3954
3955 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3956
3957         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3958         (Qisolated): New variable.
3959         (Qinitial): New variable.
3960         (Qmedial): New variable.
3961         (Qfinal): New variable.
3962         (Qvertical): New variable.
3963         (Qsmall): New variable.
3964         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3965         `Qvertical' and `Qsmall'.
3966         (Qmojikyo_pj_[1 .. 21]): New variable.
3967         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3968         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3969         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3970         .. 21]'.
3971
3972 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3973
3974         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3975         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3976         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3977
3978 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3979
3980         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3981         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3982         BMP.
3983         (Qjapanese_jisx0208_1990): New variable.
3984         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3985         (complex_vars_of_mule_charset): Add new coded-charset
3986         `japanese-jisx0208-1990'.
3987
3988         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3989         (MIN_CHAR_JIS_X0208_1990): New macro.
3990         (MAX_CHAR_JIS_X0208_1990): New macro.
3991
3992 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3993
3994         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3995         coded-charset is not found.
3996
3997 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3998
3999         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4000         (Fdefine_char): Use `Fmake_char'.
4001
4002 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4003
4004         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4005         (Vcharset_hiragana_jisx0208): Deleted.
4006         (Vcharset_katakana_jisx0208): Deleted.
4007         (Qideograph_daikanwa): New variable.
4008         (Qhiragana_jisx0208): Deleted.
4009         (Qkatakana_jisx0208): Deleted.
4010         (split_builtin_char): Split `ideograph-daikanwa'.
4011         (Fsplit_char): New implementation for UTF-2000.
4012         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4013         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4014         (complex_vars_of_mule_charset): Add new coded-charset
4015         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4016         `katakana-jisx0208'.
4017
4018         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4019         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4020         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4021         (MIN_CHAR_DAIKANWA): New macro.
4022         (MAX_CHAR_DAIKANWA): New macro.
4023
4024 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4025
4026         * data.c (Fstring_to_number): Don't recognize floating point if
4027         base is not 10.
4028
4029 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4030
4031         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4032
4033 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4034
4035         * mule-charset.c (Qsquare): New variable.
4036         (to_char_code): Add `Qsquare'.
4037         (syms_of_mule_charset): Add new symbol `square'.
4038
4039 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4040
4041         * mule-charset.c (Qcircle): New variable.
4042         (to_char_code): Add `Qcircle'.
4043         (syms_of_mule_charset): Add new symbol `circle'.
4044
4045 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4046
4047         * mule-charset.c (Qfont): New variable.
4048         (to_char_code): Add `Qfont'.
4049         (syms_of_mule_charset): Add new symbol `font'.
4050
4051 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4052
4053         * mule-charset.c (Qsub): New variable.
4054         (to_char_code): Add `Qsub'.
4055         (syms_of_mule_charset): Add new symbol `sub'.
4056
4057 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4058
4059         * mule-charset.c (Fput_char_attribute): Convert each element of
4060         VALUE to GL position if ATTRIBUTE is a GR-set,
4061
4062 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4063
4064         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4065         coded-charset is a GR-set.
4066
4067 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4068
4069         * mule-charset.c (Fput_char_attribute): Check each element of
4070         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4071
4072 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4073
4074         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4075         UTF-2000.
4076         (Qethiopic_ucs): New variable in UTF-2000.
4077         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4078         (complex_vars_of_mule_charset): Add new coded-charset
4079         `ethiopic-ucs' in UTF-2000.
4080
4081         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4082         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4083         9)'.
4084         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4085         10)'.
4086         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4087
4088 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4089
4090         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4091         `ascii'.
4092
4093 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4094
4095         * mule-charset.c (Vcharacter_variant_table): New variable.
4096         (Q_ucs): New variable.
4097         (Fchar_variants): New function.
4098         (Fput_char_attribute): Register `->ucs' value to
4099         `Vcharacter_variant_table'.
4100         (syms_of_mule_charset): Add new function `char-variants' and new
4101         symbol `->ucs'.
4102         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4103
4104 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4105
4106         * mule-charset.c (get_char_code_table): Allow negative character
4107         code.
4108         (put_char_code_table): Likewise.
4109         (Vcharacter_composition_table): New variable.
4110         (Q_decomposition): New variable.
4111         (Qwide): New variable.
4112         (Qnarrow): New variable.
4113         (Qcompat): New variable.
4114         (QnoBreak): New variable.
4115         (Qsuper): New variable.
4116         (Qfraction): New variable.
4117         (to_char_code): New function.
4118         (Fget_composite_char): New function.
4119         (Fput_char_attribute): Register `->decomposition' value to
4120         `Vcharacter_composition_table'.
4121         (syms_of_mule_charset): Add new function `get-composite-char', new
4122         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4123         `super' and `fraction'.
4124         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4125
4126 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4127
4128         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4129         character; copy the return value.
4130
4131 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4132
4133         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4134
4135         * mule-charset.c (range_charset_code_point): Must use make_int.
4136         (split_builtin_char): New function.
4137
4138 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4139
4140         * mule-charset.c (char_byte_table): Change name from
4141         "char-code-table" to "char-byte-table".
4142         (mark_char_code_table): New function.
4143         (char_code_table_equal): New function.
4144         (char_code_table_hash): New function.
4145         (char_code_table_description): New constant.
4146         (char_code_table): New type.
4147         (make_char_code_table): New function.
4148         (copy_char_code_table): New function.
4149         (get_char_code_table): Modify for `char_code_table' type.
4150         (put_char_code_table): Likewise.
4151         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4152         (Kashiwara).
4153
4154         * char-ucs.h (char_code_table): New type.
4155         (XCHAR_CODE_TABLE): New macro.
4156         (XSETCHAR_CODE_TABLE): New macro.
4157         (CHAR_CODE_TABLE_P): New macro.
4158         (GC_CHAR_CODE_TABLE_P): New macro.
4159         (struct Lisp_Char_Code_Table): New structure.
4160
4161 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4162
4163         * mule-charset.c (Fmake_charset): Setup byte_offset for
4164         {94|96}^n-set.
4165
4166 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4167
4168         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4169         character.
4170
4171 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4172
4173         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4174         is found.
4175
4176 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4177
4178         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4179         charset, it is regarded as a charset.
4180         (put_char_attribute): New function in UTF-2000.
4181         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4182         charset, mapping-table of the charset is modified.
4183         (Fdefine_char): New function in UTF-2000.
4184         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4185         `Fput_char_attribute'.
4186         (syms_of_mule_charset): Add new function `define-char' and new
4187         symbol `ucs' in UTF-2000.
4188         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4189
4190 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4191
4192         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4193         non-UTF-2000 configuration.
4194
4195 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4196
4197         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4198         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4199
4200         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4201         deleted.
4202         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4203         (Fset_charset_mapping_table): Likewise.
4204
4205         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4206         (CHARSET_ENCODING_TABLE): Delete.
4207         (XCHARSET_ENCODING_TABLE): Delete.
4208         (charset_code_point): New interface.
4209
4210 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4211
4212         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4213         instead of `charset_get_byte1' and `charset_get_byte2'.
4214
4215         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4216         (charset_get_byte2): Deleted.
4217
4218 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4219
4220         * char-ucs.h (SPLIT_CHAR): New inline function.
4221         (breakup_char_1): Use `SPLIT_CHAR'.
4222
4223         * mule-charset.c (range_charset_code_point): New function.
4224         (charset_code_point): New function.
4225
4226         * char-ucs.h (range_charset_code_point): New interface.
4227         (breakup_char_1): Use `range_charset_code_point'.
4228
4229 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4230
4231         * mule-charset.c (Fmake_charset): Delete unused local variable
4232         `code_offset'.
4233
4234         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4235         (breakup_char_1): Find a charset and code-point in
4236         `Vcharacter_attribute_table'.
4237
4238 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4239
4240         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4241         to 0.10 (Yao).
4242
4243 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4244
4245         * mule-charset.c (Vcharacter_attribute_table): New variable.
4246         (Fchar_attribute_alist): New function.
4247         (Fget_char_attribute): New function.
4248         (Fput_char_attribute): New function.
4249         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4250         too.
4251         (syms_of_mule_charset): Add new function `char-attribute-alist',
4252         `get-char-attribute' and `put-char-attribute'.
4253         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4254
4255 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4256
4257         * mule-charset.c (Fmake_charset): Just use
4258         `get_unallocated_leading_byte'.
4259
4260         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4261         sets; don't use final-byte based number for private sets.
4262
4263 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4264
4265         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4266         integer.
4267
4268 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4269
4270         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4271         to 0.9.
4272
4273 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4274
4275         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4276         of `CHAR_LEADING_BYTE' in UTF-2000.
4277
4278         * insdel.c (find_charsets_in_bufbyte_string): Use
4279         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4280         (find_charsets_in_emchar_string): Likewise.
4281
4282         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4283         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4284
4285         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4286         (CHAR_CHARSET_ID): New macro.
4287
4288 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4289
4290         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4291         charset-id - MIN_LEADING_BYTE.
4292         (put_char_table): Likewise.
4293
4294 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4295
4296         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4297         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4298         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4299         (CHARSET_ID_OFFSET): New macro.
4300         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4301         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4302         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4303         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4304         4).
4305         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4306         5).
4307         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4308         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4309         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4310         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4311         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4312
4313 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4314
4315         * mule-charset.c (next_allocated_leading_byte): New variable in
4316         UTF-2000.
4317         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4318         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4319         (get_unallocated_leading_byte): Simply use
4320         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4321         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4322         UTF-2000.
4323
4324         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4325         (MAX_LEADING_BYTE_PRIVATE): New macro.
4326         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4327         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4328
4329 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4330
4331         * mule-charset.c (Fmake_charset): Allocate final-byte based
4332         charset-id for 94-set, 96-set and 94x94-set.
4333
4334 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4335
4336         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4337         ambiguous `else'.
4338         (Fmake_charset): Likewise.
4339         (complex_vars_of_mule_charset): Modify the font registry of
4340         `ucs-bmp' not to match `Ethiopic-Unicode'.
4341
4342 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4343
4344         * mule-charset.c (complex_vars_of_mule_charset): Add font
4345         registory of `ucs-bmp'.
4346
4347 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4348
4349         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4350         coded-charsets in `default-coded-charset-priority-list' when
4351         breaking up a character.
4352
4353         * mule-charset.c (Vcharset_latin_viscii): New variable.
4354         (Qlatin_viscii): New variable.
4355         (make_charset): Don't use `decoding_table'.
4356         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4357         byte_offset.
4358         (Fset_charset_mapping_table): New implementation.
4359         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4360         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4361         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4362         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4363         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4364         charset `latin_viscii'.
4365
4366         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4367         (CHARSET_TYPE_94X94): Change to 1 from 2.
4368         (CHARSET_TYPE_96): Change to 2 from 1.
4369         (CHARSET_TYPE_128): New macro.
4370         (CHARSET_TYPE_128X128): Change to 5 from 4.
4371         (CHARSET_TYPE_256): New macro.
4372         (CHARSET_TYPE_256X256): Change to 7 from 5.
4373         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4374
4375 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4376
4377         * text-coding.c (char_encode_shift_jis): Refer
4378         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4379         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4380
4381         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4382         (char_byte_table_equal): New function in UTF-2000.
4383         (char_byte_table_hash): New function in UTF-2000.
4384         (char_byte_table_description): New constant in UTF-2000.
4385         (char_byte_table): New type in UTF-2000.
4386         (make_char_byte_table): New function in UTF-2000.
4387         (copy_char_byte_table): New function in UTF-2000.
4388         (make_char_code_table): New macro in UTF-2000.
4389         (get_char_code_table): New function in UTF-2000.
4390         (put_char_code_table): New function in UTF-2000.
4391         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4392         (charset_description): Add setting in UTF-2000.
4393         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4394         `CHARSET_TO_BYTE1_TABLE(cs)'.
4395         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4396         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4397         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4398         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4399         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4400         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4401         `CHARSET_TO_BYTE2_TABLE(cs)'.
4402
4403         * char-ucs.h (char_byte_table): New type.
4404         (XCHAR_BYTE_TABLE): New macro.
4405         (XSETCHAR_BYTE_TABLE): New macro.
4406         (CHAR_BYTE_TABLE_P): New macro.
4407         (GC_CHAR_BYTE_TABLE_P): New macro.
4408         (struct Lisp_Char_Byte_Table): New structure.
4409         (get_char_code_table): New interface.
4410         (Emchar_to_byte_table): Deleted.
4411         (get_byte_from_character_table): Deleted.
4412         (struct Lisp_Charset): Add `encoding_table'; delete
4413         `to_byte1_table' and `to_byte2_table'.
4414         (CHARSET_ENCODING_TABLE): New macro.
4415         (CHARSET_TO_BYTE1_TABLE): Deleted.
4416         (CHARSET_TO_BYTE2_TABLE): Deleted.
4417         (XCHARSET_ENCODING_TABLE): New macro.
4418         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4419         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4420
4421 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4422
4423         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4424         `vietnamese-viscii-*'.
4425
4426 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4427
4428         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4429         (Qvietnamese_viscii_upper): New variable.
4430         (Fdefine_charset_alias): New function.
4431         (syms_of_mule_charset): Add new function `define-charset-alias'.
4432         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4433         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4434         `latin-viscii-*'.
4435
4436 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4437
4438         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4439         (MAX_CHAR_OBS_94x94): New macro.
4440         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4441         for 94x94 sets.
4442
4443         * mule-charset.c (put_byte_from_character_table): Change unit size
4444         from 128 to 256.
4445         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4446         not defined.
4447         (Fmake_reverse_direction_charset): Modify dummy argument of
4448         `make_charset' for non-UTF-2000 environment.
4449
4450 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4451
4452         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4453
4454         * mule-charset.c (destroy_byte_from_character_table): New macro.
4455         (latin_jisx0201_to_ucs): Deleted.
4456         (latin_iso8859_2_to_ucs): Deleted.
4457         (latin_iso8859_3_to_ucs): Deleted.
4458         (latin_iso8859_4_to_ucs): Deleted.
4459         (latin_iso8859_9_to_ucs): Deleted.
4460         (latin_viscii_lower_to_ucs): Deleted.
4461         (latin_viscii_upper_to_ucs): Deleted.
4462         (mark_charset): Mark `cs->decoding_table'.
4463         (Fcharset_mapping_table): Fix DOC-string.
4464         (Fset_charset_mapping_table): New function.
4465         (syms_of_mule_charset): Add nwe function
4466         `set-charset-mapping-table'.
4467         (complex_vars_of_mule_charset): Don't setup and use
4468         `latin_*_to_ucs'.
4469
4470 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4471
4472         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4473         charset.
4474
4475 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4476
4477         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4478         (Vcharset_katakana_jisx0208): New variable.
4479         (Qhiragana_jisx0208): New variable.
4480         (Qkatakana_jisx0208): New variable.
4481         (make_charset): Add new argument `byte_offset'.
4482         (charset_get_byte1): Modify for new coded-charset definition; use
4483         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4484         `XCHARSET_BYTE_OFFSET'.
4485         (Fmake_charset): Modify for `make_charset'.
4486         (Fmake_reverse_direction_charset): Likewise.
4487         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4488         `katakana-jisx0208'.
4489         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4490         `.'  in font registry of charset `katakana-jisx0201',
4491         `latin-jisx0201', `vietnamese-viscii-lower' and
4492         `vietnamese-viscii-upper'; modify DOC-string of charset
4493         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4494         registry of charset `japanese-jisx0208' not to use font for JIS
4495         X0208:1990; add new charset `hiragana-jisx0208' and
4496         `katakana-jisx0208'.
4497
4498         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4499         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4500         (struct Lisp_Charset): Add `byte_offset'.
4501         (CHARSET_BYTE_OFFSET): New macro.
4502         (XCHARSET_UCS_MIN): New macro.
4503         (XCHARSET_UCS_MAX): New macro.
4504         (XCHARSET_CODE_OFFSET): New macro.
4505         (XCHARSET_BYTE_OFFSET): New macro.
4506         (MIN_CHAR_HIRAGANA): New macro.
4507         (MAX_CHAR_HIRAGANA): New macro.
4508         (MIN_CHAR_KATAKANA): New macro.
4509         (MAX_CHAR_KATAKANA): New macro.
4510         (MAKE_CHAR): Modify for new coded-charset definition; use
4511         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4512         `XCHARSET_BYTE_OFFSET'.
4513
4514 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4515
4516         * mule-charset.c (CHAR96): Deleted.
4517         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4518         <Lisp_Object>.
4519         (latin_iso8859_2_to_ucs): Likewise.
4520         (latin_iso8859_3_to_ucs): Likewise.
4521         (latin_iso8859_4_to_ucs): Likewise.
4522         (latin_iso8859_9_to_ucs): Likewise.
4523         (latin_viscii_lower_to_ucs): Likewise.
4524         (latin_viscii_upper_to_ucs): Likewise.
4525         (latin_tcvn5712_to_ucs): Commented out.
4526         (make_charset): Change type of argument `decoding_table' from
4527         <Emchar*> to <Lisp_Object> [vector of characters].
4528         (Fmake_charset): Modify for `make_charset'.
4529         (Fmake_reverse_direction_charset): Likewise.
4530         (Fcharset_mapping_table): New function in UTF-2000.
4531         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4532         UTF-2000.
4533         (complex_vars_of_mule_charset): Modify for type change of
4534         `*_to_ucs'; modify for `make_charset'.
4535
4536         * char-ucs.h (struct Lisp_Charset): Change type of
4537         `decoding_table' from <Emchar*> to <Lisp_Object>.
4538         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4539
4540 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4541
4542         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4543         error with non-UTF-2000-Mule.
4544
4545 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4546
4547         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4548         in lisp again].
4549         (Vcharset_chinese_cns11643_4): Likewise.
4550         (Vcharset_chinese_cns11643_5): Likewise.
4551         (Vcharset_chinese_cns11643_6): Likewise.
4552         (Vcharset_chinese_cns11643_7): Likewise.
4553         (Qchinese_cns11643_3): Likewise.
4554         (Qchinese_cns11643_4): Likewise.
4555         (Qchinese_cns11643_5): Likewise.
4556         (Qchinese_cns11643_6): Likewise.
4557         (Qchinese_cns11643_7): Likewise.
4558         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4559         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4560         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4561         (complex_vars_of_mule_charset): Likewise.
4562
4563 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4564
4565         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4566         96-set.
4567         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4568         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4569
4570 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4571
4572         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4573         0xFF60.
4574         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4575         (breakup_char_1): Likewise.
4576
4577         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4578         one of them includes the specified character.
4579
4580 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4581
4582         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4583
4584 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4585
4586         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4587
4588 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4589
4590         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4591         definition for non-UTF-2000 Mule.
4592         (latin_iso8859_3_to_ucs): Likewise.
4593         (latin_iso8859_4_to_ucs): Likewise.
4594         (latin_iso8859_9_to_ucs): Likewise.
4595         (latin_jisx0201_to_ucs): Likewise.
4596         (MIN_CHAR_THAI): Likewise.
4597         (MAX_CHAR_THAI): Likewise.
4598         (MIN_CHAR_GREEK): Likewise.
4599         (MAX_CHAR_GREEK): Likewise.
4600         (MIN_CHAR_HEBREW): Likewise.
4601         (MAX_CHAR_HEBREW): Likewise.
4602         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4603         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4604         (MIN_CHAR_CYRILLIC): Likewise.
4605         (MAX_CHAR_CYRILLIC): Likewise.
4606
4607 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4608
4609         * char-ucs.h (breakup_char_1): Use
4610         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4611         thai-tis620 and katakana-jisx0201 area.
4612
4613 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4614
4615         * char-ucs.h (breakup_char_1): Use
4616         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4617         area.
4618
4619         * text-coding.c (reset_encoding_stream): Fixed.
4620         (char_encode_ucs4): Delete `& 255'.
4621
4622         * char-ucs.h (breakup_char_1): Use
4623         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4624
4625 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4626
4627         * file-coding.c (Fmake_coding_system): Don't set up
4628         `codesys->fixed.size'.
4629         (encode_coding_no_conversion): Don't refer
4630         `str->codesys->fixed.size'.
4631
4632 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4633
4634         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4635         (latin_a_char_to_byte1): Deleted.
4636         (latin_a_char_to_byte2): Deleted.
4637
4638 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4639
4640         * mule-charset.c (make_charset): Add new argument `ucs_min',
4641         `ucs_max' and `code_offset'.
4642         (charset_get_byte1): New implementation [delete specific charset
4643         depended implementations].
4644         (Fmake_charset): Modify for `make_charset'.
4645         (Fmake_reverse_direction_charset): Likewise.
4646         (complex_vars_of_mule_charset): Likewise.
4647
4648         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4649         `code_offset'.
4650         (CHARSET_UCS_MIN): New macro.
4651         (CHARSET_UCS_MAX): New macro.
4652         (CHARSET_CODE_OFFSET): New macro.
4653         (MAKE_CHAR): Delete charset depended definitions [except
4654         katakana-jisx0201].
4655
4656 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4657
4658         * char-ucs.h (breakup_char_1): Use
4659         `Vdefault_coded_charset_priority_list' for C0-Controls,
4660         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4661
4662 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4663
4664         * char-ucs.h (charset_get_byte1): New function.
4665         (XCHARSET_GET_BYTE1): Deleted.
4666         (charset_get_byte2): New function.
4667         (XCHARSET_GET_BYTE2): Deleted.
4668         (Vdefault_coded_charset_priority_list): New external variable.
4669         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4670         `Vdefault_preferred_coded_charset_list'.
4671
4672         * mule-charset.c (charset_get_byte1): New function.
4673         (charset_get_byte2): New function.
4674         (Vdefault_coded_charset_priority_list): New variable.
4675         (vars_of_mule_charset): Add new variable
4676         `default-coded-charset-priority-list'.
4677
4678 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4679
4680         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4681         (XCHARSET_GET_BYTE2): New inline function.
4682         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4683         `XCHARSET_GET_BYTE2'.
4684
4685 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4686
4687         * mule-charset.c (make_charset): Initialize
4688         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4689         NULL if table is not defined.
4690
4691 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4692
4693         * text-coding.c (char_encode_shift_jis): Use
4694         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4695         `ucs_to_latin_jisx0201'.
4696
4697         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4698         (ucs_to_latin_iso8859_2): Deleted.
4699         (ucs_to_latin_iso8859_3): Deleted.
4700         (ucs_to_latin_iso8859_4): Deleted.
4701         (ucs_to_latin_iso8859_9): Deleted.
4702         (ucs_to_latin_viscii_lower): Deleted.
4703         (ucs_to_latin_viscii_upper): Deleted.
4704         (ucs_to_latin_tcvn5712): Deleted.
4705         (make_charset): Add new argument `decoding_table'; set up
4706         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4707         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4708         `decoding_table' is defined in UTF-2000.
4709         (Fmake_charset): Modify for `make_charset'.
4710         (Fmake_reverse_direction_charset): Likewise.
4711         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4712         and `GENERATE_96_SET'.
4713
4714         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4715         (ucs_to_latin_jisx0201): Deleted.
4716         (latin_iso8859_2_to_ucs): Deleted.
4717         (ucs_to_latin_iso8859_2): Deleted.
4718         (latin_iso8859_3_to_ucs): Deleted.
4719         (ucs_to_latin_iso8859_3): Deleted.
4720         (latin_iso8859_4_to_ucs): Deleted.
4721         (ucs_to_latin_iso8859_4): Deleted.
4722         (latin_iso8859_9_to_ucs): Deleted.
4723         (ucs_to_latin_iso8859_9): Deleted.
4724         (latin_viscii_lower_to_ucs): Deleted.
4725         (ucs_to_latin_viscii_lower): Deleted.
4726         (latin_viscii_upper_to_ucs): Deleted.
4727         (ucs_to_latin_viscii_upper): Deleted.
4728         (struct Lisp_Charset): Renamed `encoding_table' to
4729         `to_byte1_table'; add `to_byte2_table'.
4730         (CHARSET_DECODING_TABLE): New macro.
4731         (CHARSET_TO_BYTE1_TABLE): New macro.
4732         (CHARSET_TO_BYTE2_TABLE): New macro.
4733         (XCHARSET_DECODING_TABLE): New macro.
4734         (XCHARSET_TO_BYTE1_TABLE): New macro.
4735         (XCHARSET_TO_BYTE2_TABLE): New macro.
4736         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4737         tables.
4738         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4739         don't use `ucs_to_*' tables.
4740
4741 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4742
4743         * text-coding.c (Fmake_coding_system): Don't set up
4744         `codesys->fixed.size'.
4745         (encode_coding_no_conversion): Use `if' instead of `switch'.
4746
4747         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4748
4749 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4750
4751         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4752         (Fmake_charset): Modify for `make_charset'.
4753         (Fmake_reverse_direction_charset): Likewise.
4754         (complex_vars_of_mule_charset): Likewise.
4755
4756 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4757
4758         * text-coding.c (char_encode_shift_jis): Use table
4759         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4760
4761 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4762
4763         * text-coding.c (text_encode_generic): Use `if' instead of
4764         `switch'.
4765         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4766         decode JIS-Latin.
4767
4768 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4769
4770         * text-coding.c (encode_coding_sjis): Deleted.
4771         (char_encode_shift_jis): New function.
4772         (char_finish_shift_jis): New function.
4773         (reset_encoding_stream): Set up `encode_char' and `finish' for
4774         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4775         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4776         (char_encode_utf8): Treat `eol_type'.
4777
4778 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4779
4780         * file-coding.c (decode_coding_iso2022): Use
4781         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4782
4783 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4784
4785         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4786         to 0.7 (Hirano).
4787
4788 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4789
4790         * char-lb.h (CHAR_COLUMNS): New macro.
4791
4792 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4793
4794         * text-coding.c (char_encode_ucs4): New function.
4795         (char_finish_ucs4): New function.
4796         (encode_coding_ucs4): Deleted.
4797         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4798         (text_encode_generic): Delete local variable `charset' and `half'.
4799         (ucs_to_mule_table): Deleted.
4800         (mule_to_ucs_table): Deleted.
4801         (Fset_ucs_char): Deleted.
4802         (ucs_to_char): Deleted.
4803         (Fucs_char): Deleted.
4804         (Fset_char_ucs): Deleted.
4805         (Fchar_ucs): Deleted.
4806         (decode_ucs4): Deleted.
4807         (mule_char_to_ucs4): Deleted.
4808         (encode_ucs4): Deleted.
4809         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4810         (decode_coding_utf8): Likewise.
4811         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4812         (char_encode_iso2022): Fixed.
4813         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4814         `Fset_char_ucs' and `Fchar_ucs'.
4815         (complex_vars_of_file_coding): Don't initialize
4816         `ucs_to_mule_table'.
4817
4818         * objects-tty.c (tty_initialize_font_instance): Don't use
4819         `XCHARSET_COLUMNS'.
4820
4821         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4822         UTF-2000.
4823
4824         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4825         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4826
4827         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4828         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4829         (emchar_string_displayed_columns): Likewise.
4830
4831         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4832         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4833         (string_column_at_point): Likewise.
4834         (Fmove_to_column): Likewise.
4835
4836         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4837         `encoding_table' and `decoding_table'.
4838         (CHARSET_REP_BYTES): Deleted.
4839         (XCHARSET_REP_BYTES): Deleted.
4840         (XCHARSET_COLUMNS): Deleted.
4841         (CHAR_COLUMNS): New macro.
4842         (lookup_composite_char): Deleted unconditionally.
4843         (composite_char_string): Likewise.
4844
4845 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4846
4847         * char-ucs.h (Emchar_to_byte_table): New type.
4848         (get_byte_from_character_table): New function interface.
4849         (Vcharset_latin_jisx0201): New variable.
4850         (latin_jisx0201_to_ucs): New variable.
4851         (ucs_to_latin_jisx0201): New variable.
4852         (Vcharset_latin_iso8859_2): New variable.
4853         (latin_iso8859_2_to_ucs): New variable.
4854         (ucs_to_latin_iso8859_2): New variable.
4855         (Vcharset_latin_iso8859_3): New variable.
4856         (latin_iso8859_3_to_ucs): New variable.
4857         (ucs_to_latin_iso8859_3): New variable.
4858         (Vcharset_latin_iso8859_4): New variable.
4859         (latin_iso8859_4_to_ucs): New variable.
4860         (ucs_to_latin_iso8859_4): New variable.
4861         (Vcharset_latin_iso8859_9): New variable.
4862         (latin_iso8859_9_to_ucs): New variable.
4863         (ucs_to_latin_iso8859_9): New variable.
4864         (Vcharset_latin_viscii_lower): New variable.
4865         (latin_viscii_lower_to_ucs): New variable.
4866         (ucs_to_latin_viscii_lower): New variable.
4867         (Vcharset_latin_viscii_upper): New variable.
4868         (latin_viscii_upper_to_ucs): New variable.
4869         (ucs_to_latin_viscii_upper): New variable.
4870         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4871         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4872         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4873         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4874         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4875         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4876         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4877         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4878         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4879         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4880
4881         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4882         (Vcharset_latin_viscii_upper): New variable.
4883         (make_byte_from_character_table): New function.
4884         (put_byte_from_character_table): New function.
4885         (get_byte_from_character_table): New function.
4886         (CHAR96): New macro.
4887         (ucs_to_latin_jisx0201): New variable.
4888         (latin_jisx0201_to_ucs): New variable.
4889         (ucs_to_latin_iso8859_2): New variable.
4890         (latin_iso8859_2_to_ucs): New variable.
4891         (ucs_to_latin_iso8859_3): New variable.
4892         (latin_iso8859_3_to_ucs): New variable.
4893         (ucs_to_latin_iso8859_4): New variable.
4894         (latin_iso8859_4_to_ucs): New variable.
4895         (ucs_to_latin_iso8859_9): New variable.
4896         (latin_iso8859_9_to_ucs): New variable.
4897         (ucs_to_latin_viscii_lower): New variable.
4898         (latin_viscii_lower_to_ucs): New variable.
4899         (ucs_to_latin_viscii_upper): New variable.
4900         (latin_viscii_upper_to_ucs): New variable.
4901         (ucs_to_latin_tcvn5712): New variable.
4902         (latin_tcvn5712_to_ucs): New variable.
4903         (Qlatin_viscii_lower): New variable.
4904         (Qlatin_viscii_upper): New variable.
4905         (syms_of_mule_charset): Set up new symbol
4906         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4907         (complex_vars_of_mule_charset): Set up new charset
4908         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4909         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4910         `ucs_to_<CHARSET>' tables.
4911
4912 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4913
4914         * text-coding.c: New file.
4915
4916 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4917
4918         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4919
4920         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4921         (MAKE_CHAR): Modify for `ucs-bmp'.
4922         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4923         non-MULE characters of BMP.
4924
4925 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4926
4927         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4928         to 0.6.
4929
4930 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4931
4932         * lstream.h:
4933         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4934         - Include character.h for `CHAR_ASCII_P'.
4935
4936         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4937
4938         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4939         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4940
4941         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4942         (BYTE_C0_P): Likewise.
4943         (BYTE_C1_P): Likewise.
4944         (Lstream_get_emchar_1): Likewise.
4945         (Lstream_fput_emchar): Likewise.
4946         (Lstream_funget_emchar): Likewise.
4947         (copy_internal_to_external): Likewise.
4948         (copy_external_to_internal): Likewise.
4949
4950         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4951         (BYTE_C0_P): Likewise.
4952         (BYTE_C1_P): Likewise.
4953         (Lstream_get_emchar_1): Likewise.
4954         (Lstream_fput_emchar): Likewise.
4955         (Lstream_funget_emchar): Likewise.
4956         (copy_internal_to_external): Likewise.
4957         (copy_external_to_internal): Likewise.
4958
4959         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4960         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4961
4962         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4963         (BYTE_ASCII_P): Moved to mb-1byte.h.
4964
4965 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4966
4967         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4968
4969         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4970         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4971         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4972         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4973         (VALIDATE_CHARPTR_FORWARD): Likewise.
4974         (simple_charptr_emchar): Moved to mb-multibyte.h.
4975         (simple_set_charptr_emchar): Likewise.
4976         (simple_charptr_copy_char): Likewise.
4977         (non_ascii_charptr_emchar): Likewise.
4978         (non_ascii_set_charptr_emchar): Likewise.
4979         (non_ascii_charptr_copy_char): Likewise.
4980         (charptr_emchar): Moved to mb-*byte.h.
4981         (set_charptr_emchar): Likewise.
4982         (charptr_copy_char): Likewise.
4983
4984         * mb-1byte.h, mb-multibyte.h: New files.
4985
4986 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4987
4988         * mb-utf-8.h (MULTIBYTE): New macro.
4989         (MAX_EMCHAR_LEN): Moved from buffer.h.
4990         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4991
4992         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4993
4994         * mb-lb.h, multibyte.h: New files.
4995
4996         * char-1byte.h (Charset_ID): Moved from buffer.h.
4997         (MIN_LEADING_BYTE): Likewise.
4998         (LEADING_BYTE_ASCII): Likewise.
4999         (NUM_LEADING_BYTES): Likewise.
5000         (CHARSETP): Likewise.
5001         (CHARSET_BY_LEADING_BYTE): Likewise.
5002         (XCHARSET_LEADING_BYTE): Likewise.
5003         (XCHARSET_GRAPHIC): Likewise.
5004         (XCHARSET_COLUMNS): Likewise.
5005         (XCHARSET_DIMENSION): Likewise.
5006         (CHAR_CHARSET): Likewise.
5007         (CHAR_LEADING_BYTE): Likewise.
5008         (BREAKUP_CHAR): Likewise.
5009         (Vcharset_ascii): Likewise.
5010
5011         * buffer.h: Include multibyte.h unconditionally.
5012         (VALID_CHARPTR_P): Moved to multibyte.h.
5013         (ASSERT_VALID_CHARPTR): Likewise.
5014         (REAL_INC_CHARPTR): Likewise.
5015         (REAL_INC_CHARBYTIND): Likewise.
5016         (REAL_DEC_CHARPTR): Likewise.
5017         (INC_CHARPTR): Likewise.
5018         (INC_CHARBYTIND): Likewise.
5019         (DEC_CHARPTR): Likewise.
5020         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5021         (VALIDATE_CHARPTR_FORWARD): Likewise.
5022         (charptr_n_addr): Likewise.
5023         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5024         (simple_charptr_emchar): Moved to multibyte.h.
5025         (simple_set_charptr_emchar): Likewise.
5026         (simple_charptr_copy_char): Likewise.
5027         (non_ascii_charptr_emchar): Likewise.
5028         (non_ascii_set_charptr_emchar): Likewise.
5029         (non_ascii_charptr_copy_char): Likewise.
5030         (charptr_emchar): Likewise.
5031         (set_charptr_emchar): Likewise.
5032         (charptr_copy_char): Likewise.
5033         (charptr_emchar_n): Likewise.
5034         (Charset_ID): Moved to char-1byte.h.
5035         (Vcharset_ascii): Likewise.
5036         (CHAR_CHARSET): Likewise.
5037         (CHAR_LEADING_BYTE): Likewise.
5038         (LEADING_BYTE_ASCII): Likewise.
5039         (NUM_LEADING_BYTES): Likewise.
5040         (MIN_LEADING_BYTE): Likewise.
5041         (CHARSETP): Likewise.
5042         (CHARSET_BY_LEADING_BYTE): Likewise.
5043         (XCHARSET_LEADING_BYTE): Likewise.
5044         (XCHARSET_GRAPHIC): Likewise.
5045         (XCHARSET_COLUMNS): Likewise.
5046         (XCHARSET_DIMENSION): Likewise.
5047         (BREAKUP_CHAR): Likewise.
5048
5049 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5050
5051         * character.h: Add document about interface for characters.
5052
5053         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5054         (MAKE_CHAR): Delete comment about
5055         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5056         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5057         (BREAKUP_CHAR): Modify name of arguments.
5058         (CHAR_CHARSET): Modify name of argument.
5059
5060         * buffer.h: Delete document about Emchar accessors.
5061
5062 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5063
5064         * character.h (CHAR_INTP): Moved from buffer.h
5065         (CHAR_OR_CHAR_INTP): Likewise.
5066         (XCHAR_OR_CHAR_INT): Likewise.
5067         (CHECK_CHAR_COERCE_INT): Likewise.
5068
5069         * buffer.h (CHAR_INTP): Moved to character.h
5070         (CHAR_OR_CHAR_INTP): Likewise.
5071         (XCHAR_OR_CHAR_INT): Likewise.
5072         (CHECK_CHAR_COERCE_INT): Likewise.
5073
5074 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5075
5076         * character.h:
5077         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5078         - Include char-1byte.h, char-lb.h or char-ucs.h.
5079
5080         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5081
5082         * buffer.h: Include character unconditionally.
5083         (valid_char_p): Moved to char-*.h.
5084         (non_ascii_valid_char_p): Moved to char-lb.h.
5085
5086         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5087
5088 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5089
5090         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5091         in UTF-2000 because it is not ported yet and not to use
5092         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5093         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5094         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5095
5096         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5097         (CHAR_ASCII_P): Moved from character.h.
5098
5099         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5100         (CHAR_ASCII_P): Likewise.
5101         (CHAR_FIELD1_MASK): Deleted.
5102         (CHAR_FIELD2_MASK): Deleted.
5103         (CHAR_FIELD3_MASK): Deleted.
5104         (MAX_CHAR_BASIC_LATIN): New macro.
5105         (CHAR_FIELD1): Deleted.
5106         (CHAR_FIELD2_INTERNAL): Deleted.
5107         (CHAR_FIELD3_INTERNAL): Deleted.
5108         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5109         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5110         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5111         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5112         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5113         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5114         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5115         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5116         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5117         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5118         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5119         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5120         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5121         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5122         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5123         (MIN_CHAR_COMPOSITION): Deleted.
5124         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5125         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5126
5127 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5128
5129         * buffer.h: Include mb-utf-8.h in UTF-2000.
5130
5131         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5132
5133         * mb-utf-8.h: New file.
5134
5135 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5136
5137         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5138         instead of `int'.
5139
5140         * mule-charset.h, buffer.h (Charset_ID): New type.
5141
5142 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5143
5144         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5145         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5146         instead of `MULE_CHAR_PRIVATE_OFFSET',
5147         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5148         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5149         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5150
5151         * character.h (Vcharset_japanese_jisx0212): New variable
5152         definition.
5153
5154 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5155
5156         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5157         (charset_by_attributes): Delete array about direction.
5158         (latin_a_char_to_charset): New variable in UTF-2000.
5159         (latin_a_char_to_byte1): New variable in UTF-2000.
5160         (latin_a_char_to_byte2): New variable in UTF-2000.
5161         (Qucs_bmp): New variable.
5162         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5163         `Bufbyte'.
5164         (next_allocated_2_byte_leading_byte): Likewise.
5165         (non_ascii_set_charptr_emchar): Likewise.
5166         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5167         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5168         `charset_by_attributes'.
5169         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5170         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5171         and `CHARSET_BY_LEADING_BYTE'.
5172         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5173         `utf-2000-version' to `vars_of_mule_charset'.
5174         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5175         define `leading-code-private-11' in UTF-2000; move setting of
5176         `utf-2000-version' from `syms_of_mule_charset'.
5177         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5178         UTF-2000.
5179
5180         * character.h (Charset_ID): New type.
5181         (LEADING_BYTE_UCS_BMP): New macro.
5182         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5183         (CHARSET_ID_OFFSET_94): New macro.
5184         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5185         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5186         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5187         final-byte.
5188         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5189         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5190         (CHARSET_ID_OFFSET_96): New macro.
5191         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5192         CHARSET_ID_OFFSET_96 and final-byte.
5193         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5194         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5195         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5196         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5197         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5198         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5199         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5200         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5201         (LEADING_BYTE_THAI_TIS620): Likewise.
5202         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5203         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5204         (CHARSET_ID_OFFSET_94x94): New macro.
5205         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5206         CHARSET_ID_OFFSET_94x94 and final-byte.
5207         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5208         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5209         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5210         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5211         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5212         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5213         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5214         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5215         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5216         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5217         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5218         (CHARSET_TYPE_128X128): New macro.
5219         (CHARSET_TYPE_256X256): New macro.
5220         (XCHARSET_PRIVATE_P): Delete unconditionally.
5221         (charset_by_attributes): Delete array about direction.
5222         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5223         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5224         (MIN_CHAR_94): New macro.
5225         (MAX_CHAR_94): New macro.
5226         (MIN_CHAR_96): New macro.
5227         (MAX_CHAR_96): New macro.
5228         (MIN_CHAR_94x94): New macro.
5229         (MAX_CHAR_94x94): New macro.
5230         (MIN_CHAR_96x96): New macro.
5231         (MAX_CHAR_96x96): New macro.
5232         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5233         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5234         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5235         - 32)'.
5236         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5237         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5238         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5239         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5240         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5241         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5242         `XCHARSET_LEADING_BYTE' to make code-point.
5243         (latin_a_char_to_charset): New variable.
5244         (latin_a_char_to_byte1): New variable.
5245         (latin_a_char_to_byte2): New variable.
5246         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5247         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5248         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5249
5250         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5251         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5252         (find_charsets_in_emchar_string): Likewise.
5253         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5254
5255         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5256         `int'.
5257         (decode_coding_iso2022): Likewise.
5258
5259         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5260         of `unsigned char'.
5261
5262         * redisplay.c (redisplay_text_width_emchar_string): Use
5263         `Charset_ID' instead of `unsigned char'.
5264         (redisplay_frame_text_width_string): Likewise.
5265
5266         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5267         `unsigned char'.
5268
5269         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5270         instead of `unsigned char'.
5271         (face_cachel_charset_font_metric_info): Likewise.
5272
5273         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5274         (get_non_ascii_char_table_value): Likewise.
5275         (get_char_table): Likewise.
5276         (put_char_table): Likewise.
5277         (map_over_other_charset): Likewise.
5278         (map_char_table): Likewise.
5279
5280         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5281         instead of `unsigned char'.
5282
5283 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5284
5285         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5286         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5287
5288         * mule-charset.c (leading_code_private_11): Don't define in
5289         UTF-2000.
5290
5291         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5292         in UTF-2000 because it is not ported yet and not to use
5293         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5294
5295 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5296
5297         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5298
5299 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5300
5301         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5302         in UTF-2000.
5303
5304         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5305         of unsigned char to store leading-byte.
5306
5307         * chartab.c (get_non_ascii_char_table_value): Don't use
5308         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5309
5310         * file-coding.c (encode_coding_big5): Delete bogus implementation
5311         in UTF2000.
5312
5313         * character.h (LEADING_BYTE_*): Delete definition for
5314         non-UTF-2000.
5315         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5316         (LEADING_BYTE_PREFIX_P): Deleted.
5317         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5318         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5319         (BUFBYTE_LEADING_BYTE_P): Deleted.
5320         (CHARSET_PRIVATE_P): Deleted unconditionally.
5321         (rep_bytes_by_first_byte): Deleted unconditionally.
5322         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5323         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5324         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5325         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5326         (CHAR_FIELD2): Deleted.
5327         (CHAR_FIELD3): Deleted.
5328         (MAKE_CHAR): Delete definition for non-UTF-2000.
5329         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5330         (breakup_char_1): New implementation.
5331         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5332         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5333
5334 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5335
5336         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5337         condition.
5338
5339 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5340
5341         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5342         (CHARSET_PRIVATE_P): Likewise.
5343         (XCHARSET_PRIVATE_P): Likewise.
5344         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5345
5346         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5347         UTF2000.
5348         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5349
5350 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5351
5352         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5353         (NUM_LEADING_BYTES): Changed from 128 to 256.
5354         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5355         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5356         UTF2000.
5357         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5358
5359         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5360         UTF2000.
5361         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5362         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5363         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5364         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5365         (Qchinese_cns11643_3): New variable in UTF2000.
5366         (Qchinese_cns11643_4): New variable in UTF2000.
5367         (Qchinese_cns11643_5): New variable in UTF2000.
5368         (Qchinese_cns11643_6): New variable in UTF2000.
5369         (Qchinese_cns11643_7): New variable in UTF2000.
5370         (syms_of_mule_charset): Define `chinese-cns11643-3',
5371         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5372         and `chinese-cns11643-7' in UTF2000.
5373         (vars_of_mule_charset): Initialize
5374         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5375         + 1 in UTF2000.
5376         (complex_vars_of_mule_charset): Setup charset
5377         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5378         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5379
5380 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5381
5382         * mule-charset.c: Move setting for `leading-code-private-11' from
5383         `syms_of_mule_charset' to `vars_of_mule_charset'.
5384
5385 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5386
5387         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5388         and `NUM_LEADING_BYTES' in assert.
5389
5390 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5391
5392         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5393         instead of 128.
5394         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5395         `NUM_LEADING_BYTES' instead of 128.
5396
5397 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5398
5399         * mule-charset.h (charset_by_leading_byte): Use
5400         `NUM_LEADING_BYTES' instead of 128.
5401         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5402
5403         * mule-charset.c (charset_by_leading_byte): Use
5404         `NUM_LEADING_BYTES' instead of 128.
5405         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5406
5407         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5408         128.
5409
5410 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5411
5412         * mule-charset.c (syms_of_mule_charset): Update to
5413         0.4 (Shin-Imamiya).
5414
5415 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5416
5417         * file-coding.c (encode_coding_sjis): New implementation for
5418         UTF2000.  (decode_coding_sjis): Ditto.
5419
5420 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5421
5422         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5423         Don't define in UTF2000.
5424
5425         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5426         defined.
5427
5428         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5429         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5430         MULE.
5431
5432 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5433
5434         * config.h.in (CHAR_IS_UCS4): New macro.
5435
5436         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5437         conventional MULE representation.
5438         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5439
5440         * mule-charset.h: Reverted to original.
5441
5442         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5443         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5444         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5445
5446         * character.h: New file.
5447
5448         * file-coding.c (Fmake_coding_system): Set 1 to
5449         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5450         defined.
5451         (encode_coding_no_conversion): New implementation for UTF2000.
5452
5453         * file-coding.h (struct Lisp_Coding_System): Add new member
5454         `fixed.size'.
5455
5456 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5457
5458         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5459         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5460         (encode_coding_iso2022): New implementation for UTF2000.
5461
5462 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5463
5464         * mule-canna.c (c2mu): New implementation for UTF2000.
5465         (m2c): Likewise.
5466
5467 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5468
5469         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5470
5471 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5472
5473         * file-coding.c (reset_encoding_stream): Set 0 to
5474         `str->iso2022.current_char_boundary' in UTF2000.
5475         (encode_utf8): Don't define in UTF2000.
5476         (encode_coding_utf8): New implementation for UTF-8 representation
5477         of UTF2000.
5478         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5479
5480 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5481
5482         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5483
5484         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5485         UTF2000.
5486         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5487
5488         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5489
5490         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5491         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5492         as UTF-8 in UTF2000.
5493         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5494         (non_ascii_valid_char_p): Don't define in UTF2000.
5495         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5496         (Lstream_get_emchar_1): Likewise.
5497         (utf-2000-version): New variable in UTF2000.
5498
5499         * lread.c (read_escape): Add new reader `u'.
5500
5501         * insdel.c (three_to_one_table): Don't define in UTF2000.
5502         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5503         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5504         UTF2000.
5505         (bytind_to_bufpos_func): Likewise.
5506         (buffer_mule_signal_inserted_region): Likewise.
5507         (vars_of_insdel): Don't initialize `three_to_one_table'.
5508         (init_buffer_text): Use `buf->text->mule_size' instead of
5509         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5510         UTF2000.
5511
5512         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5513         UTF-8 representation in UTF2000.
5514         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5515         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5516         (decode_coding_iso2022): Don't define local variable `lb' in
5517         UTF2000; don't use LEADING_BYTE in UTF2000; use
5518         `DECODE_ADD_UCS_CHAR' in UTF2000.
5519         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5520
5521         * config.h.in (UTF2000): New macro.
5522
5523         * buffer.h (struct buffer_text): Add new member `mule_size' and
5524         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5525         (valid_char_p): Return always 1 in UTF2000.
5526         (MAX_EMCHAR_LEN): 6 in UTF2000.
5527         (three_to_one_table): Don't define in UTF2000.
5528         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5529         UTF2000.
5530         (real_bytind_to_bufpos): Likewise.
5531
5532         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5533
5534 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5535
5536         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5537         representation change.
5538         (Vutf_2000_version): New variable.
5539         (leading_code_private_11): New variable.
5540         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5541         `leading-code-private-11'.
5542
5543         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5544         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5545         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5546         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5547         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5548         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5549         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5550         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5551         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5552         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5553         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5554         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5555         (MIN_CHAR_GREEK): New macro.
5556         (MAX_CHAR_GREEK): New macro.
5557         (MIN_CHAR_CYRILLIC): New macro.
5558         (MAX_CHAR_CYRILLIC): New macro.
5559         (MIN_CHAR_HEBREW): New macro.
5560         (MAX_CHAR_HEBREW): New macro.
5561         (MIN_CHAR_THAI): New macro.
5562         (MAX_CHAR_THAI): New macro.
5563         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5564         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5565         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5566         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5567         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5568         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5569         (CHAR_FIELD2): New inline function.
5570         (CHAR_FIELD3): New inline function.
5571         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5572         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5573         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5574         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5575         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5576         (MIN_CHAR_COMPOSITION): Likewise.
5577         (CHAR_LEADING_BYTE): Modified for character representation change.
5578         (MAKE_CHAR): Likewise.
5579
5580         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5581         (Vcharset_greek_iso8859_7): Likewise.
5582         (Vcharset_cyrillic_iso8859_5): Likewise.
5583         (Vcharset_hebrew_iso8859_8): Likewise.
5584         (Vcharset_thai_tis620): Likewise.
5585         (Vcharset_katakana_jisx0201): Likewise.
5586
5587 2005-02-06  Vin Shelton <acs@xemacs.org>
5588
5589         * XEmacs 21.4.17 is released
5590
5591 2005-01-31  Ben Wing  <ben@xemacs.org>
5592
5593         * emacs.c:
5594         Define assert_failed() always.
5595         * lisp.h:
5596         Always define ABORT().
5597
5598 2005-01-25  Ben Wing  <ben@xemacs.org>
5599
5600         * Makefile.in.in:
5601         * Makefile.in.in (%.o):
5602         Don't compile executable as Windows (-mwindows) under Cygwin.
5603         Semi-recent changes to Cygwin's executable-startup handling make
5604         it impossible to access the TTY this way.
5605
5606         Don't use special linker file under Cygwin (cygwin.sc) except
5607         when non-PDUMP (even in this case it is highly questionable); you
5608         get errors like
5609
5610       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5611    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5612
5613 2005-01-29  Ben Wing  <ben@xemacs.org>
5614
5615         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5616
5617         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5618
5619 2005-01-29  Ben Wing  <ben@xemacs.org>
5620
5621         * bytecode.c (optimize_compiled_function):
5622         * print.c (FROB):
5623         * print.c (long_to_string):
5624         Add casts to avoid warning.
5625         
5626         * glyphs-eimage.c:
5627         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5628         #### The better solution is to move the TIFF and JPEG code to
5629         different files.
5630         
5631         * glyphs-msw.c (mswindows_xbm_instantiate):
5632         Define __STDC__ to avoid problems with compface.h.
5633         
5634         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5635         * EmacsShell-sub.c:
5636         * EmacsShell-sub.c (ABORT):
5637         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5638         * EmacsShell-sub.c (RootGeometryManager):
5639         * EmacsShell.c:
5640         * EmacsShell.c (ABORT):
5641         * EmacsShell.c (EmacsShellUpdateSizeHints):
5642         * alloc.c (free_lcrecord):
5643         * alloca.c (i00afunc):
5644         * buffer.c (delete_from_buffer_alist):
5645         * buffer.c (MARKED_SLOT):
5646         * bytecode.c (execute_rare_opcode):
5647         * bytecode.c (optimize_byte_code):
5648         * bytecode.c (Ffetch_bytecode):
5649         * chartab.c (char_table_type_to_symbol):
5650         * chartab.c (Freset_char_table):
5651         * chartab.c (decode_char_table_range):
5652         * chartab.c (Fget_range_char_table):
5653         * chartab.c (check_valid_char_table_value):
5654         * chartab.c (map_char_table):
5655         * chartab.c (slow_map_char_table_fun):
5656         * chartab.c (chartab_instantiate):
5657         * cm.c (cmcheckmagic):
5658         * console-msw.c (DHEADER):
5659         * console.c (MARKED_SLOT):
5660         * data.c (finish_marking_weak_lists):
5661         * data.c (encode_weak_list_type):
5662         * debug.h (DASSERT):
5663         * device-gtk.c (gtk_init_device):
5664         * device-msw.c (mswindows_get_default_margin):
5665         * device-tty.c (tty_init_device):
5666         * device-x.c (get_device_from_display):
5667         * device-x.c (x_get_visual_depth):
5668         * doprnt.c (parse_doprnt_spec):
5669         * doprnt.c (get_doprnt_args):
5670         * dumper.c (pdump_get_indirect_count):
5671         * dumper.c (pdump_register_sub):
5672         * dumper.c (pdump_register_object):
5673         * dumper.c (pdump_register_struct):
5674         * dumper.c (pdump_dump_data):
5675         * dumper.c (pdump_reloc_one):
5676         * elhash.c (print_hash_table):
5677         * elhash.c (make_standard_lisp_hash_table):
5678         * elhash.c (hash_table_instantiate):
5679         * emacs.c:
5680         * emacs.c (Fforce_debugging_signal):
5681         * emacs.c (sort_args):
5682         * emacs.c (main):
5683         * emacs.c (assert_failed):
5684         * eval.c (throw_or_bomb_out):
5685         * eval.c (signal_1):
5686         * eval.c (Fsignal):
5687         * event-Xt.c:
5688         * event-Xt.c (emacs_Xt_mapping_action):
5689         * event-Xt.c (Xt_process_to_emacs_event):
5690         * event-msw.c:
5691         * event-stream.c (check_event_stream_ok):
5692         * event-stream.c (Fadd_timeout):
5693         * event-stream.c (Fadd_async_timeout):
5694         * event-stream.c (Fdiscard_input):
5695         * event-stream.c (execute_internal_event):
5696         * event-stream.c (Frecent_keys):
5697         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5698         * event-stream.c (lookup_command_event):
5699         * event-unixoid.c (poll_fds_for_input):
5700         * events.c:
5701         * events.c (mark_event):
5702         * events.c (event_equal):
5703         * events.c (event_hash):
5704         * events.c (Fmake_event):
5705         * events.c (Fdeallocate_event):
5706         * events.c (event_chain_find_previous):
5707         * events.c (event_to_character):
5708         * events.c (format_event_object):
5709         * events.c (Fevent_type):
5710         * events.c (event_pixel_translation):
5711         * events.c (Fevent_properties):
5712         * extents.c (extent_in_region_p):
5713         * extents.c (print_extent):
5714         * extents.c (process_extents_for_insertion_mapper):
5715         * extents.c (report_extent_modification_mapper):
5716         * extents.c (glyph_layout_to_symbol):
5717         * faces.c (face_validate):
5718         * file-coding.c (eol_type_to_symbol):
5719         * file-coding.c (subsidiary_coding_system):
5720         * file-coding.c (Fcoding_system_type):
5721         * file-coding.c (Fcoding_system_property):
5722         * file-coding.c (mule_decode):
5723         * file-coding.c (mule_encode):
5724         * file-coding.c (encode_coding_ucs4):
5725         * file-coding.c (encode_coding_utf8):
5726         * file-coding.c (parse_iso2022_esc):
5727         * file-coding.c (encode_coding_iso2022):
5728         * fileio.c:
5729         * fns.c (concat):
5730         * fns.c (Fsubseq):
5731         * fns.c (mapcar1):
5732         * fns.c (Fbase64_encode_region):
5733         * fns.c (Fbase64_encode_string):
5734         * fns.c (Fbase64_decode_region):
5735         * fns.c (Fbase64_decode_string):
5736         * font-lock.c (find_context):
5737         * font-lock.c (context_to_symbol):
5738         * frame-gtk.c (gtk_set_frame_pointer):
5739         * frame-gtk.c (gtk_update_frame_external_traits):
5740         * frame-x.c (x_wm_mark_shell_size_user_specified):
5741         * frame-x.c (x_wm_mark_shell_position_user_specified):
5742         * frame-x.c (x_wm_set_shell_iconic_p):
5743         * frame-x.c (x_wm_set_cell_size):
5744         * frame-x.c (x_wm_set_variable_size):
5745         * frame-x.c (x_wm_store_class_hints):
5746         * frame-x.c (x_wm_maybe_store_wm_command):
5747         * frame-x.c (x_initialize_frame_size):
5748         * frame-x.c (x_update_frame_external_traits):
5749         * frame.c:
5750         * frame.c (delete_frame_internal):
5751         * frame.c (mouse_pixel_position_1):
5752         * frame.c (change_frame_size_1):
5753         * free-hook.c (check_free):
5754         * free-hook.c (check_realloc):
5755         * free-hook.c (note_block_input):
5756         * free-hook.c (log_gcpro):
5757         * gccache-gtk.c (gc_cache_lookup):
5758         * glyphs-eimage.c (tiff_memory_write):
5759         * glyphs-gtk.c (gtk_finalize_image_instance):
5760         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
5761         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
5762         * glyphs-gtk.c (gtk_xpm_instantiate):
5763         * glyphs-gtk.c (gtk_unmap_subwindow):
5764         * glyphs-gtk.c (gtk_map_subwindow):
5765         * glyphs-gtk.c (gtk_button_redisplay):
5766         * glyphs-msw.c:
5767         * glyphs-msw.c (init_image_instance_from_xbm_inline):
5768         * glyphs-x.c (init_image_instance_from_xbm_inline):
5769         * glyphs-x.c (extract_xpm_color_names):
5770         * glyphs-x.c (x_xpm_instantiate):
5771         * glyphs.c (get_image_instantiator_governing_domain):
5772         * glyphs.c (print_image_instance):
5773         * glyphs.c (image_instance_equal):
5774         * glyphs.c (image_instance_hash):
5775         * glyphs.c (encode_image_instance_type):
5776         * glyphs.c (make_image_instance_1):
5777         * glyphs.c (inherit_instantiate):
5778         * glyphs.c (image_instantiate):
5779         * glyphs.c (allocate_glyph):
5780         * glyphs.c (Fglyph_type):
5781         * glyphs.c (redisplay_subwindow):
5782         * glyphs.c (display_table_entry):
5783         * gtk-glue.c (xemacs_list_to_gtklist):
5784         * gtk-glue.c (xemacs_gtklist_to_list):
5785         * gtk-glue.c (xemacs_list_to_array):
5786         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
5787         * gutter.c (gutter_was_visible):
5788         * gutter.c (get_gutter_coords):
5789         * input-method-xlib.c (get_XIM_input):
5790         * insdel.c (bufpos_to_bytind_func):
5791         * insdel.c (bytind_to_bufpos_func):
5792         * insdel.c (move_gap):
5793         * intl.c (x_get_composed_input):
5794         * keymap.c (keymap_lookup_directly):
5795         * keymap.c (keymap_delete_inverse_internal):
5796         * keymap.c (ensure_meta_prefix_char_keymapp):
5797         * keymap.c (accessible_keymaps_mapper_1):
5798         * keymap.c (where_is_recursive_mapper):
5799         * lisp.h:
5800         * lisp.h (ABORT):
5801         * lread.c (read_atom):
5802         * lstream.c (Lstream_delete):
5803         * lstream.c (make_lisp_buffer_stream_1):
5804         * macros.c (pop_kbd_macro_event):
5805         * malloc.c (malloc):
5806         * malloc.c (free):
5807         * marker.c (bi_marker_position):
5808         * marker.c (set_bi_marker_position):
5809         * menubar-gtk.c (menu_descriptor_to_widget_1):
5810         * menubar-msw.c (prune_menubar):
5811         * menubar-x.c (set_frame_menubar):
5812         * mule-charset.c (get_unallocated_leading_byte):
5813         * mule-charset.h (CHAR_LEADING_BYTE):
5814         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5815         * nt.c (init_environment):
5816         * nt.c (generate_inode_val):
5817         * ntproc.c (delete_child):
5818         * ntproc.c (_sys_read_ahead):
5819         * ntproc.c (create_child):
5820         * objects.c (color_instantiate):
5821         * objects.c (font_instantiate):
5822         * objects.c (face_boolean_instantiate):
5823         * print.c (printing_major_badness):
5824         * process-nt.c (nt_send_process):
5825         * process-unix.c (unix_send_process):
5826         * process.c (get_process):
5827         * ralloc.c (obtain):
5828         * ralloc.c (relinquish):
5829         * ralloc.c (relocate_blocs):
5830         * ralloc.c (resize_bloc):
5831         * ralloc.c (r_alloc_free):
5832         * ralloc.c (r_re_alloc):
5833         * ralloc.c (r_alloc_thaw):
5834         * ralloc.c (init_ralloc):
5835         * ralloc.c (Free_Addr_Block):
5836         * ralloc.c (r_alloc):
5837         * redisplay-gtk.c (gtk_output_display_block):
5838         * redisplay-msw.c (mswindows_output_display_block):
5839         * redisplay-output.c (get_next_display_block):
5840         * redisplay-output.c (get_cursor_size_and_location):
5841         * redisplay-output.c (redisplay_output_layout):
5842         * redisplay-output.c (redisplay_clear_region):
5843         * redisplay-tty.c (tty_output_display_block):
5844         * redisplay-x.c (x_output_display_block):
5845         * redisplay.c (add_propagation_runes):
5846         * redisplay.c (add_glyph_rune):
5847         * redisplay.c (create_text_block):
5848         * redisplay.c (add_margin_runes):
5849         * redisplay.c (create_left_glyph_block):
5850         * redisplay.c (create_right_glyph_block):
5851         * redisplay.c (create_string_text_block):
5852         * redisplay.c (regenerate_window):
5853         * redisplay.c (REGEN_INC_FIND_START_END):
5854         * redisplay.c (redisplay_frame):
5855         * redisplay.c (point_in_line_start_cache):
5856         * regex.c:
5857         * regex.c (ABORT):
5858         * regex.c (re_compile_fastmap):
5859         * regex.c (re_match_2_internal):
5860         * regex.c (regerror):
5861         * scrollbar-gtk.c (gtk_scrollbar_loop):
5862         * scrollbar-gtk.c (scrollbar_cb):
5863         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
5864         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
5865         * scrollbar-x.c (x_update_scrollbar_instance_status):
5866         * scrollbar-x.c (x_scrollbar_loop):
5867         * scrollbar-x.c (x_update_frame_scrollbars):
5868         * search.c (search_command):
5869         * search.c (Fmatch_data):
5870         * select-x.c (motif_clipboard_cb):
5871         * signal.c (interrupt_signal):
5872         * specifier.c (specifier_add_spec):
5873         * specifier.c (specifier_instance_from_inst_list):
5874         * specifier.c (specifier_instance):
5875         * specifier.h:
5876         * specifier.h (struct specifier_methods):
5877         * strftime.c (add_num_time_t):
5878         * sunplay.c (init_device):
5879         * symbols.c (Fsetplist):
5880         * symbols.c (do_symval_forwarding):
5881         * symbols.c (store_symval_forwarding):
5882         * symbols.c (Fset):
5883         * symbols.c (Fbuilt_in_variable_type):
5884         * symbols.c (decode_magic_handler_type):
5885         * symbols.c (handler_type_from_function_symbol):
5886         * syntax.c (update_syntax_cache):
5887         * sysdep.c (init_baud_rate):
5888         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5889         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5890         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5891         * toolbar.c (get_toolbar_coords):
5892         * ui-gtk.c (build_gtk_boxed):
5893         * ui-gtk.c (describe_gtk_arg):
5894         * ui-gtk.c (gtk_type_to_lisp):
5895         * ui-gtk.c (lisp_to_gtk_type):
5896         * ui-gtk.c (lisp_to_gtk_ret_type):
5897         * ui-gtk.c (lisp_to_flag):
5898         * unexnt.c (read_in_bss):
5899         * unexnt.c (map_in_heap):
5900         * window.c (real_window):
5901         * window.c (window_display_lines):
5902         * window.c (window_display_buffer):
5903         * window.c (set_window_display_buffer):
5904         * window.c (window_modeline_height):
5905         * window.c (unshow_buffer):
5906         * window.c (window_loop):
5907         * window.c (Fget_lru_window):
5908         * window.c (Fsplit_window):
5909         * window.c (Fset_window_configuration):
5910         * window.c (saved_window_index):
5911         * xgccache.c (gc_cache_lookup):
5912         abort() -> ABORT().  Eliminate preprocessor games with abort()
5913         since it creates huge problems in VC7, solvable only by including
5914         massive amounts of files in every compile (and not worth it).
5915
5916         * sysdep.c:
5917         * sysproc.h:
5918         Inclusion of process.h does not need to be before lisp.h any more.
5919         Move later and remove comment about abort().
5920
5921 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
5922
5923         * regex.c (re_match_2_internal):
5924         Correctly initialize loop which clears uninitialized registers.
5925
5926 2005-01-28  Vin Shelton  <acs@xemacs.org>
5927
5928         * sheap.c (more_static_core): Applied Ben's version of the long
5929         string patch.
5930
5931 2005-01-24  Vin Shelton  <acs@xemacs.org>
5932
5933         * sheap.c (more_static_core): Reformatted printf string so
5934         gcc-3.3.3 will compile this on Cygwin.
5935
5936 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
5937
5938         * console.c (function_key_map): Reference `key-binding'.
5939
5940         * keymap.c (Vkey_translation_map): Improve docstring.
5941
5942 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
5943
5944         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
5945         * window.c (window_loop): [fix] Take into account
5946         `allow-deletion-of-last-visible-frame' variable.
5947         * window.c (replace-buffer-in-windows): Ditto.
5948
5949 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
5950
5951         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
5952
5953 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
5954
5955         * event-gtk.c: Recognise AltGr as a valid modifier.
5956
5957 2005-01-12  Ville Skyttä  <scop@xemacs.org>
5958
5959         * console-x.h: #include X11/keysym.h before xintrinsic.h.
5960
5961 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
5962
5963         Fix backreference bug caught by test suite.
5964
5965         * regex.c (regex_compile):
5966         Make backref duplicate internal register.
5967
5968 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
5969
5970         Documentation, code clarification, and warning suppression.
5971         
5972         * regex.c (regex_compile):
5973         Improve comments.
5974         (re_match_2_internal):
5975         Improve comments and avoid redundant braces.  [Most of the big hunk
5976         at l. 4710 is indentation; use diff -w to see the real changes.]
5977         (alt_match_null_string_p):
5978         (common_op_match_null_string_p):
5979         Avoid shadowing global on Mac OS X 10.4, at least.
5980
5981 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
5982
5983         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
5984         introduced with shy groups fix).  [Already applied, probably
5985         with the second "fix shy groups" patch of 2004-10-07.] 
5986
5987 2005-01-10  Steve Youngs  <steve@sxemacs.org>
5988
5989         From Andrey Slusar <anrays@gmail.com>:
5990
5991         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
5992
5993 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
5994
5995         * Makefile (RECURSIVE_MAKE): Removed.
5996         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
5997         handling parallel builds.
5998
5999 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6000
6001         * Makefile.in.in: Enable support for parallel builds.
6002
6003 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6004
6005         From Andrey Slusar <anrays@gmail.com>:
6006
6007         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6008         FreeBSD version is >= 199701 _and_ < 600006.
6009
6010 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6011
6012         * scrollbar.c (compute_scrollbar_instance_usage):
6013         Only call device method compute_scrollbar_instance_usage() if it
6014         is defined.
6015
6016 2004-12-05  Vin Shelton <acs@xemacs.org>
6017
6018         * XEmacs 21.4.16 is released
6019
6020 2004-12-04  Vin Shelton  <acs@xemacs.org>
6021
6022         * depend: Regenerated.
6023
6024 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6025
6026         * regex.c (re_match_2_internal): Map internal to external
6027         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6028         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6029
6030 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6031
6032         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6033         to fix a crash.  Also, check the buffer is live and it
6034         really exists in buffer_list.  If the buffer is not in the list,
6035         prepend it.
6036
6037 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6038
6039         Fix shy groups by implementing recording of all groups for
6040         repetition and backtracking.  Backport from 21.5.
6041         
6042         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6043         external_to_internal_register, external_to_internal_register_size,
6044         and update comments for re_nsub.
6045
6046         * regex.c (re_opcode_t): Update comments.
6047         (print_compiled_pattern): Ouput external_to_internal_register,
6048         external_to_internal_register_size, and re_ngroups for debugging.
6049         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6050         (regex_compile): Update header comment.
6051         Ensure that all groups are recorded so that repeat matches and
6052         backtracking work correctly.  Comment related warning for groups >
6053         255.
6054         (re_search_2): Construct map of API indexes (which count only
6055         nonshy groups) to internal register numbers, and keep it updated.
6056
6057 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6058
6059         * frame-gtk.c (gtk_make_frame_visible):
6060         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6061         show/hide.  This is what X uses and is prevents previously hidden
6062         widgets from suddenly reappearing.
6063         * gtk-xemacs.c (gtk_xemacs_paint):
6064         * gtk-xemacs.c (gtk_xemacs_draw):
6065         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6066         drawable.
6067         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6068         size and location changes so that they can be seen before the next
6069         idle event.  Without this rapid changes to scrollbar properties
6070         are not seen.
6071
6072 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6073
6074         * console-gtk.h:
6075         * console-gtk.h (struct gtk_frame):
6076         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6077           Add hash tables track tab_control callback data.
6078           Added #defines for GTK object data names.
6079           Declaration of gtk_widget_to_frame().
6080         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6081         * frame-gtk.c (gtk_widget_to_frame): New.
6082         * frame-gtk.c (gtk_create_widgets):
6083         * frame-gtk.c (allocate_gtk_frame_struct):
6084         * frame-gtk.c (gtk_mark_frame):
6085         Manage frame callbakc hash tables.
6086         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6087         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6088         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6089         of widget size.
6090         * glyphs-gtk.c (gtk_widget_query_geometry): New
6091         * glyphs-gtk.c (gtk_register_gui_item): New
6092         * glyphs-gtk.c (gtk_add_tab_item): New
6093         * glyphs-gtk.c (gtk_tab_control_callback): New
6094         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6095         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6096         Use correct list when loading item.
6097         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6098         Register new methods.
6099         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6100         default size, for widgets.
6101         * gui-x.c:  Improved comment.
6102         * menubar-gtk.c (__generic_button_callback): Use
6103         gtk_widget_to_frame instead of __get_channel.
6104         * scrollbar-gtk.c:
6105         * ui-gtk.c: Use symbolic names for GTK object data.
6106
6107 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6108
6109         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6110
6111 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6112
6113         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6114
6115 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6116
6117         * malloc.c (morecore): siz is a long because in some architectures
6118         (eg ia-64) an int cannot hold the address range.  Additional patch
6119         from the SuSe distribution.
6120
6121 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6122
6123         * emacs.c:
6124         * malloc.c: lim_data is a long because in some architectures
6125         (eg ia-64) an int cannot hold the address range.
6126         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6127         instead of ulimit() because ulimit() always returns -1.
6128
6129 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6130
6131         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6132
6133 2004-06-11  David Kastrup  <dak@gnu.org>
6134
6135         * search.c (match_limit): Don't flag an error if match-data
6136         exceeding the allocated search_regs.num_regs gets requested, just
6137         return Qnil.
6138
6139 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6140
6141         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6142         replace symbolic color entries with the real colors specified in
6143         xpm-color-symbols, before passing the XPM to gtk.
6144         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6145         instead of a GTK specific field, so that it is used in by generic
6146         code.
6147
6148 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6149
6150        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6151         coredump from deref of NULL ptr (ExtData)
6152
6153 2004-04-19  Jerry James  <james@xemacs.org>
6154
6155         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6156         VALBITS to compute the location of the sign bit.
6157         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6158         of VALBITS with EMACS_INT_MAX.
6159         * events.c (Fevent_timestamp): Ditto.
6160         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6161         compute the halfway point to timestamp wraparound.
6162         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6163         EMACS_INT_MIN instead of using VALBITS.
6164         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6165         incorrect number with VALBITS.
6166         * fns.c (Frandom): Correct number of integer bits in docstring.
6167         Use INT_VALBITS instead of VALBITS to compute the denominator.
6168         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6169         build random numbers.
6170
6171 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6172         * event-gtk.c:
6173         * event-gtk.c (gtk_event_to_emacs_event):
6174         * menubar-gtk.c:
6175         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6176         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6177         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6178         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6179         * menubar-gtk.c (__activate_menu):
6180         * menubar-gtk.c (convert_underscores):
6181         * menubar-gtk.c (remove_underscores):
6182         * menubar-gtk.c (menu_convert):
6183         * menubar-gtk.c (menu_descriptor_to_widget_1):
6184         * menubar-gtk.c (menu_descriptor_to_widget):
6185         * menubar-gtk.c (menu_can_reuse_widget):
6186         * menubar-gtk.c (menu_create_menubar):
6187         * menubar-gtk.c (gtk_popup_menu):
6188         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6189         Added support for Gtk menu bar and menu item mnemonics.
6190
6191 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6192
6193         * sysdll.c: (dll_function): Added support for finding symbols in
6194         Darwin shared libraries as well in Darwin bundles.
6195         * sysdll.c (image_for_address): New
6196         * sysdll.c (my_find_image): New
6197         * sysdll.c (search_linked_libs): New
6198
6199 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6200
6201         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6202         return to GTK requires a different API to marshalling data to use
6203         as GTK parameters.
6204         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6205
6206 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6207
6208         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6209
6210 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6211
6212         * glyphs.c (process_image_string_instantiator):
6213         (Fset_console_type_image_conversion_list):
6214         Stop GCC from warning about shadowing of `exp'.
6215
6216         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6217
6218 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6219
6220         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6221
6222 2004-02-03  Vin Shelton  <acs@xemacs.org>
6223
6224         * glyphs.c (image_instance_layout): Remove pointless assertion.
6225         * regex.c (regex_grow_registers): Return type is void.
6226
6227 2004-02-02  Vin Shelton <acs@xemacs.org>
6228
6229         * XEmacs 21.4.15 is released
6230
6231 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6232
6233         * device-x.c (x_error_handler): Don't call stderr_out
6234
6235 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6236
6237         * buffer.c (other-buffer): Clarify documentation of order of
6238         arguments for FSF Emacs.
6239
6240 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6241
6242         * window.c (Fdelete_window): Dirty the mirror structure _before_
6243         marking the window deleted.
6244
6245 2003-09-15  Jerry James  <james@xemacs.org>
6246
6247         * event-msw.c (debug_mswin_messages): Conditionally compile
6248         messages missing from the Cygwin headers.
6249
6250 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6251
6252         * data.c (eq_with_ebola_notice): Fix typo in comment.
6253         (Ftrue_list_p): Improve docstring.
6254
6255 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6256
6257         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6258
6259 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6260
6261         * search.c (trivial_regexp_p): Regexps containing "\{" are
6262         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6263         Stefan Monnier for suggesting a diagnosis.
6264
6265 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6266
6267         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6268
6269 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6270
6271         * search.c (Fsearch_forward):
6272         (Fsearch_backward):
6273         Document negative count.
6274
6275 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6276
6277         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6278
6279 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6280
6281         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6282
6283 2003-09-15  Vin Shelton  <acs@xemacs.org>
6284
6285         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6286         21.5.
6287
6288 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6289
6290         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6291         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6292         (re_match_2_internal): Use TRANSLATE instead of
6293         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6294         non-ASCII char case conversion.
6295
6296 2003-09-08  Mike Sperber  <mike@xemacs.org>
6297
6298         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6299         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6300
6301 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6302
6303        * .gdbinit (pobj): fix printing of symbol name.
6304
6305 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6306
6307         * frame-x.c (x_layout_widgets): When resizing is about to cause
6308         frame size slip, mark it for redisplay.
6309
6310 2003-08-18  Jerry James  <james@xemacs.org>
6311
6312         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6313
6314 2003-09-03  Vin Shelton <acs@xemacs.org>
6315
6316         * XEmacs 21.4.14 is released
6317
6318 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6319
6320         * config.h.in (REGEX_MALLOC): Make it configure'able.
6321
6322 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6323
6324         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6325         linking.
6326         * sysdll.c (dll_init):
6327         * sysdll.c (dll_open):
6328         * sysdll.c (dll_close):
6329         * sysdll.c (dll_function):
6330         * sysdll.c (dll_variable):
6331         * sysdll.c (dll_error):
6332         Add support for loading bundles using Darwin/MacOSX
6333         native API.
6334
6335 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6336
6337         * process.c (start-process-internal): Document coding systems.
6338
6339 2003-07-30  Jerry James  <james@xemacs.org>
6340
6341         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6342
6343 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6344
6345         * event-msw.c (mswindows_enqueue_mouse_button_event):
6346         * event-msw.c (mswindows_wnd_proc):
6347           enqueue button event when scrollwheel event isn't handled by 
6348           mswindows_handle_mousewheel_event, such as when the scrollbars
6349           are not showing.
6350
6351 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6352
6353         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6354
6355 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6356
6357         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6358
6359 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6360
6361         * regex.c (re_match_2_internal): Fix matching degenerate word
6362         boundaries.
6363
6364 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6365
6366         * XEmacs 21.4.13 is released
6367
6368 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6369
6370         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6371         * lisp.h (<inttypes.h>):
6372         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6373         the definition.
6374
6375 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6376
6377         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6378         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6379         Result: "temacs can only be run in -batch mode."
6380         Fix: Check xemacs executable candidate for directory-ness.
6381
6382 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6383
6384         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6385           they conflict with <sys/types.h>.
6386
6387 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6388
6389         * database.c: Berkeley DB wants __STDC__ to be defined.
6390
6391 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6392
6393         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6394
6395 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6396
6397         * process-unix.c (unix_send_process): Fix C++ compile error.
6398
6399 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6400
6401         * Added .dylib as an acceptable shared library file extension
6402         * to support MacOSX.
6403
6404 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6405
6406         * EmacsFrameP.h (EmacsFramePart):
6407         Kludge to allow compiling with Motif1, but linking with Motif2.
6408
6409 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6410
6411         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6412
6413
6414 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6415
6416         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6417
6418 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6419
6420         * sysdll.c: Included lisp.h to define needed alloca_array.
6421
6422 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6423
6424         Make XEmacs redisplay 10 times faster.
6425         If, that is, you're using a slow X connection and MoveOpaque.
6426         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6427         Use compress_motion = TRUE.
6428         * EmacsFrame.c (emacsFrameClassRec): 
6429         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6430         * EmacsManager.c (emacsManagerClassRec):
6431         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6432
6433 2003-01-30  Vin Shelton  <acs@xemacs.org>
6434
6435         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6436
6437 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6438
6439         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6440         Patch by Martin Buchholz.
6441
6442 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6443
6444         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6445         Thanks to icc for warning and Martin Buchholz for reporting.
6446
6447 2003-01-29  Vin Shelton <acs@xemacs.org>
6448
6449         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6450
6451         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6452         remember to multiply by the element size.
6453
6454 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6455
6456         * XEmacs 21.4.12 "Portable Code" is released.
6457
6458 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6459
6460         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6461         * s/cygwin.sc: new linker file.
6462
6463 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6464
6465         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6466
6467         * redisplay-x.c (x_output_string): Use X11-specified types.
6468         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6469         * emacs.c (__free_hook): Use typeof with Intel compiler.
6470         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6471
6472 2003-01-08  Andy Piper  <andy@xemacs.org>
6473
6474         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6475         reserve size during unexec().
6476
6477 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6478
6479         * process-unix.c (unix_create_process): Don't let outchannel block.
6480
6481 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6482
6483         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6484         Needed for IsBadReadPtr().
6485
6486 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6487
6488         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6489
6490 2002-12-14  Ben Wing  <ben@xemacs.org>
6491
6492         * callint.c: Declaration error.
6493         * dumper.c (pdump):
6494         * dumper.c (pdump_load): Warning fix.
6495         * process.c: GCPRO error.
6496         * glyphs.c (unmap_subwindow):
6497         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6498         * event-stream.c (maybe_kbd_translate): Wrong argument to
6499         character_to_event().
6500
6501         * alloc.c (garbage_collect_1):
6502         * emacs.c:
6503         * emacs.c (debug_can_access_memory):
6504         * emacs.c (fatal_error_signal):
6505         * emacs.c (mswindows_handle_hardware_exceptions):
6506         * emacs.c (main_1):
6507         * emacs.c (main):
6508         * emacs.c (assert_failed):
6509         * emacs.c (syms_of_emacs):
6510         * lisp.h:
6511         * print.c:
6512         * print.c (std_handle_out_va):
6513         * print.c (write_string_to_stdio_stream):
6514         * print.c (write_fmt_string):
6515         * print.c (printing_badness):
6516         * print.c (printing_major_badness):
6517         * print.c (print_internal):
6518         * print.c (debug_print_no_newline):
6519         * print.c (debug_backtrace):
6520         Be more defensive in handling bad values when printing.  Add code
6521         from trunk involving inhibit_non_essential_printing_operations.
6522         When going down or in debug_print(), don't do external conversion
6523         and such and try really, really hard when printing to avoid core
6524         dumping.  Add force-debugging-signal, debug_break().
6525
6526 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6527
6528         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6529         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6530
6531 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6532
6533         * database.c: Fix open_database. Berkeley DB API has changed in
6534         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6535
6536 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6537
6538         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6539
6540 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6541
6542         * event-Xt.c (Xt_timeout):
6543         (Xt_timeout_callback):
6544         (emacs_Xt_add_timeout):
6545         (emacs_Xt_remove_timeout):
6546         (Xt_timeout_to_emacs_event):
6547         Turn completed_timeouts from a stack into a queue.  Fixes
6548         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6549
6550 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6551
6552         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6553         * emacs.c (main): Assert that mmap'd allocation is disabled.
6554
6555 2002-10-14  Andy Piper  <andy@xemacs.org>
6556
6557         * glyphs-widget.c (layout_query_geometry): add in fiddle
6558         factor. Include border text in width layout calculation.
6559         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6560
6561 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6562
6563         * XEmacs 21.4.10 "Military Intelligence" is released.
6564
6565 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6566
6567         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6568         using the NAS private array SoundFileInfo that no longer exists in
6569         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6570         and earlier.  This is broken for some versions between 1.5a and
6571         1.5f.
6572
6573 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6574
6575         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6576
6577         * emacs.c (shut_down_emacs): Improve crash message.
6578
6579 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6580
6581         * file-coding.c (determine_real_coding_system): Check for coding
6582         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6583         shebangs and Python PEP 263.
6584
6585 2002-10-08  Andy Piper  <andy@xemacs.org>
6586
6587         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6588         if static sizes haven't been set.
6589
6590 2002-08-30  Mike Alexander  <mta@arbortext.com>
6591
6592         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6593         to close a socket.
6594
6595 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6596
6597         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6598
6599 2002-09-20  Mike Sperber <mike@xemacs.org>
6600
6601         (This partially gets back my patch from 2002-07-20 without the
6602         bug.)
6603         * callproc.c (child_setup): Remove Ben's comment noting confusion
6604         over the file descriptors >= 3: close_process_descs() doesn't
6605         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6606         * process-unix.c (unix_create_process): Call
6607         begin_dont_check_for_quit to inhibit unwanted interaction (and
6608         thus breaking of X event synchronicity) in the child.
6609
6610 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6611
6612         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6613         widget.
6614
6615 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6616
6617         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6618         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6619         the xemacs process did not exit, but looped infinitely here.  This
6620         fixes that problem.
6621
6622 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6623
6624         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6625         (find_context): Improve comments.
6626
6627         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6628         (re_match_2): An XCHAR_TABLE operation was missing.
6629
6630         Many of the following changes were inspired by Andy Piper's (now
6631         obsolete) patch to make syntax-table text property lookup optional.
6632
6633         [Documentation]
6634
6635         * syntax.h (top level): Document semantics of syntax flags.
6636         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6637         * syntax.c, syntax.h (top level): Document syntax cache better in
6638         comments.
6639
6640         [Instrument syntax caching (temporary change)]
6641
6642         * syntax.h (enum syntax_cache_statistics_functions, struct
6643         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6644         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6645         * syntax.c (scan_words, Fforward_comment, scan_lists,
6646         Fbackward_prefix_characters):
6647         * font-lock.c (find_context):
6648         Use them to instrument syntax caching. 
6649         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6650         syntax_cache_statistics_function_names): New type and variables.
6651         * syntax.c (update_syntax_cache): Update and report statistics.
6652
6653         [Major syntax cache optimizations]
6654
6655         syntax.c (lookup_syntax_properties): Default off.
6656
6657         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6658         * syntax.c (update_syntax_cache):
6659         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6660
6661         [Minor syntax cache optimizations and code clarifications]
6662
6663         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6664         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6665         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6666         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6667         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6668         (Code clarification.)
6669
6670         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6671         scan_lists): Compute code from syncode, use Boolean macros instead
6672         of redundant masking operations.  (Code clarification; any decent
6673         compiler can do this optimization.)
6674
6675         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6676         for clarity.
6677
6678         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6679         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6680         use F*_single_property_change instead of F*_extent_change.
6681         Currently F*_single_property_change is _much_ less efficient.
6682
6683         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6684         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6685         syntax_cache.object properly, don't leave Qt or Qnil.
6686         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6687         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6688         tests for Qt or Qnil.
6689
6690 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6691
6692         * redisplay.c (point_in_line_start_cache): 
6693         * extents.c (print_extent_1):
6694         Fix warnings.
6695
6696         * extents.c (Fset_extent_property): Document `syntax-table' property.
6697
6698         * extents.h (Fnext_single_property_change): EXFUN it.
6699
6700 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6701
6702         * search.c (clear_unused_search_regs): New static function.
6703         (search_buffer): 
6704         (simple_search): 
6705         (boyer_moore):
6706         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6707         Minor clarifications in comments.
6708
6709         * regex.c (re_match_2_internal): Ensure no stale submatches.
6710
6711 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6712
6713         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6714
6715 2002-08-29  Jerry James  <james@xemacs.org>
6716
6717         * lisp.h: structrures -> structures.
6718
6719 2002-06-03  Andy Piper  <andy@xemacs.org>
6720
6721         * frame.c (frame_conversion_internal): add conversion appropriate
6722         for setting frame dimensions in pixels.
6723
6724         * console.h (struct console_methods): add device-specific widget
6725         layout functions.
6726
6727         * emacs.c (main_1): initialize glyph vars.
6728
6729         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6730         (handle_focus_event_2): new function. Allow focus to
6731         be set to a particular window and widget.
6732         (enqueue_focus_event): new function. Create a
6733         synthetic focus event.
6734         (emacs_Xt_handle_magic_event): call
6735         handle_focus_event_2.
6736
6737         * frame.c (Fset_frame_pixel_height): new function. Allow
6738         pixel-based sizing. Does the right thing on character-oriented
6739         displays.
6740         (Fset_frame_pixel_width): ditto.
6741         (Fset_frame_pixel_size): ditto.
6742         (syms_of_frame): declare.
6743
6744         * general-slots.h: add :vertically-justify and
6745         :horizontally-justify.
6746
6747         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6748         (mswindows_widget_border_width): new function.
6749         (mswindows_combo_box_instantiate): set border widths.
6750         (console_type_create_glyphs_mswindows): declare.
6751
6752         * glyphs-widget.c:
6753         (check_valid_justification): allow vertical and horizontal
6754         justification.
6755         (widget_border_width): new function. Call device methods.
6756         (widget_instance_border_width): ditto.
6757         (logical_unit_height): new function. Determine the height of a
6758         logical-unit. Logical units are intended to provide grid-like
6759         layout for subcontrols in a layout. If the layout is
6760         :vertically-justify top then subcontrols will be positioned on
6761         logical-unit boundaries, thus allowing adjacent subcontrols to
6762         line up.
6763         (widget_logical_unit_height): ditto for widgets.
6764         (redisplay_widget): misc cleanup.
6765         (widget_spacing): new function. Call device specific
6766         methods. Intended to be the default gap between adjacent widgets.
6767         (widget_query_geometry): use new spacing functions to determine
6768         appropriate geometry.
6769         (initialize_widget_image_instance): initialize horizontal and
6770         vertical justification.
6771         (widget_instantiate): use logica-units where appropriate for
6772         sizing large widgets.
6773         (button_query_geometry): use widget_instance_border_width.
6774         (tree_view_query_geometry): ditto.
6775         (tab_control_query_geometry): ditto.
6776         (edit_field_query_geometry): new function.
6777         (layout_update): pick up :justify, :horizontally-justify and
6778         :vertically-justify none of which worked previously. :justify is
6779         used as a fallback for both horizontal and vertical justification.
6780         (layout_query_geometry): use logical units to size appropriately.
6781         (layout_layout): ditto.
6782         (Fwidget_logical_to_character_width): new function. Allow users to
6783         convert from logical units to characters so that frame sizes can
6784         be set appropriately.
6785         (Fwidget_logical_to_character_height): ditto.
6786         (syms_of_glyphs_widget): declare.
6787         (image_instantiator_edit_fields): add edit_field_query_geometry.
6788         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6789         :horizontally-justify.
6790         (specifier_vars_of_glyphs_widget): new function. Declare
6791         Vwidget_border_width which is not yet used.
6792
6793         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6794         (x_widget_border_width): new function.
6795         (x_widget_instantiate): create a sensible name for widgets.
6796         (console_type_create_glyphs_x): declare x_widget_border_width.
6797
6798         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6799         (struct Lisp_Image_Instance): add :vertically-justify and
6800         :horizontally-justify.
6801         (LAYOUT_JUSTIFY_TOP): new.
6802         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6803         (ROUND_UP): new macro. Round argument up to next integral
6804         interval.
6805
6806         * redisplay-output.c (redisplay_output_layout): misc formatting.
6807
6808         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6809
6810 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6811
6812         * XEmacs 21.4.9 "Informed Management" is released.
6813
6814 2002-08-19  Andy Piper  <andy@xemacs.org>
6815
6816         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6817         win32 format.
6818
6819         * realpath.c (xrealpath): normalize drive spec also so that dir
6820         sep chars are not mixed on cygwin.
6821
6822 2002-08-06  Jerry James  <james@xemacs.org>
6823
6824         * window.c (Fsplit_window): Count only half of the divider width
6825         against the left window when splitting horizontally. 
6826
6827 2002-06-24  Andy Piper  <andy@xemacs.org>
6828
6829         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6830         toolbar was cleared.
6831
6832         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6833         function. Split out from mswindows_output_frame_toolbars.
6834         (mswindows_output_frame_toolbars): move clear pieces to
6835         mswindows_output_frame_toolbars.
6836
6837         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6838         out from gtk_output_frame_toolbars.
6839         (gtk_output_frame_toolbars): move clear pieces to
6840         gtk_clear_frame_toolbars.
6841
6842         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6843         the frame is cleared. How this ever worked before is a mystery.
6844         (x_output_frame_toolbars): Only output toolbars.
6845         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6846
6847         * gutter.c (update_gutter_geometry):
6848         Mark frame layout changed.
6849         (update_frame_gutter_geometry, update_frame_gutters):
6850         Respect frame_layout_changed.
6851
6852         * console.h (struct console_methods): add
6853         clear_frame_toolbars_method.
6854
6855         * redisplay.c (redisplay_frame): call
6856         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6857
6858         * toolbar.h: declare update_frame_toolbars_geometry.
6859
6860         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6861         out from update_frame_toolbars.  Call clear_frame_toolbars.
6862         (update_frame_toolbars): only output, do not change geometry.
6863
6864         * redisplay.c: add frame_layout_changed.
6865
6866         * redisplay.h: add frame_layout_changed.
6867         (CLASS_RESET_CHANGED_FLAGS): set it.
6868         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6869         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6870         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6871
6872         * device.h (struct device): add frame_layout_changed.
6873         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6874
6875         * frame.h (struct frame): add frame_layout_changed.
6876         (MARK_FRAME_LAYOUT_CHANGED): new.
6877
6878 2002-06-30  Mike Alexander  <mta@arbortext.com>
6879
6880         * event-msw.c (mswindows_need_event): Don't wait for a new message
6881         if the queue is not empty.  Suggested by Paul Moore.
6882
6883 2002-06-12  Andy Piper  <andy@xemacs.org>
6884
6885         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6886         for printing on accurately.
6887
6888 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6889
6890         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6891         WM_ACTIVATE message. Make sure that the frame is visible if the
6892         window is visible. This seemss to fix the problem where XEmacs
6893         appears to freeze after switching desktops with certain virtual
6894         window managers.
6895         (debug_output_mswin_message): Added code to output message
6896         parameters for WM_WINDOWPOSCHANGED, 
6897         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6898
6899 2002-05-25  Andy Piper  <andy@xemacs.org>
6900
6901         * select-x.c (vars_of_select_x): Fix docstring of
6902         x-selection-strict-motif-ownership
6903
6904 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6905
6906         * keymap.c (get_keymap):
6907         Add comment about do_autoload GCPROs own args.
6908
6909 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6910
6911         * bytecode.c (execute_optimized_program): check_opcode ifdef
6912         ERROR_CHECK_BYTE_CODE.
6913
6914 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6915
6916         Thanks to Ben Wing and Michael Sperber.
6917
6918         * eval.c (Fcommand_execute):
6919         (Feval):
6920         (Ffuncall):
6921         (Fmacroexpand_internal):
6922         (function_argcount):
6923         callint.c (Fcall_interactively):
6924         Add comment about do_autoload GCPROs own args.
6925
6926         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6927
6928         * eval.c (Ffuncall): Extra braces to placate GCC.
6929
6930 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6931
6932         * backtrace.h (grow_specpdl):
6933         (SPECPDL_RESERVE):
6934         * EmacsFrame.c (EmacsFrameSetValues):
6935         * eval.c (grow_specpdl):
6936         * ExternalShell.c (hack_event_masks_1):
6937         * glyphs-x.c (convert_EImage_to_XImage): 
6938         (x_finalize_image_instance):
6939         * ralloc.c (page_size):
6940         (r_alloc_sbrk):
6941         * xgccache.c (gc_cache_hash):
6942         Fix unsigned comparison warnings.
6943
6944 2002-07-29  Jerry James  <james@xemacs.org>
6945
6946         * lread.c (locate_file): Any nonnegative return value indicates
6947         success if MODE is nonnegative.
6948
6949 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6950
6951         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6952         argument. 
6953
6954 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6955
6956         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6957
6958         * dumper.c (pdump_get_indirect_count):
6959         (pdump_scan_by_alignment):
6960         (pdump_dump_root_struct_ptrs):
6961         (pdump_dump_rtables):
6962         (pdump_dump_root_objects):
6963         (pdump):
6964         * nas.c (WaveOpenDataForReading):
6965         * fns.c (print_bit_vector):
6966         * font-lock.c (SINGLE_SYNTAX_STYLE):
6967         * glyphs.c (check_for_ignored_expose):
6968         (find_matching_subwindow):
6969         * glyphs-eimage.c:
6970         * imgproc.c (get_histogram):
6971         * redisplay.c (point_in_line_start_cache):
6972         * redisplay-output.c (redisplay_unmap_subwindows):
6973         * symbols.c (defsymbol_massage_name_1):
6974         (defkeyword_massage_name):
6975         (deferror_massage_name_and_message):
6976         * redisplay-x.c (x_output_string): 
6977         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6978         * frame.h (struct frame):
6979         * filelock.c (current_lock_owner):
6980         * doprnt.c (emacs_doprnt_1):
6981         * lisp.h (struct Lisp_Bit_Vector):
6982         (DO_REALLOC):
6983         Fix warnings.
6984
6985 2002-02-13  Ben Wing  <ben@xemacs.org>
6986
6987         * event-stream.c (reset_key_echo):
6988         * event-stream.c (reset_this_command_keys):
6989         * event-stream.c (execute_command_event):
6990         If console is dead as a result of C-x 5 0, then post-command stuff
6991         needs to be careful and do only non-console-specific stuff.
6992
6993 2002-07-01  Mike Sperber <mike@xemacs.org>
6994
6995         * process-unix.c (unix_send_process): Mark coding_outstream as
6996         non-open upon SIGPIPE.
6997
6998         * event-stream.c (Fnext_event): Reorder switch cases to something
6999         that makes sense.
7000
7001 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7002
7003         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7004         Don't bogusly reinitialize ascii_character property.
7005
7006 2002-07-08  Mike Sperber <mike@xemacs.org>
7007
7008         * process.c (Fstart_process_internal): Do error checking before we
7009         fork off the child, so the child can't muck with the state of the
7010         parent.
7011
7012 2002-07-08  Mike Sperber <mike@xemacs.org>
7013
7014         * ralloc.c (init_ralloc): Allocate properly for pdump.
7015
7016 2002-06-12  Andy Piper  <andy@xemacs.org>
7017
7018         * glyphs.c (query_string_geometry): check the string.
7019
7020         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7021         widget names.
7022
7023 2002-06-17  Jerry James  <james@xemacs.org>
7024
7025         * sysdll.c: Remove RTLD_GLOBAL initialization.
7026         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7027
7028 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7029
7030         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7031
7032 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7033
7034         * sysdep.c (sys_rename): Make sys_rename work for the case where
7035         Windows rename sets errno to EACCES if target file exists.
7036
7037 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7038
7039         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7040         Fix detection of metric units to work on Win95
7041
7042 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7043
7044         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7045
7046 2002-04-25  Andy Piper  <andy@xemacs.org>
7047
7048         * redisplay.c (create_text_block): Remove extra comment trailer.
7049
7050 2002-04-24  Andy Piper  <andy@xemacs.org>
7051
7052         * redisplay.c (create_text_block): Don't actually add propagation
7053         data if the line ends after we have added a glyph.
7054
7055 2002-04-22  Andy Piper  <andy@xemacs.org>
7056
7057         * extents.c (extent_fragment_update): check for glyphs we have
7058         previously displayed.
7059         * extents.c (print_extent_1): warning removal.
7060         * extents.h: change prototype.
7061         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7062         widths correctly for wide glyphs.
7063         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7064         * redisplay.c (prop_type): add PROP_GLYPH.
7065         * redisplay.c (struct prop_block): add glyph type
7066         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7067         to the propagation data.
7068         * redisplay.c (create_text_block): if there is a glyph in the
7069         propagation data use it to salt extent_fragment_update.
7070         * redisplay.c (create_string_text_block): ditto.
7071
7072 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7073
7074         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7075         * redisplay-output.c (compare_runes): Compare them.
7076         * redisplay.c: Update copyright date.
7077         * redisplay.c (pos_data): Add need_baseline_computation field.
7078         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7079         need_baseline_computation; zero yoffset. Set max_pixmap_height
7080         for all pixmaps, not just automatically positioned ones.
7081         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7082         * redisplay.c (calculate_baseline): New, compute textual baseline.
7083         * redisplay.c (add_glyph_rune): Call them.
7084         * redisplay.c (create_text_block): Likewise.
7085         * redisplay.c (create_overlay_glyph_block): Likewise.
7086         * redisplay.c (add_margin_runes): Likewise.
7087         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7088
7089         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7090         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7091         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7092         * redisplay-msw.c (mswindows_output_string): Likewise.
7093         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7094         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7095         * redisplay-x.c (x_output_display_block): Likewise.
7096
7097 2002-03-28  Ben Wing  <ben@xemacs.org>
7098
7099         * redisplay.c: Fixed bug in redisplay
7100         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7101         and down of the lines, since they're bigger than the line
7102         size. (It was seen most obviously when there's a horizontal scroll
7103         bar, e.g. do C-h a glyph or something like that.) The problem was
7104         that the glyph-contrib-p setting on glyphs was ignored even if it
7105         was set properly, which it wasn't until now.
7106
7107 2002-04-24  Andy Piper  <andy@xemacs.org>
7108
7109         * lisp.h (Dynarr_end): Fix definition.
7110
7111 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7112
7113         * redisplay.c (mark_redisplay): Remove call to
7114         update_frame_window_mirror.
7115
7116 2001-11-15  Andy Piper  <andy@xemacs.org>
7117
7118         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7119         cygwin (again).
7120
7121 2002-02-13  Andy Piper  <andy@xemacs.org>
7122
7123         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7124         we did in fact enqueue the XM_MAPFRAME event.
7125
7126 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7127
7128         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7129         to fix problem switching between virtual desktops under virtuawin
7130         virtual window manager.
7131
7132 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7133
7134         * event-msw.c: Typo fix.
7135         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7136         magic XM_MAPFRAME event has been sent.
7137
7138 2001-11-23  Andy Piper  <andy@xemacs.org>
7139
7140         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7141
7142 2001-11-21  Andy Piper  <andy@xemacs.org>
7143
7144         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7145         mouse events outside the frame.
7146
7147 2002-03-20  Andy Piper  <andy@xemacs.org>
7148
7149         * menubar-msw.c (mswindows_popup_menu): warning removal.
7150         * dialog-msw.c (dialog_popped_down): ditto.
7151
7152 2001-12-11  Andy Piper  <andy@xemacs.org>
7153
7154         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7155         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7156         popup_up_p.
7157         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7158         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7159         * menubar-msw.c (mswindows_popup_menu): ditto.
7160
7161 2001-10-29  Andy Piper  <andy@xemacs.org>
7162
7163         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7164         cancels.
7165
7166 2002-01-03  Andy Piper  <andy@xemacs.org>
7167
7168         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7169         letters.
7170         (xrealpath): ditto.
7171
7172 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7173
7174         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7175         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7176         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7177         Detect and handle case where machine is set up for metric units
7178
7179 2002-04-02  Andy Piper  <andy@xemacs.org>
7180
7181         * dired-msw.c (mswindows_get_files): 
7182         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7183         completely handled by XEmacs. Suggested by Thomas Vogler
7184         <mail@thomas-vogler.de>.
7185
7186 2001-11-14  Andy Piper  <andy@xemacs.org>
7187
7188         * nt.c (REG_ROOT): change registry key to XEmacs.
7189
7190 2002-04-27  Andy Piper  <andy@xemacs.org>
7191
7192         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7193
7194 2002-04-26  Andy Piper  <andy@xemacs.org>
7195
7196         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7197         behavior.
7198
7199 2002-03-14  Mike Alexander  <mta@arbortext.com>
7200
7201         * event-msw.c (mswindows_unwait_process): New, remove process from
7202         wait list
7203         * process-nt.c (nt_finalize_process_data): Call
7204         mswindows_unwait_process
7205         * console-msw.h: Declare mswindows_unwait_process
7206
7207 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7208
7209         * editfns.c (Fdecode_time):
7210         (Fformat_time_string):
7211         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7212         (make_time): Warning elimination (change arg name).
7213
7214 2001-11-24  Andy Piper  <andy@xemacs.org>
7215
7216         * window.c (Fsplit_window): Doc return type.
7217
7218 2002-04-01  Andy Piper  <andy@xemacs.org>
7219
7220         * emacs.c (Fkill_emacs): Only output message box in interactive
7221         mode.
7222
7223 2002-04-26  Andy Piper  <andy@xemacs.org>
7224  
7225         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7226         cygwin.
7227
7228 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7229
7230         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7231         bit platform.
7232
7233 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7234
7235         * XEmacs 21.4.8 "Honest Recruiter" is released.
7236
7237 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7238
7239         Supersedes 2002-04-17 patch.
7240
7241         * process.h (PROCESS_LIVE_P): Use the process status as
7242         evidence of health, not the state of the input stream.
7243         (PROCESS_READABLE_P): Say if the process is readable
7244         from. (It may be dead nonetheless.)
7245         (CHECK_READABLE_PROCESS): Test for that condition.
7246
7247         * process.c (create_process): Use PROCESS_READABLE_P.
7248         (read_process_output, set_process_filter): Likewise.
7249
7250         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7251         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7252
7253         This code is #if 0'd, this is not the time to add new functions:
7254
7255         * process.c (Fprocess_readable_p): Report readability status.
7256         * process.c (Qprocess_readable_p): New, associated symbol...
7257         * process.c (syms_of_process): ... initialize it.
7258
7259 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7260
7261         * XEmacs 21.4.7 "Economic Science" is released.
7262
7263 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7264
7265         * process.h (PROCESS_LIVE_P): Use the process status as
7266         evidence of health, not the state of the input stream.
7267
7268 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7269
7270         * sysdep.c (sys_siglist): change "signum" to "signal"
7271
7272 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7273
7274         * s/darwin.h: New file.
7275         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7276         
7277 2002-04-23  Andreas Jaeger  <aj@suse.de>
7278
7279         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7280         which use lib64 for 64-bit libs.
7281         (START_FILES): Likewise.
7282
7283 2002-02-11  Mike Sperber  <mike@xemacs.org>
7284
7285         * device-x.c: 
7286         (x_IO_error_handler):
7287         (x_init_device): Temporarily keep device in static variable
7288         `device_being_initialized' so we can recover gracefully from
7289         internal XOpenDevice failure.  (XOpenDevice is documented to
7290         return NULL on failure, but sometimes calls the IO error handler
7291         instead.)
7292
7293 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7294
7295         * dired.c (Ffile_name_all_completions): Change documentation --
7296         remove reference to completion-ignored-extensions.
7297         * dired.c (vars_of_dired): Change documentation for
7298         completion-ignored-extensions -- remove reference to
7299         file-name-all-completions.
7300
7301 2002-03-06  Jerry James  <james@xemacs.org>
7302
7303         * emodules.c (emodules_load): Fix multiple loading of same module.
7304
7305 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7306         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7307         RTLD_LAZY to avoid incorrect symbol binding when using nested
7308         shared libraries on Solaris.
7309
7310 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7311
7312         * fileio.c (Ffind_file_name_handler): Improve docstring.
7313
7314 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7315
7316         * fns.c (Fmapconcat): Improve docstring.
7317
7318 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7319
7320         * device-gtk.c: Add prototype for
7321         emacs_gtk_selection_clear_event_handle.
7322         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7323         selection.  Setup signal handler for "selection_clear_event"
7324         (emacs_gtk_selection_clear_event_handle).
7325
7326         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7327         other applications owning the clipboard (based on
7328         x_handle_selection_clear).
7329
7330 2001-12-23  William M. Perry  <wmperry@gnu.org>
7331
7332         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7333         
7334 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7335
7336         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7337
7338 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7339
7340         * XEmacs 21.4.6 "Common Lisp" is released.
7341
7342 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7343
7344         * search.c (Freplace_match): Add missing sub-expression functionality.
7345
7346         * buffer.c (decode_buffer): Add a check for pointer type to
7347         decode_buffer, before gcc's CSE optimization reorders a
7348         dereference in front of the allow_string test.
7349
7350 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7351
7352         * window.c (window_loop): Fix bug that sometimes prevented
7353         window_loop() from iterating across multiple devices.  Also, at
7354         Ben's request, changed infloop-detecting code to abort() instead
7355         of silently terminating window_loop().
7356
7357 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7358
7359         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7360         * editfns.c (make_time): New function.
7361         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7362         * lisp.h (make_time): Prototype and comment it.
7363         * dired.c (wasteful_word_to_lisp): Deprecate.
7364         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7365
7366 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7367
7368         * fileio.c (auto_save_1): Use current coding system, not
7369         escape-quoted.
7370
7371 2001-11-13  Ben Wing  <ben@xemacs.org>
7372
7373         * window.c:
7374         * window.c (window_truncation_on):
7375         * window.c (syms_of_window):
7376         truncate-partial-width-windows should respect the buffer being
7377         displayed, like other redisplay vars.
7378
7379 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7380
7381         * event-stream.c (Fread_key_sequence): save current buffer.
7382
7383 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7384
7385         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7386
7387 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7388
7389         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7390
7391 2001-10-26  Mike Alexander  <mta@arbortext.com>
7392
7393         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7394
7395 2001-10-25  Andy Piper  <andy@xemacs.org>
7396
7397         * ChangeLog:
7398         * dialog-msw.c (handle_directory_proc): new function.
7399          (handle_directory_dialog_box): new fucntion.
7400          (handle_file_dialog_box): use new directory dialog support.
7401          (mswindows_make_dialog_box_internal): ditto.
7402         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7403         handling.
7404         (mswindows_find_frame): make global.
7405         * fileio.c (Fexpand_file_name): build fix.
7406         * general-slots.h: add Qdirectory.
7407         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7408         handling.
7409         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7410         cygwin not leaving win32 paths unchanged.
7411         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7412         cygwin runtime to do path conversion.
7413         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7414         (syms_of_win32): add new function.
7415         * window.c (window_loop): build fix.
7416
7417 2001-10-15  Andy Piper  <andy@xemacs.org>
7418
7419         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7420
7421 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7422
7423         * XEmacs 21.4.5 "Civil Service" is released.
7424
7425 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7426
7427         * glyphs-x.c: Force buffer-tab highlight update when moving the
7428         buffer, avoiding an ugly black border, used for keyboard focus
7429         indication, on a widget that can never have keyboard focus, the
7430         buffer tab.
7431
7432 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7433
7434         * process-unix.c (unix_open_multicast_group): Remove too much
7435         conversion between host and network byte order.
7436
7437 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7438
7439         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7440         before replacing them.
7441
7442         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7443         operation.
7444
7445         * src/window.c (undedicate_windows): Use it.
7446         * src/window.h: Add prototype.
7447
7448 2001-09-17  Ben Wing  <ben@xemacs.org>
7449
7450         * fileio.c (normalize_filename):
7451         * fileio.c (Fexpand_file_name):
7452         Fix various C++ compile errors in Andy's recent code.
7453         
7454         * callint.c (Fcall_interactively):
7455         * editfns.c (Ftemp_directory):
7456         * editfns.c (Fuser_full_name):
7457         * emacs.c (argmatch):
7458         * lread.c (locate_file_map_suffixes):
7459         * redisplay-x.c (x_ring_bell):
7460         Fix sign-compare warnings.
7461         
7462 2001-09-08  Andy Piper  <andy@xemacs.org>
7463
7464         * fileio.c (normalize_filename): copied from nt.c
7465         * (Ffile_name_directory): enable win32 paths under cygwin.
7466         * (Ffile_name_nondirectory): ditto.
7467         * (directory_file_name): ditto.
7468         * (Fexpand_file_name): ditto.
7469         * (Ffile_truename): ditto.
7470         * (Fsubstitute_in_file_name): ditto.
7471         * (Ffile_name_absolute_p): ditto.
7472         * (Ffile_readable_p): ditto.
7473
7474 2001-09-08  Andy Piper  <andy@xemacs.org>
7475
7476         * device-msw.c (mswindows_finish_init_device): remove dde
7477         initialization.
7478         * device-msw.c (mswindows_init_dde): factor out from
7479         mswindows_finish_init_device()
7480         * device-msw.c (init_mswindows_very_early): new function
7481         initialize but don't enable dde.
7482         * emacs.c (main_1): call init_mswindows_very_early.
7483         * event-msw.c:
7484         * event-msw.c (mswindows_dde_callback): only execute when we are
7485         ready.
7486         * symsinit.h: declare init_mswindows_very_early.
7487
7488 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7489
7490         [sjt: This has been in 21.5 for months with no complaints.]
7491
7492         * console.h (struct console_methods): Added flags member.
7493         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7494         (CONMETH_IMPL_FLAG):
7495         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7496         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7497
7498         * device.c (window_system_pixelated_geometry): Use the above macros.
7499
7500         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7501         implememntation flag.
7502         * device.h (DEVICE_DISPLAY_P): Use it.
7503
7504         * frame.c (delete_frame_internal): Use the above macro.
7505
7506         * redisplay.c (redisplay_device): Use it.
7507         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7508         (redisplay_frame): Ditto.
7509
7510         * device-msw.c (mswindows_device_implementation_flags): Removed.
7511         (msprinter_device_implementation_flags): Removed.
7512         (console_type_create_device_mswindows): Removed references to
7513         implementation_flags methods, set implementation flags here.
7514         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7515
7516         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7517         (console_type_create_device_gtk): Removed method declaration.
7518         Added commented out statement which semantically matches the
7519         commented out statement in the above removed method.
7520
7521 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7522
7523         The attached patch fixes a few warnings. 
7524
7525         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7526         * src/frame-gtk.c: guard against GNOME calls in GTK only
7527         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7528         * src/select-gtk.c: prototype lisp_to_time
7529
7530 2001-06-08  Ben Wing  <ben@xemacs.org>
7531
7532         ------ gc-in-window-procedure fixes ------
7533         
7534         * alloc.c:
7535         * alloc.c (struct post_gc_action):
7536         * alloc.c (register_post_gc_action):
7537         * alloc.c (run_post_gc_actions):
7538         * alloc.c (garbage_collect_1):
7539         Create "post-gc actions", to avoid those dreaded "GC during window
7540         procedure" problems.
7541
7542         * event-msw.c:
7543         Abort, clean and simple, when GC in window procedure.  We want
7544         to flush these puppies out.
7545
7546         * glyphs-msw.c:
7547         * glyphs-msw.c (finalize_destroy_window):
7548         * glyphs-msw.c (mswindows_finalize_image_instance):
7549         Use a post-gc action when destroying subwindows.
7550
7551         * lisp.h:
7552         Declare register_post_gc_action().
7553
7554         * scrollbar-msw.c:
7555         * scrollbar-msw.c (unshow_that_mofo):
7556         Use a post-gc action when unshowing scrollbar windows, if in gc.
7557
7558         * redisplay.c (mark_redisplay):
7559         Add comment about the utter evilness of what's going down here.
7560
7561         ------ cygwin setitimer fixes ------
7562         
7563         * Makefile.in.in (sheap_objs):
7564         * Makefile.in.in (profile_objs):
7565         * Makefile.in.in (objs):
7566         Compile profile.c only when HAVE_SETITIMER.
7567         
7568         * nt.c (mswindows_sigset):
7569         * nt.c (mswindows_sighold):
7570         * nt.c (mswindows_sigrelse):
7571         * nt.c (mswindows_sigpause):
7572         * nt.c (mswindows_raise):
7573         * nt.c (close_file_data):
7574         Style fixes.
7575         
7576         * nt.c:
7577         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7578         
7579         * profile.c:
7580         * profile.c (Fstart_profiling):
7581         * profile.c (Fstop_profiling):
7582         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7583         instead of just plain setitimer().
7584         
7585         * signal.c:
7586         * signal.c (set_one_shot_timer):
7587         * signal.c (alarm):
7588         Define qxe_setitimer() as an encapsulation around setitimer() --
7589         call setitimer() directly unless Cygwin or MS Win, in which case
7590         we use our simulated version in win32.c.
7591         
7592         * systime.h:
7593         * systime.h (struct itimerval):
7594         * systime.h (ITIMER_REAL):
7595         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7596         comment about "qxe" and the policy regarding encapsulation.
7597
7598         * win32.c:
7599         * win32.c (setitimer_helper_proc):
7600         * win32.c (setitimer_helper_period):
7601         * win32.c (setitimer_helper):
7602         * win32.c (mswindows_setitimer):
7603         Move setitimer() emulation here, so Cygwin can use it.
7604         Rename a couple of functions and variables to be longer and more
7605         descriptive.  In setitimer_helper_proc(), send the signal
7606         using either mswindows_raise() or (on Cygwin) kill().  If for
7607         some reason we are still getting lockups, we'll change the kill()
7608         to directly invoke the signal handlers.
7609
7610         ------ windows shell fixes ------
7611         
7612         * callproc.c:
7613         * ntproc.c:
7614         Comments about how these two files must die.
7615
7616         * callproc.c (init_callproc):
7617         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7618         not just COMSPEC. (more correct and closer to FSF.) Don't
7619         force a value for SHELL into the environment. (Comments added
7620         to explain why not.)
7621         
7622         * nt.c (init_user_info):
7623         Don't shove a fabricated SHELL into the environment.  See above.
7624
7625 2001-06-01  Ben Wing  <ben@xemacs.org>
7626
7627         * Makefile.in.in (ldflags):
7628         eliminate that pesky "defaulting to 00401000" warning.
7629         * nt.h:
7630         eliminate warnings.
7631
7632 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7633
7634         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7635         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7636
7637 2001-04-24  Jerry James <james@xemacs.org>
7638
7639         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7640         correct order.
7641
7642 2001-06-01  Ben Wing  <ben@xemacs.org>
7643
7644         * event-msw.c (debug_mswin_messages):
7645         conditionalize the messages that were causing compile errors.
7646         (if only macros could generate #ifdef statements ...)
7647
7648 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7649
7650         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7651
7652 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7653
7654         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7655
7656 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7657
7658         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7659         * process-unix.c (unix_canonicalize_host_name):
7660         sysdep.c (init_system_name):
7661         Use it to conditionally support IPv6 canonicalization.
7662
7663 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7664
7665         * event-msw.c:
7666         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7667
7668 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7669
7670         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7671         attempt is made to scroll when no scroll bar is available.
7672
7673 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7674
7675         * input-method-motif.c (XIM_delete_frame): New callback.
7676         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7677         got deleted from 21.4.3.)
7678
7679 2001-06-01  Ben Wing  <ben@xemacs.org>
7680
7681         * nt.c (mswindows_utime):
7682         * nt.c (close_file_data):
7683         fix off-by-one-indirection error.
7684
7685 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7686
7687         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7688         because set_file_times() now takes Lisp_Object path, instead of
7689         char*.
7690         * nt.c: Include buffer.h.
7691         * nt.c (convert_from_time_t): New.
7692         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7693         not set mtime correctly.
7694         * nt.h: Declare mswindows_utime().
7695         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7696         path, instead of char*.
7697         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7698
7699 2001-05-30  Ben Wing  <ben@xemacs.org>
7700
7701         For 21.4:
7702
7703         (Stephen, just take all event-msw.c patches.  This includes
7704         the "iconify" fix below.)
7705
7706         * event-msw.c:
7707         * event-msw.c (mswindows_dequeue_dispatch_event):
7708         * event-msw.c (assert):
7709         * event-msw.c (emacs_mswindows_quit_p):
7710         * event-msw.c (debug_mswin_messages):
7711         * event-msw.c (debug_output_mswin_message):
7712         * event-msw.c (vars_of_event_mswindows):
7713         Fix yet more problems with C-g handling.
7714         Implement debug-mswindows-events.
7715         
7716 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7717
7718         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7719         
7720 2001-05-23  Ben Wing  <ben@xemacs.org>
7721
7722         * event-msw.c (winsock_writer):
7723         * event-msw.c (winsock_closer):
7724         prior kludgy code was clobbering the buffer, thinking it was
7725         "unused" space to store an unneeded return value; instead, use
7726         the variable we've already got staring us in the face.
7727
7728 2001-05-17  Andy Piper  <andy@xemacs.org>
7729
7730         * sysfile.h: don't assume that file attributes are boolean
7731
7732 2001-05-23  Ben Wing  <ben@xemacs.org>
7733
7734         * device-msw.c (msprinter_init_device):
7735         signal an error rather than crash with an unavailable network
7736         printer (from Mike Alexander).
7737         
7738         * event-msw.c:
7739         * event-msw.c (struct winsock_stream):
7740         * event-msw.c (winsock_writer):
7741         * event-msw.c (winsock_closer):
7742         * event-msw.c (make_winsock_stream_1):
7743         cleanup headers.  fix (hopefully) an error with data corruption
7744         when sending to a network connection.
7745
7746         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7747         to handle the ~user prefix by (a) always assuming we're referencing
7748         ourselves and not even verifying the user -- hence any file with
7749         a tilde as its first char is invalid! (b) if there wasn't a slash
7750         following the filename, the pointer was set *past* the end of
7751         file and we started reading from uninitialized memory.  Now we
7752         simply treat these as files, always.
7753
7754         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7755         
7756 2001-05-19  Ben Wing  <ben@xemacs.org>
7757
7758         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7759
7760         * process-nt.c:
7761         * process-nt.c (vars_of_process_nt):
7762         remove unused mswindows-quote-process-args.  rec for 21.4.
7763         
7764 2001-05-12  Ben Wing  <ben@xemacs.org>
7765
7766         * event-msw.c (mswindows_dde_callback):
7767         * event-msw.c (mswindows_wnd_proc):
7768         eliminate cygwin warnings.
7769
7770 2001-05-06  Ben Wing  <ben@xemacs.org>
7771
7772         * console-msw.h:
7773         * device-msw.c:
7774         * device-msw.c (print_dialog_worker):
7775         * device-msw.c (mswindows_handle_print_dialog_box):
7776         * device-msw.c (syms_of_device_mswindows):
7777         * dialog-msw.c (mswindows_make_dialog_box_internal):
7778         * general-slots.h:
7779         implement printing the selection when it's selected.
7780
7781 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7782
7783         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7784
7785 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7786
7787         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7788         EMACS_INT is signed.
7789
7790 2001-04-15  Michael Lausch  <mla@1012surf.net>
7791
7792         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7793         gtk_widget_request_size() to give scrollbar >0 width for
7794         GTK >1.2.8.
7795
7796 2001-05-30  William M. Perry  <wmperry@gnu.org>
7797
7798         * event-gtk.c: Check for buttons as modifier keys.
7799
7800 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7801
7802         * s\mingw32.h:
7803         Properly find MinGW's <process.h> inside Cygwin's restructured
7804         include directories.  Don't try to include <cygwin/version.h>
7805         since we are dropping support for MinGW in versions of Cygwin
7806         earlier than b21.
7807         * nt.c:
7808         Drop support for MinGW in versions of Cygwin before b21.
7809         * sysdep.c:
7810         Properly find MinGW's <process.h> inside Cygwin's restructured
7811         include directories.
7812         * syswindows.h:
7813         Drop support for MinGW in versions of Cygwin before b21.
7814         * unexcw.c:
7815         Even though a.out.h is no longer detected by configure, allow
7816         MinGW to use it until we figure out how to do the job with Win32.
7817
7818 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7819
7820         * syntax.c (find_start_of_comment):
7821         Fix `unbalanced parentheses' bug when dealing with mixed comment
7822         styles in c++/java/etc. mode
7823
7824 2001-05-29  Mike Alexander  <mta@arbortext.com>
7825
7826         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7827         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7828
7829 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7830
7831         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7832
7833 2001-03-31  Mike Sperber <mike@xemacs.org>
7834
7835         * search.c (Freplace_match): Support FSF-style specification of
7836         match subexpression when applied to a buffer.
7837
7838 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7839
7840         * event-stream.c (is_scrollbar_event): add missing semicolon
7841
7842 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7843
7844         * Makefile.in.in: Use TAR macro instead of hardcoding
7845           tar.  Allows use of GNU tar instead of system tar
7846
7847 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7848
7849         * event-stream.c (is_scrollbar_event): add missing semicolon
7850
7851 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7852
7853         * XEmacs 21.4.3 "Academic Rigor" is released.
7854
7855 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7856
7857         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7858
7859 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7860
7861         * buffer.c (Vcase_fold_search): Remove obsolete
7862           comment about non ASCII case-fold-search.  This
7863           bug has been fixed by case-table changes.
7864
7865 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7866
7867         * event-msw.c: Restore include of events-mod.h.
7868
7869 2001-04-22   zhaoway  <zw@debian.org>
7870
7871         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7872         !HAVE_SCROLLBARS.
7873
7874 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7875
7876         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7877
7878 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7879
7880         * mule-charset.c (Fmake_charset): Add missing else.
7881
7882 2001-04-23  Ben Wing  <ben@xemacs.org>
7883
7884         * event-msw.c (FAKE_MOD_QUIT):
7885         * event-msw.c (mswindows_dequeue_dispatch_event):
7886         * event-msw.c (mswindows_wnd_proc):
7887         * event-msw.c (emacs_mswindows_quit_p):
7888         Get critical quit working.
7889
7890 2001-05-05  Ben Wing  <ben@xemacs.org>
7891
7892         * console-msw.h:
7893         * device-msw.c:
7894         * device-msw.c (mswindows_get_default_margin):
7895         * frame-msw.c (mswindows_size_frame_internal):
7896         * frame-msw.c (msprinter_init_frame_1):
7897         * frame-msw.c (vars_of_frame_mswindows):
7898         Change top/bottom margin defaults to 0.5 inches.
7899
7900 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7901
7902         Fix link error with gcc 3.0 on Linux.
7903         * terminfo.c (UP): Remove.
7904         * terminfo.c (BC): Remove.
7905         * terminfo.c (PC): Remove.
7906         They weren't used, and in any case, these symbols should be
7907         defined in the *library*.
7908
7909 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7910
7911         * s/aix4.h: Fix crash with xlc -O3.
7912         Improve comment explaining how -O3 works.
7913
7914 2001-04-15  Ben Wing  <ben@xemacs.org>
7915
7916         * event-stream.c:
7917         * event-stream.c (Fnext_event):
7918         * event-stream.c (is_scrollbar_event):
7919         * event-stream.c (execute_command_event):
7920         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7921         crash' problem.  His fix introduces other problems.  We filter
7922         out scrollbar events specifically, making them somewhat invisible
7923         to command-building, and not appearing in `this-command-keys'.
7924         More work is still needed (see comments in event-stream.c), but
7925         this fixes all the major problems.
7926
7927 2001-04-20  Ben Wing  <ben@xemacs.org>
7928
7929         * .cvsignore: Added stuff for Windows.
7930
7931 2001-04-28  Ben Wing  <ben@xemacs.org>
7932
7933         * buffer.c (Ferase_buffer):
7934         * editfns.c (buffer_insert1):
7935         * editfns.c (Finsert_before_markers):
7936         * editfns.c (Finsert_string):
7937         * editfns.c (Finsert_char):
7938         * editfns.c (Fdelete_region):
7939         * editfns.c (Fwiden):
7940         * editfns.c (Fnarrow_to_region):
7941         remove bogus lines setting zmacs_region_stays to 0.
7942         
7943 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7944
7945         * process-unix.c (unix_open_network_stream): If connect() fails
7946         invalidate file descriptor after closing it.
7947
7948 2001-03-08  Mike Alexander  <mta@arbortext.com>
7949
7950         * event-msw.c (mswindows_need_event_in_modal_loop):
7951         Don't dispatch a message if we didn't get one.
7952         (mswindows_need_event):
7953         Terminate the correct process when one exits instead of the first
7954         one on Vprocess_list and look for process termination when in
7955         mswindows_protect_modal_loop.
7956
7957 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7958
7959         * XEmacs 21.4.1 "Copyleft" is released.
7960
7961 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7962
7963         * input-method-motif.c (XIM_delete_frame): New callback.
7964         (XIM_init_frame): Register it.
7965
7966 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7967
7968         * XEmacs 21.4.0 "Solid Vapor" is released.
7969
7970 2001-04-15  Ben Wing  <ben@xemacs.org>
7971
7972         * cmdloop.c (call_command_loop):
7973         Fix braino in bit-rotting code.
7974         
7975 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7976
7977         * extents.c (Fset_extent_endpoints): Force creation of extent info
7978         in buffer_or_string.
7979
7980         * extents.c (process_extents_for_insertion_mapper): Correctly
7981         check for open-open zero-length extents.
7982
7983 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7984
7985         * lisp.h: New typedefs Memory_count, Element_count.
7986         * regex.c:
7987         * regex.h:
7988         Sign-compare warning elimination: several unsigned -> signed.
7989         Based on work by Ben Wing <ben@xemacs.org>.
7990
7991 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7992
7993         * XEmacs 21.2.47 "Zephir" is released.
7994
7995 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7996
7997         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7998
7999 2001-04-03  Mike Sperber <mike@xemacs.org>
8000
8001         * search.c: Revert previous patch due because of release.
8002
8003 2001-03-30  Ben Wing  <ben@xemacs.org>
8004
8005         * s\cygwin32.h:
8006         Add missing killpg prototype.
8007
8008         * elhash.c:
8009         Add a comment about fixing problems when a new entry is added
8010         while mapping.
8011
8012         * frame-msw.c (mswindows_init_frame_1):
8013         Fix compile warnings.
8014
8015         * menubar.c (vars_of_menubar):
8016         Provide `menu-accelerator-support' to indicate that we properly
8017         support %_ in menu specifications, so that package code can
8018         conditionalize on this (and remove %_ from menu specifications
8019         on older versions).
8020
8021         * event-msw.c:
8022         * scrollbar-msw.c:
8023         * scrollbar-msw.c (can_scroll):
8024         * scrollbar-msw.h:
8025         Fix handling of mouse wheel under Windows to follow standards --
8026         now scrolls window under pointer, not selected window.
8027
8028 2001-03-31  Mike Sperber <mike@xemacs.org>
8029
8030         * search.c (Freplace_match): Support FSF-style specification of
8031         match subexpression when applied to a buffer.
8032
8033 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8034
8035         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8036         function to modify KEYMAP, so map over a copy of the hash table.
8037
8038 2001-03-21  Martin Buchholz <martin@xemacs.org>
8039
8040         * XEmacs 21.2.46 "Urania" is released.
8041
8042 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8043
8044         * realpath.c (xrealpath): Make file-truename work with symlinks to
8045         /cygdrive paths on cygwin. Always lowercase drive-letters on
8046         native windows.
8047         (cygwin_readlink): Don't try to find canonical filename unless
8048         file exists.
8049
8050 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8051
8052         * ChangeLog: Log GTK merge.
8053
8054         * dumper.c:
8055         * select-x.c:
8056         * specifier.c:
8057         * symeval.h:
8058         Revert gratuitous whitespace changes from GTK merge.
8059
8060         * emacs.c: Document end of complex #ifdef @ l. 1495.
8061
8062
8063 2001-03-12  Andy Piper  <andy@xemacs.org>
8064
8065         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8066         have to do likewise.
8067
8068 2001-03-12  Andy Piper  <andy@xemacs.org>
8069
8070         * sysdep.c: we only support mingw now.
8071
8072 2001-03-09  Andy Piper  <andy@xemacs.org>
8073
8074         * unexcw.c (copy_executable_and_dump_data_section): making approx
8075         overrun a warning only.
8076
8077 2001-03-10  William M. Perry  <wmperry@aventail.com>
8078
8079         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8080         satisfy Stephen's identical-after-cpp plea.
8081
8082 2001-03-02  Ben Wing  <ben@xemacs.org>
8083
8084         * cmds.c:
8085         * cmds.c (Fforward_char):
8086         * syntax.c:
8087         * window.c:
8088
8089         Augment documentation of the most common motion commands to make
8090         note of the shifted-motion support.
8091         
8092 2001-03-02  Ben Wing  <ben@xemacs.org>
8093
8094         * nt.c (mswindows_fstat):
8095         * nt.c (mswindows_stat):
8096         * search.c (boyer_moore):
8097         Fix compile warnings under Windows.
8098         
8099         * sysdep.c (sys_readdir):
8100         Fix buggy filename-conversion code under Mule.
8101
8102 2001-03-09  William M. Perry  <wmperry@aventail.com>
8103
8104         * Makefile.in.in:
8105         * config.h.in:
8106         * console.c:
8107         * console.h:
8108         * device.c:
8109         * device.h:
8110         * dragdrop.c:
8111         * emacs.c:
8112         * event-stream.c:
8113         * events.c:
8114         * events.h:
8115         * faces.c:
8116         * frame.h:
8117         * general-slots.h:
8118         * glyphs.c:
8119         * gutter.c:
8120         * inline.c:
8121         * lisp.h:
8122         * lrecord.h:
8123         * make-src-depend:
8124         * redisplay-output.c:
8125         * redisplay.c:
8126         * symsinit.h:
8127         * sysfile.h:
8128         * toolbar.c:
8129         * window.c:
8130         The Great GTK Merge.
8131
8132         * ChangeLog.GTK:
8133         * console-gtk.c:
8134         * console-gtk.h:
8135         * device-gtk.c:
8136         * emacs-marshals.c:
8137         * emacs-widget-accessors.c:
8138         * event-gtk.c:
8139         * frame-gtk.c:
8140         * gccache-gtk.c:
8141         * gccache-gtk.h:
8142         * glade.c:
8143         * glyphs-gtk.c:
8144         * glyphs-gtk.h:
8145         * gtk-glue.c:
8146         * gtk-xemacs.c:
8147         * gtk-xemacs.h:
8148         * gui-gtk.c:
8149         * gui-gtk.h:
8150         * menubar-gtk.c:
8151         * native-gtk-toolbar.c:
8152         * objects-gtk.c:
8153         * objects-gtk.h:
8154         * redisplay-gtk.c:
8155         * scrollbar-gtk.c:
8156         * scrollbar-gtk.h:
8157         * select-gtk.c:
8158         * toolbar-gtk.c:
8159         * ui-byhand.c:
8160         * ui-gtk.c:
8161         * ui-gtk.h:
8162         The Great GTK Merge: new files.
8163
8164 2001-02-26  Ben Wing  <ben@xemacs.org>
8165
8166         Reapplied Lstream change.
8167
8168 2001-02-26  Ben Wing  <ben@xemacs.org>
8169
8170         Undid the last change, since it is more controversial than I
8171         thought.  It should be back in at some point soon.
8172         
8173 2001-02-25  Ben Wing  <ben@xemacs.org>
8174
8175         * buffer.c:
8176         * callproc.c (Fold_call_process_internal):
8177         * event-msw.c (ntpipe_slurp_reader):
8178         * event-msw.c (ntpipe_shove_writer):
8179         * event-msw.c (winsock_reader):
8180         * event-msw.c (winsock_writer):
8181         * file-coding.c:
8182         * file-coding.c (detect_eol_type):
8183         * file-coding.c (detect_coding_type):
8184         * file-coding.c (determine_real_coding_system):
8185         * file-coding.c (Fdetect_coding_region):
8186         * file-coding.c (decoding_reader):
8187         * file-coding.c (decoding_writer):
8188         * file-coding.c (mule_decode):
8189         * file-coding.c (Fdecode_coding_region):
8190         * file-coding.c (encoding_reader):
8191         * file-coding.c (encoding_writer):
8192         * file-coding.c (mule_encode):
8193         * file-coding.c (Fencode_coding_region):
8194         * file-coding.c (detect_coding_sjis):
8195         * file-coding.c (decode_coding_sjis):
8196         * file-coding.c (encode_coding_sjis):
8197         * file-coding.c (detect_coding_big5):
8198         * file-coding.c (decode_coding_big5):
8199         * file-coding.c (encode_coding_big5):
8200         * file-coding.c (detect_coding_ucs4):
8201         * file-coding.c (decode_coding_ucs4):
8202         * file-coding.c (encode_coding_ucs4):
8203         * file-coding.c (detect_coding_utf8):
8204         * file-coding.c (decode_coding_utf8):
8205         * file-coding.c (encode_coding_utf8):
8206         * file-coding.c (detect_coding_iso2022):
8207         * file-coding.c (decode_coding_iso2022):
8208         * file-coding.c (encode_coding_iso2022):
8209         * file-coding.c (decode_coding_no_conversion):
8210         * file-coding.c (encode_coding_no_conversion):
8211         * glyphs-x.c (write_lisp_string_to_temp_file):
8212         * gpmevent.c (tty_get_foreign_selection):
8213         * lisp.h:
8214         * lstream.c:
8215         * lstream.c (Lstream_flush_out):
8216         * lstream.c (Lstream_adding):
8217         * lstream.c (Lstream_write_1):
8218         * lstream.c (Lstream_write):
8219         * lstream.c (Lstream_raw_read):
8220         * lstream.c (Lstream_read_more):
8221         * lstream.c (Lstream_read):
8222         * lstream.c (Lstream_unread):
8223         * lstream.c (Lstream_fputc):
8224         * lstream.c (stdio_reader):
8225         * lstream.c (stdio_writer):
8226         * lstream.c (filedesc_reader):
8227         * lstream.c (filedesc_writer):
8228         * lstream.c (lisp_string_reader):
8229         * lstream.c (struct fixed_buffer_stream):
8230         * lstream.c (make_fixed_buffer_input_stream):
8231         * lstream.c (make_fixed_buffer_output_stream):
8232         * lstream.c (fixed_buffer_reader):
8233         * lstream.c (fixed_buffer_writer):
8234         * lstream.c (struct resizing_buffer_stream):
8235         * lstream.c (resizing_buffer_writer):
8236         * lstream.c (dynarr_writer):
8237         * lstream.c (lisp_buffer_reader):
8238         * lstream.c (lisp_buffer_writer):
8239         * lstream.h:
8240         * lstream.h (lstream_implementation):
8241         * lstream.h (struct lstream):
8242         * md5.c (Fmd5):
8243         * process-nt.c (nt_send_process):
8244         * process-unix.c (unix_send_process):
8245         
8246         Correct Lstream lossage due to mixing of signed and unsigned
8247         quantities.  All Lstream uses of size_t and ssize_t are now a
8248         single signed data type Lstream_data_count.  This fixes problems
8249         under Windows with sending large quantities of data to a process,
8250         and may well fix other subtle bugs.
8251
8252 2001-02-23  Martin Buchholz <martin@xemacs.org>
8253
8254         * XEmacs 21.2.45 "Thelxepeia" is released.
8255
8256 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8257
8258         * lisp-union.h (XSETINT): 
8259         (XSETCHAR):
8260         (XSETOBJ): 
8261         Reverse previous change of 2001-02-06.
8262
8263 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8264
8265         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8266         buffers.
8267         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8268         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8269         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8270         * regex.c (POS_AS_IN_BUFFER): removed
8271         * regex.c (re_search_2):
8272         * regex.c (re_match_2):
8273         Don't use an offset of 1 when calculating buffer positions, since
8274         `BI_BUF_BEGV' does it already.
8275
8276 2001-02-18  Wim Dumon  <wim@easics.be>
8277
8278         * insdel.c (prepare_to_modify_buffer): Also check for
8279         supersession when clash-detection is enabled. 
8280
8281 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8282
8283         * regex.c (re_match_2_internal):
8284         Convert temp characters from 'const unsigned char' to 're_char'.
8285         Fix crashing bug with extended characters under mule.
8286         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8287         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8288         font-lock, pdump, and new syntax-table code.
8289         * syntax.c (find_start_of_comment):
8290         (find_end_of_comment):
8291         (forward-comment):
8292         Fix crashing bugs involving moving beyond end of buffer.
8293         * syntax.c (find_start_of_comment):
8294         Fixed logic to allow proper detection of cases where the same
8295         character is used to end both a two-char comment start and a
8296         two-char comment end sequence. Fixes `(forward-comment -1)'.
8297         * syntax.c (find_start_of_comment):
8298         Return position just past last comment-end character for all cases
8299         (previously was only done for two-char comment-end sequences).
8300         * syntax.c (forward-comment):
8301         Take value returned from `find_end_of_comment', rather than
8302         incrementing it.
8303         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8304         Properly deal with BUFFERP (syntax_cache.object)
8305
8306 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8307
8308         * alloc.c (Fgarbage_collect): 
8309         * alloc.c (make_bit_vector_from_byte_vector):
8310         -Wsign-compare-correctness.
8311
8312 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8313
8314         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8315         (XSETCHAR): Likewise.
8316         (XSETOBJ): Likewise.
8317
8318 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8319
8320         * mule-canna.c (canna-func-delete_previous): 
8321         Rename to canna-func-delete-previous.
8322
8323 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8324
8325         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8326
8327 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8328
8329         * font-lock.c (find_context): Fix C++ compile errors introduced by
8330         recent patch
8331
8332 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8333
8334         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8335         pragma, but earlier ones barf on the same pragma.
8336
8337 2001-02-06  Mike Sperber <mike@xemacs.org>
8338
8339         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8340         `configure-mule-lisp-directory'.
8341
8342 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8343
8344         Make sure dump-id.c is compiled in the same way as other .c's.
8345         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8346         * dump-id.h: Remove.
8347         * emacs.c: Move dump-id.h into dumper.h.
8348         * dumper.h: Move dump-id.h into dumper.h.
8349         * Makefile.in.in:
8350         Use standard .c.o rule for building dump-id.o.
8351         Remove preprocessor flags from link command.
8352         Add dump-id.o to ${otherobjs} if PDUMP.
8353
8354 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8355
8356         Port FSF 20.7 syntax table improvements.
8357         * syntax.c.
8358         * syntax.h.
8359
8360         Fixups for new syntax table stuff.
8361         * dired.c: Include syntax.c.
8362         (Fdirectory_files): Initialize regex_match_object and
8363         regex_emacs_buffer.
8364         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8365         and Fget_char_property.
8366
8367         Use ported FSF 20.7 syntax table improvements.
8368         * font-lock.c.
8369         * regex.c.
8370         * search.c.
8371         
8372 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8373
8374         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8375         Unixware's enum boolean from sys/types.h.
8376
8377 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8378
8379         Fix support for building with latest Purify.
8380         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8381         (PURIFY_FLAGS): Likewise.
8382
8383 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8384
8385         * fileio.c (lisp_string_set_file_times): New.
8386         * fileio.c (Fcopy_file): Use it.
8387         Fixes bug:
8388         (copy-file filename non-ascii-filename t t)
8389         ==> No such file or directory, non-ascii-filename
8390
8391 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8392
8393         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8394         USHRT_MAX seems clearer than ~0 anyways.
8395
8396 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8397
8398         dumper improvements.  Inspired by Olivier.
8399         * dumper.c (pdump_max_align): New.
8400         * dumper.c (pdump_add_entry): Use pdump_max_align.
8401         * dumper.c (pdump_get_entry_list): Likewise.
8402         * dumper.c (pdump_scan_by_alignment): Likewise.
8403         Don't iterate through unnecessary alignments.
8404         * dumper.c (pdump_file_get): No need to align result of malloc().
8405         * dumper.c (pdump_mallocadr): Remove.  
8406         The result of malloc() is guaranteed to be maximally aligned.
8407         * dumper.c: s/elmt/elt/g;
8408         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8409         * dumper.c (pdump_alert_undump_object): Likewise.
8410         * dumper.c (pdump_align_table): 
8411         Don't support alignments > 64.
8412         Store ALIGNOF's, not shift counts, in table.
8413
8414 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8415
8416         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8417         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8418         * systime.h: Use HAVE_UTIME.
8419         * sysdep.c (struct utimbuf): Remove.
8420         * sysdep.c (set_file_times): Prefer utime() to utimes().
8421         * config.h.in (HAVE_UTIME): New.
8422         * config.h.in (HAVE_UTIME_H): Remove.
8423         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8424
8425 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8426
8427         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8428
8429 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8430
8431         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8432
8433 2001-02-08  Martin Buchholz <martin@xemacs.org>
8434
8435         * XEmacs 21.2.44 "Thalia" is released.
8436
8437 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8438
8439         Fixes crashes in kill-emacs on some systems.
8440         * process-unix.c (unix_kill_child_process):
8441         It's OK for kill() to fail with ESRCH.
8442
8443 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8444
8445         Contortions to make .gdbinit tricks work on most systems.
8446         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8447         * alloc.c (dbg_valmask): Make non-const.
8448         * alloc.c (dbg_typemask): Make non-const.
8449         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8450         * alloc.c (dbg_valbits): Make non-const.
8451         * alloc.c (dbg_gctypebits): Make non-const.
8452         * .gdbinit (decode_object): Make it work with AIX cc.
8453
8454 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8455
8456         * elhash.c (make_general_lisp_hash_table):
8457         Use simpler and more efficient calloc to clear entries.
8458
8459 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8460
8461         * window.c (window_scroll): Work around an AIX C compiler bug.
8462         Fixes 'scroll-up' does nothing problem with xlC.
8463
8464 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8465
8466         * .gdbinit: Remove obsolete comment.
8467
8468 2001-01-31  Mike Alexander  <mta@arbortext.com>
8469
8470         * select.c (Fown_selection_internal): Set owned_p for device
8471         method correctly.
8472
8473 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8474
8475         Port to g++ 2.97.
8476         "not" cannot be used as a macro name as it is an operator in C++
8477         * config.h.in: Stop #defining `not'.
8478         * chartab.c (check_category_char): not ==> not_p
8479         * chartab.h: Likewise.
8480         * regex.c (re_match_2_internal): Likewise.
8481
8482 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8483
8484         * lisp-disunion.h: Fix up comments.
8485
8486 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8487
8488         * keymap.c (define_key_check_and_coerce_keysym):
8489         (syms_of_keymap):
8490         Support mouse-6 and mouse-7 bindings in the obvious way.
8491
8492 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8493
8494         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8495
8496 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8497
8498         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8499         Previous patch missed DEFVAR_INT_MAGIC.
8500         Make sure future DEFVAR_foo use correct types.
8501         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8502         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8503         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8504         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8505         * (DEFVAR_INT): Likewise.
8506         * redisplay.c (vertical_clip): Should be of type Fixnum.
8507         * redisplay.c (horizontal_clip): Likewise.
8508         * lisp.h (dump_add_opaque_int): New.
8509         (dump_add_opaque_fixnum): New.
8510
8511 2001-01-29  Andy Piper  <andy@xemacs.org>
8512
8513         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8514         since they can be eval'ed
8515
8516 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8517
8518         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8519         Oops, XEmacs redefines `class'.  Use `typename' instead.
8520
8521 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8522
8523         * dumper.c: Fix C++ compile errors.
8524
8525 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8526
8527         * tparam.c: Use correct prototypes.
8528
8529 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8530
8531         * sysproc.h: #include util.h for NetBSD's openpty.
8532
8533 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8534
8535         More 64-bit correctness.
8536         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8537         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8538         Fix up comments.
8539         This finally finishes the 64-bit SGI port.
8540         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8541         * symbols.c: Fix up comments and type casts.
8542         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8543         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8544         * symeval.h (Fixnum): New type.
8545         * symeval.h (symbol_value_type): Fix up comment.
8546
8547         * commands.h:
8548         * nt.c:
8549         * emacs.c:
8550         * data.c:
8551         * redisplay.c:
8552         * abbrev.c:
8553         * dired-msw.c:
8554         * event-Xt.c:
8555         * eldap.c:
8556         * window.c:
8557         * sound.c:
8558         * event-stream.c:
8559         * eval.c:
8560         * buffer.c:
8561         * mule-canna.c: A million DEFVAR_INTs here...
8562         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8563         * extents.c:
8564         * cmdloop.c:
8565         * lisp.h:
8566         * select-x.c:
8567         * console-x.h:
8568         * event-msw.c:
8569         * mule-wnnfns.c:
8570         * hpplay.c:
8571         * ralloc.c:
8572         * alloc.c:
8573         * keymap.c:
8574         * profile.c:
8575         s/int/Fixnum/g in DEFVAR_INT declarations.
8576
8577 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8578
8579         Port pdump to SGI alignment-sensitive environment.
8580         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8581         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8582         properly aligned.
8583         Define and use aligned reading and writing macros.
8584         Use buffered stdio instead of posix i/o for faster dumping.
8585         Eliminate kludgy 256 byte space for header.
8586         Read and write from dump file using structs for alignment safety.
8587         * dumper.c (pdump_align_stream): New.
8588         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8589         * dumper.c (PDUMP_READ_ALIGNED): New.
8590         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8591         * dumper.c (pdump_static_Lisp_Object): New struct.
8592         * dumper.c (pdump_static_pointer): New struct.
8593         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8594         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8595         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8596         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8597
8598         * dumper.c (pdump_backtrace):
8599         * dumper.c (pdump_get_indirect_count):
8600         * dumper.c (pdump_register_object):
8601         * dumper.c (pdump_register_struct):
8602         * dumper.c (pdump_reloc_one):
8603         * dumper.c (pdump_scan_by_alignment):
8604         * dumper.c (pdump_dump_from_root_struct_ptrs):
8605         * dumper.c (pdump_dump_opaques):
8606         * dumper.c (pdump_dump_rtables):
8607         * dumper.c (pdump_dump_from_root_objects):
8608         * dumper.c (pdump):
8609         * dumper.c (pdump_load_finish):
8610         Use aligned reading and writing.
8611
8612         * dumper.c (pdump_free): Make static.
8613         * dumper.c (pdump_hFile): Likewise.
8614         * dumper.c (pdump_hMap): Likewise.
8615
8616 2001-01-26  Martin Buchholz <martin@xemacs.org>
8617
8618         * XEmacs 21.2.43 "Terspichore" is released.
8619
8620 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8621
8622         Type fiddling for window_config.saved_windows_count
8623         * window.c (struct window_config): 
8624         Make saved_windows_count member unsigned.
8625         * window.c (sizeof_window_config_for_n_windows): 
8626         Make parameter unsigned.
8627         * window.c (mark_window_config):
8628         * window.c (window_config_equal):
8629         * window.c (free_window_configuration):
8630         * window.c (Fset_window_configuration):
8631         * window.c (count_windows):
8632         * window.c (Fcurrent_window_configuration):
8633         * window.c (reinit_vars_of_window):
8634         Update all callers and users.
8635
8636 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8637
8638         Alignment correctness for flexible arrays.
8639         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8640         Make alignment-correct. Add interesting comments.
8641         * alloc.c (size_vector):
8642         * alloc.c (make_vector_internal):
8643         * alloc.c (make_bit_vector_internal):
8644         * alloc.c (sweep_bit_vectors_1):
8645         * fns.c (size_bit_vector):
8646         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8647         * window.c (sizeof_window_config_for_n_windows): 
8648         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8649
8650 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8651
8652         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8653
8654 2001-01-23  Andy Piper  <andy@xemacs.org>
8655
8656         * select.c (Fown_selection_internal): pass owned_p
8657
8658         * select-msw.c (mswindows_own_selection): New Signature.
8659
8660         * console.h (struct console_methods): add owned_p to
8661         _own_selection.
8662
8663         * select-x.c (x_own_selection): pass owned_p
8664         (hack_motif_clipboard_selection): use owned_p
8665         (vars_of_select_x): new variable -
8666         x_selection_strict_motif_ownership.
8667
8668 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8669
8670         * specifier.h (specifier_data_offset): Remove pointless parens.
8671         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8672
8673 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8674
8675         Make Lisp_Object sizeof methods be alignment-correct.
8676         pdump must restore objects to the same alignment as the C compiler
8677         assumes.  It really matters on SGIs.
8678         * lstream.c (aligned_sizeof_lstream): New.
8679         (sizeof_lstream): Use aligned_sizeof_lstream.
8680         (Lstream_new): Likewise.
8681         * opaque.c (aligned_sizeof_opaque): New.
8682         (sizeof_opaque): Use aligned_sizeof_opaque.
8683         (make_opaque): Likewise.
8684         * specifier.c (aligned_sizeof_specifier): New.
8685         (sizeof_specifier): Use aligned_sizeof_specifier.
8686         (make_specifier_internal): Likewise.
8687
8688 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8689
8690         * lstream.h (struct lstream): Use max_align_t for trailing data.
8691         * specifier.h (struct Lisp_Specifier): Likewise.
8692
8693 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8694
8695         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8696         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8697         (CCL_SUSPEND): Likewise.
8698         (CCL_INVALID_CMD): Likewise.
8699         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8700         (ccl_driver): Likewise.
8701         (CCL_WRITE_CHAR): Macro hygiene.
8702         (CCL_WRITE_STRING): Macro hygiene.
8703
8704 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8705
8706         Port "portable" dumper to SunOS 4 and HP-UX.
8707         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8708         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8709         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8710
8711 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8712
8713         * lisp.h (ALIGNOF): A better definition for C++.
8714
8715 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8716
8717         Macro hygiene.
8718         Fix printf warnings: int format, long int arg.
8719         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8720         (PUSH_FAILURE_POINT): Use correct printf formats.
8721         (POP_FAILURE_POINT): Use correct printf formats.  
8722         Use do {...} while (0)
8723
8724 2001-01-20  Martin Buchholz <martin@xemacs.org>
8725
8726         * XEmacs 21.2.42 "Poseidon" is released.
8727
8728 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8729
8730         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8731
8732 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8733
8734         De-kludgify FIXED_TYPE free list frobbing.
8735         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8736         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8737         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8738         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8739         * alloc.c (LRECORD_FREE_P): New.
8740         * alloc.c (MARK_LRECORD_AS_FREE): New.
8741         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8742         * alloc.c (STRUCT_FREE_P): Deleted.
8743         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8744         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8745         * alloc.c (STRING_CHARS_FREE_P): New.
8746         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8747         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8748         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8749         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8750         * alloc.c (resize_string): Use new definitions.
8751         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8752         * alloc.c (verify_string_chars_integrity): Use new definitions.
8753         * alloc.c (compact_string_chars): Use new definitions.
8754         * alloc.c: Update monster comments.
8755         * lrecord.h (lrecord_type): Add some new lrecord types for
8756         alloc.c's use.
8757
8758 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8759
8760         Improve alignment hackery.
8761         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8762         (max_align_t): Moved from opaque.h - general purpose.
8763         (ALIGN_PTR): Use size_t, not long.
8764         * opaque.h (max_align_t): Move to lisp.h.
8765
8766 2001-01-18  Norbert Koch  <nk@LF.net>
8767
8768         * gui.h: Fix and add prototypes to fix build problems.
8769
8770 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8771
8772         temacs is going away, so `dump-temacs' is now a bad name.
8773         * .dbxrc (dump-temacs): Rename to `dmp'.
8774         * .gdbinit (dump-temacs): Rename to `dmp'.
8775
8776 2001-01-17  Andy Piper  <andy@xemacs.org>
8777
8778         * glyphs.c (print_image_instance): comment to make martin happy.
8779
8780         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8781         change.
8782
8783         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8784         activation.
8785         (mswindows_tab_control_redisplay): warning suppression.
8786
8787         * glyphs-widget.c (widget_update): re-write to cope with updated
8788         items.
8789         (widget_instantiate): use new gui_item functions.
8790         (tab_control_update): deleted.
8791         (progress_gauge_update): deleted.
8792         (image_instantiator_progress_guage): take out update reference.
8793         (image_instantiator_tree_view): ditto.
8794         (image_instantiator_tab_control): ditto.
8795
8796         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8797         Right the new way.
8798         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8799         return whether anything was changed.
8800         (update_gui_item_keywords): as it sounds.
8801
8802         * gui.h: declare widget_gui_parse_item_keywords.
8803
8804         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8805         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8806
8807 2001-01-17  Martin Buchholz <martin@xemacs.org>
8808
8809         * XEmacs 21.2.41 "Polyhymnia" is released.
8810
8811 2001-01-16  Didier Verna  <didier@xemacs.org>
8812
8813         * glyphs.c (image_instantiate): don't use fallbacks when
8814         instantiating a face's background pixmap by inheritance.
8815
8816 2001-01-14  Mike Sperber <mike@xemacs.org>
8817
8818         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8819         Conditionalize accordingly.
8820
8821 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8822
8823         * dumper.c (pdump_file_get): Fix a compiler warning.
8824
8825 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8826
8827         Make Purify happy when pdumping.
8828         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8829         iniitalizing all bits of new lisp object memory.
8830         * symbols.c (Fmake_local_variable): Likewise.
8831         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8832         * symbols.c (Fdefvaralias): Likewise.
8833         * mule-charset.c (vars_of_mule_charset): Likewise.
8834
8835 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8836         Add the `-nd' flag when running pre-dump operations under the debugger.
8837         * .dbxrc (run-temacs): Add `-nd'.
8838         * .dbxrc (update-elc): Likewise.
8839         * .dbxrc (dump-temacs): Likewise.
8840         * .gdbinit (run-temacs): Likewise.
8841         * .gdbinit (check-temacs): Likewise.
8842         * .gdbinit (update-elc): Likewise.
8843         * .gdbinit (dump-temacs): Likewise.
8844
8845 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8846
8847         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8848         export OBJECT_MODE=64
8849         configure --pdump --use-union-type=no
8850         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8851         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8852
8853         * miscplay.c (sndcnv8U_2mono):
8854         Avoid two uses of `++' in the same expression.
8855         Suppresses a GCC warning.
8856
8857 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8858
8859         Make sure future compilers don't miscompile alloc.c.
8860         * alloc.c:
8861         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8862         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8863
8864 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8865
8866         * dumper.c: A little post-pdump-rename comment fixup.
8867
8868 2001-01-09  Jerry James  <james@eecs.ku.edu>
8869
8870         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8871
8872 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8873
8874         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8875         script:
8876         #!/bin/sh
8877         replace_symbol () {
8878           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8879         }
8880
8881         replace_symbol pdump_wire_lists pdump_weak_object_chains
8882         replace_symbol pdump_wire_list dump_add_weak_object_chain
8883
8884         replace_symbol pdump_wires pdump_root_objects
8885         replace_symbol pdump_wire dump_add_root_object
8886
8887         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8888         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8889
8890         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8891         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8892         replace_symbol dumpstructinfo pdump_root_struct_ptr
8893         replace_symbol dumpstruct dump_add_root_struct_ptr
8894
8895         replace_symbol dumpopaque dump_add_opaque
8896         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8897         replace_symbol dumpopaqueinfos pdump_opaques
8898         replace_symbol dumpopaqueinfo pdump_opaque
8899
8900         replace_symbol nb_structdump nb_root_struct_ptrs
8901         replace_symbol nb_opaquedump nb_opaques
8902
8903         replace_symbol align_table pdump_align_table
8904         replace_symbol dump_header pdump_header
8905
8906         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8907         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8908
8909
8910 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8911
8912         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8913         optimizing bytecount_to_charcount().
8914
8915 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8916
8917         * config.h.in:
8918         (HAVE_DLFCN_H): Removed.
8919         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8920
8921 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8922
8923         Portable dumper maintainability improvements.
8924         * alloc.c (staticpro):
8925         * alloc.c (staticpro_nodump):
8926         * alloc.c (garbage_collect_1):
8927         * alloc.c (reinit_alloc_once_early):
8928         * alloc.c (init_alloc_once_early):
8929         * alloc.c: Move dumper functions to alloc.c.
8930         * dumper.c (pdump_backtrace):
8931         * dumper.c (pdump_dump_structs):
8932         * dumper.c (pdump_dump_opaques):
8933         * dumper.c (pdump_dump_rtables):
8934         * dumper.c (pdump_dump_wired):
8935         * dumper.c (pdump):
8936         * dumper.c (pdump_load_check):
8937         * dumper.c (pdump_load_finish):
8938         * dumper.c (pdump_file_unmap):
8939         * dumper.c (pdump_file_get):
8940         * dumper.c (pdump_resource_free):
8941         * dumper.c (pdump_resource_get):
8942         * dumper.c (pdump_file_free):
8943         * dumper.c (pdump_file_try):
8944         * dumper.c (pdump_load):
8945         Remove fixed size limits on staticpro(), staticpro_nodump(),
8946         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8947         Remove custom code for dumping lrecord_implementations_table - use
8948         dumpopaque instead.
8949         Remove (most of the) custom code for dumping staticpros - dump it
8950         like any other dynarr.
8951
8952         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8953         * dumper.c: Moved functions from alloc.c.
8954         * alloc.c (dumpstruct): Moved to dumper.c.
8955         * alloc.c (dumpopaque): Likewise.
8956         * alloc.c (pdump_wire): Likewise.
8957         * alloc.c (pdump_wire_list): Likewise.
8958
8959         * lisp.h (Dynarr_sizeof): New.
8960         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8961         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8962         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8963
8964         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8965         * lisp.h (dumpopaque): ditto.
8966         * lisp.h (pdump_wire): ditto.
8967         * lisp.h (pdump_wire_list): ditto.
8968
8969 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8970
8971         * make-src-depend (PrintPatternDeps):
8972         Use `sort' to make output independent of perl version.
8973
8974 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8975
8976         Port to Netbsd 1.5.
8977         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8978         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8979
8980 2001-01-03  Didier Verna  <didier@xemacs.org>
8981
8982         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8983         that `focus_frame' is alive before thinking of calling
8984         `redisplay_redraw_cursor' on it.
8985
8986 2001-01-08  Martin Buchholz <martin@xemacs.org>
8987
8988         * XEmacs 21.2.40 is released.
8989
8990 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8991
8992         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8993
8994 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8995
8996         * alloc.c (dbg_valmask): Make const.
8997         * alloc.c (dbg_typemask): Make const.
8998         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8999         * alloc.c (dbg_valbits): Make const.
9000         * alloc.c (dbg_gctypebits): Make const.
9001
9002 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9003
9004         * redisplay-x.c (x_bevel_area):
9005         redisplay.h (struct rune):
9006         Typo fixes in comments.
9007
9008 2001-01-05  Andy Piper  <andy@xemacs.org>
9009
9010         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9011         adjustment.
9012
9013         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9014
9015 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9016
9017         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9018
9019         * mule-ccl.c (stack_idx_of_map_multiple):
9020         Non const global data must not be initialized!
9021         Found by MIYASHITA Hisashi.
9022
9023 2001-01-02  Andy Piper  <andy@xemacs.org>
9024
9025         * frame.c (change_frame_size): make sure frame size is always
9026         marked as changed.
9027
9028         * glyphs.c (image_instance_layout): minor code reuse.
9029
9030         * window.c (Fcurrent_window_configuration): revert previous
9031         change.
9032
9033 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9034
9035         * glyphs.h:
9036         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9037
9038 2000-12-31  Andy Piper  <andy@xemacs.org>
9039
9040         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9041         when widget gets unmapped.
9042
9043         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9044         function. Make sure widgets losing focus don't just drop it.
9045         (handle_focus_event_1): record the widget with focus.
9046
9047 2000-12-31  Andy Piper  <andy@xemacs.org>
9048
9049         * window.c (allocate_window): use
9050         make_image_instance_cache_hash_table.
9051         (make_dummy_parent): ditto.
9052         (Fset_window_configuration): ditto.
9053
9054         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9055
9056         * glyphs.c (process_image_string_instantiator): use
9057         INSTANTIATOR_TYPE.
9058         (get_image_instantiator_governing_domain): ditto.
9059         (normalize_image_instantiator): ditto.
9060         (instantiate_image_instantiator): ditto.
9061         (make_image_instance_1): ditto.
9062         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9063         (instantiator_eq_equal): new function for use with instance hash
9064         tables.
9065         (instantiator_eq_hash): ditto.
9066         (make_image_instance_cache_hash_table): create a suitable hash
9067         table for storing image instances.
9068
9069         * elhash.h (hash_table_weakness): new internal weakness type
9070         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9071         declare new functions.
9072
9073         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9074         another weakness type for glyphs.
9075         (make_standard_lisp_hash_table): new function split out from
9076         make_general_lisp_hash_table.
9077         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9078         (hash_table_instantiate): ditto.
9079         (Fmake_hash_table): ditto.
9080
9081 2000-12-31  Martin Buchholz <martin@xemacs.org>
9082
9083         * XEmacs 21.2.39 is released.
9084
9085 2000-12-29  Andy Piper  <andy@xemacs.org>
9086
9087         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9088
9089         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9090         the frame has changed so that we pick up geometry changes such as
9091         menubar visibility.
9092
9093 2000-12-28  Andy Piper  <andy@xemacs.org>
9094
9095         * lastfile.c (my_ebss): make a char array so we can pad the
9096         bss. Fixes cygwin unexec.
9097
9098         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9099
9100 2000-12-26  Andy Piper  <andy@xemacs.org>
9101
9102         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9103         comments and try and be more precise about a non-/SIGIO world.
9104         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9105         SIGIO.
9106
9107         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9108         we don't normalize to zero width or height.
9109
9110 2000-12-24  Andy Piper  <andy@xemacs.org>
9111
9112         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9113
9114 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9115
9116         * s/sco5.h: SCO 5 has pty support.
9117
9118 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9119
9120         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9121         input-method-xlib.c contains whole contents of input-method-xfs.c,
9122         so we can use input-method-xlib.c's code for USE_XFONTSET
9123         using #ifdefs.
9124         * input-method-xfs.c: removed.
9125
9126 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9127
9128         * file-coding.h (enum coding_category_type): reorder enumerators to
9129         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9130         (now one greater than largest real coding_category_type enumerator).
9131         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9132         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9133         Fcoding_category_list, Fset_coding_priority_list,
9134         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9135         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9136
9137 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9138
9139         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9140         * redisplay-output.c (redisplay_output_window): Clear top of window
9141         when face is changed.
9142         * redisplay-x.c (x_redraw_exposed_window): Call
9143         redisplay_clear_top_of_window.
9144         * redisplay.h: Publish redisplay_clear_top_of_window.
9145
9146 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9147
9148         * buffer.c (Fkill_buffer): Map over all devices.
9149         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9150         (list_windows): New function.
9151         (list_all_windows): Ditto.
9152         (Freplace_buffer_in_windows): Use them.
9153
9154 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9155
9156         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9157         (Fopen_database): Use `db_create' instead of `db_open'.
9158         (syms_of_database): Initialize Qqueue.
9159
9160 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9161
9162         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9163         buffer_local_face_property.
9164         * buffer.h (struct buffer): New member buffer_local_face_property.
9165         * window.c (Fset_window_buffer):  Mark window's face as changed
9166         when buffer has buffer local face.
9167         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9168         * objects.c (color_after_change): Set buffer_local_face_property
9169         when locale of face specifier is buffer.
9170         * objects.c (font_after_change): Ditto.
9171         * objects.c (face_boolean_after_change): Ditto.
9172         * glyphs.c (image_after_change): Ditto.
9173
9174 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9175
9176         * nt.c (mswindows_fstat): Report file permissions, volume serial
9177         number, etc. Code adapted from FSF Emacs 20.7.
9178
9179 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9180
9181         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9182         of stat when we don't have symbolic links, to make sure
9183         mswindows_stat is called on mswindows.
9184
9185 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9186
9187         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9188
9189 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9190
9191         * doprnt.c (emacs_doprnt_1): More printing fixes.
9192         Make printing of numbers compatible with libc and FSF Emacs.
9193         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9194         Use the system printf to do most of the hard work of formatting,
9195         instead of doprnt_1().
9196         Calculate memory to allocate for format string.
9197         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9198         (doprnt_1): Cleaner code and documentation.
9199
9200 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9201
9202         * Makefile.in.in: Use the loop variable to install headers.
9203
9204 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9205
9206         * window.c (Fsplit_window): Don't invalidate face cache.
9207
9208 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9209
9210         * minibuf.c (Fall_completions): Undo the previous change
9211         which removed checking elements start with space.
9212
9213 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9214
9215         * mule-canna.c: Didier suppression.
9216
9217 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9218
9219         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9220         (warning suppression).  Add English comment translations.
9221
9222 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9223
9224         * unexelfsgi.c (unexec): Better test for mmap failure.
9225
9226 2000-12-05  Martin Buchholz <martin@xemacs.org>
9227
9228         * XEmacs 21.2.38 is released.
9229
9230 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9231
9232         * redisplay.c (bar-cursor): Make a user variable.
9233
9234         * symsinit.h: Add init_postgresql_from_environment.
9235
9236 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9237
9238         * regex.c: Convert to clean C.
9239
9240 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9241
9242         * realpath.c:
9243         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9244         initialization.
9245         (sys_readlink): renamed to system_readlink to avoid conflict with
9246         the other sys_readlink.
9247
9248 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9249
9250         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9251
9252 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9253
9254         * postgresql.c (init_postgresql_from_environment): new function.
9255         (vars_of_postgresql): Move code initializing Lisp variables out and
9256         into init_postgresql_from_environment.
9257         emacs.c (main_1): Call init_postgresql_from_environment if and only
9258         if running a dumped XEmacs.
9259
9260 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9261
9262         * buffer.c: Make find-file-compare-truenames default to true on
9263         windows.
9264
9265         * realpath.c (win32_abs_start):
9266         (cygwin_readlink):
9267         (win32_readlink): New functions.
9268         (xrealpath): Return really real filenames on windows.
9269
9270         * fileio.c (Ffile_truename): Make file-truename work on windows.
9271
9272 2000-11-29  Didier Verna  <didier@xemacs.org>
9273
9274         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9275         * faces.c (update_face_cachel_data): use it.
9276         * faces.c (add_face_cachel): use it. Complete background pixmap
9277         frobbing in face cache if `update_face_cachel_data' has not done so.
9278
9279 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9280
9281         * search.c (string_match_1): Don't set last_thing_searched
9282         when search failed.
9283
9284 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9285
9286         * buffer.c: Include casetab.h
9287         (common_init_complex_vars_of_buffer): Use new case-table object.
9288         * buffer.h: Include casetab.h
9289         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9290         (DOWNCASE_TABLE_OF): Ditto.
9291         * bufslots.h: Remove char-tables and add case-table.
9292         * casetab.c: Include casetab.h
9293         (CASE_TABLE_P): Removed.
9294         (mark_case_table): New function.
9295         (allocate_case_table): New function.
9296         (Fcase_table_p): Use new case-table.
9297         (case_table_char): New function.
9298         (Fget_case_table): Ditto.
9299         (Fput_case_table): Ditto.
9300         (Fput_case_table_pair): Ditto.
9301         (Fcopy_case_table): Ditto.
9302         (Fcurrent_case_table): Return case-table.
9303         (Fstandard_case_table): Return case-table.
9304         (Fset_case_table): Fix doc-string.
9305         (set_case_table): Use case-table
9306         (syms_of_casetab): DEFSUBR new functions.
9307         (complex_vars_of_casetab): Set up standard case-table.
9308         * casetab.h: New file.
9309         * editfns.c: Include casetab.h
9310         (Fcompare_buffer_substrings): Use case-table.
9311         * inline.c: Include casetab.h
9312         * lisp.h: Remove bogus extern.
9313         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9314         * search.c: Include casetab.h
9315         (TRANSLATE_ASCII): Removed.
9316         (TRANSLATE): Unconditionally translate character.
9317         (looking_at_1): Use case-table.
9318         (string_match_1): Ditto.
9319         (fast_string_match): Ditto.
9320         (search_command): Ditto.
9321         (search_buffer): Separate boyer_moore.  Check whether
9322         boyer_moore is possible.
9323         (simple_search): New function.
9324         (boyer_moore): Separated from search_buffer. Translate char.
9325
9326 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9327
9328         * regex.c (RE_TR_ASCII): Removed.
9329         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9330         (PATFETCH): Call PATFETCH_RAW.
9331         (PATFETCH_RAW): Fetch Emchar.
9332         (PATUNFETCH): Decrement charptr.
9333         (GET_BUFFER_SPACE): Rename b to buf_end.
9334         (BUF_PUSH): Ditto.
9335         (BUF_PUSH_2): Ditto.
9336         (BUF_PUSH_3): Ditto.
9337         (EXTEND_BUFFER): Ditto.
9338         (SET_LIST_BIT): Ditto.
9339         (regex_compile): Ditto.  Translate non ASCII char.
9340         (compile_range): Ditto.
9341         (re_search_2): Ditto.
9342         (re_match_2_internal): Compare Emchar.
9343         (bcmp_translate): Ditto.
9344
9345 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9346
9347         * lisp.h (basic char/int typedefs):  comment improvement.
9348
9349 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9350
9351         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9352         unstomp inhibit_site_lisp.  Improve comments.
9353
9354 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9355
9356         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9357
9358 2000-11-28  Andy Piper  <andy@xemacs.org>
9359
9360         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9361         clipped display for windows in the gutter also.
9362         (redisplay_display_boxes_in_window_p): change semantics of return
9363         codes to be more intuitive.
9364
9365         * gutter.h: declare display_boxes_in_gutter_p.
9366
9367         * gutter.c (display_boxes_in_gutter_p): new function for
9368         redisplay.
9369
9370 2000-11-22  Andy Piper  <andy@xemacs.org>
9371
9372         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9373         autodetect domain.
9374
9375 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9376
9377         * callproc.c (Fold_call_process_internal):
9378         * gpm.c (Freceive_gpm_event):
9379         (tty_get_foreign_selection): Might be just warning supression.
9380         * fileio.c (Fwrite_region_internal):
9381         (Fset_visited_file_modtime):
9382         * keymap.c (event_matches_key_specifier_p):
9383         Initialize GCPROed variable.
9384
9385         * menubar-x.c (command_builder_find_menu_accelerator):
9386         Initialize before use.
9387
9388 2000-11-23  Andy Piper  <andy@xemacs.org>
9389
9390         * unexcw.c (unexec): make the resulting executable executable.
9391
9392 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9393
9394         * doc.c (get_doc_string):
9395         Use size_t, not int, for result of XSTRING_LENGTH.
9396
9397         * cmds.c (Fdelete_char):
9398         * cmds.c (Fpoint_at_eol):
9399         * cmds.c (Fself_insert_command):
9400         Use EMACS_INT, not int, for result of XINT.
9401         Someday, someone will want to insert more than 2**31 identical characters.
9402
9403         * cmds.c (Fdelete_char):
9404         * cmds.c (Fdelete_backward_char):
9405         * syntax.c (Fforward_word):
9406         * syntax.c (Fforward_comment):
9407         Make COUNT argument optional, for consistency with forward-char et al.
9408
9409 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9410
9411         * lisp.h:
9412         * print.c (long_to_string):
9413         Return a useful value: the pointer at end of data written.
9414
9415         * doprnt.c:
9416         Use `static const char * const' for constant strings.
9417         (union printf_arg): Delete `i', `ui' members.
9418         (get_doprnt_args):
9419         (emacs_doprnt_1):
9420         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9421         Do all printf-ing via the `l' specifier.
9422         Use EMACS_INT instead of int.
9423         Optimize.
9424
9425 2000-11-20  Didier Verna  <didier@xemacs.org>
9426
9427         * faces.c (update_face_cachel_data): don't frob the background
9428         pixmap when the window is being created. The face is needed but
9429         does not exist yet.
9430
9431 2000-11-20  Andy Piper  <andy@xemacs.org>
9432
9433         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9434         messing with a debug environment.
9435
9436 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9437
9438         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9439
9440 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9441
9442         * casetab.c (Fcase_table_p): Fix compile error and crash.
9443
9444 2000-11-18  Philip Aston  <philipa@mail.com>
9445
9446         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9447
9448 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9449
9450         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9451         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9452
9453 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9454
9455         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9456         * unexelf.c: Use HAVE_ELF_H.
9457         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9458         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9459         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9460         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9461         for testing.
9462         So this is an unexelfsgi.c from a different line of development.
9463
9464 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9465
9466         * regex.c (RE_TR_ASCII): New function.
9467         (RE_TRANSLATE): Call it.
9468
9469 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9470
9471         * buffer.h (TRT_TABLE_OF): Remove assert.
9472         (IN_TRT_TABLE_DOMAIN): Removed.
9473
9474 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9475
9476         * free-hook.c (log_gcpro):
9477         (show_gcprohist): Add support for GCPRO5.
9478
9479 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9480
9481         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9482
9483 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9484
9485         * symeval.h: Declare flush_all_buffer_local_cache.
9486
9487         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9488         (flush_buffer_local_cache): Added.
9489         (flush_all_buffer_local_cache): Added.
9490
9491         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9492
9493         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9494         (pdump_dump_data): Ditto.
9495         (pdump_reloc_one): Ditto.
9496         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9497         before dumping.
9498
9499
9500 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9501
9502         * buffer.c: Remove if 0'ed entry.
9503         * buffer.h: Rewrite TRT to use char-table.
9504         * bufslots.h: Remove mirror tables.
9505         * casetab.c: Remove mirror tables.
9506         (CASE_TABLE_P): New macro.
9507         (Fcase_table_p): Element of a case table is string or char-table.
9508         (make_mirror_trt_table): Removed.
9509         (set_case_table): Setup char-table from strings for backward
9510         compatibility.
9511         * dired.c (Fdirectory_files):
9512         * dired-msw.c: (mswindows_get_files):
9513         * lisp.h: Change prototype of re_pattern_buffer.
9514         * regex.c: (RE_TRANSLATE): New macro.
9515         (TRANSLATE_P): Ditto.
9516         Change translate to type RE_TRANSLATE_TYPE.
9517         * regex.h: Define RE_TRANSLATE_TYPE
9518         * search.c (TRANSLATE): New macro.
9519         (TRANSLATE_ASCII): New macro.
9520         Translate table is changed to Lisp_Object.
9521         (signal_failure): Inhibit return.
9522
9523 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9524
9525         * device-msw.c:
9526         * eldap.c:
9527         * event-Xt.c:
9528         * event-stream.c:
9529         * print.c:
9530         Do UNGCPRO before return.
9531
9532 2000-11-14  Martin Buchholz <martin@xemacs.org>
9533
9534         * XEmacs 21.2.37 is released.
9535
9536 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9537
9538         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9539         Add comments about discarded return value.
9540
9541 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9542
9543         * callint.c:
9544         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9545
9546 2000-10-27  Andy Piper  <andy@xemacs.org>
9547
9548         * gutter.c (Fset_default_gutter_position): default left and right
9549         gutters to visible.
9550         (calculate_gutter_size): calculate resonable heuristic for left
9551         and right gutter sizes.
9552         (specifier_vars_of_gutter): change left and right gutter sizes to
9553         autodetect.
9554         (calculate_gutter_size_from_display_lines): new function.
9555         (output_gutter): check for resizing on left and right gutters.
9556         (clear_gutter): don't special case top and left gutters.
9557         (specifier_vars_of_gutter): use new signature for
9558         set_specifier_caching.
9559
9560         * glyphs-x.c (x_redisplay_widget): spelling fix.
9561         * glyphs.c (specifier_vars_of_glyphs):
9562         * menubar.c (specifier_vars_of_menubar):
9563         * redisplay.c (specifier_vars_of_redisplay):
9564         * toolbar.c (specifier_vars_of_toolbar):
9565         * window.c (specifier_vars_of_window):
9566         * scrollbar.c (specifier_vars_of_scrollbar):
9567         (complex_vars_of_scrollbar): use new signature for
9568         set_specifier_caching.
9569
9570         * specifier.c (set_specifier_caching): include recompute flag.
9571         (recompute_one_cached_specifier_in_window): always recompute if
9572         flag set.
9573         (recompute_one_cached_specifier_in_frame): ditto.
9574
9575         * specifier.h (struct specifier_caching): add recompute flag.
9576
9577 2000-10-24  Andy Piper  <andy@xemacs.org>
9578
9579         * unexcw.c (copy_executable_and_dump_data_section): add new
9580         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9581         5.0 happy.
9582
9583 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9584
9585         * console-x.h (x_device): New member modifier_release_time.
9586         * event-Xt.c (x_handle_sticky_modifiers):
9587         Bound interval modifier keys are sticky.
9588         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9589         * events.h: extern it.
9590
9591 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9592
9593         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9594
9595 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9596
9597         * event-stream.c (execute_command_event): Preserve current_events
9598         and the like when event is misc-user-event.
9599         Inhibit quit during the call to maybe_echo_keys.
9600
9601 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9602
9603         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9604         symlink when buffer is killed.
9605         (inhibit_clash_detection): New variable.
9606
9607 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9608
9609         * console.c (Fset_input_method): Trigger redisplay on tty.
9610
9611 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9612
9613         * process.c (Fprocess_status): Revert to previous behavior:
9614         (process-status "nosuchprocess") ==> nil
9615
9616 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9617
9618         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9619         Work around another GCC 2.95.2 optimizer bug.
9620
9621 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9622
9623         * process.c (Fget_process): Use LIST_LOOP_2.
9624         (kill_buffer_processes): Use LIST_LOOP_2.
9625
9626         * minibuf.c (Fall_completions):
9627         Delete old non-functional code for FSF fourth argument.
9628
9629         * frame.c (frame_matches_frame_spec):
9630         Renamed from `frame_matches_frametype'.  Update all callers.
9631         (device_matches_device_spec):
9632         Renamed from 'device_matches_console_spec'.  Update all callers.
9633
9634         * doc.c (Fsubstitute_command_keys):
9635         Remove buffer overflow crash.  Small code cleanups.
9636
9637         * casetab.c (check_case_table): Simpler code.
9638
9639         * window.c (Freplace_buffer_in_windows):
9640         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9641         (and similar implementation) as Fdelete_windows_on.
9642         Update all callers.
9643
9644         * alloc.c (Fmake_list):
9645         * alloc.c (make_vector):
9646         * alloc.c (Fmake_vector):
9647         * alloc.c (make_bit_vector):
9648         * alloc.c (Fmake_bit_vector):
9649         * alloc.c (Fbit_vector):
9650         * alloc.c (Fmake_string):
9651         * alloc.c (Fpurecopy):
9652         * alloc.c (Fmemory_limit):
9653         * buffer.c:
9654         * buffer.c (Fget_buffer):
9655         * buffer.c (Fkill_buffer):
9656         * buffer.c (complex_vars_of_buffer):
9657         * bytecode.c (Fcompiled_function_stack_depth):
9658         * callint.c (Fprefix_numeric_value):
9659         * event-stream.c:
9660         * event-stream.c (Fread_key_sequence):
9661         * casetab.c:
9662         * casetab.c (Fcase_table_p):
9663         * casetab.c (check_case_table):
9664         * casetab.c (Fset_case_table):
9665         * casetab.c (Fset_standard_case_table):
9666         * chartab.c:
9667         * chartab.c (Fchar_table_type):
9668         * chartab.c (Freset_char_table):
9669         * chartab.c (Fget_char_table):
9670         * chartab.c (Fget_range_char_table):
9671         * chartab.c (Fput_char_table):
9672         * chartab.c (Fmap_char_table):
9673         * chartab.c (Fcategory_table_p):
9674         * chartab.c (Fcheck_category_at):
9675         * chartab.c (Fchar_in_category_p):
9676         * chartab.c (Fcategory_table):
9677         * chartab.c (Fcopy_category_table):
9678         * chartab.c (Fset_category_table):
9679         * chartab.c (Fcategory_designator_p):
9680         * chartab.c (Fcategory_table_value_p):
9681         * cmds.c (Fdelete_char):
9682         * cmds.c (Fdelete_backward_char):
9683         * cmds.c (Fself_insert_command):
9684         * cmds.c (Fself_insert_internal):
9685         * console.c (Fvalid_console_type_p):
9686         * console.c (Fcdfw_console):
9687         * console.c (Fconsole_type):
9688         * console.c (Fconsole_name):
9689         * console.c (Fconsole_device_list):
9690         * console.c (Fconsole_on_window_system_p):
9691         * data.c:
9692         * data.c (Feq):
9693         * data.c (Fold_eq):
9694         * data.c (Fsubr_interactive):
9695         * data.c (Fchar_to_int):
9696         * data.c (Fint_to_char):
9697         * data.c (Fsetcar):
9698         * data.c (Fsetcdr):
9699         * data.c (Fnumber_to_string):
9700         * data.c (Fstring_to_number):
9701         * data.c (Frem):
9702         * database.c (mark_database):
9703         * database.c (finalize_database):
9704         * database.c (Fdatabase_live_p):
9705         * database.c (Fdatabasep):
9706         * device-x.c (Fx_get_resource):
9707         * device.c (Fdfw_device):
9708         * dired.c:
9709         * dired.c (Ffile_name_completion):
9710         * dired.c (Ffile_name_all_completions):
9711         * dired.c (Fuser_name_completion):
9712         * dired.c (Fuser_name_completion_1):
9713         * dired.c (Fuser_name_all_completions):
9714         * doc.c (Fdocumentation):
9715         * doc.c (Fdocumentation_property):
9716         * doc.c (Fsubstitute_command_keys):
9717         * editfns.c:
9718         * editfns.c (Fchar_to_string):
9719         * editfns.c (Fstring_to_char):
9720         * editfns.c (Ftemp_directory):
9721         * editfns.c (Finsert_char):
9722         * editfns.c (Fbuffer_substring_no_properties):
9723         * editfns.c (Fnarrow_to_region):
9724         * editfns.c (Fchar_equal):
9725         * editfns.c (Fchar_Equal):
9726         * editfns.c (Ftranspose_regions):
9727         * emacs.c (Fdump_emacs):
9728         * eval.c (Fthrow):
9729         * eval.c (Fcommand_execute):
9730         * eval.c (Fautoload):
9731         * eval.c (Fbacktrace):
9732         * eval.c (Fbacktrace_frame):
9733         * events.c:
9734         * events.c (Fcopy_event):
9735         * events.c (Fcharacter_to_event):
9736         * events.c (Fevent_button):
9737         * events.c (Fevent_process):
9738         * extents.c:
9739         * extents.c (Fnext_extent_change):
9740         * extents.c (Fextent_property):
9741         * faces.c (Ffacep):
9742         * faces.c (Fmake_face):
9743         * file-coding.c:
9744         * file-coding.c (Fencode_shift_jis_char):
9745         * file-coding.c (Fencode_big5_char):
9746         * fileio.c (Ffile_name_directory):
9747         * fileio.c (Ffile_name_nondirectory):
9748         * fileio.c (Ffile_name_as_directory):
9749         * fileio.c (Fdirectory_file_name):
9750         * fileio.c (Ffile_truename):
9751         * fileio.c (Fsubstitute_in_file_name):
9752         * fileio.c (Ffile_modes):
9753         * fileio.c (Fset_file_modes):
9754         * fileio.c (Fset_default_file_modes):
9755         * fileio.c (Fverify_visited_file_modtime):
9756         * floatfns.c (Facos):
9757         * floatfns.c (Fasin):
9758         * floatfns.c (Fatan):
9759         * floatfns.c (Fcos):
9760         * floatfns.c (Fsin):
9761         * floatfns.c (Ftan):
9762         * floatfns.c (Fbessel_j0):
9763         * floatfns.c (Fbessel_j1):
9764         * floatfns.c (Fbessel_jn):
9765         * floatfns.c (Fbessel_y0):
9766         * floatfns.c (Fbessel_y1):
9767         * floatfns.c (Fbessel_yn):
9768         * floatfns.c (Ferf):
9769         * floatfns.c (Ferfc):
9770         * floatfns.c (Flog_gamma):
9771         * floatfns.c (Fexp):
9772         * floatfns.c (Fexpt):
9773         * floatfns.c (Flog):
9774         * floatfns.c (Flog10):
9775         * floatfns.c (Fsqrt):
9776         * floatfns.c (Fcube_root):
9777         * floatfns.c (Facosh):
9778         * floatfns.c (Fasinh):
9779         * floatfns.c (Fatanh):
9780         * floatfns.c (Fcosh):
9781         * floatfns.c (Fsinh):
9782         * floatfns.c (Ftanh):
9783         * floatfns.c (Fabs):
9784         * floatfns.c (Ffloat):
9785         * floatfns.c (Flogb):
9786         * floatfns.c (Fceiling):
9787         * floatfns.c (Ffloor):
9788         * floatfns.c (Fround):
9789         * floatfns.c (Ftruncate):
9790         * floatfns.c (Ffceiling):
9791         * floatfns.c (Fffloor):
9792         * floatfns.c (Ffround):
9793         * floatfns.c (Fftruncate):
9794         * fns.c (Fstring_equal):
9795         * fns.c (Fstring_lessp):
9796         * fns.c (concat2):
9797         * fns.c (concat3):
9798         * fns.c (vconcat2):
9799         * fns.c (vconcat3):
9800         * fns.c (Fsubstring):
9801         * fns.c (Fassoc):
9802         * fns.c (Fold_assoc):
9803         * fns.c (assoc_no_quit):
9804         * fns.c (Fassq):
9805         * fns.c (Fold_assq):
9806         * fns.c (assq_no_quit):
9807         * fns.c (Frassoc):
9808         * fns.c (Fold_rassoc):
9809         * fns.c (Frassq):
9810         * fns.c (Fold_rassq):
9811         * fns.c (rassq_no_quit):
9812         * fns.c (Fremassoc):
9813         * fns.c (remassoc_no_quit):
9814         * fns.c (Fremassq):
9815         * fns.c (remassq_no_quit):
9816         * fns.c (Fremrassoc):
9817         * fns.c (Fremrassq):
9818         * fns.c (remrassq_no_quit):
9819         * fns.c (Fsort):
9820         * fns.c (Fplist_get):
9821         * fns.c (Fplist_put):
9822         * fns.c (Fplist_remprop):
9823         * fns.c (Fplist_member):
9824         * fns.c (Flax_plist_get):
9825         * fns.c (Flax_plist_put):
9826         * fns.c (Flax_plist_remprop):
9827         * fns.c (Flax_plist_member):
9828         * fns.c (Fequal):
9829         * fns.c (Fold_equal):
9830         * fns.c (Frequire):
9831         * fns.c (Fbase64_encode_region):
9832         * fns.c (Fbase64_encode_string):
9833         * fns.c (Fbase64_decode_region):
9834         * frame.c:
9835         * frame.c (frame_matches_frame_spec):
9836         * frame.c (device_matches_device_spec):
9837         * frame.c (next_frame):
9838         * frame.c (previous_frame):
9839         * frame.c (Fnext_frame):
9840         * frame.c (Fprevious_frame):
9841         * frame.c (Fframe_property):
9842         * frame.c (Fset_frame_height):
9843         * frame.c (Fset_frame_size):
9844         * frame.h:
9845         * glyphs.c:
9846         * glyphs.c (if):
9847         * glyphs.c (decode_error_behavior_flag):
9848         * glyphs.c (Fmake_image_instance):
9849         * indent.c (Findent_to):
9850         * intl.c (Fignore_defer_gettext):
9851         * keymap.c (Fkeymapp):
9852         * keymap.c (Flookup_key):
9853         * lread.c:
9854         * lread.c (Fload_internal):
9855         * lread.c (Feval_buffer):
9856         * lread.c (Feval_region):
9857         * macros.c (Fexecute_kbd_macro):
9858         * marker.c (set_marker_internal):
9859         * marker.c (Fset_marker):
9860         * marker.c (set_marker_restricted):
9861         * marker.c (Fcopy_marker):
9862         * marker.c (noseeum_copy_marker):
9863         * menubar.c:
9864         * menubar.c (Fpopup_menu):
9865         * minibuf.c:
9866         * mule-charset.c (Fcharset_name):
9867         * mule-charset.c (Fchar_charset):
9868         * mule-charset.c (Fchar_octet):
9869         * mule-charset.c (Fsplit_char):
9870         * mule-wnnfns.c (Fwnn_open):
9871         * mule-wnnfns.c (Fwnn_dict_comment):
9872         * mule-wnnfns.c (Fwnn_quit_henkan):
9873         * mule-wnnfns.c (Fwnn_word_toroku):
9874         * mule-wnnfns.c (Fwnn_word_sakujo):
9875         * mule-wnnfns.c (Fwnn_word_use):
9876         * mule-wnnfns.c (Fwnn_hindo_set):
9877         * objects.c:
9878         * objects.c (Fmake_color_instance):
9879         * objects.c (Fmake_font_instance):
9880         * print.c (Fwrite_char):
9881         * process.c:
9882         * process.c (mark_process):
9883         * process.c (print_process):
9884         * process.c (get_process_from_usid):
9885         * process.c (Fprocessp):
9886         * process.c (Fprocess_live_p):
9887         * process.c (Fget_process):
9888         * process.c (Fget_buffer_process):
9889         * process.c (get_process):
9890         * process.c (Fprocess_id):
9891         * process.c (Fprocess_name):
9892         * process.c (Fprocess_command):
9893         * process.c (init_process_io_handles):
9894         * process.c (start_process_unwind):
9895         * process.c (Fstart_process_internal):
9896         * process.c (Fopen_multicast_group_internal):
9897         * process.c (Fset_process_window_size):
9898         * process.c (read_process_output):
9899         * process.c (send_process):
9900         * process.c (Fprocess_tty_name):
9901         * process.c (Fset_process_buffer):
9902         * process.c (Fprocess_buffer):
9903         * process.c (Fprocess_mark):
9904         * process.c (set_process_filter):
9905         * process.c (Fset_process_filter):
9906         * process.c (Fprocess_filter):
9907         * process.c (Fprocess_send_region):
9908         * process.c (Fprocess_send_string):
9909         * process.c (exec_sentinel):
9910         * process.c (Fset_process_sentinel):
9911         * process.c (Fprocess_sentinel):
9912         * process.c (status_notify):
9913         * process.c (Fprocess_status):
9914         * process.c (Fprocess_exit_status):
9915         * process.c (process_send_signal):
9916         * process.c (Fprocess_send_eof):
9917         * process.c (deactivate_process):
9918         * process.c (remove_process):
9919         * process.c (Fdelete_process):
9920         * process.c (kill_buffer_processes):
9921         * process.c (Fprocess_kill_without_query):
9922         * process.c (Fprocess_kill_without_query_p):
9923         * rangetab.c:
9924         * rangetab.c (Fget_range_table):
9925         * rangetab.c (Fput_range_table):
9926         * rangetab.c (Fremove_range_table):
9927         * rangetab.c (Fclear_range_table):
9928         * search.c:
9929         * search.c (Fskip_chars_forward):
9930         * search.c (Fskip_chars_backward):
9931         * search.c (Fskip_syntax_forward):
9932         * search.c (Fskip_syntax_backward):
9933         * search.c (search_command):
9934         * search.c (Freplace_match):
9935         * search.c (Fregexp_quote):
9936         * select.c (Fown_selection_internal):
9937         * select.c (Fselection_owner_p):
9938         * select.c (Fselection_exists_p):
9939         * select.c (Fget_selection_internal):
9940         * specifier.c:
9941         * symbols.c:
9942         * symbols.c (Fintern):
9943         * symbols.c (Fintern_soft):
9944         * symbols.c (Funintern):
9945         * symbols.c (Fapropos_internal):
9946         * symbols.c (Fset_default):
9947         * syntax.c:
9948         * syntax.c (Fsyntax_table_p):
9949         * syntax.c (Fcopy_syntax_table):
9950         * syntax.c (Fset_syntax_table):
9951         * syntax.c (Fchar_syntax):
9952         * syntax.c (syntax_match):
9953         * syntax.c (Fmatching_paren):
9954         * syntax.c (Fforward_word):
9955         * syntax.c (scan_lists):
9956         * syntax.c (Fscan_lists):
9957         * syntax.c (Fscan_sexps):
9958         * syntax.c (Fparse_partial_sexp):
9959         * toolbar.c (Fcheck_toolbar_button_syntax):
9960         * tooltalk.doc:
9961         * window.c:
9962         * window.c (Fwindowp):
9963         * window.c (Fwindow_live_p):
9964         * window.c (Fwindow_point):
9965         * window.c (Fdelete_window):
9966         * window.c (Fnext_window):
9967         * window.c (Fprevious_window):
9968         * window.c (Fother_window):
9969         * window.c (window_loop):
9970         * window.c (Fget_lru_window):
9971         * window.c (Fsplit_window):
9972         * window.c (Fenlarge_window):
9973         * window.c (Fenlarge_window_pixels):
9974         * window.c (Fshrink_window):
9975         * window.c (Fshrink_window_pixels):
9976         * window.c (change_window_height):
9977         * window.c (Fwindow_configuration_p):
9978         * window.c (Fcurrent_window_configuration):
9979         * window.h:
9980         * casefiddle.c (casify_object):
9981         * casefiddle.c (Fupcase):
9982         * casefiddle.c (Fdowncase):
9983         * casefiddle.c (Fcapitalize):
9984         * casefiddle.c (Fupcase_initials):
9985         * casefiddle.c (casify_region_internal):
9986         * casefiddle.c (casify_region):
9987         * casefiddle.c (Fupcase_region):
9988         * casefiddle.c (Fdowncase_region):
9989         * casefiddle.c (Fcapitalize_region):
9990         * casefiddle.c (Fupcase_initials_region):
9991         * casefiddle.c (Fupcase_word):
9992         * casefiddle.c (Fdowncase_word):
9993         * casefiddle.c (Fcapitalize_word):
9994         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9995         Replace 0 with '\0' when working with bytes.
9996         Replace initial "(" with "\(" in docstrings.
9997
9998 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9999
10000         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10001
10002         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10003
10004 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10005
10006         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10007
10008 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10009
10010         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10011         correctly.
10012
10013 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10014
10015         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10016         (inhibit_auto_save_session): New variable.
10017         (vars_of_fileio): Declare and initialize them.
10018         * fileio.c (Fdo_auto_save): Don't create session file if
10019         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10020
10021 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10022
10023         * sgiplay.c (play_internal): C++ compilability.
10024         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10025         * callproc.c (Fold_call_process_internal):
10026         Remove unused vars `env', `first'.
10027         * scrollbar.c (update_scrollbar_instance):
10028         #### unused var `current_window'.
10029         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10030         etc. within #ifdef NOT_YET.
10031         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10032         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10033         * specifier.c (specifier_instance):
10034         #### unused var `tag'.
10035         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10036
10037 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10038
10039         * fns.c (Fbutlast):
10040         * fns.c (list_sort):
10041         * fns.c (Ffillarray):
10042         * fns.c (bytecode_nconc2):
10043         * fns.c (Fnconc):
10044         * fns.c (mapcar1):
10045         * fns.c (Fmapconcat):
10046         Be pedantically 64-bit correct.  For the time when someone will
10047         want to have a list with length > 2**32.
10048
10049         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10050         Work around MIPSpro compiler bug.
10051
10052         * process-unix.c (unix_kill_child_process): Add snarky comment.
10053         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10054
10055         * config.h.in: Oops, _getpt ==> _getpty
10056
10057 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10058
10059         * config.h.in:
10060         * regex.c:
10061         Use void*, not char*, as return type of alloca().
10062
10063         * alloc.c (free_marker): Side effect inside assert expression!
10064
10065 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10066
10067         * mule-charset.c (Fset_charset_ccl_program): To check
10068         if the given ccl program is valid, use setup_ccl_program()
10069         instead of CHECK_VECTOR().
10070         (Fmake_charset): Likewise.
10071
10072 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10073
10074         * faces.c (get_extent_fragment_face_cache_index):
10075         Fix cachel.merged_faces memory leak.
10076
10077 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10078
10079         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10080         Reset MSB of octets obtained by DECODE_SJIS
10081         because of the incompatibility with Emacs.
10082         (ccl_driver)<CCL_ENCODE_SJIS>:
10083         Set MSB of octets before passing them to
10084         ENCODE_SJIS because of the incompatibility
10085         with Emacs.
10086
10087 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10088
10089         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10090         (DECLARE_LRECORD): Undo the last change.
10091         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10092
10093 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10094
10095         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10096         the implementation to lrecord_implementations_table.
10097
10098 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10099
10100         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10101         initial value of `lrecord_type_##c_name' and
10102         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10103         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10104         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10105         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10106         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10107
10108 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10109
10110         * miscplay.c (sndcnv8S_2mono):
10111         (sndcnv2monounsigned):
10112         (sndcnvULaw_2linear):
10113         (sndcnv16swap):
10114         Remove implementation-defined behavior.
10115
10116 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10117
10118         * input-method-xlib.c: Warning suppression.
10119
10120 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10121
10122         * mule-ccl.c: Sync up with Emacs 21.0.90.
10123         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10124         Do nothing.
10125         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10126         Likewise.
10127         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10128         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10129         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10130         leading char belongs to official 2-dimensional charset.
10131         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10132         write the given character as is.  Otherwise,
10133         if it is a multibyte char, convert it by
10134         non_ascii_set_charptr_emchar, then write it.
10135         (CCL_WRITE_STRING): Likewise.
10136         (ccl_get_compiled_code): New function.
10137         (setup_ccl_program): When ccl_prog is invalid,
10138         return -1.
10139         (Fregister_code_conversion_map): New function.
10140         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10141
10142         * mule-ccl.h: Sync up with Emacs 21.0.90.
10143         (Fregister_ccl_program): export it.
10144
10145         * redisplay-msw.c (separate_textual_runs):
10146         If ccl program is not valid, don't do ccl conversion.
10147
10148         * redisplay-x.c (separate_textual_runs): Ditto.
10149
10150         * file-coding.c (Fmake_coding_system):
10151         When type is ccl and value is vector, register it
10152         with a proper symbol.  And checks whether the
10153         given ccl program is valid.
10154         (mule_decode): When calling ccl_driver, if src indicates
10155         NULL pointer, set an empty string instead.
10156         (mule_encode): Likewise.
10157
10158 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10159
10160         The following large batch of changes gets us back to a state of
10161         C++ compilability.  Extbyte is now a char, which means that
10162         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10163
10164         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10165
10166         * sound.c (Fplay_sound): Type correctness.
10167
10168         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10169         (x_get_window_property): Type correctness.
10170         (receive_incremental_selection): unsigned char ==> Extbyte
10171         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10172         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10173         (Fx_store_cutbuffer_internal): Type correctness.
10174
10175         * process-unix.c (try_to_initialize_subtty): Type correctness.
10176
10177         * objects-x.c (x_print_color_instance): Type correctness.
10178         (x_print_font_instance): Type correctness.
10179         (x_list_fonts): SExtbyte ==> Extbyte.
10180         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10181         (x_find_charset_font): SExtbyte ==> Extbyte.
10182         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10183         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10184         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10185         Use bufbyte_strcmp.
10186
10187         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10188         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10189         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10190         (BYTE_C0_P): Use bit ops for char-signedness safety.
10191         (BYTE_C1_P): Use bit ops for char-signedness safety.
10192         (CHARSET_BY_LEADING_BYTE):
10193         (CHARSET_BY_ATTRIBUTES):
10194         Always use inline function.
10195         Use type_checking_assert.
10196         Hide chlook.
10197
10198         * mule-charset.c (non_ascii_charptr_copy_char):
10199         Modify to work with both ASCII and non-ASCII characters.
10200         Improve docs and variable names.
10201         Replace over-clever fall-through switch with a simple loop.
10202         (Lstream_get_emchar_1):
10203         Replace over-clever fall-through switch with a simple loop.
10204
10205         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10206         Warning suppression.
10207
10208         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10209         the return value of Lstream_getc, which could be EOF as well.
10210
10211         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10212
10213         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10214         APIs can be used on Extbytes without casts.  Risky!
10215         (SExtbyte): Remove.
10216         (UExtbyte): Remove.
10217
10218         * input-method-xlib.c (XIM_init_device):
10219         Use Xlib.h instead of IntrinsicP.h.
10220         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10221         which will break in X11R7.
10222         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10223         to call XRegisterIMInstantiateCallback with correct types.
10224
10225         * gui-x.c (button_item_to_widget_value): Type correctness.
10226
10227         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10228
10229         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10230         (xbm_instantiate_1): Type correctness.
10231         (BUILD_GLYPH_INST):  Type correctness.
10232
10233         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10234
10235         * file-coding.c:
10236         (decode_coding_sjis):
10237         (decode_coding_big5):
10238         (decode_coding_ucs4):
10239         (decode_coding_utf8):
10240         (decode_coding_iso2022):
10241         (decode_coding_no_conversion):
10242         Make all decoding functions take an Extbyte * arg.
10243         (encode_coding_sjis):
10244         (encode_coding_big5):
10245         (encode_coding_ucs4):
10246         (encode_coding_utf8):
10247         (encode_coding_iso2022):
10248         (encode_coding_no_conversion):
10249         Make all encoding functions take a Bufbyte * arg.
10250         Use size_t instead of unsigned int for memory sizes.
10251         Only cast to unsigned char whenever dereferencing Extbyte *.
10252
10253         * doc.c (unparesseuxify_doc_string): Type correctness.
10254
10255         * console-x.c (split_up_display_spec):
10256         Rewrite without using details of internal string representation.
10257         (x_semi_canonicalize_device_connection): Type correctness.
10258
10259         * config.h.in:
10260         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10261         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10262         (HAVE_XFREE386): Removed.
10263
10264         * buffer.h (DEC_CHARPTR): `const' correctness.
10265         (bufbyte_strcmp): New.
10266         (bufbyte_memcmp): New.
10267
10268         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10269
10270         * buffer.h (XCHAR_OR_CHAR_INT):
10271         Always use inline function.
10272         Remove redundant type checking assert() - XINT will abort quite nicely.
10273
10274 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10275
10276         * search.c (Freplace_match): Set newtext to an empty string.
10277
10278 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10279
10280         * s/decosf1-3.h: Remove #include of stropts.h
10281         * s/ptx.h: Remove #include of stropts.h
10282         * s/usg5-4.h: Remove #include of stropts.h
10283         * sysproc.h:
10284         * config.h.in:
10285         Use stropts.h, not sys/stropts.h.
10286         Use strtio.h, not sys/strtio.h.
10287
10288 2000-10-04  Martin Buchholz <martin@xemacs.org>
10289
10290         * XEmacs 21.2.36 is released.
10291
10292 2000-09-21  Andy Piper  <andy@xemacs.org>
10293
10294         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10295         changes still involve copying the widget tree.
10296         (update_widget_face): make sure a change is register in the widget
10297         tree. Call update_tab_widget_face appropriately.
10298         (update_tab_widget_face): ditto.
10299         (x_tab_control_redisplay): make sure non-structural changes still
10300         involve copying the widget tree.
10301
10302 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10303
10304         * lread.c (locate_file): Check the path element is non-nil.
10305
10306 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10307
10308         * lisp.h: Warning suppression for SCO compilers.
10309
10310         * redisplay-tty.c (reset_tty_modes): Fix crash.
10311         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10312
10313 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10314
10315         Big signal/process handling overhaul.  Bugs fixed:
10316         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10317         M-x comint-kill-subjob should work for both values nil and t of
10318         process-connection-type. It was broken on most platforms.
10319         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10320         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10321         * process-unix.c: Signal/Process handling overhaul.
10322         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10323         (allocate_pty): Use all available modern methods of allocating
10324         ptys, falling back to old style BSD allocation as a last resort.
10325         Use allegedly more secure Unix98 pty allocation by default.
10326         (allocate_pty_the_old_fashioned_way): New. the last resort.
10327         (unix_create_process): Push ptem, ldterm, ttcompat where
10328         available.  Autoconfiscate.
10329         (try_to_initialize_subtty): New.
10330         (unix_kill_child_process): Proper signal handling for ptys on most
10331         platforms, using special knowledge of AIX, BSD, etc...
10332         (unix_create_process): Always disconnect_controlling_terminal() for
10333         subprocesses, whether using ptys or not.
10334         * process.h: Remove old getpt-dependent PTY code.
10335         * process.c (Fprocess_send_signal): New, obvious generic function.
10336         (decode_signal): New.
10337         (Finterrupt_process):
10338         (Fkill_process):
10339         (Fquit_process):
10340         (Fstop_process):
10341         (Fcontinue_process):
10342         (Fsignal_process): Use decode_signal.
10343         (process_send_signal):
10344         Many docstring corrections.
10345         Allow any signal to be sent to a process object.
10346         * config.h.in: Add symbols for big signal/process overhaul.
10347         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10348         * sysproc.h: Include process-related headers, where available:
10349         sys/stropts.h sys/strtio.h pty.h libutil.h
10350         * s/irix4-0.h:
10351         * s/irix5-0.h:
10352         * s/cygwin32.h:
10353         * s/gnu.h:
10354         * s/linux.h:
10355         * s/hpux.h:
10356         * s/aix3-1.h:
10357         Remove old S&M pty stuff.
10358         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10359         * systty.h: Simplify cpp hackery, improve comments.
10360         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10361
10362         * editfns.c (Fformat_time_string):
10363         Be a little more paranoid with the return value of ctime.
10364
10365         * fileio.c (check_executable):
10366         (check_writable):
10367         Use symbolic constants X_OK, W_OK.
10368
10369         * console-x.c (split_up_display_spec): Fix a warning.
10370
10371 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10372
10373         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10374         * ntproc.c (sys_spawnve): make_string ==> build_string
10375         Small clarity improvements.
10376
10377 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10378
10379         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10380
10381         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10382
10383         * config.h.in (HAVE_STRCASECMP): Remove.
10384
10385 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10386
10387         * redisplay-output.c (redisplay_output_pixmap):
10388         Cleaner and possibly more 64-bit correct code.
10389
10390 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10391
10392         * dumper.c (pdump_load_finish): move restoration of
10393         `noninteractive1' to emacs.c (main_1).
10394         * emacs.c (main_1): protect LISP-visible command-line flags
10395         from pdump_load().
10396
10397 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10398
10399         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10400         DUMP_TARGET instead of literal program names.
10401
10402 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10403
10404         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10405
10406 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10407
10408         * *: Spelling mega-patch
10409
10410 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10411
10412         * fns.c (bad_bad_turtle):
10413         Delete "Eek!" comment, since we fixed the bug to which it refers.
10414
10415 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10416
10417         * alloca.c: Replace REGISTER with register.
10418
10419 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10420
10421         * file-coding.c (ucs_to_char): Use countof.
10422
10423 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10424
10425         * file-coding.c: (ucs_to_char):
10426         (complex_vars_of_file_coding):
10427         Use countof instead of sizeof.
10428         Use CHECK_NATNUM instead of CHECK_INT.
10429
10430         * sysdep.c (strcasecmp): Remove.
10431         * device-x.c (ascii_strcasecmp): New.
10432         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10433         Avoid using non-standard non-portable strcasecmp.
10434
10435 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10436
10437         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10438         * font-lock.c: remove reference to emacsfns.h.
10439         * search.c: small doc improvement.
10440         * event-Xt.c: correct file names in comments.
10441         * console-x.h Correct file names in comments.
10442         * frame.c: Correct file names in comments.
10443         * event-stream.c: remove Energize from comments.
10444
10445 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10446
10447         * symeval.h (DEFERROR_STANDARD):
10448         (DEFERROR):
10449         (DEFSYMBOL):
10450         (DEFSYMBOL_NO_DUMP):
10451         (DEFSYMBOL_MULTIWORD_PREDICATE):
10452         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10453         (DEFKEYWORD):
10454         The construct &##name is not sensible C.
10455         Fixes compilation errors with Unixware native compiler.
10456
10457 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10458
10459         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10460         (next_frame_internal): Removed.  We now just have next_frame.
10461         (next_frame):
10462         Write a simpler and cleaner one-pass algorithm.
10463         Remove called_from_delete_device arg and #ifdefed-out code.
10464         (previous_frame):
10465         Renamed from prev_frame.  Update callers.
10466         Cleaned up to have an analogous implementation to next_frame.
10467         (other_visible_frames_internal): Remove the
10468         called_from_delete_device bogus arg, and hence, remove this
10469         function.  Just use other_visible_frames().
10470
10471         * window.c (Fnext_window):
10472         Prettify docstring.
10473         Since next_frame() is guaranteed to return a frame, remove check
10474         for nil inserted in previous patch.
10475         (Fprevious_window):
10476         Prettify docstring.
10477         Make code look more like Fnext_window.
10478         (window_loop):
10479         Respect the `console' arg when iterating through windows.
10480         Fixes bug: (get-buffer-window buffer t device) not respecting
10481         the `device' arg.
10482         This function needs more work, as others have pointed out.
10483
10484         * frame.h: Rename prev_frame to previous_frame.
10485         device_matches_console_spec no longer takes a `frame' arg.
10486
10487         * s/gnu.h:
10488         * s/linux.h:
10489         * s/hpux.h:
10490         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10491         From "Golubev I. N." <gin@mo.msk.ru>.
10492
10493         * make-src-depend: Fix typo.
10494
10495 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10496
10497         * window.c (Fnext_window):
10498         next_frame() might return nil, not a frame.
10499         Fixes this crash:
10500         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10501
10502         * frame.c (next_frame_internal):
10503         We've passed a frame if we've passed its device.
10504         Fixes this crash:
10505         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10506 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10507
10508 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10509
10510         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10511         Allow option to suppress accelerators in menu/dialog items.
10512         (populate_or_checksum_helper): Pass dialog title through above.
10513
10514 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10515
10516         * event-msw.c (mswindows_key_to_emacs_keysym):
10517         Add "pause" key, fix "menu" key.
10518
10519 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10520
10521         * eval.c (reinit_vars_of_eval):
10522         Increase max_lisp_eval_depth to 1000,
10523         required for thai-xtis.el to byte-compile under some circumstances.
10524
10525 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10526
10527         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10528         From Kenichi Handa.
10529
10530 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10531
10532         * make-src-depend: Make the generated Makefiles smaller.
10533
10534         * s/hpux.h (SETUP_SLAVE_PTY):
10535         Provide a %d in the format string for the errno argument.
10536
10537         * editfns.c (Ftemp_directory):
10538         Warning fix.
10539         Avoid buffer overrun on very long file name.
10540
10541         * input-method-xlib.c (XIM_init_device):
10542         6th parameter of XRegisterIMInstantiateCallback has different
10543         pointer types on different OSes, so simply cast to (void *).
10544
10545         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10546
10547         * sysdll.c (dll_open):
10548         shl_load will hang hard if passed a NULL filename.
10549         Simply return NULL for compatibility with dlopen.
10550         * sysdll.c: Conform to XEmacs coding standards.
10551
10552         * sysdep.c (get_pty_max_bytes):
10553         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10554
10555 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10556
10557         * tooltalk.c: Add #include <syssignal.h>
10558
10559 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10560
10561         * s/hpux.h: Don't use undefined function sigunblock().
10562
10563 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10564
10565         * config.h.in: Add HAVE_BALLOON_HELP.
10566         * emacs.c: Use HAVE_BALLOON_HELP.
10567         * Makefile.in.in (x_objs):
10568         Make Balloon Help conditional on finding shape.h.
10569
10570 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10571
10572         * syntax.c (regex_emacs_buffer_p): New variable.
10573         * syntax.h (regex_emacs_buffer_p): extern.
10574         * search.c (looking_at_1):
10575         (string_match_1):
10576         (fast_string_match):
10577         (search_buffer): Set regex_emacs_buffer_p.
10578         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10579         when before_dot, at_dot, after_dot.
10580
10581 2000-08-23  Andy Piper  <andy@xemacs.org>
10582
10583         * gui-x.c (popup_selection_callback): Only set action_occurred
10584         when we really have an image instance.
10585         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10586
10587 2000-08-23  Andy Piper  <andy@xemacs.org>
10588
10589         * gui-msw.c (mswindows_handle_gui_wm_command): set
10590         action_occurred.
10591         * gui-x.c (popup_selection_callback): ditto.
10592
10593         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10594         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10595         (struct Lisp_Image_Instance): add action_occurred flag.
10596
10597         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10598         (image_instance_changed): ditto.
10599         (reset_frame_subwindow_instance_cache): only unmap windows - do
10600         not remove them from the cache also.
10601
10602         * glyphs-widget.c (tab_control_update): better debug.
10603         (progress_gauge_update): ditto.
10604         (layout_update): ditto.
10605         (layout_instantiate): ditto.
10606         (tab_control_order_only_changed): cope with null pending items.
10607
10608         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10609         debug. Force selection of an item when an action occurred. Cope
10610         with null pending_items.
10611         (mswindows_progress_gauge_redisplay): better debug.
10612         * glyphs-x.c (x_tab_control_redisplay): ditto.
10613
10614         * redisplay.c (redisplay_frame): reset the frame cache if the
10615         frame is garbaged.
10616
10617         * window.c (Fset_window_configuration): potentially re-enable
10618         frame cache reset.
10619         (window_unmap_subwindows): need to finalize instances here since
10620         it is only used in mark_window_as_deleted.
10621
10622 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10623
10624         * nas.c (SndOpenDataForReading):
10625         nas.c (WaveOpenDataForReading):
10626         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10627         Somehow escaped from the 2000-08-14 patch.
10628
10629 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10630
10631         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10632         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10633
10634 2000-08-21  Andy Piper  <andy@xemacs.org>
10635
10636         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10637         window if it is not already displayed.
10638
10639         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10640         it is not already displayed.
10641
10642         * window.c (Fset_window_configuration): don't reset the frame
10643         cache.
10644
10645         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10646         instances from the frame cache if we are actually finalizing them.
10647         (reset_frame_subwindow_instance_cache): reset frame cache only
10648         after unmapping everything.
10649         (map_subwindow): set displayed flag after mapping.
10650
10651 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10652
10653         * data.c (indirect_function):
10654         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10655
10656         * eval.c (function_argcount):
10657         Use original function when signaling errors.
10658
10659 2000-08-18  Andy Piper  <andy@xemacs.org>
10660
10661         * frame.c (delete_frame_internal): use new
10662         free_frame_subwindow_instances name.
10663
10664         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10665         (add_tab_item): make return type correct.
10666         (mswindows_tab_control_instantiate): assert index of tab.
10667         (mswindows_tab_control_redisplay): Re-code to use
10668         gui_item_equal_sans_selected and gui_item_list_find_selected.
10669
10670         * glyphs-widget.c (tab_control_update): Correct comment.
10671
10672         * window.c (window_unmap_subwindows): use new
10673         unmap_subwindow_instance_cache_mapper.
10674         (window_unmap_subwindows_cache_mapper): deleted.
10675         (Fset_window_configuration): comparisons should now be with
10676         EQ. Preserve the subwindow instance cache across configuration
10677         changes.
10678         (allocate_window): ditto.
10679         (make_dummy_parent): ditto.
10680
10681         * glyphs.c (free_frame_subwindow_instances): rename from
10682         free_frame_subwindow_instance_cache. finalize all instances rather
10683         than just those in the display cache.
10684         (finalize_all_subwindow_instances): walk windows unmapping and
10685         finalizing subwindows.
10686         (unmap_subwindow_instance_cache_mapper): moved from
10687         window.c. Allow finalization as well as unmapping.
10688
10689         * gui.c (gui_item_list_find_selected): new function.
10690
10691         * gui.h (gui_item_list_find_selected): declare.
10692
10693         * glyphs-x.c (x_tab_control_redisplay): pick tab
10694         explicitly. Re-code to use gui_item_equal_sans_selected and
10695         gui_item_list_find_selected.
10696
10697         * glyphs-x.h: add lwlib-utils.h
10698
10699         * buffer.c (Frecord_buffer): undo previous change.
10700
10701 2000-08-09  Vin Shelton  <acs@xemacs.org>
10702
10703         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10704         possible.  Create temporary files more securely.  The patch was
10705         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10706         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10707         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10708         for details.
10709
10710 2000-08-07  Ben Wing  <ben@xemacs.org>
10711
10712         * getloadavg.c: remove duplicate (and windows-breaking)
10713         includes of fcntl.h and sys/file.h.
10714
10715         * nt.c: remove duplicate getloadavg() definition.
10716
10717         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10718         encodings.
10719
10720 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10721
10722         * eval.c (function_argcount): If function needs to be autoloaded
10723         actually use the loaded definition.
10724         GCPRO function.
10725
10726 2000-08-05  Ben Wing  <ben@xemacs.org>
10727
10728         * getloadavg.c: add prototype for getloadavg().  remove
10729         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10730         of the code).  remove duplicate header includes.
10731
10732         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10733
10734         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10735         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10736         useful load average.
10737
10738         * alloc.c (reinit_alloc_once_early): removed references to
10739         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10740         the lisp vars are the only things referencing the malloc_sbrk_*
10741         vars, and they were already if 0'd out.  these vars only exist
10742         in the older malloc.c, which is basically unused, and they're
10743         only for informational purposes.
10744
10745         * m\*.h: removed useless VIRT_ADDR_VARIES.
10746
10747         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10748
10749 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10750
10751         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10752         color if the image is a mono pixmap.
10753
10754 2000-07-30  Ben Wing  <ben@xemacs.org>
10755
10756         * Makefile.in.in (release):
10757         Remove stray @.
10758
10759         * buffer.c (directory_is_current_directory):
10760         * dired-msw.c (mswindows_get_files):
10761         * dired.c:
10762         * dired.c (Fdirectory_files):
10763         * dired.c (file_name_completion_stat):
10764         * dired.c (Ffile_attributes):
10765         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10766         preprocessor tricks, to avoid problems on some machines
10767         (e.g. SCO).
10768
10769         * callproc.c (egetenv): GC docs.
10770
10771         * console-msw.h:
10772         * console-msw.h (struct mswindows_dialog_id):
10773         * lrecord.h (lrecord_type):
10774         New object for use with MSW dialogs.
10775
10776         * console.h (struct console_methods):
10777         New enable/disable frame methods, for proper modal dialogs.
10778
10779         * device-msw.c (msprinter_default_printer): Fix to follow
10780         proper Mule conventions.
10781
10782         * device-msw.c:
10783         * device-msw.c (signal_open_printer_error):
10784         * device-msw.c (msprinter_init_device):
10785         * device-msw.c (ensure_not_printing):
10786         * device-msw.c (plist_get_margin):
10787         * device-msw.c (Fmsprinter_select_settings):
10788         * device-msw.c (finalize_devmode):
10789         * device-msw.c (Fmsprinter_settings_despecialize):
10790         * device-msw.c (signal_enum_priner_error):
10791         * extents.c (decode_extent):
10792         * extents.c (decode_map_extents_flags):
10793         * extents.c (decode_extent_at_flag):
10794         * extents.c (Fextent_at):
10795         * extents.c (Fextents_at):
10796         * extents.c (symbol_to_glyph_layout):
10797         [[[[2]]]] Use structured errors.
10798
10799         * dialog-msw.c:
10800         * dialog-msw.c (mswindows_is_dialog_msg):
10801         * dialog-msw.c (mark_mswindows_dialog_id):
10802         * dialog-msw.c (dialog_proc):
10803         * dialog-msw.c (handle_question_dialog_box):
10804         * dialog-msw.c (syms_of_dialog_mswindows):
10805         Define new object to clean up marking; use it as a dialog identifier.
10806         Call new delete-dialog-box-hook.
10807
10808         * dialog-x.c (dbox_selection_callback):
10809         * dialog-x.c (dbox_descriptor_to_widget_value):
10810         * dialog-x.c (x_make_dialog_box_internal):
10811         Call new delete-dialog-box-hook.
10812         Return an id.
10813
10814         * dialog.c:
10815         * dialog.c (syms_of_dialog):
10816         * dialog.c (vars_of_dialog):
10817         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10818
10819         * eval.c:
10820         * eval.c (signal_call_debugger):
10821         when noninteractive, output stack traces on the console instead
10822         of in a (never-seen) buffer.
10823
10824         * eval.c (signal_type_error):
10825         * eval.c (invalid_argument_2):
10826         * lisp.h:
10827         new funs for use w/structured errors.
10828
10829         * event-Xt.c:
10830         * event-Xt.c (x_to_emacs_keysym):
10831         * event-Xt.c (describe_event):
10832         * event-Xt.c (emacs_Xt_event_handler):
10833         * event-Xt.c (vars_of_event_Xt):
10834         * event-msw.c:
10835         * event-msw.c (mswindows_wnd_proc):
10836         * event-msw.c (vars_of_event_mswindows):
10837         rename {x,mswindows}-debug-events to debug-{}-events for
10838         consistency with other debug-foo variables.
10839
10840         * event-stream.c:
10841         document next-event more clearly.
10842
10843         * fileio.c (Ffile_name_directory):
10844         * fileio.c (Ffile_name_nondirectory):
10845         * fileio.c (Funhandled_file_name_directory):
10846         * fileio.c (file_name_as_directory):
10847         * fileio.c (Ffile_name_as_directory):
10848         * fileio.c (directory_file_name):
10849         * fileio.c (Fdirectory_file_name):
10850         * fileio.c (Fmake_temp_name):
10851         * fileio.c (Ffile_truename):
10852         * fileio.c (Fsubstitute_in_file_name):
10853         * fileio.c (expand_and_dir_to_file):
10854         * fileio.c (barf_or_query_if_file_exists):
10855         * fileio.c (check_executable):
10856         * fileio.c (Ffile_exists_p):
10857         * fileio.c (Ffile_writable_p):
10858         * fileio.c (Ffile_directory_p):
10859         * fileio.c (Ffile_regular_p):
10860         * fileio.c (Ffile_modes):
10861         * fileio.c (Ffile_newer_than_file_p):
10862         * fileio.c (Fverify_visited_file_modtime):
10863         * fileio.c (Fset_visited_file_modtime):
10864         * fileio.c (auto_save_1):
10865         (1). (2).
10866         fix up gcpro's.
10867
10868         * frame-msw.c:
10869         * frame-msw.c (mswindows_init_frame_1):
10870         * frame-msw.c (mswindows_enable_frame):
10871         * frame-msw.c (error_frame_unsizable):
10872         * frame-msw.c (msprinter_init_frame_1):
10873         * frame-msw.c (msprinter_init_frame_3):
10874         * frame-msw.c (console_type_create_frame_mswindows):
10875         (2).
10876         implement new enable/disable frame methods.
10877
10878         * frame-x.c:
10879         * frame-x.c (x_enable_frame):
10880         * frame-x.c (console_type_create_frame_x):
10881         implement new enable/disable frame methods.
10882
10883         * frame.c:
10884         * frame.c (Fdisable_frame):
10885         * frame.c (syms_of_frame):
10886         * frame.h (struct frame):
10887         implement new enable/disable frame methods/functions.
10888
10889         * general-slots.h:
10890         add initial-focus.
10891
10892         * glyphs-msw.c (mswindows_widget_instantiate):
10893         comment that initial-focus should be implemented.
10894
10895         * glyphs-widget.c:
10896         * glyphs-widget.c (check_valid_instantiator):
10897         * glyphs-widget.c (check_valid_orientation):
10898         * glyphs-widget.c (check_valid_tab_orientation):
10899         * glyphs-widget.c (check_valid_justification):
10900         * glyphs-widget.c (check_valid_border):
10901         * glyphs-widget.c (check_valid_callback):
10902         * glyphs-widget.c (check_valid_int_or_function):
10903         * glyphs-widget.c (check_valid_string_or_vector):
10904         * glyphs-widget.c (check_valid_item_list_1):
10905         * glyphs-widget.c (widget_validate):
10906         * glyphs-widget.c (combo_box_validate):
10907         * glyphs-widget.c (widget_instantiate):
10908         * glyphs-widget.c (syms_of_glyphs_widget):
10909         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10910         * glyphs-widget.c (image_instantiator_combo_box):
10911         * glyphs-widget.c (image_instantiator_scrollbar):
10912         * glyphs-widget.c (image_instantiator_tab_control):
10913         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10914         (2).
10915         support (unimplemented) keyword initial-focus.
10916         reindent long macros.
10917
10918         * glyphs-x.c (x_redisplay_widget):
10919         * glyphs-x.c (x_button_instantiate):
10920         * glyphs-x.c (x_button_redisplay):
10921         * glyphs-x.c (x_progress_gauge_instantiate):
10922         * glyphs-x.c (x_edit_field_instantiate):
10923         * glyphs-x.c (x_combo_box_instantiate):
10924         * glyphs-x.c (x_tab_control_instantiate):
10925         * glyphs-x.c (x_label_instantiate):
10926         * gui-x.c:
10927         * gui-x.c (button_item_to_widget_value):
10928         * gui-x.c (gui_items_to_widget_values_1):
10929         * gui-x.c (gui_item_children_to_widget_values):
10930         * gui-x.c (gui_items_to_widget_values):
10931         * gui-x.h:
10932         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10933         add new flag to gui-parsing routines to indicate whether
10934         accelerator specs should be supported.
10935
10936         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10937
10938         * glyphs.h (struct Lisp_Image_Instance):
10939         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10940         add initial-focus flag.
10941
10942         * gui.c:
10943         * gui.c (syms_of_gui):
10944         * gui.c (vars_of_gui):
10945         clean up menu-no-selection-hook.
10946
10947         * gui.h:
10948         support delete-dialog-box-hook.
10949
10950         * lread.c (Fload_internal):
10951         * lread.c (locate_file_in_directory_mapper):
10952         (1).
10953
10954         * lrecord.h:
10955         * lrecord.h (struct toolbar_button):
10956         * lrecord.h (syms_of_toolbar):
10957         document how to create a new object.
10958
10959         * menubar-msw.c (mswindows_char_is_accelerator):
10960         may be called on frames w/o menus.
10961
10962         * menubar.c (vars_of_menubar):
10963         clean up :filter docs.
10964
10965         * nt.c (readdir):
10966         * ntproc.c:
10967         (1).
10968
10969         * process-nt.c:
10970         * process-nt.c (validate_signal_number):
10971         * process-nt.c (signal_cannot_launch):
10972         * process-nt.c (nt_create_process):
10973         * process-nt.c (nt_send_process):
10974         * process-nt.c (nt_kill_child_process):
10975         * process-nt.c (nt_open_network_stream):
10976         * process-nt.c (syms_of_process_nt):
10977         (2).
10978         delete quote-handling.  call new lisp code that does it better.
10979
10980         * process-unix.c (connect_to_file_descriptor):
10981         * process-unix.c (allocate_pty):
10982         * process-unix.c (unix_send_process):
10983         * process-unix.c (unix_kill_child_process):
10984         * process-unix.c (unix_open_network_stream):
10985         * process-unix.c (unix_open_multicast_group):
10986         (1). (2).
10987
10988         * process.c:
10989         * process.c (Fstart_process_internal):
10990         (2).  need to canonicalize process path even if absolute.
10991
10992         * select-msw.c (symbol_to_ms_cf):
10993         * select-msw.c (ms_cf_to_symbol):
10994         * select-msw.c (cf_is_autofreed):
10995         * select-msw.c (mswindows_destroy_selection):
10996         * select.c:
10997         * select.c (syms_of_select):
10998         * select.h:
10999         support dibv5, fix bugs. (from Mike Alexander)
11000
11001         * select.c (Fget_selection_internal):
11002         * select.c (select_convert_out):
11003
11004         * sysdep.c:
11005         * sysdep.c (xemacs_stat):
11006         renamed.
11007
11008         * sysdep.c (mkdir):
11009         * sysdep.c (rmdir):
11010         but keep original stat() here because we provide encapsulation
11011         around these funs.
11012
11013         * sysfile.h:
11014         * sysfile.h (fstat):
11015         remove stat garbage.
11016
11017         * syswindows.h:
11018         fix X/MSW conflict.
11019         don't include tchar.h.  it's inappropriate because it makes
11020         compile-time distinctions when we want runtime distinctions.
11021         (we provide our own tchar replacements)
11022
11023         * toolbar.c:
11024         use default object printer for toolbar-button.
11025
11026         * unexcw.c:
11027         make sure we don't encapsulate.
11028
11029         * window.c (vars_of_window):
11030         emphasize that temp-buffer-show-hook is obsolete.
11031
11032 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11033
11034         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11035         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11036
11037         * events.c (Fevent_timestamp_lessp):
11038         Not 64-bit clean.  Use EMACS_INT, not int.
11039
11040 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11041
11042         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11043         unsigned int and changed the last enum to
11044         lrecord_type_last_built_in_type.
11045         (lrecord_implementations_table): changed prototype to know how
11046         long the array is supposed to be.
11047         (lrecord_type_count): new unsigned int to keep track of the
11048         current number of lisp lrecord types.
11049         (DEFINE_EXTERNAL_LRECORD):
11050         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11051         dynamic-modules to declare new lisp types. They are the same
11052         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11053         int for each new type, and increment lrecord_type_count by 1.
11054
11055         * alloc.c (lrecord_implementations_table): Changed to reference
11056         lrecord_type_last_built_in_type for the size of the array.
11057         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11058
11059 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11060
11061         * glyphs.h (check_valid_item_list): Renamed from
11062         check_valid_item_list_1.
11063
11064 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11065
11066         * select.c (Qselect_coerce): New.
11067         * select.c (Vselection_coercion_alist): New.
11068         * select.c (syms_of_select): Declare.
11069         * select.c (get-selection-internal): Use it.
11070         Use the new select-coerce functionality.
11071
11072         * select.c (select_coerce): New.
11073         * select.h (select_coerce): Declare.
11074         New function to coerce one type of data into another.
11075
11076 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11077
11078         * callproc.c (Fcall_process_internal):
11079         (Fcall_process_internal):
11080         * process-unix.c (unix_create_process):
11081         Save and restore the value of errno, so that error messages are accurate.
11082
11083 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11084
11085         * elhash.c (print_hash_table):
11086         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11087         Prettify docstrings and indentation.
11088
11089 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11090
11091         * window.c (Fwindow_pixel_edges): Subtract frame border and
11092         gutter size.
11093
11094 2000-07-31  Andy Piper  <andy@xemacs.org>
11095
11096         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11097         will acknowledge the change.
11098
11099         * glyphs.h: declare tab_control_order_only_changed.
11100
11101         * glyphs-x.c (x_tab_control_redisplay): use
11102         tab_control_order_only_changed.
11103
11104         * glyphs-widget.c (tab_control_order_only_changed): new function.
11105
11106         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11107         tab_control_order_only_changed.
11108
11109         * gui.c (gui_item_equal_sans_selected): new function.
11110         (gui_item_equal): use it.
11111
11112         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11113         :properties in favor of :items..
11114
11115         * glyphs-widget.c (check_valid_item_list): rename from
11116         check_valid_item_list_1.
11117         (check_valid_item_list_1): renamed.
11118         (combo_box_validate): deprecate :properties in favor of :items.
11119         (widget_instantiate): ditto.
11120         (tab_control_update): ditto.
11121         (image_instantiator_combo_box): ditto.
11122         (image_instantiator_tree_view): ditto.
11123         (image_instantiator_tab_control): ditto.
11124         (layout_post_instantiate): remove dead code.
11125
11126         * print.c (debug_print_no_newline): only write to debugger if in
11127         WIN32_NATIVE.
11128
11129         * elhash.c (Fmake_hash_table): update doc string.
11130
11131         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11132         messages whilst in GC. This at least stops XEmacs crashing but has
11133         the potential for wierd behaviour.
11134
11135 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11136
11137         * config.h.in:
11138         Make existence of s&m files optional.
11139
11140         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11141         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11142         * s/gnu.h: Remove HAVE_GETLOADAVG.
11143         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11144         * s/sol2.h: Remove HAVE_GETLOADAVG.
11145         * lisp.h: Remove getloadavg() declaration.
11146         * fns.c:
11147         Include <sys/loadavg.h> if available.
11148         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11149         * config.h.in:  Group together getloadavg()-related macros.
11150         Use only configure-time tests to detect getloadavg().
11151
11152 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11153
11154         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11155
11156 2000-07-25  Andy Piper  <andy@xemacs.org>
11157
11158         * syswindows.h: add tchar.h for native builds.
11159
11160         * frame.c (syms_of_frame): remove set-glyph-image.
11161
11162         * general-slots.h: add Qset_glyph_image.
11163
11164         * glyphs-widget.c (layout_update): add domain arg to
11165         set-glyph-image.
11166         (syms_of_glyphs_widget): remove set-glyph-image.
11167
11168 2000-07-23  Ben Wing  <ben@xemacs.org>
11169
11170         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11171         Vpopup_frame_list.
11172
11173 2000-07-22  Andy Piper  <andy@xemacs.org>
11174
11175         * symsinit.h: add syms_of_win32().
11176
11177         * gui-msw.c (syms_of_gui_mswindows): remove
11178         Fmswindows_shell_execute.
11179         (Fmswindows_shell_execute): moved to win32.c.
11180
11181         * emacs.c (main_1): add syms_of_win32 ().
11182
11183         * win32.c (init_potentially_nonexistent_functions): rewrite in
11184         compiler-friendly terms.
11185         (Fmswindows_shell_execute): move here from gui-msw.c.
11186         (syms_of_win32): new.
11187
11188         * device-msw.c (Fmswindows_printer_list): clean up args to
11189         EnumPrinters.
11190         Don't include tchar under cygwin or mingw.
11191         (msprinter_default_printer): make cygwin-friendly.
11192
11193 2000-07-21  Andy Piper  <andy@xemacs.org>
11194
11195         * glyphs-widget.c (image_instantiator_tree_view): use tab
11196         control's update function.
11197         (layout_property): new function. Retrieve items.
11198
11199         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11200         function. Re-populate the tree view from the pending items.
11201
11202         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11203         is designated the parent if the domain is an image instance. This
11204         is needed so that dirtiness can be cascade up the hierarchy and
11205         thus for layout children to be redisplayed correctly.
11206         (allocate_image_instance): rename glyph -> parent.
11207
11208         * redisplay.h: change redisplay_output_layout signature.
11209
11210         * redisplay-msw.c (mswindows_output_display_block): use domain
11211         arg.
11212
11213         * redisplay-x.c (x_output_display_block): use domain arg.
11214
11215 2000-07-10  Andy Piper  <andy@xemacs.org>
11216
11217         * window.c (Fset_window_configuration): add comment.
11218
11219         * redisplay-output.c (compare_runes):
11220         (redisplay_output_subwindow): redisplay rather than update subwindow.
11221         (redisplay_output_layout): ditto.
11222
11223         * redisplay-msw.c (mswindows_frame_output_end):
11224         (mswindows_frame_output_end): make defer window pos optional.
11225
11226         * lisp.h: add Flast.
11227
11228         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11229         normalize method. Change update method to be for changed
11230         instantiators. Add redisplay method. Change signature of layout
11231         method.
11232         (struct Lisp_Image_Instance): add instantiator.
11233         (IMAGE_INSTANCE_INSTANTIATOR): new.
11234         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11235         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11236         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11237
11238         * glyphs.c:
11239         (find_instantiator_differences): new function.
11240         (Fset_instantiator_property): new convenience function.
11241         (check_image_instance_structure): strictly check for vector
11242         instantiators.
11243         (normalize_image_instantiator): make non-static.
11244         (instantiate_image_instantiator): pass on dest_mask and use new
11245         signatures for image_instance_layout and friends.
11246         (mark_image_instance): mark the instantiator. Mark the subwindow
11247         face not the widget face.
11248         (image_instance_equal): add instantiator.
11249         (image_instance_hash): ditto.
11250         (allocate_image_instance): ditto.
11251         (Fset_image_instance_property): removed.
11252         (Fimage_instance_file_name): ditto.
11253         (Fcolorize_image_instance): ditto.
11254         (image_instance_layout): add offsets to be set.
11255         (update_image_instance): new function. update an image instance
11256         from its changed instantiator.
11257         (inherit_normalize): add dest_mask.
11258         (xbm_normalize): ditto.
11259         (xface_normalize): ditto.
11260         (xpm_normalize): ditto.
11261         (text_update): set_property -> update.
11262         (image_instantiate): use the glyph identity as a hash key, not the
11263         instantiator.
11264         (glyph_width): use new image_instance_layout signature.
11265         (glyph_ascent): ditto.
11266         (glyph_descent): ditto.
11267         (glyph_height): ditto.
11268         (glyph_query_geometry): ressurrect.
11269         (glyph_layout): ditto.
11270         (redisplay_subwindow): update -> redisplay.
11271         (syms_of_glyphs): add Fset_instantiator_property.
11272         (image_instantiator_format_create): set_property -> update.
11273
11274         * glyphs-x.c:
11275         (autodetect_normalize): add dest_maks to signature.
11276         (x_redisplay_subwindow): update -> redisplay.
11277         (x_redisplay_widget): ditto.
11278         (x_button_redisplay): ditto.
11279         (x_progress_gauge_redisplay): ditto.
11280         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11281         stacking order.
11282         (console_type_create_glyphs_x): update -> redisplay.
11283         (image_instantiator_format_create_glyphs_x): ditto.
11284
11285         * glyphs-widget.c:
11286         (check_valid_instantiator): disallow glyphs in the instantiator,
11287         they must now be vectors.
11288         (check_valid_instantiator_list): ditto.
11289         (glyph_instantiator_to_glyph): use internal symbol rather than
11290         intern.
11291         (widget_update): renamed from widget_set_property. Call cascaded
11292         update methods.
11293         (redisplay_widget): renamed from update_widget.
11294         (widget_layout): image_instance_layout now takes position as well
11295         as size.
11296         (widget_normalize): ditto.
11297         (widget_instantiate): ditto.
11298         (tab_control_query_geometry) ditto.:
11299         (tab_control_update): renamed from tab_control_set_property.
11300         (progress_gauge_update): set_property -> update.
11301         (layout_normalize): rewrite so that child instantiators are
11302         normalized also.
11303         (layout_update): new function. Create glyphs from the normalized
11304         children and cope with any other layout keywords. We do not
11305         instantiate children here that will be take care of by
11306         redisplay_output_layout.
11307         (layout_instantiate): call layout_update and not much else.
11308         (layout_post_instantiate): not sure whether this is needed
11309         anymore.
11310         (layout_query_geometry): query glyph geometry rather than
11311         image_instance geometry.
11312         (layout_layout): set offsets from pass in parameters. Use glyph
11313         geometry and layout functions rather than image instance ones.
11314         (native_layout_layout): ditto.
11315         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11316         (image_instantiator_widget): set_property -> update.
11317         (image_instantiator_buttons): ditto.
11318         (image_instantiator_progress_guage): ditto.
11319         (image_instantiator_tab_control): ditto.
11320         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11321         (image_instantiator_layout): add update method.
11322
11323         * glyphs-msw.c (bmp_normalize):
11324         (mswindows_resource_normalize): add dest_mask so that it can be
11325         proprogated by layout_normalize.
11326         (begin_defer_window_pos): make optional because it may not be the
11327         right thing to do and it introduces differences with X.
11328         (mswindows_unmap_subwindow): ditto.
11329         (mswindows_map_subwindow): ditto.
11330         (mswindows_redisplay_subwindow): renamed from
11331         mswindows_update_subwindow.
11332         (mswindows_redisplay_widget): ditto.
11333         (mswindows_button_redisplay): renamed from
11334         mswindows_button_update. Update is now what the instantiation
11335         function does for a changed instantiator.
11336         (mswindows_progress_gauge_instantiate): set the progress value
11337         here if appropriate.
11338         (mswindows_tab_control_redisplay): cope with re-ordering of the
11339         members of the tab widget by simply selecting the new top
11340         widget. This makes things appear ok if you click on a tab.
11341         (mswindows_combo_box_instantiate): image_instance_layout now takes
11342         position as well as size.
11343         (mswindows_progress_gauge_redisplay): renamed from
11344         mswindows_progress_gauge_update.
11345         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11346         (image_instantiator_format_create_glyphs_mswindows): ditto.
11347
11348         * glyphs-eimage.c (jpeg_normalize):
11349         (gif_normalize):
11350         (png_normalize):
11351         (tiff_normalize): add dest_mask so that it can be proprogated by
11352         layout_normalize.
11353
11354         * elhash.c:
11355         (print_hash_table):
11356         (hash_table_weakness_validate):
11357         (decode_hash_table_weakness):
11358         (Fhash_table_weakness):
11359         (Fhash_table_type):
11360         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11361
11362         * console.h (struct console_methods): move update_* to
11363         redisplay_*.
11364
11365 2000-07-20  Ben Wing  <ben@xemacs.org>
11366
11367         * *.[ch] (XSETOBJ): remove unused middle argument.
11368         lisp-disunion.h: correct wrap_object() to one argument.
11369
11370 2000-07-15  Ben Wing  <ben@xemacs.org>
11371
11372         * s/cygwin32.h:
11373         * s/cygwin32.h (CYGWIN_CONV_PATH):
11374         Add missing logb prototype for v1.1.
11375         Use post-b20 names and alias to pre-b20 names when pre-b20.
11376
11377         * s/windowsnt.h: [5].
11378
11379 2000-07-15  Ben Wing  <ben@xemacs.org>
11380
11381         * Makefile.in.in (x_objs):
11382         * Makefile.in.in (sheap_objs):
11383         * Makefile.in.in (objs):
11384         added win32.o, cosmetic cleanups.
11385
11386         * alloc.c (Fmake_byte_code):
11387         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11388         etc. macros which declare their own args now.
11389
11390         * alloc.c (syms_of_alloc):
11391         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11392
11393         * buffer.c:
11394         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11395
11396         * buffer.c (Fget_file_buffer):
11397         Fixed GCPRO problem.
11398
11399         * buffer.c (get_truename_buffer):
11400         Fixed comment about GC checking.
11401
11402         * buffer.c (syms_of_buffer):
11403         Undeclared those dedicated frame funs.
11404         [2].
11405
11406         * buffer.h:
11407         Define convenience macros for internal/external conversions.
11408         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11409         and Qenvironment_variable_encoding for cleaner code.
11410
11411         * bufslots.h:
11412         Remove dedicated-frame; in lisp.
11413
11414         * bytecode.c (funcall_compiled_function):
11415         [1].
11416
11417         * bytecode.c (syms_of_bytecode):
11418         [2].
11419
11420         * console-msw.c:
11421         * console-msw.c (mswindows_show_console): Rewrote.
11422
11423         * console-msw.c (Fmswindows_debugging_output): New.
11424         Sends to OutputDebugString (special MSWin debugger interface).
11425
11426         * console-msw.c (Fmswindows_message_box):
11427         Fixed stupid bugs so it works when called from kill-emacs.
11428
11429         * console-msw.c (syms_of_console_mswindows):
11430         Declare Fmswindows_debugging_output.
11431
11432         * console-msw.h:
11433         New MSWin prototypes.
11434
11435         * console-msw.h (struct mswindows_frame):
11436         New entry last-click-mods for improved button-modifier support.
11437
11438         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11439         New struct entry `popup' with corresponding accessor.
11440
11441         * console-x.c:
11442         * console-x.c (split_up_display_spec):
11443         * console-x.c (get_display_arg_connection):
11444         * console-x.c (x_semi_canonicalize_console_connection):
11445         * console-x.c (x_canonicalize_device_connection):
11446         [[[6]]]: Change char to more specific type.
11447         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11448
11449         * console-x.c (x_semi_canonicalize_console_connection):
11450         * console-x.c (x_canonicalize_device_connection):
11451         [[[9]]]: Fix up error signalling to use new structured error system.
11452
11453         * console-x.h:
11454         [[[4]]]: Define codesys aliases:
11455         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11456         Qx_color_name_encoding, Qx_display_name_encoding.
11457
11458         * console.h (struct console_methods):
11459         New method make_dialog_box_internal supersedes older
11460         popup_dialog_box method.
11461
11462         * data.c:
11463         Define many new errors, part of new structured errors.
11464
11465         * data.c (init_errors_once_early):
11466         * data.c (syms_of_data):
11467         [2].
11468
11469         * device-msw.c (mswindows_init_device):
11470         [[[5]]]: Cleanup to support NT 3.51.
11471
11472         * device-msw.c (decode_devmode): Cleanup.
11473
11474         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11475         * device-msw.c (mswindows_handle_print_dialog_box):
11476         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11477         * device-msw.c (syms_of_device_mswindows):
11478         Delete the dialog box primitives recently introduced by Kirill and
11479         instead interface to general dialog box interface.
11480
11481         * device-x.c:
11482         * device-x.c (compute_x_app_name):
11483         * device-x.c (x_init_device):
11484         * device-x.c (Fx_valid_keysym_name_p):
11485         * device-x.c (Fx_set_font_path):
11486         [6].
11487         [7].
11488
11489         * device.h (wrap_device): New.
11490         First of its kind; meant to replace XSETDEVICE.
11491
11492         * dialog-msw.c: Many file-dialog symbols.
11493
11494         * dialog-msw.c (mswindows_register_popup_frame): New.
11495         * dialog-msw.c (mswindows_is_dialog_msg): New.
11496         For supporting kbd traversal in dialog boxes.
11497
11498         * dialog-msw.c (dialog_proc):
11499         Support hitting ESC in dialogs.
11500
11501         * dialog-msw.c (struct):
11502         Common dialog box errors.
11503
11504         * dialog-msw.c (handle_file_dialog_box): New.
11505         Add file dialog code.
11506
11507         * dialog-msw.c (handle_question_dialog_box):
11508         Redo existing code to support new question dialog syntax.
11509
11510         * dialog-msw.c (console_type_create_dialog_mswindows):
11511         We support new dialog console method.
11512
11513         * dialog-msw.c (syms_of_dialog_mswindows):
11514         * dialog-msw.c (vars_of_dialog_mswindows):
11515         New file dialog symbols, vars.
11516
11517         * dialog-x.c:
11518         * dialog-x.c (maybe_run_dbox_text_callback):
11519         * dialog-x.c (dbox_descriptor_to_widget_value):
11520         * dialog-x.c (x_make_dialog_box_internal):
11521         * dialog-x.c (console_type_create_dialog_x):
11522         Mule-ize entire file.
11523         Redo to support question dialog syntax.
11524         [6].
11525
11526         * dialog.c:
11527         * dialog.c (Fmake_dialog_box_internal):
11528         * dialog.c (syms_of_dialog):
11529         Kill old popup-dialog-box, replace with new primitive.
11530         Just call device method or signal error.
11531
11532         * eldap.c (Fldap_open):
11533         * eldap.c (Fldap_search_basic):
11534         * eldap.c (Fldap_add):
11535         * eldap.c (Fldap_modify):
11536         [1].
11537         [7].
11538
11539         * emacs.c:
11540         * emacs.c (make_arg_list_1):
11541         * emacs.c (make_arg_list):
11542         Mule-ize call to dll_init().
11543         [6].
11544         [8].
11545
11546         * emacs.c (make_argc_argv):
11547         * emacs.c (free_argc_argv):
11548         * emacs.c (init_cmdargs):
11549         * emacs.c (main_1):
11550         * emacs.c (Fkill_emacs):
11551         * emacs.c (Fdump_emacs):
11552         Update comments about what can be used in syms_* etc.
11553         Call init_win32() when necessary.
11554         Fix up MS Win dialog box in kill-buffer to actually work right.
11555         [7].
11556
11557         * eval.c:
11558         * eval.c (For):
11559         * eval.c (Fand):
11560         * eval.c (Fprogn):
11561         * eval.c (Fprog1):
11562         * eval.c (Fprog2):
11563         * eval.c (FletX):
11564         * eval.c (Flet):
11565         * eval.c (condition_case_3):
11566         * eval.c (Feval):
11567         * eval.c (function_argcount):
11568         * eval.c (funcall_lambda):
11569         [1].
11570
11571         * eval.c (type_error): New.
11572         * eval.c (maybe_type_error): New.
11573         * eval.c (continuable_type_error): New.
11574         * eval.c (maybe_continuable_type_error): New.
11575         * eval.c (type_error_with_frob): New.
11576         * eval.c (maybe_type_error_with_frob): New.
11577         * eval.c (continuable_type_error_with_frob): New.
11578         * eval.c (maybe_continuable_type_error_with_frob): New.
11579         New functions for use with structured errors.
11580
11581         * event-Xt.c:
11582         * event-Xt.c (x_event_to_emacs_event):
11583         Buttons are now modifiers too.
11584
11585         * event-Xt.c (emacs_Xt_current_event_timestamp):
11586         Implement new event method.
11587         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11588
11589         * event-msw.c:
11590         * event-msw.c (ntpipe_shove_writer): [5].
11591         * event-msw.c (mswindows_enqueue_mouse_button_event):
11592         * event-msw.c (mswindows_drain_windows_queue):
11593         * event-msw.c (mswindows_wnd_proc): [7].
11594         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11595         * event-msw.c (mswindows_modifier_state):
11596         Throughout: support new button modifiers.
11597
11598         * event-msw.c (emacs_mswindows_current_event_timestamp):
11599         Implement new event method.
11600         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11601
11602         * event-stream.c:
11603         * event-stream.c (event_stream_current_event_timestamp): New.
11604         * event-stream.c (maybe_kbd_translate): New functionality.
11605         * event-stream.c (vars_of_event_stream):
11606         Document new kbd-translate-table functionality.
11607
11608         * event-stream.c (Fcurrent_event_timestamp): New.
11609         New primitive for use in fabricated events.
11610         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11611
11612         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11613
11614         * events.c:
11615         * events.c (Fmake_event):
11616         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11617         [1].
11618         [9].
11619
11620         * events.c (format_event_object): fix gcc warnings.
11621
11622         * events.c (Fevent_timestamp): Document new primitives.
11623
11624         * events.c (TIMESTAMP_HALFSPACE): New.
11625
11626         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11627         comparing timestamps correctly (half-space algorithm).
11628
11629         * events.c (Fevent_modifier_bits): Doc fix.
11630
11631         * events.c (Fevent_modifiers): Major doc addition.
11632         * events.c (event_x_y_pixel_internal): Typo fix.
11633         * events.c (syms_of_events): Declare new primitives.
11634
11635         * events.h:
11636         Update long comment for button modifiers, timestamps.
11637
11638         * events.h (struct event_stream):
11639         New current_event_timestamp method.
11640
11641         * extents.c:
11642         * extents.c (extent_in_region_p):
11643         * extents.c (decode_extent):
11644         * extents.c (Fset_extent_parent):
11645         * extents.c (decode_map_extents_flags):
11646         Fix gcc warnings.
11647         [9].
11648
11649         * extents.c (struct extent_at_arg):
11650         * extents.c (decode_extent_at_flag):
11651         * extents.c (extent_at_mapper):
11652         * extents.c (extent_at_bytind):
11653         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11654         * extents.c (Fextents_at): New primitive. [9].
11655         * extents.c (symbol_to_glyph_layout): [9].
11656         Support new primitive `extents-at'.
11657
11658
11659         * extents.c (get_text_property_bytind):
11660         extent_at_bytind has another arg.
11661         [9].
11662
11663         * extents.c (syms_of_extents): New primitive.
11664
11665         * file-coding.c (Fmake_coding_system): [1].
11666         * file-coding.c (subsidiary_coding_system): fix gcc warning
11667         * file-coding.c (syms_of_file_coding): [2].
11668
11669         * fileio.c (Fexpand_file_name):
11670         * fileio.c (Fsysnetunam):
11671         * fileio.c (Ffile_exists_p):
11672         * fileio.c (Ffile_executable_p):
11673         * fileio.c (Fverify_visited_file_modtime):
11674         Clean up GCPROing.
11675
11676         * fileio.c (syms_of_fileio): [2].
11677
11678         * filelock.c (lock_file_1):
11679         * filelock.c (current_lock_owner):
11680         * filelock.c (lock_if_free):
11681         * filelock.c (lock_file):
11682         * filelock.c (unlock_file):
11683         Clean up GCPROing.
11684
11685         * fns.c (concat): Fix gcc warning.
11686
11687         * fns.c (Fmember):
11688         * fns.c (Fold_member):
11689         * fns.c (Fmemq):
11690         * fns.c (Fold_memq):
11691         * fns.c (memq_no_quit):
11692         * fns.c (Fassoc):
11693         * fns.c (Fold_assoc):
11694         * fns.c (Fassq):
11695         * fns.c (Fold_assq):
11696         * fns.c (assq_no_quit):
11697         * fns.c (Frassoc):
11698         * fns.c (Fold_rassoc):
11699         * fns.c (Frassq):
11700         * fns.c (Fold_rassq):
11701         * fns.c (rassq_no_quit):
11702         * fns.c (Fdelete):
11703         * fns.c (Fold_delete):
11704         * fns.c (Fdelq):
11705         * fns.c (Fold_delq):
11706         * fns.c (delq_no_quit):
11707         * fns.c (Fremassoc):
11708         * fns.c (Fremassq):
11709         * fns.c (remassq_no_quit):
11710         * fns.c (Fremrassoc):
11711         * fns.c (Fremrassq):
11712         * fns.c (remrassq_no_quit):
11713         * fns.c (Freverse):
11714         * fns.c (mapcar1):
11715         [1].
11716
11717         * frame-msw.c (mswindows_init_frame_1):
11718         * frame-msw.c (mswindows_delete_frame):
11719         Register popups with dialog code so keyboard traversing works.
11720
11721         * frame-tty.c (tty_raise_frame_no_select): [1].
11722
11723         * frame-x.c:
11724         * frame-x.c (x_set_frame_text_value):
11725         * frame-x.c (x_set_frame_properties):
11726         * frame-x.c (x_create_widgets):
11727         [7].
11728
11729         * frame.c:
11730         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11731
11732         * frame.h (wrap_frame): New.
11733         Macro like wrap_device.
11734
11735         * general.c:
11736         * general.c (SYMBOL):
11737         * general.c (syms_of_general):
11738         Major reorg.  This is now just a wrapper and symbols themselves
11739         are listed in general-slots.h.
11740
11741         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11742         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11743
11744         * glyphs-msw.c (mswindows_native_layout_instantiate):
11745         Add DS_CONTROL so keyboard traversal will work.
11746
11747         * glyphs-widget.c:
11748         * glyphs-widget.c (syms_of_glyphs_widget):
11749         Move some symbols to general-slots.h.
11750
11751         * glyphs-x.c:
11752         * glyphs-x.c (xbm_instantiate_1):
11753         * glyphs-x.c (x_xbm_instantiate):
11754         * glyphs-x.c (x_xface_instantiate):
11755         * glyphs-x.c (autodetect_instantiate):
11756         * glyphs-x.c (cursor_font_instantiate):
11757         * glyphs-x.c (x_update_widget):
11758         * glyphs-x.c (x_widget_instantiate):
11759         * glyphs.c (bitmap_to_lisp_data):
11760         * glyphs.c (pixmap_to_lisp_data):
11761         [7].
11762
11763         * glyphs.c (syms_of_glyphs):
11764         [2].
11765
11766         * gui-x.c:
11767         * gui-x.c (print_widget_value):
11768         * gui-x.c (menu_separator_style_and_to_external):
11769         * gui-x.c (add_accel_and_to_external):
11770         * gui-x.c (button_item_to_widget_value):
11771         * gui-x.c (gui_items_to_widget_values_1):
11772         * gui-x.c (gui_items_to_widget_values):
11773         * gui-x.c (syms_of_gui_x):
11774         * gui-x.c (vars_of_gui_x):
11775         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11776         [9].
11777
11778         * gui-x.h:
11779         Muleize, prototype changes matching gui-x.c.
11780
11781         * gui.c:
11782         * gui.c (separator_string_p):
11783         * gui.c (gui_item_add_keyval_pair):
11784         * gui.c (make_gui_item_from_keywords_internal):
11785         * gui.c (signal_too_long_error):
11786         * gui.c (parse_gui_item_tree_item):
11787         * gui.c (syms_of_gui):
11788         * gui.c (vars_of_gui):
11789         * gui.h:
11790         menu-no-selection-hook moved here (used by MSWin).
11791         Move some symbols to general-slots.h.
11792         [6].
11793         [9].
11794
11795         * insdel.c (get_buffer_pos_char):
11796         * insdel.c (get_buffer_range_char):
11797         Add GC comments.
11798
11799         * keymap.c (keymap_lookup_directly):
11800         * keymap.c (keymap_store):
11801         * keymap.c (ensure_meta_prefix_char_keymapp):
11802         * keymap.c (describe_map):
11803         * keymap.h:
11804         Support new button modifiers.
11805
11806         * lisp-disunion.h (wrap_object):
11807         * lisp-disunion.h (XSETOBJ):
11808         Rename make_obj to wrap_object.
11809
11810         * lisp-union.h:
11811         * lisp-union.h (make_int):
11812         * lisp-union.h (make_char):
11813         Support wrap_object.
11814
11815         * lisp.h:
11816         * lisp.h (LIST_LOOP):
11817         * lisp.h (EXTERNAL_LIST_LOOP):
11818         * lisp.h (LIST_LOOP_2):
11819         * lisp.h (EXTERNAL_LIST_LOOP_1):
11820         * lisp.h (EXTERNAL_LIST_LOOP_2):
11821         * lisp.h (EXTERNAL_LIST_LOOP_3):
11822         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11823         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11824         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11825         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11826         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11827         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11828         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11829         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11830         * lisp.h (struct Lisp_Symbol):
11831         * lisp.h (maybe_continuable_error_with_frob):
11832         Fix up section comments.
11833         Add new types for char to indicate usage.
11834         Delete symbols auto-generated from general-slots.h.
11835         Add prototypes for structured error functions.
11836         Add long comments describing looping macros and change interface
11837         so that lvalues are automatically declared.
11838         Add NO_DECLARE macro in case callers want to declare lvalues
11839         themselves.
11840
11841         * lread.c (read_syntax_error):
11842         * lread.c (continuable_read_syntax_error):
11843         * lread.c (read_structure):
11844         * lread.c (sequence_reader):
11845         * lread.c (read_list_conser):
11846         * lread.c (read_compiled_function):
11847         Rename syntax_error and continuable_syntax_error to avoid clash
11848         with same-named structured error functions.
11849
11850         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11851         * menubar-msw.c (populate_menu_add_item):
11852         * menubar-msw.c (populate_or_checksum_helper):
11853         [5].
11854         [9].
11855
11856         * menubar-x.c:
11857         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11858         Mule-ize whole file.
11859
11860         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11861
11862         * mule-charset.c (Fmake_charset):
11863         * mule-wnnfns.c (Fwnn_set_param):
11864         [1].
11865
11866         * ntproc.c (create_child):
11867         * ntproc.c (Fwin32_set_current_locale):
11868         Add comments portending doom.
11869
11870         * objects-msw.c:
11871         * objects-msw.c (old_font_enum_callback_2):
11872         * objects-msw.c (font_enum_callback_1):
11873         * objects-msw.c (mswindows_enumerate_fonts):
11874         [5].
11875
11876         * objects-x.c:
11877         * objects-x.c (allocate_nearest_color):
11878         * objects-x.c (x_parse_nearest_color):
11879         * objects-x.c (x_initialize_color_instance):
11880         * objects-x.c (x_print_color_instance):
11881         * objects-x.c (x_finalize_color_instance):
11882         * objects-x.c (x_valid_color_name_p):
11883         * objects-x.c (x_initialize_font_instance):
11884         * objects-x.c (x_print_font_instance):
11885         * objects-x.c (valid_x_font_name_p):
11886         * objects-x.c (truename_via_FONT_prop):
11887         * objects-x.c (truename_via_random_props):
11888         * objects-x.c (truename_via_XListFonts):
11889         * objects-x.c (x_font_truename):
11890         * objects-x.c (x_font_instance_truename):
11891         * objects-x.c (x_font_instance_properties):
11892         * objects-x.c (x_list_fonts):
11893         * objects-x.c (x_find_charset_font):
11894         Mule-ize entire file.
11895         [7].
11896
11897         * objects-x.h:
11898         Mule-verify.
11899
11900         * print.c:
11901         * print.c (std_handle_out_external):
11902         * print.c (debug_print_no_newline):
11903         * print.c (syms_of_print):
11904         Output to all debugger kinds in debug-print.
11905         Fix console-output code under MSWin to actually work.
11906
11907         * process-nt.c (send_signal):
11908         * process-nt.c (nt_create_process):
11909         Use newer Unicode macros.
11910
11911         * process-unix.c (unix_create_process):
11912         * process-unix.c (unix_canonicalize_host_name):
11913         * process-unix.c (unix_open_network_stream):
11914         [7].
11915
11916         * scrollbar-x.c:
11917         Mule-verify.
11918
11919         * search.c (syms_of_search):
11920         [2].
11921
11922         * select-msw.c (mswindows_destroy_selection):
11923         Use LIST_LOOP_2.
11924
11925         * select-x.c (symbol_to_x_atom):
11926         [7].
11927
11928         * select.c (syms_of_select):
11929         [2].
11930
11931         * sound.c (Fplay_sound_file):
11932         [7].
11933
11934         * specifier.c:
11935         * specifier.c (decode_specifier_type):
11936         * specifier.c (Fvalid_specifier_locale_type_p):
11937         * specifier.c (check_valid_locale_or_locale_type):
11938         * specifier.c (decode_locale):
11939         * specifier.c (decode_locale_type):
11940         * specifier.c (decode_locale_list):
11941         * specifier.c (check_valid_domain):
11942         * specifier.c (decode_specifier_tag_set):
11943         * specifier.c (Fcanonicalize_tag_set):
11944         * specifier.c (Fdefine_specifier_tag):
11945         * specifier.c (Fspecifier_tag_predicate):
11946         * specifier.c (check_valid_inst_list):
11947         * specifier.c (check_valid_spec_list):
11948         * specifier.c (decode_how_to_add_specification):
11949         * specifier.c (check_modifiable_specifier):
11950         * specifier.c (specifier_add_spec):
11951         * specifier.c (boolean_validate):
11952         * specifier.c (display_table_validate):
11953         [9].
11954
11955         * specifier.c (syms_of_specifier):
11956         Move some symbols to general-slots.h.
11957         [2].
11958
11959         * symbols.c:
11960         * symbols.c (Fmapatoms):
11961         * symbols.c (Fapropos_internal):
11962         Add GCPROs.
11963
11964         * symbols.c (set_default_buffer_slot_variable):
11965         * symbols.c (set_default_console_slot_variable):
11966         [1].
11967
11968         * symbols.c (defsymbol_massage_name_1):
11969         * symbols.c (defkeyword_massage_name):
11970         * symbols.c (deferror_1):
11971         * symbols.c (deferror):
11972         * symbols.c (deferror_massage_name_and_message):
11973         * symeval.h:
11974         * symeval.h (DEFSYMBOL):
11975         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11976
11977         * symbols.c (syms_of_symbols):
11978         [2].
11979
11980         * symsinit.h:
11981         * symsinit.h (init_win32): New.
11982         Also new is syms_of_dialog_mswindows.
11983
11984         * syswindows.h:
11985         Add new Unicode macros, missing Cygwin wide-char functions,
11986         convenience conversion macros for Qmswindows_tstr, macros for
11987         encapsulating required MSWin <-> Cygwin filename conversions,
11988         prototype for dynamically-extracted (not in NT 3.51) functions.
11989
11990         * toolbar-x.c:
11991         Mule-verify.
11992
11993         * tooltalk.c (Fadd_tooltalk_message_arg):
11994         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11995         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11996         [7].
11997
11998         * tooltalk.c (syms_of_tooltalk):
11999         [2].
12000
12001         * unexnt.c:
12002         * unexnt.c (unexec):
12003         Fix up headers, declaration of unexec() to be more standard.
12004
12005 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12006
12007         * offix.h: Revert change to guard macros - they're used in offix.c!
12008
12009 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12010
12011         * lisp.h: Defsubred Fdelete.
12012
12013         * console-msw.h:  (msprinter_default_printer): Added.
12014
12015         * console-msw.c (msprinter_canonicalize_console_connection):
12016         (msprinter_canonicalize_device_connection): Added.
12017
12018         * device-msw.c (msprinter_default_printer):
12019         (Fmswingows_get_default_printer):
12020         (signal_enum_priner_error):
12021         (Fmswingows_printer_list): Added.
12022
12023 2000-07-19  Martin Buchholz <martin@xemacs.org>
12024
12025         * XEmacs 21.2.35 is released.
12026
12027 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12028
12029         * select-x.c (x_handle_selection_request):
12030         Text selected in xemacs and pasted into xterm failed to appear.
12031         Spelling fixes and cosmetic changes.
12032
12033 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12034
12035         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12036         XEmacs frame (fix for doubling chars in dialog boxes).
12037
12038 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12039
12040         * select.c (select_convert_in, select_convert_out):
12041         Don't call intern() every time.
12042
12043         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12044         * select.c (vars_of_select): Initialise them.
12045
12046 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12047
12048         * select.c (selection-coercible-types): New.
12049
12050         * select.c (own-selection-internal):
12051         * select.c (get-selection-internal):
12052         MULE bug fix - these should default to COMPOUND_TEXT and not
12053         STRING for MULE. I think.
12054
12055         * select.c (select_convert_out): Use selection-coercible-types
12056         to find types that we can attempt to perform coercions on.
12057
12058 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12059
12060         * mule-wnnfns.c:
12061         * mule-canna.c:
12062         Add coding: cookie to identify encoding.
12063
12064         * mule-canna.c (CANNA_mode_keys): make static.
12065         Use proper prototypes, even for functions of no arguments.
12066         Remove external prototype for Fding().
12067
12068         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12069
12070         * select.c (syms_of_select): Add missing DEFSUBR.
12071
12072 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12073
12074         * select.c (get_selection_internal, own_selection_internal):
12075         Make the type default to STRING, rather than placing a nil type
12076         into Vselection_alist.
12077
12078 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12079
12080         * gpmevent.c (tty_selection_exists_p):
12081         * gpmevent.c (tty_own_selection):
12082         Updated parameter lists.
12083
12084 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12085
12086         * select.h (selection-alist): Removed declaration.
12087
12088         * select.h (get_local_selection):
12089         * select.c (get_local_selection):
12090         Made static.
12091
12092         * select.h (convert_selection): Removed declaration.
12093         * select.c (convert_selection): Removed.
12094         This function belongs in Lisp.
12095
12096         * select.h (select_convert_in): Declare.
12097         * select.h (select_convert_out): Declare.
12098         * select.c (select_convert_in): New.
12099         * select.c (select_convert_out): New.
12100         New conversion functions for other files to call.
12101
12102         * select.h (select_notify_buffer_kill): Declare.
12103         * select.c (select_notify_buffer_kill): New.
12104         New functions that get called from kill-buffer.
12105
12106         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12107         X-specific lisp code.
12108
12109         * select.h: Declare some of the lisp-visible functions for
12110         external use.
12111
12112         * select.c (clean_local_selection_data): Removed. This was
12113         a disgusting function, and previously should have been in
12114         select-x.c in any case. The functionality is now provided
12115         in select-convert-from-integer (select.el).
12116
12117         * select.c (available-selection-types): Fixed stupidity where
12118         INTEGER and ATOM got added twice. Also add STRING when we see an
12119         extent.
12120
12121         * select.c (get-selection-internal): Removed symbol stripping. No
12122         longer causes conversion when data comes from the internal cache.
12123
12124         * select.c (syms_of_select): Added new functions.
12125
12126         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12127         error checking - previously this called abort!
12128
12129         * select-x.c (x_own_selection): Changed comment.
12130
12131         * select-x.c (x_handle_selection_request): Use select_convert_out.
12132         Don't mess with selection-alist; it's an internal variable of select.c.
12133
12134         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12135
12136         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12137         rather than messing with selection-alist.
12138
12139         * select-msw.c (mswindows_get_foreign_selection):
12140         Use TO_INTERNAL_FORMAT rather than hacking.
12141
12142 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12143
12144         * process-unix.c (unix_open_multicast_group):
12145         (unix_open_multicast_group): Remove useless casts.
12146
12147 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12148
12149         * sound.c (Fplay_sound): Fix `unused variable' warning.
12150
12151         * emacs.c (main): Use correct type for _environ on SCO5.
12152
12153 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12154
12155         * console.h (own_selection_method):
12156         * console.h (selection_exists_p_method):
12157         * console.h (available_selection_types_method): New.
12158         * console.h (register_selection_data_type_method): New.
12159         * console.h (selection_data_type_name): New.
12160
12161         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12162         function & alist to track GlobalAlloc()'d handles that need
12163         releasing when the clipboard data gets replaced or emptied.
12164
12165         * event-msw.c (mswindows_wnd_proc): Call it.
12166
12167         * lisp.h, general.c (Qappend): New symbol representing a
12168         `how-to-add' mode.
12169
12170         * select.c (own-selection-internal):
12171         * select.c (selection-exists-p):
12172         * select.c (available-selection-types): New.
12173         * select.c (register-selection-data-type): New.
12174         * select.c (selection-data-type-name): New.  New functions to deal
12175         with device-specific selection data formats.
12176         * select.c (selection-converter-out-alist): Renamed.
12177         * select.c (selection-converter-in-alist): New.
12178         * select.c (selection-appender-alist): New.  Added new alists.
12179         * select.c (syms_of_select, vars_of_select): Added new symbols &
12180         variables.
12181         * select.c (get_local_selection): Split.
12182         * select.c: Removed spurious type checking - selections may now be
12183         of any type, not just strings.
12184         * select.c (own-selection-internal):
12185
12186         * select.h, select.c (convert_selection): New. Created
12187         convert_selection() function based on get_local_selection().
12188         * select.h, select.c (QCF_*): New symbols representing mswindows
12189         clipboard formats.
12190         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12191         symbols representing `how-to-add' modes.
12192
12193         * select-msw.c (x_sym_p): New.
12194         * select-msw.c (symbol_to_ms_cf): New.
12195         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12196         symbols & clipboard formats. Can also handle string names.
12197         * select-msw.c (mswindows_own_selection):
12198         * select-msw.c (mswindows_selection_exists_p):
12199         Added `data-type' parameter. Use it.
12200         * select-msw.c (mswindows_available_selection_types): New.
12201         * select-msw.c (mswindows_register_selection_data_type): New.
12202         * select-msw.c (mswindows_selection_data_type_name): New.
12203         * select-msw.c (mswindows_own_selection):
12204         * select-msw.c (mswindows_get_foreign_selection):
12205         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12206         * select-msw.c (console_create_select_mswindows): Added new methods.
12207         * select-msw.c (mswindows_destroy_selection): New.
12208         * select-msw.c (Vhandle_alist): New list.
12209         * select-msw.c (mswindows_own_selection):
12210
12211         * select-x.c (x_own_selection):
12212         * select-x.c (x_selection_exists_p):
12213         * select-x.c: Added some comments about maybe using new
12214         functionality.
12215         * select-x.c (x_own_selection):
12216
12217         * specifier.c: Remove definition of Qappend (now in general.c)
12218         * specifier.c (syms_of_specifier): Remove Qappend.
12219
12220 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12221
12222         * config.h.in: Add socklen_t.
12223
12224         * s/decosf4-0.h: No special compiler flags needed or desired.
12225         In particular, undefine _BSD for DEC OSF 4.0.
12226
12227 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12228
12229         * redisplay-msw.c (msprinter_frame_output_end): Added.
12230         (console_type_create_redisplay_mswindows): Referred the above.
12231
12232         * frame.c (setup_frame_without_minibuffer): Do not create a
12233         default minibuffer frame on a printer device.
12234
12235         * frame-msw.c (apply_dc_geometry): Added.
12236         (msprinter_start_page):
12237         (msprinter_init_frame_3):
12238         (msprinter_eject_page): Use it.
12239
12240         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12241         and removed residual duplex and orientation properties.
12242
12243 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12244
12245         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12246
12247         * unexalpha.c: Remove system prototypes from C sources!
12248
12249 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12250
12251         * eval.c: Remove references to M-x edit-options in DEFUNs for
12252         `defvar' and `defconst'.
12253
12254 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12255
12256         * config.h.in: Remove SMART_INCLUDE hackery.
12257
12258         PostgreSQL hacking:
12259         * config.h.in: Don't use SMART_INCLUDE.
12260
12261         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12262         * inline.c: Simply #include "postgresql.h"
12263         * postgresql.c:
12264         - Don't use SMART_INCLUDE
12265         - Use simply "const".
12266         - Use standard doc string conventions.
12267         - Use correct type for result of PQstatus.
12268
12269 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12270
12271         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12272
12273         C++ compilation changes.
12274         * config.h.in (EXTERN_C): Define.
12275         * config.h.in (not): This is also a C++ keyword.
12276         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12277         * cm.c: Use EXTERN_C.
12278         * redisplay-tty.c: Use EXTERN_C.
12279         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12280
12281 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12282
12283         * general.c: Remove duplicate definition for Qfunction.
12284
12285 2000-07-08  Ben Wing  <ben@xemacs.org>
12286
12287         * device-msw.c (msprinter_init_device):
12288         * device-msw.c (sync_printer_with_devmode):
12289         * device-msw.c (handle_devmode_changes):
12290         * device-msw.c (print_dialog_worker):
12291         * device-msw.c (Fmsprinter_apply_settings):
12292         * device-msw.c (hash_devmode):
12293         * device-msw.c (Fmsprinter_settings_despecialize):
12294         use Qmswindows_tstr, not Qctext.
12295
12296         * vm-limit.c (check_memory_limits):
12297         avoid infinite loop printing warning messages.
12298
12299 2000-07-05  Craig Lanning  <lanning@scra.org>
12300
12301         * Makefile.in.in: Add support for including the Windows resources
12302         when building with the cygwin and mingw targets.
12303
12304         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12305         not set or not correct.
12306         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12307         (init_initial_directory): Don't try to use $PWD on the
12308         WIN32_NATIVE target.
12309
12310         * s\cygwin32.h:
12311         [[Add -mwindows to eliminate console window.]] not required --ben
12312         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12313         (MAIL_USE_POP): removed; now handled by configure.
12314
12315         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12316         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12317         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12318         (MAIL_USE_POP): removed; now handled by configure.
12319         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12320         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12321         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12322         constant string.
12323         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12324         up from <winsock.h> via systime.h.
12325         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12326         (getpagesize): from Dan Holmsand, added.
12327         Added #endif which was left dangling by Ben's mega patch; added
12328         comment to help prevent this in the future.
12329
12330         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12331
12332 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12333
12334         * console-msw.h (struct mswindows_device): Removed unnecessary
12335         cached device geometry values.
12336         Added update_tick and an accessor macro.
12337         (Lisp_Devmode): Added lrecord declaration.
12338         (struct msprinter_device): Contain devmode as a Lisp object.
12339         Added mswindows_get_selected_frame_hwnd();
12340
12341         * console.h (struct console_methods): Indentation nitpicking.
12342
12343         * device-msw.c (mswindows_init_device): Do not initialize geometry
12344         cache. Initialize update tick.
12345         (mswindows_device_system_metrics): Ask the device for its geometry.
12346         (global_free_2_maybe):
12347         (devmode_to_hglobal):
12348         (handle_printer_changes):
12349         (ensure_not_printing):
12350         (print_dialog_worker):
12351         (Fmsprinter_print_setup_dialog):
12352         (Fmsprinter_print_dialog):
12353         (plist_get_margin):
12354         (plist_set_margin):
12355         (Fmsprinter_page_setup_dialog): Added functions.
12356         (sync_printer_with_devmode):
12357         (handle_devmode_changes):
12358         (Fmsprinter_get_settings):
12359         (Fmsprinter_select_settings):
12360         (Fmsprinter_apply_settings):
12361         (allocate_devmode):
12362         (Fmsprinter_settings_copy):
12363         (Fmsprinter_settings_despecialize):
12364         (print_devmode):
12365         (finalize_devmode):
12366         (equal_devmode):
12367         (hash_devmode): Added functions
12368         (syms_of_device_mswindows): Init devmode lrecord class.
12369
12370         * device.h: Added an exfun for find-device.
12371
12372         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12373         geometry; although, recreate the device compatible DC.
12374
12375         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12376         (msprinter_init_frame_3):
12377         (msprinter_frame_property):
12378         (msprinter_internal_frame_property_p):
12379         (msprinter_frame_properties):
12380         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12381         print job properties (will move to device settings).
12382
12383         * lisp.h: Added symbols.
12384
12385         * general.c (syms_of_general): Declared them.
12386
12387         * hash.c (string_hash): Added.
12388
12389         * lrecord.h (lrecord_type): Added devmode lrecord type.
12390
12391 2000-07-02  Mike Sperber <mike@xemacs.org>
12392
12393         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12394         FreeBSD 4.0.
12395
12396 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12397
12398         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12399         integer.
12400
12401 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12402
12403         * data.c (Fstring_to_number): Don't recognize floating point if
12404         base is not 10.
12405
12406 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12407
12408         * glyphs-widget.c (tab_control_query_geometry):
12409         (widget_query_geometry):
12410         (button_query_geometry):
12411         * glyphs.c (text_query_geometry):
12412         Enforce type correctness.
12413
12414 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12415
12416         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12417         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12418
12419 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12420
12421         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12422         conflicts with gcc's fixincluded version of FOO.h.
12423
12424         * glyphs.h (image_instance_geometry): Remove trailing `,'
12425
12426 2000-06-08  Mike Alexander  <mta@arbortext.com>
12427
12428         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12429         (shove_thread): Don't write the same output twice
12430         (make_ntpipe_output_stream): Increase priority of shove thread
12431         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12432         chance to run
12433         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12434         it.
12435
12436 2000-06-12  Ben Wing  <ben@xemacs.org>
12437
12438         * s\mingw32.h (sigset):
12439         * s\windowsnt.h (sigset):
12440         rename msw_ to mswindows_ for consistency with general convention.
12441
12442 2000-06-12  Ben Wing  <ben@xemacs.org>
12443
12444         * console-msw.c:
12445         * console-msw.c (mswindows_get_console_hwnd):
12446         * console-msw.c (mswindows_ensure_console_allocated):
12447         * console-msw.c (mswindows_hide_console):
12448         * console-msw.c (mswindows_show_console):
12449         * console-msw.c (mswindows_ensure_console_buffered):
12450         * console-msw.c (mswindows_output_console_string):
12451         * console-msw.c (mswindows_windows9x_p):
12452         * console-msw.h:
12453         * device-msw.c (mswindows_get_workspace_coords):
12454         * device-msw.c (mswindows_device_system_metrics):
12455         * dialog-msw.c (mswindows_popup_dialog_box):
12456         * event-msw.c (mswindows_wnd_proc):
12457         * frame-msw.c (mswindows_size_frame_internal):
12458         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12459         * menubar-msw.c (displayable_menu_item):
12460         * menubar-msw.c (mswindows_char_is_accelerator):
12461         * nt.c:
12462         * nt.c (mswindows_sigset):
12463         * nt.c (mswindows_sigrelse):
12464         * nt.c (mswindows_sigpause):
12465         * nt.c (mswindows_raise):
12466         * nt.c (timer_proc):
12467         * ntproc.c:
12468         * ntproc.c (find_child_console):
12469         * ntproc.c (sys_kill):
12470         * print.c:
12471         * print.c (std_handle_out_external):
12472         * process-nt.c (find_child_console):
12473         * process-nt.c (send_signal_the_95_way):
12474         * process-nt.c (ensure_console_window_exists):
12475         * process-nt.c (nt_create_process):
12476         * syssignal.h:
12477         rename msw_ to mswindows_ for consistency with general convention.
12478
12479         * emacs.c:
12480         * dumper.c:
12481         include nt.h, not syswindows.h.
12482
12483         * nt.c (mswindows_fstat):
12484         * nt.c (mswindows_stat):
12485         prefix mswindows_ instead of attempting to directly override the
12486         library functions.  fix declarations.
12487
12488         * nt.h:
12489         include syswindows.h.  move some sysdep.h stuff here.
12490
12491         * ntheap.h:
12492         include syswindows.h, not <windows.h>.
12493
12494         * ntplay.c:
12495         clean up headers.
12496
12497         * sysdep.c:
12498         clean up headers.
12499
12500         * sysdep.c (sys_fstat):
12501         * sysdep.c (sys_stat):
12502         call mswindows versions when appropriate.
12503
12504         * sysdep.h:
12505         move mswin decls to nt.h.
12506
12507         * syswindows.h:
12508         add long comment describing appropriate use of the various windows
12509         headers.
12510
12511 2000-06-11  Ben Wing  <ben@xemacs.org>
12512
12513         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12514
12515 2000-06-10  Ben Wing  <ben@xemacs.org>
12516
12517         * Makefile.in.in (release):
12518         Correction to make sure xemacs.exe always dumped when correct.
12519
12520         * alloca.c:
12521         * balloon_help.c:
12522         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12523
12524         * buffer.c (set_buffer_internal):
12525         [[[[2]]]]: Remove HAVE_FEP code.
12526
12527         * buffer.c (init_initial_directory):
12528         [3].
12529
12530         * bytecode.c:
12531         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12532         individual files.
12533
12534         * callproc.c:
12535         * callproc.c (call_process_cleanup):
12536         * callproc.c (Fold_call_process_internal):
12537         * callproc.c (child_setup):
12538         * callproc.c (getenv_internal):
12539         * callproc.c (init_callproc):
12540         * callproc.c (vars_of_callproc):
12541         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12542         __CYGWIN32__ -> CYGWIN.
12543         DOS_NT -> WIN32_NATIVE.
12544         Remove MSDOS support/references, converting to WIN32_NATIVE
12545           where correct.
12546         __MINGW32__ -> MINGW.
12547         Fix windows.h includes.
12548         Remove bogus HAVE_NTGUI.
12549
12550         * config.h.in:
12551         [2].
12552
12553         * console-msw.c:
12554         mswindows_message_outputted added for use in allowing startup
12555         errors on the console to be seen.
12556
12557         * console-msw.c (msw_ensure_console_allocated):
12558         * console-msw.c (msw_output_console_string):
12559         * console-msw.c (DHEADER):
12560         * console-msw.c (DOPAQUE_DATA):
12561         * console-msw.c (DEVENT):
12562         * console-msw.c (DCONS):
12563         * console-msw.c (DCONSCDR):
12564         * console-msw.c (DSTRING):
12565         * console-msw.c (DVECTOR):
12566         * console-msw.c (DSYMBOL):
12567         * console-msw.c (DSYMNAME):
12568         Fix warnings.
12569
12570         * console-stream.c (stream_init_console):
12571         Fix text/binary problems.
12572
12573         * device-msw.c:
12574         * device-msw.c (mswindows_finish_init_device):
12575         * device-msw.c (mswindows_delete_device):
12576         [1].
12577
12578         * device.c (handle_asynch_device_change):
12579         [3].
12580
12581         * dgif_lib.c:
12582         * dgif_lib.c (DGifOpenFileName):
12583         * dgif_lib.c (DGifOpenFileHandle):
12584         * dgif_lib.c (DGifGetLine):
12585         * dgif_lib.c (DGifGetPixel):
12586         Added config.h/lisp.h, fix up includes.
12587         [1].
12588
12589         * dired-msw.c:
12590         [4].
12591
12592         * dired.c:
12593         * dired.c (file_name_completion):
12594         * dired.c (Ffile_attributes):
12595         * dired.c (syms_of_dired):
12596         [1].
12597
12598         * dumper.c:
12599         * dumper.c (pdump_file_unmap):
12600         * dumper.c (pdump_load):
12601         [1].
12602
12603         * editfns.c:
12604         * editfns.c (Ftemp_directory):
12605         * editfns.c (user_login_name):
12606         * editfns.c (Fuser_real_login_name):
12607         * editfns.c (get_home_directory):
12608         [1].
12609
12610         * elhash.c (finish_marking_weak_hash_tables):
12611         [[[[5]]]]: Fix GCC warnings.
12612
12613         * emacs.c:
12614         * emacs.c (mswindows_handle_hardware_exceptions):
12615         * emacs.c (make_arg_list_1):
12616         * emacs.c (main_1):
12617         * emacs.c (Fkill_emacs):
12618         * emacs.c (Fdump_emacs):
12619         [1].
12620         Fix problems with nested crashes, add long comment.
12621
12622         * event-Xt.c (init_event_Xt_late):
12623         [1].
12624
12625         * event-msw.c:
12626         * event-msw.c (mswindows_dde_callback):
12627         * event-msw.c (mswindows_handle_sticky_modifiers):
12628         * event-msw.c (mswindows_wnd_proc):
12629         [1].
12630         [5].
12631
12632         * events.c (character_to_event):
12633         [1].
12634
12635         * fileio.c:
12636         * fileio.c (Ffile_name_directory):
12637         * fileio.c (Ffile_name_nondirectory):
12638         * fileio.c (directory_file_name):
12639         * fileio.c (Fexpand_file_name):
12640         * fileio.c (Fsubstitute_in_file_name):
12641         * fileio.c (Ffile_name_absolute_p):
12642         * fileio.c (check_executable):
12643         * fileio.c (Ffile_readable_p):
12644         * fileio.c (Ffile_accessible_directory_p):
12645         * fileio.c (Ffile_modes):
12646         * fileio.c (Funix_sync):
12647         * fileio.c (vars_of_fileio):
12648         [1]. [4].
12649
12650         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12651
12652         Expand getdefdir defn.
12653         Fix bogus rename() comment.
12654
12655         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12656         to use standard XEmacs include files, e.g. sysfile.h, rather
12657         than system-specific includes.
12658
12659         * fns.c:
12660         * fns.c (Fsubseq):
12661         [5]. [6].
12662
12663         * frame.c (vars_of_frame):
12664         [1].
12665
12666         * getloadavg.c:
12667         * getloadavg.c (getloadavg):
12668         [1]. [6].
12669         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12670         (We don't use it elsewhere in the code; just add a comment.)
12671
12672         * gif_io.c:
12673         [6].
12674         Add config.h.
12675
12676         * glyphs-msw.c:
12677         * glyphs-msw.c (mswindows_resource_instantiate):
12678         [1].
12679
12680         * glyphs-x.c (x_native_layout_instantiate):
12681         [5].
12682
12683         * gui-msw.c (Fmswindows_shell_execute):
12684         [1].
12685
12686         * insdel.c:
12687         [4].
12688
12689         * lisp.h:
12690         [4]. [5].
12691
12692         * lread.c (locate_file_in_directory_mapper):
12693         [1].
12694
12695         * lstream.c:
12696         [4].
12697
12698         * mem-limits.h:
12699         * mem-limits.h (get_lim_data):
12700         [1].
12701
12702         * menubar-msw.c:
12703         [4].
12704
12705         * ndir.h:
12706         [1].
12707
12708         * nt.c:
12709         * nt.c (getwd):
12710         * nt.c (closedir):
12711         * nt.c (rva_to_section):
12712         * nt.c (mswindows_executable_type):
12713         [1]. [6].
12714         Fix closedir() defn.
12715
12716         * nt.h:
12717         [[[[8]]]]: *_OK defs moved to sysfile.h.
12718
12719         * ntproc.c:
12720         [6]. [7].
12721
12722         * objects-x.c:
12723         [4].
12724
12725         * print.c:
12726         * print.c (std_handle_out_external):
12727         [1]. [4].
12728
12729         * process-nt.c:
12730         * process-nt.c (nt_create_process):
12731         [6].
12732         try to fix process quoting somewhat.
12733
12734         * process-unix.c (unix_create_process):
12735         [1].
12736
12737         * process.c:
12738         * process.c (vars_of_process):
12739         Add Vnull_device.
12740
12741         * process.h:
12742         [1].
12743
12744         * realpath.c:
12745         * realpath.c (xrealpath):
12746         [1].
12747
12748         * redisplay-tty.c (init_tty_for_redisplay):
12749         [3].
12750
12751         * redisplay.c:
12752         [4]. [6].
12753
12754         * scrollbar-msw.c:
12755         [4].
12756
12757         * sheap.c:
12758         * sheap.c (more_static_core):
12759         * sheap.c (report_sheap_usage):
12760         [5]. [6].
12761
12762         * signal.c:
12763         * signal.c (alarm_signal):
12764         [1]. [6].
12765
12766         * sound.c:
12767         [6].
12768
12769         * strftime.c:
12770         * strftime.c (zone_name):
12771         [1]. [5].
12772
12773         * symsinit.h (init_sunpro):
12774         [1].
12775
12776         * syscommctrl.h:
12777         commctrl.h not in Cygwin b20.1.
12778
12779         * sysdep.c:
12780         * sysdep.c (endif):
12781         * sysdep.c (sys_subshell):
12782         * sysdep.c (init_baud_rate):
12783         * sysdep.c (emacs_get_tty):
12784         * sysdep.c (emacs_set_tty):
12785         * sysdep.c (tty_init_sys_modes_on_device):
12786         * sysdep.c (init_system_name):
12787         * sysdep.c (sys_open):
12788         * sysdep.c (interruptible_open):
12789         * sysdep.c (sys_fopen):
12790         * sysdep.c (sys_mkdir):
12791         * sysdep.c (sys_rename):
12792         * sysdep.c (get_process_times_1):
12793         [1]. [6].
12794
12795         * sysdep.h:
12796         [1].
12797
12798         * sysdir.h:
12799         * sysdir.h (DIRENTRY_NONEMPTY):
12800         [1]. [6].
12801
12802         * sysdll.c (dll_init):
12803         * sysdll.h:
12804         [1].
12805
12806         * sysfile.h:
12807         [1]. [6]. [8].
12808         added text/binary defs.
12809
12810         * sysfloat.h:
12811         [1].
12812
12813         * sysproc.h:
12814         * sysproc.h (EDESTADDRREQ):
12815         * sysproc.h (poll_fds_for_input):
12816         [1]. [6].
12817
12818         * syspwd.h:
12819         [6].
12820
12821         * syssignal.h:
12822         [1].
12823
12824         * systime.h:
12825         [1]. [6].
12826
12827         * systty.h:
12828         [1].
12829
12830         * syswindows.h:
12831         [1].
12832         Always define WIN32_LEAN_AND_MEAN.
12833
12834         * unexcw.c (unexec):
12835         [5].
12836
12837         * unexec.c:
12838         * unexec.c (copy_text_and_data):
12839         * unexec.c (adjust_lnnoptrs):
12840         [1].
12841
12842         * unexnt.c:
12843         * unexnt.c (_start):
12844         [1].
12845
12846 2000-06-07  Ben Wing  <ben@xemacs.org>
12847
12848         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12849         was used only as a model.  We've long since extracted any useful
12850         logic or code out of this. (I just did an exhaustive search.)
12851
12852         * s\msdos.h: Removed.
12853
12854         * s\windows95.h: Removed.
12855
12856 2000-06-10  Ben Wing  <ben@xemacs.org>
12857
12858         * s\cygwin32.h:
12859         [1]. [5].
12860         Don't use extern with fun defs.
12861
12862         * s\mingw32.h:
12863         [1]. [7].
12864         Remove nt\inc include.
12865         Remove getdisk, getdefdir. (The former is unused, the latter
12866         expanded in fileio.h.)
12867
12868         * s\windowsnt.h:
12869         * s\windowsnt.h (WIN32_NATIVE):
12870         * s\windowsnt.h (HAVE_STRCASECMP):
12871         [1]. [7].
12872         Add long comment about preprocessor changes.
12873         Remove getdisk, getdefdir. (The former is unused, the latter
12874         expanded in fileio.h.)
12875
12876 2000-06-10  Ben Wing  <ben@xemacs.org>
12877
12878         * m\arm.h:
12879         * m\delta.h:
12880         * m\intel386.h:
12881         * m\sequent.h:
12882         * m\template.h:
12883         * m\windowsnt.h:
12884         [1].
12885         Remove bogus/unused NO_SOCK_SIGIO.
12886
12887 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12888
12889         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12890         not an Emchar.
12891
12892 2000-06-04  Mike Sperber <mike@xemacs.org>
12893
12894         * casetab.c (set_case_table): For `set-standard-case-table',
12895         actually deposit the new case tables where the rest of XEmacs can
12896         see them.
12897
12898 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12899
12900         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12901
12902 2000-06-05  Ben Wing  <ben@xemacs.org>
12903
12904         * callproc.c (child_setup): Don't do close_load_descs() under
12905         MS Windows.  Put in a comment explaining why.
12906
12907 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12908
12909         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12910         Toolkit shell" which breaks `kill-compilation' on Windows NT
12911         native, retaining STDERR handling improvements.
12912
12913 2000-06-01  Andreas Jaeger  <aj@suse.de>
12914
12915         * s/s390.h: Support for S390, based on a patch by Martin
12916         Schwidefsky <schwidefsky@de.ibm.com>.
12917
12918 2000-05-30  Andy Piper  <andy@xemacs.org>
12919
12920         * window.c (allocate_window):
12921         (make_dummy_parent):
12922         (Fset_window_configuration): use new hashtable type.
12923
12924         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12925         (struct image_instantiator_methods):
12926         (struct Lisp_Image_Instance): make instance geometry signed.
12927
12928         * glyphs.c (instantiate_image_instantiator):
12929         (image_instance_query_geometry):
12930         (image_instance_layout):
12931         (image_instance_layout):
12932         (query_string_geometry):
12933         (text_query_geometry):
12934         (image_instantiate):
12935         (image_instantiate):
12936         (cache_subwindow_instance_in_frame_maybe):
12937         (subwindow_query_geometry): make instance geometry signed.
12938
12939         * glyphs-widget.c (widget_query_geometry):
12940         (widget_layout):
12941         (button_query_geometry):
12942         (tree_view_query_geometry):
12943         (tab_control_query_geometry):
12944         (layout_query_geometry):
12945         (layout_layout):
12946         (native_layout_layout): make instance geometry signed.
12947
12948 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12949
12950         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12951         constant.
12952
12953         * general.c (syms_of_general): Add Qfull_assoc symbol.
12954
12955         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12956         correctly.
12957         (decode_weak_list_type): Decode full-assoc type.
12958         (encode_weak_list_type): Encode full-assoc type.
12959         (Fmake_weak_list): Update doc string.
12960
12961 2000-05-30  Andy Piper  <andy@xemacs.org>
12962
12963         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12964
12965         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12966         (decode_hash_table_weakness): ditto.
12967         (Fhash_table_weakness): ditto.
12968         (Fhash_table_type): ditto.
12969         (finish_marking_weak_hash_tables): ditto.
12970         (hash_table_weakness_validate): ditto.
12971         (syms_of_elhash): ditto.
12972
12973 2000-05-28  Martin Buchholz <martin@xemacs.org>
12974
12975         * XEmacs 21.2.34 is released.
12976
12977 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12978
12979         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12980         start cache.
12981         (updating_line_start_cache): Gone.
12982         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12983         generic code to force a minimum of 1 line laid out in the
12984         CMOTION_DISP case.
12985
12986 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12987
12988         * glyphs.c (instantiate_image_instantiator): Check for initialized
12989         height & width no longer special cases IMAGE_NOTHING.
12990         (nothing_instantiate): Set height and width of instance.
12991
12992 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12993
12994         * unexelf.c (unexec): Search for ".data" section.
12995         Initialize new_data2_offset from old_data_index.
12996         Remove redundant check for ElfW.
12997
12998 2000-05-23  Andy Piper  <andy@xemacs.org>
12999
13000         * glyphs.c (get_image_instantiator_governing_domain): allow more
13001         specific domains as the governing domain rather than expecting an
13002         exact match. This fixes problems with layouts.
13003
13004 2000-05-22  Andy Piper  <andy@xemacs.org>
13005
13006         * redisplay-output.c (compare_runes): check for non-images
13007
13008         * glyphs.c (set_glyph_dirty_p): ditto.
13009         (update_glyph_cachel_data): ditto.
13010
13011         * glyphs-widget.c (layout_post_instantiate): ditto.
13012         (layout_post_instantiate): ditto.
13013
13014         * event-msw.c (mswindows_wnd_proc): warning removal.
13015
13016 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13017
13018         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13019
13020         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13021
13022         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13023
13024         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13025         (mswindows_executable_type): mingw32 now has enough headers for
13026         this to work.
13027
13028 2000-05-20  Andy Piper  <andy@xemacs.org>
13029
13030         * console-msw.c (mswindows_output_last_error): ; -> ,
13031
13032 2000-05-12  Andy Piper  <andy@xemacs.org>
13033
13034         * console-msw.c (FROB): compare ints with ints.
13035
13036 2000-05-11  Andy Piper  <andy@xemacs.org>
13037
13038         * glyphs-x.c (x_finalize_image_instance): make minimal build
13039         happy.
13040
13041 2000-05-20  Ben Wing  <ben@xemacs.org>
13042
13043         * event-Xt.c:
13044         * event-Xt.c (vars_of_event_Xt):
13045         move modifier-keys-are-sticky to event-stream.c.
13046
13047         * event-msw.c:
13048         * event-msw.c (mswindows_enqueue_mouse_button_event):
13049         * event-msw.c (key_needs_default_processing_p):
13050         * event-msw.c (XEMSW_LCONTROL):
13051         * event-msw.c (mswindows_handle_sticky_modifiers):
13052         * event-msw.c (FROB):
13053         * event-msw.c (clear_sticky_modifiers):
13054         * event-msw.c (output_modifier_keyboard_state):
13055         * event-msw.c (output_alt_keyboard_state):
13056         * event-msw.c (mswindows_wnd_proc):
13057         * event-msw.c (mswindows_modifier_state):
13058         * event-msw.c (emacs_mswindows_handle_magic_event):
13059         implement sticky modifiers.
13060
13061         * event-stream.c:
13062         * event-stream.c (vars_of_event_stream):
13063         move modifier-keys-are-sticky here.
13064
13065         * lisp.h:
13066         add CHECK_FUNCTION.
13067
13068         * rangetab.c:
13069         implement map-range-table.
13070
13071
13072 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13073
13074         * redisplay-tty.c (reset_tty_modes):
13075         (tty_redisplay_shutdown): Adjust argument type to
13076         tty_frame_output_end.
13077
13078 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13079
13080         * eval.c (Fbacktrace): Don't output a line with only right
13081         parenthesis.
13082
13083 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13084
13085         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13086         (Fpq_reset_poll): Ditto.
13087
13088 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13089
13090         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13091
13092 2000-05-16  Ben Wing  <ben@xemacs.org>
13093
13094         * buffer.c:
13095         * buffer.c (dfc_convert_to/from_internal_format):
13096         * buffer.c (reinit_vars_of_buffer):
13097         Fix conversion functions to allow reentrancy.
13098
13099         * console-msw.c:
13100         * console-msw.c (mswindows_output_last_error):
13101         New fun, generally useful -- output a human-readable
13102         version of GetLastError() on the console.
13103
13104         * console-msw.h:
13105         * console-msw.h (struct mswindows_frame):
13106         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13107
13108         * console-stream.c (stream_output_begin):
13109         * console-stream.c (stream_output_end):
13110         * console-stream.c (stream_output_vertical_divider):
13111         * console-stream.c (stream_clear_region):
13112         * console-stream.c (stream_flash):
13113         * console-stream.c (console_type_create_stream):
13114         Delete blank stream methods, not needed.
13115
13116         * console.h (struct console_methods):
13117         Split begin/end methods into window and frame.
13118
13119         * event-msw.c:
13120         * event-msw.c (mswindows_handle_paint):
13121         * event-msw.c (output_alt_keyboard_state):
13122         * event-msw.c (mswindows_wnd_proc):
13123         * event-msw.c (vars_of_event_mswindows):
13124         Comment about problems with ignored-expose.
13125         Define mswindows-debug-events; not really implemented.
13126
13127         * frame-msw.c (mswindows_init_frame_1):
13128         random cleanups.
13129
13130         * glyphs-msw.c:
13131         * glyphs-msw.c (begin_defer_window_pos):
13132         * glyphs-msw.c (mswindows_unmap_subwindow):
13133         * glyphs-msw.c (mswindows_map_subwindow):
13134         * glyphs-msw.c (mswindows_resize_subwindow):
13135         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13136
13137         * glyphs.c (make_image_instance_1):
13138         Fix crash.
13139
13140         * gutter.c (Fredisplay_gutter_area):
13141         Use new begin/end methods.
13142
13143         * lisp.h (Dynarr_new2):
13144         New creation fun.
13145
13146         * redisplay-msw.c:
13147         * redisplay-msw.c (mswindows_frame_output_begin):
13148         * redisplay-msw.c (mswindows_frame_output_end):
13149         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13150         New begin/end methods -- handle DeferWindowPos.
13151
13152         * redisplay-output.c (redisplay_move_cursor):
13153         * redisplay-output.c (redraw_cursor_in_window):
13154         * redisplay-output.c (redisplay_update_line):
13155         * redisplay-output.c (redisplay_output_window):
13156         New begin/end methods.
13157
13158         * redisplay-tty.c:
13159         * redisplay-tty.c (tty_frame_output_begin):
13160         * redisplay-tty.c (tty_frame_output_end):
13161         * redisplay-tty.c (console_type_create_redisplay_tty):
13162         New begin/end methods.
13163
13164         * redisplay-x.c:
13165         * redisplay-x.c (x_window_output_begin):
13166         * redisplay-x.c (x_window_output_end):
13167         * redisplay-x.c (console_type_create_redisplay_x):
13168         New begin/end methods.
13169
13170         * redisplay.c (redisplay_frame):
13171         * redisplay.c (Fredisplay_echo_area):
13172         New begin/end methods.
13173         use MAYBE_DEVMETH for clear_frame; it may not exist.
13174
13175         * window.h (WINDOW_XFRAME):
13176         WINDOW_XFOO macros -- get locale and decode struct pointer.
13177
13178
13179 2000-05-12  Ben Wing  <ben@xemacs.org>
13180
13181         * emacs.c:
13182         * emacs.c (ensure_no_quitting_from_now_on):
13183         * emacs.c (fatal_error_signal):
13184         * emacs.c (mswindows_handle_hardware_exceptions):
13185         * emacs.c (main):
13186         * emacs.c (Fkill_emacs):
13187         * emacs.c (shut_down_emacs):
13188         * emacs.c (assert_failed):
13189         various improvements in fatal error handling.
13190
13191         * eval.c:
13192         move preparing_for_armageddon to emacs.c.
13193
13194         * lisp.h:
13195         declare fatal_error_in_progress.
13196
13197         * print.c:
13198         * print.c (std_handle_out_external):
13199         * print.c (std_handle_out_va):
13200         * print.c (stderr_out):
13201         * print.c (stdout_out):
13202         use console under mswin when no standard output.
13203         don't do code conversion during fatal error.
13204
13205         * scrollbar.c (Fscrollbar_page_up):
13206         * scrollbar.c (Fscrollbar_page_down):
13207         fix missing else.  reindent.
13208
13209 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13210
13211         Emergency fix.
13212
13213         * glyphs.h (GLYPH_CACHEL_DESCENT):
13214         (GLYPH_CACHEL_DESCENT):
13215         (GLYPH_CACHEL_DESCENT):
13216         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13217         used in case these are inline functions.
13218         Use more absurd values to error check.
13219
13220         include window.h for error check functions.
13221
13222 2000-05-11  Ben Wing  <ben@xemacs.org>
13223
13224         * cmdloop.c (Freally_early_error_handler):
13225         Display message box under windows; otherwise, message will disappear
13226         before it can be viewed.
13227
13228         * console-msw.c:
13229         * console-msw.c (Fmswindows_message_box):
13230         * console-msw.c (FROB):
13231         * console-msw.c (syms_of_console_mswindows):
13232         Define new fun `mswindows-message-box'.
13233         #### I will merge this into `popup-dialog-box'; just give me
13234         a bit of time.
13235
13236         * general.c:
13237         * general.c (syms_of_general):
13238         Some new symbols used in `mswindows-message-box'.
13239
13240         * glyphs.c:
13241         * glyphs.c (Fset_image_instance_property):
13242         put warning in this fun.
13243
13244         * glyphs.h:
13245         * glyphs.h (GLYPH_CACHEL_WIDTH):
13246         * glyphs.h (GLYPH_CACHEL_ASCENT):
13247         * glyphs.h (GLYPH_CACHEL):
13248         * glyphs.h (GLYPH_CACHEL_GLYPH):
13249         define error-checking versions to try to catch a bug i've seen --
13250         redisplay gets in an infinite loop because the glyph width of the
13251         continuation glyph is 65535.
13252
13253         * lisp.h:
13254         Extern message-box stuff.
13255
13256         * window.c (allocate_window):
13257         * window.c (make_dummy_parent):
13258         * window.c (Fset_window_configuration):
13259         Use EQUAL not EQ for subwindow caches to make them work a bit
13260         better. (Something is still very broken.)
13261
13262
13263 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13264
13265         * glyphs.c (image_instantiate): Suppress gcc warnings.
13266         (Fmake_image_instance): Fix doc string.
13267         * specifier.c (Fmake_specifier): Ditto.
13268
13269 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13270
13271         * paths.h.in (PATH_LOCK): Removed.
13272         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13273         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13274
13275 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13276
13277         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13278         Document (featurep '(and xemacs 21.02)).
13279
13280 2000-05-09  Ben Wing  <ben@xemacs.org>
13281
13282         * buffer.c (complex_vars_of_buffer):
13283         update modeline-format doc.
13284
13285         * device.h:
13286         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13287
13288         * emacs.c:
13289         timeline of all released versions of Emacs, for use in creating
13290         authorship comments and in synching up.
13291
13292         * glyphs-widget.c (image_instantiator_buttons):
13293         * glyphs-widget.c (image_instantiator_edit_fields):
13294         * glyphs-widget.c (image_instantiator_combo_box):
13295         * glyphs-widget.c (image_instantiator_scrollbar):
13296         * glyphs-widget.c (image_instantiator_progress_guage):
13297         * glyphs-widget.c (image_instantiator_tree_view):
13298         * glyphs-widget.c (image_instantiator_tab_control):
13299         * glyphs-widget.c (image_instantiator_labels):
13300         * glyphs-widget.c (image_instantiator_layout):
13301         * glyphs-widget.c (image_instantiator_native_layout):
13302         rename decode_domain method to governing_domain.
13303
13304         * glyphs.c:
13305         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13306         * glyphs.c (add_entry_to_device_ii_format_list):
13307         make sure we don't put an entry more than once into the list.
13308         * glyphs.c (check_instance_cache_mapper):
13309         *************************************************************
13310         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13311         HAVE BEEN GETTING.
13312         *************************************************************
13313         * glyphs.c (get_image_instantiator_governing_domain):
13314         clean up, expand on new concept of governing domain.
13315         * glyphs.c (instantiate_image_instantiator):
13316         * glyphs.c (allocate_image_instance):
13317         use governing_domain instead of cache_domain in naming.
13318         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13319         * glyphs.c (make_image_instance_1):
13320         * glyphs.c (Fmake_image_instance):
13321         allow for any domain (not just device), and process the
13322         governing domain correctly.  very big doc fix.
13323         * glyphs.c (Fimage_instance_domain):
13324         new primitive, to retrieve the governing domain of an image instance.
13325         * glyphs.c (image_instantiate):
13326         use new governing_domain stuff.  this fixes a crash you could get
13327         by instantiating certain widget glyphs in frame locales. (should
13328         signal an error instead of crashing.)
13329         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13330         * glyphs.c (Fglyphp): clean up doc.
13331         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13332         * glyphs.c (syms_of_glyphs):
13333         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13334         * glyphs.c (image_instantiator_format_create): add some comments about
13335         bogus code.
13336         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13337         for current-display-table. (Apparently Hrjove implemented in 1998 a
13338         design I wrote up in 1996, but didn't update the doc string.)
13339
13340         * glyphs.h: clean up a doc string.
13341         * glyphs.h (governing_domain):
13342         * glyphs.h (struct image_instantiator_methods):
13343         changes for governing_domain stuff.
13344
13345         * gutter.c:
13346         * gutter.c (Fgutter_specifier_p):
13347         * gutter.c (Fgutter_size_specifier_p):
13348         * gutter.c (Fgutter_visible_specifier_p):
13349         * objects.c:
13350         * objects.c (Fcolor_specifier_p):
13351         * objects.c (Ffont_specifier_p):
13352         * objects.c (Fface_boolean_specifier_p):
13353         doc strings moved to make-*-specifier.
13354
13355         * redisplay.c (add_disp_table_entry_runes_1):
13356         * redisplay.c (generate_fstring_runes):
13357         * redisplay.c (screen):
13358         add random comments and doc strings.
13359
13360         * specifier.c:
13361         * specifier.c (Fmake_specifier):
13362         major overhaul of this doc string.
13363
13364         * specifier.c (Fvalid_specifier_domain_p):
13365         comment about the bogosity of image instances being domains.
13366         * specifier.c (decode_domain):
13367         now non-static, used in glyphs.c.
13368         * specifier.c (specifier_instance):
13369         comment about the bogosity of image instances being domains.
13370         * specifier.c (Fgeneric_specifier_p):
13371         move doc string to make-generic-specifier.
13372         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13373         rebackslashify.
13374
13375         * specifier.h:
13376         * specifier.h (DOMAIN_FRAME):
13377         * specifier.h (DOMAIN_LIVE_P):
13378         * specifier.h (DOMAIN_XDEVICE):
13379         rebackslashify.
13380         add comments about problems with these macros.
13381         prototype for decode_domain.
13382
13383         * toolbar.c:
13384         * toolbar.c (Ftoolbar_specifier_p):
13385         move doc string to `make-toolbar-specifier'.
13386
13387         * window.c (window_unmap_subwindows_cache_mapper):
13388         *************************************************************
13389         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13390         HAVE BEEN GETTING.
13391         *************************************************************
13392
13393 2000-05-09  Andy Piper  <andy@xemacs.org>
13394
13395         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13396
13397         * window.c (Fset_window_configuration): reset the frame subwindow
13398         cache and re-initialize the window subwindow caches.
13399
13400         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13401
13402 2000-05-09  Ben Wing  <ben@xemacs.org>
13403
13404         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13405         DWORD.
13406
13407 2000-04-26  Mike Woolley  <mike@bulsara.com>
13408
13409         * ntheap.c: Changed recreate_heap to limit the amount reserved
13410         for the heap to that which is actually available. Also now
13411         displays a message box (with some dignostics) in the event that
13412         it still can't start.
13413
13414 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13415
13416         * callproc.c (Fold_call_process_internal): GCPRO path
13417
13418 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13419
13420         Patch by Bill Perry.
13421
13422         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13423         back data instead of #ifdef.
13424         (Fscrollbar_page_down): ditto.
13425
13426 2000-05-07  Ben Wing  <ben@xemacs.org>
13427
13428         * buffer.h:
13429         Kludge for defining Qmswindows_tstr.
13430
13431         * nt.c:
13432         * nt.c (open_input_file):
13433         * nt.c (open_output_file):
13434         * nt.c (rva_to_section):
13435         * nt.c (mswindows_executable_type):
13436         Move all memory-mapped-file routines here (some were in unexnt.c,
13437         which is bad because they are used by process-nt.c, and unexnt
13438         won't be around when portable dumping).  Synched the above routines
13439         with FSF 20.6.
13440
13441         * nt.h:
13442         Removed ifdef'd out bogus code.
13443         Fixed some prototypes.
13444
13445         * nt.h (file_data):
13446         * nt.h (OFFSET_TO_RVA):
13447         * nt.h (RVA_TO_OFFSET):
13448         * nt.h (RVA_TO_PTR):
13449         Moved the memory-mapped-file structures, macros and prototypes
13450         here, to parallel nt.c.  ntheap.h should really be removed
13451         entirely, and it's a non-portable-dumper specific file.
13452
13453         * ntheap.h (round_to_next):
13454         Moved the memory-mapped-file structures, macros and prototypes
13455         to nt.h.
13456
13457         * ntproc.c (compare_env):
13458         Moved rva_to_section and mswindows_executable_type to nt.c.
13459         Moved compare_env to process-nt.c.
13460         ntproc.c will die, one day.
13461
13462         * ntproc.c (sys_spawnve):
13463         Account for win32_ -> mswindows_.
13464
13465         * process-nt.c:
13466         * process-nt.c (struct nt_process_data):
13467         * process-nt.c (ensure_console_window_exists):
13468         * process-nt.c (compare_env):
13469         * process-nt.c (nt_create_process):
13470         * process-nt.c (nt_kill_process_by_pid):
13471         * process-nt.c (syms_of_process_nt):
13472         * process-nt.c (vars_of_process_nt):
13473         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13474         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13475         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13476         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13477         Move compare_env here from ntproc.c.
13478
13479         * process.c (Fprocess_send_region):
13480         Takes an optional fourth argument, BUFFER, which should fix some
13481         problems with call-process.
13482
13483         * syscommctrl.h:
13484         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13485
13486         * syswindows.h:
13487         Move ICC_BAR_CLASSES to syscommctrl.h.
13488         Add preliminary macros for MSWindows/Mule.  More to come.
13489
13490         * unexnt.c:
13491         * unexnt.c (unexec):
13492         open_output_file moved to nt.c.
13493
13494
13495 2000-05-05  Andy Piper  <andy@xemacs.org>
13496
13497         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13498         instance from the frame cache also since GC may catch up too late
13499         to make frame deletion sane.
13500
13501 2000-05-04  Andy Piper  <andy@xemacs.org>
13502
13503         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13504         (x_finalize_image_instance): ungcpro on deletion.
13505
13506         * glyphs.c (image_instantiator_format_create): give pointers a
13507         query geometry method so that the geometry is at least set.
13508
13509         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13510         initialize layouts if using widgets.
13511
13512 2000-05-03  Andy Piper  <andy@xemacs.org>
13513
13514         * nt.c: remove bogus reference to sysmmsystem.h
13515
13516         * gui-x.c (popup_selection_callback): fix no selection abort.
13517
13518 2000-05-02  Andy Piper  <andy@xemacs.org>
13519
13520         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13521         (mswindows_widget_instantiate): ditto.
13522
13523         * glyphs-widget.c (initialize_widget_image_instance): initialize
13524         children correctly.
13525         (widget_instantiate): cope with children and items in the same
13526         instance.
13527
13528         * glyphs.c (mark_image_instance): cope with children as a first
13529         class member.
13530         (image_instance_equal): ditto.
13531         (image_instance_hash): ditto.
13532         (image_instance_changed): ditto.
13533
13534 2000-04-30  Andy Piper  <andy@xemacs.org>
13535
13536         * glyphs.c (subwindow_query_geometry): new function. Return some
13537         defaults.
13538         (subwindow_instantiate): don't assign dimensions if none have been
13539         given.
13540         (image_instantiator_format_create): add subwindow_query_geometry.
13541         (print_image_instance): cope with layouts as widgets.
13542
13543 2000-04-29  Andy Piper  <andy@xemacs.org>
13544
13545         * frame.c (delete_frame_internal): call
13546         free_frame_subwindow_instance_cache so that all subwindows are
13547         finalized before their parent.
13548         (mark_frame): remove subwindow_cachels.
13549         (Fmake_frame): remove subwindow_cachel manipulation.
13550         (allocate_frame_core): subwindow_instance_cache is a weak list.
13551         (delete_frame_internal): set subwindow_instance_cache to nil.
13552
13553         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13554         finalization safe.
13555         (mswindows_finalize_image_instance): use the device
13556         not the domain as the domain may have died already.
13557
13558         * glyphs-x.c (x_finalize_image_instance): ditto.
13559         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13560         HEIGHT.
13561
13562         * redisplay-output.c (redisplay_unmap_subwindows): update for
13563         subwindow instance cache as a weak list.
13564         (redisplay_unmap_subwindows_maybe): ditto.
13565         (redisplay_unmap_subwindows_except_us): ditto.
13566
13567         * glyphs.c (unmap_subwindow): error checking will check the domain
13568         so don't deal with it here. Don't use cachels anymore.
13569         (map_subwindow): ditto.
13570         (update_subwindow_cachel_data): remove old accessor names.
13571         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13572         (Fresize_subwindow): don't update cachel.
13573         (mark_subwindow_cachels):
13574         (update_subwindow_cachel_data):
13575         (add_subwindow_cachel):
13576         (get_subwindow_cachel_index):
13577         (update_subwindow_cachel):
13578         (reset_subwindow_cachels):
13579         (mark_subwindow_cachels_as_not_updated): deleted.
13580         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13581         subwindow instance to the frame cache.
13582         (find_matching_subwindow): update for subwindow instance cache as
13583         a weak list.
13584         (update_widget_instances): ditto.
13585         (image_instance_type_to_mask):inlined.
13586         (free_frame_subwindow_instance_cache): new function. finalize all
13587         subwindows that are instantiated.
13588
13589         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13590         of cachel information.
13591         (IMAGE_INSTANCE_DISPLAY_X):
13592         (IMAGE_INSTANCE_DISPLAY_Y):
13593         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13594         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13595         (XIMAGE_INSTANCE_DISPLAY_X):
13596         (XIMAGE_INSTANCE_DISPLAY_Y):
13597         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13598         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13599         remove subwindow_cachel structure and function references.
13600         (image_instance_type_to_mask): inline from glyphs.c
13601
13602         * redisplay.c (redisplay_frame): remove subwindow_cachel
13603         references.
13604
13605         * frame.h (struct frame): remove subwindow_cachels.
13606         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13607
13608         * frameslots.h: add subwindow_instance_cache.
13609
13610         * window.c (replace_window): check subwindow cache of replacement.
13611         (window_unmap_subwindows_cache_mapper):
13612         (window_unmap_subwindows): new functions. Unmap all subwindows
13613         cached on this window.
13614         (mark_window_as_deleted): unmap all subwindows.
13615
13616 2000-04-27  Andy Piper  <andy@xemacs.org>
13617
13618         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13619
13620         * glyphs-widget.c (widget_layout): return something.
13621         (layout_layout): return something. Fail if not initialized.
13622         (layout_query_geometry): ditto.
13623         (image_instantiator_native_layout): new function. Initialized the
13624         native layout type.
13625         (widget_instantiate): don't do layout stuff here.
13626
13627         * glyphs.c (instantiate_image_instantiator): reorded calling or
13628         instantiate and post_instantiate with layout in between.
13629         (image_instance_layout): be more selective about deciding whether
13630         the layout has been done or not.
13631
13632         * glyphs.h (struct image_instantiator_methods): return a value
13633         from layout_method.
13634
13635 2000-04-26  Andy Piper  <andy@xemacs.org>
13636
13637         * glyphs.c (allocate_image_instance): make initial width and
13638         height unspecified. Set initialized to 0.
13639
13640         * syscommctrl.h new file. Encapsulates commctrl.h.
13641
13642         * syswindows.h new file. Encapsulates windows.h.
13643
13644         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13645         * nt.c: ditto.
13646         * console-msw.h: ditto.
13647
13648         * redisplay-tty.c (tty_output_display_block): remove layout references.
13649
13650         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13651         window handle rather than just the frame.
13652
13653         * glyphs.c (mark_image_instance): remove layout references.
13654         (print_image_instance): ditto.
13655         (image_instance_equal): ditto.
13656         (image_instance_hash): ditto.
13657         (decode_image_instance_type): ditto.
13658         (encode_image_instance_type): ditto.
13659         (image_instantiate): ditto.
13660         (allocate_glyph): ditto.
13661         (Fimage_instance_height): ditto.
13662         (Fimage_instance_width): ditto.
13663         (update_subwindow): ditto.
13664
13665         * redisplay-x.c (x_output_display_block): recode for layouts as
13666         widgets.
13667
13668         * redisplay-output.c (redisplay_output_layout): recode for layouts
13669         as widgets.
13670         (compare_runes): remove layout references.
13671
13672         * redisplay-msw.c (mswindows_output_display_block): recode for
13673         layouts as widgets.
13674
13675         * glyphs-widget.c (image_instantiator_layout): remove
13676         layout_possible_dest_types.
13677         (layout_possible_dest_types): deleted.
13678
13679         * glyphs.h (image_instance_type): remove layout references.
13680         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13681         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13682         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13683
13684 2000-04-25  Andy Piper  <andy@xemacs.org>
13685
13686         * glyphs-widget.c (image_instantiator_buttons):
13687         (image_instantiator_edit_fields):
13688         (image_instantiator_combo_box):
13689         (image_instantiator_scrollbar):
13690         (image_instantiator_progress_guage):
13691         (image_instantiator_tree_view):
13692         (image_instantiator_tab_control):
13693         (image_instantiator_labels):
13694         (image_instantiator_layout): call default post_instantiate method.
13695         (widget_post_instantiate): new function. Simply lays out the
13696         widgets.
13697
13698         * glyphs.h (struct image_instantiator_methods): add
13699         post_instantiate method.
13700
13701         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13702         method calls.
13703
13704 2000-04-23  Andy Piper  <andy@xemacs.org>
13705
13706         * glyphs.h (struct image_instantiator_methods): add
13707         decode_domain_method.
13708         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13709         derived from the domain.
13710         (IMAGE_INSTANCE_FRAME): new accessor.
13711         (XIMAGE_INSTANCE_FRAME): ditto.
13712
13713         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13714         instead of _SUBWINDOW_FRAME.
13715         (finalize_image_instance): ditto.
13716         (Fimage_instance_foreground): ditto.
13717         (Fimage_instance_background): ditto.
13718         (image_instantiate): ditto.
13719         (update_subwindow_cachel): ditto.
13720         (update_subwindow): ditto.
13721         (unmap_subwindow): ditto.
13722         (map_subwindow): ditto
13723         (subwindow_instantiate): ditto.
13724         * glyphs-msw.c (mswindows_update_widget): ditto.
13725         (mswindows_progress_gauge_instantiate): ditto.
13726         (mswindows_tab_control_update): ditto.
13727         * glyphs-x.c (x_update_widget): ditto.
13728         (x_widget_instantiate): ditto.
13729         (x_tab_control_instantiate): ditto.
13730         (x_tab_control_update): ditto.
13731         * event-msw.c (mswindows_wnd_proc): ditto
13732
13733         * glyphs-widget.c (image_instantiator_layout): use
13734         subwindow_decode_domain.
13735         (image_instantiator_buttons): ditto.
13736         (image_instantiator_edit_fields): ditto.
13737         (image_instantiator_combo_box): ditto.
13738         (image_instantiator_scrollbar): ditto.
13739         (image_instantiator_progress_guage): ditto.
13740         (image_instantiator_tree_view): ditto.
13741         (image_instantiator_tab_control): ditto.
13742         (image_instantiator_labels): ditto.
13743         (image_instantiator_layout): ditto.
13744
13745         * glyphs.c: add instance error checking to many functions.
13746         (instantiate_image_instantiator): decode device from cache_domain.
13747         (image_instantiate): partially rewrite by using
13748         decode_image_instantiator_domain to determine what domain the
13749         instance needs to be cached in.
13750         (decode_image_instantiator_domain): new function. Determine what
13751         domain the image needs to be cached in.
13752         (check_window_subwindow_cache): new error checking function.
13753         (check_instance_cache_mapper): ditto.
13754         (check_image_instance_structure): ditto.
13755         (subwindow_decode_domain): new function. Encodes a window as a
13756         subwindow's cache domain.
13757         (image_instantiator_format_create): use it for text and
13758         subwindows.
13759
13760 2000-04-21  Andy Piper  <andy@xemacs.org>
13761
13762         * glyphs.c (image_instance_device): new function.
13763         (image_instance_frame): new function.
13764         (image_instance_window): new function.
13765         (image_instance_live_p): new function.
13766
13767         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13768         cache to nil.
13769
13770         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13771         (IMAGE_INSTANCE_DOMAIN): new accessor.
13772         (XIMAGE_INSTANCE_DOMAIN): ditto.
13773
13774         * glyphs-x.c (x_finalize_image_instance): device->domain.
13775
13776         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13777         (mswindows_finalize_image_instance): ditto.
13778
13779         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13780         (gif_instantiate): ditto.
13781         (png_instantiate): ditto.
13782         (tiff_instantiate): ditto.
13783
13784         * glyphs.c (instantiate_image_instantiator): use domain rather
13785         than device.
13786         (mark_image_instance): device -> domain.
13787         (print_image_instance): ditto.
13788         (finalize_image_instance): ditto.
13789         (image_instance_equal): ditto.
13790         (allocate_image_instance): ditto.
13791         (Fcolorize_image_instance): ditto.
13792         (query_string_geometry): ditto.
13793         (image_instantiate): ditto
13794         (query_string_font): ditto.
13795         (image_instantiate): ditto.
13796         (update_subwindow): ditto.
13797         (unmap_subwindow): ditto.
13798         (map_subwindow): ditto.
13799         (subwindow_instantiate): ditto.
13800
13801         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13802         (DOMAIN_FRAME): ditto.
13803         (DOMAIN_WINDOW): ditto.
13804         (DOMAIN_LIVE_P): ditto.
13805         (XDOMAIN_DEVICE): ditto.
13806         (XDOMAIN_FRAME): ditto.
13807         (XDOMAIN_WINDOW): ditto.
13808
13809         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13810         a valid specifier domain.
13811
13812 2000-04-19  Andy Piper  <andy@xemacs.org>
13813
13814         * glyphs-widget.c (syms_of_glyphs_widget): remove
13815         widget-callback-current-channel.
13816         (vars_of_glyphs_widget): ditto.
13817         * glyphs.h: ditto
13818
13819         * gui.c (get_gui_callback): revert to previous behaviour.
13820
13821 2000-04-18  Andy Piper  <andy@xemacs.org>
13822
13823         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13824         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13825         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13826
13827         * glyphs.c (image_instance_equal): add margin_width.
13828         (image_instance_hash): ditto.
13829
13830         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13831         (layout_query_geometry): ditto.
13832         (layout_layout): ditto.
13833         (syms_of_glyphs_widget): add margin-width.
13834         (image_instantiator_layout): allow margin-width.
13835
13836         * glyphs.c (update_widget_instances): make a normal function.
13837         (syms_of_glyphs): remove Qupdate_widget_instances.
13838         * glyphs.h: ditto.
13839
13840         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13841         so that we don't corrupt ideas about the last event or
13842         command. Remove widget-callback-current-channel fiddling.
13843         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13844
13845 2000-05-01  Martin Buchholz <martin@xemacs.org>
13846
13847         * XEmacs 21.2.33 is released.
13848
13849 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13850
13851         * make-src-depend: Allow dots in header file name.
13852
13853 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13854
13855         * mule-charset.h (struct charset_lookup): Add
13856         next_allocated_1_byte_leading_byte and
13857         next_allocated_2_byte_leading_byte.
13858         * mule-charset.c: Move above two variables so that those values
13859         will be dumped.
13860
13861 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13862
13863         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13864         when string length is zero.
13865         (find_charsets_in_emchar_string): Ditto.
13866
13867 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13868
13869         * lisp.h: extern Qdialog and Qmenubar.
13870
13871         * gui-x.c: added events.h.
13872                 also fixed typo which made the file uncompilable.
13873
13874         * general.c: Added Qmenubar and Qdialog
13875
13876 2000-04-28  Ben Wing  <ben@xemacs.org>
13877
13878         * frame-msw.c (mswindows_init_frame_1):
13879         * frame-msw.c (mswindows_mark_frame):
13880         * event-msw.c (mswindows_enqueue_dispatch_event):
13881         * console-msw.h:
13882         * console-msw.h (struct mswindows_frame):
13883         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13884         there are now three hash tables for callbacks.
13885         mswindows_enqueue_dispatch_event is no longer static.
13886
13887         * dialog-x.c (maybe_run_dbox_text_callback):
13888         * dialog-x.c (dbox_descriptor_to_widget_value):
13889         switch to new cons3 form for callbacks.
13890
13891         * glyphs-msw.c (mswindows_register_gui_item):
13892         * glyphs-msw.c (mswindows_widget_instantiate):
13893         * glyphs-msw.c (add_tree_item):
13894         * glyphs-msw.c (add_tab_item):
13895         new image instance parameter, so it can be passed to callback-ex.
13896         respect :callback-ex as well as :callback.
13897
13898         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13899         add :callback-ex.
13900
13901         * glyphs.c (print_image_instance):
13902         prettify, e.g. now prints widget type.
13903
13904         * gui-x.h:
13905         certain funs have new image instance parameter.
13906
13907         * gui.c:
13908         * gui.c (get_gui_callback):
13909         * gui.c (gui_item_add_keyval_pair):
13910         * gui.c (gui_item_init):
13911         * gui.c (gui_add_item_keywords_to_plist):
13912         * gui.c (mark_gui_item):
13913         * gui.c (gui_item_hash):
13914         * gui.c (gui_item_equal):
13915         * gui.c (copy_gui_item):
13916         * gui.c (syms_of_gui):
13917         recognize callback-ex in a number of places.
13918         also, fix the annoying "can't get out of yes-no dialog" bug.
13919
13920         * gui.h:
13921         * gui.h (struct Lisp_Gui_Item):
13922         recognize callback-ex in a number of places.
13923
13924         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13925         new parameter in button_item_to_widget_value.
13926
13927         * glyphs-x.c (x_update_widget):
13928         * glyphs-x.c (x_button_instantiate):
13929         * glyphs-x.c (x_button_update):
13930         * glyphs-x.c (x_progress_gauge_instantiate):
13931         * glyphs-x.c (x_edit_field_instantiate):
13932         * glyphs-x.c (x_combo_box_instantiate):
13933         * glyphs-x.c (x_tab_control_instantiate):
13934         * glyphs-x.c (x_label_instantiate):
13935         new image instance parameter in various places.
13936
13937         * event-Xt.c:
13938         * event-Xt.c (enqueue_Xt_dispatch_event):
13939         this fun gets exported.
13940
13941         * gui-msw.c:
13942         * gui-msw.c (mswindows_handle_gui_wm_command):
13943         handle both :callback and :callback-ex, and generate our own
13944         event because it's one of the callback-ex arguments.
13945
13946         * gui-x.c:
13947         * gui-x.c (popup_selection_callback):
13948         handle both :callback and :callback-ex, and generate our own
13949         event because it's one of the callback-ex arguments.
13950         * gui-x.c (button_item_to_widget_value):
13951         * gui-x.c (gui_items_to_widget_values_1):
13952         * gui-x.c (gui_item_children_to_widget_values):
13953         * gui-x.c (gui_items_to_widget_values):
13954         new image instance parameter in various places.
13955
13956         * fns.c (Freplace_list):
13957         fix small typo in doc string.
13958
13959         * lisp.h:
13960         declare enqueue_Xt_dispatch_event.
13961
13962 2000-04-28  Ben Wing  <ben@xemacs.org>
13963
13964         * buffer.c:
13965         * buffer.c (Frecord_buffer):
13966         * buffer.c (syms_of_buffer):
13967         delete record-buffer-hook.
13968
13969         * fns.c:
13970         * fns.c (Freplace_list):
13971         * fns.c (syms_of_fns):
13972         new primitive replace-list.
13973
13974         * frameslots.h:
13975         slot for old buffer-alist.
13976
13977         * lisp.h:
13978         exfun replace-list.
13979
13980         * redisplay.c:
13981         * redisplay.c (redisplay_frame):
13982         * redisplay.c (syms_of_redisplay):
13983         * redisplay.c (vars_of_redisplay):
13984         new hook buffer-list-changed-hook.
13985         call it.
13986
13987 2000-04-27  Ben Wing  <ben@xemacs.org>
13988
13989         * extents.h: extern in_modeline_generation.
13990
13991         * redisplay.c (generate_formatted_string_db): set
13992         in_modeline_generation.
13993
13994         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13995         flags if in modeline generation.  otherwise frame-modified-tick
13996         is ticked far too often.
13997         Declare in_modeline_generation.
13998
13999 2000-04-26  Ben Wing  <ben@xemacs.org>
14000
14001         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14002         option.
14003         (vars_of_emacs): add quick-build as an error-checking option.
14004         A bit kludgy, but there doesn't seem much point in creating
14005         a real var for this.
14006
14007         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14008
14009 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14010
14011         * redisplay.h (struct display_line): Add a new variable,
14012         line_continuation.
14013
14014         * redisplay.c (create_text_block): Set dl->line_continuation if
14015         the line continues.
14016         (create_string_text_block): Ditto.
14017         (regenerate_window_incrementally): Use line_continuation instead
14018         of searching continuation glyph.
14019         (add_margin_runes): Call add_glyph_rune.
14020         (add_glyph_rune): Handle margin glyph.
14021
14022 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14023
14024         * filelock.c (fill_in_lock_file_name):
14025         ANSIfy.
14026         Check for IS_ANY_SEP instead of '/'.
14027         (lock_file_1):
14028         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14029         Never check errno without first seeing that system call failed.
14030         (unlock_file): Add GCPRO.
14031         (Flock_buffer): Fix docstring.
14032         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14033
14034 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14035
14036         * sysdep.c (get_pty_max_bytes):
14037         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14038         strings longer than 252 bytes.
14039
14040         * md5.c: Unconditionally include ANSI header <limits.h>
14041
14042         * glyphs-x.c (convert_EImage_to_XImage):
14043         * lisp-union.h (union Lisp_Object):
14044         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14045
14046 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14047
14048         * filelock.c (current_lock_owner): Remove unused variable o, p.
14049
14050 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14051
14052         * callint.c: Remove multiply defined symbol Qlet
14053         (syms_of_callint): ditto.
14054
14055 2000-04-14  Andy Piper  <andy@xemacs.org>
14056
14057         * general.c (syms_of_general): add last-command, this-command, let
14058         and funcall.
14059
14060         * lisp.h: declare various symbols.
14061
14062         * glyphs.h: declare Qwidget_callback_current_channel;
14063
14064         * glyphs-widget.c (syms_of_glyphs_widget): add
14065         Qgui_callback_current_channel.
14066         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14067
14068         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14069         widget-callback-current-channel when invoking the interactive
14070         arg. Also bind last-command and next-command when invoking the
14071         widget updates.
14072         * gui-x.c (popup_selection_callback): ditto.
14073
14074         * gui.c (get_gui_callback): massage args so that we are always
14075         calling eval. This allows us to add our own variable bindings
14076         outside.
14077
14078         * glyphs-x.c (x_button_instantiate): use
14079         gui_items_to_widget_values since this is GC safe.
14080         (x_progress_gauge_instantiate): ditto.
14081         (x_edit_field_instantiate): ditto.
14082         (x_label_instantiate): ditto.
14083
14084         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14085         (emacs_Xt_event_widget_focus_out): new function
14086         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14087         focus.
14088         (emacs_Xt_event_add_widget_actions): new function. add focus
14089         functions as actions.
14090         (init_event_Xt_late): use it.
14091
14092 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14093
14094         * event-stream.c (Fdispatch_event): Doc fix.
14095
14096 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14097
14098         * postgresql.c: Remove all references to PQsetenv*.
14099
14100         * postgresql.h: Remove references to PGsetenvHandler object.
14101         * lrecord.h (lrecord_type): Ditto.
14102
14103 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14104
14105         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14106         real_heigh and real_width members, and accessor macros for these.
14107
14108         * glyphs-msw.c (init_image_instance_geometry): New function.
14109         (init_image_instance_from_dibitmap): Use it.
14110         (mswindows_resource_instantiate): Use it.
14111         (init_image_instance_from_xbm_inline): Use it.
14112         (mswindows_initialize_image_instance_mask): Use real bitmap
14113         geometry.
14114         (mswindows_create_resized_bitmap): Ditto.
14115         (mswindows_create_resized_mask): Ditto.
14116
14117         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14118         and bitmap to their surface size.
14119
14120 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14121
14122         * process-unix.c (unix_send_process): Guard against process MIA
14123         after Faccept_process_output.
14124
14125 2000-04-11  Ben Wing  <ben@xemacs.org>
14126
14127         * eval.c (unbind_to_hairy): fix brokenness introduced by
14128         nanosecond speed improvements.
14129
14130 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14131
14132         * sunplay.c (init_device): To play sounds correctly, the device
14133         apparently needs to be initialized at least once by XEmacs.  Make
14134         it so.
14135
14136 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14137
14138         * redisplay.c (add_margin_runes): Add text image glyph
14139           handling.
14140
14141 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14142
14143         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14144         gcc is newer than 2.5.
14145
14146 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14147
14148         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14149
14150         * fns.c (size_bit_vector):
14151         * alloc.c (size_vector):
14152         (make_vector_internal):
14153         (make_bit_vector_internal):
14154         (sweep_bit_vectors_1):
14155         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14156
14157 2000-04-06  Andy Piper  <andy@xemacs.org>
14158
14159         * gmalloc.c (malloc): undo previous change.
14160         (malloc): ditto.
14161         (free): ditto.
14162         (realloc): ditto.
14163
14164 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14165
14166         * line-number.c (buffer_line_number): Revert to former version.
14167
14168 2000-04-06  Andy Piper  <andy@xemacs.org>
14169
14170         * gmalloc.c (malloc): add error checking.
14171         (malloc): ditto.
14172         (free): ditto.
14173         (realloc): ditto.
14174
14175         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14176         button_item_to_widget_value arg.
14177
14178         * glyphs-x.c (x_button_instantiate): add extra
14179         button_item_to_widget_value arg.
14180         (x_progress_gauge_instantiate): ditto.
14181         (x_edit_field_instantiate): ditto.
14182         (x_label_instantiate): ditto.
14183
14184         * gui-x.c (gui_items_to_widget_values_1): add extra
14185         button_item_to_widget_value arg.
14186         (button_item_to_widget_value): add extra menu_item_p arg.
14187
14188         * gui-x.h: change signature of button_item_to_widget_value.
14189
14190         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14191         button_item_to_widget_value arg.
14192
14193 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14194
14195         * buffer.h (struct buffer): auto_save_modified should be long.
14196
14197 2000-04-05  Andy Piper  <andy@xemacs.org>
14198
14199         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14200         type.
14201         (button_query_geometry): give a little more room so that athena
14202         buttons fit.
14203
14204 2000-04-05  Andy Piper  <andy@xemacs.org>
14205
14206         * faces.c (complex_vars_of_faces): The widget face should inherit
14207         the font of the gui-element face.
14208
14209 2000-04-04  Andy Piper  <andy@xemacs.org>
14210
14211         * glyphs-x.c (x_button_update): new function. unconditionally
14212         update a button's state when the instance is dirty.
14213         (image_instantiator_format_create_glyphs_x): add x_button_update.
14214         (x_widget_instantiate): remove old resize cruft.
14215
14216 2000-04-02  Andy Piper  <andy@xemacs.org>
14217
14218         * frame.c (change_frame_size_1): The introduction of gutters means
14219         that we need to allow 0 as a potential frame dimension.
14220
14221 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14222
14223         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14224         image glyph if allow_cursor.
14225         (add_hscroll_rune): Don't allow cursor to border glyph.
14226         (create_text_block): Ditto.
14227
14228         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14229         text not in buffer.
14230         (redisplay_output_layout): Call ensure_face_cachel_complete for
14231         text image glyph.
14232
14233
14234 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14235
14236         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14237
14238         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14239         not in buffer
14240
14241         * redisplay-tty.c (tty_output_display_block): Delete the routine
14242         for text image glyph
14243         * redisplay-x.c (x_output_display_block): ditto
14244         * redisplay-msw.c (mswindows_output_display_block): ditto
14245
14246 2000-02-02  Mike Alexander  <mta@arbortext.com>
14247
14248         Note: Some of these were committed by accident as part of other
14249         patches.
14250
14251         * regex.c (regex_compile): Avoid compiler warnings.
14252
14253         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14254
14255         * nt.h: Declare term_ntproc correctly.
14256
14257         * nt.c: Remove incorrect declaration of get_home_directory which
14258         is declared correctly in lisp.h.
14259
14260         * keymap.c (get_keyelt): Avoid compiler warnings.
14261         (raw_lookup_key_mapper): Avoid compiler warnings.
14262
14263         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14264
14265         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14266
14267         * filemode.c (mode_string): Avoid compiler warnings.
14268
14269         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14270         avoid warning.
14271
14272         * events-mod.h: Undef some things that winuser.h defines differently.
14273
14274         * data.c (Faset): Avoid compiler warnings.
14275
14276         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14277
14278 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14279
14280         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14281         Fall through to simple beep on error.
14282         Replace "extern" by real header file.
14283
14284         * linuxplay.c: Use nativesound.h
14285         (play_sound_data): Return error code. Be less verbose on error.
14286
14287         * sunplay.c: Use nativesound.h
14288         (play_sound_data): Return error code. Be less verbose on error.
14289
14290         * ntplay.c: Use nativesound.h
14291         (play_sound_data): Return fake error code
14292
14293         * sgiplay.c: Use nativesound.h
14294         (play_sound_data): Return error code
14295
14296         * hpplay.c: Use nativesound.h, partially implement
14297         new error code. Break compilation until finished.
14298         (play_sound_data): error code.
14299
14300         * nativesound.h (play_sound_file):
14301           (play_sound_data): Prototype in new header.
14302
14303 2000-03-31  Andy Piper  <andy@xemacs.org>
14304
14305         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14306         for toggle and radio buttons.
14307         (image_instantiator_buttons): use it.
14308
14309 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14310
14311         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14312         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14313         found. Scrollbar event probably belonged to some old config.
14314
14315 2000-03-31  Andy Piper  <andy@xemacs.org>
14316
14317         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14318         than 1.
14319         (initialize_widget_image_instance): default layout to
14320         LAYOUT_HORIZONTAL rather than 0.
14321         (widget_instantiate): reverse the item list at the end rather than
14322         every iteration.
14323         (layout_layout): re-code for the border text at the front of the
14324         item list rather than at the end.
14325         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14326         provided by the user.
14327         (widget_query_geometry): comment.
14328
14329 2000-03-30  Andy Piper  <andy@xemacs.org>
14330
14331         * glyphs-widget.c (image_instantiator_layout): allow standard
14332         widget keywords in layouts.
14333
14334         * gutter.c (output_gutter): cope with nil gutter contents.
14335
14336         * frame.c (Fset_frame_properties): add gutter docs.
14337
14338 2000-03-29  Andy Piper  <andy@xemacs.org>
14339
14340         * toolbar-msw.c (TBSTYLE_FLAT): add.
14341         (mswindows_output_toolbar): minor fiddling.
14342
14343 2000-03-29  Andy Piper  <andy@xemacs.org>
14344
14345         * gutter.c (output_gutter): force gutter size recalculation if
14346         what we are trying to display won't fit.
14347         (update_gutter_geometry): new function. A per-gutter version of
14348         update_frame_gutter_geometry.
14349         (update_frame_gutter_geometry): use it.
14350         (redraw_exposed_gutter): add extra debugging output.
14351
14352 2000-03-28  Mike Alexander  <mta@arbortext.com>
14353
14354         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14355         (pdump_file_unmap): Implement it on Windows
14356         (pdump_file_get): Save alocated handles for pdump_file_unmap
14357
14358 2000-03-28  Andy Piper  <andy@xemacs.org>
14359
14360         * gui.c (get_gui_callback): treat Quit specially.
14361
14362 2000-03-27  Andy Piper  <andy@xemacs.org>
14363
14364         * glyphs.c (image_instantiate): be careful to check in the same
14365         way we assigned.
14366
14367 2000-03-27  Didier Verna  <didier@xemacs.org>
14368
14369         * config.h.in: define the proper SMART_INCLUDE macro.
14370         handle renaming of `foo_h_path' to `foo_h_file'.
14371
14372         * database.c: ditto.
14373
14374         * emacs.c: ditto.
14375
14376         * linuxplay.c: ditto.
14377
14378         * terminfo.c: ditto.
14379
14380         * tooltalk.h: ditto.
14381
14382 2000-03-27  Andy Piper  <andy@xemacs.org>
14383
14384         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14385         gets updated whenever the face might have changed.
14386
14387 2000-03-26  Mike Alexander  <mta@arbortext.com>
14388
14389         * dumper.c (pdump_resource_free): Fix the comment.
14390
14391 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14392
14393         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14394
14395 2000-03-22  Mike Alexander  <mta@arbortext.com>
14396
14397         * dumper.c: Include Windows headers on Windows
14398         (pdump_resource_free): Add a body to the function
14399         (pdump_load): exe_name -> exe_path and add some comments.
14400
14401 2000-03-25  Mike Alexander  <mta@arbortext.com>
14402
14403         * gui.c (copy_gui_item_tree): Return a value in all cases
14404
14405 2000-03-21  Didier Verna  <didier@xemacs.org>
14406
14407         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14408         lwlib/config.h.in.
14409         (SMART_INCLUDE): new macro.
14410         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14411         the proper location.
14412
14413         * postgresql.c: use it.
14414
14415         * inline.c: ditto.
14416
14417 2000-03-24  Andy Piper  <andy@xemacs.org>
14418
14419         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14420         do this.
14421
14422 2000-03-24  Andy Piper  <andy@xemacs.org>
14423
14424         * redisplay-output.c (compare_runes): use image_instance_changed
14425         to detect changes. Do not depend on glyphs_changed, only depend on
14426         dirtiness.
14427          (redisplay_output_layout): add debug messages.
14428         (compare_runes): ditto.
14429
14430         * glyphs.h: declare new functions.
14431         (struct Lisp_Image_Instance): remove percent and associated
14432         accessors.
14433
14434         * gui.h: declare new copying functions.
14435
14436         * gui.c (copy_gui_item_tree): new function.
14437         (copy_gui_item): new function.
14438         (gui_item_id_hash): revert to standard hash.
14439         (gui_item_hash): ditto.
14440         (gui_item_hash_internal): deleted.
14441         (mark_gui_item): mark value.
14442         (gui_item_add_keyval_pair): add value.
14443         (gui_item_init): ditto.
14444         (gui_add_item_keywords_to_plist): ditto.
14445         (gui_item_equal): ditto.
14446         (syms_of_gui): add Q_value.
14447
14448         * glyphs-x.c (x_progress_gauge_update): use pending items and
14449         value for setting the state.
14450         (x_update_widget): don't set items from pending here.
14451
14452         * glyphs-widget.c (update_widget): update items here.
14453         (progress_gauge_set_property): use items for storing value. Put
14454         new value in pending items.
14455
14456         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14457         items for new value. Convert percent -> value.
14458         (mswindows_tab_control_update): don't update items here.
14459
14460         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14461         (update_subwindow): ditto.
14462         (image_instance_changed): new function. Compare hash values and
14463         past and present widget items.
14464         (image_instantiate): We more careful about where we instantiate
14465         things.
14466         (image_instantiate): add error checking.
14467
14468         * gutter.c (syms_of_gutter): use -hook.
14469
14470 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14471
14472         * console-tty.c (Fset_console_tty_input_coding_system): Use
14473         Qkeyboard.
14474         (Fset_console_tty_output_coding_system): Use Qterminal.
14475         (tty_init_console): Use Qkeyboard and Qterminal.
14476
14477 2000-03-21  Ben Wing  <ben@xemacs.org>
14478
14479         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14480         From Mike Alexander <mta@arbortext.com>.
14481
14482 2000-03-21  Ben Wing  <ben@xemacs.org>
14483
14484         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14485         process brokenness.  Proper implementation to come.
14486         * callproc.c:
14487         Rename call-process-internal to old-call-process-internal.
14488         New impl. in process.el.
14489
14490 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14491
14492         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14493
14494 2000-03-20  Andy Piper  <andy@xemacs.org>
14495
14496         * glyphs.c (full_list_hash): make hashes of the same elements in
14497         different orders return different values.
14498
14499 2000-03-20  Martin Buchholz <martin@xemacs.org>
14500
14501         * XEmacs 21.2.32 is released.
14502
14503 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14504
14505         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14506         (DFC_MALLOC_USE_CONVERTED_DATA):
14507         Add aliasing-safe casts to allow use with char* or unsigned char*
14508         lvalues.
14509
14510         * eldap.c (Fldap_open):
14511         (Fldap_search_basic):
14512         (Fldap_add):
14513         (Fldap_modify):
14514         Make C++-compilable.
14515         Make sure GCPRO'ed variables are initialized.
14516         Use temp variables to avoid repeated calls to Flength.
14517
14518 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14519
14520         * sysfile.h:
14521         Make sure PATH_MAX is always defined.
14522         Include limits.h for PATH_MAX.
14523         Deprecate use of MAXPATHLEN.
14524
14525 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14526
14527         * emacs.c: Add reinit_vars_of_fileio.
14528         * symsinit.h: Add reinit_vars_of_fileio.
14529         * fileio.c (reinit_vars_of_fileio): New.
14530         * fileio.c (Fmake_temp_name):
14531         Initialize temp_name random number from microseconds to make
14532         collisions even less likely.  Initialize always at process startup
14533         time.  (make-temp-name) used to return the same file name twice in
14534         a row when PDUMP.
14535         Random stylistic fiddling.
14536         Comment fixes.
14537
14538 2000-03-20  Andy Piper  <andy@xemacs.org>
14539
14540         * glyphs.c (image_instantiate): allow text glyphs to be
14541         instantiated in the minibuffer window.
14542
14543 2000-03-19  Andy Piper  <andy@xemacs.org>
14544
14545         * glyphs.c (image_instance_hash): be careful about which items we
14546         hash on.
14547
14548         * glyphs-widget.c (tab_control_set_property): record into pending
14549         items rather than the actual items.
14550
14551         * glyphs-x.c (x_update_widget): use pending items to update with.
14552
14553         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14554         to update with.
14555
14556         * glyphs.c (mark_image_instance): mark pending items.
14557
14558         * window.c (Fset_window_configuration): record the buffer.
14559         (Fselect_window): totally revert previous change which breaks many
14560         things.
14561
14562 2000-03-18  Andy Piper  <andy@xemacs.org>
14563
14564         * glyphs-msw.c (mswindows_tab_control_update): force selected
14565         item.
14566
14567         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14568         window domain cache, otherwise we get inconsistencies at
14569         startup. There is something fishy at startup which can lead to the
14570         minibuffer being the selected window when the gutter content is
14571         instantiated.
14572
14573         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14574         gcpros.
14575         (parse_gui_item_tree_children): ditto.
14576         (parse_gui_item_tree_item): ditto.
14577
14578         * glyphs.c (Fupdate_widget_instances): return something.
14579
14580 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14581
14582         * window.c (Fselect_window): Undo 2000-03-17 change.
14583
14584 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14585
14586         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14587         against v7.0 libraries.  Insta-coredump city until the postgres
14588         folks fix it.
14589
14590 2000-03-17  Andy Piper  <andy@xemacs.org>
14591
14592         * faces.c (complex_vars_of_faces): don't give the widget face an
14593         inherited background pixmap.
14594
14595         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14596         selected item.
14597
14598         * event-stream.c (Fdispatch_non_command_events): return something.
14599
14600         * gutter.c (output_gutter): use widget face.
14601         (clear_gutter): ditto.
14602
14603         * NEWS: adjust again.
14604
14605         * window.c (Fselect_window): make sure this runs to completion to
14606         avoid oddities with Fset_window_configuration.
14607         (Fcurrent_window_configuration): in general do not save the
14608         minibuffer as the selected window.
14609
14610         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14611
14612 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14613
14614         * emacs.c (Frunning_temacs_p): Revert previous patch.
14615         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14616
14617 2000-03-16  Andy Piper  <andy@xemacs.org>
14618
14619         * glyphs-x.c (x_tab_control_update): if no widget values then
14620         return.
14621
14622         * NEWS: update for new features.
14623
14624         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14625         synthetic event to the native system.
14626         (reinit_vars_of_event_Xt): set force_event_pending to
14627         emacs_Xt_force_event_pending.
14628
14629         * events.h (struct event_stream): add force_event_pending.
14630
14631         * specifier.c (recompute_one_cached_specifier_in_window): add
14632         comment.
14633
14634         * redisplay.c (redisplay_frame): don't call
14635         update_frame_subwindows. Reset subwindow cachels when
14636         subwindows_changed, removing this was an optimization too far.
14637
14638         * redisplay-output.c (compare_runes): reorganize so that we catch
14639         glyph changes when we want them. Set optimize_output when this
14640         would help layouts.
14641         (redisplay_output_layout): remove frame_really_changed, use
14642         optimize_output instead.
14643
14644         * redisplay-msw.c (mswindows_output_display_block): reset
14645         optimize_output after outputting a glyph.
14646         * redisplay-x.c (x_output_display_block): ditto.
14647         * redisplay-tty.c (tty_output_display_block): ditto.
14648
14649         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14650         functions.
14651         (gutter_specs_changed): do specific gutter positions.
14652         (top_gutter_specs_changed): new function. Only update the
14653         specified gutter specs.
14654         (bottom_gutter_specs_changed): ditto.
14655         (left_gutter_specs_changed): ditto.
14656         (right_gutter_specs_changed): ditto.
14657
14658         * gui.c (gui_item_hash_internal): new function, does a real hash.
14659         (gui_item_id_hash): use it.
14660         (gui_item_hash): hash the eval'ed gui_item.
14661
14662         * gui-x.c (popup_selection_callback): send an eval event to call
14663         Fupdate_widget_instances.
14664
14665         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14666         to call Fupdate_widget_instances.
14667
14668         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14669         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14670
14671         * glyphs.c: (update_frame_subwindows): deleted.
14672         (Fupdate_widget_instances): new function for updating the dirty
14673         state of widgets that might have changed.
14674         (syms_of_glyphs): add Qupdate_widget_instances.
14675         (full_list_hash): hash a list completely.
14676         (image_instance_hash): use it for items and properties.
14677
14678         * frame-msw.c (mswindows_size_frame_internal): remove unused
14679         variable.
14680
14681         * faces.h (struct face_cachel): fix comment.
14682
14683         * event-stream.c (Fdispatch_non_command_events): new
14684         function. Process non-command events, forcing an event cycle
14685         beforehand.
14686         (syms_of_event_stream): declare.
14687         (event_stream_force_event_pending): new function. Force an event
14688         on the native event queue so that an event cycle will occur next
14689         time we check.
14690
14691         * event-msw.c:
14692         (struct ntpipe_shove_stream):
14693         (mswindows_enqueue_dispatch_event):
14694         (mswindows_dequeue_dispatch_event):
14695         (mswindows_cancel_dispatch_event):
14696         (mswindows_pump_outstanding_events):
14697         (mswindows_drain_windows_queue):
14698         (mswindows_handle_paint):
14699         (mswindows_wnd_proc):
14700         (mswindows_key_to_emacs_keysym):
14701         (get_process_input_waitable):
14702         (emacs_mswindows_delete_stream_pair): re-indent file.
14703         (mswindows_need_event): do not process further fds if the windows
14704         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14705         fixes the 100% cpu problem.
14706         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14707
14708 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14709
14710         * alloc.h: New.
14711         * dumper.h: New.
14712         * dumper.c: New.
14713
14714         * emacs.c: Moved dump file searching to dumper.c.
14715         (Frunning_temacs_p): Fixed.
14716
14717         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14718         last_lrecord_type_index_assigned.
14719
14720 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14721
14722         * symsinit.h: Added reinit parameter to init_console_stream
14723         declaration.
14724
14725         * lisp.h: Added file parameter to pdump_load declaration.
14726
14727         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14728         support.  Added dump file searching.
14729
14730         * config.h.in: Added EMACS_PROGNAME.
14731
14732         * console-stream.c (init_console_stream): Fix reinitialisation
14733         when running from temacs.
14734
14735         * alloc.c (pdump): Add id support.
14736         (pdump_load): Add file parameter and signature/id support.
14737
14738         * Makefile.in.in: Add full pdump support.
14739
14740 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14741
14742         * postgresql.c: Update documentation to reflect latest code
14743         status.
14744         (print_result): Show tuple counts in printed representation when
14745         appropriate.
14746         (Fpq_put_nbytes): MULE-ize.
14747         (Fpq_get_line_async): Ditto.
14748
14749 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14750
14751         * postgresql.c (Fpq_lo_import): Fix return value.
14752         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14753
14754 2000-03-13  Ben Wing  <ben@xemacs.org>
14755
14756         * alloc.c (pdump_load):
14757         Fix compile warning under mswin.
14758
14759 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14760
14761         * postgresql.c: Mule-ization, bug fixes.
14762         Use PG_CODING to encapsulate coding system name changes.
14763         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14764         (pg-coding-system): Create.
14765
14766         (Fpq_conn_defaults): Mule-ize.
14767         (Fpq_connectdb): Mule-ize & bug fix.
14768         (Fpq_connect_start): Mule-ize.
14769         (Fpq_set_client_encoding): Mule-ize.
14770         (Fpq_finish): Document `DEAD' connection status.
14771         (Fpq_clear): Ditto.
14772         (Fpq_pgconn): Mule-ize.
14773         (Fpq_exec): Mule-ize & bug fix.
14774         (Fpq_send_query): Ditto.
14775         (Fpq_get_result): Ditto.
14776         (Fpq_res_status): Mule-ize.
14777         (Fpq_result_error_message): Mule-ize.
14778         (Fpq_ntuples): fix comments.
14779         (Fpq_fname): Mule-ize.
14780         (Fpq_fnumber): Mule-ize.
14781         (Fpq_ftype): fix comments.
14782         (Fpq_get_value): Mule-ize.
14783         (Fpq_cmd_status): Ditto.
14784         (Fpq_cmd_tuples): Ditto.
14785         (Fpq_oid_value): Ditto.
14786         (Fpq_notifies): Ditto.
14787         (Fpq_lo_import): Ditto.
14788         (Fpq_lo_export): Ditto.
14789         (Fpq_get_line): Ditto.
14790         (Fpq_put_line): Mule-ize and bug fix.
14791         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14792
14793 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14794
14795         * postgresql.c (vars_of_postgresql): Mule-ize.
14796         (Fpq_conn_defaults): Ditto.
14797
14798 2000-03-12  Ben Wing  <ben@xemacs.org>
14799
14800         * alloc.c (Fmake_byte_code):
14801         * alloc.c (debug_string_purity_print):
14802         * alloc.c (pdump_backtrace):
14803         * alloc.c (pdump_get_indirect_count):
14804         * alloc.c (pdump_register_sub):
14805         * alloc.c (pdump_register_object):
14806         * alloc.c (pdump_register_struct):
14807         * alloc.c (pdump_dump_data):
14808         * alloc.c (pdump_reloc_one):
14809         Minor cleanups.
14810
14811         * console-msw.c:
14812         * console-msw.c (GetConsoleHwnd):
14813         * console-msw.c (msw_hide_console):
14814         * console-msw.c (msw_show_console):
14815         * console-msw.c (msw_ensure_console_buffered):
14816         * console-msw.c (msw_output_console_string):
14817         * console-msw.c (console_type_create_mswindows):
14818
14819         a) Added functions to manipulate the console window for use with
14820         shell support.
14821
14822         b) Added support for writing text to the console, which is now
14823         used under Windows when xemacs is not being run non-interactively,
14824         to write text that would otherwise be destined for stdout because
14825         under these circumstances, text written to stdout tends to
14826         disappear and not be seen.
14827
14828         * console-msw.h:
14829         * event-Xt.c:
14830         * event-Xt.c (x_event_to_emacs_event):
14831         * event-Xt.c (describe_event_window):
14832         * events-mod.h (XEMACS_MOD_CONTROL):
14833         * events.c:
14834         * events.c (Fmake_event):
14835         * events.c (character_to_event):
14836         * events.c (event_to_character):
14837         * events.c (format_event_object):
14838         * events.c (Fevent_modifiers):
14839         * events.h:
14840         * events.h (struct key_data):
14841         * events.h (struct button_data):
14842         * events.h (struct misc_user_data):
14843         * frame-x.c (Fcde_start_drag_internal):
14844         * frame-x.c (Foffix_start_drag_internal):
14845         * gpmevent.c (Freceive_gpm_event):
14846         * keymap.c:
14847         * keymap.c (bucky_sym_to_bucky_bit):
14848         * keymap.c (control_meta_superify):
14849         * keymap.c (make_key_description):
14850         * keymap.c (keymap_lookup_directly):
14851         * keymap.c (create_bucky_submap):
14852         * keymap.c (keymap_store):
14853         * keymap.c (define_key_check_and_coerce_keysym):
14854         * keymap.c (define_key_parser):
14855         * keymap.c (define_key_alternate_name):
14856         * keymap.c (Fdefine_key):
14857         * keymap.c (raw_lookup_key_mapper):
14858         * keymap.c (struct map_keymap_unsorted_closure):
14859         * keymap.c (map_keymap_unsorted_mapper):
14860         * keymap.c (map_keymap_sort_predicate):
14861         * keymap.c (map_keymap_sorted):
14862         * keymap.c (accessible_keymaps_mapper_1):
14863         * keymap.c (where_is_recursive_mapper):
14864         * keymap.c (describe_map_mapper):
14865         * keymap.c (describe_map_sort_predicate):
14866         * keymap.c (describe_map):
14867         * keymap.c (complex_vars_of_keymap):
14868         And a number of other files, the key modifier preprocessor
14869         constants that xemacs uses have names that conflict with constants
14870         defined under MS Windows for other purposes, so they were renamed
14871         to begin with the prefix XEMACS_. The variables that hold such
14872         modifiers were changed to consistently be of type int to fix
14873         various compile warnings.
14874
14875         * console.c (complex_vars_of_console):
14876         * device.c:
14877         * device-msw.c:
14878         * device-msw.c (mswindows_finish_init_device):
14879         * device-msw.c (msw_get_workspace_coords):
14880         * device-msw.c (mswindows_device_system_metrics):
14881         and various other files, added support for a new
14882         device property called offset-workspace which returns the position
14883         of the upper left corner of the workspace area and goes along with
14884         the existing size-workspace property.
14885
14886         * dialog-msw.c:
14887         * dialog-msw.c (push_bufbyte_string_as_unicode):
14888         * dialog-msw.c (mswindows_popup_dialog_box):
14889         Added support for XEmacs-style accelerator specifications in
14890         button text.  Note: I didn't add support for this under X Windows,
14891         and somebody needs to do this.
14892
14893         * dialog.c:
14894         * dialog.c (Fpopup_dialog_box):
14895         Documented the support for accelerators that was just mentioned.
14896
14897         editfns.c (get_home_directory): Changed behavior under Windows
14898         when HOME not defined; former behavior was irretrievably broken.
14899
14900         * emacs.c:
14901         * emacs.c (main_1):
14902         * emacs.c (main):
14903         * minibuf.c (clear_echo_area_internal):
14904         * minibuf.c (echo_area_append):
14905         * print.c:
14906         * print.c (std_handle_out_external):
14907         * print.c (std_handle_out_va):
14908         * print.c (fatal):
14909         * print.c (write_string_to_stdio_stream):
14910         * print.c (output_string):
14911         * print.c (debug_print):
14912         * print.c (debug_backtrace):
14913         * print.c (debug_short_backtrace):
14914         Cleaned up the code that prints text to stdout so that this can be
14915         changed to output into a console window instead under MS Windows,
14916         as described above.
14917
14918         * eval.c:
14919         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14920         * eval.c (internal_catch):
14921         * eval.c (unwind_to_catch):
14922         * eval.c (throw_or_bomb_out):
14923         * eval.c (condition_case_1):
14924         * eval.c (signal_1):
14925         * eval.c (check_error_state_sanity):
14926         * eval.c (call_with_suspended_errors_1):
14927         * eval.c (call_with_suspended_errors):
14928         * eval.c (reinit_vars_of_eval):
14929         Added code to catch throw loops and check for a pesky bug that may
14930         be gone now.
14931
14932         * event-msw.c:
14933         * event-msw.c (key_needs_default_processing_p):
14934         * event-msw.c (mswindows_wnd_proc):
14935         * event-msw.c (mswindows_modifier_state):
14936         * event-msw.c (emacs_mswindows_quit_p):
14937         * event-msw.c (vars_of_event_mswindows):
14938         a) Added support for using the alt key to select menu items as is
14939         standard under MS Windows.  This is controlled using the variable
14940         menu-accelerator-enabled, just like under X Windows.  There is an
14941         option on the options menu to turn this support on.  I really
14942         think that it should be on by default under Windows, but I'm not
14943         going to make this change yet.
14944
14945         b)  Added support for dynamic display size changes under Windows.
14946
14947         * event-stream.c:
14948         * event-stream.c (maybe_echo_keys):
14949         * event-stream.c (Fnext_event):
14950         * event-stream.c (command_builder_find_leaf):
14951         * event-stream.c (lookup_command_event):
14952         * event-stream.c (execute_command_event):
14953         * event-stream.c (pre_command_hook):
14954         * event-stream.c (post_command_hook):
14955         * event-stream.c (syms_of_event_stream):
14956         * event-stream.c (vars_of_event_stream):
14957         * event-stream.c (complex_vars_of_event_stream):
14958         * events.h (struct command_builder):
14959
14960         a) Tried to clean up a little bit the horribly written x-specific
14961         accelerator code that crept into this file.  I moved this code
14962         into menubar-x.c where it belongs. I also needed to move the
14963         command builder structure into the file events.h because it is
14964         accessed directly by this accelerator code.  What I didn't do, but
14965         which should be done at some point, is to properly abstract this
14966         code using device methods instead of the kludgy way that it
14967         currently hooks into the event code.
14968
14969         b) Added the lisp variables this-command-properties and
14970         last-command- properties, which should be used to synchronize two
14971         adjacent commands in preference to playing games with the variable
14972         this-command, which is typically what happens.
14973
14974         c) Added some slightly nasty code to hook into the lisp support
14975         for shifted- motion-key selection.  This is actually necessary for
14976         somewhat complicated reasons, which are described in
14977         simple.el. (NB: I think the proper thing would be to have the code
14978         that calls the pre and post command hooks also call out to generic
14979         lisp functions in simple.el, where all built-in stuff could be
14980         added.  I will think about this more.)
14981
14982         * event-unixoid.c (poll_fds_for_input):
14983         * lread.c (readchar):
14984         * redisplay-tty.c (tty_clear_frame):
14985         * redisplay-x.c (x_get_gc):
14986         * signal.c (interrupt_signal):
14987         And a whole bunch of other files: fixed up places that printed
14988         directly to stderr to instead call the function stderr_out so that
14989         the changes I made under Windows work correctly.
14990
14991         * filemode.c (mode_string):
14992         Warning fixes.
14993
14994         * frame-msw.c:
14995         * frame-msw.c (mswindows_size_frame_internal):
14996         Fixed the computation of frame size and position to keep the frame
14997         within the workspace area, rather than within the physical
14998         dimensions of the screen, so that the frame doesn't overlap window
14999         manager decorations, such as the start menu and toolbar, typically
15000         at the bottom of the screen.
15001
15002         * frame.c (vars_of_frame):
15003         Changed the default frame title format under MS Windows to consist
15004         of buffername-XEmacs, which is standard under MS Windows.  I think
15005         it might be a good idea to change this everywhere because I think
15006         it is superior to the current frame title format, but this is the
15007         kind of change that is likely to cause some people to get annoyed,
15008         so I'm not making it.
15009
15010         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15011
15012         * gui-msw.c (mswindows_handle_gui_wm_command):
15013         Fixed compile warnings.
15014
15015         * gui-x.c:
15016         * gui-x.c (strdup_and_add_accel):
15017         * gui-x.c (button_item_to_widget_value):
15018         * gui-x.h:
15019         Added code to automatically put an accelerator onto the beginning
15020         of menu items that don't have one as is now the standard, and is
15021         described more later.  Also fixed things so that the menu item
15022         name can be an evaluated expression, again a new standard.
15023
15024         * gui.c:
15025         * gui.c (gui_item_add_keyval_pair):
15026         * gui.c (make_gui_item_from_keywords_internal):
15027         * gui.c (gui_add_item_keywords_to_plist):
15028         * gui.c (gui_item_accelerator):
15029         * gui.c (gui_name_accelerator):
15030         * gui.c (gui_item_included_p):
15031         * gui.c (gui_item_display_flush_left):
15032         * gui.c (gui_item_display_flush_right):
15033         * gui.c (parse_gui_item_tree_item):
15034         * gui.c (parse_gui_item_tree_children):
15035         * gui.c (parse_gui_item_tree_list):
15036         Mule-ized.  Cleanup.  GCPRO addition.
15037
15038         * line-number.c (buffer_line_number):
15039         * lisp.h:
15040         * lisp.h (EMACS_INT_MAX):
15041         Added the manifest constant EMACS_INT_MIN corresponding to the
15042         existing constant EMACS_INT_MAX.  This is partially to fix compile
15043         warnings under Windows, and partly for cleanliness.
15044
15045         * menubar-msw.c:
15046         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15047         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15048         * menubar-msw.c (displayable_menu_item):
15049         * menubar-msw.c (populate_menu_add_item):
15050         * menubar-msw.c (populate_or_checksum_helper):
15051         * menubar-msw.c (populate_menu):
15052         * menubar-msw.c (update_frame_menubar_maybe):
15053         * menubar-msw.c (prune_menubar):
15054         * menubar-msw.c (msw_char_is_accelerator):
15055         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15056         * menubar-msw.c (mswindows_handle_wm_command):
15057         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15058         * menubar-msw.c (mswindows_handle_wm_initmenu):
15059         * menubar-msw.c (mswindows_update_frame_menubars):
15060         * menubar-msw.c (mswindows_free_frame_menubars):
15061         * menubar-msw.c (mswindows_popup_menu):
15062         Fixed a bug in handling accelerators where an extra character
15063         would be displayed in the menu item.  Also generalized the
15064         function displayable_menu_item because it is now used by the
15065         dialog box code as well.  And finally, added code in the functions
15066         that create the menubar to extract a list of accelerators for the
15067         top level menubar, which is used in the event code to determine
15068         whether a particular alt-key combination should be used to invoke
15069         a menu item, or should be passed through to access the standard
15070         XEmacs keymap binding for this key combination.
15071
15072         Much needed GCPROing.
15073
15074         * menubar-x.c:
15075         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15076         * menubar-x.c (menu_item_descriptor_to_widget_value):
15077         * menubar-x.c (restore_in_menu_callback):
15078         * menubar-x.c (x_popup_menu):
15079         * menubar-x.c (menu_move_up):
15080         * menubar-x.c (menu_move_down):
15081         * menubar-x.c (menu_move_left):
15082         * menubar-x.c (menu_move_right):
15083         * menubar-x.c (menu_select_item):
15084         * menubar-x.c (command_builder_operate_menu_accelerator):
15085         * menubar-x.c (menu_accelerator_junk_on_error):
15086         * menubar-x.c (command_builder_find_menu_accelerator):
15087         * menubar-x.c (Faccelerate_menu):
15088         * menubar.h:
15089         Moved a whole bunch of code here that was previously in
15090         event-stream.c as described above.  There is also code connected
15091         to the new standard of adding an accelerator to the beginning of
15092         menu items that don't have one as described above and below.
15093
15094         * menubar.c:
15095         * menubar.c (menu_parse_submenu_keywords):
15096         * menubar.c (Fmenu_find_real_submenu):
15097         * menubar.c (Fnormalize_menu_item_name):
15098         * menubar.c (syms_of_menubar):
15099         * menubar.c (vars_of_menubar):
15100         * menubar.c (complex_vars_of_menubar):
15101
15102         a) Cleaned up a bunch of documentation and improved it.
15103
15104         b) XEmacs now automatically adds an accelerator onto the beginning
15105         of any menu items that don't have one.  I did this because there
15106         will inevitably be some menu items on the main menubar that don't
15107         have accelerators on them because the package that adds that
15108         particular menu item hasn't yet been fixed up to have accelerators
15109         in them and it looked rather strange to have some items with and
15110         some items without accelerators, especially since even in items
15111         without accelerators, you can, at least under windows, still
15112         access the item through an accelerator corresponding to the first
15113         character in the item's name.  If people don't like this behavior,
15114         I can add a variable to turn it off optionally, but I'm not sure
15115         this is a good idea because we really do need to have accelerators
15116         on all of the menu items, and if a package doesn't like the
15117         accelerators being put on the first character, then it should put
15118         the accelerators where they belong.
15119
15120         c) I made a behavior change, which is that the descriptor that
15121         specifies the text of the menu item, which formerly was just a
15122         string, can now also be an evaluated expression.  This makes this
15123         descriptor parallel with all of the others, which could also be
15124         evaluated expressions.  This also obviates the need for the
15125         keyword :label, which was previously listed in the documentation
15126         as unimplemented, and which was for the same purpose.
15127
15128         d) GCPROing.
15129
15130         * ntproc.c:
15131         * ntproc.c (new_child):
15132         * ntproc.c (sys_spawnve):
15133         * ntproc.c (find_child_console):
15134         * ntproc.c (sys_kill):
15135         Fixed compile warnings.  By the way, this file should really go
15136         away entirely, and this will happen as soon as Kirill makes his
15137         final round of process cleanups, which affect the function
15138         call-process.
15139
15140         * process-nt.c:
15141         * process-nt.c (struct nt_process_data):
15142         * process-nt.c (find_process_from_pid):
15143         * process-nt.c (send_signal_the_nt_way):
15144         * process-nt.c (enable_child_signals):
15145         * process-nt.c (find_child_console):
15146         * process-nt.c (send_signal_the_95_way):
15147         * process-nt.c (nt_finalize_process_data):
15148         * process-nt.c (ensure_console_window_exists):
15149         * process-nt.c (nt_create_process):
15150         * process-nt.c (nt_kill_child_process):
15151         * process-nt.c (nt_kill_process_by_pid):
15152         * process-nt.c (nt_open_network_stream):
15153         * process-nt.c (vars_of_process_nt):
15154         Copied over code from Emacs 20.5 to correctly send signals to sub-
15155         processes under Windows 95.  Also added code to automatically
15156         create and hide console window when a sub-process is created under
15157         Windows 95, which obviates the need for the separate runemacs.exe
15158         executable, and finally implemented some variables that were
15159         implemented in Emacs 20.5, but previously not in XEmacs.  These
15160         include mswindows- start-process-share-console and
15161         mswindows-start-process-inherit-error-mode. (Both of these only
15162         apply to Windows 95.)
15163
15164         * regex.c (regex_compile): Fixed a compile warning.
15165
15166         * select-msw.c:
15167         * select-msw.c (mswindows_own_selection):
15168         * select-msw.c (mswindows_get_foreign_selection):
15169         * select-msw.c (mswindows_disown_selection):
15170         * select-msw.c (console_type_create_select_mswindows):
15171         * select-msw.c (syms_of_select_mswindows):
15172         Cleaned up the file and implemented the device method
15173         selection_exists_p, which had accidentally been left out.  Also
15174         removed four lisp functions that were remnants from before the
15175         time when the selection code was properly device abstracted.
15176         These functions are no longer needed because there are generic
15177         equivalents, and because they were added recently and don't exist
15178         in FSF Emacs, I don't think there's any problem with just deleting
15179         them.
15180
15181         * sysdep.c:
15182         * sysdep.c (sys_subshell):
15183         Fixed a compile warning, although in this case there's probably
15184         something wrong with this code, and it ought to be looked into
15185         more thoroughly by somebody who understands it.
15186
15187         * window.c:
15188         * window.c (Fwindow_text_area_height):
15189         * window.c (Fwindow_width):
15190         * window.c (Fwindow_full_width):
15191         * window.c (Fwindow_pixel_width):
15192         * window.c (debug_print_window):
15193         * window.c (syms_of_window):
15194         Added functions window-text-area-height and window-full-width,
15195         which are functions for returning various width and height
15196         characteristics of a window. (One of these functions is necessary
15197         for making the file dialog box work correctly, and the other one
15198         was added for completeness.)  Also added a table to the
15199         documentation for window-height which describes the entire scheme
15200         for accessing width and height characteristics of a window.
15201
15202 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15203
15204         * nt.c (fstat): Added a comment for another problem with
15205         non-encapsulated [f]stat(), reported by Adrian Aichner
15206         <aichner@ecf.teradyne.com>.
15207
15208 2000-03-11  Andy Piper  <andy@xemacs.org>
15209
15210         * window.c (make_dummy_parent): initialize subwindow instance
15211         cache.
15212         (Fset_window_configuration): zero extent_modiff.
15213
15214 2000-03-10  Andy Piper  <andy@xemacs.org>
15215
15216         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15217         more changes can be triggered.
15218         (Fredisplay_frame): ditto.
15219         (Fredraw_device): ditto.
15220         (Fredisplay_device): ditto.
15221         (redisplay_frame): make non-static.
15222         (redisplay_frame): call update_frame_gutter_geometry outside of
15223         display proper.
15224
15225         * gutter.h: declare update_frame_gutter_geometry.
15226
15227         * redisplay.h: declare redisplay_frame.
15228
15229         * gutter.c (update_frame_gutter_geometry): move geometry changes
15230         in update_frame_gutters here. Geometry changes can only occur
15231         outside of redisplay.
15232         (update_frame_gutters): remove geometry change code.
15233         (Fredisplay_gutter_area): make sure that we are in display when we
15234         update and that we have flushed any size changes.
15235
15236 2000-03-11  Andy Piper  <andy@xemacs.org>
15237
15238         * alloc.c (pdump_dump_data): remove i & count shadows.
15239
15240 2000-02-27  Mike Alexander  <mta@arbortext.com>
15241
15242         * sysdep.h: Declare pdump_read_file
15243
15244         * sysdep.c (pdump_read_file): New function
15245
15246         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15247         dump data
15248
15249 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15250
15251         * lrecord.h: add `lrecord_type_pgsetenv'.
15252
15253 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15254
15255         * symsinit.h: declare (vars|syms)_of* functions.
15256         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15257
15258 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15259
15260         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15261
15262         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15263         GCCs.
15264
15265         * emacs.c (main_1): Call postgres initialization code.
15266
15267         * postgresql.h: New file.  PostgreSQL RDBMS support.
15268         * postgresql.c: New file.
15269
15270 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15271
15272         * redisplay-output.c (redisplay_output_display_block): Disable
15273         redundant code.
15274
15275 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15276
15277         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15278         (Fcanna_henkan_next): Ditto.
15279         (Fcanna_bunsetu_henkou): Ditto.
15280         (Fcanna_henkan_kakutei): Ditto.
15281         (Fcanna_henkan_end): Ditto.
15282         (Fcanna_henkan_quit): Ditto.
15283         (Fcanna_henkan_next): Set retun value correctly.
15284         (c2mu): Use unsigned char instead of signed char.
15285
15286 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15287
15288         * emacs.c (main_1): Always call syms_of_gui.
15289         * inline.c: include gui.h
15290
15291 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15292
15293         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15294         converted to Lisp_Object.
15295         (Qtop_bottom): New variable.
15296         (syms_of_redisplay): Initialize it.
15297         * redisplay.h (Vvisible_bell): Ditto.
15298         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15299         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15300         only flash top and bottom.
15301
15302 2000-03-08  Andy Piper  <andy@xemacs.org>
15303
15304         * buffer.c (Frename_buffer): record new buffer name the right way.
15305
15306 2000-03-08  Andy Piper  <andy@xemacs.org>
15307
15308         * glyphs.c (update_subwindow): increase hash depth so that widget
15309         items get picked up properly.
15310
15311         * redisplay-output.c (compare_runes): increase hash depth so that
15312         widget items get picked up properly.
15313
15314 2000-03-08  Andy Piper  <andy@xemacs.org>
15315
15316         * gutter.c (output_gutter): add some debug.
15317
15318         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15319         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15320         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15321
15322         * redisplay-output.c (compare_runes): use display_hash to
15323         determine if glyphs really are not the same.
15324
15325         * glyphs.c (update_subwindow): check display_hash to see if
15326         anything really needs to be updated. If not then do
15327         nothing. Record the display_hash after updating.
15328         (image_instance_equal): compare the image_instance face also.
15329
15330 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15331
15332         * redisplay.h: Fix comment style.
15333
15334 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15335
15336         * consle-msw.h (struct mswindows_frame):
15337         Added new member paint_pending to indicate whether a WM_PAINT
15338         magic event has been queued for this frame.
15339
15340         * event-msw.c (mswindows_drain_windows_queue):
15341         Don't queue a WM_PAINT magic event if one is already queued.
15342         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15343
15344         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15345
15346 2000-03-07  Didier Verna  <didier@xemacs.org>
15347
15348         * dired.c: #include `regex.h' after `sysfile.h'.
15349
15350 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15351
15352         * sound.c (init_nas_sound): Fix compiler warning.
15353
15354         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15355         (FREE_STRUCT_P):
15356         (MARK_STRUCT_AS_FREE):
15357         (MARK_STRUCT_AS_NOT_FREE):
15358         Make `gcc -fstrict-aliasing' work properly.
15359
15360 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15361
15362         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15363         (mswindows_delete_device): Call CoUnnitialize().
15364
15365         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15366
15367 2000-02-25    <CraigL@DyCon.com>
15368
15369         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15370         <errno.h>.
15371
15372         * sysdep.c: This extern declaration for environ prevents MinGW
15373         from finding the variable in CRTDLL.DLL.
15374
15375         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15376         windows headers.
15377         (SHGFI_EXETYPE): ..
15378         (WM_MOUSEWHEEL): ..
15379         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15380         definitions.
15381         (MMRESULT): Removed, now defined in cygwin's windows headers.
15382         (TIMECAPS): ..
15383         (uid_t,gid_t,pid_t,ssize_t): ..
15384         (_timeb): Removed, MinGW defines both _timeb and timeb.
15385         (HAVE_H_ERRNO): Added.
15386         (HAVE_TZNAME): Added, configure is not detecting this.
15387
15388 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15389
15390         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15391         * syntax.c (syntax_match): Use it.
15392
15393         * cmds.c: Import auto-fill-chars from FSF Emacs.
15394         (Vauto_fill_chars): New variables.
15395         (internal_self_insert): Check Vauto_fill_chars.
15396         (vars_of_cmds):
15397         Declare auto-fill-chars as a Lisp variable and initialize it.
15398
15399 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15400
15401         * fileio.c (Fmake_symbolic_link):
15402         (Ffile_symlink_p):
15403         Run handlers even if local machine doesn't have symlinks.
15404
15405 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15406
15407         * event-msw.c (mswindows_drain_windows_queue):
15408         Don't generate paint magic events for non-XEmacs frames.
15409
15410 2000-03-05  Andy Piper  <andy@xemacs.org>
15411
15412         * redisplay.c (redisplay_frame): generate_displayable_area and
15413         friends assumes that we are not in GC, we therefore have to make
15414         sure that this doesn't happen.
15415
15416         * gutter.c (calculate_gutter_size): generate_displayable_area
15417         assumes that we are not in GC, we therefore have to make sure that
15418         this doesn't happen.
15419
15420 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15421
15422         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15423
15424 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15425
15426         * redisplay.c (regenerate_window): Make sure we set a sane value
15427         for end_pos even if we jump out of the loop.
15428         (regenerate_window): Answer Ben's question :-).
15429         (start_end_of_last_line): Add may_error argument.
15430         (start_of_last_line):
15431         (end_of_last_line): Pass may_error = 0.
15432         (end_of_last_line_may_error): New function.
15433         (pixel_to_glyph_translation): Use it, so we don't crash in
15434         event_to_glyph.
15435
15436 2000-03-04  Andy Piper  <andy@xemacs.org>
15437
15438         * window.h (struct window): add gutter_extent_modiff.
15439
15440         * window.c (allocate_window): zero out gutter_extent_modiff.
15441
15442         * redisplay.h: declare sync_display_line_structs.
15443
15444         * redisplay.c (add_glyph_rune): add a better comment.
15445
15446         * redisplay-output.c (sync_display_line_structs): made non-static.
15447         (compare_runes): remove unneccesary glyph cachel access.
15448
15449         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15450
15451         * gutter.c (output_gutter): don't output the gutter if extent
15452         changes only involve extents in buffers. use 4 sets of display
15453         lines.
15454         (gutter_extent_signal_changed_region_maybe): new function. Mark
15455         extents in gutters as changed.
15456         (update_frame_gutters): use 4 sets of display lines.
15457         (reset_gutter_display_lines): ditto.
15458         (free_frame_gutters): ditto.
15459         (redraw_exposed_gutter): force output of gutters.
15460
15461         * frame.h (struct frame): add 4 sets of gutter display lines.
15462
15463         * extents.c: (extent_changed_for_redisplay): signal changes to
15464         extents in strings in the gutter as well as extents in buffers.
15465
15466 2000-03-02  Andy Piper  <andy@xemacs.org>
15467
15468         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15469
15470         * frame.c (Fmake_frame): make sure the gutters get initialized
15471         after the frame is visible.
15472         (set_frame_selected_window): re-arrange compilation macros a
15473         little.
15474         (change_frame_size_1): mark gutters changed.
15475
15476         * device.c (Fset_device_class): mark gutters changed.
15477
15478 2000-03-01  Andy Piper  <andy@xemacs.org>
15479
15480         * window.c (window_top_frame_gutter_height): deleted.
15481         (window_bottom_frame_gutter_height): ditto.
15482         (window_left_frame_gutter_height): ditto.
15483         (window_right_frame_gutter_height): ditto.
15484         (window_top_gutter_height): don't use them.
15485         (window_bottom_gutter_height): ditto.
15486         (window_left_gutter_width): ditto.
15487         (window_right_gutter_width): ditto.
15488         (Fsplit_window): ditto.
15489         (Fwindow_pixel_edges): don't use border dimensions here.
15490
15491         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15492         (update_scrollbar_instance): ditto.
15493
15494         * redisplay.c (generate_modeline): don't take gutters into account.
15495         (generate_modeline): ditto.
15496         (redisplay_frame): small gutter display optimization.
15497
15498         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15499
15500         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15501         gutters into account.
15502
15503         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15504         for window position and type.
15505
15506         * gutter.c (get_gutter_coords): fix for frame gutters.
15507         (update_frame_gutters): update frame geometry if the gutters have
15508         changed.
15509         (init_frame_gutters): record current gutter geometries.
15510
15511         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15512         var.
15513         (mswindows_widget_instantiate): ditto.
15514
15515         * frame.h (struct frame): add current_gutter_bounds.
15516
15517         * frame.c (change_frame_size_1): position window and minibuffer
15518         appropriately taking into account the frame gutters.
15519
15520         * frame-x.c: (x_initialize_frame_size): take into account the
15521         frame gutters.
15522
15523 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15524
15525         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15526
15527 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15528
15529         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15530
15531 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15532
15533         * file-coding.c (reset_decoding_stream): Clear previous
15534         detection state when autodetect.
15535
15536 2000-02-29  Didier Verna  <didier@xemacs.org>
15537
15538         * extents.c (set_extent_glyph_1): don't require extents to be
15539         attached.
15540
15541 2000-02-27  Andy Piper  <andy@xemacs.org>
15542
15543         * gutter.c (Fset_default_gutter_position): don't default left and
15544         right gutter visibility to t.
15545         (Fset_default_gutter_position): run
15546         default-gutter-position-changed-hook.
15547         (syms_of_gutter): add default-gutter-position-changed-hook.
15548
15549 2000-02-26  Andy Piper  <andy@xemacs.org>
15550
15551         * specifier.c (Fmake_specifier): add gutter references.
15552
15553         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15554
15555         * lisp.h: declare Fvalid_plist_p.
15556
15557         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15558         as changed.
15559         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15560         well as its visibility so that it gets reconstructed.
15561         (construct_window_gutter_spec): new function. Construct a string
15562         to be displayed in the gutter from a plist of strings. Take care
15563         to only use elements that are declared as visible.
15564         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15565         WINDOW_GUTTER.
15566         (gutter_validate): allow plists of strings in the specifier.
15567         (gutter_specs_changed): construct the real_gutter from the gutter
15568         specs using construct_window_gutter_spec.
15569         (gutter_visible_validate): gutter-visible is a new specifier type.
15570         (Fgutter_visible_specifier_p): new function for the new specifier.
15571         (syms_of_gutter): declare gutter-visible and
15572         Fgutter_visible_specifier_p.
15573         (specifier_type_create_gutter): intitalize new gutter-visible
15574         specifier.
15575         (reinit_specifier_type_create_gutter): ditto.
15576         (specifier_vars_of_gutter): use new specifier type for gutter
15577         visibility.
15578         (init_frame_gutters): construct real_gutter correctly.
15579         (Fgutter_specifier_p): beef up documentation.
15580         (Fgutter_size_specifier_p): ditto.
15581
15582         * winslots.h: add real_gutter slots.
15583
15584 2000-02-25  Andy Piper  <andy@xemacs.org>
15585
15586         * device-msw.c: Be kind to older cygwin versions. From Raymond
15587         Toy <toy@rtp.ericsson.se>.
15588
15589         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15590         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15591
15592 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15593
15594         * elhash.c (MARK_OBJ): Practice macro hygiene.
15595
15596 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15597
15598         * miscplay.c: s/__inline__/inline/g;
15599         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15600         (get_device_compdc): INLINE ==> static inline
15601         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15602         find -name '*.h' | \
15603         xargs global-replace \
15604         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15605
15606 2000-02-25  Andy Piper  <andy@xemacs.org>
15607
15608         * window.c (window_top_frame_gutter_height): new function.
15609         (window_top_window_gutter_height): ditto.
15610         (window_top_gutter_height): use them.
15611         (window_bottom_frame_gutter_height): new function.
15612         (window_bottom_window_gutter_height): ditto.
15613         (window_bottom_gutter_height): use them.
15614         (window_left_window_gutter_width): new function.
15615         (window_left_frame_gutter_width): ditto.
15616         (window_left_gutter_width): use them.
15617         (window_right_window_gutter_width): new function.
15618         (window_right_frame_gutter_width): ditto.
15619         (window_right_gutter_width): use them.
15620         (window_pixel_height): new function. calulate window pixel height
15621         with frame gutter involvement.
15622         (Fsplit_window): calculate new sizes taking frame gutters into
15623         account.
15624         (window_char_height_to_pixel_height): don't include frame gutters.
15625         (window_char_height): use window_pixel_height.
15626         (window_pixheight): rename from window_pixel_height.
15627         (change_window_height): use it.
15628         (window_pixel_height_to_char_height): don't include frame gutters.
15629         (window_char_width_to_pixel_width): ditto.
15630
15631 2000-02-25  Andy Piper  <andy@xemacs.org>
15632
15633         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15634         if it is.
15635
15636 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15637
15638         * alloc.c (staticpro):
15639         (staticpro_nodump):
15640         (dumpstruct):
15641         (dumpopaque):
15642         (pdump_wire):
15643         (pdump_wire_list):
15644         (compact_string_chars):
15645         (pdump_dump_wired):
15646         Convert:  if (foo) abort();  ==>  assert (! foo);
15647
15648         * eldap.c (Fldap_search_basic):
15649         (Fldap_add):
15650         (Fldap_modify):
15651         (Fldap_delete):
15652         Fix compiler warnings, and possible crashes if (random) return
15653         value were to be used.
15654
15655 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15656
15657         * device-msw.c: Workaround ResetDC failure.
15658
15659         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15660         applying a devmode.
15661
15662         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15663         (mswindows_text_width): Do not start printer page.
15664
15665         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15666
15667         * glyphs-msw.c: Added image methods to msprinter console and
15668         msprinter-specific image instantiation.
15669
15670 2000-02-20  Mike Alexander  <mta@arbortext.com>
15671
15672         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15673         to avoid crashes when selection-sets-clipboard is on
15674         (mswindows_own_selection): ditto
15675
15676 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15677
15678         * glyphs-msw.c:
15679         * redisplay-msw.c (get_frame_dc):
15680         (get_frame_compdc):
15681         * console-msw.h:
15682         * device-msw.c (mswindows_init_device):
15683         (mswindows_delete_device):
15684         (msprinter_init_device):
15685         (msprinter_delete_device):
15686         * frame-msw.c (mswindows_init_frame_1):
15687         (mswindows_delete_frame):
15688         (msprinter_init_frame_3):
15689         (msprinter_delete_frame): Move compatible DC to device object from
15690         frame object, for both mswindows and msprinter. Only one at a time
15691         is needed, it is a real waste to have one per frame!
15692
15693 2000-02-23  Andy Piper  <andy@xemacs.org>
15694
15695         * glyphs.c: add dynamic width and height elements.
15696         (image_instance_equal): ditto.
15697
15698         * glyphs-widget.c (widget_query_geometry): calculate width and
15699         height dynamically if required.
15700         (initialize_widget_image_instance): initialize dynamic dimensions.
15701         (widget_instantiate): pick-up dynamic dimensions.
15702
15703         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15704         dynamic determination. Add appropriate macros.
15705
15706         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15707         dimensions safe.
15708         (WINDOW_GUTTER_SIZE): ditto.
15709         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15710
15711         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15712         inline.
15713         (get_frame_dc): ditto.
15714
15715         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15716         here.
15717
15718 2000-02-23  Martin Buchholz <martin@xemacs.org>
15719
15720         * XEmacs 21.2.31 is released.
15721
15722 2000-02-22  Ben Wing <ben@xemacs.org>
15723
15724         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15725
15726 2000-02-22  Andy Piper  <andy@xemacs.org>
15727
15728         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15729
15730 2000-02-21  Mike Sperber <mike@xemacs.org>
15731
15732         * .dbxrc:
15733         * .gdbinit:
15734         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15735         variables.
15736
15737 2000-02-21  Mike Sperber <mike@xemacs.org>
15738
15739         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15740
15741 2000-02-21  Martin Buchholz <martin@xemacs.org>
15742
15743         * XEmacs 21.2.30 is released.
15744
15745 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15746
15747         Performance hacking.
15748         * *.c (syms_of_*):
15749         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15750         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15751         * emacs.c (main_1):
15752         * lisp.h (DEFUN):
15753         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15754         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15755         * symeval.h (DEFVAR_SYMVAL_FWD):
15756         * symbols.c (guts_of_unbound_marker):
15757         Make all c_readonly objects also lisp_readonly and marked for life.
15758         * lrecord.h (struct lrecord_implementation):
15759         Document flags better.
15760         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15761         * lrecord.h (DECLARE_LRECORD):
15762         * lrecord.h (XSETRECORD):
15763         * lrecord.h (RECORDP):
15764         * lrecord.h (RECORD_TYPEP):
15765         * lrecord.h (RECORD_MARKER): New.
15766         * lrecord.h (error_check_*):
15767         * lrecord.h (CONCHECK_NONRECORD):
15768         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15769         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15770         * lrecord.h (set_lheader_implementation):
15771         * lrecord.h (enum lrecord_type): New.
15772         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15773         * alloc.c (disksave_object_finalization_1):
15774         * alloc.c (mark_object):
15775         * alloc.c (lrecord_type_index):
15776         * alloc.c (tick_lcrecord_stats):
15777         * alloc.c (Fgarbage_collect):
15778         * alloc.c (init_alloc_once_early):
15779         * alloc.c (pdump_load):
15780         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15781         * alloc.c (lrecord_type_index): Delete.
15782         Make lisp object type indexes be constant.
15783           Makes (byte-compile) 5% faster.
15784         Put all marker functions into their own array.
15785           Makes (garbage-collect) 5% faster.
15786         Optimize SYMBOL_VALUE_MAGIC_P.
15787           Makes (byte-compile) 2-3% faster.
15788         * config.h.in (gc_checking_assert): New.
15789         * alloc.c: Use gc_checking_assert().
15790         * .dbxrc: Make compatible with new object type implementation.
15791         * .gdbinit: Make compatible with new object type implementation.
15792         * alloc.c: Delete all symbols defined only for debugging, such as
15793         Lisp_Type_Vector and lrecord_charset.
15794
15795 2000-02-21  Andy Piper  <andy@xemacs.org>
15796
15797         * gui-msw.c (Fmswindows_shell_execute): fix file location
15798         problems.
15799
15800         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15801         unshowing so that set_window_buffer doesn't undo
15802         kill_buffer_hook's hard work.
15803
15804         * glyphs-widget.c (tab_control_query_geometry): don't count the
15805         first item when calculating geometry.
15806
15807         * glyphs.c (map_subwindow): remove redundant code.
15808         (update_frame_subwindows): be more circumspect about when to
15809         update subwindows.
15810
15811         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15812         when items haven't changed. Update faces if faces have changed as
15813         well as just the widget face.
15814         (x_tab_control_update): Update faces if faces have changed as well
15815         as just the widget face.
15816
15817 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15818
15819         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15820         registration.
15821         (build_syscolor_string): Use mswindows_color_to_string to try to
15822         get a named color.
15823         (mswindows_device_system_metrics): Reverse the foreground and
15824         background colors so that they match the documentation.
15825
15826         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15827         they match the default Windows palette.
15828         (mswindows_color_to_string): New function.
15829
15830 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15831
15832         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15833
15834 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15835
15836         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15837         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15838
15839         * symbols.c (init_symbols_once_early): Removed obsolete
15840         DATA_SEG_BITS related kludge.
15841         (defvar_magic): Ditto.
15842
15843         * malloc.c: Removed obsolete DATA_SEG_BITS
15844         * ralloc.c: Ditto.
15845         * mem-limits.h: Ditto.
15846
15847         * Makefile.in.in: Removed obsolete HAVE_SHM
15848         * emacs.c: Ditto.
15849
15850 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15851
15852         *  device-msw.c (mswindows_delete_device): Free DDE string
15853         handles.
15854
15855 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15856
15857         * keymap.c (get_keyelt):
15858         * unexnt.c (unexec):
15859         * vm-limit.c (memory_warnings):
15860         * ntheap.c (recreate_heap):
15861         * ntheap.h (UNINIT_PTR):
15862         * select-msw.c (Fmswindows_get_clipboard):
15863         (Fmswindows_set_clipboard):
15864         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15865         * objects-msw.c:
15866         * menubar-msw.c (displayable_menu_item):
15867         * glyphs-msw.c:
15868         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15869         * sysdep.c (sys_subshell):
15870         * process-nt.c (nt_create_process):
15871         * nt.c (normalize_filename):
15872         (dostounix_filename):
15873         (unixtodos_filename):
15874         * ntproc.c (win32_executable_type):
15875         * ntplay.c (play_sound_data_1):
15876         (play_sound_file):
15877         * editfns.c (get_home_directory):
15878         * event-msw.c (struct winsock_stream):
15879         (mswindows_dde_callback):
15880         * device-msw.c (msprinter_init_device):
15881         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15882
15883         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15884         mswindows_clear_toolbar were swapped!
15885
15886         * objects-msw.c:(colormap_t):
15887         (fontmap_t):
15888         * emacs.c (struct standard_args): Fixed const jumble.
15889
15890         * glyphs-widget.c (update_widget): Fixed comparison notation.
15891
15892         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15893
15894         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15895         __declspec(noreturn) syntax.
15896
15897 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15898
15899         * eldap.c (Fldap_open):
15900         (Fldap_search_basic):
15901         (Fldap_add):
15902         (Fldap_modify):
15903         Use new coding system conversion macros.
15904
15905 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15906
15907         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15908
15909 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15910
15911         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15912         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15913
15914         * eldap.c (Qadd, Qreplace): New constant symbols
15915         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15916         interruptions by XEmacs signals
15917         Remove unnecessary calls to slow_down_interrupts and
15918         speed_up_interrupts
15919         (Fldap_search_basic): Renamed from Fldap_search_internal
15920         Added new optional parameter VERBOSE that triggers the
15921         display of progress messages
15922         Remove unnecessary calls to slow_down_interrupts and
15923         speed_up_interrupts
15924         LDAP result code analysis rewritten
15925         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15926         (syms_of_eldap): Define the new symbols and functions
15927
15928
15929 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15930
15931         * realpath.c: Determine PATH_MAX maximally portably.
15932
15933         * insdel.c (bytecount_to_charcount): Optimize.
15934         The function used to be optimized for entirely ASCII sequences.
15935         Now it is optimized for successive characters from the same
15936         charset.  This also wins big for _mostly_ ASCII sequences.
15937
15938         * fileio.c (Ffile_truename): convert return from realpath() using
15939         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15940         - Rewrite GCPROing slightly.
15941
15942         * sysdep.c (sys_open): Do filename conversion, like all other
15943         sys_* functions.  Fixes bug:
15944         (let ((file-name-coding-system 'iso-8859-2))
15945            (write-region x y latin2-name))
15946         ==> writes filename using internal encoding.
15947
15948 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15949
15950         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15951         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15952         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15953         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15954         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15955         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15956         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15957         (CONST_IF_NOT_DEBUG): Delete.
15958         * alloc.c (this_one_is_unmarkable): Delete.
15959         (mark_object): Don't check for this_one_is_unmarkable. Use the
15960         c_readonly flag instead.
15961         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15962
15963 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15964
15965         * event-msw.c (mswindows_drain_windows_queue):
15966         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15967         away redundant repaint events.
15968
15969 2000-02-17  Andy Piper  <andy@xemacs.org>
15970
15971         * redisplay.h: declare mark_redisplay_structs.
15972
15973         * redisplay.c (redisplay_window):
15974         (redisplay_frame): don't check subwindows_state_changed.
15975         (mark_redisplay): mark gutters here.
15976
15977         * glyphs.c: (instantiate_image_instantiator): always layout if we
15978         haven't done so already.
15979         (allocate_image_instance): don't mark as dirty.
15980         (update_subwindow): bind inhibit_quit.
15981
15982         * gutter.c (mark_gutters): new function.
15983
15984         * glyphs-x.c (x_update_widget): Always resize to get round a
15985         widget bug.
15986
15987         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15988         breaking absolutely everything.
15989
15990         * gutter.h: declare mark_gutters.
15991
15992 2000-02-16  Martin Buchholz <martin@xemacs.org>
15993
15994         * XEmacs 21.2.29 is released.
15995
15996 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15997
15998         * fns.c (size_bit_vector): Fix computation of the size.
15999
16000 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16001
16002         * *.[ch]: Change CONST to const globally.
16003         find -name '*.[ch]' | \
16004         xargs global-replace \
16005         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16006         - Remove vestigial references to CONST_IS_LOSING
16007
16008 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16009
16010         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16011         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16012         events instead of dispatching them directly.
16013         (mswindows_handle_paint): New function to do repainting.
16014         (mswindows_wnd_proc):
16015         (emacs_mswindows_handle_magic_event): Call above function.
16016
16017 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16018
16019         * objects-msw.c (mswindows_create_font_variant): Return the new
16020         font handle.
16021         (initialize_font_instance): Get font metrics from the underlined
16022         variant of the font to cope with the case where the underlined
16023         font has a bigger descent.
16024
16025 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16026
16027         * gui.c (gui_item_accelerator): Return the first underlined
16028         character in item name.
16029
16030 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16031
16032         * lisp.h: Added Qprinter.
16033
16034         * general.c (syms_of_general): Initialized it.
16035
16036         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16037         (get_frame_dc):
16038         (get_frame_compdc): Made inline.
16039
16040         * console.h (struct console_methods): Added eject_page method.
16041
16042         * frame.h: Added FRAME_DISPLAY_P and friends.
16043         Aligned backslahes in many macros in more readable fashion.
16044         Added page_number to struct frame, and an accessor macro
16045         for it.
16046
16047         * defice.h: Added DEVICE_DISPLAY_P and friends.
16048
16049         * device.c (Fdevice_printer_p): Used these.
16050
16051         * frame.c (allocate_frame_core): Initialize page number.
16052         (Fprint_job_page_number):
16053         (Fprint_job_eject_page): Implemented.
16054
16055         * frame-msw.c (msprinter_eject_page): Added method.
16056         (msprinter_start_page): Added.
16057
16058         * window.c (Fwindow_truncated_p): Fixed docstring.
16059         (Fwindow_last_line_visible_height): Implemented.
16060
16061 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16062
16063         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16064
16065 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16066
16067         * syntax.c (scan_words): Always advance at least one character.
16068
16069 2000-02-13  Andy Piper  <andy@xemacs.org>
16070
16071         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16072         to make sure the glyph is in the cachels.
16073
16074         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16075         global image instance flag.
16076         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16077         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16078
16079         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16080         (Fset_image_instance_property): mark layout as changed.
16081         (invalidate_glyph_geometry_maybe): mark layout as changed.
16082         (glyph_width): use new NEEDS_LAYOUT macro.
16083         (glyph_ascent): ditto.
16084         (glyph_descent): ditto.
16085         (glyph_height): ditto.
16086         (image_instance_layout): mark layout as clean after laying out.
16087         (update_subwindow): don't mark layout as clean here.
16088
16089         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16090         should no longer be needed.
16091
16092         * glyphs-x.c (x_update_widget): sanitize asserts.
16093         (x_finalize_image_instance): sanitize assignment to widgets.
16094
16095         * glyphs-widget.c (widget_instantiate): don't need to clear the
16096         layout flag here.
16097
16098 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16099
16100         * sysdep.c (getcwd): Use standard prototype.
16101         * sysdep.h (getcwd): Use standard prototype.
16102
16103         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16104         (sequence, start, end).
16105         Remove redundant type checking.
16106         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16107         view of `caller-protects') to avoid a crash where the real fix was
16108         found elsewhere.
16109
16110 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16111
16112         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16113
16114         * s/sol2.h: Remove feature macro initialization.
16115
16116         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16117         (vector_hash): New.  Code from internal_hash.
16118         * lrecord.h:
16119         Fix up allocation subsystem comments.
16120
16121         * config.h.in: Add __EXTENSIONS__ for Solaris.
16122
16123         * systime.h (EMACS_GETTIMEOFDAY): New.
16124         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16125         Remove Solaris-specific code.
16126         Use void* for the (ignored) second arg for gettimeofday().
16127
16128         * elhash.c (hash_table_hash): Implement it, finally.
16129         * elhash.c:  Use hashcode_t.
16130
16131         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16132         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16133
16134         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16135         * fns.c (size_bit_vector):
16136         * alloc.c (size_vector):
16137         (make_vector_internal):
16138         (make_bit_vector_internal):
16139         (sweep_bit_vectors_1):
16140         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16141
16142 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16143
16144         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16145         Include strings.h to avoid warnings for bzero and strcasecmp.
16146
16147 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16148
16149         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16150         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16151
16152         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16153         sequence.
16154
16155 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16156
16157         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16158         use a value field instead.
16159         (symbol_value_forward_forward): Use value field.
16160         (DEFVAR_SYMVAL_FWD): Use value field.
16161         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16162         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16163         (DEFVAR_CONST_INT): Ditto.
16164         (DEFVAR_BOOL): Ditto.
16165         (DEFVAR_CONST_BOOL): Ditto.
16166         (DEFVAR_INT_MAGIC): Ditto.
16167         (DEFVAR_BOOL_MAGIC): Ditto.
16168
16169         * symbols.c (guts_of_unbound_marker): Use value field.
16170         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16171         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16172
16173         * lisp.h: Declare dumpopaque and noninteractive1.
16174
16175         * alloc.c (dumpopaque): Added.
16176         (pdump_dump_opaquevec): Added.
16177         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16178         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16179         noninteractive.
16180
16181 2000-02-10  Andy Piper  <andy@xemacs.org>
16182
16183         * glyphs.c (image_instance_layout): if the size changes, mark it
16184         as such.
16185
16186         * redisplay-output.c (redisplay_output_layout): Update the
16187         subwindow here.
16188         (redisplay_output_subwindow): ditto.
16189
16190         * glyphs.c (update_subwindow): make sure we reset flags for
16191         layouts as well as everything else.
16192
16193         * glyphs-widget.c (layout_layout): don't need to set the instances
16194         dimensions here.
16195
16196 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16197
16198         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16199         not HAVE_DLOPEN, which is a lower-level thing.
16200
16201         * .cvsignore: Ignore gmon.out
16202
16203 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16204
16205         * .cvsignore: Ignore portable dumper xemacs.dmp file
16206
16207 2000-02-09  Andy Piper  <andy@xemacs.org>
16208
16209         * redisplay-output.c (redisplay_output_layout): be more clever
16210         about when we output based on the changed flags.
16211
16212         * glyphs.h (struct image_instantiator_methods): add update_method.
16213         (struct Lisp_Image_Instance): add changed flags. Declare new
16214         macros for manipulating them.
16215
16216         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16217         (image_instance_parent_glyph): find an image_instance's parent
16218         glyph or image_instance.
16219         (image_instance_layout): mark the size as changed.
16220         (set_image_instance_dirty_p): new function. mark an image
16221         instance, plus all of its parents, as dirty.
16222         (Fset_image_instance_property): use it.
16223         (Fglyph_animated_timeout_handler): use it.
16224         (update_subwindow): call update_widget and device methods for
16225         update_subwindow. Mark all changed flags as clean.
16226         (Fresize_subwindow): mark size as changed.
16227
16228         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16229         failures.
16230         (x_update_subwindow): only resize subwindows here.
16231         (x_update_widget): new function. Update all changed properties of
16232         a widget.
16233         (x_resize_subwindow): deleted.
16234         (x_widget_set_property): deleted.
16235         (x_progress_gauge_set_property): deleted.
16236         (x_progress_gauge_update): new function. Implement recorded
16237         changes.
16238         (x_tab_control_update): ditto.
16239         (x_tab_control_set_property): deleted.
16240         (console_type_create_glyphs_x): declare new functions.
16241         (image_instantiator_format_create_glyphs_x): ditto.
16242
16243         * glyphs-widget.c (widget_set_property): mark text changed.
16244         (update_widget): new function. Update properties of a widget.
16245         (widget_instantiate): for layouts make sure we set their
16246         children's parent correctly.
16247         (tab_control_set_property): new function. Record changes that will
16248         take place under redisplay's control.
16249         (progress_gauge_set_property): ditto.
16250         (image_instantiator_progress_guage): declare new functions.
16251         (image_instantiator_tab_control): ditto.
16252
16253         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16254         now.
16255         (mswindows_update_widget): new function. Update all properties on
16256         a widget that have changed.
16257         (mswindows_button_update): new function. Update a button's set
16258         state.
16259         (mswindows_tab_control_update): new function. Update the items in
16260         a tab.
16261         (mswindows_tab_control_set_property): deleted.
16262         (mswindows_progress_gauge_update): new function. Update the
16263         progress gauge's progress.
16264         (mswindows_widget_set_property): deleted. This is all done
16265         asynchronously now.
16266         (mswindows_progress_gauge_set_property): ditto.
16267         (console_type_create_glyphs_mswindows): declare new methods.
16268         (image_instantiator_format_create_glyphs_mswindows): ditto.
16269
16270         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16271         (msprinter_set_frame_properties): ditto.
16272
16273         * console.h (struct console_methods): Add update_widget_method.
16274
16275 2000-02-09  Andy Piper  <andy@xemacs.org>
16276
16277         * gui-msw.c (Fmswindows_shell_execute): Make
16278         mswindows-shell-execute industrial strength.
16279
16280 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16281
16282         * lrecord.h: Make macro argument `props' match member function `plist'.
16283         * fns.c (Fget):
16284         * fns.c (Fput):
16285         * fns.c (Fremprop):
16286         * fns.c (Fobject_plist):
16287         * alloc.c:
16288         * symbols.c:
16289         Object property list frobbing cleanup.
16290         - Allow any lisp object (compared with `eq'), not just symbols, as
16291           keys in object plists.
16292         - Move symbol plist frobbing into symbols.c, where it belongs.
16293         - Move string plist frobbing into alloc.c, where it belongs.
16294         - Everything's an lrecord now, so no need to test for symbolp, etc.
16295         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16296
16297         * extents.c: Reorder code to remove declarations.
16298
16299         * frame.h (store_in_alist): Remove useless declaration.
16300
16301 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16302
16303         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16304         * config.h.in: Add HAVE_XCONVERTCASE.
16305
16306 2000-02-07  Andy Piper  <andy@xemacs.org>
16307
16308         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16309         it breaks many things.
16310
16311 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16312
16313         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16314         actually can start a common comment type.
16315         * src/syntax.h (SYNTAX_END_P): ditto for end.
16316
16317 2000-02-07  Martin Buchholz <martin@xemacs.org>
16318
16319         * XEmacs 21.2.28 is released.
16320
16321 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16322
16323         * event-Xt.c (x_keysym_to_character): New.
16324         (maybe_define_x_key_as_self_inserting_character): New.
16325         (x_has_keysym): New.
16326         Auto-define all keys on the keyboard as self-insert-key.
16327
16328 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16329
16330         * menubar.c (vars_of_menubar): A small code simplification.
16331
16332         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16333
16334         * ExternalShell.c:
16335         * ExternalClient.c:
16336         * EmacsShell-sub.c:
16337         * EmacsManager.c:
16338         * EmacsFrame.c:
16339         Use consistent style for specifying X resources.
16340
16341         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16342         This makes (dontusethis-set-symbol-value-handler) actually usable.
16343
16344         * lrecord.h (lrecord_decription_type):
16345         * alloc.c (pdump_register_sub):
16346         (pdump_dump_data):
16347         (pdump_reloc_one):
16348         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16349         Comply with XEmacs coding style.
16350         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16351         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16352
16353         * keymap.c (Faccessible_keymaps):
16354         Make (accessible-keymaps map "\C-h") do the Right Thing.
16355         Make (accessible-keymaps map []) do the Right Thing.
16356         Make (accessible-keymaps map "") do the Right Thing.
16357         (check_keymap_definition_loop): New function.
16358         (keymap_store_internal): Keep luser from shooting self in foot,
16359           via (define-key ctl-x-4-map "p" global-map).
16360         Remove fullness slot from struct Lisp_Keymap, since hash tables
16361         are now reliable.
16362         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16363
16364 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16365
16366         * redisplay.c (init_redisplay): Fix small memory leak.
16367         * elhash.h:
16368         * elhash.c (pdump_reorganize_hash_table):
16369         Rename from reorganize_hash_table. Change prototype.
16370         Reuse the original memory for hentries.  Save 100k.
16371         * alloc.c (PDUMP_READ): new macro.
16372         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16373         * alloc.c: No need to #ifndef before #undef.
16374
16375         * print.c: Allow debug_print() to print readably by modifying
16376         debug_print_readably.  Use consistent variable names.
16377
16378         * .dbxrc: Try to get things to work even if stopped in a function
16379         without source available by explicitly specifying source files.
16380 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16381
16382         * unexnt.c (_start): Removed bogus code which caused loading heap
16383         from differrent executable file.
16384         Removed bogus assignment to _fmode, which caused inconsistencies.
16385
16386 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16387
16388         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16389         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16390         Do not preliminary `#define signal sigset'.
16391
16392         * systime.h: Do not prototype environ on windows nt and cygwin,
16393         this conflicts with system header.
16394
16395         * syssignal.h: Use correct define for WINDOWSNT
16396
16397         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16398         with system header.
16399
16400         * sysdep.c (near start of file): Fixed commentary and rearranged
16401         ifdefs in readable order.
16402         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16403         (start_of_text):
16404         (end_of_text):
16405         (end_of_data): Do not compile in if using PDUMP.
16406
16407         * symsinit.h: Prototyped vars_of_nt().
16408
16409         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16410         (find_child_console): Use it.
16411         (sys_kill): Use it.
16412
16413         * ntheap.h: Do not extern os_subtype.
16414
16415         * ntheap.c (cache_system_info): Do not cache unneeded:
16416         nt_major_version, nt_minor_version and os_subtype.
16417         (recreate_heap): Do not compile in when PDUMPing.
16418
16419         * nt.c (geteuid and friends): Use the new varibale
16420         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16421         (init_user_info): Removed the above mentioned hackery.
16422         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16423         stat has been fixed in the C runtime.
16424         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16425
16426         * file-coding.c (struct file_coding_dump): Do not define
16427         ucs_to_mule_table in the struct if not MULE.
16428         (struct struct lrecord_description fcd_description_1): Do not dump
16429         the above.
16430
16431         * emacs.c (main_1): Call vars_of_nt().
16432         (right before Fdump_emacs_data): Don't need lastfile if using both
16433         portabe dumper and system malloc.
16434
16435         * alloc.c (Fmemory_limit): Conditionalized out.
16436         (pdump): Use OPEN_BINARY for the portable dump file.
16437         (pdump_load): Ditto.
16438
16439 2000-02-02  Mike Alexander  <mta@arbortext.com>
16440
16441         * nt.c (convert_time): Set tm_isdst before calling mktime and
16442         avoid calling it at all if the compiler supports 64 bit integers.
16443         Also initialize utc_base_ft before using it.
16444
16445 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16446
16447         * frame.c (change_frame_size_1): Take f->internal_border_width
16448         into consideration when calculating the width of the frame.
16449
16450 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16451
16452         * window.c (frame_min_height):
16453         (frame_size_valid_p):
16454         (frame_pixsize_valid_p): Added.
16455         (check_frame_size): Generalized.
16456
16457         * window.h: Prototyped the above.
16458
16459         * lisp.h:
16460         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16461         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16462         Deleted Vwin32_* and Vbinary_process_* unused variables.
16463
16464         * device-msw.c (msprinter_init_device): Do not get printer font
16465         list; Added DEVMODE functions.
16466
16467         * frame-msw.c: Added lots of printer code.
16468
16469         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16470         general.c.
16471
16472         * console-msw.h: Added more msprinter device private slots.
16473
16474 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16475
16476         * event-msw.c (key_needs_default_processing_p): Added.
16477         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16478
16479 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16480
16481         * glyphs.c (image_instance_layout): Mark image instance as clean
16482         after layout.
16483         (glyph_dirty_p): Removed redundant function.
16484         (invalidate_glyph_geometry_maybe): Added.
16485         (update_glyph_cachel_data): Call it.
16486
16487         * glyphs.h: Prototyped it.
16488
16489         * redisplay.c (add_glyph_rune): Call it.
16490         (redisplay_window): Reset glyphs cachels when frame faces have
16491         changed, thus forcing recomputation of built-in border glyphs.
16492
16493 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16494
16495         * Makefile.in.in: Make portable dumper and purify play well together.
16496         Add imperfect, but better than nothing, support for pdump.
16497         Remove xemacs.dmp when temacs is re-generated.
16498         Don't ignore errors when dumping xemacs.
16499
16500         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16501
16502 2000-01-28  Andy Piper  <andy@xemacs.org>
16503
16504         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16505         (setup_normal_frame): ditto.
16506         (setup_frame_without_minibuffer): ditto.
16507         (setup_minibuffer_frame): ditto.
16508         (delete_frame_internal): ditto.
16509         (Fmake_frame_invisible): ditto.
16510         (Ficonify_frame): ditto.
16511
16512         * window.h: change Fset_window_buffer signature.
16513
16514         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16515         (Fset_window_buffer): allow recording of buffer if the window is
16516         the selected window.
16517         (window_loop): Use new Fset_window signature.
16518
16519 2000-01-23  Daniel Pittman  <daniel@danann.net>
16520
16521         * config.h.in: Added template for `HAVE_ATHENA_3D'
16522
16523 2000-01-29  Andy Piper  <andy@xemacs.org>
16524
16525         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16526
16527         * gutter.c (output_gutter): Don't output if the window isn't live.
16528
16529 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16530
16531         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16532         of 01/12/00: Moved SetFocus back here where it belongs.
16533
16534 2000-01-23  Andy Piper  <andy@xemacs.org>
16535
16536         * s/cygwin32.h: declare printer things.
16537
16538 2000-01-26  Andy Piper  <andy@xemacs.org>
16539
16540         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16541         Alexander.
16542
16543 2000-01-24  Andy Piper  <andy@xemacs.org>
16544
16545         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16546         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16547
16548         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16549
16550         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16551
16552         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16553
16554         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16555         (mswindows_output_display_block): Avoid local shadows.
16556
16557         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16558         (mswindows_enqueue_mouse_button_event): ditto.
16559         (mswindows_handle_gui_wm_command): remove declaration.
16560
16561         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16562         warnings.
16563
16564         * console-msw.h: Avoid shadows.
16565         (mswindows_get_toolbar_button_text):
16566         (emacs_mswindows_create_stream_pair):
16567         (emacs_mswindows_delete_stream_pair):
16568         (mswindows_handle_toolbar_wm_command): declare.
16569
16570         * device-msw.c (build_syscolor_string): Avoid shadows.
16571
16572 2000-01-23  Andy Piper  <andy@xemacs.org>
16573
16574         * glyphs-widget.c (widget_instantiate): reverse the items for
16575         layouts so that children are in the expected order.
16576
16577 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16578
16579         * ralloc.c: safe_bcopy ==> memmove
16580         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16581         * s/msdos.h: Remove BCOPY macros.
16582         * insdel.c (gap_right): Remove BCOPY conditional code.
16583         * insdel.c (gap_left): Remove BCOPY conditional code.
16584         XEmacs demands a working ANSI C compiler - hence memmove.
16585
16586         * regex.c (regex_compile): Remove accidental use of trigraphs.
16587
16588 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16589
16590         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16591         event timestamp.
16592
16593 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16594
16595         * event-msw.c (mswindows_drain_windows_queue): Added the
16596         parameter.
16597         (mswindows_need_event): Commented the call to
16598         mswindows_drain_windows_queue().
16599         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16600         only.
16601
16602         * console-msw.h: Moved a few function prototypes here from
16603         event-msw.c.
16604
16605         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16606         parameter from unsigned short to unsigned long.
16607         (Fmswindows_shell_execute): Added return value.
16608
16609 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16610
16611         * sysdep.c (init_system_name):
16612           process-unix.c (unix_canonicalized_host_name):
16613         Don't call freeaddrinfo() if getaddrinfo() fails.
16614
16615         * process-unix.c (unix_open_unix_network_stream):
16616         Moved the code to get a port # into address loop.
16617
16618 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16619
16620         * buffer.c (reinit_vars_of_buffer):
16621         The right place to initialize conversion_in_dynarr and
16622         conversion_out_dynarr.
16623
16624         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16625
16626         * process-unix.c (unix_canonicalize_host_name): Muleize.
16627         (unix_open_network_stream): Muleize.
16628
16629         * buffer.h: Fix up prototypes for ralloc.c functions.
16630
16631 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16632         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16633         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16634                 instead of gethostbyname()
16635         * process-unix.c: In unix_canonicalize_host_name() and
16636                 unix_open_network_stream(), add code to use getaddrinfo()
16637                 instead of gethostbyname().
16638
16639 2000-01-27  Daniel Pittman <daniel@danann.net>
16640
16641         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16642         libs when built with flat Athena.
16643
16644 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16645
16646         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16647         Use coding standards for function prototypes.
16648
16649 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16650
16651         * dialog-msw.c (push_lisp_string_as_unicode):
16652         * doc.c (unparesseuxify_doc_string):
16653         * dired.c (Fuser_name_completion_1):
16654         * dired.c (Fuser_name_all_completions):
16655         * dired.c (free_user_cache):
16656         * dired.c (user_name_completion):
16657         * console-x.c (get_display_arg_connection):
16658         * minibuf.c (clear_echo_area_internal):
16659         * minibuf.c (echo_area_append):
16660         * eldap.c (Fldap_open):
16661         * eldap.c (Fldap_search_internal):
16662         * frame-x.c (x_set_frame_text_value):
16663         * frame-x.c (x_set_frame_properties):
16664         * frame-x.c (x_create_widgets):
16665         * redisplay-tty.c (term_get_fkeys_1):
16666         * objects-x.c (x_parse_nearest_color):
16667         * objects-x.c (x_valid_color_name_p):
16668         * objects-x.c (x_initialize_font_instance):
16669         * objects-x.c (x_list_fonts):
16670         * objects-x.c (x_find_charset_font):
16671         * tooltalk.c (Fadd_tooltalk_message_arg):
16672         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16673         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16674         * process-unix.c (unix_create_process):
16675         * ntproc.c (sys_spawnve):
16676         * sound.c (Fplay_sound_file):
16677         * sound.c (Fplay_sound):
16678         * buffer.c (init_initial_directory):
16679         * buffer.c (init_buffer):
16680         * editfns.c (init_editfns):
16681         * editfns.c (Ftemp_directory):
16682         * editfns.c (Fuser_full_name):
16683         * editfns.c (uncache_home_directory):
16684         * editfns.c (get_home_directory):
16685         * editfns.c (Fuser_home_directory):
16686         * editfns.c (Fformat_time_string):
16687         * editfns.c (Fcurrent_time_string):
16688         * gui-x.c (button_item_to_widget_value):
16689         * database.c (Fopen_database):
16690         * event-Xt.c (x_to_emacs_keysym):
16691         * event-Xt.c (x_event_to_emacs_event):
16692         * event-Xt.c (describe_event_window):
16693         * event-msw.c (mswindows_wnd_proc):
16694         * glyphs-eimage.c (jpeg_instantiate):
16695         * glyphs-eimage.c (gif_instantiate):
16696         * glyphs-eimage.c (png_instantiate):
16697         * glyphs-eimage.c (tiff_instantiate):
16698         * glyphs-x.c (xbm_instantiate_1):
16699         * glyphs-x.c (x_xbm_instantiate):
16700         * glyphs-x.c (x_xface_instantiate):
16701         * glyphs-x.c (autodetect_instantiate):
16702         * glyphs-x.c (cursor_font_instantiate):
16703         * glyphs-x.c (x_widget_instantiate):
16704         * glyphs-x.c (x_widget_set_property):
16705         * glyphs-x.c (x_widget_property):
16706         * glyphs-x.c (BUILD_GLYPH_INST):
16707         * print.c (write_string_to_stdio_stream):
16708         * print.c (output_string):
16709         * print.c (Falternate_debugging_output):
16710         * print.c (Fexternal_debugging_output):
16711         * glyphs-msw.c (extract_xpm_color_names):
16712         * glyphs-msw.c (mswindows_xpm_instantiate):
16713         * glyphs-msw.c (bmp_instantiate):
16714         * glyphs-msw.c (resource_name_to_resource):
16715         * glyphs-msw.c (mswindows_resource_instantiate):
16716         * glyphs-msw.c (xbm_instantiate_1):
16717         * glyphs-msw.c (mswindows_xbm_instantiate):
16718         * glyphs-msw.c (mswindows_xface_instantiate):
16719         * glyphs-msw.c (mswindows_widget_instantiate):
16720         * glyphs-msw.c (add_tree_item):
16721         * glyphs-msw.c (add_tab_item):
16722         * glyphs-msw.c (mswindows_combo_box_instantiate):
16723         * glyphs-msw.c (mswindows_widget_property):
16724         * glyphs-msw.c (mswindows_combo_box_property):
16725         * glyphs-msw.c (mswindows_widget_set_property):
16726         * console.c (stuff_buffered_input):
16727         * objects-msw.c (mswindows_initialize_color_instance):
16728         * objects-msw.c (mswindows_valid_color_name_p):
16729         * objects-msw.c (mswindows_list_fonts):
16730         * objects-msw.c (mswindows_font_instance_truename):
16731         * bytecode.c (optimize_compiled_function):
16732         * select-x.c (symbol_to_x_atom):
16733         * select-x.c (x_atom_to_symbol):
16734         * select-x.c (hack_motif_clipboard_selection):
16735         * select-x.c (selection_data_to_lisp_data):
16736         * select-x.c (lisp_data_to_selection_data):
16737         * select-x.c (Fx_get_cutbuffer_internal):
16738         * select-x.c (Fx_store_cutbuffer_internal):
16739         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16740         * buffer.h (TO_INTERNAL_FORMAT): New function.
16741         * emacs.c (make_arg_list_1):
16742         * emacs.c (make_argc_argv):
16743         * emacs.c (main_1):
16744         * emacs.c (Fdump_emacs):
16745         * emacs.c (split_string_by_emchar_1):
16746         * file-coding.h:
16747         * lisp.h:
16748         * lstream.h:
16749         * symsinit.h:
16750         * device-x.c (x_init_device):
16751         * device-x.c (Fx_valid_keysym_name_p):
16752         * device-x.c (Fx_get_font_path):
16753         * device-x.c (Fx_set_font_path):
16754         * glyphs.c (bitmap_to_lisp_data):
16755         * glyphs.c (pixmap_to_lisp_data):
16756         * alloc.c (make_ext_string): Use coding system arguments.  Update
16757         all callers.
16758         * alloc.c (build_string):
16759         * callproc.c (child_setup):
16760         * callproc.c (init_callproc):
16761         * fileio.c (lisp_strerror):
16762         * fileio.c (directory_file_name):
16763         * fileio.c (Fexpand_file_name):
16764         * fileio.c (Ffile_truename):
16765         * fileio.c (Fsysnetunam):
16766         * fileio.c (Fdo_auto_save):
16767         * sysdep.c (sys_readdir):
16768         * tests.c: New file.  Allow adding C tests.
16769         Replace GET_* macros with a more comprehensible and flexible
16770         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16771         Modify all calls.
16772         Any coding system can be used to do format conversion.
16773         Eliminate enum external_data_format.
16774         Eliminate convert_to_external_format.
16775         Eliminate convert_to_internal_format.
16776         Make sure file-name, keyboard, terminal, and ctext are always
16777         defined as coding systems or aliases.  Make
16778         file-name-coding-system, terminal-coding-system, and
16779         keyboard-coding-system magical variables that are equivalent to
16780         defining the corresponding coding system aliases.
16781
16782         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16783         * file-coding.c (Fcoding_system_alias_p): New function.
16784         * file-coding.c (Fcoding_system_aliasee): New function.
16785         * file-coding.c (append_suffix_to_symbol): New function.
16786         * file-coding.c (dangling_coding_system_alias_p): New function.
16787         * file-coding.c (Ffind_coding_system):
16788         * file-coding.c (Fcopy_coding_system):
16789         * file-coding.c (encode_coding_no_conversion):
16790         * file-coding.c (syms_of_file_coding):
16791         * file-coding.c (vars_of_file_coding):
16792         Rewrite coding system alias code.
16793         Allow nested aliases, like symbolic links.
16794         Allow redefinition of coding system aliases.
16795         Prevent existence of dangling coding system aliases.
16796
16797         * dired.c (Fuser_name_completion_1):
16798         * dired.c (Fuser_name_all_completions):
16799         A crash would happen if user did QUIT in the middle of building
16800         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16801
16802         * lisp.h:
16803         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16804
16805         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16806         an unsigned char *.  Update all callers.
16807
16808 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16809
16810         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16811
16812 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16813
16814         * elhash.c (hentry_description): Use more portable definition.
16815         (resize_hash_table): Initialize new hentries using
16816         xnew_array_and_zero, thereby simplifying the code.
16817
16818         * mule-charset.c (make_charset): Make sure entire object is
16819         initialized, to avoid Purify warnings.
16820
16821         * alloc.c (resize_string): Fix unlikely crash with big strings.
16822
16823 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16824
16825         * realpath.c (xrealpath):
16826         Don't call getwd().
16827
16828 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16829
16830         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16831
16832 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16833
16834         * unexelfsgi.c (unexec): Change the way we decide which segment
16835         should be extended.
16836
16837         Assumption that .bss section should be outside the PT_LOADable
16838         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16839         it's present) is inside the 'data' segment. This would fail the
16840         test which was used to find a segment to grow and cover new
16841         heap. Instead of this assumption, I created another one - on IRIX
16842         the segment to grow should start below .bss and it's address
16843         should extent above the end of .bss. Once this segment is
16844         identified, it's grown to accommodate the new heap and new
16845         zero-length .bss section is added at the end of .data2.
16846
16847 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16848
16849         * eval.c (Feval): Wrong number of arguments should use original
16850         function, not the indirect_function version of it.
16851
16852 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16853
16854         * glyphs-x.c (x_button_instantiate): Don't add image if
16855         it is not a pixmap.
16856         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16857         is relative.
16858
16859 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16860
16861         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16862         declaration.
16863         (DEFVAR_INT_MAGIC): Ditto.
16864         (DEFVAR_BOOL_MAGIC): Ditto.
16865         * glyphs.h: Reindent backslash.
16866
16867 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16868
16869         * glyphs-widget.c (layout_query_geometry):
16870         (layout_layout): Use correct types for gheight, gwidth.
16871
16872 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16873
16874         * EmacsManager.c (QueryGeometry): Purified.
16875
16876 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16877
16878         * alloc.c (make_float): Make sure entire object is initialized, to
16879         avoid Purify warnings.
16880         (pdump_register_sub): Remove useless assignment.
16881         (pdump): Use xmalloc, not malloc.
16882         (pdump_load): Use xmalloc, not malloc.
16883
16884 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16885
16886         * callproc.c:
16887         * dired-msw.c:
16888         * fileio.c:
16889         * process-nt.c:
16890         * redisplay-msw.c:
16891         * sysdep.c: Removed redundant #include <windows.h>
16892
16893 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16894
16895         * frame.c (delete_frame_internal): Do not delete device when its
16896         implementation so declares.
16897         (delete_frame_internal): Set device selected frame to nil when
16898         last frame goes away.
16899
16900         * device-msw.c (msprinter_device_system_metrics): Implemented.
16901         (mswindows_device_system_metrics): Added 'device-dpi property.
16902
16903         * device.c: (Fdevice_printer_p): Added.
16904         Added 'offset-workspace device metric.
16905
16906         * console.h (device_metrics): Declared DM_offset_workspace.
16907
16908 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16909
16910         * fileio.c (Ffile_truename): Remove pointless and confusing
16911         initialization of elen.
16912
16913         * glyphs-widget.c: Compiler warning fixes.
16914
16915 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16916
16917         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16918         instead of a Lisp_Object as argument to make it consistent with
16919         the other LIVE_P macros.
16920         (CHECK_LIVE_PROCESS): New macro.
16921
16922         * process.c: Declare Qprocess_live_p.
16923         (Fprocess_live_p): New function.
16924         (create_process): Use PROCESS_LIVE_P.
16925         (read_process_output): Ditto.
16926         (set_process_filter): Ditto.
16927         (Fdelete_process): Ditto.
16928         (kill_buffer_processes): Ditto
16929         (process_send_signal): Use CHECK_LIVE_PROCESS.
16930         (Fprocess_input_coding_system): Check whether process is still
16931         alive (fix PR#1061).
16932         (Fprocess_output_coding_system): Ditto.
16933         (Fprocess_coding_system): Ditto.
16934         (Fset_process_input_coding_system): Ditto.
16935         (Fset_process_output_coding_system): Ditto.
16936
16937 2000-01-23  Andy Piper  <andy@xemacs.org>
16938
16939         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16940         layout and widget.
16941
16942         * glyphs.c (mark_image_instance): take into account changed
16943         image_instance format.
16944         (image_instance_equal): ditto.
16945         (image_instance_hash): ditto.
16946
16947         * glyphs-widget.c (widget_instantiate): Incorporate layout
16948         instantiation here. Delay layout of the layout until later.
16949         (layout_instantiate): deleted.
16950         (layout_query_geometry): new function. get the geometry of a
16951         layout.
16952         (layout_layout): layout a layout dynamically.
16953         (image_instantiator_widget): New function - splitting up
16954         image_instantiator_format_create_glyphs_widget for netwinder
16955         compilation.
16956         (image_instantiator_buttons):
16957         (image_instantiator_edit_fields):
16958         (image_instantiator_combo_box):
16959         (image_instantiator_scrollbar):
16960         (image_instantiator_progress_guage):
16961         (image_instantiator_tree_view):
16962         (image_instantiator_tab_control):
16963         (image_instantiator_labels):
16964         (image_instantiator_layout): ditto.
16965         (image_instantiator_format_create_glyphs_widget): Call preceding
16966         functions.
16967
16968 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16969
16970         * process.c (Fset_process_coding_system):
16971         * device-x.c (Fx_keysym_hash_table):
16972         Docstring fixes.
16973
16974         * lstream.c (Lstream_write): Return documented value, not 0.
16975
16976         * fileio.c (directory_file_name):
16977         (Fsubstitute_in_file_name):
16978         (Fsubstitute_insert_file_contents_internal):
16979         (Fwrite_region_internal):
16980         * emacs.c:
16981         * sysdep.c:
16982         * getloadavg.c:
16983         * systty.h:
16984         Remove vestigial APOLLO-conditional code.
16985
16986 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16987
16988         * getpagesize.h: Add guard macros.
16989         * libsst.h: Add guard macros.
16990         * libst.h: Add guard macros.
16991         * line-number.h: Add guard macros.
16992         * ndir.h: Add guard macros.
16993         * sysfloat.h: Add guard macros.
16994         * sysfile.h: Add guard macros.
16995         * sysproc.h: Add guard macros.
16996         * syswait.h: Add guard macros.
16997         * xintrinsic.h: Add guard macros.
16998         * xintrinsicp.h: Add guard macros.
16999         * xmmanager.h: Add guard macros.
17000         * xmmanagerp.h: Add guard macros.
17001         * xmprimitive.h: Add guard macros.
17002         * xmu.h: Add guard macros.
17003         * gpmevent.h: Add copyright statement. Add guard macros.
17004         * miscplay.h: Add guard macros.
17005         * *.h: Use consistent C-standards-approved guard macro names.
17006
17007         * opaque.c (make_opaque): Switch parameter order.
17008         * opaque.h (make_opaque): Switch parameter order.
17009         Update all callers.
17010         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17011
17012         * config.h.in (type_checking_assert): Added.
17013         (bufpos_checking_assert): Added.
17014
17015 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17016
17017         * alloc.c: Harmless pdump changes.
17018         - Use countof().
17019         - spell alignment correctly.
17020         * sysdep.c: Use countof()
17021
17022 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17023
17024         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17025         initially_selected_for_input() console method, default to 0.
17026         (semi_canonicalize_console_connection): Try to delegate to
17027         canonicalize_console_connection if no such console method.
17028         (canonicalize_console_connection): Vice versa.
17029         (print_console): Do not print nil connection.
17030
17031         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17032         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17033         (XDEVIMPF_FRAMELESS_OK): Added.
17034         (CONSOLE_INHERITS_METHOD): Added.
17035
17036         * console-msw.c (mswindows_canonicalize_console_connection):
17037         Added.
17038         (mswindows_canonicalize_device_connection): Added.
17039
17040         * console-msw.h (struct msprinter_device): Added this struct and
17041         accessor macros.
17042         (mswindows_device): Made fontlist a lisp object.
17043
17044         * device.c (semi_canonicalize_device_connection):  Try to delegate
17045         to canonicalize_device_connection if no such console method.
17046         (canonicalize_device_connection): Vice versa.
17047         (print_device): Do not print nil connection.
17048
17049         * device-msw.c (mswindows_init_device): Call InitCommonControls
17050         when have widgets.
17051         (mswindows_delete_device): Removed fontlist deallocation.
17052         (mswindows_mark_device): Added.
17053
17054         * events.c (event_equal): Added abort() at unreached code.
17055         (event_hash): Ditto.
17056
17057         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17058         fallback tags of Windows devices.
17059
17060         * general.c (syms_of_general): Initialized Qmsprinter.
17061
17062         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17063         of fallback tags of Windows devices.
17064
17065         * lisp.h: Declared Qmsprinter.
17066
17067         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17068         of strings.
17069         (mswindows_list_fonts): Ditto.
17070         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17071         that it can be used by both mswindows and msprinter devices.
17072         (initialize_font_instance): Added.
17073         (mswindows_initialize_font_instance): Use it.
17074         (msprinter_initialize_font_instance): Added.
17075
17076         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17077         and implementation flags check.
17078         (redisplay_without_hooks): Changed the call to the above.
17079         (Fredraw_device): Ditto.
17080         (Fredisplay_device): Ditto.
17081
17082         * redisplay-msw.c (get_frame_dc): Implemented.
17083         (get_frame_compdc): Implemented.
17084         (many functions): Use the two functions above to get device
17085         contexts, ether for a window or a printer.
17086
17087 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17088
17089         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17090         initialization here.
17091         (init_symbols_once_early): Call it.
17092         * emacs.c (main_1): Call it.
17093         * symsinit.h: Declare it.
17094
17095 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17096
17097         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17098         Lisp_Object.
17099         (pdump_backtrace): Ditto.
17100         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17101         (pdump_get_entry): Abort if trying to register a null pointer.
17102         (pdump_dump_data): Cleanup types when relocating.
17103         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17104         (pdump_dump_rtables): Remove bad casts.
17105         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17106         Lisp_Object instead of a EMACS_INT for the hashtable
17107         reorganization.
17108
17109 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17110
17111         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17112
17113         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17114
17115         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17116
17117         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17118
17119 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17120
17121         * faces.h (FACE_STRIKETHRU_P): Added.
17122
17123         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17124         of font variants.
17125
17126         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17127         (mswindows_set_dc_font): New function, aware of font variants,
17128         separated from mswindows_update_dc.
17129
17130         * objects-msw.h (struct mswindows_font_instance_data): Added
17131         definition.
17132
17133         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17134         cached fonts and the data structure.
17135         (mswindows_initialize_font_instance): Added creation of font data
17136         structure.
17137         (mswindows_print_font_instance): Print at least something.
17138         (mswindows_create_font_variant): Implemented.
17139         (mswindows_get_hfont): Implemented.
17140
17141 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17142
17143         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17144         prototyping problem with msvc.
17145
17146         * emacs.c (main_1): added syms_of_gui_mswindows() call
17147
17148         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17149         syms_of_gui_mswindows() function
17150
17151         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17152
17153 2000-01-18  Martin Buchholz <martin@xemacs.org>
17154
17155         * XEmacs 21.2.27 is released.
17156
17157 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17158
17159         * glyphs-eimage.c (struct tiff_error_struct):
17160         (tiff_error_func):
17161         (tiff_warning_func):
17162         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17163
17164         * unexmips.c:
17165         * unexhp9k3.c:
17166         * unexfreebsd.c:
17167         * unexec.c: Remove vestigial Lucid C code.
17168         * unexalpha.c:
17169         * unexaix.c:
17170         * termcap.c:
17171         * libsst.c: Ansify.
17172         Remove declarations of errno and strerror().
17173
17174         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17175
17176         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17177
17178 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17179
17180         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17181         Optimize.
17182
17183 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17184
17185         * md5.c:
17186         * file-coding.c:
17187         * file-coding.h:
17188         Change enum eol_type to eol_type_t.
17189
17190 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17191
17192         * gui.c (get_gui_callback): Check cons before accessing car.
17193
17194 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17195
17196         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17197         (XSETSPECIFIER_TYPE): Ditto.
17198
17199 2000-01-17  Didier Verna  <didier@xemacs.org>
17200
17201         * redisplay.c (generate_fstring_runes): compute string size in
17202         characters, not bytes.
17203
17204 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17205
17206         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17207
17208 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17209
17210         * print.c (print_error_message): Call print_prepare().
17211
17212 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17213
17214         * .dbxrc: Renamed from dbxrc.
17215
17216         * events.c (event_to_character):
17217         Use `assert (foo)' instead of `if (!foo) abort()'
17218
17219         * .gdbinit (xtype): Add documentation.
17220         * .gdbinit (check-temacs): New function.
17221         * .gdbinit (check-xemacs): New function.
17222         * dbxrc (check-xemacs): New function.
17223         * dbxrc (check-xemacs): New function.
17224
17225 2000-01-14  Andy Piper  <andy@xemacs.org>
17226
17227         * glyphs-widget.c (widget_query_geometry): Make sure that we
17228         calculate default dimensions correctly.
17229
17230 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17231
17232         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17233
17234         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17235         pdump_wire'd variable.
17236
17237         * emacs.c: (main_1): Conditionalized calls to
17238         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17239
17240 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17241
17242         * window.c (Fset_window_configuration):
17243         * sysdep.c (_start):
17244         * input-method-motif.c (res):
17245         * event-Xt.c (Xt_process_to_emacs_event):
17246         Simple compiler warning fixes.
17247
17248         * bytecode.c (funcall_compiled_function): Use the original
17249         function symbol on the backtrace list in preference to the
17250         compiled_function object in error messages.
17251
17252 2000-01-13  Andy Piper  <andy@xemacs.org>
17253
17254         * glyphs-x.c (update_widget_face): Make sure we update the widget
17255         background as well as foreground.
17256
17257 2000-01-13  Andy Piper  <andy@xemacs.org>
17258
17259         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17260         fields to subwindow.
17261         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17262         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17263         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17264         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17265
17266         * glyphs-widget.c (check_valid_tab_orientation): new function.
17267         (initialize_widget_image_instance): zero orientation and
17268         justification.
17269         (widget_instantiate): pick up orientation.
17270         (tab_control_query_geometry): return appropriate values for
17271         vertical tabs.
17272
17273         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17274         appropriate creation flags for left, right and bottom tabs.
17275
17276         * s/cygwin32.h: add tab definitions.
17277
17278 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17279
17280         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17281         frame upon hiding a subwindow.
17282         (mswindows_button_instantiate): Changed the push button style to
17283         BS_PUSHBUTTON.
17284         (mswindows_button_instantiate): Removed button BS_NOTIFY
17285         style.
17286         (mswindows_button_instantiate): Removed redundant check for
17287         a disabled gui item.
17288         (mswindows_button_instantiate): Made use of WS_TABSTOP
17289         consistent: "operable" controls (edit, button, tree, scroll) have
17290         this style, "display-only" ones (static, progress gauge) do
17291         not. This style is currently ignored by XEmacs though. Also,
17292         removed the WS_EX_CONTROLPARENT style - it is not for children,
17293         it is for their parents!
17294         (mswindows_edit_field_instantiate): Ditto.
17295         (mswindows_progress_gauge_instantiate): Ditto.
17296         (mswindows_tree_view_instantiate): Ditto.
17297         (mswindows_tab_control_instantiate): Ditto.
17298         (mswindows_scrollbar_instantiate): Ditto.
17299         (mswindows_combo_box_instantiate): Ditto.
17300         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17301         style to the "clip" window.
17302         (mswindows_button_instantiate): Removed compilation warning by
17303         equally typing terms of the ?: operator.
17304
17305 2000-01-12  Didier Verna  <didier@xemacs.org>
17306
17307         * redisplay.c (generate_fstring_runes): new parameter holding the
17308         last modeline-format extent.
17309         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17310         extent, fill the glyph block with it.
17311         (generate_fstring_runes): handle these parameters.
17312         (generate_formatted_string_db): ditto.
17313
17314         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17315         glyphs'extents in the modeline.
17316
17317 1999-01-11  Mike Woolley  <mike@bulsara.com>
17318
17319         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17320         256Mb, as a workaround for the non-starting problem many people
17321         have experienced.
17322
17323 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17324
17325         * console-tty.c (Fset_console_tty_output_coding_system):
17326         Force redrawing tty frame.
17327
17328 2000-01-10  Didier Verna  <didier@xemacs.org>
17329
17330         * redisplay.c (generate_fstring_runes): fix size computation bug.
17331
17332 2000-01-09  William M. Perry <wmperry@aventail.com>
17333
17334         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17335
17336 2000-01-09  Andy Piper  <andy@xemacs.org>
17337
17338         * glyphs-msw.c: index -> i to avoid shadows.
17339         (xbm_create_bitmap_from_data): make static.
17340         (check_valid_string_or_int): deleted.
17341         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17342
17343         * glyphs-x.c (x_update_subwindow): remove unused args.
17344
17345         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17346         back pointer - this is done in allocate_image_instance.
17347         (query_string_font): return Qnil to make the compiler happy.
17348         (unmap_subwindow): set to ~0 to make the compiler happy.
17349         (glyph_query_geometry): comment out until used.
17350         (glyph_layout): ditto.
17351
17352 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17353
17354         * insdel.c (signal_after_change): Remove extraneous unbind_to().