update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
4         changed to normal function.
5         (encode_char_2): Likewise.
6
7         * mule-charset.c (decoding_table_put_char): Copied from
8         char-ucs.h; changed to normal function.
9         (encode_char_2): Likewise.
10
11 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
14         New extern.
15         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
16         (encode_char_2_search_children): New inline function.
17         (encode_char_2): Refer
18         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
19         and use `encode_char_2_search_children'.
20
21 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
22
23         * mule-charset.c
24         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
25         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
26         (vars_of_mule_charset): Add new variable
27         `display-coded-charset-priority-use-inheritance' and
28         `display-coded-charset-priority-use-hierarchy-order'.
29
30 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
31
32         * char-ucs.h (Q_subsumptive): New extern.
33         (Q_denotational): Likewise.
34         (encode_char_2): Search children specified by `->subsumptive' and
35         `->denotational'.
36
37 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * mule-charset.c (complex_vars_of_mule_charset): Modify the
40         X-registry of `ucs-bmp'.
41
42 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * chartab.c (char-variants): Refer `->subsumptive',
45         `->denotational' and `->identical' as same as `->ucs-unified'.
46
47 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
48
49         * chartab.c (Fput_char_attribute): Convert char-specs in value of
50         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
51         links.
52
53 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * text-coding.c: Add EXFUN for `Fregexp_quote'.
56         (decode_add_er_char): Fix problem about infinite loop when a CCS
57         specified in `coded-charset-entity-reference-alist' is not
58         existed.
59
60 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * mule-charset.c (syms_of_mule_charset): Rename
63         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
64
65 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
66
67         * fns.c (simplify_char_spec): Don't allocate new character-object
68         if specified char_spec does not have any CCS-features.
69
70         * chartab.h: Add EXFUN for Fdefine_char.
71
72         * chartab.c: Delete EXFUN for Fdefine_char.
73
74 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * fns.c (simplify_char_spec): Use Fdefine_char instead of
77         Ffind_char for char-spec.
78
79 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
80
81         * lisp-disunion.h (XCHARVAL): Fix condition about
82         SIZEOF_EMACS_INT.
83
84 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
85
86         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
87         <int> for `code'.
88         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
89         point; use <Emchar> instead of <int> for character-id.
90
91 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
92
93         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
94         (make_char): Likewise.
95         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
96         environment.
97         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
98         instead of <int> as the type of return value; use <Lisp_Object>
99         instead of <Emchar> as the type of argument.
100         (XCHARVAL[macro version]): Cast the result into <Emchar>.
101
102         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
103         syntaxcode> instead of <int>.
104
105 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
106
107         * chartab.c (put_char_composition): Use DECODE_CHAR to get
108         character corresponding with UCS code point.
109         (Fput_char_attribute): Likewise.
110
111         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
112         character in the UCS decoding-table if the char-id is not equal to
113         the UCS code point.
114
115 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
118         for aliases; write `description'; write
119         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
120         not 0.
121
122 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * chartab.c (Fsave_char_attribute_table): Don't use
125         `save_charset_properties'.
126
127         * mule-charset.c (Fsave_charset_properties): Renamed from
128         `save_charset_properties' and changed to Lisp function again;
129         write property `type' as `CCS'; write properties `final-byte' and
130         `mother' if they exists.
131         (syms_of_mule_charset): Revive builtin function
132         `save-charset-properties' when HAVE_LIBCHISE is defined.
133
134 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
137         instead of Vexec_directory.
138         (char_attribute_system_db_file): Likewise.
139
140 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
141
142         * chartab.c (Fsave_char_attribute_table): Use
143         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
144         defined.
145
146         * mule-charset.c (save_charset_properties): Renamed from
147         `Fsave_charset_properties'; changed to non-Lisp function.
148         (syms_of_mule_charset): Abolish builtin function
149         `save-charset-properties'.
150
151 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * mule-charset.c (Fsave_charset_properties): New function when
154         HAVE_LIBCHISE is defined.
155         (syms_of_mule_charset): Add new builtin function
156         `save-charset-properties' when HAVE_LIBCHISE is defined.
157
158 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
159
160         * chartab.c (Fput_char_attribute): Convert char-specs in value of
161         `{<-|->}ancient[^*]*' to characters and put reverse links.
162         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
163         for `{<-|->}ancient[^*]*'.
164
165 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
166
167         * chartab.c (Fput_char_attribute): Convert char-specs in value of
168         `{<-|->}original[^*]*' to characters and put reverse links.
169         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
170         for `{<-|->}original[^*]*'.
171
172 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
175
176 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
177
178         * mule-charset.c (Qsystem_char_id): New variable.
179
180         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
181         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
182
183 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
184
185         * chartab.c (Fput_char_attribute): When processing a reference of
186         a character, put into the end of the reversed reference of each
187         target character.
188
189 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
190
191         * chartab.c (Q_same): Deleted.
192         (Q_same_of): Deleted.
193         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
194         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
195         for `{<-|->}same'.
196         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
197
198 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * chartab.c (Q_vulgar): Deleted.
201         (Q_vulgar_of): Deleted.
202         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
203         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
204         for `{<-|->}vulgar'.
205         (syms_of_chartab): Don't define `{<-|->}vulgar'.
206
207 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * chartab.c (Fput_char_attribute): Convert char-specs in value of
210         `{<-|->}wrong[^*]*' to characters and put reverse links.
211         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
212         for `{<-|->}wrong[^*]*'.
213
214 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * chartab.c (Q_vulgar): New variable.
217         (Q_vulgar_of): New variable.
218         (Fput_char_attribute): Convert char-specs in value of
219         `{->|<-}vulgar' to characters and put reverse links.
220         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
221         for `{->|<-}vulgar'.
222         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
223
224 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * text-coding.c (decode_add_er_char): Must to quote prefix string
227         as regexp.
228
229 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * mule-charset.c (put_char_ccs_code_point): Store characters of
232         =ucs whose code_points >= 0xF0000.
233
234 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
237         CHISE.
238         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
239         CHISE.
240         (complex_vars_of_mule_charset): Add new coded-charset
241         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
242         builtin characters over 0xEFFFF.
243
244         * chartab.c (syms_of_chartab): Don't define symbol
245         `system-char-id' in every case.
246
247         * char-ucs.h (Qsystem_char_id): New extern variable.
248         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
249
250 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * text-coding.c (char_encode_utf8): Try to use entity-references
253         for U-000F0000 ...  U-0010FFFF.
254
255 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * text-coding.c (ER_BUF_SIZE): New macro.
258         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
259         `er_buf'.
260         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
261         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
262
263 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
264
265         * chartab.c (find_char_feature_in_family): New function.
266         (Fchar_feature): Use `find_char_feature_in_family' with
267         `->identical', `<-subsumptive' and `<-denotational'.
268
269 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
270
271         * text-coding.c (char_encode_as_entity_reference): Allow prefix
272         within 8 characters; fix infinite loop.
273
274 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * chartab.c (Q_same): New variable.
277         (Q_same_of): New variable.
278         (Fput_char_attribute): Convert char-specs in value of
279         `{->|<-}same' to characters and put reverse links.
280         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
281         for `{->|<-}same'.
282         (syms_of_chartab): Add new symbols `{->|<-}same'.
283
284 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * chartab.c (Q_component): New variable.
287         (Q_component_of): Likewise.
288         (Fput_char_attribute): Convert char-specs in value of
289         `{->|<-}ideographic-component-forms' to characters and put reverse
290         links.
291         (syms_of_chartab): Add new symbols
292         `{->|<-}ideographic-component-forms'.
293
294 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
295
296         * chartab.c (Q_identical): New variable.
297         (Q_identical_from): New variable.
298         (Fchar_feature): Regard `->identical' as a feature to find
299         ancestors.
300         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
301         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
302         for `{->|<-}identical'.
303         (syms_of_chartab): Add new symbols `{->|<-}identical'.
304
305 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
306
307         * char-ucs.h (encode_char_2): New inline function.
308         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
309
310 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
311
312         * chartab.c (Fput_char_attribute): Convert char-specs to
313         characters in value of `ideographic-structure'.
314         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
315         for `{<-|->}simplified(@...)'.
316         (Fdefine_char): bTry to use predefined character's id.
317
318 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
319
320         * fns.c (simplify_char_spec): Try to convert builtin chars to
321         defined chars.
322
323 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * chartab.c (Fput_char_attribute): Convert char-specs in value of
326         `<-simplified[^*]*' to characters and put reverse links.
327
328 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
329
330         * chartab.c (Q_subsumptive): Renamed from Q_unified.
331         (Q_subsumptive_from): Renamed from Q_unified_from.
332         (Fchar_feature): Use `Q_subsumptive_from' instead of
333         `Q_unified_from'.
334         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
335         `Q_unified'.
336         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
337         `<-unified' to `<-subsumptive'.
338
339 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
340
341         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
342         inheritance itself; fix typo; stop recursive search if cyclic
343         inheritance is found.
344
345 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
346
347         * chartab.c (Q_denotational): New variable.
348         (Q_denotational_from): New variable.
349         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
350         (put_char_attribute): New function.
351         (Fput_char_attribute): Use `put_char_attribute'; regard
352         `->denotational' and `<-denotational' as same as `->unified' and
353         `<-unified'.
354         (syms_of_chartab): Add new symbols `->denotational' and
355         `<-denotational'.
356
357 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
358
359         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
360         `Fget_char_attribute'.
361         (Fchar_variants): Likewise.
362         (get_char_table): Likewise.
363         (Fchar_feature): New function.
364         (put_char_composition): Use `Fchar_feature' instead of
365         `Fget_char_attribute'.
366         (Fput_char_attribute): Likewise; don't put the target character
367         into its `->unified' value.
368         (syms_of_chartab): Add new builtin function `char-feature'.
369
370 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
371
372         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
373         `Fget_char_attribute'.
374         (char_encode_utf8): Likewise.
375
376         * chartab.h: Add an EXFUN for `Fchar_feature'.
377
378 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
379
380         * chartab.c (Vnext_defined_char_id): New variable.
381         (Fput_char_attribute): Accept characters in `->unified'.
382         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
383         new characters which are not related with builtin char-id ranges.
384         (vars_of_chartab): Add new variable `next-defined-char-id'.
385
386 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
387
388         * chartab.c (Q_unified): New variable.
389         (Q_unified_from): New variable.
390         (Fput_char_attribute): Add code for `->unified'.
391         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
392         XEmacs CHISE.
393
394 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * mule-charset.c (decode_ccs_conversion): New function.
397         (decode_defined_char): Use `decode_ccs_conversion'.
398         (decode_builtin_char): Likewise.
399
400 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * char-ucs.h: Change some charset-ids of private coded-charsets.
403
404 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
405
406         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
407         (char_encode_as_entity_reference): Likewise.
408         (decode_coding_big5): Modify for `decode_defined_char' and
409         `DECODE_CHAR'.
410         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
411         avoid compiler warning.
412         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
413
414         * mule-charset.c (decode_defined_char): Add new argument
415         `without_inheritance'.
416         (Fdecode_char): Add new optional argument `without_inheritance'.
417         (Fdecode_builtin_char): Modify for `Fdecode_char'.
418
419         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
420         (simplify_char_spec): Likewise.
421
422         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
423         setting.
424
425         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
426         (map_char_table): Likewise.
427         (Fdefine_char): Use `Fdecode_char' without inheritance.
428         (Ffind_char): Modify for `Fdecode_char'.
429
430         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
431
432         * char-ucs.h (decode_defined_char): Add new argument
433         `without_inheritance'.
434         (DECODE_CHAR): Likewise.
435         (MAKE_CHAR): Modify for `DECODE_CHAR'.
436
437 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * chartab.c (Vchise_system_db_directory): New variable.
440         (vars_of_chartab): Add new variable `chise-system-db-directory'.
441
442 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * chartab.c: EXFUN `Fmount_char_attribute_table'.
445         (print_chartab_range): Don't define when `UTF2000' is defined.
446         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
447         `CHISE_DS_open'.
448
449 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
450
451         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
452         and optional argument `rehash' is specified, call
453         `open_chise_data_source_maybe' before
454         `chise_ds_foreach_char_feature_name' is called.
455
456 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
457
458         * chartab.c (char_attribute_list_reset_map_func): New function
459         when HAVE_LIBCHISE is defined.
460         (Fchar_attribute_list): Add new optional argument `rehash' when
461         HAVE_LIBCHISE is defined.
462         (open_chise_data_source_maybe): Use "chise-db" instead of
463         "char-db".
464         (char_attribute_system_db_file): Likewise.
465         (Fload_char_attribute_table): Use
466         `chise_feature_foreach_char_with_value' instead of
467         `chise_char_feature_value_iterate'.
468
469 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * chartab.c (Vchise_db_directory): New variable.
472         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
473
474 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
477         instead of HAVE_CHISE to specify using with libchise.
478
479         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
480
481         * chartab.h: Don't use HAVE_CHISE_CLIENT.
482
483         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
484         defined or HAVE_LIBCHISE_LIBCHISE is defined.
485         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
486         is defined.
487         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
488         HAVE_CHISE to specify using with libchise.
489         (syms_of_chartab): Don't define symbol `system-char-id' when
490         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
491
492 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
495         specify CHISE DB support.
496         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
497         of `char_attribute_system_db_file' to check feature DB file.
498
499         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
500         HAVE_CHISE_CLIENT to specify CHISE DB support.
501
502         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
503         specify CHISE DB support.
504         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
505         not defined.
506         (Freset_char_attribute_table): Use `chise_feature_setup_db'
507         instead of `char_attribute_system_db_file' to check feature DB
508         file.
509
510 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
513         `HAVE_CHISE_CLIENT'.
514
515 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
518         (Fsave_charset_mapping_table): Don't use
519         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
520
521         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
522         (HAVE_LIBCHISE): New macro.
523
524         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
525
526         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
527         (Fsave_char_attribute_table): Don't use
528         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
529
530 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
531
532         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
533         defined.
534         (save_uint16_byte_table): Likewise.
535         (save_byte_table): Likewise.
536         (char_table_get_db): Use `chise_ds_load_char_feature_value'
537         instead of `chise_char_load_feature_value'.
538         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
539
540 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
541
542         * chartab.h (struct Lisp_Char_Table): Delete member
543         `feature_table' if CHISE is defined.
544
545         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
546         (Fcopy_char_table): Likewise.
547         (char_table_open_db_maybe): Likewise.
548         (char_table_close_db_maybe): Likewise.
549         (char_table_get_db): Likewise.
550         (Fmount_char_attribute_table): Likewise.
551         (Fload_char_attribute_table): Likewise.
552
553 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * mule-charset.c (load_char_decoding_entry_maybe): Use
556         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
557         `chise_ccs_decode'.
558
559 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
560
561         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
562         instead of `chise_open_data_source'.
563         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
564         `chise_ds_close'.
565
566 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
567
568         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
569         instead of `chise_ds_open_feature_table'.
570         (char_table_close_db_maybe): Don't use `chise_ft_close'.
571
572 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
573
574         * mule-charset.c (Fsave_charset_mapping_table): Use
575         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
576         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
577         `chise_ccs_sync' instead of `chise_ccst_close'.
578         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
579
580         * chartab.c (open_chise_data_source_maybe): Modify for
581         `chise_open_data_source'.
582         (char_table_open_db_maybe): Modify for
583         `chise_ds_open_feature_table'.
584
585 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
586
587         * mule-charset.c (load_char_decoding_entry_maybe): Use
588         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
589         `chise_ccst_close'.
590
591 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
592
593         * mule-charset.c (Fsave_charset_mapping_table): Use
594         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
595         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
596         `chise_dt_put_char' and `chise_dt_close'.
597         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
598         `chise_ccs_decode' and `chise_ccst_close' instead of
599         `chise_ds_open_decoding_table', `chise_dt_get_char' and
600         `chise_dt_close'.
601
602         * chartab.c (char_table_get_db): Use
603         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
604         (load_char_attribute_table_map_func): Modify for
605         `chise_char_feature_value_iterate'.
606         (Fload_char_attribute_table): Use
607         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
608
609 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
610
611         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
612
613 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
614
615         * chartab.c (put_char_table): Modify for inherited coded-charsets
616         in XEmacs CHISE.
617
618 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
619
620         * chartab.c (Fput_char_table_map_function): Fixed.
621         (word_boundary_p): Don't check charset in XEmacs CHISE.
622
623 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
624
625         * mule-charset.c (Fsave_charset_mapping_table): Use
626         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
627         instead of `chise_open_decoding_table'; refer
628         `default_chise_data_source'; use `chise_dt_close' instead of
629         `chise_close_decoding_table'.
630         (load_char_decoding_entry_maybe): Likewise.
631
632         * chartab.c (default_chise_data_source): New variable when `CHISE'
633         is defined.
634         (Fcopy_char_table): `ct->ds' is deleted.
635         (open_chise_data_source_maybe): New function.
636         (Fclose_char_data_source): New function.
637         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
638         use `chise_ds_open_feature_table' instead of
639         `chise_open_feature_table'.
640         (char_table_close_db_maybe): Use `chise_ft_close' instead of
641         `chise_close_feature_table'; `cit->ds' is deleted.
642         (syms_of_chartab): Add new builtin function
643         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
644
645         * chartab.h (default_chise_data_source): New extern variable.
646         (open_chise_data_source_maybe): New prototype.
647         (struct Lisp_Char_Table): Delete `ds'.
648
649 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
650
651         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
652         `CHISE' is defined.
653
654 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
655
656         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
657         not defined; add code for non-libchise setting.
658         (char_table_close_db_maybe): Likewise.
659         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
660         defined.
661         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
662         even if `CHISE' is not defined.
663         (Freset_char_attribute_table): Likewise.
664         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
665         `char_table_close_db_maybe' even if `CHISE' is not defined; use
666         `char_table_get_db'.
667         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
668         `char_table_close_db_maybe' even if `CHISE' is not defined.
669
670 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
671
672         * chartab.c (char_table_open_db_maybe): New function.
673         (char_table_close_db_maybe): New function.
674         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
675         (Freset_char_attribute_table): Likewise.
676         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
677         `char_table_close_db_maybe'.
678         (Fload_char_attribute_table): Likewise.
679
680 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
681
682         * chartab.c: Don't include <chise.h> because it is included in
683         chartab.h.
684         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
685         defined.
686         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
687         `CHISE' is defined.
688         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
689         `CHISE' is defined.
690         (Fclose_char_attribute_table): Close `ct->feature_table' and
691         `ct->ds' when `CHISE' is defined.
692         (Freset_char_attribute_table): Likewise.
693         (load_char_attribute_maybe): Use `cit->ds' and
694         `cit->feature_table' when `CHISE' is defined.
695         (Fload_char_attribute_table): Likewise.
696
697         * chartab.h: Include <chise.h> when `CHISE' is defined.
698         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
699         when `CHISE' is defined.
700
701 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
702
703         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
704         is defined.
705         (char_table_description): Likewise.
706         (Fmake_char_table): Likewise.
707         (Fcopy_char_table): Likewise.
708         (Fmount_char_attribute_table): Likewise.
709         (Fclose_char_attribute_table): Likewise.
710         (Freset_char_attribute_table): Likewise.
711         (load_char_attribute_maybe): Likewise.
712         (Fload_char_attribute_table): Likewise.
713
714         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
715         defined.
716
717 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
718
719         * chartab.c (load_char_attribute_table_map_func): New function
720         when CHISE is defined.
721         (Qload_char_attribute_table_map_function): Don't define when CHISE
722         is defined.
723         (Fload_char_attribute_table_map_function): Likewise.
724         (Fload_char_attribute_table): Use libchise when `CHISE' is
725         defined.
726         (syms_of_chartab): Don't define
727         `load-char-attribute-table-map-function' when CHISE is defined.
728
729 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
730
731         * chartab.c: Include <chise.h> when `CHISE' is defined.
732         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
733
734 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * mule-charset.c (charset_code_point): Fix problem when searching
737         in mother CCS fails with `defined_only' mode.
738
739 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
740
741         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
742         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
743         (put_char_composition): Likewise.
744         (Fput_char_attribute): Likewise.
745         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
746
747 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
748
749         * chartab.c (Q_ucs): Deleted.
750         (Fput_char_attribute): Don't refer `->ucs'.
751         (Fdefine_char): Likewise.
752         (Ffind_char): Likewise.
753         (syms_of_chartab): Delete `->ucs'.
754
755 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
756
757         * mule-charset.c (Qmap_cns11643_2): Renamed from
758         `Qchinese_cns11643_2'.
759         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
760         `chinese-cns11643-2'.
761         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
762         `=cns11643-2'.
763
764 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
765
766         * mule-charset.c (Qmap_cns11643_1): Renamed from
767         `Qchinese_cns11643_1'.
768         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
769         `chinese-cns11643-1'.
770         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
771         `=cns11643-1'.
772
773 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
774
775         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
776         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
777         `chinese-gb12345'.
778         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
779         `=gb12345'.
780
781 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
782
783         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
784         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
785         `chinese-gb2312'.
786         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
787         `=gb2312'.
788
789 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
790
791         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
792         (syms_of_mule_charset): Add new symbol `=big5' instead of
793         `chinese-big5'.
794         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
795
796 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
797
798         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
799         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
800         `korean-ksc5601'.
801         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
802         `=ks-x1001'.
803
804 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
805
806         * mule-charset.c (Qmap_jis_x0212): Renamed from
807         `Qjapanese_jisx0212'.
808         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
809         `japanese-jisx0212'.
810         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
811         `=jis-x0212'.
812
813 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
814
815         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
816         `Qjapanese_jisx0208'.
817         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
818         of `japanese-jisx0208'.
819         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
820         `=jis-x0208-1983'.
821
822 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
823
824         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
825         `Qjapanese_jisx0208_1978'.
826         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
827         of `japanese-jisx0208-1978'.
828         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
829         `=jis-x0208-1978'.
830
831 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
832
833         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
834         only for XEmacs CHISE.
835
836 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
837
838         * char-ucs.h: Compact non-ISO-IR charset-ids.
839         (LEADING_BYTE_UCS): Changed to -177.
840         (LEADING_BYTE_CONTROL_1): Changed to -77.
841         (LEADING_BYTE_UCS_BMP): Changed to -176.
842         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
843
844 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
845
846         * mule-charset.c (Qiso_ir): New variable.
847         (Fmake_charset): Recognise new property `iso-ir'.
848         (syms_of_mule_charset): Add new symbol `iso-ir'.
849
850 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
851
852         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
853         n to -n; charset-id of non ISO-IR sets are changed to positive
854         numbers.
855
856 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
857
858         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
859         for &MCS-XXXXXXXX; values.
860
861 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
862
863         * mule.c (Vxemacs_chise_version): Renamed from
864         `Vutf_2000_version'.
865         (vars_of_mule): Add new variable `xemacs-chise-version'; define
866         `utf-2000-version' as an alias for `xemacs-chise-version'.
867
868 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
869
870         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
871         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
872         defined.
873
874         * config.h.in (CHISE): New macro.
875
876 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
877
878         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
879         of `ucs'.
880         (Qmap_ucs): New variable.
881         (syms_of_mule_charset): Add new symbol `=ucs'.
882         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
883
884         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
885         (simplify_char_spec): Likewise.
886
887         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
888
889         * char-ucs.h (Qmap_ucs): New extern variable.
890
891 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
892
893         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
894         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
895         don't define it when UTF2000 is not defined.
896         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
897         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
898         when UTF2000 is not defined.
899         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
900         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
901
902 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
903
904         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
905
906         * mule-charset.c (Vcharset_ucs_gb): Deleted.
907         (Qucs_gb): Deleted.
908         (syms_of_mule_charset): Delete `ucs-gb'.
909         (complex_vars_of_mule_charset): Likewise.
910
911 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
912
913         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
914
915         * mule-charset.c (Vcharset_ucs_cns): Deleted.
916         (Qucs_cns): Deleted.
917         (syms_of_mule_charset): Delete `ucs-cns'.
918         (complex_vars_of_mule_charset): Likewise.
919
920 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
921
922         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
923
924         * mule-charset.c (Vcharset_ucs_jis): Deleted.
925         (Qucs_jis): Deleted.
926         (syms_of_mule_charset): Delete `ucs-jis'.
927         (complex_vars_of_mule_charset): Likewise.
928
929 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
930
931         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
932
933         * mule-charset.c (Vcharset_ucs_ks): Deleted.
934         (Qucs_ks): Deleted.
935         (syms_of_mule_charset): Delete `ucs-ks'.
936         (complex_vars_of_mule_charset): Likewise.
937
938 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
939
940         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
941         (Qideograph_daikanwa_2): Deleted.
942         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
943         (complex_vars_of_mule_charset): Likewise.
944
945         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
946         (LEADING_BYTE_DAIKANWA_1): Deleted.
947         (LEADING_BYTE_DAIKANWA_2): Deleted.
948         (MIN_CHAR_DAIKANWA): Deleted.
949         (MAX_CHAR_DAIKANWA): Deleted.
950
951 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
952
953         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
954         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
955         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
956
957         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
958         (Vcharset_ideograph_daikanwa): Deleted.
959         (Qideograph_hanziku_{1..12}): Deleted.
960         (Qideograph_daikanwa): Deleted.
961         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
962         Vcharset_ideograph_daikanwa.
963         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
964         `ideograph-hanziku-{1..12}'.
965         (complex_vars_of_mule_charset): Likewise.
966
967 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
968
969         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
970
971         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
972         (Qideograph_gt_pj_{1..11}): Deleted.
973         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
974         (complex_vars_of_mule_charset): Likewise.
975
976 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
977
978         * mule-charset.c (Vcharset_ucs_big5): Deleted.
979         (Vcharset_ideograph_gt): Deleted.
980         (Qucs_big5): Deleted.
981         (Qideograph_gt): Deleted.
982         (syms_of_mule_charset): Delete symbol `ucs-big5' and
983         `ideograph-gt'.
984         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
985         and `ideograph-gt'.
986
987         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
988         (LEADING_BYTE_GT): Deleted.
989         (MIN_CHAR_GT): Deleted.
990         (MAX_CHAR_GT): Deleted.
991
992 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
993
994         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
995
996 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
997
998         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
999         (save_uint16_byte_table): Likewise.
1000         (save_byte_table): Likewise; convert values by it.
1001         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1002         for `ideographic-structure'.
1003         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1004         as the filter for `ideographic-structure'.
1005
1006 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1007
1008         * chartab.c (put_char_composition): New function.
1009         (Fput_char_attribute): Use `put_char_composition'; use
1010         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1011
1012         * fns.c (simplify_char_spec): New function.
1013         (char_ref_simplify_spec): New function.
1014         (Fchar_refs_simplify_char_specs): New function.
1015         (syms_of_fns): Add new builtin function
1016         `char-refs-simplify-char-specs'.
1017
1018 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1019
1020         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1021         (Qideograph_cbeta): Deleted.
1022         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1023         (complex_vars_of_mule_charset): Likewise.
1024
1025         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1026         (MIN_CHAR_CBETA): Comment out.
1027         (MAX_CHAR_CBETA): Likewise.
1028
1029 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1030
1031         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1032         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1033         CHISE client feature.
1034
1035 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1036
1037         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1038
1039 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1040
1041         * mule-charset.c (charset_lookup_description_1): Use
1042         `NUM_LEADING_BYTES' in UTF-2000.
1043
1044 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1045
1046         * char-ucs.h (GC_CHARSETP): Deleted.
1047
1048 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1049
1050         * char-ucs.h (MAX_CHAR_GT): Updated.
1051
1052 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1053
1054         * text-coding.c: Sync with XEmacs 21.4.10.
1055
1056 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1057
1058         * mule-charset.c (Vcharset_china3_jef): Deleted.
1059         (Qchina3_jef): Deleted.
1060         (syms_of_mule_charset): Don't define `china3-jef'.
1061         (complex_vars_of_mule_charset): Likewise.
1062
1063         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1064         (MIN_CHAR_CHINA3_JEF): Comment out.
1065         (MAX_CHAR_CHINA3_JEF): Comment out.
1066
1067 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1068
1069         * mule-charset.c (Vcharset_ucs_gb): New variable.
1070         (Qucs_gb): New variable.
1071         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1072         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1073
1074         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1075
1076 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1077
1078         * mule-charset.c (charset_code_point): if a coded-charset has a
1079         final-byte, don't inherit the builtin range of the mother CCS.
1080
1081 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1082
1083         * mule-charset.c (charset_code_point): Fix problem about
1084         inheritance.
1085
1086 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1087
1088         * mule-charset.c (decode_builtin_char): Reorganized.
1089
1090 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1091
1092         * text-coding.c (char_encode_as_entity_reference): Modify for
1093         `charset_code_point'.
1094         (char_encode_shift_jis): Likewise.
1095         (char_encode_big5): Likewise.
1096         (char_encode_utf8): Likewise.
1097         (char_encode_iso2022): Likewise.
1098
1099         * mule-charset.c (charset_code_point): Add new argument
1100         `defined_only'.
1101         (Fencode_char): Add new optional argument `defined_only'.
1102
1103         * chartab.c (put_char_table): Modify for `charset_code_point'.
1104
1105         * char-ucs.h (charset_code_point): Add new argument
1106         `defined_only'.
1107         (encode_char_1): Modify for `charset_code_point'.
1108
1109 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1112         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1113
1114 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1115
1116         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1117         (Qjis_x0208): Likewise.
1118         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1119         XCHARSET_FINAL(charset).
1120         (charset_code_point): Modify condition for final-byte based
1121         builtin-chars.
1122         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1123         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1124         in UTF-2000; specify `=jis-x0208' as the mother of
1125         `japanese-jisx0208-1978', `japanese-jisx0208' and
1126         `japanese-jisx0208-1990' in UTF-2000.
1127
1128 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1129
1130         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1131
1132 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1133
1134         * text-coding.c (decode_coding_utf16): Support UTF-16.
1135         (char_encode_utf16): Fixed.
1136
1137 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138
1139         * text-coding.c (Qutf16): New variable in MULE.
1140         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1141         (Fcoding_system_type): Add `utf-16' in MULE.
1142         (struct detection_state): Add a structure for utf16 in MULE.
1143         (detect_coding_type): Setup st->utf16.mask in MULE.
1144         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1145         MULE.
1146         (reset_encoding_stream): Use `char_encode_utf16' and
1147         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1148         (detect_coding_utf16): New function [incomplete].
1149         (decode_coding_utf16): New function [support only UCS-2].
1150         (char_encode_utf16): New function.
1151         (char_finish_utf16): New function.
1152         (syms_of_file_coding): Add new symbol `utf-16'; setup
1153         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1154
1155         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1156         UTF-2000.
1157         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1158         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1159
1160 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1161
1162         * chartab.c (put_char_table): When a charset is specified as a
1163         range in UTF-2000, don't support builtin characters.
1164
1165 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1166
1167         * mule-charset.c (decode_defined_char): Don't refer external
1168         database if Qunbound or Qnil are found.
1169         (Fsave_charset_mapping_table): Don't define it if
1170         HAVE_CHISE_CLIENT is not defined.
1171         (Freset_charset_mapping_table): New function.
1172         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1173         found in external database.
1174         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1175         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1176         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1177
1178 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1179
1180         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1181         not.
1182
1183 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1184
1185         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1186         Q_lowercase, Q_uppercase in UTF-2000.
1187
1188         * chartab.c (get_char_table): Add special code for the standard
1189         case table to use character attribute `->downcase' and
1190         `->uppercase' for case operations in UTF-2000.
1191
1192         * casetab.c (Qflippedcase): New variable in UTF-2000.
1193         (Q_lowercase): Likewise.
1194         (Q_uppercase): Likewise.
1195         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1196         and `->uppercase' in UTF-2000.
1197         (complex_vars_of_casetab): Assign attribute name `downcase' to
1198         downcase and CANON table of Vstandard_case_table in UTF-2000;
1199         assign attribute name `flippedcase' to upcase and EQV table of
1200         Vstandard_case_table in UTF-2000.
1201
1202 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * text-coding.c (decode_add_er_char): Support isolated-chars.
1205         (char_encode_as_entity_reference): Likewise.
1206
1207 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1208
1209         * emacs.c (Vutf_2000_lisp_directory): New variable.
1210         (Vconfigure_utf_2000_lisp_directory): Likewise.
1211         (complex_vars_of_emacs): Add new variable
1212         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1213
1214 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1215
1216         * char-ucs.h (DECODE_CHAR): Delete special code for
1217         `chinese-big5-1' and `chinese-big5-2'.
1218
1219         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1220         (Qbig5_2): Likewise.
1221         (decode_defined_char): Support CONVERSION_BIG5_1 and
1222         CONVERSION_BIG5_2.
1223         (decode_builtin_char): Likewise.
1224         (charset_code_point): Likewise.
1225         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1226         'conversion in UTF-2000.
1227         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1228         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1229         `chinese-big5-2' as children of `chinese-big5'.
1230
1231         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1232         (CONVERSION_BIG5_2): New macro.
1233
1234 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1235
1236         * text-coding.c (char_encode_big5): Support entity-reference.
1237
1238 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1239
1240         * text-coding.c (char_encode_as_entity_reference): New function.
1241         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1242
1243 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1244
1245         * text-coding.c (decode_coding_big5): Support entity-reference
1246         decoding feature.
1247
1248 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1249
1250         * text-coding.c (allocate_coding_system): Initialize initial
1251         charsets for CODESYS_UTF8.
1252         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1253         charset-g2 for CODESYS_UTF8.
1254         (decode_coding_utf8): Use charset-g0.
1255         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1256         to force variants to map to UCS.
1257
1258 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1259
1260         * text-coding.c (Qutf_8_mcs): New variable.
1261         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1262         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1263         instead of `utf-8' in UTF-2000.
1264
1265 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1266
1267         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1268         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1269         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1270         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1271         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1272         CONVERSION_96x96x96x96 are introduced.
1273         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1274         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1275         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1276
1277         * char-ucs.h (CONVERSION_94): New macro.
1278         (CONVERSION_96): New macro.
1279         (CONVERSION_94x94): New macro.
1280         (CONVERSION_96x96): New macro.
1281         (CONVERSION_94x94x94): New macro.
1282         (CONVERSION_96x96x96): New macro.
1283         (CONVERSION_94x94x94x60): New macro.
1284         (CONVERSION_94x94x94x94): New macro.
1285         (CONVERSION_96x96x96x96): New macro.
1286
1287 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1288
1289         * chartab.c (Vcharacter_variant_table): Deleted.
1290         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1291         of `Vcharacter_variant_table'.
1292         (Fput_char_attribute): Likewise.
1293         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1294         (complex_vars_of_chartab): Likewise.
1295
1296 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1297
1298         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1299
1300         * fns.c (Qideographic_structure): New variable.
1301         (Qkeyword_char): New variable.
1302         (ids_format_unit): New function.
1303         (Fideographic_structure_to_ids): New function.
1304         (syms_of_fns): Add new symbols `ideographic-structure' and
1305         `:char'; add new builtin function `ideographic-structure-to-ids'.
1306
1307         * data.c (Fchar_ref_p): New function.
1308         (syms_of_data): Add new builtin function `char-ref-p'.
1309
1310         * chartab.h: Add an EXFUN for `Ffind_char'.
1311
1312 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1313
1314         * text-coding.c (Vcharacter_composition_table): Deleted.
1315         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1316         in every UTF-2000.
1317
1318         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1319         UTF-2000.
1320         (Vcharacter_composition_table): Deleted.
1321         (Fget_composite_char): Use the implementation for external-DB
1322         support in every UTF-2000.
1323         (Fput_char_attribute): Likewise.
1324         (char_attribute_system_db_file): Don't define if external-DB
1325         feature is not available.
1326         (Fsave_char_attribute_table): Likewise.
1327         (Fmount_char_attribute_table): Likewise.
1328         (Fclose_char_attribute_table): Likewise.
1329         (Freset_char_attribute_table): Likewise.
1330         (Fload_char_attribute_table): Likewise.
1331         (syms_of_chartab): Don't define `save-char-attribute-table',
1332         `mount-char-attribute-table', `reset-char-attribute-table',
1333         `close-char-attribute-table' and `load-char-attribute-table' if
1334         external-DB feature is not available.
1335         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1336
1337 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1338
1339         * text-coding.c (Qcomposition): Add extern if external-DB feature
1340         is supported.
1341         (Vcharacter_composition_table): Don't add extern if external-DB
1342         feature is supported.
1343         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1344         character composition rule if external-DB feature is supported.
1345
1346         * chartab.c (Vcharacter_composition_table): Don't define if
1347         external-DB feature is supported.
1348         (Qcomposition): New variable.
1349         (Fget_composite_char): New implementation for external-DB support.
1350         (Fput_char_attribute): Use `composition' property of each
1351         character instead of `Vcharacter_composition_table' to store
1352         character-composition rules if external-DB feature is supported.
1353         (syms_of_chartab): Add new symbol `composition'.
1354         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1355         external-DB feature is supported.
1356
1357 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1358
1359         * chartab.c (Vchar_db_stingy_mode): New variable.
1360         (load_char_attribute_maybe): Close database if
1361         Vchar_db_stingy_mode is not NIL.
1362         (Fload_char_attribute_table_map_function): Use
1363         `get_char_id_table_0' instead of `get_char_id_table'.
1364         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1365
1366         * chartab.h (get_char_id_table_0): New inline function.
1367         (get_char_id_table): Use `get_char_id_table_0'.
1368
1369 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1370
1371         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1372         and `COMPOSE_ADD_CHAR'.
1373         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1374
1375 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1376
1377         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1378         instead of `DECODE_ADD_UCS_CHAR'.
1379         (COMPOSE_ADD_CHAR): Likewise.
1380
1381 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1382
1383         * text-coding.c (decode_flush_er_chars): New inline function.
1384         (decode_add_er_char): New function.
1385         (decode_coding_utf8): Use `decode_flush_er_chars' and
1386         `decode_add_er_char'.
1387
1388 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1389
1390         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1391         done before `decode_output_utf8_partial_char'.
1392
1393         * mule-charset.c (complex_vars_of_mule_charset): Specify
1394         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1395         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1396
1397 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398
1399         * mule-charset.c (decode_defined_char): New function; search
1400         mother.
1401         (decode_builtin_char): Don't search mother if
1402         XCHARSET_MAX_CODE(charset) == 0.
1403         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1404         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1405         (Fdecode_char): Use `decode_defined_char' instead of
1406         `DECODE_DEFINED_CHAR'.
1407         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1408         mother of `Vcharset_ucs_jis'.
1409
1410         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1411         instead of `DECODE_DEFINED_CHAR'.
1412
1413         * char-ucs.h (decode_defined_char): Renamed from
1414         `DECODE_DEFINED_CHAR'; changed to normal function.
1415         (DECODE_CHAR): Use `decode_defined_char' instead of
1416         `DECODE_DEFINED_CHAR'.
1417
1418         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1419
1420 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1421
1422         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1423
1424         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1425         variable.
1426         (Quse_entity_reference): New variable.
1427         (Qd): New variable.
1428         (Qx): New variable.
1429         (QX): New variable.
1430         (coding_system_description): Add description for
1431         `ccs_priority_list'.
1432         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1433         (allocate_coding_system): Initialize `ccs_priority_list' in
1434         UTF-2000.
1435         (Fmake_coding_system): Add description about
1436         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1437         (codesys).
1438         (Fcoding_system_property): Accept `disable-composition' and
1439         `use-entity-reference' in UTF-2000.
1440         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1441         in UTF-2000.
1442         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1443         (decode_coding_utf8): Decode entity-reference if
1444         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1445         (char_encode_utf8): Encode non-Unicode characters as
1446         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1447         (str->codesys).
1448         (syms_of_file_coding): Add new symbols `use-entity-reference',
1449         `d', `x', `X'.
1450         (vars_of_file_coding): Add new variable
1451         `coded-charset-entity-reference-alist'.
1452         (complex_vars_of_file_coding): Declare `disable-composition' and
1453         `use-entity-reference' to be coding-system-properties in UTF-2000.
1454
1455         * file-coding.h (struct Lisp_Coding_System): Add new member
1456         `use_entity_reference' and `ccs_priority_list'.
1457         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1458         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1459         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1460
1461 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1462
1463         * chartab.c (save_uint8_byte_table): Don't clear the table.
1464         (save_uint16_byte_table): Likewise.
1465         (save_byte_table): Likewise.
1466         (Fmount_char_attribute_table): New function.
1467         (syms_of_chartab): Add new builtin function
1468         `mount-char-attribute-table'.
1469
1470 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1471
1472         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1473         "w+" mode.
1474         (load_char_decoding_entry_maybe): Open database as read-only mode.
1475
1476         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1477         open database as "w+" mode.
1478         (load_char_attribute_maybe): Open database as read-only mode.
1479         (Fload_char_attribute_table): Likewise.
1480
1481 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1482
1483         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1484         (char_table_description): Delete member `db_file'.
1485         (Fmake_char_table): Don't refer `ct->db_file'.
1486         (Fcopy_char_table): Likewise.
1487         (Fsave_char_attribute_table): Likewise.
1488         (Fclose_char_attribute_table): Likewise.
1489         (Freset_char_attribute_table): Likewise.
1490         (load_char_attribute_maybe): Likewise.
1491         (Fload_char_attribute_table): Likewise.
1492
1493         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1494
1495 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1496
1497         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1498         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1499         `ct->db' is living.
1500         (load_char_attribute_maybe): Likewise.
1501         (Fload_char_attribute_table): Likewise.
1502
1503 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1504
1505         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1506         `ct->db_file' unconditionally.
1507
1508 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1509
1510         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1511         UTF-2000.
1512         (char_table_description): Add description for `db_file' and `db'
1513         in UTF-2000.
1514         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1515         UTF-2000.
1516         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1517         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1518         (Fclose_char_attribute_table): New function.
1519         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1520         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1521         and `cit->db'.
1522         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1523         (syms_of_chartab): Add new builtin function
1524         `Fclose_char_attribute_table'.
1525
1526 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1527
1528         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1529         `db' in UTF-2000.
1530         (load_char_attribute_maybe): Change interface.
1531         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1532
1533 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1534
1535         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1536
1537 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1540         instead of `DECODE_CHAR' for mother; don't use special code for
1541         chinese-big5 to use code space of chinese-big5-1 and
1542         chinese-big5-2.
1543         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1544         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1545
1546         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1547         (MAX_CHAR_BIG5_CDP): Revival.
1548
1549 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1550
1551         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1552         the XLFD registry-encoding name of `chinese-big5'.
1553
1554 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1555
1556         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1557         (Qchinese_big5_cdp): Deleted.
1558         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1559         (complex_vars_of_mule_charset): Delete coded-charset
1560         `chinese-big5-cdp'.
1561
1562         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1563         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1564         `CHARSET_ID_OFFSET - n' for private CCS.
1565         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1566         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1567         of `MIN_LEADING_BYTE'.
1568         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1569         `(CHARSET_ID_OFFSET - 97)'.
1570         (MIN_CHAR_BIG5_CDP): Deleted.
1571         (MAX_CHAR_BIG5_CDP): Deleted.
1572
1573 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1574
1575         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1576
1577 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1578
1579         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1580         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1581         chartab.c].
1582
1583         * chartab.c (Vutf_2000_version): Moved to mule.c.
1584         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1585
1586 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1587
1588         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1589         when HAVE_CHISE_CLIENT is not defined.
1590
1591         * mule.c (vars_of_mule): Provide feature `chise' when
1592         HAVE_CHISE_CLIENT is defined.
1593
1594 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1595
1596         * config.h.in (UTF2000): Add comment.
1597         (HAVE_CHISE_CLIENT): New macro.
1598
1599 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1600
1601         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1602         CONSP.
1603         (Fput_char_attribute): Likewise.
1604         (char_attribute_system_db_file): Encode file-name of attribute.
1605         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1606         the initial value.
1607
1608 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1609
1610         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1611         (Fsave_charset_mapping_table): Use
1612         `char_attribute_system_db_file'.
1613         (load_char_decoding_entry_maybe): Likewise.
1614
1615         * chartab.h (Qsystem_char_id): New external variable.
1616         (char_attribute_system_db_file): New prototype.
1617
1618         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1619         (char_attribute_system_db_file): New function.
1620         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1621         (Freset_char_attribute_table): Likewise.
1622         (load_char_attribute_maybe): Likewise.
1623         (Fload_char_attribute_table): Likewise.
1624         (syms_of_chartab): Add new symbol `system-char-id'.
1625
1626 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1627
1628         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1629         `XCHARSET_GRAPHIC(ccs)'.
1630
1631 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1632
1633         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1634
1635 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1636
1637         * chartab.c (Q_ucs_variants): New variable.
1638         (syms_of_chartab): Add new symbol `->ucs-variants'.
1639         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1640         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1641         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1642
1643         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1644
1645         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1646         `HAVE_DATABASE' is defined.
1647         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1648         `HAVE_DATABASE' is defined.
1649
1650 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1651
1652         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1653         attribute-table.
1654         (Freset_char_attribute_table): New function.
1655         (syms_of_chartab): Add new builtin function
1656         `reset-char-attribute-table'.
1657
1658 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1659
1660         * chartab.c (load_char_attribute_maybe): Don't make directories.
1661
1662 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1663
1664         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1665
1666         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1667         for decoding-table.
1668
1669 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1670
1671         * mule-charset.c (Fsave_charset_mapping_table): Use
1672         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1673
1674         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1675         instead of `XCHARSET_CHARS'.
1676
1677 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1678
1679         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1680         (XCHARSET_BYTE_SIZE): Likewise.
1681
1682         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1683         mule-charset.c].
1684         (XCHARSET_BYTE_SIZE): Likewise.
1685
1686 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1687
1688         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1689         data-directory to store database.
1690         (Fsave_char_attribute_table): Likewise.
1691         (load_char_attribute_maybe): Likewise.
1692         (Fload_char_attribute_table): Likewise.
1693
1694 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1695
1696         * mule-charset.c (Fsave_charset_mapping_table): New function.
1697         (syms_of_mule_charset): Add new builtin function
1698         `save-charset-mapping-table'.
1699
1700 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1701
1702         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1703         (get_ccs_octet_table): New inline function.
1704         (put_ccs_octet_table): Likewise.
1705         (decoding_table_put_char): Use `get_ccs_octet_table' and
1706         `put_ccs_octet_table'.
1707         (decoding_table_remove_char): Use `decoding_table_put_char'.
1708         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1709
1710         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1711         into encoding_table.
1712         (make_charset): Use Qunbound instead Qnil as initial value of
1713         decoding_table.
1714
1715 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1716
1717         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1718         element is Qunloaded.
1719         (map_over_uint16_byte_table): Likewise.
1720         (map_over_byte_table): Likewise.
1721         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1722         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1723         database support, load encoding-table of the specified
1724         coded-charset if it is not loaded yet.
1725         (save_uint8_byte_table): New function of UTF-2000 with external
1726         database support.
1727         (save_uint16_byte_table): Likewise.
1728         (save_byte_table): Likewise.
1729         (Fput_char_attribute): Don't store value into external database
1730         even if the external database feature is supported in UTF-2000;
1731         set `attribute' as name of char-table if the external database
1732         feature is supported.
1733         (Fsave_char_attribute_table): New function in UTF-2000.
1734         (syms_of_chartab): Add new builtin function
1735         `save-char-attribute-table' in UTF-2000.
1736
1737 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1738
1739         * chartab.c (char_attribute_table_to_put): New variable in
1740         UTF-2000.
1741         (Qput_char_table_map_function): Likewise.
1742         (value_to_put): Likewise.
1743         (Fput_char_table_map_function): New function in UTF-2000.
1744         (put_char_table): Use `Fmap_char_attribute' for
1745         CHARTAB_RANGE_CHARSET in UTF-2000.
1746         (Fput_char_attribute): Store symbol instead of string in
1747         `XCHAR_TABLE_NAME (table)'.
1748         (load_char_attribute_maybe): Likewise.
1749         (syms_of_chartab): Add new symbol/function
1750         `put-char-table-map-function'.
1751
1752 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1753
1754         * database.h: Add new EXFUN for `Fmap_database'.
1755
1756         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1757         (syms_of_database): Likewise.
1758
1759         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1760         UTF-2000.
1761         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1762         (XCHAR_TABLE_UNLOADED): Likewise.
1763
1764         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1765         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1766         HAVE_DATABASE is defined.
1767         (char_attribute_table_to_load): New variable of UTF-2000 with
1768         external database support.
1769         (Qload_char_attribute_table_map_function): Likewise.
1770         (Fload_char_attribute_table_map_function): New function of
1771         UTF-2000 with external database support.
1772         (Fload_char_attribute_table): New function of UTF-2000.
1773         (Fmap_char_attribute): Call Fload_char_attribute_table if
1774         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1775         (syms_of_chartab): Add new symbol and function
1776         `load-char-attribute-table-map-function' in UTF-2000 with external
1777         database support; add new function `load-char-attribute-table' in
1778         UTF-2000.
1779
1780 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781
1782         * chartab.h (load_char_attribute_maybe): New prototype for
1783         UTF-2000 with DATABASE support.
1784         (get_char_id_table): Use `load_char_attribute_maybe' if
1785         HAVE_DATABASE is defined.
1786
1787         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1788         with DATABASE support.
1789
1790 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1791
1792         * chartab.c (Fput_char_attribute): Use S-expression as key of
1793         external database.
1794
1795         * chartab.h (get_char_id_table): Use S-expression as key of
1796         external database.
1797
1798 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1799
1800         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1801         if an element is not loaded, load the corresponding attributes
1802         from an external database.
1803         (map_over_uint16_byte_table): Likewise.
1804         (map_over_byte_table): Likewise.
1805         (map_char_table): Modify for `map_over_uint8_byte_table',
1806         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1807         element is not loaded, load the corresponding attributes from an
1808         external database.
1809         (Fput_char_attribute): Change initial values to Qunloaded.
1810
1811         * chartab.h (get_char_id_table): If a character attribute is not
1812         loaded and the attribute value is not found in an external
1813         database, store Qunbound as the attribute value.
1814
1815 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1816
1817         * chartab.c (BT_UINT8_unloaded): New macro.
1818         (UINT8_VALUE_P): Accept Qunloaded.
1819         (UINT8_ENCODE): Likewise.
1820         (UINT8_DECODE): Likewise.
1821         (BT_UINT16_unloaded): New macro.
1822         (UINT16_VALUE_P): Accept Qunloaded.
1823         (UINT16_ENCODE): Likewise.
1824         (UINT16_DECODE): Likewise.
1825         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1826         BT_UINT16_unloaded.
1827         (mark_char_table): Mark `ct->name' in UTF-2000.
1828         (char_table_description): Add `name' in UTF-2000.
1829         (Fmake_char_table): Initialize `ct->name'.
1830         (Fcopy_char_table): Copy `ct->name'.
1831         (Fput_char_attribute): Store value into an external database if
1832         HAVE_DATABASE is defined.
1833
1834         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1835         UTF-2000.
1836         (CHAR_TABLE_NAME): New macro in UTF-2000.
1837         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1838         (get_char_id_table): Try to read an external database if Qunloaded
1839         is stored in a table.
1840
1841         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1842         Qunloaded.
1843
1844 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1845
1846         * database.h: Add EXFUN definitions for Fopen_database,
1847         Fput_database, Fget_database and Fclose_database.
1848
1849         * data.c (Qunloaded): New variable in UTF-2000.
1850
1851         * lisp.h (Qunloaded): New variable in UTF-2000.
1852
1853 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1854
1855         * mule-charset.c (put_char_ccs_code_point): Modify for
1856         `decoding_table_remove_char' and `decoding_table_put_char'.
1857         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1858
1859         * char-ucs.h (decoding_table_remove_char): Change arguments to
1860         hide decoding_table vector.
1861         (decoding_table_put_char): Likewise.
1862
1863 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1864
1865         * mule-charset.c (decoding_table_remove_char): Moved to
1866         char-ucs.h.
1867         (decoding_table_put_char): Likewise.
1868
1869         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1870         from mule-charset.c].
1871         (decoding_table_remove_char): New inline function [moved from
1872         mule-charset.c].
1873         (decoding_table_put_char): Likewise.
1874
1875 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1876
1877         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1878         extension.
1879
1880 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1881
1882         * mule-charset.c (decode_builtin_char): Support mother charsets.
1883
1884 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1885
1886         * mule-charset.c (Q94x94x60): New variable.
1887         (charset_code_point): Support conversion `94x94x60'.
1888         (Fmake_charset): Likewise.
1889         (syms_of_mule_charset): Add new symbol `94x94x60'.
1890
1891         * char-ucs.h (CONVERSION_94x94x60): New macro.
1892
1893 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1894
1895         * mule-charset.c (charset_code_point): Unify code about
1896         `code-offset'.
1897
1898 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1899
1900         * mule-charset.c (charset_code_point): Merge code about builtin
1901         characters into code about mother charsets; don't use
1902         `range_charset_code_point'.
1903         (range_charset_code_point): Deleted.
1904
1905 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1906
1907         * mule-charset.c (Qcode_offset): New variable.
1908         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1909         `max-code'; accept new property `code-offset'.
1910         (syms_of_mule_charset): Add new symbol `code-offset'.
1911
1912 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * mule-charset.c (range_charset_code_point): Fixed.
1915
1916 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1917
1918         * mule-charset.c (decode_builtin_char): Change semantics of
1919         code-offset of coded-charset.
1920         (charset_code_point): Likewise.
1921         (range_charset_code_point): Likewise.
1922         (complex_vars_of_mule_charset): Modify for the change.
1923
1924 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1925
1926         * mule-charset.c (Fencode_char): Reverse arguments.
1927
1928         * mule-charset.c (charset_code_point): Fixed.
1929
1930 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1931
1932         * mule-charset.c (Vcharset_mojikyo): Deleted.
1933         (Vcharset_mojikyo_2022_1): Deleted.
1934         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1935         (Qmin_code): New variable in UTF-2000.
1936         (Qmax_code): Likewise.
1937         (Qmother): Likewise.
1938         (Qconversion): Likewise.
1939         (Q94x60): Likewise.
1940         (Qmojikyo): Deleted.
1941         (Qmojikyo_2022_1): Deleted.
1942         (Qmojikyo_pj_{1..22}): Deleted.
1943         (mark_charset): Mark `cs->mother'.
1944         (charset_description): Add description for `mother'.
1945         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1946         new arguments `mother' and `conversion'; use
1947         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1948         (charset_code_point): Moved from char-ucs.h; support `mother'
1949         charset feature.
1950         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1951         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1952         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1953         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1954         allow 2 as the value of `graphic' in UTF-2000; add new properties
1955         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1956         require `final' in UTF-2000; modify for `make_charset'.
1957         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1958         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1959         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1960         (Fencode_char): New function.
1961         (syms_of_mule_charset): Add new builtin function `encode-char' in
1962         UTF-2000; add new symbols `min-code', `max-code', `mother',
1963         `conversion' and `94x60'; delete symbols `mojikyo',
1964         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1965         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1966         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1967         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1968
1969         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1970         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1971
1972         * char-ucs.h (Vcharset_mojikyo): Deleted.
1973         (Vcharset_mojikyo_2022_1): Deleted.
1974         (LEADING_BYTE_MOJIKYO): Deleted.
1975         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1976         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1977         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1978         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1979         add new member `mother'; add new member `conversion'.
1980         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1981         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1982         (CHARSET_MOTHER): New macro.
1983         (CHARSET_CONVERSION): New macro.
1984         (CONVERSION_IDENTICAL): New macro.
1985         (CONVERSION_94x60): New macro.
1986         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1987         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1988         (XCHARSET_MOTHER): New macro.
1989         (XCHARSET_CONVERSION): New macro.
1990         (MIN_CHAR_MOJIKYO): Deleted.
1991         (MAX_CHAR_MOJIKYO): Deleted.
1992         (DECODE_MOJIKYO_2022): Deleted.
1993         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1994         (charset_code_point): Changed to non-inline function.
1995         (encode_char_1): Use `charset_code_point'.
1996         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1997
1998 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1999
2000         * lread.c (read_compiled_function): Fix prototype.
2001         (read_vector): Likewise.
2002
2003 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2004
2005         * lrecord.h (struct lrecord_header): Delete `older'.
2006         (set_lheader_implementation): Delete code for `older'.
2007         (set_lheader_older_implementation): Deleted.
2008         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2009         (OLDER_RECORD_P): Deleted.
2010         (OLDER_RECORD_HEADER_P): Deleted.
2011         (alloc_older_lcrecord): Deleted.
2012         (alloc_older_lcrecord_type): Deleted.
2013
2014         * alloc.c (all_older_lcrecords): Deleted.
2015         (alloc_older_lcrecord): Deleted.
2016         (disksave_object_finalization_1): Delete code for older objects.
2017         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2018         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2019
2020 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2021
2022         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2023         instead of `make_older_vector'.
2024         (put_char_ccs_code_point): Likewise.
2025         (mark_charset): Mark `cs->decoding_table'.
2026         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2027
2028         * lisp.h (make_older_vector): Deleted.
2029         (make_vector_newer): Deleted.
2030
2031         * config.h.in (HAVE_GGC): Deleted.
2032
2033         * alloc.c (make_older_vector): Deleted.
2034         (make_vector_newer_1): Deleted.
2035         (make_vector_newer): Deleted.
2036
2037 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2038
2039         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2040         (Qideograph_daikanwa_2): New variable.
2041         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2042         (complex_vars_of_mule_charset): Add new coded-charset
2043         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2044         `LEADING_BYTE_DAIKANWA'.
2045
2046         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2047         (LEADING_BYTE_DAIKANWA_1): New macro.
2048         (LEADING_BYTE_DAIKANWA_2): New macro.
2049         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2050
2051 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2052
2053         * mule-charset.c (complex_vars_of_mule_charset): Change
2054         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2055         the second revised version.
2056
2057 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2058
2059         * mule-charset.c (Vcharset_ucs_smp): New variable.
2060         (Vcharset_ucs_sip): New variable.
2061         (Qucs_smp): New variable.
2062         (Qucs_sip): New variable.
2063         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2064         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2065         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2066         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2067         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2068         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2069
2070         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2071         (LEADING_BYTE_UCS_SIP): New macro.
2072         (MIN_CHAR_SMP): New macro.
2073         (MAX_CHAR_SMP): New macro.
2074         (MIN_CHAR_SIP): New macro.
2075         (MAX_CHAR_SIP): New macro.
2076
2077 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2078
2079         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2080         utf-2000.
2081
2082 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2083
2084         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2085         value; don't store value into `encoding_table' of `Lisp_Charset'.
2086         (mark_charset): `encoding_table' was deleted.
2087         (charset_description): Likewise.
2088         (make_charset): Likewise.
2089         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2090         `put_char_ccs_code_point'.
2091
2092         * chartab.h (Fput_char_attribute): New EXFUN.
2093
2094         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2095         is unified with normal symbol space.
2096         (Fget_char_attribute): Likewise.
2097         (Fput_char_attribute): Likewise; behavior of
2098         `put_char_ccs_code_point' is changed.
2099
2100         * char-ucs.h: Include "elhash.h".
2101         (Vchar_attribute_hash_table): New external variable.
2102         (struct Lisp_Charset): Delete `encoding_table'.
2103         (CHARSET_ENCODING_TABLE): New implementation; refer
2104         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2105         `Lisp_Charset'.
2106
2107 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2108
2109         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2110         (cs) == 0.
2111
2112 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2113
2114         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2115         `chinese-big5'.
2116
2117 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * chartab.c (uint8_byte_table_description): New constant.
2120         (uint8-byte-table): Use `uint8_byte_table_description'.
2121         (uint16_byte_table_description): New constant.
2122         (uint16-byte-table): Use `uint16_byte_table_description'.
2123
2124 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2125
2126         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2127         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2128
2129 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2130
2131         * mule-charset.c (Vcharset_ucs_ks): New variable.
2132         (Qucs_ks): New variable.
2133         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2134         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2135
2136         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2137
2138 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2139
2140         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2141         (Fdecode_char): Likewise.
2142
2143         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2144         chartab.h.
2145         (Fdefine_char): Modify for Fdecode_char.
2146         (Ffind_char): Likewise.
2147
2148         * mule-charset.c (Fdecode_char): Add new optional argument
2149         `defined-only'.
2150         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2151
2152 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2153
2154         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2155         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2156         (allocate_coding_system): Initialize initial-charsets of
2157         CODESYS_BIG5 in XEmacs UTF-2000.
2158         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2159         CODESYS_BIG5 in XEmacs UTF-2000.
2160         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2161         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2162
2163         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2164         variables.
2165         (Qideograph_hanziku_{1 .. 12}): Likewise.
2166         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2167         .. 12}'.
2168         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2169         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2170         `ideograph-hanziku-{1 .. 12}'.
2171
2172         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2173         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2174         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2175         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2176         (DECODE_DEFINED_CHAR): New inline function.
2177         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2178
2179 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180
2181         * mule-charset.c (Vcharset_china3_jef): Renamed from
2182         `Vcharset_japanese_jef_china3'.
2183         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2184         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2185         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2186         (syms_of_mule_charset): Rename `china3-jef' from
2187         `japanese-jef-china3'.
2188         (complex_vars_of_mule_charset): Likewise; rename
2189         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2190
2191         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2192         `LEADING_BYTE_JEF_CHINA3'.
2193         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2194         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2195
2196 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197
2198         * mule-charset.c (encode_builtin_char_1): Comment out special code
2199         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2200
2201         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2202         (MAX_CHAR_MOJIKYO_0): Comment out.
2203         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2204         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2205         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2206         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2207
2208 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2209
2210         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2211         (Qideograph_cbeta): New variable.
2212         (encode_builtin_char_1): Comment out special code for
2213         coded-charset `mojikyo' and `japanese-jef-china3'.
2214         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2215         (complex_vars_of_mule_charset): Add new coded-charset
2216         `ideograph-cbeta'.
2217
2218         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2219         (MIN_CHAR_CBETA): New macro.
2220         (MAX_CHAR_CBETA): New macro.
2221
2222 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2223
2224         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2225         (LEADING_BYTE_JEF_CHINA3): New macro.
2226         (MIN_CHAR_JEF_CHINA3): New macro.
2227         (MAX_CHAR_JEF_CHINA3): Likewise.
2228         (DECODE_CHAR): Fixed.
2229
2230 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2231
2232         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2233         (Qjapanese_jef_china3): New variable.
2234         (encode_builtin_char_1): Support `japanese-jef-china3'.
2235         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2236         (complex_vars_of_mule_charset): Add new coded-charset
2237         `japanese-jef-china3'.
2238
2239 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240
2241         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2242         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2243         94^4, 96^3, 96^4, 128^n and 256^n set.
2244         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2245         (map_char_table): Likewise.
2246
2247 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2250         UTF-2000.
2251
2252 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2253
2254         * chartab.h (get_char_id_table): New inline function.
2255
2256         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2257         function.
2258
2259 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2260
2261         * chartab.h (decode_char_table_range): New prototype in XEmacs
2262         UTF-2000.
2263         (put_char_id_table): New inline function in XEmacs UTF-2000.
2264
2265         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2266         function.
2267         (decode_char_table_range): Delete static declaration in XEmacs
2268         UTF-2000.
2269
2270 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2271
2272         * chartab.c (put_char_id_table): Use `put_char_table'.
2273
2274 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2275
2276         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2277         (map_over_uint16_byte_table): Likewise.
2278         (map_over_byte_table): Likewise.
2279         (map_char_table): Modify for `map_over_uint8_byte_table',
2280         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2281         UTF-2000.
2282
2283 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2284
2285         * chartab.c (struct map_char_table_for_charset_arg): New
2286         structure.
2287         (map_char_table_for_charset_fun): New function.
2288         (map_char_table): Use `map_char_table' for encoding_table of
2289         `range->charset'.
2290
2291 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2292
2293         * chartab.c (map_char_table): Check a character is found in
2294         range->charset instead of non default value is defined in
2295         char-table when range is CHARTAB_RANGE_ROW.
2296
2297 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2298
2299         * chartab.c (map_char_id_table): Deleted.
2300         (Fmap_char_attribute): Use `map_char_table' instead of
2301         `map_char_id_table'.
2302
2303 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2304
2305         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2306         UTF-2000.
2307         (update_syntax_table): Deleted in XEmacs UTF-2000.
2308
2309         * syntax.c (find_defun_start): Use `syntax_table' instead of
2310         `mirror_syntax_table' in XEmacs UTF-2000.
2311         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2312         UTF-2000.
2313         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2314         XEmacs UTF-2000.
2315         (Fmatching_paren): Likewise.
2316         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2317         in XEmacs UTF-2000.
2318         (find_start_of_comment): Likewise.
2319         (find_end_of_comment): Likewise.
2320         (Fforward_comment): Likewise.
2321         (scan_lists): Likewise.
2322         (char_quoted): Likewise.
2323         (Fbackward_prefix_chars): Likewise.
2324         (scan_sexps_forward): Likewise.
2325         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2326         (update_syntax_table): Likewise.
2327
2328         * search.c (skip_chars): Use `syntax_table' instead of
2329         `mirror_syntax_table' in XEmacs UTF-2000.
2330         (wordify): Likewise.
2331         (Freplace_match): Likewise.
2332
2333         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2334         `mirror_syntax_table' in XEmacs UTF-2000.
2335         (WORDCHAR_P_UNSAFE): Likewise.
2336         (re_match_2_internal): Likewise.
2337
2338         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2339         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2340
2341         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2342         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2343
2344         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2345         XEmacs UTF-2000.
2346
2347         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2348         UTF-2000.
2349         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2350         (char_table_description): Delete `mirror_table' in XEmacs
2351         UTF-2000.
2352         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2353         UTF-2000.
2354         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2355         (Fcopy_char_table): Likewise.
2356         (put_char_table): Don't call `update_syntax_table' in XEmacs
2357         UTF-2000.
2358
2359         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2360         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2361         (casify_region_internal): Likewise.
2362
2363         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2364
2365         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2366         `mirror_syntax_table' in XEmacs UTF-2000.
2367
2368         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2369         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2370         (Fexpand_abbrev): Likewise.
2371
2372 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2373
2374         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2375
2376 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2377
2378         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2379         (map_over_uint16_byte_table): Likewise.
2380         (map_over_byte_table): Likewise.
2381         (get_char_id_table): Refer `cit->default_value'.
2382         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2383         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2384         of character-id ranges.
2385         (mark_char_table): Mark `ct->default_value'.
2386         (char_table_description): Add `default_value'.
2387         (fill_char_table): Use `default_value'.
2388         (decode_char_table_range): Decode `nil' as
2389         `CHARTAB_RANGE_DEFAULT'.
2390         (get_char_id_table): Refer `cit->default_value'.
2391         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2392         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2393         temporary hack; check value of char-table is bound or not.
2394         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2395
2396         * chartab.h (struct Lisp_Char_Table): Add new member
2397         `default_value' in XEmacs UTF-2000.
2398         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2399         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2400         UTF-2000.
2401
2402 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2403
2404         * chartab.h (Lisp_Char_ID_Table): Deleted.
2405
2406         * chartab.c (char_table_description): Fix typo.
2407         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2408         `Lisp_Char_ID_Table'.
2409
2410 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2411
2412         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2413         `CHAR_ID_TABLE_P'.
2414
2415         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2416         `CHAR_ID_TABLE_P'.
2417
2418         * chartab.h (XCHAR_ID_TABLE): Deleted.
2419         (XSETCHAR_ID_TABLE): Deleted.
2420         (CHAR_ID_TABLE_P): Deleted.
2421
2422         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2423         `CHAR_ID_TABLE_P'.
2424         (Fget_composite_char): Likewise.
2425         (put_char_table): Likewise.
2426         (add_char_attribute_alist_mapper): Fixed.
2427         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2428         `CHAR_ID_TABLE_P'.
2429         (Fget_char_attribute): Likewise.
2430         (Fget_char_attribute): Likewise.
2431         (Fmap_char_attribute): Likewise.
2432
2433         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2434         `CHAR_ID_TABLE_P'.
2435         (encode_char_1): Likewise.
2436
2437 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2438
2439         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2440         `XCHAR_ID_TABLE'.
2441
2442         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2443         instead of `XCHAR_ID_TABLE'.
2444         (remove_char_ccs): Likewise.
2445
2446         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2447         `XCHAR_ID_TABLE'.
2448         (Fget_composite_char): Likewise.
2449         (Fchar_variants): Likewise.
2450         (put_char_table): Likewise.
2451         (add_char_attribute_alist_mapper): Likewise.
2452         (Fchar_attribute_alist): Likewise.
2453         (Fget_char_attribute): Likewise.
2454         (Fput_char_attribute): Likewise.
2455         (Fmap_char_attribute): Likewise.
2456         (Fmap_char_attribute): Likewise.
2457
2458         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2459         `XCHAR_ID_TABLE'.
2460         (encode_char_1): Likewise.
2461
2462 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2463
2464         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2465         `Lisp_Char_ID_Table'.
2466         (mark_char_id_table): Deleted.
2467         (print_char_id_table): Likewise.
2468         (char_id_table_equal): Likewise.
2469         (char_id_table_hash): Likewise.
2470         (char_id_table_description): Likewise.
2471         (char_id_table): Likewise.
2472         (make_char_id_table): Use `Fmake_char_table' and
2473         `fill_char_table'.
2474         (get_char_id_table): Use `Lisp_Char_Table' instead of
2475         `Lisp_Char_ID_Table'.
2476         (put_char_id_table): Likewise.
2477         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2478         `XCHAR_ID_TABLE'.
2479         (Fremove_char_attribute): Likewise.
2480         (syms_of_chartab): Don't define type `char-id-table'.
2481
2482         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2483         (char_id_table): Likewise.
2484         (GC_CHAR_ID_TABLE_P): Likewise.
2485         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2486         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2487         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2488         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2489         (get_char_id_table): Use `Lisp_Char_Table' instead of
2490         `Lisp_Char_ID_Table'.
2491         (put_char_id_table_0): Likewise.
2492         (put_char_id_table): Likewise.
2493
2494 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2495
2496         * chartab.h: Lisp_Byte_Table related codes are moved from
2497         chartab.h.
2498
2499         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2500
2501 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2502
2503         * chartab.h: Don't include "chartab.h".
2504         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2505         (Lisp_Char_ID_Table): Likewise.
2506         (char_id_table): Likewise.
2507         (XCHAR_ID_TABLE): Likewise.
2508         (XSETCHAR_ID_TABLE): Likewise.
2509         (CHAR_ID_TABLE_P): Likewise.
2510         (GC_CHAR_ID_TABLE_P): Likewise.
2511         (get_char_id_table): Likewise.
2512
2513         * char-ucs.h: Include "chartab.h".
2514         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2515         (Lisp_Char_ID_Table): Likewise.
2516         (char_id_table): Likewise.
2517         (XCHAR_ID_TABLE): Likewise.
2518         (XSETCHAR_ID_TABLE): Likewise.
2519         (CHAR_ID_TABLE_P): Likewise.
2520         (GC_CHAR_ID_TABLE_P): Likewise.
2521         (get_char_id_table): Likewise.
2522
2523 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2524
2525         * chartab.c (copy_uint8_byte_table): New function.
2526         (copy_uint16_byte_table): New function.
2527         (copy_byte_table): New function.
2528         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2529         characters to call.
2530         (map_over_uint16_byte_table): Likewise.
2531         (map_over_byte_table): Likewise.
2532         (get_byte_table): Move prototype to chartab.h.
2533         (put_byte_table): Likewise.
2534         (put_char_id_table_0): Moved to chartab.h.
2535         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2536         (char_table_entry_equal): Likewise.
2537         (char_table_entry_hash): Likewise.
2538         (char_table_entry_description): Likewise.
2539         (char_table_entry): Likewise.
2540         (make_char_table_entry): Likewise.
2541         (copy_char_table_entry): Likewise.
2542         (get_non_ascii_char_table_value): Likewise.
2543         (map_over_charset_ascii): Likewise.
2544         (map_over_charset_control_1): Likewise.
2545         (map_over_charset_row): Likewise.
2546         (map_over_other_charset): Likewise.
2547         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2548         (print_char_table): Likewise.
2549         (char_table_equal): Likewise.
2550         (char_table_hash): Likewise.
2551         (char_table_description): Likewise.
2552         (fill_char_table): Likewise.
2553         (Fcopy_char_table): Likewise.
2554         (get_char_table): Likewise.
2555         (Fget_range_char_table): Likewise.
2556         (put_char_table): Likewise.
2557         (map_char_table): Likewise.
2558         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2559         UTF-2000.
2560
2561 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2562
2563         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2564         `Vauto_fill_chars' in XEmacs UTF-2000.
2565
2566         * chartab.h (get_byte_table): New prototype [moved from
2567         chartab.c].
2568         (put_byte_table): Likewise [moved from chartab.c].
2569         (put_char_id_table_0): New inline function [moved from chartab.c].
2570         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2571         (Lisp_Char_Table_Entry): Likewise.
2572         (char_table_entry): Likewise.
2573         (XCHAR_TABLE_ENTRY): Likewise.
2574         (XSETCHAR_TABLE_ENTRY): Likewise.
2575         (CHAR_TABLE_ENTRYP): Likewise.
2576         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2577         (NUM_ASCII_CHARS): Likewise.
2578         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2579         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2580
2581 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2582
2583         * chartab.c (get_char_id_table): Change interface.
2584         (put_char_id_table_0): New function.
2585         (put_char_id_table): Change interface; new implementation.
2586         (Fget_composite_char): Modify for interface change of
2587         `get_char_id_table'.
2588         (Fchar_variants): Likewise.
2589         (add_char_attribute_alist_mapper): Likewise.
2590         (Fchar_attribute_alist): Likewise.
2591         (Fget_char_attribute): Likewise.
2592         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2593         as same as character as the first argument like `put-char-table';
2594         modify for interface change of `put_char_id_table'.
2595         (Fremove_char_attribute): Modify for interface change of
2596         `put_char_id_table'.
2597
2598 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2599
2600         * text-coding.c: Sync up with XEmacs 21.2.41.
2601         (COMPOSE_ADD_CHAR): Modify for interface change of
2602         `get_char_id_table'.
2603
2604         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2605         change of `put_char_id_table'.
2606         (remove_char_ccs): Likewise.
2607
2608         * chartab.h (put_char_id_table): Change interface.
2609
2610         * char-ucs.h (get_char_id_table): Change interface.
2611         (charset_code_point): Modify for interface change of
2612         `get_char_id_table'.
2613         (encode_char_1): Likewise.
2614
2615 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2616
2617         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2618         argument `ccs'.
2619         (map_over_uint16_byte_table): Likewise.
2620         (map_over_byte_table): Likewise.
2621         (map_char_id_table): Add new argument `range' like
2622         `map_char_table'.
2623         (Fmap_char_attribute): Add new argument `range' like
2624         `Fmap_char_table'.
2625
2626 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * chartab.c (map_over_uint8_byte_table): Change interface of
2629         mapping function to use struct chartab_range instead of Emchar.
2630         (map_over_uint16_byte_table): Likewise.
2631         (map_over_byte_table): Likewise.
2632         (map_char_id_table): Likewise.
2633         (struct slow_map_char_id_table_arg): Deleted.
2634         (slow_map_char_id_table_fun): Deleted.
2635         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2636         function `slow_map_char_table_fun' instead of struct
2637         `slow_map_char_id_table_arg' and function
2638         `slow_map_char_id_table_fun'.
2639
2640 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2641
2642         * mule-charset.c: Move char-it-table related codes to chartab.c.
2643         (Vutf_2000_version): Moved to chartab.c.
2644         (Fdefine_char): Likewise.
2645         (Ffind_char): Likewise.
2646         (syms_of_mule_charset): Move types `uint8-byte-table',
2647         `uint16-byte-table', `byte-table' and `char-id-table' to
2648         chartab.c; move functions `char_attribute_list,
2649         `find_char_attribute_table, `char_attribute_alist,
2650         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2651         `map_char_attribute, `define_char, `find_char, `char_variants and
2652         `get_composite_char to chartab.c; move symbols `=>ucs',
2653         `->decomposition', `compat', `isolated', `initial', `medial',
2654         `final', `vertical', `noBreak', `fraction', `super', `sub',
2655         `circle', `square', `wide', `narrow', `small' and `font' to
2656         chartab.c.
2657         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2658         setting codes for `Vcharacter_composition_table' and
2659         `Vcharacter_variant_table' to chartab.c.
2660         (complex_vars_of_mule_charset): Move setting code for
2661         `Vchar_attribute_hash_table' to chartab.c.
2662
2663         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2664         (make_char_id_table): New prototype.
2665         (put_char_id_table): Likewise.
2666         (Fget_char_attribute): Likewise.
2667
2668         * chartab.c: Move char-id-table related code from mule-charset.c.
2669         (Vutf_2000_version): Moved from mule-charset.c.
2670
2671         * char-ucs.h (Qucs): New external variable.
2672         (put_char_ccs_code_point): New prototype.
2673         (remove_char_ccs): Likewise.
2674
2675 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2676
2677         * mule-charset.c (Vcharset_ucs_jis): New variable.
2678         (Qucs_jis): Likewise.
2679         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2680         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2681
2682         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2683
2684 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2685
2686         * mule-charset.c (map_over_uint8_byte_table): New function.
2687         (map_over_uint16_byte_table): Likewise.
2688         (map_over_byte_table): Likewise.
2689         (map_char_id_table): Likewise.
2690         (slow_map_char_id_table_fun): Likewise.
2691         (Fmap_char_attribute): Likewise.
2692         (syms_of_mule_charset): Add new function `map-char-attribute'.
2693
2694 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2695
2696         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2697         (syms_of_mule_charset): Add new function `find-char'.
2698
2699 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2700
2701         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2702         XEmacs UTF-2000.
2703         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2704         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2705         XEmacs UTF-2000.
2706         (complex_vars_of_mule_charset): Add new coded-charset
2707         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2708         `ideograph-gt-pj-*'.
2709
2710         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2711
2712 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2713
2714         * mule-charset.c (encode_builtin_char_1): Purge codes about
2715         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2716         {MIN|MAX}_CHAR_HEBREW.
2717         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2718         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2719
2720         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2721         (MAX_CHAR_GREEK): Purged.
2722         (MIN_CHAR_CYRILLIC): Purged.
2723         (MAX_CHAR_CYRILLIC): Purged.
2724         (MIN_CHAR_HEBREW): Commented out.
2725         (MAX_CHAR_HEBREW): Likewise.
2726
2727 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2728
2729         * mule-charset.c (Qto_ucs): New variable.
2730         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2731         (Fdefine_char): Likewise.
2732         (syms_of_mule_charset): Add new symbol `=>ucs'.
2733
2734 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * mule-charset.c (Fdecode_char): Fixed.
2737
2738 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2739
2740         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2741         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2742         "tcvn5712-1".
2743
2744 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2745
2746         * mule-charset.c (Vcharset_ucs_big5): New variable.
2747         (Qucs_big5): Likewise.
2748         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2749         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2750
2751         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2752
2753 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2754
2755         * mule-charset.c (decode_builtin_char): Check Big5 code range
2756         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2757
2758 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2759
2760         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2761         (Qchinese_gb12345): Likewise.
2762         (Fdecode_builtin_char): Fixed.
2763         (syms_of_mule_charset): Add `chinese-gb12345'.
2764         (complex_vars_of_mule_charset): Add coded-charset
2765         `chinese-gb12345'.
2766
2767         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2768         (LEADING_BYTE_CHINESE_GB12345): New macro.
2769
2770 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2771
2772         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2773         and `latin-viscii-upper' for `latin-viscii'.
2774
2775 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2776
2777         * mule-charset.c (Fdecode_builtin_char): Comment out
2778         regularization code for ISO-IR GR representation.
2779
2780 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2781
2782         * mule-charset.c (decode_builtin_char): New function; renamed from
2783         `make_builtin_char'; return -1 instead of signal.
2784         (Fdecode_builtin_char): Use `decode_builtin_char'.
2785
2786         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2787         `make_builtin_char'.
2788         (DECODE_CHAR): Use `decode_builtin_char' instead of
2789         `make_builtin_char'; use mapping table of `chinese-big5' for
2790         `chinese-big5-{1,2}'.
2791
2792 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2793
2794         * text-coding.c (char_encode_big5): New function.
2795         (char_finish_big5): Likewise.
2796         (reset_encoding_stream): Use `char_encode_big5' and
2797         `char_finish_big5' for CODESYS_BIG5.
2798         (mule_encode): Don't use `encode_coding_big5'.
2799         (encode_coding_big5): Deleted.
2800
2801 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2802
2803         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2804         0x81- in XEmacs UTF-2000.
2805         (detect_coding_big5): Likewise.
2806
2807 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2808
2809         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2810         generate character-id if the CCS property does not have
2811         corresponding predefined character.
2812         (make_builtin_char): Return -1 if corresponding predefined
2813         character is not found.
2814         (Fdecode_char): Return nil if corresponding character is not
2815         found.
2816         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2817         don't map to builtin ucs space.
2818
2819 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2820
2821         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2822         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2823
2824 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2825
2826         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2827         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2828         (Qideograph_gt): Likewise.
2829         (Qideograph_gt_pj_{1..11}): Likewise.
2830         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2831         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2832         `ideograph-gt-pj-11'.
2833         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2834         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2835         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2836
2837         * char-ucs.h (LEADING_BYTE_GT): New macro.
2838         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2839         (MIN_CHAR_GT): Likewise.
2840         (MAX_CHAR_GT): Likewise.
2841
2842 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2843
2844         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2845         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2846
2847         * doprnt.c (unsigned_int_converters): Add `c'.
2848         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2849
2850         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2851         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2852         `MIN_CHAR_MOJIKYO'.
2853         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2854         (MAX_CHAR_MOJIKYO_0): New macro.
2855         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2856
2857 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2858
2859         * mule-charset.c (Fdefine_char): Delete cemented out code.
2860         (encode_builtin_char_1): Modify for new allocation of builtin
2861         Mojikyo characters.
2862
2863         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2864
2865 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2866
2867         * mule-charset.c (Vcharset_ucs_cns): New variable.
2868         (Qucs_cns): New variable.
2869         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2870         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2871
2872 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2873
2874         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2875
2876 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2877
2878         * search.c (search_buffer): Make `charset_base_code' as
2879         character-id >> 6 to eliminate the corresponding last byte in
2880         UTF-8 representation [I'm not sure it is right thing].
2881         (boyer_moore): Likewise.
2882
2883 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2884
2885         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2886         representation in MULE.
2887
2888 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2889
2890         * text-coding.c (Fmake_coding_system): Use
2891         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2892         `EXTERNAL_PROPERTY_LIST_LOOP'.
2893
2894 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2895
2896         * text-coding.c (decode_output_utf8_partial_char): New function.
2897         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2898
2899 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2900
2901         * text-coding.c (decode_coding_utf8): Output original byte
2902         sequence if it is broken; change order of conditions.
2903
2904         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2905         of conditions.
2906
2907         * mb-multibyte.h (BYTE_ASCII_P):
2908         Use bit ops for char-signedness safety.
2909         (BYTE_C0_P): Use bit ops for char-signedness safety.
2910         (BYTE_C1_P): Use bit ops for char-signedness safety.
2911
2912         * character.h: (XCHAR_OR_CHAR_INT):
2913         Always use inline function.
2914         Remove redundant type checking assert() - XINT will abort quite
2915         nicely.
2916
2917 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2918
2919         * text-coding.c: (Fencode_shift_jis_char):
2920         (Fencode_big5_char):
2921         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2922         Replace 0 with '\0' when working with bytes.
2923         Replace initial "(" with "\(" in docstrings.
2924
2925         (Fmake_coding_system):
2926         When type is ccl and value is vector, register it with a proper
2927         symbol.  And checks whether the given ccl program is valid.
2928         (mule_decode): When calling ccl_driver, if src indicates
2929         NULL pointer, set an empty string instead.
2930         (mule_encode): Likewise.
2931
2932         (detect_eol_type):
2933         (detect_coding_sjis):
2934         (decode_coding_sjis):
2935         (detect_coding_big5):
2936         (decode_coding_big5):
2937         (detect_coding_ucs4):
2938         (decode_coding_ucs4):
2939         (detect_coding_utf8):
2940         (decode_coding_utf8):
2941         (detect_coding_iso2022):
2942         (decode_coding_iso2022):
2943         (decode_coding_no_conversion):
2944         (mule_decode):
2945         Make all detecting and decoding functions take an Extbyte * arg.
2946         (text_encode_generic):
2947         (encode_coding_big5):
2948         (encode_coding_no_conversion):
2949         (mule_encode):
2950         Make all encoding functions take a Bufbyte * arg.
2951         Use size_t instead of unsigned int for memory sizes.
2952         Only cast to unsigned char whenever dereferencing Extbyte *.
2953
2954         (struct lrecord_description fcd_description_1): Use countof.
2955         (complex_vars_of_file_coding):
2956         Use countof instead of sizeof.
2957         Use CHECK_NATNUM instead of CHECK_INT.
2958
2959 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2960
2961         * mule-charset.c (Fget_char_attribute): Add new optional argument
2962         `default-value'.
2963         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2964         (remove_char_ccs): Likewise.
2965
2966 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2967
2968         * text-coding.c (char_encode_shift_jis): New implementation in
2969         UTF-2000.
2970         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2971         ...)'.
2972
2973         * mule-charset.c (Vcharset_chinese_big5): New variable in
2974         UTF-2000.
2975         (Qchinese_big5): New variable in UTF-2000.
2976         (BIG5_SAME_ROW): New macro in UTF-2000.
2977         (make_builtin_char): Use builtin characters of
2978         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2979         characters of `Vcharset_chinese_big5'.
2980         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2981         (complex_vars_of_mule_charset): Add new coded-charset
2982         `chinese-big5' in UTF-2000.
2983
2984         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2985         (Vcharset_chinese_big5): New external variable declaration.
2986         (Vcharset_japanese_jisx0208_1990): Likewise.
2987
2988 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2989
2990         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2991         function.
2992         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2993
2994 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2995
2996         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2997         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2998         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2999         `mojikyo-pj-*'.
3000
3001 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3002
3003         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3004
3005 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3006
3007         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3008         to 0.17.
3009
3010 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3011
3012         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3013         for `CHARSET_BY_ATTRIBUTES'.
3014         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3015         `CHARSET_BY_ATTRIBUTES'.
3016
3017         * text-coding.c (struct decoding_stream): Rename member `CH' to
3018         `CPOS'.
3019         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3020         (decode_coding_sjis): Likewise.
3021         (decode_coding_big5): Likewise.
3022         (decode_coding_ucs4): Likewise.
3023         (decode_coding_utf8): Likewise.
3024         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3025         `CHARSET_BY_ATTRIBUTES'.
3026         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3027         `str->counter'; decode 3, 4 bytes sets.
3028         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3029         sets.
3030         (decode_coding_no_conversion): Use `str->cpos' instead of
3031         `str->ch'.
3032
3033         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3034         (Qmojikyo_2022_1): New variable.
3035         (make_charset): Don't use `CHARSET_TYPE_*'.
3036         (range_charset_code_point): Support coded-charset
3037         `mojikyo-2022-1'.
3038         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3039         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3040         `CHARSET_BY_ATTRIBUTES'.
3041         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3042         `CHARSET_BY_ATTRIBUTES'.
3043         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3044         (complex_vars_of_mule_charset): Add new coded-charset
3045         `mojikyo-2022-1'.
3046
3047         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3048         interface; changed to inline function.
3049
3050         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3051         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3052         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3053         (CHARSET_TYPE_94): Deleted.
3054         (CHARSET_TYPE_94X94): Deleted.
3055         (CHARSET_TYPE_96): Deleted.
3056         (CHARSET_TYPE_96X96): Deleted.
3057         (CHARSET_TYPE_128): Deleted.
3058         (CHARSET_TYPE_128X128): Deleted.
3059         (CHARSET_TYPE_256): Deleted.
3060         (CHARSET_TYPE_256X256): Deleted.
3061         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3062         to inline function.
3063         (DECODE_MOJIKYO_2022): New inline function.
3064         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3065         `Vcharset_mojikyo_2022_1'.
3066
3067 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3068
3069         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3070         instead of `EQ'.
3071         (put_byte_table): Likewise.
3072         (char_id_table_equal): Use `get_byte_table' [new implementation].
3073
3074 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3075
3076         * mule-charset.c: Include <limits.h> in UTF-2000.
3077         (BT_UINT8_MIN): New macro in UTF-2000.
3078         (BT_UINT8_MAX): New macro in UTF-2000.
3079         (BT_UINT8_t): New macro in UTF-2000.
3080         (BT_UINT8_nil): New macro in UTF-2000.
3081         (BT_UINT8_unbound): New macro in UTF-2000.
3082         (INT_UINT8_P): New inline function in UTF-2000.
3083         (UINT8_VALUE_P): New inline function in UTF-2000.
3084         (UINT8_ENCODE): New inline function in UTF-2000.
3085         (UINT8_DECODE): New inline function in UTF-2000.
3086         (mark_uint8_byte_table): New function in UTF-2000.
3087         (print_uint8_byte_table): New function in UTF-2000.
3088         (uint8_byte_table_equal): New function in UTF-2000.
3089         (uint8_byte_table_hash): New function in UTF-2000.
3090         (make_uint8_byte_table): New function in UTF-2000.
3091         (uint8_byte_table_same_value_p): New function in UTF-2000.
3092         (BT_UINT16_MIN): New macro in UTF-2000.
3093         (BT_UINT16_MAX): New macro in UTF-2000.
3094         (BT_UINT16_t): New macro in UTF-2000.
3095         (BT_UINT16_nil): New macro in UTF-2000.
3096         (BT_UINT16_unbound): New macro in UTF-2000.
3097         (INT_UINT16_P): New inline function in UTF-2000.
3098         (UINT16_VALUE_P): New inline function in UTF-2000.
3099         (UINT16_ENCODE): New inline function in UTF-2000.
3100         (UINT16_DECODE): New inline function in UTF-2000.
3101         (UINT8_TO_UINT16): New inline function in UTF-2000.
3102         (mark_uint16_byte_table): New function in UTF-2000.
3103         (print_uint16_byte_table): New function in UTF-2000.
3104         (uint16_byte_table_equal): New function in UTF-2000.
3105         (uint16_byte_table_hash): New function in UTF-2000.
3106         (make_uint16_byte_table): New function in UTF-2000.
3107         (uint16_byte_table_same_value_p): New function in UTF-2000.
3108         (print_byte_table): New function in UTF-2000.
3109         (byte-table): Use `print_byte_table' as printer.
3110         (make_byte_table): Delete second argument `older'.
3111         (byte_table_same_value_p): New function in UTF-2000.
3112         (copy_byte_table): Deleted.
3113         (get_byte_table): New function in UTF-2000.
3114         (put_byte_table): New function in UTF-2000.
3115         (print_char_id_table): New function in UTF-2000.
3116         (char-id-table): Use `print_char_id_table' as printer.
3117         (make_char_id_table): Delete second argument `older'.
3118         (get_char_id_table): Use `get_byte_table [new implementation].
3119         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3120         implementation].
3121         (Ffind_char_attribute_table): New function in UTF-2000.
3122         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3123         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3124         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3125         (syms_of_mule_charset): Add new function
3126         `find-char-attribute-table' in UTF-2000.
3127
3128         * lrecord.h (enum lrecord_type): Add
3129         `lrecord_type_uint16_byte_table' and
3130         `lrecord_type_uint8_byte_table'.
3131
3132         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3133         (Lisp_Uint8_Byte_Table): New type.
3134         (XUINT8_BYTE_TABLE): New macro.
3135         (XSETUINT8_BYTE_TABLE): New macro.
3136         (UINT8_BYTE_TABLE_P): New macro.
3137         (GC_UINT8_BYTE_TABLE_P): New macro.
3138         (struct Lisp_Uint16_Byte_Table): New structure.
3139         (Lisp_Uint16_Byte_Table): New type.
3140         (XUINT16_BYTE_TABLE): New macro.
3141         (XSETUINT16_BYTE_TABLE): New macro.
3142         (UINT16_BYTE_TABLE_P): New macro.
3143         (GC_UINT16_BYTE_TABLE_P): New macro.
3144
3145 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3146
3147         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3148         (Vcharacter_ideographic_strokes_table): Deleted.
3149         (Vcharacter_total_strokes_table): Deleted.
3150         (Vcharacter_morohashi_daikanwa_table): Deleted.
3151         (Vcharacter_decomposition_table): Deleted.
3152         (Qname): Deleted because it is duplicated.
3153         (Qideographic_radical): Deleted.
3154         (Qideographic_strokes): Deleted.
3155         (Qtotal_strokes): Deleted.
3156         (Qmorohashi_daikanwa): Deleted.
3157         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3158         `ideographic-radical', `ideographic-strokes', `total-strokes',
3159         `morohashi-daikanwa' and `->decomposition'.
3160         (Fget_char_attribute): Likewise.
3161         (Fput_char_attribute): Likewise; use `make-vector' instead of
3162         `make_older_vector' for `->decomposition' value.
3163         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3164         `ideograph-daikanwa'.
3165         (syms_of_mule_charset): Delete builtin symbols `name',
3166         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3167         `morohashi-daikanwa'.
3168         (vars_of_mule_charset): Don't setup
3169         `Vcharacter_ideographic_radical_table',
3170         `Vcharacter_ideographic_strokes_table',
3171         `Vcharacter_total_strokes_table',
3172         `Vcharacter_morohashi_daikanwa_table' and
3173         `Vcharacter_decomposition_table'.
3174
3175 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3176
3177         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3178         `make_older_vector', `make_vector_newer_1' and
3179         `make_vector_newer'.
3180
3181         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3182         `make_older_vector' and `make_vector_newer'.
3183
3184         * config.h.in (HAVE_GGC): New macro.
3185
3186 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3187
3188         * mule-charset.c (struct char_attribute_list_closure): New
3189         structure in UTF-2000.
3190         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3191         (Fchar_attribute_list): Likewise.
3192         (Fset_charset_mapping_table): Use `make_vector_newer'.
3193         (Fdecode_builtin_char): New function in UTF-2000.
3194         (syms_of_mule_charset): Add new function `char-attribute-list' and
3195         `decode-builtin-char' in UTF-2000.
3196
3197         * lisp.h (make_vector_newer): New prototype.
3198
3199         * alloc.c (make_vector_newer_1): New function.
3200         (make_vector_newer): New function.
3201
3202 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3203
3204         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3205         50100)'.
3206
3207 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3208
3209         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3210         (Vcharacter_attribute_table): Deleted.
3211         (Vcharacter_name_table): Deleted.
3212         (put_char_attribute): Deleted.
3213         (remove_char_attribute): Deleted.
3214         (struct char_attribute_alist_closure): New structure.
3215         (add_char_attribute_alist_mapper): New function.
3216         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3217         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3218         (Fget_char_attribute): Likewise.
3219         (Fput_char_attribute): Likewise.
3220         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3221         of `remove_char_attribute'.
3222         (Fdefine_char): Return character.
3223         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3224         and `Vcharacter_name_table'.
3225         (complex_vars_of_mule_charset): Likewise
3226         `Vchar_attribute_hash_table'.
3227
3228 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3229
3230         * character.h (CHARC_CHARSET): New macro.
3231         (CHARC_CHARSET_ID): New macro.
3232         (CHARC_CODE_POINT): New macro.
3233         (CHARC_COLUMNS): New macro.
3234         (CHARC_TO_CHAR): New inline function.
3235         (CHARC_EQ): New inline function.
3236         (CHARC_ASCII_EQ): New inline function.
3237         (CHARC_IS_SPACE): New inline function.
3238         (ASCII_TO_CHARC): New inline function.
3239
3240         * char-ucs.h (encode_char_2): Deleted.
3241         (ENCODE_CHAR): Use `encode_char_1' again.
3242         (breakup_char_1): Likewise.
3243         (CHAR_TO_CHARC): New inline function.
3244
3245         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3246
3247 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3248
3249         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3250         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3251         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3252         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3253         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3254         `CHARC_IS_SPACE'.
3255         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3256
3257         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3258         `CHARC_CODE_POINT'.
3259         (x_output_display_block): Use `CHARC_CHARSET' and
3260         `CHARC_ASCII_EQ'.
3261
3262         * redisplay-tty.c (tty_output_display_block): Use
3263         `CHARC_ASCII_EQ'.
3264         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3265
3266         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3267
3268         * insdel.c (find_charsets_in_charc_string): Use
3269         `CHARC_CHARSET_ID'.
3270         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3271         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3272         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3273         (convert_charc_string_into_malloced_string): Likewise.
3274
3275 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3276
3277         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3278         instead of <Emchar_dynarr *> for buf; use
3279         `convert_bufbyte_string_into_charc_dynarr' instead of
3280         `convert_bufbyte_string_into_emchar_dynarr'; use
3281         `find_charsets_in_charc_string' instead of
3282         `find_charsets_in_emchar_string'.
3283
3284         * redisplay.h:
3285         - Include "character.h".
3286         (struct rune): New member `cglyph'; delete member `chr'.
3287
3288         * redisplay.c (redisplay_text_width_charc_string): New function;
3289         delete `redisplay_text_width_emchar_string'.
3290         (rtw_charc_dynarr): New variable; renamed from
3291         `rtw_emchar_dynarr'.
3292         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3293         `rtw_emchar_dynarr'; use
3294         `convert_bufbyte_string_into_charc_dynarr' instead of
3295         `convert_bufbyte_string_into_emchar_dynarr'; use
3296         `redisplay_text_width_charc_string' instead of
3297         `redisplay_text_width_emchar_string'.
3298         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3299         instead of `rtw_emchar_dynarr'; use
3300         `convert_bufbyte_string_into_charc_dynarr' instead of
3301         `convert_bufbyte_string_into_emchar_dynarr'.
3302         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3303         `redisplay_text_width_charc_string' instead of
3304         `redisplay_text_width_emchar_string'.
3305         (create_text_block): Modify for <struct rune> change.
3306         (generate_formatted_string_db): Likewise.
3307         (create_string_text_block): Likewise.
3308         (pixel_to_glyph_translation): Likewise.
3309
3310         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3311         instead of <const Emchar *>.
3312         (x_text_width): Likewise.
3313         (x_output_display_block): Use <Charc_dynarr *> instead
3314         <Emchar_dynarr *>; modify for <structure rune> change.
3315         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3316         *>.
3317
3318         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3319         <const Emchar *>; use `charc_string_displayed_columns' instead of
3320         `emchar_string_displayed_columns'.
3321         (tty_output_display_block): Use <Charc_dynarr *> instead of
3322         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3323         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3324         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3325         `tty_output_emchar_dynarr_dynarr'.
3326         (tty_output_charc_dynarr): New function; delete
3327         `tty_output_charc_dynarr'.
3328
3329         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3330         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3331         <Emchar_dynarr *> for buf; use
3332         `convert_bufbyte_string_into_charc_dynarr' instead of
3333         `convert_bufbyte_string_into_emchar_dynarr'.
3334
3335         * frame.c (title_string_charc_dynarr): New variable; renamed from
3336         `title_string_emchar_dynarr'.
3337         (generate_title_string): Use `title_string_charc_dynarr' instead
3338         of `title_string_emchar_dynarr'; use
3339         `convert_charc_string_into_malloced_string' instead of
3340         `convert_emchar_string_into_malloced_string'.
3341         (init_frame): Use `title_string_charc_dynarr' instead of
3342         `title_string_emchar_dynarr'.
3343
3344         * console.h:
3345         - Include "character.h".
3346         (struct console_methods): Use <const Charc *> instead of <const
3347         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3348         <Emchar_dynarr *> in output_string_method.
3349
3350         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3351         <Emchar_dynarr *>.
3352
3353         * console-stream.c (stream_text_width): Use <const Charc *>
3354         instead of <const Emchar *>.
3355
3356         * character.h (Charc_dynarr): New type.
3357
3358         * char-ucs.h (structure Charc): New structure; define new type
3359         `Charc'.
3360
3361         * char-lb.h (DECODE_CHAR): New inline function.
3362         (encode_char_1): New inline function.
3363         (ENCODE_CHAR): New macro.
3364         (structure Charc): New structure; define new type `Charc'.
3365
3366         * char-1byte.h (Vcharset_control_1): New macro.
3367         (Vcharset_latin_iso8859_1): New macro.
3368         (DECODE_CHAR): New inline function.
3369         (encode_char_1): New inline function.
3370         (ENCODE_CHAR): New macro.
3371         (structure Charc): New structure; define new type `Charc'.
3372
3373         * insdel.c (find_charsets_in_charc_string): New function; delete
3374         `find_charsets_in_emchar_string'.
3375         (charc_string_displayed_columns): New function; delete
3376         `emchar_string_displayed_columns'.
3377         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3378         `convert_bufbyte_string_into_emchar_dynarr'.
3379         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3380         `convert_charc_string_into_bufbyte_dynarr'.
3381         (convert_charc_string_into_malloced_string): New function; delete
3382         `convert_charc_string_into_malloced_string'.
3383
3384         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3385         `find_charsets_in_emchar_string'.
3386         (charc_string_displayed_columns): New prototype; delete
3387         `emchar_string_displayed_columns'.
3388         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3389         `convert_charc_string_into_bufbyte_dynarr'.
3390         (convert_charc_string_into_malloced_string): New prototype; delete
3391         `convert_charc_string_into_malloced_string'.
3392
3393 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3394
3395         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3396
3397 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3398
3399         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3400
3401         * char-ucs.h: Use <short> for <Charset_ID>.
3402
3403         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3404         <Charset_ID>.
3405
3406 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3407
3408         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3409         to 0.16.
3410
3411 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3412
3413         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3414         variable.
3415         (Qmorohashi_daikanwa): New variable.
3416         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3417         for `morohashi-daikanwa' attribute.
3418         (Fget_char_attribute): Likewise.
3419         (Fput_char_attribute): Likewise.
3420         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3421         has the same value of `ideograph-daikanwa'.
3422         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3423         (vars_of_mule_charset): Setup
3424         `Vcharacter_morohashi_daikanwa_table'.
3425
3426 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3427
3428         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3429         attributes.
3430         (add_charset_to_list_mapper): Add `key' instead of
3431         `XCHARSET_NAME (value)' to return aliases.
3432
3433 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3434
3435         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3436         variable.
3437         (Vcharacter_ideographic_strokes_table): New variable.
3438         (Qideographic_radical): New variable.
3439         (Qideographic_strokes): New variable.
3440         (Fchar_attribute_alist): Use
3441         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3442         attribute; use `Vcharacter_ideographic_strokes_table' for
3443         `ideographic-strokes' attribute.
3444         (Fget_char_attribute): Likewise.
3445         (Fput_char_attribute): Likewise.
3446         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3447         `ideographic-strokes'.
3448         (vars_of_mule_charset): Setup
3449         `Vcharacter_ideographic_radical_table' and
3450         `Vcharacter_ideographic_strokes_table'.
3451
3452 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3453
3454         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3455         (Qtotal_strokes): New variable.
3456         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3457         `total-strokes' attribute.
3458         (Fget_char_attribute): Likewise.
3459         (Fput_char_attribute): Likewise.
3460         (syms_of_mule_charset): Add new symbol `total-strokes'.
3461         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3462
3463 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3464
3465         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3466         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3467         are found.
3468         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3469         `->decomposition' attribute.
3470         (Fput_char_attribute): Likewise.
3471         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3472
3473 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3474
3475         * mule-charset.c (decoding_table_check_elements): New function.
3476         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3477
3478 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3479
3480         * mule-charset.c (Fset_charset_mapping_table): Use
3481         `put_char_ccs_code_point'.
3482
3483 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3484
3485         * mule-charset.c (decoding_table_put_char): New inline function.
3486         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3487
3488 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3489
3490         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3491         (XCHARSET_BYTE_SIZE): New macro.
3492         (decoding_table_remove_char): New inline function.
3493         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3494         `decoding_table_remove_char'.
3495         (remove_char_ccs): Use `decoding_table_remove_char'.
3496         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3497
3498 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3499
3500         * mule-charset.c (Vcharacter_name_table): New variable.
3501         (Qname): New variable.
3502         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3503         attribute.
3504         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3505         `Vcharacter_name_table' for `name' attribute.
3506         (Fremove_char_attribute): Use function `remove_char_ccs'.
3507         (put_char_ccs_code_point): New function.
3508         (remove_char_ccs): New function.
3509         (syms_of_mule_charset): Add new symbol `name'.
3510         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3511
3512 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3513
3514         * mule-charset.c (make_byte_table): Add new argument `older'.
3515         (make_char_id_table): Likewise.
3516         (copy_char_id_table): Comment out because it is not used.
3517         (put_char_id_table): Modify for `make_byte_table'.
3518         (Fput_char_attribute): Make encoding_table as older object;
3519         inherit older bit of `Vcharacter_composition_table'.
3520         (mark_charset): Don't mark `cs->encoding_table'.
3521         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3522         normal object; make `Vcharacter_composition_table' as an older
3523         object; delete staticpro for `Vcharacter_composition_table'; make
3524         `Vcharacter_variant_table' as a normal object.
3525
3526         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3527         (mark_object): Don't check older object in UTF-2000.
3528
3529         * lrecord.h (struct lrecord_header): Add new member `older' in
3530         UTF-2000.
3531         (set_lheader_implementation): Setup `SLI_header->older' in
3532         UTF-2000.
3533         (set_lheader_older_implementation): New macro in UTF-2000.
3534         (OLDER_RECORD_P): New macro in UTF-2000.
3535         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3536         (alloc_older_lcrecord): New prototype in UTF-2000.
3537         (alloc_older_lcrecord_type): New macro in UTF-2000.
3538
3539 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3540
3541         * mule-charset.c (byte_table_description): Use
3542         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3543         (char_id_table_description): Delete bogus `, 1'.
3544         (Fget_char_attribute): Refer encoding_table of each coded-charset
3545         to get value of coded-charset attribute of a character.
3546         (Fput_char_attribute): Use `make_older_vector' instead of
3547         `make_vector'; use encoding_table of each coded-charset to store
3548         value of coded-charset attribute of a character.
3549         (Fremove_char_attribute): Use encoding_table of each coded-charset
3550         to store value of coded-charset attribute of a character.
3551         (mark_charset): Mark `cs->encoding_table'; don't mark
3552         `cs->decoding_table'.
3553         (charset_description): Add description of new member
3554         `encoding_table'.
3555         (make_charset): Initialize `encoding_table'.
3556
3557         * char-ucs.h (struct Lisp_Charset): Add new member
3558         `encoding_table'.
3559         (CHARSET_ENCODING_TABLE): New macro.
3560         (XCHARSET_ENCODING_TABLE): New macro.
3561         (charset_code_point): New implementation.
3562         (encode_char_1): Likewise.
3563
3564         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3565         (disksave_object_finalization_1): Call finalizers of
3566         `all_older_lcrecords' in UTF-2000.
3567         (make_older_vector): New function in UTF-2000.
3568         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3569         UTF-2000.
3570
3571         * lisp.h (make_older_vector): New prototype in UTF-2000.
3572
3573 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3574
3575         * lrecord.h (enum lrecord_type): Rename
3576         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3577
3578         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3579         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3580         `get_char_code_table'.
3581
3582         * mule-charset.c (mark_char_id_table): Renamed from
3583         `mark_char_code_table'.
3584         (char_id_table_equal): Renamed from `char_code_table_equal'.
3585         (char_id_table_hash): Renamed from `char_code_table_hash'.
3586         (make_char_id_table): Renamed from `make_char_code_table'.
3587         (copy_char_id_table): Renamed from `copy_char_code_table'.
3588         (get_char_id_table): Renamed from `get_char_code_table'.
3589         (put_char_id_table): Renamed from `put_char_code_table'.
3590         (to_char_id): Renamed from `to_char_code'.
3591
3592         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3593         `Lisp_Char_Code_Table'.
3594         (char_id_table): Renamed from `char_code_table'.
3595         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3596         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3597         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3598         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3599         (get_char_id_table): Renamed from `get_char_code_table'.
3600
3601 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3602
3603         * lrecord.h (enum lrecord_type): Rename
3604         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3605
3606         * mule-charset.c (mark_byte_table): Renamed from
3607         `mark_char_byte_table'.
3608         (byte_table_equal): Renamed from `char_byte_table_equal'.
3609         (byte_table_hash): Renamed from `byte_table_hash'.
3610         (make_byte_table): Renamed from `make_byte_table'.
3611         (copy_byte_table): Renamed from `copy_char_byte_table'.
3612
3613         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3614         `Lisp_Char_Byte_Table'.
3615         (byte_table): Renamed from `char_byte_table'.
3616         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3617         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3618         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3619         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3620
3621 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3622
3623         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3624         (dfc_convert_to_internal_format): Likewise.
3625         
3626         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3627         * text-coding.c (Fcoding_system_alias_p): New function.
3628         * text-coding.c (Fcoding_system_aliasee): New function.
3629         * text-coding.c (append_suffix_to_symbol): New function.
3630         * text-coding.c (dangling_coding_system_alias_p): New function.
3631         * text-coding.c (Ffind_coding_system):
3632         * text-coding.c (Fcopy_coding_system):
3633         * text-coding.c (encode_coding_no_conversion):
3634         * text-coding.c (syms_of_file_coding):
3635         * text-coding.c (vars_of_file_coding):
3636         Rewrite coding system alias code.
3637         Allow nested aliases, like symbolic links.
3638         Allow redefinition of coding system aliases.
3639         Prevent existence of dangling coding system aliases.
3640         Eliminate convert_to_external_format.
3641         Eliminate convert_to_internal_format.
3642         
3643         * text-coding.c: Change enum eol_type to eol_type_t.
3644
3645 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3646
3647         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3648         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3649
3650         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3651         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3652
3653 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3654
3655         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3656         `ideograph-daikanwa'.
3657
3658         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3659         (Vcharset_ucs_bmp): Likewise.
3660         (Vcharset_mojikyo): Add new extern variable definition.
3661         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3662         (Vcharset_latin_iso8859_3): Likewise.
3663         (Vcharset_latin_iso8859_4): Likewise.
3664         (Vcharset_latin_iso8859_9): Likewise.
3665         (Vcharset_latin_viscii_lower): Likewise.
3666         (Vcharset_latin_viscii_upper): Likewise.
3667         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3668         `mojikyo' code-point is used to decode.
3669         (encode_char_2): New function [to convert `mojikyo' code-point to
3670         Mojikyo font encoding].
3671         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3672         (breakup_char_1): Likewise.
3673         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3674
3675 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3676
3677         * text-coding.c (Fmake_coding_system): Add document about
3678         `disable-composition' property.
3679
3680 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3681
3682         * text-coding.c (Qdisable_composition): New variable; delete
3683         `Qcomposite'.
3684         (Fmake_coding_system): Add new property `disable-composite';
3685         delete property `composite'.
3686         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3687         instead of `!CODING_SYSTEM_COMPOSITE'.
3688         (syms_of_file_coding): Add new symbol `disable-composition';
3689         delete symbol `composite'.
3690
3691         * file-coding.h (struct Lisp_Coding_System): Add
3692         `disable_composition'; delete `enable_composition'.
3693         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3694         `CODING_SYSTEM_COMPOSITE'.
3695         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3696         `XCODING_SYSTEM_COMPOSITE'.
3697
3698 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3699
3700         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3701         to 0.15.
3702
3703 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3704
3705         * text-coding.c (Qcomposite): New variable.
3706         (Fmake_coding_system): Add new property `composite'.
3707         (struct decoding_stream): Add `combined_char_count',
3708         `combined_chars' and `combining_table' in UTF-2000.
3709         (COMPOSE_FLUSH_CHARS): New macro.
3710         (COMPOSE_ADD_CHAR): New macro.
3711         (reset_decoding_stream): Reset `str->combined_char_count' and
3712         `str->combining_table' in UTF-2000.
3713         (decode_coding_iso2022): Modify for character-decomposition.
3714         (syms_of_file_coding): Add new symbol `composite'.
3715
3716 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3717
3718         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3719         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3720         of `Vcharacter_composition_table' if `->decomposition' property
3721         has only 1 element.
3722         (Qlatin_tcvn5712): New variable.
3723         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3724         (complex_vars_of_mule_charset): Add new coded-charset
3725         `latin-tcvn5712'.
3726
3727         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3728
3729 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3730
3731         * file-coding.h (struct Lisp_Coding_System): Add
3732         `enable_composition'.
3733         (CODING_SYSTEM_COMPOSITE): New macro.
3734         (XCODING_SYSTEM_COMPOSITE): New macro.
3735
3736 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3737
3738         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3739
3740 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3741
3742         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3743         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3744
3745 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3746
3747         * mule-charset.c (Vcharset_mojikyo): New variable.
3748         (Fdefine_char): Don't use coded-charset which does not have
3749         non-builtin character range to allocate character-id.
3750         (Qmojikyo): New variable.
3751         (syms_of_mule_charset): Add new symbol `mojikyo'.
3752         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3753
3754         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3755         (LEADING_BYTE_MOJIKYO): New macro.
3756         (MIN_CHAR_MOJIKYO): New macro.
3757         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3758         (MAX_CHAR_MOJIKYO): New macro.
3759
3760 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3761
3762         * mule-charset.c (remove_char_attribute): Fixed.
3763
3764 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3765
3766         * mule-charset.c (remove_char_attribute): New function.
3767         (Fremove_char_attribute): New function.
3768         (encode_builtin_char_1): Comment out builtin-support for
3769         greek-iso8859-7 and cyrillic-iso8859-5.
3770         (Fdecode_char): Check `code' is an integer.
3771         (syms_of_mule_charset): Add `remove-char-attribute'.
3772         (MIN_CHAR_GREEK): Deleted.
3773         (MAX_CHAR_GREEK): Likewise.
3774         (MIN_CHAR_CYRILLIC): Likewise.
3775         (MAX_CHAR_CYRILLIC): Likewise.
3776         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3777         MAX_CHAR_GREEK for `greek-iso8859-7'.
3778
3779         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3780         (MAX_CHAR_GREEK): Likewise.
3781         (MIN_CHAR_CYRILLIC): Likewise.
3782         (MAX_CHAR_CYRILLIC): Likewise.
3783
3784 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3785
3786         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3787         format is used without `ucs' property.
3788         (Fdecode_char): Fix problem with GR representation.
3789         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3790         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3791
3792 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3793
3794         * mule-charset.c (make_builtin_char): New function.
3795         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3796         (Fset_charset_mapping_table): Modify for new representation of
3797         code-point.
3798         (Fdecode_char): New function.
3799         (syms_of_mule_charset): Add new builtin function `decode-char' in
3800         UTF-2000.
3801
3802         * char-ucs.h (make_builtin_char): New prototype.
3803         (DECODE_CHAR): New inline function.
3804         (MAKE_CHAR): Use `DECODE_CHAR'.
3805
3806 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3807
3808         * text-coding.c (parse_charset_conversion_specs): Use
3809         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3810         `XCHARSET_TYPE'.
3811         (iso2022_designate): Likewise.
3812
3813         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3814         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3815
3816         * mule-charset.c (Vcharset_ucs): New variable.
3817         (print_charset): Change design; use `CHARSET_CHARS' and
3818         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3819         (make_charset): Change signature to specify `chars' and
3820         `dimension' instead of `type'.
3821         (range_charset_code_point): Modify for 256^n-set.
3822         (encode_builtin_char_1): Encode as `ucs' in default.
3823         (Fmake_charset): Modify for `make_charset'.
3824         (Fmake_reverse_direction_charset): Likewise.
3825         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3826         UTF-2000.
3827         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3828         for `make_charset'.
3829
3830         * char-ucs.h (Vcharset_ucs): New variable.
3831         (LEADING_BYTE_UCS): New macro.
3832         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3833         and `chars' to `unsigned short' from `unsigned int'.
3834         (CHARSET_TYPE): Deleted.
3835         (XCHARSET_TYPE): Deleted.
3836
3837 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3838
3839         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3840
3841         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3842         (ENCODE_CHAR): New macro.
3843
3844 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3845
3846         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3847         to 0.14 (Kawachi-Katakami).
3848
3849 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3850
3851         * text-coding.c (char_encode_shift_jis): Modify for
3852         `charset_code_point'.
3853         (char_encode_iso2022): Likewise.
3854
3855         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3856         (integer) instead of list of <Lisp_Object>s (integers) as the
3857         format of code-point of a coded-charset.
3858         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3859         (encode_builtin_char_1): New function; delete
3860         `split_builtin_char'.
3861         (charset_code_point): Return <int> instead of <Lisp_Object>.
3862         (Fsplit_char): Don't use `SPLIT_CHAR'.
3863
3864         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3865         prototype for `split_builtin_char'.
3866         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3867         (charset_code_point): Likewise.
3868         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3869         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3870
3871 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3872
3873         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3874         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3875
3876 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3877
3878         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3879
3880         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3881         (MAX_CHAR_OBS_94x94): Deleted.
3882
3883 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3884
3885         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3886
3887         * char-ucs.h (MAX_CHAR_BMP): New macro.
3888
3889 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3890
3891         * text-coding.c: Sync with r21-2-24.
3892
3893 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3894
3895         * file-coding.c: Modify for UTF-2000.
3896
3897 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3898
3899         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3900         to 0.13 (Takaida).
3901
3902 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3903
3904         * mule-charset.c (split_builtin_char): Delete builtin support for
3905         `katakana-jisx0201'.
3906         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3907         BMP area in builtin representation.
3908
3909         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3910         `Vcharset_katakana_jisx0201'.
3911
3912 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3913
3914         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3915         (Qisolated): New variable.
3916         (Qinitial): New variable.
3917         (Qmedial): New variable.
3918         (Qfinal): New variable.
3919         (Qvertical): New variable.
3920         (Qsmall): New variable.
3921         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3922         `Qvertical' and `Qsmall'.
3923         (Qmojikyo_pj_[1 .. 21]): New variable.
3924         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3925         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3926         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3927         .. 21]'.
3928
3929 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3930
3931         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3932         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3933         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3934
3935 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3936
3937         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3938         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3939         BMP.
3940         (Qjapanese_jisx0208_1990): New variable.
3941         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3942         (complex_vars_of_mule_charset): Add new coded-charset
3943         `japanese-jisx0208-1990'.
3944
3945         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3946         (MIN_CHAR_JIS_X0208_1990): New macro.
3947         (MAX_CHAR_JIS_X0208_1990): New macro.
3948
3949 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3950
3951         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3952         coded-charset is not found.
3953
3954 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3955
3956         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3957         (Fdefine_char): Use `Fmake_char'.
3958
3959 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3960
3961         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3962         (Vcharset_hiragana_jisx0208): Deleted.
3963         (Vcharset_katakana_jisx0208): Deleted.
3964         (Qideograph_daikanwa): New variable.
3965         (Qhiragana_jisx0208): Deleted.
3966         (Qkatakana_jisx0208): Deleted.
3967         (split_builtin_char): Split `ideograph-daikanwa'.
3968         (Fsplit_char): New implementation for UTF-2000.
3969         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3970         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3971         (complex_vars_of_mule_charset): Add new coded-charset
3972         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3973         `katakana-jisx0208'.
3974
3975         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3976         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3977         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3978         (MIN_CHAR_DAIKANWA): New macro.
3979         (MAX_CHAR_DAIKANWA): New macro.
3980
3981 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3982
3983         * data.c (Fstring_to_number): Don't recognize floating point if
3984         base is not 10.
3985
3986 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3987
3988         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3989
3990 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3991
3992         * mule-charset.c (Qsquare): New variable.
3993         (to_char_code): Add `Qsquare'.
3994         (syms_of_mule_charset): Add new symbol `square'.
3995
3996 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3997
3998         * mule-charset.c (Qcircle): New variable.
3999         (to_char_code): Add `Qcircle'.
4000         (syms_of_mule_charset): Add new symbol `circle'.
4001
4002 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4003
4004         * mule-charset.c (Qfont): New variable.
4005         (to_char_code): Add `Qfont'.
4006         (syms_of_mule_charset): Add new symbol `font'.
4007
4008 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4009
4010         * mule-charset.c (Qsub): New variable.
4011         (to_char_code): Add `Qsub'.
4012         (syms_of_mule_charset): Add new symbol `sub'.
4013
4014 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4015
4016         * mule-charset.c (Fput_char_attribute): Convert each element of
4017         VALUE to GL position if ATTRIBUTE is a GR-set,
4018
4019 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4020
4021         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4022         coded-charset is a GR-set.
4023
4024 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4025
4026         * mule-charset.c (Fput_char_attribute): Check each element of
4027         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4028
4029 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4030
4031         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4032         UTF-2000.
4033         (Qethiopic_ucs): New variable in UTF-2000.
4034         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4035         (complex_vars_of_mule_charset): Add new coded-charset
4036         `ethiopic-ucs' in UTF-2000.
4037
4038         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4039         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4040         9)'.
4041         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4042         10)'.
4043         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4044
4045 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4046
4047         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4048         `ascii'.
4049
4050 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4051
4052         * mule-charset.c (Vcharacter_variant_table): New variable.
4053         (Q_ucs): New variable.
4054         (Fchar_variants): New function.
4055         (Fput_char_attribute): Register `->ucs' value to
4056         `Vcharacter_variant_table'.
4057         (syms_of_mule_charset): Add new function `char-variants' and new
4058         symbol `->ucs'.
4059         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4060
4061 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4062
4063         * mule-charset.c (get_char_code_table): Allow negative character
4064         code.
4065         (put_char_code_table): Likewise.
4066         (Vcharacter_composition_table): New variable.
4067         (Q_decomposition): New variable.
4068         (Qwide): New variable.
4069         (Qnarrow): New variable.
4070         (Qcompat): New variable.
4071         (QnoBreak): New variable.
4072         (Qsuper): New variable.
4073         (Qfraction): New variable.
4074         (to_char_code): New function.
4075         (Fget_composite_char): New function.
4076         (Fput_char_attribute): Register `->decomposition' value to
4077         `Vcharacter_composition_table'.
4078         (syms_of_mule_charset): Add new function `get-composite-char', new
4079         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4080         `super' and `fraction'.
4081         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4082
4083 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4084
4085         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4086         character; copy the return value.
4087
4088 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4089
4090         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4091
4092         * mule-charset.c (range_charset_code_point): Must use make_int.
4093         (split_builtin_char): New function.
4094
4095 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4096
4097         * mule-charset.c (char_byte_table): Change name from
4098         "char-code-table" to "char-byte-table".
4099         (mark_char_code_table): New function.
4100         (char_code_table_equal): New function.
4101         (char_code_table_hash): New function.
4102         (char_code_table_description): New constant.
4103         (char_code_table): New type.
4104         (make_char_code_table): New function.
4105         (copy_char_code_table): New function.
4106         (get_char_code_table): Modify for `char_code_table' type.
4107         (put_char_code_table): Likewise.
4108         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4109         (Kashiwara).
4110
4111         * char-ucs.h (char_code_table): New type.
4112         (XCHAR_CODE_TABLE): New macro.
4113         (XSETCHAR_CODE_TABLE): New macro.
4114         (CHAR_CODE_TABLE_P): New macro.
4115         (GC_CHAR_CODE_TABLE_P): New macro.
4116         (struct Lisp_Char_Code_Table): New structure.
4117
4118 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4119
4120         * mule-charset.c (Fmake_charset): Setup byte_offset for
4121         {94|96}^n-set.
4122
4123 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4124
4125         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4126         character.
4127
4128 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4129
4130         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4131         is found.
4132
4133 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4134
4135         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4136         charset, it is regarded as a charset.
4137         (put_char_attribute): New function in UTF-2000.
4138         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4139         charset, mapping-table of the charset is modified.
4140         (Fdefine_char): New function in UTF-2000.
4141         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4142         `Fput_char_attribute'.
4143         (syms_of_mule_charset): Add new function `define-char' and new
4144         symbol `ucs' in UTF-2000.
4145         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4146
4147 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4148
4149         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4150         non-UTF-2000 configuration.
4151
4152 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4153
4154         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4155         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4156
4157         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4158         deleted.
4159         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4160         (Fset_charset_mapping_table): Likewise.
4161
4162         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4163         (CHARSET_ENCODING_TABLE): Delete.
4164         (XCHARSET_ENCODING_TABLE): Delete.
4165         (charset_code_point): New interface.
4166
4167 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4168
4169         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4170         instead of `charset_get_byte1' and `charset_get_byte2'.
4171
4172         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4173         (charset_get_byte2): Deleted.
4174
4175 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4176
4177         * char-ucs.h (SPLIT_CHAR): New inline function.
4178         (breakup_char_1): Use `SPLIT_CHAR'.
4179
4180         * mule-charset.c (range_charset_code_point): New function.
4181         (charset_code_point): New function.
4182
4183         * char-ucs.h (range_charset_code_point): New interface.
4184         (breakup_char_1): Use `range_charset_code_point'.
4185
4186 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4187
4188         * mule-charset.c (Fmake_charset): Delete unused local variable
4189         `code_offset'.
4190
4191         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4192         (breakup_char_1): Find a charset and code-point in
4193         `Vcharacter_attribute_table'.
4194
4195 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4196
4197         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4198         to 0.10 (Yao).
4199
4200 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4201
4202         * mule-charset.c (Vcharacter_attribute_table): New variable.
4203         (Fchar_attribute_alist): New function.
4204         (Fget_char_attribute): New function.
4205         (Fput_char_attribute): New function.
4206         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4207         too.
4208         (syms_of_mule_charset): Add new function `char-attribute-alist',
4209         `get-char-attribute' and `put-char-attribute'.
4210         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4211
4212 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4213
4214         * mule-charset.c (Fmake_charset): Just use
4215         `get_unallocated_leading_byte'.
4216
4217         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4218         sets; don't use final-byte based number for private sets.
4219
4220 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4221
4222         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4223         integer.
4224
4225 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4226
4227         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4228         to 0.9.
4229
4230 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4231
4232         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4233         of `CHAR_LEADING_BYTE' in UTF-2000.
4234
4235         * insdel.c (find_charsets_in_bufbyte_string): Use
4236         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4237         (find_charsets_in_emchar_string): Likewise.
4238
4239         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4240         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4241
4242         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4243         (CHAR_CHARSET_ID): New macro.
4244
4245 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4246
4247         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4248         charset-id - MIN_LEADING_BYTE.
4249         (put_char_table): Likewise.
4250
4251 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4252
4253         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4254         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4255         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4256         (CHARSET_ID_OFFSET): New macro.
4257         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4258         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4259         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4260         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4261         4).
4262         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4263         5).
4264         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4265         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4266         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4267         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4268         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4269
4270 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4271
4272         * mule-charset.c (next_allocated_leading_byte): New variable in
4273         UTF-2000.
4274         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4275         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4276         (get_unallocated_leading_byte): Simply use
4277         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4278         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4279         UTF-2000.
4280
4281         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4282         (MAX_LEADING_BYTE_PRIVATE): New macro.
4283         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4284         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4285
4286 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4287
4288         * mule-charset.c (Fmake_charset): Allocate final-byte based
4289         charset-id for 94-set, 96-set and 94x94-set.
4290
4291 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4292
4293         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4294         ambiguous `else'.
4295         (Fmake_charset): Likewise.
4296         (complex_vars_of_mule_charset): Modify the font registry of
4297         `ucs-bmp' not to match `Ethiopic-Unicode'.
4298
4299 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4300
4301         * mule-charset.c (complex_vars_of_mule_charset): Add font
4302         registory of `ucs-bmp'.
4303
4304 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4305
4306         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4307         coded-charsets in `default-coded-charset-priority-list' when
4308         breaking up a character.
4309
4310         * mule-charset.c (Vcharset_latin_viscii): New variable.
4311         (Qlatin_viscii): New variable.
4312         (make_charset): Don't use `decoding_table'.
4313         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4314         byte_offset.
4315         (Fset_charset_mapping_table): New implementation.
4316         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4317         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4318         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4319         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4320         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4321         charset `latin_viscii'.
4322
4323         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4324         (CHARSET_TYPE_94X94): Change to 1 from 2.
4325         (CHARSET_TYPE_96): Change to 2 from 1.
4326         (CHARSET_TYPE_128): New macro.
4327         (CHARSET_TYPE_128X128): Change to 5 from 4.
4328         (CHARSET_TYPE_256): New macro.
4329         (CHARSET_TYPE_256X256): Change to 7 from 5.
4330         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4331
4332 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4333
4334         * text-coding.c (char_encode_shift_jis): Refer
4335         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4336         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4337
4338         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4339         (char_byte_table_equal): New function in UTF-2000.
4340         (char_byte_table_hash): New function in UTF-2000.
4341         (char_byte_table_description): New constant in UTF-2000.
4342         (char_byte_table): New type in UTF-2000.
4343         (make_char_byte_table): New function in UTF-2000.
4344         (copy_char_byte_table): New function in UTF-2000.
4345         (make_char_code_table): New macro in UTF-2000.
4346         (get_char_code_table): New function in UTF-2000.
4347         (put_char_code_table): New function in UTF-2000.
4348         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4349         (charset_description): Add setting in UTF-2000.
4350         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4351         `CHARSET_TO_BYTE1_TABLE(cs)'.
4352         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4353         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4354         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4355         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4356         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4357         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4358         `CHARSET_TO_BYTE2_TABLE(cs)'.
4359
4360         * char-ucs.h (char_byte_table): New type.
4361         (XCHAR_BYTE_TABLE): New macro.
4362         (XSETCHAR_BYTE_TABLE): New macro.
4363         (CHAR_BYTE_TABLE_P): New macro.
4364         (GC_CHAR_BYTE_TABLE_P): New macro.
4365         (struct Lisp_Char_Byte_Table): New structure.
4366         (get_char_code_table): New interface.
4367         (Emchar_to_byte_table): Deleted.
4368         (get_byte_from_character_table): Deleted.
4369         (struct Lisp_Charset): Add `encoding_table'; delete
4370         `to_byte1_table' and `to_byte2_table'.
4371         (CHARSET_ENCODING_TABLE): New macro.
4372         (CHARSET_TO_BYTE1_TABLE): Deleted.
4373         (CHARSET_TO_BYTE2_TABLE): Deleted.
4374         (XCHARSET_ENCODING_TABLE): New macro.
4375         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4376         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4377
4378 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4379
4380         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4381         `vietnamese-viscii-*'.
4382
4383 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4384
4385         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4386         (Qvietnamese_viscii_upper): New variable.
4387         (Fdefine_charset_alias): New function.
4388         (syms_of_mule_charset): Add new function `define-charset-alias'.
4389         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4390         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4391         `latin-viscii-*'.
4392
4393 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4394
4395         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4396         (MAX_CHAR_OBS_94x94): New macro.
4397         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4398         for 94x94 sets.
4399
4400         * mule-charset.c (put_byte_from_character_table): Change unit size
4401         from 128 to 256.
4402         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4403         not defined.
4404         (Fmake_reverse_direction_charset): Modify dummy argument of
4405         `make_charset' for non-UTF-2000 environment.
4406
4407 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4408
4409         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4410
4411         * mule-charset.c (destroy_byte_from_character_table): New macro.
4412         (latin_jisx0201_to_ucs): Deleted.
4413         (latin_iso8859_2_to_ucs): Deleted.
4414         (latin_iso8859_3_to_ucs): Deleted.
4415         (latin_iso8859_4_to_ucs): Deleted.
4416         (latin_iso8859_9_to_ucs): Deleted.
4417         (latin_viscii_lower_to_ucs): Deleted.
4418         (latin_viscii_upper_to_ucs): Deleted.
4419         (mark_charset): Mark `cs->decoding_table'.
4420         (Fcharset_mapping_table): Fix DOC-string.
4421         (Fset_charset_mapping_table): New function.
4422         (syms_of_mule_charset): Add nwe function
4423         `set-charset-mapping-table'.
4424         (complex_vars_of_mule_charset): Don't setup and use
4425         `latin_*_to_ucs'.
4426
4427 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4428
4429         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4430         charset.
4431
4432 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4433
4434         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4435         (Vcharset_katakana_jisx0208): New variable.
4436         (Qhiragana_jisx0208): New variable.
4437         (Qkatakana_jisx0208): New variable.
4438         (make_charset): Add new argument `byte_offset'.
4439         (charset_get_byte1): Modify for new coded-charset definition; use
4440         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4441         `XCHARSET_BYTE_OFFSET'.
4442         (Fmake_charset): Modify for `make_charset'.
4443         (Fmake_reverse_direction_charset): Likewise.
4444         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4445         `katakana-jisx0208'.
4446         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4447         `.'  in font registry of charset `katakana-jisx0201',
4448         `latin-jisx0201', `vietnamese-viscii-lower' and
4449         `vietnamese-viscii-upper'; modify DOC-string of charset
4450         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4451         registry of charset `japanese-jisx0208' not to use font for JIS
4452         X0208:1990; add new charset `hiragana-jisx0208' and
4453         `katakana-jisx0208'.
4454
4455         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4456         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4457         (struct Lisp_Charset): Add `byte_offset'.
4458         (CHARSET_BYTE_OFFSET): New macro.
4459         (XCHARSET_UCS_MIN): New macro.
4460         (XCHARSET_UCS_MAX): New macro.
4461         (XCHARSET_CODE_OFFSET): New macro.
4462         (XCHARSET_BYTE_OFFSET): New macro.
4463         (MIN_CHAR_HIRAGANA): New macro.
4464         (MAX_CHAR_HIRAGANA): New macro.
4465         (MIN_CHAR_KATAKANA): New macro.
4466         (MAX_CHAR_KATAKANA): New macro.
4467         (MAKE_CHAR): Modify for new coded-charset definition; use
4468         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4469         `XCHARSET_BYTE_OFFSET'.
4470
4471 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4472
4473         * mule-charset.c (CHAR96): Deleted.
4474         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4475         <Lisp_Object>.
4476         (latin_iso8859_2_to_ucs): Likewise.
4477         (latin_iso8859_3_to_ucs): Likewise.
4478         (latin_iso8859_4_to_ucs): Likewise.
4479         (latin_iso8859_9_to_ucs): Likewise.
4480         (latin_viscii_lower_to_ucs): Likewise.
4481         (latin_viscii_upper_to_ucs): Likewise.
4482         (latin_tcvn5712_to_ucs): Commented out.
4483         (make_charset): Change type of argument `decoding_table' from
4484         <Emchar*> to <Lisp_Object> [vector of characters].
4485         (Fmake_charset): Modify for `make_charset'.
4486         (Fmake_reverse_direction_charset): Likewise.
4487         (Fcharset_mapping_table): New function in UTF-2000.
4488         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4489         UTF-2000.
4490         (complex_vars_of_mule_charset): Modify for type change of
4491         `*_to_ucs'; modify for `make_charset'.
4492
4493         * char-ucs.h (struct Lisp_Charset): Change type of
4494         `decoding_table' from <Emchar*> to <Lisp_Object>.
4495         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4496
4497 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4498
4499         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4500         error with non-UTF-2000-Mule.
4501
4502 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4503
4504         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4505         in lisp again].
4506         (Vcharset_chinese_cns11643_4): Likewise.
4507         (Vcharset_chinese_cns11643_5): Likewise.
4508         (Vcharset_chinese_cns11643_6): Likewise.
4509         (Vcharset_chinese_cns11643_7): Likewise.
4510         (Qchinese_cns11643_3): Likewise.
4511         (Qchinese_cns11643_4): Likewise.
4512         (Qchinese_cns11643_5): Likewise.
4513         (Qchinese_cns11643_6): Likewise.
4514         (Qchinese_cns11643_7): Likewise.
4515         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4516         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4517         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4518         (complex_vars_of_mule_charset): Likewise.
4519
4520 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4521
4522         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4523         96-set.
4524         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4525         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4526
4527 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4528
4529         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4530         0xFF60.
4531         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4532         (breakup_char_1): Likewise.
4533
4534         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4535         one of them includes the specified character.
4536
4537 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4538
4539         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4540
4541 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4542
4543         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4544
4545 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4546
4547         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4548         definition for non-UTF-2000 Mule.
4549         (latin_iso8859_3_to_ucs): Likewise.
4550         (latin_iso8859_4_to_ucs): Likewise.
4551         (latin_iso8859_9_to_ucs): Likewise.
4552         (latin_jisx0201_to_ucs): Likewise.
4553         (MIN_CHAR_THAI): Likewise.
4554         (MAX_CHAR_THAI): Likewise.
4555         (MIN_CHAR_GREEK): Likewise.
4556         (MAX_CHAR_GREEK): Likewise.
4557         (MIN_CHAR_HEBREW): Likewise.
4558         (MAX_CHAR_HEBREW): Likewise.
4559         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4560         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4561         (MIN_CHAR_CYRILLIC): Likewise.
4562         (MAX_CHAR_CYRILLIC): Likewise.
4563
4564 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4565
4566         * char-ucs.h (breakup_char_1): Use
4567         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4568         thai-tis620 and katakana-jisx0201 area.
4569
4570 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4571
4572         * char-ucs.h (breakup_char_1): Use
4573         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4574         area.
4575
4576         * text-coding.c (reset_encoding_stream): Fixed.
4577         (char_encode_ucs4): Delete `& 255'.
4578
4579         * char-ucs.h (breakup_char_1): Use
4580         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4581
4582 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4583
4584         * file-coding.c (Fmake_coding_system): Don't set up
4585         `codesys->fixed.size'.
4586         (encode_coding_no_conversion): Don't refer
4587         `str->codesys->fixed.size'.
4588
4589 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4590
4591         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4592         (latin_a_char_to_byte1): Deleted.
4593         (latin_a_char_to_byte2): Deleted.
4594
4595 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4596
4597         * mule-charset.c (make_charset): Add new argument `ucs_min',
4598         `ucs_max' and `code_offset'.
4599         (charset_get_byte1): New implementation [delete specific charset
4600         depended implementations].
4601         (Fmake_charset): Modify for `make_charset'.
4602         (Fmake_reverse_direction_charset): Likewise.
4603         (complex_vars_of_mule_charset): Likewise.
4604
4605         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4606         `code_offset'.
4607         (CHARSET_UCS_MIN): New macro.
4608         (CHARSET_UCS_MAX): New macro.
4609         (CHARSET_CODE_OFFSET): New macro.
4610         (MAKE_CHAR): Delete charset depended definitions [except
4611         katakana-jisx0201].
4612
4613 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4614
4615         * char-ucs.h (breakup_char_1): Use
4616         `Vdefault_coded_charset_priority_list' for C0-Controls,
4617         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4618
4619 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4620
4621         * char-ucs.h (charset_get_byte1): New function.
4622         (XCHARSET_GET_BYTE1): Deleted.
4623         (charset_get_byte2): New function.
4624         (XCHARSET_GET_BYTE2): Deleted.
4625         (Vdefault_coded_charset_priority_list): New external variable.
4626         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4627         `Vdefault_preferred_coded_charset_list'.
4628
4629         * mule-charset.c (charset_get_byte1): New function.
4630         (charset_get_byte2): New function.
4631         (Vdefault_coded_charset_priority_list): New variable.
4632         (vars_of_mule_charset): Add new variable
4633         `default-coded-charset-priority-list'.
4634
4635 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4636
4637         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4638         (XCHARSET_GET_BYTE2): New inline function.
4639         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4640         `XCHARSET_GET_BYTE2'.
4641
4642 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4643
4644         * mule-charset.c (make_charset): Initialize
4645         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4646         NULL if table is not defined.
4647
4648 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4649
4650         * text-coding.c (char_encode_shift_jis): Use
4651         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4652         `ucs_to_latin_jisx0201'.
4653
4654         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4655         (ucs_to_latin_iso8859_2): Deleted.
4656         (ucs_to_latin_iso8859_3): Deleted.
4657         (ucs_to_latin_iso8859_4): Deleted.
4658         (ucs_to_latin_iso8859_9): Deleted.
4659         (ucs_to_latin_viscii_lower): Deleted.
4660         (ucs_to_latin_viscii_upper): Deleted.
4661         (ucs_to_latin_tcvn5712): Deleted.
4662         (make_charset): Add new argument `decoding_table'; set up
4663         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4664         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4665         `decoding_table' is defined in UTF-2000.
4666         (Fmake_charset): Modify for `make_charset'.
4667         (Fmake_reverse_direction_charset): Likewise.
4668         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4669         and `GENERATE_96_SET'.
4670
4671         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4672         (ucs_to_latin_jisx0201): Deleted.
4673         (latin_iso8859_2_to_ucs): Deleted.
4674         (ucs_to_latin_iso8859_2): Deleted.
4675         (latin_iso8859_3_to_ucs): Deleted.
4676         (ucs_to_latin_iso8859_3): Deleted.
4677         (latin_iso8859_4_to_ucs): Deleted.
4678         (ucs_to_latin_iso8859_4): Deleted.
4679         (latin_iso8859_9_to_ucs): Deleted.
4680         (ucs_to_latin_iso8859_9): Deleted.
4681         (latin_viscii_lower_to_ucs): Deleted.
4682         (ucs_to_latin_viscii_lower): Deleted.
4683         (latin_viscii_upper_to_ucs): Deleted.
4684         (ucs_to_latin_viscii_upper): Deleted.
4685         (struct Lisp_Charset): Renamed `encoding_table' to
4686         `to_byte1_table'; add `to_byte2_table'.
4687         (CHARSET_DECODING_TABLE): New macro.
4688         (CHARSET_TO_BYTE1_TABLE): New macro.
4689         (CHARSET_TO_BYTE2_TABLE): New macro.
4690         (XCHARSET_DECODING_TABLE): New macro.
4691         (XCHARSET_TO_BYTE1_TABLE): New macro.
4692         (XCHARSET_TO_BYTE2_TABLE): New macro.
4693         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4694         tables.
4695         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4696         don't use `ucs_to_*' tables.
4697
4698 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4699
4700         * text-coding.c (Fmake_coding_system): Don't set up
4701         `codesys->fixed.size'.
4702         (encode_coding_no_conversion): Use `if' instead of `switch'.
4703
4704         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4705
4706 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4707
4708         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4709         (Fmake_charset): Modify for `make_charset'.
4710         (Fmake_reverse_direction_charset): Likewise.
4711         (complex_vars_of_mule_charset): Likewise.
4712
4713 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4714
4715         * text-coding.c (char_encode_shift_jis): Use table
4716         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4717
4718 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4719
4720         * text-coding.c (text_encode_generic): Use `if' instead of
4721         `switch'.
4722         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4723         decode JIS-Latin.
4724
4725 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4726
4727         * text-coding.c (encode_coding_sjis): Deleted.
4728         (char_encode_shift_jis): New function.
4729         (char_finish_shift_jis): New function.
4730         (reset_encoding_stream): Set up `encode_char' and `finish' for
4731         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4732         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4733         (char_encode_utf8): Treat `eol_type'.
4734
4735 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4736
4737         * file-coding.c (decode_coding_iso2022): Use
4738         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4739
4740 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4741
4742         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4743         to 0.7 (Hirano).
4744
4745 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4746
4747         * char-lb.h (CHAR_COLUMNS): New macro.
4748
4749 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4750
4751         * text-coding.c (char_encode_ucs4): New function.
4752         (char_finish_ucs4): New function.
4753         (encode_coding_ucs4): Deleted.
4754         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4755         (text_encode_generic): Delete local variable `charset' and `half'.
4756         (ucs_to_mule_table): Deleted.
4757         (mule_to_ucs_table): Deleted.
4758         (Fset_ucs_char): Deleted.
4759         (ucs_to_char): Deleted.
4760         (Fucs_char): Deleted.
4761         (Fset_char_ucs): Deleted.
4762         (Fchar_ucs): Deleted.
4763         (decode_ucs4): Deleted.
4764         (mule_char_to_ucs4): Deleted.
4765         (encode_ucs4): Deleted.
4766         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4767         (decode_coding_utf8): Likewise.
4768         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4769         (char_encode_iso2022): Fixed.
4770         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4771         `Fset_char_ucs' and `Fchar_ucs'.
4772         (complex_vars_of_file_coding): Don't initialize
4773         `ucs_to_mule_table'.
4774
4775         * objects-tty.c (tty_initialize_font_instance): Don't use
4776         `XCHARSET_COLUMNS'.
4777
4778         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4779         UTF-2000.
4780
4781         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4782         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4783
4784         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4785         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4786         (emchar_string_displayed_columns): Likewise.
4787
4788         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4789         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4790         (string_column_at_point): Likewise.
4791         (Fmove_to_column): Likewise.
4792
4793         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4794         `encoding_table' and `decoding_table'.
4795         (CHARSET_REP_BYTES): Deleted.
4796         (XCHARSET_REP_BYTES): Deleted.
4797         (XCHARSET_COLUMNS): Deleted.
4798         (CHAR_COLUMNS): New macro.
4799         (lookup_composite_char): Deleted unconditionally.
4800         (composite_char_string): Likewise.
4801
4802 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4803
4804         * char-ucs.h (Emchar_to_byte_table): New type.
4805         (get_byte_from_character_table): New function interface.
4806         (Vcharset_latin_jisx0201): New variable.
4807         (latin_jisx0201_to_ucs): New variable.
4808         (ucs_to_latin_jisx0201): New variable.
4809         (Vcharset_latin_iso8859_2): New variable.
4810         (latin_iso8859_2_to_ucs): New variable.
4811         (ucs_to_latin_iso8859_2): New variable.
4812         (Vcharset_latin_iso8859_3): New variable.
4813         (latin_iso8859_3_to_ucs): New variable.
4814         (ucs_to_latin_iso8859_3): New variable.
4815         (Vcharset_latin_iso8859_4): New variable.
4816         (latin_iso8859_4_to_ucs): New variable.
4817         (ucs_to_latin_iso8859_4): New variable.
4818         (Vcharset_latin_iso8859_9): New variable.
4819         (latin_iso8859_9_to_ucs): New variable.
4820         (ucs_to_latin_iso8859_9): New variable.
4821         (Vcharset_latin_viscii_lower): New variable.
4822         (latin_viscii_lower_to_ucs): New variable.
4823         (ucs_to_latin_viscii_lower): New variable.
4824         (Vcharset_latin_viscii_upper): New variable.
4825         (latin_viscii_upper_to_ucs): New variable.
4826         (ucs_to_latin_viscii_upper): New variable.
4827         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4828         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4829         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4830         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4831         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4832         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4833         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4834         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4835         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4836         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4837
4838         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4839         (Vcharset_latin_viscii_upper): New variable.
4840         (make_byte_from_character_table): New function.
4841         (put_byte_from_character_table): New function.
4842         (get_byte_from_character_table): New function.
4843         (CHAR96): New macro.
4844         (ucs_to_latin_jisx0201): New variable.
4845         (latin_jisx0201_to_ucs): New variable.
4846         (ucs_to_latin_iso8859_2): New variable.
4847         (latin_iso8859_2_to_ucs): New variable.
4848         (ucs_to_latin_iso8859_3): New variable.
4849         (latin_iso8859_3_to_ucs): New variable.
4850         (ucs_to_latin_iso8859_4): New variable.
4851         (latin_iso8859_4_to_ucs): New variable.
4852         (ucs_to_latin_iso8859_9): New variable.
4853         (latin_iso8859_9_to_ucs): New variable.
4854         (ucs_to_latin_viscii_lower): New variable.
4855         (latin_viscii_lower_to_ucs): New variable.
4856         (ucs_to_latin_viscii_upper): New variable.
4857         (latin_viscii_upper_to_ucs): New variable.
4858         (ucs_to_latin_tcvn5712): New variable.
4859         (latin_tcvn5712_to_ucs): New variable.
4860         (Qlatin_viscii_lower): New variable.
4861         (Qlatin_viscii_upper): New variable.
4862         (syms_of_mule_charset): Set up new symbol
4863         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4864         (complex_vars_of_mule_charset): Set up new charset
4865         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4866         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4867         `ucs_to_<CHARSET>' tables.
4868
4869 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4870
4871         * text-coding.c: New file.
4872
4873 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4874
4875         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4876
4877         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4878         (MAKE_CHAR): Modify for `ucs-bmp'.
4879         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4880         non-MULE characters of BMP.
4881
4882 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4883
4884         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4885         to 0.6.
4886
4887 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4888
4889         * lstream.h:
4890         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4891         - Include character.h for `CHAR_ASCII_P'.
4892
4893         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4894
4895         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4896         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4897
4898         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4899         (BYTE_C0_P): Likewise.
4900         (BYTE_C1_P): Likewise.
4901         (Lstream_get_emchar_1): Likewise.
4902         (Lstream_fput_emchar): Likewise.
4903         (Lstream_funget_emchar): Likewise.
4904         (copy_internal_to_external): Likewise.
4905         (copy_external_to_internal): Likewise.
4906
4907         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4908         (BYTE_C0_P): Likewise.
4909         (BYTE_C1_P): Likewise.
4910         (Lstream_get_emchar_1): Likewise.
4911         (Lstream_fput_emchar): Likewise.
4912         (Lstream_funget_emchar): Likewise.
4913         (copy_internal_to_external): Likewise.
4914         (copy_external_to_internal): Likewise.
4915
4916         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4917         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4918
4919         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4920         (BYTE_ASCII_P): Moved to mb-1byte.h.
4921
4922 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4923
4924         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4925
4926         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4927         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4928         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4929         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4930         (VALIDATE_CHARPTR_FORWARD): Likewise.
4931         (simple_charptr_emchar): Moved to mb-multibyte.h.
4932         (simple_set_charptr_emchar): Likewise.
4933         (simple_charptr_copy_char): Likewise.
4934         (non_ascii_charptr_emchar): Likewise.
4935         (non_ascii_set_charptr_emchar): Likewise.
4936         (non_ascii_charptr_copy_char): Likewise.
4937         (charptr_emchar): Moved to mb-*byte.h.
4938         (set_charptr_emchar): Likewise.
4939         (charptr_copy_char): Likewise.
4940
4941         * mb-1byte.h, mb-multibyte.h: New files.
4942
4943 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4944
4945         * mb-utf-8.h (MULTIBYTE): New macro.
4946         (MAX_EMCHAR_LEN): Moved from buffer.h.
4947         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4948
4949         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4950
4951         * mb-lb.h, multibyte.h: New files.
4952
4953         * char-1byte.h (Charset_ID): Moved from buffer.h.
4954         (MIN_LEADING_BYTE): Likewise.
4955         (LEADING_BYTE_ASCII): Likewise.
4956         (NUM_LEADING_BYTES): Likewise.
4957         (CHARSETP): Likewise.
4958         (CHARSET_BY_LEADING_BYTE): Likewise.
4959         (XCHARSET_LEADING_BYTE): Likewise.
4960         (XCHARSET_GRAPHIC): Likewise.
4961         (XCHARSET_COLUMNS): Likewise.
4962         (XCHARSET_DIMENSION): Likewise.
4963         (CHAR_CHARSET): Likewise.
4964         (CHAR_LEADING_BYTE): Likewise.
4965         (BREAKUP_CHAR): Likewise.
4966         (Vcharset_ascii): Likewise.
4967
4968         * buffer.h: Include multibyte.h unconditionally.
4969         (VALID_CHARPTR_P): Moved to multibyte.h.
4970         (ASSERT_VALID_CHARPTR): Likewise.
4971         (REAL_INC_CHARPTR): Likewise.
4972         (REAL_INC_CHARBYTIND): Likewise.
4973         (REAL_DEC_CHARPTR): Likewise.
4974         (INC_CHARPTR): Likewise.
4975         (INC_CHARBYTIND): Likewise.
4976         (DEC_CHARPTR): Likewise.
4977         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4978         (VALIDATE_CHARPTR_FORWARD): Likewise.
4979         (charptr_n_addr): Likewise.
4980         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4981         (simple_charptr_emchar): Moved to multibyte.h.
4982         (simple_set_charptr_emchar): Likewise.
4983         (simple_charptr_copy_char): Likewise.
4984         (non_ascii_charptr_emchar): Likewise.
4985         (non_ascii_set_charptr_emchar): Likewise.
4986         (non_ascii_charptr_copy_char): Likewise.
4987         (charptr_emchar): Likewise.
4988         (set_charptr_emchar): Likewise.
4989         (charptr_copy_char): Likewise.
4990         (charptr_emchar_n): Likewise.
4991         (Charset_ID): Moved to char-1byte.h.
4992         (Vcharset_ascii): Likewise.
4993         (CHAR_CHARSET): Likewise.
4994         (CHAR_LEADING_BYTE): Likewise.
4995         (LEADING_BYTE_ASCII): Likewise.
4996         (NUM_LEADING_BYTES): Likewise.
4997         (MIN_LEADING_BYTE): Likewise.
4998         (CHARSETP): Likewise.
4999         (CHARSET_BY_LEADING_BYTE): Likewise.
5000         (XCHARSET_LEADING_BYTE): Likewise.
5001         (XCHARSET_GRAPHIC): Likewise.
5002         (XCHARSET_COLUMNS): Likewise.
5003         (XCHARSET_DIMENSION): Likewise.
5004         (BREAKUP_CHAR): Likewise.
5005
5006 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5007
5008         * character.h: Add document about interface for characters.
5009
5010         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5011         (MAKE_CHAR): Delete comment about
5012         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5013         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5014         (BREAKUP_CHAR): Modify name of arguments.
5015         (CHAR_CHARSET): Modify name of argument.
5016
5017         * buffer.h: Delete document about Emchar accessors.
5018
5019 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5020
5021         * character.h (CHAR_INTP): Moved from buffer.h
5022         (CHAR_OR_CHAR_INTP): Likewise.
5023         (XCHAR_OR_CHAR_INT): Likewise.
5024         (CHECK_CHAR_COERCE_INT): Likewise.
5025
5026         * buffer.h (CHAR_INTP): Moved to character.h
5027         (CHAR_OR_CHAR_INTP): Likewise.
5028         (XCHAR_OR_CHAR_INT): Likewise.
5029         (CHECK_CHAR_COERCE_INT): Likewise.
5030
5031 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5032
5033         * character.h:
5034         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5035         - Include char-1byte.h, char-lb.h or char-ucs.h.
5036
5037         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5038
5039         * buffer.h: Include character unconditionally.
5040         (valid_char_p): Moved to char-*.h.
5041         (non_ascii_valid_char_p): Moved to char-lb.h.
5042
5043         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5044
5045 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5046
5047         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5048         in UTF-2000 because it is not ported yet and not to use
5049         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5050         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5051         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5052
5053         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5054         (CHAR_ASCII_P): Moved from character.h.
5055
5056         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5057         (CHAR_ASCII_P): Likewise.
5058         (CHAR_FIELD1_MASK): Deleted.
5059         (CHAR_FIELD2_MASK): Deleted.
5060         (CHAR_FIELD3_MASK): Deleted.
5061         (MAX_CHAR_BASIC_LATIN): New macro.
5062         (CHAR_FIELD1): Deleted.
5063         (CHAR_FIELD2_INTERNAL): Deleted.
5064         (CHAR_FIELD3_INTERNAL): Deleted.
5065         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5066         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5067         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5068         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5069         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5070         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5071         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5072         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5073         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5074         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5075         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5076         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5077         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5078         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5079         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5080         (MIN_CHAR_COMPOSITION): Deleted.
5081         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5082         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5083
5084 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5085
5086         * buffer.h: Include mb-utf-8.h in UTF-2000.
5087
5088         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5089
5090         * mb-utf-8.h: New file.
5091
5092 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5093
5094         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5095         instead of `int'.
5096
5097         * mule-charset.h, buffer.h (Charset_ID): New type.
5098
5099 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5100
5101         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5102         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5103         instead of `MULE_CHAR_PRIVATE_OFFSET',
5104         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5105         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5106         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5107
5108         * character.h (Vcharset_japanese_jisx0212): New variable
5109         definition.
5110
5111 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5112
5113         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5114         (charset_by_attributes): Delete array about direction.
5115         (latin_a_char_to_charset): New variable in UTF-2000.
5116         (latin_a_char_to_byte1): New variable in UTF-2000.
5117         (latin_a_char_to_byte2): New variable in UTF-2000.
5118         (Qucs_bmp): New variable.
5119         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5120         `Bufbyte'.
5121         (next_allocated_2_byte_leading_byte): Likewise.
5122         (non_ascii_set_charptr_emchar): Likewise.
5123         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5124         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5125         `charset_by_attributes'.
5126         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5127         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5128         and `CHARSET_BY_LEADING_BYTE'.
5129         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5130         `utf-2000-version' to `vars_of_mule_charset'.
5131         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5132         define `leading-code-private-11' in UTF-2000; move setting of
5133         `utf-2000-version' from `syms_of_mule_charset'.
5134         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5135         UTF-2000.
5136
5137         * character.h (Charset_ID): New type.
5138         (LEADING_BYTE_UCS_BMP): New macro.
5139         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5140         (CHARSET_ID_OFFSET_94): New macro.
5141         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5142         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5143         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5144         final-byte.
5145         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5146         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5147         (CHARSET_ID_OFFSET_96): New macro.
5148         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5149         CHARSET_ID_OFFSET_96 and final-byte.
5150         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5151         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5152         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5153         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5154         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5155         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5156         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5157         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5158         (LEADING_BYTE_THAI_TIS620): Likewise.
5159         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5160         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5161         (CHARSET_ID_OFFSET_94x94): New macro.
5162         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5163         CHARSET_ID_OFFSET_94x94 and final-byte.
5164         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5165         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5166         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5167         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5168         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5169         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5170         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5171         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5172         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5173         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5174         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5175         (CHARSET_TYPE_128X128): New macro.
5176         (CHARSET_TYPE_256X256): New macro.
5177         (XCHARSET_PRIVATE_P): Delete unconditionally.
5178         (charset_by_attributes): Delete array about direction.
5179         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5180         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5181         (MIN_CHAR_94): New macro.
5182         (MAX_CHAR_94): New macro.
5183         (MIN_CHAR_96): New macro.
5184         (MAX_CHAR_96): New macro.
5185         (MIN_CHAR_94x94): New macro.
5186         (MAX_CHAR_94x94): New macro.
5187         (MIN_CHAR_96x96): New macro.
5188         (MAX_CHAR_96x96): New macro.
5189         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5190         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5191         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5192         - 32)'.
5193         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5194         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5195         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5196         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5197         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5198         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5199         `XCHARSET_LEADING_BYTE' to make code-point.
5200         (latin_a_char_to_charset): New variable.
5201         (latin_a_char_to_byte1): New variable.
5202         (latin_a_char_to_byte2): New variable.
5203         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5204         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5205         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5206
5207         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5208         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5209         (find_charsets_in_emchar_string): Likewise.
5210         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5211
5212         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5213         `int'.
5214         (decode_coding_iso2022): Likewise.
5215
5216         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5217         of `unsigned char'.
5218
5219         * redisplay.c (redisplay_text_width_emchar_string): Use
5220         `Charset_ID' instead of `unsigned char'.
5221         (redisplay_frame_text_width_string): Likewise.
5222
5223         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5224         `unsigned char'.
5225
5226         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5227         instead of `unsigned char'.
5228         (face_cachel_charset_font_metric_info): Likewise.
5229
5230         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5231         (get_non_ascii_char_table_value): Likewise.
5232         (get_char_table): Likewise.
5233         (put_char_table): Likewise.
5234         (map_over_other_charset): Likewise.
5235         (map_char_table): Likewise.
5236
5237         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5238         instead of `unsigned char'.
5239
5240 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5241
5242         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5243         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5244
5245         * mule-charset.c (leading_code_private_11): Don't define in
5246         UTF-2000.
5247
5248         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5249         in UTF-2000 because it is not ported yet and not to use
5250         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5251
5252 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5253
5254         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5255
5256 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5257
5258         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5259         in UTF-2000.
5260
5261         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5262         of unsigned char to store leading-byte.
5263
5264         * chartab.c (get_non_ascii_char_table_value): Don't use
5265         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5266
5267         * file-coding.c (encode_coding_big5): Delete bogus implementation
5268         in UTF2000.
5269
5270         * character.h (LEADING_BYTE_*): Delete definition for
5271         non-UTF-2000.
5272         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5273         (LEADING_BYTE_PREFIX_P): Deleted.
5274         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5275         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5276         (BUFBYTE_LEADING_BYTE_P): Deleted.
5277         (CHARSET_PRIVATE_P): Deleted unconditionally.
5278         (rep_bytes_by_first_byte): Deleted unconditionally.
5279         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5280         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5281         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5282         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5283         (CHAR_FIELD2): Deleted.
5284         (CHAR_FIELD3): Deleted.
5285         (MAKE_CHAR): Delete definition for non-UTF-2000.
5286         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5287         (breakup_char_1): New implementation.
5288         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5289         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5290
5291 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5292
5293         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5294         condition.
5295
5296 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5297
5298         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5299         (CHARSET_PRIVATE_P): Likewise.
5300         (XCHARSET_PRIVATE_P): Likewise.
5301         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5302
5303         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5304         UTF2000.
5305         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5306
5307 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5308
5309         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5310         (NUM_LEADING_BYTES): Changed from 128 to 256.
5311         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5312         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5313         UTF2000.
5314         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5315
5316         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5317         UTF2000.
5318         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5319         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5320         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5321         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5322         (Qchinese_cns11643_3): New variable in UTF2000.
5323         (Qchinese_cns11643_4): New variable in UTF2000.
5324         (Qchinese_cns11643_5): New variable in UTF2000.
5325         (Qchinese_cns11643_6): New variable in UTF2000.
5326         (Qchinese_cns11643_7): New variable in UTF2000.
5327         (syms_of_mule_charset): Define `chinese-cns11643-3',
5328         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5329         and `chinese-cns11643-7' in UTF2000.
5330         (vars_of_mule_charset): Initialize
5331         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5332         + 1 in UTF2000.
5333         (complex_vars_of_mule_charset): Setup charset
5334         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5335         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5336
5337 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5338
5339         * mule-charset.c: Move setting for `leading-code-private-11' from
5340         `syms_of_mule_charset' to `vars_of_mule_charset'.
5341
5342 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5343
5344         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5345         and `NUM_LEADING_BYTES' in assert.
5346
5347 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5348
5349         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5350         instead of 128.
5351         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5352         `NUM_LEADING_BYTES' instead of 128.
5353
5354 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5355
5356         * mule-charset.h (charset_by_leading_byte): Use
5357         `NUM_LEADING_BYTES' instead of 128.
5358         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5359
5360         * mule-charset.c (charset_by_leading_byte): Use
5361         `NUM_LEADING_BYTES' instead of 128.
5362         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5363
5364         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5365         128.
5366
5367 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5368
5369         * mule-charset.c (syms_of_mule_charset): Update to
5370         0.4 (Shin-Imamiya).
5371
5372 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5373
5374         * file-coding.c (encode_coding_sjis): New implementation for
5375         UTF2000.  (decode_coding_sjis): Ditto.
5376
5377 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5378
5379         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5380         Don't define in UTF2000.
5381
5382         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5383         defined.
5384
5385         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5386         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5387         MULE.
5388
5389 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5390
5391         * config.h.in (CHAR_IS_UCS4): New macro.
5392
5393         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5394         conventional MULE representation.
5395         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5396
5397         * mule-charset.h: Reverted to original.
5398
5399         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5400         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5401         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5402
5403         * character.h: New file.
5404
5405         * file-coding.c (Fmake_coding_system): Set 1 to
5406         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5407         defined.
5408         (encode_coding_no_conversion): New implementation for UTF2000.
5409
5410         * file-coding.h (struct Lisp_Coding_System): Add new member
5411         `fixed.size'.
5412
5413 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5414
5415         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5416         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5417         (encode_coding_iso2022): New implementation for UTF2000.
5418
5419 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5420
5421         * mule-canna.c (c2mu): New implementation for UTF2000.
5422         (m2c): Likewise.
5423
5424 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5425
5426         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5427
5428 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5429
5430         * file-coding.c (reset_encoding_stream): Set 0 to
5431         `str->iso2022.current_char_boundary' in UTF2000.
5432         (encode_utf8): Don't define in UTF2000.
5433         (encode_coding_utf8): New implementation for UTF-8 representation
5434         of UTF2000.
5435         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5436
5437 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5438
5439         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5440
5441         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5442         UTF2000.
5443         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5444
5445         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5446
5447         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5448         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5449         as UTF-8 in UTF2000.
5450         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5451         (non_ascii_valid_char_p): Don't define in UTF2000.
5452         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5453         (Lstream_get_emchar_1): Likewise.
5454         (utf-2000-version): New variable in UTF2000.
5455
5456         * lread.c (read_escape): Add new reader `u'.
5457
5458         * insdel.c (three_to_one_table): Don't define in UTF2000.
5459         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5460         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5461         UTF2000.
5462         (bytind_to_bufpos_func): Likewise.
5463         (buffer_mule_signal_inserted_region): Likewise.
5464         (vars_of_insdel): Don't initialize `three_to_one_table'.
5465         (init_buffer_text): Use `buf->text->mule_size' instead of
5466         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5467         UTF2000.
5468
5469         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5470         UTF-8 representation in UTF2000.
5471         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5472         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5473         (decode_coding_iso2022): Don't define local variable `lb' in
5474         UTF2000; don't use LEADING_BYTE in UTF2000; use
5475         `DECODE_ADD_UCS_CHAR' in UTF2000.
5476         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5477
5478         * config.h.in (UTF2000): New macro.
5479
5480         * buffer.h (struct buffer_text): Add new member `mule_size' and
5481         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5482         (valid_char_p): Return always 1 in UTF2000.
5483         (MAX_EMCHAR_LEN): 6 in UTF2000.
5484         (three_to_one_table): Don't define in UTF2000.
5485         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5486         UTF2000.
5487         (real_bytind_to_bufpos): Likewise.
5488
5489         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5490
5491 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5492
5493         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5494         representation change.
5495         (Vutf_2000_version): New variable.
5496         (leading_code_private_11): New variable.
5497         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5498         `leading-code-private-11'.
5499
5500         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5501         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5502         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5503         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5504         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5505         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5506         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5507         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5508         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5509         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5510         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5511         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5512         (MIN_CHAR_GREEK): New macro.
5513         (MAX_CHAR_GREEK): New macro.
5514         (MIN_CHAR_CYRILLIC): New macro.
5515         (MAX_CHAR_CYRILLIC): New macro.
5516         (MIN_CHAR_HEBREW): New macro.
5517         (MAX_CHAR_HEBREW): New macro.
5518         (MIN_CHAR_THAI): New macro.
5519         (MAX_CHAR_THAI): New macro.
5520         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5521         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5522         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5523         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5524         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5525         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5526         (CHAR_FIELD2): New inline function.
5527         (CHAR_FIELD3): New inline function.
5528         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5529         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5530         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5531         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5532         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5533         (MIN_CHAR_COMPOSITION): Likewise.
5534         (CHAR_LEADING_BYTE): Modified for character representation change.
5535         (MAKE_CHAR): Likewise.
5536
5537         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5538         (Vcharset_greek_iso8859_7): Likewise.
5539         (Vcharset_cyrillic_iso8859_5): Likewise.
5540         (Vcharset_hebrew_iso8859_8): Likewise.
5541         (Vcharset_thai_tis620): Likewise.
5542         (Vcharset_katakana_jisx0201): Likewise.
5543
5544 2004-02-02  Vin Shelton <acs@xemacs.org>
5545
5546         * XEmacs 21.4.15 is released
5547
5548 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5549
5550         * device-x.c (x_error_handler): Don't call stderr_out
5551
5552 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5553
5554         * buffer.c (other-buffer): Clarify documentation of order of
5555         arguments for FSF Emacs.
5556
5557 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5558
5559         * window.c (Fdelete_window): Dirty the mirror structure _before_
5560         marking the window deleted.
5561
5562 2003-09-15  Jerry James  <james@xemacs.org>
5563
5564         * event-msw.c (debug_mswin_messages): Conditionally compile
5565         messages missing from the Cygwin headers.
5566
5567 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5568
5569         * data.c (eq_with_ebola_notice): Fix typo in comment.
5570         (Ftrue_list_p): Improve docstring.
5571
5572 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5573
5574         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5575
5576 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5577
5578         * search.c (trivial_regexp_p): Regexps containing "\{" are
5579         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5580         Stefan Monnier for suggesting a diagnosis.
5581
5582 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5583
5584         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5585
5586 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5587
5588         * search.c (Fsearch_forward):
5589         (Fsearch_backward):
5590         Document negative count.
5591
5592 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5593
5594         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5595
5596 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5597
5598         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5599
5600 2003-09-15  Vin Shelton  <acs@xemacs.org>
5601
5602         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5603         21.5.
5604
5605 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5606
5607         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5608         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5609         (re_match_2_internal): Use TRANSLATE instead of
5610         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5611         non-ASCII char case conversion.
5612
5613 2003-09-08  Mike Sperber  <mike@xemacs.org>
5614
5615         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5616         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5617
5618 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5619
5620        * .gdbinit (pobj): fix printing of symbol name.
5621
5622 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5623
5624         * frame-x.c (x_layout_widgets): When resizing is about to cause
5625         frame size slip, mark it for redisplay.
5626
5627 2003-08-18  Jerry James  <james@xemacs.org>
5628
5629         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5630
5631 2003-09-03  Vin Shelton <acs@xemacs.org>
5632
5633         * XEmacs 21.4.14 is released
5634
5635 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5636
5637         * config.h.in (REGEX_MALLOC): Make it configure'able.
5638
5639 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5640
5641         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5642         linking.
5643         * sysdll.c (dll_init):
5644         * sysdll.c (dll_open):
5645         * sysdll.c (dll_close):
5646         * sysdll.c (dll_function):
5647         * sysdll.c (dll_variable):
5648         * sysdll.c (dll_error):
5649         Add support for loading bundles using Darwin/MacOSX
5650         native API.
5651
5652 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5653
5654         * process.c (start-process-internal): Document coding systems.
5655
5656 2003-07-30  Jerry James  <james@xemacs.org>
5657
5658         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5659
5660 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5661
5662         * event-msw.c (mswindows_enqueue_mouse_button_event):
5663         * event-msw.c (mswindows_wnd_proc):
5664           enqueue button event when scrollwheel event isn't handled by 
5665           mswindows_handle_mousewheel_event, such as when the scrollbars
5666           are not showing.
5667
5668 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5669
5670         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5671
5672 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5673
5674         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5675
5676 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5677
5678         * regex.c (re_match_2_internal): Fix matching degenerate word
5679         boundaries.
5680
5681 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5682
5683         * XEmacs 21.4.13 is released
5684
5685 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5686
5687         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5688         * lisp.h (<inttypes.h>):
5689         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5690         the definition.
5691
5692 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5693
5694         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5695         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5696         Result: "temacs can only be run in -batch mode."
5697         Fix: Check xemacs executable candidate for directory-ness.
5698
5699 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5700
5701         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5702           they conflict with <sys/types.h>.
5703
5704 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5705
5706         * database.c: Berkeley DB wants __STDC__ to be defined.
5707
5708 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5709
5710         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5711
5712 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5713
5714         * process-unix.c (unix_send_process): Fix C++ compile error.
5715
5716 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5717
5718         * Added .dylib as an acceptable shared library file extension
5719         * to support MacOSX.
5720
5721 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5722
5723         * EmacsFrameP.h (EmacsFramePart):
5724         Kludge to allow compiling with Motif1, but linking with Motif2.
5725
5726 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5727
5728         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5729
5730
5731 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5732
5733         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5734
5735 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5736
5737         * sysdll.c: Included lisp.h to define needed alloca_array.
5738
5739 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5740
5741         Make XEmacs redisplay 10 times faster.
5742         If, that is, you're using a slow X connection and MoveOpaque.
5743         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5744         Use compress_motion = TRUE.
5745         * EmacsFrame.c (emacsFrameClassRec): 
5746         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5747         * EmacsManager.c (emacsManagerClassRec):
5748         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5749
5750 2003-01-30  Vin Shelton  <acs@xemacs.org>
5751
5752         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5753
5754 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5755
5756         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5757         Patch by Martin Buchholz.
5758
5759 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5760
5761         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5762         Thanks to icc for warning and Martin Buchholz for reporting.
5763
5764 2003-01-29  Vin Shelton <acs@xemacs.org>
5765
5766         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5767
5768         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5769         remember to multiply by the element size.
5770
5771 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5772
5773         * XEmacs 21.4.12 "Portable Code" is released.
5774
5775 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5776
5777         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5778         * s/cygwin.sc: new linker file.
5779
5780 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5781
5782         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5783
5784         * redisplay-x.c (x_output_string): Use X11-specified types.
5785         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5786         * emacs.c (__free_hook): Use typeof with Intel compiler.
5787         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5788
5789 2003-01-08  Andy Piper  <andy@xemacs.org>
5790
5791         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5792         reserve size during unexec().
5793
5794 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5795
5796         * process-unix.c (unix_create_process): Don't let outchannel block.
5797
5798 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5799
5800         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5801         Needed for IsBadReadPtr().
5802
5803 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5804
5805         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5806
5807 2002-12-14  Ben Wing  <ben@xemacs.org>
5808
5809         * callint.c: Declaration error.
5810         * dumper.c (pdump):
5811         * dumper.c (pdump_load): Warning fix.
5812         * process.c: GCPRO error.
5813         * glyphs.c (unmap_subwindow):
5814         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5815         * event-stream.c (maybe_kbd_translate): Wrong argument to
5816         character_to_event().
5817
5818         * alloc.c (garbage_collect_1):
5819         * emacs.c:
5820         * emacs.c (debug_can_access_memory):
5821         * emacs.c (fatal_error_signal):
5822         * emacs.c (mswindows_handle_hardware_exceptions):
5823         * emacs.c (main_1):
5824         * emacs.c (main):
5825         * emacs.c (assert_failed):
5826         * emacs.c (syms_of_emacs):
5827         * lisp.h:
5828         * print.c:
5829         * print.c (std_handle_out_va):
5830         * print.c (write_string_to_stdio_stream):
5831         * print.c (write_fmt_string):
5832         * print.c (printing_badness):
5833         * print.c (printing_major_badness):
5834         * print.c (print_internal):
5835         * print.c (debug_print_no_newline):
5836         * print.c (debug_backtrace):
5837         Be more defensive in handling bad values when printing.  Add code
5838         from trunk involving inhibit_non_essential_printing_operations.
5839         When going down or in debug_print(), don't do external conversion
5840         and such and try really, really hard when printing to avoid core
5841         dumping.  Add force-debugging-signal, debug_break().
5842
5843 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5844
5845         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5846         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5847
5848 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5849
5850         * database.c: Fix open_database. Berkeley DB API has changed in
5851         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5852
5853 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5854
5855         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5856
5857 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5858
5859         * event-Xt.c (Xt_timeout):
5860         (Xt_timeout_callback):
5861         (emacs_Xt_add_timeout):
5862         (emacs_Xt_remove_timeout):
5863         (Xt_timeout_to_emacs_event):
5864         Turn completed_timeouts from a stack into a queue.  Fixes
5865         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5866
5867 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5868
5869         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5870         * emacs.c (main): Assert that mmap'd allocation is disabled.
5871
5872 2002-10-14  Andy Piper  <andy@xemacs.org>
5873
5874         * glyphs-widget.c (layout_query_geometry): add in fiddle
5875         factor. Include border text in width layout calculation.
5876         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5877
5878 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5879
5880         * XEmacs 21.4.10 "Military Intelligence" is released.
5881
5882 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5883
5884         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5885         using the NAS private array SoundFileInfo that no longer exists in
5886         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5887         and earlier.  This is broken for some versions between 1.5a and
5888         1.5f.
5889
5890 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5891
5892         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5893
5894         * emacs.c (shut_down_emacs): Improve crash message.
5895
5896 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5897
5898         * file-coding.c (determine_real_coding_system): Check for coding
5899         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5900         shebangs and Python PEP 263.
5901
5902 2002-10-08  Andy Piper  <andy@xemacs.org>
5903
5904         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5905         if static sizes haven't been set.
5906
5907 2002-08-30  Mike Alexander  <mta@arbortext.com>
5908
5909         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5910         to close a socket.
5911
5912 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5913
5914         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5915
5916 2002-09-20  Mike Sperber <mike@xemacs.org>
5917
5918         (This partially gets back my patch from 2002-07-20 without the
5919         bug.)
5920         * callproc.c (child_setup): Remove Ben's comment noting confusion
5921         over the file descriptors >= 3: close_process_descs() doesn't
5922         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5923         * process-unix.c (unix_create_process): Call
5924         begin_dont_check_for_quit to inhibit unwanted interaction (and
5925         thus breaking of X event synchronicity) in the child.
5926
5927 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5928
5929         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5930         widget.
5931
5932 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5933
5934         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5935         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5936         the xemacs process did not exit, but looped infinitely here.  This
5937         fixes that problem.
5938
5939 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5940
5941         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5942         (find_context): Improve comments.
5943
5944         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5945         (re_match_2): An XCHAR_TABLE operation was missing.
5946
5947         Many of the following changes were inspired by Andy Piper's (now
5948         obsolete) patch to make syntax-table text property lookup optional.
5949
5950         [Documentation]
5951
5952         * syntax.h (top level): Document semantics of syntax flags.
5953         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5954         * syntax.c, syntax.h (top level): Document syntax cache better in
5955         comments.
5956
5957         [Instrument syntax caching (temporary change)]
5958
5959         * syntax.h (enum syntax_cache_statistics_functions, struct
5960         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5961         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5962         * syntax.c (scan_words, Fforward_comment, scan_lists,
5963         Fbackward_prefix_characters):
5964         * font-lock.c (find_context):
5965         Use them to instrument syntax caching. 
5966         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5967         syntax_cache_statistics_function_names): New type and variables.
5968         * syntax.c (update_syntax_cache): Update and report statistics.
5969
5970         [Major syntax cache optimizations]
5971
5972         syntax.c (lookup_syntax_properties): Default off.
5973
5974         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5975         * syntax.c (update_syntax_cache):
5976         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5977
5978         [Minor syntax cache optimizations and code clarifications]
5979
5980         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5981         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5982         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5983         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5984         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5985         (Code clarification.)
5986
5987         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5988         scan_lists): Compute code from syncode, use Boolean macros instead
5989         of redundant masking operations.  (Code clarification; any decent
5990         compiler can do this optimization.)
5991
5992         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5993         for clarity.
5994
5995         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5996         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5997         use F*_single_property_change instead of F*_extent_change.
5998         Currently F*_single_property_change is _much_ less efficient.
5999
6000         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6001         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6002         syntax_cache.object properly, don't leave Qt or Qnil.
6003         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6004         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6005         tests for Qt or Qnil.
6006
6007 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6008
6009         * redisplay.c (point_in_line_start_cache): 
6010         * extents.c (print_extent_1):
6011         Fix warnings.
6012
6013         * extents.c (Fset_extent_property): Document `syntax-table' property.
6014
6015         * extents.h (Fnext_single_property_change): EXFUN it.
6016
6017 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6018
6019         * search.c (clear_unused_search_regs): New static function.
6020         (search_buffer): 
6021         (simple_search): 
6022         (boyer_moore):
6023         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6024         Minor clarifications in comments.
6025
6026         * regex.c (re_match_2_internal): Ensure no stale submatches.
6027
6028 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6029
6030         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6031
6032 2002-08-29  Jerry James  <james@xemacs.org>
6033
6034         * lisp.h: structrures -> structures.
6035
6036 2002-06-03  Andy Piper  <andy@xemacs.org>
6037
6038         * frame.c (frame_conversion_internal): add conversion appropriate
6039         for setting frame dimensions in pixels.
6040
6041         * console.h (struct console_methods): add device-specific widget
6042         layout functions.
6043
6044         * emacs.c (main_1): initialize glyph vars.
6045
6046         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6047         (handle_focus_event_2): new function. Allow focus to
6048         be set to a particular window and widget.
6049         (enqueue_focus_event): new function. Create a
6050         synthetic focus event.
6051         (emacs_Xt_handle_magic_event): call
6052         handle_focus_event_2.
6053
6054         * frame.c (Fset_frame_pixel_height): new function. Allow
6055         pixel-based sizing. Does the right thing on character-oriented
6056         displays.
6057         (Fset_frame_pixel_width): ditto.
6058         (Fset_frame_pixel_size): ditto.
6059         (syms_of_frame): declare.
6060
6061         * general-slots.h: add :vertically-justify and
6062         :horizontally-justify.
6063
6064         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6065         (mswindows_widget_border_width): new function.
6066         (mswindows_combo_box_instantiate): set border widths.
6067         (console_type_create_glyphs_mswindows): declare.
6068
6069         * glyphs-widget.c:
6070         (check_valid_justification): allow vertical and horizontal
6071         justification.
6072         (widget_border_width): new function. Call device methods.
6073         (widget_instance_border_width): ditto.
6074         (logical_unit_height): new function. Determine the height of a
6075         logical-unit. Logical units are intended to provide grid-like
6076         layout for subcontrols in a layout. If the layout is
6077         :vertically-justify top then subcontrols will be positioned on
6078         logical-unit boundaries, thus allowing adjacent subcontrols to
6079         line up.
6080         (widget_logical_unit_height): ditto for widgets.
6081         (redisplay_widget): misc cleanup.
6082         (widget_spacing): new function. Call device specific
6083         methods. Intended to be the default gap between adjacent widgets.
6084         (widget_query_geometry): use new spacing functions to determine
6085         appropriate geometry.
6086         (initialize_widget_image_instance): initialize horizontal and
6087         vertical justification.
6088         (widget_instantiate): use logica-units where appropriate for
6089         sizing large widgets.
6090         (button_query_geometry): use widget_instance_border_width.
6091         (tree_view_query_geometry): ditto.
6092         (tab_control_query_geometry): ditto.
6093         (edit_field_query_geometry): new function.
6094         (layout_update): pick up :justify, :horizontally-justify and
6095         :vertically-justify none of which worked previously. :justify is
6096         used as a fallback for both horizontal and vertical justification.
6097         (layout_query_geometry): use logical units to size appropriately.
6098         (layout_layout): ditto.
6099         (Fwidget_logical_to_character_width): new function. Allow users to
6100         convert from logical units to characters so that frame sizes can
6101         be set appropriately.
6102         (Fwidget_logical_to_character_height): ditto.
6103         (syms_of_glyphs_widget): declare.
6104         (image_instantiator_edit_fields): add edit_field_query_geometry.
6105         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6106         :horizontally-justify.
6107         (specifier_vars_of_glyphs_widget): new function. Declare
6108         Vwidget_border_width which is not yet used.
6109
6110         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6111         (x_widget_border_width): new function.
6112         (x_widget_instantiate): create a sensible name for widgets.
6113         (console_type_create_glyphs_x): declare x_widget_border_width.
6114
6115         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6116         (struct Lisp_Image_Instance): add :vertically-justify and
6117         :horizontally-justify.
6118         (LAYOUT_JUSTIFY_TOP): new.
6119         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6120         (ROUND_UP): new macro. Round argument up to next integral
6121         interval.
6122
6123         * redisplay-output.c (redisplay_output_layout): misc formatting.
6124
6125         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6126
6127 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6128
6129         * XEmacs 21.4.9 "Informed Management" is released.
6130
6131 2002-08-19  Andy Piper  <andy@xemacs.org>
6132
6133         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6134         win32 format.
6135
6136         * realpath.c (xrealpath): normalize drive spec also so that dir
6137         sep chars are not mixed on cygwin.
6138
6139 2002-08-06  Jerry James  <james@xemacs.org>
6140
6141         * window.c (Fsplit_window): Count only half of the divider width
6142         against the left window when splitting horizontally. 
6143
6144 2002-06-24  Andy Piper  <andy@xemacs.org>
6145
6146         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6147         toolbar was cleared.
6148
6149         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6150         function. Split out from mswindows_output_frame_toolbars.
6151         (mswindows_output_frame_toolbars): move clear pieces to
6152         mswindows_output_frame_toolbars.
6153
6154         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6155         out from gtk_output_frame_toolbars.
6156         (gtk_output_frame_toolbars): move clear pieces to
6157         gtk_clear_frame_toolbars.
6158
6159         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6160         the frame is cleared. How this ever worked before is a mystery.
6161         (x_output_frame_toolbars): Only output toolbars.
6162         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6163
6164         * gutter.c (update_gutter_geometry):
6165         Mark frame layout changed.
6166         (update_frame_gutter_geometry, update_frame_gutters):
6167         Respect frame_layout_changed.
6168
6169         * console.h (struct console_methods): add
6170         clear_frame_toolbars_method.
6171
6172         * redisplay.c (redisplay_frame): call
6173         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6174
6175         * toolbar.h: declare update_frame_toolbars_geometry.
6176
6177         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6178         out from update_frame_toolbars.  Call clear_frame_toolbars.
6179         (update_frame_toolbars): only output, do not change geometry.
6180
6181         * redisplay.c: add frame_layout_changed.
6182
6183         * redisplay.h: add frame_layout_changed.
6184         (CLASS_RESET_CHANGED_FLAGS): set it.
6185         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6186         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6187         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6188
6189         * device.h (struct device): add frame_layout_changed.
6190         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6191
6192         * frame.h (struct frame): add frame_layout_changed.
6193         (MARK_FRAME_LAYOUT_CHANGED): new.
6194
6195 2002-06-30  Mike Alexander  <mta@arbortext.com>
6196
6197         * event-msw.c (mswindows_need_event): Don't wait for a new message
6198         if the queue is not empty.  Suggested by Paul Moore.
6199
6200 2002-06-12  Andy Piper  <andy@xemacs.org>
6201
6202         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6203         for printing on accurately.
6204
6205 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6206
6207         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6208         WM_ACTIVATE message. Make sure that the frame is visible if the
6209         window is visible. This seemss to fix the problem where XEmacs
6210         appears to freeze after switching desktops with certain virtual
6211         window managers.
6212         (debug_output_mswin_message): Added code to output message
6213         parameters for WM_WINDOWPOSCHANGED, 
6214         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6215
6216 2002-05-25  Andy Piper  <andy@xemacs.org>
6217
6218         * select-x.c (vars_of_select_x): Fix docstring of
6219         x-selection-strict-motif-ownership
6220
6221 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6222
6223         * keymap.c (get_keymap):
6224         Add comment about do_autoload GCPROs own args.
6225
6226 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6227
6228         * bytecode.c (execute_optimized_program): check_opcode ifdef
6229         ERROR_CHECK_BYTE_CODE.
6230
6231 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6232
6233         Thanks to Ben Wing and Michael Sperber.
6234
6235         * eval.c (Fcommand_execute):
6236         (Feval):
6237         (Ffuncall):
6238         (Fmacroexpand_internal):
6239         (function_argcount):
6240         callint.c (Fcall_interactively):
6241         Add comment about do_autoload GCPROs own args.
6242
6243         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6244
6245         * eval.c (Ffuncall): Extra braces to placate GCC.
6246
6247 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6248
6249         * backtrace.h (grow_specpdl):
6250         (SPECPDL_RESERVE):
6251         * EmacsFrame.c (EmacsFrameSetValues):
6252         * eval.c (grow_specpdl):
6253         * ExternalShell.c (hack_event_masks_1):
6254         * glyphs-x.c (convert_EImage_to_XImage): 
6255         (x_finalize_image_instance):
6256         * ralloc.c (page_size):
6257         (r_alloc_sbrk):
6258         * xgccache.c (gc_cache_hash):
6259         Fix unsigned comparison warnings.
6260
6261 2002-07-29  Jerry James  <james@xemacs.org>
6262
6263         * lread.c (locate_file): Any nonnegative return value indicates
6264         success if MODE is nonnegative.
6265
6266 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6267
6268         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6269         argument. 
6270
6271 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6272
6273         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6274
6275         * dumper.c (pdump_get_indirect_count):
6276         (pdump_scan_by_alignment):
6277         (pdump_dump_root_struct_ptrs):
6278         (pdump_dump_rtables):
6279         (pdump_dump_root_objects):
6280         (pdump):
6281         * nas.c (WaveOpenDataForReading):
6282         * fns.c (print_bit_vector):
6283         * font-lock.c (SINGLE_SYNTAX_STYLE):
6284         * glyphs.c (check_for_ignored_expose):
6285         (find_matching_subwindow):
6286         * glyphs-eimage.c:
6287         * imgproc.c (get_histogram):
6288         * redisplay.c (point_in_line_start_cache):
6289         * redisplay-output.c (redisplay_unmap_subwindows):
6290         * symbols.c (defsymbol_massage_name_1):
6291         (defkeyword_massage_name):
6292         (deferror_massage_name_and_message):
6293         * redisplay-x.c (x_output_string): 
6294         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6295         * frame.h (struct frame):
6296         * filelock.c (current_lock_owner):
6297         * doprnt.c (emacs_doprnt_1):
6298         * lisp.h (struct Lisp_Bit_Vector):
6299         (DO_REALLOC):
6300         Fix warnings.
6301
6302 2002-02-13  Ben Wing  <ben@xemacs.org>
6303
6304         * event-stream.c (reset_key_echo):
6305         * event-stream.c (reset_this_command_keys):
6306         * event-stream.c (execute_command_event):
6307         If console is dead as a result of C-x 5 0, then post-command stuff
6308         needs to be careful and do only non-console-specific stuff.
6309
6310 2002-07-01  Mike Sperber <mike@xemacs.org>
6311
6312         * process-unix.c (unix_send_process): Mark coding_outstream as
6313         non-open upon SIGPIPE.
6314
6315         * event-stream.c (Fnext_event): Reorder switch cases to something
6316         that makes sense.
6317
6318 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6319
6320         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6321         Don't bogusly reinitialize ascii_character property.
6322
6323 2002-07-08  Mike Sperber <mike@xemacs.org>
6324
6325         * process.c (Fstart_process_internal): Do error checking before we
6326         fork off the child, so the child can't muck with the state of the
6327         parent.
6328
6329 2002-07-08  Mike Sperber <mike@xemacs.org>
6330
6331         * ralloc.c (init_ralloc): Allocate properly for pdump.
6332
6333 2002-06-12  Andy Piper  <andy@xemacs.org>
6334
6335         * glyphs.c (query_string_geometry): check the string.
6336
6337         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6338         widget names.
6339
6340 2002-06-17  Jerry James  <james@xemacs.org>
6341
6342         * sysdll.c: Remove RTLD_GLOBAL initialization.
6343         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6344
6345 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6346
6347         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6348
6349 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6350
6351         * sysdep.c (sys_rename): Make sys_rename work for the case where
6352         Windows rename sets errno to EACCES if target file exists.
6353
6354 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6355
6356         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6357         Fix detection of metric units to work on Win95
6358
6359 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6360
6361         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6362
6363 2002-04-25  Andy Piper  <andy@xemacs.org>
6364
6365         * redisplay.c (create_text_block): Remove extra comment trailer.
6366
6367 2002-04-24  Andy Piper  <andy@xemacs.org>
6368
6369         * redisplay.c (create_text_block): Don't actually add propagation
6370         data if the line ends after we have added a glyph.
6371
6372 2002-04-22  Andy Piper  <andy@xemacs.org>
6373
6374         * extents.c (extent_fragment_update): check for glyphs we have
6375         previously displayed.
6376         * extents.c (print_extent_1): warning removal.
6377         * extents.h: change prototype.
6378         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6379         widths correctly for wide glyphs.
6380         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6381         * redisplay.c (prop_type): add PROP_GLYPH.
6382         * redisplay.c (struct prop_block): add glyph type
6383         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6384         to the propagation data.
6385         * redisplay.c (create_text_block): if there is a glyph in the
6386         propagation data use it to salt extent_fragment_update.
6387         * redisplay.c (create_string_text_block): ditto.
6388
6389 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6390
6391         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6392         * redisplay-output.c (compare_runes): Compare them.
6393         * redisplay.c: Update copyright date.
6394         * redisplay.c (pos_data): Add need_baseline_computation field.
6395         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6396         need_baseline_computation; zero yoffset. Set max_pixmap_height
6397         for all pixmaps, not just automatically positioned ones.
6398         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6399         * redisplay.c (calculate_baseline): New, compute textual baseline.
6400         * redisplay.c (add_glyph_rune): Call them.
6401         * redisplay.c (create_text_block): Likewise.
6402         * redisplay.c (create_overlay_glyph_block): Likewise.
6403         * redisplay.c (add_margin_runes): Likewise.
6404         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6405
6406         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6407         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6408         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6409         * redisplay-msw.c (mswindows_output_string): Likewise.
6410         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6411         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6412         * redisplay-x.c (x_output_display_block): Likewise.
6413
6414 2002-03-28  Ben Wing  <ben@xemacs.org>
6415
6416         * redisplay.c: Fixed bug in redisplay
6417         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6418         and down of the lines, since they're bigger than the line
6419         size. (It was seen most obviously when there's a horizontal scroll
6420         bar, e.g. do C-h a glyph or something like that.) The problem was
6421         that the glyph-contrib-p setting on glyphs was ignored even if it
6422         was set properly, which it wasn't until now.
6423
6424 2002-04-24  Andy Piper  <andy@xemacs.org>
6425
6426         * lisp.h (Dynarr_end): Fix definition.
6427
6428 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6429
6430         * redisplay.c (mark_redisplay): Remove call to
6431         update_frame_window_mirror.
6432
6433 2001-11-15  Andy Piper  <andy@xemacs.org>
6434
6435         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6436         cygwin (again).
6437
6438 2002-02-13  Andy Piper  <andy@xemacs.org>
6439
6440         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6441         we did in fact enqueue the XM_MAPFRAME event.
6442
6443 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6444
6445         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6446         to fix problem switching between virtual desktops under virtuawin
6447         virtual window manager.
6448
6449 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6450
6451         * event-msw.c: Typo fix.
6452         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6453         magic XM_MAPFRAME event has been sent.
6454
6455 2001-11-23  Andy Piper  <andy@xemacs.org>
6456
6457         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6458
6459 2001-11-21  Andy Piper  <andy@xemacs.org>
6460
6461         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6462         mouse events outside the frame.
6463
6464 2002-03-20  Andy Piper  <andy@xemacs.org>
6465
6466         * menubar-msw.c (mswindows_popup_menu): warning removal.
6467         * dialog-msw.c (dialog_popped_down): ditto.
6468
6469 2001-12-11  Andy Piper  <andy@xemacs.org>
6470
6471         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6472         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6473         popup_up_p.
6474         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6475         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6476         * menubar-msw.c (mswindows_popup_menu): ditto.
6477
6478 2001-10-29  Andy Piper  <andy@xemacs.org>
6479
6480         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6481         cancels.
6482
6483 2002-01-03  Andy Piper  <andy@xemacs.org>
6484
6485         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6486         letters.
6487         (xrealpath): ditto.
6488
6489 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6490
6491         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6492         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6493         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6494         Detect and handle case where machine is set up for metric units
6495
6496 2002-04-02  Andy Piper  <andy@xemacs.org>
6497
6498         * dired-msw.c (mswindows_get_files): 
6499         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6500         completely handled by XEmacs. Suggested by Thomas Vogler
6501         <mail@thomas-vogler.de>.
6502
6503 2001-11-14  Andy Piper  <andy@xemacs.org>
6504
6505         * nt.c (REG_ROOT): change registry key to XEmacs.
6506
6507 2002-04-27  Andy Piper  <andy@xemacs.org>
6508
6509         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6510
6511 2002-04-26  Andy Piper  <andy@xemacs.org>
6512
6513         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6514         behavior.
6515
6516 2002-03-14  Mike Alexander  <mta@arbortext.com>
6517
6518         * event-msw.c (mswindows_unwait_process): New, remove process from
6519         wait list
6520         * process-nt.c (nt_finalize_process_data): Call
6521         mswindows_unwait_process
6522         * console-msw.h: Declare mswindows_unwait_process
6523
6524 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6525
6526         * editfns.c (Fdecode_time):
6527         (Fformat_time_string):
6528         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6529         (make_time): Warning elimination (change arg name).
6530
6531 2001-11-24  Andy Piper  <andy@xemacs.org>
6532
6533         * window.c (Fsplit_window): Doc return type.
6534
6535 2002-04-01  Andy Piper  <andy@xemacs.org>
6536
6537         * emacs.c (Fkill_emacs): Only output message box in interactive
6538         mode.
6539
6540 2002-04-26  Andy Piper  <andy@xemacs.org>
6541  
6542         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6543         cygwin.
6544
6545 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6546
6547         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6548         bit platform.
6549
6550 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6551
6552         * XEmacs 21.4.8 "Honest Recruiter" is released.
6553
6554 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6555
6556         Supersedes 2002-04-17 patch.
6557
6558         * process.h (PROCESS_LIVE_P): Use the process status as
6559         evidence of health, not the state of the input stream.
6560         (PROCESS_READABLE_P): Say if the process is readable
6561         from. (It may be dead nonetheless.)
6562         (CHECK_READABLE_PROCESS): Test for that condition.
6563
6564         * process.c (create_process): Use PROCESS_READABLE_P.
6565         (read_process_output, set_process_filter): Likewise.
6566
6567         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6568         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6569
6570         This code is #if 0'd, this is not the time to add new functions:
6571
6572         * process.c (Fprocess_readable_p): Report readability status.
6573         * process.c (Qprocess_readable_p): New, associated symbol...
6574         * process.c (syms_of_process): ... initialize it.
6575
6576 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6577
6578         * XEmacs 21.4.7 "Economic Science" is released.
6579
6580 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6581
6582         * process.h (PROCESS_LIVE_P): Use the process status as
6583         evidence of health, not the state of the input stream.
6584
6585 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6586
6587         * sysdep.c (sys_siglist): change "signum" to "signal"
6588
6589 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6590
6591         * s/darwin.h: New file.
6592         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6593         
6594 2002-04-23  Andreas Jaeger  <aj@suse.de>
6595
6596         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6597         which use lib64 for 64-bit libs.
6598         (START_FILES): Likewise.
6599
6600 2002-02-11  Mike Sperber  <mike@xemacs.org>
6601
6602         * device-x.c: 
6603         (x_IO_error_handler):
6604         (x_init_device): Temporarily keep device in static variable
6605         `device_being_initialized' so we can recover gracefully from
6606         internal XOpenDevice failure.  (XOpenDevice is documented to
6607         return NULL on failure, but sometimes calls the IO error handler
6608         instead.)
6609
6610 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6611
6612         * dired.c (Ffile_name_all_completions): Change documentation --
6613         remove reference to completion-ignored-extensions.
6614         * dired.c (vars_of_dired): Change documentation for
6615         completion-ignored-extensions -- remove reference to
6616         file-name-all-completions.
6617
6618 2002-03-06  Jerry James  <james@xemacs.org>
6619
6620         * emodules.c (emodules_load): Fix multiple loading of same module.
6621
6622 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6623         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6624         RTLD_LAZY to avoid incorrect symbol binding when using nested
6625         shared libraries on Solaris.
6626
6627 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6628
6629         * fileio.c (Ffind_file_name_handler): Improve docstring.
6630
6631 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6632
6633         * fns.c (Fmapconcat): Improve docstring.
6634
6635 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6636
6637         * device-gtk.c: Add prototype for
6638         emacs_gtk_selection_clear_event_handle.
6639         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6640         selection.  Setup signal handler for "selection_clear_event"
6641         (emacs_gtk_selection_clear_event_handle).
6642
6643         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6644         other applications owning the clipboard (based on
6645         x_handle_selection_clear).
6646
6647 2001-12-23  William M. Perry  <wmperry@gnu.org>
6648
6649         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6650         
6651 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6652
6653         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6654
6655 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6656
6657         * XEmacs 21.4.6 "Common Lisp" is released.
6658
6659 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6660
6661         * search.c (Freplace_match): Add missing sub-expression functionality.
6662
6663         * buffer.c (decode_buffer): Add a check for pointer type to
6664         decode_buffer, before gcc's CSE optimization reorders a
6665         dereference in front of the allow_string test.
6666
6667 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6668
6669         * window.c (window_loop): Fix bug that sometimes prevented
6670         window_loop() from iterating across multiple devices.  Also, at
6671         Ben's request, changed infloop-detecting code to abort() instead
6672         of silently terminating window_loop().
6673
6674 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6675
6676         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6677         * editfns.c (make_time): New function.
6678         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6679         * lisp.h (make_time): Prototype and comment it.
6680         * dired.c (wasteful_word_to_lisp): Deprecate.
6681         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6682
6683 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6684
6685         * fileio.c (auto_save_1): Use current coding system, not
6686         escape-quoted.
6687
6688 2001-11-13  Ben Wing  <ben@xemacs.org>
6689
6690         * window.c:
6691         * window.c (window_truncation_on):
6692         * window.c (syms_of_window):
6693         truncate-partial-width-windows should respect the buffer being
6694         displayed, like other redisplay vars.
6695
6696 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6697
6698         * event-stream.c (Fread_key_sequence): save current buffer.
6699
6700 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6701
6702         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6703
6704 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6705
6706         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6707
6708 2001-10-26  Mike Alexander  <mta@arbortext.com>
6709
6710         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6711
6712 2001-10-25  Andy Piper  <andy@xemacs.org>
6713
6714         * ChangeLog:
6715         * dialog-msw.c (handle_directory_proc): new function.
6716          (handle_directory_dialog_box): new fucntion.
6717          (handle_file_dialog_box): use new directory dialog support.
6718          (mswindows_make_dialog_box_internal): ditto.
6719         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6720         handling.
6721         (mswindows_find_frame): make global.
6722         * fileio.c (Fexpand_file_name): build fix.
6723         * general-slots.h: add Qdirectory.
6724         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6725         handling.
6726         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6727         cygwin not leaving win32 paths unchanged.
6728         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6729         cygwin runtime to do path conversion.
6730         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6731         (syms_of_win32): add new function.
6732         * window.c (window_loop): build fix.
6733
6734 2001-10-15  Andy Piper  <andy@xemacs.org>
6735
6736         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6737
6738 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6739
6740         * XEmacs 21.4.5 "Civil Service" is released.
6741
6742 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6743
6744         * glyphs-x.c: Force buffer-tab highlight update when moving the
6745         buffer, avoiding an ugly black border, used for keyboard focus
6746         indication, on a widget that can never have keyboard focus, the
6747         buffer tab.
6748
6749 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6750
6751         * process-unix.c (unix_open_multicast_group): Remove too much
6752         conversion between host and network byte order.
6753
6754 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6755
6756         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6757         before replacing them.
6758
6759         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6760         operation.
6761
6762         * src/window.c (undedicate_windows): Use it.
6763         * src/window.h: Add prototype.
6764
6765 2001-09-17  Ben Wing  <ben@xemacs.org>
6766
6767         * fileio.c (normalize_filename):
6768         * fileio.c (Fexpand_file_name):
6769         Fix various C++ compile errors in Andy's recent code.
6770         
6771         * callint.c (Fcall_interactively):
6772         * editfns.c (Ftemp_directory):
6773         * editfns.c (Fuser_full_name):
6774         * emacs.c (argmatch):
6775         * lread.c (locate_file_map_suffixes):
6776         * redisplay-x.c (x_ring_bell):
6777         Fix sign-compare warnings.
6778         
6779 2001-09-08  Andy Piper  <andy@xemacs.org>
6780
6781         * fileio.c (normalize_filename): copied from nt.c
6782         * (Ffile_name_directory): enable win32 paths under cygwin.
6783         * (Ffile_name_nondirectory): ditto.
6784         * (directory_file_name): ditto.
6785         * (Fexpand_file_name): ditto.
6786         * (Ffile_truename): ditto.
6787         * (Fsubstitute_in_file_name): ditto.
6788         * (Ffile_name_absolute_p): ditto.
6789         * (Ffile_readable_p): ditto.
6790
6791 2001-09-08  Andy Piper  <andy@xemacs.org>
6792
6793         * device-msw.c (mswindows_finish_init_device): remove dde
6794         initialization.
6795         * device-msw.c (mswindows_init_dde): factor out from
6796         mswindows_finish_init_device()
6797         * device-msw.c (init_mswindows_very_early): new function
6798         initialize but don't enable dde.
6799         * emacs.c (main_1): call init_mswindows_very_early.
6800         * event-msw.c:
6801         * event-msw.c (mswindows_dde_callback): only execute when we are
6802         ready.
6803         * symsinit.h: declare init_mswindows_very_early.
6804
6805 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6806
6807         [sjt: This has been in 21.5 for months with no complaints.]
6808
6809         * console.h (struct console_methods): Added flags member.
6810         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6811         (CONMETH_IMPL_FLAG):
6812         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6813         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6814
6815         * device.c (window_system_pixelated_geometry): Use the above macros.
6816
6817         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6818         implememntation flag.
6819         * device.h (DEVICE_DISPLAY_P): Use it.
6820
6821         * frame.c (delete_frame_internal): Use the above macro.
6822
6823         * redisplay.c (redisplay_device): Use it.
6824         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6825         (redisplay_frame): Ditto.
6826
6827         * device-msw.c (mswindows_device_implementation_flags): Removed.
6828         (msprinter_device_implementation_flags): Removed.
6829         (console_type_create_device_mswindows): Removed references to
6830         implementation_flags methods, set implementation flags here.
6831         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6832
6833         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6834         (console_type_create_device_gtk): Removed method declaration.
6835         Added commented out statement which semantically matches the
6836         commented out statement in the above removed method.
6837
6838 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6839
6840         The attached patch fixes a few warnings. 
6841
6842         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6843         * src/frame-gtk.c: guard against GNOME calls in GTK only
6844         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6845         * src/select-gtk.c: prototype lisp_to_time
6846
6847 2001-06-08  Ben Wing  <ben@xemacs.org>
6848
6849         ------ gc-in-window-procedure fixes ------
6850         
6851         * alloc.c:
6852         * alloc.c (struct post_gc_action):
6853         * alloc.c (register_post_gc_action):
6854         * alloc.c (run_post_gc_actions):
6855         * alloc.c (garbage_collect_1):
6856         Create "post-gc actions", to avoid those dreaded "GC during window
6857         procedure" problems.
6858
6859         * event-msw.c:
6860         Abort, clean and simple, when GC in window procedure.  We want
6861         to flush these puppies out.
6862
6863         * glyphs-msw.c:
6864         * glyphs-msw.c (finalize_destroy_window):
6865         * glyphs-msw.c (mswindows_finalize_image_instance):
6866         Use a post-gc action when destroying subwindows.
6867
6868         * lisp.h:
6869         Declare register_post_gc_action().
6870
6871         * scrollbar-msw.c:
6872         * scrollbar-msw.c (unshow_that_mofo):
6873         Use a post-gc action when unshowing scrollbar windows, if in gc.
6874
6875         * redisplay.c (mark_redisplay):
6876         Add comment about the utter evilness of what's going down here.
6877
6878         ------ cygwin setitimer fixes ------
6879         
6880         * Makefile.in.in (sheap_objs):
6881         * Makefile.in.in (profile_objs):
6882         * Makefile.in.in (objs):
6883         Compile profile.c only when HAVE_SETITIMER.
6884         
6885         * nt.c (mswindows_sigset):
6886         * nt.c (mswindows_sighold):
6887         * nt.c (mswindows_sigrelse):
6888         * nt.c (mswindows_sigpause):
6889         * nt.c (mswindows_raise):
6890         * nt.c (close_file_data):
6891         Style fixes.
6892         
6893         * nt.c:
6894         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6895         
6896         * profile.c:
6897         * profile.c (Fstart_profiling):
6898         * profile.c (Fstop_profiling):
6899         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6900         instead of just plain setitimer().
6901         
6902         * signal.c:
6903         * signal.c (set_one_shot_timer):
6904         * signal.c (alarm):
6905         Define qxe_setitimer() as an encapsulation around setitimer() --
6906         call setitimer() directly unless Cygwin or MS Win, in which case
6907         we use our simulated version in win32.c.
6908         
6909         * systime.h:
6910         * systime.h (struct itimerval):
6911         * systime.h (ITIMER_REAL):
6912         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6913         comment about "qxe" and the policy regarding encapsulation.
6914
6915         * win32.c:
6916         * win32.c (setitimer_helper_proc):
6917         * win32.c (setitimer_helper_period):
6918         * win32.c (setitimer_helper):
6919         * win32.c (mswindows_setitimer):
6920         Move setitimer() emulation here, so Cygwin can use it.
6921         Rename a couple of functions and variables to be longer and more
6922         descriptive.  In setitimer_helper_proc(), send the signal
6923         using either mswindows_raise() or (on Cygwin) kill().  If for
6924         some reason we are still getting lockups, we'll change the kill()
6925         to directly invoke the signal handlers.
6926
6927         ------ windows shell fixes ------
6928         
6929         * callproc.c:
6930         * ntproc.c:
6931         Comments about how these two files must die.
6932
6933         * callproc.c (init_callproc):
6934         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6935         not just COMSPEC. (more correct and closer to FSF.) Don't
6936         force a value for SHELL into the environment. (Comments added
6937         to explain why not.)
6938         
6939         * nt.c (init_user_info):
6940         Don't shove a fabricated SHELL into the environment.  See above.
6941
6942 2001-06-01  Ben Wing  <ben@xemacs.org>
6943
6944         * Makefile.in.in (ldflags):
6945         eliminate that pesky "defaulting to 00401000" warning.
6946         * nt.h:
6947         eliminate warnings.
6948
6949 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6950
6951         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6952         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6953
6954 2001-04-24  Jerry James <james@xemacs.org>
6955
6956         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6957         correct order.
6958
6959 2001-06-01  Ben Wing  <ben@xemacs.org>
6960
6961         * event-msw.c (debug_mswin_messages):
6962         conditionalize the messages that were causing compile errors.
6963         (if only macros could generate #ifdef statements ...)
6964
6965 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6966
6967         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6968
6969 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6970
6971         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6972
6973 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6974
6975         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6976         * process-unix.c (unix_canonicalize_host_name):
6977         sysdep.c (init_system_name):
6978         Use it to conditionally support IPv6 canonicalization.
6979
6980 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6981
6982         * event-msw.c:
6983         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6984
6985 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6986
6987         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6988         attempt is made to scroll when no scroll bar is available.
6989
6990 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6991
6992         * input-method-motif.c (XIM_delete_frame): New callback.
6993         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6994         got deleted from 21.4.3.)
6995
6996 2001-06-01  Ben Wing  <ben@xemacs.org>
6997
6998         * nt.c (mswindows_utime):
6999         * nt.c (close_file_data):
7000         fix off-by-one-indirection error.
7001
7002 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7003
7004         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7005         because set_file_times() now takes Lisp_Object path, instead of
7006         char*.
7007         * nt.c: Include buffer.h.
7008         * nt.c (convert_from_time_t): New.
7009         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7010         not set mtime correctly.
7011         * nt.h: Declare mswindows_utime().
7012         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7013         path, instead of char*.
7014         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7015
7016 2001-05-30  Ben Wing  <ben@xemacs.org>
7017
7018         For 21.4:
7019
7020         (Stephen, just take all event-msw.c patches.  This includes
7021         the "iconify" fix below.)
7022
7023         * event-msw.c:
7024         * event-msw.c (mswindows_dequeue_dispatch_event):
7025         * event-msw.c (assert):
7026         * event-msw.c (emacs_mswindows_quit_p):
7027         * event-msw.c (debug_mswin_messages):
7028         * event-msw.c (debug_output_mswin_message):
7029         * event-msw.c (vars_of_event_mswindows):
7030         Fix yet more problems with C-g handling.
7031         Implement debug-mswindows-events.
7032         
7033 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7034
7035         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7036         
7037 2001-05-23  Ben Wing  <ben@xemacs.org>
7038
7039         * event-msw.c (winsock_writer):
7040         * event-msw.c (winsock_closer):
7041         prior kludgy code was clobbering the buffer, thinking it was
7042         "unused" space to store an unneeded return value; instead, use
7043         the variable we've already got staring us in the face.
7044
7045 2001-05-17  Andy Piper  <andy@xemacs.org>
7046
7047         * sysfile.h: don't assume that file attributes are boolean
7048
7049 2001-05-23  Ben Wing  <ben@xemacs.org>
7050
7051         * device-msw.c (msprinter_init_device):
7052         signal an error rather than crash with an unavailable network
7053         printer (from Mike Alexander).
7054         
7055         * event-msw.c:
7056         * event-msw.c (struct winsock_stream):
7057         * event-msw.c (winsock_writer):
7058         * event-msw.c (winsock_closer):
7059         * event-msw.c (make_winsock_stream_1):
7060         cleanup headers.  fix (hopefully) an error with data corruption
7061         when sending to a network connection.
7062
7063         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7064         to handle the ~user prefix by (a) always assuming we're referencing
7065         ourselves and not even verifying the user -- hence any file with
7066         a tilde as its first char is invalid! (b) if there wasn't a slash
7067         following the filename, the pointer was set *past* the end of
7068         file and we started reading from uninitialized memory.  Now we
7069         simply treat these as files, always.
7070
7071         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7072         
7073 2001-05-19  Ben Wing  <ben@xemacs.org>
7074
7075         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7076
7077         * process-nt.c:
7078         * process-nt.c (vars_of_process_nt):
7079         remove unused mswindows-quote-process-args.  rec for 21.4.
7080         
7081 2001-05-12  Ben Wing  <ben@xemacs.org>
7082
7083         * event-msw.c (mswindows_dde_callback):
7084         * event-msw.c (mswindows_wnd_proc):
7085         eliminate cygwin warnings.
7086
7087 2001-05-06  Ben Wing  <ben@xemacs.org>
7088
7089         * console-msw.h:
7090         * device-msw.c:
7091         * device-msw.c (print_dialog_worker):
7092         * device-msw.c (mswindows_handle_print_dialog_box):
7093         * device-msw.c (syms_of_device_mswindows):
7094         * dialog-msw.c (mswindows_make_dialog_box_internal):
7095         * general-slots.h:
7096         implement printing the selection when it's selected.
7097
7098 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7099
7100         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7101
7102 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7103
7104         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7105         EMACS_INT is signed.
7106
7107 2001-04-15  Michael Lausch  <mla@1012surf.net>
7108
7109         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7110         gtk_widget_request_size() to give scrollbar >0 width for
7111         GTK >1.2.8.
7112
7113 2001-05-30  William M. Perry  <wmperry@gnu.org>
7114
7115         * event-gtk.c: Check for buttons as modifier keys.
7116
7117 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7118
7119         * s\mingw32.h:
7120         Properly find MinGW's <process.h> inside Cygwin's restructured
7121         include directories.  Don't try to include <cygwin/version.h>
7122         since we are dropping support for MinGW in versions of Cygwin
7123         earlier than b21.
7124         * nt.c:
7125         Drop support for MinGW in versions of Cygwin before b21.
7126         * sysdep.c:
7127         Properly find MinGW's <process.h> inside Cygwin's restructured
7128         include directories.
7129         * syswindows.h:
7130         Drop support for MinGW in versions of Cygwin before b21.
7131         * unexcw.c:
7132         Even though a.out.h is no longer detected by configure, allow
7133         MinGW to use it until we figure out how to do the job with Win32.
7134
7135 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7136
7137         * syntax.c (find_start_of_comment):
7138         Fix `unbalanced parentheses' bug when dealing with mixed comment
7139         styles in c++/java/etc. mode
7140
7141 2001-05-29  Mike Alexander  <mta@arbortext.com>
7142
7143         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7144         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7145
7146 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7147
7148         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7149
7150 2001-03-31  Mike Sperber <mike@xemacs.org>
7151
7152         * search.c (Freplace_match): Support FSF-style specification of
7153         match subexpression when applied to a buffer.
7154
7155 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7156
7157         * event-stream.c (is_scrollbar_event): add missing semicolon
7158
7159 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7160
7161         * Makefile.in.in: Use TAR macro instead of hardcoding
7162           tar.  Allows use of GNU tar instead of system tar
7163
7164 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7165
7166         * event-stream.c (is_scrollbar_event): add missing semicolon
7167
7168 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7169
7170         * XEmacs 21.4.3 "Academic Rigor" is released.
7171
7172 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7173
7174         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7175
7176 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7177
7178         * buffer.c (Vcase_fold_search): Remove obsolete
7179           comment about non ASCII case-fold-search.  This
7180           bug has been fixed by case-table changes.
7181
7182 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7183
7184         * event-msw.c: Restore include of events-mod.h.
7185
7186 2001-04-22   zhaoway  <zw@debian.org>
7187
7188         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7189         !HAVE_SCROLLBARS.
7190
7191 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7192
7193         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7194
7195 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7196
7197         * mule-charset.c (Fmake_charset): Add missing else.
7198
7199 2001-04-23  Ben Wing  <ben@xemacs.org>
7200
7201         * event-msw.c (FAKE_MOD_QUIT):
7202         * event-msw.c (mswindows_dequeue_dispatch_event):
7203         * event-msw.c (mswindows_wnd_proc):
7204         * event-msw.c (emacs_mswindows_quit_p):
7205         Get critical quit working.
7206
7207 2001-05-05  Ben Wing  <ben@xemacs.org>
7208
7209         * console-msw.h:
7210         * device-msw.c:
7211         * device-msw.c (mswindows_get_default_margin):
7212         * frame-msw.c (mswindows_size_frame_internal):
7213         * frame-msw.c (msprinter_init_frame_1):
7214         * frame-msw.c (vars_of_frame_mswindows):
7215         Change top/bottom margin defaults to 0.5 inches.
7216
7217 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7218
7219         Fix link error with gcc 3.0 on Linux.
7220         * terminfo.c (UP): Remove.
7221         * terminfo.c (BC): Remove.
7222         * terminfo.c (PC): Remove.
7223         They weren't used, and in any case, these symbols should be
7224         defined in the *library*.
7225
7226 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7227
7228         * s/aix4.h: Fix crash with xlc -O3.
7229         Improve comment explaining how -O3 works.
7230
7231 2001-04-15  Ben Wing  <ben@xemacs.org>
7232
7233         * event-stream.c:
7234         * event-stream.c (Fnext_event):
7235         * event-stream.c (is_scrollbar_event):
7236         * event-stream.c (execute_command_event):
7237         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7238         crash' problem.  His fix introduces other problems.  We filter
7239         out scrollbar events specifically, making them somewhat invisible
7240         to command-building, and not appearing in `this-command-keys'.
7241         More work is still needed (see comments in event-stream.c), but
7242         this fixes all the major problems.
7243
7244 2001-04-20  Ben Wing  <ben@xemacs.org>
7245
7246         * .cvsignore: Added stuff for Windows.
7247
7248 2001-04-28  Ben Wing  <ben@xemacs.org>
7249
7250         * buffer.c (Ferase_buffer):
7251         * editfns.c (buffer_insert1):
7252         * editfns.c (Finsert_before_markers):
7253         * editfns.c (Finsert_string):
7254         * editfns.c (Finsert_char):
7255         * editfns.c (Fdelete_region):
7256         * editfns.c (Fwiden):
7257         * editfns.c (Fnarrow_to_region):
7258         remove bogus lines setting zmacs_region_stays to 0.
7259         
7260 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7261
7262         * process-unix.c (unix_open_network_stream): If connect() fails
7263         invalidate file descriptor after closing it.
7264
7265 2001-03-08  Mike Alexander  <mta@arbortext.com>
7266
7267         * event-msw.c (mswindows_need_event_in_modal_loop):
7268         Don't dispatch a message if we didn't get one.
7269         (mswindows_need_event):
7270         Terminate the correct process when one exits instead of the first
7271         one on Vprocess_list and look for process termination when in
7272         mswindows_protect_modal_loop.
7273
7274 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7275
7276         * XEmacs 21.4.1 "Copyleft" is released.
7277
7278 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7279
7280         * input-method-motif.c (XIM_delete_frame): New callback.
7281         (XIM_init_frame): Register it.
7282
7283 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7284
7285         * XEmacs 21.4.0 "Solid Vapor" is released.
7286
7287 2001-04-15  Ben Wing  <ben@xemacs.org>
7288
7289         * cmdloop.c (call_command_loop):
7290         Fix braino in bit-rotting code.
7291         
7292 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7293
7294         * extents.c (Fset_extent_endpoints): Force creation of extent info
7295         in buffer_or_string.
7296
7297         * extents.c (process_extents_for_insertion_mapper): Correctly
7298         check for open-open zero-length extents.
7299
7300 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7301
7302         * lisp.h: New typedefs Memory_count, Element_count.
7303         * regex.c:
7304         * regex.h:
7305         Sign-compare warning elimination: several unsigned -> signed.
7306         Based on work by Ben Wing <ben@xemacs.org>.
7307
7308 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7309
7310         * XEmacs 21.2.47 "Zephir" is released.
7311
7312 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7313
7314         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7315
7316 2001-04-03  Mike Sperber <mike@xemacs.org>
7317
7318         * search.c: Revert previous patch due because of release.
7319
7320 2001-03-30  Ben Wing  <ben@xemacs.org>
7321
7322         * s\cygwin32.h:
7323         Add missing killpg prototype.
7324
7325         * elhash.c:
7326         Add a comment about fixing problems when a new entry is added
7327         while mapping.
7328
7329         * frame-msw.c (mswindows_init_frame_1):
7330         Fix compile warnings.
7331
7332         * menubar.c (vars_of_menubar):
7333         Provide `menu-accelerator-support' to indicate that we properly
7334         support %_ in menu specifications, so that package code can
7335         conditionalize on this (and remove %_ from menu specifications
7336         on older versions).
7337
7338         * event-msw.c:
7339         * scrollbar-msw.c:
7340         * scrollbar-msw.c (can_scroll):
7341         * scrollbar-msw.h:
7342         Fix handling of mouse wheel under Windows to follow standards --
7343         now scrolls window under pointer, not selected window.
7344
7345 2001-03-31  Mike Sperber <mike@xemacs.org>
7346
7347         * search.c (Freplace_match): Support FSF-style specification of
7348         match subexpression when applied to a buffer.
7349
7350 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7351
7352         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7353         function to modify KEYMAP, so map over a copy of the hash table.
7354
7355 2001-03-21  Martin Buchholz <martin@xemacs.org>
7356
7357         * XEmacs 21.2.46 "Urania" is released.
7358
7359 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7360
7361         * realpath.c (xrealpath): Make file-truename work with symlinks to
7362         /cygdrive paths on cygwin. Always lowercase drive-letters on
7363         native windows.
7364         (cygwin_readlink): Don't try to find canonical filename unless
7365         file exists.
7366
7367 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7368
7369         * ChangeLog: Log GTK merge.
7370
7371         * dumper.c:
7372         * select-x.c:
7373         * specifier.c:
7374         * symeval.h:
7375         Revert gratuitous whitespace changes from GTK merge.
7376
7377         * emacs.c: Document end of complex #ifdef @ l. 1495.
7378
7379
7380 2001-03-12  Andy Piper  <andy@xemacs.org>
7381
7382         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7383         have to do likewise.
7384
7385 2001-03-12  Andy Piper  <andy@xemacs.org>
7386
7387         * sysdep.c: we only support mingw now.
7388
7389 2001-03-09  Andy Piper  <andy@xemacs.org>
7390
7391         * unexcw.c (copy_executable_and_dump_data_section): making approx
7392         overrun a warning only.
7393
7394 2001-03-10  William M. Perry  <wmperry@aventail.com>
7395
7396         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7397         satisfy Stephen's identical-after-cpp plea.
7398
7399 2001-03-02  Ben Wing  <ben@xemacs.org>
7400
7401         * cmds.c:
7402         * cmds.c (Fforward_char):
7403         * syntax.c:
7404         * window.c:
7405
7406         Augment documentation of the most common motion commands to make
7407         note of the shifted-motion support.
7408         
7409 2001-03-02  Ben Wing  <ben@xemacs.org>
7410
7411         * nt.c (mswindows_fstat):
7412         * nt.c (mswindows_stat):
7413         * search.c (boyer_moore):
7414         Fix compile warnings under Windows.
7415         
7416         * sysdep.c (sys_readdir):
7417         Fix buggy filename-conversion code under Mule.
7418
7419 2001-03-09  William M. Perry  <wmperry@aventail.com>
7420
7421         * Makefile.in.in:
7422         * config.h.in:
7423         * console.c:
7424         * console.h:
7425         * device.c:
7426         * device.h:
7427         * dragdrop.c:
7428         * emacs.c:
7429         * event-stream.c:
7430         * events.c:
7431         * events.h:
7432         * faces.c:
7433         * frame.h:
7434         * general-slots.h:
7435         * glyphs.c:
7436         * gutter.c:
7437         * inline.c:
7438         * lisp.h:
7439         * lrecord.h:
7440         * make-src-depend:
7441         * redisplay-output.c:
7442         * redisplay.c:
7443         * symsinit.h:
7444         * sysfile.h:
7445         * toolbar.c:
7446         * window.c:
7447         The Great GTK Merge.
7448
7449         * ChangeLog.GTK:
7450         * console-gtk.c:
7451         * console-gtk.h:
7452         * device-gtk.c:
7453         * emacs-marshals.c:
7454         * emacs-widget-accessors.c:
7455         * event-gtk.c:
7456         * frame-gtk.c:
7457         * gccache-gtk.c:
7458         * gccache-gtk.h:
7459         * glade.c:
7460         * glyphs-gtk.c:
7461         * glyphs-gtk.h:
7462         * gtk-glue.c:
7463         * gtk-xemacs.c:
7464         * gtk-xemacs.h:
7465         * gui-gtk.c:
7466         * gui-gtk.h:
7467         * menubar-gtk.c:
7468         * native-gtk-toolbar.c:
7469         * objects-gtk.c:
7470         * objects-gtk.h:
7471         * redisplay-gtk.c:
7472         * scrollbar-gtk.c:
7473         * scrollbar-gtk.h:
7474         * select-gtk.c:
7475         * toolbar-gtk.c:
7476         * ui-byhand.c:
7477         * ui-gtk.c:
7478         * ui-gtk.h:
7479         The Great GTK Merge: new files.
7480
7481 2001-02-26  Ben Wing  <ben@xemacs.org>
7482
7483         Reapplied Lstream change.
7484
7485 2001-02-26  Ben Wing  <ben@xemacs.org>
7486
7487         Undid the last change, since it is more controversial than I
7488         thought.  It should be back in at some point soon.
7489         
7490 2001-02-25  Ben Wing  <ben@xemacs.org>
7491
7492         * buffer.c:
7493         * callproc.c (Fold_call_process_internal):
7494         * event-msw.c (ntpipe_slurp_reader):
7495         * event-msw.c (ntpipe_shove_writer):
7496         * event-msw.c (winsock_reader):
7497         * event-msw.c (winsock_writer):
7498         * file-coding.c:
7499         * file-coding.c (detect_eol_type):
7500         * file-coding.c (detect_coding_type):
7501         * file-coding.c (determine_real_coding_system):
7502         * file-coding.c (Fdetect_coding_region):
7503         * file-coding.c (decoding_reader):
7504         * file-coding.c (decoding_writer):
7505         * file-coding.c (mule_decode):
7506         * file-coding.c (Fdecode_coding_region):
7507         * file-coding.c (encoding_reader):
7508         * file-coding.c (encoding_writer):
7509         * file-coding.c (mule_encode):
7510         * file-coding.c (Fencode_coding_region):
7511         * file-coding.c (detect_coding_sjis):
7512         * file-coding.c (decode_coding_sjis):
7513         * file-coding.c (encode_coding_sjis):
7514         * file-coding.c (detect_coding_big5):
7515         * file-coding.c (decode_coding_big5):
7516         * file-coding.c (encode_coding_big5):
7517         * file-coding.c (detect_coding_ucs4):
7518         * file-coding.c (decode_coding_ucs4):
7519         * file-coding.c (encode_coding_ucs4):
7520         * file-coding.c (detect_coding_utf8):
7521         * file-coding.c (decode_coding_utf8):
7522         * file-coding.c (encode_coding_utf8):
7523         * file-coding.c (detect_coding_iso2022):
7524         * file-coding.c (decode_coding_iso2022):
7525         * file-coding.c (encode_coding_iso2022):
7526         * file-coding.c (decode_coding_no_conversion):
7527         * file-coding.c (encode_coding_no_conversion):
7528         * glyphs-x.c (write_lisp_string_to_temp_file):
7529         * gpmevent.c (tty_get_foreign_selection):
7530         * lisp.h:
7531         * lstream.c:
7532         * lstream.c (Lstream_flush_out):
7533         * lstream.c (Lstream_adding):
7534         * lstream.c (Lstream_write_1):
7535         * lstream.c (Lstream_write):
7536         * lstream.c (Lstream_raw_read):
7537         * lstream.c (Lstream_read_more):
7538         * lstream.c (Lstream_read):
7539         * lstream.c (Lstream_unread):
7540         * lstream.c (Lstream_fputc):
7541         * lstream.c (stdio_reader):
7542         * lstream.c (stdio_writer):
7543         * lstream.c (filedesc_reader):
7544         * lstream.c (filedesc_writer):
7545         * lstream.c (lisp_string_reader):
7546         * lstream.c (struct fixed_buffer_stream):
7547         * lstream.c (make_fixed_buffer_input_stream):
7548         * lstream.c (make_fixed_buffer_output_stream):
7549         * lstream.c (fixed_buffer_reader):
7550         * lstream.c (fixed_buffer_writer):
7551         * lstream.c (struct resizing_buffer_stream):
7552         * lstream.c (resizing_buffer_writer):
7553         * lstream.c (dynarr_writer):
7554         * lstream.c (lisp_buffer_reader):
7555         * lstream.c (lisp_buffer_writer):
7556         * lstream.h:
7557         * lstream.h (lstream_implementation):
7558         * lstream.h (struct lstream):
7559         * md5.c (Fmd5):
7560         * process-nt.c (nt_send_process):
7561         * process-unix.c (unix_send_process):
7562         
7563         Correct Lstream lossage due to mixing of signed and unsigned
7564         quantities.  All Lstream uses of size_t and ssize_t are now a
7565         single signed data type Lstream_data_count.  This fixes problems
7566         under Windows with sending large quantities of data to a process,
7567         and may well fix other subtle bugs.
7568
7569 2001-02-23  Martin Buchholz <martin@xemacs.org>
7570
7571         * XEmacs 21.2.45 "Thelxepeia" is released.
7572
7573 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7574
7575         * lisp-union.h (XSETINT): 
7576         (XSETCHAR):
7577         (XSETOBJ): 
7578         Reverse previous change of 2001-02-06.
7579
7580 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7581
7582         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7583         buffers.
7584         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7585         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7586         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7587         * regex.c (POS_AS_IN_BUFFER): removed
7588         * regex.c (re_search_2):
7589         * regex.c (re_match_2):
7590         Don't use an offset of 1 when calculating buffer positions, since
7591         `BI_BUF_BEGV' does it already.
7592
7593 2001-02-18  Wim Dumon  <wim@easics.be>
7594
7595         * insdel.c (prepare_to_modify_buffer): Also check for
7596         supersession when clash-detection is enabled. 
7597
7598 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7599
7600         * regex.c (re_match_2_internal):
7601         Convert temp characters from 'const unsigned char' to 're_char'.
7602         Fix crashing bug with extended characters under mule.
7603         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7604         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7605         font-lock, pdump, and new syntax-table code.
7606         * syntax.c (find_start_of_comment):
7607         (find_end_of_comment):
7608         (forward-comment):
7609         Fix crashing bugs involving moving beyond end of buffer.
7610         * syntax.c (find_start_of_comment):
7611         Fixed logic to allow proper detection of cases where the same
7612         character is used to end both a two-char comment start and a
7613         two-char comment end sequence. Fixes `(forward-comment -1)'.
7614         * syntax.c (find_start_of_comment):
7615         Return position just past last comment-end character for all cases
7616         (previously was only done for two-char comment-end sequences).
7617         * syntax.c (forward-comment):
7618         Take value returned from `find_end_of_comment', rather than
7619         incrementing it.
7620         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7621         Properly deal with BUFFERP (syntax_cache.object)
7622
7623 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7624
7625         * alloc.c (Fgarbage_collect): 
7626         * alloc.c (make_bit_vector_from_byte_vector):
7627         -Wsign-compare-correctness.
7628
7629 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7630
7631         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7632         (XSETCHAR): Likewise.
7633         (XSETOBJ): Likewise.
7634
7635 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7636
7637         * mule-canna.c (canna-func-delete_previous): 
7638         Rename to canna-func-delete-previous.
7639
7640 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7641
7642         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7643
7644 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7645
7646         * font-lock.c (find_context): Fix C++ compile errors introduced by
7647         recent patch
7648
7649 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7650
7651         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7652         pragma, but earlier ones barf on the same pragma.
7653
7654 2001-02-06  Mike Sperber <mike@xemacs.org>
7655
7656         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7657         `configure-mule-lisp-directory'.
7658
7659 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7660
7661         Make sure dump-id.c is compiled in the same way as other .c's.
7662         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7663         * dump-id.h: Remove.
7664         * emacs.c: Move dump-id.h into dumper.h.
7665         * dumper.h: Move dump-id.h into dumper.h.
7666         * Makefile.in.in:
7667         Use standard .c.o rule for building dump-id.o.
7668         Remove preprocessor flags from link command.
7669         Add dump-id.o to ${otherobjs} if PDUMP.
7670
7671 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7672
7673         Port FSF 20.7 syntax table improvements.
7674         * syntax.c.
7675         * syntax.h.
7676
7677         Fixups for new syntax table stuff.
7678         * dired.c: Include syntax.c.
7679         (Fdirectory_files): Initialize regex_match_object and
7680         regex_emacs_buffer.
7681         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7682         and Fget_char_property.
7683
7684         Use ported FSF 20.7 syntax table improvements.
7685         * font-lock.c.
7686         * regex.c.
7687         * search.c.
7688         
7689 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7690
7691         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7692         Unixware's enum boolean from sys/types.h.
7693
7694 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7695
7696         Fix support for building with latest Purify.
7697         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7698         (PURIFY_FLAGS): Likewise.
7699
7700 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7701
7702         * fileio.c (lisp_string_set_file_times): New.
7703         * fileio.c (Fcopy_file): Use it.
7704         Fixes bug:
7705         (copy-file filename non-ascii-filename t t)
7706         ==> No such file or directory, non-ascii-filename
7707
7708 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7709
7710         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7711         USHRT_MAX seems clearer than ~0 anyways.
7712
7713 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7714
7715         dumper improvements.  Inspired by Olivier.
7716         * dumper.c (pdump_max_align): New.
7717         * dumper.c (pdump_add_entry): Use pdump_max_align.
7718         * dumper.c (pdump_get_entry_list): Likewise.
7719         * dumper.c (pdump_scan_by_alignment): Likewise.
7720         Don't iterate through unnecessary alignments.
7721         * dumper.c (pdump_file_get): No need to align result of malloc().
7722         * dumper.c (pdump_mallocadr): Remove.  
7723         The result of malloc() is guaranteed to be maximally aligned.
7724         * dumper.c: s/elmt/elt/g;
7725         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7726         * dumper.c (pdump_alert_undump_object): Likewise.
7727         * dumper.c (pdump_align_table): 
7728         Don't support alignments > 64.
7729         Store ALIGNOF's, not shift counts, in table.
7730
7731 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7732
7733         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7734         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7735         * systime.h: Use HAVE_UTIME.
7736         * sysdep.c (struct utimbuf): Remove.
7737         * sysdep.c (set_file_times): Prefer utime() to utimes().
7738         * config.h.in (HAVE_UTIME): New.
7739         * config.h.in (HAVE_UTIME_H): Remove.
7740         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7741
7742 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7743
7744         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7745
7746 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7747
7748         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7749
7750 2001-02-08  Martin Buchholz <martin@xemacs.org>
7751
7752         * XEmacs 21.2.44 "Thalia" is released.
7753
7754 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7755
7756         Fixes crashes in kill-emacs on some systems.
7757         * process-unix.c (unix_kill_child_process):
7758         It's OK for kill() to fail with ESRCH.
7759
7760 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7761
7762         Contortions to make .gdbinit tricks work on most systems.
7763         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7764         * alloc.c (dbg_valmask): Make non-const.
7765         * alloc.c (dbg_typemask): Make non-const.
7766         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7767         * alloc.c (dbg_valbits): Make non-const.
7768         * alloc.c (dbg_gctypebits): Make non-const.
7769         * .gdbinit (decode_object): Make it work with AIX cc.
7770
7771 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7772
7773         * elhash.c (make_general_lisp_hash_table):
7774         Use simpler and more efficient calloc to clear entries.
7775
7776 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7777
7778         * window.c (window_scroll): Work around an AIX C compiler bug.
7779         Fixes 'scroll-up' does nothing problem with xlC.
7780
7781 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7782
7783         * .gdbinit: Remove obsolete comment.
7784
7785 2001-01-31  Mike Alexander  <mta@arbortext.com>
7786
7787         * select.c (Fown_selection_internal): Set owned_p for device
7788         method correctly.
7789
7790 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7791
7792         Port to g++ 2.97.
7793         "not" cannot be used as a macro name as it is an operator in C++
7794         * config.h.in: Stop #defining `not'.
7795         * chartab.c (check_category_char): not ==> not_p
7796         * chartab.h: Likewise.
7797         * regex.c (re_match_2_internal): Likewise.
7798
7799 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7800
7801         * lisp-disunion.h: Fix up comments.
7802
7803 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7804
7805         * keymap.c (define_key_check_and_coerce_keysym):
7806         (syms_of_keymap):
7807         Support mouse-6 and mouse-7 bindings in the obvious way.
7808
7809 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7810
7811         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7812
7813 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7814
7815         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7816         Previous patch missed DEFVAR_INT_MAGIC.
7817         Make sure future DEFVAR_foo use correct types.
7818         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7819         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7820         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7821         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7822         * (DEFVAR_INT): Likewise.
7823         * redisplay.c (vertical_clip): Should be of type Fixnum.
7824         * redisplay.c (horizontal_clip): Likewise.
7825         * lisp.h (dump_add_opaque_int): New.
7826         (dump_add_opaque_fixnum): New.
7827
7828 2001-01-29  Andy Piper  <andy@xemacs.org>
7829
7830         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7831         since they can be eval'ed
7832
7833 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7834
7835         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7836         Oops, XEmacs redefines `class'.  Use `typename' instead.
7837
7838 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7839
7840         * dumper.c: Fix C++ compile errors.
7841
7842 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7843
7844         * tparam.c: Use correct prototypes.
7845
7846 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7847
7848         * sysproc.h: #include util.h for NetBSD's openpty.
7849
7850 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7851
7852         More 64-bit correctness.
7853         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7854         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7855         Fix up comments.
7856         This finally finishes the 64-bit SGI port.
7857         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7858         * symbols.c: Fix up comments and type casts.
7859         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7860         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7861         * symeval.h (Fixnum): New type.
7862         * symeval.h (symbol_value_type): Fix up comment.
7863
7864         * commands.h:
7865         * nt.c:
7866         * emacs.c:
7867         * data.c:
7868         * redisplay.c:
7869         * abbrev.c:
7870         * dired-msw.c:
7871         * event-Xt.c:
7872         * eldap.c:
7873         * window.c:
7874         * sound.c:
7875         * event-stream.c:
7876         * eval.c:
7877         * buffer.c:
7878         * mule-canna.c: A million DEFVAR_INTs here...
7879         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7880         * extents.c:
7881         * cmdloop.c:
7882         * lisp.h:
7883         * select-x.c:
7884         * console-x.h:
7885         * event-msw.c:
7886         * mule-wnnfns.c:
7887         * hpplay.c:
7888         * ralloc.c:
7889         * alloc.c:
7890         * keymap.c:
7891         * profile.c:
7892         s/int/Fixnum/g in DEFVAR_INT declarations.
7893
7894 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7895
7896         Port pdump to SGI alignment-sensitive environment.
7897         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7898         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7899         properly aligned.
7900         Define and use aligned reading and writing macros.
7901         Use buffered stdio instead of posix i/o for faster dumping.
7902         Eliminate kludgy 256 byte space for header.
7903         Read and write from dump file using structs for alignment safety.
7904         * dumper.c (pdump_align_stream): New.
7905         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7906         * dumper.c (PDUMP_READ_ALIGNED): New.
7907         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7908         * dumper.c (pdump_static_Lisp_Object): New struct.
7909         * dumper.c (pdump_static_pointer): New struct.
7910         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7911         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7912         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7913         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7914
7915         * dumper.c (pdump_backtrace):
7916         * dumper.c (pdump_get_indirect_count):
7917         * dumper.c (pdump_register_object):
7918         * dumper.c (pdump_register_struct):
7919         * dumper.c (pdump_reloc_one):
7920         * dumper.c (pdump_scan_by_alignment):
7921         * dumper.c (pdump_dump_from_root_struct_ptrs):
7922         * dumper.c (pdump_dump_opaques):
7923         * dumper.c (pdump_dump_rtables):
7924         * dumper.c (pdump_dump_from_root_objects):
7925         * dumper.c (pdump):
7926         * dumper.c (pdump_load_finish):
7927         Use aligned reading and writing.
7928
7929         * dumper.c (pdump_free): Make static.
7930         * dumper.c (pdump_hFile): Likewise.
7931         * dumper.c (pdump_hMap): Likewise.
7932
7933 2001-01-26  Martin Buchholz <martin@xemacs.org>
7934
7935         * XEmacs 21.2.43 "Terspichore" is released.
7936
7937 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7938
7939         Type fiddling for window_config.saved_windows_count
7940         * window.c (struct window_config): 
7941         Make saved_windows_count member unsigned.
7942         * window.c (sizeof_window_config_for_n_windows): 
7943         Make parameter unsigned.
7944         * window.c (mark_window_config):
7945         * window.c (window_config_equal):
7946         * window.c (free_window_configuration):
7947         * window.c (Fset_window_configuration):
7948         * window.c (count_windows):
7949         * window.c (Fcurrent_window_configuration):
7950         * window.c (reinit_vars_of_window):
7951         Update all callers and users.
7952
7953 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7954
7955         Alignment correctness for flexible arrays.
7956         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7957         Make alignment-correct. Add interesting comments.
7958         * alloc.c (size_vector):
7959         * alloc.c (make_vector_internal):
7960         * alloc.c (make_bit_vector_internal):
7961         * alloc.c (sweep_bit_vectors_1):
7962         * fns.c (size_bit_vector):
7963         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7964         * window.c (sizeof_window_config_for_n_windows): 
7965         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7966
7967 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7968
7969         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7970
7971 2001-01-23  Andy Piper  <andy@xemacs.org>
7972
7973         * select.c (Fown_selection_internal): pass owned_p
7974
7975         * select-msw.c (mswindows_own_selection): New Signature.
7976
7977         * console.h (struct console_methods): add owned_p to
7978         _own_selection.
7979
7980         * select-x.c (x_own_selection): pass owned_p
7981         (hack_motif_clipboard_selection): use owned_p
7982         (vars_of_select_x): new variable -
7983         x_selection_strict_motif_ownership.
7984
7985 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7986
7987         * specifier.h (specifier_data_offset): Remove pointless parens.
7988         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7989
7990 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7991
7992         Make Lisp_Object sizeof methods be alignment-correct.
7993         pdump must restore objects to the same alignment as the C compiler
7994         assumes.  It really matters on SGIs.
7995         * lstream.c (aligned_sizeof_lstream): New.
7996         (sizeof_lstream): Use aligned_sizeof_lstream.
7997         (Lstream_new): Likewise.
7998         * opaque.c (aligned_sizeof_opaque): New.
7999         (sizeof_opaque): Use aligned_sizeof_opaque.
8000         (make_opaque): Likewise.
8001         * specifier.c (aligned_sizeof_specifier): New.
8002         (sizeof_specifier): Use aligned_sizeof_specifier.
8003         (make_specifier_internal): Likewise.
8004
8005 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8006
8007         * lstream.h (struct lstream): Use max_align_t for trailing data.
8008         * specifier.h (struct Lisp_Specifier): Likewise.
8009
8010 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8011
8012         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8013         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8014         (CCL_SUSPEND): Likewise.
8015         (CCL_INVALID_CMD): Likewise.
8016         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8017         (ccl_driver): Likewise.
8018         (CCL_WRITE_CHAR): Macro hygiene.
8019         (CCL_WRITE_STRING): Macro hygiene.
8020
8021 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8022
8023         Port "portable" dumper to SunOS 4 and HP-UX.
8024         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8025         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8026         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8027
8028 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8029
8030         * lisp.h (ALIGNOF): A better definition for C++.
8031
8032 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8033
8034         Macro hygiene.
8035         Fix printf warnings: int format, long int arg.
8036         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8037         (PUSH_FAILURE_POINT): Use correct printf formats.
8038         (POP_FAILURE_POINT): Use correct printf formats.  
8039         Use do {...} while (0)
8040
8041 2001-01-20  Martin Buchholz <martin@xemacs.org>
8042
8043         * XEmacs 21.2.42 "Poseidon" is released.
8044
8045 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8046
8047         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8048
8049 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8050
8051         De-kludgify FIXED_TYPE free list frobbing.
8052         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8053         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8054         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8055         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8056         * alloc.c (LRECORD_FREE_P): New.
8057         * alloc.c (MARK_LRECORD_AS_FREE): New.
8058         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8059         * alloc.c (STRUCT_FREE_P): Deleted.
8060         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8061         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8062         * alloc.c (STRING_CHARS_FREE_P): New.
8063         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8064         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8065         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8066         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8067         * alloc.c (resize_string): Use new definitions.
8068         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8069         * alloc.c (verify_string_chars_integrity): Use new definitions.
8070         * alloc.c (compact_string_chars): Use new definitions.
8071         * alloc.c: Update monster comments.
8072         * lrecord.h (lrecord_type): Add some new lrecord types for
8073         alloc.c's use.
8074
8075 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8076
8077         Improve alignment hackery.
8078         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8079         (max_align_t): Moved from opaque.h - general purpose.
8080         (ALIGN_PTR): Use size_t, not long.
8081         * opaque.h (max_align_t): Move to lisp.h.
8082
8083 2001-01-18  Norbert Koch  <nk@LF.net>
8084
8085         * gui.h: Fix and add prototypes to fix build problems.
8086
8087 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8088
8089         temacs is going away, so `dump-temacs' is now a bad name.
8090         * .dbxrc (dump-temacs): Rename to `dmp'.
8091         * .gdbinit (dump-temacs): Rename to `dmp'.
8092
8093 2001-01-17  Andy Piper  <andy@xemacs.org>
8094
8095         * glyphs.c (print_image_instance): comment to make martin happy.
8096
8097         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8098         change.
8099
8100         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8101         activation.
8102         (mswindows_tab_control_redisplay): warning suppression.
8103
8104         * glyphs-widget.c (widget_update): re-write to cope with updated
8105         items.
8106         (widget_instantiate): use new gui_item functions.
8107         (tab_control_update): deleted.
8108         (progress_gauge_update): deleted.
8109         (image_instantiator_progress_guage): take out update reference.
8110         (image_instantiator_tree_view): ditto.
8111         (image_instantiator_tab_control): ditto.
8112
8113         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8114         Right the new way.
8115         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8116         return whether anything was changed.
8117         (update_gui_item_keywords): as it sounds.
8118
8119         * gui.h: declare widget_gui_parse_item_keywords.
8120
8121         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8122         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8123
8124 2001-01-17  Martin Buchholz <martin@xemacs.org>
8125
8126         * XEmacs 21.2.41 "Polyhymnia" is released.
8127
8128 2001-01-16  Didier Verna  <didier@xemacs.org>
8129
8130         * glyphs.c (image_instantiate): don't use fallbacks when
8131         instantiating a face's background pixmap by inheritance.
8132
8133 2001-01-14  Mike Sperber <mike@xemacs.org>
8134
8135         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8136         Conditionalize accordingly.
8137
8138 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8139
8140         * dumper.c (pdump_file_get): Fix a compiler warning.
8141
8142 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8143
8144         Make Purify happy when pdumping.
8145         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8146         iniitalizing all bits of new lisp object memory.
8147         * symbols.c (Fmake_local_variable): Likewise.
8148         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8149         * symbols.c (Fdefvaralias): Likewise.
8150         * mule-charset.c (vars_of_mule_charset): Likewise.
8151
8152 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8153         Add the `-nd' flag when running pre-dump operations under the debugger.
8154         * .dbxrc (run-temacs): Add `-nd'.
8155         * .dbxrc (update-elc): Likewise.
8156         * .dbxrc (dump-temacs): Likewise.
8157         * .gdbinit (run-temacs): Likewise.
8158         * .gdbinit (check-temacs): Likewise.
8159         * .gdbinit (update-elc): Likewise.
8160         * .gdbinit (dump-temacs): Likewise.
8161
8162 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8163
8164         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8165         export OBJECT_MODE=64
8166         configure --pdump --use-union-type=no
8167         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8168         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8169
8170         * miscplay.c (sndcnv8U_2mono):
8171         Avoid two uses of `++' in the same expression.
8172         Suppresses a GCC warning.
8173
8174 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8175
8176         Make sure future compilers don't miscompile alloc.c.
8177         * alloc.c:
8178         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8179         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8180
8181 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8182
8183         * dumper.c: A little post-pdump-rename comment fixup.
8184
8185 2001-01-09  Jerry James  <james@eecs.ku.edu>
8186
8187         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8188
8189 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8190
8191         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8192         script:
8193         #!/bin/sh
8194         replace_symbol () {
8195           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8196         }
8197
8198         replace_symbol pdump_wire_lists pdump_weak_object_chains
8199         replace_symbol pdump_wire_list dump_add_weak_object_chain
8200
8201         replace_symbol pdump_wires pdump_root_objects
8202         replace_symbol pdump_wire dump_add_root_object
8203
8204         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8205         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8206
8207         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8208         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8209         replace_symbol dumpstructinfo pdump_root_struct_ptr
8210         replace_symbol dumpstruct dump_add_root_struct_ptr
8211
8212         replace_symbol dumpopaque dump_add_opaque
8213         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8214         replace_symbol dumpopaqueinfos pdump_opaques
8215         replace_symbol dumpopaqueinfo pdump_opaque
8216
8217         replace_symbol nb_structdump nb_root_struct_ptrs
8218         replace_symbol nb_opaquedump nb_opaques
8219
8220         replace_symbol align_table pdump_align_table
8221         replace_symbol dump_header pdump_header
8222
8223         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8224         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8225
8226
8227 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8228
8229         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8230         optimizing bytecount_to_charcount().
8231
8232 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8233
8234         * config.h.in:
8235         (HAVE_DLFCN_H): Removed.
8236         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8237
8238 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8239
8240         Portable dumper maintainability improvements.
8241         * alloc.c (staticpro):
8242         * alloc.c (staticpro_nodump):
8243         * alloc.c (garbage_collect_1):
8244         * alloc.c (reinit_alloc_once_early):
8245         * alloc.c (init_alloc_once_early):
8246         * alloc.c: Move dumper functions to alloc.c.
8247         * dumper.c (pdump_backtrace):
8248         * dumper.c (pdump_dump_structs):
8249         * dumper.c (pdump_dump_opaques):
8250         * dumper.c (pdump_dump_rtables):
8251         * dumper.c (pdump_dump_wired):
8252         * dumper.c (pdump):
8253         * dumper.c (pdump_load_check):
8254         * dumper.c (pdump_load_finish):
8255         * dumper.c (pdump_file_unmap):
8256         * dumper.c (pdump_file_get):
8257         * dumper.c (pdump_resource_free):
8258         * dumper.c (pdump_resource_get):
8259         * dumper.c (pdump_file_free):
8260         * dumper.c (pdump_file_try):
8261         * dumper.c (pdump_load):
8262         Remove fixed size limits on staticpro(), staticpro_nodump(),
8263         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8264         Remove custom code for dumping lrecord_implementations_table - use
8265         dumpopaque instead.
8266         Remove (most of the) custom code for dumping staticpros - dump it
8267         like any other dynarr.
8268
8269         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8270         * dumper.c: Moved functions from alloc.c.
8271         * alloc.c (dumpstruct): Moved to dumper.c.
8272         * alloc.c (dumpopaque): Likewise.
8273         * alloc.c (pdump_wire): Likewise.
8274         * alloc.c (pdump_wire_list): Likewise.
8275
8276         * lisp.h (Dynarr_sizeof): New.
8277         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8278         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8279         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8280
8281         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8282         * lisp.h (dumpopaque): ditto.
8283         * lisp.h (pdump_wire): ditto.
8284         * lisp.h (pdump_wire_list): ditto.
8285
8286 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8287
8288         * make-src-depend (PrintPatternDeps):
8289         Use `sort' to make output independent of perl version.
8290
8291 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8292
8293         Port to Netbsd 1.5.
8294         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8295         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8296
8297 2001-01-03  Didier Verna  <didier@xemacs.org>
8298
8299         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8300         that `focus_frame' is alive before thinking of calling
8301         `redisplay_redraw_cursor' on it.
8302
8303 2001-01-08  Martin Buchholz <martin@xemacs.org>
8304
8305         * XEmacs 21.2.40 is released.
8306
8307 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8308
8309         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8310
8311 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8312
8313         * alloc.c (dbg_valmask): Make const.
8314         * alloc.c (dbg_typemask): Make const.
8315         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8316         * alloc.c (dbg_valbits): Make const.
8317         * alloc.c (dbg_gctypebits): Make const.
8318
8319 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8320
8321         * redisplay-x.c (x_bevel_area):
8322         redisplay.h (struct rune):
8323         Typo fixes in comments.
8324
8325 2001-01-05  Andy Piper  <andy@xemacs.org>
8326
8327         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8328         adjustment.
8329
8330         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8331
8332 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8333
8334         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8335
8336         * mule-ccl.c (stack_idx_of_map_multiple):
8337         Non const global data must not be initialized!
8338         Found by MIYASHITA Hisashi.
8339
8340 2001-01-02  Andy Piper  <andy@xemacs.org>
8341
8342         * frame.c (change_frame_size): make sure frame size is always
8343         marked as changed.
8344
8345         * glyphs.c (image_instance_layout): minor code reuse.
8346
8347         * window.c (Fcurrent_window_configuration): revert previous
8348         change.
8349
8350 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8351
8352         * glyphs.h:
8353         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8354
8355 2000-12-31  Andy Piper  <andy@xemacs.org>
8356
8357         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8358         when widget gets unmapped.
8359
8360         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8361         function. Make sure widgets losing focus don't just drop it.
8362         (handle_focus_event_1): record the widget with focus.
8363
8364 2000-12-31  Andy Piper  <andy@xemacs.org>
8365
8366         * window.c (allocate_window): use
8367         make_image_instance_cache_hash_table.
8368         (make_dummy_parent): ditto.
8369         (Fset_window_configuration): ditto.
8370
8371         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8372
8373         * glyphs.c (process_image_string_instantiator): use
8374         INSTANTIATOR_TYPE.
8375         (get_image_instantiator_governing_domain): ditto.
8376         (normalize_image_instantiator): ditto.
8377         (instantiate_image_instantiator): ditto.
8378         (make_image_instance_1): ditto.
8379         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8380         (instantiator_eq_equal): new function for use with instance hash
8381         tables.
8382         (instantiator_eq_hash): ditto.
8383         (make_image_instance_cache_hash_table): create a suitable hash
8384         table for storing image instances.
8385
8386         * elhash.h (hash_table_weakness): new internal weakness type
8387         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8388         declare new functions.
8389
8390         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8391         another weakness type for glyphs.
8392         (make_standard_lisp_hash_table): new function split out from
8393         make_general_lisp_hash_table.
8394         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8395         (hash_table_instantiate): ditto.
8396         (Fmake_hash_table): ditto.
8397
8398 2000-12-31  Martin Buchholz <martin@xemacs.org>
8399
8400         * XEmacs 21.2.39 is released.
8401
8402 2000-12-29  Andy Piper  <andy@xemacs.org>
8403
8404         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8405
8406         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8407         the frame has changed so that we pick up geometry changes such as
8408         menubar visibility.
8409
8410 2000-12-28  Andy Piper  <andy@xemacs.org>
8411
8412         * lastfile.c (my_ebss): make a char array so we can pad the
8413         bss. Fixes cygwin unexec.
8414
8415         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8416
8417 2000-12-26  Andy Piper  <andy@xemacs.org>
8418
8419         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8420         comments and try and be more precise about a non-/SIGIO world.
8421         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8422         SIGIO.
8423
8424         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8425         we don't normalize to zero width or height.
8426
8427 2000-12-24  Andy Piper  <andy@xemacs.org>
8428
8429         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8430
8431 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8432
8433         * s/sco5.h: SCO 5 has pty support.
8434
8435 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8436
8437         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8438         input-method-xlib.c contains whole contents of input-method-xfs.c,
8439         so we can use input-method-xlib.c's code for USE_XFONTSET
8440         using #ifdefs.
8441         * input-method-xfs.c: removed.
8442
8443 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8444
8445         * file-coding.h (enum coding_category_type): reorder enumerators to
8446         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8447         (now one greater than largest real coding_category_type enumerator).
8448         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8449         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8450         Fcoding_category_list, Fset_coding_priority_list,
8451         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8452         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8453
8454 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8455
8456         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8457         * redisplay-output.c (redisplay_output_window): Clear top of window
8458         when face is changed.
8459         * redisplay-x.c (x_redraw_exposed_window): Call
8460         redisplay_clear_top_of_window.
8461         * redisplay.h: Publish redisplay_clear_top_of_window.
8462
8463 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8464
8465         * buffer.c (Fkill_buffer): Map over all devices.
8466         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8467         (list_windows): New function.
8468         (list_all_windows): Ditto.
8469         (Freplace_buffer_in_windows): Use them.
8470
8471 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8472
8473         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8474         (Fopen_database): Use `db_create' instead of `db_open'.
8475         (syms_of_database): Initialize Qqueue.
8476
8477 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8478
8479         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8480         buffer_local_face_property.
8481         * buffer.h (struct buffer): New member buffer_local_face_property.
8482         * window.c (Fset_window_buffer):  Mark window's face as changed
8483         when buffer has buffer local face.
8484         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8485         * objects.c (color_after_change): Set buffer_local_face_property
8486         when locale of face specifier is buffer.
8487         * objects.c (font_after_change): Ditto.
8488         * objects.c (face_boolean_after_change): Ditto.
8489         * glyphs.c (image_after_change): Ditto.
8490
8491 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8492
8493         * nt.c (mswindows_fstat): Report file permissions, volume serial
8494         number, etc. Code adapted from FSF Emacs 20.7.
8495
8496 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8497
8498         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8499         of stat when we don't have symbolic links, to make sure
8500         mswindows_stat is called on mswindows.
8501
8502 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8503
8504         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8505
8506 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8507
8508         * doprnt.c (emacs_doprnt_1): More printing fixes.
8509         Make printing of numbers compatible with libc and FSF Emacs.
8510         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8511         Use the system printf to do most of the hard work of formatting,
8512         instead of doprnt_1().
8513         Calculate memory to allocate for format string.
8514         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8515         (doprnt_1): Cleaner code and documentation.
8516
8517 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8518
8519         * Makefile.in.in: Use the loop variable to install headers.
8520
8521 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8522
8523         * window.c (Fsplit_window): Don't invalidate face cache.
8524
8525 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8526
8527         * minibuf.c (Fall_completions): Undo the previous change
8528         which removed checking elements start with space.
8529
8530 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8531
8532         * mule-canna.c: Didier suppression.
8533
8534 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8535
8536         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8537         (warning suppression).  Add English comment translations.
8538
8539 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8540
8541         * unexelfsgi.c (unexec): Better test for mmap failure.
8542
8543 2000-12-05  Martin Buchholz <martin@xemacs.org>
8544
8545         * XEmacs 21.2.38 is released.
8546
8547 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8548
8549         * redisplay.c (bar-cursor): Make a user variable.
8550
8551         * symsinit.h: Add init_postgresql_from_environment.
8552
8553 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8554
8555         * regex.c: Convert to clean C.
8556
8557 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8558
8559         * realpath.c:
8560         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8561         initialization.
8562         (sys_readlink): renamed to system_readlink to avoid conflict with
8563         the other sys_readlink.
8564
8565 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8566
8567         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8568
8569 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8570
8571         * postgresql.c (init_postgresql_from_environment): new function.
8572         (vars_of_postgresql): Move code initializing Lisp variables out and
8573         into init_postgresql_from_environment.
8574         emacs.c (main_1): Call init_postgresql_from_environment if and only
8575         if running a dumped XEmacs.
8576
8577 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8578
8579         * buffer.c: Make find-file-compare-truenames default to true on
8580         windows.
8581
8582         * realpath.c (win32_abs_start):
8583         (cygwin_readlink):
8584         (win32_readlink): New functions.
8585         (xrealpath): Return really real filenames on windows.
8586
8587         * fileio.c (Ffile_truename): Make file-truename work on windows.
8588
8589 2000-11-29  Didier Verna  <didier@xemacs.org>
8590
8591         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8592         * faces.c (update_face_cachel_data): use it.
8593         * faces.c (add_face_cachel): use it. Complete background pixmap
8594         frobbing in face cache if `update_face_cachel_data' has not done so.
8595
8596 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8597
8598         * search.c (string_match_1): Don't set last_thing_searched
8599         when search failed.
8600
8601 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8602
8603         * buffer.c: Include casetab.h
8604         (common_init_complex_vars_of_buffer): Use new case-table object.
8605         * buffer.h: Include casetab.h
8606         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8607         (DOWNCASE_TABLE_OF): Ditto.
8608         * bufslots.h: Remove char-tables and add case-table.
8609         * casetab.c: Include casetab.h
8610         (CASE_TABLE_P): Removed.
8611         (mark_case_table): New function.
8612         (allocate_case_table): New function.
8613         (Fcase_table_p): Use new case-table.
8614         (case_table_char): New function.
8615         (Fget_case_table): Ditto.
8616         (Fput_case_table): Ditto.
8617         (Fput_case_table_pair): Ditto.
8618         (Fcopy_case_table): Ditto.
8619         (Fcurrent_case_table): Return case-table.
8620         (Fstandard_case_table): Return case-table.
8621         (Fset_case_table): Fix doc-string.
8622         (set_case_table): Use case-table
8623         (syms_of_casetab): DEFSUBR new functions.
8624         (complex_vars_of_casetab): Set up standard case-table.
8625         * casetab.h: New file.
8626         * editfns.c: Include casetab.h
8627         (Fcompare_buffer_substrings): Use case-table.
8628         * inline.c: Include casetab.h
8629         * lisp.h: Remove bogus extern.
8630         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8631         * search.c: Include casetab.h
8632         (TRANSLATE_ASCII): Removed.
8633         (TRANSLATE): Unconditionally translate character.
8634         (looking_at_1): Use case-table.
8635         (string_match_1): Ditto.
8636         (fast_string_match): Ditto.
8637         (search_command): Ditto.
8638         (search_buffer): Separate boyer_moore.  Check whether
8639         boyer_moore is possible.
8640         (simple_search): New function.
8641         (boyer_moore): Separated from search_buffer. Translate char.
8642
8643 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8644
8645         * regex.c (RE_TR_ASCII): Removed.
8646         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8647         (PATFETCH): Call PATFETCH_RAW.
8648         (PATFETCH_RAW): Fetch Emchar.
8649         (PATUNFETCH): Decrement charptr.
8650         (GET_BUFFER_SPACE): Rename b to buf_end.
8651         (BUF_PUSH): Ditto.
8652         (BUF_PUSH_2): Ditto.
8653         (BUF_PUSH_3): Ditto.
8654         (EXTEND_BUFFER): Ditto.
8655         (SET_LIST_BIT): Ditto.
8656         (regex_compile): Ditto.  Translate non ASCII char.
8657         (compile_range): Ditto.
8658         (re_search_2): Ditto.
8659         (re_match_2_internal): Compare Emchar.
8660         (bcmp_translate): Ditto.
8661
8662 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8663
8664         * lisp.h (basic char/int typedefs):  comment improvement.
8665
8666 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8667
8668         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8669         unstomp inhibit_site_lisp.  Improve comments.
8670
8671 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8672
8673         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8674
8675 2000-11-28  Andy Piper  <andy@xemacs.org>
8676
8677         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8678         clipped display for windows in the gutter also.
8679         (redisplay_display_boxes_in_window_p): change semantics of return
8680         codes to be more intuitive.
8681
8682         * gutter.h: declare display_boxes_in_gutter_p.
8683
8684         * gutter.c (display_boxes_in_gutter_p): new function for
8685         redisplay.
8686
8687 2000-11-22  Andy Piper  <andy@xemacs.org>
8688
8689         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8690         autodetect domain.
8691
8692 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8693
8694         * callproc.c (Fold_call_process_internal):
8695         * gpm.c (Freceive_gpm_event):
8696         (tty_get_foreign_selection): Might be just warning supression.
8697         * fileio.c (Fwrite_region_internal):
8698         (Fset_visited_file_modtime):
8699         * keymap.c (event_matches_key_specifier_p):
8700         Initialize GCPROed variable.
8701
8702         * menubar-x.c (command_builder_find_menu_accelerator):
8703         Initialize before use.
8704
8705 2000-11-23  Andy Piper  <andy@xemacs.org>
8706
8707         * unexcw.c (unexec): make the resulting executable executable.
8708
8709 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8710
8711         * doc.c (get_doc_string):
8712         Use size_t, not int, for result of XSTRING_LENGTH.
8713
8714         * cmds.c (Fdelete_char):
8715         * cmds.c (Fpoint_at_eol):
8716         * cmds.c (Fself_insert_command):
8717         Use EMACS_INT, not int, for result of XINT.
8718         Someday, someone will want to insert more than 2**31 identical characters.
8719
8720         * cmds.c (Fdelete_char):
8721         * cmds.c (Fdelete_backward_char):
8722         * syntax.c (Fforward_word):
8723         * syntax.c (Fforward_comment):
8724         Make COUNT argument optional, for consistency with forward-char et al.
8725
8726 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8727
8728         * lisp.h:
8729         * print.c (long_to_string):
8730         Return a useful value: the pointer at end of data written.
8731
8732         * doprnt.c:
8733         Use `static const char * const' for constant strings.
8734         (union printf_arg): Delete `i', `ui' members.
8735         (get_doprnt_args):
8736         (emacs_doprnt_1):
8737         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8738         Do all printf-ing via the `l' specifier.
8739         Use EMACS_INT instead of int.
8740         Optimize.
8741
8742 2000-11-20  Didier Verna  <didier@xemacs.org>
8743
8744         * faces.c (update_face_cachel_data): don't frob the background
8745         pixmap when the window is being created. The face is needed but
8746         does not exist yet.
8747
8748 2000-11-20  Andy Piper  <andy@xemacs.org>
8749
8750         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8751         messing with a debug environment.
8752
8753 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8754
8755         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8756
8757 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8758
8759         * casetab.c (Fcase_table_p): Fix compile error and crash.
8760
8761 2000-11-18  Philip Aston  <philipa@mail.com>
8762
8763         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8764
8765 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8766
8767         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8768         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8769
8770 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8771
8772         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8773         * unexelf.c: Use HAVE_ELF_H.
8774         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8775         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8776         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8777         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8778         for testing.
8779         So this is an unexelfsgi.c from a different line of development.
8780
8781 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8782
8783         * regex.c (RE_TR_ASCII): New function.
8784         (RE_TRANSLATE): Call it.
8785
8786 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8787
8788         * buffer.h (TRT_TABLE_OF): Remove assert.
8789         (IN_TRT_TABLE_DOMAIN): Removed.
8790
8791 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8792
8793         * free-hook.c (log_gcpro):
8794         (show_gcprohist): Add support for GCPRO5.
8795
8796 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8797
8798         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8799
8800 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8801
8802         * symeval.h: Declare flush_all_buffer_local_cache.
8803
8804         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8805         (flush_buffer_local_cache): Added.
8806         (flush_all_buffer_local_cache): Added.
8807
8808         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8809
8810         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8811         (pdump_dump_data): Ditto.
8812         (pdump_reloc_one): Ditto.
8813         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8814         before dumping.
8815
8816
8817 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8818
8819         * buffer.c: Remove if 0'ed entry.
8820         * buffer.h: Rewrite TRT to use char-table.
8821         * bufslots.h: Remove mirror tables.
8822         * casetab.c: Remove mirror tables.
8823         (CASE_TABLE_P): New macro.
8824         (Fcase_table_p): Element of a case table is string or char-table.
8825         (make_mirror_trt_table): Removed.
8826         (set_case_table): Setup char-table from strings for backward
8827         compatibility.
8828         * dired.c (Fdirectory_files):
8829         * dired-msw.c: (mswindows_get_files):
8830         * lisp.h: Change prototype of re_pattern_buffer.
8831         * regex.c: (RE_TRANSLATE): New macro.
8832         (TRANSLATE_P): Ditto.
8833         Change translate to type RE_TRANSLATE_TYPE.
8834         * regex.h: Define RE_TRANSLATE_TYPE
8835         * search.c (TRANSLATE): New macro.
8836         (TRANSLATE_ASCII): New macro.
8837         Translate table is changed to Lisp_Object.
8838         (signal_failure): Inhibit return.
8839
8840 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8841
8842         * device-msw.c:
8843         * eldap.c:
8844         * event-Xt.c:
8845         * event-stream.c:
8846         * print.c:
8847         Do UNGCPRO before return.
8848
8849 2000-11-14  Martin Buchholz <martin@xemacs.org>
8850
8851         * XEmacs 21.2.37 is released.
8852
8853 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8854
8855         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8856         Add comments about discarded return value.
8857
8858 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8859
8860         * callint.c:
8861         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8862
8863 2000-10-27  Andy Piper  <andy@xemacs.org>
8864
8865         * gutter.c (Fset_default_gutter_position): default left and right
8866         gutters to visible.
8867         (calculate_gutter_size): calculate resonable heuristic for left
8868         and right gutter sizes.
8869         (specifier_vars_of_gutter): change left and right gutter sizes to
8870         autodetect.
8871         (calculate_gutter_size_from_display_lines): new function.
8872         (output_gutter): check for resizing on left and right gutters.
8873         (clear_gutter): don't special case top and left gutters.
8874         (specifier_vars_of_gutter): use new signature for
8875         set_specifier_caching.
8876
8877         * glyphs-x.c (x_redisplay_widget): spelling fix.
8878         * glyphs.c (specifier_vars_of_glyphs):
8879         * menubar.c (specifier_vars_of_menubar):
8880         * redisplay.c (specifier_vars_of_redisplay):
8881         * toolbar.c (specifier_vars_of_toolbar):
8882         * window.c (specifier_vars_of_window):
8883         * scrollbar.c (specifier_vars_of_scrollbar):
8884         (complex_vars_of_scrollbar): use new signature for
8885         set_specifier_caching.
8886
8887         * specifier.c (set_specifier_caching): include recompute flag.
8888         (recompute_one_cached_specifier_in_window): always recompute if
8889         flag set.
8890         (recompute_one_cached_specifier_in_frame): ditto.
8891
8892         * specifier.h (struct specifier_caching): add recompute flag.
8893
8894 2000-10-24  Andy Piper  <andy@xemacs.org>
8895
8896         * unexcw.c (copy_executable_and_dump_data_section): add new
8897         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8898         5.0 happy.
8899
8900 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8901
8902         * console-x.h (x_device): New member modifier_release_time.
8903         * event-Xt.c (x_handle_sticky_modifiers):
8904         Bound interval modifier keys are sticky.
8905         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8906         * events.h: extern it.
8907
8908 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8909
8910         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8911
8912 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8913
8914         * event-stream.c (execute_command_event): Preserve current_events
8915         and the like when event is misc-user-event.
8916         Inhibit quit during the call to maybe_echo_keys.
8917
8918 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8919
8920         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8921         symlink when buffer is killed.
8922         (inhibit_clash_detection): New variable.
8923
8924 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8925
8926         * console.c (Fset_input_method): Trigger redisplay on tty.
8927
8928 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8929
8930         * process.c (Fprocess_status): Revert to previous behavior:
8931         (process-status "nosuchprocess") ==> nil
8932
8933 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8934
8935         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8936         Work around another GCC 2.95.2 optimizer bug.
8937
8938 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8939
8940         * process.c (Fget_process): Use LIST_LOOP_2.
8941         (kill_buffer_processes): Use LIST_LOOP_2.
8942
8943         * minibuf.c (Fall_completions):
8944         Delete old non-functional code for FSF fourth argument.
8945
8946         * frame.c (frame_matches_frame_spec):
8947         Renamed from `frame_matches_frametype'.  Update all callers.
8948         (device_matches_device_spec):
8949         Renamed from 'device_matches_console_spec'.  Update all callers.
8950
8951         * doc.c (Fsubstitute_command_keys):
8952         Remove buffer overflow crash.  Small code cleanups.
8953
8954         * casetab.c (check_case_table): Simpler code.
8955
8956         * window.c (Freplace_buffer_in_windows):
8957         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8958         (and similar implementation) as Fdelete_windows_on.
8959         Update all callers.
8960
8961         * alloc.c (Fmake_list):
8962         * alloc.c (make_vector):
8963         * alloc.c (Fmake_vector):
8964         * alloc.c (make_bit_vector):
8965         * alloc.c (Fmake_bit_vector):
8966         * alloc.c (Fbit_vector):
8967         * alloc.c (Fmake_string):
8968         * alloc.c (Fpurecopy):
8969         * alloc.c (Fmemory_limit):
8970         * buffer.c:
8971         * buffer.c (Fget_buffer):
8972         * buffer.c (Fkill_buffer):
8973         * buffer.c (complex_vars_of_buffer):
8974         * bytecode.c (Fcompiled_function_stack_depth):
8975         * callint.c (Fprefix_numeric_value):
8976         * event-stream.c:
8977         * event-stream.c (Fread_key_sequence):
8978         * casetab.c:
8979         * casetab.c (Fcase_table_p):
8980         * casetab.c (check_case_table):
8981         * casetab.c (Fset_case_table):
8982         * casetab.c (Fset_standard_case_table):
8983         * chartab.c:
8984         * chartab.c (Fchar_table_type):
8985         * chartab.c (Freset_char_table):
8986         * chartab.c (Fget_char_table):
8987         * chartab.c (Fget_range_char_table):
8988         * chartab.c (Fput_char_table):
8989         * chartab.c (Fmap_char_table):
8990         * chartab.c (Fcategory_table_p):
8991         * chartab.c (Fcheck_category_at):
8992         * chartab.c (Fchar_in_category_p):
8993         * chartab.c (Fcategory_table):
8994         * chartab.c (Fcopy_category_table):
8995         * chartab.c (Fset_category_table):
8996         * chartab.c (Fcategory_designator_p):
8997         * chartab.c (Fcategory_table_value_p):
8998         * cmds.c (Fdelete_char):
8999         * cmds.c (Fdelete_backward_char):
9000         * cmds.c (Fself_insert_command):
9001         * cmds.c (Fself_insert_internal):
9002         * console.c (Fvalid_console_type_p):
9003         * console.c (Fcdfw_console):
9004         * console.c (Fconsole_type):
9005         * console.c (Fconsole_name):
9006         * console.c (Fconsole_device_list):
9007         * console.c (Fconsole_on_window_system_p):
9008         * data.c:
9009         * data.c (Feq):
9010         * data.c (Fold_eq):
9011         * data.c (Fsubr_interactive):
9012         * data.c (Fchar_to_int):
9013         * data.c (Fint_to_char):
9014         * data.c (Fsetcar):
9015         * data.c (Fsetcdr):
9016         * data.c (Fnumber_to_string):
9017         * data.c (Fstring_to_number):
9018         * data.c (Frem):
9019         * database.c (mark_database):
9020         * database.c (finalize_database):
9021         * database.c (Fdatabase_live_p):
9022         * database.c (Fdatabasep):
9023         * device-x.c (Fx_get_resource):
9024         * device.c (Fdfw_device):
9025         * dired.c:
9026         * dired.c (Ffile_name_completion):
9027         * dired.c (Ffile_name_all_completions):
9028         * dired.c (Fuser_name_completion):
9029         * dired.c (Fuser_name_completion_1):
9030         * dired.c (Fuser_name_all_completions):
9031         * doc.c (Fdocumentation):
9032         * doc.c (Fdocumentation_property):
9033         * doc.c (Fsubstitute_command_keys):
9034         * editfns.c:
9035         * editfns.c (Fchar_to_string):
9036         * editfns.c (Fstring_to_char):
9037         * editfns.c (Ftemp_directory):
9038         * editfns.c (Finsert_char):
9039         * editfns.c (Fbuffer_substring_no_properties):
9040         * editfns.c (Fnarrow_to_region):
9041         * editfns.c (Fchar_equal):
9042         * editfns.c (Fchar_Equal):
9043         * editfns.c (Ftranspose_regions):
9044         * emacs.c (Fdump_emacs):
9045         * eval.c (Fthrow):
9046         * eval.c (Fcommand_execute):
9047         * eval.c (Fautoload):
9048         * eval.c (Fbacktrace):
9049         * eval.c (Fbacktrace_frame):
9050         * events.c:
9051         * events.c (Fcopy_event):
9052         * events.c (Fcharacter_to_event):
9053         * events.c (Fevent_button):
9054         * events.c (Fevent_process):
9055         * extents.c:
9056         * extents.c (Fnext_extent_change):
9057         * extents.c (Fextent_property):
9058         * faces.c (Ffacep):
9059         * faces.c (Fmake_face):
9060         * file-coding.c:
9061         * file-coding.c (Fencode_shift_jis_char):
9062         * file-coding.c (Fencode_big5_char):
9063         * fileio.c (Ffile_name_directory):
9064         * fileio.c (Ffile_name_nondirectory):
9065         * fileio.c (Ffile_name_as_directory):
9066         * fileio.c (Fdirectory_file_name):
9067         * fileio.c (Ffile_truename):
9068         * fileio.c (Fsubstitute_in_file_name):
9069         * fileio.c (Ffile_modes):
9070         * fileio.c (Fset_file_modes):
9071         * fileio.c (Fset_default_file_modes):
9072         * fileio.c (Fverify_visited_file_modtime):
9073         * floatfns.c (Facos):
9074         * floatfns.c (Fasin):
9075         * floatfns.c (Fatan):
9076         * floatfns.c (Fcos):
9077         * floatfns.c (Fsin):
9078         * floatfns.c (Ftan):
9079         * floatfns.c (Fbessel_j0):
9080         * floatfns.c (Fbessel_j1):
9081         * floatfns.c (Fbessel_jn):
9082         * floatfns.c (Fbessel_y0):
9083         * floatfns.c (Fbessel_y1):
9084         * floatfns.c (Fbessel_yn):
9085         * floatfns.c (Ferf):
9086         * floatfns.c (Ferfc):
9087         * floatfns.c (Flog_gamma):
9088         * floatfns.c (Fexp):
9089         * floatfns.c (Fexpt):
9090         * floatfns.c (Flog):
9091         * floatfns.c (Flog10):
9092         * floatfns.c (Fsqrt):
9093         * floatfns.c (Fcube_root):
9094         * floatfns.c (Facosh):
9095         * floatfns.c (Fasinh):
9096         * floatfns.c (Fatanh):
9097         * floatfns.c (Fcosh):
9098         * floatfns.c (Fsinh):
9099         * floatfns.c (Ftanh):
9100         * floatfns.c (Fabs):
9101         * floatfns.c (Ffloat):
9102         * floatfns.c (Flogb):
9103         * floatfns.c (Fceiling):
9104         * floatfns.c (Ffloor):
9105         * floatfns.c (Fround):
9106         * floatfns.c (Ftruncate):
9107         * floatfns.c (Ffceiling):
9108         * floatfns.c (Fffloor):
9109         * floatfns.c (Ffround):
9110         * floatfns.c (Fftruncate):
9111         * fns.c (Fstring_equal):
9112         * fns.c (Fstring_lessp):
9113         * fns.c (concat2):
9114         * fns.c (concat3):
9115         * fns.c (vconcat2):
9116         * fns.c (vconcat3):
9117         * fns.c (Fsubstring):
9118         * fns.c (Fassoc):
9119         * fns.c (Fold_assoc):
9120         * fns.c (assoc_no_quit):
9121         * fns.c (Fassq):
9122         * fns.c (Fold_assq):
9123         * fns.c (assq_no_quit):
9124         * fns.c (Frassoc):
9125         * fns.c (Fold_rassoc):
9126         * fns.c (Frassq):
9127         * fns.c (Fold_rassq):
9128         * fns.c (rassq_no_quit):
9129         * fns.c (Fremassoc):
9130         * fns.c (remassoc_no_quit):
9131         * fns.c (Fremassq):
9132         * fns.c (remassq_no_quit):
9133         * fns.c (Fremrassoc):
9134         * fns.c (Fremrassq):
9135         * fns.c (remrassq_no_quit):
9136         * fns.c (Fsort):
9137         * fns.c (Fplist_get):
9138         * fns.c (Fplist_put):
9139         * fns.c (Fplist_remprop):
9140         * fns.c (Fplist_member):
9141         * fns.c (Flax_plist_get):
9142         * fns.c (Flax_plist_put):
9143         * fns.c (Flax_plist_remprop):
9144         * fns.c (Flax_plist_member):
9145         * fns.c (Fequal):
9146         * fns.c (Fold_equal):
9147         * fns.c (Frequire):
9148         * fns.c (Fbase64_encode_region):
9149         * fns.c (Fbase64_encode_string):
9150         * fns.c (Fbase64_decode_region):
9151         * frame.c:
9152         * frame.c (frame_matches_frame_spec):
9153         * frame.c (device_matches_device_spec):
9154         * frame.c (next_frame):
9155         * frame.c (previous_frame):
9156         * frame.c (Fnext_frame):
9157         * frame.c (Fprevious_frame):
9158         * frame.c (Fframe_property):
9159         * frame.c (Fset_frame_height):
9160         * frame.c (Fset_frame_size):
9161         * frame.h:
9162         * glyphs.c:
9163         * glyphs.c (if):
9164         * glyphs.c (decode_error_behavior_flag):
9165         * glyphs.c (Fmake_image_instance):
9166         * indent.c (Findent_to):
9167         * intl.c (Fignore_defer_gettext):
9168         * keymap.c (Fkeymapp):
9169         * keymap.c (Flookup_key):
9170         * lread.c:
9171         * lread.c (Fload_internal):
9172         * lread.c (Feval_buffer):
9173         * lread.c (Feval_region):
9174         * macros.c (Fexecute_kbd_macro):
9175         * marker.c (set_marker_internal):
9176         * marker.c (Fset_marker):
9177         * marker.c (set_marker_restricted):
9178         * marker.c (Fcopy_marker):
9179         * marker.c (noseeum_copy_marker):
9180         * menubar.c:
9181         * menubar.c (Fpopup_menu):
9182         * minibuf.c:
9183         * mule-charset.c (Fcharset_name):
9184         * mule-charset.c (Fchar_charset):
9185         * mule-charset.c (Fchar_octet):
9186         * mule-charset.c (Fsplit_char):
9187         * mule-wnnfns.c (Fwnn_open):
9188         * mule-wnnfns.c (Fwnn_dict_comment):
9189         * mule-wnnfns.c (Fwnn_quit_henkan):
9190         * mule-wnnfns.c (Fwnn_word_toroku):
9191         * mule-wnnfns.c (Fwnn_word_sakujo):
9192         * mule-wnnfns.c (Fwnn_word_use):
9193         * mule-wnnfns.c (Fwnn_hindo_set):
9194         * objects.c:
9195         * objects.c (Fmake_color_instance):
9196         * objects.c (Fmake_font_instance):
9197         * print.c (Fwrite_char):
9198         * process.c:
9199         * process.c (mark_process):
9200         * process.c (print_process):
9201         * process.c (get_process_from_usid):
9202         * process.c (Fprocessp):
9203         * process.c (Fprocess_live_p):
9204         * process.c (Fget_process):
9205         * process.c (Fget_buffer_process):
9206         * process.c (get_process):
9207         * process.c (Fprocess_id):
9208         * process.c (Fprocess_name):
9209         * process.c (Fprocess_command):
9210         * process.c (init_process_io_handles):
9211         * process.c (start_process_unwind):
9212         * process.c (Fstart_process_internal):
9213         * process.c (Fopen_multicast_group_internal):
9214         * process.c (Fset_process_window_size):
9215         * process.c (read_process_output):
9216         * process.c (send_process):
9217         * process.c (Fprocess_tty_name):
9218         * process.c (Fset_process_buffer):
9219         * process.c (Fprocess_buffer):
9220         * process.c (Fprocess_mark):
9221         * process.c (set_process_filter):
9222         * process.c (Fset_process_filter):
9223         * process.c (Fprocess_filter):
9224         * process.c (Fprocess_send_region):
9225         * process.c (Fprocess_send_string):
9226         * process.c (exec_sentinel):
9227         * process.c (Fset_process_sentinel):
9228         * process.c (Fprocess_sentinel):
9229         * process.c (status_notify):
9230         * process.c (Fprocess_status):
9231         * process.c (Fprocess_exit_status):
9232         * process.c (process_send_signal):
9233         * process.c (Fprocess_send_eof):
9234         * process.c (deactivate_process):
9235         * process.c (remove_process):
9236         * process.c (Fdelete_process):
9237         * process.c (kill_buffer_processes):
9238         * process.c (Fprocess_kill_without_query):
9239         * process.c (Fprocess_kill_without_query_p):
9240         * rangetab.c:
9241         * rangetab.c (Fget_range_table):
9242         * rangetab.c (Fput_range_table):
9243         * rangetab.c (Fremove_range_table):
9244         * rangetab.c (Fclear_range_table):
9245         * search.c:
9246         * search.c (Fskip_chars_forward):
9247         * search.c (Fskip_chars_backward):
9248         * search.c (Fskip_syntax_forward):
9249         * search.c (Fskip_syntax_backward):
9250         * search.c (search_command):
9251         * search.c (Freplace_match):
9252         * search.c (Fregexp_quote):
9253         * select.c (Fown_selection_internal):
9254         * select.c (Fselection_owner_p):
9255         * select.c (Fselection_exists_p):
9256         * select.c (Fget_selection_internal):
9257         * specifier.c:
9258         * symbols.c:
9259         * symbols.c (Fintern):
9260         * symbols.c (Fintern_soft):
9261         * symbols.c (Funintern):
9262         * symbols.c (Fapropos_internal):
9263         * symbols.c (Fset_default):
9264         * syntax.c:
9265         * syntax.c (Fsyntax_table_p):
9266         * syntax.c (Fcopy_syntax_table):
9267         * syntax.c (Fset_syntax_table):
9268         * syntax.c (Fchar_syntax):
9269         * syntax.c (syntax_match):
9270         * syntax.c (Fmatching_paren):
9271         * syntax.c (Fforward_word):
9272         * syntax.c (scan_lists):
9273         * syntax.c (Fscan_lists):
9274         * syntax.c (Fscan_sexps):
9275         * syntax.c (Fparse_partial_sexp):
9276         * toolbar.c (Fcheck_toolbar_button_syntax):
9277         * tooltalk.doc:
9278         * window.c:
9279         * window.c (Fwindowp):
9280         * window.c (Fwindow_live_p):
9281         * window.c (Fwindow_point):
9282         * window.c (Fdelete_window):
9283         * window.c (Fnext_window):
9284         * window.c (Fprevious_window):
9285         * window.c (Fother_window):
9286         * window.c (window_loop):
9287         * window.c (Fget_lru_window):
9288         * window.c (Fsplit_window):
9289         * window.c (Fenlarge_window):
9290         * window.c (Fenlarge_window_pixels):
9291         * window.c (Fshrink_window):
9292         * window.c (Fshrink_window_pixels):
9293         * window.c (change_window_height):
9294         * window.c (Fwindow_configuration_p):
9295         * window.c (Fcurrent_window_configuration):
9296         * window.h:
9297         * casefiddle.c (casify_object):
9298         * casefiddle.c (Fupcase):
9299         * casefiddle.c (Fdowncase):
9300         * casefiddle.c (Fcapitalize):
9301         * casefiddle.c (Fupcase_initials):
9302         * casefiddle.c (casify_region_internal):
9303         * casefiddle.c (casify_region):
9304         * casefiddle.c (Fupcase_region):
9305         * casefiddle.c (Fdowncase_region):
9306         * casefiddle.c (Fcapitalize_region):
9307         * casefiddle.c (Fupcase_initials_region):
9308         * casefiddle.c (Fupcase_word):
9309         * casefiddle.c (Fdowncase_word):
9310         * casefiddle.c (Fcapitalize_word):
9311         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9312         Replace 0 with '\0' when working with bytes.
9313         Replace initial "(" with "\(" in docstrings.
9314
9315 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9316
9317         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9318
9319         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9320
9321 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9322
9323         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9324
9325 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9326
9327         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9328         correctly.
9329
9330 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9331
9332         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9333         (inhibit_auto_save_session): New variable.
9334         (vars_of_fileio): Declare and initialize them.
9335         * fileio.c (Fdo_auto_save): Don't create session file if
9336         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9337
9338 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9339
9340         * sgiplay.c (play_internal): C++ compilability.
9341         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9342         * callproc.c (Fold_call_process_internal):
9343         Remove unused vars `env', `first'.
9344         * scrollbar.c (update_scrollbar_instance):
9345         #### unused var `current_window'.
9346         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9347         etc. within #ifdef NOT_YET.
9348         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9349         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9350         * specifier.c (specifier_instance):
9351         #### unused var `tag'.
9352         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9353
9354 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9355
9356         * fns.c (Fbutlast):
9357         * fns.c (list_sort):
9358         * fns.c (Ffillarray):
9359         * fns.c (bytecode_nconc2):
9360         * fns.c (Fnconc):
9361         * fns.c (mapcar1):
9362         * fns.c (Fmapconcat):
9363         Be pedantically 64-bit correct.  For the time when someone will
9364         want to have a list with length > 2**32.
9365
9366         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9367         Work around MIPSpro compiler bug.
9368
9369         * process-unix.c (unix_kill_child_process): Add snarky comment.
9370         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9371
9372         * config.h.in: Oops, _getpt ==> _getpty
9373
9374 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9375
9376         * config.h.in:
9377         * regex.c:
9378         Use void*, not char*, as return type of alloca().
9379
9380         * alloc.c (free_marker): Side effect inside assert expression!
9381
9382 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9383
9384         * mule-charset.c (Fset_charset_ccl_program): To check
9385         if the given ccl program is valid, use setup_ccl_program()
9386         instead of CHECK_VECTOR().
9387         (Fmake_charset): Likewise.
9388
9389 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9390
9391         * faces.c (get_extent_fragment_face_cache_index):
9392         Fix cachel.merged_faces memory leak.
9393
9394 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9395
9396         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9397         Reset MSB of octets obtained by DECODE_SJIS
9398         because of the incompatibility with Emacs.
9399         (ccl_driver)<CCL_ENCODE_SJIS>:
9400         Set MSB of octets before passing them to
9401         ENCODE_SJIS because of the incompatibility
9402         with Emacs.
9403
9404 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9405
9406         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9407         (DECLARE_LRECORD): Undo the last change.
9408         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9409
9410 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9411
9412         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9413         the implementation to lrecord_implementations_table.
9414
9415 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9416
9417         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9418         initial value of `lrecord_type_##c_name' and
9419         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9420         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9421         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9422         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9423         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9424
9425 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9426
9427         * miscplay.c (sndcnv8S_2mono):
9428         (sndcnv2monounsigned):
9429         (sndcnvULaw_2linear):
9430         (sndcnv16swap):
9431         Remove implementation-defined behavior.
9432
9433 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9434
9435         * input-method-xlib.c: Warning suppression.
9436
9437 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9438
9439         * mule-ccl.c: Sync up with Emacs 21.0.90.
9440         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9441         Do nothing.
9442         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9443         Likewise.
9444         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9445         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9446         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9447         leading char belongs to official 2-dimensional charset.
9448         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9449         write the given character as is.  Otherwise,
9450         if it is a multibyte char, convert it by
9451         non_ascii_set_charptr_emchar, then write it.
9452         (CCL_WRITE_STRING): Likewise.
9453         (ccl_get_compiled_code): New function.
9454         (setup_ccl_program): When ccl_prog is invalid,
9455         return -1.
9456         (Fregister_code_conversion_map): New function.
9457         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9458
9459         * mule-ccl.h: Sync up with Emacs 21.0.90.
9460         (Fregister_ccl_program): export it.
9461
9462         * redisplay-msw.c (separate_textual_runs):
9463         If ccl program is not valid, don't do ccl conversion.
9464
9465         * redisplay-x.c (separate_textual_runs): Ditto.
9466
9467         * file-coding.c (Fmake_coding_system):
9468         When type is ccl and value is vector, register it
9469         with a proper symbol.  And checks whether the
9470         given ccl program is valid.
9471         (mule_decode): When calling ccl_driver, if src indicates
9472         NULL pointer, set an empty string instead.
9473         (mule_encode): Likewise.
9474
9475 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9476
9477         The following large batch of changes gets us back to a state of
9478         C++ compilability.  Extbyte is now a char, which means that
9479         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9480
9481         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9482
9483         * sound.c (Fplay_sound): Type correctness.
9484
9485         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9486         (x_get_window_property): Type correctness.
9487         (receive_incremental_selection): unsigned char ==> Extbyte
9488         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9489         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9490         (Fx_store_cutbuffer_internal): Type correctness.
9491
9492         * process-unix.c (try_to_initialize_subtty): Type correctness.
9493
9494         * objects-x.c (x_print_color_instance): Type correctness.
9495         (x_print_font_instance): Type correctness.
9496         (x_list_fonts): SExtbyte ==> Extbyte.
9497         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9498         (x_find_charset_font): SExtbyte ==> Extbyte.
9499         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9500         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9501         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9502         Use bufbyte_strcmp.
9503
9504         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9505         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9506         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9507         (BYTE_C0_P): Use bit ops for char-signedness safety.
9508         (BYTE_C1_P): Use bit ops for char-signedness safety.
9509         (CHARSET_BY_LEADING_BYTE):
9510         (CHARSET_BY_ATTRIBUTES):
9511         Always use inline function.
9512         Use type_checking_assert.
9513         Hide chlook.
9514
9515         * mule-charset.c (non_ascii_charptr_copy_char):
9516         Modify to work with both ASCII and non-ASCII characters.
9517         Improve docs and variable names.
9518         Replace over-clever fall-through switch with a simple loop.
9519         (Lstream_get_emchar_1):
9520         Replace over-clever fall-through switch with a simple loop.
9521
9522         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9523         Warning suppression.
9524
9525         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9526         the return value of Lstream_getc, which could be EOF as well.
9527
9528         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9529
9530         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9531         APIs can be used on Extbytes without casts.  Risky!
9532         (SExtbyte): Remove.
9533         (UExtbyte): Remove.
9534
9535         * input-method-xlib.c (XIM_init_device):
9536         Use Xlib.h instead of IntrinsicP.h.
9537         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9538         which will break in X11R7.
9539         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9540         to call XRegisterIMInstantiateCallback with correct types.
9541
9542         * gui-x.c (button_item_to_widget_value): Type correctness.
9543
9544         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9545
9546         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9547         (xbm_instantiate_1): Type correctness.
9548         (BUILD_GLYPH_INST):  Type correctness.
9549
9550         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9551
9552         * file-coding.c:
9553         (decode_coding_sjis):
9554         (decode_coding_big5):
9555         (decode_coding_ucs4):
9556         (decode_coding_utf8):
9557         (decode_coding_iso2022):
9558         (decode_coding_no_conversion):
9559         Make all decoding functions take an Extbyte * arg.
9560         (encode_coding_sjis):
9561         (encode_coding_big5):
9562         (encode_coding_ucs4):
9563         (encode_coding_utf8):
9564         (encode_coding_iso2022):
9565         (encode_coding_no_conversion):
9566         Make all encoding functions take a Bufbyte * arg.
9567         Use size_t instead of unsigned int for memory sizes.
9568         Only cast to unsigned char whenever dereferencing Extbyte *.
9569
9570         * doc.c (unparesseuxify_doc_string): Type correctness.
9571
9572         * console-x.c (split_up_display_spec):
9573         Rewrite without using details of internal string representation.
9574         (x_semi_canonicalize_device_connection): Type correctness.
9575
9576         * config.h.in:
9577         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9578         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9579         (HAVE_XFREE386): Removed.
9580
9581         * buffer.h (DEC_CHARPTR): `const' correctness.
9582         (bufbyte_strcmp): New.
9583         (bufbyte_memcmp): New.
9584
9585         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9586
9587         * buffer.h (XCHAR_OR_CHAR_INT):
9588         Always use inline function.
9589         Remove redundant type checking assert() - XINT will abort quite nicely.
9590
9591 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9592
9593         * search.c (Freplace_match): Set newtext to an empty string.
9594
9595 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9596
9597         * s/decosf1-3.h: Remove #include of stropts.h
9598         * s/ptx.h: Remove #include of stropts.h
9599         * s/usg5-4.h: Remove #include of stropts.h
9600         * sysproc.h:
9601         * config.h.in:
9602         Use stropts.h, not sys/stropts.h.
9603         Use strtio.h, not sys/strtio.h.
9604
9605 2000-10-04  Martin Buchholz <martin@xemacs.org>
9606
9607         * XEmacs 21.2.36 is released.
9608
9609 2000-09-21  Andy Piper  <andy@xemacs.org>
9610
9611         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9612         changes still involve copying the widget tree.
9613         (update_widget_face): make sure a change is register in the widget
9614         tree. Call update_tab_widget_face appropriately.
9615         (update_tab_widget_face): ditto.
9616         (x_tab_control_redisplay): make sure non-structural changes still
9617         involve copying the widget tree.
9618
9619 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9620
9621         * lread.c (locate_file): Check the path element is non-nil.
9622
9623 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9624
9625         * lisp.h: Warning suppression for SCO compilers.
9626
9627         * redisplay-tty.c (reset_tty_modes): Fix crash.
9628         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9629
9630 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9631
9632         Big signal/process handling overhaul.  Bugs fixed:
9633         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9634         M-x comint-kill-subjob should work for both values nil and t of
9635         process-connection-type. It was broken on most platforms.
9636         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9637         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9638         * process-unix.c: Signal/Process handling overhaul.
9639         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9640         (allocate_pty): Use all available modern methods of allocating
9641         ptys, falling back to old style BSD allocation as a last resort.
9642         Use allegedly more secure Unix98 pty allocation by default.
9643         (allocate_pty_the_old_fashioned_way): New. the last resort.
9644         (unix_create_process): Push ptem, ldterm, ttcompat where
9645         available.  Autoconfiscate.
9646         (try_to_initialize_subtty): New.
9647         (unix_kill_child_process): Proper signal handling for ptys on most
9648         platforms, using special knowledge of AIX, BSD, etc...
9649         (unix_create_process): Always disconnect_controlling_terminal() for
9650         subprocesses, whether using ptys or not.
9651         * process.h: Remove old getpt-dependent PTY code.
9652         * process.c (Fprocess_send_signal): New, obvious generic function.
9653         (decode_signal): New.
9654         (Finterrupt_process):
9655         (Fkill_process):
9656         (Fquit_process):
9657         (Fstop_process):
9658         (Fcontinue_process):
9659         (Fsignal_process): Use decode_signal.
9660         (process_send_signal):
9661         Many docstring corrections.
9662         Allow any signal to be sent to a process object.
9663         * config.h.in: Add symbols for big signal/process overhaul.
9664         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9665         * sysproc.h: Include process-related headers, where available:
9666         sys/stropts.h sys/strtio.h pty.h libutil.h
9667         * s/irix4-0.h:
9668         * s/irix5-0.h:
9669         * s/cygwin32.h:
9670         * s/gnu.h:
9671         * s/linux.h:
9672         * s/hpux.h:
9673         * s/aix3-1.h:
9674         Remove old S&M pty stuff.
9675         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9676         * systty.h: Simplify cpp hackery, improve comments.
9677         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9678
9679         * editfns.c (Fformat_time_string):
9680         Be a little more paranoid with the return value of ctime.
9681
9682         * fileio.c (check_executable):
9683         (check_writable):
9684         Use symbolic constants X_OK, W_OK.
9685
9686         * console-x.c (split_up_display_spec): Fix a warning.
9687
9688 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9689
9690         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9691         * ntproc.c (sys_spawnve): make_string ==> build_string
9692         Small clarity improvements.
9693
9694 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9695
9696         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9697
9698         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9699
9700         * config.h.in (HAVE_STRCASECMP): Remove.
9701
9702 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9703
9704         * redisplay-output.c (redisplay_output_pixmap):
9705         Cleaner and possibly more 64-bit correct code.
9706
9707 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9708
9709         * dumper.c (pdump_load_finish): move restoration of
9710         `noninteractive1' to emacs.c (main_1).
9711         * emacs.c (main_1): protect LISP-visible command-line flags
9712         from pdump_load().
9713
9714 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9715
9716         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9717         DUMP_TARGET instead of literal program names.
9718
9719 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9720
9721         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9722
9723 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9724
9725         * *: Spelling mega-patch
9726
9727 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9728
9729         * fns.c (bad_bad_turtle):
9730         Delete "Eek!" comment, since we fixed the bug to which it refers.
9731
9732 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9733
9734         * alloca.c: Replace REGISTER with register.
9735
9736 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9737
9738         * file-coding.c (ucs_to_char): Use countof.
9739
9740 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9741
9742         * file-coding.c: (ucs_to_char):
9743         (complex_vars_of_file_coding):
9744         Use countof instead of sizeof.
9745         Use CHECK_NATNUM instead of CHECK_INT.
9746
9747         * sysdep.c (strcasecmp): Remove.
9748         * device-x.c (ascii_strcasecmp): New.
9749         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9750         Avoid using non-standard non-portable strcasecmp.
9751
9752 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9753
9754         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9755         * font-lock.c: remove reference to emacsfns.h.
9756         * search.c: small doc improvement.
9757         * event-Xt.c: correct file names in comments.
9758         * console-x.h Correct file names in comments.
9759         * frame.c: Correct file names in comments.
9760         * event-stream.c: remove Energize from comments.
9761
9762 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9763
9764         * symeval.h (DEFERROR_STANDARD):
9765         (DEFERROR):
9766         (DEFSYMBOL):
9767         (DEFSYMBOL_NO_DUMP):
9768         (DEFSYMBOL_MULTIWORD_PREDICATE):
9769         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9770         (DEFKEYWORD):
9771         The construct &##name is not sensible C.
9772         Fixes compilation errors with Unixware native compiler.
9773
9774 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9775
9776         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9777         (next_frame_internal): Removed.  We now just have next_frame.
9778         (next_frame):
9779         Write a simpler and cleaner one-pass algorithm.
9780         Remove called_from_delete_device arg and #ifdefed-out code.
9781         (previous_frame):
9782         Renamed from prev_frame.  Update callers.
9783         Cleaned up to have an analogous implementation to next_frame.
9784         (other_visible_frames_internal): Remove the
9785         called_from_delete_device bogus arg, and hence, remove this
9786         function.  Just use other_visible_frames().
9787
9788         * window.c (Fnext_window):
9789         Prettify docstring.
9790         Since next_frame() is guaranteed to return a frame, remove check
9791         for nil inserted in previous patch.
9792         (Fprevious_window):
9793         Prettify docstring.
9794         Make code look more like Fnext_window.
9795         (window_loop):
9796         Respect the `console' arg when iterating through windows.
9797         Fixes bug: (get-buffer-window buffer t device) not respecting
9798         the `device' arg.
9799         This function needs more work, as others have pointed out.
9800
9801         * frame.h: Rename prev_frame to previous_frame.
9802         device_matches_console_spec no longer takes a `frame' arg.
9803
9804         * s/gnu.h:
9805         * s/linux.h:
9806         * s/hpux.h:
9807         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9808         From "Golubev I. N." <gin@mo.msk.ru>.
9809
9810         * make-src-depend: Fix typo.
9811
9812 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9813
9814         * window.c (Fnext_window):
9815         next_frame() might return nil, not a frame.
9816         Fixes this crash:
9817         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9818
9819         * frame.c (next_frame_internal):
9820         We've passed a frame if we've passed its device.
9821         Fixes this crash:
9822         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9823 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9824
9825 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9826
9827         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9828         Allow option to suppress accelerators in menu/dialog items.
9829         (populate_or_checksum_helper): Pass dialog title through above.
9830
9831 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9832
9833         * event-msw.c (mswindows_key_to_emacs_keysym):
9834         Add "pause" key, fix "menu" key.
9835
9836 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9837
9838         * eval.c (reinit_vars_of_eval):
9839         Increase max_lisp_eval_depth to 1000,
9840         required for thai-xtis.el to byte-compile under some circumstances.
9841
9842 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9843
9844         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9845         From Kenichi Handa.
9846
9847 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9848
9849         * make-src-depend: Make the generated Makefiles smaller.
9850
9851         * s/hpux.h (SETUP_SLAVE_PTY):
9852         Provide a %d in the format string for the errno argument.
9853
9854         * editfns.c (Ftemp_directory):
9855         Warning fix.
9856         Avoid buffer overrun on very long file name.
9857
9858         * input-method-xlib.c (XIM_init_device):
9859         6th parameter of XRegisterIMInstantiateCallback has different
9860         pointer types on different OSes, so simply cast to (void *).
9861
9862         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9863
9864         * sysdll.c (dll_open):
9865         shl_load will hang hard if passed a NULL filename.
9866         Simply return NULL for compatibility with dlopen.
9867         * sysdll.c: Conform to XEmacs coding standards.
9868
9869         * sysdep.c (get_pty_max_bytes):
9870         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9871
9872 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9873
9874         * tooltalk.c: Add #include <syssignal.h>
9875
9876 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9877
9878         * s/hpux.h: Don't use undefined function sigunblock().
9879
9880 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9881
9882         * config.h.in: Add HAVE_BALLOON_HELP.
9883         * emacs.c: Use HAVE_BALLOON_HELP.
9884         * Makefile.in.in (x_objs):
9885         Make Balloon Help conditional on finding shape.h.
9886
9887 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9888
9889         * syntax.c (regex_emacs_buffer_p): New variable.
9890         * syntax.h (regex_emacs_buffer_p): extern.
9891         * search.c (looking_at_1):
9892         (string_match_1):
9893         (fast_string_match):
9894         (search_buffer): Set regex_emacs_buffer_p.
9895         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9896         when before_dot, at_dot, after_dot.
9897
9898 2000-08-23  Andy Piper  <andy@xemacs.org>
9899
9900         * gui-x.c (popup_selection_callback): Only set action_occurred
9901         when we really have an image instance.
9902         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9903
9904 2000-08-23  Andy Piper  <andy@xemacs.org>
9905
9906         * gui-msw.c (mswindows_handle_gui_wm_command): set
9907         action_occurred.
9908         * gui-x.c (popup_selection_callback): ditto.
9909
9910         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9911         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9912         (struct Lisp_Image_Instance): add action_occurred flag.
9913
9914         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9915         (image_instance_changed): ditto.
9916         (reset_frame_subwindow_instance_cache): only unmap windows - do
9917         not remove them from the cache also.
9918
9919         * glyphs-widget.c (tab_control_update): better debug.
9920         (progress_gauge_update): ditto.
9921         (layout_update): ditto.
9922         (layout_instantiate): ditto.
9923         (tab_control_order_only_changed): cope with null pending items.
9924
9925         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9926         debug. Force selection of an item when an action occurred. Cope
9927         with null pending_items.
9928         (mswindows_progress_gauge_redisplay): better debug.
9929         * glyphs-x.c (x_tab_control_redisplay): ditto.
9930
9931         * redisplay.c (redisplay_frame): reset the frame cache if the
9932         frame is garbaged.
9933
9934         * window.c (Fset_window_configuration): potentially re-enable
9935         frame cache reset.
9936         (window_unmap_subwindows): need to finalize instances here since
9937         it is only used in mark_window_as_deleted.
9938
9939 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9940
9941         * nas.c (SndOpenDataForReading):
9942         nas.c (WaveOpenDataForReading):
9943         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9944         Somehow escaped from the 2000-08-14 patch.
9945
9946 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9947
9948         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9949         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9950
9951 2000-08-21  Andy Piper  <andy@xemacs.org>
9952
9953         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9954         window if it is not already displayed.
9955
9956         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9957         it is not already displayed.
9958
9959         * window.c (Fset_window_configuration): don't reset the frame
9960         cache.
9961
9962         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9963         instances from the frame cache if we are actually finalizing them.
9964         (reset_frame_subwindow_instance_cache): reset frame cache only
9965         after unmapping everything.
9966         (map_subwindow): set displayed flag after mapping.
9967
9968 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9969
9970         * data.c (indirect_function):
9971         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9972
9973         * eval.c (function_argcount):
9974         Use original function when signaling errors.
9975
9976 2000-08-18  Andy Piper  <andy@xemacs.org>
9977
9978         * frame.c (delete_frame_internal): use new
9979         free_frame_subwindow_instances name.
9980
9981         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9982         (add_tab_item): make return type correct.
9983         (mswindows_tab_control_instantiate): assert index of tab.
9984         (mswindows_tab_control_redisplay): Re-code to use
9985         gui_item_equal_sans_selected and gui_item_list_find_selected.
9986
9987         * glyphs-widget.c (tab_control_update): Correct comment.
9988
9989         * window.c (window_unmap_subwindows): use new
9990         unmap_subwindow_instance_cache_mapper.
9991         (window_unmap_subwindows_cache_mapper): deleted.
9992         (Fset_window_configuration): comparisons should now be with
9993         EQ. Preserve the subwindow instance cache across configuration
9994         changes.
9995         (allocate_window): ditto.
9996         (make_dummy_parent): ditto.
9997
9998         * glyphs.c (free_frame_subwindow_instances): rename from
9999         free_frame_subwindow_instance_cache. finalize all instances rather
10000         than just those in the display cache.
10001         (finalize_all_subwindow_instances): walk windows unmapping and
10002         finalizing subwindows.
10003         (unmap_subwindow_instance_cache_mapper): moved from
10004         window.c. Allow finalization as well as unmapping.
10005
10006         * gui.c (gui_item_list_find_selected): new function.
10007
10008         * gui.h (gui_item_list_find_selected): declare.
10009
10010         * glyphs-x.c (x_tab_control_redisplay): pick tab
10011         explicitly. Re-code to use gui_item_equal_sans_selected and
10012         gui_item_list_find_selected.
10013
10014         * glyphs-x.h: add lwlib-utils.h
10015
10016         * buffer.c (Frecord_buffer): undo previous change.
10017
10018 2000-08-09  Vin Shelton  <acs@xemacs.org>
10019
10020         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10021         possible.  Create temporary files more securely.  The patch was
10022         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10023         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10024         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10025         for details.
10026
10027 2000-08-07  Ben Wing  <ben@xemacs.org>
10028
10029         * getloadavg.c: remove duplicate (and windows-breaking)
10030         includes of fcntl.h and sys/file.h.
10031
10032         * nt.c: remove duplicate getloadavg() definition.
10033
10034         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10035         encodings.
10036
10037 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10038
10039         * eval.c (function_argcount): If function needs to be autoloaded
10040         actually use the loaded definition.
10041         GCPRO function.
10042
10043 2000-08-05  Ben Wing  <ben@xemacs.org>
10044
10045         * getloadavg.c: add prototype for getloadavg().  remove
10046         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10047         of the code).  remove duplicate header includes.
10048
10049         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10050
10051         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10052         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10053         useful load average.
10054
10055         * alloc.c (reinit_alloc_once_early): removed references to
10056         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10057         the lisp vars are the only things referencing the malloc_sbrk_*
10058         vars, and they were already if 0'd out.  these vars only exist
10059         in the older malloc.c, which is basically unused, and they're
10060         only for informational purposes.
10061
10062         * m\*.h: removed useless VIRT_ADDR_VARIES.
10063
10064         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10065
10066 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10067
10068         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10069         color if the image is a mono pixmap.
10070
10071 2000-07-30  Ben Wing  <ben@xemacs.org>
10072
10073         * Makefile.in.in (release):
10074         Remove stray @.
10075
10076         * buffer.c (directory_is_current_directory):
10077         * dired-msw.c (mswindows_get_files):
10078         * dired.c:
10079         * dired.c (Fdirectory_files):
10080         * dired.c (file_name_completion_stat):
10081         * dired.c (Ffile_attributes):
10082         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10083         preprocessor tricks, to avoid problems on some machines
10084         (e.g. SCO).
10085
10086         * callproc.c (egetenv): GC docs.
10087
10088         * console-msw.h:
10089         * console-msw.h (struct mswindows_dialog_id):
10090         * lrecord.h (lrecord_type):
10091         New object for use with MSW dialogs.
10092
10093         * console.h (struct console_methods):
10094         New enable/disable frame methods, for proper modal dialogs.
10095
10096         * device-msw.c (msprinter_default_printer): Fix to follow
10097         proper Mule conventions.
10098
10099         * device-msw.c:
10100         * device-msw.c (signal_open_printer_error):
10101         * device-msw.c (msprinter_init_device):
10102         * device-msw.c (ensure_not_printing):
10103         * device-msw.c (plist_get_margin):
10104         * device-msw.c (Fmsprinter_select_settings):
10105         * device-msw.c (finalize_devmode):
10106         * device-msw.c (Fmsprinter_settings_despecialize):
10107         * device-msw.c (signal_enum_priner_error):
10108         * extents.c (decode_extent):
10109         * extents.c (decode_map_extents_flags):
10110         * extents.c (decode_extent_at_flag):
10111         * extents.c (Fextent_at):
10112         * extents.c (Fextents_at):
10113         * extents.c (symbol_to_glyph_layout):
10114         [[[[2]]]] Use structured errors.
10115
10116         * dialog-msw.c:
10117         * dialog-msw.c (mswindows_is_dialog_msg):
10118         * dialog-msw.c (mark_mswindows_dialog_id):
10119         * dialog-msw.c (dialog_proc):
10120         * dialog-msw.c (handle_question_dialog_box):
10121         * dialog-msw.c (syms_of_dialog_mswindows):
10122         Define new object to clean up marking; use it as a dialog identifier.
10123         Call new delete-dialog-box-hook.
10124
10125         * dialog-x.c (dbox_selection_callback):
10126         * dialog-x.c (dbox_descriptor_to_widget_value):
10127         * dialog-x.c (x_make_dialog_box_internal):
10128         Call new delete-dialog-box-hook.
10129         Return an id.
10130
10131         * dialog.c:
10132         * dialog.c (syms_of_dialog):
10133         * dialog.c (vars_of_dialog):
10134         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10135
10136         * eval.c:
10137         * eval.c (signal_call_debugger):
10138         when noninteractive, output stack traces on the console instead
10139         of in a (never-seen) buffer.
10140
10141         * eval.c (signal_type_error):
10142         * eval.c (invalid_argument_2):
10143         * lisp.h:
10144         new funs for use w/structured errors.
10145
10146         * event-Xt.c:
10147         * event-Xt.c (x_to_emacs_keysym):
10148         * event-Xt.c (describe_event):
10149         * event-Xt.c (emacs_Xt_event_handler):
10150         * event-Xt.c (vars_of_event_Xt):
10151         * event-msw.c:
10152         * event-msw.c (mswindows_wnd_proc):
10153         * event-msw.c (vars_of_event_mswindows):
10154         rename {x,mswindows}-debug-events to debug-{}-events for
10155         consistency with other debug-foo variables.
10156
10157         * event-stream.c:
10158         document next-event more clearly.
10159
10160         * fileio.c (Ffile_name_directory):
10161         * fileio.c (Ffile_name_nondirectory):
10162         * fileio.c (Funhandled_file_name_directory):
10163         * fileio.c (file_name_as_directory):
10164         * fileio.c (Ffile_name_as_directory):
10165         * fileio.c (directory_file_name):
10166         * fileio.c (Fdirectory_file_name):
10167         * fileio.c (Fmake_temp_name):
10168         * fileio.c (Ffile_truename):
10169         * fileio.c (Fsubstitute_in_file_name):
10170         * fileio.c (expand_and_dir_to_file):
10171         * fileio.c (barf_or_query_if_file_exists):
10172         * fileio.c (check_executable):
10173         * fileio.c (Ffile_exists_p):
10174         * fileio.c (Ffile_writable_p):
10175         * fileio.c (Ffile_directory_p):
10176         * fileio.c (Ffile_regular_p):
10177         * fileio.c (Ffile_modes):
10178         * fileio.c (Ffile_newer_than_file_p):
10179         * fileio.c (Fverify_visited_file_modtime):
10180         * fileio.c (Fset_visited_file_modtime):
10181         * fileio.c (auto_save_1):
10182         (1). (2).
10183         fix up gcpro's.
10184
10185         * frame-msw.c:
10186         * frame-msw.c (mswindows_init_frame_1):
10187         * frame-msw.c (mswindows_enable_frame):
10188         * frame-msw.c (error_frame_unsizable):
10189         * frame-msw.c (msprinter_init_frame_1):
10190         * frame-msw.c (msprinter_init_frame_3):
10191         * frame-msw.c (console_type_create_frame_mswindows):
10192         (2).
10193         implement new enable/disable frame methods.
10194
10195         * frame-x.c:
10196         * frame-x.c (x_enable_frame):
10197         * frame-x.c (console_type_create_frame_x):
10198         implement new enable/disable frame methods.
10199
10200         * frame.c:
10201         * frame.c (Fdisable_frame):
10202         * frame.c (syms_of_frame):
10203         * frame.h (struct frame):
10204         implement new enable/disable frame methods/functions.
10205
10206         * general-slots.h:
10207         add initial-focus.
10208
10209         * glyphs-msw.c (mswindows_widget_instantiate):
10210         comment that initial-focus should be implemented.
10211
10212         * glyphs-widget.c:
10213         * glyphs-widget.c (check_valid_instantiator):
10214         * glyphs-widget.c (check_valid_orientation):
10215         * glyphs-widget.c (check_valid_tab_orientation):
10216         * glyphs-widget.c (check_valid_justification):
10217         * glyphs-widget.c (check_valid_border):
10218         * glyphs-widget.c (check_valid_callback):
10219         * glyphs-widget.c (check_valid_int_or_function):
10220         * glyphs-widget.c (check_valid_string_or_vector):
10221         * glyphs-widget.c (check_valid_item_list_1):
10222         * glyphs-widget.c (widget_validate):
10223         * glyphs-widget.c (combo_box_validate):
10224         * glyphs-widget.c (widget_instantiate):
10225         * glyphs-widget.c (syms_of_glyphs_widget):
10226         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10227         * glyphs-widget.c (image_instantiator_combo_box):
10228         * glyphs-widget.c (image_instantiator_scrollbar):
10229         * glyphs-widget.c (image_instantiator_tab_control):
10230         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10231         (2).
10232         support (unimplemented) keyword initial-focus.
10233         reindent long macros.
10234
10235         * glyphs-x.c (x_redisplay_widget):
10236         * glyphs-x.c (x_button_instantiate):
10237         * glyphs-x.c (x_button_redisplay):
10238         * glyphs-x.c (x_progress_gauge_instantiate):
10239         * glyphs-x.c (x_edit_field_instantiate):
10240         * glyphs-x.c (x_combo_box_instantiate):
10241         * glyphs-x.c (x_tab_control_instantiate):
10242         * glyphs-x.c (x_label_instantiate):
10243         * gui-x.c:
10244         * gui-x.c (button_item_to_widget_value):
10245         * gui-x.c (gui_items_to_widget_values_1):
10246         * gui-x.c (gui_item_children_to_widget_values):
10247         * gui-x.c (gui_items_to_widget_values):
10248         * gui-x.h:
10249         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10250         add new flag to gui-parsing routines to indicate whether
10251         accelerator specs should be supported.
10252
10253         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10254
10255         * glyphs.h (struct Lisp_Image_Instance):
10256         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10257         add initial-focus flag.
10258
10259         * gui.c:
10260         * gui.c (syms_of_gui):
10261         * gui.c (vars_of_gui):
10262         clean up menu-no-selection-hook.
10263
10264         * gui.h:
10265         support delete-dialog-box-hook.
10266
10267         * lread.c (Fload_internal):
10268         * lread.c (locate_file_in_directory_mapper):
10269         (1).
10270
10271         * lrecord.h:
10272         * lrecord.h (struct toolbar_button):
10273         * lrecord.h (syms_of_toolbar):
10274         document how to create a new object.
10275
10276         * menubar-msw.c (mswindows_char_is_accelerator):
10277         may be called on frames w/o menus.
10278
10279         * menubar.c (vars_of_menubar):
10280         clean up :filter docs.
10281
10282         * nt.c (readdir):
10283         * ntproc.c:
10284         (1).
10285
10286         * process-nt.c:
10287         * process-nt.c (validate_signal_number):
10288         * process-nt.c (signal_cannot_launch):
10289         * process-nt.c (nt_create_process):
10290         * process-nt.c (nt_send_process):
10291         * process-nt.c (nt_kill_child_process):
10292         * process-nt.c (nt_open_network_stream):
10293         * process-nt.c (syms_of_process_nt):
10294         (2).
10295         delete quote-handling.  call new lisp code that does it better.
10296
10297         * process-unix.c (connect_to_file_descriptor):
10298         * process-unix.c (allocate_pty):
10299         * process-unix.c (unix_send_process):
10300         * process-unix.c (unix_kill_child_process):
10301         * process-unix.c (unix_open_network_stream):
10302         * process-unix.c (unix_open_multicast_group):
10303         (1). (2).
10304
10305         * process.c:
10306         * process.c (Fstart_process_internal):
10307         (2).  need to canonicalize process path even if absolute.
10308
10309         * select-msw.c (symbol_to_ms_cf):
10310         * select-msw.c (ms_cf_to_symbol):
10311         * select-msw.c (cf_is_autofreed):
10312         * select-msw.c (mswindows_destroy_selection):
10313         * select.c:
10314         * select.c (syms_of_select):
10315         * select.h:
10316         support dibv5, fix bugs. (from Mike Alexander)
10317
10318         * select.c (Fget_selection_internal):
10319         * select.c (select_convert_out):
10320
10321         * sysdep.c:
10322         * sysdep.c (xemacs_stat):
10323         renamed.
10324
10325         * sysdep.c (mkdir):
10326         * sysdep.c (rmdir):
10327         but keep original stat() here because we provide encapsulation
10328         around these funs.
10329
10330         * sysfile.h:
10331         * sysfile.h (fstat):
10332         remove stat garbage.
10333
10334         * syswindows.h:
10335         fix X/MSW conflict.
10336         don't include tchar.h.  it's inappropriate because it makes
10337         compile-time distinctions when we want runtime distinctions.
10338         (we provide our own tchar replacements)
10339
10340         * toolbar.c:
10341         use default object printer for toolbar-button.
10342
10343         * unexcw.c:
10344         make sure we don't encapsulate.
10345
10346         * window.c (vars_of_window):
10347         emphasize that temp-buffer-show-hook is obsolete.
10348
10349 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10350
10351         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10352         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10353
10354         * events.c (Fevent_timestamp_lessp):
10355         Not 64-bit clean.  Use EMACS_INT, not int.
10356
10357 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10358
10359         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10360         unsigned int and changed the last enum to
10361         lrecord_type_last_built_in_type.
10362         (lrecord_implementations_table): changed prototype to know how
10363         long the array is supposed to be.
10364         (lrecord_type_count): new unsigned int to keep track of the
10365         current number of lisp lrecord types.
10366         (DEFINE_EXTERNAL_LRECORD):
10367         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10368         dynamic-modules to declare new lisp types. They are the same
10369         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10370         int for each new type, and increment lrecord_type_count by 1.
10371
10372         * alloc.c (lrecord_implementations_table): Changed to reference
10373         lrecord_type_last_built_in_type for the size of the array.
10374         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10375
10376 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10377
10378         * glyphs.h (check_valid_item_list): Renamed from
10379         check_valid_item_list_1.
10380
10381 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10382
10383         * select.c (Qselect_coerce): New.
10384         * select.c (Vselection_coercion_alist): New.
10385         * select.c (syms_of_select): Declare.
10386         * select.c (get-selection-internal): Use it.
10387         Use the new select-coerce functionality.
10388
10389         * select.c (select_coerce): New.
10390         * select.h (select_coerce): Declare.
10391         New function to coerce one type of data into another.
10392
10393 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10394
10395         * callproc.c (Fcall_process_internal):
10396         (Fcall_process_internal):
10397         * process-unix.c (unix_create_process):
10398         Save and restore the value of errno, so that error messages are accurate.
10399
10400 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10401
10402         * elhash.c (print_hash_table):
10403         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10404         Prettify docstrings and indentation.
10405
10406 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10407
10408         * window.c (Fwindow_pixel_edges): Subtract frame border and
10409         gutter size.
10410
10411 2000-07-31  Andy Piper  <andy@xemacs.org>
10412
10413         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10414         will acknowledge the change.
10415
10416         * glyphs.h: declare tab_control_order_only_changed.
10417
10418         * glyphs-x.c (x_tab_control_redisplay): use
10419         tab_control_order_only_changed.
10420
10421         * glyphs-widget.c (tab_control_order_only_changed): new function.
10422
10423         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10424         tab_control_order_only_changed.
10425
10426         * gui.c (gui_item_equal_sans_selected): new function.
10427         (gui_item_equal): use it.
10428
10429         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10430         :properties in favor of :items..
10431
10432         * glyphs-widget.c (check_valid_item_list): rename from
10433         check_valid_item_list_1.
10434         (check_valid_item_list_1): renamed.
10435         (combo_box_validate): deprecate :properties in favor of :items.
10436         (widget_instantiate): ditto.
10437         (tab_control_update): ditto.
10438         (image_instantiator_combo_box): ditto.
10439         (image_instantiator_tree_view): ditto.
10440         (image_instantiator_tab_control): ditto.
10441         (layout_post_instantiate): remove dead code.
10442
10443         * print.c (debug_print_no_newline): only write to debugger if in
10444         WIN32_NATIVE.
10445
10446         * elhash.c (Fmake_hash_table): update doc string.
10447
10448         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10449         messages whilst in GC. This at least stops XEmacs crashing but has
10450         the potential for wierd behaviour.
10451
10452 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10453
10454         * config.h.in:
10455         Make existence of s&m files optional.
10456
10457         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10458         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10459         * s/gnu.h: Remove HAVE_GETLOADAVG.
10460         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10461         * s/sol2.h: Remove HAVE_GETLOADAVG.
10462         * lisp.h: Remove getloadavg() declaration.
10463         * fns.c:
10464         Include <sys/loadavg.h> if available.
10465         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10466         * config.h.in:  Group together getloadavg()-related macros.
10467         Use only configure-time tests to detect getloadavg().
10468
10469 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10470
10471         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10472
10473 2000-07-25  Andy Piper  <andy@xemacs.org>
10474
10475         * syswindows.h: add tchar.h for native builds.
10476
10477         * frame.c (syms_of_frame): remove set-glyph-image.
10478
10479         * general-slots.h: add Qset_glyph_image.
10480
10481         * glyphs-widget.c (layout_update): add domain arg to
10482         set-glyph-image.
10483         (syms_of_glyphs_widget): remove set-glyph-image.
10484
10485 2000-07-23  Ben Wing  <ben@xemacs.org>
10486
10487         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10488         Vpopup_frame_list.
10489
10490 2000-07-22  Andy Piper  <andy@xemacs.org>
10491
10492         * symsinit.h: add syms_of_win32().
10493
10494         * gui-msw.c (syms_of_gui_mswindows): remove
10495         Fmswindows_shell_execute.
10496         (Fmswindows_shell_execute): moved to win32.c.
10497
10498         * emacs.c (main_1): add syms_of_win32 ().
10499
10500         * win32.c (init_potentially_nonexistent_functions): rewrite in
10501         compiler-friendly terms.
10502         (Fmswindows_shell_execute): move here from gui-msw.c.
10503         (syms_of_win32): new.
10504
10505         * device-msw.c (Fmswindows_printer_list): clean up args to
10506         EnumPrinters.
10507         Don't include tchar under cygwin or mingw.
10508         (msprinter_default_printer): make cygwin-friendly.
10509
10510 2000-07-21  Andy Piper  <andy@xemacs.org>
10511
10512         * glyphs-widget.c (image_instantiator_tree_view): use tab
10513         control's update function.
10514         (layout_property): new function. Retrieve items.
10515
10516         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10517         function. Re-populate the tree view from the pending items.
10518
10519         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10520         is designated the parent if the domain is an image instance. This
10521         is needed so that dirtiness can be cascade up the hierarchy and
10522         thus for layout children to be redisplayed correctly.
10523         (allocate_image_instance): rename glyph -> parent.
10524
10525         * redisplay.h: change redisplay_output_layout signature.
10526
10527         * redisplay-msw.c (mswindows_output_display_block): use domain
10528         arg.
10529
10530         * redisplay-x.c (x_output_display_block): use domain arg.
10531
10532 2000-07-10  Andy Piper  <andy@xemacs.org>
10533
10534         * window.c (Fset_window_configuration): add comment.
10535
10536         * redisplay-output.c (compare_runes):
10537         (redisplay_output_subwindow): redisplay rather than update subwindow.
10538         (redisplay_output_layout): ditto.
10539
10540         * redisplay-msw.c (mswindows_frame_output_end):
10541         (mswindows_frame_output_end): make defer window pos optional.
10542
10543         * lisp.h: add Flast.
10544
10545         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10546         normalize method. Change update method to be for changed
10547         instantiators. Add redisplay method. Change signature of layout
10548         method.
10549         (struct Lisp_Image_Instance): add instantiator.
10550         (IMAGE_INSTANCE_INSTANTIATOR): new.
10551         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10552         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10553         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10554
10555         * glyphs.c:
10556         (find_instantiator_differences): new function.
10557         (Fset_instantiator_property): new convenience function.
10558         (check_image_instance_structure): strictly check for vector
10559         instantiators.
10560         (normalize_image_instantiator): make non-static.
10561         (instantiate_image_instantiator): pass on dest_mask and use new
10562         signatures for image_instance_layout and friends.
10563         (mark_image_instance): mark the instantiator. Mark the subwindow
10564         face not the widget face.
10565         (image_instance_equal): add instantiator.
10566         (image_instance_hash): ditto.
10567         (allocate_image_instance): ditto.
10568         (Fset_image_instance_property): removed.
10569         (Fimage_instance_file_name): ditto.
10570         (Fcolorize_image_instance): ditto.
10571         (image_instance_layout): add offsets to be set.
10572         (update_image_instance): new function. update an image instance
10573         from its changed instantiator.
10574         (inherit_normalize): add dest_mask.
10575         (xbm_normalize): ditto.
10576         (xface_normalize): ditto.
10577         (xpm_normalize): ditto.
10578         (text_update): set_property -> update.
10579         (image_instantiate): use the glyph identity as a hash key, not the
10580         instantiator.
10581         (glyph_width): use new image_instance_layout signature.
10582         (glyph_ascent): ditto.
10583         (glyph_descent): ditto.
10584         (glyph_height): ditto.
10585         (glyph_query_geometry): ressurrect.
10586         (glyph_layout): ditto.
10587         (redisplay_subwindow): update -> redisplay.
10588         (syms_of_glyphs): add Fset_instantiator_property.
10589         (image_instantiator_format_create): set_property -> update.
10590
10591         * glyphs-x.c:
10592         (autodetect_normalize): add dest_maks to signature.
10593         (x_redisplay_subwindow): update -> redisplay.
10594         (x_redisplay_widget): ditto.
10595         (x_button_redisplay): ditto.
10596         (x_progress_gauge_redisplay): ditto.
10597         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10598         stacking order.
10599         (console_type_create_glyphs_x): update -> redisplay.
10600         (image_instantiator_format_create_glyphs_x): ditto.
10601
10602         * glyphs-widget.c:
10603         (check_valid_instantiator): disallow glyphs in the instantiator,
10604         they must now be vectors.
10605         (check_valid_instantiator_list): ditto.
10606         (glyph_instantiator_to_glyph): use internal symbol rather than
10607         intern.
10608         (widget_update): renamed from widget_set_property. Call cascaded
10609         update methods.
10610         (redisplay_widget): renamed from update_widget.
10611         (widget_layout): image_instance_layout now takes position as well
10612         as size.
10613         (widget_normalize): ditto.
10614         (widget_instantiate): ditto.
10615         (tab_control_query_geometry) ditto.:
10616         (tab_control_update): renamed from tab_control_set_property.
10617         (progress_gauge_update): set_property -> update.
10618         (layout_normalize): rewrite so that child instantiators are
10619         normalized also.
10620         (layout_update): new function. Create glyphs from the normalized
10621         children and cope with any other layout keywords. We do not
10622         instantiate children here that will be take care of by
10623         redisplay_output_layout.
10624         (layout_instantiate): call layout_update and not much else.
10625         (layout_post_instantiate): not sure whether this is needed
10626         anymore.
10627         (layout_query_geometry): query glyph geometry rather than
10628         image_instance geometry.
10629         (layout_layout): set offsets from pass in parameters. Use glyph
10630         geometry and layout functions rather than image instance ones.
10631         (native_layout_layout): ditto.
10632         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10633         (image_instantiator_widget): set_property -> update.
10634         (image_instantiator_buttons): ditto.
10635         (image_instantiator_progress_guage): ditto.
10636         (image_instantiator_tab_control): ditto.
10637         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10638         (image_instantiator_layout): add update method.
10639
10640         * glyphs-msw.c (bmp_normalize):
10641         (mswindows_resource_normalize): add dest_mask so that it can be
10642         proprogated by layout_normalize.
10643         (begin_defer_window_pos): make optional because it may not be the
10644         right thing to do and it introduces differences with X.
10645         (mswindows_unmap_subwindow): ditto.
10646         (mswindows_map_subwindow): ditto.
10647         (mswindows_redisplay_subwindow): renamed from
10648         mswindows_update_subwindow.
10649         (mswindows_redisplay_widget): ditto.
10650         (mswindows_button_redisplay): renamed from
10651         mswindows_button_update. Update is now what the instantiation
10652         function does for a changed instantiator.
10653         (mswindows_progress_gauge_instantiate): set the progress value
10654         here if appropriate.
10655         (mswindows_tab_control_redisplay): cope with re-ordering of the
10656         members of the tab widget by simply selecting the new top
10657         widget. This makes things appear ok if you click on a tab.
10658         (mswindows_combo_box_instantiate): image_instance_layout now takes
10659         position as well as size.
10660         (mswindows_progress_gauge_redisplay): renamed from
10661         mswindows_progress_gauge_update.
10662         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10663         (image_instantiator_format_create_glyphs_mswindows): ditto.
10664
10665         * glyphs-eimage.c (jpeg_normalize):
10666         (gif_normalize):
10667         (png_normalize):
10668         (tiff_normalize): add dest_mask so that it can be proprogated by
10669         layout_normalize.
10670
10671         * elhash.c:
10672         (print_hash_table):
10673         (hash_table_weakness_validate):
10674         (decode_hash_table_weakness):
10675         (Fhash_table_weakness):
10676         (Fhash_table_type):
10677         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10678
10679         * console.h (struct console_methods): move update_* to
10680         redisplay_*.
10681
10682 2000-07-20  Ben Wing  <ben@xemacs.org>
10683
10684         * *.[ch] (XSETOBJ): remove unused middle argument.
10685         lisp-disunion.h: correct wrap_object() to one argument.
10686
10687 2000-07-15  Ben Wing  <ben@xemacs.org>
10688
10689         * s/cygwin32.h:
10690         * s/cygwin32.h (CYGWIN_CONV_PATH):
10691         Add missing logb prototype for v1.1.
10692         Use post-b20 names and alias to pre-b20 names when pre-b20.
10693
10694         * s/windowsnt.h: [5].
10695
10696 2000-07-15  Ben Wing  <ben@xemacs.org>
10697
10698         * Makefile.in.in (x_objs):
10699         * Makefile.in.in (sheap_objs):
10700         * Makefile.in.in (objs):
10701         added win32.o, cosmetic cleanups.
10702
10703         * alloc.c (Fmake_byte_code):
10704         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10705         etc. macros which declare their own args now.
10706
10707         * alloc.c (syms_of_alloc):
10708         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10709
10710         * buffer.c:
10711         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10712
10713         * buffer.c (Fget_file_buffer):
10714         Fixed GCPRO problem.
10715
10716         * buffer.c (get_truename_buffer):
10717         Fixed comment about GC checking.
10718
10719         * buffer.c (syms_of_buffer):
10720         Undeclared those dedicated frame funs.
10721         [2].
10722
10723         * buffer.h:
10724         Define convenience macros for internal/external conversions.
10725         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10726         and Qenvironment_variable_encoding for cleaner code.
10727
10728         * bufslots.h:
10729         Remove dedicated-frame; in lisp.
10730
10731         * bytecode.c (funcall_compiled_function):
10732         [1].
10733
10734         * bytecode.c (syms_of_bytecode):
10735         [2].
10736
10737         * console-msw.c:
10738         * console-msw.c (mswindows_show_console): Rewrote.
10739
10740         * console-msw.c (Fmswindows_debugging_output): New.
10741         Sends to OutputDebugString (special MSWin debugger interface).
10742
10743         * console-msw.c (Fmswindows_message_box):
10744         Fixed stupid bugs so it works when called from kill-emacs.
10745
10746         * console-msw.c (syms_of_console_mswindows):
10747         Declare Fmswindows_debugging_output.
10748
10749         * console-msw.h:
10750         New MSWin prototypes.
10751
10752         * console-msw.h (struct mswindows_frame):
10753         New entry last-click-mods for improved button-modifier support.
10754
10755         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10756         New struct entry `popup' with corresponding accessor.
10757
10758         * console-x.c:
10759         * console-x.c (split_up_display_spec):
10760         * console-x.c (get_display_arg_connection):
10761         * console-x.c (x_semi_canonicalize_console_connection):
10762         * console-x.c (x_canonicalize_device_connection):
10763         [[[6]]]: Change char to more specific type.
10764         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10765
10766         * console-x.c (x_semi_canonicalize_console_connection):
10767         * console-x.c (x_canonicalize_device_connection):
10768         [[[9]]]: Fix up error signalling to use new structured error system.
10769
10770         * console-x.h:
10771         [[[4]]]: Define codesys aliases:
10772         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10773         Qx_color_name_encoding, Qx_display_name_encoding.
10774
10775         * console.h (struct console_methods):
10776         New method make_dialog_box_internal supersedes older
10777         popup_dialog_box method.
10778
10779         * data.c:
10780         Define many new errors, part of new structured errors.
10781
10782         * data.c (init_errors_once_early):
10783         * data.c (syms_of_data):
10784         [2].
10785
10786         * device-msw.c (mswindows_init_device):
10787         [[[5]]]: Cleanup to support NT 3.51.
10788
10789         * device-msw.c (decode_devmode): Cleanup.
10790
10791         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10792         * device-msw.c (mswindows_handle_print_dialog_box):
10793         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10794         * device-msw.c (syms_of_device_mswindows):
10795         Delete the dialog box primitives recently introduced by Kirill and
10796         instead interface to general dialog box interface.
10797
10798         * device-x.c:
10799         * device-x.c (compute_x_app_name):
10800         * device-x.c (x_init_device):
10801         * device-x.c (Fx_valid_keysym_name_p):
10802         * device-x.c (Fx_set_font_path):
10803         [6].
10804         [7].
10805
10806         * device.h (wrap_device): New.
10807         First of its kind; meant to replace XSETDEVICE.
10808
10809         * dialog-msw.c: Many file-dialog symbols.
10810
10811         * dialog-msw.c (mswindows_register_popup_frame): New.
10812         * dialog-msw.c (mswindows_is_dialog_msg): New.
10813         For supporting kbd traversal in dialog boxes.
10814
10815         * dialog-msw.c (dialog_proc):
10816         Support hitting ESC in dialogs.
10817
10818         * dialog-msw.c (struct):
10819         Common dialog box errors.
10820
10821         * dialog-msw.c (handle_file_dialog_box): New.
10822         Add file dialog code.
10823
10824         * dialog-msw.c (handle_question_dialog_box):
10825         Redo existing code to support new question dialog syntax.
10826
10827         * dialog-msw.c (console_type_create_dialog_mswindows):
10828         We support new dialog console method.
10829
10830         * dialog-msw.c (syms_of_dialog_mswindows):
10831         * dialog-msw.c (vars_of_dialog_mswindows):
10832         New file dialog symbols, vars.
10833
10834         * dialog-x.c:
10835         * dialog-x.c (maybe_run_dbox_text_callback):
10836         * dialog-x.c (dbox_descriptor_to_widget_value):
10837         * dialog-x.c (x_make_dialog_box_internal):
10838         * dialog-x.c (console_type_create_dialog_x):
10839         Mule-ize entire file.
10840         Redo to support question dialog syntax.
10841         [6].
10842
10843         * dialog.c:
10844         * dialog.c (Fmake_dialog_box_internal):
10845         * dialog.c (syms_of_dialog):
10846         Kill old popup-dialog-box, replace with new primitive.
10847         Just call device method or signal error.
10848
10849         * eldap.c (Fldap_open):
10850         * eldap.c (Fldap_search_basic):
10851         * eldap.c (Fldap_add):
10852         * eldap.c (Fldap_modify):
10853         [1].
10854         [7].
10855
10856         * emacs.c:
10857         * emacs.c (make_arg_list_1):
10858         * emacs.c (make_arg_list):
10859         Mule-ize call to dll_init().
10860         [6].
10861         [8].
10862
10863         * emacs.c (make_argc_argv):
10864         * emacs.c (free_argc_argv):
10865         * emacs.c (init_cmdargs):
10866         * emacs.c (main_1):
10867         * emacs.c (Fkill_emacs):
10868         * emacs.c (Fdump_emacs):
10869         Update comments about what can be used in syms_* etc.
10870         Call init_win32() when necessary.
10871         Fix up MS Win dialog box in kill-buffer to actually work right.
10872         [7].
10873
10874         * eval.c:
10875         * eval.c (For):
10876         * eval.c (Fand):
10877         * eval.c (Fprogn):
10878         * eval.c (Fprog1):
10879         * eval.c (Fprog2):
10880         * eval.c (FletX):
10881         * eval.c (Flet):
10882         * eval.c (condition_case_3):
10883         * eval.c (Feval):
10884         * eval.c (function_argcount):
10885         * eval.c (funcall_lambda):
10886         [1].
10887
10888         * eval.c (type_error): New.
10889         * eval.c (maybe_type_error): New.
10890         * eval.c (continuable_type_error): New.
10891         * eval.c (maybe_continuable_type_error): New.
10892         * eval.c (type_error_with_frob): New.
10893         * eval.c (maybe_type_error_with_frob): New.
10894         * eval.c (continuable_type_error_with_frob): New.
10895         * eval.c (maybe_continuable_type_error_with_frob): New.
10896         New functions for use with structured errors.
10897
10898         * event-Xt.c:
10899         * event-Xt.c (x_event_to_emacs_event):
10900         Buttons are now modifiers too.
10901
10902         * event-Xt.c (emacs_Xt_current_event_timestamp):
10903         Implement new event method.
10904         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10905
10906         * event-msw.c:
10907         * event-msw.c (ntpipe_shove_writer): [5].
10908         * event-msw.c (mswindows_enqueue_mouse_button_event):
10909         * event-msw.c (mswindows_drain_windows_queue):
10910         * event-msw.c (mswindows_wnd_proc): [7].
10911         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10912         * event-msw.c (mswindows_modifier_state):
10913         Throughout: support new button modifiers.
10914
10915         * event-msw.c (emacs_mswindows_current_event_timestamp):
10916         Implement new event method.
10917         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10918
10919         * event-stream.c:
10920         * event-stream.c (event_stream_current_event_timestamp): New.
10921         * event-stream.c (maybe_kbd_translate): New functionality.
10922         * event-stream.c (vars_of_event_stream):
10923         Document new kbd-translate-table functionality.
10924
10925         * event-stream.c (Fcurrent_event_timestamp): New.
10926         New primitive for use in fabricated events.
10927         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10928
10929         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10930
10931         * events.c:
10932         * events.c (Fmake_event):
10933         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10934         [1].
10935         [9].
10936
10937         * events.c (format_event_object): fix gcc warnings.
10938
10939         * events.c (Fevent_timestamp): Document new primitives.
10940
10941         * events.c (TIMESTAMP_HALFSPACE): New.
10942
10943         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10944         comparing timestamps correctly (half-space algorithm).
10945
10946         * events.c (Fevent_modifier_bits): Doc fix.
10947
10948         * events.c (Fevent_modifiers): Major doc addition.
10949         * events.c (event_x_y_pixel_internal): Typo fix.
10950         * events.c (syms_of_events): Declare new primitives.
10951
10952         * events.h:
10953         Update long comment for button modifiers, timestamps.
10954
10955         * events.h (struct event_stream):
10956         New current_event_timestamp method.
10957
10958         * extents.c:
10959         * extents.c (extent_in_region_p):
10960         * extents.c (decode_extent):
10961         * extents.c (Fset_extent_parent):
10962         * extents.c (decode_map_extents_flags):
10963         Fix gcc warnings.
10964         [9].
10965
10966         * extents.c (struct extent_at_arg):
10967         * extents.c (decode_extent_at_flag):
10968         * extents.c (extent_at_mapper):
10969         * extents.c (extent_at_bytind):
10970         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10971         * extents.c (Fextents_at): New primitive. [9].
10972         * extents.c (symbol_to_glyph_layout): [9].
10973         Support new primitive `extents-at'.
10974
10975
10976         * extents.c (get_text_property_bytind):
10977         extent_at_bytind has another arg.
10978         [9].
10979
10980         * extents.c (syms_of_extents): New primitive.
10981
10982         * file-coding.c (Fmake_coding_system): [1].
10983         * file-coding.c (subsidiary_coding_system): fix gcc warning
10984         * file-coding.c (syms_of_file_coding): [2].
10985
10986         * fileio.c (Fexpand_file_name):
10987         * fileio.c (Fsysnetunam):
10988         * fileio.c (Ffile_exists_p):
10989         * fileio.c (Ffile_executable_p):
10990         * fileio.c (Fverify_visited_file_modtime):
10991         Clean up GCPROing.
10992
10993         * fileio.c (syms_of_fileio): [2].
10994
10995         * filelock.c (lock_file_1):
10996         * filelock.c (current_lock_owner):
10997         * filelock.c (lock_if_free):
10998         * filelock.c (lock_file):
10999         * filelock.c (unlock_file):
11000         Clean up GCPROing.
11001
11002         * fns.c (concat): Fix gcc warning.
11003
11004         * fns.c (Fmember):
11005         * fns.c (Fold_member):
11006         * fns.c (Fmemq):
11007         * fns.c (Fold_memq):
11008         * fns.c (memq_no_quit):
11009         * fns.c (Fassoc):
11010         * fns.c (Fold_assoc):
11011         * fns.c (Fassq):
11012         * fns.c (Fold_assq):
11013         * fns.c (assq_no_quit):
11014         * fns.c (Frassoc):
11015         * fns.c (Fold_rassoc):
11016         * fns.c (Frassq):
11017         * fns.c (Fold_rassq):
11018         * fns.c (rassq_no_quit):
11019         * fns.c (Fdelete):
11020         * fns.c (Fold_delete):
11021         * fns.c (Fdelq):
11022         * fns.c (Fold_delq):
11023         * fns.c (delq_no_quit):
11024         * fns.c (Fremassoc):
11025         * fns.c (Fremassq):
11026         * fns.c (remassq_no_quit):
11027         * fns.c (Fremrassoc):
11028         * fns.c (Fremrassq):
11029         * fns.c (remrassq_no_quit):
11030         * fns.c (Freverse):
11031         * fns.c (mapcar1):
11032         [1].
11033
11034         * frame-msw.c (mswindows_init_frame_1):
11035         * frame-msw.c (mswindows_delete_frame):
11036         Register popups with dialog code so keyboard traversing works.
11037
11038         * frame-tty.c (tty_raise_frame_no_select): [1].
11039
11040         * frame-x.c:
11041         * frame-x.c (x_set_frame_text_value):
11042         * frame-x.c (x_set_frame_properties):
11043         * frame-x.c (x_create_widgets):
11044         [7].
11045
11046         * frame.c:
11047         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11048
11049         * frame.h (wrap_frame): New.
11050         Macro like wrap_device.
11051
11052         * general.c:
11053         * general.c (SYMBOL):
11054         * general.c (syms_of_general):
11055         Major reorg.  This is now just a wrapper and symbols themselves
11056         are listed in general-slots.h.
11057
11058         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11059         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11060
11061         * glyphs-msw.c (mswindows_native_layout_instantiate):
11062         Add DS_CONTROL so keyboard traversal will work.
11063
11064         * glyphs-widget.c:
11065         * glyphs-widget.c (syms_of_glyphs_widget):
11066         Move some symbols to general-slots.h.
11067
11068         * glyphs-x.c:
11069         * glyphs-x.c (xbm_instantiate_1):
11070         * glyphs-x.c (x_xbm_instantiate):
11071         * glyphs-x.c (x_xface_instantiate):
11072         * glyphs-x.c (autodetect_instantiate):
11073         * glyphs-x.c (cursor_font_instantiate):
11074         * glyphs-x.c (x_update_widget):
11075         * glyphs-x.c (x_widget_instantiate):
11076         * glyphs.c (bitmap_to_lisp_data):
11077         * glyphs.c (pixmap_to_lisp_data):
11078         [7].
11079
11080         * glyphs.c (syms_of_glyphs):
11081         [2].
11082
11083         * gui-x.c:
11084         * gui-x.c (print_widget_value):
11085         * gui-x.c (menu_separator_style_and_to_external):
11086         * gui-x.c (add_accel_and_to_external):
11087         * gui-x.c (button_item_to_widget_value):
11088         * gui-x.c (gui_items_to_widget_values_1):
11089         * gui-x.c (gui_items_to_widget_values):
11090         * gui-x.c (syms_of_gui_x):
11091         * gui-x.c (vars_of_gui_x):
11092         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11093         [9].
11094
11095         * gui-x.h:
11096         Muleize, prototype changes matching gui-x.c.
11097
11098         * gui.c:
11099         * gui.c (separator_string_p):
11100         * gui.c (gui_item_add_keyval_pair):
11101         * gui.c (make_gui_item_from_keywords_internal):
11102         * gui.c (signal_too_long_error):
11103         * gui.c (parse_gui_item_tree_item):
11104         * gui.c (syms_of_gui):
11105         * gui.c (vars_of_gui):
11106         * gui.h:
11107         menu-no-selection-hook moved here (used by MSWin).
11108         Move some symbols to general-slots.h.
11109         [6].
11110         [9].
11111
11112         * insdel.c (get_buffer_pos_char):
11113         * insdel.c (get_buffer_range_char):
11114         Add GC comments.
11115
11116         * keymap.c (keymap_lookup_directly):
11117         * keymap.c (keymap_store):
11118         * keymap.c (ensure_meta_prefix_char_keymapp):
11119         * keymap.c (describe_map):
11120         * keymap.h:
11121         Support new button modifiers.
11122
11123         * lisp-disunion.h (wrap_object):
11124         * lisp-disunion.h (XSETOBJ):
11125         Rename make_obj to wrap_object.
11126
11127         * lisp-union.h:
11128         * lisp-union.h (make_int):
11129         * lisp-union.h (make_char):
11130         Support wrap_object.
11131
11132         * lisp.h:
11133         * lisp.h (LIST_LOOP):
11134         * lisp.h (EXTERNAL_LIST_LOOP):
11135         * lisp.h (LIST_LOOP_2):
11136         * lisp.h (EXTERNAL_LIST_LOOP_1):
11137         * lisp.h (EXTERNAL_LIST_LOOP_2):
11138         * lisp.h (EXTERNAL_LIST_LOOP_3):
11139         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11140         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11141         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11142         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11143         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11144         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11145         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11146         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11147         * lisp.h (struct Lisp_Symbol):
11148         * lisp.h (maybe_continuable_error_with_frob):
11149         Fix up section comments.
11150         Add new types for char to indicate usage.
11151         Delete symbols auto-generated from general-slots.h.
11152         Add prototypes for structured error functions.
11153         Add long comments describing looping macros and change interface
11154         so that lvalues are automatically declared.
11155         Add NO_DECLARE macro in case callers want to declare lvalues
11156         themselves.
11157
11158         * lread.c (read_syntax_error):
11159         * lread.c (continuable_read_syntax_error):
11160         * lread.c (read_structure):
11161         * lread.c (sequence_reader):
11162         * lread.c (read_list_conser):
11163         * lread.c (read_compiled_function):
11164         Rename syntax_error and continuable_syntax_error to avoid clash
11165         with same-named structured error functions.
11166
11167         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11168         * menubar-msw.c (populate_menu_add_item):
11169         * menubar-msw.c (populate_or_checksum_helper):
11170         [5].
11171         [9].
11172
11173         * menubar-x.c:
11174         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11175         Mule-ize whole file.
11176
11177         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11178
11179         * mule-charset.c (Fmake_charset):
11180         * mule-wnnfns.c (Fwnn_set_param):
11181         [1].
11182
11183         * ntproc.c (create_child):
11184         * ntproc.c (Fwin32_set_current_locale):
11185         Add comments portending doom.
11186
11187         * objects-msw.c:
11188         * objects-msw.c (old_font_enum_callback_2):
11189         * objects-msw.c (font_enum_callback_1):
11190         * objects-msw.c (mswindows_enumerate_fonts):
11191         [5].
11192
11193         * objects-x.c:
11194         * objects-x.c (allocate_nearest_color):
11195         * objects-x.c (x_parse_nearest_color):
11196         * objects-x.c (x_initialize_color_instance):
11197         * objects-x.c (x_print_color_instance):
11198         * objects-x.c (x_finalize_color_instance):
11199         * objects-x.c (x_valid_color_name_p):
11200         * objects-x.c (x_initialize_font_instance):
11201         * objects-x.c (x_print_font_instance):
11202         * objects-x.c (valid_x_font_name_p):
11203         * objects-x.c (truename_via_FONT_prop):
11204         * objects-x.c (truename_via_random_props):
11205         * objects-x.c (truename_via_XListFonts):
11206         * objects-x.c (x_font_truename):
11207         * objects-x.c (x_font_instance_truename):
11208         * objects-x.c (x_font_instance_properties):
11209         * objects-x.c (x_list_fonts):
11210         * objects-x.c (x_find_charset_font):
11211         Mule-ize entire file.
11212         [7].
11213
11214         * objects-x.h:
11215         Mule-verify.
11216
11217         * print.c:
11218         * print.c (std_handle_out_external):
11219         * print.c (debug_print_no_newline):
11220         * print.c (syms_of_print):
11221         Output to all debugger kinds in debug-print.
11222         Fix console-output code under MSWin to actually work.
11223
11224         * process-nt.c (send_signal):
11225         * process-nt.c (nt_create_process):
11226         Use newer Unicode macros.
11227
11228         * process-unix.c (unix_create_process):
11229         * process-unix.c (unix_canonicalize_host_name):
11230         * process-unix.c (unix_open_network_stream):
11231         [7].
11232
11233         * scrollbar-x.c:
11234         Mule-verify.
11235
11236         * search.c (syms_of_search):
11237         [2].
11238
11239         * select-msw.c (mswindows_destroy_selection):
11240         Use LIST_LOOP_2.
11241
11242         * select-x.c (symbol_to_x_atom):
11243         [7].
11244
11245         * select.c (syms_of_select):
11246         [2].
11247
11248         * sound.c (Fplay_sound_file):
11249         [7].
11250
11251         * specifier.c:
11252         * specifier.c (decode_specifier_type):
11253         * specifier.c (Fvalid_specifier_locale_type_p):
11254         * specifier.c (check_valid_locale_or_locale_type):
11255         * specifier.c (decode_locale):
11256         * specifier.c (decode_locale_type):
11257         * specifier.c (decode_locale_list):
11258         * specifier.c (check_valid_domain):
11259         * specifier.c (decode_specifier_tag_set):
11260         * specifier.c (Fcanonicalize_tag_set):
11261         * specifier.c (Fdefine_specifier_tag):
11262         * specifier.c (Fspecifier_tag_predicate):
11263         * specifier.c (check_valid_inst_list):
11264         * specifier.c (check_valid_spec_list):
11265         * specifier.c (decode_how_to_add_specification):
11266         * specifier.c (check_modifiable_specifier):
11267         * specifier.c (specifier_add_spec):
11268         * specifier.c (boolean_validate):
11269         * specifier.c (display_table_validate):
11270         [9].
11271
11272         * specifier.c (syms_of_specifier):
11273         Move some symbols to general-slots.h.
11274         [2].
11275
11276         * symbols.c:
11277         * symbols.c (Fmapatoms):
11278         * symbols.c (Fapropos_internal):
11279         Add GCPROs.
11280
11281         * symbols.c (set_default_buffer_slot_variable):
11282         * symbols.c (set_default_console_slot_variable):
11283         [1].
11284
11285         * symbols.c (defsymbol_massage_name_1):
11286         * symbols.c (defkeyword_massage_name):
11287         * symbols.c (deferror_1):
11288         * symbols.c (deferror):
11289         * symbols.c (deferror_massage_name_and_message):
11290         * symeval.h:
11291         * symeval.h (DEFSYMBOL):
11292         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11293
11294         * symbols.c (syms_of_symbols):
11295         [2].
11296
11297         * symsinit.h:
11298         * symsinit.h (init_win32): New.
11299         Also new is syms_of_dialog_mswindows.
11300
11301         * syswindows.h:
11302         Add new Unicode macros, missing Cygwin wide-char functions,
11303         convenience conversion macros for Qmswindows_tstr, macros for
11304         encapsulating required MSWin <-> Cygwin filename conversions,
11305         prototype for dynamically-extracted (not in NT 3.51) functions.
11306
11307         * toolbar-x.c:
11308         Mule-verify.
11309
11310         * tooltalk.c (Fadd_tooltalk_message_arg):
11311         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11312         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11313         [7].
11314
11315         * tooltalk.c (syms_of_tooltalk):
11316         [2].
11317
11318         * unexnt.c:
11319         * unexnt.c (unexec):
11320         Fix up headers, declaration of unexec() to be more standard.
11321
11322 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11323
11324         * offix.h: Revert change to guard macros - they're used in offix.c!
11325
11326 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11327
11328         * lisp.h: Defsubred Fdelete.
11329
11330         * console-msw.h:  (msprinter_default_printer): Added.
11331
11332         * console-msw.c (msprinter_canonicalize_console_connection):
11333         (msprinter_canonicalize_device_connection): Added.
11334
11335         * device-msw.c (msprinter_default_printer):
11336         (Fmswingows_get_default_printer):
11337         (signal_enum_priner_error):
11338         (Fmswingows_printer_list): Added.
11339
11340 2000-07-19  Martin Buchholz <martin@xemacs.org>
11341
11342         * XEmacs 21.2.35 is released.
11343
11344 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11345
11346         * select-x.c (x_handle_selection_request):
11347         Text selected in xemacs and pasted into xterm failed to appear.
11348         Spelling fixes and cosmetic changes.
11349
11350 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11351
11352         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11353         XEmacs frame (fix for doubling chars in dialog boxes).
11354
11355 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11356
11357         * select.c (select_convert_in, select_convert_out):
11358         Don't call intern() every time.
11359
11360         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11361         * select.c (vars_of_select): Initialise them.
11362
11363 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11364
11365         * select.c (selection-coercible-types): New.
11366
11367         * select.c (own-selection-internal):
11368         * select.c (get-selection-internal):
11369         MULE bug fix - these should default to COMPOUND_TEXT and not
11370         STRING for MULE. I think.
11371
11372         * select.c (select_convert_out): Use selection-coercible-types
11373         to find types that we can attempt to perform coercions on.
11374
11375 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11376
11377         * mule-wnnfns.c:
11378         * mule-canna.c:
11379         Add coding: cookie to identify encoding.
11380
11381         * mule-canna.c (CANNA_mode_keys): make static.
11382         Use proper prototypes, even for functions of no arguments.
11383         Remove external prototype for Fding().
11384
11385         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11386
11387         * select.c (syms_of_select): Add missing DEFSUBR.
11388
11389 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11390
11391         * select.c (get_selection_internal, own_selection_internal):
11392         Make the type default to STRING, rather than placing a nil type
11393         into Vselection_alist.
11394
11395 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11396
11397         * gpmevent.c (tty_selection_exists_p):
11398         * gpmevent.c (tty_own_selection):
11399         Updated parameter lists.
11400
11401 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11402
11403         * select.h (selection-alist): Removed declaration.
11404
11405         * select.h (get_local_selection):
11406         * select.c (get_local_selection):
11407         Made static.
11408
11409         * select.h (convert_selection): Removed declaration.
11410         * select.c (convert_selection): Removed.
11411         This function belongs in Lisp.
11412
11413         * select.h (select_convert_in): Declare.
11414         * select.h (select_convert_out): Declare.
11415         * select.c (select_convert_in): New.
11416         * select.c (select_convert_out): New.
11417         New conversion functions for other files to call.
11418
11419         * select.h (select_notify_buffer_kill): Declare.
11420         * select.c (select_notify_buffer_kill): New.
11421         New functions that get called from kill-buffer.
11422
11423         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11424         X-specific lisp code.
11425
11426         * select.h: Declare some of the lisp-visible functions for
11427         external use.
11428
11429         * select.c (clean_local_selection_data): Removed. This was
11430         a disgusting function, and previously should have been in
11431         select-x.c in any case. The functionality is now provided
11432         in select-convert-from-integer (select.el).
11433
11434         * select.c (available-selection-types): Fixed stupidity where
11435         INTEGER and ATOM got added twice. Also add STRING when we see an
11436         extent.
11437
11438         * select.c (get-selection-internal): Removed symbol stripping. No
11439         longer causes conversion when data comes from the internal cache.
11440
11441         * select.c (syms_of_select): Added new functions.
11442
11443         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11444         error checking - previously this called abort!
11445
11446         * select-x.c (x_own_selection): Changed comment.
11447
11448         * select-x.c (x_handle_selection_request): Use select_convert_out.
11449         Don't mess with selection-alist; it's an internal variable of select.c.
11450
11451         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11452
11453         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11454         rather than messing with selection-alist.
11455
11456         * select-msw.c (mswindows_get_foreign_selection):
11457         Use TO_INTERNAL_FORMAT rather than hacking.
11458
11459 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11460
11461         * process-unix.c (unix_open_multicast_group):
11462         (unix_open_multicast_group): Remove useless casts.
11463
11464 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11465
11466         * sound.c (Fplay_sound): Fix `unused variable' warning.
11467
11468         * emacs.c (main): Use correct type for _environ on SCO5.
11469
11470 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11471
11472         * console.h (own_selection_method):
11473         * console.h (selection_exists_p_method):
11474         * console.h (available_selection_types_method): New.
11475         * console.h (register_selection_data_type_method): New.
11476         * console.h (selection_data_type_name): New.
11477
11478         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11479         function & alist to track GlobalAlloc()'d handles that need
11480         releasing when the clipboard data gets replaced or emptied.
11481
11482         * event-msw.c (mswindows_wnd_proc): Call it.
11483
11484         * lisp.h, general.c (Qappend): New symbol representing a
11485         `how-to-add' mode.
11486
11487         * select.c (own-selection-internal):
11488         * select.c (selection-exists-p):
11489         * select.c (available-selection-types): New.
11490         * select.c (register-selection-data-type): New.
11491         * select.c (selection-data-type-name): New.  New functions to deal
11492         with device-specific selection data formats.
11493         * select.c (selection-converter-out-alist): Renamed.
11494         * select.c (selection-converter-in-alist): New.
11495         * select.c (selection-appender-alist): New.  Added new alists.
11496         * select.c (syms_of_select, vars_of_select): Added new symbols &
11497         variables.
11498         * select.c (get_local_selection): Split.
11499         * select.c: Removed spurious type checking - selections may now be
11500         of any type, not just strings.
11501         * select.c (own-selection-internal):
11502
11503         * select.h, select.c (convert_selection): New. Created
11504         convert_selection() function based on get_local_selection().
11505         * select.h, select.c (QCF_*): New symbols representing mswindows
11506         clipboard formats.
11507         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11508         symbols representing `how-to-add' modes.
11509
11510         * select-msw.c (x_sym_p): New.
11511         * select-msw.c (symbol_to_ms_cf): New.
11512         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11513         symbols & clipboard formats. Can also handle string names.
11514         * select-msw.c (mswindows_own_selection):
11515         * select-msw.c (mswindows_selection_exists_p):
11516         Added `data-type' parameter. Use it.
11517         * select-msw.c (mswindows_available_selection_types): New.
11518         * select-msw.c (mswindows_register_selection_data_type): New.
11519         * select-msw.c (mswindows_selection_data_type_name): New.
11520         * select-msw.c (mswindows_own_selection):
11521         * select-msw.c (mswindows_get_foreign_selection):
11522         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11523         * select-msw.c (console_create_select_mswindows): Added new methods.
11524         * select-msw.c (mswindows_destroy_selection): New.
11525         * select-msw.c (Vhandle_alist): New list.
11526         * select-msw.c (mswindows_own_selection):
11527
11528         * select-x.c (x_own_selection):
11529         * select-x.c (x_selection_exists_p):
11530         * select-x.c: Added some comments about maybe using new
11531         functionality.
11532         * select-x.c (x_own_selection):
11533
11534         * specifier.c: Remove definition of Qappend (now in general.c)
11535         * specifier.c (syms_of_specifier): Remove Qappend.
11536
11537 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11538
11539         * config.h.in: Add socklen_t.
11540
11541         * s/decosf4-0.h: No special compiler flags needed or desired.
11542         In particular, undefine _BSD for DEC OSF 4.0.
11543
11544 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11545
11546         * redisplay-msw.c (msprinter_frame_output_end): Added.
11547         (console_type_create_redisplay_mswindows): Referred the above.
11548
11549         * frame.c (setup_frame_without_minibuffer): Do not create a
11550         default minibuffer frame on a printer device.
11551
11552         * frame-msw.c (apply_dc_geometry): Added.
11553         (msprinter_start_page):
11554         (msprinter_init_frame_3):
11555         (msprinter_eject_page): Use it.
11556
11557         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11558         and removed residual duplex and orientation properties.
11559
11560 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11561
11562         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11563
11564         * unexalpha.c: Remove system prototypes from C sources!
11565
11566 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11567
11568         * eval.c: Remove references to M-x edit-options in DEFUNs for
11569         `defvar' and `defconst'.
11570
11571 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11572
11573         * config.h.in: Remove SMART_INCLUDE hackery.
11574
11575         PostgreSQL hacking:
11576         * config.h.in: Don't use SMART_INCLUDE.
11577
11578         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11579         * inline.c: Simply #include "postgresql.h"
11580         * postgresql.c:
11581         - Don't use SMART_INCLUDE
11582         - Use simply "const".
11583         - Use standard doc string conventions.
11584         - Use correct type for result of PQstatus.
11585
11586 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11587
11588         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11589
11590         C++ compilation changes.
11591         * config.h.in (EXTERN_C): Define.
11592         * config.h.in (not): This is also a C++ keyword.
11593         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11594         * cm.c: Use EXTERN_C.
11595         * redisplay-tty.c: Use EXTERN_C.
11596         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11597
11598 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11599
11600         * general.c: Remove duplicate definition for Qfunction.
11601
11602 2000-07-08  Ben Wing  <ben@xemacs.org>
11603
11604         * device-msw.c (msprinter_init_device):
11605         * device-msw.c (sync_printer_with_devmode):
11606         * device-msw.c (handle_devmode_changes):
11607         * device-msw.c (print_dialog_worker):
11608         * device-msw.c (Fmsprinter_apply_settings):
11609         * device-msw.c (hash_devmode):
11610         * device-msw.c (Fmsprinter_settings_despecialize):
11611         use Qmswindows_tstr, not Qctext.
11612
11613         * vm-limit.c (check_memory_limits):
11614         avoid infinite loop printing warning messages.
11615
11616 2000-07-05  Craig Lanning  <lanning@scra.org>
11617
11618         * Makefile.in.in: Add support for including the Windows resources
11619         when building with the cygwin and mingw targets.
11620
11621         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11622         not set or not correct.
11623         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11624         (init_initial_directory): Don't try to use $PWD on the
11625         WIN32_NATIVE target.
11626
11627         * s\cygwin32.h:
11628         [[Add -mwindows to eliminate console window.]] not required --ben
11629         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11630         (MAIL_USE_POP): removed; now handled by configure.
11631
11632         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11633         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11634         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11635         (MAIL_USE_POP): removed; now handled by configure.
11636         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11637         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11638         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11639         constant string.
11640         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11641         up from <winsock.h> via systime.h.
11642         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11643         (getpagesize): from Dan Holmsand, added.
11644         Added #endif which was left dangling by Ben's mega patch; added
11645         comment to help prevent this in the future.
11646
11647         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11648
11649 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11650
11651         * console-msw.h (struct mswindows_device): Removed unnecessary
11652         cached device geometry values.
11653         Added update_tick and an accessor macro.
11654         (Lisp_Devmode): Added lrecord declaration.
11655         (struct msprinter_device): Contain devmode as a Lisp object.
11656         Added mswindows_get_selected_frame_hwnd();
11657
11658         * console.h (struct console_methods): Indentation nitpicking.
11659
11660         * device-msw.c (mswindows_init_device): Do not initialize geometry
11661         cache. Initialize update tick.
11662         (mswindows_device_system_metrics): Ask the device for its geometry.
11663         (global_free_2_maybe):
11664         (devmode_to_hglobal):
11665         (handle_printer_changes):
11666         (ensure_not_printing):
11667         (print_dialog_worker):
11668         (Fmsprinter_print_setup_dialog):
11669         (Fmsprinter_print_dialog):
11670         (plist_get_margin):
11671         (plist_set_margin):
11672         (Fmsprinter_page_setup_dialog): Added functions.
11673         (sync_printer_with_devmode):
11674         (handle_devmode_changes):
11675         (Fmsprinter_get_settings):
11676         (Fmsprinter_select_settings):
11677         (Fmsprinter_apply_settings):
11678         (allocate_devmode):
11679         (Fmsprinter_settings_copy):
11680         (Fmsprinter_settings_despecialize):
11681         (print_devmode):
11682         (finalize_devmode):
11683         (equal_devmode):
11684         (hash_devmode): Added functions
11685         (syms_of_device_mswindows): Init devmode lrecord class.
11686
11687         * device.h: Added an exfun for find-device.
11688
11689         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11690         geometry; although, recreate the device compatible DC.
11691
11692         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11693         (msprinter_init_frame_3):
11694         (msprinter_frame_property):
11695         (msprinter_internal_frame_property_p):
11696         (msprinter_frame_properties):
11697         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11698         print job properties (will move to device settings).
11699
11700         * lisp.h: Added symbols.
11701
11702         * general.c (syms_of_general): Declared them.
11703
11704         * hash.c (string_hash): Added.
11705
11706         * lrecord.h (lrecord_type): Added devmode lrecord type.
11707
11708 2000-07-02  Mike Sperber <mike@xemacs.org>
11709
11710         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11711         FreeBSD 4.0.
11712
11713 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11714
11715         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11716         integer.
11717
11718 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11719
11720         * data.c (Fstring_to_number): Don't recognize floating point if
11721         base is not 10.
11722
11723 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11724
11725         * glyphs-widget.c (tab_control_query_geometry):
11726         (widget_query_geometry):
11727         (button_query_geometry):
11728         * glyphs.c (text_query_geometry):
11729         Enforce type correctness.
11730
11731 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11732
11733         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11734         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11735
11736 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11737
11738         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11739         conflicts with gcc's fixincluded version of FOO.h.
11740
11741         * glyphs.h (image_instance_geometry): Remove trailing `,'
11742
11743 2000-06-08  Mike Alexander  <mta@arbortext.com>
11744
11745         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11746         (shove_thread): Don't write the same output twice
11747         (make_ntpipe_output_stream): Increase priority of shove thread
11748         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11749         chance to run
11750         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11751         it.
11752
11753 2000-06-12  Ben Wing  <ben@xemacs.org>
11754
11755         * s\mingw32.h (sigset):
11756         * s\windowsnt.h (sigset):
11757         rename msw_ to mswindows_ for consistency with general convention.
11758
11759 2000-06-12  Ben Wing  <ben@xemacs.org>
11760
11761         * console-msw.c:
11762         * console-msw.c (mswindows_get_console_hwnd):
11763         * console-msw.c (mswindows_ensure_console_allocated):
11764         * console-msw.c (mswindows_hide_console):
11765         * console-msw.c (mswindows_show_console):
11766         * console-msw.c (mswindows_ensure_console_buffered):
11767         * console-msw.c (mswindows_output_console_string):
11768         * console-msw.c (mswindows_windows9x_p):
11769         * console-msw.h:
11770         * device-msw.c (mswindows_get_workspace_coords):
11771         * device-msw.c (mswindows_device_system_metrics):
11772         * dialog-msw.c (mswindows_popup_dialog_box):
11773         * event-msw.c (mswindows_wnd_proc):
11774         * frame-msw.c (mswindows_size_frame_internal):
11775         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11776         * menubar-msw.c (displayable_menu_item):
11777         * menubar-msw.c (mswindows_char_is_accelerator):
11778         * nt.c:
11779         * nt.c (mswindows_sigset):
11780         * nt.c (mswindows_sigrelse):
11781         * nt.c (mswindows_sigpause):
11782         * nt.c (mswindows_raise):
11783         * nt.c (timer_proc):
11784         * ntproc.c:
11785         * ntproc.c (find_child_console):
11786         * ntproc.c (sys_kill):
11787         * print.c:
11788         * print.c (std_handle_out_external):
11789         * process-nt.c (find_child_console):
11790         * process-nt.c (send_signal_the_95_way):
11791         * process-nt.c (ensure_console_window_exists):
11792         * process-nt.c (nt_create_process):
11793         * syssignal.h:
11794         rename msw_ to mswindows_ for consistency with general convention.
11795
11796         * emacs.c:
11797         * dumper.c:
11798         include nt.h, not syswindows.h.
11799
11800         * nt.c (mswindows_fstat):
11801         * nt.c (mswindows_stat):
11802         prefix mswindows_ instead of attempting to directly override the
11803         library functions.  fix declarations.
11804
11805         * nt.h:
11806         include syswindows.h.  move some sysdep.h stuff here.
11807
11808         * ntheap.h:
11809         include syswindows.h, not <windows.h>.
11810
11811         * ntplay.c:
11812         clean up headers.
11813
11814         * sysdep.c:
11815         clean up headers.
11816
11817         * sysdep.c (sys_fstat):
11818         * sysdep.c (sys_stat):
11819         call mswindows versions when appropriate.
11820
11821         * sysdep.h:
11822         move mswin decls to nt.h.
11823
11824         * syswindows.h:
11825         add long comment describing appropriate use of the various windows
11826         headers.
11827
11828 2000-06-11  Ben Wing  <ben@xemacs.org>
11829
11830         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11831
11832 2000-06-10  Ben Wing  <ben@xemacs.org>
11833
11834         * Makefile.in.in (release):
11835         Correction to make sure xemacs.exe always dumped when correct.
11836
11837         * alloca.c:
11838         * balloon_help.c:
11839         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11840
11841         * buffer.c (set_buffer_internal):
11842         [[[[2]]]]: Remove HAVE_FEP code.
11843
11844         * buffer.c (init_initial_directory):
11845         [3].
11846
11847         * bytecode.c:
11848         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11849         individual files.
11850
11851         * callproc.c:
11852         * callproc.c (call_process_cleanup):
11853         * callproc.c (Fold_call_process_internal):
11854         * callproc.c (child_setup):
11855         * callproc.c (getenv_internal):
11856         * callproc.c (init_callproc):
11857         * callproc.c (vars_of_callproc):
11858         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11859         __CYGWIN32__ -> CYGWIN.
11860         DOS_NT -> WIN32_NATIVE.
11861         Remove MSDOS support/references, converting to WIN32_NATIVE
11862           where correct.
11863         __MINGW32__ -> MINGW.
11864         Fix windows.h includes.
11865         Remove bogus HAVE_NTGUI.
11866
11867         * config.h.in:
11868         [2].
11869
11870         * console-msw.c:
11871         mswindows_message_outputted added for use in allowing startup
11872         errors on the console to be seen.
11873
11874         * console-msw.c (msw_ensure_console_allocated):
11875         * console-msw.c (msw_output_console_string):
11876         * console-msw.c (DHEADER):
11877         * console-msw.c (DOPAQUE_DATA):
11878         * console-msw.c (DEVENT):
11879         * console-msw.c (DCONS):
11880         * console-msw.c (DCONSCDR):
11881         * console-msw.c (DSTRING):
11882         * console-msw.c (DVECTOR):
11883         * console-msw.c (DSYMBOL):
11884         * console-msw.c (DSYMNAME):
11885         Fix warnings.
11886
11887         * console-stream.c (stream_init_console):
11888         Fix text/binary problems.
11889
11890         * device-msw.c:
11891         * device-msw.c (mswindows_finish_init_device):
11892         * device-msw.c (mswindows_delete_device):
11893         [1].
11894
11895         * device.c (handle_asynch_device_change):
11896         [3].
11897
11898         * dgif_lib.c:
11899         * dgif_lib.c (DGifOpenFileName):
11900         * dgif_lib.c (DGifOpenFileHandle):
11901         * dgif_lib.c (DGifGetLine):
11902         * dgif_lib.c (DGifGetPixel):
11903         Added config.h/lisp.h, fix up includes.
11904         [1].
11905
11906         * dired-msw.c:
11907         [4].
11908
11909         * dired.c:
11910         * dired.c (file_name_completion):
11911         * dired.c (Ffile_attributes):
11912         * dired.c (syms_of_dired):
11913         [1].
11914
11915         * dumper.c:
11916         * dumper.c (pdump_file_unmap):
11917         * dumper.c (pdump_load):
11918         [1].
11919
11920         * editfns.c:
11921         * editfns.c (Ftemp_directory):
11922         * editfns.c (user_login_name):
11923         * editfns.c (Fuser_real_login_name):
11924         * editfns.c (get_home_directory):
11925         [1].
11926
11927         * elhash.c (finish_marking_weak_hash_tables):
11928         [[[[5]]]]: Fix GCC warnings.
11929
11930         * emacs.c:
11931         * emacs.c (mswindows_handle_hardware_exceptions):
11932         * emacs.c (make_arg_list_1):
11933         * emacs.c (main_1):
11934         * emacs.c (Fkill_emacs):
11935         * emacs.c (Fdump_emacs):
11936         [1].
11937         Fix problems with nested crashes, add long comment.
11938
11939         * event-Xt.c (init_event_Xt_late):
11940         [1].
11941
11942         * event-msw.c:
11943         * event-msw.c (mswindows_dde_callback):
11944         * event-msw.c (mswindows_handle_sticky_modifiers):
11945         * event-msw.c (mswindows_wnd_proc):
11946         [1].
11947         [5].
11948
11949         * events.c (character_to_event):
11950         [1].
11951
11952         * fileio.c:
11953         * fileio.c (Ffile_name_directory):
11954         * fileio.c (Ffile_name_nondirectory):
11955         * fileio.c (directory_file_name):
11956         * fileio.c (Fexpand_file_name):
11957         * fileio.c (Fsubstitute_in_file_name):
11958         * fileio.c (Ffile_name_absolute_p):
11959         * fileio.c (check_executable):
11960         * fileio.c (Ffile_readable_p):
11961         * fileio.c (Ffile_accessible_directory_p):
11962         * fileio.c (Ffile_modes):
11963         * fileio.c (Funix_sync):
11964         * fileio.c (vars_of_fileio):
11965         [1]. [4].
11966
11967         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11968
11969         Expand getdefdir defn.
11970         Fix bogus rename() comment.
11971
11972         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11973         to use standard XEmacs include files, e.g. sysfile.h, rather
11974         than system-specific includes.
11975
11976         * fns.c:
11977         * fns.c (Fsubseq):
11978         [5]. [6].
11979
11980         * frame.c (vars_of_frame):
11981         [1].
11982
11983         * getloadavg.c:
11984         * getloadavg.c (getloadavg):
11985         [1]. [6].
11986         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11987         (We don't use it elsewhere in the code; just add a comment.)
11988
11989         * gif_io.c:
11990         [6].
11991         Add config.h.
11992
11993         * glyphs-msw.c:
11994         * glyphs-msw.c (mswindows_resource_instantiate):
11995         [1].
11996
11997         * glyphs-x.c (x_native_layout_instantiate):
11998         [5].
11999
12000         * gui-msw.c (Fmswindows_shell_execute):
12001         [1].
12002
12003         * insdel.c:
12004         [4].
12005
12006         * lisp.h:
12007         [4]. [5].
12008
12009         * lread.c (locate_file_in_directory_mapper):
12010         [1].
12011
12012         * lstream.c:
12013         [4].
12014
12015         * mem-limits.h:
12016         * mem-limits.h (get_lim_data):
12017         [1].
12018
12019         * menubar-msw.c:
12020         [4].
12021
12022         * ndir.h:
12023         [1].
12024
12025         * nt.c:
12026         * nt.c (getwd):
12027         * nt.c (closedir):
12028         * nt.c (rva_to_section):
12029         * nt.c (mswindows_executable_type):
12030         [1]. [6].
12031         Fix closedir() defn.
12032
12033         * nt.h:
12034         [[[[8]]]]: *_OK defs moved to sysfile.h.
12035
12036         * ntproc.c:
12037         [6]. [7].
12038
12039         * objects-x.c:
12040         [4].
12041
12042         * print.c:
12043         * print.c (std_handle_out_external):
12044         [1]. [4].
12045
12046         * process-nt.c:
12047         * process-nt.c (nt_create_process):
12048         [6].
12049         try to fix process quoting somewhat.
12050
12051         * process-unix.c (unix_create_process):
12052         [1].
12053
12054         * process.c:
12055         * process.c (vars_of_process):
12056         Add Vnull_device.
12057
12058         * process.h:
12059         [1].
12060
12061         * realpath.c:
12062         * realpath.c (xrealpath):
12063         [1].
12064
12065         * redisplay-tty.c (init_tty_for_redisplay):
12066         [3].
12067
12068         * redisplay.c:
12069         [4]. [6].
12070
12071         * scrollbar-msw.c:
12072         [4].
12073
12074         * sheap.c:
12075         * sheap.c (more_static_core):
12076         * sheap.c (report_sheap_usage):
12077         [5]. [6].
12078
12079         * signal.c:
12080         * signal.c (alarm_signal):
12081         [1]. [6].
12082
12083         * sound.c:
12084         [6].
12085
12086         * strftime.c:
12087         * strftime.c (zone_name):
12088         [1]. [5].
12089
12090         * symsinit.h (init_sunpro):
12091         [1].
12092
12093         * syscommctrl.h:
12094         commctrl.h not in Cygwin b20.1.
12095
12096         * sysdep.c:
12097         * sysdep.c (endif):
12098         * sysdep.c (sys_subshell):
12099         * sysdep.c (init_baud_rate):
12100         * sysdep.c (emacs_get_tty):
12101         * sysdep.c (emacs_set_tty):
12102         * sysdep.c (tty_init_sys_modes_on_device):
12103         * sysdep.c (init_system_name):
12104         * sysdep.c (sys_open):
12105         * sysdep.c (interruptible_open):
12106         * sysdep.c (sys_fopen):
12107         * sysdep.c (sys_mkdir):
12108         * sysdep.c (sys_rename):
12109         * sysdep.c (get_process_times_1):
12110         [1]. [6].
12111
12112         * sysdep.h:
12113         [1].
12114
12115         * sysdir.h:
12116         * sysdir.h (DIRENTRY_NONEMPTY):
12117         [1]. [6].
12118
12119         * sysdll.c (dll_init):
12120         * sysdll.h:
12121         [1].
12122
12123         * sysfile.h:
12124         [1]. [6]. [8].
12125         added text/binary defs.
12126
12127         * sysfloat.h:
12128         [1].
12129
12130         * sysproc.h:
12131         * sysproc.h (EDESTADDRREQ):
12132         * sysproc.h (poll_fds_for_input):
12133         [1]. [6].
12134
12135         * syspwd.h:
12136         [6].
12137
12138         * syssignal.h:
12139         [1].
12140
12141         * systime.h:
12142         [1]. [6].
12143
12144         * systty.h:
12145         [1].
12146
12147         * syswindows.h:
12148         [1].
12149         Always define WIN32_LEAN_AND_MEAN.
12150
12151         * unexcw.c (unexec):
12152         [5].
12153
12154         * unexec.c:
12155         * unexec.c (copy_text_and_data):
12156         * unexec.c (adjust_lnnoptrs):
12157         [1].
12158
12159         * unexnt.c:
12160         * unexnt.c (_start):
12161         [1].
12162
12163 2000-06-07  Ben Wing  <ben@xemacs.org>
12164
12165         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12166         was used only as a model.  We've long since extracted any useful
12167         logic or code out of this. (I just did an exhaustive search.)
12168
12169         * s\msdos.h: Removed.
12170
12171         * s\windows95.h: Removed.
12172
12173 2000-06-10  Ben Wing  <ben@xemacs.org>
12174
12175         * s\cygwin32.h:
12176         [1]. [5].
12177         Don't use extern with fun defs.
12178
12179         * s\mingw32.h:
12180         [1]. [7].
12181         Remove nt\inc include.
12182         Remove getdisk, getdefdir. (The former is unused, the latter
12183         expanded in fileio.h.)
12184
12185         * s\windowsnt.h:
12186         * s\windowsnt.h (WIN32_NATIVE):
12187         * s\windowsnt.h (HAVE_STRCASECMP):
12188         [1]. [7].
12189         Add long comment about preprocessor changes.
12190         Remove getdisk, getdefdir. (The former is unused, the latter
12191         expanded in fileio.h.)
12192
12193 2000-06-10  Ben Wing  <ben@xemacs.org>
12194
12195         * m\arm.h:
12196         * m\delta.h:
12197         * m\intel386.h:
12198         * m\sequent.h:
12199         * m\template.h:
12200         * m\windowsnt.h:
12201         [1].
12202         Remove bogus/unused NO_SOCK_SIGIO.
12203
12204 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12205
12206         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12207         not an Emchar.
12208
12209 2000-06-04  Mike Sperber <mike@xemacs.org>
12210
12211         * casetab.c (set_case_table): For `set-standard-case-table',
12212         actually deposit the new case tables where the rest of XEmacs can
12213         see them.
12214
12215 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12216
12217         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12218
12219 2000-06-05  Ben Wing  <ben@xemacs.org>
12220
12221         * callproc.c (child_setup): Don't do close_load_descs() under
12222         MS Windows.  Put in a comment explaining why.
12223
12224 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12225
12226         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12227         Toolkit shell" which breaks `kill-compilation' on Windows NT
12228         native, retaining STDERR handling improvements.
12229
12230 2000-06-01  Andreas Jaeger  <aj@suse.de>
12231
12232         * s/s390.h: Support for S390, based on a patch by Martin
12233         Schwidefsky <schwidefsky@de.ibm.com>.
12234
12235 2000-05-30  Andy Piper  <andy@xemacs.org>
12236
12237         * window.c (allocate_window):
12238         (make_dummy_parent):
12239         (Fset_window_configuration): use new hashtable type.
12240
12241         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12242         (struct image_instantiator_methods):
12243         (struct Lisp_Image_Instance): make instance geometry signed.
12244
12245         * glyphs.c (instantiate_image_instantiator):
12246         (image_instance_query_geometry):
12247         (image_instance_layout):
12248         (image_instance_layout):
12249         (query_string_geometry):
12250         (text_query_geometry):
12251         (image_instantiate):
12252         (image_instantiate):
12253         (cache_subwindow_instance_in_frame_maybe):
12254         (subwindow_query_geometry): make instance geometry signed.
12255
12256         * glyphs-widget.c (widget_query_geometry):
12257         (widget_layout):
12258         (button_query_geometry):
12259         (tree_view_query_geometry):
12260         (tab_control_query_geometry):
12261         (layout_query_geometry):
12262         (layout_layout):
12263         (native_layout_layout): make instance geometry signed.
12264
12265 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12266
12267         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12268         constant.
12269
12270         * general.c (syms_of_general): Add Qfull_assoc symbol.
12271
12272         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12273         correctly.
12274         (decode_weak_list_type): Decode full-assoc type.
12275         (encode_weak_list_type): Encode full-assoc type.
12276         (Fmake_weak_list): Update doc string.
12277
12278 2000-05-30  Andy Piper  <andy@xemacs.org>
12279
12280         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12281
12282         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12283         (decode_hash_table_weakness): ditto.
12284         (Fhash_table_weakness): ditto.
12285         (Fhash_table_type): ditto.
12286         (finish_marking_weak_hash_tables): ditto.
12287         (hash_table_weakness_validate): ditto.
12288         (syms_of_elhash): ditto.
12289
12290 2000-05-28  Martin Buchholz <martin@xemacs.org>
12291
12292         * XEmacs 21.2.34 is released.
12293
12294 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12295
12296         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12297         start cache.
12298         (updating_line_start_cache): Gone.
12299         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12300         generic code to force a minimum of 1 line laid out in the
12301         CMOTION_DISP case.
12302
12303 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12304
12305         * glyphs.c (instantiate_image_instantiator): Check for initialized
12306         height & width no longer special cases IMAGE_NOTHING.
12307         (nothing_instantiate): Set height and width of instance.
12308
12309 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12310
12311         * unexelf.c (unexec): Search for ".data" section.
12312         Initialize new_data2_offset from old_data_index.
12313         Remove redundant check for ElfW.
12314
12315 2000-05-23  Andy Piper  <andy@xemacs.org>
12316
12317         * glyphs.c (get_image_instantiator_governing_domain): allow more
12318         specific domains as the governing domain rather than expecting an
12319         exact match. This fixes problems with layouts.
12320
12321 2000-05-22  Andy Piper  <andy@xemacs.org>
12322
12323         * redisplay-output.c (compare_runes): check for non-images
12324
12325         * glyphs.c (set_glyph_dirty_p): ditto.
12326         (update_glyph_cachel_data): ditto.
12327
12328         * glyphs-widget.c (layout_post_instantiate): ditto.
12329         (layout_post_instantiate): ditto.
12330
12331         * event-msw.c (mswindows_wnd_proc): warning removal.
12332
12333 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12334
12335         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12336
12337         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12338
12339         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12340
12341         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12342         (mswindows_executable_type): mingw32 now has enough headers for
12343         this to work.
12344
12345 2000-05-20  Andy Piper  <andy@xemacs.org>
12346
12347         * console-msw.c (mswindows_output_last_error): ; -> ,
12348
12349 2000-05-12  Andy Piper  <andy@xemacs.org>
12350
12351         * console-msw.c (FROB): compare ints with ints.
12352
12353 2000-05-11  Andy Piper  <andy@xemacs.org>
12354
12355         * glyphs-x.c (x_finalize_image_instance): make minimal build
12356         happy.
12357
12358 2000-05-20  Ben Wing  <ben@xemacs.org>
12359
12360         * event-Xt.c:
12361         * event-Xt.c (vars_of_event_Xt):
12362         move modifier-keys-are-sticky to event-stream.c.
12363
12364         * event-msw.c:
12365         * event-msw.c (mswindows_enqueue_mouse_button_event):
12366         * event-msw.c (key_needs_default_processing_p):
12367         * event-msw.c (XEMSW_LCONTROL):
12368         * event-msw.c (mswindows_handle_sticky_modifiers):
12369         * event-msw.c (FROB):
12370         * event-msw.c (clear_sticky_modifiers):
12371         * event-msw.c (output_modifier_keyboard_state):
12372         * event-msw.c (output_alt_keyboard_state):
12373         * event-msw.c (mswindows_wnd_proc):
12374         * event-msw.c (mswindows_modifier_state):
12375         * event-msw.c (emacs_mswindows_handle_magic_event):
12376         implement sticky modifiers.
12377
12378         * event-stream.c:
12379         * event-stream.c (vars_of_event_stream):
12380         move modifier-keys-are-sticky here.
12381
12382         * lisp.h:
12383         add CHECK_FUNCTION.
12384
12385         * rangetab.c:
12386         implement map-range-table.
12387
12388
12389 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12390
12391         * redisplay-tty.c (reset_tty_modes):
12392         (tty_redisplay_shutdown): Adjust argument type to
12393         tty_frame_output_end.
12394
12395 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12396
12397         * eval.c (Fbacktrace): Don't output a line with only right
12398         parenthesis.
12399
12400 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12401
12402         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12403         (Fpq_reset_poll): Ditto.
12404
12405 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12406
12407         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12408
12409 2000-05-16  Ben Wing  <ben@xemacs.org>
12410
12411         * buffer.c:
12412         * buffer.c (dfc_convert_to/from_internal_format):
12413         * buffer.c (reinit_vars_of_buffer):
12414         Fix conversion functions to allow reentrancy.
12415
12416         * console-msw.c:
12417         * console-msw.c (mswindows_output_last_error):
12418         New fun, generally useful -- output a human-readable
12419         version of GetLastError() on the console.
12420
12421         * console-msw.h:
12422         * console-msw.h (struct mswindows_frame):
12423         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12424
12425         * console-stream.c (stream_output_begin):
12426         * console-stream.c (stream_output_end):
12427         * console-stream.c (stream_output_vertical_divider):
12428         * console-stream.c (stream_clear_region):
12429         * console-stream.c (stream_flash):
12430         * console-stream.c (console_type_create_stream):
12431         Delete blank stream methods, not needed.
12432
12433         * console.h (struct console_methods):
12434         Split begin/end methods into window and frame.
12435
12436         * event-msw.c:
12437         * event-msw.c (mswindows_handle_paint):
12438         * event-msw.c (output_alt_keyboard_state):
12439         * event-msw.c (mswindows_wnd_proc):
12440         * event-msw.c (vars_of_event_mswindows):
12441         Comment about problems with ignored-expose.
12442         Define mswindows-debug-events; not really implemented.
12443
12444         * frame-msw.c (mswindows_init_frame_1):
12445         random cleanups.
12446
12447         * glyphs-msw.c:
12448         * glyphs-msw.c (begin_defer_window_pos):
12449         * glyphs-msw.c (mswindows_unmap_subwindow):
12450         * glyphs-msw.c (mswindows_map_subwindow):
12451         * glyphs-msw.c (mswindows_resize_subwindow):
12452         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12453
12454         * glyphs.c (make_image_instance_1):
12455         Fix crash.
12456
12457         * gutter.c (Fredisplay_gutter_area):
12458         Use new begin/end methods.
12459
12460         * lisp.h (Dynarr_new2):
12461         New creation fun.
12462
12463         * redisplay-msw.c:
12464         * redisplay-msw.c (mswindows_frame_output_begin):
12465         * redisplay-msw.c (mswindows_frame_output_end):
12466         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12467         New begin/end methods -- handle DeferWindowPos.
12468
12469         * redisplay-output.c (redisplay_move_cursor):
12470         * redisplay-output.c (redraw_cursor_in_window):
12471         * redisplay-output.c (redisplay_update_line):
12472         * redisplay-output.c (redisplay_output_window):
12473         New begin/end methods.
12474
12475         * redisplay-tty.c:
12476         * redisplay-tty.c (tty_frame_output_begin):
12477         * redisplay-tty.c (tty_frame_output_end):
12478         * redisplay-tty.c (console_type_create_redisplay_tty):
12479         New begin/end methods.
12480
12481         * redisplay-x.c:
12482         * redisplay-x.c (x_window_output_begin):
12483         * redisplay-x.c (x_window_output_end):
12484         * redisplay-x.c (console_type_create_redisplay_x):
12485         New begin/end methods.
12486
12487         * redisplay.c (redisplay_frame):
12488         * redisplay.c (Fredisplay_echo_area):
12489         New begin/end methods.
12490         use MAYBE_DEVMETH for clear_frame; it may not exist.
12491
12492         * window.h (WINDOW_XFRAME):
12493         WINDOW_XFOO macros -- get locale and decode struct pointer.
12494
12495
12496 2000-05-12  Ben Wing  <ben@xemacs.org>
12497
12498         * emacs.c:
12499         * emacs.c (ensure_no_quitting_from_now_on):
12500         * emacs.c (fatal_error_signal):
12501         * emacs.c (mswindows_handle_hardware_exceptions):
12502         * emacs.c (main):
12503         * emacs.c (Fkill_emacs):
12504         * emacs.c (shut_down_emacs):
12505         * emacs.c (assert_failed):
12506         various improvements in fatal error handling.
12507
12508         * eval.c:
12509         move preparing_for_armageddon to emacs.c.
12510
12511         * lisp.h:
12512         declare fatal_error_in_progress.
12513
12514         * print.c:
12515         * print.c (std_handle_out_external):
12516         * print.c (std_handle_out_va):
12517         * print.c (stderr_out):
12518         * print.c (stdout_out):
12519         use console under mswin when no standard output.
12520         don't do code conversion during fatal error.
12521
12522         * scrollbar.c (Fscrollbar_page_up):
12523         * scrollbar.c (Fscrollbar_page_down):
12524         fix missing else.  reindent.
12525
12526 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12527
12528         Emergency fix.
12529
12530         * glyphs.h (GLYPH_CACHEL_DESCENT):
12531         (GLYPH_CACHEL_DESCENT):
12532         (GLYPH_CACHEL_DESCENT):
12533         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12534         used in case these are inline functions.
12535         Use more absurd values to error check.
12536
12537         include window.h for error check functions.
12538
12539 2000-05-11  Ben Wing  <ben@xemacs.org>
12540
12541         * cmdloop.c (Freally_early_error_handler):
12542         Display message box under windows; otherwise, message will disappear
12543         before it can be viewed.
12544
12545         * console-msw.c:
12546         * console-msw.c (Fmswindows_message_box):
12547         * console-msw.c (FROB):
12548         * console-msw.c (syms_of_console_mswindows):
12549         Define new fun `mswindows-message-box'.
12550         #### I will merge this into `popup-dialog-box'; just give me
12551         a bit of time.
12552
12553         * general.c:
12554         * general.c (syms_of_general):
12555         Some new symbols used in `mswindows-message-box'.
12556
12557         * glyphs.c:
12558         * glyphs.c (Fset_image_instance_property):
12559         put warning in this fun.
12560
12561         * glyphs.h:
12562         * glyphs.h (GLYPH_CACHEL_WIDTH):
12563         * glyphs.h (GLYPH_CACHEL_ASCENT):
12564         * glyphs.h (GLYPH_CACHEL):
12565         * glyphs.h (GLYPH_CACHEL_GLYPH):
12566         define error-checking versions to try to catch a bug i've seen --
12567         redisplay gets in an infinite loop because the glyph width of the
12568         continuation glyph is 65535.
12569
12570         * lisp.h:
12571         Extern message-box stuff.
12572
12573         * window.c (allocate_window):
12574         * window.c (make_dummy_parent):
12575         * window.c (Fset_window_configuration):
12576         Use EQUAL not EQ for subwindow caches to make them work a bit
12577         better. (Something is still very broken.)
12578
12579
12580 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12581
12582         * glyphs.c (image_instantiate): Suppress gcc warnings.
12583         (Fmake_image_instance): Fix doc string.
12584         * specifier.c (Fmake_specifier): Ditto.
12585
12586 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12587
12588         * paths.h.in (PATH_LOCK): Removed.
12589         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12590         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12591
12592 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12593
12594         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12595         Document (featurep '(and xemacs 21.02)).
12596
12597 2000-05-09  Ben Wing  <ben@xemacs.org>
12598
12599         * buffer.c (complex_vars_of_buffer):
12600         update modeline-format doc.
12601
12602         * device.h:
12603         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12604
12605         * emacs.c:
12606         timeline of all released versions of Emacs, for use in creating
12607         authorship comments and in synching up.
12608
12609         * glyphs-widget.c (image_instantiator_buttons):
12610         * glyphs-widget.c (image_instantiator_edit_fields):
12611         * glyphs-widget.c (image_instantiator_combo_box):
12612         * glyphs-widget.c (image_instantiator_scrollbar):
12613         * glyphs-widget.c (image_instantiator_progress_guage):
12614         * glyphs-widget.c (image_instantiator_tree_view):
12615         * glyphs-widget.c (image_instantiator_tab_control):
12616         * glyphs-widget.c (image_instantiator_labels):
12617         * glyphs-widget.c (image_instantiator_layout):
12618         * glyphs-widget.c (image_instantiator_native_layout):
12619         rename decode_domain method to governing_domain.
12620
12621         * glyphs.c:
12622         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12623         * glyphs.c (add_entry_to_device_ii_format_list):
12624         make sure we don't put an entry more than once into the list.
12625         * glyphs.c (check_instance_cache_mapper):
12626         *************************************************************
12627         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12628         HAVE BEEN GETTING.
12629         *************************************************************
12630         * glyphs.c (get_image_instantiator_governing_domain):
12631         clean up, expand on new concept of governing domain.
12632         * glyphs.c (instantiate_image_instantiator):
12633         * glyphs.c (allocate_image_instance):
12634         use governing_domain instead of cache_domain in naming.
12635         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12636         * glyphs.c (make_image_instance_1):
12637         * glyphs.c (Fmake_image_instance):
12638         allow for any domain (not just device), and process the
12639         governing domain correctly.  very big doc fix.
12640         * glyphs.c (Fimage_instance_domain):
12641         new primitive, to retrieve the governing domain of an image instance.
12642         * glyphs.c (image_instantiate):
12643         use new governing_domain stuff.  this fixes a crash you could get
12644         by instantiating certain widget glyphs in frame locales. (should
12645         signal an error instead of crashing.)
12646         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12647         * glyphs.c (Fglyphp): clean up doc.
12648         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12649         * glyphs.c (syms_of_glyphs):
12650         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12651         * glyphs.c (image_instantiator_format_create): add some comments about
12652         bogus code.
12653         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12654         for current-display-table. (Apparently Hrjove implemented in 1998 a
12655         design I wrote up in 1996, but didn't update the doc string.)
12656
12657         * glyphs.h: clean up a doc string.
12658         * glyphs.h (governing_domain):
12659         * glyphs.h (struct image_instantiator_methods):
12660         changes for governing_domain stuff.
12661
12662         * gutter.c:
12663         * gutter.c (Fgutter_specifier_p):
12664         * gutter.c (Fgutter_size_specifier_p):
12665         * gutter.c (Fgutter_visible_specifier_p):
12666         * objects.c:
12667         * objects.c (Fcolor_specifier_p):
12668         * objects.c (Ffont_specifier_p):
12669         * objects.c (Fface_boolean_specifier_p):
12670         doc strings moved to make-*-specifier.
12671
12672         * redisplay.c (add_disp_table_entry_runes_1):
12673         * redisplay.c (generate_fstring_runes):
12674         * redisplay.c (screen):
12675         add random comments and doc strings.
12676
12677         * specifier.c:
12678         * specifier.c (Fmake_specifier):
12679         major overhaul of this doc string.
12680
12681         * specifier.c (Fvalid_specifier_domain_p):
12682         comment about the bogosity of image instances being domains.
12683         * specifier.c (decode_domain):
12684         now non-static, used in glyphs.c.
12685         * specifier.c (specifier_instance):
12686         comment about the bogosity of image instances being domains.
12687         * specifier.c (Fgeneric_specifier_p):
12688         move doc string to make-generic-specifier.
12689         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12690         rebackslashify.
12691
12692         * specifier.h:
12693         * specifier.h (DOMAIN_FRAME):
12694         * specifier.h (DOMAIN_LIVE_P):
12695         * specifier.h (DOMAIN_XDEVICE):
12696         rebackslashify.
12697         add comments about problems with these macros.
12698         prototype for decode_domain.
12699
12700         * toolbar.c:
12701         * toolbar.c (Ftoolbar_specifier_p):
12702         move doc string to `make-toolbar-specifier'.
12703
12704         * window.c (window_unmap_subwindows_cache_mapper):
12705         *************************************************************
12706         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12707         HAVE BEEN GETTING.
12708         *************************************************************
12709
12710 2000-05-09  Andy Piper  <andy@xemacs.org>
12711
12712         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12713
12714         * window.c (Fset_window_configuration): reset the frame subwindow
12715         cache and re-initialize the window subwindow caches.
12716
12717         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12718
12719 2000-05-09  Ben Wing  <ben@xemacs.org>
12720
12721         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12722         DWORD.
12723
12724 2000-04-26  Mike Woolley  <mike@bulsara.com>
12725
12726         * ntheap.c: Changed recreate_heap to limit the amount reserved
12727         for the heap to that which is actually available. Also now
12728         displays a message box (with some dignostics) in the event that
12729         it still can't start.
12730
12731 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12732
12733         * callproc.c (Fold_call_process_internal): GCPRO path
12734
12735 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12736
12737         Patch by Bill Perry.
12738
12739         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12740         back data instead of #ifdef.
12741         (Fscrollbar_page_down): ditto.
12742
12743 2000-05-07  Ben Wing  <ben@xemacs.org>
12744
12745         * buffer.h:
12746         Kludge for defining Qmswindows_tstr.
12747
12748         * nt.c:
12749         * nt.c (open_input_file):
12750         * nt.c (open_output_file):
12751         * nt.c (rva_to_section):
12752         * nt.c (mswindows_executable_type):
12753         Move all memory-mapped-file routines here (some were in unexnt.c,
12754         which is bad because they are used by process-nt.c, and unexnt
12755         won't be around when portable dumping).  Synched the above routines
12756         with FSF 20.6.
12757
12758         * nt.h:
12759         Removed ifdef'd out bogus code.
12760         Fixed some prototypes.
12761
12762         * nt.h (file_data):
12763         * nt.h (OFFSET_TO_RVA):
12764         * nt.h (RVA_TO_OFFSET):
12765         * nt.h (RVA_TO_PTR):
12766         Moved the memory-mapped-file structures, macros and prototypes
12767         here, to parallel nt.c.  ntheap.h should really be removed
12768         entirely, and it's a non-portable-dumper specific file.
12769
12770         * ntheap.h (round_to_next):
12771         Moved the memory-mapped-file structures, macros and prototypes
12772         to nt.h.
12773
12774         * ntproc.c (compare_env):
12775         Moved rva_to_section and mswindows_executable_type to nt.c.
12776         Moved compare_env to process-nt.c.
12777         ntproc.c will die, one day.
12778
12779         * ntproc.c (sys_spawnve):
12780         Account for win32_ -> mswindows_.
12781
12782         * process-nt.c:
12783         * process-nt.c (struct nt_process_data):
12784         * process-nt.c (ensure_console_window_exists):
12785         * process-nt.c (compare_env):
12786         * process-nt.c (nt_create_process):
12787         * process-nt.c (nt_kill_process_by_pid):
12788         * process-nt.c (syms_of_process_nt):
12789         * process-nt.c (vars_of_process_nt):
12790         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12791         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12792         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12793         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12794         Move compare_env here from ntproc.c.
12795
12796         * process.c (Fprocess_send_region):
12797         Takes an optional fourth argument, BUFFER, which should fix some
12798         problems with call-process.
12799
12800         * syscommctrl.h:
12801         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12802
12803         * syswindows.h:
12804         Move ICC_BAR_CLASSES to syscommctrl.h.
12805         Add preliminary macros for MSWindows/Mule.  More to come.
12806
12807         * unexnt.c:
12808         * unexnt.c (unexec):
12809         open_output_file moved to nt.c.
12810
12811
12812 2000-05-05  Andy Piper  <andy@xemacs.org>
12813
12814         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12815         instance from the frame cache also since GC may catch up too late
12816         to make frame deletion sane.
12817
12818 2000-05-04  Andy Piper  <andy@xemacs.org>
12819
12820         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12821         (x_finalize_image_instance): ungcpro on deletion.
12822
12823         * glyphs.c (image_instantiator_format_create): give pointers a
12824         query geometry method so that the geometry is at least set.
12825
12826         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12827         initialize layouts if using widgets.
12828
12829 2000-05-03  Andy Piper  <andy@xemacs.org>
12830
12831         * nt.c: remove bogus reference to sysmmsystem.h
12832
12833         * gui-x.c (popup_selection_callback): fix no selection abort.
12834
12835 2000-05-02  Andy Piper  <andy@xemacs.org>
12836
12837         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12838         (mswindows_widget_instantiate): ditto.
12839
12840         * glyphs-widget.c (initialize_widget_image_instance): initialize
12841         children correctly.
12842         (widget_instantiate): cope with children and items in the same
12843         instance.
12844
12845         * glyphs.c (mark_image_instance): cope with children as a first
12846         class member.
12847         (image_instance_equal): ditto.
12848         (image_instance_hash): ditto.
12849         (image_instance_changed): ditto.
12850
12851 2000-04-30  Andy Piper  <andy@xemacs.org>
12852
12853         * glyphs.c (subwindow_query_geometry): new function. Return some
12854         defaults.
12855         (subwindow_instantiate): don't assign dimensions if none have been
12856         given.
12857         (image_instantiator_format_create): add subwindow_query_geometry.
12858         (print_image_instance): cope with layouts as widgets.
12859
12860 2000-04-29  Andy Piper  <andy@xemacs.org>
12861
12862         * frame.c (delete_frame_internal): call
12863         free_frame_subwindow_instance_cache so that all subwindows are
12864         finalized before their parent.
12865         (mark_frame): remove subwindow_cachels.
12866         (Fmake_frame): remove subwindow_cachel manipulation.
12867         (allocate_frame_core): subwindow_instance_cache is a weak list.
12868         (delete_frame_internal): set subwindow_instance_cache to nil.
12869
12870         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12871         finalization safe.
12872         (mswindows_finalize_image_instance): use the device
12873         not the domain as the domain may have died already.
12874
12875         * glyphs-x.c (x_finalize_image_instance): ditto.
12876         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12877         HEIGHT.
12878
12879         * redisplay-output.c (redisplay_unmap_subwindows): update for
12880         subwindow instance cache as a weak list.
12881         (redisplay_unmap_subwindows_maybe): ditto.
12882         (redisplay_unmap_subwindows_except_us): ditto.
12883
12884         * glyphs.c (unmap_subwindow): error checking will check the domain
12885         so don't deal with it here. Don't use cachels anymore.
12886         (map_subwindow): ditto.
12887         (update_subwindow_cachel_data): remove old accessor names.
12888         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12889         (Fresize_subwindow): don't update cachel.
12890         (mark_subwindow_cachels):
12891         (update_subwindow_cachel_data):
12892         (add_subwindow_cachel):
12893         (get_subwindow_cachel_index):
12894         (update_subwindow_cachel):
12895         (reset_subwindow_cachels):
12896         (mark_subwindow_cachels_as_not_updated): deleted.
12897         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12898         subwindow instance to the frame cache.
12899         (find_matching_subwindow): update for subwindow instance cache as
12900         a weak list.
12901         (update_widget_instances): ditto.
12902         (image_instance_type_to_mask):inlined.
12903         (free_frame_subwindow_instance_cache): new function. finalize all
12904         subwindows that are instantiated.
12905
12906         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12907         of cachel information.
12908         (IMAGE_INSTANCE_DISPLAY_X):
12909         (IMAGE_INSTANCE_DISPLAY_Y):
12910         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12911         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12912         (XIMAGE_INSTANCE_DISPLAY_X):
12913         (XIMAGE_INSTANCE_DISPLAY_Y):
12914         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12915         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12916         remove subwindow_cachel structure and function references.
12917         (image_instance_type_to_mask): inline from glyphs.c
12918
12919         * redisplay.c (redisplay_frame): remove subwindow_cachel
12920         references.
12921
12922         * frame.h (struct frame): remove subwindow_cachels.
12923         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12924
12925         * frameslots.h: add subwindow_instance_cache.
12926
12927         * window.c (replace_window): check subwindow cache of replacement.
12928         (window_unmap_subwindows_cache_mapper):
12929         (window_unmap_subwindows): new functions. Unmap all subwindows
12930         cached on this window.
12931         (mark_window_as_deleted): unmap all subwindows.
12932
12933 2000-04-27  Andy Piper  <andy@xemacs.org>
12934
12935         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12936
12937         * glyphs-widget.c (widget_layout): return something.
12938         (layout_layout): return something. Fail if not initialized.
12939         (layout_query_geometry): ditto.
12940         (image_instantiator_native_layout): new function. Initialized the
12941         native layout type.
12942         (widget_instantiate): don't do layout stuff here.
12943
12944         * glyphs.c (instantiate_image_instantiator): reorded calling or
12945         instantiate and post_instantiate with layout in between.
12946         (image_instance_layout): be more selective about deciding whether
12947         the layout has been done or not.
12948
12949         * glyphs.h (struct image_instantiator_methods): return a value
12950         from layout_method.
12951
12952 2000-04-26  Andy Piper  <andy@xemacs.org>
12953
12954         * glyphs.c (allocate_image_instance): make initial width and
12955         height unspecified. Set initialized to 0.
12956
12957         * syscommctrl.h new file. Encapsulates commctrl.h.
12958
12959         * syswindows.h new file. Encapsulates windows.h.
12960
12961         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12962         * nt.c: ditto.
12963         * console-msw.h: ditto.
12964
12965         * redisplay-tty.c (tty_output_display_block): remove layout references.
12966
12967         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12968         window handle rather than just the frame.
12969
12970         * glyphs.c (mark_image_instance): remove layout references.
12971         (print_image_instance): ditto.
12972         (image_instance_equal): ditto.
12973         (image_instance_hash): ditto.
12974         (decode_image_instance_type): ditto.
12975         (encode_image_instance_type): ditto.
12976         (image_instantiate): ditto.
12977         (allocate_glyph): ditto.
12978         (Fimage_instance_height): ditto.
12979         (Fimage_instance_width): ditto.
12980         (update_subwindow): ditto.
12981
12982         * redisplay-x.c (x_output_display_block): recode for layouts as
12983         widgets.
12984
12985         * redisplay-output.c (redisplay_output_layout): recode for layouts
12986         as widgets.
12987         (compare_runes): remove layout references.
12988
12989         * redisplay-msw.c (mswindows_output_display_block): recode for
12990         layouts as widgets.
12991
12992         * glyphs-widget.c (image_instantiator_layout): remove
12993         layout_possible_dest_types.
12994         (layout_possible_dest_types): deleted.
12995
12996         * glyphs.h (image_instance_type): remove layout references.
12997         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12998         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12999         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13000
13001 2000-04-25  Andy Piper  <andy@xemacs.org>
13002
13003         * glyphs-widget.c (image_instantiator_buttons):
13004         (image_instantiator_edit_fields):
13005         (image_instantiator_combo_box):
13006         (image_instantiator_scrollbar):
13007         (image_instantiator_progress_guage):
13008         (image_instantiator_tree_view):
13009         (image_instantiator_tab_control):
13010         (image_instantiator_labels):
13011         (image_instantiator_layout): call default post_instantiate method.
13012         (widget_post_instantiate): new function. Simply lays out the
13013         widgets.
13014
13015         * glyphs.h (struct image_instantiator_methods): add
13016         post_instantiate method.
13017
13018         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13019         method calls.
13020
13021 2000-04-23  Andy Piper  <andy@xemacs.org>
13022
13023         * glyphs.h (struct image_instantiator_methods): add
13024         decode_domain_method.
13025         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13026         derived from the domain.
13027         (IMAGE_INSTANCE_FRAME): new accessor.
13028         (XIMAGE_INSTANCE_FRAME): ditto.
13029
13030         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13031         instead of _SUBWINDOW_FRAME.
13032         (finalize_image_instance): ditto.
13033         (Fimage_instance_foreground): ditto.
13034         (Fimage_instance_background): ditto.
13035         (image_instantiate): ditto.
13036         (update_subwindow_cachel): ditto.
13037         (update_subwindow): ditto.
13038         (unmap_subwindow): ditto.
13039         (map_subwindow): ditto
13040         (subwindow_instantiate): ditto.
13041         * glyphs-msw.c (mswindows_update_widget): ditto.
13042         (mswindows_progress_gauge_instantiate): ditto.
13043         (mswindows_tab_control_update): ditto.
13044         * glyphs-x.c (x_update_widget): ditto.
13045         (x_widget_instantiate): ditto.
13046         (x_tab_control_instantiate): ditto.
13047         (x_tab_control_update): ditto.
13048         * event-msw.c (mswindows_wnd_proc): ditto
13049
13050         * glyphs-widget.c (image_instantiator_layout): use
13051         subwindow_decode_domain.
13052         (image_instantiator_buttons): ditto.
13053         (image_instantiator_edit_fields): ditto.
13054         (image_instantiator_combo_box): ditto.
13055         (image_instantiator_scrollbar): ditto.
13056         (image_instantiator_progress_guage): ditto.
13057         (image_instantiator_tree_view): ditto.
13058         (image_instantiator_tab_control): ditto.
13059         (image_instantiator_labels): ditto.
13060         (image_instantiator_layout): ditto.
13061
13062         * glyphs.c: add instance error checking to many functions.
13063         (instantiate_image_instantiator): decode device from cache_domain.
13064         (image_instantiate): partially rewrite by using
13065         decode_image_instantiator_domain to determine what domain the
13066         instance needs to be cached in.
13067         (decode_image_instantiator_domain): new function. Determine what
13068         domain the image needs to be cached in.
13069         (check_window_subwindow_cache): new error checking function.
13070         (check_instance_cache_mapper): ditto.
13071         (check_image_instance_structure): ditto.
13072         (subwindow_decode_domain): new function. Encodes a window as a
13073         subwindow's cache domain.
13074         (image_instantiator_format_create): use it for text and
13075         subwindows.
13076
13077 2000-04-21  Andy Piper  <andy@xemacs.org>
13078
13079         * glyphs.c (image_instance_device): new function.
13080         (image_instance_frame): new function.
13081         (image_instance_window): new function.
13082         (image_instance_live_p): new function.
13083
13084         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13085         cache to nil.
13086
13087         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13088         (IMAGE_INSTANCE_DOMAIN): new accessor.
13089         (XIMAGE_INSTANCE_DOMAIN): ditto.
13090
13091         * glyphs-x.c (x_finalize_image_instance): device->domain.
13092
13093         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13094         (mswindows_finalize_image_instance): ditto.
13095
13096         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13097         (gif_instantiate): ditto.
13098         (png_instantiate): ditto.
13099         (tiff_instantiate): ditto.
13100
13101         * glyphs.c (instantiate_image_instantiator): use domain rather
13102         than device.
13103         (mark_image_instance): device -> domain.
13104         (print_image_instance): ditto.
13105         (finalize_image_instance): ditto.
13106         (image_instance_equal): ditto.
13107         (allocate_image_instance): ditto.
13108         (Fcolorize_image_instance): ditto.
13109         (query_string_geometry): ditto.
13110         (image_instantiate): ditto
13111         (query_string_font): ditto.
13112         (image_instantiate): ditto.
13113         (update_subwindow): ditto.
13114         (unmap_subwindow): ditto.
13115         (map_subwindow): ditto.
13116         (subwindow_instantiate): ditto.
13117
13118         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13119         (DOMAIN_FRAME): ditto.
13120         (DOMAIN_WINDOW): ditto.
13121         (DOMAIN_LIVE_P): ditto.
13122         (XDOMAIN_DEVICE): ditto.
13123         (XDOMAIN_FRAME): ditto.
13124         (XDOMAIN_WINDOW): ditto.
13125
13126         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13127         a valid specifier domain.
13128
13129 2000-04-19  Andy Piper  <andy@xemacs.org>
13130
13131         * glyphs-widget.c (syms_of_glyphs_widget): remove
13132         widget-callback-current-channel.
13133         (vars_of_glyphs_widget): ditto.
13134         * glyphs.h: ditto
13135
13136         * gui.c (get_gui_callback): revert to previous behaviour.
13137
13138 2000-04-18  Andy Piper  <andy@xemacs.org>
13139
13140         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13141         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13142         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13143
13144         * glyphs.c (image_instance_equal): add margin_width.
13145         (image_instance_hash): ditto.
13146
13147         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13148         (layout_query_geometry): ditto.
13149         (layout_layout): ditto.
13150         (syms_of_glyphs_widget): add margin-width.
13151         (image_instantiator_layout): allow margin-width.
13152
13153         * glyphs.c (update_widget_instances): make a normal function.
13154         (syms_of_glyphs): remove Qupdate_widget_instances.
13155         * glyphs.h: ditto.
13156
13157         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13158         so that we don't corrupt ideas about the last event or
13159         command. Remove widget-callback-current-channel fiddling.
13160         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13161
13162 2000-05-01  Martin Buchholz <martin@xemacs.org>
13163
13164         * XEmacs 21.2.33 is released.
13165
13166 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13167
13168         * make-src-depend: Allow dots in header file name.
13169
13170 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13171
13172         * mule-charset.h (struct charset_lookup): Add
13173         next_allocated_1_byte_leading_byte and
13174         next_allocated_2_byte_leading_byte.
13175         * mule-charset.c: Move above two variables so that those values
13176         will be dumped.
13177
13178 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13179
13180         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13181         when string length is zero.
13182         (find_charsets_in_emchar_string): Ditto.
13183
13184 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13185
13186         * lisp.h: extern Qdialog and Qmenubar.
13187
13188         * gui-x.c: added events.h.
13189                 also fixed typo which made the file uncompilable.
13190
13191         * general.c: Added Qmenubar and Qdialog
13192
13193 2000-04-28  Ben Wing  <ben@xemacs.org>
13194
13195         * frame-msw.c (mswindows_init_frame_1):
13196         * frame-msw.c (mswindows_mark_frame):
13197         * event-msw.c (mswindows_enqueue_dispatch_event):
13198         * console-msw.h:
13199         * console-msw.h (struct mswindows_frame):
13200         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13201         there are now three hash tables for callbacks.
13202         mswindows_enqueue_dispatch_event is no longer static.
13203
13204         * dialog-x.c (maybe_run_dbox_text_callback):
13205         * dialog-x.c (dbox_descriptor_to_widget_value):
13206         switch to new cons3 form for callbacks.
13207
13208         * glyphs-msw.c (mswindows_register_gui_item):
13209         * glyphs-msw.c (mswindows_widget_instantiate):
13210         * glyphs-msw.c (add_tree_item):
13211         * glyphs-msw.c (add_tab_item):
13212         new image instance parameter, so it can be passed to callback-ex.
13213         respect :callback-ex as well as :callback.
13214
13215         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13216         add :callback-ex.
13217
13218         * glyphs.c (print_image_instance):
13219         prettify, e.g. now prints widget type.
13220
13221         * gui-x.h:
13222         certain funs have new image instance parameter.
13223
13224         * gui.c:
13225         * gui.c (get_gui_callback):
13226         * gui.c (gui_item_add_keyval_pair):
13227         * gui.c (gui_item_init):
13228         * gui.c (gui_add_item_keywords_to_plist):
13229         * gui.c (mark_gui_item):
13230         * gui.c (gui_item_hash):
13231         * gui.c (gui_item_equal):
13232         * gui.c (copy_gui_item):
13233         * gui.c (syms_of_gui):
13234         recognize callback-ex in a number of places.
13235         also, fix the annoying "can't get out of yes-no dialog" bug.
13236
13237         * gui.h:
13238         * gui.h (struct Lisp_Gui_Item):
13239         recognize callback-ex in a number of places.
13240
13241         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13242         new parameter in button_item_to_widget_value.
13243
13244         * glyphs-x.c (x_update_widget):
13245         * glyphs-x.c (x_button_instantiate):
13246         * glyphs-x.c (x_button_update):
13247         * glyphs-x.c (x_progress_gauge_instantiate):
13248         * glyphs-x.c (x_edit_field_instantiate):
13249         * glyphs-x.c (x_combo_box_instantiate):
13250         * glyphs-x.c (x_tab_control_instantiate):
13251         * glyphs-x.c (x_label_instantiate):
13252         new image instance parameter in various places.
13253
13254         * event-Xt.c:
13255         * event-Xt.c (enqueue_Xt_dispatch_event):
13256         this fun gets exported.
13257
13258         * gui-msw.c:
13259         * gui-msw.c (mswindows_handle_gui_wm_command):
13260         handle both :callback and :callback-ex, and generate our own
13261         event because it's one of the callback-ex arguments.
13262
13263         * gui-x.c:
13264         * gui-x.c (popup_selection_callback):
13265         handle both :callback and :callback-ex, and generate our own
13266         event because it's one of the callback-ex arguments.
13267         * gui-x.c (button_item_to_widget_value):
13268         * gui-x.c (gui_items_to_widget_values_1):
13269         * gui-x.c (gui_item_children_to_widget_values):
13270         * gui-x.c (gui_items_to_widget_values):
13271         new image instance parameter in various places.
13272
13273         * fns.c (Freplace_list):
13274         fix small typo in doc string.
13275
13276         * lisp.h:
13277         declare enqueue_Xt_dispatch_event.
13278
13279 2000-04-28  Ben Wing  <ben@xemacs.org>
13280
13281         * buffer.c:
13282         * buffer.c (Frecord_buffer):
13283         * buffer.c (syms_of_buffer):
13284         delete record-buffer-hook.
13285
13286         * fns.c:
13287         * fns.c (Freplace_list):
13288         * fns.c (syms_of_fns):
13289         new primitive replace-list.
13290
13291         * frameslots.h:
13292         slot for old buffer-alist.
13293
13294         * lisp.h:
13295         exfun replace-list.
13296
13297         * redisplay.c:
13298         * redisplay.c (redisplay_frame):
13299         * redisplay.c (syms_of_redisplay):
13300         * redisplay.c (vars_of_redisplay):
13301         new hook buffer-list-changed-hook.
13302         call it.
13303
13304 2000-04-27  Ben Wing  <ben@xemacs.org>
13305
13306         * extents.h: extern in_modeline_generation.
13307
13308         * redisplay.c (generate_formatted_string_db): set
13309         in_modeline_generation.
13310
13311         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13312         flags if in modeline generation.  otherwise frame-modified-tick
13313         is ticked far too often.
13314         Declare in_modeline_generation.
13315
13316 2000-04-26  Ben Wing  <ben@xemacs.org>
13317
13318         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13319         option.
13320         (vars_of_emacs): add quick-build as an error-checking option.
13321         A bit kludgy, but there doesn't seem much point in creating
13322         a real var for this.
13323
13324         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13325
13326 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13327
13328         * redisplay.h (struct display_line): Add a new variable,
13329         line_continuation.
13330
13331         * redisplay.c (create_text_block): Set dl->line_continuation if
13332         the line continues.
13333         (create_string_text_block): Ditto.
13334         (regenerate_window_incrementally): Use line_continuation instead
13335         of searching continuation glyph.
13336         (add_margin_runes): Call add_glyph_rune.
13337         (add_glyph_rune): Handle margin glyph.
13338
13339 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13340
13341         * filelock.c (fill_in_lock_file_name):
13342         ANSIfy.
13343         Check for IS_ANY_SEP instead of '/'.
13344         (lock_file_1):
13345         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13346         Never check errno without first seeing that system call failed.
13347         (unlock_file): Add GCPRO.
13348         (Flock_buffer): Fix docstring.
13349         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13350
13351 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13352
13353         * sysdep.c (get_pty_max_bytes):
13354         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13355         strings longer than 252 bytes.
13356
13357         * md5.c: Unconditionally include ANSI header <limits.h>
13358
13359         * glyphs-x.c (convert_EImage_to_XImage):
13360         * lisp-union.h (union Lisp_Object):
13361         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13362
13363 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13364
13365         * filelock.c (current_lock_owner): Remove unused variable o, p.
13366
13367 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13368
13369         * callint.c: Remove multiply defined symbol Qlet
13370         (syms_of_callint): ditto.
13371
13372 2000-04-14  Andy Piper  <andy@xemacs.org>
13373
13374         * general.c (syms_of_general): add last-command, this-command, let
13375         and funcall.
13376
13377         * lisp.h: declare various symbols.
13378
13379         * glyphs.h: declare Qwidget_callback_current_channel;
13380
13381         * glyphs-widget.c (syms_of_glyphs_widget): add
13382         Qgui_callback_current_channel.
13383         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13384
13385         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13386         widget-callback-current-channel when invoking the interactive
13387         arg. Also bind last-command and next-command when invoking the
13388         widget updates.
13389         * gui-x.c (popup_selection_callback): ditto.
13390
13391         * gui.c (get_gui_callback): massage args so that we are always
13392         calling eval. This allows us to add our own variable bindings
13393         outside.
13394
13395         * glyphs-x.c (x_button_instantiate): use
13396         gui_items_to_widget_values since this is GC safe.
13397         (x_progress_gauge_instantiate): ditto.
13398         (x_edit_field_instantiate): ditto.
13399         (x_label_instantiate): ditto.
13400
13401         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13402         (emacs_Xt_event_widget_focus_out): new function
13403         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13404         focus.
13405         (emacs_Xt_event_add_widget_actions): new function. add focus
13406         functions as actions.
13407         (init_event_Xt_late): use it.
13408
13409 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13410
13411         * event-stream.c (Fdispatch_event): Doc fix.
13412
13413 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13414
13415         * postgresql.c: Remove all references to PQsetenv*.
13416
13417         * postgresql.h: Remove references to PGsetenvHandler object.
13418         * lrecord.h (lrecord_type): Ditto.
13419
13420 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13421
13422         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13423         real_heigh and real_width members, and accessor macros for these.
13424
13425         * glyphs-msw.c (init_image_instance_geometry): New function.
13426         (init_image_instance_from_dibitmap): Use it.
13427         (mswindows_resource_instantiate): Use it.
13428         (init_image_instance_from_xbm_inline): Use it.
13429         (mswindows_initialize_image_instance_mask): Use real bitmap
13430         geometry.
13431         (mswindows_create_resized_bitmap): Ditto.
13432         (mswindows_create_resized_mask): Ditto.
13433
13434         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13435         and bitmap to their surface size.
13436
13437 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13438
13439         * process-unix.c (unix_send_process): Guard against process MIA
13440         after Faccept_process_output.
13441
13442 2000-04-11  Ben Wing  <ben@xemacs.org>
13443
13444         * eval.c (unbind_to_hairy): fix brokenness introduced by
13445         nanosecond speed improvements.
13446
13447 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13448
13449         * sunplay.c (init_device): To play sounds correctly, the device
13450         apparently needs to be initialized at least once by XEmacs.  Make
13451         it so.
13452
13453 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13454
13455         * redisplay.c (add_margin_runes): Add text image glyph
13456           handling.
13457
13458 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13459
13460         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13461         gcc is newer than 2.5.
13462
13463 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13464
13465         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13466
13467         * fns.c (size_bit_vector):
13468         * alloc.c (size_vector):
13469         (make_vector_internal):
13470         (make_bit_vector_internal):
13471         (sweep_bit_vectors_1):
13472         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13473
13474 2000-04-06  Andy Piper  <andy@xemacs.org>
13475
13476         * gmalloc.c (malloc): undo previous change.
13477         (malloc): ditto.
13478         (free): ditto.
13479         (realloc): ditto.
13480
13481 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13482
13483         * line-number.c (buffer_line_number): Revert to former version.
13484
13485 2000-04-06  Andy Piper  <andy@xemacs.org>
13486
13487         * gmalloc.c (malloc): add error checking.
13488         (malloc): ditto.
13489         (free): ditto.
13490         (realloc): ditto.
13491
13492         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13493         button_item_to_widget_value arg.
13494
13495         * glyphs-x.c (x_button_instantiate): add extra
13496         button_item_to_widget_value arg.
13497         (x_progress_gauge_instantiate): ditto.
13498         (x_edit_field_instantiate): ditto.
13499         (x_label_instantiate): ditto.
13500
13501         * gui-x.c (gui_items_to_widget_values_1): add extra
13502         button_item_to_widget_value arg.
13503         (button_item_to_widget_value): add extra menu_item_p arg.
13504
13505         * gui-x.h: change signature of button_item_to_widget_value.
13506
13507         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13508         button_item_to_widget_value arg.
13509
13510 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13511
13512         * buffer.h (struct buffer): auto_save_modified should be long.
13513
13514 2000-04-05  Andy Piper  <andy@xemacs.org>
13515
13516         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13517         type.
13518         (button_query_geometry): give a little more room so that athena
13519         buttons fit.
13520
13521 2000-04-05  Andy Piper  <andy@xemacs.org>
13522
13523         * faces.c (complex_vars_of_faces): The widget face should inherit
13524         the font of the gui-element face.
13525
13526 2000-04-04  Andy Piper  <andy@xemacs.org>
13527
13528         * glyphs-x.c (x_button_update): new function. unconditionally
13529         update a button's state when the instance is dirty.
13530         (image_instantiator_format_create_glyphs_x): add x_button_update.
13531         (x_widget_instantiate): remove old resize cruft.
13532
13533 2000-04-02  Andy Piper  <andy@xemacs.org>
13534
13535         * frame.c (change_frame_size_1): The introduction of gutters means
13536         that we need to allow 0 as a potential frame dimension.
13537
13538 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13539
13540         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13541         image glyph if allow_cursor.
13542         (add_hscroll_rune): Don't allow cursor to border glyph.
13543         (create_text_block): Ditto.
13544
13545         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13546         text not in buffer.
13547         (redisplay_output_layout): Call ensure_face_cachel_complete for
13548         text image glyph.
13549
13550
13551 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13552
13553         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13554
13555         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13556         not in buffer
13557
13558         * redisplay-tty.c (tty_output_display_block): Delete the routine
13559         for text image glyph
13560         * redisplay-x.c (x_output_display_block): ditto
13561         * redisplay-msw.c (mswindows_output_display_block): ditto
13562
13563 2000-02-02  Mike Alexander  <mta@arbortext.com>
13564
13565         Note: Some of these were committed by accident as part of other
13566         patches.
13567
13568         * regex.c (regex_compile): Avoid compiler warnings.
13569
13570         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13571
13572         * nt.h: Declare term_ntproc correctly.
13573
13574         * nt.c: Remove incorrect declaration of get_home_directory which
13575         is declared correctly in lisp.h.
13576
13577         * keymap.c (get_keyelt): Avoid compiler warnings.
13578         (raw_lookup_key_mapper): Avoid compiler warnings.
13579
13580         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13581
13582         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13583
13584         * filemode.c (mode_string): Avoid compiler warnings.
13585
13586         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13587         avoid warning.
13588
13589         * events-mod.h: Undef some things that winuser.h defines differently.
13590
13591         * data.c (Faset): Avoid compiler warnings.
13592
13593         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13594
13595 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13596
13597         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13598         Fall through to simple beep on error.
13599         Replace "extern" by real header file.
13600
13601         * linuxplay.c: Use nativesound.h
13602         (play_sound_data): Return error code. Be less verbose on error.
13603
13604         * sunplay.c: Use nativesound.h
13605         (play_sound_data): Return error code. Be less verbose on error.
13606
13607         * ntplay.c: Use nativesound.h
13608         (play_sound_data): Return fake error code
13609
13610         * sgiplay.c: Use nativesound.h
13611         (play_sound_data): Return error code
13612
13613         * hpplay.c: Use nativesound.h, partially implement
13614         new error code. Break compilation until finished.
13615         (play_sound_data): error code.
13616
13617         * nativesound.h (play_sound_file):
13618           (play_sound_data): Prototype in new header.
13619
13620 2000-03-31  Andy Piper  <andy@xemacs.org>
13621
13622         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13623         for toggle and radio buttons.
13624         (image_instantiator_buttons): use it.
13625
13626 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13627
13628         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13629         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13630         found. Scrollbar event probably belonged to some old config.
13631
13632 2000-03-31  Andy Piper  <andy@xemacs.org>
13633
13634         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13635         than 1.
13636         (initialize_widget_image_instance): default layout to
13637         LAYOUT_HORIZONTAL rather than 0.
13638         (widget_instantiate): reverse the item list at the end rather than
13639         every iteration.
13640         (layout_layout): re-code for the border text at the front of the
13641         item list rather than at the end.
13642         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13643         provided by the user.
13644         (widget_query_geometry): comment.
13645
13646 2000-03-30  Andy Piper  <andy@xemacs.org>
13647
13648         * glyphs-widget.c (image_instantiator_layout): allow standard
13649         widget keywords in layouts.
13650
13651         * gutter.c (output_gutter): cope with nil gutter contents.
13652
13653         * frame.c (Fset_frame_properties): add gutter docs.
13654
13655 2000-03-29  Andy Piper  <andy@xemacs.org>
13656
13657         * toolbar-msw.c (TBSTYLE_FLAT): add.
13658         (mswindows_output_toolbar): minor fiddling.
13659
13660 2000-03-29  Andy Piper  <andy@xemacs.org>
13661
13662         * gutter.c (output_gutter): force gutter size recalculation if
13663         what we are trying to display won't fit.
13664         (update_gutter_geometry): new function. A per-gutter version of
13665         update_frame_gutter_geometry.
13666         (update_frame_gutter_geometry): use it.
13667         (redraw_exposed_gutter): add extra debugging output.
13668
13669 2000-03-28  Mike Alexander  <mta@arbortext.com>
13670
13671         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13672         (pdump_file_unmap): Implement it on Windows
13673         (pdump_file_get): Save alocated handles for pdump_file_unmap
13674
13675 2000-03-28  Andy Piper  <andy@xemacs.org>
13676
13677         * gui.c (get_gui_callback): treat Quit specially.
13678
13679 2000-03-27  Andy Piper  <andy@xemacs.org>
13680
13681         * glyphs.c (image_instantiate): be careful to check in the same
13682         way we assigned.
13683
13684 2000-03-27  Didier Verna  <didier@xemacs.org>
13685
13686         * config.h.in: define the proper SMART_INCLUDE macro.
13687         handle renaming of `foo_h_path' to `foo_h_file'.
13688
13689         * database.c: ditto.
13690
13691         * emacs.c: ditto.
13692
13693         * linuxplay.c: ditto.
13694
13695         * terminfo.c: ditto.
13696
13697         * tooltalk.h: ditto.
13698
13699 2000-03-27  Andy Piper  <andy@xemacs.org>
13700
13701         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13702         gets updated whenever the face might have changed.
13703
13704 2000-03-26  Mike Alexander  <mta@arbortext.com>
13705
13706         * dumper.c (pdump_resource_free): Fix the comment.
13707
13708 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13709
13710         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13711
13712 2000-03-22  Mike Alexander  <mta@arbortext.com>
13713
13714         * dumper.c: Include Windows headers on Windows
13715         (pdump_resource_free): Add a body to the function
13716         (pdump_load): exe_name -> exe_path and add some comments.
13717
13718 2000-03-25  Mike Alexander  <mta@arbortext.com>
13719
13720         * gui.c (copy_gui_item_tree): Return a value in all cases
13721
13722 2000-03-21  Didier Verna  <didier@xemacs.org>
13723
13724         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13725         lwlib/config.h.in.
13726         (SMART_INCLUDE): new macro.
13727         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13728         the proper location.
13729
13730         * postgresql.c: use it.
13731
13732         * inline.c: ditto.
13733
13734 2000-03-24  Andy Piper  <andy@xemacs.org>
13735
13736         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13737         do this.
13738
13739 2000-03-24  Andy Piper  <andy@xemacs.org>
13740
13741         * redisplay-output.c (compare_runes): use image_instance_changed
13742         to detect changes. Do not depend on glyphs_changed, only depend on
13743         dirtiness.
13744          (redisplay_output_layout): add debug messages.
13745         (compare_runes): ditto.
13746
13747         * glyphs.h: declare new functions.
13748         (struct Lisp_Image_Instance): remove percent and associated
13749         accessors.
13750
13751         * gui.h: declare new copying functions.
13752
13753         * gui.c (copy_gui_item_tree): new function.
13754         (copy_gui_item): new function.
13755         (gui_item_id_hash): revert to standard hash.
13756         (gui_item_hash): ditto.
13757         (gui_item_hash_internal): deleted.
13758         (mark_gui_item): mark value.
13759         (gui_item_add_keyval_pair): add value.
13760         (gui_item_init): ditto.
13761         (gui_add_item_keywords_to_plist): ditto.
13762         (gui_item_equal): ditto.
13763         (syms_of_gui): add Q_value.
13764
13765         * glyphs-x.c (x_progress_gauge_update): use pending items and
13766         value for setting the state.
13767         (x_update_widget): don't set items from pending here.
13768
13769         * glyphs-widget.c (update_widget): update items here.
13770         (progress_gauge_set_property): use items for storing value. Put
13771         new value in pending items.
13772
13773         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13774         items for new value. Convert percent -> value.
13775         (mswindows_tab_control_update): don't update items here.
13776
13777         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13778         (update_subwindow): ditto.
13779         (image_instance_changed): new function. Compare hash values and
13780         past and present widget items.
13781         (image_instantiate): We more careful about where we instantiate
13782         things.
13783         (image_instantiate): add error checking.
13784
13785         * gutter.c (syms_of_gutter): use -hook.
13786
13787 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13788
13789         * console-tty.c (Fset_console_tty_input_coding_system): Use
13790         Qkeyboard.
13791         (Fset_console_tty_output_coding_system): Use Qterminal.
13792         (tty_init_console): Use Qkeyboard and Qterminal.
13793
13794 2000-03-21  Ben Wing  <ben@xemacs.org>
13795
13796         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13797         From Mike Alexander <mta@arbortext.com>.
13798
13799 2000-03-21  Ben Wing  <ben@xemacs.org>
13800
13801         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13802         process brokenness.  Proper implementation to come.
13803         * callproc.c:
13804         Rename call-process-internal to old-call-process-internal.
13805         New impl. in process.el.
13806
13807 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13808
13809         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13810
13811 2000-03-20  Andy Piper  <andy@xemacs.org>
13812
13813         * glyphs.c (full_list_hash): make hashes of the same elements in
13814         different orders return different values.
13815
13816 2000-03-20  Martin Buchholz <martin@xemacs.org>
13817
13818         * XEmacs 21.2.32 is released.
13819
13820 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13821
13822         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13823         (DFC_MALLOC_USE_CONVERTED_DATA):
13824         Add aliasing-safe casts to allow use with char* or unsigned char*
13825         lvalues.
13826
13827         * eldap.c (Fldap_open):
13828         (Fldap_search_basic):
13829         (Fldap_add):
13830         (Fldap_modify):
13831         Make C++-compilable.
13832         Make sure GCPRO'ed variables are initialized.
13833         Use temp variables to avoid repeated calls to Flength.
13834
13835 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13836
13837         * sysfile.h:
13838         Make sure PATH_MAX is always defined.
13839         Include limits.h for PATH_MAX.
13840         Deprecate use of MAXPATHLEN.
13841
13842 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13843
13844         * emacs.c: Add reinit_vars_of_fileio.
13845         * symsinit.h: Add reinit_vars_of_fileio.
13846         * fileio.c (reinit_vars_of_fileio): New.
13847         * fileio.c (Fmake_temp_name):
13848         Initialize temp_name random number from microseconds to make
13849         collisions even less likely.  Initialize always at process startup
13850         time.  (make-temp-name) used to return the same file name twice in
13851         a row when PDUMP.
13852         Random stylistic fiddling.
13853         Comment fixes.
13854
13855 2000-03-20  Andy Piper  <andy@xemacs.org>
13856
13857         * glyphs.c (image_instantiate): allow text glyphs to be
13858         instantiated in the minibuffer window.
13859
13860 2000-03-19  Andy Piper  <andy@xemacs.org>
13861
13862         * glyphs.c (image_instance_hash): be careful about which items we
13863         hash on.
13864
13865         * glyphs-widget.c (tab_control_set_property): record into pending
13866         items rather than the actual items.
13867
13868         * glyphs-x.c (x_update_widget): use pending items to update with.
13869
13870         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13871         to update with.
13872
13873         * glyphs.c (mark_image_instance): mark pending items.
13874
13875         * window.c (Fset_window_configuration): record the buffer.
13876         (Fselect_window): totally revert previous change which breaks many
13877         things.
13878
13879 2000-03-18  Andy Piper  <andy@xemacs.org>
13880
13881         * glyphs-msw.c (mswindows_tab_control_update): force selected
13882         item.
13883
13884         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13885         window domain cache, otherwise we get inconsistencies at
13886         startup. There is something fishy at startup which can lead to the
13887         minibuffer being the selected window when the gutter content is
13888         instantiated.
13889
13890         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13891         gcpros.
13892         (parse_gui_item_tree_children): ditto.
13893         (parse_gui_item_tree_item): ditto.
13894
13895         * glyphs.c (Fupdate_widget_instances): return something.
13896
13897 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13898
13899         * window.c (Fselect_window): Undo 2000-03-17 change.
13900
13901 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13902
13903         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13904         against v7.0 libraries.  Insta-coredump city until the postgres
13905         folks fix it.
13906
13907 2000-03-17  Andy Piper  <andy@xemacs.org>
13908
13909         * faces.c (complex_vars_of_faces): don't give the widget face an
13910         inherited background pixmap.
13911
13912         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13913         selected item.
13914
13915         * event-stream.c (Fdispatch_non_command_events): return something.
13916
13917         * gutter.c (output_gutter): use widget face.
13918         (clear_gutter): ditto.
13919
13920         * NEWS: adjust again.
13921
13922         * window.c (Fselect_window): make sure this runs to completion to
13923         avoid oddities with Fset_window_configuration.
13924         (Fcurrent_window_configuration): in general do not save the
13925         minibuffer as the selected window.
13926
13927         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13928
13929 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13930
13931         * emacs.c (Frunning_temacs_p): Revert previous patch.
13932         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13933
13934 2000-03-16  Andy Piper  <andy@xemacs.org>
13935
13936         * glyphs-x.c (x_tab_control_update): if no widget values then
13937         return.
13938
13939         * NEWS: update for new features.
13940
13941         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13942         synthetic event to the native system.
13943         (reinit_vars_of_event_Xt): set force_event_pending to
13944         emacs_Xt_force_event_pending.
13945
13946         * events.h (struct event_stream): add force_event_pending.
13947
13948         * specifier.c (recompute_one_cached_specifier_in_window): add
13949         comment.
13950
13951         * redisplay.c (redisplay_frame): don't call
13952         update_frame_subwindows. Reset subwindow cachels when
13953         subwindows_changed, removing this was an optimization too far.
13954
13955         * redisplay-output.c (compare_runes): reorganize so that we catch
13956         glyph changes when we want them. Set optimize_output when this
13957         would help layouts.
13958         (redisplay_output_layout): remove frame_really_changed, use
13959         optimize_output instead.
13960
13961         * redisplay-msw.c (mswindows_output_display_block): reset
13962         optimize_output after outputting a glyph.
13963         * redisplay-x.c (x_output_display_block): ditto.
13964         * redisplay-tty.c (tty_output_display_block): ditto.
13965
13966         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13967         functions.
13968         (gutter_specs_changed): do specific gutter positions.
13969         (top_gutter_specs_changed): new function. Only update the
13970         specified gutter specs.
13971         (bottom_gutter_specs_changed): ditto.
13972         (left_gutter_specs_changed): ditto.
13973         (right_gutter_specs_changed): ditto.
13974
13975         * gui.c (gui_item_hash_internal): new function, does a real hash.
13976         (gui_item_id_hash): use it.
13977         (gui_item_hash): hash the eval'ed gui_item.
13978
13979         * gui-x.c (popup_selection_callback): send an eval event to call
13980         Fupdate_widget_instances.
13981
13982         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13983         to call Fupdate_widget_instances.
13984
13985         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13986         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13987
13988         * glyphs.c: (update_frame_subwindows): deleted.
13989         (Fupdate_widget_instances): new function for updating the dirty
13990         state of widgets that might have changed.
13991         (syms_of_glyphs): add Qupdate_widget_instances.
13992         (full_list_hash): hash a list completely.
13993         (image_instance_hash): use it for items and properties.
13994
13995         * frame-msw.c (mswindows_size_frame_internal): remove unused
13996         variable.
13997
13998         * faces.h (struct face_cachel): fix comment.
13999
14000         * event-stream.c (Fdispatch_non_command_events): new
14001         function. Process non-command events, forcing an event cycle
14002         beforehand.
14003         (syms_of_event_stream): declare.
14004         (event_stream_force_event_pending): new function. Force an event
14005         on the native event queue so that an event cycle will occur next
14006         time we check.
14007
14008         * event-msw.c:
14009         (struct ntpipe_shove_stream):
14010         (mswindows_enqueue_dispatch_event):
14011         (mswindows_dequeue_dispatch_event):
14012         (mswindows_cancel_dispatch_event):
14013         (mswindows_pump_outstanding_events):
14014         (mswindows_drain_windows_queue):
14015         (mswindows_handle_paint):
14016         (mswindows_wnd_proc):
14017         (mswindows_key_to_emacs_keysym):
14018         (get_process_input_waitable):
14019         (emacs_mswindows_delete_stream_pair): re-indent file.
14020         (mswindows_need_event): do not process further fds if the windows
14021         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14022         fixes the 100% cpu problem.
14023         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14024
14025 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14026
14027         * alloc.h: New.
14028         * dumper.h: New.
14029         * dumper.c: New.
14030
14031         * emacs.c: Moved dump file searching to dumper.c.
14032         (Frunning_temacs_p): Fixed.
14033
14034         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14035         last_lrecord_type_index_assigned.
14036
14037 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14038
14039         * symsinit.h: Added reinit parameter to init_console_stream
14040         declaration.
14041
14042         * lisp.h: Added file parameter to pdump_load declaration.
14043
14044         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14045         support.  Added dump file searching.
14046
14047         * config.h.in: Added EMACS_PROGNAME.
14048
14049         * console-stream.c (init_console_stream): Fix reinitialisation
14050         when running from temacs.
14051
14052         * alloc.c (pdump): Add id support.
14053         (pdump_load): Add file parameter and signature/id support.
14054
14055         * Makefile.in.in: Add full pdump support.
14056
14057 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14058
14059         * postgresql.c: Update documentation to reflect latest code
14060         status.
14061         (print_result): Show tuple counts in printed representation when
14062         appropriate.
14063         (Fpq_put_nbytes): MULE-ize.
14064         (Fpq_get_line_async): Ditto.
14065
14066 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14067
14068         * postgresql.c (Fpq_lo_import): Fix return value.
14069         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14070
14071 2000-03-13  Ben Wing  <ben@xemacs.org>
14072
14073         * alloc.c (pdump_load):
14074         Fix compile warning under mswin.
14075
14076 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14077
14078         * postgresql.c: Mule-ization, bug fixes.
14079         Use PG_CODING to encapsulate coding system name changes.
14080         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14081         (pg-coding-system): Create.
14082
14083         (Fpq_conn_defaults): Mule-ize.
14084         (Fpq_connectdb): Mule-ize & bug fix.
14085         (Fpq_connect_start): Mule-ize.
14086         (Fpq_set_client_encoding): Mule-ize.
14087         (Fpq_finish): Document `DEAD' connection status.
14088         (Fpq_clear): Ditto.
14089         (Fpq_pgconn): Mule-ize.
14090         (Fpq_exec): Mule-ize & bug fix.
14091         (Fpq_send_query): Ditto.
14092         (Fpq_get_result): Ditto.
14093         (Fpq_res_status): Mule-ize.
14094         (Fpq_result_error_message): Mule-ize.
14095         (Fpq_ntuples): fix comments.
14096         (Fpq_fname): Mule-ize.
14097         (Fpq_fnumber): Mule-ize.
14098         (Fpq_ftype): fix comments.
14099         (Fpq_get_value): Mule-ize.
14100         (Fpq_cmd_status): Ditto.
14101         (Fpq_cmd_tuples): Ditto.
14102         (Fpq_oid_value): Ditto.
14103         (Fpq_notifies): Ditto.
14104         (Fpq_lo_import): Ditto.
14105         (Fpq_lo_export): Ditto.
14106         (Fpq_get_line): Ditto.
14107         (Fpq_put_line): Mule-ize and bug fix.
14108         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14109
14110 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14111
14112         * postgresql.c (vars_of_postgresql): Mule-ize.
14113         (Fpq_conn_defaults): Ditto.
14114
14115 2000-03-12  Ben Wing  <ben@xemacs.org>
14116
14117         * alloc.c (Fmake_byte_code):
14118         * alloc.c (debug_string_purity_print):
14119         * alloc.c (pdump_backtrace):
14120         * alloc.c (pdump_get_indirect_count):
14121         * alloc.c (pdump_register_sub):
14122         * alloc.c (pdump_register_object):
14123         * alloc.c (pdump_register_struct):
14124         * alloc.c (pdump_dump_data):
14125         * alloc.c (pdump_reloc_one):
14126         Minor cleanups.
14127
14128         * console-msw.c:
14129         * console-msw.c (GetConsoleHwnd):
14130         * console-msw.c (msw_hide_console):
14131         * console-msw.c (msw_show_console):
14132         * console-msw.c (msw_ensure_console_buffered):
14133         * console-msw.c (msw_output_console_string):
14134         * console-msw.c (console_type_create_mswindows):
14135
14136         a) Added functions to manipulate the console window for use with
14137         shell support.
14138
14139         b) Added support for writing text to the console, which is now
14140         used under Windows when xemacs is not being run non-interactively,
14141         to write text that would otherwise be destined for stdout because
14142         under these circumstances, text written to stdout tends to
14143         disappear and not be seen.
14144
14145         * console-msw.h:
14146         * event-Xt.c:
14147         * event-Xt.c (x_event_to_emacs_event):
14148         * event-Xt.c (describe_event_window):
14149         * events-mod.h (XEMACS_MOD_CONTROL):
14150         * events.c:
14151         * events.c (Fmake_event):
14152         * events.c (character_to_event):
14153         * events.c (event_to_character):
14154         * events.c (format_event_object):
14155         * events.c (Fevent_modifiers):
14156         * events.h:
14157         * events.h (struct key_data):
14158         * events.h (struct button_data):
14159         * events.h (struct misc_user_data):
14160         * frame-x.c (Fcde_start_drag_internal):
14161         * frame-x.c (Foffix_start_drag_internal):
14162         * gpmevent.c (Freceive_gpm_event):
14163         * keymap.c:
14164         * keymap.c (bucky_sym_to_bucky_bit):
14165         * keymap.c (control_meta_superify):
14166         * keymap.c (make_key_description):
14167         * keymap.c (keymap_lookup_directly):
14168         * keymap.c (create_bucky_submap):
14169         * keymap.c (keymap_store):
14170         * keymap.c (define_key_check_and_coerce_keysym):
14171         * keymap.c (define_key_parser):
14172         * keymap.c (define_key_alternate_name):
14173         * keymap.c (Fdefine_key):
14174         * keymap.c (raw_lookup_key_mapper):
14175         * keymap.c (struct map_keymap_unsorted_closure):
14176         * keymap.c (map_keymap_unsorted_mapper):
14177         * keymap.c (map_keymap_sort_predicate):
14178         * keymap.c (map_keymap_sorted):
14179         * keymap.c (accessible_keymaps_mapper_1):
14180         * keymap.c (where_is_recursive_mapper):
14181         * keymap.c (describe_map_mapper):
14182         * keymap.c (describe_map_sort_predicate):
14183         * keymap.c (describe_map):
14184         * keymap.c (complex_vars_of_keymap):
14185         And a number of other files, the key modifier preprocessor
14186         constants that xemacs uses have names that conflict with constants
14187         defined under MS Windows for other purposes, so they were renamed
14188         to begin with the prefix XEMACS_. The variables that hold such
14189         modifiers were changed to consistently be of type int to fix
14190         various compile warnings.
14191
14192         * console.c (complex_vars_of_console):
14193         * device.c:
14194         * device-msw.c:
14195         * device-msw.c (mswindows_finish_init_device):
14196         * device-msw.c (msw_get_workspace_coords):
14197         * device-msw.c (mswindows_device_system_metrics):
14198         and various other files, added support for a new
14199         device property called offset-workspace which returns the position
14200         of the upper left corner of the workspace area and goes along with
14201         the existing size-workspace property.
14202
14203         * dialog-msw.c:
14204         * dialog-msw.c (push_bufbyte_string_as_unicode):
14205         * dialog-msw.c (mswindows_popup_dialog_box):
14206         Added support for XEmacs-style accelerator specifications in
14207         button text.  Note: I didn't add support for this under X Windows,
14208         and somebody needs to do this.
14209
14210         * dialog.c:
14211         * dialog.c (Fpopup_dialog_box):
14212         Documented the support for accelerators that was just mentioned.
14213
14214         editfns.c (get_home_directory): Changed behavior under Windows
14215         when HOME not defined; former behavior was irretrievably broken.
14216
14217         * emacs.c:
14218         * emacs.c (main_1):
14219         * emacs.c (main):
14220         * minibuf.c (clear_echo_area_internal):
14221         * minibuf.c (echo_area_append):
14222         * print.c:
14223         * print.c (std_handle_out_external):
14224         * print.c (std_handle_out_va):
14225         * print.c (fatal):
14226         * print.c (write_string_to_stdio_stream):
14227         * print.c (output_string):
14228         * print.c (debug_print):
14229         * print.c (debug_backtrace):
14230         * print.c (debug_short_backtrace):
14231         Cleaned up the code that prints text to stdout so that this can be
14232         changed to output into a console window instead under MS Windows,
14233         as described above.
14234
14235         * eval.c:
14236         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14237         * eval.c (internal_catch):
14238         * eval.c (unwind_to_catch):
14239         * eval.c (throw_or_bomb_out):
14240         * eval.c (condition_case_1):
14241         * eval.c (signal_1):
14242         * eval.c (check_error_state_sanity):
14243         * eval.c (call_with_suspended_errors_1):
14244         * eval.c (call_with_suspended_errors):
14245         * eval.c (reinit_vars_of_eval):
14246         Added code to catch throw loops and check for a pesky bug that may
14247         be gone now.
14248
14249         * event-msw.c:
14250         * event-msw.c (key_needs_default_processing_p):
14251         * event-msw.c (mswindows_wnd_proc):
14252         * event-msw.c (mswindows_modifier_state):
14253         * event-msw.c (emacs_mswindows_quit_p):
14254         * event-msw.c (vars_of_event_mswindows):
14255         a) Added support for using the alt key to select menu items as is
14256         standard under MS Windows.  This is controlled using the variable
14257         menu-accelerator-enabled, just like under X Windows.  There is an
14258         option on the options menu to turn this support on.  I really
14259         think that it should be on by default under Windows, but I'm not
14260         going to make this change yet.
14261
14262         b)  Added support for dynamic display size changes under Windows.
14263
14264         * event-stream.c:
14265         * event-stream.c (maybe_echo_keys):
14266         * event-stream.c (Fnext_event):
14267         * event-stream.c (command_builder_find_leaf):
14268         * event-stream.c (lookup_command_event):
14269         * event-stream.c (execute_command_event):
14270         * event-stream.c (pre_command_hook):
14271         * event-stream.c (post_command_hook):
14272         * event-stream.c (syms_of_event_stream):
14273         * event-stream.c (vars_of_event_stream):
14274         * event-stream.c (complex_vars_of_event_stream):
14275         * events.h (struct command_builder):
14276
14277         a) Tried to clean up a little bit the horribly written x-specific
14278         accelerator code that crept into this file.  I moved this code
14279         into menubar-x.c where it belongs. I also needed to move the
14280         command builder structure into the file events.h because it is
14281         accessed directly by this accelerator code.  What I didn't do, but
14282         which should be done at some point, is to properly abstract this
14283         code using device methods instead of the kludgy way that it
14284         currently hooks into the event code.
14285
14286         b) Added the lisp variables this-command-properties and
14287         last-command- properties, which should be used to synchronize two
14288         adjacent commands in preference to playing games with the variable
14289         this-command, which is typically what happens.
14290
14291         c) Added some slightly nasty code to hook into the lisp support
14292         for shifted- motion-key selection.  This is actually necessary for
14293         somewhat complicated reasons, which are described in
14294         simple.el. (NB: I think the proper thing would be to have the code
14295         that calls the pre and post command hooks also call out to generic
14296         lisp functions in simple.el, where all built-in stuff could be
14297         added.  I will think about this more.)
14298
14299         * event-unixoid.c (poll_fds_for_input):
14300         * lread.c (readchar):
14301         * redisplay-tty.c (tty_clear_frame):
14302         * redisplay-x.c (x_get_gc):
14303         * signal.c (interrupt_signal):
14304         And a whole bunch of other files: fixed up places that printed
14305         directly to stderr to instead call the function stderr_out so that
14306         the changes I made under Windows work correctly.
14307
14308         * filemode.c (mode_string):
14309         Warning fixes.
14310
14311         * frame-msw.c:
14312         * frame-msw.c (mswindows_size_frame_internal):
14313         Fixed the computation of frame size and position to keep the frame
14314         within the workspace area, rather than within the physical
14315         dimensions of the screen, so that the frame doesn't overlap window
14316         manager decorations, such as the start menu and toolbar, typically
14317         at the bottom of the screen.
14318
14319         * frame.c (vars_of_frame):
14320         Changed the default frame title format under MS Windows to consist
14321         of buffername-XEmacs, which is standard under MS Windows.  I think
14322         it might be a good idea to change this everywhere because I think
14323         it is superior to the current frame title format, but this is the
14324         kind of change that is likely to cause some people to get annoyed,
14325         so I'm not making it.
14326
14327         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14328
14329         * gui-msw.c (mswindows_handle_gui_wm_command):
14330         Fixed compile warnings.
14331
14332         * gui-x.c:
14333         * gui-x.c (strdup_and_add_accel):
14334         * gui-x.c (button_item_to_widget_value):
14335         * gui-x.h:
14336         Added code to automatically put an accelerator onto the beginning
14337         of menu items that don't have one as is now the standard, and is
14338         described more later.  Also fixed things so that the menu item
14339         name can be an evaluated expression, again a new standard.
14340
14341         * gui.c:
14342         * gui.c (gui_item_add_keyval_pair):
14343         * gui.c (make_gui_item_from_keywords_internal):
14344         * gui.c (gui_add_item_keywords_to_plist):
14345         * gui.c (gui_item_accelerator):
14346         * gui.c (gui_name_accelerator):
14347         * gui.c (gui_item_included_p):
14348         * gui.c (gui_item_display_flush_left):
14349         * gui.c (gui_item_display_flush_right):
14350         * gui.c (parse_gui_item_tree_item):
14351         * gui.c (parse_gui_item_tree_children):
14352         * gui.c (parse_gui_item_tree_list):
14353         Mule-ized.  Cleanup.  GCPRO addition.
14354
14355         * line-number.c (buffer_line_number):
14356         * lisp.h:
14357         * lisp.h (EMACS_INT_MAX):
14358         Added the manifest constant EMACS_INT_MIN corresponding to the
14359         existing constant EMACS_INT_MAX.  This is partially to fix compile
14360         warnings under Windows, and partly for cleanliness.
14361
14362         * menubar-msw.c:
14363         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14364         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14365         * menubar-msw.c (displayable_menu_item):
14366         * menubar-msw.c (populate_menu_add_item):
14367         * menubar-msw.c (populate_or_checksum_helper):
14368         * menubar-msw.c (populate_menu):
14369         * menubar-msw.c (update_frame_menubar_maybe):
14370         * menubar-msw.c (prune_menubar):
14371         * menubar-msw.c (msw_char_is_accelerator):
14372         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14373         * menubar-msw.c (mswindows_handle_wm_command):
14374         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14375         * menubar-msw.c (mswindows_handle_wm_initmenu):
14376         * menubar-msw.c (mswindows_update_frame_menubars):
14377         * menubar-msw.c (mswindows_free_frame_menubars):
14378         * menubar-msw.c (mswindows_popup_menu):
14379         Fixed a bug in handling accelerators where an extra character
14380         would be displayed in the menu item.  Also generalized the
14381         function displayable_menu_item because it is now used by the
14382         dialog box code as well.  And finally, added code in the functions
14383         that create the menubar to extract a list of accelerators for the
14384         top level menubar, which is used in the event code to determine
14385         whether a particular alt-key combination should be used to invoke
14386         a menu item, or should be passed through to access the standard
14387         XEmacs keymap binding for this key combination.
14388
14389         Much needed GCPROing.
14390
14391         * menubar-x.c:
14392         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14393         * menubar-x.c (menu_item_descriptor_to_widget_value):
14394         * menubar-x.c (restore_in_menu_callback):
14395         * menubar-x.c (x_popup_menu):
14396         * menubar-x.c (menu_move_up):
14397         * menubar-x.c (menu_move_down):
14398         * menubar-x.c (menu_move_left):
14399         * menubar-x.c (menu_move_right):
14400         * menubar-x.c (menu_select_item):
14401         * menubar-x.c (command_builder_operate_menu_accelerator):
14402         * menubar-x.c (menu_accelerator_junk_on_error):
14403         * menubar-x.c (command_builder_find_menu_accelerator):
14404         * menubar-x.c (Faccelerate_menu):
14405         * menubar.h:
14406         Moved a whole bunch of code here that was previously in
14407         event-stream.c as described above.  There is also code connected
14408         to the new standard of adding an accelerator to the beginning of
14409         menu items that don't have one as described above and below.
14410
14411         * menubar.c:
14412         * menubar.c (menu_parse_submenu_keywords):
14413         * menubar.c (Fmenu_find_real_submenu):
14414         * menubar.c (Fnormalize_menu_item_name):
14415         * menubar.c (syms_of_menubar):
14416         * menubar.c (vars_of_menubar):
14417         * menubar.c (complex_vars_of_menubar):
14418
14419         a) Cleaned up a bunch of documentation and improved it.
14420
14421         b) XEmacs now automatically adds an accelerator onto the beginning
14422         of any menu items that don't have one.  I did this because there
14423         will inevitably be some menu items on the main menubar that don't
14424         have accelerators on them because the package that adds that
14425         particular menu item hasn't yet been fixed up to have accelerators
14426         in them and it looked rather strange to have some items with and
14427         some items without accelerators, especially since even in items
14428         without accelerators, you can, at least under windows, still
14429         access the item through an accelerator corresponding to the first
14430         character in the item's name.  If people don't like this behavior,
14431         I can add a variable to turn it off optionally, but I'm not sure
14432         this is a good idea because we really do need to have accelerators
14433         on all of the menu items, and if a package doesn't like the
14434         accelerators being put on the first character, then it should put
14435         the accelerators where they belong.
14436
14437         c) I made a behavior change, which is that the descriptor that
14438         specifies the text of the menu item, which formerly was just a
14439         string, can now also be an evaluated expression.  This makes this
14440         descriptor parallel with all of the others, which could also be
14441         evaluated expressions.  This also obviates the need for the
14442         keyword :label, which was previously listed in the documentation
14443         as unimplemented, and which was for the same purpose.
14444
14445         d) GCPROing.
14446
14447         * ntproc.c:
14448         * ntproc.c (new_child):
14449         * ntproc.c (sys_spawnve):
14450         * ntproc.c (find_child_console):
14451         * ntproc.c (sys_kill):
14452         Fixed compile warnings.  By the way, this file should really go
14453         away entirely, and this will happen as soon as Kirill makes his
14454         final round of process cleanups, which affect the function
14455         call-process.
14456
14457         * process-nt.c:
14458         * process-nt.c (struct nt_process_data):
14459         * process-nt.c (find_process_from_pid):
14460         * process-nt.c (send_signal_the_nt_way):
14461         * process-nt.c (enable_child_signals):
14462         * process-nt.c (find_child_console):
14463         * process-nt.c (send_signal_the_95_way):
14464         * process-nt.c (nt_finalize_process_data):
14465         * process-nt.c (ensure_console_window_exists):
14466         * process-nt.c (nt_create_process):
14467         * process-nt.c (nt_kill_child_process):
14468         * process-nt.c (nt_kill_process_by_pid):
14469         * process-nt.c (nt_open_network_stream):
14470         * process-nt.c (vars_of_process_nt):
14471         Copied over code from Emacs 20.5 to correctly send signals to sub-
14472         processes under Windows 95.  Also added code to automatically
14473         create and hide console window when a sub-process is created under
14474         Windows 95, which obviates the need for the separate runemacs.exe
14475         executable, and finally implemented some variables that were
14476         implemented in Emacs 20.5, but previously not in XEmacs.  These
14477         include mswindows- start-process-share-console and
14478         mswindows-start-process-inherit-error-mode. (Both of these only
14479         apply to Windows 95.)
14480
14481         * regex.c (regex_compile): Fixed a compile warning.
14482
14483         * select-msw.c:
14484         * select-msw.c (mswindows_own_selection):
14485         * select-msw.c (mswindows_get_foreign_selection):
14486         * select-msw.c (mswindows_disown_selection):
14487         * select-msw.c (console_type_create_select_mswindows):
14488         * select-msw.c (syms_of_select_mswindows):
14489         Cleaned up the file and implemented the device method
14490         selection_exists_p, which had accidentally been left out.  Also
14491         removed four lisp functions that were remnants from before the
14492         time when the selection code was properly device abstracted.
14493         These functions are no longer needed because there are generic
14494         equivalents, and because they were added recently and don't exist
14495         in FSF Emacs, I don't think there's any problem with just deleting
14496         them.
14497
14498         * sysdep.c:
14499         * sysdep.c (sys_subshell):
14500         Fixed a compile warning, although in this case there's probably
14501         something wrong with this code, and it ought to be looked into
14502         more thoroughly by somebody who understands it.
14503
14504         * window.c:
14505         * window.c (Fwindow_text_area_height):
14506         * window.c (Fwindow_width):
14507         * window.c (Fwindow_full_width):
14508         * window.c (Fwindow_pixel_width):
14509         * window.c (debug_print_window):
14510         * window.c (syms_of_window):
14511         Added functions window-text-area-height and window-full-width,
14512         which are functions for returning various width and height
14513         characteristics of a window. (One of these functions is necessary
14514         for making the file dialog box work correctly, and the other one
14515         was added for completeness.)  Also added a table to the
14516         documentation for window-height which describes the entire scheme
14517         for accessing width and height characteristics of a window.
14518
14519 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14520
14521         * nt.c (fstat): Added a comment for another problem with
14522         non-encapsulated [f]stat(), reported by Adrian Aichner
14523         <aichner@ecf.teradyne.com>.
14524
14525 2000-03-11  Andy Piper  <andy@xemacs.org>
14526
14527         * window.c (make_dummy_parent): initialize subwindow instance
14528         cache.
14529         (Fset_window_configuration): zero extent_modiff.
14530
14531 2000-03-10  Andy Piper  <andy@xemacs.org>
14532
14533         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14534         more changes can be triggered.
14535         (Fredisplay_frame): ditto.
14536         (Fredraw_device): ditto.
14537         (Fredisplay_device): ditto.
14538         (redisplay_frame): make non-static.
14539         (redisplay_frame): call update_frame_gutter_geometry outside of
14540         display proper.
14541
14542         * gutter.h: declare update_frame_gutter_geometry.
14543
14544         * redisplay.h: declare redisplay_frame.
14545
14546         * gutter.c (update_frame_gutter_geometry): move geometry changes
14547         in update_frame_gutters here. Geometry changes can only occur
14548         outside of redisplay.
14549         (update_frame_gutters): remove geometry change code.
14550         (Fredisplay_gutter_area): make sure that we are in display when we
14551         update and that we have flushed any size changes.
14552
14553 2000-03-11  Andy Piper  <andy@xemacs.org>
14554
14555         * alloc.c (pdump_dump_data): remove i & count shadows.
14556
14557 2000-02-27  Mike Alexander  <mta@arbortext.com>
14558
14559         * sysdep.h: Declare pdump_read_file
14560
14561         * sysdep.c (pdump_read_file): New function
14562
14563         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14564         dump data
14565
14566 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14567
14568         * lrecord.h: add `lrecord_type_pgsetenv'.
14569
14570 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14571
14572         * symsinit.h: declare (vars|syms)_of* functions.
14573         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14574
14575 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14576
14577         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14578
14579         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14580         GCCs.
14581
14582         * emacs.c (main_1): Call postgres initialization code.
14583
14584         * postgresql.h: New file.  PostgreSQL RDBMS support.
14585         * postgresql.c: New file.
14586
14587 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14588
14589         * redisplay-output.c (redisplay_output_display_block): Disable
14590         redundant code.
14591
14592 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14593
14594         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14595         (Fcanna_henkan_next): Ditto.
14596         (Fcanna_bunsetu_henkou): Ditto.
14597         (Fcanna_henkan_kakutei): Ditto.
14598         (Fcanna_henkan_end): Ditto.
14599         (Fcanna_henkan_quit): Ditto.
14600         (Fcanna_henkan_next): Set retun value correctly.
14601         (c2mu): Use unsigned char instead of signed char.
14602
14603 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14604
14605         * emacs.c (main_1): Always call syms_of_gui.
14606         * inline.c: include gui.h
14607
14608 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14609
14610         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14611         converted to Lisp_Object.
14612         (Qtop_bottom): New variable.
14613         (syms_of_redisplay): Initialize it.
14614         * redisplay.h (Vvisible_bell): Ditto.
14615         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14616         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14617         only flash top and bottom.
14618
14619 2000-03-08  Andy Piper  <andy@xemacs.org>
14620
14621         * buffer.c (Frename_buffer): record new buffer name the right way.
14622
14623 2000-03-08  Andy Piper  <andy@xemacs.org>
14624
14625         * glyphs.c (update_subwindow): increase hash depth so that widget
14626         items get picked up properly.
14627
14628         * redisplay-output.c (compare_runes): increase hash depth so that
14629         widget items get picked up properly.
14630
14631 2000-03-08  Andy Piper  <andy@xemacs.org>
14632
14633         * gutter.c (output_gutter): add some debug.
14634
14635         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14636         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14637         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14638
14639         * redisplay-output.c (compare_runes): use display_hash to
14640         determine if glyphs really are not the same.
14641
14642         * glyphs.c (update_subwindow): check display_hash to see if
14643         anything really needs to be updated. If not then do
14644         nothing. Record the display_hash after updating.
14645         (image_instance_equal): compare the image_instance face also.
14646
14647 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14648
14649         * redisplay.h: Fix comment style.
14650
14651 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14652
14653         * consle-msw.h (struct mswindows_frame):
14654         Added new member paint_pending to indicate whether a WM_PAINT
14655         magic event has been queued for this frame.
14656
14657         * event-msw.c (mswindows_drain_windows_queue):
14658         Don't queue a WM_PAINT magic event if one is already queued.
14659         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14660
14661         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14662
14663 2000-03-07  Didier Verna  <didier@xemacs.org>
14664
14665         * dired.c: #include `regex.h' after `sysfile.h'.
14666
14667 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14668
14669         * sound.c (init_nas_sound): Fix compiler warning.
14670
14671         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14672         (FREE_STRUCT_P):
14673         (MARK_STRUCT_AS_FREE):
14674         (MARK_STRUCT_AS_NOT_FREE):
14675         Make `gcc -fstrict-aliasing' work properly.
14676
14677 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14678
14679         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14680         (mswindows_delete_device): Call CoUnnitialize().
14681
14682         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14683
14684 2000-02-25    <CraigL@DyCon.com>
14685
14686         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14687         <errno.h>.
14688
14689         * sysdep.c: This extern declaration for environ prevents MinGW
14690         from finding the variable in CRTDLL.DLL.
14691
14692         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14693         windows headers.
14694         (SHGFI_EXETYPE): ..
14695         (WM_MOUSEWHEEL): ..
14696         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14697         definitions.
14698         (MMRESULT): Removed, now defined in cygwin's windows headers.
14699         (TIMECAPS): ..
14700         (uid_t,gid_t,pid_t,ssize_t): ..
14701         (_timeb): Removed, MinGW defines both _timeb and timeb.
14702         (HAVE_H_ERRNO): Added.
14703         (HAVE_TZNAME): Added, configure is not detecting this.
14704
14705 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14706
14707         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14708         * syntax.c (syntax_match): Use it.
14709
14710         * cmds.c: Import auto-fill-chars from FSF Emacs.
14711         (Vauto_fill_chars): New variables.
14712         (internal_self_insert): Check Vauto_fill_chars.
14713         (vars_of_cmds):
14714         Declare auto-fill-chars as a Lisp variable and initialize it.
14715
14716 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14717
14718         * fileio.c (Fmake_symbolic_link):
14719         (Ffile_symlink_p):
14720         Run handlers even if local machine doesn't have symlinks.
14721
14722 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14723
14724         * event-msw.c (mswindows_drain_windows_queue):
14725         Don't generate paint magic events for non-XEmacs frames.
14726
14727 2000-03-05  Andy Piper  <andy@xemacs.org>
14728
14729         * redisplay.c (redisplay_frame): generate_displayable_area and
14730         friends assumes that we are not in GC, we therefore have to make
14731         sure that this doesn't happen.
14732
14733         * gutter.c (calculate_gutter_size): generate_displayable_area
14734         assumes that we are not in GC, we therefore have to make sure that
14735         this doesn't happen.
14736
14737 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14738
14739         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14740
14741 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14742
14743         * redisplay.c (regenerate_window): Make sure we set a sane value
14744         for end_pos even if we jump out of the loop.
14745         (regenerate_window): Answer Ben's question :-).
14746         (start_end_of_last_line): Add may_error argument.
14747         (start_of_last_line):
14748         (end_of_last_line): Pass may_error = 0.
14749         (end_of_last_line_may_error): New function.
14750         (pixel_to_glyph_translation): Use it, so we don't crash in
14751         event_to_glyph.
14752
14753 2000-03-04  Andy Piper  <andy@xemacs.org>
14754
14755         * window.h (struct window): add gutter_extent_modiff.
14756
14757         * window.c (allocate_window): zero out gutter_extent_modiff.
14758
14759         * redisplay.h: declare sync_display_line_structs.
14760
14761         * redisplay.c (add_glyph_rune): add a better comment.
14762
14763         * redisplay-output.c (sync_display_line_structs): made non-static.
14764         (compare_runes): remove unneccesary glyph cachel access.
14765
14766         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14767
14768         * gutter.c (output_gutter): don't output the gutter if extent
14769         changes only involve extents in buffers. use 4 sets of display
14770         lines.
14771         (gutter_extent_signal_changed_region_maybe): new function. Mark
14772         extents in gutters as changed.
14773         (update_frame_gutters): use 4 sets of display lines.
14774         (reset_gutter_display_lines): ditto.
14775         (free_frame_gutters): ditto.
14776         (redraw_exposed_gutter): force output of gutters.
14777
14778         * frame.h (struct frame): add 4 sets of gutter display lines.
14779
14780         * extents.c: (extent_changed_for_redisplay): signal changes to
14781         extents in strings in the gutter as well as extents in buffers.
14782
14783 2000-03-02  Andy Piper  <andy@xemacs.org>
14784
14785         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14786
14787         * frame.c (Fmake_frame): make sure the gutters get initialized
14788         after the frame is visible.
14789         (set_frame_selected_window): re-arrange compilation macros a
14790         little.
14791         (change_frame_size_1): mark gutters changed.
14792
14793         * device.c (Fset_device_class): mark gutters changed.
14794
14795 2000-03-01  Andy Piper  <andy@xemacs.org>
14796
14797         * window.c (window_top_frame_gutter_height): deleted.
14798         (window_bottom_frame_gutter_height): ditto.
14799         (window_left_frame_gutter_height): ditto.
14800         (window_right_frame_gutter_height): ditto.
14801         (window_top_gutter_height): don't use them.
14802         (window_bottom_gutter_height): ditto.
14803         (window_left_gutter_width): ditto.
14804         (window_right_gutter_width): ditto.
14805         (Fsplit_window): ditto.
14806         (Fwindow_pixel_edges): don't use border dimensions here.
14807
14808         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14809         (update_scrollbar_instance): ditto.
14810
14811         * redisplay.c (generate_modeline): don't take gutters into account.
14812         (generate_modeline): ditto.
14813         (redisplay_frame): small gutter display optimization.
14814
14815         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14816
14817         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14818         gutters into account.
14819
14820         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14821         for window position and type.
14822
14823         * gutter.c (get_gutter_coords): fix for frame gutters.
14824         (update_frame_gutters): update frame geometry if the gutters have
14825         changed.
14826         (init_frame_gutters): record current gutter geometries.
14827
14828         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14829         var.
14830         (mswindows_widget_instantiate): ditto.
14831
14832         * frame.h (struct frame): add current_gutter_bounds.
14833
14834         * frame.c (change_frame_size_1): position window and minibuffer
14835         appropriately taking into account the frame gutters.
14836
14837         * frame-x.c: (x_initialize_frame_size): take into account the
14838         frame gutters.
14839
14840 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14841
14842         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14843
14844 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14845
14846         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14847
14848 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14849
14850         * file-coding.c (reset_decoding_stream): Clear previous
14851         detection state when autodetect.
14852
14853 2000-02-29  Didier Verna  <didier@xemacs.org>
14854
14855         * extents.c (set_extent_glyph_1): don't require extents to be
14856         attached.
14857
14858 2000-02-27  Andy Piper  <andy@xemacs.org>
14859
14860         * gutter.c (Fset_default_gutter_position): don't default left and
14861         right gutter visibility to t.
14862         (Fset_default_gutter_position): run
14863         default-gutter-position-changed-hook.
14864         (syms_of_gutter): add default-gutter-position-changed-hook.
14865
14866 2000-02-26  Andy Piper  <andy@xemacs.org>
14867
14868         * specifier.c (Fmake_specifier): add gutter references.
14869
14870         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14871
14872         * lisp.h: declare Fvalid_plist_p.
14873
14874         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14875         as changed.
14876         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14877         well as its visibility so that it gets reconstructed.
14878         (construct_window_gutter_spec): new function. Construct a string
14879         to be displayed in the gutter from a plist of strings. Take care
14880         to only use elements that are declared as visible.
14881         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14882         WINDOW_GUTTER.
14883         (gutter_validate): allow plists of strings in the specifier.
14884         (gutter_specs_changed): construct the real_gutter from the gutter
14885         specs using construct_window_gutter_spec.
14886         (gutter_visible_validate): gutter-visible is a new specifier type.
14887         (Fgutter_visible_specifier_p): new function for the new specifier.
14888         (syms_of_gutter): declare gutter-visible and
14889         Fgutter_visible_specifier_p.
14890         (specifier_type_create_gutter): intitalize new gutter-visible
14891         specifier.
14892         (reinit_specifier_type_create_gutter): ditto.
14893         (specifier_vars_of_gutter): use new specifier type for gutter
14894         visibility.
14895         (init_frame_gutters): construct real_gutter correctly.
14896         (Fgutter_specifier_p): beef up documentation.
14897         (Fgutter_size_specifier_p): ditto.
14898
14899         * winslots.h: add real_gutter slots.
14900
14901 2000-02-25  Andy Piper  <andy@xemacs.org>
14902
14903         * device-msw.c: Be kind to older cygwin versions. From Raymond
14904         Toy <toy@rtp.ericsson.se>.
14905
14906         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14907         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14908
14909 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14910
14911         * elhash.c (MARK_OBJ): Practice macro hygiene.
14912
14913 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14914
14915         * miscplay.c: s/__inline__/inline/g;
14916         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14917         (get_device_compdc): INLINE ==> static inline
14918         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14919         find -name '*.h' | \
14920         xargs global-replace \
14921         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14922
14923 2000-02-25  Andy Piper  <andy@xemacs.org>
14924
14925         * window.c (window_top_frame_gutter_height): new function.
14926         (window_top_window_gutter_height): ditto.
14927         (window_top_gutter_height): use them.
14928         (window_bottom_frame_gutter_height): new function.
14929         (window_bottom_window_gutter_height): ditto.
14930         (window_bottom_gutter_height): use them.
14931         (window_left_window_gutter_width): new function.
14932         (window_left_frame_gutter_width): ditto.
14933         (window_left_gutter_width): use them.
14934         (window_right_window_gutter_width): new function.
14935         (window_right_frame_gutter_width): ditto.
14936         (window_right_gutter_width): use them.
14937         (window_pixel_height): new function. calulate window pixel height
14938         with frame gutter involvement.
14939         (Fsplit_window): calculate new sizes taking frame gutters into
14940         account.
14941         (window_char_height_to_pixel_height): don't include frame gutters.
14942         (window_char_height): use window_pixel_height.
14943         (window_pixheight): rename from window_pixel_height.
14944         (change_window_height): use it.
14945         (window_pixel_height_to_char_height): don't include frame gutters.
14946         (window_char_width_to_pixel_width): ditto.
14947
14948 2000-02-25  Andy Piper  <andy@xemacs.org>
14949
14950         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14951         if it is.
14952
14953 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14954
14955         * alloc.c (staticpro):
14956         (staticpro_nodump):
14957         (dumpstruct):
14958         (dumpopaque):
14959         (pdump_wire):
14960         (pdump_wire_list):
14961         (compact_string_chars):
14962         (pdump_dump_wired):
14963         Convert:  if (foo) abort();  ==>  assert (! foo);
14964
14965         * eldap.c (Fldap_search_basic):
14966         (Fldap_add):
14967         (Fldap_modify):
14968         (Fldap_delete):
14969         Fix compiler warnings, and possible crashes if (random) return
14970         value were to be used.
14971
14972 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14973
14974         * device-msw.c: Workaround ResetDC failure.
14975
14976         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14977         applying a devmode.
14978
14979         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14980         (mswindows_text_width): Do not start printer page.
14981
14982         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14983
14984         * glyphs-msw.c: Added image methods to msprinter console and
14985         msprinter-specific image instantiation.
14986
14987 2000-02-20  Mike Alexander  <mta@arbortext.com>
14988
14989         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14990         to avoid crashes when selection-sets-clipboard is on
14991         (mswindows_own_selection): ditto
14992
14993 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14994
14995         * glyphs-msw.c:
14996         * redisplay-msw.c (get_frame_dc):
14997         (get_frame_compdc):
14998         * console-msw.h:
14999         * device-msw.c (mswindows_init_device):
15000         (mswindows_delete_device):
15001         (msprinter_init_device):
15002         (msprinter_delete_device):
15003         * frame-msw.c (mswindows_init_frame_1):
15004         (mswindows_delete_frame):
15005         (msprinter_init_frame_3):
15006         (msprinter_delete_frame): Move compatible DC to device object from
15007         frame object, for both mswindows and msprinter. Only one at a time
15008         is needed, it is a real waste to have one per frame!
15009
15010 2000-02-23  Andy Piper  <andy@xemacs.org>
15011
15012         * glyphs.c: add dynamic width and height elements.
15013         (image_instance_equal): ditto.
15014
15015         * glyphs-widget.c (widget_query_geometry): calculate width and
15016         height dynamically if required.
15017         (initialize_widget_image_instance): initialize dynamic dimensions.
15018         (widget_instantiate): pick-up dynamic dimensions.
15019
15020         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15021         dynamic determination. Add appropriate macros.
15022
15023         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15024         dimensions safe.
15025         (WINDOW_GUTTER_SIZE): ditto.
15026         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15027
15028         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15029         inline.
15030         (get_frame_dc): ditto.
15031
15032         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15033         here.
15034
15035 2000-02-23  Martin Buchholz <martin@xemacs.org>
15036
15037         * XEmacs 21.2.31 is released.
15038
15039 2000-02-22  Ben Wing <ben@xemacs.org>
15040
15041         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15042
15043 2000-02-22  Andy Piper  <andy@xemacs.org>
15044
15045         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15046
15047 2000-02-21  Mike Sperber <mike@xemacs.org>
15048
15049         * .dbxrc:
15050         * .gdbinit:
15051         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15052         variables.
15053
15054 2000-02-21  Mike Sperber <mike@xemacs.org>
15055
15056         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15057
15058 2000-02-21  Martin Buchholz <martin@xemacs.org>
15059
15060         * XEmacs 21.2.30 is released.
15061
15062 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15063
15064         Performance hacking.
15065         * *.c (syms_of_*):
15066         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15067         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15068         * emacs.c (main_1):
15069         * lisp.h (DEFUN):
15070         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15071         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15072         * symeval.h (DEFVAR_SYMVAL_FWD):
15073         * symbols.c (guts_of_unbound_marker):
15074         Make all c_readonly objects also lisp_readonly and marked for life.
15075         * lrecord.h (struct lrecord_implementation):
15076         Document flags better.
15077         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15078         * lrecord.h (DECLARE_LRECORD):
15079         * lrecord.h (XSETRECORD):
15080         * lrecord.h (RECORDP):
15081         * lrecord.h (RECORD_TYPEP):
15082         * lrecord.h (RECORD_MARKER): New.
15083         * lrecord.h (error_check_*):
15084         * lrecord.h (CONCHECK_NONRECORD):
15085         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15086         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15087         * lrecord.h (set_lheader_implementation):
15088         * lrecord.h (enum lrecord_type): New.
15089         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15090         * alloc.c (disksave_object_finalization_1):
15091         * alloc.c (mark_object):
15092         * alloc.c (lrecord_type_index):
15093         * alloc.c (tick_lcrecord_stats):
15094         * alloc.c (Fgarbage_collect):
15095         * alloc.c (init_alloc_once_early):
15096         * alloc.c (pdump_load):
15097         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15098         * alloc.c (lrecord_type_index): Delete.
15099         Make lisp object type indexes be constant.
15100           Makes (byte-compile) 5% faster.
15101         Put all marker functions into their own array.
15102           Makes (garbage-collect) 5% faster.
15103         Optimize SYMBOL_VALUE_MAGIC_P.
15104           Makes (byte-compile) 2-3% faster.
15105         * config.h.in (gc_checking_assert): New.
15106         * alloc.c: Use gc_checking_assert().
15107         * .dbxrc: Make compatible with new object type implementation.
15108         * .gdbinit: Make compatible with new object type implementation.
15109         * alloc.c: Delete all symbols defined only for debugging, such as
15110         Lisp_Type_Vector and lrecord_charset.
15111
15112 2000-02-21  Andy Piper  <andy@xemacs.org>
15113
15114         * gui-msw.c (Fmswindows_shell_execute): fix file location
15115         problems.
15116
15117         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15118         unshowing so that set_window_buffer doesn't undo
15119         kill_buffer_hook's hard work.
15120
15121         * glyphs-widget.c (tab_control_query_geometry): don't count the
15122         first item when calculating geometry.
15123
15124         * glyphs.c (map_subwindow): remove redundant code.
15125         (update_frame_subwindows): be more circumspect about when to
15126         update subwindows.
15127
15128         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15129         when items haven't changed. Update faces if faces have changed as
15130         well as just the widget face.
15131         (x_tab_control_update): Update faces if faces have changed as well
15132         as just the widget face.
15133
15134 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15135
15136         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15137         registration.
15138         (build_syscolor_string): Use mswindows_color_to_string to try to
15139         get a named color.
15140         (mswindows_device_system_metrics): Reverse the foreground and
15141         background colors so that they match the documentation.
15142
15143         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15144         they match the default Windows palette.
15145         (mswindows_color_to_string): New function.
15146
15147 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15148
15149         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15150
15151 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15152
15153         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15154         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15155
15156         * symbols.c (init_symbols_once_early): Removed obsolete
15157         DATA_SEG_BITS related kludge.
15158         (defvar_magic): Ditto.
15159
15160         * malloc.c: Removed obsolete DATA_SEG_BITS
15161         * ralloc.c: Ditto.
15162         * mem-limits.h: Ditto.
15163
15164         * Makefile.in.in: Removed obsolete HAVE_SHM
15165         * emacs.c: Ditto.
15166
15167 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15168
15169         *  device-msw.c (mswindows_delete_device): Free DDE string
15170         handles.
15171
15172 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15173
15174         * keymap.c (get_keyelt):
15175         * unexnt.c (unexec):
15176         * vm-limit.c (memory_warnings):
15177         * ntheap.c (recreate_heap):
15178         * ntheap.h (UNINIT_PTR):
15179         * select-msw.c (Fmswindows_get_clipboard):
15180         (Fmswindows_set_clipboard):
15181         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15182         * objects-msw.c:
15183         * menubar-msw.c (displayable_menu_item):
15184         * glyphs-msw.c:
15185         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15186         * sysdep.c (sys_subshell):
15187         * process-nt.c (nt_create_process):
15188         * nt.c (normalize_filename):
15189         (dostounix_filename):
15190         (unixtodos_filename):
15191         * ntproc.c (win32_executable_type):
15192         * ntplay.c (play_sound_data_1):
15193         (play_sound_file):
15194         * editfns.c (get_home_directory):
15195         * event-msw.c (struct winsock_stream):
15196         (mswindows_dde_callback):
15197         * device-msw.c (msprinter_init_device):
15198         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15199
15200         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15201         mswindows_clear_toolbar were swapped!
15202
15203         * objects-msw.c:(colormap_t):
15204         (fontmap_t):
15205         * emacs.c (struct standard_args): Fixed const jumble.
15206
15207         * glyphs-widget.c (update_widget): Fixed comparison notation.
15208
15209         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15210
15211         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15212         __declspec(noreturn) syntax.
15213
15214 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15215
15216         * eldap.c (Fldap_open):
15217         (Fldap_search_basic):
15218         (Fldap_add):
15219         (Fldap_modify):
15220         Use new coding system conversion macros.
15221
15222 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15223
15224         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15225
15226 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15227
15228         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15229         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15230
15231         * eldap.c (Qadd, Qreplace): New constant symbols
15232         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15233         interruptions by XEmacs signals
15234         Remove unnecessary calls to slow_down_interrupts and
15235         speed_up_interrupts
15236         (Fldap_search_basic): Renamed from Fldap_search_internal
15237         Added new optional parameter VERBOSE that triggers the
15238         display of progress messages
15239         Remove unnecessary calls to slow_down_interrupts and
15240         speed_up_interrupts
15241         LDAP result code analysis rewritten
15242         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15243         (syms_of_eldap): Define the new symbols and functions
15244
15245
15246 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15247
15248         * realpath.c: Determine PATH_MAX maximally portably.
15249
15250         * insdel.c (bytecount_to_charcount): Optimize.
15251         The function used to be optimized for entirely ASCII sequences.
15252         Now it is optimized for successive characters from the same
15253         charset.  This also wins big for _mostly_ ASCII sequences.
15254
15255         * fileio.c (Ffile_truename): convert return from realpath() using
15256         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15257         - Rewrite GCPROing slightly.
15258
15259         * sysdep.c (sys_open): Do filename conversion, like all other
15260         sys_* functions.  Fixes bug:
15261         (let ((file-name-coding-system 'iso-8859-2))
15262            (write-region x y latin2-name))
15263         ==> writes filename using internal encoding.
15264
15265 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15266
15267         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15268         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15269         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15270         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15271         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15272         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15273         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15274         (CONST_IF_NOT_DEBUG): Delete.
15275         * alloc.c (this_one_is_unmarkable): Delete.
15276         (mark_object): Don't check for this_one_is_unmarkable. Use the
15277         c_readonly flag instead.
15278         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15279
15280 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15281
15282         * event-msw.c (mswindows_drain_windows_queue):
15283         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15284         away redundant repaint events.
15285
15286 2000-02-17  Andy Piper  <andy@xemacs.org>
15287
15288         * redisplay.h: declare mark_redisplay_structs.
15289
15290         * redisplay.c (redisplay_window):
15291         (redisplay_frame): don't check subwindows_state_changed.
15292         (mark_redisplay): mark gutters here.
15293
15294         * glyphs.c: (instantiate_image_instantiator): always layout if we
15295         haven't done so already.
15296         (allocate_image_instance): don't mark as dirty.
15297         (update_subwindow): bind inhibit_quit.
15298
15299         * gutter.c (mark_gutters): new function.
15300
15301         * glyphs-x.c (x_update_widget): Always resize to get round a
15302         widget bug.
15303
15304         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15305         breaking absolutely everything.
15306
15307         * gutter.h: declare mark_gutters.
15308
15309 2000-02-16  Martin Buchholz <martin@xemacs.org>
15310
15311         * XEmacs 21.2.29 is released.
15312
15313 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15314
15315         * fns.c (size_bit_vector): Fix computation of the size.
15316
15317 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15318
15319         * *.[ch]: Change CONST to const globally.
15320         find -name '*.[ch]' | \
15321         xargs global-replace \
15322         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15323         - Remove vestigial references to CONST_IS_LOSING
15324
15325 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15326
15327         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15328         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15329         events instead of dispatching them directly.
15330         (mswindows_handle_paint): New function to do repainting.
15331         (mswindows_wnd_proc):
15332         (emacs_mswindows_handle_magic_event): Call above function.
15333
15334 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15335
15336         * objects-msw.c (mswindows_create_font_variant): Return the new
15337         font handle.
15338         (initialize_font_instance): Get font metrics from the underlined
15339         variant of the font to cope with the case where the underlined
15340         font has a bigger descent.
15341
15342 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15343
15344         * gui.c (gui_item_accelerator): Return the first underlined
15345         character in item name.
15346
15347 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15348
15349         * lisp.h: Added Qprinter.
15350
15351         * general.c (syms_of_general): Initialized it.
15352
15353         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15354         (get_frame_dc):
15355         (get_frame_compdc): Made inline.
15356
15357         * console.h (struct console_methods): Added eject_page method.
15358
15359         * frame.h: Added FRAME_DISPLAY_P and friends.
15360         Aligned backslahes in many macros in more readable fashion.
15361         Added page_number to struct frame, and an accessor macro
15362         for it.
15363
15364         * defice.h: Added DEVICE_DISPLAY_P and friends.
15365
15366         * device.c (Fdevice_printer_p): Used these.
15367
15368         * frame.c (allocate_frame_core): Initialize page number.
15369         (Fprint_job_page_number):
15370         (Fprint_job_eject_page): Implemented.
15371
15372         * frame-msw.c (msprinter_eject_page): Added method.
15373         (msprinter_start_page): Added.
15374
15375         * window.c (Fwindow_truncated_p): Fixed docstring.
15376         (Fwindow_last_line_visible_height): Implemented.
15377
15378 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15379
15380         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15381
15382 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15383
15384         * syntax.c (scan_words): Always advance at least one character.
15385
15386 2000-02-13  Andy Piper  <andy@xemacs.org>
15387
15388         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15389         to make sure the glyph is in the cachels.
15390
15391         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15392         global image instance flag.
15393         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15394         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15395
15396         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15397         (Fset_image_instance_property): mark layout as changed.
15398         (invalidate_glyph_geometry_maybe): mark layout as changed.
15399         (glyph_width): use new NEEDS_LAYOUT macro.
15400         (glyph_ascent): ditto.
15401         (glyph_descent): ditto.
15402         (glyph_height): ditto.
15403         (image_instance_layout): mark layout as clean after laying out.
15404         (update_subwindow): don't mark layout as clean here.
15405
15406         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15407         should no longer be needed.
15408
15409         * glyphs-x.c (x_update_widget): sanitize asserts.
15410         (x_finalize_image_instance): sanitize assignment to widgets.
15411
15412         * glyphs-widget.c (widget_instantiate): don't need to clear the
15413         layout flag here.
15414
15415 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15416
15417         * sysdep.c (getcwd): Use standard prototype.
15418         * sysdep.h (getcwd): Use standard prototype.
15419
15420         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15421         (sequence, start, end).
15422         Remove redundant type checking.
15423         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15424         view of `caller-protects') to avoid a crash where the real fix was
15425         found elsewhere.
15426
15427 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15428
15429         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15430
15431         * s/sol2.h: Remove feature macro initialization.
15432
15433         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15434         (vector_hash): New.  Code from internal_hash.
15435         * lrecord.h:
15436         Fix up allocation subsystem comments.
15437
15438         * config.h.in: Add __EXTENSIONS__ for Solaris.
15439
15440         * systime.h (EMACS_GETTIMEOFDAY): New.
15441         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15442         Remove Solaris-specific code.
15443         Use void* for the (ignored) second arg for gettimeofday().
15444
15445         * elhash.c (hash_table_hash): Implement it, finally.
15446         * elhash.c:  Use hashcode_t.
15447
15448         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15449         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15450
15451         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15452         * fns.c (size_bit_vector):
15453         * alloc.c (size_vector):
15454         (make_vector_internal):
15455         (make_bit_vector_internal):
15456         (sweep_bit_vectors_1):
15457         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15458
15459 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15460
15461         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15462         Include strings.h to avoid warnings for bzero and strcasecmp.
15463
15464 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15465
15466         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15467         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15468
15469         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15470         sequence.
15471
15472 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15473
15474         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15475         use a value field instead.
15476         (symbol_value_forward_forward): Use value field.
15477         (DEFVAR_SYMVAL_FWD): Use value field.
15478         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15479         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15480         (DEFVAR_CONST_INT): Ditto.
15481         (DEFVAR_BOOL): Ditto.
15482         (DEFVAR_CONST_BOOL): Ditto.
15483         (DEFVAR_INT_MAGIC): Ditto.
15484         (DEFVAR_BOOL_MAGIC): Ditto.
15485
15486         * symbols.c (guts_of_unbound_marker): Use value field.
15487         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15488         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15489
15490         * lisp.h: Declare dumpopaque and noninteractive1.
15491
15492         * alloc.c (dumpopaque): Added.
15493         (pdump_dump_opaquevec): Added.
15494         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15495         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15496         noninteractive.
15497
15498 2000-02-10  Andy Piper  <andy@xemacs.org>
15499
15500         * glyphs.c (image_instance_layout): if the size changes, mark it
15501         as such.
15502
15503         * redisplay-output.c (redisplay_output_layout): Update the
15504         subwindow here.
15505         (redisplay_output_subwindow): ditto.
15506
15507         * glyphs.c (update_subwindow): make sure we reset flags for
15508         layouts as well as everything else.
15509
15510         * glyphs-widget.c (layout_layout): don't need to set the instances
15511         dimensions here.
15512
15513 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15514
15515         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15516         not HAVE_DLOPEN, which is a lower-level thing.
15517
15518         * .cvsignore: Ignore gmon.out
15519
15520 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15521
15522         * .cvsignore: Ignore portable dumper xemacs.dmp file
15523
15524 2000-02-09  Andy Piper  <andy@xemacs.org>
15525
15526         * redisplay-output.c (redisplay_output_layout): be more clever
15527         about when we output based on the changed flags.
15528
15529         * glyphs.h (struct image_instantiator_methods): add update_method.
15530         (struct Lisp_Image_Instance): add changed flags. Declare new
15531         macros for manipulating them.
15532
15533         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15534         (image_instance_parent_glyph): find an image_instance's parent
15535         glyph or image_instance.
15536         (image_instance_layout): mark the size as changed.
15537         (set_image_instance_dirty_p): new function. mark an image
15538         instance, plus all of its parents, as dirty.
15539         (Fset_image_instance_property): use it.
15540         (Fglyph_animated_timeout_handler): use it.
15541         (update_subwindow): call update_widget and device methods for
15542         update_subwindow. Mark all changed flags as clean.
15543         (Fresize_subwindow): mark size as changed.
15544
15545         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15546         failures.
15547         (x_update_subwindow): only resize subwindows here.
15548         (x_update_widget): new function. Update all changed properties of
15549         a widget.
15550         (x_resize_subwindow): deleted.
15551         (x_widget_set_property): deleted.
15552         (x_progress_gauge_set_property): deleted.
15553         (x_progress_gauge_update): new function. Implement recorded
15554         changes.
15555         (x_tab_control_update): ditto.
15556         (x_tab_control_set_property): deleted.
15557         (console_type_create_glyphs_x): declare new functions.
15558         (image_instantiator_format_create_glyphs_x): ditto.
15559
15560         * glyphs-widget.c (widget_set_property): mark text changed.
15561         (update_widget): new function. Update properties of a widget.
15562         (widget_instantiate): for layouts make sure we set their
15563         children's parent correctly.
15564         (tab_control_set_property): new function. Record changes that will
15565         take place under redisplay's control.
15566         (progress_gauge_set_property): ditto.
15567         (image_instantiator_progress_guage): declare new functions.
15568         (image_instantiator_tab_control): ditto.
15569
15570         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15571         now.
15572         (mswindows_update_widget): new function. Update all properties on
15573         a widget that have changed.
15574         (mswindows_button_update): new function. Update a button's set
15575         state.
15576         (mswindows_tab_control_update): new function. Update the items in
15577         a tab.
15578         (mswindows_tab_control_set_property): deleted.
15579         (mswindows_progress_gauge_update): new function. Update the
15580         progress gauge's progress.
15581         (mswindows_widget_set_property): deleted. This is all done
15582         asynchronously now.
15583         (mswindows_progress_gauge_set_property): ditto.
15584         (console_type_create_glyphs_mswindows): declare new methods.
15585         (image_instantiator_format_create_glyphs_mswindows): ditto.
15586
15587         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15588         (msprinter_set_frame_properties): ditto.
15589
15590         * console.h (struct console_methods): Add update_widget_method.
15591
15592 2000-02-09  Andy Piper  <andy@xemacs.org>
15593
15594         * gui-msw.c (Fmswindows_shell_execute): Make
15595         mswindows-shell-execute industrial strength.
15596
15597 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15598
15599         * lrecord.h: Make macro argument `props' match member function `plist'.
15600         * fns.c (Fget):
15601         * fns.c (Fput):
15602         * fns.c (Fremprop):
15603         * fns.c (Fobject_plist):
15604         * alloc.c:
15605         * symbols.c:
15606         Object property list frobbing cleanup.
15607         - Allow any lisp object (compared with `eq'), not just symbols, as
15608           keys in object plists.
15609         - Move symbol plist frobbing into symbols.c, where it belongs.
15610         - Move string plist frobbing into alloc.c, where it belongs.
15611         - Everything's an lrecord now, so no need to test for symbolp, etc.
15612         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15613
15614         * extents.c: Reorder code to remove declarations.
15615
15616         * frame.h (store_in_alist): Remove useless declaration.
15617
15618 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15619
15620         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15621         * config.h.in: Add HAVE_XCONVERTCASE.
15622
15623 2000-02-07  Andy Piper  <andy@xemacs.org>
15624
15625         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15626         it breaks many things.
15627
15628 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15629
15630         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15631         actually can start a common comment type.
15632         * src/syntax.h (SYNTAX_END_P): ditto for end.
15633
15634 2000-02-07  Martin Buchholz <martin@xemacs.org>
15635
15636         * XEmacs 21.2.28 is released.
15637
15638 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15639
15640         * event-Xt.c (x_keysym_to_character): New.
15641         (maybe_define_x_key_as_self_inserting_character): New.
15642         (x_has_keysym): New.
15643         Auto-define all keys on the keyboard as self-insert-key.
15644
15645 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15646
15647         * menubar.c (vars_of_menubar): A small code simplification.
15648
15649         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15650
15651         * ExternalShell.c:
15652         * ExternalClient.c:
15653         * EmacsShell-sub.c:
15654         * EmacsManager.c:
15655         * EmacsFrame.c:
15656         Use consistent style for specifying X resources.
15657
15658         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15659         This makes (dontusethis-set-symbol-value-handler) actually usable.
15660
15661         * lrecord.h (lrecord_decription_type):
15662         * alloc.c (pdump_register_sub):
15663         (pdump_dump_data):
15664         (pdump_reloc_one):
15665         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15666         Comply with XEmacs coding style.
15667         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15668         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15669
15670         * keymap.c (Faccessible_keymaps):
15671         Make (accessible-keymaps map "\C-h") do the Right Thing.
15672         Make (accessible-keymaps map []) do the Right Thing.
15673         Make (accessible-keymaps map "") do the Right Thing.
15674         (check_keymap_definition_loop): New function.
15675         (keymap_store_internal): Keep luser from shooting self in foot,
15676           via (define-key ctl-x-4-map "p" global-map).
15677         Remove fullness slot from struct Lisp_Keymap, since hash tables
15678         are now reliable.
15679         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15680
15681 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15682
15683         * redisplay.c (init_redisplay): Fix small memory leak.
15684         * elhash.h:
15685         * elhash.c (pdump_reorganize_hash_table):
15686         Rename from reorganize_hash_table. Change prototype.
15687         Reuse the original memory for hentries.  Save 100k.
15688         * alloc.c (PDUMP_READ): new macro.
15689         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15690         * alloc.c: No need to #ifndef before #undef.
15691
15692         * print.c: Allow debug_print() to print readably by modifying
15693         debug_print_readably.  Use consistent variable names.
15694
15695         * .dbxrc: Try to get things to work even if stopped in a function
15696         without source available by explicitly specifying source files.
15697 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15698
15699         * unexnt.c (_start): Removed bogus code which caused loading heap
15700         from differrent executable file.
15701         Removed bogus assignment to _fmode, which caused inconsistencies.
15702
15703 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15704
15705         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15706         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15707         Do not preliminary `#define signal sigset'.
15708
15709         * systime.h: Do not prototype environ on windows nt and cygwin,
15710         this conflicts with system header.
15711
15712         * syssignal.h: Use correct define for WINDOWSNT
15713
15714         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15715         with system header.
15716
15717         * sysdep.c (near start of file): Fixed commentary and rearranged
15718         ifdefs in readable order.
15719         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15720         (start_of_text):
15721         (end_of_text):
15722         (end_of_data): Do not compile in if using PDUMP.
15723
15724         * symsinit.h: Prototyped vars_of_nt().
15725
15726         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15727         (find_child_console): Use it.
15728         (sys_kill): Use it.
15729
15730         * ntheap.h: Do not extern os_subtype.
15731
15732         * ntheap.c (cache_system_info): Do not cache unneeded:
15733         nt_major_version, nt_minor_version and os_subtype.
15734         (recreate_heap): Do not compile in when PDUMPing.
15735
15736         * nt.c (geteuid and friends): Use the new varibale
15737         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15738         (init_user_info): Removed the above mentioned hackery.
15739         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15740         stat has been fixed in the C runtime.
15741         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15742
15743         * file-coding.c (struct file_coding_dump): Do not define
15744         ucs_to_mule_table in the struct if not MULE.
15745         (struct struct lrecord_description fcd_description_1): Do not dump
15746         the above.
15747
15748         * emacs.c (main_1): Call vars_of_nt().
15749         (right before Fdump_emacs_data): Don't need lastfile if using both
15750         portabe dumper and system malloc.
15751
15752         * alloc.c (Fmemory_limit): Conditionalized out.
15753         (pdump): Use OPEN_BINARY for the portable dump file.
15754         (pdump_load): Ditto.
15755
15756 2000-02-02  Mike Alexander  <mta@arbortext.com>
15757
15758         * nt.c (convert_time): Set tm_isdst before calling mktime and
15759         avoid calling it at all if the compiler supports 64 bit integers.
15760         Also initialize utc_base_ft before using it.
15761
15762 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15763
15764         * frame.c (change_frame_size_1): Take f->internal_border_width
15765         into consideration when calculating the width of the frame.
15766
15767 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15768
15769         * window.c (frame_min_height):
15770         (frame_size_valid_p):
15771         (frame_pixsize_valid_p): Added.
15772         (check_frame_size): Generalized.
15773
15774         * window.h: Prototyped the above.
15775
15776         * lisp.h:
15777         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15778         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15779         Deleted Vwin32_* and Vbinary_process_* unused variables.
15780
15781         * device-msw.c (msprinter_init_device): Do not get printer font
15782         list; Added DEVMODE functions.
15783
15784         * frame-msw.c: Added lots of printer code.
15785
15786         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15787         general.c.
15788
15789         * console-msw.h: Added more msprinter device private slots.
15790
15791 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15792
15793         * event-msw.c (key_needs_default_processing_p): Added.
15794         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15795
15796 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15797
15798         * glyphs.c (image_instance_layout): Mark image instance as clean
15799         after layout.
15800         (glyph_dirty_p): Removed redundant function.
15801         (invalidate_glyph_geometry_maybe): Added.
15802         (update_glyph_cachel_data): Call it.
15803
15804         * glyphs.h: Prototyped it.
15805
15806         * redisplay.c (add_glyph_rune): Call it.
15807         (redisplay_window): Reset glyphs cachels when frame faces have
15808         changed, thus forcing recomputation of built-in border glyphs.
15809
15810 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15811
15812         * Makefile.in.in: Make portable dumper and purify play well together.
15813         Add imperfect, but better than nothing, support for pdump.
15814         Remove xemacs.dmp when temacs is re-generated.
15815         Don't ignore errors when dumping xemacs.
15816
15817         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15818
15819 2000-01-28  Andy Piper  <andy@xemacs.org>
15820
15821         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15822         (setup_normal_frame): ditto.
15823         (setup_frame_without_minibuffer): ditto.
15824         (setup_minibuffer_frame): ditto.
15825         (delete_frame_internal): ditto.
15826         (Fmake_frame_invisible): ditto.
15827         (Ficonify_frame): ditto.
15828
15829         * window.h: change Fset_window_buffer signature.
15830
15831         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15832         (Fset_window_buffer): allow recording of buffer if the window is
15833         the selected window.
15834         (window_loop): Use new Fset_window signature.
15835
15836 2000-01-23  Daniel Pittman  <daniel@danann.net>
15837
15838         * config.h.in: Added template for `HAVE_ATHENA_3D'
15839
15840 2000-01-29  Andy Piper  <andy@xemacs.org>
15841
15842         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15843
15844         * gutter.c (output_gutter): Don't output if the window isn't live.
15845
15846 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15847
15848         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15849         of 01/12/00: Moved SetFocus back here where it belongs.
15850
15851 2000-01-23  Andy Piper  <andy@xemacs.org>
15852
15853         * s/cygwin32.h: declare printer things.
15854
15855 2000-01-26  Andy Piper  <andy@xemacs.org>
15856
15857         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15858         Alexander.
15859
15860 2000-01-24  Andy Piper  <andy@xemacs.org>
15861
15862         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15863         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15864
15865         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15866
15867         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15868
15869         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15870
15871         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15872         (mswindows_output_display_block): Avoid local shadows.
15873
15874         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15875         (mswindows_enqueue_mouse_button_event): ditto.
15876         (mswindows_handle_gui_wm_command): remove declaration.
15877
15878         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15879         warnings.
15880
15881         * console-msw.h: Avoid shadows.
15882         (mswindows_get_toolbar_button_text):
15883         (emacs_mswindows_create_stream_pair):
15884         (emacs_mswindows_delete_stream_pair):
15885         (mswindows_handle_toolbar_wm_command): declare.
15886
15887         * device-msw.c (build_syscolor_string): Avoid shadows.
15888
15889 2000-01-23  Andy Piper  <andy@xemacs.org>
15890
15891         * glyphs-widget.c (widget_instantiate): reverse the items for
15892         layouts so that children are in the expected order.
15893
15894 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15895
15896         * ralloc.c: safe_bcopy ==> memmove
15897         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15898         * s/msdos.h: Remove BCOPY macros.
15899         * insdel.c (gap_right): Remove BCOPY conditional code.
15900         * insdel.c (gap_left): Remove BCOPY conditional code.
15901         XEmacs demands a working ANSI C compiler - hence memmove.
15902
15903         * regex.c (regex_compile): Remove accidental use of trigraphs.
15904
15905 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15906
15907         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15908         event timestamp.
15909
15910 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15911
15912         * event-msw.c (mswindows_drain_windows_queue): Added the
15913         parameter.
15914         (mswindows_need_event): Commented the call to
15915         mswindows_drain_windows_queue().
15916         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15917         only.
15918
15919         * console-msw.h: Moved a few function prototypes here from
15920         event-msw.c.
15921
15922         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15923         parameter from unsigned short to unsigned long.
15924         (Fmswindows_shell_execute): Added return value.
15925
15926 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15927
15928         * sysdep.c (init_system_name):
15929           process-unix.c (unix_canonicalized_host_name):
15930         Don't call freeaddrinfo() if getaddrinfo() fails.
15931
15932         * process-unix.c (unix_open_unix_network_stream):
15933         Moved the code to get a port # into address loop.
15934
15935 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15936
15937         * buffer.c (reinit_vars_of_buffer):
15938         The right place to initialize conversion_in_dynarr and
15939         conversion_out_dynarr.
15940
15941         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15942
15943         * process-unix.c (unix_canonicalize_host_name): Muleize.
15944         (unix_open_network_stream): Muleize.
15945
15946         * buffer.h: Fix up prototypes for ralloc.c functions.
15947
15948 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15949         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15950         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15951                 instead of gethostbyname()
15952         * process-unix.c: In unix_canonicalize_host_name() and
15953                 unix_open_network_stream(), add code to use getaddrinfo()
15954                 instead of gethostbyname().
15955
15956 2000-01-27  Daniel Pittman <daniel@danann.net>
15957
15958         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15959         libs when built with flat Athena.
15960
15961 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15962
15963         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15964         Use coding standards for function prototypes.
15965
15966 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15967
15968         * dialog-msw.c (push_lisp_string_as_unicode):
15969         * doc.c (unparesseuxify_doc_string):
15970         * dired.c (Fuser_name_completion_1):
15971         * dired.c (Fuser_name_all_completions):
15972         * dired.c (free_user_cache):
15973         * dired.c (user_name_completion):
15974         * console-x.c (get_display_arg_connection):
15975         * minibuf.c (clear_echo_area_internal):
15976         * minibuf.c (echo_area_append):
15977         * eldap.c (Fldap_open):
15978         * eldap.c (Fldap_search_internal):
15979         * frame-x.c (x_set_frame_text_value):
15980         * frame-x.c (x_set_frame_properties):
15981         * frame-x.c (x_create_widgets):
15982         * redisplay-tty.c (term_get_fkeys_1):
15983         * objects-x.c (x_parse_nearest_color):
15984         * objects-x.c (x_valid_color_name_p):
15985         * objects-x.c (x_initialize_font_instance):
15986         * objects-x.c (x_list_fonts):
15987         * objects-x.c (x_find_charset_font):
15988         * tooltalk.c (Fadd_tooltalk_message_arg):
15989         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15990         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15991         * process-unix.c (unix_create_process):
15992         * ntproc.c (sys_spawnve):
15993         * sound.c (Fplay_sound_file):
15994         * sound.c (Fplay_sound):
15995         * buffer.c (init_initial_directory):
15996         * buffer.c (init_buffer):
15997         * editfns.c (init_editfns):
15998         * editfns.c (Ftemp_directory):
15999         * editfns.c (Fuser_full_name):
16000         * editfns.c (uncache_home_directory):
16001         * editfns.c (get_home_directory):
16002         * editfns.c (Fuser_home_directory):
16003         * editfns.c (Fformat_time_string):
16004         * editfns.c (Fcurrent_time_string):
16005         * gui-x.c (button_item_to_widget_value):
16006         * database.c (Fopen_database):
16007         * event-Xt.c (x_to_emacs_keysym):
16008         * event-Xt.c (x_event_to_emacs_event):
16009         * event-Xt.c (describe_event_window):
16010         * event-msw.c (mswindows_wnd_proc):
16011         * glyphs-eimage.c (jpeg_instantiate):
16012         * glyphs-eimage.c (gif_instantiate):
16013         * glyphs-eimage.c (png_instantiate):
16014         * glyphs-eimage.c (tiff_instantiate):
16015         * glyphs-x.c (xbm_instantiate_1):
16016         * glyphs-x.c (x_xbm_instantiate):
16017         * glyphs-x.c (x_xface_instantiate):
16018         * glyphs-x.c (autodetect_instantiate):
16019         * glyphs-x.c (cursor_font_instantiate):
16020         * glyphs-x.c (x_widget_instantiate):
16021         * glyphs-x.c (x_widget_set_property):
16022         * glyphs-x.c (x_widget_property):
16023         * glyphs-x.c (BUILD_GLYPH_INST):
16024         * print.c (write_string_to_stdio_stream):
16025         * print.c (output_string):
16026         * print.c (Falternate_debugging_output):
16027         * print.c (Fexternal_debugging_output):
16028         * glyphs-msw.c (extract_xpm_color_names):
16029         * glyphs-msw.c (mswindows_xpm_instantiate):
16030         * glyphs-msw.c (bmp_instantiate):
16031         * glyphs-msw.c (resource_name_to_resource):
16032         * glyphs-msw.c (mswindows_resource_instantiate):
16033         * glyphs-msw.c (xbm_instantiate_1):
16034         * glyphs-msw.c (mswindows_xbm_instantiate):
16035         * glyphs-msw.c (mswindows_xface_instantiate):
16036         * glyphs-msw.c (mswindows_widget_instantiate):
16037         * glyphs-msw.c (add_tree_item):
16038         * glyphs-msw.c (add_tab_item):
16039         * glyphs-msw.c (mswindows_combo_box_instantiate):
16040         * glyphs-msw.c (mswindows_widget_property):
16041         * glyphs-msw.c (mswindows_combo_box_property):
16042         * glyphs-msw.c (mswindows_widget_set_property):
16043         * console.c (stuff_buffered_input):
16044         * objects-msw.c (mswindows_initialize_color_instance):
16045         * objects-msw.c (mswindows_valid_color_name_p):
16046         * objects-msw.c (mswindows_list_fonts):
16047         * objects-msw.c (mswindows_font_instance_truename):
16048         * bytecode.c (optimize_compiled_function):
16049         * select-x.c (symbol_to_x_atom):
16050         * select-x.c (x_atom_to_symbol):
16051         * select-x.c (hack_motif_clipboard_selection):
16052         * select-x.c (selection_data_to_lisp_data):
16053         * select-x.c (lisp_data_to_selection_data):
16054         * select-x.c (Fx_get_cutbuffer_internal):
16055         * select-x.c (Fx_store_cutbuffer_internal):
16056         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16057         * buffer.h (TO_INTERNAL_FORMAT): New function.
16058         * emacs.c (make_arg_list_1):
16059         * emacs.c (make_argc_argv):
16060         * emacs.c (main_1):
16061         * emacs.c (Fdump_emacs):
16062         * emacs.c (split_string_by_emchar_1):
16063         * file-coding.h:
16064         * lisp.h:
16065         * lstream.h:
16066         * symsinit.h:
16067         * device-x.c (x_init_device):
16068         * device-x.c (Fx_valid_keysym_name_p):
16069         * device-x.c (Fx_get_font_path):
16070         * device-x.c (Fx_set_font_path):
16071         * glyphs.c (bitmap_to_lisp_data):
16072         * glyphs.c (pixmap_to_lisp_data):
16073         * alloc.c (make_ext_string): Use coding system arguments.  Update
16074         all callers.
16075         * alloc.c (build_string):
16076         * callproc.c (child_setup):
16077         * callproc.c (init_callproc):
16078         * fileio.c (lisp_strerror):
16079         * fileio.c (directory_file_name):
16080         * fileio.c (Fexpand_file_name):
16081         * fileio.c (Ffile_truename):
16082         * fileio.c (Fsysnetunam):
16083         * fileio.c (Fdo_auto_save):
16084         * sysdep.c (sys_readdir):
16085         * tests.c: New file.  Allow adding C tests.
16086         Replace GET_* macros with a more comprehensible and flexible
16087         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16088         Modify all calls.
16089         Any coding system can be used to do format conversion.
16090         Eliminate enum external_data_format.
16091         Eliminate convert_to_external_format.
16092         Eliminate convert_to_internal_format.
16093         Make sure file-name, keyboard, terminal, and ctext are always
16094         defined as coding systems or aliases.  Make
16095         file-name-coding-system, terminal-coding-system, and
16096         keyboard-coding-system magical variables that are equivalent to
16097         defining the corresponding coding system aliases.
16098
16099         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16100         * file-coding.c (Fcoding_system_alias_p): New function.
16101         * file-coding.c (Fcoding_system_aliasee): New function.
16102         * file-coding.c (append_suffix_to_symbol): New function.
16103         * file-coding.c (dangling_coding_system_alias_p): New function.
16104         * file-coding.c (Ffind_coding_system):
16105         * file-coding.c (Fcopy_coding_system):
16106         * file-coding.c (encode_coding_no_conversion):
16107         * file-coding.c (syms_of_file_coding):
16108         * file-coding.c (vars_of_file_coding):
16109         Rewrite coding system alias code.
16110         Allow nested aliases, like symbolic links.
16111         Allow redefinition of coding system aliases.
16112         Prevent existence of dangling coding system aliases.
16113
16114         * dired.c (Fuser_name_completion_1):
16115         * dired.c (Fuser_name_all_completions):
16116         A crash would happen if user did QUIT in the middle of building
16117         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16118
16119         * lisp.h:
16120         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16121
16122         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16123         an unsigned char *.  Update all callers.
16124
16125 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16126
16127         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16128
16129 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16130
16131         * elhash.c (hentry_description): Use more portable definition.
16132         (resize_hash_table): Initialize new hentries using
16133         xnew_array_and_zero, thereby simplifying the code.
16134
16135         * mule-charset.c (make_charset): Make sure entire object is
16136         initialized, to avoid Purify warnings.
16137
16138         * alloc.c (resize_string): Fix unlikely crash with big strings.
16139
16140 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16141
16142         * realpath.c (xrealpath):
16143         Don't call getwd().
16144
16145 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16146
16147         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16148
16149 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16150
16151         * unexelfsgi.c (unexec): Change the way we decide which segment
16152         should be extended.
16153
16154         Assumption that .bss section should be outside the PT_LOADable
16155         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16156         it's present) is inside the 'data' segment. This would fail the
16157         test which was used to find a segment to grow and cover new
16158         heap. Instead of this assumption, I created another one - on IRIX
16159         the segment to grow should start below .bss and it's address
16160         should extent above the end of .bss. Once this segment is
16161         identified, it's grown to accommodate the new heap and new
16162         zero-length .bss section is added at the end of .data2.
16163
16164 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16165
16166         * eval.c (Feval): Wrong number of arguments should use original
16167         function, not the indirect_function version of it.
16168
16169 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16170
16171         * glyphs-x.c (x_button_instantiate): Don't add image if
16172         it is not a pixmap.
16173         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16174         is relative.
16175
16176 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16177
16178         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16179         declaration.
16180         (DEFVAR_INT_MAGIC): Ditto.
16181         (DEFVAR_BOOL_MAGIC): Ditto.
16182         * glyphs.h: Reindent backslash.
16183
16184 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16185
16186         * glyphs-widget.c (layout_query_geometry):
16187         (layout_layout): Use correct types for gheight, gwidth.
16188
16189 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16190
16191         * EmacsManager.c (QueryGeometry): Purified.
16192
16193 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16194
16195         * alloc.c (make_float): Make sure entire object is initialized, to
16196         avoid Purify warnings.
16197         (pdump_register_sub): Remove useless assignment.
16198         (pdump): Use xmalloc, not malloc.
16199         (pdump_load): Use xmalloc, not malloc.
16200
16201 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16202
16203         * callproc.c:
16204         * dired-msw.c:
16205         * fileio.c:
16206         * process-nt.c:
16207         * redisplay-msw.c:
16208         * sysdep.c: Removed redundant #include <windows.h>
16209
16210 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16211
16212         * frame.c (delete_frame_internal): Do not delete device when its
16213         implementation so declares.
16214         (delete_frame_internal): Set device selected frame to nil when
16215         last frame goes away.
16216
16217         * device-msw.c (msprinter_device_system_metrics): Implemented.
16218         (mswindows_device_system_metrics): Added 'device-dpi property.
16219
16220         * device.c: (Fdevice_printer_p): Added.
16221         Added 'offset-workspace device metric.
16222
16223         * console.h (device_metrics): Declared DM_offset_workspace.
16224
16225 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16226
16227         * fileio.c (Ffile_truename): Remove pointless and confusing
16228         initialization of elen.
16229
16230         * glyphs-widget.c: Compiler warning fixes.
16231
16232 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16233
16234         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16235         instead of a Lisp_Object as argument to make it consistent with
16236         the other LIVE_P macros.
16237         (CHECK_LIVE_PROCESS): New macro.
16238
16239         * process.c: Declare Qprocess_live_p.
16240         (Fprocess_live_p): New function.
16241         (create_process): Use PROCESS_LIVE_P.
16242         (read_process_output): Ditto.
16243         (set_process_filter): Ditto.
16244         (Fdelete_process): Ditto.
16245         (kill_buffer_processes): Ditto
16246         (process_send_signal): Use CHECK_LIVE_PROCESS.
16247         (Fprocess_input_coding_system): Check whether process is still
16248         alive (fix PR#1061).
16249         (Fprocess_output_coding_system): Ditto.
16250         (Fprocess_coding_system): Ditto.
16251         (Fset_process_input_coding_system): Ditto.
16252         (Fset_process_output_coding_system): Ditto.
16253
16254 2000-01-23  Andy Piper  <andy@xemacs.org>
16255
16256         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16257         layout and widget.
16258
16259         * glyphs.c (mark_image_instance): take into account changed
16260         image_instance format.
16261         (image_instance_equal): ditto.
16262         (image_instance_hash): ditto.
16263
16264         * glyphs-widget.c (widget_instantiate): Incorporate layout
16265         instantiation here. Delay layout of the layout until later.
16266         (layout_instantiate): deleted.
16267         (layout_query_geometry): new function. get the geometry of a
16268         layout.
16269         (layout_layout): layout a layout dynamically.
16270         (image_instantiator_widget): New function - splitting up
16271         image_instantiator_format_create_glyphs_widget for netwinder
16272         compilation.
16273         (image_instantiator_buttons):
16274         (image_instantiator_edit_fields):
16275         (image_instantiator_combo_box):
16276         (image_instantiator_scrollbar):
16277         (image_instantiator_progress_guage):
16278         (image_instantiator_tree_view):
16279         (image_instantiator_tab_control):
16280         (image_instantiator_labels):
16281         (image_instantiator_layout): ditto.
16282         (image_instantiator_format_create_glyphs_widget): Call preceding
16283         functions.
16284
16285 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16286
16287         * process.c (Fset_process_coding_system):
16288         * device-x.c (Fx_keysym_hash_table):
16289         Docstring fixes.
16290
16291         * lstream.c (Lstream_write): Return documented value, not 0.
16292
16293         * fileio.c (directory_file_name):
16294         (Fsubstitute_in_file_name):
16295         (Fsubstitute_insert_file_contents_internal):
16296         (Fwrite_region_internal):
16297         * emacs.c:
16298         * sysdep.c:
16299         * getloadavg.c:
16300         * systty.h:
16301         Remove vestigial APOLLO-conditional code.
16302
16303 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16304
16305         * getpagesize.h: Add guard macros.
16306         * libsst.h: Add guard macros.
16307         * libst.h: Add guard macros.
16308         * line-number.h: Add guard macros.
16309         * ndir.h: Add guard macros.
16310         * sysfloat.h: Add guard macros.
16311         * sysfile.h: Add guard macros.
16312         * sysproc.h: Add guard macros.
16313         * syswait.h: Add guard macros.
16314         * xintrinsic.h: Add guard macros.
16315         * xintrinsicp.h: Add guard macros.
16316         * xmmanager.h: Add guard macros.
16317         * xmmanagerp.h: Add guard macros.
16318         * xmprimitive.h: Add guard macros.
16319         * xmu.h: Add guard macros.
16320         * gpmevent.h: Add copyright statement. Add guard macros.
16321         * miscplay.h: Add guard macros.
16322         * *.h: Use consistent C-standards-approved guard macro names.
16323
16324         * opaque.c (make_opaque): Switch parameter order.
16325         * opaque.h (make_opaque): Switch parameter order.
16326         Update all callers.
16327         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16328
16329         * config.h.in (type_checking_assert): Added.
16330         (bufpos_checking_assert): Added.
16331
16332 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16333
16334         * alloc.c: Harmless pdump changes.
16335         - Use countof().
16336         - spell alignment correctly.
16337         * sysdep.c: Use countof()
16338
16339 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16340
16341         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16342         initially_selected_for_input() console method, default to 0.
16343         (semi_canonicalize_console_connection): Try to delegate to
16344         canonicalize_console_connection if no such console method.
16345         (canonicalize_console_connection): Vice versa.
16346         (print_console): Do not print nil connection.
16347
16348         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16349         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16350         (XDEVIMPF_FRAMELESS_OK): Added.
16351         (CONSOLE_INHERITS_METHOD): Added.
16352
16353         * console-msw.c (mswindows_canonicalize_console_connection):
16354         Added.
16355         (mswindows_canonicalize_device_connection): Added.
16356
16357         * console-msw.h (struct msprinter_device): Added this struct and
16358         accessor macros.
16359         (mswindows_device): Made fontlist a lisp object.
16360
16361         * device.c (semi_canonicalize_device_connection):  Try to delegate
16362         to canonicalize_device_connection if no such console method.
16363         (canonicalize_device_connection): Vice versa.
16364         (print_device): Do not print nil connection.
16365
16366         * device-msw.c (mswindows_init_device): Call InitCommonControls
16367         when have widgets.
16368         (mswindows_delete_device): Removed fontlist deallocation.
16369         (mswindows_mark_device): Added.
16370
16371         * events.c (event_equal): Added abort() at unreached code.
16372         (event_hash): Ditto.
16373
16374         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16375         fallback tags of Windows devices.
16376
16377         * general.c (syms_of_general): Initialized Qmsprinter.
16378
16379         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16380         of fallback tags of Windows devices.
16381
16382         * lisp.h: Declared Qmsprinter.
16383
16384         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16385         of strings.
16386         (mswindows_list_fonts): Ditto.
16387         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16388         that it can be used by both mswindows and msprinter devices.
16389         (initialize_font_instance): Added.
16390         (mswindows_initialize_font_instance): Use it.
16391         (msprinter_initialize_font_instance): Added.
16392
16393         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16394         and implementation flags check.
16395         (redisplay_without_hooks): Changed the call to the above.
16396         (Fredraw_device): Ditto.
16397         (Fredisplay_device): Ditto.
16398
16399         * redisplay-msw.c (get_frame_dc): Implemented.
16400         (get_frame_compdc): Implemented.
16401         (many functions): Use the two functions above to get device
16402         contexts, ether for a window or a printer.
16403
16404 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16405
16406         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16407         initialization here.
16408         (init_symbols_once_early): Call it.
16409         * emacs.c (main_1): Call it.
16410         * symsinit.h: Declare it.
16411
16412 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16413
16414         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16415         Lisp_Object.
16416         (pdump_backtrace): Ditto.
16417         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16418         (pdump_get_entry): Abort if trying to register a null pointer.
16419         (pdump_dump_data): Cleanup types when relocating.
16420         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16421         (pdump_dump_rtables): Remove bad casts.
16422         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16423         Lisp_Object instead of a EMACS_INT for the hashtable
16424         reorganization.
16425
16426 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16427
16428         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16429
16430         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16431
16432         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16433
16434         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16435
16436 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16437
16438         * faces.h (FACE_STRIKETHRU_P): Added.
16439
16440         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16441         of font variants.
16442
16443         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16444         (mswindows_set_dc_font): New function, aware of font variants,
16445         separated from mswindows_update_dc.
16446
16447         * objects-msw.h (struct mswindows_font_instance_data): Added
16448         definition.
16449
16450         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16451         cached fonts and the data structure.
16452         (mswindows_initialize_font_instance): Added creation of font data
16453         structure.
16454         (mswindows_print_font_instance): Print at least something.
16455         (mswindows_create_font_variant): Implemented.
16456         (mswindows_get_hfont): Implemented.
16457
16458 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16459
16460         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16461         prototyping problem with msvc.
16462
16463         * emacs.c (main_1): added syms_of_gui_mswindows() call
16464
16465         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16466         syms_of_gui_mswindows() function
16467
16468         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16469
16470 2000-01-18  Martin Buchholz <martin@xemacs.org>
16471
16472         * XEmacs 21.2.27 is released.
16473
16474 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16475
16476         * glyphs-eimage.c (struct tiff_error_struct):
16477         (tiff_error_func):
16478         (tiff_warning_func):
16479         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16480
16481         * unexmips.c:
16482         * unexhp9k3.c:
16483         * unexfreebsd.c:
16484         * unexec.c: Remove vestigial Lucid C code.
16485         * unexalpha.c:
16486         * unexaix.c:
16487         * termcap.c:
16488         * libsst.c: Ansify.
16489         Remove declarations of errno and strerror().
16490
16491         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16492
16493         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16494
16495 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16496
16497         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16498         Optimize.
16499
16500 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16501
16502         * md5.c:
16503         * file-coding.c:
16504         * file-coding.h:
16505         Change enum eol_type to eol_type_t.
16506
16507 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16508
16509         * gui.c (get_gui_callback): Check cons before accessing car.
16510
16511 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16512
16513         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16514         (XSETSPECIFIER_TYPE): Ditto.
16515
16516 2000-01-17  Didier Verna  <didier@xemacs.org>
16517
16518         * redisplay.c (generate_fstring_runes): compute string size in
16519         characters, not bytes.
16520
16521 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16522
16523         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16524
16525 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16526
16527         * print.c (print_error_message): Call print_prepare().
16528
16529 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16530
16531         * .dbxrc: Renamed from dbxrc.
16532
16533         * events.c (event_to_character):
16534         Use `assert (foo)' instead of `if (!foo) abort()'
16535
16536         * .gdbinit (xtype): Add documentation.
16537         * .gdbinit (check-temacs): New function.
16538         * .gdbinit (check-xemacs): New function.
16539         * dbxrc (check-xemacs): New function.
16540         * dbxrc (check-xemacs): New function.
16541
16542 2000-01-14  Andy Piper  <andy@xemacs.org>
16543
16544         * glyphs-widget.c (widget_query_geometry): Make sure that we
16545         calculate default dimensions correctly.
16546
16547 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16548
16549         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16550
16551         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16552         pdump_wire'd variable.
16553
16554         * emacs.c: (main_1): Conditionalized calls to
16555         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16556
16557 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16558
16559         * window.c (Fset_window_configuration):
16560         * sysdep.c (_start):
16561         * input-method-motif.c (res):
16562         * event-Xt.c (Xt_process_to_emacs_event):
16563         Simple compiler warning fixes.
16564
16565         * bytecode.c (funcall_compiled_function): Use the original
16566         function symbol on the backtrace list in preference to the
16567         compiled_function object in error messages.
16568
16569 2000-01-13  Andy Piper  <andy@xemacs.org>
16570
16571         * glyphs-x.c (update_widget_face): Make sure we update the widget
16572         background as well as foreground.
16573
16574 2000-01-13  Andy Piper  <andy@xemacs.org>
16575
16576         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16577         fields to subwindow.
16578         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16579         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16580         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16581         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16582
16583         * glyphs-widget.c (check_valid_tab_orientation): new function.
16584         (initialize_widget_image_instance): zero orientation and
16585         justification.
16586         (widget_instantiate): pick up orientation.
16587         (tab_control_query_geometry): return appropriate values for
16588         vertical tabs.
16589
16590         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16591         appropriate creation flags for left, right and bottom tabs.
16592
16593         * s/cygwin32.h: add tab definitions.
16594
16595 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16596
16597         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16598         frame upon hiding a subwindow.
16599         (mswindows_button_instantiate): Changed the push button style to
16600         BS_PUSHBUTTON.
16601         (mswindows_button_instantiate): Removed button BS_NOTIFY
16602         style.
16603         (mswindows_button_instantiate): Removed redundant check for
16604         a disabled gui item.
16605         (mswindows_button_instantiate): Made use of WS_TABSTOP
16606         consistent: "operable" controls (edit, button, tree, scroll) have
16607         this style, "display-only" ones (static, progress gauge) do
16608         not. This style is currently ignored by XEmacs though. Also,
16609         removed the WS_EX_CONTROLPARENT style - it is not for children,
16610         it is for their parents!
16611         (mswindows_edit_field_instantiate): Ditto.
16612         (mswindows_progress_gauge_instantiate): Ditto.
16613         (mswindows_tree_view_instantiate): Ditto.
16614         (mswindows_tab_control_instantiate): Ditto.
16615         (mswindows_scrollbar_instantiate): Ditto.
16616         (mswindows_combo_box_instantiate): Ditto.
16617         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16618         style to the "clip" window.
16619         (mswindows_button_instantiate): Removed compilation warning by
16620         equally typing terms of the ?: operator.
16621
16622 2000-01-12  Didier Verna  <didier@xemacs.org>
16623
16624         * redisplay.c (generate_fstring_runes): new parameter holding the
16625         last modeline-format extent.
16626         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16627         extent, fill the glyph block with it.
16628         (generate_fstring_runes): handle these parameters.
16629         (generate_formatted_string_db): ditto.
16630
16631         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16632         glyphs'extents in the modeline.
16633
16634 1999-01-11  Mike Woolley  <mike@bulsara.com>
16635
16636         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16637         256Mb, as a workaround for the non-starting problem many people
16638         have experienced.
16639
16640 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16641
16642         * console-tty.c (Fset_console_tty_output_coding_system):
16643         Force redrawing tty frame.
16644
16645 2000-01-10  Didier Verna  <didier@xemacs.org>
16646
16647         * redisplay.c (generate_fstring_runes): fix size computation bug.
16648
16649 2000-01-09  William M. Perry <wmperry@aventail.com>
16650
16651         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16652
16653 2000-01-09  Andy Piper  <andy@xemacs.org>
16654
16655         * glyphs-msw.c: index -> i to avoid shadows.
16656         (xbm_create_bitmap_from_data): make static.
16657         (check_valid_string_or_int): deleted.
16658         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16659
16660         * glyphs-x.c (x_update_subwindow): remove unused args.
16661
16662         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16663         back pointer - this is done in allocate_image_instance.
16664         (query_string_font): return Qnil to make the compiler happy.
16665         (unmap_subwindow): set to ~0 to make the compiler happy.
16666         (glyph_query_geometry): comment out until used.
16667         (glyph_layout): ditto.
16668
16669 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16670
16671         * insdel.c (signal_after_change): Remove extraneous unbind_to().