update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * char-ucs.h (Q_subsumptive): New extern.
4         (Q_denotational): Likewise.
5         (encode_char_2): Search children specified by `->subsumptive' and
6         `->denotational'.
7
8 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
9
10         * mule-charset.c (complex_vars_of_mule_charset): Modify the
11         X-registry of `ucs-bmp'.
12
13 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * chartab.c (char-variants): Refer `->subsumptive',
16         `->denotational' and `->identical' as same as `->ucs-unified'.
17
18 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * chartab.c (Fput_char_attribute): Convert char-specs in value of
21         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
22         links.
23
24 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * text-coding.c: Add EXFUN for `Fregexp_quote'.
27         (decode_add_er_char): Fix problem about infinite loop when a CCS
28         specified in `coded-charset-entity-reference-alist' is not
29         existed.
30
31 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
32
33         * mule-charset.c (syms_of_mule_charset): Rename
34         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
35
36 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
37
38         * fns.c (simplify_char_spec): Don't allocate new character-object
39         if specified char_spec does not have any CCS-features.
40
41         * chartab.h: Add EXFUN for Fdefine_char.
42
43         * chartab.c: Delete EXFUN for Fdefine_char.
44
45 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
46
47         * fns.c (simplify_char_spec): Use Fdefine_char instead of
48         Ffind_char for char-spec.
49
50 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * lisp-disunion.h (XCHARVAL): Fix condition about
53         SIZEOF_EMACS_INT.
54
55 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
56
57         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
58         <int> for `code'.
59         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
60         point; use <Emchar> instead of <int> for character-id.
61
62 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
63
64         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
65         (make_char): Likewise.
66         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
67         environment.
68         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
69         instead of <int> as the type of return value; use <Lisp_Object>
70         instead of <Emchar> as the type of argument.
71         (XCHARVAL[macro version]): Cast the result into <Emchar>.
72
73         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
74         syntaxcode> instead of <int>.
75
76 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * chartab.c (put_char_composition): Use DECODE_CHAR to get
79         character corresponding with UCS code point.
80         (Fput_char_attribute): Likewise.
81
82         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
83         character in the UCS decoding-table if the char-id is not equal to
84         the UCS code point.
85
86 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
89         for aliases; write `description'; write
90         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
91         not 0.
92
93 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * chartab.c (Fsave_char_attribute_table): Don't use
96         `save_charset_properties'.
97
98         * mule-charset.c (Fsave_charset_properties): Renamed from
99         `save_charset_properties' and changed to Lisp function again;
100         write property `type' as `CCS'; write properties `final-byte' and
101         `mother' if they exists.
102         (syms_of_mule_charset): Revive builtin function
103         `save-charset-properties' when HAVE_LIBCHISE is defined.
104
105 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
106
107         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
108         instead of Vexec_directory.
109         (char_attribute_system_db_file): Likewise.
110
111 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * chartab.c (Fsave_char_attribute_table): Use
114         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
115         defined.
116
117         * mule-charset.c (save_charset_properties): Renamed from
118         `Fsave_charset_properties'; changed to non-Lisp function.
119         (syms_of_mule_charset): Abolish builtin function
120         `save-charset-properties'.
121
122 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * mule-charset.c (Fsave_charset_properties): New function when
125         HAVE_LIBCHISE is defined.
126         (syms_of_mule_charset): Add new builtin function
127         `save-charset-properties' when HAVE_LIBCHISE is defined.
128
129 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
130
131         * chartab.c (Fput_char_attribute): Convert char-specs in value of
132         `{<-|->}ancient[^*]*' to characters and put reverse links.
133         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
134         for `{<-|->}ancient[^*]*'.
135
136 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * chartab.c (Fput_char_attribute): Convert char-specs in value of
139         `{<-|->}original[^*]*' to characters and put reverse links.
140         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
141         for `{<-|->}original[^*]*'.
142
143 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
146
147 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * mule-charset.c (Qsystem_char_id): New variable.
150
151         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
152         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
153
154 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * chartab.c (Fput_char_attribute): When processing a reference of
157         a character, put into the end of the reversed reference of each
158         target character.
159
160 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * chartab.c (Q_same): Deleted.
163         (Q_same_of): Deleted.
164         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
165         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
166         for `{<-|->}same'.
167         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
168
169 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
170
171         * chartab.c (Q_vulgar): Deleted.
172         (Q_vulgar_of): Deleted.
173         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
174         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
175         for `{<-|->}vulgar'.
176         (syms_of_chartab): Don't define `{<-|->}vulgar'.
177
178 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
179
180         * chartab.c (Fput_char_attribute): Convert char-specs in value of
181         `{<-|->}wrong[^*]*' to characters and put reverse links.
182         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
183         for `{<-|->}wrong[^*]*'.
184
185 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
186
187         * chartab.c (Q_vulgar): New variable.
188         (Q_vulgar_of): New variable.
189         (Fput_char_attribute): Convert char-specs in value of
190         `{->|<-}vulgar' to characters and put reverse links.
191         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
192         for `{->|<-}vulgar'.
193         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
194
195 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
196
197         * text-coding.c (decode_add_er_char): Must to quote prefix string
198         as regexp.
199
200 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * mule-charset.c (put_char_ccs_code_point): Store characters of
203         =ucs whose code_points >= 0xF0000.
204
205 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
206
207         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
208         CHISE.
209         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
210         CHISE.
211         (complex_vars_of_mule_charset): Add new coded-charset
212         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
213         builtin characters over 0xEFFFF.
214
215         * chartab.c (syms_of_chartab): Don't define symbol
216         `system-char-id' in every case.
217
218         * char-ucs.h (Qsystem_char_id): New extern variable.
219         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
220
221 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
222
223         * text-coding.c (char_encode_utf8): Try to use entity-references
224         for U-000F0000 ...  U-0010FFFF.
225
226 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
227
228         * text-coding.c (ER_BUF_SIZE): New macro.
229         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
230         `er_buf'.
231         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
232         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
233
234 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * chartab.c (find_char_feature_in_family): New function.
237         (Fchar_feature): Use `find_char_feature_in_family' with
238         `->identical', `<-subsumptive' and `<-denotational'.
239
240 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
241
242         * text-coding.c (char_encode_as_entity_reference): Allow prefix
243         within 8 characters; fix infinite loop.
244
245 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * chartab.c (Q_same): New variable.
248         (Q_same_of): New variable.
249         (Fput_char_attribute): Convert char-specs in value of
250         `{->|<-}same' to characters and put reverse links.
251         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
252         for `{->|<-}same'.
253         (syms_of_chartab): Add new symbols `{->|<-}same'.
254
255 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * chartab.c (Q_component): New variable.
258         (Q_component_of): Likewise.
259         (Fput_char_attribute): Convert char-specs in value of
260         `{->|<-}ideographic-component-forms' to characters and put reverse
261         links.
262         (syms_of_chartab): Add new symbols
263         `{->|<-}ideographic-component-forms'.
264
265 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
266
267         * chartab.c (Q_identical): New variable.
268         (Q_identical_from): New variable.
269         (Fchar_feature): Regard `->identical' as a feature to find
270         ancestors.
271         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
272         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
273         for `{->|<-}identical'.
274         (syms_of_chartab): Add new symbols `{->|<-}identical'.
275
276 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
277
278         * char-ucs.h (encode_char_2): New inline function.
279         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
280
281 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
282
283         * chartab.c (Fput_char_attribute): Convert char-specs to
284         characters in value of `ideographic-structure'.
285         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
286         for `{<-|->}simplified(@...)'.
287         (Fdefine_char): bTry to use predefined character's id.
288
289 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
290
291         * fns.c (simplify_char_spec): Try to convert builtin chars to
292         defined chars.
293
294 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
295
296         * chartab.c (Fput_char_attribute): Convert char-specs in value of
297         `<-simplified[^*]*' to characters and put reverse links.
298
299 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * chartab.c (Q_subsumptive): Renamed from Q_unified.
302         (Q_subsumptive_from): Renamed from Q_unified_from.
303         (Fchar_feature): Use `Q_subsumptive_from' instead of
304         `Q_unified_from'.
305         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
306         `Q_unified'.
307         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
308         `<-unified' to `<-subsumptive'.
309
310 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
311
312         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
313         inheritance itself; fix typo; stop recursive search if cyclic
314         inheritance is found.
315
316 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
317
318         * chartab.c (Q_denotational): New variable.
319         (Q_denotational_from): New variable.
320         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
321         (put_char_attribute): New function.
322         (Fput_char_attribute): Use `put_char_attribute'; regard
323         `->denotational' and `<-denotational' as same as `->unified' and
324         `<-unified'.
325         (syms_of_chartab): Add new symbols `->denotational' and
326         `<-denotational'.
327
328 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
329
330         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
331         `Fget_char_attribute'.
332         (Fchar_variants): Likewise.
333         (get_char_table): Likewise.
334         (Fchar_feature): New function.
335         (put_char_composition): Use `Fchar_feature' instead of
336         `Fget_char_attribute'.
337         (Fput_char_attribute): Likewise; don't put the target character
338         into its `->unified' value.
339         (syms_of_chartab): Add new builtin function `char-feature'.
340
341 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
344         `Fget_char_attribute'.
345         (char_encode_utf8): Likewise.
346
347         * chartab.h: Add an EXFUN for `Fchar_feature'.
348
349 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
350
351         * chartab.c (Vnext_defined_char_id): New variable.
352         (Fput_char_attribute): Accept characters in `->unified'.
353         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
354         new characters which are not related with builtin char-id ranges.
355         (vars_of_chartab): Add new variable `next-defined-char-id'.
356
357 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
358
359         * chartab.c (Q_unified): New variable.
360         (Q_unified_from): New variable.
361         (Fput_char_attribute): Add code for `->unified'.
362         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
363         XEmacs CHISE.
364
365 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * mule-charset.c (decode_ccs_conversion): New function.
368         (decode_defined_char): Use `decode_ccs_conversion'.
369         (decode_builtin_char): Likewise.
370
371 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * char-ucs.h: Change some charset-ids of private coded-charsets.
374
375 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
376
377         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
378         (char_encode_as_entity_reference): Likewise.
379         (decode_coding_big5): Modify for `decode_defined_char' and
380         `DECODE_CHAR'.
381         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
382         avoid compiler warning.
383         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
384
385         * mule-charset.c (decode_defined_char): Add new argument
386         `without_inheritance'.
387         (Fdecode_char): Add new optional argument `without_inheritance'.
388         (Fdecode_builtin_char): Modify for `Fdecode_char'.
389
390         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
391         (simplify_char_spec): Likewise.
392
393         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
394         setting.
395
396         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
397         (map_char_table): Likewise.
398         (Fdefine_char): Use `Fdecode_char' without inheritance.
399         (Ffind_char): Modify for `Fdecode_char'.
400
401         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
402
403         * char-ucs.h (decode_defined_char): Add new argument
404         `without_inheritance'.
405         (DECODE_CHAR): Likewise.
406         (MAKE_CHAR): Modify for `DECODE_CHAR'.
407
408 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * chartab.c (Vchise_system_db_directory): New variable.
411         (vars_of_chartab): Add new variable `chise-system-db-directory'.
412
413 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * chartab.c: EXFUN `Fmount_char_attribute_table'.
416         (print_chartab_range): Don't define when `UTF2000' is defined.
417         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
418         `CHISE_DS_open'.
419
420 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
423         and optional argument `rehash' is specified, call
424         `open_chise_data_source_maybe' before
425         `chise_ds_foreach_char_feature_name' is called.
426
427 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
428
429         * chartab.c (char_attribute_list_reset_map_func): New function
430         when HAVE_LIBCHISE is defined.
431         (Fchar_attribute_list): Add new optional argument `rehash' when
432         HAVE_LIBCHISE is defined.
433         (open_chise_data_source_maybe): Use "chise-db" instead of
434         "char-db".
435         (char_attribute_system_db_file): Likewise.
436         (Fload_char_attribute_table): Use
437         `chise_feature_foreach_char_with_value' instead of
438         `chise_char_feature_value_iterate'.
439
440 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
441
442         * chartab.c (Vchise_db_directory): New variable.
443         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
444
445 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
448         instead of HAVE_CHISE to specify using with libchise.
449
450         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
451
452         * chartab.h: Don't use HAVE_CHISE_CLIENT.
453
454         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
455         defined or HAVE_LIBCHISE_LIBCHISE is defined.
456         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
457         is defined.
458         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
459         HAVE_CHISE to specify using with libchise.
460         (syms_of_chartab): Don't define symbol `system-char-id' when
461         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
462
463 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
466         specify CHISE DB support.
467         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
468         of `char_attribute_system_db_file' to check feature DB file.
469
470         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
471         HAVE_CHISE_CLIENT to specify CHISE DB support.
472
473         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
474         specify CHISE DB support.
475         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
476         not defined.
477         (Freset_char_attribute_table): Use `chise_feature_setup_db'
478         instead of `char_attribute_system_db_file' to check feature DB
479         file.
480
481 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
482
483         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
484         `HAVE_CHISE_CLIENT'.
485
486 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
487
488         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
489         (Fsave_charset_mapping_table): Don't use
490         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
491
492         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
493         (HAVE_LIBCHISE): New macro.
494
495         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
496
497         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
498         (Fsave_char_attribute_table): Don't use
499         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
500
501 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
504         defined.
505         (save_uint16_byte_table): Likewise.
506         (save_byte_table): Likewise.
507         (char_table_get_db): Use `chise_ds_load_char_feature_value'
508         instead of `chise_char_load_feature_value'.
509         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
510
511 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
512
513         * chartab.h (struct Lisp_Char_Table): Delete member
514         `feature_table' if CHISE is defined.
515
516         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
517         (Fcopy_char_table): Likewise.
518         (char_table_open_db_maybe): Likewise.
519         (char_table_close_db_maybe): Likewise.
520         (char_table_get_db): Likewise.
521         (Fmount_char_attribute_table): Likewise.
522         (Fload_char_attribute_table): Likewise.
523
524 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
525
526         * mule-charset.c (load_char_decoding_entry_maybe): Use
527         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
528         `chise_ccs_decode'.
529
530 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
531
532         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
533         instead of `chise_open_data_source'.
534         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
535         `chise_ds_close'.
536
537 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
538
539         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
540         instead of `chise_ds_open_feature_table'.
541         (char_table_close_db_maybe): Don't use `chise_ft_close'.
542
543 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * mule-charset.c (Fsave_charset_mapping_table): Use
546         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
547         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
548         `chise_ccs_sync' instead of `chise_ccst_close'.
549         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
550
551         * chartab.c (open_chise_data_source_maybe): Modify for
552         `chise_open_data_source'.
553         (char_table_open_db_maybe): Modify for
554         `chise_ds_open_feature_table'.
555
556 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
557
558         * mule-charset.c (load_char_decoding_entry_maybe): Use
559         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
560         `chise_ccst_close'.
561
562 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
563
564         * mule-charset.c (Fsave_charset_mapping_table): Use
565         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
566         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
567         `chise_dt_put_char' and `chise_dt_close'.
568         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
569         `chise_ccs_decode' and `chise_ccst_close' instead of
570         `chise_ds_open_decoding_table', `chise_dt_get_char' and
571         `chise_dt_close'.
572
573         * chartab.c (char_table_get_db): Use
574         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
575         (load_char_attribute_table_map_func): Modify for
576         `chise_char_feature_value_iterate'.
577         (Fload_char_attribute_table): Use
578         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
579
580 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
581
582         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
583
584 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
585
586         * chartab.c (put_char_table): Modify for inherited coded-charsets
587         in XEmacs CHISE.
588
589 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
590
591         * chartab.c (Fput_char_table_map_function): Fixed.
592         (word_boundary_p): Don't check charset in XEmacs CHISE.
593
594 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
595
596         * mule-charset.c (Fsave_charset_mapping_table): Use
597         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
598         instead of `chise_open_decoding_table'; refer
599         `default_chise_data_source'; use `chise_dt_close' instead of
600         `chise_close_decoding_table'.
601         (load_char_decoding_entry_maybe): Likewise.
602
603         * chartab.c (default_chise_data_source): New variable when `CHISE'
604         is defined.
605         (Fcopy_char_table): `ct->ds' is deleted.
606         (open_chise_data_source_maybe): New function.
607         (Fclose_char_data_source): New function.
608         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
609         use `chise_ds_open_feature_table' instead of
610         `chise_open_feature_table'.
611         (char_table_close_db_maybe): Use `chise_ft_close' instead of
612         `chise_close_feature_table'; `cit->ds' is deleted.
613         (syms_of_chartab): Add new builtin function
614         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
615
616         * chartab.h (default_chise_data_source): New extern variable.
617         (open_chise_data_source_maybe): New prototype.
618         (struct Lisp_Char_Table): Delete `ds'.
619
620 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
621
622         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
623         `CHISE' is defined.
624
625 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
626
627         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
628         not defined; add code for non-libchise setting.
629         (char_table_close_db_maybe): Likewise.
630         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
631         defined.
632         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
633         even if `CHISE' is not defined.
634         (Freset_char_attribute_table): Likewise.
635         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
636         `char_table_close_db_maybe' even if `CHISE' is not defined; use
637         `char_table_get_db'.
638         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
639         `char_table_close_db_maybe' even if `CHISE' is not defined.
640
641 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
642
643         * chartab.c (char_table_open_db_maybe): New function.
644         (char_table_close_db_maybe): New function.
645         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
646         (Freset_char_attribute_table): Likewise.
647         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
648         `char_table_close_db_maybe'.
649         (Fload_char_attribute_table): Likewise.
650
651 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
652
653         * chartab.c: Don't include <chise.h> because it is included in
654         chartab.h.
655         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
656         defined.
657         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
658         `CHISE' is defined.
659         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
660         `CHISE' is defined.
661         (Fclose_char_attribute_table): Close `ct->feature_table' and
662         `ct->ds' when `CHISE' is defined.
663         (Freset_char_attribute_table): Likewise.
664         (load_char_attribute_maybe): Use `cit->ds' and
665         `cit->feature_table' when `CHISE' is defined.
666         (Fload_char_attribute_table): Likewise.
667
668         * chartab.h: Include <chise.h> when `CHISE' is defined.
669         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
670         when `CHISE' is defined.
671
672 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
673
674         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
675         is defined.
676         (char_table_description): Likewise.
677         (Fmake_char_table): Likewise.
678         (Fcopy_char_table): Likewise.
679         (Fmount_char_attribute_table): Likewise.
680         (Fclose_char_attribute_table): Likewise.
681         (Freset_char_attribute_table): Likewise.
682         (load_char_attribute_maybe): Likewise.
683         (Fload_char_attribute_table): Likewise.
684
685         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
686         defined.
687
688 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
689
690         * chartab.c (load_char_attribute_table_map_func): New function
691         when CHISE is defined.
692         (Qload_char_attribute_table_map_function): Don't define when CHISE
693         is defined.
694         (Fload_char_attribute_table_map_function): Likewise.
695         (Fload_char_attribute_table): Use libchise when `CHISE' is
696         defined.
697         (syms_of_chartab): Don't define
698         `load-char-attribute-table-map-function' when CHISE is defined.
699
700 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
701
702         * chartab.c: Include <chise.h> when `CHISE' is defined.
703         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
704
705 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * mule-charset.c (charset_code_point): Fix problem when searching
708         in mother CCS fails with `defined_only' mode.
709
710 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
711
712         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
713         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
714         (put_char_composition): Likewise.
715         (Fput_char_attribute): Likewise.
716         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
717
718 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
719
720         * chartab.c (Q_ucs): Deleted.
721         (Fput_char_attribute): Don't refer `->ucs'.
722         (Fdefine_char): Likewise.
723         (Ffind_char): Likewise.
724         (syms_of_chartab): Delete `->ucs'.
725
726 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
727
728         * mule-charset.c (Qmap_cns11643_2): Renamed from
729         `Qchinese_cns11643_2'.
730         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
731         `chinese-cns11643-2'.
732         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
733         `=cns11643-2'.
734
735 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
736
737         * mule-charset.c (Qmap_cns11643_1): Renamed from
738         `Qchinese_cns11643_1'.
739         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
740         `chinese-cns11643-1'.
741         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
742         `=cns11643-1'.
743
744 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
745
746         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
747         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
748         `chinese-gb12345'.
749         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
750         `=gb12345'.
751
752 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
753
754         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
755         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
756         `chinese-gb2312'.
757         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
758         `=gb2312'.
759
760 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
761
762         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
763         (syms_of_mule_charset): Add new symbol `=big5' instead of
764         `chinese-big5'.
765         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
766
767 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
768
769         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
770         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
771         `korean-ksc5601'.
772         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
773         `=ks-x1001'.
774
775 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
776
777         * mule-charset.c (Qmap_jis_x0212): Renamed from
778         `Qjapanese_jisx0212'.
779         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
780         `japanese-jisx0212'.
781         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
782         `=jis-x0212'.
783
784 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
785
786         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
787         `Qjapanese_jisx0208'.
788         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
789         of `japanese-jisx0208'.
790         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
791         `=jis-x0208-1983'.
792
793 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
794
795         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
796         `Qjapanese_jisx0208_1978'.
797         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
798         of `japanese-jisx0208-1978'.
799         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
800         `=jis-x0208-1978'.
801
802 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
803
804         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
805         only for XEmacs CHISE.
806
807 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
808
809         * char-ucs.h: Compact non-ISO-IR charset-ids.
810         (LEADING_BYTE_UCS): Changed to -177.
811         (LEADING_BYTE_CONTROL_1): Changed to -77.
812         (LEADING_BYTE_UCS_BMP): Changed to -176.
813         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
814
815 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
816
817         * mule-charset.c (Qiso_ir): New variable.
818         (Fmake_charset): Recognise new property `iso-ir'.
819         (syms_of_mule_charset): Add new symbol `iso-ir'.
820
821 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
822
823         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
824         n to -n; charset-id of non ISO-IR sets are changed to positive
825         numbers.
826
827 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
828
829         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
830         for &MCS-XXXXXXXX; values.
831
832 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
833
834         * mule.c (Vxemacs_chise_version): Renamed from
835         `Vutf_2000_version'.
836         (vars_of_mule): Add new variable `xemacs-chise-version'; define
837         `utf-2000-version' as an alias for `xemacs-chise-version'.
838
839 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
840
841         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
842         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
843         defined.
844
845         * config.h.in (CHISE): New macro.
846
847 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
848
849         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
850         of `ucs'.
851         (Qmap_ucs): New variable.
852         (syms_of_mule_charset): Add new symbol `=ucs'.
853         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
854
855         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
856         (simplify_char_spec): Likewise.
857
858         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
859
860         * char-ucs.h (Qmap_ucs): New extern variable.
861
862 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
863
864         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
865         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
866         don't define it when UTF2000 is not defined.
867         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
868         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
869         when UTF2000 is not defined.
870         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
871         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
872
873 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
874
875         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
876
877         * mule-charset.c (Vcharset_ucs_gb): Deleted.
878         (Qucs_gb): Deleted.
879         (syms_of_mule_charset): Delete `ucs-gb'.
880         (complex_vars_of_mule_charset): Likewise.
881
882 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
883
884         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
885
886         * mule-charset.c (Vcharset_ucs_cns): Deleted.
887         (Qucs_cns): Deleted.
888         (syms_of_mule_charset): Delete `ucs-cns'.
889         (complex_vars_of_mule_charset): Likewise.
890
891 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
892
893         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
894
895         * mule-charset.c (Vcharset_ucs_jis): Deleted.
896         (Qucs_jis): Deleted.
897         (syms_of_mule_charset): Delete `ucs-jis'.
898         (complex_vars_of_mule_charset): Likewise.
899
900 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
901
902         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
903
904         * mule-charset.c (Vcharset_ucs_ks): Deleted.
905         (Qucs_ks): Deleted.
906         (syms_of_mule_charset): Delete `ucs-ks'.
907         (complex_vars_of_mule_charset): Likewise.
908
909 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
910
911         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
912         (Qideograph_daikanwa_2): Deleted.
913         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
914         (complex_vars_of_mule_charset): Likewise.
915
916         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
917         (LEADING_BYTE_DAIKANWA_1): Deleted.
918         (LEADING_BYTE_DAIKANWA_2): Deleted.
919         (MIN_CHAR_DAIKANWA): Deleted.
920         (MAX_CHAR_DAIKANWA): Deleted.
921
922 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
923
924         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
925         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
926         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
927
928         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
929         (Vcharset_ideograph_daikanwa): Deleted.
930         (Qideograph_hanziku_{1..12}): Deleted.
931         (Qideograph_daikanwa): Deleted.
932         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
933         Vcharset_ideograph_daikanwa.
934         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
935         `ideograph-hanziku-{1..12}'.
936         (complex_vars_of_mule_charset): Likewise.
937
938 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
939
940         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
941
942         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
943         (Qideograph_gt_pj_{1..11}): Deleted.
944         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
945         (complex_vars_of_mule_charset): Likewise.
946
947 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
948
949         * mule-charset.c (Vcharset_ucs_big5): Deleted.
950         (Vcharset_ideograph_gt): Deleted.
951         (Qucs_big5): Deleted.
952         (Qideograph_gt): Deleted.
953         (syms_of_mule_charset): Delete symbol `ucs-big5' and
954         `ideograph-gt'.
955         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
956         and `ideograph-gt'.
957
958         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
959         (LEADING_BYTE_GT): Deleted.
960         (MIN_CHAR_GT): Deleted.
961         (MAX_CHAR_GT): Deleted.
962
963 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
964
965         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
966
967 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
968
969         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
970         (save_uint16_byte_table): Likewise.
971         (save_byte_table): Likewise; convert values by it.
972         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
973         for `ideographic-structure'.
974         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
975         as the filter for `ideographic-structure'.
976
977 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
978
979         * chartab.c (put_char_composition): New function.
980         (Fput_char_attribute): Use `put_char_composition'; use
981         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
982
983         * fns.c (simplify_char_spec): New function.
984         (char_ref_simplify_spec): New function.
985         (Fchar_refs_simplify_char_specs): New function.
986         (syms_of_fns): Add new builtin function
987         `char-refs-simplify-char-specs'.
988
989 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
990
991         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
992         (Qideograph_cbeta): Deleted.
993         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
994         (complex_vars_of_mule_charset): Likewise.
995
996         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
997         (MIN_CHAR_CBETA): Comment out.
998         (MAX_CHAR_CBETA): Likewise.
999
1000 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1001
1002         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1003         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1004         CHISE client feature.
1005
1006 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1007
1008         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1009
1010 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1011
1012         * mule-charset.c (charset_lookup_description_1): Use
1013         `NUM_LEADING_BYTES' in UTF-2000.
1014
1015 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1016
1017         * char-ucs.h (GC_CHARSETP): Deleted.
1018
1019 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1020
1021         * char-ucs.h (MAX_CHAR_GT): Updated.
1022
1023 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1024
1025         * text-coding.c: Sync with XEmacs 21.4.10.
1026
1027 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1028
1029         * mule-charset.c (Vcharset_china3_jef): Deleted.
1030         (Qchina3_jef): Deleted.
1031         (syms_of_mule_charset): Don't define `china3-jef'.
1032         (complex_vars_of_mule_charset): Likewise.
1033
1034         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1035         (MIN_CHAR_CHINA3_JEF): Comment out.
1036         (MAX_CHAR_CHINA3_JEF): Comment out.
1037
1038 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039
1040         * mule-charset.c (Vcharset_ucs_gb): New variable.
1041         (Qucs_gb): New variable.
1042         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1043         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1044
1045         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1046
1047 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1048
1049         * mule-charset.c (charset_code_point): if a coded-charset has a
1050         final-byte, don't inherit the builtin range of the mother CCS.
1051
1052 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1053
1054         * mule-charset.c (charset_code_point): Fix problem about
1055         inheritance.
1056
1057 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1058
1059         * mule-charset.c (decode_builtin_char): Reorganized.
1060
1061 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1062
1063         * text-coding.c (char_encode_as_entity_reference): Modify for
1064         `charset_code_point'.
1065         (char_encode_shift_jis): Likewise.
1066         (char_encode_big5): Likewise.
1067         (char_encode_utf8): Likewise.
1068         (char_encode_iso2022): Likewise.
1069
1070         * mule-charset.c (charset_code_point): Add new argument
1071         `defined_only'.
1072         (Fencode_char): Add new optional argument `defined_only'.
1073
1074         * chartab.c (put_char_table): Modify for `charset_code_point'.
1075
1076         * char-ucs.h (charset_code_point): Add new argument
1077         `defined_only'.
1078         (encode_char_1): Modify for `charset_code_point'.
1079
1080 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1081
1082         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1083         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1084
1085 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1086
1087         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1088         (Qjis_x0208): Likewise.
1089         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1090         XCHARSET_FINAL(charset).
1091         (charset_code_point): Modify condition for final-byte based
1092         builtin-chars.
1093         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1094         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1095         in UTF-2000; specify `=jis-x0208' as the mother of
1096         `japanese-jisx0208-1978', `japanese-jisx0208' and
1097         `japanese-jisx0208-1990' in UTF-2000.
1098
1099 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1100
1101         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1102
1103 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1104
1105         * text-coding.c (decode_coding_utf16): Support UTF-16.
1106         (char_encode_utf16): Fixed.
1107
1108 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1109
1110         * text-coding.c (Qutf16): New variable in MULE.
1111         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1112         (Fcoding_system_type): Add `utf-16' in MULE.
1113         (struct detection_state): Add a structure for utf16 in MULE.
1114         (detect_coding_type): Setup st->utf16.mask in MULE.
1115         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1116         MULE.
1117         (reset_encoding_stream): Use `char_encode_utf16' and
1118         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1119         (detect_coding_utf16): New function [incomplete].
1120         (decode_coding_utf16): New function [support only UCS-2].
1121         (char_encode_utf16): New function.
1122         (char_finish_utf16): New function.
1123         (syms_of_file_coding): Add new symbol `utf-16'; setup
1124         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1125
1126         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1127         UTF-2000.
1128         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1129         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1130
1131 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1132
1133         * chartab.c (put_char_table): When a charset is specified as a
1134         range in UTF-2000, don't support builtin characters.
1135
1136 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1137
1138         * mule-charset.c (decode_defined_char): Don't refer external
1139         database if Qunbound or Qnil are found.
1140         (Fsave_charset_mapping_table): Don't define it if
1141         HAVE_CHISE_CLIENT is not defined.
1142         (Freset_charset_mapping_table): New function.
1143         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1144         found in external database.
1145         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1146         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1147         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1148
1149 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1150
1151         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1152         not.
1153
1154 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1155
1156         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1157         Q_lowercase, Q_uppercase in UTF-2000.
1158
1159         * chartab.c (get_char_table): Add special code for the standard
1160         case table to use character attribute `->downcase' and
1161         `->uppercase' for case operations in UTF-2000.
1162
1163         * casetab.c (Qflippedcase): New variable in UTF-2000.
1164         (Q_lowercase): Likewise.
1165         (Q_uppercase): Likewise.
1166         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1167         and `->uppercase' in UTF-2000.
1168         (complex_vars_of_casetab): Assign attribute name `downcase' to
1169         downcase and CANON table of Vstandard_case_table in UTF-2000;
1170         assign attribute name `flippedcase' to upcase and EQV table of
1171         Vstandard_case_table in UTF-2000.
1172
1173 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174
1175         * text-coding.c (decode_add_er_char): Support isolated-chars.
1176         (char_encode_as_entity_reference): Likewise.
1177
1178 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1179
1180         * emacs.c (Vutf_2000_lisp_directory): New variable.
1181         (Vconfigure_utf_2000_lisp_directory): Likewise.
1182         (complex_vars_of_emacs): Add new variable
1183         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1184
1185 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1186
1187         * char-ucs.h (DECODE_CHAR): Delete special code for
1188         `chinese-big5-1' and `chinese-big5-2'.
1189
1190         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1191         (Qbig5_2): Likewise.
1192         (decode_defined_char): Support CONVERSION_BIG5_1 and
1193         CONVERSION_BIG5_2.
1194         (decode_builtin_char): Likewise.
1195         (charset_code_point): Likewise.
1196         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1197         'conversion in UTF-2000.
1198         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1199         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1200         `chinese-big5-2' as children of `chinese-big5'.
1201
1202         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1203         (CONVERSION_BIG5_2): New macro.
1204
1205 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1206
1207         * text-coding.c (char_encode_big5): Support entity-reference.
1208
1209 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1210
1211         * text-coding.c (char_encode_as_entity_reference): New function.
1212         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1213
1214 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1215
1216         * text-coding.c (decode_coding_big5): Support entity-reference
1217         decoding feature.
1218
1219 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1220
1221         * text-coding.c (allocate_coding_system): Initialize initial
1222         charsets for CODESYS_UTF8.
1223         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1224         charset-g2 for CODESYS_UTF8.
1225         (decode_coding_utf8): Use charset-g0.
1226         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1227         to force variants to map to UCS.
1228
1229 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1230
1231         * text-coding.c (Qutf_8_mcs): New variable.
1232         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1233         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1234         instead of `utf-8' in UTF-2000.
1235
1236 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1237
1238         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1239         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1240         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1241         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1242         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1243         CONVERSION_96x96x96x96 are introduced.
1244         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1245         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1246         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1247
1248         * char-ucs.h (CONVERSION_94): New macro.
1249         (CONVERSION_96): New macro.
1250         (CONVERSION_94x94): New macro.
1251         (CONVERSION_96x96): New macro.
1252         (CONVERSION_94x94x94): New macro.
1253         (CONVERSION_96x96x96): New macro.
1254         (CONVERSION_94x94x94x60): New macro.
1255         (CONVERSION_94x94x94x94): New macro.
1256         (CONVERSION_96x96x96x96): New macro.
1257
1258 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1259
1260         * chartab.c (Vcharacter_variant_table): Deleted.
1261         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1262         of `Vcharacter_variant_table'.
1263         (Fput_char_attribute): Likewise.
1264         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1265         (complex_vars_of_chartab): Likewise.
1266
1267 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1268
1269         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1270
1271         * fns.c (Qideographic_structure): New variable.
1272         (Qkeyword_char): New variable.
1273         (ids_format_unit): New function.
1274         (Fideographic_structure_to_ids): New function.
1275         (syms_of_fns): Add new symbols `ideographic-structure' and
1276         `:char'; add new builtin function `ideographic-structure-to-ids'.
1277
1278         * data.c (Fchar_ref_p): New function.
1279         (syms_of_data): Add new builtin function `char-ref-p'.
1280
1281         * chartab.h: Add an EXFUN for `Ffind_char'.
1282
1283 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1284
1285         * text-coding.c (Vcharacter_composition_table): Deleted.
1286         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1287         in every UTF-2000.
1288
1289         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1290         UTF-2000.
1291         (Vcharacter_composition_table): Deleted.
1292         (Fget_composite_char): Use the implementation for external-DB
1293         support in every UTF-2000.
1294         (Fput_char_attribute): Likewise.
1295         (char_attribute_system_db_file): Don't define if external-DB
1296         feature is not available.
1297         (Fsave_char_attribute_table): Likewise.
1298         (Fmount_char_attribute_table): Likewise.
1299         (Fclose_char_attribute_table): Likewise.
1300         (Freset_char_attribute_table): Likewise.
1301         (Fload_char_attribute_table): Likewise.
1302         (syms_of_chartab): Don't define `save-char-attribute-table',
1303         `mount-char-attribute-table', `reset-char-attribute-table',
1304         `close-char-attribute-table' and `load-char-attribute-table' if
1305         external-DB feature is not available.
1306         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1307
1308 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1309
1310         * text-coding.c (Qcomposition): Add extern if external-DB feature
1311         is supported.
1312         (Vcharacter_composition_table): Don't add extern if external-DB
1313         feature is supported.
1314         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1315         character composition rule if external-DB feature is supported.
1316
1317         * chartab.c (Vcharacter_composition_table): Don't define if
1318         external-DB feature is supported.
1319         (Qcomposition): New variable.
1320         (Fget_composite_char): New implementation for external-DB support.
1321         (Fput_char_attribute): Use `composition' property of each
1322         character instead of `Vcharacter_composition_table' to store
1323         character-composition rules if external-DB feature is supported.
1324         (syms_of_chartab): Add new symbol `composition'.
1325         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1326         external-DB feature is supported.
1327
1328 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1329
1330         * chartab.c (Vchar_db_stingy_mode): New variable.
1331         (load_char_attribute_maybe): Close database if
1332         Vchar_db_stingy_mode is not NIL.
1333         (Fload_char_attribute_table_map_function): Use
1334         `get_char_id_table_0' instead of `get_char_id_table'.
1335         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1336
1337         * chartab.h (get_char_id_table_0): New inline function.
1338         (get_char_id_table): Use `get_char_id_table_0'.
1339
1340 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1341
1342         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1343         and `COMPOSE_ADD_CHAR'.
1344         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1345
1346 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1347
1348         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1349         instead of `DECODE_ADD_UCS_CHAR'.
1350         (COMPOSE_ADD_CHAR): Likewise.
1351
1352 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1353
1354         * text-coding.c (decode_flush_er_chars): New inline function.
1355         (decode_add_er_char): New function.
1356         (decode_coding_utf8): Use `decode_flush_er_chars' and
1357         `decode_add_er_char'.
1358
1359 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1360
1361         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1362         done before `decode_output_utf8_partial_char'.
1363
1364         * mule-charset.c (complex_vars_of_mule_charset): Specify
1365         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1366         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1367
1368 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369
1370         * mule-charset.c (decode_defined_char): New function; search
1371         mother.
1372         (decode_builtin_char): Don't search mother if
1373         XCHARSET_MAX_CODE(charset) == 0.
1374         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1375         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1376         (Fdecode_char): Use `decode_defined_char' instead of
1377         `DECODE_DEFINED_CHAR'.
1378         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1379         mother of `Vcharset_ucs_jis'.
1380
1381         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1382         instead of `DECODE_DEFINED_CHAR'.
1383
1384         * char-ucs.h (decode_defined_char): Renamed from
1385         `DECODE_DEFINED_CHAR'; changed to normal function.
1386         (DECODE_CHAR): Use `decode_defined_char' instead of
1387         `DECODE_DEFINED_CHAR'.
1388
1389         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1390
1391 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1392
1393         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1394
1395         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1396         variable.
1397         (Quse_entity_reference): New variable.
1398         (Qd): New variable.
1399         (Qx): New variable.
1400         (QX): New variable.
1401         (coding_system_description): Add description for
1402         `ccs_priority_list'.
1403         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1404         (allocate_coding_system): Initialize `ccs_priority_list' in
1405         UTF-2000.
1406         (Fmake_coding_system): Add description about
1407         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1408         (codesys).
1409         (Fcoding_system_property): Accept `disable-composition' and
1410         `use-entity-reference' in UTF-2000.
1411         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1412         in UTF-2000.
1413         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1414         (decode_coding_utf8): Decode entity-reference if
1415         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1416         (char_encode_utf8): Encode non-Unicode characters as
1417         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1418         (str->codesys).
1419         (syms_of_file_coding): Add new symbols `use-entity-reference',
1420         `d', `x', `X'.
1421         (vars_of_file_coding): Add new variable
1422         `coded-charset-entity-reference-alist'.
1423         (complex_vars_of_file_coding): Declare `disable-composition' and
1424         `use-entity-reference' to be coding-system-properties in UTF-2000.
1425
1426         * file-coding.h (struct Lisp_Coding_System): Add new member
1427         `use_entity_reference' and `ccs_priority_list'.
1428         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1429         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1430         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1431
1432 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1433
1434         * chartab.c (save_uint8_byte_table): Don't clear the table.
1435         (save_uint16_byte_table): Likewise.
1436         (save_byte_table): Likewise.
1437         (Fmount_char_attribute_table): New function.
1438         (syms_of_chartab): Add new builtin function
1439         `mount-char-attribute-table'.
1440
1441 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1442
1443         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1444         "w+" mode.
1445         (load_char_decoding_entry_maybe): Open database as read-only mode.
1446
1447         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1448         open database as "w+" mode.
1449         (load_char_attribute_maybe): Open database as read-only mode.
1450         (Fload_char_attribute_table): Likewise.
1451
1452 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1453
1454         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1455         (char_table_description): Delete member `db_file'.
1456         (Fmake_char_table): Don't refer `ct->db_file'.
1457         (Fcopy_char_table): Likewise.
1458         (Fsave_char_attribute_table): Likewise.
1459         (Fclose_char_attribute_table): Likewise.
1460         (Freset_char_attribute_table): Likewise.
1461         (load_char_attribute_maybe): Likewise.
1462         (Fload_char_attribute_table): Likewise.
1463
1464         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1465
1466 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1467
1468         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1469         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1470         `ct->db' is living.
1471         (load_char_attribute_maybe): Likewise.
1472         (Fload_char_attribute_table): Likewise.
1473
1474 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1475
1476         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1477         `ct->db_file' unconditionally.
1478
1479 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1480
1481         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1482         UTF-2000.
1483         (char_table_description): Add description for `db_file' and `db'
1484         in UTF-2000.
1485         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1486         UTF-2000.
1487         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1488         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1489         (Fclose_char_attribute_table): New function.
1490         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1491         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1492         and `cit->db'.
1493         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1494         (syms_of_chartab): Add new builtin function
1495         `Fclose_char_attribute_table'.
1496
1497 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1498
1499         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1500         `db' in UTF-2000.
1501         (load_char_attribute_maybe): Change interface.
1502         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1503
1504 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1505
1506         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1507
1508 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1509
1510         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1511         instead of `DECODE_CHAR' for mother; don't use special code for
1512         chinese-big5 to use code space of chinese-big5-1 and
1513         chinese-big5-2.
1514         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1515         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1516
1517         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1518         (MAX_CHAR_BIG5_CDP): Revival.
1519
1520 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1523         the XLFD registry-encoding name of `chinese-big5'.
1524
1525 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1526
1527         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1528         (Qchinese_big5_cdp): Deleted.
1529         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1530         (complex_vars_of_mule_charset): Delete coded-charset
1531         `chinese-big5-cdp'.
1532
1533         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1534         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1535         `CHARSET_ID_OFFSET - n' for private CCS.
1536         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1537         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1538         of `MIN_LEADING_BYTE'.
1539         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1540         `(CHARSET_ID_OFFSET - 97)'.
1541         (MIN_CHAR_BIG5_CDP): Deleted.
1542         (MAX_CHAR_BIG5_CDP): Deleted.
1543
1544 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1545
1546         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1547
1548 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1549
1550         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1551         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1552         chartab.c].
1553
1554         * chartab.c (Vutf_2000_version): Moved to mule.c.
1555         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1556
1557 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1558
1559         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1560         when HAVE_CHISE_CLIENT is not defined.
1561
1562         * mule.c (vars_of_mule): Provide feature `chise' when
1563         HAVE_CHISE_CLIENT is defined.
1564
1565 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1566
1567         * config.h.in (UTF2000): Add comment.
1568         (HAVE_CHISE_CLIENT): New macro.
1569
1570 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1571
1572         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1573         CONSP.
1574         (Fput_char_attribute): Likewise.
1575         (char_attribute_system_db_file): Encode file-name of attribute.
1576         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1577         the initial value.
1578
1579 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1580
1581         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1582         (Fsave_charset_mapping_table): Use
1583         `char_attribute_system_db_file'.
1584         (load_char_decoding_entry_maybe): Likewise.
1585
1586         * chartab.h (Qsystem_char_id): New external variable.
1587         (char_attribute_system_db_file): New prototype.
1588
1589         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1590         (char_attribute_system_db_file): New function.
1591         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1592         (Freset_char_attribute_table): Likewise.
1593         (load_char_attribute_maybe): Likewise.
1594         (Fload_char_attribute_table): Likewise.
1595         (syms_of_chartab): Add new symbol `system-char-id'.
1596
1597 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1598
1599         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1600         `XCHARSET_GRAPHIC(ccs)'.
1601
1602 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1603
1604         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1605
1606 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1607
1608         * chartab.c (Q_ucs_variants): New variable.
1609         (syms_of_chartab): Add new symbol `->ucs-variants'.
1610         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1611         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1612         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1613
1614         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1615
1616         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1617         `HAVE_DATABASE' is defined.
1618         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1619         `HAVE_DATABASE' is defined.
1620
1621 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1622
1623         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1624         attribute-table.
1625         (Freset_char_attribute_table): New function.
1626         (syms_of_chartab): Add new builtin function
1627         `reset-char-attribute-table'.
1628
1629 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1630
1631         * chartab.c (load_char_attribute_maybe): Don't make directories.
1632
1633 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1634
1635         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1636
1637         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1638         for decoding-table.
1639
1640 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1641
1642         * mule-charset.c (Fsave_charset_mapping_table): Use
1643         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1644
1645         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1646         instead of `XCHARSET_CHARS'.
1647
1648 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1649
1650         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1651         (XCHARSET_BYTE_SIZE): Likewise.
1652
1653         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1654         mule-charset.c].
1655         (XCHARSET_BYTE_SIZE): Likewise.
1656
1657 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1658
1659         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1660         data-directory to store database.
1661         (Fsave_char_attribute_table): Likewise.
1662         (load_char_attribute_maybe): Likewise.
1663         (Fload_char_attribute_table): Likewise.
1664
1665 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1666
1667         * mule-charset.c (Fsave_charset_mapping_table): New function.
1668         (syms_of_mule_charset): Add new builtin function
1669         `save-charset-mapping-table'.
1670
1671 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1672
1673         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1674         (get_ccs_octet_table): New inline function.
1675         (put_ccs_octet_table): Likewise.
1676         (decoding_table_put_char): Use `get_ccs_octet_table' and
1677         `put_ccs_octet_table'.
1678         (decoding_table_remove_char): Use `decoding_table_put_char'.
1679         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1680
1681         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1682         into encoding_table.
1683         (make_charset): Use Qunbound instead Qnil as initial value of
1684         decoding_table.
1685
1686 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1687
1688         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1689         element is Qunloaded.
1690         (map_over_uint16_byte_table): Likewise.
1691         (map_over_byte_table): Likewise.
1692         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1693         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1694         database support, load encoding-table of the specified
1695         coded-charset if it is not loaded yet.
1696         (save_uint8_byte_table): New function of UTF-2000 with external
1697         database support.
1698         (save_uint16_byte_table): Likewise.
1699         (save_byte_table): Likewise.
1700         (Fput_char_attribute): Don't store value into external database
1701         even if the external database feature is supported in UTF-2000;
1702         set `attribute' as name of char-table if the external database
1703         feature is supported.
1704         (Fsave_char_attribute_table): New function in UTF-2000.
1705         (syms_of_chartab): Add new builtin function
1706         `save-char-attribute-table' in UTF-2000.
1707
1708 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1709
1710         * chartab.c (char_attribute_table_to_put): New variable in
1711         UTF-2000.
1712         (Qput_char_table_map_function): Likewise.
1713         (value_to_put): Likewise.
1714         (Fput_char_table_map_function): New function in UTF-2000.
1715         (put_char_table): Use `Fmap_char_attribute' for
1716         CHARTAB_RANGE_CHARSET in UTF-2000.
1717         (Fput_char_attribute): Store symbol instead of string in
1718         `XCHAR_TABLE_NAME (table)'.
1719         (load_char_attribute_maybe): Likewise.
1720         (syms_of_chartab): Add new symbol/function
1721         `put-char-table-map-function'.
1722
1723 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1724
1725         * database.h: Add new EXFUN for `Fmap_database'.
1726
1727         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1728         (syms_of_database): Likewise.
1729
1730         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1731         UTF-2000.
1732         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1733         (XCHAR_TABLE_UNLOADED): Likewise.
1734
1735         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1736         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1737         HAVE_DATABASE is defined.
1738         (char_attribute_table_to_load): New variable of UTF-2000 with
1739         external database support.
1740         (Qload_char_attribute_table_map_function): Likewise.
1741         (Fload_char_attribute_table_map_function): New function of
1742         UTF-2000 with external database support.
1743         (Fload_char_attribute_table): New function of UTF-2000.
1744         (Fmap_char_attribute): Call Fload_char_attribute_table if
1745         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1746         (syms_of_chartab): Add new symbol and function
1747         `load-char-attribute-table-map-function' in UTF-2000 with external
1748         database support; add new function `load-char-attribute-table' in
1749         UTF-2000.
1750
1751 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1752
1753         * chartab.h (load_char_attribute_maybe): New prototype for
1754         UTF-2000 with DATABASE support.
1755         (get_char_id_table): Use `load_char_attribute_maybe' if
1756         HAVE_DATABASE is defined.
1757
1758         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1759         with DATABASE support.
1760
1761 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1762
1763         * chartab.c (Fput_char_attribute): Use S-expression as key of
1764         external database.
1765
1766         * chartab.h (get_char_id_table): Use S-expression as key of
1767         external database.
1768
1769 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770
1771         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1772         if an element is not loaded, load the corresponding attributes
1773         from an external database.
1774         (map_over_uint16_byte_table): Likewise.
1775         (map_over_byte_table): Likewise.
1776         (map_char_table): Modify for `map_over_uint8_byte_table',
1777         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1778         element is not loaded, load the corresponding attributes from an
1779         external database.
1780         (Fput_char_attribute): Change initial values to Qunloaded.
1781
1782         * chartab.h (get_char_id_table): If a character attribute is not
1783         loaded and the attribute value is not found in an external
1784         database, store Qunbound as the attribute value.
1785
1786 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1787
1788         * chartab.c (BT_UINT8_unloaded): New macro.
1789         (UINT8_VALUE_P): Accept Qunloaded.
1790         (UINT8_ENCODE): Likewise.
1791         (UINT8_DECODE): Likewise.
1792         (BT_UINT16_unloaded): New macro.
1793         (UINT16_VALUE_P): Accept Qunloaded.
1794         (UINT16_ENCODE): Likewise.
1795         (UINT16_DECODE): Likewise.
1796         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1797         BT_UINT16_unloaded.
1798         (mark_char_table): Mark `ct->name' in UTF-2000.
1799         (char_table_description): Add `name' in UTF-2000.
1800         (Fmake_char_table): Initialize `ct->name'.
1801         (Fcopy_char_table): Copy `ct->name'.
1802         (Fput_char_attribute): Store value into an external database if
1803         HAVE_DATABASE is defined.
1804
1805         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1806         UTF-2000.
1807         (CHAR_TABLE_NAME): New macro in UTF-2000.
1808         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1809         (get_char_id_table): Try to read an external database if Qunloaded
1810         is stored in a table.
1811
1812         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1813         Qunloaded.
1814
1815 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1816
1817         * database.h: Add EXFUN definitions for Fopen_database,
1818         Fput_database, Fget_database and Fclose_database.
1819
1820         * data.c (Qunloaded): New variable in UTF-2000.
1821
1822         * lisp.h (Qunloaded): New variable in UTF-2000.
1823
1824 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1825
1826         * mule-charset.c (put_char_ccs_code_point): Modify for
1827         `decoding_table_remove_char' and `decoding_table_put_char'.
1828         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1829
1830         * char-ucs.h (decoding_table_remove_char): Change arguments to
1831         hide decoding_table vector.
1832         (decoding_table_put_char): Likewise.
1833
1834 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1835
1836         * mule-charset.c (decoding_table_remove_char): Moved to
1837         char-ucs.h.
1838         (decoding_table_put_char): Likewise.
1839
1840         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1841         from mule-charset.c].
1842         (decoding_table_remove_char): New inline function [moved from
1843         mule-charset.c].
1844         (decoding_table_put_char): Likewise.
1845
1846 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1847
1848         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1849         extension.
1850
1851 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1852
1853         * mule-charset.c (decode_builtin_char): Support mother charsets.
1854
1855 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1856
1857         * mule-charset.c (Q94x94x60): New variable.
1858         (charset_code_point): Support conversion `94x94x60'.
1859         (Fmake_charset): Likewise.
1860         (syms_of_mule_charset): Add new symbol `94x94x60'.
1861
1862         * char-ucs.h (CONVERSION_94x94x60): New macro.
1863
1864 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1865
1866         * mule-charset.c (charset_code_point): Unify code about
1867         `code-offset'.
1868
1869 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1870
1871         * mule-charset.c (charset_code_point): Merge code about builtin
1872         characters into code about mother charsets; don't use
1873         `range_charset_code_point'.
1874         (range_charset_code_point): Deleted.
1875
1876 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1877
1878         * mule-charset.c (Qcode_offset): New variable.
1879         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1880         `max-code'; accept new property `code-offset'.
1881         (syms_of_mule_charset): Add new symbol `code-offset'.
1882
1883 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1884
1885         * mule-charset.c (range_charset_code_point): Fixed.
1886
1887 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888
1889         * mule-charset.c (decode_builtin_char): Change semantics of
1890         code-offset of coded-charset.
1891         (charset_code_point): Likewise.
1892         (range_charset_code_point): Likewise.
1893         (complex_vars_of_mule_charset): Modify for the change.
1894
1895 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1896
1897         * mule-charset.c (Fencode_char): Reverse arguments.
1898
1899         * mule-charset.c (charset_code_point): Fixed.
1900
1901 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1902
1903         * mule-charset.c (Vcharset_mojikyo): Deleted.
1904         (Vcharset_mojikyo_2022_1): Deleted.
1905         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1906         (Qmin_code): New variable in UTF-2000.
1907         (Qmax_code): Likewise.
1908         (Qmother): Likewise.
1909         (Qconversion): Likewise.
1910         (Q94x60): Likewise.
1911         (Qmojikyo): Deleted.
1912         (Qmojikyo_2022_1): Deleted.
1913         (Qmojikyo_pj_{1..22}): Deleted.
1914         (mark_charset): Mark `cs->mother'.
1915         (charset_description): Add description for `mother'.
1916         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1917         new arguments `mother' and `conversion'; use
1918         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1919         (charset_code_point): Moved from char-ucs.h; support `mother'
1920         charset feature.
1921         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1922         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1923         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1924         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1925         allow 2 as the value of `graphic' in UTF-2000; add new properties
1926         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1927         require `final' in UTF-2000; modify for `make_charset'.
1928         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1929         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1930         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1931         (Fencode_char): New function.
1932         (syms_of_mule_charset): Add new builtin function `encode-char' in
1933         UTF-2000; add new symbols `min-code', `max-code', `mother',
1934         `conversion' and `94x60'; delete symbols `mojikyo',
1935         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1936         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1937         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1938         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1939
1940         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1941         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1942
1943         * char-ucs.h (Vcharset_mojikyo): Deleted.
1944         (Vcharset_mojikyo_2022_1): Deleted.
1945         (LEADING_BYTE_MOJIKYO): Deleted.
1946         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1947         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1948         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1949         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1950         add new member `mother'; add new member `conversion'.
1951         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1952         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1953         (CHARSET_MOTHER): New macro.
1954         (CHARSET_CONVERSION): New macro.
1955         (CONVERSION_IDENTICAL): New macro.
1956         (CONVERSION_94x60): New macro.
1957         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1958         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1959         (XCHARSET_MOTHER): New macro.
1960         (XCHARSET_CONVERSION): New macro.
1961         (MIN_CHAR_MOJIKYO): Deleted.
1962         (MAX_CHAR_MOJIKYO): Deleted.
1963         (DECODE_MOJIKYO_2022): Deleted.
1964         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1965         (charset_code_point): Changed to non-inline function.
1966         (encode_char_1): Use `charset_code_point'.
1967         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1968
1969 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1970
1971         * lread.c (read_compiled_function): Fix prototype.
1972         (read_vector): Likewise.
1973
1974 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1975
1976         * lrecord.h (struct lrecord_header): Delete `older'.
1977         (set_lheader_implementation): Delete code for `older'.
1978         (set_lheader_older_implementation): Deleted.
1979         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1980         (OLDER_RECORD_P): Deleted.
1981         (OLDER_RECORD_HEADER_P): Deleted.
1982         (alloc_older_lcrecord): Deleted.
1983         (alloc_older_lcrecord_type): Deleted.
1984
1985         * alloc.c (all_older_lcrecords): Deleted.
1986         (alloc_older_lcrecord): Deleted.
1987         (disksave_object_finalization_1): Delete code for older objects.
1988         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1989         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1990
1991 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1994         instead of `make_older_vector'.
1995         (put_char_ccs_code_point): Likewise.
1996         (mark_charset): Mark `cs->decoding_table'.
1997         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1998
1999         * lisp.h (make_older_vector): Deleted.
2000         (make_vector_newer): Deleted.
2001
2002         * config.h.in (HAVE_GGC): Deleted.
2003
2004         * alloc.c (make_older_vector): Deleted.
2005         (make_vector_newer_1): Deleted.
2006         (make_vector_newer): Deleted.
2007
2008 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2009
2010         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2011         (Qideograph_daikanwa_2): New variable.
2012         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2013         (complex_vars_of_mule_charset): Add new coded-charset
2014         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2015         `LEADING_BYTE_DAIKANWA'.
2016
2017         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2018         (LEADING_BYTE_DAIKANWA_1): New macro.
2019         (LEADING_BYTE_DAIKANWA_2): New macro.
2020         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2021
2022 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2023
2024         * mule-charset.c (complex_vars_of_mule_charset): Change
2025         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2026         the second revised version.
2027
2028 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2029
2030         * mule-charset.c (Vcharset_ucs_smp): New variable.
2031         (Vcharset_ucs_sip): New variable.
2032         (Qucs_smp): New variable.
2033         (Qucs_sip): New variable.
2034         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2035         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2036         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2037         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2038         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2039         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2040
2041         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2042         (LEADING_BYTE_UCS_SIP): New macro.
2043         (MIN_CHAR_SMP): New macro.
2044         (MAX_CHAR_SMP): New macro.
2045         (MIN_CHAR_SIP): New macro.
2046         (MAX_CHAR_SIP): New macro.
2047
2048 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2049
2050         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2051         utf-2000.
2052
2053 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054
2055         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2056         value; don't store value into `encoding_table' of `Lisp_Charset'.
2057         (mark_charset): `encoding_table' was deleted.
2058         (charset_description): Likewise.
2059         (make_charset): Likewise.
2060         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2061         `put_char_ccs_code_point'.
2062
2063         * chartab.h (Fput_char_attribute): New EXFUN.
2064
2065         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2066         is unified with normal symbol space.
2067         (Fget_char_attribute): Likewise.
2068         (Fput_char_attribute): Likewise; behavior of
2069         `put_char_ccs_code_point' is changed.
2070
2071         * char-ucs.h: Include "elhash.h".
2072         (Vchar_attribute_hash_table): New external variable.
2073         (struct Lisp_Charset): Delete `encoding_table'.
2074         (CHARSET_ENCODING_TABLE): New implementation; refer
2075         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2076         `Lisp_Charset'.
2077
2078 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2079
2080         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2081         (cs) == 0.
2082
2083 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2086         `chinese-big5'.
2087
2088 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * chartab.c (uint8_byte_table_description): New constant.
2091         (uint8-byte-table): Use `uint8_byte_table_description'.
2092         (uint16_byte_table_description): New constant.
2093         (uint16-byte-table): Use `uint16_byte_table_description'.
2094
2095 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2096
2097         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2098         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2099
2100 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101
2102         * mule-charset.c (Vcharset_ucs_ks): New variable.
2103         (Qucs_ks): New variable.
2104         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2105         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2106
2107         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2108
2109 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2112         (Fdecode_char): Likewise.
2113
2114         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2115         chartab.h.
2116         (Fdefine_char): Modify for Fdecode_char.
2117         (Ffind_char): Likewise.
2118
2119         * mule-charset.c (Fdecode_char): Add new optional argument
2120         `defined-only'.
2121         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2122
2123 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2124
2125         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2126         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2127         (allocate_coding_system): Initialize initial-charsets of
2128         CODESYS_BIG5 in XEmacs UTF-2000.
2129         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2130         CODESYS_BIG5 in XEmacs UTF-2000.
2131         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2132         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2133
2134         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2135         variables.
2136         (Qideograph_hanziku_{1 .. 12}): Likewise.
2137         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2138         .. 12}'.
2139         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2140         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2141         `ideograph-hanziku-{1 .. 12}'.
2142
2143         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2144         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2145         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2146         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2147         (DECODE_DEFINED_CHAR): New inline function.
2148         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2149
2150 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2151
2152         * mule-charset.c (Vcharset_china3_jef): Renamed from
2153         `Vcharset_japanese_jef_china3'.
2154         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2155         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2156         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2157         (syms_of_mule_charset): Rename `china3-jef' from
2158         `japanese-jef-china3'.
2159         (complex_vars_of_mule_charset): Likewise; rename
2160         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2161
2162         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2163         `LEADING_BYTE_JEF_CHINA3'.
2164         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2165         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2166
2167 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * mule-charset.c (encode_builtin_char_1): Comment out special code
2170         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2171
2172         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2173         (MAX_CHAR_MOJIKYO_0): Comment out.
2174         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2175         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2176         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2177         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2178
2179 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180
2181         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2182         (Qideograph_cbeta): New variable.
2183         (encode_builtin_char_1): Comment out special code for
2184         coded-charset `mojikyo' and `japanese-jef-china3'.
2185         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2186         (complex_vars_of_mule_charset): Add new coded-charset
2187         `ideograph-cbeta'.
2188
2189         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2190         (MIN_CHAR_CBETA): New macro.
2191         (MAX_CHAR_CBETA): New macro.
2192
2193 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2194
2195         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2196         (LEADING_BYTE_JEF_CHINA3): New macro.
2197         (MIN_CHAR_JEF_CHINA3): New macro.
2198         (MAX_CHAR_JEF_CHINA3): Likewise.
2199         (DECODE_CHAR): Fixed.
2200
2201 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2202
2203         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2204         (Qjapanese_jef_china3): New variable.
2205         (encode_builtin_char_1): Support `japanese-jef-china3'.
2206         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2207         (complex_vars_of_mule_charset): Add new coded-charset
2208         `japanese-jef-china3'.
2209
2210 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2211
2212         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2213         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2214         94^4, 96^3, 96^4, 128^n and 256^n set.
2215         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2216         (map_char_table): Likewise.
2217
2218 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2219
2220         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2221         UTF-2000.
2222
2223 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2224
2225         * chartab.h (get_char_id_table): New inline function.
2226
2227         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2228         function.
2229
2230 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2231
2232         * chartab.h (decode_char_table_range): New prototype in XEmacs
2233         UTF-2000.
2234         (put_char_id_table): New inline function in XEmacs UTF-2000.
2235
2236         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2237         function.
2238         (decode_char_table_range): Delete static declaration in XEmacs
2239         UTF-2000.
2240
2241 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2242
2243         * chartab.c (put_char_id_table): Use `put_char_table'.
2244
2245 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246
2247         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2248         (map_over_uint16_byte_table): Likewise.
2249         (map_over_byte_table): Likewise.
2250         (map_char_table): Modify for `map_over_uint8_byte_table',
2251         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2252         UTF-2000.
2253
2254 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2255
2256         * chartab.c (struct map_char_table_for_charset_arg): New
2257         structure.
2258         (map_char_table_for_charset_fun): New function.
2259         (map_char_table): Use `map_char_table' for encoding_table of
2260         `range->charset'.
2261
2262 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2263
2264         * chartab.c (map_char_table): Check a character is found in
2265         range->charset instead of non default value is defined in
2266         char-table when range is CHARTAB_RANGE_ROW.
2267
2268 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2269
2270         * chartab.c (map_char_id_table): Deleted.
2271         (Fmap_char_attribute): Use `map_char_table' instead of
2272         `map_char_id_table'.
2273
2274 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2275
2276         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2277         UTF-2000.
2278         (update_syntax_table): Deleted in XEmacs UTF-2000.
2279
2280         * syntax.c (find_defun_start): Use `syntax_table' instead of
2281         `mirror_syntax_table' in XEmacs UTF-2000.
2282         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2283         UTF-2000.
2284         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2285         XEmacs UTF-2000.
2286         (Fmatching_paren): Likewise.
2287         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2288         in XEmacs UTF-2000.
2289         (find_start_of_comment): Likewise.
2290         (find_end_of_comment): Likewise.
2291         (Fforward_comment): Likewise.
2292         (scan_lists): Likewise.
2293         (char_quoted): Likewise.
2294         (Fbackward_prefix_chars): Likewise.
2295         (scan_sexps_forward): Likewise.
2296         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2297         (update_syntax_table): Likewise.
2298
2299         * search.c (skip_chars): Use `syntax_table' instead of
2300         `mirror_syntax_table' in XEmacs UTF-2000.
2301         (wordify): Likewise.
2302         (Freplace_match): Likewise.
2303
2304         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2305         `mirror_syntax_table' in XEmacs UTF-2000.
2306         (WORDCHAR_P_UNSAFE): Likewise.
2307         (re_match_2_internal): Likewise.
2308
2309         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2310         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2311
2312         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2313         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2314
2315         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2316         XEmacs UTF-2000.
2317
2318         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2319         UTF-2000.
2320         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2321         (char_table_description): Delete `mirror_table' in XEmacs
2322         UTF-2000.
2323         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2324         UTF-2000.
2325         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2326         (Fcopy_char_table): Likewise.
2327         (put_char_table): Don't call `update_syntax_table' in XEmacs
2328         UTF-2000.
2329
2330         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2331         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2332         (casify_region_internal): Likewise.
2333
2334         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2335
2336         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2337         `mirror_syntax_table' in XEmacs UTF-2000.
2338
2339         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2340         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2341         (Fexpand_abbrev): Likewise.
2342
2343 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2344
2345         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2346
2347 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2348
2349         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2350         (map_over_uint16_byte_table): Likewise.
2351         (map_over_byte_table): Likewise.
2352         (get_char_id_table): Refer `cit->default_value'.
2353         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2354         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2355         of character-id ranges.
2356         (mark_char_table): Mark `ct->default_value'.
2357         (char_table_description): Add `default_value'.
2358         (fill_char_table): Use `default_value'.
2359         (decode_char_table_range): Decode `nil' as
2360         `CHARTAB_RANGE_DEFAULT'.
2361         (get_char_id_table): Refer `cit->default_value'.
2362         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2363         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2364         temporary hack; check value of char-table is bound or not.
2365         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2366
2367         * chartab.h (struct Lisp_Char_Table): Add new member
2368         `default_value' in XEmacs UTF-2000.
2369         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2370         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2371         UTF-2000.
2372
2373 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2374
2375         * chartab.h (Lisp_Char_ID_Table): Deleted.
2376
2377         * chartab.c (char_table_description): Fix typo.
2378         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2379         `Lisp_Char_ID_Table'.
2380
2381 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2382
2383         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2384         `CHAR_ID_TABLE_P'.
2385
2386         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2387         `CHAR_ID_TABLE_P'.
2388
2389         * chartab.h (XCHAR_ID_TABLE): Deleted.
2390         (XSETCHAR_ID_TABLE): Deleted.
2391         (CHAR_ID_TABLE_P): Deleted.
2392
2393         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2394         `CHAR_ID_TABLE_P'.
2395         (Fget_composite_char): Likewise.
2396         (put_char_table): Likewise.
2397         (add_char_attribute_alist_mapper): Fixed.
2398         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2399         `CHAR_ID_TABLE_P'.
2400         (Fget_char_attribute): Likewise.
2401         (Fget_char_attribute): Likewise.
2402         (Fmap_char_attribute): Likewise.
2403
2404         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2405         `CHAR_ID_TABLE_P'.
2406         (encode_char_1): Likewise.
2407
2408 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2409
2410         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2411         `XCHAR_ID_TABLE'.
2412
2413         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2414         instead of `XCHAR_ID_TABLE'.
2415         (remove_char_ccs): Likewise.
2416
2417         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2418         `XCHAR_ID_TABLE'.
2419         (Fget_composite_char): Likewise.
2420         (Fchar_variants): Likewise.
2421         (put_char_table): Likewise.
2422         (add_char_attribute_alist_mapper): Likewise.
2423         (Fchar_attribute_alist): Likewise.
2424         (Fget_char_attribute): Likewise.
2425         (Fput_char_attribute): Likewise.
2426         (Fmap_char_attribute): Likewise.
2427         (Fmap_char_attribute): Likewise.
2428
2429         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2430         `XCHAR_ID_TABLE'.
2431         (encode_char_1): Likewise.
2432
2433 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2434
2435         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2436         `Lisp_Char_ID_Table'.
2437         (mark_char_id_table): Deleted.
2438         (print_char_id_table): Likewise.
2439         (char_id_table_equal): Likewise.
2440         (char_id_table_hash): Likewise.
2441         (char_id_table_description): Likewise.
2442         (char_id_table): Likewise.
2443         (make_char_id_table): Use `Fmake_char_table' and
2444         `fill_char_table'.
2445         (get_char_id_table): Use `Lisp_Char_Table' instead of
2446         `Lisp_Char_ID_Table'.
2447         (put_char_id_table): Likewise.
2448         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2449         `XCHAR_ID_TABLE'.
2450         (Fremove_char_attribute): Likewise.
2451         (syms_of_chartab): Don't define type `char-id-table'.
2452
2453         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2454         (char_id_table): Likewise.
2455         (GC_CHAR_ID_TABLE_P): Likewise.
2456         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2457         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2458         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2459         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2460         (get_char_id_table): Use `Lisp_Char_Table' instead of
2461         `Lisp_Char_ID_Table'.
2462         (put_char_id_table_0): Likewise.
2463         (put_char_id_table): Likewise.
2464
2465 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2466
2467         * chartab.h: Lisp_Byte_Table related codes are moved from
2468         chartab.h.
2469
2470         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2471
2472 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2473
2474         * chartab.h: Don't include "chartab.h".
2475         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2476         (Lisp_Char_ID_Table): Likewise.
2477         (char_id_table): Likewise.
2478         (XCHAR_ID_TABLE): Likewise.
2479         (XSETCHAR_ID_TABLE): Likewise.
2480         (CHAR_ID_TABLE_P): Likewise.
2481         (GC_CHAR_ID_TABLE_P): Likewise.
2482         (get_char_id_table): Likewise.
2483
2484         * char-ucs.h: Include "chartab.h".
2485         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2486         (Lisp_Char_ID_Table): Likewise.
2487         (char_id_table): Likewise.
2488         (XCHAR_ID_TABLE): Likewise.
2489         (XSETCHAR_ID_TABLE): Likewise.
2490         (CHAR_ID_TABLE_P): Likewise.
2491         (GC_CHAR_ID_TABLE_P): Likewise.
2492         (get_char_id_table): Likewise.
2493
2494 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2495
2496         * chartab.c (copy_uint8_byte_table): New function.
2497         (copy_uint16_byte_table): New function.
2498         (copy_byte_table): New function.
2499         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2500         characters to call.
2501         (map_over_uint16_byte_table): Likewise.
2502         (map_over_byte_table): Likewise.
2503         (get_byte_table): Move prototype to chartab.h.
2504         (put_byte_table): Likewise.
2505         (put_char_id_table_0): Moved to chartab.h.
2506         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2507         (char_table_entry_equal): Likewise.
2508         (char_table_entry_hash): Likewise.
2509         (char_table_entry_description): Likewise.
2510         (char_table_entry): Likewise.
2511         (make_char_table_entry): Likewise.
2512         (copy_char_table_entry): Likewise.
2513         (get_non_ascii_char_table_value): Likewise.
2514         (map_over_charset_ascii): Likewise.
2515         (map_over_charset_control_1): Likewise.
2516         (map_over_charset_row): Likewise.
2517         (map_over_other_charset): Likewise.
2518         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2519         (print_char_table): Likewise.
2520         (char_table_equal): Likewise.
2521         (char_table_hash): Likewise.
2522         (char_table_description): Likewise.
2523         (fill_char_table): Likewise.
2524         (Fcopy_char_table): Likewise.
2525         (get_char_table): Likewise.
2526         (Fget_range_char_table): Likewise.
2527         (put_char_table): Likewise.
2528         (map_char_table): Likewise.
2529         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2530         UTF-2000.
2531
2532 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2533
2534         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2535         `Vauto_fill_chars' in XEmacs UTF-2000.
2536
2537         * chartab.h (get_byte_table): New prototype [moved from
2538         chartab.c].
2539         (put_byte_table): Likewise [moved from chartab.c].
2540         (put_char_id_table_0): New inline function [moved from chartab.c].
2541         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2542         (Lisp_Char_Table_Entry): Likewise.
2543         (char_table_entry): Likewise.
2544         (XCHAR_TABLE_ENTRY): Likewise.
2545         (XSETCHAR_TABLE_ENTRY): Likewise.
2546         (CHAR_TABLE_ENTRYP): Likewise.
2547         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2548         (NUM_ASCII_CHARS): Likewise.
2549         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2550         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2551
2552 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2553
2554         * chartab.c (get_char_id_table): Change interface.
2555         (put_char_id_table_0): New function.
2556         (put_char_id_table): Change interface; new implementation.
2557         (Fget_composite_char): Modify for interface change of
2558         `get_char_id_table'.
2559         (Fchar_variants): Likewise.
2560         (add_char_attribute_alist_mapper): Likewise.
2561         (Fchar_attribute_alist): Likewise.
2562         (Fget_char_attribute): Likewise.
2563         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2564         as same as character as the first argument like `put-char-table';
2565         modify for interface change of `put_char_id_table'.
2566         (Fremove_char_attribute): Modify for interface change of
2567         `put_char_id_table'.
2568
2569 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * text-coding.c: Sync up with XEmacs 21.2.41.
2572         (COMPOSE_ADD_CHAR): Modify for interface change of
2573         `get_char_id_table'.
2574
2575         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2576         change of `put_char_id_table'.
2577         (remove_char_ccs): Likewise.
2578
2579         * chartab.h (put_char_id_table): Change interface.
2580
2581         * char-ucs.h (get_char_id_table): Change interface.
2582         (charset_code_point): Modify for interface change of
2583         `get_char_id_table'.
2584         (encode_char_1): Likewise.
2585
2586 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2587
2588         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2589         argument `ccs'.
2590         (map_over_uint16_byte_table): Likewise.
2591         (map_over_byte_table): Likewise.
2592         (map_char_id_table): Add new argument `range' like
2593         `map_char_table'.
2594         (Fmap_char_attribute): Add new argument `range' like
2595         `Fmap_char_table'.
2596
2597 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2598
2599         * chartab.c (map_over_uint8_byte_table): Change interface of
2600         mapping function to use struct chartab_range instead of Emchar.
2601         (map_over_uint16_byte_table): Likewise.
2602         (map_over_byte_table): Likewise.
2603         (map_char_id_table): Likewise.
2604         (struct slow_map_char_id_table_arg): Deleted.
2605         (slow_map_char_id_table_fun): Deleted.
2606         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2607         function `slow_map_char_table_fun' instead of struct
2608         `slow_map_char_id_table_arg' and function
2609         `slow_map_char_id_table_fun'.
2610
2611 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * mule-charset.c: Move char-it-table related codes to chartab.c.
2614         (Vutf_2000_version): Moved to chartab.c.
2615         (Fdefine_char): Likewise.
2616         (Ffind_char): Likewise.
2617         (syms_of_mule_charset): Move types `uint8-byte-table',
2618         `uint16-byte-table', `byte-table' and `char-id-table' to
2619         chartab.c; move functions `char_attribute_list,
2620         `find_char_attribute_table, `char_attribute_alist,
2621         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2622         `map_char_attribute, `define_char, `find_char, `char_variants and
2623         `get_composite_char to chartab.c; move symbols `=>ucs',
2624         `->decomposition', `compat', `isolated', `initial', `medial',
2625         `final', `vertical', `noBreak', `fraction', `super', `sub',
2626         `circle', `square', `wide', `narrow', `small' and `font' to
2627         chartab.c.
2628         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2629         setting codes for `Vcharacter_composition_table' and
2630         `Vcharacter_variant_table' to chartab.c.
2631         (complex_vars_of_mule_charset): Move setting code for
2632         `Vchar_attribute_hash_table' to chartab.c.
2633
2634         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2635         (make_char_id_table): New prototype.
2636         (put_char_id_table): Likewise.
2637         (Fget_char_attribute): Likewise.
2638
2639         * chartab.c: Move char-id-table related code from mule-charset.c.
2640         (Vutf_2000_version): Moved from mule-charset.c.
2641
2642         * char-ucs.h (Qucs): New external variable.
2643         (put_char_ccs_code_point): New prototype.
2644         (remove_char_ccs): Likewise.
2645
2646 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2647
2648         * mule-charset.c (Vcharset_ucs_jis): New variable.
2649         (Qucs_jis): Likewise.
2650         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2651         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2652
2653         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2654
2655 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2656
2657         * mule-charset.c (map_over_uint8_byte_table): New function.
2658         (map_over_uint16_byte_table): Likewise.
2659         (map_over_byte_table): Likewise.
2660         (map_char_id_table): Likewise.
2661         (slow_map_char_id_table_fun): Likewise.
2662         (Fmap_char_attribute): Likewise.
2663         (syms_of_mule_charset): Add new function `map-char-attribute'.
2664
2665 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2666
2667         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2668         (syms_of_mule_charset): Add new function `find-char'.
2669
2670 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2671
2672         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2673         XEmacs UTF-2000.
2674         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2675         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2676         XEmacs UTF-2000.
2677         (complex_vars_of_mule_charset): Add new coded-charset
2678         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2679         `ideograph-gt-pj-*'.
2680
2681         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2682
2683 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2684
2685         * mule-charset.c (encode_builtin_char_1): Purge codes about
2686         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2687         {MIN|MAX}_CHAR_HEBREW.
2688         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2689         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2690
2691         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2692         (MAX_CHAR_GREEK): Purged.
2693         (MIN_CHAR_CYRILLIC): Purged.
2694         (MAX_CHAR_CYRILLIC): Purged.
2695         (MIN_CHAR_HEBREW): Commented out.
2696         (MAX_CHAR_HEBREW): Likewise.
2697
2698 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2699
2700         * mule-charset.c (Qto_ucs): New variable.
2701         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2702         (Fdefine_char): Likewise.
2703         (syms_of_mule_charset): Add new symbol `=>ucs'.
2704
2705 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2706
2707         * mule-charset.c (Fdecode_char): Fixed.
2708
2709 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2710
2711         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2712         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2713         "tcvn5712-1".
2714
2715 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2716
2717         * mule-charset.c (Vcharset_ucs_big5): New variable.
2718         (Qucs_big5): Likewise.
2719         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2720         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2721
2722         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2723
2724 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2725
2726         * mule-charset.c (decode_builtin_char): Check Big5 code range
2727         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2728
2729 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2730
2731         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2732         (Qchinese_gb12345): Likewise.
2733         (Fdecode_builtin_char): Fixed.
2734         (syms_of_mule_charset): Add `chinese-gb12345'.
2735         (complex_vars_of_mule_charset): Add coded-charset
2736         `chinese-gb12345'.
2737
2738         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2739         (LEADING_BYTE_CHINESE_GB12345): New macro.
2740
2741 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2742
2743         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2744         and `latin-viscii-upper' for `latin-viscii'.
2745
2746 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2747
2748         * mule-charset.c (Fdecode_builtin_char): Comment out
2749         regularization code for ISO-IR GR representation.
2750
2751 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2752
2753         * mule-charset.c (decode_builtin_char): New function; renamed from
2754         `make_builtin_char'; return -1 instead of signal.
2755         (Fdecode_builtin_char): Use `decode_builtin_char'.
2756
2757         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2758         `make_builtin_char'.
2759         (DECODE_CHAR): Use `decode_builtin_char' instead of
2760         `make_builtin_char'; use mapping table of `chinese-big5' for
2761         `chinese-big5-{1,2}'.
2762
2763 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2764
2765         * text-coding.c (char_encode_big5): New function.
2766         (char_finish_big5): Likewise.
2767         (reset_encoding_stream): Use `char_encode_big5' and
2768         `char_finish_big5' for CODESYS_BIG5.
2769         (mule_encode): Don't use `encode_coding_big5'.
2770         (encode_coding_big5): Deleted.
2771
2772 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2773
2774         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2775         0x81- in XEmacs UTF-2000.
2776         (detect_coding_big5): Likewise.
2777
2778 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2779
2780         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2781         generate character-id if the CCS property does not have
2782         corresponding predefined character.
2783         (make_builtin_char): Return -1 if corresponding predefined
2784         character is not found.
2785         (Fdecode_char): Return nil if corresponding character is not
2786         found.
2787         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2788         don't map to builtin ucs space.
2789
2790 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2791
2792         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2793         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2794
2795 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2796
2797         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2798         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2799         (Qideograph_gt): Likewise.
2800         (Qideograph_gt_pj_{1..11}): Likewise.
2801         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2802         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2803         `ideograph-gt-pj-11'.
2804         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2805         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2806         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2807
2808         * char-ucs.h (LEADING_BYTE_GT): New macro.
2809         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2810         (MIN_CHAR_GT): Likewise.
2811         (MAX_CHAR_GT): Likewise.
2812
2813 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2814
2815         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2816         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2817
2818         * doprnt.c (unsigned_int_converters): Add `c'.
2819         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2820
2821         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2822         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2823         `MIN_CHAR_MOJIKYO'.
2824         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2825         (MAX_CHAR_MOJIKYO_0): New macro.
2826         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2827
2828 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2829
2830         * mule-charset.c (Fdefine_char): Delete cemented out code.
2831         (encode_builtin_char_1): Modify for new allocation of builtin
2832         Mojikyo characters.
2833
2834         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2835
2836 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2837
2838         * mule-charset.c (Vcharset_ucs_cns): New variable.
2839         (Qucs_cns): New variable.
2840         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2841         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2842
2843 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2844
2845         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2846
2847 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2848
2849         * search.c (search_buffer): Make `charset_base_code' as
2850         character-id >> 6 to eliminate the corresponding last byte in
2851         UTF-8 representation [I'm not sure it is right thing].
2852         (boyer_moore): Likewise.
2853
2854 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2855
2856         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2857         representation in MULE.
2858
2859 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2860
2861         * text-coding.c (Fmake_coding_system): Use
2862         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2863         `EXTERNAL_PROPERTY_LIST_LOOP'.
2864
2865 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2866
2867         * text-coding.c (decode_output_utf8_partial_char): New function.
2868         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2869
2870 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2871
2872         * text-coding.c (decode_coding_utf8): Output original byte
2873         sequence if it is broken; change order of conditions.
2874
2875         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2876         of conditions.
2877
2878         * mb-multibyte.h (BYTE_ASCII_P):
2879         Use bit ops for char-signedness safety.
2880         (BYTE_C0_P): Use bit ops for char-signedness safety.
2881         (BYTE_C1_P): Use bit ops for char-signedness safety.
2882
2883         * character.h: (XCHAR_OR_CHAR_INT):
2884         Always use inline function.
2885         Remove redundant type checking assert() - XINT will abort quite
2886         nicely.
2887
2888 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2889
2890         * text-coding.c: (Fencode_shift_jis_char):
2891         (Fencode_big5_char):
2892         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2893         Replace 0 with '\0' when working with bytes.
2894         Replace initial "(" with "\(" in docstrings.
2895
2896         (Fmake_coding_system):
2897         When type is ccl and value is vector, register it with a proper
2898         symbol.  And checks whether the given ccl program is valid.
2899         (mule_decode): When calling ccl_driver, if src indicates
2900         NULL pointer, set an empty string instead.
2901         (mule_encode): Likewise.
2902
2903         (detect_eol_type):
2904         (detect_coding_sjis):
2905         (decode_coding_sjis):
2906         (detect_coding_big5):
2907         (decode_coding_big5):
2908         (detect_coding_ucs4):
2909         (decode_coding_ucs4):
2910         (detect_coding_utf8):
2911         (decode_coding_utf8):
2912         (detect_coding_iso2022):
2913         (decode_coding_iso2022):
2914         (decode_coding_no_conversion):
2915         (mule_decode):
2916         Make all detecting and decoding functions take an Extbyte * arg.
2917         (text_encode_generic):
2918         (encode_coding_big5):
2919         (encode_coding_no_conversion):
2920         (mule_encode):
2921         Make all encoding functions take a Bufbyte * arg.
2922         Use size_t instead of unsigned int for memory sizes.
2923         Only cast to unsigned char whenever dereferencing Extbyte *.
2924
2925         (struct lrecord_description fcd_description_1): Use countof.
2926         (complex_vars_of_file_coding):
2927         Use countof instead of sizeof.
2928         Use CHECK_NATNUM instead of CHECK_INT.
2929
2930 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2931
2932         * mule-charset.c (Fget_char_attribute): Add new optional argument
2933         `default-value'.
2934         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2935         (remove_char_ccs): Likewise.
2936
2937 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2938
2939         * text-coding.c (char_encode_shift_jis): New implementation in
2940         UTF-2000.
2941         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2942         ...)'.
2943
2944         * mule-charset.c (Vcharset_chinese_big5): New variable in
2945         UTF-2000.
2946         (Qchinese_big5): New variable in UTF-2000.
2947         (BIG5_SAME_ROW): New macro in UTF-2000.
2948         (make_builtin_char): Use builtin characters of
2949         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2950         characters of `Vcharset_chinese_big5'.
2951         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2952         (complex_vars_of_mule_charset): Add new coded-charset
2953         `chinese-big5' in UTF-2000.
2954
2955         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2956         (Vcharset_chinese_big5): New external variable declaration.
2957         (Vcharset_japanese_jisx0208_1990): Likewise.
2958
2959 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2960
2961         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2962         function.
2963         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2964
2965 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2966
2967         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2968         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2969         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2970         `mojikyo-pj-*'.
2971
2972 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2973
2974         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2975
2976 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2977
2978         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2979         to 0.17.
2980
2981 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2982
2983         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2984         for `CHARSET_BY_ATTRIBUTES'.
2985         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2986         `CHARSET_BY_ATTRIBUTES'.
2987
2988         * text-coding.c (struct decoding_stream): Rename member `CH' to
2989         `CPOS'.
2990         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2991         (decode_coding_sjis): Likewise.
2992         (decode_coding_big5): Likewise.
2993         (decode_coding_ucs4): Likewise.
2994         (decode_coding_utf8): Likewise.
2995         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2996         `CHARSET_BY_ATTRIBUTES'.
2997         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2998         `str->counter'; decode 3, 4 bytes sets.
2999         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3000         sets.
3001         (decode_coding_no_conversion): Use `str->cpos' instead of
3002         `str->ch'.
3003
3004         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3005         (Qmojikyo_2022_1): New variable.
3006         (make_charset): Don't use `CHARSET_TYPE_*'.
3007         (range_charset_code_point): Support coded-charset
3008         `mojikyo-2022-1'.
3009         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3010         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3011         `CHARSET_BY_ATTRIBUTES'.
3012         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3013         `CHARSET_BY_ATTRIBUTES'.
3014         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3015         (complex_vars_of_mule_charset): Add new coded-charset
3016         `mojikyo-2022-1'.
3017
3018         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3019         interface; changed to inline function.
3020
3021         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3022         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3023         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3024         (CHARSET_TYPE_94): Deleted.
3025         (CHARSET_TYPE_94X94): Deleted.
3026         (CHARSET_TYPE_96): Deleted.
3027         (CHARSET_TYPE_96X96): Deleted.
3028         (CHARSET_TYPE_128): Deleted.
3029         (CHARSET_TYPE_128X128): Deleted.
3030         (CHARSET_TYPE_256): Deleted.
3031         (CHARSET_TYPE_256X256): Deleted.
3032         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3033         to inline function.
3034         (DECODE_MOJIKYO_2022): New inline function.
3035         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3036         `Vcharset_mojikyo_2022_1'.
3037
3038 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3039
3040         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3041         instead of `EQ'.
3042         (put_byte_table): Likewise.
3043         (char_id_table_equal): Use `get_byte_table' [new implementation].
3044
3045 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3046
3047         * mule-charset.c: Include <limits.h> in UTF-2000.
3048         (BT_UINT8_MIN): New macro in UTF-2000.
3049         (BT_UINT8_MAX): New macro in UTF-2000.
3050         (BT_UINT8_t): New macro in UTF-2000.
3051         (BT_UINT8_nil): New macro in UTF-2000.
3052         (BT_UINT8_unbound): New macro in UTF-2000.
3053         (INT_UINT8_P): New inline function in UTF-2000.
3054         (UINT8_VALUE_P): New inline function in UTF-2000.
3055         (UINT8_ENCODE): New inline function in UTF-2000.
3056         (UINT8_DECODE): New inline function in UTF-2000.
3057         (mark_uint8_byte_table): New function in UTF-2000.
3058         (print_uint8_byte_table): New function in UTF-2000.
3059         (uint8_byte_table_equal): New function in UTF-2000.
3060         (uint8_byte_table_hash): New function in UTF-2000.
3061         (make_uint8_byte_table): New function in UTF-2000.
3062         (uint8_byte_table_same_value_p): New function in UTF-2000.
3063         (BT_UINT16_MIN): New macro in UTF-2000.
3064         (BT_UINT16_MAX): New macro in UTF-2000.
3065         (BT_UINT16_t): New macro in UTF-2000.
3066         (BT_UINT16_nil): New macro in UTF-2000.
3067         (BT_UINT16_unbound): New macro in UTF-2000.
3068         (INT_UINT16_P): New inline function in UTF-2000.
3069         (UINT16_VALUE_P): New inline function in UTF-2000.
3070         (UINT16_ENCODE): New inline function in UTF-2000.
3071         (UINT16_DECODE): New inline function in UTF-2000.
3072         (UINT8_TO_UINT16): New inline function in UTF-2000.
3073         (mark_uint16_byte_table): New function in UTF-2000.
3074         (print_uint16_byte_table): New function in UTF-2000.
3075         (uint16_byte_table_equal): New function in UTF-2000.
3076         (uint16_byte_table_hash): New function in UTF-2000.
3077         (make_uint16_byte_table): New function in UTF-2000.
3078         (uint16_byte_table_same_value_p): New function in UTF-2000.
3079         (print_byte_table): New function in UTF-2000.
3080         (byte-table): Use `print_byte_table' as printer.
3081         (make_byte_table): Delete second argument `older'.
3082         (byte_table_same_value_p): New function in UTF-2000.
3083         (copy_byte_table): Deleted.
3084         (get_byte_table): New function in UTF-2000.
3085         (put_byte_table): New function in UTF-2000.
3086         (print_char_id_table): New function in UTF-2000.
3087         (char-id-table): Use `print_char_id_table' as printer.
3088         (make_char_id_table): Delete second argument `older'.
3089         (get_char_id_table): Use `get_byte_table [new implementation].
3090         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3091         implementation].
3092         (Ffind_char_attribute_table): New function in UTF-2000.
3093         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3094         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3095         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3096         (syms_of_mule_charset): Add new function
3097         `find-char-attribute-table' in UTF-2000.
3098
3099         * lrecord.h (enum lrecord_type): Add
3100         `lrecord_type_uint16_byte_table' and
3101         `lrecord_type_uint8_byte_table'.
3102
3103         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3104         (Lisp_Uint8_Byte_Table): New type.
3105         (XUINT8_BYTE_TABLE): New macro.
3106         (XSETUINT8_BYTE_TABLE): New macro.
3107         (UINT8_BYTE_TABLE_P): New macro.
3108         (GC_UINT8_BYTE_TABLE_P): New macro.
3109         (struct Lisp_Uint16_Byte_Table): New structure.
3110         (Lisp_Uint16_Byte_Table): New type.
3111         (XUINT16_BYTE_TABLE): New macro.
3112         (XSETUINT16_BYTE_TABLE): New macro.
3113         (UINT16_BYTE_TABLE_P): New macro.
3114         (GC_UINT16_BYTE_TABLE_P): New macro.
3115
3116 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3117
3118         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3119         (Vcharacter_ideographic_strokes_table): Deleted.
3120         (Vcharacter_total_strokes_table): Deleted.
3121         (Vcharacter_morohashi_daikanwa_table): Deleted.
3122         (Vcharacter_decomposition_table): Deleted.
3123         (Qname): Deleted because it is duplicated.
3124         (Qideographic_radical): Deleted.
3125         (Qideographic_strokes): Deleted.
3126         (Qtotal_strokes): Deleted.
3127         (Qmorohashi_daikanwa): Deleted.
3128         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3129         `ideographic-radical', `ideographic-strokes', `total-strokes',
3130         `morohashi-daikanwa' and `->decomposition'.
3131         (Fget_char_attribute): Likewise.
3132         (Fput_char_attribute): Likewise; use `make-vector' instead of
3133         `make_older_vector' for `->decomposition' value.
3134         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3135         `ideograph-daikanwa'.
3136         (syms_of_mule_charset): Delete builtin symbols `name',
3137         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3138         `morohashi-daikanwa'.
3139         (vars_of_mule_charset): Don't setup
3140         `Vcharacter_ideographic_radical_table',
3141         `Vcharacter_ideographic_strokes_table',
3142         `Vcharacter_total_strokes_table',
3143         `Vcharacter_morohashi_daikanwa_table' and
3144         `Vcharacter_decomposition_table'.
3145
3146 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3147
3148         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3149         `make_older_vector', `make_vector_newer_1' and
3150         `make_vector_newer'.
3151
3152         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3153         `make_older_vector' and `make_vector_newer'.
3154
3155         * config.h.in (HAVE_GGC): New macro.
3156
3157 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3158
3159         * mule-charset.c (struct char_attribute_list_closure): New
3160         structure in UTF-2000.
3161         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3162         (Fchar_attribute_list): Likewise.
3163         (Fset_charset_mapping_table): Use `make_vector_newer'.
3164         (Fdecode_builtin_char): New function in UTF-2000.
3165         (syms_of_mule_charset): Add new function `char-attribute-list' and
3166         `decode-builtin-char' in UTF-2000.
3167
3168         * lisp.h (make_vector_newer): New prototype.
3169
3170         * alloc.c (make_vector_newer_1): New function.
3171         (make_vector_newer): New function.
3172
3173 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3174
3175         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3176         50100)'.
3177
3178 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3179
3180         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3181         (Vcharacter_attribute_table): Deleted.
3182         (Vcharacter_name_table): Deleted.
3183         (put_char_attribute): Deleted.
3184         (remove_char_attribute): Deleted.
3185         (struct char_attribute_alist_closure): New structure.
3186         (add_char_attribute_alist_mapper): New function.
3187         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3188         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3189         (Fget_char_attribute): Likewise.
3190         (Fput_char_attribute): Likewise.
3191         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3192         of `remove_char_attribute'.
3193         (Fdefine_char): Return character.
3194         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3195         and `Vcharacter_name_table'.
3196         (complex_vars_of_mule_charset): Likewise
3197         `Vchar_attribute_hash_table'.
3198
3199 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3200
3201         * character.h (CHARC_CHARSET): New macro.
3202         (CHARC_CHARSET_ID): New macro.
3203         (CHARC_CODE_POINT): New macro.
3204         (CHARC_COLUMNS): New macro.
3205         (CHARC_TO_CHAR): New inline function.
3206         (CHARC_EQ): New inline function.
3207         (CHARC_ASCII_EQ): New inline function.
3208         (CHARC_IS_SPACE): New inline function.
3209         (ASCII_TO_CHARC): New inline function.
3210
3211         * char-ucs.h (encode_char_2): Deleted.
3212         (ENCODE_CHAR): Use `encode_char_1' again.
3213         (breakup_char_1): Likewise.
3214         (CHAR_TO_CHARC): New inline function.
3215
3216         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3217
3218 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3219
3220         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3221         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3222         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3223         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3224         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3225         `CHARC_IS_SPACE'.
3226         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3227
3228         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3229         `CHARC_CODE_POINT'.
3230         (x_output_display_block): Use `CHARC_CHARSET' and
3231         `CHARC_ASCII_EQ'.
3232
3233         * redisplay-tty.c (tty_output_display_block): Use
3234         `CHARC_ASCII_EQ'.
3235         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3236
3237         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3238
3239         * insdel.c (find_charsets_in_charc_string): Use
3240         `CHARC_CHARSET_ID'.
3241         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3242         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3243         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3244         (convert_charc_string_into_malloced_string): Likewise.
3245
3246 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3247
3248         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3249         instead of <Emchar_dynarr *> for buf; use
3250         `convert_bufbyte_string_into_charc_dynarr' instead of
3251         `convert_bufbyte_string_into_emchar_dynarr'; use
3252         `find_charsets_in_charc_string' instead of
3253         `find_charsets_in_emchar_string'.
3254
3255         * redisplay.h:
3256         - Include "character.h".
3257         (struct rune): New member `cglyph'; delete member `chr'.
3258
3259         * redisplay.c (redisplay_text_width_charc_string): New function;
3260         delete `redisplay_text_width_emchar_string'.
3261         (rtw_charc_dynarr): New variable; renamed from
3262         `rtw_emchar_dynarr'.
3263         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3264         `rtw_emchar_dynarr'; use
3265         `convert_bufbyte_string_into_charc_dynarr' instead of
3266         `convert_bufbyte_string_into_emchar_dynarr'; use
3267         `redisplay_text_width_charc_string' instead of
3268         `redisplay_text_width_emchar_string'.
3269         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3270         instead of `rtw_emchar_dynarr'; use
3271         `convert_bufbyte_string_into_charc_dynarr' instead of
3272         `convert_bufbyte_string_into_emchar_dynarr'.
3273         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3274         `redisplay_text_width_charc_string' instead of
3275         `redisplay_text_width_emchar_string'.
3276         (create_text_block): Modify for <struct rune> change.
3277         (generate_formatted_string_db): Likewise.
3278         (create_string_text_block): Likewise.
3279         (pixel_to_glyph_translation): Likewise.
3280
3281         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3282         instead of <const Emchar *>.
3283         (x_text_width): Likewise.
3284         (x_output_display_block): Use <Charc_dynarr *> instead
3285         <Emchar_dynarr *>; modify for <structure rune> change.
3286         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3287         *>.
3288
3289         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3290         <const Emchar *>; use `charc_string_displayed_columns' instead of
3291         `emchar_string_displayed_columns'.
3292         (tty_output_display_block): Use <Charc_dynarr *> instead of
3293         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3294         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3295         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3296         `tty_output_emchar_dynarr_dynarr'.
3297         (tty_output_charc_dynarr): New function; delete
3298         `tty_output_charc_dynarr'.
3299
3300         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3301         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3302         <Emchar_dynarr *> for buf; use
3303         `convert_bufbyte_string_into_charc_dynarr' instead of
3304         `convert_bufbyte_string_into_emchar_dynarr'.
3305
3306         * frame.c (title_string_charc_dynarr): New variable; renamed from
3307         `title_string_emchar_dynarr'.
3308         (generate_title_string): Use `title_string_charc_dynarr' instead
3309         of `title_string_emchar_dynarr'; use
3310         `convert_charc_string_into_malloced_string' instead of
3311         `convert_emchar_string_into_malloced_string'.
3312         (init_frame): Use `title_string_charc_dynarr' instead of
3313         `title_string_emchar_dynarr'.
3314
3315         * console.h:
3316         - Include "character.h".
3317         (struct console_methods): Use <const Charc *> instead of <const
3318         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3319         <Emchar_dynarr *> in output_string_method.
3320
3321         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3322         <Emchar_dynarr *>.
3323
3324         * console-stream.c (stream_text_width): Use <const Charc *>
3325         instead of <const Emchar *>.
3326
3327         * character.h (Charc_dynarr): New type.
3328
3329         * char-ucs.h (structure Charc): New structure; define new type
3330         `Charc'.
3331
3332         * char-lb.h (DECODE_CHAR): New inline function.
3333         (encode_char_1): New inline function.
3334         (ENCODE_CHAR): New macro.
3335         (structure Charc): New structure; define new type `Charc'.
3336
3337         * char-1byte.h (Vcharset_control_1): New macro.
3338         (Vcharset_latin_iso8859_1): New macro.
3339         (DECODE_CHAR): New inline function.
3340         (encode_char_1): New inline function.
3341         (ENCODE_CHAR): New macro.
3342         (structure Charc): New structure; define new type `Charc'.
3343
3344         * insdel.c (find_charsets_in_charc_string): New function; delete
3345         `find_charsets_in_emchar_string'.
3346         (charc_string_displayed_columns): New function; delete
3347         `emchar_string_displayed_columns'.
3348         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3349         `convert_bufbyte_string_into_emchar_dynarr'.
3350         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3351         `convert_charc_string_into_bufbyte_dynarr'.
3352         (convert_charc_string_into_malloced_string): New function; delete
3353         `convert_charc_string_into_malloced_string'.
3354
3355         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3356         `find_charsets_in_emchar_string'.
3357         (charc_string_displayed_columns): New prototype; delete
3358         `emchar_string_displayed_columns'.
3359         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3360         `convert_charc_string_into_bufbyte_dynarr'.
3361         (convert_charc_string_into_malloced_string): New prototype; delete
3362         `convert_charc_string_into_malloced_string'.
3363
3364 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3365
3366         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3367
3368 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3369
3370         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3371
3372         * char-ucs.h: Use <short> for <Charset_ID>.
3373
3374         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3375         <Charset_ID>.
3376
3377 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3378
3379         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3380         to 0.16.
3381
3382 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3383
3384         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3385         variable.
3386         (Qmorohashi_daikanwa): New variable.
3387         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3388         for `morohashi-daikanwa' attribute.
3389         (Fget_char_attribute): Likewise.
3390         (Fput_char_attribute): Likewise.
3391         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3392         has the same value of `ideograph-daikanwa'.
3393         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3394         (vars_of_mule_charset): Setup
3395         `Vcharacter_morohashi_daikanwa_table'.
3396
3397 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3398
3399         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3400         attributes.
3401         (add_charset_to_list_mapper): Add `key' instead of
3402         `XCHARSET_NAME (value)' to return aliases.
3403
3404 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3405
3406         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3407         variable.
3408         (Vcharacter_ideographic_strokes_table): New variable.
3409         (Qideographic_radical): New variable.
3410         (Qideographic_strokes): New variable.
3411         (Fchar_attribute_alist): Use
3412         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3413         attribute; use `Vcharacter_ideographic_strokes_table' for
3414         `ideographic-strokes' attribute.
3415         (Fget_char_attribute): Likewise.
3416         (Fput_char_attribute): Likewise.
3417         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3418         `ideographic-strokes'.
3419         (vars_of_mule_charset): Setup
3420         `Vcharacter_ideographic_radical_table' and
3421         `Vcharacter_ideographic_strokes_table'.
3422
3423 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3424
3425         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3426         (Qtotal_strokes): New variable.
3427         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3428         `total-strokes' attribute.
3429         (Fget_char_attribute): Likewise.
3430         (Fput_char_attribute): Likewise.
3431         (syms_of_mule_charset): Add new symbol `total-strokes'.
3432         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3433
3434 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3435
3436         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3437         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3438         are found.
3439         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3440         `->decomposition' attribute.
3441         (Fput_char_attribute): Likewise.
3442         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3443
3444 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3445
3446         * mule-charset.c (decoding_table_check_elements): New function.
3447         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3448
3449 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3450
3451         * mule-charset.c (Fset_charset_mapping_table): Use
3452         `put_char_ccs_code_point'.
3453
3454 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3455
3456         * mule-charset.c (decoding_table_put_char): New inline function.
3457         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3458
3459 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3460
3461         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3462         (XCHARSET_BYTE_SIZE): New macro.
3463         (decoding_table_remove_char): New inline function.
3464         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3465         `decoding_table_remove_char'.
3466         (remove_char_ccs): Use `decoding_table_remove_char'.
3467         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3468
3469 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3470
3471         * mule-charset.c (Vcharacter_name_table): New variable.
3472         (Qname): New variable.
3473         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3474         attribute.
3475         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3476         `Vcharacter_name_table' for `name' attribute.
3477         (Fremove_char_attribute): Use function `remove_char_ccs'.
3478         (put_char_ccs_code_point): New function.
3479         (remove_char_ccs): New function.
3480         (syms_of_mule_charset): Add new symbol `name'.
3481         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3482
3483 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3484
3485         * mule-charset.c (make_byte_table): Add new argument `older'.
3486         (make_char_id_table): Likewise.
3487         (copy_char_id_table): Comment out because it is not used.
3488         (put_char_id_table): Modify for `make_byte_table'.
3489         (Fput_char_attribute): Make encoding_table as older object;
3490         inherit older bit of `Vcharacter_composition_table'.
3491         (mark_charset): Don't mark `cs->encoding_table'.
3492         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3493         normal object; make `Vcharacter_composition_table' as an older
3494         object; delete staticpro for `Vcharacter_composition_table'; make
3495         `Vcharacter_variant_table' as a normal object.
3496
3497         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3498         (mark_object): Don't check older object in UTF-2000.
3499
3500         * lrecord.h (struct lrecord_header): Add new member `older' in
3501         UTF-2000.
3502         (set_lheader_implementation): Setup `SLI_header->older' in
3503         UTF-2000.
3504         (set_lheader_older_implementation): New macro in UTF-2000.
3505         (OLDER_RECORD_P): New macro in UTF-2000.
3506         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3507         (alloc_older_lcrecord): New prototype in UTF-2000.
3508         (alloc_older_lcrecord_type): New macro in UTF-2000.
3509
3510 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3511
3512         * mule-charset.c (byte_table_description): Use
3513         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3514         (char_id_table_description): Delete bogus `, 1'.
3515         (Fget_char_attribute): Refer encoding_table of each coded-charset
3516         to get value of coded-charset attribute of a character.
3517         (Fput_char_attribute): Use `make_older_vector' instead of
3518         `make_vector'; use encoding_table of each coded-charset to store
3519         value of coded-charset attribute of a character.
3520         (Fremove_char_attribute): Use encoding_table of each coded-charset
3521         to store value of coded-charset attribute of a character.
3522         (mark_charset): Mark `cs->encoding_table'; don't mark
3523         `cs->decoding_table'.
3524         (charset_description): Add description of new member
3525         `encoding_table'.
3526         (make_charset): Initialize `encoding_table'.
3527
3528         * char-ucs.h (struct Lisp_Charset): Add new member
3529         `encoding_table'.
3530         (CHARSET_ENCODING_TABLE): New macro.
3531         (XCHARSET_ENCODING_TABLE): New macro.
3532         (charset_code_point): New implementation.
3533         (encode_char_1): Likewise.
3534
3535         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3536         (disksave_object_finalization_1): Call finalizers of
3537         `all_older_lcrecords' in UTF-2000.
3538         (make_older_vector): New function in UTF-2000.
3539         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3540         UTF-2000.
3541
3542         * lisp.h (make_older_vector): New prototype in UTF-2000.
3543
3544 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3545
3546         * lrecord.h (enum lrecord_type): Rename
3547         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3548
3549         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3550         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3551         `get_char_code_table'.
3552
3553         * mule-charset.c (mark_char_id_table): Renamed from
3554         `mark_char_code_table'.
3555         (char_id_table_equal): Renamed from `char_code_table_equal'.
3556         (char_id_table_hash): Renamed from `char_code_table_hash'.
3557         (make_char_id_table): Renamed from `make_char_code_table'.
3558         (copy_char_id_table): Renamed from `copy_char_code_table'.
3559         (get_char_id_table): Renamed from `get_char_code_table'.
3560         (put_char_id_table): Renamed from `put_char_code_table'.
3561         (to_char_id): Renamed from `to_char_code'.
3562
3563         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3564         `Lisp_Char_Code_Table'.
3565         (char_id_table): Renamed from `char_code_table'.
3566         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3567         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3568         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3569         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3570         (get_char_id_table): Renamed from `get_char_code_table'.
3571
3572 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3573
3574         * lrecord.h (enum lrecord_type): Rename
3575         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3576
3577         * mule-charset.c (mark_byte_table): Renamed from
3578         `mark_char_byte_table'.
3579         (byte_table_equal): Renamed from `char_byte_table_equal'.
3580         (byte_table_hash): Renamed from `byte_table_hash'.
3581         (make_byte_table): Renamed from `make_byte_table'.
3582         (copy_byte_table): Renamed from `copy_char_byte_table'.
3583
3584         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3585         `Lisp_Char_Byte_Table'.
3586         (byte_table): Renamed from `char_byte_table'.
3587         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3588         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3589         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3590         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3591
3592 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3593
3594         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3595         (dfc_convert_to_internal_format): Likewise.
3596         
3597         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3598         * text-coding.c (Fcoding_system_alias_p): New function.
3599         * text-coding.c (Fcoding_system_aliasee): New function.
3600         * text-coding.c (append_suffix_to_symbol): New function.
3601         * text-coding.c (dangling_coding_system_alias_p): New function.
3602         * text-coding.c (Ffind_coding_system):
3603         * text-coding.c (Fcopy_coding_system):
3604         * text-coding.c (encode_coding_no_conversion):
3605         * text-coding.c (syms_of_file_coding):
3606         * text-coding.c (vars_of_file_coding):
3607         Rewrite coding system alias code.
3608         Allow nested aliases, like symbolic links.
3609         Allow redefinition of coding system aliases.
3610         Prevent existence of dangling coding system aliases.
3611         Eliminate convert_to_external_format.
3612         Eliminate convert_to_internal_format.
3613         
3614         * text-coding.c: Change enum eol_type to eol_type_t.
3615
3616 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3617
3618         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3619         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3620
3621         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3622         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3623
3624 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3625
3626         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3627         `ideograph-daikanwa'.
3628
3629         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3630         (Vcharset_ucs_bmp): Likewise.
3631         (Vcharset_mojikyo): Add new extern variable definition.
3632         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3633         (Vcharset_latin_iso8859_3): Likewise.
3634         (Vcharset_latin_iso8859_4): Likewise.
3635         (Vcharset_latin_iso8859_9): Likewise.
3636         (Vcharset_latin_viscii_lower): Likewise.
3637         (Vcharset_latin_viscii_upper): Likewise.
3638         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3639         `mojikyo' code-point is used to decode.
3640         (encode_char_2): New function [to convert `mojikyo' code-point to
3641         Mojikyo font encoding].
3642         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3643         (breakup_char_1): Likewise.
3644         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3645
3646 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3647
3648         * text-coding.c (Fmake_coding_system): Add document about
3649         `disable-composition' property.
3650
3651 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3652
3653         * text-coding.c (Qdisable_composition): New variable; delete
3654         `Qcomposite'.
3655         (Fmake_coding_system): Add new property `disable-composite';
3656         delete property `composite'.
3657         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3658         instead of `!CODING_SYSTEM_COMPOSITE'.
3659         (syms_of_file_coding): Add new symbol `disable-composition';
3660         delete symbol `composite'.
3661
3662         * file-coding.h (struct Lisp_Coding_System): Add
3663         `disable_composition'; delete `enable_composition'.
3664         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3665         `CODING_SYSTEM_COMPOSITE'.
3666         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3667         `XCODING_SYSTEM_COMPOSITE'.
3668
3669 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3670
3671         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3672         to 0.15.
3673
3674 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3675
3676         * text-coding.c (Qcomposite): New variable.
3677         (Fmake_coding_system): Add new property `composite'.
3678         (struct decoding_stream): Add `combined_char_count',
3679         `combined_chars' and `combining_table' in UTF-2000.
3680         (COMPOSE_FLUSH_CHARS): New macro.
3681         (COMPOSE_ADD_CHAR): New macro.
3682         (reset_decoding_stream): Reset `str->combined_char_count' and
3683         `str->combining_table' in UTF-2000.
3684         (decode_coding_iso2022): Modify for character-decomposition.
3685         (syms_of_file_coding): Add new symbol `composite'.
3686
3687 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3688
3689         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3690         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3691         of `Vcharacter_composition_table' if `->decomposition' property
3692         has only 1 element.
3693         (Qlatin_tcvn5712): New variable.
3694         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3695         (complex_vars_of_mule_charset): Add new coded-charset
3696         `latin-tcvn5712'.
3697
3698         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3699
3700 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3701
3702         * file-coding.h (struct Lisp_Coding_System): Add
3703         `enable_composition'.
3704         (CODING_SYSTEM_COMPOSITE): New macro.
3705         (XCODING_SYSTEM_COMPOSITE): New macro.
3706
3707 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3708
3709         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3710
3711 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3712
3713         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3714         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3715
3716 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3717
3718         * mule-charset.c (Vcharset_mojikyo): New variable.
3719         (Fdefine_char): Don't use coded-charset which does not have
3720         non-builtin character range to allocate character-id.
3721         (Qmojikyo): New variable.
3722         (syms_of_mule_charset): Add new symbol `mojikyo'.
3723         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3724
3725         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3726         (LEADING_BYTE_MOJIKYO): New macro.
3727         (MIN_CHAR_MOJIKYO): New macro.
3728         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3729         (MAX_CHAR_MOJIKYO): New macro.
3730
3731 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3732
3733         * mule-charset.c (remove_char_attribute): Fixed.
3734
3735 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3736
3737         * mule-charset.c (remove_char_attribute): New function.
3738         (Fremove_char_attribute): New function.
3739         (encode_builtin_char_1): Comment out builtin-support for
3740         greek-iso8859-7 and cyrillic-iso8859-5.
3741         (Fdecode_char): Check `code' is an integer.
3742         (syms_of_mule_charset): Add `remove-char-attribute'.
3743         (MIN_CHAR_GREEK): Deleted.
3744         (MAX_CHAR_GREEK): Likewise.
3745         (MIN_CHAR_CYRILLIC): Likewise.
3746         (MAX_CHAR_CYRILLIC): Likewise.
3747         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3748         MAX_CHAR_GREEK for `greek-iso8859-7'.
3749
3750         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3751         (MAX_CHAR_GREEK): Likewise.
3752         (MIN_CHAR_CYRILLIC): Likewise.
3753         (MAX_CHAR_CYRILLIC): Likewise.
3754
3755 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3756
3757         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3758         format is used without `ucs' property.
3759         (Fdecode_char): Fix problem with GR representation.
3760         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3761         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3762
3763 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3764
3765         * mule-charset.c (make_builtin_char): New function.
3766         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3767         (Fset_charset_mapping_table): Modify for new representation of
3768         code-point.
3769         (Fdecode_char): New function.
3770         (syms_of_mule_charset): Add new builtin function `decode-char' in
3771         UTF-2000.
3772
3773         * char-ucs.h (make_builtin_char): New prototype.
3774         (DECODE_CHAR): New inline function.
3775         (MAKE_CHAR): Use `DECODE_CHAR'.
3776
3777 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3778
3779         * text-coding.c (parse_charset_conversion_specs): Use
3780         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3781         `XCHARSET_TYPE'.
3782         (iso2022_designate): Likewise.
3783
3784         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3785         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3786
3787         * mule-charset.c (Vcharset_ucs): New variable.
3788         (print_charset): Change design; use `CHARSET_CHARS' and
3789         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3790         (make_charset): Change signature to specify `chars' and
3791         `dimension' instead of `type'.
3792         (range_charset_code_point): Modify for 256^n-set.
3793         (encode_builtin_char_1): Encode as `ucs' in default.
3794         (Fmake_charset): Modify for `make_charset'.
3795         (Fmake_reverse_direction_charset): Likewise.
3796         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3797         UTF-2000.
3798         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3799         for `make_charset'.
3800
3801         * char-ucs.h (Vcharset_ucs): New variable.
3802         (LEADING_BYTE_UCS): New macro.
3803         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3804         and `chars' to `unsigned short' from `unsigned int'.
3805         (CHARSET_TYPE): Deleted.
3806         (XCHARSET_TYPE): Deleted.
3807
3808 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3809
3810         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3811
3812         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3813         (ENCODE_CHAR): New macro.
3814
3815 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3816
3817         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3818         to 0.14 (Kawachi-Katakami).
3819
3820 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3821
3822         * text-coding.c (char_encode_shift_jis): Modify for
3823         `charset_code_point'.
3824         (char_encode_iso2022): Likewise.
3825
3826         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3827         (integer) instead of list of <Lisp_Object>s (integers) as the
3828         format of code-point of a coded-charset.
3829         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3830         (encode_builtin_char_1): New function; delete
3831         `split_builtin_char'.
3832         (charset_code_point): Return <int> instead of <Lisp_Object>.
3833         (Fsplit_char): Don't use `SPLIT_CHAR'.
3834
3835         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3836         prototype for `split_builtin_char'.
3837         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3838         (charset_code_point): Likewise.
3839         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3840         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3841
3842 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3843
3844         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3845         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3846
3847 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3848
3849         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3850
3851         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3852         (MAX_CHAR_OBS_94x94): Deleted.
3853
3854 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3855
3856         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3857
3858         * char-ucs.h (MAX_CHAR_BMP): New macro.
3859
3860 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3861
3862         * text-coding.c: Sync with r21-2-24.
3863
3864 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3865
3866         * file-coding.c: Modify for UTF-2000.
3867
3868 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3869
3870         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3871         to 0.13 (Takaida).
3872
3873 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3874
3875         * mule-charset.c (split_builtin_char): Delete builtin support for
3876         `katakana-jisx0201'.
3877         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3878         BMP area in builtin representation.
3879
3880         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3881         `Vcharset_katakana_jisx0201'.
3882
3883 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3884
3885         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3886         (Qisolated): New variable.
3887         (Qinitial): New variable.
3888         (Qmedial): New variable.
3889         (Qfinal): New variable.
3890         (Qvertical): New variable.
3891         (Qsmall): New variable.
3892         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3893         `Qvertical' and `Qsmall'.
3894         (Qmojikyo_pj_[1 .. 21]): New variable.
3895         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3896         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3897         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3898         .. 21]'.
3899
3900 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3901
3902         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3903         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3904         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3905
3906 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3907
3908         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3909         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3910         BMP.
3911         (Qjapanese_jisx0208_1990): New variable.
3912         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3913         (complex_vars_of_mule_charset): Add new coded-charset
3914         `japanese-jisx0208-1990'.
3915
3916         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3917         (MIN_CHAR_JIS_X0208_1990): New macro.
3918         (MAX_CHAR_JIS_X0208_1990): New macro.
3919
3920 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3921
3922         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3923         coded-charset is not found.
3924
3925 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3926
3927         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3928         (Fdefine_char): Use `Fmake_char'.
3929
3930 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3931
3932         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3933         (Vcharset_hiragana_jisx0208): Deleted.
3934         (Vcharset_katakana_jisx0208): Deleted.
3935         (Qideograph_daikanwa): New variable.
3936         (Qhiragana_jisx0208): Deleted.
3937         (Qkatakana_jisx0208): Deleted.
3938         (split_builtin_char): Split `ideograph-daikanwa'.
3939         (Fsplit_char): New implementation for UTF-2000.
3940         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3941         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3942         (complex_vars_of_mule_charset): Add new coded-charset
3943         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3944         `katakana-jisx0208'.
3945
3946         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3947         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3948         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3949         (MIN_CHAR_DAIKANWA): New macro.
3950         (MAX_CHAR_DAIKANWA): New macro.
3951
3952 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3953
3954         * data.c (Fstring_to_number): Don't recognize floating point if
3955         base is not 10.
3956
3957 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3958
3959         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3960
3961 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3962
3963         * mule-charset.c (Qsquare): New variable.
3964         (to_char_code): Add `Qsquare'.
3965         (syms_of_mule_charset): Add new symbol `square'.
3966
3967 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3968
3969         * mule-charset.c (Qcircle): New variable.
3970         (to_char_code): Add `Qcircle'.
3971         (syms_of_mule_charset): Add new symbol `circle'.
3972
3973 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3974
3975         * mule-charset.c (Qfont): New variable.
3976         (to_char_code): Add `Qfont'.
3977         (syms_of_mule_charset): Add new symbol `font'.
3978
3979 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3980
3981         * mule-charset.c (Qsub): New variable.
3982         (to_char_code): Add `Qsub'.
3983         (syms_of_mule_charset): Add new symbol `sub'.
3984
3985 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3986
3987         * mule-charset.c (Fput_char_attribute): Convert each element of
3988         VALUE to GL position if ATTRIBUTE is a GR-set,
3989
3990 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3991
3992         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3993         coded-charset is a GR-set.
3994
3995 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3996
3997         * mule-charset.c (Fput_char_attribute): Check each element of
3998         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3999
4000 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4001
4002         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4003         UTF-2000.
4004         (Qethiopic_ucs): New variable in UTF-2000.
4005         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4006         (complex_vars_of_mule_charset): Add new coded-charset
4007         `ethiopic-ucs' in UTF-2000.
4008
4009         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4010         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4011         9)'.
4012         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4013         10)'.
4014         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4015
4016 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4017
4018         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4019         `ascii'.
4020
4021 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4022
4023         * mule-charset.c (Vcharacter_variant_table): New variable.
4024         (Q_ucs): New variable.
4025         (Fchar_variants): New function.
4026         (Fput_char_attribute): Register `->ucs' value to
4027         `Vcharacter_variant_table'.
4028         (syms_of_mule_charset): Add new function `char-variants' and new
4029         symbol `->ucs'.
4030         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4031
4032 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4033
4034         * mule-charset.c (get_char_code_table): Allow negative character
4035         code.
4036         (put_char_code_table): Likewise.
4037         (Vcharacter_composition_table): New variable.
4038         (Q_decomposition): New variable.
4039         (Qwide): New variable.
4040         (Qnarrow): New variable.
4041         (Qcompat): New variable.
4042         (QnoBreak): New variable.
4043         (Qsuper): New variable.
4044         (Qfraction): New variable.
4045         (to_char_code): New function.
4046         (Fget_composite_char): New function.
4047         (Fput_char_attribute): Register `->decomposition' value to
4048         `Vcharacter_composition_table'.
4049         (syms_of_mule_charset): Add new function `get-composite-char', new
4050         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4051         `super' and `fraction'.
4052         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4053
4054 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4055
4056         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4057         character; copy the return value.
4058
4059 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4060
4061         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4062
4063         * mule-charset.c (range_charset_code_point): Must use make_int.
4064         (split_builtin_char): New function.
4065
4066 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4067
4068         * mule-charset.c (char_byte_table): Change name from
4069         "char-code-table" to "char-byte-table".
4070         (mark_char_code_table): New function.
4071         (char_code_table_equal): New function.
4072         (char_code_table_hash): New function.
4073         (char_code_table_description): New constant.
4074         (char_code_table): New type.
4075         (make_char_code_table): New function.
4076         (copy_char_code_table): New function.
4077         (get_char_code_table): Modify for `char_code_table' type.
4078         (put_char_code_table): Likewise.
4079         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4080         (Kashiwara).
4081
4082         * char-ucs.h (char_code_table): New type.
4083         (XCHAR_CODE_TABLE): New macro.
4084         (XSETCHAR_CODE_TABLE): New macro.
4085         (CHAR_CODE_TABLE_P): New macro.
4086         (GC_CHAR_CODE_TABLE_P): New macro.
4087         (struct Lisp_Char_Code_Table): New structure.
4088
4089 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4090
4091         * mule-charset.c (Fmake_charset): Setup byte_offset for
4092         {94|96}^n-set.
4093
4094 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4095
4096         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4097         character.
4098
4099 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4100
4101         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4102         is found.
4103
4104 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4105
4106         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4107         charset, it is regarded as a charset.
4108         (put_char_attribute): New function in UTF-2000.
4109         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4110         charset, mapping-table of the charset is modified.
4111         (Fdefine_char): New function in UTF-2000.
4112         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4113         `Fput_char_attribute'.
4114         (syms_of_mule_charset): Add new function `define-char' and new
4115         symbol `ucs' in UTF-2000.
4116         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4117
4118 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4119
4120         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4121         non-UTF-2000 configuration.
4122
4123 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4124
4125         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4126         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4127
4128         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4129         deleted.
4130         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4131         (Fset_charset_mapping_table): Likewise.
4132
4133         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4134         (CHARSET_ENCODING_TABLE): Delete.
4135         (XCHARSET_ENCODING_TABLE): Delete.
4136         (charset_code_point): New interface.
4137
4138 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4139
4140         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4141         instead of `charset_get_byte1' and `charset_get_byte2'.
4142
4143         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4144         (charset_get_byte2): Deleted.
4145
4146 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4147
4148         * char-ucs.h (SPLIT_CHAR): New inline function.
4149         (breakup_char_1): Use `SPLIT_CHAR'.
4150
4151         * mule-charset.c (range_charset_code_point): New function.
4152         (charset_code_point): New function.
4153
4154         * char-ucs.h (range_charset_code_point): New interface.
4155         (breakup_char_1): Use `range_charset_code_point'.
4156
4157 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4158
4159         * mule-charset.c (Fmake_charset): Delete unused local variable
4160         `code_offset'.
4161
4162         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4163         (breakup_char_1): Find a charset and code-point in
4164         `Vcharacter_attribute_table'.
4165
4166 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4167
4168         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4169         to 0.10 (Yao).
4170
4171 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4172
4173         * mule-charset.c (Vcharacter_attribute_table): New variable.
4174         (Fchar_attribute_alist): New function.
4175         (Fget_char_attribute): New function.
4176         (Fput_char_attribute): New function.
4177         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4178         too.
4179         (syms_of_mule_charset): Add new function `char-attribute-alist',
4180         `get-char-attribute' and `put-char-attribute'.
4181         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4182
4183 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4184
4185         * mule-charset.c (Fmake_charset): Just use
4186         `get_unallocated_leading_byte'.
4187
4188         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4189         sets; don't use final-byte based number for private sets.
4190
4191 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4192
4193         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4194         integer.
4195
4196 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4197
4198         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4199         to 0.9.
4200
4201 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4202
4203         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4204         of `CHAR_LEADING_BYTE' in UTF-2000.
4205
4206         * insdel.c (find_charsets_in_bufbyte_string): Use
4207         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4208         (find_charsets_in_emchar_string): Likewise.
4209
4210         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4211         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4212
4213         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4214         (CHAR_CHARSET_ID): New macro.
4215
4216 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4217
4218         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4219         charset-id - MIN_LEADING_BYTE.
4220         (put_char_table): Likewise.
4221
4222 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4223
4224         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4225         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4226         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4227         (CHARSET_ID_OFFSET): New macro.
4228         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4229         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4230         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4231         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4232         4).
4233         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4234         5).
4235         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4236         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4237         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4238         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4239         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4240
4241 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4242
4243         * mule-charset.c (next_allocated_leading_byte): New variable in
4244         UTF-2000.
4245         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4246         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4247         (get_unallocated_leading_byte): Simply use
4248         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4249         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4250         UTF-2000.
4251
4252         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4253         (MAX_LEADING_BYTE_PRIVATE): New macro.
4254         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4255         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4256
4257 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4258
4259         * mule-charset.c (Fmake_charset): Allocate final-byte based
4260         charset-id for 94-set, 96-set and 94x94-set.
4261
4262 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4263
4264         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4265         ambiguous `else'.
4266         (Fmake_charset): Likewise.
4267         (complex_vars_of_mule_charset): Modify the font registry of
4268         `ucs-bmp' not to match `Ethiopic-Unicode'.
4269
4270 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4271
4272         * mule-charset.c (complex_vars_of_mule_charset): Add font
4273         registory of `ucs-bmp'.
4274
4275 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4276
4277         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4278         coded-charsets in `default-coded-charset-priority-list' when
4279         breaking up a character.
4280
4281         * mule-charset.c (Vcharset_latin_viscii): New variable.
4282         (Qlatin_viscii): New variable.
4283         (make_charset): Don't use `decoding_table'.
4284         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4285         byte_offset.
4286         (Fset_charset_mapping_table): New implementation.
4287         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4288         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4289         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4290         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4291         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4292         charset `latin_viscii'.
4293
4294         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4295         (CHARSET_TYPE_94X94): Change to 1 from 2.
4296         (CHARSET_TYPE_96): Change to 2 from 1.
4297         (CHARSET_TYPE_128): New macro.
4298         (CHARSET_TYPE_128X128): Change to 5 from 4.
4299         (CHARSET_TYPE_256): New macro.
4300         (CHARSET_TYPE_256X256): Change to 7 from 5.
4301         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4302
4303 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4304
4305         * text-coding.c (char_encode_shift_jis): Refer
4306         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4307         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4308
4309         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4310         (char_byte_table_equal): New function in UTF-2000.
4311         (char_byte_table_hash): New function in UTF-2000.
4312         (char_byte_table_description): New constant in UTF-2000.
4313         (char_byte_table): New type in UTF-2000.
4314         (make_char_byte_table): New function in UTF-2000.
4315         (copy_char_byte_table): New function in UTF-2000.
4316         (make_char_code_table): New macro in UTF-2000.
4317         (get_char_code_table): New function in UTF-2000.
4318         (put_char_code_table): New function in UTF-2000.
4319         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4320         (charset_description): Add setting in UTF-2000.
4321         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4322         `CHARSET_TO_BYTE1_TABLE(cs)'.
4323         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4324         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4325         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4326         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4327         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4328         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4329         `CHARSET_TO_BYTE2_TABLE(cs)'.
4330
4331         * char-ucs.h (char_byte_table): New type.
4332         (XCHAR_BYTE_TABLE): New macro.
4333         (XSETCHAR_BYTE_TABLE): New macro.
4334         (CHAR_BYTE_TABLE_P): New macro.
4335         (GC_CHAR_BYTE_TABLE_P): New macro.
4336         (struct Lisp_Char_Byte_Table): New structure.
4337         (get_char_code_table): New interface.
4338         (Emchar_to_byte_table): Deleted.
4339         (get_byte_from_character_table): Deleted.
4340         (struct Lisp_Charset): Add `encoding_table'; delete
4341         `to_byte1_table' and `to_byte2_table'.
4342         (CHARSET_ENCODING_TABLE): New macro.
4343         (CHARSET_TO_BYTE1_TABLE): Deleted.
4344         (CHARSET_TO_BYTE2_TABLE): Deleted.
4345         (XCHARSET_ENCODING_TABLE): New macro.
4346         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4347         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4348
4349 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4350
4351         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4352         `vietnamese-viscii-*'.
4353
4354 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4355
4356         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4357         (Qvietnamese_viscii_upper): New variable.
4358         (Fdefine_charset_alias): New function.
4359         (syms_of_mule_charset): Add new function `define-charset-alias'.
4360         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4361         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4362         `latin-viscii-*'.
4363
4364 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4365
4366         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4367         (MAX_CHAR_OBS_94x94): New macro.
4368         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4369         for 94x94 sets.
4370
4371         * mule-charset.c (put_byte_from_character_table): Change unit size
4372         from 128 to 256.
4373         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4374         not defined.
4375         (Fmake_reverse_direction_charset): Modify dummy argument of
4376         `make_charset' for non-UTF-2000 environment.
4377
4378 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4379
4380         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4381
4382         * mule-charset.c (destroy_byte_from_character_table): New macro.
4383         (latin_jisx0201_to_ucs): Deleted.
4384         (latin_iso8859_2_to_ucs): Deleted.
4385         (latin_iso8859_3_to_ucs): Deleted.
4386         (latin_iso8859_4_to_ucs): Deleted.
4387         (latin_iso8859_9_to_ucs): Deleted.
4388         (latin_viscii_lower_to_ucs): Deleted.
4389         (latin_viscii_upper_to_ucs): Deleted.
4390         (mark_charset): Mark `cs->decoding_table'.
4391         (Fcharset_mapping_table): Fix DOC-string.
4392         (Fset_charset_mapping_table): New function.
4393         (syms_of_mule_charset): Add nwe function
4394         `set-charset-mapping-table'.
4395         (complex_vars_of_mule_charset): Don't setup and use
4396         `latin_*_to_ucs'.
4397
4398 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4399
4400         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4401         charset.
4402
4403 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4404
4405         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4406         (Vcharset_katakana_jisx0208): New variable.
4407         (Qhiragana_jisx0208): New variable.
4408         (Qkatakana_jisx0208): New variable.
4409         (make_charset): Add new argument `byte_offset'.
4410         (charset_get_byte1): Modify for new coded-charset definition; use
4411         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4412         `XCHARSET_BYTE_OFFSET'.
4413         (Fmake_charset): Modify for `make_charset'.
4414         (Fmake_reverse_direction_charset): Likewise.
4415         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4416         `katakana-jisx0208'.
4417         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4418         `.'  in font registry of charset `katakana-jisx0201',
4419         `latin-jisx0201', `vietnamese-viscii-lower' and
4420         `vietnamese-viscii-upper'; modify DOC-string of charset
4421         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4422         registry of charset `japanese-jisx0208' not to use font for JIS
4423         X0208:1990; add new charset `hiragana-jisx0208' and
4424         `katakana-jisx0208'.
4425
4426         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4427         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4428         (struct Lisp_Charset): Add `byte_offset'.
4429         (CHARSET_BYTE_OFFSET): New macro.
4430         (XCHARSET_UCS_MIN): New macro.
4431         (XCHARSET_UCS_MAX): New macro.
4432         (XCHARSET_CODE_OFFSET): New macro.
4433         (XCHARSET_BYTE_OFFSET): New macro.
4434         (MIN_CHAR_HIRAGANA): New macro.
4435         (MAX_CHAR_HIRAGANA): New macro.
4436         (MIN_CHAR_KATAKANA): New macro.
4437         (MAX_CHAR_KATAKANA): New macro.
4438         (MAKE_CHAR): Modify for new coded-charset definition; use
4439         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4440         `XCHARSET_BYTE_OFFSET'.
4441
4442 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4443
4444         * mule-charset.c (CHAR96): Deleted.
4445         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4446         <Lisp_Object>.
4447         (latin_iso8859_2_to_ucs): Likewise.
4448         (latin_iso8859_3_to_ucs): Likewise.
4449         (latin_iso8859_4_to_ucs): Likewise.
4450         (latin_iso8859_9_to_ucs): Likewise.
4451         (latin_viscii_lower_to_ucs): Likewise.
4452         (latin_viscii_upper_to_ucs): Likewise.
4453         (latin_tcvn5712_to_ucs): Commented out.
4454         (make_charset): Change type of argument `decoding_table' from
4455         <Emchar*> to <Lisp_Object> [vector of characters].
4456         (Fmake_charset): Modify for `make_charset'.
4457         (Fmake_reverse_direction_charset): Likewise.
4458         (Fcharset_mapping_table): New function in UTF-2000.
4459         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4460         UTF-2000.
4461         (complex_vars_of_mule_charset): Modify for type change of
4462         `*_to_ucs'; modify for `make_charset'.
4463
4464         * char-ucs.h (struct Lisp_Charset): Change type of
4465         `decoding_table' from <Emchar*> to <Lisp_Object>.
4466         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4467
4468 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4469
4470         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4471         error with non-UTF-2000-Mule.
4472
4473 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4474
4475         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4476         in lisp again].
4477         (Vcharset_chinese_cns11643_4): Likewise.
4478         (Vcharset_chinese_cns11643_5): Likewise.
4479         (Vcharset_chinese_cns11643_6): Likewise.
4480         (Vcharset_chinese_cns11643_7): Likewise.
4481         (Qchinese_cns11643_3): Likewise.
4482         (Qchinese_cns11643_4): Likewise.
4483         (Qchinese_cns11643_5): Likewise.
4484         (Qchinese_cns11643_6): Likewise.
4485         (Qchinese_cns11643_7): Likewise.
4486         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4487         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4488         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4489         (complex_vars_of_mule_charset): Likewise.
4490
4491 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4492
4493         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4494         96-set.
4495         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4496         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4497
4498 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4499
4500         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4501         0xFF60.
4502         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4503         (breakup_char_1): Likewise.
4504
4505         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4506         one of them includes the specified character.
4507
4508 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4509
4510         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4511
4512 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4513
4514         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4515
4516 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4517
4518         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4519         definition for non-UTF-2000 Mule.
4520         (latin_iso8859_3_to_ucs): Likewise.
4521         (latin_iso8859_4_to_ucs): Likewise.
4522         (latin_iso8859_9_to_ucs): Likewise.
4523         (latin_jisx0201_to_ucs): Likewise.
4524         (MIN_CHAR_THAI): Likewise.
4525         (MAX_CHAR_THAI): Likewise.
4526         (MIN_CHAR_GREEK): Likewise.
4527         (MAX_CHAR_GREEK): Likewise.
4528         (MIN_CHAR_HEBREW): Likewise.
4529         (MAX_CHAR_HEBREW): Likewise.
4530         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4531         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4532         (MIN_CHAR_CYRILLIC): Likewise.
4533         (MAX_CHAR_CYRILLIC): Likewise.
4534
4535 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4536
4537         * char-ucs.h (breakup_char_1): Use
4538         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4539         thai-tis620 and katakana-jisx0201 area.
4540
4541 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4542
4543         * char-ucs.h (breakup_char_1): Use
4544         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4545         area.
4546
4547         * text-coding.c (reset_encoding_stream): Fixed.
4548         (char_encode_ucs4): Delete `& 255'.
4549
4550         * char-ucs.h (breakup_char_1): Use
4551         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4552
4553 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4554
4555         * file-coding.c (Fmake_coding_system): Don't set up
4556         `codesys->fixed.size'.
4557         (encode_coding_no_conversion): Don't refer
4558         `str->codesys->fixed.size'.
4559
4560 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4561
4562         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4563         (latin_a_char_to_byte1): Deleted.
4564         (latin_a_char_to_byte2): Deleted.
4565
4566 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4567
4568         * mule-charset.c (make_charset): Add new argument `ucs_min',
4569         `ucs_max' and `code_offset'.
4570         (charset_get_byte1): New implementation [delete specific charset
4571         depended implementations].
4572         (Fmake_charset): Modify for `make_charset'.
4573         (Fmake_reverse_direction_charset): Likewise.
4574         (complex_vars_of_mule_charset): Likewise.
4575
4576         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4577         `code_offset'.
4578         (CHARSET_UCS_MIN): New macro.
4579         (CHARSET_UCS_MAX): New macro.
4580         (CHARSET_CODE_OFFSET): New macro.
4581         (MAKE_CHAR): Delete charset depended definitions [except
4582         katakana-jisx0201].
4583
4584 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4585
4586         * char-ucs.h (breakup_char_1): Use
4587         `Vdefault_coded_charset_priority_list' for C0-Controls,
4588         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4589
4590 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4591
4592         * char-ucs.h (charset_get_byte1): New function.
4593         (XCHARSET_GET_BYTE1): Deleted.
4594         (charset_get_byte2): New function.
4595         (XCHARSET_GET_BYTE2): Deleted.
4596         (Vdefault_coded_charset_priority_list): New external variable.
4597         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4598         `Vdefault_preferred_coded_charset_list'.
4599
4600         * mule-charset.c (charset_get_byte1): New function.
4601         (charset_get_byte2): New function.
4602         (Vdefault_coded_charset_priority_list): New variable.
4603         (vars_of_mule_charset): Add new variable
4604         `default-coded-charset-priority-list'.
4605
4606 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4607
4608         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4609         (XCHARSET_GET_BYTE2): New inline function.
4610         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4611         `XCHARSET_GET_BYTE2'.
4612
4613 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4614
4615         * mule-charset.c (make_charset): Initialize
4616         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4617         NULL if table is not defined.
4618
4619 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4620
4621         * text-coding.c (char_encode_shift_jis): Use
4622         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4623         `ucs_to_latin_jisx0201'.
4624
4625         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4626         (ucs_to_latin_iso8859_2): Deleted.
4627         (ucs_to_latin_iso8859_3): Deleted.
4628         (ucs_to_latin_iso8859_4): Deleted.
4629         (ucs_to_latin_iso8859_9): Deleted.
4630         (ucs_to_latin_viscii_lower): Deleted.
4631         (ucs_to_latin_viscii_upper): Deleted.
4632         (ucs_to_latin_tcvn5712): Deleted.
4633         (make_charset): Add new argument `decoding_table'; set up
4634         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4635         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4636         `decoding_table' is defined in UTF-2000.
4637         (Fmake_charset): Modify for `make_charset'.
4638         (Fmake_reverse_direction_charset): Likewise.
4639         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4640         and `GENERATE_96_SET'.
4641
4642         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4643         (ucs_to_latin_jisx0201): Deleted.
4644         (latin_iso8859_2_to_ucs): Deleted.
4645         (ucs_to_latin_iso8859_2): Deleted.
4646         (latin_iso8859_3_to_ucs): Deleted.
4647         (ucs_to_latin_iso8859_3): Deleted.
4648         (latin_iso8859_4_to_ucs): Deleted.
4649         (ucs_to_latin_iso8859_4): Deleted.
4650         (latin_iso8859_9_to_ucs): Deleted.
4651         (ucs_to_latin_iso8859_9): Deleted.
4652         (latin_viscii_lower_to_ucs): Deleted.
4653         (ucs_to_latin_viscii_lower): Deleted.
4654         (latin_viscii_upper_to_ucs): Deleted.
4655         (ucs_to_latin_viscii_upper): Deleted.
4656         (struct Lisp_Charset): Renamed `encoding_table' to
4657         `to_byte1_table'; add `to_byte2_table'.
4658         (CHARSET_DECODING_TABLE): New macro.
4659         (CHARSET_TO_BYTE1_TABLE): New macro.
4660         (CHARSET_TO_BYTE2_TABLE): New macro.
4661         (XCHARSET_DECODING_TABLE): New macro.
4662         (XCHARSET_TO_BYTE1_TABLE): New macro.
4663         (XCHARSET_TO_BYTE2_TABLE): New macro.
4664         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4665         tables.
4666         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4667         don't use `ucs_to_*' tables.
4668
4669 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4670
4671         * text-coding.c (Fmake_coding_system): Don't set up
4672         `codesys->fixed.size'.
4673         (encode_coding_no_conversion): Use `if' instead of `switch'.
4674
4675         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4676
4677 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4678
4679         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4680         (Fmake_charset): Modify for `make_charset'.
4681         (Fmake_reverse_direction_charset): Likewise.
4682         (complex_vars_of_mule_charset): Likewise.
4683
4684 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4685
4686         * text-coding.c (char_encode_shift_jis): Use table
4687         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4688
4689 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4690
4691         * text-coding.c (text_encode_generic): Use `if' instead of
4692         `switch'.
4693         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4694         decode JIS-Latin.
4695
4696 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4697
4698         * text-coding.c (encode_coding_sjis): Deleted.
4699         (char_encode_shift_jis): New function.
4700         (char_finish_shift_jis): New function.
4701         (reset_encoding_stream): Set up `encode_char' and `finish' for
4702         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4703         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4704         (char_encode_utf8): Treat `eol_type'.
4705
4706 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4707
4708         * file-coding.c (decode_coding_iso2022): Use
4709         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4710
4711 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4712
4713         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4714         to 0.7 (Hirano).
4715
4716 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4717
4718         * char-lb.h (CHAR_COLUMNS): New macro.
4719
4720 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4721
4722         * text-coding.c (char_encode_ucs4): New function.
4723         (char_finish_ucs4): New function.
4724         (encode_coding_ucs4): Deleted.
4725         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4726         (text_encode_generic): Delete local variable `charset' and `half'.
4727         (ucs_to_mule_table): Deleted.
4728         (mule_to_ucs_table): Deleted.
4729         (Fset_ucs_char): Deleted.
4730         (ucs_to_char): Deleted.
4731         (Fucs_char): Deleted.
4732         (Fset_char_ucs): Deleted.
4733         (Fchar_ucs): Deleted.
4734         (decode_ucs4): Deleted.
4735         (mule_char_to_ucs4): Deleted.
4736         (encode_ucs4): Deleted.
4737         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4738         (decode_coding_utf8): Likewise.
4739         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4740         (char_encode_iso2022): Fixed.
4741         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4742         `Fset_char_ucs' and `Fchar_ucs'.
4743         (complex_vars_of_file_coding): Don't initialize
4744         `ucs_to_mule_table'.
4745
4746         * objects-tty.c (tty_initialize_font_instance): Don't use
4747         `XCHARSET_COLUMNS'.
4748
4749         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4750         UTF-2000.
4751
4752         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4753         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4754
4755         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4756         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4757         (emchar_string_displayed_columns): Likewise.
4758
4759         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4760         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4761         (string_column_at_point): Likewise.
4762         (Fmove_to_column): Likewise.
4763
4764         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4765         `encoding_table' and `decoding_table'.
4766         (CHARSET_REP_BYTES): Deleted.
4767         (XCHARSET_REP_BYTES): Deleted.
4768         (XCHARSET_COLUMNS): Deleted.
4769         (CHAR_COLUMNS): New macro.
4770         (lookup_composite_char): Deleted unconditionally.
4771         (composite_char_string): Likewise.
4772
4773 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4774
4775         * char-ucs.h (Emchar_to_byte_table): New type.
4776         (get_byte_from_character_table): New function interface.
4777         (Vcharset_latin_jisx0201): New variable.
4778         (latin_jisx0201_to_ucs): New variable.
4779         (ucs_to_latin_jisx0201): New variable.
4780         (Vcharset_latin_iso8859_2): New variable.
4781         (latin_iso8859_2_to_ucs): New variable.
4782         (ucs_to_latin_iso8859_2): New variable.
4783         (Vcharset_latin_iso8859_3): New variable.
4784         (latin_iso8859_3_to_ucs): New variable.
4785         (ucs_to_latin_iso8859_3): New variable.
4786         (Vcharset_latin_iso8859_4): New variable.
4787         (latin_iso8859_4_to_ucs): New variable.
4788         (ucs_to_latin_iso8859_4): New variable.
4789         (Vcharset_latin_iso8859_9): New variable.
4790         (latin_iso8859_9_to_ucs): New variable.
4791         (ucs_to_latin_iso8859_9): New variable.
4792         (Vcharset_latin_viscii_lower): New variable.
4793         (latin_viscii_lower_to_ucs): New variable.
4794         (ucs_to_latin_viscii_lower): New variable.
4795         (Vcharset_latin_viscii_upper): New variable.
4796         (latin_viscii_upper_to_ucs): New variable.
4797         (ucs_to_latin_viscii_upper): New variable.
4798         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4799         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4800         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4801         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4802         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4803         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4804         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4805         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4806         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4807         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4808
4809         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4810         (Vcharset_latin_viscii_upper): New variable.
4811         (make_byte_from_character_table): New function.
4812         (put_byte_from_character_table): New function.
4813         (get_byte_from_character_table): New function.
4814         (CHAR96): New macro.
4815         (ucs_to_latin_jisx0201): New variable.
4816         (latin_jisx0201_to_ucs): New variable.
4817         (ucs_to_latin_iso8859_2): New variable.
4818         (latin_iso8859_2_to_ucs): New variable.
4819         (ucs_to_latin_iso8859_3): New variable.
4820         (latin_iso8859_3_to_ucs): New variable.
4821         (ucs_to_latin_iso8859_4): New variable.
4822         (latin_iso8859_4_to_ucs): New variable.
4823         (ucs_to_latin_iso8859_9): New variable.
4824         (latin_iso8859_9_to_ucs): New variable.
4825         (ucs_to_latin_viscii_lower): New variable.
4826         (latin_viscii_lower_to_ucs): New variable.
4827         (ucs_to_latin_viscii_upper): New variable.
4828         (latin_viscii_upper_to_ucs): New variable.
4829         (ucs_to_latin_tcvn5712): New variable.
4830         (latin_tcvn5712_to_ucs): New variable.
4831         (Qlatin_viscii_lower): New variable.
4832         (Qlatin_viscii_upper): New variable.
4833         (syms_of_mule_charset): Set up new symbol
4834         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4835         (complex_vars_of_mule_charset): Set up new charset
4836         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4837         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4838         `ucs_to_<CHARSET>' tables.
4839
4840 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4841
4842         * text-coding.c: New file.
4843
4844 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4845
4846         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4847
4848         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4849         (MAKE_CHAR): Modify for `ucs-bmp'.
4850         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4851         non-MULE characters of BMP.
4852
4853 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4854
4855         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4856         to 0.6.
4857
4858 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4859
4860         * lstream.h:
4861         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4862         - Include character.h for `CHAR_ASCII_P'.
4863
4864         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4865
4866         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4867         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4868
4869         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4870         (BYTE_C0_P): Likewise.
4871         (BYTE_C1_P): Likewise.
4872         (Lstream_get_emchar_1): Likewise.
4873         (Lstream_fput_emchar): Likewise.
4874         (Lstream_funget_emchar): Likewise.
4875         (copy_internal_to_external): Likewise.
4876         (copy_external_to_internal): Likewise.
4877
4878         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4879         (BYTE_C0_P): Likewise.
4880         (BYTE_C1_P): Likewise.
4881         (Lstream_get_emchar_1): Likewise.
4882         (Lstream_fput_emchar): Likewise.
4883         (Lstream_funget_emchar): Likewise.
4884         (copy_internal_to_external): Likewise.
4885         (copy_external_to_internal): Likewise.
4886
4887         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4888         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4889
4890         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4891         (BYTE_ASCII_P): Moved to mb-1byte.h.
4892
4893 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4894
4895         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4896
4897         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4898         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4899         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4900         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4901         (VALIDATE_CHARPTR_FORWARD): Likewise.
4902         (simple_charptr_emchar): Moved to mb-multibyte.h.
4903         (simple_set_charptr_emchar): Likewise.
4904         (simple_charptr_copy_char): Likewise.
4905         (non_ascii_charptr_emchar): Likewise.
4906         (non_ascii_set_charptr_emchar): Likewise.
4907         (non_ascii_charptr_copy_char): Likewise.
4908         (charptr_emchar): Moved to mb-*byte.h.
4909         (set_charptr_emchar): Likewise.
4910         (charptr_copy_char): Likewise.
4911
4912         * mb-1byte.h, mb-multibyte.h: New files.
4913
4914 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4915
4916         * mb-utf-8.h (MULTIBYTE): New macro.
4917         (MAX_EMCHAR_LEN): Moved from buffer.h.
4918         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4919
4920         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4921
4922         * mb-lb.h, multibyte.h: New files.
4923
4924         * char-1byte.h (Charset_ID): Moved from buffer.h.
4925         (MIN_LEADING_BYTE): Likewise.
4926         (LEADING_BYTE_ASCII): Likewise.
4927         (NUM_LEADING_BYTES): Likewise.
4928         (CHARSETP): Likewise.
4929         (CHARSET_BY_LEADING_BYTE): Likewise.
4930         (XCHARSET_LEADING_BYTE): Likewise.
4931         (XCHARSET_GRAPHIC): Likewise.
4932         (XCHARSET_COLUMNS): Likewise.
4933         (XCHARSET_DIMENSION): Likewise.
4934         (CHAR_CHARSET): Likewise.
4935         (CHAR_LEADING_BYTE): Likewise.
4936         (BREAKUP_CHAR): Likewise.
4937         (Vcharset_ascii): Likewise.
4938
4939         * buffer.h: Include multibyte.h unconditionally.
4940         (VALID_CHARPTR_P): Moved to multibyte.h.
4941         (ASSERT_VALID_CHARPTR): Likewise.
4942         (REAL_INC_CHARPTR): Likewise.
4943         (REAL_INC_CHARBYTIND): Likewise.
4944         (REAL_DEC_CHARPTR): Likewise.
4945         (INC_CHARPTR): Likewise.
4946         (INC_CHARBYTIND): Likewise.
4947         (DEC_CHARPTR): Likewise.
4948         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4949         (VALIDATE_CHARPTR_FORWARD): Likewise.
4950         (charptr_n_addr): Likewise.
4951         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4952         (simple_charptr_emchar): Moved to multibyte.h.
4953         (simple_set_charptr_emchar): Likewise.
4954         (simple_charptr_copy_char): Likewise.
4955         (non_ascii_charptr_emchar): Likewise.
4956         (non_ascii_set_charptr_emchar): Likewise.
4957         (non_ascii_charptr_copy_char): Likewise.
4958         (charptr_emchar): Likewise.
4959         (set_charptr_emchar): Likewise.
4960         (charptr_copy_char): Likewise.
4961         (charptr_emchar_n): Likewise.
4962         (Charset_ID): Moved to char-1byte.h.
4963         (Vcharset_ascii): Likewise.
4964         (CHAR_CHARSET): Likewise.
4965         (CHAR_LEADING_BYTE): Likewise.
4966         (LEADING_BYTE_ASCII): Likewise.
4967         (NUM_LEADING_BYTES): Likewise.
4968         (MIN_LEADING_BYTE): Likewise.
4969         (CHARSETP): Likewise.
4970         (CHARSET_BY_LEADING_BYTE): Likewise.
4971         (XCHARSET_LEADING_BYTE): Likewise.
4972         (XCHARSET_GRAPHIC): Likewise.
4973         (XCHARSET_COLUMNS): Likewise.
4974         (XCHARSET_DIMENSION): Likewise.
4975         (BREAKUP_CHAR): Likewise.
4976
4977 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4978
4979         * character.h: Add document about interface for characters.
4980
4981         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4982         (MAKE_CHAR): Delete comment about
4983         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4984         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4985         (BREAKUP_CHAR): Modify name of arguments.
4986         (CHAR_CHARSET): Modify name of argument.
4987
4988         * buffer.h: Delete document about Emchar accessors.
4989
4990 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4991
4992         * character.h (CHAR_INTP): Moved from buffer.h
4993         (CHAR_OR_CHAR_INTP): Likewise.
4994         (XCHAR_OR_CHAR_INT): Likewise.
4995         (CHECK_CHAR_COERCE_INT): Likewise.
4996
4997         * buffer.h (CHAR_INTP): Moved to character.h
4998         (CHAR_OR_CHAR_INTP): Likewise.
4999         (XCHAR_OR_CHAR_INT): Likewise.
5000         (CHECK_CHAR_COERCE_INT): Likewise.
5001
5002 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5003
5004         * character.h:
5005         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5006         - Include char-1byte.h, char-lb.h or char-ucs.h.
5007
5008         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5009
5010         * buffer.h: Include character unconditionally.
5011         (valid_char_p): Moved to char-*.h.
5012         (non_ascii_valid_char_p): Moved to char-lb.h.
5013
5014         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5015
5016 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5017
5018         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5019         in UTF-2000 because it is not ported yet and not to use
5020         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5021         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5022         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5023
5024         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5025         (CHAR_ASCII_P): Moved from character.h.
5026
5027         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5028         (CHAR_ASCII_P): Likewise.
5029         (CHAR_FIELD1_MASK): Deleted.
5030         (CHAR_FIELD2_MASK): Deleted.
5031         (CHAR_FIELD3_MASK): Deleted.
5032         (MAX_CHAR_BASIC_LATIN): New macro.
5033         (CHAR_FIELD1): Deleted.
5034         (CHAR_FIELD2_INTERNAL): Deleted.
5035         (CHAR_FIELD3_INTERNAL): Deleted.
5036         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5037         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5038         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5039         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5040         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5041         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5042         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5043         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5044         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5045         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5046         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5047         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5048         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5049         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5050         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5051         (MIN_CHAR_COMPOSITION): Deleted.
5052         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5053         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5054
5055 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5056
5057         * buffer.h: Include mb-utf-8.h in UTF-2000.
5058
5059         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5060
5061         * mb-utf-8.h: New file.
5062
5063 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5064
5065         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5066         instead of `int'.
5067
5068         * mule-charset.h, buffer.h (Charset_ID): New type.
5069
5070 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5071
5072         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5073         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5074         instead of `MULE_CHAR_PRIVATE_OFFSET',
5075         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5076         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5077         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5078
5079         * character.h (Vcharset_japanese_jisx0212): New variable
5080         definition.
5081
5082 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5083
5084         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5085         (charset_by_attributes): Delete array about direction.
5086         (latin_a_char_to_charset): New variable in UTF-2000.
5087         (latin_a_char_to_byte1): New variable in UTF-2000.
5088         (latin_a_char_to_byte2): New variable in UTF-2000.
5089         (Qucs_bmp): New variable.
5090         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5091         `Bufbyte'.
5092         (next_allocated_2_byte_leading_byte): Likewise.
5093         (non_ascii_set_charptr_emchar): Likewise.
5094         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5095         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5096         `charset_by_attributes'.
5097         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5098         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5099         and `CHARSET_BY_LEADING_BYTE'.
5100         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5101         `utf-2000-version' to `vars_of_mule_charset'.
5102         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5103         define `leading-code-private-11' in UTF-2000; move setting of
5104         `utf-2000-version' from `syms_of_mule_charset'.
5105         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5106         UTF-2000.
5107
5108         * character.h (Charset_ID): New type.
5109         (LEADING_BYTE_UCS_BMP): New macro.
5110         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5111         (CHARSET_ID_OFFSET_94): New macro.
5112         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5113         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5114         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5115         final-byte.
5116         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5117         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5118         (CHARSET_ID_OFFSET_96): New macro.
5119         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5120         CHARSET_ID_OFFSET_96 and final-byte.
5121         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5122         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5123         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5124         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5125         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5126         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5127         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5128         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5129         (LEADING_BYTE_THAI_TIS620): Likewise.
5130         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5131         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5132         (CHARSET_ID_OFFSET_94x94): New macro.
5133         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5134         CHARSET_ID_OFFSET_94x94 and final-byte.
5135         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5136         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5137         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5138         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5139         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5140         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5141         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5142         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5143         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5144         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5145         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5146         (CHARSET_TYPE_128X128): New macro.
5147         (CHARSET_TYPE_256X256): New macro.
5148         (XCHARSET_PRIVATE_P): Delete unconditionally.
5149         (charset_by_attributes): Delete array about direction.
5150         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5151         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5152         (MIN_CHAR_94): New macro.
5153         (MAX_CHAR_94): New macro.
5154         (MIN_CHAR_96): New macro.
5155         (MAX_CHAR_96): New macro.
5156         (MIN_CHAR_94x94): New macro.
5157         (MAX_CHAR_94x94): New macro.
5158         (MIN_CHAR_96x96): New macro.
5159         (MAX_CHAR_96x96): New macro.
5160         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5161         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5162         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5163         - 32)'.
5164         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5165         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5166         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5167         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5168         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5169         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5170         `XCHARSET_LEADING_BYTE' to make code-point.
5171         (latin_a_char_to_charset): New variable.
5172         (latin_a_char_to_byte1): New variable.
5173         (latin_a_char_to_byte2): New variable.
5174         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5175         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5176         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5177
5178         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5179         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5180         (find_charsets_in_emchar_string): Likewise.
5181         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5182
5183         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5184         `int'.
5185         (decode_coding_iso2022): Likewise.
5186
5187         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5188         of `unsigned char'.
5189
5190         * redisplay.c (redisplay_text_width_emchar_string): Use
5191         `Charset_ID' instead of `unsigned char'.
5192         (redisplay_frame_text_width_string): Likewise.
5193
5194         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5195         `unsigned char'.
5196
5197         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5198         instead of `unsigned char'.
5199         (face_cachel_charset_font_metric_info): Likewise.
5200
5201         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5202         (get_non_ascii_char_table_value): Likewise.
5203         (get_char_table): Likewise.
5204         (put_char_table): Likewise.
5205         (map_over_other_charset): Likewise.
5206         (map_char_table): Likewise.
5207
5208         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5209         instead of `unsigned char'.
5210
5211 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5212
5213         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5214         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5215
5216         * mule-charset.c (leading_code_private_11): Don't define in
5217         UTF-2000.
5218
5219         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5220         in UTF-2000 because it is not ported yet and not to use
5221         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5222
5223 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5224
5225         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5226
5227 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5228
5229         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5230         in UTF-2000.
5231
5232         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5233         of unsigned char to store leading-byte.
5234
5235         * chartab.c (get_non_ascii_char_table_value): Don't use
5236         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5237
5238         * file-coding.c (encode_coding_big5): Delete bogus implementation
5239         in UTF2000.
5240
5241         * character.h (LEADING_BYTE_*): Delete definition for
5242         non-UTF-2000.
5243         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5244         (LEADING_BYTE_PREFIX_P): Deleted.
5245         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5246         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5247         (BUFBYTE_LEADING_BYTE_P): Deleted.
5248         (CHARSET_PRIVATE_P): Deleted unconditionally.
5249         (rep_bytes_by_first_byte): Deleted unconditionally.
5250         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5251         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5252         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5253         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5254         (CHAR_FIELD2): Deleted.
5255         (CHAR_FIELD3): Deleted.
5256         (MAKE_CHAR): Delete definition for non-UTF-2000.
5257         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5258         (breakup_char_1): New implementation.
5259         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5260         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5261
5262 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5263
5264         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5265         condition.
5266
5267 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5268
5269         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5270         (CHARSET_PRIVATE_P): Likewise.
5271         (XCHARSET_PRIVATE_P): Likewise.
5272         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5273
5274         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5275         UTF2000.
5276         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5277
5278 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5279
5280         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5281         (NUM_LEADING_BYTES): Changed from 128 to 256.
5282         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5283         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5284         UTF2000.
5285         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5286
5287         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5288         UTF2000.
5289         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5290         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5291         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5292         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5293         (Qchinese_cns11643_3): New variable in UTF2000.
5294         (Qchinese_cns11643_4): New variable in UTF2000.
5295         (Qchinese_cns11643_5): New variable in UTF2000.
5296         (Qchinese_cns11643_6): New variable in UTF2000.
5297         (Qchinese_cns11643_7): New variable in UTF2000.
5298         (syms_of_mule_charset): Define `chinese-cns11643-3',
5299         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5300         and `chinese-cns11643-7' in UTF2000.
5301         (vars_of_mule_charset): Initialize
5302         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5303         + 1 in UTF2000.
5304         (complex_vars_of_mule_charset): Setup charset
5305         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5306         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5307
5308 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5309
5310         * mule-charset.c: Move setting for `leading-code-private-11' from
5311         `syms_of_mule_charset' to `vars_of_mule_charset'.
5312
5313 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5314
5315         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5316         and `NUM_LEADING_BYTES' in assert.
5317
5318 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5319
5320         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5321         instead of 128.
5322         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5323         `NUM_LEADING_BYTES' instead of 128.
5324
5325 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5326
5327         * mule-charset.h (charset_by_leading_byte): Use
5328         `NUM_LEADING_BYTES' instead of 128.
5329         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5330
5331         * mule-charset.c (charset_by_leading_byte): Use
5332         `NUM_LEADING_BYTES' instead of 128.
5333         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5334
5335         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5336         128.
5337
5338 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5339
5340         * mule-charset.c (syms_of_mule_charset): Update to
5341         0.4 (Shin-Imamiya).
5342
5343 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5344
5345         * file-coding.c (encode_coding_sjis): New implementation for
5346         UTF2000.  (decode_coding_sjis): Ditto.
5347
5348 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5349
5350         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5351         Don't define in UTF2000.
5352
5353         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5354         defined.
5355
5356         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5357         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5358         MULE.
5359
5360 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5361
5362         * config.h.in (CHAR_IS_UCS4): New macro.
5363
5364         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5365         conventional MULE representation.
5366         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5367
5368         * mule-charset.h: Reverted to original.
5369
5370         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5371         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5372         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5373
5374         * character.h: New file.
5375
5376         * file-coding.c (Fmake_coding_system): Set 1 to
5377         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5378         defined.
5379         (encode_coding_no_conversion): New implementation for UTF2000.
5380
5381         * file-coding.h (struct Lisp_Coding_System): Add new member
5382         `fixed.size'.
5383
5384 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5385
5386         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5387         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5388         (encode_coding_iso2022): New implementation for UTF2000.
5389
5390 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5391
5392         * mule-canna.c (c2mu): New implementation for UTF2000.
5393         (m2c): Likewise.
5394
5395 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5396
5397         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5398
5399 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5400
5401         * file-coding.c (reset_encoding_stream): Set 0 to
5402         `str->iso2022.current_char_boundary' in UTF2000.
5403         (encode_utf8): Don't define in UTF2000.
5404         (encode_coding_utf8): New implementation for UTF-8 representation
5405         of UTF2000.
5406         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5407
5408 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5409
5410         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5411
5412         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5413         UTF2000.
5414         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5415
5416         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5417
5418         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5419         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5420         as UTF-8 in UTF2000.
5421         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5422         (non_ascii_valid_char_p): Don't define in UTF2000.
5423         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5424         (Lstream_get_emchar_1): Likewise.
5425         (utf-2000-version): New variable in UTF2000.
5426
5427         * lread.c (read_escape): Add new reader `u'.
5428
5429         * insdel.c (three_to_one_table): Don't define in UTF2000.
5430         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5431         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5432         UTF2000.
5433         (bytind_to_bufpos_func): Likewise.
5434         (buffer_mule_signal_inserted_region): Likewise.
5435         (vars_of_insdel): Don't initialize `three_to_one_table'.
5436         (init_buffer_text): Use `buf->text->mule_size' instead of
5437         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5438         UTF2000.
5439
5440         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5441         UTF-8 representation in UTF2000.
5442         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5443         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5444         (decode_coding_iso2022): Don't define local variable `lb' in
5445         UTF2000; don't use LEADING_BYTE in UTF2000; use
5446         `DECODE_ADD_UCS_CHAR' in UTF2000.
5447         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5448
5449         * config.h.in (UTF2000): New macro.
5450
5451         * buffer.h (struct buffer_text): Add new member `mule_size' and
5452         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5453         (valid_char_p): Return always 1 in UTF2000.
5454         (MAX_EMCHAR_LEN): 6 in UTF2000.
5455         (three_to_one_table): Don't define in UTF2000.
5456         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5457         UTF2000.
5458         (real_bytind_to_bufpos): Likewise.
5459
5460         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5461
5462 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5463
5464         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5465         representation change.
5466         (Vutf_2000_version): New variable.
5467         (leading_code_private_11): New variable.
5468         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5469         `leading-code-private-11'.
5470
5471         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5472         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5473         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5474         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5475         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5476         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5477         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5478         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5479         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5480         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5481         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5482         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5483         (MIN_CHAR_GREEK): New macro.
5484         (MAX_CHAR_GREEK): New macro.
5485         (MIN_CHAR_CYRILLIC): New macro.
5486         (MAX_CHAR_CYRILLIC): New macro.
5487         (MIN_CHAR_HEBREW): New macro.
5488         (MAX_CHAR_HEBREW): New macro.
5489         (MIN_CHAR_THAI): New macro.
5490         (MAX_CHAR_THAI): New macro.
5491         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5492         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5493         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5494         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5495         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5496         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5497         (CHAR_FIELD2): New inline function.
5498         (CHAR_FIELD3): New inline function.
5499         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5500         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5501         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5502         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5503         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5504         (MIN_CHAR_COMPOSITION): Likewise.
5505         (CHAR_LEADING_BYTE): Modified for character representation change.
5506         (MAKE_CHAR): Likewise.
5507
5508         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5509         (Vcharset_greek_iso8859_7): Likewise.
5510         (Vcharset_cyrillic_iso8859_5): Likewise.
5511         (Vcharset_hebrew_iso8859_8): Likewise.
5512         (Vcharset_thai_tis620): Likewise.
5513         (Vcharset_katakana_jisx0201): Likewise.
5514
5515 2004-02-02  Vin Shelton <acs@xemacs.org>
5516
5517         * XEmacs 21.4.15 is released
5518
5519 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5520
5521         * device-x.c (x_error_handler): Don't call stderr_out
5522
5523 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5524
5525         * buffer.c (other-buffer): Clarify documentation of order of
5526         arguments for FSF Emacs.
5527
5528 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5529
5530         * window.c (Fdelete_window): Dirty the mirror structure _before_
5531         marking the window deleted.
5532
5533 2003-09-15  Jerry James  <james@xemacs.org>
5534
5535         * event-msw.c (debug_mswin_messages): Conditionally compile
5536         messages missing from the Cygwin headers.
5537
5538 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5539
5540         * data.c (eq_with_ebola_notice): Fix typo in comment.
5541         (Ftrue_list_p): Improve docstring.
5542
5543 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5544
5545         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5546
5547 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5548
5549         * search.c (trivial_regexp_p): Regexps containing "\{" are
5550         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5551         Stefan Monnier for suggesting a diagnosis.
5552
5553 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5554
5555         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5556
5557 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5558
5559         * search.c (Fsearch_forward):
5560         (Fsearch_backward):
5561         Document negative count.
5562
5563 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5564
5565         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5566
5567 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5568
5569         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5570
5571 2003-09-15  Vin Shelton  <acs@xemacs.org>
5572
5573         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5574         21.5.
5575
5576 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5577
5578         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5579         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5580         (re_match_2_internal): Use TRANSLATE instead of
5581         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5582         non-ASCII char case conversion.
5583
5584 2003-09-08  Mike Sperber  <mike@xemacs.org>
5585
5586         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5587         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5588
5589 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5590
5591        * .gdbinit (pobj): fix printing of symbol name.
5592
5593 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5594
5595         * frame-x.c (x_layout_widgets): When resizing is about to cause
5596         frame size slip, mark it for redisplay.
5597
5598 2003-08-18  Jerry James  <james@xemacs.org>
5599
5600         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5601
5602 2003-09-03  Vin Shelton <acs@xemacs.org>
5603
5604         * XEmacs 21.4.14 is released
5605
5606 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5607
5608         * config.h.in (REGEX_MALLOC): Make it configure'able.
5609
5610 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5611
5612         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5613         linking.
5614         * sysdll.c (dll_init):
5615         * sysdll.c (dll_open):
5616         * sysdll.c (dll_close):
5617         * sysdll.c (dll_function):
5618         * sysdll.c (dll_variable):
5619         * sysdll.c (dll_error):
5620         Add support for loading bundles using Darwin/MacOSX
5621         native API.
5622
5623 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5624
5625         * process.c (start-process-internal): Document coding systems.
5626
5627 2003-07-30  Jerry James  <james@xemacs.org>
5628
5629         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5630
5631 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5632
5633         * event-msw.c (mswindows_enqueue_mouse_button_event):
5634         * event-msw.c (mswindows_wnd_proc):
5635           enqueue button event when scrollwheel event isn't handled by 
5636           mswindows_handle_mousewheel_event, such as when the scrollbars
5637           are not showing.
5638
5639 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5640
5641         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5642
5643 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5644
5645         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5646
5647 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5648
5649         * regex.c (re_match_2_internal): Fix matching degenerate word
5650         boundaries.
5651
5652 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5653
5654         * XEmacs 21.4.13 is released
5655
5656 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5657
5658         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5659         * lisp.h (<inttypes.h>):
5660         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5661         the definition.
5662
5663 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5664
5665         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5666         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5667         Result: "temacs can only be run in -batch mode."
5668         Fix: Check xemacs executable candidate for directory-ness.
5669
5670 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5671
5672         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5673           they conflict with <sys/types.h>.
5674
5675 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5676
5677         * database.c: Berkeley DB wants __STDC__ to be defined.
5678
5679 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5680
5681         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5682
5683 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5684
5685         * process-unix.c (unix_send_process): Fix C++ compile error.
5686
5687 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5688
5689         * Added .dylib as an acceptable shared library file extension
5690         * to support MacOSX.
5691
5692 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5693
5694         * EmacsFrameP.h (EmacsFramePart):
5695         Kludge to allow compiling with Motif1, but linking with Motif2.
5696
5697 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5698
5699         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5700
5701
5702 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5703
5704         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5705
5706 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5707
5708         * sysdll.c: Included lisp.h to define needed alloca_array.
5709
5710 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5711
5712         Make XEmacs redisplay 10 times faster.
5713         If, that is, you're using a slow X connection and MoveOpaque.
5714         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5715         Use compress_motion = TRUE.
5716         * EmacsFrame.c (emacsFrameClassRec): 
5717         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5718         * EmacsManager.c (emacsManagerClassRec):
5719         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5720
5721 2003-01-30  Vin Shelton  <acs@xemacs.org>
5722
5723         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5724
5725 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5726
5727         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5728         Patch by Martin Buchholz.
5729
5730 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5731
5732         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5733         Thanks to icc for warning and Martin Buchholz for reporting.
5734
5735 2003-01-29  Vin Shelton <acs@xemacs.org>
5736
5737         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5738
5739         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5740         remember to multiply by the element size.
5741
5742 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5743
5744         * XEmacs 21.4.12 "Portable Code" is released.
5745
5746 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5747
5748         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5749         * s/cygwin.sc: new linker file.
5750
5751 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5752
5753         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5754
5755         * redisplay-x.c (x_output_string): Use X11-specified types.
5756         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5757         * emacs.c (__free_hook): Use typeof with Intel compiler.
5758         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5759
5760 2003-01-08  Andy Piper  <andy@xemacs.org>
5761
5762         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5763         reserve size during unexec().
5764
5765 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5766
5767         * process-unix.c (unix_create_process): Don't let outchannel block.
5768
5769 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5770
5771         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5772         Needed for IsBadReadPtr().
5773
5774 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5775
5776         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5777
5778 2002-12-14  Ben Wing  <ben@xemacs.org>
5779
5780         * callint.c: Declaration error.
5781         * dumper.c (pdump):
5782         * dumper.c (pdump_load): Warning fix.
5783         * process.c: GCPRO error.
5784         * glyphs.c (unmap_subwindow):
5785         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5786         * event-stream.c (maybe_kbd_translate): Wrong argument to
5787         character_to_event().
5788
5789         * alloc.c (garbage_collect_1):
5790         * emacs.c:
5791         * emacs.c (debug_can_access_memory):
5792         * emacs.c (fatal_error_signal):
5793         * emacs.c (mswindows_handle_hardware_exceptions):
5794         * emacs.c (main_1):
5795         * emacs.c (main):
5796         * emacs.c (assert_failed):
5797         * emacs.c (syms_of_emacs):
5798         * lisp.h:
5799         * print.c:
5800         * print.c (std_handle_out_va):
5801         * print.c (write_string_to_stdio_stream):
5802         * print.c (write_fmt_string):
5803         * print.c (printing_badness):
5804         * print.c (printing_major_badness):
5805         * print.c (print_internal):
5806         * print.c (debug_print_no_newline):
5807         * print.c (debug_backtrace):
5808         Be more defensive in handling bad values when printing.  Add code
5809         from trunk involving inhibit_non_essential_printing_operations.
5810         When going down or in debug_print(), don't do external conversion
5811         and such and try really, really hard when printing to avoid core
5812         dumping.  Add force-debugging-signal, debug_break().
5813
5814 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5815
5816         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5817         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5818
5819 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5820
5821         * database.c: Fix open_database. Berkeley DB API has changed in
5822         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5823
5824 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5825
5826         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5827
5828 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5829
5830         * event-Xt.c (Xt_timeout):
5831         (Xt_timeout_callback):
5832         (emacs_Xt_add_timeout):
5833         (emacs_Xt_remove_timeout):
5834         (Xt_timeout_to_emacs_event):
5835         Turn completed_timeouts from a stack into a queue.  Fixes
5836         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5837
5838 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5839
5840         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5841         * emacs.c (main): Assert that mmap'd allocation is disabled.
5842
5843 2002-10-14  Andy Piper  <andy@xemacs.org>
5844
5845         * glyphs-widget.c (layout_query_geometry): add in fiddle
5846         factor. Include border text in width layout calculation.
5847         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5848
5849 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5850
5851         * XEmacs 21.4.10 "Military Intelligence" is released.
5852
5853 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5854
5855         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5856         using the NAS private array SoundFileInfo that no longer exists in
5857         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5858         and earlier.  This is broken for some versions between 1.5a and
5859         1.5f.
5860
5861 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5862
5863         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5864
5865         * emacs.c (shut_down_emacs): Improve crash message.
5866
5867 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5868
5869         * file-coding.c (determine_real_coding_system): Check for coding
5870         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5871         shebangs and Python PEP 263.
5872
5873 2002-10-08  Andy Piper  <andy@xemacs.org>
5874
5875         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5876         if static sizes haven't been set.
5877
5878 2002-08-30  Mike Alexander  <mta@arbortext.com>
5879
5880         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5881         to close a socket.
5882
5883 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5884
5885         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5886
5887 2002-09-20  Mike Sperber <mike@xemacs.org>
5888
5889         (This partially gets back my patch from 2002-07-20 without the
5890         bug.)
5891         * callproc.c (child_setup): Remove Ben's comment noting confusion
5892         over the file descriptors >= 3: close_process_descs() doesn't
5893         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5894         * process-unix.c (unix_create_process): Call
5895         begin_dont_check_for_quit to inhibit unwanted interaction (and
5896         thus breaking of X event synchronicity) in the child.
5897
5898 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5899
5900         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5901         widget.
5902
5903 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5904
5905         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5906         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5907         the xemacs process did not exit, but looped infinitely here.  This
5908         fixes that problem.
5909
5910 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5911
5912         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5913         (find_context): Improve comments.
5914
5915         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5916         (re_match_2): An XCHAR_TABLE operation was missing.
5917
5918         Many of the following changes were inspired by Andy Piper's (now
5919         obsolete) patch to make syntax-table text property lookup optional.
5920
5921         [Documentation]
5922
5923         * syntax.h (top level): Document semantics of syntax flags.
5924         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5925         * syntax.c, syntax.h (top level): Document syntax cache better in
5926         comments.
5927
5928         [Instrument syntax caching (temporary change)]
5929
5930         * syntax.h (enum syntax_cache_statistics_functions, struct
5931         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5932         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5933         * syntax.c (scan_words, Fforward_comment, scan_lists,
5934         Fbackward_prefix_characters):
5935         * font-lock.c (find_context):
5936         Use them to instrument syntax caching. 
5937         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5938         syntax_cache_statistics_function_names): New type and variables.
5939         * syntax.c (update_syntax_cache): Update and report statistics.
5940
5941         [Major syntax cache optimizations]
5942
5943         syntax.c (lookup_syntax_properties): Default off.
5944
5945         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5946         * syntax.c (update_syntax_cache):
5947         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5948
5949         [Minor syntax cache optimizations and code clarifications]
5950
5951         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5952         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5953         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5954         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5955         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5956         (Code clarification.)
5957
5958         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5959         scan_lists): Compute code from syncode, use Boolean macros instead
5960         of redundant masking operations.  (Code clarification; any decent
5961         compiler can do this optimization.)
5962
5963         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5964         for clarity.
5965
5966         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5967         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5968         use F*_single_property_change instead of F*_extent_change.
5969         Currently F*_single_property_change is _much_ less efficient.
5970
5971         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5972         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5973         syntax_cache.object properly, don't leave Qt or Qnil.
5974         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5975         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5976         tests for Qt or Qnil.
5977
5978 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5979
5980         * redisplay.c (point_in_line_start_cache): 
5981         * extents.c (print_extent_1):
5982         Fix warnings.
5983
5984         * extents.c (Fset_extent_property): Document `syntax-table' property.
5985
5986         * extents.h (Fnext_single_property_change): EXFUN it.
5987
5988 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5989
5990         * search.c (clear_unused_search_regs): New static function.
5991         (search_buffer): 
5992         (simple_search): 
5993         (boyer_moore):
5994         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5995         Minor clarifications in comments.
5996
5997         * regex.c (re_match_2_internal): Ensure no stale submatches.
5998
5999 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6000
6001         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6002
6003 2002-08-29  Jerry James  <james@xemacs.org>
6004
6005         * lisp.h: structrures -> structures.
6006
6007 2002-06-03  Andy Piper  <andy@xemacs.org>
6008
6009         * frame.c (frame_conversion_internal): add conversion appropriate
6010         for setting frame dimensions in pixels.
6011
6012         * console.h (struct console_methods): add device-specific widget
6013         layout functions.
6014
6015         * emacs.c (main_1): initialize glyph vars.
6016
6017         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6018         (handle_focus_event_2): new function. Allow focus to
6019         be set to a particular window and widget.
6020         (enqueue_focus_event): new function. Create a
6021         synthetic focus event.
6022         (emacs_Xt_handle_magic_event): call
6023         handle_focus_event_2.
6024
6025         * frame.c (Fset_frame_pixel_height): new function. Allow
6026         pixel-based sizing. Does the right thing on character-oriented
6027         displays.
6028         (Fset_frame_pixel_width): ditto.
6029         (Fset_frame_pixel_size): ditto.
6030         (syms_of_frame): declare.
6031
6032         * general-slots.h: add :vertically-justify and
6033         :horizontally-justify.
6034
6035         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6036         (mswindows_widget_border_width): new function.
6037         (mswindows_combo_box_instantiate): set border widths.
6038         (console_type_create_glyphs_mswindows): declare.
6039
6040         * glyphs-widget.c:
6041         (check_valid_justification): allow vertical and horizontal
6042         justification.
6043         (widget_border_width): new function. Call device methods.
6044         (widget_instance_border_width): ditto.
6045         (logical_unit_height): new function. Determine the height of a
6046         logical-unit. Logical units are intended to provide grid-like
6047         layout for subcontrols in a layout. If the layout is
6048         :vertically-justify top then subcontrols will be positioned on
6049         logical-unit boundaries, thus allowing adjacent subcontrols to
6050         line up.
6051         (widget_logical_unit_height): ditto for widgets.
6052         (redisplay_widget): misc cleanup.
6053         (widget_spacing): new function. Call device specific
6054         methods. Intended to be the default gap between adjacent widgets.
6055         (widget_query_geometry): use new spacing functions to determine
6056         appropriate geometry.
6057         (initialize_widget_image_instance): initialize horizontal and
6058         vertical justification.
6059         (widget_instantiate): use logica-units where appropriate for
6060         sizing large widgets.
6061         (button_query_geometry): use widget_instance_border_width.
6062         (tree_view_query_geometry): ditto.
6063         (tab_control_query_geometry): ditto.
6064         (edit_field_query_geometry): new function.
6065         (layout_update): pick up :justify, :horizontally-justify and
6066         :vertically-justify none of which worked previously. :justify is
6067         used as a fallback for both horizontal and vertical justification.
6068         (layout_query_geometry): use logical units to size appropriately.
6069         (layout_layout): ditto.
6070         (Fwidget_logical_to_character_width): new function. Allow users to
6071         convert from logical units to characters so that frame sizes can
6072         be set appropriately.
6073         (Fwidget_logical_to_character_height): ditto.
6074         (syms_of_glyphs_widget): declare.
6075         (image_instantiator_edit_fields): add edit_field_query_geometry.
6076         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6077         :horizontally-justify.
6078         (specifier_vars_of_glyphs_widget): new function. Declare
6079         Vwidget_border_width which is not yet used.
6080
6081         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6082         (x_widget_border_width): new function.
6083         (x_widget_instantiate): create a sensible name for widgets.
6084         (console_type_create_glyphs_x): declare x_widget_border_width.
6085
6086         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6087         (struct Lisp_Image_Instance): add :vertically-justify and
6088         :horizontally-justify.
6089         (LAYOUT_JUSTIFY_TOP): new.
6090         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6091         (ROUND_UP): new macro. Round argument up to next integral
6092         interval.
6093
6094         * redisplay-output.c (redisplay_output_layout): misc formatting.
6095
6096         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6097
6098 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6099
6100         * XEmacs 21.4.9 "Informed Management" is released.
6101
6102 2002-08-19  Andy Piper  <andy@xemacs.org>
6103
6104         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6105         win32 format.
6106
6107         * realpath.c (xrealpath): normalize drive spec also so that dir
6108         sep chars are not mixed on cygwin.
6109
6110 2002-08-06  Jerry James  <james@xemacs.org>
6111
6112         * window.c (Fsplit_window): Count only half of the divider width
6113         against the left window when splitting horizontally. 
6114
6115 2002-06-24  Andy Piper  <andy@xemacs.org>
6116
6117         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6118         toolbar was cleared.
6119
6120         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6121         function. Split out from mswindows_output_frame_toolbars.
6122         (mswindows_output_frame_toolbars): move clear pieces to
6123         mswindows_output_frame_toolbars.
6124
6125         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6126         out from gtk_output_frame_toolbars.
6127         (gtk_output_frame_toolbars): move clear pieces to
6128         gtk_clear_frame_toolbars.
6129
6130         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6131         the frame is cleared. How this ever worked before is a mystery.
6132         (x_output_frame_toolbars): Only output toolbars.
6133         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6134
6135         * gutter.c (update_gutter_geometry):
6136         Mark frame layout changed.
6137         (update_frame_gutter_geometry, update_frame_gutters):
6138         Respect frame_layout_changed.
6139
6140         * console.h (struct console_methods): add
6141         clear_frame_toolbars_method.
6142
6143         * redisplay.c (redisplay_frame): call
6144         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6145
6146         * toolbar.h: declare update_frame_toolbars_geometry.
6147
6148         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6149         out from update_frame_toolbars.  Call clear_frame_toolbars.
6150         (update_frame_toolbars): only output, do not change geometry.
6151
6152         * redisplay.c: add frame_layout_changed.
6153
6154         * redisplay.h: add frame_layout_changed.
6155         (CLASS_RESET_CHANGED_FLAGS): set it.
6156         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6157         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6158         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6159
6160         * device.h (struct device): add frame_layout_changed.
6161         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6162
6163         * frame.h (struct frame): add frame_layout_changed.
6164         (MARK_FRAME_LAYOUT_CHANGED): new.
6165
6166 2002-06-30  Mike Alexander  <mta@arbortext.com>
6167
6168         * event-msw.c (mswindows_need_event): Don't wait for a new message
6169         if the queue is not empty.  Suggested by Paul Moore.
6170
6171 2002-06-12  Andy Piper  <andy@xemacs.org>
6172
6173         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6174         for printing on accurately.
6175
6176 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6177
6178         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6179         WM_ACTIVATE message. Make sure that the frame is visible if the
6180         window is visible. This seemss to fix the problem where XEmacs
6181         appears to freeze after switching desktops with certain virtual
6182         window managers.
6183         (debug_output_mswin_message): Added code to output message
6184         parameters for WM_WINDOWPOSCHANGED, 
6185         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6186
6187 2002-05-25  Andy Piper  <andy@xemacs.org>
6188
6189         * select-x.c (vars_of_select_x): Fix docstring of
6190         x-selection-strict-motif-ownership
6191
6192 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6193
6194         * keymap.c (get_keymap):
6195         Add comment about do_autoload GCPROs own args.
6196
6197 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6198
6199         * bytecode.c (execute_optimized_program): check_opcode ifdef
6200         ERROR_CHECK_BYTE_CODE.
6201
6202 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6203
6204         Thanks to Ben Wing and Michael Sperber.
6205
6206         * eval.c (Fcommand_execute):
6207         (Feval):
6208         (Ffuncall):
6209         (Fmacroexpand_internal):
6210         (function_argcount):
6211         callint.c (Fcall_interactively):
6212         Add comment about do_autoload GCPROs own args.
6213
6214         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6215
6216         * eval.c (Ffuncall): Extra braces to placate GCC.
6217
6218 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6219
6220         * backtrace.h (grow_specpdl):
6221         (SPECPDL_RESERVE):
6222         * EmacsFrame.c (EmacsFrameSetValues):
6223         * eval.c (grow_specpdl):
6224         * ExternalShell.c (hack_event_masks_1):
6225         * glyphs-x.c (convert_EImage_to_XImage): 
6226         (x_finalize_image_instance):
6227         * ralloc.c (page_size):
6228         (r_alloc_sbrk):
6229         * xgccache.c (gc_cache_hash):
6230         Fix unsigned comparison warnings.
6231
6232 2002-07-29  Jerry James  <james@xemacs.org>
6233
6234         * lread.c (locate_file): Any nonnegative return value indicates
6235         success if MODE is nonnegative.
6236
6237 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6238
6239         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6240         argument. 
6241
6242 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6243
6244         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6245
6246         * dumper.c (pdump_get_indirect_count):
6247         (pdump_scan_by_alignment):
6248         (pdump_dump_root_struct_ptrs):
6249         (pdump_dump_rtables):
6250         (pdump_dump_root_objects):
6251         (pdump):
6252         * nas.c (WaveOpenDataForReading):
6253         * fns.c (print_bit_vector):
6254         * font-lock.c (SINGLE_SYNTAX_STYLE):
6255         * glyphs.c (check_for_ignored_expose):
6256         (find_matching_subwindow):
6257         * glyphs-eimage.c:
6258         * imgproc.c (get_histogram):
6259         * redisplay.c (point_in_line_start_cache):
6260         * redisplay-output.c (redisplay_unmap_subwindows):
6261         * symbols.c (defsymbol_massage_name_1):
6262         (defkeyword_massage_name):
6263         (deferror_massage_name_and_message):
6264         * redisplay-x.c (x_output_string): 
6265         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6266         * frame.h (struct frame):
6267         * filelock.c (current_lock_owner):
6268         * doprnt.c (emacs_doprnt_1):
6269         * lisp.h (struct Lisp_Bit_Vector):
6270         (DO_REALLOC):
6271         Fix warnings.
6272
6273 2002-02-13  Ben Wing  <ben@xemacs.org>
6274
6275         * event-stream.c (reset_key_echo):
6276         * event-stream.c (reset_this_command_keys):
6277         * event-stream.c (execute_command_event):
6278         If console is dead as a result of C-x 5 0, then post-command stuff
6279         needs to be careful and do only non-console-specific stuff.
6280
6281 2002-07-01  Mike Sperber <mike@xemacs.org>
6282
6283         * process-unix.c (unix_send_process): Mark coding_outstream as
6284         non-open upon SIGPIPE.
6285
6286         * event-stream.c (Fnext_event): Reorder switch cases to something
6287         that makes sense.
6288
6289 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6290
6291         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6292         Don't bogusly reinitialize ascii_character property.
6293
6294 2002-07-08  Mike Sperber <mike@xemacs.org>
6295
6296         * process.c (Fstart_process_internal): Do error checking before we
6297         fork off the child, so the child can't muck with the state of the
6298         parent.
6299
6300 2002-07-08  Mike Sperber <mike@xemacs.org>
6301
6302         * ralloc.c (init_ralloc): Allocate properly for pdump.
6303
6304 2002-06-12  Andy Piper  <andy@xemacs.org>
6305
6306         * glyphs.c (query_string_geometry): check the string.
6307
6308         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6309         widget names.
6310
6311 2002-06-17  Jerry James  <james@xemacs.org>
6312
6313         * sysdll.c: Remove RTLD_GLOBAL initialization.
6314         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6315
6316 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6317
6318         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6319
6320 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6321
6322         * sysdep.c (sys_rename): Make sys_rename work for the case where
6323         Windows rename sets errno to EACCES if target file exists.
6324
6325 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6326
6327         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6328         Fix detection of metric units to work on Win95
6329
6330 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6331
6332         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6333
6334 2002-04-25  Andy Piper  <andy@xemacs.org>
6335
6336         * redisplay.c (create_text_block): Remove extra comment trailer.
6337
6338 2002-04-24  Andy Piper  <andy@xemacs.org>
6339
6340         * redisplay.c (create_text_block): Don't actually add propagation
6341         data if the line ends after we have added a glyph.
6342
6343 2002-04-22  Andy Piper  <andy@xemacs.org>
6344
6345         * extents.c (extent_fragment_update): check for glyphs we have
6346         previously displayed.
6347         * extents.c (print_extent_1): warning removal.
6348         * extents.h: change prototype.
6349         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6350         widths correctly for wide glyphs.
6351         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6352         * redisplay.c (prop_type): add PROP_GLYPH.
6353         * redisplay.c (struct prop_block): add glyph type
6354         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6355         to the propagation data.
6356         * redisplay.c (create_text_block): if there is a glyph in the
6357         propagation data use it to salt extent_fragment_update.
6358         * redisplay.c (create_string_text_block): ditto.
6359
6360 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6361
6362         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6363         * redisplay-output.c (compare_runes): Compare them.
6364         * redisplay.c: Update copyright date.
6365         * redisplay.c (pos_data): Add need_baseline_computation field.
6366         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6367         need_baseline_computation; zero yoffset. Set max_pixmap_height
6368         for all pixmaps, not just automatically positioned ones.
6369         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6370         * redisplay.c (calculate_baseline): New, compute textual baseline.
6371         * redisplay.c (add_glyph_rune): Call them.
6372         * redisplay.c (create_text_block): Likewise.
6373         * redisplay.c (create_overlay_glyph_block): Likewise.
6374         * redisplay.c (add_margin_runes): Likewise.
6375         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6376
6377         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6378         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6379         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6380         * redisplay-msw.c (mswindows_output_string): Likewise.
6381         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6382         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6383         * redisplay-x.c (x_output_display_block): Likewise.
6384
6385 2002-03-28  Ben Wing  <ben@xemacs.org>
6386
6387         * redisplay.c: Fixed bug in redisplay
6388         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6389         and down of the lines, since they're bigger than the line
6390         size. (It was seen most obviously when there's a horizontal scroll
6391         bar, e.g. do C-h a glyph or something like that.) The problem was
6392         that the glyph-contrib-p setting on glyphs was ignored even if it
6393         was set properly, which it wasn't until now.
6394
6395 2002-04-24  Andy Piper  <andy@xemacs.org>
6396
6397         * lisp.h (Dynarr_end): Fix definition.
6398
6399 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6400
6401         * redisplay.c (mark_redisplay): Remove call to
6402         update_frame_window_mirror.
6403
6404 2001-11-15  Andy Piper  <andy@xemacs.org>
6405
6406         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6407         cygwin (again).
6408
6409 2002-02-13  Andy Piper  <andy@xemacs.org>
6410
6411         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6412         we did in fact enqueue the XM_MAPFRAME event.
6413
6414 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6415
6416         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6417         to fix problem switching between virtual desktops under virtuawin
6418         virtual window manager.
6419
6420 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6421
6422         * event-msw.c: Typo fix.
6423         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6424         magic XM_MAPFRAME event has been sent.
6425
6426 2001-11-23  Andy Piper  <andy@xemacs.org>
6427
6428         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6429
6430 2001-11-21  Andy Piper  <andy@xemacs.org>
6431
6432         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6433         mouse events outside the frame.
6434
6435 2002-03-20  Andy Piper  <andy@xemacs.org>
6436
6437         * menubar-msw.c (mswindows_popup_menu): warning removal.
6438         * dialog-msw.c (dialog_popped_down): ditto.
6439
6440 2001-12-11  Andy Piper  <andy@xemacs.org>
6441
6442         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6443         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6444         popup_up_p.
6445         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6446         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6447         * menubar-msw.c (mswindows_popup_menu): ditto.
6448
6449 2001-10-29  Andy Piper  <andy@xemacs.org>
6450
6451         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6452         cancels.
6453
6454 2002-01-03  Andy Piper  <andy@xemacs.org>
6455
6456         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6457         letters.
6458         (xrealpath): ditto.
6459
6460 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6461
6462         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6463         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6464         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6465         Detect and handle case where machine is set up for metric units
6466
6467 2002-04-02  Andy Piper  <andy@xemacs.org>
6468
6469         * dired-msw.c (mswindows_get_files): 
6470         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6471         completely handled by XEmacs. Suggested by Thomas Vogler
6472         <mail@thomas-vogler.de>.
6473
6474 2001-11-14  Andy Piper  <andy@xemacs.org>
6475
6476         * nt.c (REG_ROOT): change registry key to XEmacs.
6477
6478 2002-04-27  Andy Piper  <andy@xemacs.org>
6479
6480         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6481
6482 2002-04-26  Andy Piper  <andy@xemacs.org>
6483
6484         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6485         behavior.
6486
6487 2002-03-14  Mike Alexander  <mta@arbortext.com>
6488
6489         * event-msw.c (mswindows_unwait_process): New, remove process from
6490         wait list
6491         * process-nt.c (nt_finalize_process_data): Call
6492         mswindows_unwait_process
6493         * console-msw.h: Declare mswindows_unwait_process
6494
6495 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6496
6497         * editfns.c (Fdecode_time):
6498         (Fformat_time_string):
6499         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6500         (make_time): Warning elimination (change arg name).
6501
6502 2001-11-24  Andy Piper  <andy@xemacs.org>
6503
6504         * window.c (Fsplit_window): Doc return type.
6505
6506 2002-04-01  Andy Piper  <andy@xemacs.org>
6507
6508         * emacs.c (Fkill_emacs): Only output message box in interactive
6509         mode.
6510
6511 2002-04-26  Andy Piper  <andy@xemacs.org>
6512  
6513         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6514         cygwin.
6515
6516 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6517
6518         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6519         bit platform.
6520
6521 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6522
6523         * XEmacs 21.4.8 "Honest Recruiter" is released.
6524
6525 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6526
6527         Supersedes 2002-04-17 patch.
6528
6529         * process.h (PROCESS_LIVE_P): Use the process status as
6530         evidence of health, not the state of the input stream.
6531         (PROCESS_READABLE_P): Say if the process is readable
6532         from. (It may be dead nonetheless.)
6533         (CHECK_READABLE_PROCESS): Test for that condition.
6534
6535         * process.c (create_process): Use PROCESS_READABLE_P.
6536         (read_process_output, set_process_filter): Likewise.
6537
6538         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6539         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6540
6541         This code is #if 0'd, this is not the time to add new functions:
6542
6543         * process.c (Fprocess_readable_p): Report readability status.
6544         * process.c (Qprocess_readable_p): New, associated symbol...
6545         * process.c (syms_of_process): ... initialize it.
6546
6547 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6548
6549         * XEmacs 21.4.7 "Economic Science" is released.
6550
6551 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6552
6553         * process.h (PROCESS_LIVE_P): Use the process status as
6554         evidence of health, not the state of the input stream.
6555
6556 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6557
6558         * sysdep.c (sys_siglist): change "signum" to "signal"
6559
6560 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6561
6562         * s/darwin.h: New file.
6563         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6564         
6565 2002-04-23  Andreas Jaeger  <aj@suse.de>
6566
6567         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6568         which use lib64 for 64-bit libs.
6569         (START_FILES): Likewise.
6570
6571 2002-02-11  Mike Sperber  <mike@xemacs.org>
6572
6573         * device-x.c: 
6574         (x_IO_error_handler):
6575         (x_init_device): Temporarily keep device in static variable
6576         `device_being_initialized' so we can recover gracefully from
6577         internal XOpenDevice failure.  (XOpenDevice is documented to
6578         return NULL on failure, but sometimes calls the IO error handler
6579         instead.)
6580
6581 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6582
6583         * dired.c (Ffile_name_all_completions): Change documentation --
6584         remove reference to completion-ignored-extensions.
6585         * dired.c (vars_of_dired): Change documentation for
6586         completion-ignored-extensions -- remove reference to
6587         file-name-all-completions.
6588
6589 2002-03-06  Jerry James  <james@xemacs.org>
6590
6591         * emodules.c (emodules_load): Fix multiple loading of same module.
6592
6593 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6594         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6595         RTLD_LAZY to avoid incorrect symbol binding when using nested
6596         shared libraries on Solaris.
6597
6598 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6599
6600         * fileio.c (Ffind_file_name_handler): Improve docstring.
6601
6602 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6603
6604         * fns.c (Fmapconcat): Improve docstring.
6605
6606 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6607
6608         * device-gtk.c: Add prototype for
6609         emacs_gtk_selection_clear_event_handle.
6610         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6611         selection.  Setup signal handler for "selection_clear_event"
6612         (emacs_gtk_selection_clear_event_handle).
6613
6614         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6615         other applications owning the clipboard (based on
6616         x_handle_selection_clear).
6617
6618 2001-12-23  William M. Perry  <wmperry@gnu.org>
6619
6620         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6621         
6622 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6623
6624         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6625
6626 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6627
6628         * XEmacs 21.4.6 "Common Lisp" is released.
6629
6630 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6631
6632         * search.c (Freplace_match): Add missing sub-expression functionality.
6633
6634         * buffer.c (decode_buffer): Add a check for pointer type to
6635         decode_buffer, before gcc's CSE optimization reorders a
6636         dereference in front of the allow_string test.
6637
6638 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6639
6640         * window.c (window_loop): Fix bug that sometimes prevented
6641         window_loop() from iterating across multiple devices.  Also, at
6642         Ben's request, changed infloop-detecting code to abort() instead
6643         of silently terminating window_loop().
6644
6645 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6646
6647         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6648         * editfns.c (make_time): New function.
6649         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6650         * lisp.h (make_time): Prototype and comment it.
6651         * dired.c (wasteful_word_to_lisp): Deprecate.
6652         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6653
6654 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6655
6656         * fileio.c (auto_save_1): Use current coding system, not
6657         escape-quoted.
6658
6659 2001-11-13  Ben Wing  <ben@xemacs.org>
6660
6661         * window.c:
6662         * window.c (window_truncation_on):
6663         * window.c (syms_of_window):
6664         truncate-partial-width-windows should respect the buffer being
6665         displayed, like other redisplay vars.
6666
6667 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6668
6669         * event-stream.c (Fread_key_sequence): save current buffer.
6670
6671 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6672
6673         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6674
6675 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6676
6677         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6678
6679 2001-10-26  Mike Alexander  <mta@arbortext.com>
6680
6681         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6682
6683 2001-10-25  Andy Piper  <andy@xemacs.org>
6684
6685         * ChangeLog:
6686         * dialog-msw.c (handle_directory_proc): new function.
6687          (handle_directory_dialog_box): new fucntion.
6688          (handle_file_dialog_box): use new directory dialog support.
6689          (mswindows_make_dialog_box_internal): ditto.
6690         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6691         handling.
6692         (mswindows_find_frame): make global.
6693         * fileio.c (Fexpand_file_name): build fix.
6694         * general-slots.h: add Qdirectory.
6695         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6696         handling.
6697         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6698         cygwin not leaving win32 paths unchanged.
6699         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6700         cygwin runtime to do path conversion.
6701         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6702         (syms_of_win32): add new function.
6703         * window.c (window_loop): build fix.
6704
6705 2001-10-15  Andy Piper  <andy@xemacs.org>
6706
6707         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6708
6709 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6710
6711         * XEmacs 21.4.5 "Civil Service" is released.
6712
6713 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6714
6715         * glyphs-x.c: Force buffer-tab highlight update when moving the
6716         buffer, avoiding an ugly black border, used for keyboard focus
6717         indication, on a widget that can never have keyboard focus, the
6718         buffer tab.
6719
6720 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6721
6722         * process-unix.c (unix_open_multicast_group): Remove too much
6723         conversion between host and network byte order.
6724
6725 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6726
6727         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6728         before replacing them.
6729
6730         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6731         operation.
6732
6733         * src/window.c (undedicate_windows): Use it.
6734         * src/window.h: Add prototype.
6735
6736 2001-09-17  Ben Wing  <ben@xemacs.org>
6737
6738         * fileio.c (normalize_filename):
6739         * fileio.c (Fexpand_file_name):
6740         Fix various C++ compile errors in Andy's recent code.
6741         
6742         * callint.c (Fcall_interactively):
6743         * editfns.c (Ftemp_directory):
6744         * editfns.c (Fuser_full_name):
6745         * emacs.c (argmatch):
6746         * lread.c (locate_file_map_suffixes):
6747         * redisplay-x.c (x_ring_bell):
6748         Fix sign-compare warnings.
6749         
6750 2001-09-08  Andy Piper  <andy@xemacs.org>
6751
6752         * fileio.c (normalize_filename): copied from nt.c
6753         * (Ffile_name_directory): enable win32 paths under cygwin.
6754         * (Ffile_name_nondirectory): ditto.
6755         * (directory_file_name): ditto.
6756         * (Fexpand_file_name): ditto.
6757         * (Ffile_truename): ditto.
6758         * (Fsubstitute_in_file_name): ditto.
6759         * (Ffile_name_absolute_p): ditto.
6760         * (Ffile_readable_p): ditto.
6761
6762 2001-09-08  Andy Piper  <andy@xemacs.org>
6763
6764         * device-msw.c (mswindows_finish_init_device): remove dde
6765         initialization.
6766         * device-msw.c (mswindows_init_dde): factor out from
6767         mswindows_finish_init_device()
6768         * device-msw.c (init_mswindows_very_early): new function
6769         initialize but don't enable dde.
6770         * emacs.c (main_1): call init_mswindows_very_early.
6771         * event-msw.c:
6772         * event-msw.c (mswindows_dde_callback): only execute when we are
6773         ready.
6774         * symsinit.h: declare init_mswindows_very_early.
6775
6776 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6777
6778         [sjt: This has been in 21.5 for months with no complaints.]
6779
6780         * console.h (struct console_methods): Added flags member.
6781         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6782         (CONMETH_IMPL_FLAG):
6783         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6784         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6785
6786         * device.c (window_system_pixelated_geometry): Use the above macros.
6787
6788         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6789         implememntation flag.
6790         * device.h (DEVICE_DISPLAY_P): Use it.
6791
6792         * frame.c (delete_frame_internal): Use the above macro.
6793
6794         * redisplay.c (redisplay_device): Use it.
6795         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6796         (redisplay_frame): Ditto.
6797
6798         * device-msw.c (mswindows_device_implementation_flags): Removed.
6799         (msprinter_device_implementation_flags): Removed.
6800         (console_type_create_device_mswindows): Removed references to
6801         implementation_flags methods, set implementation flags here.
6802         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6803
6804         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6805         (console_type_create_device_gtk): Removed method declaration.
6806         Added commented out statement which semantically matches the
6807         commented out statement in the above removed method.
6808
6809 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6810
6811         The attached patch fixes a few warnings. 
6812
6813         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6814         * src/frame-gtk.c: guard against GNOME calls in GTK only
6815         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6816         * src/select-gtk.c: prototype lisp_to_time
6817
6818 2001-06-08  Ben Wing  <ben@xemacs.org>
6819
6820         ------ gc-in-window-procedure fixes ------
6821         
6822         * alloc.c:
6823         * alloc.c (struct post_gc_action):
6824         * alloc.c (register_post_gc_action):
6825         * alloc.c (run_post_gc_actions):
6826         * alloc.c (garbage_collect_1):
6827         Create "post-gc actions", to avoid those dreaded "GC during window
6828         procedure" problems.
6829
6830         * event-msw.c:
6831         Abort, clean and simple, when GC in window procedure.  We want
6832         to flush these puppies out.
6833
6834         * glyphs-msw.c:
6835         * glyphs-msw.c (finalize_destroy_window):
6836         * glyphs-msw.c (mswindows_finalize_image_instance):
6837         Use a post-gc action when destroying subwindows.
6838
6839         * lisp.h:
6840         Declare register_post_gc_action().
6841
6842         * scrollbar-msw.c:
6843         * scrollbar-msw.c (unshow_that_mofo):
6844         Use a post-gc action when unshowing scrollbar windows, if in gc.
6845
6846         * redisplay.c (mark_redisplay):
6847         Add comment about the utter evilness of what's going down here.
6848
6849         ------ cygwin setitimer fixes ------
6850         
6851         * Makefile.in.in (sheap_objs):
6852         * Makefile.in.in (profile_objs):
6853         * Makefile.in.in (objs):
6854         Compile profile.c only when HAVE_SETITIMER.
6855         
6856         * nt.c (mswindows_sigset):
6857         * nt.c (mswindows_sighold):
6858         * nt.c (mswindows_sigrelse):
6859         * nt.c (mswindows_sigpause):
6860         * nt.c (mswindows_raise):
6861         * nt.c (close_file_data):
6862         Style fixes.
6863         
6864         * nt.c:
6865         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6866         
6867         * profile.c:
6868         * profile.c (Fstart_profiling):
6869         * profile.c (Fstop_profiling):
6870         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6871         instead of just plain setitimer().
6872         
6873         * signal.c:
6874         * signal.c (set_one_shot_timer):
6875         * signal.c (alarm):
6876         Define qxe_setitimer() as an encapsulation around setitimer() --
6877         call setitimer() directly unless Cygwin or MS Win, in which case
6878         we use our simulated version in win32.c.
6879         
6880         * systime.h:
6881         * systime.h (struct itimerval):
6882         * systime.h (ITIMER_REAL):
6883         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6884         comment about "qxe" and the policy regarding encapsulation.
6885
6886         * win32.c:
6887         * win32.c (setitimer_helper_proc):
6888         * win32.c (setitimer_helper_period):
6889         * win32.c (setitimer_helper):
6890         * win32.c (mswindows_setitimer):
6891         Move setitimer() emulation here, so Cygwin can use it.
6892         Rename a couple of functions and variables to be longer and more
6893         descriptive.  In setitimer_helper_proc(), send the signal
6894         using either mswindows_raise() or (on Cygwin) kill().  If for
6895         some reason we are still getting lockups, we'll change the kill()
6896         to directly invoke the signal handlers.
6897
6898         ------ windows shell fixes ------
6899         
6900         * callproc.c:
6901         * ntproc.c:
6902         Comments about how these two files must die.
6903
6904         * callproc.c (init_callproc):
6905         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6906         not just COMSPEC. (more correct and closer to FSF.) Don't
6907         force a value for SHELL into the environment. (Comments added
6908         to explain why not.)
6909         
6910         * nt.c (init_user_info):
6911         Don't shove a fabricated SHELL into the environment.  See above.
6912
6913 2001-06-01  Ben Wing  <ben@xemacs.org>
6914
6915         * Makefile.in.in (ldflags):
6916         eliminate that pesky "defaulting to 00401000" warning.
6917         * nt.h:
6918         eliminate warnings.
6919
6920 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6921
6922         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6923         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6924
6925 2001-04-24  Jerry James <james@xemacs.org>
6926
6927         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6928         correct order.
6929
6930 2001-06-01  Ben Wing  <ben@xemacs.org>
6931
6932         * event-msw.c (debug_mswin_messages):
6933         conditionalize the messages that were causing compile errors.
6934         (if only macros could generate #ifdef statements ...)
6935
6936 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6937
6938         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6939
6940 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6941
6942         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6943
6944 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6945
6946         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6947         * process-unix.c (unix_canonicalize_host_name):
6948         sysdep.c (init_system_name):
6949         Use it to conditionally support IPv6 canonicalization.
6950
6951 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6952
6953         * event-msw.c:
6954         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6955
6956 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6957
6958         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6959         attempt is made to scroll when no scroll bar is available.
6960
6961 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6962
6963         * input-method-motif.c (XIM_delete_frame): New callback.
6964         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6965         got deleted from 21.4.3.)
6966
6967 2001-06-01  Ben Wing  <ben@xemacs.org>
6968
6969         * nt.c (mswindows_utime):
6970         * nt.c (close_file_data):
6971         fix off-by-one-indirection error.
6972
6973 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6974
6975         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6976         because set_file_times() now takes Lisp_Object path, instead of
6977         char*.
6978         * nt.c: Include buffer.h.
6979         * nt.c (convert_from_time_t): New.
6980         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6981         not set mtime correctly.
6982         * nt.h: Declare mswindows_utime().
6983         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6984         path, instead of char*.
6985         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6986
6987 2001-05-30  Ben Wing  <ben@xemacs.org>
6988
6989         For 21.4:
6990
6991         (Stephen, just take all event-msw.c patches.  This includes
6992         the "iconify" fix below.)
6993
6994         * event-msw.c:
6995         * event-msw.c (mswindows_dequeue_dispatch_event):
6996         * event-msw.c (assert):
6997         * event-msw.c (emacs_mswindows_quit_p):
6998         * event-msw.c (debug_mswin_messages):
6999         * event-msw.c (debug_output_mswin_message):
7000         * event-msw.c (vars_of_event_mswindows):
7001         Fix yet more problems with C-g handling.
7002         Implement debug-mswindows-events.
7003         
7004 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7005
7006         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7007         
7008 2001-05-23  Ben Wing  <ben@xemacs.org>
7009
7010         * event-msw.c (winsock_writer):
7011         * event-msw.c (winsock_closer):
7012         prior kludgy code was clobbering the buffer, thinking it was
7013         "unused" space to store an unneeded return value; instead, use
7014         the variable we've already got staring us in the face.
7015
7016 2001-05-17  Andy Piper  <andy@xemacs.org>
7017
7018         * sysfile.h: don't assume that file attributes are boolean
7019
7020 2001-05-23  Ben Wing  <ben@xemacs.org>
7021
7022         * device-msw.c (msprinter_init_device):
7023         signal an error rather than crash with an unavailable network
7024         printer (from Mike Alexander).
7025         
7026         * event-msw.c:
7027         * event-msw.c (struct winsock_stream):
7028         * event-msw.c (winsock_writer):
7029         * event-msw.c (winsock_closer):
7030         * event-msw.c (make_winsock_stream_1):
7031         cleanup headers.  fix (hopefully) an error with data corruption
7032         when sending to a network connection.
7033
7034         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7035         to handle the ~user prefix by (a) always assuming we're referencing
7036         ourselves and not even verifying the user -- hence any file with
7037         a tilde as its first char is invalid! (b) if there wasn't a slash
7038         following the filename, the pointer was set *past* the end of
7039         file and we started reading from uninitialized memory.  Now we
7040         simply treat these as files, always.
7041
7042         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7043         
7044 2001-05-19  Ben Wing  <ben@xemacs.org>
7045
7046         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7047
7048         * process-nt.c:
7049         * process-nt.c (vars_of_process_nt):
7050         remove unused mswindows-quote-process-args.  rec for 21.4.
7051         
7052 2001-05-12  Ben Wing  <ben@xemacs.org>
7053
7054         * event-msw.c (mswindows_dde_callback):
7055         * event-msw.c (mswindows_wnd_proc):
7056         eliminate cygwin warnings.
7057
7058 2001-05-06  Ben Wing  <ben@xemacs.org>
7059
7060         * console-msw.h:
7061         * device-msw.c:
7062         * device-msw.c (print_dialog_worker):
7063         * device-msw.c (mswindows_handle_print_dialog_box):
7064         * device-msw.c (syms_of_device_mswindows):
7065         * dialog-msw.c (mswindows_make_dialog_box_internal):
7066         * general-slots.h:
7067         implement printing the selection when it's selected.
7068
7069 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7070
7071         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7072
7073 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7074
7075         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7076         EMACS_INT is signed.
7077
7078 2001-04-15  Michael Lausch  <mla@1012surf.net>
7079
7080         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7081         gtk_widget_request_size() to give scrollbar >0 width for
7082         GTK >1.2.8.
7083
7084 2001-05-30  William M. Perry  <wmperry@gnu.org>
7085
7086         * event-gtk.c: Check for buttons as modifier keys.
7087
7088 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7089
7090         * s\mingw32.h:
7091         Properly find MinGW's <process.h> inside Cygwin's restructured
7092         include directories.  Don't try to include <cygwin/version.h>
7093         since we are dropping support for MinGW in versions of Cygwin
7094         earlier than b21.
7095         * nt.c:
7096         Drop support for MinGW in versions of Cygwin before b21.
7097         * sysdep.c:
7098         Properly find MinGW's <process.h> inside Cygwin's restructured
7099         include directories.
7100         * syswindows.h:
7101         Drop support for MinGW in versions of Cygwin before b21.
7102         * unexcw.c:
7103         Even though a.out.h is no longer detected by configure, allow
7104         MinGW to use it until we figure out how to do the job with Win32.
7105
7106 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7107
7108         * syntax.c (find_start_of_comment):
7109         Fix `unbalanced parentheses' bug when dealing with mixed comment
7110         styles in c++/java/etc. mode
7111
7112 2001-05-29  Mike Alexander  <mta@arbortext.com>
7113
7114         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7115         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7116
7117 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7118
7119         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7120
7121 2001-03-31  Mike Sperber <mike@xemacs.org>
7122
7123         * search.c (Freplace_match): Support FSF-style specification of
7124         match subexpression when applied to a buffer.
7125
7126 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7127
7128         * event-stream.c (is_scrollbar_event): add missing semicolon
7129
7130 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7131
7132         * Makefile.in.in: Use TAR macro instead of hardcoding
7133           tar.  Allows use of GNU tar instead of system tar
7134
7135 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7136
7137         * event-stream.c (is_scrollbar_event): add missing semicolon
7138
7139 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7140
7141         * XEmacs 21.4.3 "Academic Rigor" is released.
7142
7143 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7144
7145         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7146
7147 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7148
7149         * buffer.c (Vcase_fold_search): Remove obsolete
7150           comment about non ASCII case-fold-search.  This
7151           bug has been fixed by case-table changes.
7152
7153 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7154
7155         * event-msw.c: Restore include of events-mod.h.
7156
7157 2001-04-22   zhaoway  <zw@debian.org>
7158
7159         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7160         !HAVE_SCROLLBARS.
7161
7162 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7163
7164         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7165
7166 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7167
7168         * mule-charset.c (Fmake_charset): Add missing else.
7169
7170 2001-04-23  Ben Wing  <ben@xemacs.org>
7171
7172         * event-msw.c (FAKE_MOD_QUIT):
7173         * event-msw.c (mswindows_dequeue_dispatch_event):
7174         * event-msw.c (mswindows_wnd_proc):
7175         * event-msw.c (emacs_mswindows_quit_p):
7176         Get critical quit working.
7177
7178 2001-05-05  Ben Wing  <ben@xemacs.org>
7179
7180         * console-msw.h:
7181         * device-msw.c:
7182         * device-msw.c (mswindows_get_default_margin):
7183         * frame-msw.c (mswindows_size_frame_internal):
7184         * frame-msw.c (msprinter_init_frame_1):
7185         * frame-msw.c (vars_of_frame_mswindows):
7186         Change top/bottom margin defaults to 0.5 inches.
7187
7188 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7189
7190         Fix link error with gcc 3.0 on Linux.
7191         * terminfo.c (UP): Remove.
7192         * terminfo.c (BC): Remove.
7193         * terminfo.c (PC): Remove.
7194         They weren't used, and in any case, these symbols should be
7195         defined in the *library*.
7196
7197 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7198
7199         * s/aix4.h: Fix crash with xlc -O3.
7200         Improve comment explaining how -O3 works.
7201
7202 2001-04-15  Ben Wing  <ben@xemacs.org>
7203
7204         * event-stream.c:
7205         * event-stream.c (Fnext_event):
7206         * event-stream.c (is_scrollbar_event):
7207         * event-stream.c (execute_command_event):
7208         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7209         crash' problem.  His fix introduces other problems.  We filter
7210         out scrollbar events specifically, making them somewhat invisible
7211         to command-building, and not appearing in `this-command-keys'.
7212         More work is still needed (see comments in event-stream.c), but
7213         this fixes all the major problems.
7214
7215 2001-04-20  Ben Wing  <ben@xemacs.org>
7216
7217         * .cvsignore: Added stuff for Windows.
7218
7219 2001-04-28  Ben Wing  <ben@xemacs.org>
7220
7221         * buffer.c (Ferase_buffer):
7222         * editfns.c (buffer_insert1):
7223         * editfns.c (Finsert_before_markers):
7224         * editfns.c (Finsert_string):
7225         * editfns.c (Finsert_char):
7226         * editfns.c (Fdelete_region):
7227         * editfns.c (Fwiden):
7228         * editfns.c (Fnarrow_to_region):
7229         remove bogus lines setting zmacs_region_stays to 0.
7230         
7231 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7232
7233         * process-unix.c (unix_open_network_stream): If connect() fails
7234         invalidate file descriptor after closing it.
7235
7236 2001-03-08  Mike Alexander  <mta@arbortext.com>
7237
7238         * event-msw.c (mswindows_need_event_in_modal_loop):
7239         Don't dispatch a message if we didn't get one.
7240         (mswindows_need_event):
7241         Terminate the correct process when one exits instead of the first
7242         one on Vprocess_list and look for process termination when in
7243         mswindows_protect_modal_loop.
7244
7245 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7246
7247         * XEmacs 21.4.1 "Copyleft" is released.
7248
7249 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7250
7251         * input-method-motif.c (XIM_delete_frame): New callback.
7252         (XIM_init_frame): Register it.
7253
7254 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7255
7256         * XEmacs 21.4.0 "Solid Vapor" is released.
7257
7258 2001-04-15  Ben Wing  <ben@xemacs.org>
7259
7260         * cmdloop.c (call_command_loop):
7261         Fix braino in bit-rotting code.
7262         
7263 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7264
7265         * extents.c (Fset_extent_endpoints): Force creation of extent info
7266         in buffer_or_string.
7267
7268         * extents.c (process_extents_for_insertion_mapper): Correctly
7269         check for open-open zero-length extents.
7270
7271 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7272
7273         * lisp.h: New typedefs Memory_count, Element_count.
7274         * regex.c:
7275         * regex.h:
7276         Sign-compare warning elimination: several unsigned -> signed.
7277         Based on work by Ben Wing <ben@xemacs.org>.
7278
7279 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7280
7281         * XEmacs 21.2.47 "Zephir" is released.
7282
7283 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7284
7285         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7286
7287 2001-04-03  Mike Sperber <mike@xemacs.org>
7288
7289         * search.c: Revert previous patch due because of release.
7290
7291 2001-03-30  Ben Wing  <ben@xemacs.org>
7292
7293         * s\cygwin32.h:
7294         Add missing killpg prototype.
7295
7296         * elhash.c:
7297         Add a comment about fixing problems when a new entry is added
7298         while mapping.
7299
7300         * frame-msw.c (mswindows_init_frame_1):
7301         Fix compile warnings.
7302
7303         * menubar.c (vars_of_menubar):
7304         Provide `menu-accelerator-support' to indicate that we properly
7305         support %_ in menu specifications, so that package code can
7306         conditionalize on this (and remove %_ from menu specifications
7307         on older versions).
7308
7309         * event-msw.c:
7310         * scrollbar-msw.c:
7311         * scrollbar-msw.c (can_scroll):
7312         * scrollbar-msw.h:
7313         Fix handling of mouse wheel under Windows to follow standards --
7314         now scrolls window under pointer, not selected window.
7315
7316 2001-03-31  Mike Sperber <mike@xemacs.org>
7317
7318         * search.c (Freplace_match): Support FSF-style specification of
7319         match subexpression when applied to a buffer.
7320
7321 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7322
7323         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7324         function to modify KEYMAP, so map over a copy of the hash table.
7325
7326 2001-03-21  Martin Buchholz <martin@xemacs.org>
7327
7328         * XEmacs 21.2.46 "Urania" is released.
7329
7330 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7331
7332         * realpath.c (xrealpath): Make file-truename work with symlinks to
7333         /cygdrive paths on cygwin. Always lowercase drive-letters on
7334         native windows.
7335         (cygwin_readlink): Don't try to find canonical filename unless
7336         file exists.
7337
7338 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7339
7340         * ChangeLog: Log GTK merge.
7341
7342         * dumper.c:
7343         * select-x.c:
7344         * specifier.c:
7345         * symeval.h:
7346         Revert gratuitous whitespace changes from GTK merge.
7347
7348         * emacs.c: Document end of complex #ifdef @ l. 1495.
7349
7350
7351 2001-03-12  Andy Piper  <andy@xemacs.org>
7352
7353         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7354         have to do likewise.
7355
7356 2001-03-12  Andy Piper  <andy@xemacs.org>
7357
7358         * sysdep.c: we only support mingw now.
7359
7360 2001-03-09  Andy Piper  <andy@xemacs.org>
7361
7362         * unexcw.c (copy_executable_and_dump_data_section): making approx
7363         overrun a warning only.
7364
7365 2001-03-10  William M. Perry  <wmperry@aventail.com>
7366
7367         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7368         satisfy Stephen's identical-after-cpp plea.
7369
7370 2001-03-02  Ben Wing  <ben@xemacs.org>
7371
7372         * cmds.c:
7373         * cmds.c (Fforward_char):
7374         * syntax.c:
7375         * window.c:
7376
7377         Augment documentation of the most common motion commands to make
7378         note of the shifted-motion support.
7379         
7380 2001-03-02  Ben Wing  <ben@xemacs.org>
7381
7382         * nt.c (mswindows_fstat):
7383         * nt.c (mswindows_stat):
7384         * search.c (boyer_moore):
7385         Fix compile warnings under Windows.
7386         
7387         * sysdep.c (sys_readdir):
7388         Fix buggy filename-conversion code under Mule.
7389
7390 2001-03-09  William M. Perry  <wmperry@aventail.com>
7391
7392         * Makefile.in.in:
7393         * config.h.in:
7394         * console.c:
7395         * console.h:
7396         * device.c:
7397         * device.h:
7398         * dragdrop.c:
7399         * emacs.c:
7400         * event-stream.c:
7401         * events.c:
7402         * events.h:
7403         * faces.c:
7404         * frame.h:
7405         * general-slots.h:
7406         * glyphs.c:
7407         * gutter.c:
7408         * inline.c:
7409         * lisp.h:
7410         * lrecord.h:
7411         * make-src-depend:
7412         * redisplay-output.c:
7413         * redisplay.c:
7414         * symsinit.h:
7415         * sysfile.h:
7416         * toolbar.c:
7417         * window.c:
7418         The Great GTK Merge.
7419
7420         * ChangeLog.GTK:
7421         * console-gtk.c:
7422         * console-gtk.h:
7423         * device-gtk.c:
7424         * emacs-marshals.c:
7425         * emacs-widget-accessors.c:
7426         * event-gtk.c:
7427         * frame-gtk.c:
7428         * gccache-gtk.c:
7429         * gccache-gtk.h:
7430         * glade.c:
7431         * glyphs-gtk.c:
7432         * glyphs-gtk.h:
7433         * gtk-glue.c:
7434         * gtk-xemacs.c:
7435         * gtk-xemacs.h:
7436         * gui-gtk.c:
7437         * gui-gtk.h:
7438         * menubar-gtk.c:
7439         * native-gtk-toolbar.c:
7440         * objects-gtk.c:
7441         * objects-gtk.h:
7442         * redisplay-gtk.c:
7443         * scrollbar-gtk.c:
7444         * scrollbar-gtk.h:
7445         * select-gtk.c:
7446         * toolbar-gtk.c:
7447         * ui-byhand.c:
7448         * ui-gtk.c:
7449         * ui-gtk.h:
7450         The Great GTK Merge: new files.
7451
7452 2001-02-26  Ben Wing  <ben@xemacs.org>
7453
7454         Reapplied Lstream change.
7455
7456 2001-02-26  Ben Wing  <ben@xemacs.org>
7457
7458         Undid the last change, since it is more controversial than I
7459         thought.  It should be back in at some point soon.
7460         
7461 2001-02-25  Ben Wing  <ben@xemacs.org>
7462
7463         * buffer.c:
7464         * callproc.c (Fold_call_process_internal):
7465         * event-msw.c (ntpipe_slurp_reader):
7466         * event-msw.c (ntpipe_shove_writer):
7467         * event-msw.c (winsock_reader):
7468         * event-msw.c (winsock_writer):
7469         * file-coding.c:
7470         * file-coding.c (detect_eol_type):
7471         * file-coding.c (detect_coding_type):
7472         * file-coding.c (determine_real_coding_system):
7473         * file-coding.c (Fdetect_coding_region):
7474         * file-coding.c (decoding_reader):
7475         * file-coding.c (decoding_writer):
7476         * file-coding.c (mule_decode):
7477         * file-coding.c (Fdecode_coding_region):
7478         * file-coding.c (encoding_reader):
7479         * file-coding.c (encoding_writer):
7480         * file-coding.c (mule_encode):
7481         * file-coding.c (Fencode_coding_region):
7482         * file-coding.c (detect_coding_sjis):
7483         * file-coding.c (decode_coding_sjis):
7484         * file-coding.c (encode_coding_sjis):
7485         * file-coding.c (detect_coding_big5):
7486         * file-coding.c (decode_coding_big5):
7487         * file-coding.c (encode_coding_big5):
7488         * file-coding.c (detect_coding_ucs4):
7489         * file-coding.c (decode_coding_ucs4):
7490         * file-coding.c (encode_coding_ucs4):
7491         * file-coding.c (detect_coding_utf8):
7492         * file-coding.c (decode_coding_utf8):
7493         * file-coding.c (encode_coding_utf8):
7494         * file-coding.c (detect_coding_iso2022):
7495         * file-coding.c (decode_coding_iso2022):
7496         * file-coding.c (encode_coding_iso2022):
7497         * file-coding.c (decode_coding_no_conversion):
7498         * file-coding.c (encode_coding_no_conversion):
7499         * glyphs-x.c (write_lisp_string_to_temp_file):
7500         * gpmevent.c (tty_get_foreign_selection):
7501         * lisp.h:
7502         * lstream.c:
7503         * lstream.c (Lstream_flush_out):
7504         * lstream.c (Lstream_adding):
7505         * lstream.c (Lstream_write_1):
7506         * lstream.c (Lstream_write):
7507         * lstream.c (Lstream_raw_read):
7508         * lstream.c (Lstream_read_more):
7509         * lstream.c (Lstream_read):
7510         * lstream.c (Lstream_unread):
7511         * lstream.c (Lstream_fputc):
7512         * lstream.c (stdio_reader):
7513         * lstream.c (stdio_writer):
7514         * lstream.c (filedesc_reader):
7515         * lstream.c (filedesc_writer):
7516         * lstream.c (lisp_string_reader):
7517         * lstream.c (struct fixed_buffer_stream):
7518         * lstream.c (make_fixed_buffer_input_stream):
7519         * lstream.c (make_fixed_buffer_output_stream):
7520         * lstream.c (fixed_buffer_reader):
7521         * lstream.c (fixed_buffer_writer):
7522         * lstream.c (struct resizing_buffer_stream):
7523         * lstream.c (resizing_buffer_writer):
7524         * lstream.c (dynarr_writer):
7525         * lstream.c (lisp_buffer_reader):
7526         * lstream.c (lisp_buffer_writer):
7527         * lstream.h:
7528         * lstream.h (lstream_implementation):
7529         * lstream.h (struct lstream):
7530         * md5.c (Fmd5):
7531         * process-nt.c (nt_send_process):
7532         * process-unix.c (unix_send_process):
7533         
7534         Correct Lstream lossage due to mixing of signed and unsigned
7535         quantities.  All Lstream uses of size_t and ssize_t are now a
7536         single signed data type Lstream_data_count.  This fixes problems
7537         under Windows with sending large quantities of data to a process,
7538         and may well fix other subtle bugs.
7539
7540 2001-02-23  Martin Buchholz <martin@xemacs.org>
7541
7542         * XEmacs 21.2.45 "Thelxepeia" is released.
7543
7544 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7545
7546         * lisp-union.h (XSETINT): 
7547         (XSETCHAR):
7548         (XSETOBJ): 
7549         Reverse previous change of 2001-02-06.
7550
7551 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7552
7553         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7554         buffers.
7555         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7556         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7557         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7558         * regex.c (POS_AS_IN_BUFFER): removed
7559         * regex.c (re_search_2):
7560         * regex.c (re_match_2):
7561         Don't use an offset of 1 when calculating buffer positions, since
7562         `BI_BUF_BEGV' does it already.
7563
7564 2001-02-18  Wim Dumon  <wim@easics.be>
7565
7566         * insdel.c (prepare_to_modify_buffer): Also check for
7567         supersession when clash-detection is enabled. 
7568
7569 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7570
7571         * regex.c (re_match_2_internal):
7572         Convert temp characters from 'const unsigned char' to 're_char'.
7573         Fix crashing bug with extended characters under mule.
7574         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7575         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7576         font-lock, pdump, and new syntax-table code.
7577         * syntax.c (find_start_of_comment):
7578         (find_end_of_comment):
7579         (forward-comment):
7580         Fix crashing bugs involving moving beyond end of buffer.
7581         * syntax.c (find_start_of_comment):
7582         Fixed logic to allow proper detection of cases where the same
7583         character is used to end both a two-char comment start and a
7584         two-char comment end sequence. Fixes `(forward-comment -1)'.
7585         * syntax.c (find_start_of_comment):
7586         Return position just past last comment-end character for all cases
7587         (previously was only done for two-char comment-end sequences).
7588         * syntax.c (forward-comment):
7589         Take value returned from `find_end_of_comment', rather than
7590         incrementing it.
7591         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7592         Properly deal with BUFFERP (syntax_cache.object)
7593
7594 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7595
7596         * alloc.c (Fgarbage_collect): 
7597         * alloc.c (make_bit_vector_from_byte_vector):
7598         -Wsign-compare-correctness.
7599
7600 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7601
7602         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7603         (XSETCHAR): Likewise.
7604         (XSETOBJ): Likewise.
7605
7606 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7607
7608         * mule-canna.c (canna-func-delete_previous): 
7609         Rename to canna-func-delete-previous.
7610
7611 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7612
7613         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7614
7615 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7616
7617         * font-lock.c (find_context): Fix C++ compile errors introduced by
7618         recent patch
7619
7620 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7621
7622         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7623         pragma, but earlier ones barf on the same pragma.
7624
7625 2001-02-06  Mike Sperber <mike@xemacs.org>
7626
7627         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7628         `configure-mule-lisp-directory'.
7629
7630 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7631
7632         Make sure dump-id.c is compiled in the same way as other .c's.
7633         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7634         * dump-id.h: Remove.
7635         * emacs.c: Move dump-id.h into dumper.h.
7636         * dumper.h: Move dump-id.h into dumper.h.
7637         * Makefile.in.in:
7638         Use standard .c.o rule for building dump-id.o.
7639         Remove preprocessor flags from link command.
7640         Add dump-id.o to ${otherobjs} if PDUMP.
7641
7642 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7643
7644         Port FSF 20.7 syntax table improvements.
7645         * syntax.c.
7646         * syntax.h.
7647
7648         Fixups for new syntax table stuff.
7649         * dired.c: Include syntax.c.
7650         (Fdirectory_files): Initialize regex_match_object and
7651         regex_emacs_buffer.
7652         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7653         and Fget_char_property.
7654
7655         Use ported FSF 20.7 syntax table improvements.
7656         * font-lock.c.
7657         * regex.c.
7658         * search.c.
7659         
7660 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7661
7662         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7663         Unixware's enum boolean from sys/types.h.
7664
7665 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7666
7667         Fix support for building with latest Purify.
7668         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7669         (PURIFY_FLAGS): Likewise.
7670
7671 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7672
7673         * fileio.c (lisp_string_set_file_times): New.
7674         * fileio.c (Fcopy_file): Use it.
7675         Fixes bug:
7676         (copy-file filename non-ascii-filename t t)
7677         ==> No such file or directory, non-ascii-filename
7678
7679 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7680
7681         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7682         USHRT_MAX seems clearer than ~0 anyways.
7683
7684 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7685
7686         dumper improvements.  Inspired by Olivier.
7687         * dumper.c (pdump_max_align): New.
7688         * dumper.c (pdump_add_entry): Use pdump_max_align.
7689         * dumper.c (pdump_get_entry_list): Likewise.
7690         * dumper.c (pdump_scan_by_alignment): Likewise.
7691         Don't iterate through unnecessary alignments.
7692         * dumper.c (pdump_file_get): No need to align result of malloc().
7693         * dumper.c (pdump_mallocadr): Remove.  
7694         The result of malloc() is guaranteed to be maximally aligned.
7695         * dumper.c: s/elmt/elt/g;
7696         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7697         * dumper.c (pdump_alert_undump_object): Likewise.
7698         * dumper.c (pdump_align_table): 
7699         Don't support alignments > 64.
7700         Store ALIGNOF's, not shift counts, in table.
7701
7702 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7703
7704         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7705         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7706         * systime.h: Use HAVE_UTIME.
7707         * sysdep.c (struct utimbuf): Remove.
7708         * sysdep.c (set_file_times): Prefer utime() to utimes().
7709         * config.h.in (HAVE_UTIME): New.
7710         * config.h.in (HAVE_UTIME_H): Remove.
7711         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7712
7713 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7714
7715         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7716
7717 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7718
7719         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7720
7721 2001-02-08  Martin Buchholz <martin@xemacs.org>
7722
7723         * XEmacs 21.2.44 "Thalia" is released.
7724
7725 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7726
7727         Fixes crashes in kill-emacs on some systems.
7728         * process-unix.c (unix_kill_child_process):
7729         It's OK for kill() to fail with ESRCH.
7730
7731 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7732
7733         Contortions to make .gdbinit tricks work on most systems.
7734         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7735         * alloc.c (dbg_valmask): Make non-const.
7736         * alloc.c (dbg_typemask): Make non-const.
7737         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7738         * alloc.c (dbg_valbits): Make non-const.
7739         * alloc.c (dbg_gctypebits): Make non-const.
7740         * .gdbinit (decode_object): Make it work with AIX cc.
7741
7742 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7743
7744         * elhash.c (make_general_lisp_hash_table):
7745         Use simpler and more efficient calloc to clear entries.
7746
7747 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7748
7749         * window.c (window_scroll): Work around an AIX C compiler bug.
7750         Fixes 'scroll-up' does nothing problem with xlC.
7751
7752 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7753
7754         * .gdbinit: Remove obsolete comment.
7755
7756 2001-01-31  Mike Alexander  <mta@arbortext.com>
7757
7758         * select.c (Fown_selection_internal): Set owned_p for device
7759         method correctly.
7760
7761 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7762
7763         Port to g++ 2.97.
7764         "not" cannot be used as a macro name as it is an operator in C++
7765         * config.h.in: Stop #defining `not'.
7766         * chartab.c (check_category_char): not ==> not_p
7767         * chartab.h: Likewise.
7768         * regex.c (re_match_2_internal): Likewise.
7769
7770 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7771
7772         * lisp-disunion.h: Fix up comments.
7773
7774 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7775
7776         * keymap.c (define_key_check_and_coerce_keysym):
7777         (syms_of_keymap):
7778         Support mouse-6 and mouse-7 bindings in the obvious way.
7779
7780 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7781
7782         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7783
7784 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7785
7786         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7787         Previous patch missed DEFVAR_INT_MAGIC.
7788         Make sure future DEFVAR_foo use correct types.
7789         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7790         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7791         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7792         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7793         * (DEFVAR_INT): Likewise.
7794         * redisplay.c (vertical_clip): Should be of type Fixnum.
7795         * redisplay.c (horizontal_clip): Likewise.
7796         * lisp.h (dump_add_opaque_int): New.
7797         (dump_add_opaque_fixnum): New.
7798
7799 2001-01-29  Andy Piper  <andy@xemacs.org>
7800
7801         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7802         since they can be eval'ed
7803
7804 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7805
7806         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7807         Oops, XEmacs redefines `class'.  Use `typename' instead.
7808
7809 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7810
7811         * dumper.c: Fix C++ compile errors.
7812
7813 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7814
7815         * tparam.c: Use correct prototypes.
7816
7817 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7818
7819         * sysproc.h: #include util.h for NetBSD's openpty.
7820
7821 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7822
7823         More 64-bit correctness.
7824         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7825         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7826         Fix up comments.
7827         This finally finishes the 64-bit SGI port.
7828         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7829         * symbols.c: Fix up comments and type casts.
7830         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7831         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7832         * symeval.h (Fixnum): New type.
7833         * symeval.h (symbol_value_type): Fix up comment.
7834
7835         * commands.h:
7836         * nt.c:
7837         * emacs.c:
7838         * data.c:
7839         * redisplay.c:
7840         * abbrev.c:
7841         * dired-msw.c:
7842         * event-Xt.c:
7843         * eldap.c:
7844         * window.c:
7845         * sound.c:
7846         * event-stream.c:
7847         * eval.c:
7848         * buffer.c:
7849         * mule-canna.c: A million DEFVAR_INTs here...
7850         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7851         * extents.c:
7852         * cmdloop.c:
7853         * lisp.h:
7854         * select-x.c:
7855         * console-x.h:
7856         * event-msw.c:
7857         * mule-wnnfns.c:
7858         * hpplay.c:
7859         * ralloc.c:
7860         * alloc.c:
7861         * keymap.c:
7862         * profile.c:
7863         s/int/Fixnum/g in DEFVAR_INT declarations.
7864
7865 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7866
7867         Port pdump to SGI alignment-sensitive environment.
7868         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7869         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7870         properly aligned.
7871         Define and use aligned reading and writing macros.
7872         Use buffered stdio instead of posix i/o for faster dumping.
7873         Eliminate kludgy 256 byte space for header.
7874         Read and write from dump file using structs for alignment safety.
7875         * dumper.c (pdump_align_stream): New.
7876         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7877         * dumper.c (PDUMP_READ_ALIGNED): New.
7878         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7879         * dumper.c (pdump_static_Lisp_Object): New struct.
7880         * dumper.c (pdump_static_pointer): New struct.
7881         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7882         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7883         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7884         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7885
7886         * dumper.c (pdump_backtrace):
7887         * dumper.c (pdump_get_indirect_count):
7888         * dumper.c (pdump_register_object):
7889         * dumper.c (pdump_register_struct):
7890         * dumper.c (pdump_reloc_one):
7891         * dumper.c (pdump_scan_by_alignment):
7892         * dumper.c (pdump_dump_from_root_struct_ptrs):
7893         * dumper.c (pdump_dump_opaques):
7894         * dumper.c (pdump_dump_rtables):
7895         * dumper.c (pdump_dump_from_root_objects):
7896         * dumper.c (pdump):
7897         * dumper.c (pdump_load_finish):
7898         Use aligned reading and writing.
7899
7900         * dumper.c (pdump_free): Make static.
7901         * dumper.c (pdump_hFile): Likewise.
7902         * dumper.c (pdump_hMap): Likewise.
7903
7904 2001-01-26  Martin Buchholz <martin@xemacs.org>
7905
7906         * XEmacs 21.2.43 "Terspichore" is released.
7907
7908 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7909
7910         Type fiddling for window_config.saved_windows_count
7911         * window.c (struct window_config): 
7912         Make saved_windows_count member unsigned.
7913         * window.c (sizeof_window_config_for_n_windows): 
7914         Make parameter unsigned.
7915         * window.c (mark_window_config):
7916         * window.c (window_config_equal):
7917         * window.c (free_window_configuration):
7918         * window.c (Fset_window_configuration):
7919         * window.c (count_windows):
7920         * window.c (Fcurrent_window_configuration):
7921         * window.c (reinit_vars_of_window):
7922         Update all callers and users.
7923
7924 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7925
7926         Alignment correctness for flexible arrays.
7927         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7928         Make alignment-correct. Add interesting comments.
7929         * alloc.c (size_vector):
7930         * alloc.c (make_vector_internal):
7931         * alloc.c (make_bit_vector_internal):
7932         * alloc.c (sweep_bit_vectors_1):
7933         * fns.c (size_bit_vector):
7934         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7935         * window.c (sizeof_window_config_for_n_windows): 
7936         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7937
7938 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7939
7940         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7941
7942 2001-01-23  Andy Piper  <andy@xemacs.org>
7943
7944         * select.c (Fown_selection_internal): pass owned_p
7945
7946         * select-msw.c (mswindows_own_selection): New Signature.
7947
7948         * console.h (struct console_methods): add owned_p to
7949         _own_selection.
7950
7951         * select-x.c (x_own_selection): pass owned_p
7952         (hack_motif_clipboard_selection): use owned_p
7953         (vars_of_select_x): new variable -
7954         x_selection_strict_motif_ownership.
7955
7956 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7957
7958         * specifier.h (specifier_data_offset): Remove pointless parens.
7959         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7960
7961 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7962
7963         Make Lisp_Object sizeof methods be alignment-correct.
7964         pdump must restore objects to the same alignment as the C compiler
7965         assumes.  It really matters on SGIs.
7966         * lstream.c (aligned_sizeof_lstream): New.
7967         (sizeof_lstream): Use aligned_sizeof_lstream.
7968         (Lstream_new): Likewise.
7969         * opaque.c (aligned_sizeof_opaque): New.
7970         (sizeof_opaque): Use aligned_sizeof_opaque.
7971         (make_opaque): Likewise.
7972         * specifier.c (aligned_sizeof_specifier): New.
7973         (sizeof_specifier): Use aligned_sizeof_specifier.
7974         (make_specifier_internal): Likewise.
7975
7976 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7977
7978         * lstream.h (struct lstream): Use max_align_t for trailing data.
7979         * specifier.h (struct Lisp_Specifier): Likewise.
7980
7981 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7982
7983         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7984         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7985         (CCL_SUSPEND): Likewise.
7986         (CCL_INVALID_CMD): Likewise.
7987         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7988         (ccl_driver): Likewise.
7989         (CCL_WRITE_CHAR): Macro hygiene.
7990         (CCL_WRITE_STRING): Macro hygiene.
7991
7992 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7993
7994         Port "portable" dumper to SunOS 4 and HP-UX.
7995         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7996         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7997         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7998
7999 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8000
8001         * lisp.h (ALIGNOF): A better definition for C++.
8002
8003 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8004
8005         Macro hygiene.
8006         Fix printf warnings: int format, long int arg.
8007         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8008         (PUSH_FAILURE_POINT): Use correct printf formats.
8009         (POP_FAILURE_POINT): Use correct printf formats.  
8010         Use do {...} while (0)
8011
8012 2001-01-20  Martin Buchholz <martin@xemacs.org>
8013
8014         * XEmacs 21.2.42 "Poseidon" is released.
8015
8016 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8017
8018         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8019
8020 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8021
8022         De-kludgify FIXED_TYPE free list frobbing.
8023         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8024         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8025         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8026         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8027         * alloc.c (LRECORD_FREE_P): New.
8028         * alloc.c (MARK_LRECORD_AS_FREE): New.
8029         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8030         * alloc.c (STRUCT_FREE_P): Deleted.
8031         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8032         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8033         * alloc.c (STRING_CHARS_FREE_P): New.
8034         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8035         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8036         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8037         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8038         * alloc.c (resize_string): Use new definitions.
8039         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8040         * alloc.c (verify_string_chars_integrity): Use new definitions.
8041         * alloc.c (compact_string_chars): Use new definitions.
8042         * alloc.c: Update monster comments.
8043         * lrecord.h (lrecord_type): Add some new lrecord types for
8044         alloc.c's use.
8045
8046 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8047
8048         Improve alignment hackery.
8049         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8050         (max_align_t): Moved from opaque.h - general purpose.
8051         (ALIGN_PTR): Use size_t, not long.
8052         * opaque.h (max_align_t): Move to lisp.h.
8053
8054 2001-01-18  Norbert Koch  <nk@LF.net>
8055
8056         * gui.h: Fix and add prototypes to fix build problems.
8057
8058 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8059
8060         temacs is going away, so `dump-temacs' is now a bad name.
8061         * .dbxrc (dump-temacs): Rename to `dmp'.
8062         * .gdbinit (dump-temacs): Rename to `dmp'.
8063
8064 2001-01-17  Andy Piper  <andy@xemacs.org>
8065
8066         * glyphs.c (print_image_instance): comment to make martin happy.
8067
8068         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8069         change.
8070
8071         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8072         activation.
8073         (mswindows_tab_control_redisplay): warning suppression.
8074
8075         * glyphs-widget.c (widget_update): re-write to cope with updated
8076         items.
8077         (widget_instantiate): use new gui_item functions.
8078         (tab_control_update): deleted.
8079         (progress_gauge_update): deleted.
8080         (image_instantiator_progress_guage): take out update reference.
8081         (image_instantiator_tree_view): ditto.
8082         (image_instantiator_tab_control): ditto.
8083
8084         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8085         Right the new way.
8086         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8087         return whether anything was changed.
8088         (update_gui_item_keywords): as it sounds.
8089
8090         * gui.h: declare widget_gui_parse_item_keywords.
8091
8092         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8093         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8094
8095 2001-01-17  Martin Buchholz <martin@xemacs.org>
8096
8097         * XEmacs 21.2.41 "Polyhymnia" is released.
8098
8099 2001-01-16  Didier Verna  <didier@xemacs.org>
8100
8101         * glyphs.c (image_instantiate): don't use fallbacks when
8102         instantiating a face's background pixmap by inheritance.
8103
8104 2001-01-14  Mike Sperber <mike@xemacs.org>
8105
8106         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8107         Conditionalize accordingly.
8108
8109 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8110
8111         * dumper.c (pdump_file_get): Fix a compiler warning.
8112
8113 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8114
8115         Make Purify happy when pdumping.
8116         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8117         iniitalizing all bits of new lisp object memory.
8118         * symbols.c (Fmake_local_variable): Likewise.
8119         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8120         * symbols.c (Fdefvaralias): Likewise.
8121         * mule-charset.c (vars_of_mule_charset): Likewise.
8122
8123 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8124         Add the `-nd' flag when running pre-dump operations under the debugger.
8125         * .dbxrc (run-temacs): Add `-nd'.
8126         * .dbxrc (update-elc): Likewise.
8127         * .dbxrc (dump-temacs): Likewise.
8128         * .gdbinit (run-temacs): Likewise.
8129         * .gdbinit (check-temacs): Likewise.
8130         * .gdbinit (update-elc): Likewise.
8131         * .gdbinit (dump-temacs): Likewise.
8132
8133 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8134
8135         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8136         export OBJECT_MODE=64
8137         configure --pdump --use-union-type=no
8138         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8139         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8140
8141         * miscplay.c (sndcnv8U_2mono):
8142         Avoid two uses of `++' in the same expression.
8143         Suppresses a GCC warning.
8144
8145 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8146
8147         Make sure future compilers don't miscompile alloc.c.
8148         * alloc.c:
8149         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8150         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8151
8152 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8153
8154         * dumper.c: A little post-pdump-rename comment fixup.
8155
8156 2001-01-09  Jerry James  <james@eecs.ku.edu>
8157
8158         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8159
8160 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8161
8162         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8163         script:
8164         #!/bin/sh
8165         replace_symbol () {
8166           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8167         }
8168
8169         replace_symbol pdump_wire_lists pdump_weak_object_chains
8170         replace_symbol pdump_wire_list dump_add_weak_object_chain
8171
8172         replace_symbol pdump_wires pdump_root_objects
8173         replace_symbol pdump_wire dump_add_root_object
8174
8175         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8176         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8177
8178         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8179         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8180         replace_symbol dumpstructinfo pdump_root_struct_ptr
8181         replace_symbol dumpstruct dump_add_root_struct_ptr
8182
8183         replace_symbol dumpopaque dump_add_opaque
8184         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8185         replace_symbol dumpopaqueinfos pdump_opaques
8186         replace_symbol dumpopaqueinfo pdump_opaque
8187
8188         replace_symbol nb_structdump nb_root_struct_ptrs
8189         replace_symbol nb_opaquedump nb_opaques
8190
8191         replace_symbol align_table pdump_align_table
8192         replace_symbol dump_header pdump_header
8193
8194         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8195         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8196
8197
8198 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8199
8200         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8201         optimizing bytecount_to_charcount().
8202
8203 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8204
8205         * config.h.in:
8206         (HAVE_DLFCN_H): Removed.
8207         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8208
8209 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8210
8211         Portable dumper maintainability improvements.
8212         * alloc.c (staticpro):
8213         * alloc.c (staticpro_nodump):
8214         * alloc.c (garbage_collect_1):
8215         * alloc.c (reinit_alloc_once_early):
8216         * alloc.c (init_alloc_once_early):
8217         * alloc.c: Move dumper functions to alloc.c.
8218         * dumper.c (pdump_backtrace):
8219         * dumper.c (pdump_dump_structs):
8220         * dumper.c (pdump_dump_opaques):
8221         * dumper.c (pdump_dump_rtables):
8222         * dumper.c (pdump_dump_wired):
8223         * dumper.c (pdump):
8224         * dumper.c (pdump_load_check):
8225         * dumper.c (pdump_load_finish):
8226         * dumper.c (pdump_file_unmap):
8227         * dumper.c (pdump_file_get):
8228         * dumper.c (pdump_resource_free):
8229         * dumper.c (pdump_resource_get):
8230         * dumper.c (pdump_file_free):
8231         * dumper.c (pdump_file_try):
8232         * dumper.c (pdump_load):
8233         Remove fixed size limits on staticpro(), staticpro_nodump(),
8234         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8235         Remove custom code for dumping lrecord_implementations_table - use
8236         dumpopaque instead.
8237         Remove (most of the) custom code for dumping staticpros - dump it
8238         like any other dynarr.
8239
8240         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8241         * dumper.c: Moved functions from alloc.c.
8242         * alloc.c (dumpstruct): Moved to dumper.c.
8243         * alloc.c (dumpopaque): Likewise.
8244         * alloc.c (pdump_wire): Likewise.
8245         * alloc.c (pdump_wire_list): Likewise.
8246
8247         * lisp.h (Dynarr_sizeof): New.
8248         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8249         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8250         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8251
8252         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8253         * lisp.h (dumpopaque): ditto.
8254         * lisp.h (pdump_wire): ditto.
8255         * lisp.h (pdump_wire_list): ditto.
8256
8257 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8258
8259         * make-src-depend (PrintPatternDeps):
8260         Use `sort' to make output independent of perl version.
8261
8262 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8263
8264         Port to Netbsd 1.5.
8265         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8266         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8267
8268 2001-01-03  Didier Verna  <didier@xemacs.org>
8269
8270         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8271         that `focus_frame' is alive before thinking of calling
8272         `redisplay_redraw_cursor' on it.
8273
8274 2001-01-08  Martin Buchholz <martin@xemacs.org>
8275
8276         * XEmacs 21.2.40 is released.
8277
8278 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8279
8280         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8281
8282 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8283
8284         * alloc.c (dbg_valmask): Make const.
8285         * alloc.c (dbg_typemask): Make const.
8286         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8287         * alloc.c (dbg_valbits): Make const.
8288         * alloc.c (dbg_gctypebits): Make const.
8289
8290 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8291
8292         * redisplay-x.c (x_bevel_area):
8293         redisplay.h (struct rune):
8294         Typo fixes in comments.
8295
8296 2001-01-05  Andy Piper  <andy@xemacs.org>
8297
8298         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8299         adjustment.
8300
8301         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8302
8303 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8304
8305         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8306
8307         * mule-ccl.c (stack_idx_of_map_multiple):
8308         Non const global data must not be initialized!
8309         Found by MIYASHITA Hisashi.
8310
8311 2001-01-02  Andy Piper  <andy@xemacs.org>
8312
8313         * frame.c (change_frame_size): make sure frame size is always
8314         marked as changed.
8315
8316         * glyphs.c (image_instance_layout): minor code reuse.
8317
8318         * window.c (Fcurrent_window_configuration): revert previous
8319         change.
8320
8321 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8322
8323         * glyphs.h:
8324         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8325
8326 2000-12-31  Andy Piper  <andy@xemacs.org>
8327
8328         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8329         when widget gets unmapped.
8330
8331         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8332         function. Make sure widgets losing focus don't just drop it.
8333         (handle_focus_event_1): record the widget with focus.
8334
8335 2000-12-31  Andy Piper  <andy@xemacs.org>
8336
8337         * window.c (allocate_window): use
8338         make_image_instance_cache_hash_table.
8339         (make_dummy_parent): ditto.
8340         (Fset_window_configuration): ditto.
8341
8342         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8343
8344         * glyphs.c (process_image_string_instantiator): use
8345         INSTANTIATOR_TYPE.
8346         (get_image_instantiator_governing_domain): ditto.
8347         (normalize_image_instantiator): ditto.
8348         (instantiate_image_instantiator): ditto.
8349         (make_image_instance_1): ditto.
8350         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8351         (instantiator_eq_equal): new function for use with instance hash
8352         tables.
8353         (instantiator_eq_hash): ditto.
8354         (make_image_instance_cache_hash_table): create a suitable hash
8355         table for storing image instances.
8356
8357         * elhash.h (hash_table_weakness): new internal weakness type
8358         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8359         declare new functions.
8360
8361         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8362         another weakness type for glyphs.
8363         (make_standard_lisp_hash_table): new function split out from
8364         make_general_lisp_hash_table.
8365         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8366         (hash_table_instantiate): ditto.
8367         (Fmake_hash_table): ditto.
8368
8369 2000-12-31  Martin Buchholz <martin@xemacs.org>
8370
8371         * XEmacs 21.2.39 is released.
8372
8373 2000-12-29  Andy Piper  <andy@xemacs.org>
8374
8375         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8376
8377         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8378         the frame has changed so that we pick up geometry changes such as
8379         menubar visibility.
8380
8381 2000-12-28  Andy Piper  <andy@xemacs.org>
8382
8383         * lastfile.c (my_ebss): make a char array so we can pad the
8384         bss. Fixes cygwin unexec.
8385
8386         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8387
8388 2000-12-26  Andy Piper  <andy@xemacs.org>
8389
8390         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8391         comments and try and be more precise about a non-/SIGIO world.
8392         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8393         SIGIO.
8394
8395         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8396         we don't normalize to zero width or height.
8397
8398 2000-12-24  Andy Piper  <andy@xemacs.org>
8399
8400         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8401
8402 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8403
8404         * s/sco5.h: SCO 5 has pty support.
8405
8406 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8407
8408         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8409         input-method-xlib.c contains whole contents of input-method-xfs.c,
8410         so we can use input-method-xlib.c's code for USE_XFONTSET
8411         using #ifdefs.
8412         * input-method-xfs.c: removed.
8413
8414 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8415
8416         * file-coding.h (enum coding_category_type): reorder enumerators to
8417         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8418         (now one greater than largest real coding_category_type enumerator).
8419         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8420         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8421         Fcoding_category_list, Fset_coding_priority_list,
8422         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8423         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8424
8425 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8426
8427         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8428         * redisplay-output.c (redisplay_output_window): Clear top of window
8429         when face is changed.
8430         * redisplay-x.c (x_redraw_exposed_window): Call
8431         redisplay_clear_top_of_window.
8432         * redisplay.h: Publish redisplay_clear_top_of_window.
8433
8434 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8435
8436         * buffer.c (Fkill_buffer): Map over all devices.
8437         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8438         (list_windows): New function.
8439         (list_all_windows): Ditto.
8440         (Freplace_buffer_in_windows): Use them.
8441
8442 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8443
8444         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8445         (Fopen_database): Use `db_create' instead of `db_open'.
8446         (syms_of_database): Initialize Qqueue.
8447
8448 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8449
8450         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8451         buffer_local_face_property.
8452         * buffer.h (struct buffer): New member buffer_local_face_property.
8453         * window.c (Fset_window_buffer):  Mark window's face as changed
8454         when buffer has buffer local face.
8455         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8456         * objects.c (color_after_change): Set buffer_local_face_property
8457         when locale of face specifier is buffer.
8458         * objects.c (font_after_change): Ditto.
8459         * objects.c (face_boolean_after_change): Ditto.
8460         * glyphs.c (image_after_change): Ditto.
8461
8462 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8463
8464         * nt.c (mswindows_fstat): Report file permissions, volume serial
8465         number, etc. Code adapted from FSF Emacs 20.7.
8466
8467 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8468
8469         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8470         of stat when we don't have symbolic links, to make sure
8471         mswindows_stat is called on mswindows.
8472
8473 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8474
8475         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8476
8477 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8478
8479         * doprnt.c (emacs_doprnt_1): More printing fixes.
8480         Make printing of numbers compatible with libc and FSF Emacs.
8481         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8482         Use the system printf to do most of the hard work of formatting,
8483         instead of doprnt_1().
8484         Calculate memory to allocate for format string.
8485         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8486         (doprnt_1): Cleaner code and documentation.
8487
8488 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8489
8490         * Makefile.in.in: Use the loop variable to install headers.
8491
8492 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8493
8494         * window.c (Fsplit_window): Don't invalidate face cache.
8495
8496 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8497
8498         * minibuf.c (Fall_completions): Undo the previous change
8499         which removed checking elements start with space.
8500
8501 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8502
8503         * mule-canna.c: Didier suppression.
8504
8505 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8506
8507         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8508         (warning suppression).  Add English comment translations.
8509
8510 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8511
8512         * unexelfsgi.c (unexec): Better test for mmap failure.
8513
8514 2000-12-05  Martin Buchholz <martin@xemacs.org>
8515
8516         * XEmacs 21.2.38 is released.
8517
8518 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8519
8520         * redisplay.c (bar-cursor): Make a user variable.
8521
8522         * symsinit.h: Add init_postgresql_from_environment.
8523
8524 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8525
8526         * regex.c: Convert to clean C.
8527
8528 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8529
8530         * realpath.c:
8531         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8532         initialization.
8533         (sys_readlink): renamed to system_readlink to avoid conflict with
8534         the other sys_readlink.
8535
8536 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8537
8538         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8539
8540 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8541
8542         * postgresql.c (init_postgresql_from_environment): new function.
8543         (vars_of_postgresql): Move code initializing Lisp variables out and
8544         into init_postgresql_from_environment.
8545         emacs.c (main_1): Call init_postgresql_from_environment if and only
8546         if running a dumped XEmacs.
8547
8548 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8549
8550         * buffer.c: Make find-file-compare-truenames default to true on
8551         windows.
8552
8553         * realpath.c (win32_abs_start):
8554         (cygwin_readlink):
8555         (win32_readlink): New functions.
8556         (xrealpath): Return really real filenames on windows.
8557
8558         * fileio.c (Ffile_truename): Make file-truename work on windows.
8559
8560 2000-11-29  Didier Verna  <didier@xemacs.org>
8561
8562         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8563         * faces.c (update_face_cachel_data): use it.
8564         * faces.c (add_face_cachel): use it. Complete background pixmap
8565         frobbing in face cache if `update_face_cachel_data' has not done so.
8566
8567 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8568
8569         * search.c (string_match_1): Don't set last_thing_searched
8570         when search failed.
8571
8572 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8573
8574         * buffer.c: Include casetab.h
8575         (common_init_complex_vars_of_buffer): Use new case-table object.
8576         * buffer.h: Include casetab.h
8577         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8578         (DOWNCASE_TABLE_OF): Ditto.
8579         * bufslots.h: Remove char-tables and add case-table.
8580         * casetab.c: Include casetab.h
8581         (CASE_TABLE_P): Removed.
8582         (mark_case_table): New function.
8583         (allocate_case_table): New function.
8584         (Fcase_table_p): Use new case-table.
8585         (case_table_char): New function.
8586         (Fget_case_table): Ditto.
8587         (Fput_case_table): Ditto.
8588         (Fput_case_table_pair): Ditto.
8589         (Fcopy_case_table): Ditto.
8590         (Fcurrent_case_table): Return case-table.
8591         (Fstandard_case_table): Return case-table.
8592         (Fset_case_table): Fix doc-string.
8593         (set_case_table): Use case-table
8594         (syms_of_casetab): DEFSUBR new functions.
8595         (complex_vars_of_casetab): Set up standard case-table.
8596         * casetab.h: New file.
8597         * editfns.c: Include casetab.h
8598         (Fcompare_buffer_substrings): Use case-table.
8599         * inline.c: Include casetab.h
8600         * lisp.h: Remove bogus extern.
8601         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8602         * search.c: Include casetab.h
8603         (TRANSLATE_ASCII): Removed.
8604         (TRANSLATE): Unconditionally translate character.
8605         (looking_at_1): Use case-table.
8606         (string_match_1): Ditto.
8607         (fast_string_match): Ditto.
8608         (search_command): Ditto.
8609         (search_buffer): Separate boyer_moore.  Check whether
8610         boyer_moore is possible.
8611         (simple_search): New function.
8612         (boyer_moore): Separated from search_buffer. Translate char.
8613
8614 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8615
8616         * regex.c (RE_TR_ASCII): Removed.
8617         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8618         (PATFETCH): Call PATFETCH_RAW.
8619         (PATFETCH_RAW): Fetch Emchar.
8620         (PATUNFETCH): Decrement charptr.
8621         (GET_BUFFER_SPACE): Rename b to buf_end.
8622         (BUF_PUSH): Ditto.
8623         (BUF_PUSH_2): Ditto.
8624         (BUF_PUSH_3): Ditto.
8625         (EXTEND_BUFFER): Ditto.
8626         (SET_LIST_BIT): Ditto.
8627         (regex_compile): Ditto.  Translate non ASCII char.
8628         (compile_range): Ditto.
8629         (re_search_2): Ditto.
8630         (re_match_2_internal): Compare Emchar.
8631         (bcmp_translate): Ditto.
8632
8633 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8634
8635         * lisp.h (basic char/int typedefs):  comment improvement.
8636
8637 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8638
8639         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8640         unstomp inhibit_site_lisp.  Improve comments.
8641
8642 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8643
8644         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8645
8646 2000-11-28  Andy Piper  <andy@xemacs.org>
8647
8648         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8649         clipped display for windows in the gutter also.
8650         (redisplay_display_boxes_in_window_p): change semantics of return
8651         codes to be more intuitive.
8652
8653         * gutter.h: declare display_boxes_in_gutter_p.
8654
8655         * gutter.c (display_boxes_in_gutter_p): new function for
8656         redisplay.
8657
8658 2000-11-22  Andy Piper  <andy@xemacs.org>
8659
8660         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8661         autodetect domain.
8662
8663 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8664
8665         * callproc.c (Fold_call_process_internal):
8666         * gpm.c (Freceive_gpm_event):
8667         (tty_get_foreign_selection): Might be just warning supression.
8668         * fileio.c (Fwrite_region_internal):
8669         (Fset_visited_file_modtime):
8670         * keymap.c (event_matches_key_specifier_p):
8671         Initialize GCPROed variable.
8672
8673         * menubar-x.c (command_builder_find_menu_accelerator):
8674         Initialize before use.
8675
8676 2000-11-23  Andy Piper  <andy@xemacs.org>
8677
8678         * unexcw.c (unexec): make the resulting executable executable.
8679
8680 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8681
8682         * doc.c (get_doc_string):
8683         Use size_t, not int, for result of XSTRING_LENGTH.
8684
8685         * cmds.c (Fdelete_char):
8686         * cmds.c (Fpoint_at_eol):
8687         * cmds.c (Fself_insert_command):
8688         Use EMACS_INT, not int, for result of XINT.
8689         Someday, someone will want to insert more than 2**31 identical characters.
8690
8691         * cmds.c (Fdelete_char):
8692         * cmds.c (Fdelete_backward_char):
8693         * syntax.c (Fforward_word):
8694         * syntax.c (Fforward_comment):
8695         Make COUNT argument optional, for consistency with forward-char et al.
8696
8697 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8698
8699         * lisp.h:
8700         * print.c (long_to_string):
8701         Return a useful value: the pointer at end of data written.
8702
8703         * doprnt.c:
8704         Use `static const char * const' for constant strings.
8705         (union printf_arg): Delete `i', `ui' members.
8706         (get_doprnt_args):
8707         (emacs_doprnt_1):
8708         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8709         Do all printf-ing via the `l' specifier.
8710         Use EMACS_INT instead of int.
8711         Optimize.
8712
8713 2000-11-20  Didier Verna  <didier@xemacs.org>
8714
8715         * faces.c (update_face_cachel_data): don't frob the background
8716         pixmap when the window is being created. The face is needed but
8717         does not exist yet.
8718
8719 2000-11-20  Andy Piper  <andy@xemacs.org>
8720
8721         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8722         messing with a debug environment.
8723
8724 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8725
8726         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8727
8728 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8729
8730         * casetab.c (Fcase_table_p): Fix compile error and crash.
8731
8732 2000-11-18  Philip Aston  <philipa@mail.com>
8733
8734         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8735
8736 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8737
8738         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8739         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8740
8741 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8742
8743         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8744         * unexelf.c: Use HAVE_ELF_H.
8745         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8746         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8747         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8748         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8749         for testing.
8750         So this is an unexelfsgi.c from a different line of development.
8751
8752 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8753
8754         * regex.c (RE_TR_ASCII): New function.
8755         (RE_TRANSLATE): Call it.
8756
8757 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8758
8759         * buffer.h (TRT_TABLE_OF): Remove assert.
8760         (IN_TRT_TABLE_DOMAIN): Removed.
8761
8762 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8763
8764         * free-hook.c (log_gcpro):
8765         (show_gcprohist): Add support for GCPRO5.
8766
8767 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8768
8769         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8770
8771 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8772
8773         * symeval.h: Declare flush_all_buffer_local_cache.
8774
8775         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8776         (flush_buffer_local_cache): Added.
8777         (flush_all_buffer_local_cache): Added.
8778
8779         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8780
8781         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8782         (pdump_dump_data): Ditto.
8783         (pdump_reloc_one): Ditto.
8784         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8785         before dumping.
8786
8787
8788 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8789
8790         * buffer.c: Remove if 0'ed entry.
8791         * buffer.h: Rewrite TRT to use char-table.
8792         * bufslots.h: Remove mirror tables.
8793         * casetab.c: Remove mirror tables.
8794         (CASE_TABLE_P): New macro.
8795         (Fcase_table_p): Element of a case table is string or char-table.
8796         (make_mirror_trt_table): Removed.
8797         (set_case_table): Setup char-table from strings for backward
8798         compatibility.
8799         * dired.c (Fdirectory_files):
8800         * dired-msw.c: (mswindows_get_files):
8801         * lisp.h: Change prototype of re_pattern_buffer.
8802         * regex.c: (RE_TRANSLATE): New macro.
8803         (TRANSLATE_P): Ditto.
8804         Change translate to type RE_TRANSLATE_TYPE.
8805         * regex.h: Define RE_TRANSLATE_TYPE
8806         * search.c (TRANSLATE): New macro.
8807         (TRANSLATE_ASCII): New macro.
8808         Translate table is changed to Lisp_Object.
8809         (signal_failure): Inhibit return.
8810
8811 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8812
8813         * device-msw.c:
8814         * eldap.c:
8815         * event-Xt.c:
8816         * event-stream.c:
8817         * print.c:
8818         Do UNGCPRO before return.
8819
8820 2000-11-14  Martin Buchholz <martin@xemacs.org>
8821
8822         * XEmacs 21.2.37 is released.
8823
8824 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8825
8826         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8827         Add comments about discarded return value.
8828
8829 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8830
8831         * callint.c:
8832         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8833
8834 2000-10-27  Andy Piper  <andy@xemacs.org>
8835
8836         * gutter.c (Fset_default_gutter_position): default left and right
8837         gutters to visible.
8838         (calculate_gutter_size): calculate resonable heuristic for left
8839         and right gutter sizes.
8840         (specifier_vars_of_gutter): change left and right gutter sizes to
8841         autodetect.
8842         (calculate_gutter_size_from_display_lines): new function.
8843         (output_gutter): check for resizing on left and right gutters.
8844         (clear_gutter): don't special case top and left gutters.
8845         (specifier_vars_of_gutter): use new signature for
8846         set_specifier_caching.
8847
8848         * glyphs-x.c (x_redisplay_widget): spelling fix.
8849         * glyphs.c (specifier_vars_of_glyphs):
8850         * menubar.c (specifier_vars_of_menubar):
8851         * redisplay.c (specifier_vars_of_redisplay):
8852         * toolbar.c (specifier_vars_of_toolbar):
8853         * window.c (specifier_vars_of_window):
8854         * scrollbar.c (specifier_vars_of_scrollbar):
8855         (complex_vars_of_scrollbar): use new signature for
8856         set_specifier_caching.
8857
8858         * specifier.c (set_specifier_caching): include recompute flag.
8859         (recompute_one_cached_specifier_in_window): always recompute if
8860         flag set.
8861         (recompute_one_cached_specifier_in_frame): ditto.
8862
8863         * specifier.h (struct specifier_caching): add recompute flag.
8864
8865 2000-10-24  Andy Piper  <andy@xemacs.org>
8866
8867         * unexcw.c (copy_executable_and_dump_data_section): add new
8868         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8869         5.0 happy.
8870
8871 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8872
8873         * console-x.h (x_device): New member modifier_release_time.
8874         * event-Xt.c (x_handle_sticky_modifiers):
8875         Bound interval modifier keys are sticky.
8876         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8877         * events.h: extern it.
8878
8879 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8880
8881         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8882
8883 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8884
8885         * event-stream.c (execute_command_event): Preserve current_events
8886         and the like when event is misc-user-event.
8887         Inhibit quit during the call to maybe_echo_keys.
8888
8889 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8890
8891         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8892         symlink when buffer is killed.
8893         (inhibit_clash_detection): New variable.
8894
8895 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8896
8897         * console.c (Fset_input_method): Trigger redisplay on tty.
8898
8899 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8900
8901         * process.c (Fprocess_status): Revert to previous behavior:
8902         (process-status "nosuchprocess") ==> nil
8903
8904 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8905
8906         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8907         Work around another GCC 2.95.2 optimizer bug.
8908
8909 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8910
8911         * process.c (Fget_process): Use LIST_LOOP_2.
8912         (kill_buffer_processes): Use LIST_LOOP_2.
8913
8914         * minibuf.c (Fall_completions):
8915         Delete old non-functional code for FSF fourth argument.
8916
8917         * frame.c (frame_matches_frame_spec):
8918         Renamed from `frame_matches_frametype'.  Update all callers.
8919         (device_matches_device_spec):
8920         Renamed from 'device_matches_console_spec'.  Update all callers.
8921
8922         * doc.c (Fsubstitute_command_keys):
8923         Remove buffer overflow crash.  Small code cleanups.
8924
8925         * casetab.c (check_case_table): Simpler code.
8926
8927         * window.c (Freplace_buffer_in_windows):
8928         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8929         (and similar implementation) as Fdelete_windows_on.
8930         Update all callers.
8931
8932         * alloc.c (Fmake_list):
8933         * alloc.c (make_vector):
8934         * alloc.c (Fmake_vector):
8935         * alloc.c (make_bit_vector):
8936         * alloc.c (Fmake_bit_vector):
8937         * alloc.c (Fbit_vector):
8938         * alloc.c (Fmake_string):
8939         * alloc.c (Fpurecopy):
8940         * alloc.c (Fmemory_limit):
8941         * buffer.c:
8942         * buffer.c (Fget_buffer):
8943         * buffer.c (Fkill_buffer):
8944         * buffer.c (complex_vars_of_buffer):
8945         * bytecode.c (Fcompiled_function_stack_depth):
8946         * callint.c (Fprefix_numeric_value):
8947         * event-stream.c:
8948         * event-stream.c (Fread_key_sequence):
8949         * casetab.c:
8950         * casetab.c (Fcase_table_p):
8951         * casetab.c (check_case_table):
8952         * casetab.c (Fset_case_table):
8953         * casetab.c (Fset_standard_case_table):
8954         * chartab.c:
8955         * chartab.c (Fchar_table_type):
8956         * chartab.c (Freset_char_table):
8957         * chartab.c (Fget_char_table):
8958         * chartab.c (Fget_range_char_table):
8959         * chartab.c (Fput_char_table):
8960         * chartab.c (Fmap_char_table):
8961         * chartab.c (Fcategory_table_p):
8962         * chartab.c (Fcheck_category_at):
8963         * chartab.c (Fchar_in_category_p):
8964         * chartab.c (Fcategory_table):
8965         * chartab.c (Fcopy_category_table):
8966         * chartab.c (Fset_category_table):
8967         * chartab.c (Fcategory_designator_p):
8968         * chartab.c (Fcategory_table_value_p):
8969         * cmds.c (Fdelete_char):
8970         * cmds.c (Fdelete_backward_char):
8971         * cmds.c (Fself_insert_command):
8972         * cmds.c (Fself_insert_internal):
8973         * console.c (Fvalid_console_type_p):
8974         * console.c (Fcdfw_console):
8975         * console.c (Fconsole_type):
8976         * console.c (Fconsole_name):
8977         * console.c (Fconsole_device_list):
8978         * console.c (Fconsole_on_window_system_p):
8979         * data.c:
8980         * data.c (Feq):
8981         * data.c (Fold_eq):
8982         * data.c (Fsubr_interactive):
8983         * data.c (Fchar_to_int):
8984         * data.c (Fint_to_char):
8985         * data.c (Fsetcar):
8986         * data.c (Fsetcdr):
8987         * data.c (Fnumber_to_string):
8988         * data.c (Fstring_to_number):
8989         * data.c (Frem):
8990         * database.c (mark_database):
8991         * database.c (finalize_database):
8992         * database.c (Fdatabase_live_p):
8993         * database.c (Fdatabasep):
8994         * device-x.c (Fx_get_resource):
8995         * device.c (Fdfw_device):
8996         * dired.c:
8997         * dired.c (Ffile_name_completion):
8998         * dired.c (Ffile_name_all_completions):
8999         * dired.c (Fuser_name_completion):
9000         * dired.c (Fuser_name_completion_1):
9001         * dired.c (Fuser_name_all_completions):
9002         * doc.c (Fdocumentation):
9003         * doc.c (Fdocumentation_property):
9004         * doc.c (Fsubstitute_command_keys):
9005         * editfns.c:
9006         * editfns.c (Fchar_to_string):
9007         * editfns.c (Fstring_to_char):
9008         * editfns.c (Ftemp_directory):
9009         * editfns.c (Finsert_char):
9010         * editfns.c (Fbuffer_substring_no_properties):
9011         * editfns.c (Fnarrow_to_region):
9012         * editfns.c (Fchar_equal):
9013         * editfns.c (Fchar_Equal):
9014         * editfns.c (Ftranspose_regions):
9015         * emacs.c (Fdump_emacs):
9016         * eval.c (Fthrow):
9017         * eval.c (Fcommand_execute):
9018         * eval.c (Fautoload):
9019         * eval.c (Fbacktrace):
9020         * eval.c (Fbacktrace_frame):
9021         * events.c:
9022         * events.c (Fcopy_event):
9023         * events.c (Fcharacter_to_event):
9024         * events.c (Fevent_button):
9025         * events.c (Fevent_process):
9026         * extents.c:
9027         * extents.c (Fnext_extent_change):
9028         * extents.c (Fextent_property):
9029         * faces.c (Ffacep):
9030         * faces.c (Fmake_face):
9031         * file-coding.c:
9032         * file-coding.c (Fencode_shift_jis_char):
9033         * file-coding.c (Fencode_big5_char):
9034         * fileio.c (Ffile_name_directory):
9035         * fileio.c (Ffile_name_nondirectory):
9036         * fileio.c (Ffile_name_as_directory):
9037         * fileio.c (Fdirectory_file_name):
9038         * fileio.c (Ffile_truename):
9039         * fileio.c (Fsubstitute_in_file_name):
9040         * fileio.c (Ffile_modes):
9041         * fileio.c (Fset_file_modes):
9042         * fileio.c (Fset_default_file_modes):
9043         * fileio.c (Fverify_visited_file_modtime):
9044         * floatfns.c (Facos):
9045         * floatfns.c (Fasin):
9046         * floatfns.c (Fatan):
9047         * floatfns.c (Fcos):
9048         * floatfns.c (Fsin):
9049         * floatfns.c (Ftan):
9050         * floatfns.c (Fbessel_j0):
9051         * floatfns.c (Fbessel_j1):
9052         * floatfns.c (Fbessel_jn):
9053         * floatfns.c (Fbessel_y0):
9054         * floatfns.c (Fbessel_y1):
9055         * floatfns.c (Fbessel_yn):
9056         * floatfns.c (Ferf):
9057         * floatfns.c (Ferfc):
9058         * floatfns.c (Flog_gamma):
9059         * floatfns.c (Fexp):
9060         * floatfns.c (Fexpt):
9061         * floatfns.c (Flog):
9062         * floatfns.c (Flog10):
9063         * floatfns.c (Fsqrt):
9064         * floatfns.c (Fcube_root):
9065         * floatfns.c (Facosh):
9066         * floatfns.c (Fasinh):
9067         * floatfns.c (Fatanh):
9068         * floatfns.c (Fcosh):
9069         * floatfns.c (Fsinh):
9070         * floatfns.c (Ftanh):
9071         * floatfns.c (Fabs):
9072         * floatfns.c (Ffloat):
9073         * floatfns.c (Flogb):
9074         * floatfns.c (Fceiling):
9075         * floatfns.c (Ffloor):
9076         * floatfns.c (Fround):
9077         * floatfns.c (Ftruncate):
9078         * floatfns.c (Ffceiling):
9079         * floatfns.c (Fffloor):
9080         * floatfns.c (Ffround):
9081         * floatfns.c (Fftruncate):
9082         * fns.c (Fstring_equal):
9083         * fns.c (Fstring_lessp):
9084         * fns.c (concat2):
9085         * fns.c (concat3):
9086         * fns.c (vconcat2):
9087         * fns.c (vconcat3):
9088         * fns.c (Fsubstring):
9089         * fns.c (Fassoc):
9090         * fns.c (Fold_assoc):
9091         * fns.c (assoc_no_quit):
9092         * fns.c (Fassq):
9093         * fns.c (Fold_assq):
9094         * fns.c (assq_no_quit):
9095         * fns.c (Frassoc):
9096         * fns.c (Fold_rassoc):
9097         * fns.c (Frassq):
9098         * fns.c (Fold_rassq):
9099         * fns.c (rassq_no_quit):
9100         * fns.c (Fremassoc):
9101         * fns.c (remassoc_no_quit):
9102         * fns.c (Fremassq):
9103         * fns.c (remassq_no_quit):
9104         * fns.c (Fremrassoc):
9105         * fns.c (Fremrassq):
9106         * fns.c (remrassq_no_quit):
9107         * fns.c (Fsort):
9108         * fns.c (Fplist_get):
9109         * fns.c (Fplist_put):
9110         * fns.c (Fplist_remprop):
9111         * fns.c (Fplist_member):
9112         * fns.c (Flax_plist_get):
9113         * fns.c (Flax_plist_put):
9114         * fns.c (Flax_plist_remprop):
9115         * fns.c (Flax_plist_member):
9116         * fns.c (Fequal):
9117         * fns.c (Fold_equal):
9118         * fns.c (Frequire):
9119         * fns.c (Fbase64_encode_region):
9120         * fns.c (Fbase64_encode_string):
9121         * fns.c (Fbase64_decode_region):
9122         * frame.c:
9123         * frame.c (frame_matches_frame_spec):
9124         * frame.c (device_matches_device_spec):
9125         * frame.c (next_frame):
9126         * frame.c (previous_frame):
9127         * frame.c (Fnext_frame):
9128         * frame.c (Fprevious_frame):
9129         * frame.c (Fframe_property):
9130         * frame.c (Fset_frame_height):
9131         * frame.c (Fset_frame_size):
9132         * frame.h:
9133         * glyphs.c:
9134         * glyphs.c (if):
9135         * glyphs.c (decode_error_behavior_flag):
9136         * glyphs.c (Fmake_image_instance):
9137         * indent.c (Findent_to):
9138         * intl.c (Fignore_defer_gettext):
9139         * keymap.c (Fkeymapp):
9140         * keymap.c (Flookup_key):
9141         * lread.c:
9142         * lread.c (Fload_internal):
9143         * lread.c (Feval_buffer):
9144         * lread.c (Feval_region):
9145         * macros.c (Fexecute_kbd_macro):
9146         * marker.c (set_marker_internal):
9147         * marker.c (Fset_marker):
9148         * marker.c (set_marker_restricted):
9149         * marker.c (Fcopy_marker):
9150         * marker.c (noseeum_copy_marker):
9151         * menubar.c:
9152         * menubar.c (Fpopup_menu):
9153         * minibuf.c:
9154         * mule-charset.c (Fcharset_name):
9155         * mule-charset.c (Fchar_charset):
9156         * mule-charset.c (Fchar_octet):
9157         * mule-charset.c (Fsplit_char):
9158         * mule-wnnfns.c (Fwnn_open):
9159         * mule-wnnfns.c (Fwnn_dict_comment):
9160         * mule-wnnfns.c (Fwnn_quit_henkan):
9161         * mule-wnnfns.c (Fwnn_word_toroku):
9162         * mule-wnnfns.c (Fwnn_word_sakujo):
9163         * mule-wnnfns.c (Fwnn_word_use):
9164         * mule-wnnfns.c (Fwnn_hindo_set):
9165         * objects.c:
9166         * objects.c (Fmake_color_instance):
9167         * objects.c (Fmake_font_instance):
9168         * print.c (Fwrite_char):
9169         * process.c:
9170         * process.c (mark_process):
9171         * process.c (print_process):
9172         * process.c (get_process_from_usid):
9173         * process.c (Fprocessp):
9174         * process.c (Fprocess_live_p):
9175         * process.c (Fget_process):
9176         * process.c (Fget_buffer_process):
9177         * process.c (get_process):
9178         * process.c (Fprocess_id):
9179         * process.c (Fprocess_name):
9180         * process.c (Fprocess_command):
9181         * process.c (init_process_io_handles):
9182         * process.c (start_process_unwind):
9183         * process.c (Fstart_process_internal):
9184         * process.c (Fopen_multicast_group_internal):
9185         * process.c (Fset_process_window_size):
9186         * process.c (read_process_output):
9187         * process.c (send_process):
9188         * process.c (Fprocess_tty_name):
9189         * process.c (Fset_process_buffer):
9190         * process.c (Fprocess_buffer):
9191         * process.c (Fprocess_mark):
9192         * process.c (set_process_filter):
9193         * process.c (Fset_process_filter):
9194         * process.c (Fprocess_filter):
9195         * process.c (Fprocess_send_region):
9196         * process.c (Fprocess_send_string):
9197         * process.c (exec_sentinel):
9198         * process.c (Fset_process_sentinel):
9199         * process.c (Fprocess_sentinel):
9200         * process.c (status_notify):
9201         * process.c (Fprocess_status):
9202         * process.c (Fprocess_exit_status):
9203         * process.c (process_send_signal):
9204         * process.c (Fprocess_send_eof):
9205         * process.c (deactivate_process):
9206         * process.c (remove_process):
9207         * process.c (Fdelete_process):
9208         * process.c (kill_buffer_processes):
9209         * process.c (Fprocess_kill_without_query):
9210         * process.c (Fprocess_kill_without_query_p):
9211         * rangetab.c:
9212         * rangetab.c (Fget_range_table):
9213         * rangetab.c (Fput_range_table):
9214         * rangetab.c (Fremove_range_table):
9215         * rangetab.c (Fclear_range_table):
9216         * search.c:
9217         * search.c (Fskip_chars_forward):
9218         * search.c (Fskip_chars_backward):
9219         * search.c (Fskip_syntax_forward):
9220         * search.c (Fskip_syntax_backward):
9221         * search.c (search_command):
9222         * search.c (Freplace_match):
9223         * search.c (Fregexp_quote):
9224         * select.c (Fown_selection_internal):
9225         * select.c (Fselection_owner_p):
9226         * select.c (Fselection_exists_p):
9227         * select.c (Fget_selection_internal):
9228         * specifier.c:
9229         * symbols.c:
9230         * symbols.c (Fintern):
9231         * symbols.c (Fintern_soft):
9232         * symbols.c (Funintern):
9233         * symbols.c (Fapropos_internal):
9234         * symbols.c (Fset_default):
9235         * syntax.c:
9236         * syntax.c (Fsyntax_table_p):
9237         * syntax.c (Fcopy_syntax_table):
9238         * syntax.c (Fset_syntax_table):
9239         * syntax.c (Fchar_syntax):
9240         * syntax.c (syntax_match):
9241         * syntax.c (Fmatching_paren):
9242         * syntax.c (Fforward_word):
9243         * syntax.c (scan_lists):
9244         * syntax.c (Fscan_lists):
9245         * syntax.c (Fscan_sexps):
9246         * syntax.c (Fparse_partial_sexp):
9247         * toolbar.c (Fcheck_toolbar_button_syntax):
9248         * tooltalk.doc:
9249         * window.c:
9250         * window.c (Fwindowp):
9251         * window.c (Fwindow_live_p):
9252         * window.c (Fwindow_point):
9253         * window.c (Fdelete_window):
9254         * window.c (Fnext_window):
9255         * window.c (Fprevious_window):
9256         * window.c (Fother_window):
9257         * window.c (window_loop):
9258         * window.c (Fget_lru_window):
9259         * window.c (Fsplit_window):
9260         * window.c (Fenlarge_window):
9261         * window.c (Fenlarge_window_pixels):
9262         * window.c (Fshrink_window):
9263         * window.c (Fshrink_window_pixels):
9264         * window.c (change_window_height):
9265         * window.c (Fwindow_configuration_p):
9266         * window.c (Fcurrent_window_configuration):
9267         * window.h:
9268         * casefiddle.c (casify_object):
9269         * casefiddle.c (Fupcase):
9270         * casefiddle.c (Fdowncase):
9271         * casefiddle.c (Fcapitalize):
9272         * casefiddle.c (Fupcase_initials):
9273         * casefiddle.c (casify_region_internal):
9274         * casefiddle.c (casify_region):
9275         * casefiddle.c (Fupcase_region):
9276         * casefiddle.c (Fdowncase_region):
9277         * casefiddle.c (Fcapitalize_region):
9278         * casefiddle.c (Fupcase_initials_region):
9279         * casefiddle.c (Fupcase_word):
9280         * casefiddle.c (Fdowncase_word):
9281         * casefiddle.c (Fcapitalize_word):
9282         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9283         Replace 0 with '\0' when working with bytes.
9284         Replace initial "(" with "\(" in docstrings.
9285
9286 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9287
9288         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9289
9290         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9291
9292 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9293
9294         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9295
9296 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9297
9298         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9299         correctly.
9300
9301 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9302
9303         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9304         (inhibit_auto_save_session): New variable.
9305         (vars_of_fileio): Declare and initialize them.
9306         * fileio.c (Fdo_auto_save): Don't create session file if
9307         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9308
9309 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9310
9311         * sgiplay.c (play_internal): C++ compilability.
9312         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9313         * callproc.c (Fold_call_process_internal):
9314         Remove unused vars `env', `first'.
9315         * scrollbar.c (update_scrollbar_instance):
9316         #### unused var `current_window'.
9317         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9318         etc. within #ifdef NOT_YET.
9319         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9320         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9321         * specifier.c (specifier_instance):
9322         #### unused var `tag'.
9323         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9324
9325 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9326
9327         * fns.c (Fbutlast):
9328         * fns.c (list_sort):
9329         * fns.c (Ffillarray):
9330         * fns.c (bytecode_nconc2):
9331         * fns.c (Fnconc):
9332         * fns.c (mapcar1):
9333         * fns.c (Fmapconcat):
9334         Be pedantically 64-bit correct.  For the time when someone will
9335         want to have a list with length > 2**32.
9336
9337         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9338         Work around MIPSpro compiler bug.
9339
9340         * process-unix.c (unix_kill_child_process): Add snarky comment.
9341         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9342
9343         * config.h.in: Oops, _getpt ==> _getpty
9344
9345 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9346
9347         * config.h.in:
9348         * regex.c:
9349         Use void*, not char*, as return type of alloca().
9350
9351         * alloc.c (free_marker): Side effect inside assert expression!
9352
9353 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9354
9355         * mule-charset.c (Fset_charset_ccl_program): To check
9356         if the given ccl program is valid, use setup_ccl_program()
9357         instead of CHECK_VECTOR().
9358         (Fmake_charset): Likewise.
9359
9360 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9361
9362         * faces.c (get_extent_fragment_face_cache_index):
9363         Fix cachel.merged_faces memory leak.
9364
9365 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9366
9367         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9368         Reset MSB of octets obtained by DECODE_SJIS
9369         because of the incompatibility with Emacs.
9370         (ccl_driver)<CCL_ENCODE_SJIS>:
9371         Set MSB of octets before passing them to
9372         ENCODE_SJIS because of the incompatibility
9373         with Emacs.
9374
9375 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9376
9377         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9378         (DECLARE_LRECORD): Undo the last change.
9379         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9380
9381 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9382
9383         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9384         the implementation to lrecord_implementations_table.
9385
9386 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9387
9388         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9389         initial value of `lrecord_type_##c_name' and
9390         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9391         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9392         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9393         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9394         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9395
9396 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9397
9398         * miscplay.c (sndcnv8S_2mono):
9399         (sndcnv2monounsigned):
9400         (sndcnvULaw_2linear):
9401         (sndcnv16swap):
9402         Remove implementation-defined behavior.
9403
9404 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9405
9406         * input-method-xlib.c: Warning suppression.
9407
9408 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9409
9410         * mule-ccl.c: Sync up with Emacs 21.0.90.
9411         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9412         Do nothing.
9413         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9414         Likewise.
9415         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9416         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9417         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9418         leading char belongs to official 2-dimensional charset.
9419         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9420         write the given character as is.  Otherwise,
9421         if it is a multibyte char, convert it by
9422         non_ascii_set_charptr_emchar, then write it.
9423         (CCL_WRITE_STRING): Likewise.
9424         (ccl_get_compiled_code): New function.
9425         (setup_ccl_program): When ccl_prog is invalid,
9426         return -1.
9427         (Fregister_code_conversion_map): New function.
9428         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9429
9430         * mule-ccl.h: Sync up with Emacs 21.0.90.
9431         (Fregister_ccl_program): export it.
9432
9433         * redisplay-msw.c (separate_textual_runs):
9434         If ccl program is not valid, don't do ccl conversion.
9435
9436         * redisplay-x.c (separate_textual_runs): Ditto.
9437
9438         * file-coding.c (Fmake_coding_system):
9439         When type is ccl and value is vector, register it
9440         with a proper symbol.  And checks whether the
9441         given ccl program is valid.
9442         (mule_decode): When calling ccl_driver, if src indicates
9443         NULL pointer, set an empty string instead.
9444         (mule_encode): Likewise.
9445
9446 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9447
9448         The following large batch of changes gets us back to a state of
9449         C++ compilability.  Extbyte is now a char, which means that
9450         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9451
9452         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9453
9454         * sound.c (Fplay_sound): Type correctness.
9455
9456         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9457         (x_get_window_property): Type correctness.
9458         (receive_incremental_selection): unsigned char ==> Extbyte
9459         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9460         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9461         (Fx_store_cutbuffer_internal): Type correctness.
9462
9463         * process-unix.c (try_to_initialize_subtty): Type correctness.
9464
9465         * objects-x.c (x_print_color_instance): Type correctness.
9466         (x_print_font_instance): Type correctness.
9467         (x_list_fonts): SExtbyte ==> Extbyte.
9468         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9469         (x_find_charset_font): SExtbyte ==> Extbyte.
9470         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9471         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9472         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9473         Use bufbyte_strcmp.
9474
9475         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9476         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9477         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9478         (BYTE_C0_P): Use bit ops for char-signedness safety.
9479         (BYTE_C1_P): Use bit ops for char-signedness safety.
9480         (CHARSET_BY_LEADING_BYTE):
9481         (CHARSET_BY_ATTRIBUTES):
9482         Always use inline function.
9483         Use type_checking_assert.
9484         Hide chlook.
9485
9486         * mule-charset.c (non_ascii_charptr_copy_char):
9487         Modify to work with both ASCII and non-ASCII characters.
9488         Improve docs and variable names.
9489         Replace over-clever fall-through switch with a simple loop.
9490         (Lstream_get_emchar_1):
9491         Replace over-clever fall-through switch with a simple loop.
9492
9493         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9494         Warning suppression.
9495
9496         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9497         the return value of Lstream_getc, which could be EOF as well.
9498
9499         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9500
9501         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9502         APIs can be used on Extbytes without casts.  Risky!
9503         (SExtbyte): Remove.
9504         (UExtbyte): Remove.
9505
9506         * input-method-xlib.c (XIM_init_device):
9507         Use Xlib.h instead of IntrinsicP.h.
9508         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9509         which will break in X11R7.
9510         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9511         to call XRegisterIMInstantiateCallback with correct types.
9512
9513         * gui-x.c (button_item_to_widget_value): Type correctness.
9514
9515         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9516
9517         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9518         (xbm_instantiate_1): Type correctness.
9519         (BUILD_GLYPH_INST):  Type correctness.
9520
9521         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9522
9523         * file-coding.c:
9524         (decode_coding_sjis):
9525         (decode_coding_big5):
9526         (decode_coding_ucs4):
9527         (decode_coding_utf8):
9528         (decode_coding_iso2022):
9529         (decode_coding_no_conversion):
9530         Make all decoding functions take an Extbyte * arg.
9531         (encode_coding_sjis):
9532         (encode_coding_big5):
9533         (encode_coding_ucs4):
9534         (encode_coding_utf8):
9535         (encode_coding_iso2022):
9536         (encode_coding_no_conversion):
9537         Make all encoding functions take a Bufbyte * arg.
9538         Use size_t instead of unsigned int for memory sizes.
9539         Only cast to unsigned char whenever dereferencing Extbyte *.
9540
9541         * doc.c (unparesseuxify_doc_string): Type correctness.
9542
9543         * console-x.c (split_up_display_spec):
9544         Rewrite without using details of internal string representation.
9545         (x_semi_canonicalize_device_connection): Type correctness.
9546
9547         * config.h.in:
9548         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9549         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9550         (HAVE_XFREE386): Removed.
9551
9552         * buffer.h (DEC_CHARPTR): `const' correctness.
9553         (bufbyte_strcmp): New.
9554         (bufbyte_memcmp): New.
9555
9556         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9557
9558         * buffer.h (XCHAR_OR_CHAR_INT):
9559         Always use inline function.
9560         Remove redundant type checking assert() - XINT will abort quite nicely.
9561
9562 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9563
9564         * search.c (Freplace_match): Set newtext to an empty string.
9565
9566 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9567
9568         * s/decosf1-3.h: Remove #include of stropts.h
9569         * s/ptx.h: Remove #include of stropts.h
9570         * s/usg5-4.h: Remove #include of stropts.h
9571         * sysproc.h:
9572         * config.h.in:
9573         Use stropts.h, not sys/stropts.h.
9574         Use strtio.h, not sys/strtio.h.
9575
9576 2000-10-04  Martin Buchholz <martin@xemacs.org>
9577
9578         * XEmacs 21.2.36 is released.
9579
9580 2000-09-21  Andy Piper  <andy@xemacs.org>
9581
9582         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9583         changes still involve copying the widget tree.
9584         (update_widget_face): make sure a change is register in the widget
9585         tree. Call update_tab_widget_face appropriately.
9586         (update_tab_widget_face): ditto.
9587         (x_tab_control_redisplay): make sure non-structural changes still
9588         involve copying the widget tree.
9589
9590 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9591
9592         * lread.c (locate_file): Check the path element is non-nil.
9593
9594 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9595
9596         * lisp.h: Warning suppression for SCO compilers.
9597
9598         * redisplay-tty.c (reset_tty_modes): Fix crash.
9599         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9600
9601 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9602
9603         Big signal/process handling overhaul.  Bugs fixed:
9604         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9605         M-x comint-kill-subjob should work for both values nil and t of
9606         process-connection-type. It was broken on most platforms.
9607         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9608         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9609         * process-unix.c: Signal/Process handling overhaul.
9610         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9611         (allocate_pty): Use all available modern methods of allocating
9612         ptys, falling back to old style BSD allocation as a last resort.
9613         Use allegedly more secure Unix98 pty allocation by default.
9614         (allocate_pty_the_old_fashioned_way): New. the last resort.
9615         (unix_create_process): Push ptem, ldterm, ttcompat where
9616         available.  Autoconfiscate.
9617         (try_to_initialize_subtty): New.
9618         (unix_kill_child_process): Proper signal handling for ptys on most
9619         platforms, using special knowledge of AIX, BSD, etc...
9620         (unix_create_process): Always disconnect_controlling_terminal() for
9621         subprocesses, whether using ptys or not.
9622         * process.h: Remove old getpt-dependent PTY code.
9623         * process.c (Fprocess_send_signal): New, obvious generic function.
9624         (decode_signal): New.
9625         (Finterrupt_process):
9626         (Fkill_process):
9627         (Fquit_process):
9628         (Fstop_process):
9629         (Fcontinue_process):
9630         (Fsignal_process): Use decode_signal.
9631         (process_send_signal):
9632         Many docstring corrections.
9633         Allow any signal to be sent to a process object.
9634         * config.h.in: Add symbols for big signal/process overhaul.
9635         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9636         * sysproc.h: Include process-related headers, where available:
9637         sys/stropts.h sys/strtio.h pty.h libutil.h
9638         * s/irix4-0.h:
9639         * s/irix5-0.h:
9640         * s/cygwin32.h:
9641         * s/gnu.h:
9642         * s/linux.h:
9643         * s/hpux.h:
9644         * s/aix3-1.h:
9645         Remove old S&M pty stuff.
9646         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9647         * systty.h: Simplify cpp hackery, improve comments.
9648         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9649
9650         * editfns.c (Fformat_time_string):
9651         Be a little more paranoid with the return value of ctime.
9652
9653         * fileio.c (check_executable):
9654         (check_writable):
9655         Use symbolic constants X_OK, W_OK.
9656
9657         * console-x.c (split_up_display_spec): Fix a warning.
9658
9659 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9660
9661         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9662         * ntproc.c (sys_spawnve): make_string ==> build_string
9663         Small clarity improvements.
9664
9665 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9666
9667         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9668
9669         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9670
9671         * config.h.in (HAVE_STRCASECMP): Remove.
9672
9673 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9674
9675         * redisplay-output.c (redisplay_output_pixmap):
9676         Cleaner and possibly more 64-bit correct code.
9677
9678 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9679
9680         * dumper.c (pdump_load_finish): move restoration of
9681         `noninteractive1' to emacs.c (main_1).
9682         * emacs.c (main_1): protect LISP-visible command-line flags
9683         from pdump_load().
9684
9685 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9686
9687         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9688         DUMP_TARGET instead of literal program names.
9689
9690 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9691
9692         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9693
9694 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9695
9696         * *: Spelling mega-patch
9697
9698 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9699
9700         * fns.c (bad_bad_turtle):
9701         Delete "Eek!" comment, since we fixed the bug to which it refers.
9702
9703 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9704
9705         * alloca.c: Replace REGISTER with register.
9706
9707 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9708
9709         * file-coding.c (ucs_to_char): Use countof.
9710
9711 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9712
9713         * file-coding.c: (ucs_to_char):
9714         (complex_vars_of_file_coding):
9715         Use countof instead of sizeof.
9716         Use CHECK_NATNUM instead of CHECK_INT.
9717
9718         * sysdep.c (strcasecmp): Remove.
9719         * device-x.c (ascii_strcasecmp): New.
9720         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9721         Avoid using non-standard non-portable strcasecmp.
9722
9723 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9724
9725         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9726         * font-lock.c: remove reference to emacsfns.h.
9727         * search.c: small doc improvement.
9728         * event-Xt.c: correct file names in comments.
9729         * console-x.h Correct file names in comments.
9730         * frame.c: Correct file names in comments.
9731         * event-stream.c: remove Energize from comments.
9732
9733 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9734
9735         * symeval.h (DEFERROR_STANDARD):
9736         (DEFERROR):
9737         (DEFSYMBOL):
9738         (DEFSYMBOL_NO_DUMP):
9739         (DEFSYMBOL_MULTIWORD_PREDICATE):
9740         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9741         (DEFKEYWORD):
9742         The construct &##name is not sensible C.
9743         Fixes compilation errors with Unixware native compiler.
9744
9745 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9746
9747         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9748         (next_frame_internal): Removed.  We now just have next_frame.
9749         (next_frame):
9750         Write a simpler and cleaner one-pass algorithm.
9751         Remove called_from_delete_device arg and #ifdefed-out code.
9752         (previous_frame):
9753         Renamed from prev_frame.  Update callers.
9754         Cleaned up to have an analogous implementation to next_frame.
9755         (other_visible_frames_internal): Remove the
9756         called_from_delete_device bogus arg, and hence, remove this
9757         function.  Just use other_visible_frames().
9758
9759         * window.c (Fnext_window):
9760         Prettify docstring.
9761         Since next_frame() is guaranteed to return a frame, remove check
9762         for nil inserted in previous patch.
9763         (Fprevious_window):
9764         Prettify docstring.
9765         Make code look more like Fnext_window.
9766         (window_loop):
9767         Respect the `console' arg when iterating through windows.
9768         Fixes bug: (get-buffer-window buffer t device) not respecting
9769         the `device' arg.
9770         This function needs more work, as others have pointed out.
9771
9772         * frame.h: Rename prev_frame to previous_frame.
9773         device_matches_console_spec no longer takes a `frame' arg.
9774
9775         * s/gnu.h:
9776         * s/linux.h:
9777         * s/hpux.h:
9778         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9779         From "Golubev I. N." <gin@mo.msk.ru>.
9780
9781         * make-src-depend: Fix typo.
9782
9783 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9784
9785         * window.c (Fnext_window):
9786         next_frame() might return nil, not a frame.
9787         Fixes this crash:
9788         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9789
9790         * frame.c (next_frame_internal):
9791         We've passed a frame if we've passed its device.
9792         Fixes this crash:
9793         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9794 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9795
9796 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9797
9798         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9799         Allow option to suppress accelerators in menu/dialog items.
9800         (populate_or_checksum_helper): Pass dialog title through above.
9801
9802 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9803
9804         * event-msw.c (mswindows_key_to_emacs_keysym):
9805         Add "pause" key, fix "menu" key.
9806
9807 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9808
9809         * eval.c (reinit_vars_of_eval):
9810         Increase max_lisp_eval_depth to 1000,
9811         required for thai-xtis.el to byte-compile under some circumstances.
9812
9813 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9814
9815         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9816         From Kenichi Handa.
9817
9818 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9819
9820         * make-src-depend: Make the generated Makefiles smaller.
9821
9822         * s/hpux.h (SETUP_SLAVE_PTY):
9823         Provide a %d in the format string for the errno argument.
9824
9825         * editfns.c (Ftemp_directory):
9826         Warning fix.
9827         Avoid buffer overrun on very long file name.
9828
9829         * input-method-xlib.c (XIM_init_device):
9830         6th parameter of XRegisterIMInstantiateCallback has different
9831         pointer types on different OSes, so simply cast to (void *).
9832
9833         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9834
9835         * sysdll.c (dll_open):
9836         shl_load will hang hard if passed a NULL filename.
9837         Simply return NULL for compatibility with dlopen.
9838         * sysdll.c: Conform to XEmacs coding standards.
9839
9840         * sysdep.c (get_pty_max_bytes):
9841         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9842
9843 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9844
9845         * tooltalk.c: Add #include <syssignal.h>
9846
9847 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9848
9849         * s/hpux.h: Don't use undefined function sigunblock().
9850
9851 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9852
9853         * config.h.in: Add HAVE_BALLOON_HELP.
9854         * emacs.c: Use HAVE_BALLOON_HELP.
9855         * Makefile.in.in (x_objs):
9856         Make Balloon Help conditional on finding shape.h.
9857
9858 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9859
9860         * syntax.c (regex_emacs_buffer_p): New variable.
9861         * syntax.h (regex_emacs_buffer_p): extern.
9862         * search.c (looking_at_1):
9863         (string_match_1):
9864         (fast_string_match):
9865         (search_buffer): Set regex_emacs_buffer_p.
9866         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9867         when before_dot, at_dot, after_dot.
9868
9869 2000-08-23  Andy Piper  <andy@xemacs.org>
9870
9871         * gui-x.c (popup_selection_callback): Only set action_occurred
9872         when we really have an image instance.
9873         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9874
9875 2000-08-23  Andy Piper  <andy@xemacs.org>
9876
9877         * gui-msw.c (mswindows_handle_gui_wm_command): set
9878         action_occurred.
9879         * gui-x.c (popup_selection_callback): ditto.
9880
9881         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9882         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9883         (struct Lisp_Image_Instance): add action_occurred flag.
9884
9885         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9886         (image_instance_changed): ditto.
9887         (reset_frame_subwindow_instance_cache): only unmap windows - do
9888         not remove them from the cache also.
9889
9890         * glyphs-widget.c (tab_control_update): better debug.
9891         (progress_gauge_update): ditto.
9892         (layout_update): ditto.
9893         (layout_instantiate): ditto.
9894         (tab_control_order_only_changed): cope with null pending items.
9895
9896         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9897         debug. Force selection of an item when an action occurred. Cope
9898         with null pending_items.
9899         (mswindows_progress_gauge_redisplay): better debug.
9900         * glyphs-x.c (x_tab_control_redisplay): ditto.
9901
9902         * redisplay.c (redisplay_frame): reset the frame cache if the
9903         frame is garbaged.
9904
9905         * window.c (Fset_window_configuration): potentially re-enable
9906         frame cache reset.
9907         (window_unmap_subwindows): need to finalize instances here since
9908         it is only used in mark_window_as_deleted.
9909
9910 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9911
9912         * nas.c (SndOpenDataForReading):
9913         nas.c (WaveOpenDataForReading):
9914         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9915         Somehow escaped from the 2000-08-14 patch.
9916
9917 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9918
9919         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9920         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9921
9922 2000-08-21  Andy Piper  <andy@xemacs.org>
9923
9924         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9925         window if it is not already displayed.
9926
9927         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9928         it is not already displayed.
9929
9930         * window.c (Fset_window_configuration): don't reset the frame
9931         cache.
9932
9933         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9934         instances from the frame cache if we are actually finalizing them.
9935         (reset_frame_subwindow_instance_cache): reset frame cache only
9936         after unmapping everything.
9937         (map_subwindow): set displayed flag after mapping.
9938
9939 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9940
9941         * data.c (indirect_function):
9942         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9943
9944         * eval.c (function_argcount):
9945         Use original function when signaling errors.
9946
9947 2000-08-18  Andy Piper  <andy@xemacs.org>
9948
9949         * frame.c (delete_frame_internal): use new
9950         free_frame_subwindow_instances name.
9951
9952         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9953         (add_tab_item): make return type correct.
9954         (mswindows_tab_control_instantiate): assert index of tab.
9955         (mswindows_tab_control_redisplay): Re-code to use
9956         gui_item_equal_sans_selected and gui_item_list_find_selected.
9957
9958         * glyphs-widget.c (tab_control_update): Correct comment.
9959
9960         * window.c (window_unmap_subwindows): use new
9961         unmap_subwindow_instance_cache_mapper.
9962         (window_unmap_subwindows_cache_mapper): deleted.
9963         (Fset_window_configuration): comparisons should now be with
9964         EQ. Preserve the subwindow instance cache across configuration
9965         changes.
9966         (allocate_window): ditto.
9967         (make_dummy_parent): ditto.
9968
9969         * glyphs.c (free_frame_subwindow_instances): rename from
9970         free_frame_subwindow_instance_cache. finalize all instances rather
9971         than just those in the display cache.
9972         (finalize_all_subwindow_instances): walk windows unmapping and
9973         finalizing subwindows.
9974         (unmap_subwindow_instance_cache_mapper): moved from
9975         window.c. Allow finalization as well as unmapping.
9976
9977         * gui.c (gui_item_list_find_selected): new function.
9978
9979         * gui.h (gui_item_list_find_selected): declare.
9980
9981         * glyphs-x.c (x_tab_control_redisplay): pick tab
9982         explicitly. Re-code to use gui_item_equal_sans_selected and
9983         gui_item_list_find_selected.
9984
9985         * glyphs-x.h: add lwlib-utils.h
9986
9987         * buffer.c (Frecord_buffer): undo previous change.
9988
9989 2000-08-09  Vin Shelton  <acs@xemacs.org>
9990
9991         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9992         possible.  Create temporary files more securely.  The patch was
9993         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9994         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9995         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9996         for details.
9997
9998 2000-08-07  Ben Wing  <ben@xemacs.org>
9999
10000         * getloadavg.c: remove duplicate (and windows-breaking)
10001         includes of fcntl.h and sys/file.h.
10002
10003         * nt.c: remove duplicate getloadavg() definition.
10004
10005         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10006         encodings.
10007
10008 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10009
10010         * eval.c (function_argcount): If function needs to be autoloaded
10011         actually use the loaded definition.
10012         GCPRO function.
10013
10014 2000-08-05  Ben Wing  <ben@xemacs.org>
10015
10016         * getloadavg.c: add prototype for getloadavg().  remove
10017         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10018         of the code).  remove duplicate header includes.
10019
10020         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10021
10022         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10023         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10024         useful load average.
10025
10026         * alloc.c (reinit_alloc_once_early): removed references to
10027         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10028         the lisp vars are the only things referencing the malloc_sbrk_*
10029         vars, and they were already if 0'd out.  these vars only exist
10030         in the older malloc.c, which is basically unused, and they're
10031         only for informational purposes.
10032
10033         * m\*.h: removed useless VIRT_ADDR_VARIES.
10034
10035         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10036
10037 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10038
10039         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10040         color if the image is a mono pixmap.
10041
10042 2000-07-30  Ben Wing  <ben@xemacs.org>
10043
10044         * Makefile.in.in (release):
10045         Remove stray @.
10046
10047         * buffer.c (directory_is_current_directory):
10048         * dired-msw.c (mswindows_get_files):
10049         * dired.c:
10050         * dired.c (Fdirectory_files):
10051         * dired.c (file_name_completion_stat):
10052         * dired.c (Ffile_attributes):
10053         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10054         preprocessor tricks, to avoid problems on some machines
10055         (e.g. SCO).
10056
10057         * callproc.c (egetenv): GC docs.
10058
10059         * console-msw.h:
10060         * console-msw.h (struct mswindows_dialog_id):
10061         * lrecord.h (lrecord_type):
10062         New object for use with MSW dialogs.
10063
10064         * console.h (struct console_methods):
10065         New enable/disable frame methods, for proper modal dialogs.
10066
10067         * device-msw.c (msprinter_default_printer): Fix to follow
10068         proper Mule conventions.
10069
10070         * device-msw.c:
10071         * device-msw.c (signal_open_printer_error):
10072         * device-msw.c (msprinter_init_device):
10073         * device-msw.c (ensure_not_printing):
10074         * device-msw.c (plist_get_margin):
10075         * device-msw.c (Fmsprinter_select_settings):
10076         * device-msw.c (finalize_devmode):
10077         * device-msw.c (Fmsprinter_settings_despecialize):
10078         * device-msw.c (signal_enum_priner_error):
10079         * extents.c (decode_extent):
10080         * extents.c (decode_map_extents_flags):
10081         * extents.c (decode_extent_at_flag):
10082         * extents.c (Fextent_at):
10083         * extents.c (Fextents_at):
10084         * extents.c (symbol_to_glyph_layout):
10085         [[[[2]]]] Use structured errors.
10086
10087         * dialog-msw.c:
10088         * dialog-msw.c (mswindows_is_dialog_msg):
10089         * dialog-msw.c (mark_mswindows_dialog_id):
10090         * dialog-msw.c (dialog_proc):
10091         * dialog-msw.c (handle_question_dialog_box):
10092         * dialog-msw.c (syms_of_dialog_mswindows):
10093         Define new object to clean up marking; use it as a dialog identifier.
10094         Call new delete-dialog-box-hook.
10095
10096         * dialog-x.c (dbox_selection_callback):
10097         * dialog-x.c (dbox_descriptor_to_widget_value):
10098         * dialog-x.c (x_make_dialog_box_internal):
10099         Call new delete-dialog-box-hook.
10100         Return an id.
10101
10102         * dialog.c:
10103         * dialog.c (syms_of_dialog):
10104         * dialog.c (vars_of_dialog):
10105         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10106
10107         * eval.c:
10108         * eval.c (signal_call_debugger):
10109         when noninteractive, output stack traces on the console instead
10110         of in a (never-seen) buffer.
10111
10112         * eval.c (signal_type_error):
10113         * eval.c (invalid_argument_2):
10114         * lisp.h:
10115         new funs for use w/structured errors.
10116
10117         * event-Xt.c:
10118         * event-Xt.c (x_to_emacs_keysym):
10119         * event-Xt.c (describe_event):
10120         * event-Xt.c (emacs_Xt_event_handler):
10121         * event-Xt.c (vars_of_event_Xt):
10122         * event-msw.c:
10123         * event-msw.c (mswindows_wnd_proc):
10124         * event-msw.c (vars_of_event_mswindows):
10125         rename {x,mswindows}-debug-events to debug-{}-events for
10126         consistency with other debug-foo variables.
10127
10128         * event-stream.c:
10129         document next-event more clearly.
10130
10131         * fileio.c (Ffile_name_directory):
10132         * fileio.c (Ffile_name_nondirectory):
10133         * fileio.c (Funhandled_file_name_directory):
10134         * fileio.c (file_name_as_directory):
10135         * fileio.c (Ffile_name_as_directory):
10136         * fileio.c (directory_file_name):
10137         * fileio.c (Fdirectory_file_name):
10138         * fileio.c (Fmake_temp_name):
10139         * fileio.c (Ffile_truename):
10140         * fileio.c (Fsubstitute_in_file_name):
10141         * fileio.c (expand_and_dir_to_file):
10142         * fileio.c (barf_or_query_if_file_exists):
10143         * fileio.c (check_executable):
10144         * fileio.c (Ffile_exists_p):
10145         * fileio.c (Ffile_writable_p):
10146         * fileio.c (Ffile_directory_p):
10147         * fileio.c (Ffile_regular_p):
10148         * fileio.c (Ffile_modes):
10149         * fileio.c (Ffile_newer_than_file_p):
10150         * fileio.c (Fverify_visited_file_modtime):
10151         * fileio.c (Fset_visited_file_modtime):
10152         * fileio.c (auto_save_1):
10153         (1). (2).
10154         fix up gcpro's.
10155
10156         * frame-msw.c:
10157         * frame-msw.c (mswindows_init_frame_1):
10158         * frame-msw.c (mswindows_enable_frame):
10159         * frame-msw.c (error_frame_unsizable):
10160         * frame-msw.c (msprinter_init_frame_1):
10161         * frame-msw.c (msprinter_init_frame_3):
10162         * frame-msw.c (console_type_create_frame_mswindows):
10163         (2).
10164         implement new enable/disable frame methods.
10165
10166         * frame-x.c:
10167         * frame-x.c (x_enable_frame):
10168         * frame-x.c (console_type_create_frame_x):
10169         implement new enable/disable frame methods.
10170
10171         * frame.c:
10172         * frame.c (Fdisable_frame):
10173         * frame.c (syms_of_frame):
10174         * frame.h (struct frame):
10175         implement new enable/disable frame methods/functions.
10176
10177         * general-slots.h:
10178         add initial-focus.
10179
10180         * glyphs-msw.c (mswindows_widget_instantiate):
10181         comment that initial-focus should be implemented.
10182
10183         * glyphs-widget.c:
10184         * glyphs-widget.c (check_valid_instantiator):
10185         * glyphs-widget.c (check_valid_orientation):
10186         * glyphs-widget.c (check_valid_tab_orientation):
10187         * glyphs-widget.c (check_valid_justification):
10188         * glyphs-widget.c (check_valid_border):
10189         * glyphs-widget.c (check_valid_callback):
10190         * glyphs-widget.c (check_valid_int_or_function):
10191         * glyphs-widget.c (check_valid_string_or_vector):
10192         * glyphs-widget.c (check_valid_item_list_1):
10193         * glyphs-widget.c (widget_validate):
10194         * glyphs-widget.c (combo_box_validate):
10195         * glyphs-widget.c (widget_instantiate):
10196         * glyphs-widget.c (syms_of_glyphs_widget):
10197         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10198         * glyphs-widget.c (image_instantiator_combo_box):
10199         * glyphs-widget.c (image_instantiator_scrollbar):
10200         * glyphs-widget.c (image_instantiator_tab_control):
10201         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10202         (2).
10203         support (unimplemented) keyword initial-focus.
10204         reindent long macros.
10205
10206         * glyphs-x.c (x_redisplay_widget):
10207         * glyphs-x.c (x_button_instantiate):
10208         * glyphs-x.c (x_button_redisplay):
10209         * glyphs-x.c (x_progress_gauge_instantiate):
10210         * glyphs-x.c (x_edit_field_instantiate):
10211         * glyphs-x.c (x_combo_box_instantiate):
10212         * glyphs-x.c (x_tab_control_instantiate):
10213         * glyphs-x.c (x_label_instantiate):
10214         * gui-x.c:
10215         * gui-x.c (button_item_to_widget_value):
10216         * gui-x.c (gui_items_to_widget_values_1):
10217         * gui-x.c (gui_item_children_to_widget_values):
10218         * gui-x.c (gui_items_to_widget_values):
10219         * gui-x.h:
10220         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10221         add new flag to gui-parsing routines to indicate whether
10222         accelerator specs should be supported.
10223
10224         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10225
10226         * glyphs.h (struct Lisp_Image_Instance):
10227         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10228         add initial-focus flag.
10229
10230         * gui.c:
10231         * gui.c (syms_of_gui):
10232         * gui.c (vars_of_gui):
10233         clean up menu-no-selection-hook.
10234
10235         * gui.h:
10236         support delete-dialog-box-hook.
10237
10238         * lread.c (Fload_internal):
10239         * lread.c (locate_file_in_directory_mapper):
10240         (1).
10241
10242         * lrecord.h:
10243         * lrecord.h (struct toolbar_button):
10244         * lrecord.h (syms_of_toolbar):
10245         document how to create a new object.
10246
10247         * menubar-msw.c (mswindows_char_is_accelerator):
10248         may be called on frames w/o menus.
10249
10250         * menubar.c (vars_of_menubar):
10251         clean up :filter docs.
10252
10253         * nt.c (readdir):
10254         * ntproc.c:
10255         (1).
10256
10257         * process-nt.c:
10258         * process-nt.c (validate_signal_number):
10259         * process-nt.c (signal_cannot_launch):
10260         * process-nt.c (nt_create_process):
10261         * process-nt.c (nt_send_process):
10262         * process-nt.c (nt_kill_child_process):
10263         * process-nt.c (nt_open_network_stream):
10264         * process-nt.c (syms_of_process_nt):
10265         (2).
10266         delete quote-handling.  call new lisp code that does it better.
10267
10268         * process-unix.c (connect_to_file_descriptor):
10269         * process-unix.c (allocate_pty):
10270         * process-unix.c (unix_send_process):
10271         * process-unix.c (unix_kill_child_process):
10272         * process-unix.c (unix_open_network_stream):
10273         * process-unix.c (unix_open_multicast_group):
10274         (1). (2).
10275
10276         * process.c:
10277         * process.c (Fstart_process_internal):
10278         (2).  need to canonicalize process path even if absolute.
10279
10280         * select-msw.c (symbol_to_ms_cf):
10281         * select-msw.c (ms_cf_to_symbol):
10282         * select-msw.c (cf_is_autofreed):
10283         * select-msw.c (mswindows_destroy_selection):
10284         * select.c:
10285         * select.c (syms_of_select):
10286         * select.h:
10287         support dibv5, fix bugs. (from Mike Alexander)
10288
10289         * select.c (Fget_selection_internal):
10290         * select.c (select_convert_out):
10291
10292         * sysdep.c:
10293         * sysdep.c (xemacs_stat):
10294         renamed.
10295
10296         * sysdep.c (mkdir):
10297         * sysdep.c (rmdir):
10298         but keep original stat() here because we provide encapsulation
10299         around these funs.
10300
10301         * sysfile.h:
10302         * sysfile.h (fstat):
10303         remove stat garbage.
10304
10305         * syswindows.h:
10306         fix X/MSW conflict.
10307         don't include tchar.h.  it's inappropriate because it makes
10308         compile-time distinctions when we want runtime distinctions.
10309         (we provide our own tchar replacements)
10310
10311         * toolbar.c:
10312         use default object printer for toolbar-button.
10313
10314         * unexcw.c:
10315         make sure we don't encapsulate.
10316
10317         * window.c (vars_of_window):
10318         emphasize that temp-buffer-show-hook is obsolete.
10319
10320 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10321
10322         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10323         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10324
10325         * events.c (Fevent_timestamp_lessp):
10326         Not 64-bit clean.  Use EMACS_INT, not int.
10327
10328 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10329
10330         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10331         unsigned int and changed the last enum to
10332         lrecord_type_last_built_in_type.
10333         (lrecord_implementations_table): changed prototype to know how
10334         long the array is supposed to be.
10335         (lrecord_type_count): new unsigned int to keep track of the
10336         current number of lisp lrecord types.
10337         (DEFINE_EXTERNAL_LRECORD):
10338         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10339         dynamic-modules to declare new lisp types. They are the same
10340         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10341         int for each new type, and increment lrecord_type_count by 1.
10342
10343         * alloc.c (lrecord_implementations_table): Changed to reference
10344         lrecord_type_last_built_in_type for the size of the array.
10345         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10346
10347 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10348
10349         * glyphs.h (check_valid_item_list): Renamed from
10350         check_valid_item_list_1.
10351
10352 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10353
10354         * select.c (Qselect_coerce): New.
10355         * select.c (Vselection_coercion_alist): New.
10356         * select.c (syms_of_select): Declare.
10357         * select.c (get-selection-internal): Use it.
10358         Use the new select-coerce functionality.
10359
10360         * select.c (select_coerce): New.
10361         * select.h (select_coerce): Declare.
10362         New function to coerce one type of data into another.
10363
10364 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10365
10366         * callproc.c (Fcall_process_internal):
10367         (Fcall_process_internal):
10368         * process-unix.c (unix_create_process):
10369         Save and restore the value of errno, so that error messages are accurate.
10370
10371 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10372
10373         * elhash.c (print_hash_table):
10374         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10375         Prettify docstrings and indentation.
10376
10377 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10378
10379         * window.c (Fwindow_pixel_edges): Subtract frame border and
10380         gutter size.
10381
10382 2000-07-31  Andy Piper  <andy@xemacs.org>
10383
10384         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10385         will acknowledge the change.
10386
10387         * glyphs.h: declare tab_control_order_only_changed.
10388
10389         * glyphs-x.c (x_tab_control_redisplay): use
10390         tab_control_order_only_changed.
10391
10392         * glyphs-widget.c (tab_control_order_only_changed): new function.
10393
10394         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10395         tab_control_order_only_changed.
10396
10397         * gui.c (gui_item_equal_sans_selected): new function.
10398         (gui_item_equal): use it.
10399
10400         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10401         :properties in favor of :items..
10402
10403         * glyphs-widget.c (check_valid_item_list): rename from
10404         check_valid_item_list_1.
10405         (check_valid_item_list_1): renamed.
10406         (combo_box_validate): deprecate :properties in favor of :items.
10407         (widget_instantiate): ditto.
10408         (tab_control_update): ditto.
10409         (image_instantiator_combo_box): ditto.
10410         (image_instantiator_tree_view): ditto.
10411         (image_instantiator_tab_control): ditto.
10412         (layout_post_instantiate): remove dead code.
10413
10414         * print.c (debug_print_no_newline): only write to debugger if in
10415         WIN32_NATIVE.
10416
10417         * elhash.c (Fmake_hash_table): update doc string.
10418
10419         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10420         messages whilst in GC. This at least stops XEmacs crashing but has
10421         the potential for wierd behaviour.
10422
10423 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10424
10425         * config.h.in:
10426         Make existence of s&m files optional.
10427
10428         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10429         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10430         * s/gnu.h: Remove HAVE_GETLOADAVG.
10431         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10432         * s/sol2.h: Remove HAVE_GETLOADAVG.
10433         * lisp.h: Remove getloadavg() declaration.
10434         * fns.c:
10435         Include <sys/loadavg.h> if available.
10436         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10437         * config.h.in:  Group together getloadavg()-related macros.
10438         Use only configure-time tests to detect getloadavg().
10439
10440 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10441
10442         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10443
10444 2000-07-25  Andy Piper  <andy@xemacs.org>
10445
10446         * syswindows.h: add tchar.h for native builds.
10447
10448         * frame.c (syms_of_frame): remove set-glyph-image.
10449
10450         * general-slots.h: add Qset_glyph_image.
10451
10452         * glyphs-widget.c (layout_update): add domain arg to
10453         set-glyph-image.
10454         (syms_of_glyphs_widget): remove set-glyph-image.
10455
10456 2000-07-23  Ben Wing  <ben@xemacs.org>
10457
10458         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10459         Vpopup_frame_list.
10460
10461 2000-07-22  Andy Piper  <andy@xemacs.org>
10462
10463         * symsinit.h: add syms_of_win32().
10464
10465         * gui-msw.c (syms_of_gui_mswindows): remove
10466         Fmswindows_shell_execute.
10467         (Fmswindows_shell_execute): moved to win32.c.
10468
10469         * emacs.c (main_1): add syms_of_win32 ().
10470
10471         * win32.c (init_potentially_nonexistent_functions): rewrite in
10472         compiler-friendly terms.
10473         (Fmswindows_shell_execute): move here from gui-msw.c.
10474         (syms_of_win32): new.
10475
10476         * device-msw.c (Fmswindows_printer_list): clean up args to
10477         EnumPrinters.
10478         Don't include tchar under cygwin or mingw.
10479         (msprinter_default_printer): make cygwin-friendly.
10480
10481 2000-07-21  Andy Piper  <andy@xemacs.org>
10482
10483         * glyphs-widget.c (image_instantiator_tree_view): use tab
10484         control's update function.
10485         (layout_property): new function. Retrieve items.
10486
10487         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10488         function. Re-populate the tree view from the pending items.
10489
10490         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10491         is designated the parent if the domain is an image instance. This
10492         is needed so that dirtiness can be cascade up the hierarchy and
10493         thus for layout children to be redisplayed correctly.
10494         (allocate_image_instance): rename glyph -> parent.
10495
10496         * redisplay.h: change redisplay_output_layout signature.
10497
10498         * redisplay-msw.c (mswindows_output_display_block): use domain
10499         arg.
10500
10501         * redisplay-x.c (x_output_display_block): use domain arg.
10502
10503 2000-07-10  Andy Piper  <andy@xemacs.org>
10504
10505         * window.c (Fset_window_configuration): add comment.
10506
10507         * redisplay-output.c (compare_runes):
10508         (redisplay_output_subwindow): redisplay rather than update subwindow.
10509         (redisplay_output_layout): ditto.
10510
10511         * redisplay-msw.c (mswindows_frame_output_end):
10512         (mswindows_frame_output_end): make defer window pos optional.
10513
10514         * lisp.h: add Flast.
10515
10516         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10517         normalize method. Change update method to be for changed
10518         instantiators. Add redisplay method. Change signature of layout
10519         method.
10520         (struct Lisp_Image_Instance): add instantiator.
10521         (IMAGE_INSTANCE_INSTANTIATOR): new.
10522         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10523         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10524         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10525
10526         * glyphs.c:
10527         (find_instantiator_differences): new function.
10528         (Fset_instantiator_property): new convenience function.
10529         (check_image_instance_structure): strictly check for vector
10530         instantiators.
10531         (normalize_image_instantiator): make non-static.
10532         (instantiate_image_instantiator): pass on dest_mask and use new
10533         signatures for image_instance_layout and friends.
10534         (mark_image_instance): mark the instantiator. Mark the subwindow
10535         face not the widget face.
10536         (image_instance_equal): add instantiator.
10537         (image_instance_hash): ditto.
10538         (allocate_image_instance): ditto.
10539         (Fset_image_instance_property): removed.
10540         (Fimage_instance_file_name): ditto.
10541         (Fcolorize_image_instance): ditto.
10542         (image_instance_layout): add offsets to be set.
10543         (update_image_instance): new function. update an image instance
10544         from its changed instantiator.
10545         (inherit_normalize): add dest_mask.
10546         (xbm_normalize): ditto.
10547         (xface_normalize): ditto.
10548         (xpm_normalize): ditto.
10549         (text_update): set_property -> update.
10550         (image_instantiate): use the glyph identity as a hash key, not the
10551         instantiator.
10552         (glyph_width): use new image_instance_layout signature.
10553         (glyph_ascent): ditto.
10554         (glyph_descent): ditto.
10555         (glyph_height): ditto.
10556         (glyph_query_geometry): ressurrect.
10557         (glyph_layout): ditto.
10558         (redisplay_subwindow): update -> redisplay.
10559         (syms_of_glyphs): add Fset_instantiator_property.
10560         (image_instantiator_format_create): set_property -> update.
10561
10562         * glyphs-x.c:
10563         (autodetect_normalize): add dest_maks to signature.
10564         (x_redisplay_subwindow): update -> redisplay.
10565         (x_redisplay_widget): ditto.
10566         (x_button_redisplay): ditto.
10567         (x_progress_gauge_redisplay): ditto.
10568         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10569         stacking order.
10570         (console_type_create_glyphs_x): update -> redisplay.
10571         (image_instantiator_format_create_glyphs_x): ditto.
10572
10573         * glyphs-widget.c:
10574         (check_valid_instantiator): disallow glyphs in the instantiator,
10575         they must now be vectors.
10576         (check_valid_instantiator_list): ditto.
10577         (glyph_instantiator_to_glyph): use internal symbol rather than
10578         intern.
10579         (widget_update): renamed from widget_set_property. Call cascaded
10580         update methods.
10581         (redisplay_widget): renamed from update_widget.
10582         (widget_layout): image_instance_layout now takes position as well
10583         as size.
10584         (widget_normalize): ditto.
10585         (widget_instantiate): ditto.
10586         (tab_control_query_geometry) ditto.:
10587         (tab_control_update): renamed from tab_control_set_property.
10588         (progress_gauge_update): set_property -> update.
10589         (layout_normalize): rewrite so that child instantiators are
10590         normalized also.
10591         (layout_update): new function. Create glyphs from the normalized
10592         children and cope with any other layout keywords. We do not
10593         instantiate children here that will be take care of by
10594         redisplay_output_layout.
10595         (layout_instantiate): call layout_update and not much else.
10596         (layout_post_instantiate): not sure whether this is needed
10597         anymore.
10598         (layout_query_geometry): query glyph geometry rather than
10599         image_instance geometry.
10600         (layout_layout): set offsets from pass in parameters. Use glyph
10601         geometry and layout functions rather than image instance ones.
10602         (native_layout_layout): ditto.
10603         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10604         (image_instantiator_widget): set_property -> update.
10605         (image_instantiator_buttons): ditto.
10606         (image_instantiator_progress_guage): ditto.
10607         (image_instantiator_tab_control): ditto.
10608         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10609         (image_instantiator_layout): add update method.
10610
10611         * glyphs-msw.c (bmp_normalize):
10612         (mswindows_resource_normalize): add dest_mask so that it can be
10613         proprogated by layout_normalize.
10614         (begin_defer_window_pos): make optional because it may not be the
10615         right thing to do and it introduces differences with X.
10616         (mswindows_unmap_subwindow): ditto.
10617         (mswindows_map_subwindow): ditto.
10618         (mswindows_redisplay_subwindow): renamed from
10619         mswindows_update_subwindow.
10620         (mswindows_redisplay_widget): ditto.
10621         (mswindows_button_redisplay): renamed from
10622         mswindows_button_update. Update is now what the instantiation
10623         function does for a changed instantiator.
10624         (mswindows_progress_gauge_instantiate): set the progress value
10625         here if appropriate.
10626         (mswindows_tab_control_redisplay): cope with re-ordering of the
10627         members of the tab widget by simply selecting the new top
10628         widget. This makes things appear ok if you click on a tab.
10629         (mswindows_combo_box_instantiate): image_instance_layout now takes
10630         position as well as size.
10631         (mswindows_progress_gauge_redisplay): renamed from
10632         mswindows_progress_gauge_update.
10633         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10634         (image_instantiator_format_create_glyphs_mswindows): ditto.
10635
10636         * glyphs-eimage.c (jpeg_normalize):
10637         (gif_normalize):
10638         (png_normalize):
10639         (tiff_normalize): add dest_mask so that it can be proprogated by
10640         layout_normalize.
10641
10642         * elhash.c:
10643         (print_hash_table):
10644         (hash_table_weakness_validate):
10645         (decode_hash_table_weakness):
10646         (Fhash_table_weakness):
10647         (Fhash_table_type):
10648         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10649
10650         * console.h (struct console_methods): move update_* to
10651         redisplay_*.
10652
10653 2000-07-20  Ben Wing  <ben@xemacs.org>
10654
10655         * *.[ch] (XSETOBJ): remove unused middle argument.
10656         lisp-disunion.h: correct wrap_object() to one argument.
10657
10658 2000-07-15  Ben Wing  <ben@xemacs.org>
10659
10660         * s/cygwin32.h:
10661         * s/cygwin32.h (CYGWIN_CONV_PATH):
10662         Add missing logb prototype for v1.1.
10663         Use post-b20 names and alias to pre-b20 names when pre-b20.
10664
10665         * s/windowsnt.h: [5].
10666
10667 2000-07-15  Ben Wing  <ben@xemacs.org>
10668
10669         * Makefile.in.in (x_objs):
10670         * Makefile.in.in (sheap_objs):
10671         * Makefile.in.in (objs):
10672         added win32.o, cosmetic cleanups.
10673
10674         * alloc.c (Fmake_byte_code):
10675         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10676         etc. macros which declare their own args now.
10677
10678         * alloc.c (syms_of_alloc):
10679         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10680
10681         * buffer.c:
10682         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10683
10684         * buffer.c (Fget_file_buffer):
10685         Fixed GCPRO problem.
10686
10687         * buffer.c (get_truename_buffer):
10688         Fixed comment about GC checking.
10689
10690         * buffer.c (syms_of_buffer):
10691         Undeclared those dedicated frame funs.
10692         [2].
10693
10694         * buffer.h:
10695         Define convenience macros for internal/external conversions.
10696         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10697         and Qenvironment_variable_encoding for cleaner code.
10698
10699         * bufslots.h:
10700         Remove dedicated-frame; in lisp.
10701
10702         * bytecode.c (funcall_compiled_function):
10703         [1].
10704
10705         * bytecode.c (syms_of_bytecode):
10706         [2].
10707
10708         * console-msw.c:
10709         * console-msw.c (mswindows_show_console): Rewrote.
10710
10711         * console-msw.c (Fmswindows_debugging_output): New.
10712         Sends to OutputDebugString (special MSWin debugger interface).
10713
10714         * console-msw.c (Fmswindows_message_box):
10715         Fixed stupid bugs so it works when called from kill-emacs.
10716
10717         * console-msw.c (syms_of_console_mswindows):
10718         Declare Fmswindows_debugging_output.
10719
10720         * console-msw.h:
10721         New MSWin prototypes.
10722
10723         * console-msw.h (struct mswindows_frame):
10724         New entry last-click-mods for improved button-modifier support.
10725
10726         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10727         New struct entry `popup' with corresponding accessor.
10728
10729         * console-x.c:
10730         * console-x.c (split_up_display_spec):
10731         * console-x.c (get_display_arg_connection):
10732         * console-x.c (x_semi_canonicalize_console_connection):
10733         * console-x.c (x_canonicalize_device_connection):
10734         [[[6]]]: Change char to more specific type.
10735         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10736
10737         * console-x.c (x_semi_canonicalize_console_connection):
10738         * console-x.c (x_canonicalize_device_connection):
10739         [[[9]]]: Fix up error signalling to use new structured error system.
10740
10741         * console-x.h:
10742         [[[4]]]: Define codesys aliases:
10743         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10744         Qx_color_name_encoding, Qx_display_name_encoding.
10745
10746         * console.h (struct console_methods):
10747         New method make_dialog_box_internal supersedes older
10748         popup_dialog_box method.
10749
10750         * data.c:
10751         Define many new errors, part of new structured errors.
10752
10753         * data.c (init_errors_once_early):
10754         * data.c (syms_of_data):
10755         [2].
10756
10757         * device-msw.c (mswindows_init_device):
10758         [[[5]]]: Cleanup to support NT 3.51.
10759
10760         * device-msw.c (decode_devmode): Cleanup.
10761
10762         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10763         * device-msw.c (mswindows_handle_print_dialog_box):
10764         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10765         * device-msw.c (syms_of_device_mswindows):
10766         Delete the dialog box primitives recently introduced by Kirill and
10767         instead interface to general dialog box interface.
10768
10769         * device-x.c:
10770         * device-x.c (compute_x_app_name):
10771         * device-x.c (x_init_device):
10772         * device-x.c (Fx_valid_keysym_name_p):
10773         * device-x.c (Fx_set_font_path):
10774         [6].
10775         [7].
10776
10777         * device.h (wrap_device): New.
10778         First of its kind; meant to replace XSETDEVICE.
10779
10780         * dialog-msw.c: Many file-dialog symbols.
10781
10782         * dialog-msw.c (mswindows_register_popup_frame): New.
10783         * dialog-msw.c (mswindows_is_dialog_msg): New.
10784         For supporting kbd traversal in dialog boxes.
10785
10786         * dialog-msw.c (dialog_proc):
10787         Support hitting ESC in dialogs.
10788
10789         * dialog-msw.c (struct):
10790         Common dialog box errors.
10791
10792         * dialog-msw.c (handle_file_dialog_box): New.
10793         Add file dialog code.
10794
10795         * dialog-msw.c (handle_question_dialog_box):
10796         Redo existing code to support new question dialog syntax.
10797
10798         * dialog-msw.c (console_type_create_dialog_mswindows):
10799         We support new dialog console method.
10800
10801         * dialog-msw.c (syms_of_dialog_mswindows):
10802         * dialog-msw.c (vars_of_dialog_mswindows):
10803         New file dialog symbols, vars.
10804
10805         * dialog-x.c:
10806         * dialog-x.c (maybe_run_dbox_text_callback):
10807         * dialog-x.c (dbox_descriptor_to_widget_value):
10808         * dialog-x.c (x_make_dialog_box_internal):
10809         * dialog-x.c (console_type_create_dialog_x):
10810         Mule-ize entire file.
10811         Redo to support question dialog syntax.
10812         [6].
10813
10814         * dialog.c:
10815         * dialog.c (Fmake_dialog_box_internal):
10816         * dialog.c (syms_of_dialog):
10817         Kill old popup-dialog-box, replace with new primitive.
10818         Just call device method or signal error.
10819
10820         * eldap.c (Fldap_open):
10821         * eldap.c (Fldap_search_basic):
10822         * eldap.c (Fldap_add):
10823         * eldap.c (Fldap_modify):
10824         [1].
10825         [7].
10826
10827         * emacs.c:
10828         * emacs.c (make_arg_list_1):
10829         * emacs.c (make_arg_list):
10830         Mule-ize call to dll_init().
10831         [6].
10832         [8].
10833
10834         * emacs.c (make_argc_argv):
10835         * emacs.c (free_argc_argv):
10836         * emacs.c (init_cmdargs):
10837         * emacs.c (main_1):
10838         * emacs.c (Fkill_emacs):
10839         * emacs.c (Fdump_emacs):
10840         Update comments about what can be used in syms_* etc.
10841         Call init_win32() when necessary.
10842         Fix up MS Win dialog box in kill-buffer to actually work right.
10843         [7].
10844
10845         * eval.c:
10846         * eval.c (For):
10847         * eval.c (Fand):
10848         * eval.c (Fprogn):
10849         * eval.c (Fprog1):
10850         * eval.c (Fprog2):
10851         * eval.c (FletX):
10852         * eval.c (Flet):
10853         * eval.c (condition_case_3):
10854         * eval.c (Feval):
10855         * eval.c (function_argcount):
10856         * eval.c (funcall_lambda):
10857         [1].
10858
10859         * eval.c (type_error): New.
10860         * eval.c (maybe_type_error): New.
10861         * eval.c (continuable_type_error): New.
10862         * eval.c (maybe_continuable_type_error): New.
10863         * eval.c (type_error_with_frob): New.
10864         * eval.c (maybe_type_error_with_frob): New.
10865         * eval.c (continuable_type_error_with_frob): New.
10866         * eval.c (maybe_continuable_type_error_with_frob): New.
10867         New functions for use with structured errors.
10868
10869         * event-Xt.c:
10870         * event-Xt.c (x_event_to_emacs_event):
10871         Buttons are now modifiers too.
10872
10873         * event-Xt.c (emacs_Xt_current_event_timestamp):
10874         Implement new event method.
10875         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10876
10877         * event-msw.c:
10878         * event-msw.c (ntpipe_shove_writer): [5].
10879         * event-msw.c (mswindows_enqueue_mouse_button_event):
10880         * event-msw.c (mswindows_drain_windows_queue):
10881         * event-msw.c (mswindows_wnd_proc): [7].
10882         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10883         * event-msw.c (mswindows_modifier_state):
10884         Throughout: support new button modifiers.
10885
10886         * event-msw.c (emacs_mswindows_current_event_timestamp):
10887         Implement new event method.
10888         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10889
10890         * event-stream.c:
10891         * event-stream.c (event_stream_current_event_timestamp): New.
10892         * event-stream.c (maybe_kbd_translate): New functionality.
10893         * event-stream.c (vars_of_event_stream):
10894         Document new kbd-translate-table functionality.
10895
10896         * event-stream.c (Fcurrent_event_timestamp): New.
10897         New primitive for use in fabricated events.
10898         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10899
10900         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10901
10902         * events.c:
10903         * events.c (Fmake_event):
10904         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10905         [1].
10906         [9].
10907
10908         * events.c (format_event_object): fix gcc warnings.
10909
10910         * events.c (Fevent_timestamp): Document new primitives.
10911
10912         * events.c (TIMESTAMP_HALFSPACE): New.
10913
10914         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10915         comparing timestamps correctly (half-space algorithm).
10916
10917         * events.c (Fevent_modifier_bits): Doc fix.
10918
10919         * events.c (Fevent_modifiers): Major doc addition.
10920         * events.c (event_x_y_pixel_internal): Typo fix.
10921         * events.c (syms_of_events): Declare new primitives.
10922
10923         * events.h:
10924         Update long comment for button modifiers, timestamps.
10925
10926         * events.h (struct event_stream):
10927         New current_event_timestamp method.
10928
10929         * extents.c:
10930         * extents.c (extent_in_region_p):
10931         * extents.c (decode_extent):
10932         * extents.c (Fset_extent_parent):
10933         * extents.c (decode_map_extents_flags):
10934         Fix gcc warnings.
10935         [9].
10936
10937         * extents.c (struct extent_at_arg):
10938         * extents.c (decode_extent_at_flag):
10939         * extents.c (extent_at_mapper):
10940         * extents.c (extent_at_bytind):
10941         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10942         * extents.c (Fextents_at): New primitive. [9].
10943         * extents.c (symbol_to_glyph_layout): [9].
10944         Support new primitive `extents-at'.
10945
10946
10947         * extents.c (get_text_property_bytind):
10948         extent_at_bytind has another arg.
10949         [9].
10950
10951         * extents.c (syms_of_extents): New primitive.
10952
10953         * file-coding.c (Fmake_coding_system): [1].
10954         * file-coding.c (subsidiary_coding_system): fix gcc warning
10955         * file-coding.c (syms_of_file_coding): [2].
10956
10957         * fileio.c (Fexpand_file_name):
10958         * fileio.c (Fsysnetunam):
10959         * fileio.c (Ffile_exists_p):
10960         * fileio.c (Ffile_executable_p):
10961         * fileio.c (Fverify_visited_file_modtime):
10962         Clean up GCPROing.
10963
10964         * fileio.c (syms_of_fileio): [2].
10965
10966         * filelock.c (lock_file_1):
10967         * filelock.c (current_lock_owner):
10968         * filelock.c (lock_if_free):
10969         * filelock.c (lock_file):
10970         * filelock.c (unlock_file):
10971         Clean up GCPROing.
10972
10973         * fns.c (concat): Fix gcc warning.
10974
10975         * fns.c (Fmember):
10976         * fns.c (Fold_member):
10977         * fns.c (Fmemq):
10978         * fns.c (Fold_memq):
10979         * fns.c (memq_no_quit):
10980         * fns.c (Fassoc):
10981         * fns.c (Fold_assoc):
10982         * fns.c (Fassq):
10983         * fns.c (Fold_assq):
10984         * fns.c (assq_no_quit):
10985         * fns.c (Frassoc):
10986         * fns.c (Fold_rassoc):
10987         * fns.c (Frassq):
10988         * fns.c (Fold_rassq):
10989         * fns.c (rassq_no_quit):
10990         * fns.c (Fdelete):
10991         * fns.c (Fold_delete):
10992         * fns.c (Fdelq):
10993         * fns.c (Fold_delq):
10994         * fns.c (delq_no_quit):
10995         * fns.c (Fremassoc):
10996         * fns.c (Fremassq):
10997         * fns.c (remassq_no_quit):
10998         * fns.c (Fremrassoc):
10999         * fns.c (Fremrassq):
11000         * fns.c (remrassq_no_quit):
11001         * fns.c (Freverse):
11002         * fns.c (mapcar1):
11003         [1].
11004
11005         * frame-msw.c (mswindows_init_frame_1):
11006         * frame-msw.c (mswindows_delete_frame):
11007         Register popups with dialog code so keyboard traversing works.
11008
11009         * frame-tty.c (tty_raise_frame_no_select): [1].
11010
11011         * frame-x.c:
11012         * frame-x.c (x_set_frame_text_value):
11013         * frame-x.c (x_set_frame_properties):
11014         * frame-x.c (x_create_widgets):
11015         [7].
11016
11017         * frame.c:
11018         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11019
11020         * frame.h (wrap_frame): New.
11021         Macro like wrap_device.
11022
11023         * general.c:
11024         * general.c (SYMBOL):
11025         * general.c (syms_of_general):
11026         Major reorg.  This is now just a wrapper and symbols themselves
11027         are listed in general-slots.h.
11028
11029         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11030         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11031
11032         * glyphs-msw.c (mswindows_native_layout_instantiate):
11033         Add DS_CONTROL so keyboard traversal will work.
11034
11035         * glyphs-widget.c:
11036         * glyphs-widget.c (syms_of_glyphs_widget):
11037         Move some symbols to general-slots.h.
11038
11039         * glyphs-x.c:
11040         * glyphs-x.c (xbm_instantiate_1):
11041         * glyphs-x.c (x_xbm_instantiate):
11042         * glyphs-x.c (x_xface_instantiate):
11043         * glyphs-x.c (autodetect_instantiate):
11044         * glyphs-x.c (cursor_font_instantiate):
11045         * glyphs-x.c (x_update_widget):
11046         * glyphs-x.c (x_widget_instantiate):
11047         * glyphs.c (bitmap_to_lisp_data):
11048         * glyphs.c (pixmap_to_lisp_data):
11049         [7].
11050
11051         * glyphs.c (syms_of_glyphs):
11052         [2].
11053
11054         * gui-x.c:
11055         * gui-x.c (print_widget_value):
11056         * gui-x.c (menu_separator_style_and_to_external):
11057         * gui-x.c (add_accel_and_to_external):
11058         * gui-x.c (button_item_to_widget_value):
11059         * gui-x.c (gui_items_to_widget_values_1):
11060         * gui-x.c (gui_items_to_widget_values):
11061         * gui-x.c (syms_of_gui_x):
11062         * gui-x.c (vars_of_gui_x):
11063         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11064         [9].
11065
11066         * gui-x.h:
11067         Muleize, prototype changes matching gui-x.c.
11068
11069         * gui.c:
11070         * gui.c (separator_string_p):
11071         * gui.c (gui_item_add_keyval_pair):
11072         * gui.c (make_gui_item_from_keywords_internal):
11073         * gui.c (signal_too_long_error):
11074         * gui.c (parse_gui_item_tree_item):
11075         * gui.c (syms_of_gui):
11076         * gui.c (vars_of_gui):
11077         * gui.h:
11078         menu-no-selection-hook moved here (used by MSWin).
11079         Move some symbols to general-slots.h.
11080         [6].
11081         [9].
11082
11083         * insdel.c (get_buffer_pos_char):
11084         * insdel.c (get_buffer_range_char):
11085         Add GC comments.
11086
11087         * keymap.c (keymap_lookup_directly):
11088         * keymap.c (keymap_store):
11089         * keymap.c (ensure_meta_prefix_char_keymapp):
11090         * keymap.c (describe_map):
11091         * keymap.h:
11092         Support new button modifiers.
11093
11094         * lisp-disunion.h (wrap_object):
11095         * lisp-disunion.h (XSETOBJ):
11096         Rename make_obj to wrap_object.
11097
11098         * lisp-union.h:
11099         * lisp-union.h (make_int):
11100         * lisp-union.h (make_char):
11101         Support wrap_object.
11102
11103         * lisp.h:
11104         * lisp.h (LIST_LOOP):
11105         * lisp.h (EXTERNAL_LIST_LOOP):
11106         * lisp.h (LIST_LOOP_2):
11107         * lisp.h (EXTERNAL_LIST_LOOP_1):
11108         * lisp.h (EXTERNAL_LIST_LOOP_2):
11109         * lisp.h (EXTERNAL_LIST_LOOP_3):
11110         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11111         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11112         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11113         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11114         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11115         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11116         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11117         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11118         * lisp.h (struct Lisp_Symbol):
11119         * lisp.h (maybe_continuable_error_with_frob):
11120         Fix up section comments.
11121         Add new types for char to indicate usage.
11122         Delete symbols auto-generated from general-slots.h.
11123         Add prototypes for structured error functions.
11124         Add long comments describing looping macros and change interface
11125         so that lvalues are automatically declared.
11126         Add NO_DECLARE macro in case callers want to declare lvalues
11127         themselves.
11128
11129         * lread.c (read_syntax_error):
11130         * lread.c (continuable_read_syntax_error):
11131         * lread.c (read_structure):
11132         * lread.c (sequence_reader):
11133         * lread.c (read_list_conser):
11134         * lread.c (read_compiled_function):
11135         Rename syntax_error and continuable_syntax_error to avoid clash
11136         with same-named structured error functions.
11137
11138         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11139         * menubar-msw.c (populate_menu_add_item):
11140         * menubar-msw.c (populate_or_checksum_helper):
11141         [5].
11142         [9].
11143
11144         * menubar-x.c:
11145         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11146         Mule-ize whole file.
11147
11148         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11149
11150         * mule-charset.c (Fmake_charset):
11151         * mule-wnnfns.c (Fwnn_set_param):
11152         [1].
11153
11154         * ntproc.c (create_child):
11155         * ntproc.c (Fwin32_set_current_locale):
11156         Add comments portending doom.
11157
11158         * objects-msw.c:
11159         * objects-msw.c (old_font_enum_callback_2):
11160         * objects-msw.c (font_enum_callback_1):
11161         * objects-msw.c (mswindows_enumerate_fonts):
11162         [5].
11163
11164         * objects-x.c:
11165         * objects-x.c (allocate_nearest_color):
11166         * objects-x.c (x_parse_nearest_color):
11167         * objects-x.c (x_initialize_color_instance):
11168         * objects-x.c (x_print_color_instance):
11169         * objects-x.c (x_finalize_color_instance):
11170         * objects-x.c (x_valid_color_name_p):
11171         * objects-x.c (x_initialize_font_instance):
11172         * objects-x.c (x_print_font_instance):
11173         * objects-x.c (valid_x_font_name_p):
11174         * objects-x.c (truename_via_FONT_prop):
11175         * objects-x.c (truename_via_random_props):
11176         * objects-x.c (truename_via_XListFonts):
11177         * objects-x.c (x_font_truename):
11178         * objects-x.c (x_font_instance_truename):
11179         * objects-x.c (x_font_instance_properties):
11180         * objects-x.c (x_list_fonts):
11181         * objects-x.c (x_find_charset_font):
11182         Mule-ize entire file.
11183         [7].
11184
11185         * objects-x.h:
11186         Mule-verify.
11187
11188         * print.c:
11189         * print.c (std_handle_out_external):
11190         * print.c (debug_print_no_newline):
11191         * print.c (syms_of_print):
11192         Output to all debugger kinds in debug-print.
11193         Fix console-output code under MSWin to actually work.
11194
11195         * process-nt.c (send_signal):
11196         * process-nt.c (nt_create_process):
11197         Use newer Unicode macros.
11198
11199         * process-unix.c (unix_create_process):
11200         * process-unix.c (unix_canonicalize_host_name):
11201         * process-unix.c (unix_open_network_stream):
11202         [7].
11203
11204         * scrollbar-x.c:
11205         Mule-verify.
11206
11207         * search.c (syms_of_search):
11208         [2].
11209
11210         * select-msw.c (mswindows_destroy_selection):
11211         Use LIST_LOOP_2.
11212
11213         * select-x.c (symbol_to_x_atom):
11214         [7].
11215
11216         * select.c (syms_of_select):
11217         [2].
11218
11219         * sound.c (Fplay_sound_file):
11220         [7].
11221
11222         * specifier.c:
11223         * specifier.c (decode_specifier_type):
11224         * specifier.c (Fvalid_specifier_locale_type_p):
11225         * specifier.c (check_valid_locale_or_locale_type):
11226         * specifier.c (decode_locale):
11227         * specifier.c (decode_locale_type):
11228         * specifier.c (decode_locale_list):
11229         * specifier.c (check_valid_domain):
11230         * specifier.c (decode_specifier_tag_set):
11231         * specifier.c (Fcanonicalize_tag_set):
11232         * specifier.c (Fdefine_specifier_tag):
11233         * specifier.c (Fspecifier_tag_predicate):
11234         * specifier.c (check_valid_inst_list):
11235         * specifier.c (check_valid_spec_list):
11236         * specifier.c (decode_how_to_add_specification):
11237         * specifier.c (check_modifiable_specifier):
11238         * specifier.c (specifier_add_spec):
11239         * specifier.c (boolean_validate):
11240         * specifier.c (display_table_validate):
11241         [9].
11242
11243         * specifier.c (syms_of_specifier):
11244         Move some symbols to general-slots.h.
11245         [2].
11246
11247         * symbols.c:
11248         * symbols.c (Fmapatoms):
11249         * symbols.c (Fapropos_internal):
11250         Add GCPROs.
11251
11252         * symbols.c (set_default_buffer_slot_variable):
11253         * symbols.c (set_default_console_slot_variable):
11254         [1].
11255
11256         * symbols.c (defsymbol_massage_name_1):
11257         * symbols.c (defkeyword_massage_name):
11258         * symbols.c (deferror_1):
11259         * symbols.c (deferror):
11260         * symbols.c (deferror_massage_name_and_message):
11261         * symeval.h:
11262         * symeval.h (DEFSYMBOL):
11263         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11264
11265         * symbols.c (syms_of_symbols):
11266         [2].
11267
11268         * symsinit.h:
11269         * symsinit.h (init_win32): New.
11270         Also new is syms_of_dialog_mswindows.
11271
11272         * syswindows.h:
11273         Add new Unicode macros, missing Cygwin wide-char functions,
11274         convenience conversion macros for Qmswindows_tstr, macros for
11275         encapsulating required MSWin <-> Cygwin filename conversions,
11276         prototype for dynamically-extracted (not in NT 3.51) functions.
11277
11278         * toolbar-x.c:
11279         Mule-verify.
11280
11281         * tooltalk.c (Fadd_tooltalk_message_arg):
11282         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11283         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11284         [7].
11285
11286         * tooltalk.c (syms_of_tooltalk):
11287         [2].
11288
11289         * unexnt.c:
11290         * unexnt.c (unexec):
11291         Fix up headers, declaration of unexec() to be more standard.
11292
11293 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11294
11295         * offix.h: Revert change to guard macros - they're used in offix.c!
11296
11297 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11298
11299         * lisp.h: Defsubred Fdelete.
11300
11301         * console-msw.h:  (msprinter_default_printer): Added.
11302
11303         * console-msw.c (msprinter_canonicalize_console_connection):
11304         (msprinter_canonicalize_device_connection): Added.
11305
11306         * device-msw.c (msprinter_default_printer):
11307         (Fmswingows_get_default_printer):
11308         (signal_enum_priner_error):
11309         (Fmswingows_printer_list): Added.
11310
11311 2000-07-19  Martin Buchholz <martin@xemacs.org>
11312
11313         * XEmacs 21.2.35 is released.
11314
11315 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11316
11317         * select-x.c (x_handle_selection_request):
11318         Text selected in xemacs and pasted into xterm failed to appear.
11319         Spelling fixes and cosmetic changes.
11320
11321 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11322
11323         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11324         XEmacs frame (fix for doubling chars in dialog boxes).
11325
11326 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11327
11328         * select.c (select_convert_in, select_convert_out):
11329         Don't call intern() every time.
11330
11331         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11332         * select.c (vars_of_select): Initialise them.
11333
11334 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11335
11336         * select.c (selection-coercible-types): New.
11337
11338         * select.c (own-selection-internal):
11339         * select.c (get-selection-internal):
11340         MULE bug fix - these should default to COMPOUND_TEXT and not
11341         STRING for MULE. I think.
11342
11343         * select.c (select_convert_out): Use selection-coercible-types
11344         to find types that we can attempt to perform coercions on.
11345
11346 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11347
11348         * mule-wnnfns.c:
11349         * mule-canna.c:
11350         Add coding: cookie to identify encoding.
11351
11352         * mule-canna.c (CANNA_mode_keys): make static.
11353         Use proper prototypes, even for functions of no arguments.
11354         Remove external prototype for Fding().
11355
11356         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11357
11358         * select.c (syms_of_select): Add missing DEFSUBR.
11359
11360 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11361
11362         * select.c (get_selection_internal, own_selection_internal):
11363         Make the type default to STRING, rather than placing a nil type
11364         into Vselection_alist.
11365
11366 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11367
11368         * gpmevent.c (tty_selection_exists_p):
11369         * gpmevent.c (tty_own_selection):
11370         Updated parameter lists.
11371
11372 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11373
11374         * select.h (selection-alist): Removed declaration.
11375
11376         * select.h (get_local_selection):
11377         * select.c (get_local_selection):
11378         Made static.
11379
11380         * select.h (convert_selection): Removed declaration.
11381         * select.c (convert_selection): Removed.
11382         This function belongs in Lisp.
11383
11384         * select.h (select_convert_in): Declare.
11385         * select.h (select_convert_out): Declare.
11386         * select.c (select_convert_in): New.
11387         * select.c (select_convert_out): New.
11388         New conversion functions for other files to call.
11389
11390         * select.h (select_notify_buffer_kill): Declare.
11391         * select.c (select_notify_buffer_kill): New.
11392         New functions that get called from kill-buffer.
11393
11394         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11395         X-specific lisp code.
11396
11397         * select.h: Declare some of the lisp-visible functions for
11398         external use.
11399
11400         * select.c (clean_local_selection_data): Removed. This was
11401         a disgusting function, and previously should have been in
11402         select-x.c in any case. The functionality is now provided
11403         in select-convert-from-integer (select.el).
11404
11405         * select.c (available-selection-types): Fixed stupidity where
11406         INTEGER and ATOM got added twice. Also add STRING when we see an
11407         extent.
11408
11409         * select.c (get-selection-internal): Removed symbol stripping. No
11410         longer causes conversion when data comes from the internal cache.
11411
11412         * select.c (syms_of_select): Added new functions.
11413
11414         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11415         error checking - previously this called abort!
11416
11417         * select-x.c (x_own_selection): Changed comment.
11418
11419         * select-x.c (x_handle_selection_request): Use select_convert_out.
11420         Don't mess with selection-alist; it's an internal variable of select.c.
11421
11422         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11423
11424         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11425         rather than messing with selection-alist.
11426
11427         * select-msw.c (mswindows_get_foreign_selection):
11428         Use TO_INTERNAL_FORMAT rather than hacking.
11429
11430 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11431
11432         * process-unix.c (unix_open_multicast_group):
11433         (unix_open_multicast_group): Remove useless casts.
11434
11435 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11436
11437         * sound.c (Fplay_sound): Fix `unused variable' warning.
11438
11439         * emacs.c (main): Use correct type for _environ on SCO5.
11440
11441 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11442
11443         * console.h (own_selection_method):
11444         * console.h (selection_exists_p_method):
11445         * console.h (available_selection_types_method): New.
11446         * console.h (register_selection_data_type_method): New.
11447         * console.h (selection_data_type_name): New.
11448
11449         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11450         function & alist to track GlobalAlloc()'d handles that need
11451         releasing when the clipboard data gets replaced or emptied.
11452
11453         * event-msw.c (mswindows_wnd_proc): Call it.
11454
11455         * lisp.h, general.c (Qappend): New symbol representing a
11456         `how-to-add' mode.
11457
11458         * select.c (own-selection-internal):
11459         * select.c (selection-exists-p):
11460         * select.c (available-selection-types): New.
11461         * select.c (register-selection-data-type): New.
11462         * select.c (selection-data-type-name): New.  New functions to deal
11463         with device-specific selection data formats.
11464         * select.c (selection-converter-out-alist): Renamed.
11465         * select.c (selection-converter-in-alist): New.
11466         * select.c (selection-appender-alist): New.  Added new alists.
11467         * select.c (syms_of_select, vars_of_select): Added new symbols &
11468         variables.
11469         * select.c (get_local_selection): Split.
11470         * select.c: Removed spurious type checking - selections may now be
11471         of any type, not just strings.
11472         * select.c (own-selection-internal):
11473
11474         * select.h, select.c (convert_selection): New. Created
11475         convert_selection() function based on get_local_selection().
11476         * select.h, select.c (QCF_*): New symbols representing mswindows
11477         clipboard formats.
11478         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11479         symbols representing `how-to-add' modes.
11480
11481         * select-msw.c (x_sym_p): New.
11482         * select-msw.c (symbol_to_ms_cf): New.
11483         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11484         symbols & clipboard formats. Can also handle string names.
11485         * select-msw.c (mswindows_own_selection):
11486         * select-msw.c (mswindows_selection_exists_p):
11487         Added `data-type' parameter. Use it.
11488         * select-msw.c (mswindows_available_selection_types): New.
11489         * select-msw.c (mswindows_register_selection_data_type): New.
11490         * select-msw.c (mswindows_selection_data_type_name): New.
11491         * select-msw.c (mswindows_own_selection):
11492         * select-msw.c (mswindows_get_foreign_selection):
11493         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11494         * select-msw.c (console_create_select_mswindows): Added new methods.
11495         * select-msw.c (mswindows_destroy_selection): New.
11496         * select-msw.c (Vhandle_alist): New list.
11497         * select-msw.c (mswindows_own_selection):
11498
11499         * select-x.c (x_own_selection):
11500         * select-x.c (x_selection_exists_p):
11501         * select-x.c: Added some comments about maybe using new
11502         functionality.
11503         * select-x.c (x_own_selection):
11504
11505         * specifier.c: Remove definition of Qappend (now in general.c)
11506         * specifier.c (syms_of_specifier): Remove Qappend.
11507
11508 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11509
11510         * config.h.in: Add socklen_t.
11511
11512         * s/decosf4-0.h: No special compiler flags needed or desired.
11513         In particular, undefine _BSD for DEC OSF 4.0.
11514
11515 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11516
11517         * redisplay-msw.c (msprinter_frame_output_end): Added.
11518         (console_type_create_redisplay_mswindows): Referred the above.
11519
11520         * frame.c (setup_frame_without_minibuffer): Do not create a
11521         default minibuffer frame on a printer device.
11522
11523         * frame-msw.c (apply_dc_geometry): Added.
11524         (msprinter_start_page):
11525         (msprinter_init_frame_3):
11526         (msprinter_eject_page): Use it.
11527
11528         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11529         and removed residual duplex and orientation properties.
11530
11531 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11532
11533         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11534
11535         * unexalpha.c: Remove system prototypes from C sources!
11536
11537 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11538
11539         * eval.c: Remove references to M-x edit-options in DEFUNs for
11540         `defvar' and `defconst'.
11541
11542 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11543
11544         * config.h.in: Remove SMART_INCLUDE hackery.
11545
11546         PostgreSQL hacking:
11547         * config.h.in: Don't use SMART_INCLUDE.
11548
11549         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11550         * inline.c: Simply #include "postgresql.h"
11551         * postgresql.c:
11552         - Don't use SMART_INCLUDE
11553         - Use simply "const".
11554         - Use standard doc string conventions.
11555         - Use correct type for result of PQstatus.
11556
11557 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11558
11559         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11560
11561         C++ compilation changes.
11562         * config.h.in (EXTERN_C): Define.
11563         * config.h.in (not): This is also a C++ keyword.
11564         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11565         * cm.c: Use EXTERN_C.
11566         * redisplay-tty.c: Use EXTERN_C.
11567         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11568
11569 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11570
11571         * general.c: Remove duplicate definition for Qfunction.
11572
11573 2000-07-08  Ben Wing  <ben@xemacs.org>
11574
11575         * device-msw.c (msprinter_init_device):
11576         * device-msw.c (sync_printer_with_devmode):
11577         * device-msw.c (handle_devmode_changes):
11578         * device-msw.c (print_dialog_worker):
11579         * device-msw.c (Fmsprinter_apply_settings):
11580         * device-msw.c (hash_devmode):
11581         * device-msw.c (Fmsprinter_settings_despecialize):
11582         use Qmswindows_tstr, not Qctext.
11583
11584         * vm-limit.c (check_memory_limits):
11585         avoid infinite loop printing warning messages.
11586
11587 2000-07-05  Craig Lanning  <lanning@scra.org>
11588
11589         * Makefile.in.in: Add support for including the Windows resources
11590         when building with the cygwin and mingw targets.
11591
11592         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11593         not set or not correct.
11594         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11595         (init_initial_directory): Don't try to use $PWD on the
11596         WIN32_NATIVE target.
11597
11598         * s\cygwin32.h:
11599         [[Add -mwindows to eliminate console window.]] not required --ben
11600         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11601         (MAIL_USE_POP): removed; now handled by configure.
11602
11603         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11604         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11605         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11606         (MAIL_USE_POP): removed; now handled by configure.
11607         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11608         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11609         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11610         constant string.
11611         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11612         up from <winsock.h> via systime.h.
11613         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11614         (getpagesize): from Dan Holmsand, added.
11615         Added #endif which was left dangling by Ben's mega patch; added
11616         comment to help prevent this in the future.
11617
11618         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11619
11620 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11621
11622         * console-msw.h (struct mswindows_device): Removed unnecessary
11623         cached device geometry values.
11624         Added update_tick and an accessor macro.
11625         (Lisp_Devmode): Added lrecord declaration.
11626         (struct msprinter_device): Contain devmode as a Lisp object.
11627         Added mswindows_get_selected_frame_hwnd();
11628
11629         * console.h (struct console_methods): Indentation nitpicking.
11630
11631         * device-msw.c (mswindows_init_device): Do not initialize geometry
11632         cache. Initialize update tick.
11633         (mswindows_device_system_metrics): Ask the device for its geometry.
11634         (global_free_2_maybe):
11635         (devmode_to_hglobal):
11636         (handle_printer_changes):
11637         (ensure_not_printing):
11638         (print_dialog_worker):
11639         (Fmsprinter_print_setup_dialog):
11640         (Fmsprinter_print_dialog):
11641         (plist_get_margin):
11642         (plist_set_margin):
11643         (Fmsprinter_page_setup_dialog): Added functions.
11644         (sync_printer_with_devmode):
11645         (handle_devmode_changes):
11646         (Fmsprinter_get_settings):
11647         (Fmsprinter_select_settings):
11648         (Fmsprinter_apply_settings):
11649         (allocate_devmode):
11650         (Fmsprinter_settings_copy):
11651         (Fmsprinter_settings_despecialize):
11652         (print_devmode):
11653         (finalize_devmode):
11654         (equal_devmode):
11655         (hash_devmode): Added functions
11656         (syms_of_device_mswindows): Init devmode lrecord class.
11657
11658         * device.h: Added an exfun for find-device.
11659
11660         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11661         geometry; although, recreate the device compatible DC.
11662
11663         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11664         (msprinter_init_frame_3):
11665         (msprinter_frame_property):
11666         (msprinter_internal_frame_property_p):
11667         (msprinter_frame_properties):
11668         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11669         print job properties (will move to device settings).
11670
11671         * lisp.h: Added symbols.
11672
11673         * general.c (syms_of_general): Declared them.
11674
11675         * hash.c (string_hash): Added.
11676
11677         * lrecord.h (lrecord_type): Added devmode lrecord type.
11678
11679 2000-07-02  Mike Sperber <mike@xemacs.org>
11680
11681         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11682         FreeBSD 4.0.
11683
11684 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11685
11686         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11687         integer.
11688
11689 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11690
11691         * data.c (Fstring_to_number): Don't recognize floating point if
11692         base is not 10.
11693
11694 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11695
11696         * glyphs-widget.c (tab_control_query_geometry):
11697         (widget_query_geometry):
11698         (button_query_geometry):
11699         * glyphs.c (text_query_geometry):
11700         Enforce type correctness.
11701
11702 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11703
11704         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11705         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11706
11707 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11708
11709         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11710         conflicts with gcc's fixincluded version of FOO.h.
11711
11712         * glyphs.h (image_instance_geometry): Remove trailing `,'
11713
11714 2000-06-08  Mike Alexander  <mta@arbortext.com>
11715
11716         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11717         (shove_thread): Don't write the same output twice
11718         (make_ntpipe_output_stream): Increase priority of shove thread
11719         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11720         chance to run
11721         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11722         it.
11723
11724 2000-06-12  Ben Wing  <ben@xemacs.org>
11725
11726         * s\mingw32.h (sigset):
11727         * s\windowsnt.h (sigset):
11728         rename msw_ to mswindows_ for consistency with general convention.
11729
11730 2000-06-12  Ben Wing  <ben@xemacs.org>
11731
11732         * console-msw.c:
11733         * console-msw.c (mswindows_get_console_hwnd):
11734         * console-msw.c (mswindows_ensure_console_allocated):
11735         * console-msw.c (mswindows_hide_console):
11736         * console-msw.c (mswindows_show_console):
11737         * console-msw.c (mswindows_ensure_console_buffered):
11738         * console-msw.c (mswindows_output_console_string):
11739         * console-msw.c (mswindows_windows9x_p):
11740         * console-msw.h:
11741         * device-msw.c (mswindows_get_workspace_coords):
11742         * device-msw.c (mswindows_device_system_metrics):
11743         * dialog-msw.c (mswindows_popup_dialog_box):
11744         * event-msw.c (mswindows_wnd_proc):
11745         * frame-msw.c (mswindows_size_frame_internal):
11746         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11747         * menubar-msw.c (displayable_menu_item):
11748         * menubar-msw.c (mswindows_char_is_accelerator):
11749         * nt.c:
11750         * nt.c (mswindows_sigset):
11751         * nt.c (mswindows_sigrelse):
11752         * nt.c (mswindows_sigpause):
11753         * nt.c (mswindows_raise):
11754         * nt.c (timer_proc):
11755         * ntproc.c:
11756         * ntproc.c (find_child_console):
11757         * ntproc.c (sys_kill):
11758         * print.c:
11759         * print.c (std_handle_out_external):
11760         * process-nt.c (find_child_console):
11761         * process-nt.c (send_signal_the_95_way):
11762         * process-nt.c (ensure_console_window_exists):
11763         * process-nt.c (nt_create_process):
11764         * syssignal.h:
11765         rename msw_ to mswindows_ for consistency with general convention.
11766
11767         * emacs.c:
11768         * dumper.c:
11769         include nt.h, not syswindows.h.
11770
11771         * nt.c (mswindows_fstat):
11772         * nt.c (mswindows_stat):
11773         prefix mswindows_ instead of attempting to directly override the
11774         library functions.  fix declarations.
11775
11776         * nt.h:
11777         include syswindows.h.  move some sysdep.h stuff here.
11778
11779         * ntheap.h:
11780         include syswindows.h, not <windows.h>.
11781
11782         * ntplay.c:
11783         clean up headers.
11784
11785         * sysdep.c:
11786         clean up headers.
11787
11788         * sysdep.c (sys_fstat):
11789         * sysdep.c (sys_stat):
11790         call mswindows versions when appropriate.
11791
11792         * sysdep.h:
11793         move mswin decls to nt.h.
11794
11795         * syswindows.h:
11796         add long comment describing appropriate use of the various windows
11797         headers.
11798
11799 2000-06-11  Ben Wing  <ben@xemacs.org>
11800
11801         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11802
11803 2000-06-10  Ben Wing  <ben@xemacs.org>
11804
11805         * Makefile.in.in (release):
11806         Correction to make sure xemacs.exe always dumped when correct.
11807
11808         * alloca.c:
11809         * balloon_help.c:
11810         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11811
11812         * buffer.c (set_buffer_internal):
11813         [[[[2]]]]: Remove HAVE_FEP code.
11814
11815         * buffer.c (init_initial_directory):
11816         [3].
11817
11818         * bytecode.c:
11819         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11820         individual files.
11821
11822         * callproc.c:
11823         * callproc.c (call_process_cleanup):
11824         * callproc.c (Fold_call_process_internal):
11825         * callproc.c (child_setup):
11826         * callproc.c (getenv_internal):
11827         * callproc.c (init_callproc):
11828         * callproc.c (vars_of_callproc):
11829         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11830         __CYGWIN32__ -> CYGWIN.
11831         DOS_NT -> WIN32_NATIVE.
11832         Remove MSDOS support/references, converting to WIN32_NATIVE
11833           where correct.
11834         __MINGW32__ -> MINGW.
11835         Fix windows.h includes.
11836         Remove bogus HAVE_NTGUI.
11837
11838         * config.h.in:
11839         [2].
11840
11841         * console-msw.c:
11842         mswindows_message_outputted added for use in allowing startup
11843         errors on the console to be seen.
11844
11845         * console-msw.c (msw_ensure_console_allocated):
11846         * console-msw.c (msw_output_console_string):
11847         * console-msw.c (DHEADER):
11848         * console-msw.c (DOPAQUE_DATA):
11849         * console-msw.c (DEVENT):
11850         * console-msw.c (DCONS):
11851         * console-msw.c (DCONSCDR):
11852         * console-msw.c (DSTRING):
11853         * console-msw.c (DVECTOR):
11854         * console-msw.c (DSYMBOL):
11855         * console-msw.c (DSYMNAME):
11856         Fix warnings.
11857
11858         * console-stream.c (stream_init_console):
11859         Fix text/binary problems.
11860
11861         * device-msw.c:
11862         * device-msw.c (mswindows_finish_init_device):
11863         * device-msw.c (mswindows_delete_device):
11864         [1].
11865
11866         * device.c (handle_asynch_device_change):
11867         [3].
11868
11869         * dgif_lib.c:
11870         * dgif_lib.c (DGifOpenFileName):
11871         * dgif_lib.c (DGifOpenFileHandle):
11872         * dgif_lib.c (DGifGetLine):
11873         * dgif_lib.c (DGifGetPixel):
11874         Added config.h/lisp.h, fix up includes.
11875         [1].
11876
11877         * dired-msw.c:
11878         [4].
11879
11880         * dired.c:
11881         * dired.c (file_name_completion):
11882         * dired.c (Ffile_attributes):
11883         * dired.c (syms_of_dired):
11884         [1].
11885
11886         * dumper.c:
11887         * dumper.c (pdump_file_unmap):
11888         * dumper.c (pdump_load):
11889         [1].
11890
11891         * editfns.c:
11892         * editfns.c (Ftemp_directory):
11893         * editfns.c (user_login_name):
11894         * editfns.c (Fuser_real_login_name):
11895         * editfns.c (get_home_directory):
11896         [1].
11897
11898         * elhash.c (finish_marking_weak_hash_tables):
11899         [[[[5]]]]: Fix GCC warnings.
11900
11901         * emacs.c:
11902         * emacs.c (mswindows_handle_hardware_exceptions):
11903         * emacs.c (make_arg_list_1):
11904         * emacs.c (main_1):
11905         * emacs.c (Fkill_emacs):
11906         * emacs.c (Fdump_emacs):
11907         [1].
11908         Fix problems with nested crashes, add long comment.
11909
11910         * event-Xt.c (init_event_Xt_late):
11911         [1].
11912
11913         * event-msw.c:
11914         * event-msw.c (mswindows_dde_callback):
11915         * event-msw.c (mswindows_handle_sticky_modifiers):
11916         * event-msw.c (mswindows_wnd_proc):
11917         [1].
11918         [5].
11919
11920         * events.c (character_to_event):
11921         [1].
11922
11923         * fileio.c:
11924         * fileio.c (Ffile_name_directory):
11925         * fileio.c (Ffile_name_nondirectory):
11926         * fileio.c (directory_file_name):
11927         * fileio.c (Fexpand_file_name):
11928         * fileio.c (Fsubstitute_in_file_name):
11929         * fileio.c (Ffile_name_absolute_p):
11930         * fileio.c (check_executable):
11931         * fileio.c (Ffile_readable_p):
11932         * fileio.c (Ffile_accessible_directory_p):
11933         * fileio.c (Ffile_modes):
11934         * fileio.c (Funix_sync):
11935         * fileio.c (vars_of_fileio):
11936         [1]. [4].
11937
11938         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11939
11940         Expand getdefdir defn.
11941         Fix bogus rename() comment.
11942
11943         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11944         to use standard XEmacs include files, e.g. sysfile.h, rather
11945         than system-specific includes.
11946
11947         * fns.c:
11948         * fns.c (Fsubseq):
11949         [5]. [6].
11950
11951         * frame.c (vars_of_frame):
11952         [1].
11953
11954         * getloadavg.c:
11955         * getloadavg.c (getloadavg):
11956         [1]. [6].
11957         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11958         (We don't use it elsewhere in the code; just add a comment.)
11959
11960         * gif_io.c:
11961         [6].
11962         Add config.h.
11963
11964         * glyphs-msw.c:
11965         * glyphs-msw.c (mswindows_resource_instantiate):
11966         [1].
11967
11968         * glyphs-x.c (x_native_layout_instantiate):
11969         [5].
11970
11971         * gui-msw.c (Fmswindows_shell_execute):
11972         [1].
11973
11974         * insdel.c:
11975         [4].
11976
11977         * lisp.h:
11978         [4]. [5].
11979
11980         * lread.c (locate_file_in_directory_mapper):
11981         [1].
11982
11983         * lstream.c:
11984         [4].
11985
11986         * mem-limits.h:
11987         * mem-limits.h (get_lim_data):
11988         [1].
11989
11990         * menubar-msw.c:
11991         [4].
11992
11993         * ndir.h:
11994         [1].
11995
11996         * nt.c:
11997         * nt.c (getwd):
11998         * nt.c (closedir):
11999         * nt.c (rva_to_section):
12000         * nt.c (mswindows_executable_type):
12001         [1]. [6].
12002         Fix closedir() defn.
12003
12004         * nt.h:
12005         [[[[8]]]]: *_OK defs moved to sysfile.h.
12006
12007         * ntproc.c:
12008         [6]. [7].
12009
12010         * objects-x.c:
12011         [4].
12012
12013         * print.c:
12014         * print.c (std_handle_out_external):
12015         [1]. [4].
12016
12017         * process-nt.c:
12018         * process-nt.c (nt_create_process):
12019         [6].
12020         try to fix process quoting somewhat.
12021
12022         * process-unix.c (unix_create_process):
12023         [1].
12024
12025         * process.c:
12026         * process.c (vars_of_process):
12027         Add Vnull_device.
12028
12029         * process.h:
12030         [1].
12031
12032         * realpath.c:
12033         * realpath.c (xrealpath):
12034         [1].
12035
12036         * redisplay-tty.c (init_tty_for_redisplay):
12037         [3].
12038
12039         * redisplay.c:
12040         [4]. [6].
12041
12042         * scrollbar-msw.c:
12043         [4].
12044
12045         * sheap.c:
12046         * sheap.c (more_static_core):
12047         * sheap.c (report_sheap_usage):
12048         [5]. [6].
12049
12050         * signal.c:
12051         * signal.c (alarm_signal):
12052         [1]. [6].
12053
12054         * sound.c:
12055         [6].
12056
12057         * strftime.c:
12058         * strftime.c (zone_name):
12059         [1]. [5].
12060
12061         * symsinit.h (init_sunpro):
12062         [1].
12063
12064         * syscommctrl.h:
12065         commctrl.h not in Cygwin b20.1.
12066
12067         * sysdep.c:
12068         * sysdep.c (endif):
12069         * sysdep.c (sys_subshell):
12070         * sysdep.c (init_baud_rate):
12071         * sysdep.c (emacs_get_tty):
12072         * sysdep.c (emacs_set_tty):
12073         * sysdep.c (tty_init_sys_modes_on_device):
12074         * sysdep.c (init_system_name):
12075         * sysdep.c (sys_open):
12076         * sysdep.c (interruptible_open):
12077         * sysdep.c (sys_fopen):
12078         * sysdep.c (sys_mkdir):
12079         * sysdep.c (sys_rename):
12080         * sysdep.c (get_process_times_1):
12081         [1]. [6].
12082
12083         * sysdep.h:
12084         [1].
12085
12086         * sysdir.h:
12087         * sysdir.h (DIRENTRY_NONEMPTY):
12088         [1]. [6].
12089
12090         * sysdll.c (dll_init):
12091         * sysdll.h:
12092         [1].
12093
12094         * sysfile.h:
12095         [1]. [6]. [8].
12096         added text/binary defs.
12097
12098         * sysfloat.h:
12099         [1].
12100
12101         * sysproc.h:
12102         * sysproc.h (EDESTADDRREQ):
12103         * sysproc.h (poll_fds_for_input):
12104         [1]. [6].
12105
12106         * syspwd.h:
12107         [6].
12108
12109         * syssignal.h:
12110         [1].
12111
12112         * systime.h:
12113         [1]. [6].
12114
12115         * systty.h:
12116         [1].
12117
12118         * syswindows.h:
12119         [1].
12120         Always define WIN32_LEAN_AND_MEAN.
12121
12122         * unexcw.c (unexec):
12123         [5].
12124
12125         * unexec.c:
12126         * unexec.c (copy_text_and_data):
12127         * unexec.c (adjust_lnnoptrs):
12128         [1].
12129
12130         * unexnt.c:
12131         * unexnt.c (_start):
12132         [1].
12133
12134 2000-06-07  Ben Wing  <ben@xemacs.org>
12135
12136         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12137         was used only as a model.  We've long since extracted any useful
12138         logic or code out of this. (I just did an exhaustive search.)
12139
12140         * s\msdos.h: Removed.
12141
12142         * s\windows95.h: Removed.
12143
12144 2000-06-10  Ben Wing  <ben@xemacs.org>
12145
12146         * s\cygwin32.h:
12147         [1]. [5].
12148         Don't use extern with fun defs.
12149
12150         * s\mingw32.h:
12151         [1]. [7].
12152         Remove nt\inc include.
12153         Remove getdisk, getdefdir. (The former is unused, the latter
12154         expanded in fileio.h.)
12155
12156         * s\windowsnt.h:
12157         * s\windowsnt.h (WIN32_NATIVE):
12158         * s\windowsnt.h (HAVE_STRCASECMP):
12159         [1]. [7].
12160         Add long comment about preprocessor changes.
12161         Remove getdisk, getdefdir. (The former is unused, the latter
12162         expanded in fileio.h.)
12163
12164 2000-06-10  Ben Wing  <ben@xemacs.org>
12165
12166         * m\arm.h:
12167         * m\delta.h:
12168         * m\intel386.h:
12169         * m\sequent.h:
12170         * m\template.h:
12171         * m\windowsnt.h:
12172         [1].
12173         Remove bogus/unused NO_SOCK_SIGIO.
12174
12175 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12176
12177         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12178         not an Emchar.
12179
12180 2000-06-04  Mike Sperber <mike@xemacs.org>
12181
12182         * casetab.c (set_case_table): For `set-standard-case-table',
12183         actually deposit the new case tables where the rest of XEmacs can
12184         see them.
12185
12186 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12187
12188         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12189
12190 2000-06-05  Ben Wing  <ben@xemacs.org>
12191
12192         * callproc.c (child_setup): Don't do close_load_descs() under
12193         MS Windows.  Put in a comment explaining why.
12194
12195 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12196
12197         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12198         Toolkit shell" which breaks `kill-compilation' on Windows NT
12199         native, retaining STDERR handling improvements.
12200
12201 2000-06-01  Andreas Jaeger  <aj@suse.de>
12202
12203         * s/s390.h: Support for S390, based on a patch by Martin
12204         Schwidefsky <schwidefsky@de.ibm.com>.
12205
12206 2000-05-30  Andy Piper  <andy@xemacs.org>
12207
12208         * window.c (allocate_window):
12209         (make_dummy_parent):
12210         (Fset_window_configuration): use new hashtable type.
12211
12212         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12213         (struct image_instantiator_methods):
12214         (struct Lisp_Image_Instance): make instance geometry signed.
12215
12216         * glyphs.c (instantiate_image_instantiator):
12217         (image_instance_query_geometry):
12218         (image_instance_layout):
12219         (image_instance_layout):
12220         (query_string_geometry):
12221         (text_query_geometry):
12222         (image_instantiate):
12223         (image_instantiate):
12224         (cache_subwindow_instance_in_frame_maybe):
12225         (subwindow_query_geometry): make instance geometry signed.
12226
12227         * glyphs-widget.c (widget_query_geometry):
12228         (widget_layout):
12229         (button_query_geometry):
12230         (tree_view_query_geometry):
12231         (tab_control_query_geometry):
12232         (layout_query_geometry):
12233         (layout_layout):
12234         (native_layout_layout): make instance geometry signed.
12235
12236 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12237
12238         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12239         constant.
12240
12241         * general.c (syms_of_general): Add Qfull_assoc symbol.
12242
12243         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12244         correctly.
12245         (decode_weak_list_type): Decode full-assoc type.
12246         (encode_weak_list_type): Encode full-assoc type.
12247         (Fmake_weak_list): Update doc string.
12248
12249 2000-05-30  Andy Piper  <andy@xemacs.org>
12250
12251         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12252
12253         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12254         (decode_hash_table_weakness): ditto.
12255         (Fhash_table_weakness): ditto.
12256         (Fhash_table_type): ditto.
12257         (finish_marking_weak_hash_tables): ditto.
12258         (hash_table_weakness_validate): ditto.
12259         (syms_of_elhash): ditto.
12260
12261 2000-05-28  Martin Buchholz <martin@xemacs.org>
12262
12263         * XEmacs 21.2.34 is released.
12264
12265 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12266
12267         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12268         start cache.
12269         (updating_line_start_cache): Gone.
12270         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12271         generic code to force a minimum of 1 line laid out in the
12272         CMOTION_DISP case.
12273
12274 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12275
12276         * glyphs.c (instantiate_image_instantiator): Check for initialized
12277         height & width no longer special cases IMAGE_NOTHING.
12278         (nothing_instantiate): Set height and width of instance.
12279
12280 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12281
12282         * unexelf.c (unexec): Search for ".data" section.
12283         Initialize new_data2_offset from old_data_index.
12284         Remove redundant check for ElfW.
12285
12286 2000-05-23  Andy Piper  <andy@xemacs.org>
12287
12288         * glyphs.c (get_image_instantiator_governing_domain): allow more
12289         specific domains as the governing domain rather than expecting an
12290         exact match. This fixes problems with layouts.
12291
12292 2000-05-22  Andy Piper  <andy@xemacs.org>
12293
12294         * redisplay-output.c (compare_runes): check for non-images
12295
12296         * glyphs.c (set_glyph_dirty_p): ditto.
12297         (update_glyph_cachel_data): ditto.
12298
12299         * glyphs-widget.c (layout_post_instantiate): ditto.
12300         (layout_post_instantiate): ditto.
12301
12302         * event-msw.c (mswindows_wnd_proc): warning removal.
12303
12304 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12305
12306         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12307
12308         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12309
12310         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12311
12312         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12313         (mswindows_executable_type): mingw32 now has enough headers for
12314         this to work.
12315
12316 2000-05-20  Andy Piper  <andy@xemacs.org>
12317
12318         * console-msw.c (mswindows_output_last_error): ; -> ,
12319
12320 2000-05-12  Andy Piper  <andy@xemacs.org>
12321
12322         * console-msw.c (FROB): compare ints with ints.
12323
12324 2000-05-11  Andy Piper  <andy@xemacs.org>
12325
12326         * glyphs-x.c (x_finalize_image_instance): make minimal build
12327         happy.
12328
12329 2000-05-20  Ben Wing  <ben@xemacs.org>
12330
12331         * event-Xt.c:
12332         * event-Xt.c (vars_of_event_Xt):
12333         move modifier-keys-are-sticky to event-stream.c.
12334
12335         * event-msw.c:
12336         * event-msw.c (mswindows_enqueue_mouse_button_event):
12337         * event-msw.c (key_needs_default_processing_p):
12338         * event-msw.c (XEMSW_LCONTROL):
12339         * event-msw.c (mswindows_handle_sticky_modifiers):
12340         * event-msw.c (FROB):
12341         * event-msw.c (clear_sticky_modifiers):
12342         * event-msw.c (output_modifier_keyboard_state):
12343         * event-msw.c (output_alt_keyboard_state):
12344         * event-msw.c (mswindows_wnd_proc):
12345         * event-msw.c (mswindows_modifier_state):
12346         * event-msw.c (emacs_mswindows_handle_magic_event):
12347         implement sticky modifiers.
12348
12349         * event-stream.c:
12350         * event-stream.c (vars_of_event_stream):
12351         move modifier-keys-are-sticky here.
12352
12353         * lisp.h:
12354         add CHECK_FUNCTION.
12355
12356         * rangetab.c:
12357         implement map-range-table.
12358
12359
12360 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12361
12362         * redisplay-tty.c (reset_tty_modes):
12363         (tty_redisplay_shutdown): Adjust argument type to
12364         tty_frame_output_end.
12365
12366 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12367
12368         * eval.c (Fbacktrace): Don't output a line with only right
12369         parenthesis.
12370
12371 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12372
12373         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12374         (Fpq_reset_poll): Ditto.
12375
12376 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12377
12378         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12379
12380 2000-05-16  Ben Wing  <ben@xemacs.org>
12381
12382         * buffer.c:
12383         * buffer.c (dfc_convert_to/from_internal_format):
12384         * buffer.c (reinit_vars_of_buffer):
12385         Fix conversion functions to allow reentrancy.
12386
12387         * console-msw.c:
12388         * console-msw.c (mswindows_output_last_error):
12389         New fun, generally useful -- output a human-readable
12390         version of GetLastError() on the console.
12391
12392         * console-msw.h:
12393         * console-msw.h (struct mswindows_frame):
12394         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12395
12396         * console-stream.c (stream_output_begin):
12397         * console-stream.c (stream_output_end):
12398         * console-stream.c (stream_output_vertical_divider):
12399         * console-stream.c (stream_clear_region):
12400         * console-stream.c (stream_flash):
12401         * console-stream.c (console_type_create_stream):
12402         Delete blank stream methods, not needed.
12403
12404         * console.h (struct console_methods):
12405         Split begin/end methods into window and frame.
12406
12407         * event-msw.c:
12408         * event-msw.c (mswindows_handle_paint):
12409         * event-msw.c (output_alt_keyboard_state):
12410         * event-msw.c (mswindows_wnd_proc):
12411         * event-msw.c (vars_of_event_mswindows):
12412         Comment about problems with ignored-expose.
12413         Define mswindows-debug-events; not really implemented.
12414
12415         * frame-msw.c (mswindows_init_frame_1):
12416         random cleanups.
12417
12418         * glyphs-msw.c:
12419         * glyphs-msw.c (begin_defer_window_pos):
12420         * glyphs-msw.c (mswindows_unmap_subwindow):
12421         * glyphs-msw.c (mswindows_map_subwindow):
12422         * glyphs-msw.c (mswindows_resize_subwindow):
12423         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12424
12425         * glyphs.c (make_image_instance_1):
12426         Fix crash.
12427
12428         * gutter.c (Fredisplay_gutter_area):
12429         Use new begin/end methods.
12430
12431         * lisp.h (Dynarr_new2):
12432         New creation fun.
12433
12434         * redisplay-msw.c:
12435         * redisplay-msw.c (mswindows_frame_output_begin):
12436         * redisplay-msw.c (mswindows_frame_output_end):
12437         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12438         New begin/end methods -- handle DeferWindowPos.
12439
12440         * redisplay-output.c (redisplay_move_cursor):
12441         * redisplay-output.c (redraw_cursor_in_window):
12442         * redisplay-output.c (redisplay_update_line):
12443         * redisplay-output.c (redisplay_output_window):
12444         New begin/end methods.
12445
12446         * redisplay-tty.c:
12447         * redisplay-tty.c (tty_frame_output_begin):
12448         * redisplay-tty.c (tty_frame_output_end):
12449         * redisplay-tty.c (console_type_create_redisplay_tty):
12450         New begin/end methods.
12451
12452         * redisplay-x.c:
12453         * redisplay-x.c (x_window_output_begin):
12454         * redisplay-x.c (x_window_output_end):
12455         * redisplay-x.c (console_type_create_redisplay_x):
12456         New begin/end methods.
12457
12458         * redisplay.c (redisplay_frame):
12459         * redisplay.c (Fredisplay_echo_area):
12460         New begin/end methods.
12461         use MAYBE_DEVMETH for clear_frame; it may not exist.
12462
12463         * window.h (WINDOW_XFRAME):
12464         WINDOW_XFOO macros -- get locale and decode struct pointer.
12465
12466
12467 2000-05-12  Ben Wing  <ben@xemacs.org>
12468
12469         * emacs.c:
12470         * emacs.c (ensure_no_quitting_from_now_on):
12471         * emacs.c (fatal_error_signal):
12472         * emacs.c (mswindows_handle_hardware_exceptions):
12473         * emacs.c (main):
12474         * emacs.c (Fkill_emacs):
12475         * emacs.c (shut_down_emacs):
12476         * emacs.c (assert_failed):
12477         various improvements in fatal error handling.
12478
12479         * eval.c:
12480         move preparing_for_armageddon to emacs.c.
12481
12482         * lisp.h:
12483         declare fatal_error_in_progress.
12484
12485         * print.c:
12486         * print.c (std_handle_out_external):
12487         * print.c (std_handle_out_va):
12488         * print.c (stderr_out):
12489         * print.c (stdout_out):
12490         use console under mswin when no standard output.
12491         don't do code conversion during fatal error.
12492
12493         * scrollbar.c (Fscrollbar_page_up):
12494         * scrollbar.c (Fscrollbar_page_down):
12495         fix missing else.  reindent.
12496
12497 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12498
12499         Emergency fix.
12500
12501         * glyphs.h (GLYPH_CACHEL_DESCENT):
12502         (GLYPH_CACHEL_DESCENT):
12503         (GLYPH_CACHEL_DESCENT):
12504         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12505         used in case these are inline functions.
12506         Use more absurd values to error check.
12507
12508         include window.h for error check functions.
12509
12510 2000-05-11  Ben Wing  <ben@xemacs.org>
12511
12512         * cmdloop.c (Freally_early_error_handler):
12513         Display message box under windows; otherwise, message will disappear
12514         before it can be viewed.
12515
12516         * console-msw.c:
12517         * console-msw.c (Fmswindows_message_box):
12518         * console-msw.c (FROB):
12519         * console-msw.c (syms_of_console_mswindows):
12520         Define new fun `mswindows-message-box'.
12521         #### I will merge this into `popup-dialog-box'; just give me
12522         a bit of time.
12523
12524         * general.c:
12525         * general.c (syms_of_general):
12526         Some new symbols used in `mswindows-message-box'.
12527
12528         * glyphs.c:
12529         * glyphs.c (Fset_image_instance_property):
12530         put warning in this fun.
12531
12532         * glyphs.h:
12533         * glyphs.h (GLYPH_CACHEL_WIDTH):
12534         * glyphs.h (GLYPH_CACHEL_ASCENT):
12535         * glyphs.h (GLYPH_CACHEL):
12536         * glyphs.h (GLYPH_CACHEL_GLYPH):
12537         define error-checking versions to try to catch a bug i've seen --
12538         redisplay gets in an infinite loop because the glyph width of the
12539         continuation glyph is 65535.
12540
12541         * lisp.h:
12542         Extern message-box stuff.
12543
12544         * window.c (allocate_window):
12545         * window.c (make_dummy_parent):
12546         * window.c (Fset_window_configuration):
12547         Use EQUAL not EQ for subwindow caches to make them work a bit
12548         better. (Something is still very broken.)
12549
12550
12551 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12552
12553         * glyphs.c (image_instantiate): Suppress gcc warnings.
12554         (Fmake_image_instance): Fix doc string.
12555         * specifier.c (Fmake_specifier): Ditto.
12556
12557 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12558
12559         * paths.h.in (PATH_LOCK): Removed.
12560         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12561         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12562
12563 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12564
12565         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12566         Document (featurep '(and xemacs 21.02)).
12567
12568 2000-05-09  Ben Wing  <ben@xemacs.org>
12569
12570         * buffer.c (complex_vars_of_buffer):
12571         update modeline-format doc.
12572
12573         * device.h:
12574         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12575
12576         * emacs.c:
12577         timeline of all released versions of Emacs, for use in creating
12578         authorship comments and in synching up.
12579
12580         * glyphs-widget.c (image_instantiator_buttons):
12581         * glyphs-widget.c (image_instantiator_edit_fields):
12582         * glyphs-widget.c (image_instantiator_combo_box):
12583         * glyphs-widget.c (image_instantiator_scrollbar):
12584         * glyphs-widget.c (image_instantiator_progress_guage):
12585         * glyphs-widget.c (image_instantiator_tree_view):
12586         * glyphs-widget.c (image_instantiator_tab_control):
12587         * glyphs-widget.c (image_instantiator_labels):
12588         * glyphs-widget.c (image_instantiator_layout):
12589         * glyphs-widget.c (image_instantiator_native_layout):
12590         rename decode_domain method to governing_domain.
12591
12592         * glyphs.c:
12593         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12594         * glyphs.c (add_entry_to_device_ii_format_list):
12595         make sure we don't put an entry more than once into the list.
12596         * glyphs.c (check_instance_cache_mapper):
12597         *************************************************************
12598         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12599         HAVE BEEN GETTING.
12600         *************************************************************
12601         * glyphs.c (get_image_instantiator_governing_domain):
12602         clean up, expand on new concept of governing domain.
12603         * glyphs.c (instantiate_image_instantiator):
12604         * glyphs.c (allocate_image_instance):
12605         use governing_domain instead of cache_domain in naming.
12606         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12607         * glyphs.c (make_image_instance_1):
12608         * glyphs.c (Fmake_image_instance):
12609         allow for any domain (not just device), and process the
12610         governing domain correctly.  very big doc fix.
12611         * glyphs.c (Fimage_instance_domain):
12612         new primitive, to retrieve the governing domain of an image instance.
12613         * glyphs.c (image_instantiate):
12614         use new governing_domain stuff.  this fixes a crash you could get
12615         by instantiating certain widget glyphs in frame locales. (should
12616         signal an error instead of crashing.)
12617         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12618         * glyphs.c (Fglyphp): clean up doc.
12619         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12620         * glyphs.c (syms_of_glyphs):
12621         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12622         * glyphs.c (image_instantiator_format_create): add some comments about
12623         bogus code.
12624         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12625         for current-display-table. (Apparently Hrjove implemented in 1998 a
12626         design I wrote up in 1996, but didn't update the doc string.)
12627
12628         * glyphs.h: clean up a doc string.
12629         * glyphs.h (governing_domain):
12630         * glyphs.h (struct image_instantiator_methods):
12631         changes for governing_domain stuff.
12632
12633         * gutter.c:
12634         * gutter.c (Fgutter_specifier_p):
12635         * gutter.c (Fgutter_size_specifier_p):
12636         * gutter.c (Fgutter_visible_specifier_p):
12637         * objects.c:
12638         * objects.c (Fcolor_specifier_p):
12639         * objects.c (Ffont_specifier_p):
12640         * objects.c (Fface_boolean_specifier_p):
12641         doc strings moved to make-*-specifier.
12642
12643         * redisplay.c (add_disp_table_entry_runes_1):
12644         * redisplay.c (generate_fstring_runes):
12645         * redisplay.c (screen):
12646         add random comments and doc strings.
12647
12648         * specifier.c:
12649         * specifier.c (Fmake_specifier):
12650         major overhaul of this doc string.
12651
12652         * specifier.c (Fvalid_specifier_domain_p):
12653         comment about the bogosity of image instances being domains.
12654         * specifier.c (decode_domain):
12655         now non-static, used in glyphs.c.
12656         * specifier.c (specifier_instance):
12657         comment about the bogosity of image instances being domains.
12658         * specifier.c (Fgeneric_specifier_p):
12659         move doc string to make-generic-specifier.
12660         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12661         rebackslashify.
12662
12663         * specifier.h:
12664         * specifier.h (DOMAIN_FRAME):
12665         * specifier.h (DOMAIN_LIVE_P):
12666         * specifier.h (DOMAIN_XDEVICE):
12667         rebackslashify.
12668         add comments about problems with these macros.
12669         prototype for decode_domain.
12670
12671         * toolbar.c:
12672         * toolbar.c (Ftoolbar_specifier_p):
12673         move doc string to `make-toolbar-specifier'.
12674
12675         * window.c (window_unmap_subwindows_cache_mapper):
12676         *************************************************************
12677         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12678         HAVE BEEN GETTING.
12679         *************************************************************
12680
12681 2000-05-09  Andy Piper  <andy@xemacs.org>
12682
12683         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12684
12685         * window.c (Fset_window_configuration): reset the frame subwindow
12686         cache and re-initialize the window subwindow caches.
12687
12688         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12689
12690 2000-05-09  Ben Wing  <ben@xemacs.org>
12691
12692         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12693         DWORD.
12694
12695 2000-04-26  Mike Woolley  <mike@bulsara.com>
12696
12697         * ntheap.c: Changed recreate_heap to limit the amount reserved
12698         for the heap to that which is actually available. Also now
12699         displays a message box (with some dignostics) in the event that
12700         it still can't start.
12701
12702 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12703
12704         * callproc.c (Fold_call_process_internal): GCPRO path
12705
12706 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12707
12708         Patch by Bill Perry.
12709
12710         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12711         back data instead of #ifdef.
12712         (Fscrollbar_page_down): ditto.
12713
12714 2000-05-07  Ben Wing  <ben@xemacs.org>
12715
12716         * buffer.h:
12717         Kludge for defining Qmswindows_tstr.
12718
12719         * nt.c:
12720         * nt.c (open_input_file):
12721         * nt.c (open_output_file):
12722         * nt.c (rva_to_section):
12723         * nt.c (mswindows_executable_type):
12724         Move all memory-mapped-file routines here (some were in unexnt.c,
12725         which is bad because they are used by process-nt.c, and unexnt
12726         won't be around when portable dumping).  Synched the above routines
12727         with FSF 20.6.
12728
12729         * nt.h:
12730         Removed ifdef'd out bogus code.
12731         Fixed some prototypes.
12732
12733         * nt.h (file_data):
12734         * nt.h (OFFSET_TO_RVA):
12735         * nt.h (RVA_TO_OFFSET):
12736         * nt.h (RVA_TO_PTR):
12737         Moved the memory-mapped-file structures, macros and prototypes
12738         here, to parallel nt.c.  ntheap.h should really be removed
12739         entirely, and it's a non-portable-dumper specific file.
12740
12741         * ntheap.h (round_to_next):
12742         Moved the memory-mapped-file structures, macros and prototypes
12743         to nt.h.
12744
12745         * ntproc.c (compare_env):
12746         Moved rva_to_section and mswindows_executable_type to nt.c.
12747         Moved compare_env to process-nt.c.
12748         ntproc.c will die, one day.
12749
12750         * ntproc.c (sys_spawnve):
12751         Account for win32_ -> mswindows_.
12752
12753         * process-nt.c:
12754         * process-nt.c (struct nt_process_data):
12755         * process-nt.c (ensure_console_window_exists):
12756         * process-nt.c (compare_env):
12757         * process-nt.c (nt_create_process):
12758         * process-nt.c (nt_kill_process_by_pid):
12759         * process-nt.c (syms_of_process_nt):
12760         * process-nt.c (vars_of_process_nt):
12761         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12762         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12763         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12764         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12765         Move compare_env here from ntproc.c.
12766
12767         * process.c (Fprocess_send_region):
12768         Takes an optional fourth argument, BUFFER, which should fix some
12769         problems with call-process.
12770
12771         * syscommctrl.h:
12772         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12773
12774         * syswindows.h:
12775         Move ICC_BAR_CLASSES to syscommctrl.h.
12776         Add preliminary macros for MSWindows/Mule.  More to come.
12777
12778         * unexnt.c:
12779         * unexnt.c (unexec):
12780         open_output_file moved to nt.c.
12781
12782
12783 2000-05-05  Andy Piper  <andy@xemacs.org>
12784
12785         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12786         instance from the frame cache also since GC may catch up too late
12787         to make frame deletion sane.
12788
12789 2000-05-04  Andy Piper  <andy@xemacs.org>
12790
12791         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12792         (x_finalize_image_instance): ungcpro on deletion.
12793
12794         * glyphs.c (image_instantiator_format_create): give pointers a
12795         query geometry method so that the geometry is at least set.
12796
12797         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12798         initialize layouts if using widgets.
12799
12800 2000-05-03  Andy Piper  <andy@xemacs.org>
12801
12802         * nt.c: remove bogus reference to sysmmsystem.h
12803
12804         * gui-x.c (popup_selection_callback): fix no selection abort.
12805
12806 2000-05-02  Andy Piper  <andy@xemacs.org>
12807
12808         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12809         (mswindows_widget_instantiate): ditto.
12810
12811         * glyphs-widget.c (initialize_widget_image_instance): initialize
12812         children correctly.
12813         (widget_instantiate): cope with children and items in the same
12814         instance.
12815
12816         * glyphs.c (mark_image_instance): cope with children as a first
12817         class member.
12818         (image_instance_equal): ditto.
12819         (image_instance_hash): ditto.
12820         (image_instance_changed): ditto.
12821
12822 2000-04-30  Andy Piper  <andy@xemacs.org>
12823
12824         * glyphs.c (subwindow_query_geometry): new function. Return some
12825         defaults.
12826         (subwindow_instantiate): don't assign dimensions if none have been
12827         given.
12828         (image_instantiator_format_create): add subwindow_query_geometry.
12829         (print_image_instance): cope with layouts as widgets.
12830
12831 2000-04-29  Andy Piper  <andy@xemacs.org>
12832
12833         * frame.c (delete_frame_internal): call
12834         free_frame_subwindow_instance_cache so that all subwindows are
12835         finalized before their parent.
12836         (mark_frame): remove subwindow_cachels.
12837         (Fmake_frame): remove subwindow_cachel manipulation.
12838         (allocate_frame_core): subwindow_instance_cache is a weak list.
12839         (delete_frame_internal): set subwindow_instance_cache to nil.
12840
12841         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12842         finalization safe.
12843         (mswindows_finalize_image_instance): use the device
12844         not the domain as the domain may have died already.
12845
12846         * glyphs-x.c (x_finalize_image_instance): ditto.
12847         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12848         HEIGHT.
12849
12850         * redisplay-output.c (redisplay_unmap_subwindows): update for
12851         subwindow instance cache as a weak list.
12852         (redisplay_unmap_subwindows_maybe): ditto.
12853         (redisplay_unmap_subwindows_except_us): ditto.
12854
12855         * glyphs.c (unmap_subwindow): error checking will check the domain
12856         so don't deal with it here. Don't use cachels anymore.
12857         (map_subwindow): ditto.
12858         (update_subwindow_cachel_data): remove old accessor names.
12859         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12860         (Fresize_subwindow): don't update cachel.
12861         (mark_subwindow_cachels):
12862         (update_subwindow_cachel_data):
12863         (add_subwindow_cachel):
12864         (get_subwindow_cachel_index):
12865         (update_subwindow_cachel):
12866         (reset_subwindow_cachels):
12867         (mark_subwindow_cachels_as_not_updated): deleted.
12868         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12869         subwindow instance to the frame cache.
12870         (find_matching_subwindow): update for subwindow instance cache as
12871         a weak list.
12872         (update_widget_instances): ditto.
12873         (image_instance_type_to_mask):inlined.
12874         (free_frame_subwindow_instance_cache): new function. finalize all
12875         subwindows that are instantiated.
12876
12877         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12878         of cachel information.
12879         (IMAGE_INSTANCE_DISPLAY_X):
12880         (IMAGE_INSTANCE_DISPLAY_Y):
12881         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12882         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12883         (XIMAGE_INSTANCE_DISPLAY_X):
12884         (XIMAGE_INSTANCE_DISPLAY_Y):
12885         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12886         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12887         remove subwindow_cachel structure and function references.
12888         (image_instance_type_to_mask): inline from glyphs.c
12889
12890         * redisplay.c (redisplay_frame): remove subwindow_cachel
12891         references.
12892
12893         * frame.h (struct frame): remove subwindow_cachels.
12894         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12895
12896         * frameslots.h: add subwindow_instance_cache.
12897
12898         * window.c (replace_window): check subwindow cache of replacement.
12899         (window_unmap_subwindows_cache_mapper):
12900         (window_unmap_subwindows): new functions. Unmap all subwindows
12901         cached on this window.
12902         (mark_window_as_deleted): unmap all subwindows.
12903
12904 2000-04-27  Andy Piper  <andy@xemacs.org>
12905
12906         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12907
12908         * glyphs-widget.c (widget_layout): return something.
12909         (layout_layout): return something. Fail if not initialized.
12910         (layout_query_geometry): ditto.
12911         (image_instantiator_native_layout): new function. Initialized the
12912         native layout type.
12913         (widget_instantiate): don't do layout stuff here.
12914
12915         * glyphs.c (instantiate_image_instantiator): reorded calling or
12916         instantiate and post_instantiate with layout in between.
12917         (image_instance_layout): be more selective about deciding whether
12918         the layout has been done or not.
12919
12920         * glyphs.h (struct image_instantiator_methods): return a value
12921         from layout_method.
12922
12923 2000-04-26  Andy Piper  <andy@xemacs.org>
12924
12925         * glyphs.c (allocate_image_instance): make initial width and
12926         height unspecified. Set initialized to 0.
12927
12928         * syscommctrl.h new file. Encapsulates commctrl.h.
12929
12930         * syswindows.h new file. Encapsulates windows.h.
12931
12932         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12933         * nt.c: ditto.
12934         * console-msw.h: ditto.
12935
12936         * redisplay-tty.c (tty_output_display_block): remove layout references.
12937
12938         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12939         window handle rather than just the frame.
12940
12941         * glyphs.c (mark_image_instance): remove layout references.
12942         (print_image_instance): ditto.
12943         (image_instance_equal): ditto.
12944         (image_instance_hash): ditto.
12945         (decode_image_instance_type): ditto.
12946         (encode_image_instance_type): ditto.
12947         (image_instantiate): ditto.
12948         (allocate_glyph): ditto.
12949         (Fimage_instance_height): ditto.
12950         (Fimage_instance_width): ditto.
12951         (update_subwindow): ditto.
12952
12953         * redisplay-x.c (x_output_display_block): recode for layouts as
12954         widgets.
12955
12956         * redisplay-output.c (redisplay_output_layout): recode for layouts
12957         as widgets.
12958         (compare_runes): remove layout references.
12959
12960         * redisplay-msw.c (mswindows_output_display_block): recode for
12961         layouts as widgets.
12962
12963         * glyphs-widget.c (image_instantiator_layout): remove
12964         layout_possible_dest_types.
12965         (layout_possible_dest_types): deleted.
12966
12967         * glyphs.h (image_instance_type): remove layout references.
12968         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12969         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12970         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12971
12972 2000-04-25  Andy Piper  <andy@xemacs.org>
12973
12974         * glyphs-widget.c (image_instantiator_buttons):
12975         (image_instantiator_edit_fields):
12976         (image_instantiator_combo_box):
12977         (image_instantiator_scrollbar):
12978         (image_instantiator_progress_guage):
12979         (image_instantiator_tree_view):
12980         (image_instantiator_tab_control):
12981         (image_instantiator_labels):
12982         (image_instantiator_layout): call default post_instantiate method.
12983         (widget_post_instantiate): new function. Simply lays out the
12984         widgets.
12985
12986         * glyphs.h (struct image_instantiator_methods): add
12987         post_instantiate method.
12988
12989         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12990         method calls.
12991
12992 2000-04-23  Andy Piper  <andy@xemacs.org>
12993
12994         * glyphs.h (struct image_instantiator_methods): add
12995         decode_domain_method.
12996         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12997         derived from the domain.
12998         (IMAGE_INSTANCE_FRAME): new accessor.
12999         (XIMAGE_INSTANCE_FRAME): ditto.
13000
13001         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13002         instead of _SUBWINDOW_FRAME.
13003         (finalize_image_instance): ditto.
13004         (Fimage_instance_foreground): ditto.
13005         (Fimage_instance_background): ditto.
13006         (image_instantiate): ditto.
13007         (update_subwindow_cachel): ditto.
13008         (update_subwindow): ditto.
13009         (unmap_subwindow): ditto.
13010         (map_subwindow): ditto
13011         (subwindow_instantiate): ditto.
13012         * glyphs-msw.c (mswindows_update_widget): ditto.
13013         (mswindows_progress_gauge_instantiate): ditto.
13014         (mswindows_tab_control_update): ditto.
13015         * glyphs-x.c (x_update_widget): ditto.
13016         (x_widget_instantiate): ditto.
13017         (x_tab_control_instantiate): ditto.
13018         (x_tab_control_update): ditto.
13019         * event-msw.c (mswindows_wnd_proc): ditto
13020
13021         * glyphs-widget.c (image_instantiator_layout): use
13022         subwindow_decode_domain.
13023         (image_instantiator_buttons): ditto.
13024         (image_instantiator_edit_fields): ditto.
13025         (image_instantiator_combo_box): ditto.
13026         (image_instantiator_scrollbar): ditto.
13027         (image_instantiator_progress_guage): ditto.
13028         (image_instantiator_tree_view): ditto.
13029         (image_instantiator_tab_control): ditto.
13030         (image_instantiator_labels): ditto.
13031         (image_instantiator_layout): ditto.
13032
13033         * glyphs.c: add instance error checking to many functions.
13034         (instantiate_image_instantiator): decode device from cache_domain.
13035         (image_instantiate): partially rewrite by using
13036         decode_image_instantiator_domain to determine what domain the
13037         instance needs to be cached in.
13038         (decode_image_instantiator_domain): new function. Determine what
13039         domain the image needs to be cached in.
13040         (check_window_subwindow_cache): new error checking function.
13041         (check_instance_cache_mapper): ditto.
13042         (check_image_instance_structure): ditto.
13043         (subwindow_decode_domain): new function. Encodes a window as a
13044         subwindow's cache domain.
13045         (image_instantiator_format_create): use it for text and
13046         subwindows.
13047
13048 2000-04-21  Andy Piper  <andy@xemacs.org>
13049
13050         * glyphs.c (image_instance_device): new function.
13051         (image_instance_frame): new function.
13052         (image_instance_window): new function.
13053         (image_instance_live_p): new function.
13054
13055         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13056         cache to nil.
13057
13058         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13059         (IMAGE_INSTANCE_DOMAIN): new accessor.
13060         (XIMAGE_INSTANCE_DOMAIN): ditto.
13061
13062         * glyphs-x.c (x_finalize_image_instance): device->domain.
13063
13064         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13065         (mswindows_finalize_image_instance): ditto.
13066
13067         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13068         (gif_instantiate): ditto.
13069         (png_instantiate): ditto.
13070         (tiff_instantiate): ditto.
13071
13072         * glyphs.c (instantiate_image_instantiator): use domain rather
13073         than device.
13074         (mark_image_instance): device -> domain.
13075         (print_image_instance): ditto.
13076         (finalize_image_instance): ditto.
13077         (image_instance_equal): ditto.
13078         (allocate_image_instance): ditto.
13079         (Fcolorize_image_instance): ditto.
13080         (query_string_geometry): ditto.
13081         (image_instantiate): ditto
13082         (query_string_font): ditto.
13083         (image_instantiate): ditto.
13084         (update_subwindow): ditto.
13085         (unmap_subwindow): ditto.
13086         (map_subwindow): ditto.
13087         (subwindow_instantiate): ditto.
13088
13089         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13090         (DOMAIN_FRAME): ditto.
13091         (DOMAIN_WINDOW): ditto.
13092         (DOMAIN_LIVE_P): ditto.
13093         (XDOMAIN_DEVICE): ditto.
13094         (XDOMAIN_FRAME): ditto.
13095         (XDOMAIN_WINDOW): ditto.
13096
13097         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13098         a valid specifier domain.
13099
13100 2000-04-19  Andy Piper  <andy@xemacs.org>
13101
13102         * glyphs-widget.c (syms_of_glyphs_widget): remove
13103         widget-callback-current-channel.
13104         (vars_of_glyphs_widget): ditto.
13105         * glyphs.h: ditto
13106
13107         * gui.c (get_gui_callback): revert to previous behaviour.
13108
13109 2000-04-18  Andy Piper  <andy@xemacs.org>
13110
13111         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13112         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13113         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13114
13115         * glyphs.c (image_instance_equal): add margin_width.
13116         (image_instance_hash): ditto.
13117
13118         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13119         (layout_query_geometry): ditto.
13120         (layout_layout): ditto.
13121         (syms_of_glyphs_widget): add margin-width.
13122         (image_instantiator_layout): allow margin-width.
13123
13124         * glyphs.c (update_widget_instances): make a normal function.
13125         (syms_of_glyphs): remove Qupdate_widget_instances.
13126         * glyphs.h: ditto.
13127
13128         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13129         so that we don't corrupt ideas about the last event or
13130         command. Remove widget-callback-current-channel fiddling.
13131         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13132
13133 2000-05-01  Martin Buchholz <martin@xemacs.org>
13134
13135         * XEmacs 21.2.33 is released.
13136
13137 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13138
13139         * make-src-depend: Allow dots in header file name.
13140
13141 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13142
13143         * mule-charset.h (struct charset_lookup): Add
13144         next_allocated_1_byte_leading_byte and
13145         next_allocated_2_byte_leading_byte.
13146         * mule-charset.c: Move above two variables so that those values
13147         will be dumped.
13148
13149 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13150
13151         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13152         when string length is zero.
13153         (find_charsets_in_emchar_string): Ditto.
13154
13155 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13156
13157         * lisp.h: extern Qdialog and Qmenubar.
13158
13159         * gui-x.c: added events.h.
13160                 also fixed typo which made the file uncompilable.
13161
13162         * general.c: Added Qmenubar and Qdialog
13163
13164 2000-04-28  Ben Wing  <ben@xemacs.org>
13165
13166         * frame-msw.c (mswindows_init_frame_1):
13167         * frame-msw.c (mswindows_mark_frame):
13168         * event-msw.c (mswindows_enqueue_dispatch_event):
13169         * console-msw.h:
13170         * console-msw.h (struct mswindows_frame):
13171         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13172         there are now three hash tables for callbacks.
13173         mswindows_enqueue_dispatch_event is no longer static.
13174
13175         * dialog-x.c (maybe_run_dbox_text_callback):
13176         * dialog-x.c (dbox_descriptor_to_widget_value):
13177         switch to new cons3 form for callbacks.
13178
13179         * glyphs-msw.c (mswindows_register_gui_item):
13180         * glyphs-msw.c (mswindows_widget_instantiate):
13181         * glyphs-msw.c (add_tree_item):
13182         * glyphs-msw.c (add_tab_item):
13183         new image instance parameter, so it can be passed to callback-ex.
13184         respect :callback-ex as well as :callback.
13185
13186         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13187         add :callback-ex.
13188
13189         * glyphs.c (print_image_instance):
13190         prettify, e.g. now prints widget type.
13191
13192         * gui-x.h:
13193         certain funs have new image instance parameter.
13194
13195         * gui.c:
13196         * gui.c (get_gui_callback):
13197         * gui.c (gui_item_add_keyval_pair):
13198         * gui.c (gui_item_init):
13199         * gui.c (gui_add_item_keywords_to_plist):
13200         * gui.c (mark_gui_item):
13201         * gui.c (gui_item_hash):
13202         * gui.c (gui_item_equal):
13203         * gui.c (copy_gui_item):
13204         * gui.c (syms_of_gui):
13205         recognize callback-ex in a number of places.
13206         also, fix the annoying "can't get out of yes-no dialog" bug.
13207
13208         * gui.h:
13209         * gui.h (struct Lisp_Gui_Item):
13210         recognize callback-ex in a number of places.
13211
13212         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13213         new parameter in button_item_to_widget_value.
13214
13215         * glyphs-x.c (x_update_widget):
13216         * glyphs-x.c (x_button_instantiate):
13217         * glyphs-x.c (x_button_update):
13218         * glyphs-x.c (x_progress_gauge_instantiate):
13219         * glyphs-x.c (x_edit_field_instantiate):
13220         * glyphs-x.c (x_combo_box_instantiate):
13221         * glyphs-x.c (x_tab_control_instantiate):
13222         * glyphs-x.c (x_label_instantiate):
13223         new image instance parameter in various places.
13224
13225         * event-Xt.c:
13226         * event-Xt.c (enqueue_Xt_dispatch_event):
13227         this fun gets exported.
13228
13229         * gui-msw.c:
13230         * gui-msw.c (mswindows_handle_gui_wm_command):
13231         handle both :callback and :callback-ex, and generate our own
13232         event because it's one of the callback-ex arguments.
13233
13234         * gui-x.c:
13235         * gui-x.c (popup_selection_callback):
13236         handle both :callback and :callback-ex, and generate our own
13237         event because it's one of the callback-ex arguments.
13238         * gui-x.c (button_item_to_widget_value):
13239         * gui-x.c (gui_items_to_widget_values_1):
13240         * gui-x.c (gui_item_children_to_widget_values):
13241         * gui-x.c (gui_items_to_widget_values):
13242         new image instance parameter in various places.
13243
13244         * fns.c (Freplace_list):
13245         fix small typo in doc string.
13246
13247         * lisp.h:
13248         declare enqueue_Xt_dispatch_event.
13249
13250 2000-04-28  Ben Wing  <ben@xemacs.org>
13251
13252         * buffer.c:
13253         * buffer.c (Frecord_buffer):
13254         * buffer.c (syms_of_buffer):
13255         delete record-buffer-hook.
13256
13257         * fns.c:
13258         * fns.c (Freplace_list):
13259         * fns.c (syms_of_fns):
13260         new primitive replace-list.
13261
13262         * frameslots.h:
13263         slot for old buffer-alist.
13264
13265         * lisp.h:
13266         exfun replace-list.
13267
13268         * redisplay.c:
13269         * redisplay.c (redisplay_frame):
13270         * redisplay.c (syms_of_redisplay):
13271         * redisplay.c (vars_of_redisplay):
13272         new hook buffer-list-changed-hook.
13273         call it.
13274
13275 2000-04-27  Ben Wing  <ben@xemacs.org>
13276
13277         * extents.h: extern in_modeline_generation.
13278
13279         * redisplay.c (generate_formatted_string_db): set
13280         in_modeline_generation.
13281
13282         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13283         flags if in modeline generation.  otherwise frame-modified-tick
13284         is ticked far too often.
13285         Declare in_modeline_generation.
13286
13287 2000-04-26  Ben Wing  <ben@xemacs.org>
13288
13289         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13290         option.
13291         (vars_of_emacs): add quick-build as an error-checking option.
13292         A bit kludgy, but there doesn't seem much point in creating
13293         a real var for this.
13294
13295         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13296
13297 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13298
13299         * redisplay.h (struct display_line): Add a new variable,
13300         line_continuation.
13301
13302         * redisplay.c (create_text_block): Set dl->line_continuation if
13303         the line continues.
13304         (create_string_text_block): Ditto.
13305         (regenerate_window_incrementally): Use line_continuation instead
13306         of searching continuation glyph.
13307         (add_margin_runes): Call add_glyph_rune.
13308         (add_glyph_rune): Handle margin glyph.
13309
13310 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13311
13312         * filelock.c (fill_in_lock_file_name):
13313         ANSIfy.
13314         Check for IS_ANY_SEP instead of '/'.
13315         (lock_file_1):
13316         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13317         Never check errno without first seeing that system call failed.
13318         (unlock_file): Add GCPRO.
13319         (Flock_buffer): Fix docstring.
13320         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13321
13322 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13323
13324         * sysdep.c (get_pty_max_bytes):
13325         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13326         strings longer than 252 bytes.
13327
13328         * md5.c: Unconditionally include ANSI header <limits.h>
13329
13330         * glyphs-x.c (convert_EImage_to_XImage):
13331         * lisp-union.h (union Lisp_Object):
13332         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13333
13334 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13335
13336         * filelock.c (current_lock_owner): Remove unused variable o, p.
13337
13338 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13339
13340         * callint.c: Remove multiply defined symbol Qlet
13341         (syms_of_callint): ditto.
13342
13343 2000-04-14  Andy Piper  <andy@xemacs.org>
13344
13345         * general.c (syms_of_general): add last-command, this-command, let
13346         and funcall.
13347
13348         * lisp.h: declare various symbols.
13349
13350         * glyphs.h: declare Qwidget_callback_current_channel;
13351
13352         * glyphs-widget.c (syms_of_glyphs_widget): add
13353         Qgui_callback_current_channel.
13354         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13355
13356         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13357         widget-callback-current-channel when invoking the interactive
13358         arg. Also bind last-command and next-command when invoking the
13359         widget updates.
13360         * gui-x.c (popup_selection_callback): ditto.
13361
13362         * gui.c (get_gui_callback): massage args so that we are always
13363         calling eval. This allows us to add our own variable bindings
13364         outside.
13365
13366         * glyphs-x.c (x_button_instantiate): use
13367         gui_items_to_widget_values since this is GC safe.
13368         (x_progress_gauge_instantiate): ditto.
13369         (x_edit_field_instantiate): ditto.
13370         (x_label_instantiate): ditto.
13371
13372         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13373         (emacs_Xt_event_widget_focus_out): new function
13374         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13375         focus.
13376         (emacs_Xt_event_add_widget_actions): new function. add focus
13377         functions as actions.
13378         (init_event_Xt_late): use it.
13379
13380 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13381
13382         * event-stream.c (Fdispatch_event): Doc fix.
13383
13384 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13385
13386         * postgresql.c: Remove all references to PQsetenv*.
13387
13388         * postgresql.h: Remove references to PGsetenvHandler object.
13389         * lrecord.h (lrecord_type): Ditto.
13390
13391 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13392
13393         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13394         real_heigh and real_width members, and accessor macros for these.
13395
13396         * glyphs-msw.c (init_image_instance_geometry): New function.
13397         (init_image_instance_from_dibitmap): Use it.
13398         (mswindows_resource_instantiate): Use it.
13399         (init_image_instance_from_xbm_inline): Use it.
13400         (mswindows_initialize_image_instance_mask): Use real bitmap
13401         geometry.
13402         (mswindows_create_resized_bitmap): Ditto.
13403         (mswindows_create_resized_mask): Ditto.
13404
13405         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13406         and bitmap to their surface size.
13407
13408 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13409
13410         * process-unix.c (unix_send_process): Guard against process MIA
13411         after Faccept_process_output.
13412
13413 2000-04-11  Ben Wing  <ben@xemacs.org>
13414
13415         * eval.c (unbind_to_hairy): fix brokenness introduced by
13416         nanosecond speed improvements.
13417
13418 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13419
13420         * sunplay.c (init_device): To play sounds correctly, the device
13421         apparently needs to be initialized at least once by XEmacs.  Make
13422         it so.
13423
13424 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13425
13426         * redisplay.c (add_margin_runes): Add text image glyph
13427           handling.
13428
13429 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13430
13431         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13432         gcc is newer than 2.5.
13433
13434 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13435
13436         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13437
13438         * fns.c (size_bit_vector):
13439         * alloc.c (size_vector):
13440         (make_vector_internal):
13441         (make_bit_vector_internal):
13442         (sweep_bit_vectors_1):
13443         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13444
13445 2000-04-06  Andy Piper  <andy@xemacs.org>
13446
13447         * gmalloc.c (malloc): undo previous change.
13448         (malloc): ditto.
13449         (free): ditto.
13450         (realloc): ditto.
13451
13452 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13453
13454         * line-number.c (buffer_line_number): Revert to former version.
13455
13456 2000-04-06  Andy Piper  <andy@xemacs.org>
13457
13458         * gmalloc.c (malloc): add error checking.
13459         (malloc): ditto.
13460         (free): ditto.
13461         (realloc): ditto.
13462
13463         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13464         button_item_to_widget_value arg.
13465
13466         * glyphs-x.c (x_button_instantiate): add extra
13467         button_item_to_widget_value arg.
13468         (x_progress_gauge_instantiate): ditto.
13469         (x_edit_field_instantiate): ditto.
13470         (x_label_instantiate): ditto.
13471
13472         * gui-x.c (gui_items_to_widget_values_1): add extra
13473         button_item_to_widget_value arg.
13474         (button_item_to_widget_value): add extra menu_item_p arg.
13475
13476         * gui-x.h: change signature of button_item_to_widget_value.
13477
13478         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13479         button_item_to_widget_value arg.
13480
13481 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13482
13483         * buffer.h (struct buffer): auto_save_modified should be long.
13484
13485 2000-04-05  Andy Piper  <andy@xemacs.org>
13486
13487         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13488         type.
13489         (button_query_geometry): give a little more room so that athena
13490         buttons fit.
13491
13492 2000-04-05  Andy Piper  <andy@xemacs.org>
13493
13494         * faces.c (complex_vars_of_faces): The widget face should inherit
13495         the font of the gui-element face.
13496
13497 2000-04-04  Andy Piper  <andy@xemacs.org>
13498
13499         * glyphs-x.c (x_button_update): new function. unconditionally
13500         update a button's state when the instance is dirty.
13501         (image_instantiator_format_create_glyphs_x): add x_button_update.
13502         (x_widget_instantiate): remove old resize cruft.
13503
13504 2000-04-02  Andy Piper  <andy@xemacs.org>
13505
13506         * frame.c (change_frame_size_1): The introduction of gutters means
13507         that we need to allow 0 as a potential frame dimension.
13508
13509 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13510
13511         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13512         image glyph if allow_cursor.
13513         (add_hscroll_rune): Don't allow cursor to border glyph.
13514         (create_text_block): Ditto.
13515
13516         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13517         text not in buffer.
13518         (redisplay_output_layout): Call ensure_face_cachel_complete for
13519         text image glyph.
13520
13521
13522 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13523
13524         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13525
13526         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13527         not in buffer
13528
13529         * redisplay-tty.c (tty_output_display_block): Delete the routine
13530         for text image glyph
13531         * redisplay-x.c (x_output_display_block): ditto
13532         * redisplay-msw.c (mswindows_output_display_block): ditto
13533
13534 2000-02-02  Mike Alexander  <mta@arbortext.com>
13535
13536         Note: Some of these were committed by accident as part of other
13537         patches.
13538
13539         * regex.c (regex_compile): Avoid compiler warnings.
13540
13541         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13542
13543         * nt.h: Declare term_ntproc correctly.
13544
13545         * nt.c: Remove incorrect declaration of get_home_directory which
13546         is declared correctly in lisp.h.
13547
13548         * keymap.c (get_keyelt): Avoid compiler warnings.
13549         (raw_lookup_key_mapper): Avoid compiler warnings.
13550
13551         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13552
13553         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13554
13555         * filemode.c (mode_string): Avoid compiler warnings.
13556
13557         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13558         avoid warning.
13559
13560         * events-mod.h: Undef some things that winuser.h defines differently.
13561
13562         * data.c (Faset): Avoid compiler warnings.
13563
13564         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13565
13566 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13567
13568         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13569         Fall through to simple beep on error.
13570         Replace "extern" by real header file.
13571
13572         * linuxplay.c: Use nativesound.h
13573         (play_sound_data): Return error code. Be less verbose on error.
13574
13575         * sunplay.c: Use nativesound.h
13576         (play_sound_data): Return error code. Be less verbose on error.
13577
13578         * ntplay.c: Use nativesound.h
13579         (play_sound_data): Return fake error code
13580
13581         * sgiplay.c: Use nativesound.h
13582         (play_sound_data): Return error code
13583
13584         * hpplay.c: Use nativesound.h, partially implement
13585         new error code. Break compilation until finished.
13586         (play_sound_data): error code.
13587
13588         * nativesound.h (play_sound_file):
13589           (play_sound_data): Prototype in new header.
13590
13591 2000-03-31  Andy Piper  <andy@xemacs.org>
13592
13593         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13594         for toggle and radio buttons.
13595         (image_instantiator_buttons): use it.
13596
13597 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13598
13599         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13600         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13601         found. Scrollbar event probably belonged to some old config.
13602
13603 2000-03-31  Andy Piper  <andy@xemacs.org>
13604
13605         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13606         than 1.
13607         (initialize_widget_image_instance): default layout to
13608         LAYOUT_HORIZONTAL rather than 0.
13609         (widget_instantiate): reverse the item list at the end rather than
13610         every iteration.
13611         (layout_layout): re-code for the border text at the front of the
13612         item list rather than at the end.
13613         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13614         provided by the user.
13615         (widget_query_geometry): comment.
13616
13617 2000-03-30  Andy Piper  <andy@xemacs.org>
13618
13619         * glyphs-widget.c (image_instantiator_layout): allow standard
13620         widget keywords in layouts.
13621
13622         * gutter.c (output_gutter): cope with nil gutter contents.
13623
13624         * frame.c (Fset_frame_properties): add gutter docs.
13625
13626 2000-03-29  Andy Piper  <andy@xemacs.org>
13627
13628         * toolbar-msw.c (TBSTYLE_FLAT): add.
13629         (mswindows_output_toolbar): minor fiddling.
13630
13631 2000-03-29  Andy Piper  <andy@xemacs.org>
13632
13633         * gutter.c (output_gutter): force gutter size recalculation if
13634         what we are trying to display won't fit.
13635         (update_gutter_geometry): new function. A per-gutter version of
13636         update_frame_gutter_geometry.
13637         (update_frame_gutter_geometry): use it.
13638         (redraw_exposed_gutter): add extra debugging output.
13639
13640 2000-03-28  Mike Alexander  <mta@arbortext.com>
13641
13642         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13643         (pdump_file_unmap): Implement it on Windows
13644         (pdump_file_get): Save alocated handles for pdump_file_unmap
13645
13646 2000-03-28  Andy Piper  <andy@xemacs.org>
13647
13648         * gui.c (get_gui_callback): treat Quit specially.
13649
13650 2000-03-27  Andy Piper  <andy@xemacs.org>
13651
13652         * glyphs.c (image_instantiate): be careful to check in the same
13653         way we assigned.
13654
13655 2000-03-27  Didier Verna  <didier@xemacs.org>
13656
13657         * config.h.in: define the proper SMART_INCLUDE macro.
13658         handle renaming of `foo_h_path' to `foo_h_file'.
13659
13660         * database.c: ditto.
13661
13662         * emacs.c: ditto.
13663
13664         * linuxplay.c: ditto.
13665
13666         * terminfo.c: ditto.
13667
13668         * tooltalk.h: ditto.
13669
13670 2000-03-27  Andy Piper  <andy@xemacs.org>
13671
13672         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13673         gets updated whenever the face might have changed.
13674
13675 2000-03-26  Mike Alexander  <mta@arbortext.com>
13676
13677         * dumper.c (pdump_resource_free): Fix the comment.
13678
13679 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13680
13681         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13682
13683 2000-03-22  Mike Alexander  <mta@arbortext.com>
13684
13685         * dumper.c: Include Windows headers on Windows
13686         (pdump_resource_free): Add a body to the function
13687         (pdump_load): exe_name -> exe_path and add some comments.
13688
13689 2000-03-25  Mike Alexander  <mta@arbortext.com>
13690
13691         * gui.c (copy_gui_item_tree): Return a value in all cases
13692
13693 2000-03-21  Didier Verna  <didier@xemacs.org>
13694
13695         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13696         lwlib/config.h.in.
13697         (SMART_INCLUDE): new macro.
13698         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13699         the proper location.
13700
13701         * postgresql.c: use it.
13702
13703         * inline.c: ditto.
13704
13705 2000-03-24  Andy Piper  <andy@xemacs.org>
13706
13707         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13708         do this.
13709
13710 2000-03-24  Andy Piper  <andy@xemacs.org>
13711
13712         * redisplay-output.c (compare_runes): use image_instance_changed
13713         to detect changes. Do not depend on glyphs_changed, only depend on
13714         dirtiness.
13715          (redisplay_output_layout): add debug messages.
13716         (compare_runes): ditto.
13717
13718         * glyphs.h: declare new functions.
13719         (struct Lisp_Image_Instance): remove percent and associated
13720         accessors.
13721
13722         * gui.h: declare new copying functions.
13723
13724         * gui.c (copy_gui_item_tree): new function.
13725         (copy_gui_item): new function.
13726         (gui_item_id_hash): revert to standard hash.
13727         (gui_item_hash): ditto.
13728         (gui_item_hash_internal): deleted.
13729         (mark_gui_item): mark value.
13730         (gui_item_add_keyval_pair): add value.
13731         (gui_item_init): ditto.
13732         (gui_add_item_keywords_to_plist): ditto.
13733         (gui_item_equal): ditto.
13734         (syms_of_gui): add Q_value.
13735
13736         * glyphs-x.c (x_progress_gauge_update): use pending items and
13737         value for setting the state.
13738         (x_update_widget): don't set items from pending here.
13739
13740         * glyphs-widget.c (update_widget): update items here.
13741         (progress_gauge_set_property): use items for storing value. Put
13742         new value in pending items.
13743
13744         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13745         items for new value. Convert percent -> value.
13746         (mswindows_tab_control_update): don't update items here.
13747
13748         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13749         (update_subwindow): ditto.
13750         (image_instance_changed): new function. Compare hash values and
13751         past and present widget items.
13752         (image_instantiate): We more careful about where we instantiate
13753         things.
13754         (image_instantiate): add error checking.
13755
13756         * gutter.c (syms_of_gutter): use -hook.
13757
13758 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13759
13760         * console-tty.c (Fset_console_tty_input_coding_system): Use
13761         Qkeyboard.
13762         (Fset_console_tty_output_coding_system): Use Qterminal.
13763         (tty_init_console): Use Qkeyboard and Qterminal.
13764
13765 2000-03-21  Ben Wing  <ben@xemacs.org>
13766
13767         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13768         From Mike Alexander <mta@arbortext.com>.
13769
13770 2000-03-21  Ben Wing  <ben@xemacs.org>
13771
13772         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13773         process brokenness.  Proper implementation to come.
13774         * callproc.c:
13775         Rename call-process-internal to old-call-process-internal.
13776         New impl. in process.el.
13777
13778 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13779
13780         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13781
13782 2000-03-20  Andy Piper  <andy@xemacs.org>
13783
13784         * glyphs.c (full_list_hash): make hashes of the same elements in
13785         different orders return different values.
13786
13787 2000-03-20  Martin Buchholz <martin@xemacs.org>
13788
13789         * XEmacs 21.2.32 is released.
13790
13791 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13792
13793         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13794         (DFC_MALLOC_USE_CONVERTED_DATA):
13795         Add aliasing-safe casts to allow use with char* or unsigned char*
13796         lvalues.
13797
13798         * eldap.c (Fldap_open):
13799         (Fldap_search_basic):
13800         (Fldap_add):
13801         (Fldap_modify):
13802         Make C++-compilable.
13803         Make sure GCPRO'ed variables are initialized.
13804         Use temp variables to avoid repeated calls to Flength.
13805
13806 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13807
13808         * sysfile.h:
13809         Make sure PATH_MAX is always defined.
13810         Include limits.h for PATH_MAX.
13811         Deprecate use of MAXPATHLEN.
13812
13813 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13814
13815         * emacs.c: Add reinit_vars_of_fileio.
13816         * symsinit.h: Add reinit_vars_of_fileio.
13817         * fileio.c (reinit_vars_of_fileio): New.
13818         * fileio.c (Fmake_temp_name):
13819         Initialize temp_name random number from microseconds to make
13820         collisions even less likely.  Initialize always at process startup
13821         time.  (make-temp-name) used to return the same file name twice in
13822         a row when PDUMP.
13823         Random stylistic fiddling.
13824         Comment fixes.
13825
13826 2000-03-20  Andy Piper  <andy@xemacs.org>
13827
13828         * glyphs.c (image_instantiate): allow text glyphs to be
13829         instantiated in the minibuffer window.
13830
13831 2000-03-19  Andy Piper  <andy@xemacs.org>
13832
13833         * glyphs.c (image_instance_hash): be careful about which items we
13834         hash on.
13835
13836         * glyphs-widget.c (tab_control_set_property): record into pending
13837         items rather than the actual items.
13838
13839         * glyphs-x.c (x_update_widget): use pending items to update with.
13840
13841         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13842         to update with.
13843
13844         * glyphs.c (mark_image_instance): mark pending items.
13845
13846         * window.c (Fset_window_configuration): record the buffer.
13847         (Fselect_window): totally revert previous change which breaks many
13848         things.
13849
13850 2000-03-18  Andy Piper  <andy@xemacs.org>
13851
13852         * glyphs-msw.c (mswindows_tab_control_update): force selected
13853         item.
13854
13855         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13856         window domain cache, otherwise we get inconsistencies at
13857         startup. There is something fishy at startup which can lead to the
13858         minibuffer being the selected window when the gutter content is
13859         instantiated.
13860
13861         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13862         gcpros.
13863         (parse_gui_item_tree_children): ditto.
13864         (parse_gui_item_tree_item): ditto.
13865
13866         * glyphs.c (Fupdate_widget_instances): return something.
13867
13868 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13869
13870         * window.c (Fselect_window): Undo 2000-03-17 change.
13871
13872 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13873
13874         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13875         against v7.0 libraries.  Insta-coredump city until the postgres
13876         folks fix it.
13877
13878 2000-03-17  Andy Piper  <andy@xemacs.org>
13879
13880         * faces.c (complex_vars_of_faces): don't give the widget face an
13881         inherited background pixmap.
13882
13883         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13884         selected item.
13885
13886         * event-stream.c (Fdispatch_non_command_events): return something.
13887
13888         * gutter.c (output_gutter): use widget face.
13889         (clear_gutter): ditto.
13890
13891         * NEWS: adjust again.
13892
13893         * window.c (Fselect_window): make sure this runs to completion to
13894         avoid oddities with Fset_window_configuration.
13895         (Fcurrent_window_configuration): in general do not save the
13896         minibuffer as the selected window.
13897
13898         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13899
13900 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13901
13902         * emacs.c (Frunning_temacs_p): Revert previous patch.
13903         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13904
13905 2000-03-16  Andy Piper  <andy@xemacs.org>
13906
13907         * glyphs-x.c (x_tab_control_update): if no widget values then
13908         return.
13909
13910         * NEWS: update for new features.
13911
13912         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13913         synthetic event to the native system.
13914         (reinit_vars_of_event_Xt): set force_event_pending to
13915         emacs_Xt_force_event_pending.
13916
13917         * events.h (struct event_stream): add force_event_pending.
13918
13919         * specifier.c (recompute_one_cached_specifier_in_window): add
13920         comment.
13921
13922         * redisplay.c (redisplay_frame): don't call
13923         update_frame_subwindows. Reset subwindow cachels when
13924         subwindows_changed, removing this was an optimization too far.
13925
13926         * redisplay-output.c (compare_runes): reorganize so that we catch
13927         glyph changes when we want them. Set optimize_output when this
13928         would help layouts.
13929         (redisplay_output_layout): remove frame_really_changed, use
13930         optimize_output instead.
13931
13932         * redisplay-msw.c (mswindows_output_display_block): reset
13933         optimize_output after outputting a glyph.
13934         * redisplay-x.c (x_output_display_block): ditto.
13935         * redisplay-tty.c (tty_output_display_block): ditto.
13936
13937         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13938         functions.
13939         (gutter_specs_changed): do specific gutter positions.
13940         (top_gutter_specs_changed): new function. Only update the
13941         specified gutter specs.
13942         (bottom_gutter_specs_changed): ditto.
13943         (left_gutter_specs_changed): ditto.
13944         (right_gutter_specs_changed): ditto.
13945
13946         * gui.c (gui_item_hash_internal): new function, does a real hash.
13947         (gui_item_id_hash): use it.
13948         (gui_item_hash): hash the eval'ed gui_item.
13949
13950         * gui-x.c (popup_selection_callback): send an eval event to call
13951         Fupdate_widget_instances.
13952
13953         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13954         to call Fupdate_widget_instances.
13955
13956         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13957         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13958
13959         * glyphs.c: (update_frame_subwindows): deleted.
13960         (Fupdate_widget_instances): new function for updating the dirty
13961         state of widgets that might have changed.
13962         (syms_of_glyphs): add Qupdate_widget_instances.
13963         (full_list_hash): hash a list completely.
13964         (image_instance_hash): use it for items and properties.
13965
13966         * frame-msw.c (mswindows_size_frame_internal): remove unused
13967         variable.
13968
13969         * faces.h (struct face_cachel): fix comment.
13970
13971         * event-stream.c (Fdispatch_non_command_events): new
13972         function. Process non-command events, forcing an event cycle
13973         beforehand.
13974         (syms_of_event_stream): declare.
13975         (event_stream_force_event_pending): new function. Force an event
13976         on the native event queue so that an event cycle will occur next
13977         time we check.
13978
13979         * event-msw.c:
13980         (struct ntpipe_shove_stream):
13981         (mswindows_enqueue_dispatch_event):
13982         (mswindows_dequeue_dispatch_event):
13983         (mswindows_cancel_dispatch_event):
13984         (mswindows_pump_outstanding_events):
13985         (mswindows_drain_windows_queue):
13986         (mswindows_handle_paint):
13987         (mswindows_wnd_proc):
13988         (mswindows_key_to_emacs_keysym):
13989         (get_process_input_waitable):
13990         (emacs_mswindows_delete_stream_pair): re-indent file.
13991         (mswindows_need_event): do not process further fds if the windows
13992         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13993         fixes the 100% cpu problem.
13994         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13995
13996 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13997
13998         * alloc.h: New.
13999         * dumper.h: New.
14000         * dumper.c: New.
14001
14002         * emacs.c: Moved dump file searching to dumper.c.
14003         (Frunning_temacs_p): Fixed.
14004
14005         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14006         last_lrecord_type_index_assigned.
14007
14008 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14009
14010         * symsinit.h: Added reinit parameter to init_console_stream
14011         declaration.
14012
14013         * lisp.h: Added file parameter to pdump_load declaration.
14014
14015         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14016         support.  Added dump file searching.
14017
14018         * config.h.in: Added EMACS_PROGNAME.
14019
14020         * console-stream.c (init_console_stream): Fix reinitialisation
14021         when running from temacs.
14022
14023         * alloc.c (pdump): Add id support.
14024         (pdump_load): Add file parameter and signature/id support.
14025
14026         * Makefile.in.in: Add full pdump support.
14027
14028 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14029
14030         * postgresql.c: Update documentation to reflect latest code
14031         status.
14032         (print_result): Show tuple counts in printed representation when
14033         appropriate.
14034         (Fpq_put_nbytes): MULE-ize.
14035         (Fpq_get_line_async): Ditto.
14036
14037 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14038
14039         * postgresql.c (Fpq_lo_import): Fix return value.
14040         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14041
14042 2000-03-13  Ben Wing  <ben@xemacs.org>
14043
14044         * alloc.c (pdump_load):
14045         Fix compile warning under mswin.
14046
14047 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14048
14049         * postgresql.c: Mule-ization, bug fixes.
14050         Use PG_CODING to encapsulate coding system name changes.
14051         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14052         (pg-coding-system): Create.
14053
14054         (Fpq_conn_defaults): Mule-ize.
14055         (Fpq_connectdb): Mule-ize & bug fix.
14056         (Fpq_connect_start): Mule-ize.
14057         (Fpq_set_client_encoding): Mule-ize.
14058         (Fpq_finish): Document `DEAD' connection status.
14059         (Fpq_clear): Ditto.
14060         (Fpq_pgconn): Mule-ize.
14061         (Fpq_exec): Mule-ize & bug fix.
14062         (Fpq_send_query): Ditto.
14063         (Fpq_get_result): Ditto.
14064         (Fpq_res_status): Mule-ize.
14065         (Fpq_result_error_message): Mule-ize.
14066         (Fpq_ntuples): fix comments.
14067         (Fpq_fname): Mule-ize.
14068         (Fpq_fnumber): Mule-ize.
14069         (Fpq_ftype): fix comments.
14070         (Fpq_get_value): Mule-ize.
14071         (Fpq_cmd_status): Ditto.
14072         (Fpq_cmd_tuples): Ditto.
14073         (Fpq_oid_value): Ditto.
14074         (Fpq_notifies): Ditto.
14075         (Fpq_lo_import): Ditto.
14076         (Fpq_lo_export): Ditto.
14077         (Fpq_get_line): Ditto.
14078         (Fpq_put_line): Mule-ize and bug fix.
14079         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14080
14081 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14082
14083         * postgresql.c (vars_of_postgresql): Mule-ize.
14084         (Fpq_conn_defaults): Ditto.
14085
14086 2000-03-12  Ben Wing  <ben@xemacs.org>
14087
14088         * alloc.c (Fmake_byte_code):
14089         * alloc.c (debug_string_purity_print):
14090         * alloc.c (pdump_backtrace):
14091         * alloc.c (pdump_get_indirect_count):
14092         * alloc.c (pdump_register_sub):
14093         * alloc.c (pdump_register_object):
14094         * alloc.c (pdump_register_struct):
14095         * alloc.c (pdump_dump_data):
14096         * alloc.c (pdump_reloc_one):
14097         Minor cleanups.
14098
14099         * console-msw.c:
14100         * console-msw.c (GetConsoleHwnd):
14101         * console-msw.c (msw_hide_console):
14102         * console-msw.c (msw_show_console):
14103         * console-msw.c (msw_ensure_console_buffered):
14104         * console-msw.c (msw_output_console_string):
14105         * console-msw.c (console_type_create_mswindows):
14106
14107         a) Added functions to manipulate the console window for use with
14108         shell support.
14109
14110         b) Added support for writing text to the console, which is now
14111         used under Windows when xemacs is not being run non-interactively,
14112         to write text that would otherwise be destined for stdout because
14113         under these circumstances, text written to stdout tends to
14114         disappear and not be seen.
14115
14116         * console-msw.h:
14117         * event-Xt.c:
14118         * event-Xt.c (x_event_to_emacs_event):
14119         * event-Xt.c (describe_event_window):
14120         * events-mod.h (XEMACS_MOD_CONTROL):
14121         * events.c:
14122         * events.c (Fmake_event):
14123         * events.c (character_to_event):
14124         * events.c (event_to_character):
14125         * events.c (format_event_object):
14126         * events.c (Fevent_modifiers):
14127         * events.h:
14128         * events.h (struct key_data):
14129         * events.h (struct button_data):
14130         * events.h (struct misc_user_data):
14131         * frame-x.c (Fcde_start_drag_internal):
14132         * frame-x.c (Foffix_start_drag_internal):
14133         * gpmevent.c (Freceive_gpm_event):
14134         * keymap.c:
14135         * keymap.c (bucky_sym_to_bucky_bit):
14136         * keymap.c (control_meta_superify):
14137         * keymap.c (make_key_description):
14138         * keymap.c (keymap_lookup_directly):
14139         * keymap.c (create_bucky_submap):
14140         * keymap.c (keymap_store):
14141         * keymap.c (define_key_check_and_coerce_keysym):
14142         * keymap.c (define_key_parser):
14143         * keymap.c (define_key_alternate_name):
14144         * keymap.c (Fdefine_key):
14145         * keymap.c (raw_lookup_key_mapper):
14146         * keymap.c (struct map_keymap_unsorted_closure):
14147         * keymap.c (map_keymap_unsorted_mapper):
14148         * keymap.c (map_keymap_sort_predicate):
14149         * keymap.c (map_keymap_sorted):
14150         * keymap.c (accessible_keymaps_mapper_1):
14151         * keymap.c (where_is_recursive_mapper):
14152         * keymap.c (describe_map_mapper):
14153         * keymap.c (describe_map_sort_predicate):
14154         * keymap.c (describe_map):
14155         * keymap.c (complex_vars_of_keymap):
14156         And a number of other files, the key modifier preprocessor
14157         constants that xemacs uses have names that conflict with constants
14158         defined under MS Windows for other purposes, so they were renamed
14159         to begin with the prefix XEMACS_. The variables that hold such
14160         modifiers were changed to consistently be of type int to fix
14161         various compile warnings.
14162
14163         * console.c (complex_vars_of_console):
14164         * device.c:
14165         * device-msw.c:
14166         * device-msw.c (mswindows_finish_init_device):
14167         * device-msw.c (msw_get_workspace_coords):
14168         * device-msw.c (mswindows_device_system_metrics):
14169         and various other files, added support for a new
14170         device property called offset-workspace which returns the position
14171         of the upper left corner of the workspace area and goes along with
14172         the existing size-workspace property.
14173
14174         * dialog-msw.c:
14175         * dialog-msw.c (push_bufbyte_string_as_unicode):
14176         * dialog-msw.c (mswindows_popup_dialog_box):
14177         Added support for XEmacs-style accelerator specifications in
14178         button text.  Note: I didn't add support for this under X Windows,
14179         and somebody needs to do this.
14180
14181         * dialog.c:
14182         * dialog.c (Fpopup_dialog_box):
14183         Documented the support for accelerators that was just mentioned.
14184
14185         editfns.c (get_home_directory): Changed behavior under Windows
14186         when HOME not defined; former behavior was irretrievably broken.
14187
14188         * emacs.c:
14189         * emacs.c (main_1):
14190         * emacs.c (main):
14191         * minibuf.c (clear_echo_area_internal):
14192         * minibuf.c (echo_area_append):
14193         * print.c:
14194         * print.c (std_handle_out_external):
14195         * print.c (std_handle_out_va):
14196         * print.c (fatal):
14197         * print.c (write_string_to_stdio_stream):
14198         * print.c (output_string):
14199         * print.c (debug_print):
14200         * print.c (debug_backtrace):
14201         * print.c (debug_short_backtrace):
14202         Cleaned up the code that prints text to stdout so that this can be
14203         changed to output into a console window instead under MS Windows,
14204         as described above.
14205
14206         * eval.c:
14207         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14208         * eval.c (internal_catch):
14209         * eval.c (unwind_to_catch):
14210         * eval.c (throw_or_bomb_out):
14211         * eval.c (condition_case_1):
14212         * eval.c (signal_1):
14213         * eval.c (check_error_state_sanity):
14214         * eval.c (call_with_suspended_errors_1):
14215         * eval.c (call_with_suspended_errors):
14216         * eval.c (reinit_vars_of_eval):
14217         Added code to catch throw loops and check for a pesky bug that may
14218         be gone now.
14219
14220         * event-msw.c:
14221         * event-msw.c (key_needs_default_processing_p):
14222         * event-msw.c (mswindows_wnd_proc):
14223         * event-msw.c (mswindows_modifier_state):
14224         * event-msw.c (emacs_mswindows_quit_p):
14225         * event-msw.c (vars_of_event_mswindows):
14226         a) Added support for using the alt key to select menu items as is
14227         standard under MS Windows.  This is controlled using the variable
14228         menu-accelerator-enabled, just like under X Windows.  There is an
14229         option on the options menu to turn this support on.  I really
14230         think that it should be on by default under Windows, but I'm not
14231         going to make this change yet.
14232
14233         b)  Added support for dynamic display size changes under Windows.
14234
14235         * event-stream.c:
14236         * event-stream.c (maybe_echo_keys):
14237         * event-stream.c (Fnext_event):
14238         * event-stream.c (command_builder_find_leaf):
14239         * event-stream.c (lookup_command_event):
14240         * event-stream.c (execute_command_event):
14241         * event-stream.c (pre_command_hook):
14242         * event-stream.c (post_command_hook):
14243         * event-stream.c (syms_of_event_stream):
14244         * event-stream.c (vars_of_event_stream):
14245         * event-stream.c (complex_vars_of_event_stream):
14246         * events.h (struct command_builder):
14247
14248         a) Tried to clean up a little bit the horribly written x-specific
14249         accelerator code that crept into this file.  I moved this code
14250         into menubar-x.c where it belongs. I also needed to move the
14251         command builder structure into the file events.h because it is
14252         accessed directly by this accelerator code.  What I didn't do, but
14253         which should be done at some point, is to properly abstract this
14254         code using device methods instead of the kludgy way that it
14255         currently hooks into the event code.
14256
14257         b) Added the lisp variables this-command-properties and
14258         last-command- properties, which should be used to synchronize two
14259         adjacent commands in preference to playing games with the variable
14260         this-command, which is typically what happens.
14261
14262         c) Added some slightly nasty code to hook into the lisp support
14263         for shifted- motion-key selection.  This is actually necessary for
14264         somewhat complicated reasons, which are described in
14265         simple.el. (NB: I think the proper thing would be to have the code
14266         that calls the pre and post command hooks also call out to generic
14267         lisp functions in simple.el, where all built-in stuff could be
14268         added.  I will think about this more.)
14269
14270         * event-unixoid.c (poll_fds_for_input):
14271         * lread.c (readchar):
14272         * redisplay-tty.c (tty_clear_frame):
14273         * redisplay-x.c (x_get_gc):
14274         * signal.c (interrupt_signal):
14275         And a whole bunch of other files: fixed up places that printed
14276         directly to stderr to instead call the function stderr_out so that
14277         the changes I made under Windows work correctly.
14278
14279         * filemode.c (mode_string):
14280         Warning fixes.
14281
14282         * frame-msw.c:
14283         * frame-msw.c (mswindows_size_frame_internal):
14284         Fixed the computation of frame size and position to keep the frame
14285         within the workspace area, rather than within the physical
14286         dimensions of the screen, so that the frame doesn't overlap window
14287         manager decorations, such as the start menu and toolbar, typically
14288         at the bottom of the screen.
14289
14290         * frame.c (vars_of_frame):
14291         Changed the default frame title format under MS Windows to consist
14292         of buffername-XEmacs, which is standard under MS Windows.  I think
14293         it might be a good idea to change this everywhere because I think
14294         it is superior to the current frame title format, but this is the
14295         kind of change that is likely to cause some people to get annoyed,
14296         so I'm not making it.
14297
14298         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14299
14300         * gui-msw.c (mswindows_handle_gui_wm_command):
14301         Fixed compile warnings.
14302
14303         * gui-x.c:
14304         * gui-x.c (strdup_and_add_accel):
14305         * gui-x.c (button_item_to_widget_value):
14306         * gui-x.h:
14307         Added code to automatically put an accelerator onto the beginning
14308         of menu items that don't have one as is now the standard, and is
14309         described more later.  Also fixed things so that the menu item
14310         name can be an evaluated expression, again a new standard.
14311
14312         * gui.c:
14313         * gui.c (gui_item_add_keyval_pair):
14314         * gui.c (make_gui_item_from_keywords_internal):
14315         * gui.c (gui_add_item_keywords_to_plist):
14316         * gui.c (gui_item_accelerator):
14317         * gui.c (gui_name_accelerator):
14318         * gui.c (gui_item_included_p):
14319         * gui.c (gui_item_display_flush_left):
14320         * gui.c (gui_item_display_flush_right):
14321         * gui.c (parse_gui_item_tree_item):
14322         * gui.c (parse_gui_item_tree_children):
14323         * gui.c (parse_gui_item_tree_list):
14324         Mule-ized.  Cleanup.  GCPRO addition.
14325
14326         * line-number.c (buffer_line_number):
14327         * lisp.h:
14328         * lisp.h (EMACS_INT_MAX):
14329         Added the manifest constant EMACS_INT_MIN corresponding to the
14330         existing constant EMACS_INT_MAX.  This is partially to fix compile
14331         warnings under Windows, and partly for cleanliness.
14332
14333         * menubar-msw.c:
14334         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14335         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14336         * menubar-msw.c (displayable_menu_item):
14337         * menubar-msw.c (populate_menu_add_item):
14338         * menubar-msw.c (populate_or_checksum_helper):
14339         * menubar-msw.c (populate_menu):
14340         * menubar-msw.c (update_frame_menubar_maybe):
14341         * menubar-msw.c (prune_menubar):
14342         * menubar-msw.c (msw_char_is_accelerator):
14343         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14344         * menubar-msw.c (mswindows_handle_wm_command):
14345         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14346         * menubar-msw.c (mswindows_handle_wm_initmenu):
14347         * menubar-msw.c (mswindows_update_frame_menubars):
14348         * menubar-msw.c (mswindows_free_frame_menubars):
14349         * menubar-msw.c (mswindows_popup_menu):
14350         Fixed a bug in handling accelerators where an extra character
14351         would be displayed in the menu item.  Also generalized the
14352         function displayable_menu_item because it is now used by the
14353         dialog box code as well.  And finally, added code in the functions
14354         that create the menubar to extract a list of accelerators for the
14355         top level menubar, which is used in the event code to determine
14356         whether a particular alt-key combination should be used to invoke
14357         a menu item, or should be passed through to access the standard
14358         XEmacs keymap binding for this key combination.
14359
14360         Much needed GCPROing.
14361
14362         * menubar-x.c:
14363         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14364         * menubar-x.c (menu_item_descriptor_to_widget_value):
14365         * menubar-x.c (restore_in_menu_callback):
14366         * menubar-x.c (x_popup_menu):
14367         * menubar-x.c (menu_move_up):
14368         * menubar-x.c (menu_move_down):
14369         * menubar-x.c (menu_move_left):
14370         * menubar-x.c (menu_move_right):
14371         * menubar-x.c (menu_select_item):
14372         * menubar-x.c (command_builder_operate_menu_accelerator):
14373         * menubar-x.c (menu_accelerator_junk_on_error):
14374         * menubar-x.c (command_builder_find_menu_accelerator):
14375         * menubar-x.c (Faccelerate_menu):
14376         * menubar.h:
14377         Moved a whole bunch of code here that was previously in
14378         event-stream.c as described above.  There is also code connected
14379         to the new standard of adding an accelerator to the beginning of
14380         menu items that don't have one as described above and below.
14381
14382         * menubar.c:
14383         * menubar.c (menu_parse_submenu_keywords):
14384         * menubar.c (Fmenu_find_real_submenu):
14385         * menubar.c (Fnormalize_menu_item_name):
14386         * menubar.c (syms_of_menubar):
14387         * menubar.c (vars_of_menubar):
14388         * menubar.c (complex_vars_of_menubar):
14389
14390         a) Cleaned up a bunch of documentation and improved it.
14391
14392         b) XEmacs now automatically adds an accelerator onto the beginning
14393         of any menu items that don't have one.  I did this because there
14394         will inevitably be some menu items on the main menubar that don't
14395         have accelerators on them because the package that adds that
14396         particular menu item hasn't yet been fixed up to have accelerators
14397         in them and it looked rather strange to have some items with and
14398         some items without accelerators, especially since even in items
14399         without accelerators, you can, at least under windows, still
14400         access the item through an accelerator corresponding to the first
14401         character in the item's name.  If people don't like this behavior,
14402         I can add a variable to turn it off optionally, but I'm not sure
14403         this is a good idea because we really do need to have accelerators
14404         on all of the menu items, and if a package doesn't like the
14405         accelerators being put on the first character, then it should put
14406         the accelerators where they belong.
14407
14408         c) I made a behavior change, which is that the descriptor that
14409         specifies the text of the menu item, which formerly was just a
14410         string, can now also be an evaluated expression.  This makes this
14411         descriptor parallel with all of the others, which could also be
14412         evaluated expressions.  This also obviates the need for the
14413         keyword :label, which was previously listed in the documentation
14414         as unimplemented, and which was for the same purpose.
14415
14416         d) GCPROing.
14417
14418         * ntproc.c:
14419         * ntproc.c (new_child):
14420         * ntproc.c (sys_spawnve):
14421         * ntproc.c (find_child_console):
14422         * ntproc.c (sys_kill):
14423         Fixed compile warnings.  By the way, this file should really go
14424         away entirely, and this will happen as soon as Kirill makes his
14425         final round of process cleanups, which affect the function
14426         call-process.
14427
14428         * process-nt.c:
14429         * process-nt.c (struct nt_process_data):
14430         * process-nt.c (find_process_from_pid):
14431         * process-nt.c (send_signal_the_nt_way):
14432         * process-nt.c (enable_child_signals):
14433         * process-nt.c (find_child_console):
14434         * process-nt.c (send_signal_the_95_way):
14435         * process-nt.c (nt_finalize_process_data):
14436         * process-nt.c (ensure_console_window_exists):
14437         * process-nt.c (nt_create_process):
14438         * process-nt.c (nt_kill_child_process):
14439         * process-nt.c (nt_kill_process_by_pid):
14440         * process-nt.c (nt_open_network_stream):
14441         * process-nt.c (vars_of_process_nt):
14442         Copied over code from Emacs 20.5 to correctly send signals to sub-
14443         processes under Windows 95.  Also added code to automatically
14444         create and hide console window when a sub-process is created under
14445         Windows 95, which obviates the need for the separate runemacs.exe
14446         executable, and finally implemented some variables that were
14447         implemented in Emacs 20.5, but previously not in XEmacs.  These
14448         include mswindows- start-process-share-console and
14449         mswindows-start-process-inherit-error-mode. (Both of these only
14450         apply to Windows 95.)
14451
14452         * regex.c (regex_compile): Fixed a compile warning.
14453
14454         * select-msw.c:
14455         * select-msw.c (mswindows_own_selection):
14456         * select-msw.c (mswindows_get_foreign_selection):
14457         * select-msw.c (mswindows_disown_selection):
14458         * select-msw.c (console_type_create_select_mswindows):
14459         * select-msw.c (syms_of_select_mswindows):
14460         Cleaned up the file and implemented the device method
14461         selection_exists_p, which had accidentally been left out.  Also
14462         removed four lisp functions that were remnants from before the
14463         time when the selection code was properly device abstracted.
14464         These functions are no longer needed because there are generic
14465         equivalents, and because they were added recently and don't exist
14466         in FSF Emacs, I don't think there's any problem with just deleting
14467         them.
14468
14469         * sysdep.c:
14470         * sysdep.c (sys_subshell):
14471         Fixed a compile warning, although in this case there's probably
14472         something wrong with this code, and it ought to be looked into
14473         more thoroughly by somebody who understands it.
14474
14475         * window.c:
14476         * window.c (Fwindow_text_area_height):
14477         * window.c (Fwindow_width):
14478         * window.c (Fwindow_full_width):
14479         * window.c (Fwindow_pixel_width):
14480         * window.c (debug_print_window):
14481         * window.c (syms_of_window):
14482         Added functions window-text-area-height and window-full-width,
14483         which are functions for returning various width and height
14484         characteristics of a window. (One of these functions is necessary
14485         for making the file dialog box work correctly, and the other one
14486         was added for completeness.)  Also added a table to the
14487         documentation for window-height which describes the entire scheme
14488         for accessing width and height characteristics of a window.
14489
14490 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14491
14492         * nt.c (fstat): Added a comment for another problem with
14493         non-encapsulated [f]stat(), reported by Adrian Aichner
14494         <aichner@ecf.teradyne.com>.
14495
14496 2000-03-11  Andy Piper  <andy@xemacs.org>
14497
14498         * window.c (make_dummy_parent): initialize subwindow instance
14499         cache.
14500         (Fset_window_configuration): zero extent_modiff.
14501
14502 2000-03-10  Andy Piper  <andy@xemacs.org>
14503
14504         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14505         more changes can be triggered.
14506         (Fredisplay_frame): ditto.
14507         (Fredraw_device): ditto.
14508         (Fredisplay_device): ditto.
14509         (redisplay_frame): make non-static.
14510         (redisplay_frame): call update_frame_gutter_geometry outside of
14511         display proper.
14512
14513         * gutter.h: declare update_frame_gutter_geometry.
14514
14515         * redisplay.h: declare redisplay_frame.
14516
14517         * gutter.c (update_frame_gutter_geometry): move geometry changes
14518         in update_frame_gutters here. Geometry changes can only occur
14519         outside of redisplay.
14520         (update_frame_gutters): remove geometry change code.
14521         (Fredisplay_gutter_area): make sure that we are in display when we
14522         update and that we have flushed any size changes.
14523
14524 2000-03-11  Andy Piper  <andy@xemacs.org>
14525
14526         * alloc.c (pdump_dump_data): remove i & count shadows.
14527
14528 2000-02-27  Mike Alexander  <mta@arbortext.com>
14529
14530         * sysdep.h: Declare pdump_read_file
14531
14532         * sysdep.c (pdump_read_file): New function
14533
14534         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14535         dump data
14536
14537 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14538
14539         * lrecord.h: add `lrecord_type_pgsetenv'.
14540
14541 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14542
14543         * symsinit.h: declare (vars|syms)_of* functions.
14544         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14545
14546 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14547
14548         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14549
14550         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14551         GCCs.
14552
14553         * emacs.c (main_1): Call postgres initialization code.
14554
14555         * postgresql.h: New file.  PostgreSQL RDBMS support.
14556         * postgresql.c: New file.
14557
14558 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14559
14560         * redisplay-output.c (redisplay_output_display_block): Disable
14561         redundant code.
14562
14563 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14564
14565         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14566         (Fcanna_henkan_next): Ditto.
14567         (Fcanna_bunsetu_henkou): Ditto.
14568         (Fcanna_henkan_kakutei): Ditto.
14569         (Fcanna_henkan_end): Ditto.
14570         (Fcanna_henkan_quit): Ditto.
14571         (Fcanna_henkan_next): Set retun value correctly.
14572         (c2mu): Use unsigned char instead of signed char.
14573
14574 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14575
14576         * emacs.c (main_1): Always call syms_of_gui.
14577         * inline.c: include gui.h
14578
14579 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14580
14581         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14582         converted to Lisp_Object.
14583         (Qtop_bottom): New variable.
14584         (syms_of_redisplay): Initialize it.
14585         * redisplay.h (Vvisible_bell): Ditto.
14586         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14587         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14588         only flash top and bottom.
14589
14590 2000-03-08  Andy Piper  <andy@xemacs.org>
14591
14592         * buffer.c (Frename_buffer): record new buffer name the right way.
14593
14594 2000-03-08  Andy Piper  <andy@xemacs.org>
14595
14596         * glyphs.c (update_subwindow): increase hash depth so that widget
14597         items get picked up properly.
14598
14599         * redisplay-output.c (compare_runes): increase hash depth so that
14600         widget items get picked up properly.
14601
14602 2000-03-08  Andy Piper  <andy@xemacs.org>
14603
14604         * gutter.c (output_gutter): add some debug.
14605
14606         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14607         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14608         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14609
14610         * redisplay-output.c (compare_runes): use display_hash to
14611         determine if glyphs really are not the same.
14612
14613         * glyphs.c (update_subwindow): check display_hash to see if
14614         anything really needs to be updated. If not then do
14615         nothing. Record the display_hash after updating.
14616         (image_instance_equal): compare the image_instance face also.
14617
14618 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14619
14620         * redisplay.h: Fix comment style.
14621
14622 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14623
14624         * consle-msw.h (struct mswindows_frame):
14625         Added new member paint_pending to indicate whether a WM_PAINT
14626         magic event has been queued for this frame.
14627
14628         * event-msw.c (mswindows_drain_windows_queue):
14629         Don't queue a WM_PAINT magic event if one is already queued.
14630         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14631
14632         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14633
14634 2000-03-07  Didier Verna  <didier@xemacs.org>
14635
14636         * dired.c: #include `regex.h' after `sysfile.h'.
14637
14638 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14639
14640         * sound.c (init_nas_sound): Fix compiler warning.
14641
14642         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14643         (FREE_STRUCT_P):
14644         (MARK_STRUCT_AS_FREE):
14645         (MARK_STRUCT_AS_NOT_FREE):
14646         Make `gcc -fstrict-aliasing' work properly.
14647
14648 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14649
14650         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14651         (mswindows_delete_device): Call CoUnnitialize().
14652
14653         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14654
14655 2000-02-25    <CraigL@DyCon.com>
14656
14657         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14658         <errno.h>.
14659
14660         * sysdep.c: This extern declaration for environ prevents MinGW
14661         from finding the variable in CRTDLL.DLL.
14662
14663         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14664         windows headers.
14665         (SHGFI_EXETYPE): ..
14666         (WM_MOUSEWHEEL): ..
14667         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14668         definitions.
14669         (MMRESULT): Removed, now defined in cygwin's windows headers.
14670         (TIMECAPS): ..
14671         (uid_t,gid_t,pid_t,ssize_t): ..
14672         (_timeb): Removed, MinGW defines both _timeb and timeb.
14673         (HAVE_H_ERRNO): Added.
14674         (HAVE_TZNAME): Added, configure is not detecting this.
14675
14676 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14677
14678         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14679         * syntax.c (syntax_match): Use it.
14680
14681         * cmds.c: Import auto-fill-chars from FSF Emacs.
14682         (Vauto_fill_chars): New variables.
14683         (internal_self_insert): Check Vauto_fill_chars.
14684         (vars_of_cmds):
14685         Declare auto-fill-chars as a Lisp variable and initialize it.
14686
14687 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14688
14689         * fileio.c (Fmake_symbolic_link):
14690         (Ffile_symlink_p):
14691         Run handlers even if local machine doesn't have symlinks.
14692
14693 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14694
14695         * event-msw.c (mswindows_drain_windows_queue):
14696         Don't generate paint magic events for non-XEmacs frames.
14697
14698 2000-03-05  Andy Piper  <andy@xemacs.org>
14699
14700         * redisplay.c (redisplay_frame): generate_displayable_area and
14701         friends assumes that we are not in GC, we therefore have to make
14702         sure that this doesn't happen.
14703
14704         * gutter.c (calculate_gutter_size): generate_displayable_area
14705         assumes that we are not in GC, we therefore have to make sure that
14706         this doesn't happen.
14707
14708 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14709
14710         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14711
14712 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14713
14714         * redisplay.c (regenerate_window): Make sure we set a sane value
14715         for end_pos even if we jump out of the loop.
14716         (regenerate_window): Answer Ben's question :-).
14717         (start_end_of_last_line): Add may_error argument.
14718         (start_of_last_line):
14719         (end_of_last_line): Pass may_error = 0.
14720         (end_of_last_line_may_error): New function.
14721         (pixel_to_glyph_translation): Use it, so we don't crash in
14722         event_to_glyph.
14723
14724 2000-03-04  Andy Piper  <andy@xemacs.org>
14725
14726         * window.h (struct window): add gutter_extent_modiff.
14727
14728         * window.c (allocate_window): zero out gutter_extent_modiff.
14729
14730         * redisplay.h: declare sync_display_line_structs.
14731
14732         * redisplay.c (add_glyph_rune): add a better comment.
14733
14734         * redisplay-output.c (sync_display_line_structs): made non-static.
14735         (compare_runes): remove unneccesary glyph cachel access.
14736
14737         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14738
14739         * gutter.c (output_gutter): don't output the gutter if extent
14740         changes only involve extents in buffers. use 4 sets of display
14741         lines.
14742         (gutter_extent_signal_changed_region_maybe): new function. Mark
14743         extents in gutters as changed.
14744         (update_frame_gutters): use 4 sets of display lines.
14745         (reset_gutter_display_lines): ditto.
14746         (free_frame_gutters): ditto.
14747         (redraw_exposed_gutter): force output of gutters.
14748
14749         * frame.h (struct frame): add 4 sets of gutter display lines.
14750
14751         * extents.c: (extent_changed_for_redisplay): signal changes to
14752         extents in strings in the gutter as well as extents in buffers.
14753
14754 2000-03-02  Andy Piper  <andy@xemacs.org>
14755
14756         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14757
14758         * frame.c (Fmake_frame): make sure the gutters get initialized
14759         after the frame is visible.
14760         (set_frame_selected_window): re-arrange compilation macros a
14761         little.
14762         (change_frame_size_1): mark gutters changed.
14763
14764         * device.c (Fset_device_class): mark gutters changed.
14765
14766 2000-03-01  Andy Piper  <andy@xemacs.org>
14767
14768         * window.c (window_top_frame_gutter_height): deleted.
14769         (window_bottom_frame_gutter_height): ditto.
14770         (window_left_frame_gutter_height): ditto.
14771         (window_right_frame_gutter_height): ditto.
14772         (window_top_gutter_height): don't use them.
14773         (window_bottom_gutter_height): ditto.
14774         (window_left_gutter_width): ditto.
14775         (window_right_gutter_width): ditto.
14776         (Fsplit_window): ditto.
14777         (Fwindow_pixel_edges): don't use border dimensions here.
14778
14779         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14780         (update_scrollbar_instance): ditto.
14781
14782         * redisplay.c (generate_modeline): don't take gutters into account.
14783         (generate_modeline): ditto.
14784         (redisplay_frame): small gutter display optimization.
14785
14786         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14787
14788         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14789         gutters into account.
14790
14791         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14792         for window position and type.
14793
14794         * gutter.c (get_gutter_coords): fix for frame gutters.
14795         (update_frame_gutters): update frame geometry if the gutters have
14796         changed.
14797         (init_frame_gutters): record current gutter geometries.
14798
14799         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14800         var.
14801         (mswindows_widget_instantiate): ditto.
14802
14803         * frame.h (struct frame): add current_gutter_bounds.
14804
14805         * frame.c (change_frame_size_1): position window and minibuffer
14806         appropriately taking into account the frame gutters.
14807
14808         * frame-x.c: (x_initialize_frame_size): take into account the
14809         frame gutters.
14810
14811 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14812
14813         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14814
14815 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14816
14817         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14818
14819 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14820
14821         * file-coding.c (reset_decoding_stream): Clear previous
14822         detection state when autodetect.
14823
14824 2000-02-29  Didier Verna  <didier@xemacs.org>
14825
14826         * extents.c (set_extent_glyph_1): don't require extents to be
14827         attached.
14828
14829 2000-02-27  Andy Piper  <andy@xemacs.org>
14830
14831         * gutter.c (Fset_default_gutter_position): don't default left and
14832         right gutter visibility to t.
14833         (Fset_default_gutter_position): run
14834         default-gutter-position-changed-hook.
14835         (syms_of_gutter): add default-gutter-position-changed-hook.
14836
14837 2000-02-26  Andy Piper  <andy@xemacs.org>
14838
14839         * specifier.c (Fmake_specifier): add gutter references.
14840
14841         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14842
14843         * lisp.h: declare Fvalid_plist_p.
14844
14845         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14846         as changed.
14847         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14848         well as its visibility so that it gets reconstructed.
14849         (construct_window_gutter_spec): new function. Construct a string
14850         to be displayed in the gutter from a plist of strings. Take care
14851         to only use elements that are declared as visible.
14852         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14853         WINDOW_GUTTER.
14854         (gutter_validate): allow plists of strings in the specifier.
14855         (gutter_specs_changed): construct the real_gutter from the gutter
14856         specs using construct_window_gutter_spec.
14857         (gutter_visible_validate): gutter-visible is a new specifier type.
14858         (Fgutter_visible_specifier_p): new function for the new specifier.
14859         (syms_of_gutter): declare gutter-visible and
14860         Fgutter_visible_specifier_p.
14861         (specifier_type_create_gutter): intitalize new gutter-visible
14862         specifier.
14863         (reinit_specifier_type_create_gutter): ditto.
14864         (specifier_vars_of_gutter): use new specifier type for gutter
14865         visibility.
14866         (init_frame_gutters): construct real_gutter correctly.
14867         (Fgutter_specifier_p): beef up documentation.
14868         (Fgutter_size_specifier_p): ditto.
14869
14870         * winslots.h: add real_gutter slots.
14871
14872 2000-02-25  Andy Piper  <andy@xemacs.org>
14873
14874         * device-msw.c: Be kind to older cygwin versions. From Raymond
14875         Toy <toy@rtp.ericsson.se>.
14876
14877         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14878         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14879
14880 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14881
14882         * elhash.c (MARK_OBJ): Practice macro hygiene.
14883
14884 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14885
14886         * miscplay.c: s/__inline__/inline/g;
14887         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14888         (get_device_compdc): INLINE ==> static inline
14889         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14890         find -name '*.h' | \
14891         xargs global-replace \
14892         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14893
14894 2000-02-25  Andy Piper  <andy@xemacs.org>
14895
14896         * window.c (window_top_frame_gutter_height): new function.
14897         (window_top_window_gutter_height): ditto.
14898         (window_top_gutter_height): use them.
14899         (window_bottom_frame_gutter_height): new function.
14900         (window_bottom_window_gutter_height): ditto.
14901         (window_bottom_gutter_height): use them.
14902         (window_left_window_gutter_width): new function.
14903         (window_left_frame_gutter_width): ditto.
14904         (window_left_gutter_width): use them.
14905         (window_right_window_gutter_width): new function.
14906         (window_right_frame_gutter_width): ditto.
14907         (window_right_gutter_width): use them.
14908         (window_pixel_height): new function. calulate window pixel height
14909         with frame gutter involvement.
14910         (Fsplit_window): calculate new sizes taking frame gutters into
14911         account.
14912         (window_char_height_to_pixel_height): don't include frame gutters.
14913         (window_char_height): use window_pixel_height.
14914         (window_pixheight): rename from window_pixel_height.
14915         (change_window_height): use it.
14916         (window_pixel_height_to_char_height): don't include frame gutters.
14917         (window_char_width_to_pixel_width): ditto.
14918
14919 2000-02-25  Andy Piper  <andy@xemacs.org>
14920
14921         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14922         if it is.
14923
14924 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14925
14926         * alloc.c (staticpro):
14927         (staticpro_nodump):
14928         (dumpstruct):
14929         (dumpopaque):
14930         (pdump_wire):
14931         (pdump_wire_list):
14932         (compact_string_chars):
14933         (pdump_dump_wired):
14934         Convert:  if (foo) abort();  ==>  assert (! foo);
14935
14936         * eldap.c (Fldap_search_basic):
14937         (Fldap_add):
14938         (Fldap_modify):
14939         (Fldap_delete):
14940         Fix compiler warnings, and possible crashes if (random) return
14941         value were to be used.
14942
14943 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14944
14945         * device-msw.c: Workaround ResetDC failure.
14946
14947         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14948         applying a devmode.
14949
14950         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14951         (mswindows_text_width): Do not start printer page.
14952
14953         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14954
14955         * glyphs-msw.c: Added image methods to msprinter console and
14956         msprinter-specific image instantiation.
14957
14958 2000-02-20  Mike Alexander  <mta@arbortext.com>
14959
14960         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14961         to avoid crashes when selection-sets-clipboard is on
14962         (mswindows_own_selection): ditto
14963
14964 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14965
14966         * glyphs-msw.c:
14967         * redisplay-msw.c (get_frame_dc):
14968         (get_frame_compdc):
14969         * console-msw.h:
14970         * device-msw.c (mswindows_init_device):
14971         (mswindows_delete_device):
14972         (msprinter_init_device):
14973         (msprinter_delete_device):
14974         * frame-msw.c (mswindows_init_frame_1):
14975         (mswindows_delete_frame):
14976         (msprinter_init_frame_3):
14977         (msprinter_delete_frame): Move compatible DC to device object from
14978         frame object, for both mswindows and msprinter. Only one at a time
14979         is needed, it is a real waste to have one per frame!
14980
14981 2000-02-23  Andy Piper  <andy@xemacs.org>
14982
14983         * glyphs.c: add dynamic width and height elements.
14984         (image_instance_equal): ditto.
14985
14986         * glyphs-widget.c (widget_query_geometry): calculate width and
14987         height dynamically if required.
14988         (initialize_widget_image_instance): initialize dynamic dimensions.
14989         (widget_instantiate): pick-up dynamic dimensions.
14990
14991         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14992         dynamic determination. Add appropriate macros.
14993
14994         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14995         dimensions safe.
14996         (WINDOW_GUTTER_SIZE): ditto.
14997         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14998
14999         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15000         inline.
15001         (get_frame_dc): ditto.
15002
15003         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15004         here.
15005
15006 2000-02-23  Martin Buchholz <martin@xemacs.org>
15007
15008         * XEmacs 21.2.31 is released.
15009
15010 2000-02-22  Ben Wing <ben@xemacs.org>
15011
15012         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15013
15014 2000-02-22  Andy Piper  <andy@xemacs.org>
15015
15016         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15017
15018 2000-02-21  Mike Sperber <mike@xemacs.org>
15019
15020         * .dbxrc:
15021         * .gdbinit:
15022         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15023         variables.
15024
15025 2000-02-21  Mike Sperber <mike@xemacs.org>
15026
15027         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15028
15029 2000-02-21  Martin Buchholz <martin@xemacs.org>
15030
15031         * XEmacs 21.2.30 is released.
15032
15033 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15034
15035         Performance hacking.
15036         * *.c (syms_of_*):
15037         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15038         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15039         * emacs.c (main_1):
15040         * lisp.h (DEFUN):
15041         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15042         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15043         * symeval.h (DEFVAR_SYMVAL_FWD):
15044         * symbols.c (guts_of_unbound_marker):
15045         Make all c_readonly objects also lisp_readonly and marked for life.
15046         * lrecord.h (struct lrecord_implementation):
15047         Document flags better.
15048         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15049         * lrecord.h (DECLARE_LRECORD):
15050         * lrecord.h (XSETRECORD):
15051         * lrecord.h (RECORDP):
15052         * lrecord.h (RECORD_TYPEP):
15053         * lrecord.h (RECORD_MARKER): New.
15054         * lrecord.h (error_check_*):
15055         * lrecord.h (CONCHECK_NONRECORD):
15056         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15057         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15058         * lrecord.h (set_lheader_implementation):
15059         * lrecord.h (enum lrecord_type): New.
15060         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15061         * alloc.c (disksave_object_finalization_1):
15062         * alloc.c (mark_object):
15063         * alloc.c (lrecord_type_index):
15064         * alloc.c (tick_lcrecord_stats):
15065         * alloc.c (Fgarbage_collect):
15066         * alloc.c (init_alloc_once_early):
15067         * alloc.c (pdump_load):
15068         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15069         * alloc.c (lrecord_type_index): Delete.
15070         Make lisp object type indexes be constant.
15071           Makes (byte-compile) 5% faster.
15072         Put all marker functions into their own array.
15073           Makes (garbage-collect) 5% faster.
15074         Optimize SYMBOL_VALUE_MAGIC_P.
15075           Makes (byte-compile) 2-3% faster.
15076         * config.h.in (gc_checking_assert): New.
15077         * alloc.c: Use gc_checking_assert().
15078         * .dbxrc: Make compatible with new object type implementation.
15079         * .gdbinit: Make compatible with new object type implementation.
15080         * alloc.c: Delete all symbols defined only for debugging, such as
15081         Lisp_Type_Vector and lrecord_charset.
15082
15083 2000-02-21  Andy Piper  <andy@xemacs.org>
15084
15085         * gui-msw.c (Fmswindows_shell_execute): fix file location
15086         problems.
15087
15088         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15089         unshowing so that set_window_buffer doesn't undo
15090         kill_buffer_hook's hard work.
15091
15092         * glyphs-widget.c (tab_control_query_geometry): don't count the
15093         first item when calculating geometry.
15094
15095         * glyphs.c (map_subwindow): remove redundant code.
15096         (update_frame_subwindows): be more circumspect about when to
15097         update subwindows.
15098
15099         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15100         when items haven't changed. Update faces if faces have changed as
15101         well as just the widget face.
15102         (x_tab_control_update): Update faces if faces have changed as well
15103         as just the widget face.
15104
15105 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15106
15107         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15108         registration.
15109         (build_syscolor_string): Use mswindows_color_to_string to try to
15110         get a named color.
15111         (mswindows_device_system_metrics): Reverse the foreground and
15112         background colors so that they match the documentation.
15113
15114         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15115         they match the default Windows palette.
15116         (mswindows_color_to_string): New function.
15117
15118 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15119
15120         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15121
15122 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15123
15124         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15125         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15126
15127         * symbols.c (init_symbols_once_early): Removed obsolete
15128         DATA_SEG_BITS related kludge.
15129         (defvar_magic): Ditto.
15130
15131         * malloc.c: Removed obsolete DATA_SEG_BITS
15132         * ralloc.c: Ditto.
15133         * mem-limits.h: Ditto.
15134
15135         * Makefile.in.in: Removed obsolete HAVE_SHM
15136         * emacs.c: Ditto.
15137
15138 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15139
15140         *  device-msw.c (mswindows_delete_device): Free DDE string
15141         handles.
15142
15143 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15144
15145         * keymap.c (get_keyelt):
15146         * unexnt.c (unexec):
15147         * vm-limit.c (memory_warnings):
15148         * ntheap.c (recreate_heap):
15149         * ntheap.h (UNINIT_PTR):
15150         * select-msw.c (Fmswindows_get_clipboard):
15151         (Fmswindows_set_clipboard):
15152         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15153         * objects-msw.c:
15154         * menubar-msw.c (displayable_menu_item):
15155         * glyphs-msw.c:
15156         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15157         * sysdep.c (sys_subshell):
15158         * process-nt.c (nt_create_process):
15159         * nt.c (normalize_filename):
15160         (dostounix_filename):
15161         (unixtodos_filename):
15162         * ntproc.c (win32_executable_type):
15163         * ntplay.c (play_sound_data_1):
15164         (play_sound_file):
15165         * editfns.c (get_home_directory):
15166         * event-msw.c (struct winsock_stream):
15167         (mswindows_dde_callback):
15168         * device-msw.c (msprinter_init_device):
15169         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15170
15171         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15172         mswindows_clear_toolbar were swapped!
15173
15174         * objects-msw.c:(colormap_t):
15175         (fontmap_t):
15176         * emacs.c (struct standard_args): Fixed const jumble.
15177
15178         * glyphs-widget.c (update_widget): Fixed comparison notation.
15179
15180         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15181
15182         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15183         __declspec(noreturn) syntax.
15184
15185 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15186
15187         * eldap.c (Fldap_open):
15188         (Fldap_search_basic):
15189         (Fldap_add):
15190         (Fldap_modify):
15191         Use new coding system conversion macros.
15192
15193 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15194
15195         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15196
15197 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15198
15199         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15200         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15201
15202         * eldap.c (Qadd, Qreplace): New constant symbols
15203         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15204         interruptions by XEmacs signals
15205         Remove unnecessary calls to slow_down_interrupts and
15206         speed_up_interrupts
15207         (Fldap_search_basic): Renamed from Fldap_search_internal
15208         Added new optional parameter VERBOSE that triggers the
15209         display of progress messages
15210         Remove unnecessary calls to slow_down_interrupts and
15211         speed_up_interrupts
15212         LDAP result code analysis rewritten
15213         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15214         (syms_of_eldap): Define the new symbols and functions
15215
15216
15217 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15218
15219         * realpath.c: Determine PATH_MAX maximally portably.
15220
15221         * insdel.c (bytecount_to_charcount): Optimize.
15222         The function used to be optimized for entirely ASCII sequences.
15223         Now it is optimized for successive characters from the same
15224         charset.  This also wins big for _mostly_ ASCII sequences.
15225
15226         * fileio.c (Ffile_truename): convert return from realpath() using
15227         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15228         - Rewrite GCPROing slightly.
15229
15230         * sysdep.c (sys_open): Do filename conversion, like all other
15231         sys_* functions.  Fixes bug:
15232         (let ((file-name-coding-system 'iso-8859-2))
15233            (write-region x y latin2-name))
15234         ==> writes filename using internal encoding.
15235
15236 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15237
15238         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15239         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15240         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15241         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15242         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15243         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15244         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15245         (CONST_IF_NOT_DEBUG): Delete.
15246         * alloc.c (this_one_is_unmarkable): Delete.
15247         (mark_object): Don't check for this_one_is_unmarkable. Use the
15248         c_readonly flag instead.
15249         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15250
15251 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15252
15253         * event-msw.c (mswindows_drain_windows_queue):
15254         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15255         away redundant repaint events.
15256
15257 2000-02-17  Andy Piper  <andy@xemacs.org>
15258
15259         * redisplay.h: declare mark_redisplay_structs.
15260
15261         * redisplay.c (redisplay_window):
15262         (redisplay_frame): don't check subwindows_state_changed.
15263         (mark_redisplay): mark gutters here.
15264
15265         * glyphs.c: (instantiate_image_instantiator): always layout if we
15266         haven't done so already.
15267         (allocate_image_instance): don't mark as dirty.
15268         (update_subwindow): bind inhibit_quit.
15269
15270         * gutter.c (mark_gutters): new function.
15271
15272         * glyphs-x.c (x_update_widget): Always resize to get round a
15273         widget bug.
15274
15275         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15276         breaking absolutely everything.
15277
15278         * gutter.h: declare mark_gutters.
15279
15280 2000-02-16  Martin Buchholz <martin@xemacs.org>
15281
15282         * XEmacs 21.2.29 is released.
15283
15284 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15285
15286         * fns.c (size_bit_vector): Fix computation of the size.
15287
15288 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15289
15290         * *.[ch]: Change CONST to const globally.
15291         find -name '*.[ch]' | \
15292         xargs global-replace \
15293         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15294         - Remove vestigial references to CONST_IS_LOSING
15295
15296 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15297
15298         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15299         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15300         events instead of dispatching them directly.
15301         (mswindows_handle_paint): New function to do repainting.
15302         (mswindows_wnd_proc):
15303         (emacs_mswindows_handle_magic_event): Call above function.
15304
15305 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15306
15307         * objects-msw.c (mswindows_create_font_variant): Return the new
15308         font handle.
15309         (initialize_font_instance): Get font metrics from the underlined
15310         variant of the font to cope with the case where the underlined
15311         font has a bigger descent.
15312
15313 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15314
15315         * gui.c (gui_item_accelerator): Return the first underlined
15316         character in item name.
15317
15318 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15319
15320         * lisp.h: Added Qprinter.
15321
15322         * general.c (syms_of_general): Initialized it.
15323
15324         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15325         (get_frame_dc):
15326         (get_frame_compdc): Made inline.
15327
15328         * console.h (struct console_methods): Added eject_page method.
15329
15330         * frame.h: Added FRAME_DISPLAY_P and friends.
15331         Aligned backslahes in many macros in more readable fashion.
15332         Added page_number to struct frame, and an accessor macro
15333         for it.
15334
15335         * defice.h: Added DEVICE_DISPLAY_P and friends.
15336
15337         * device.c (Fdevice_printer_p): Used these.
15338
15339         * frame.c (allocate_frame_core): Initialize page number.
15340         (Fprint_job_page_number):
15341         (Fprint_job_eject_page): Implemented.
15342
15343         * frame-msw.c (msprinter_eject_page): Added method.
15344         (msprinter_start_page): Added.
15345
15346         * window.c (Fwindow_truncated_p): Fixed docstring.
15347         (Fwindow_last_line_visible_height): Implemented.
15348
15349 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15350
15351         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15352
15353 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15354
15355         * syntax.c (scan_words): Always advance at least one character.
15356
15357 2000-02-13  Andy Piper  <andy@xemacs.org>
15358
15359         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15360         to make sure the glyph is in the cachels.
15361
15362         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15363         global image instance flag.
15364         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15365         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15366
15367         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15368         (Fset_image_instance_property): mark layout as changed.
15369         (invalidate_glyph_geometry_maybe): mark layout as changed.
15370         (glyph_width): use new NEEDS_LAYOUT macro.
15371         (glyph_ascent): ditto.
15372         (glyph_descent): ditto.
15373         (glyph_height): ditto.
15374         (image_instance_layout): mark layout as clean after laying out.
15375         (update_subwindow): don't mark layout as clean here.
15376
15377         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15378         should no longer be needed.
15379
15380         * glyphs-x.c (x_update_widget): sanitize asserts.
15381         (x_finalize_image_instance): sanitize assignment to widgets.
15382
15383         * glyphs-widget.c (widget_instantiate): don't need to clear the
15384         layout flag here.
15385
15386 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15387
15388         * sysdep.c (getcwd): Use standard prototype.
15389         * sysdep.h (getcwd): Use standard prototype.
15390
15391         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15392         (sequence, start, end).
15393         Remove redundant type checking.
15394         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15395         view of `caller-protects') to avoid a crash where the real fix was
15396         found elsewhere.
15397
15398 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15399
15400         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15401
15402         * s/sol2.h: Remove feature macro initialization.
15403
15404         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15405         (vector_hash): New.  Code from internal_hash.
15406         * lrecord.h:
15407         Fix up allocation subsystem comments.
15408
15409         * config.h.in: Add __EXTENSIONS__ for Solaris.
15410
15411         * systime.h (EMACS_GETTIMEOFDAY): New.
15412         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15413         Remove Solaris-specific code.
15414         Use void* for the (ignored) second arg for gettimeofday().
15415
15416         * elhash.c (hash_table_hash): Implement it, finally.
15417         * elhash.c:  Use hashcode_t.
15418
15419         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15420         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15421
15422         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15423         * fns.c (size_bit_vector):
15424         * alloc.c (size_vector):
15425         (make_vector_internal):
15426         (make_bit_vector_internal):
15427         (sweep_bit_vectors_1):
15428         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15429
15430 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15431
15432         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15433         Include strings.h to avoid warnings for bzero and strcasecmp.
15434
15435 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15436
15437         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15438         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15439
15440         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15441         sequence.
15442
15443 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15444
15445         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15446         use a value field instead.
15447         (symbol_value_forward_forward): Use value field.
15448         (DEFVAR_SYMVAL_FWD): Use value field.
15449         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15450         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15451         (DEFVAR_CONST_INT): Ditto.
15452         (DEFVAR_BOOL): Ditto.
15453         (DEFVAR_CONST_BOOL): Ditto.
15454         (DEFVAR_INT_MAGIC): Ditto.
15455         (DEFVAR_BOOL_MAGIC): Ditto.
15456
15457         * symbols.c (guts_of_unbound_marker): Use value field.
15458         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15459         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15460
15461         * lisp.h: Declare dumpopaque and noninteractive1.
15462
15463         * alloc.c (dumpopaque): Added.
15464         (pdump_dump_opaquevec): Added.
15465         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15466         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15467         noninteractive.
15468
15469 2000-02-10  Andy Piper  <andy@xemacs.org>
15470
15471         * glyphs.c (image_instance_layout): if the size changes, mark it
15472         as such.
15473
15474         * redisplay-output.c (redisplay_output_layout): Update the
15475         subwindow here.
15476         (redisplay_output_subwindow): ditto.
15477
15478         * glyphs.c (update_subwindow): make sure we reset flags for
15479         layouts as well as everything else.
15480
15481         * glyphs-widget.c (layout_layout): don't need to set the instances
15482         dimensions here.
15483
15484 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15485
15486         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15487         not HAVE_DLOPEN, which is a lower-level thing.
15488
15489         * .cvsignore: Ignore gmon.out
15490
15491 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15492
15493         * .cvsignore: Ignore portable dumper xemacs.dmp file
15494
15495 2000-02-09  Andy Piper  <andy@xemacs.org>
15496
15497         * redisplay-output.c (redisplay_output_layout): be more clever
15498         about when we output based on the changed flags.
15499
15500         * glyphs.h (struct image_instantiator_methods): add update_method.
15501         (struct Lisp_Image_Instance): add changed flags. Declare new
15502         macros for manipulating them.
15503
15504         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15505         (image_instance_parent_glyph): find an image_instance's parent
15506         glyph or image_instance.
15507         (image_instance_layout): mark the size as changed.
15508         (set_image_instance_dirty_p): new function. mark an image
15509         instance, plus all of its parents, as dirty.
15510         (Fset_image_instance_property): use it.
15511         (Fglyph_animated_timeout_handler): use it.
15512         (update_subwindow): call update_widget and device methods for
15513         update_subwindow. Mark all changed flags as clean.
15514         (Fresize_subwindow): mark size as changed.
15515
15516         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15517         failures.
15518         (x_update_subwindow): only resize subwindows here.
15519         (x_update_widget): new function. Update all changed properties of
15520         a widget.
15521         (x_resize_subwindow): deleted.
15522         (x_widget_set_property): deleted.
15523         (x_progress_gauge_set_property): deleted.
15524         (x_progress_gauge_update): new function. Implement recorded
15525         changes.
15526         (x_tab_control_update): ditto.
15527         (x_tab_control_set_property): deleted.
15528         (console_type_create_glyphs_x): declare new functions.
15529         (image_instantiator_format_create_glyphs_x): ditto.
15530
15531         * glyphs-widget.c (widget_set_property): mark text changed.
15532         (update_widget): new function. Update properties of a widget.
15533         (widget_instantiate): for layouts make sure we set their
15534         children's parent correctly.
15535         (tab_control_set_property): new function. Record changes that will
15536         take place under redisplay's control.
15537         (progress_gauge_set_property): ditto.
15538         (image_instantiator_progress_guage): declare new functions.
15539         (image_instantiator_tab_control): ditto.
15540
15541         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15542         now.
15543         (mswindows_update_widget): new function. Update all properties on
15544         a widget that have changed.
15545         (mswindows_button_update): new function. Update a button's set
15546         state.
15547         (mswindows_tab_control_update): new function. Update the items in
15548         a tab.
15549         (mswindows_tab_control_set_property): deleted.
15550         (mswindows_progress_gauge_update): new function. Update the
15551         progress gauge's progress.
15552         (mswindows_widget_set_property): deleted. This is all done
15553         asynchronously now.
15554         (mswindows_progress_gauge_set_property): ditto.
15555         (console_type_create_glyphs_mswindows): declare new methods.
15556         (image_instantiator_format_create_glyphs_mswindows): ditto.
15557
15558         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15559         (msprinter_set_frame_properties): ditto.
15560
15561         * console.h (struct console_methods): Add update_widget_method.
15562
15563 2000-02-09  Andy Piper  <andy@xemacs.org>
15564
15565         * gui-msw.c (Fmswindows_shell_execute): Make
15566         mswindows-shell-execute industrial strength.
15567
15568 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15569
15570         * lrecord.h: Make macro argument `props' match member function `plist'.
15571         * fns.c (Fget):
15572         * fns.c (Fput):
15573         * fns.c (Fremprop):
15574         * fns.c (Fobject_plist):
15575         * alloc.c:
15576         * symbols.c:
15577         Object property list frobbing cleanup.
15578         - Allow any lisp object (compared with `eq'), not just symbols, as
15579           keys in object plists.
15580         - Move symbol plist frobbing into symbols.c, where it belongs.
15581         - Move string plist frobbing into alloc.c, where it belongs.
15582         - Everything's an lrecord now, so no need to test for symbolp, etc.
15583         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15584
15585         * extents.c: Reorder code to remove declarations.
15586
15587         * frame.h (store_in_alist): Remove useless declaration.
15588
15589 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15590
15591         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15592         * config.h.in: Add HAVE_XCONVERTCASE.
15593
15594 2000-02-07  Andy Piper  <andy@xemacs.org>
15595
15596         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15597         it breaks many things.
15598
15599 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15600
15601         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15602         actually can start a common comment type.
15603         * src/syntax.h (SYNTAX_END_P): ditto for end.
15604
15605 2000-02-07  Martin Buchholz <martin@xemacs.org>
15606
15607         * XEmacs 21.2.28 is released.
15608
15609 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15610
15611         * event-Xt.c (x_keysym_to_character): New.
15612         (maybe_define_x_key_as_self_inserting_character): New.
15613         (x_has_keysym): New.
15614         Auto-define all keys on the keyboard as self-insert-key.
15615
15616 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15617
15618         * menubar.c (vars_of_menubar): A small code simplification.
15619
15620         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15621
15622         * ExternalShell.c:
15623         * ExternalClient.c:
15624         * EmacsShell-sub.c:
15625         * EmacsManager.c:
15626         * EmacsFrame.c:
15627         Use consistent style for specifying X resources.
15628
15629         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15630         This makes (dontusethis-set-symbol-value-handler) actually usable.
15631
15632         * lrecord.h (lrecord_decription_type):
15633         * alloc.c (pdump_register_sub):
15634         (pdump_dump_data):
15635         (pdump_reloc_one):
15636         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15637         Comply with XEmacs coding style.
15638         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15639         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15640
15641         * keymap.c (Faccessible_keymaps):
15642         Make (accessible-keymaps map "\C-h") do the Right Thing.
15643         Make (accessible-keymaps map []) do the Right Thing.
15644         Make (accessible-keymaps map "") do the Right Thing.
15645         (check_keymap_definition_loop): New function.
15646         (keymap_store_internal): Keep luser from shooting self in foot,
15647           via (define-key ctl-x-4-map "p" global-map).
15648         Remove fullness slot from struct Lisp_Keymap, since hash tables
15649         are now reliable.
15650         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15651
15652 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15653
15654         * redisplay.c (init_redisplay): Fix small memory leak.
15655         * elhash.h:
15656         * elhash.c (pdump_reorganize_hash_table):
15657         Rename from reorganize_hash_table. Change prototype.
15658         Reuse the original memory for hentries.  Save 100k.
15659         * alloc.c (PDUMP_READ): new macro.
15660         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15661         * alloc.c: No need to #ifndef before #undef.
15662
15663         * print.c: Allow debug_print() to print readably by modifying
15664         debug_print_readably.  Use consistent variable names.
15665
15666         * .dbxrc: Try to get things to work even if stopped in a function
15667         without source available by explicitly specifying source files.
15668 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15669
15670         * unexnt.c (_start): Removed bogus code which caused loading heap
15671         from differrent executable file.
15672         Removed bogus assignment to _fmode, which caused inconsistencies.
15673
15674 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15675
15676         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15677         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15678         Do not preliminary `#define signal sigset'.
15679
15680         * systime.h: Do not prototype environ on windows nt and cygwin,
15681         this conflicts with system header.
15682
15683         * syssignal.h: Use correct define for WINDOWSNT
15684
15685         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15686         with system header.
15687
15688         * sysdep.c (near start of file): Fixed commentary and rearranged
15689         ifdefs in readable order.
15690         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15691         (start_of_text):
15692         (end_of_text):
15693         (end_of_data): Do not compile in if using PDUMP.
15694
15695         * symsinit.h: Prototyped vars_of_nt().
15696
15697         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15698         (find_child_console): Use it.
15699         (sys_kill): Use it.
15700
15701         * ntheap.h: Do not extern os_subtype.
15702
15703         * ntheap.c (cache_system_info): Do not cache unneeded:
15704         nt_major_version, nt_minor_version and os_subtype.
15705         (recreate_heap): Do not compile in when PDUMPing.
15706
15707         * nt.c (geteuid and friends): Use the new varibale
15708         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15709         (init_user_info): Removed the above mentioned hackery.
15710         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15711         stat has been fixed in the C runtime.
15712         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15713
15714         * file-coding.c (struct file_coding_dump): Do not define
15715         ucs_to_mule_table in the struct if not MULE.
15716         (struct struct lrecord_description fcd_description_1): Do not dump
15717         the above.
15718
15719         * emacs.c (main_1): Call vars_of_nt().
15720         (right before Fdump_emacs_data): Don't need lastfile if using both
15721         portabe dumper and system malloc.
15722
15723         * alloc.c (Fmemory_limit): Conditionalized out.
15724         (pdump): Use OPEN_BINARY for the portable dump file.
15725         (pdump_load): Ditto.
15726
15727 2000-02-02  Mike Alexander  <mta@arbortext.com>
15728
15729         * nt.c (convert_time): Set tm_isdst before calling mktime and
15730         avoid calling it at all if the compiler supports 64 bit integers.
15731         Also initialize utc_base_ft before using it.
15732
15733 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15734
15735         * frame.c (change_frame_size_1): Take f->internal_border_width
15736         into consideration when calculating the width of the frame.
15737
15738 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15739
15740         * window.c (frame_min_height):
15741         (frame_size_valid_p):
15742         (frame_pixsize_valid_p): Added.
15743         (check_frame_size): Generalized.
15744
15745         * window.h: Prototyped the above.
15746
15747         * lisp.h:
15748         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15749         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15750         Deleted Vwin32_* and Vbinary_process_* unused variables.
15751
15752         * device-msw.c (msprinter_init_device): Do not get printer font
15753         list; Added DEVMODE functions.
15754
15755         * frame-msw.c: Added lots of printer code.
15756
15757         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15758         general.c.
15759
15760         * console-msw.h: Added more msprinter device private slots.
15761
15762 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15763
15764         * event-msw.c (key_needs_default_processing_p): Added.
15765         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15766
15767 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15768
15769         * glyphs.c (image_instance_layout): Mark image instance as clean
15770         after layout.
15771         (glyph_dirty_p): Removed redundant function.
15772         (invalidate_glyph_geometry_maybe): Added.
15773         (update_glyph_cachel_data): Call it.
15774
15775         * glyphs.h: Prototyped it.
15776
15777         * redisplay.c (add_glyph_rune): Call it.
15778         (redisplay_window): Reset glyphs cachels when frame faces have
15779         changed, thus forcing recomputation of built-in border glyphs.
15780
15781 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15782
15783         * Makefile.in.in: Make portable dumper and purify play well together.
15784         Add imperfect, but better than nothing, support for pdump.
15785         Remove xemacs.dmp when temacs is re-generated.
15786         Don't ignore errors when dumping xemacs.
15787
15788         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15789
15790 2000-01-28  Andy Piper  <andy@xemacs.org>
15791
15792         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15793         (setup_normal_frame): ditto.
15794         (setup_frame_without_minibuffer): ditto.
15795         (setup_minibuffer_frame): ditto.
15796         (delete_frame_internal): ditto.
15797         (Fmake_frame_invisible): ditto.
15798         (Ficonify_frame): ditto.
15799
15800         * window.h: change Fset_window_buffer signature.
15801
15802         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15803         (Fset_window_buffer): allow recording of buffer if the window is
15804         the selected window.
15805         (window_loop): Use new Fset_window signature.
15806
15807 2000-01-23  Daniel Pittman  <daniel@danann.net>
15808
15809         * config.h.in: Added template for `HAVE_ATHENA_3D'
15810
15811 2000-01-29  Andy Piper  <andy@xemacs.org>
15812
15813         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15814
15815         * gutter.c (output_gutter): Don't output if the window isn't live.
15816
15817 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15818
15819         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15820         of 01/12/00: Moved SetFocus back here where it belongs.
15821
15822 2000-01-23  Andy Piper  <andy@xemacs.org>
15823
15824         * s/cygwin32.h: declare printer things.
15825
15826 2000-01-26  Andy Piper  <andy@xemacs.org>
15827
15828         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15829         Alexander.
15830
15831 2000-01-24  Andy Piper  <andy@xemacs.org>
15832
15833         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15834         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15835
15836         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15837
15838         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15839
15840         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15841
15842         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15843         (mswindows_output_display_block): Avoid local shadows.
15844
15845         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15846         (mswindows_enqueue_mouse_button_event): ditto.
15847         (mswindows_handle_gui_wm_command): remove declaration.
15848
15849         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15850         warnings.
15851
15852         * console-msw.h: Avoid shadows.
15853         (mswindows_get_toolbar_button_text):
15854         (emacs_mswindows_create_stream_pair):
15855         (emacs_mswindows_delete_stream_pair):
15856         (mswindows_handle_toolbar_wm_command): declare.
15857
15858         * device-msw.c (build_syscolor_string): Avoid shadows.
15859
15860 2000-01-23  Andy Piper  <andy@xemacs.org>
15861
15862         * glyphs-widget.c (widget_instantiate): reverse the items for
15863         layouts so that children are in the expected order.
15864
15865 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15866
15867         * ralloc.c: safe_bcopy ==> memmove
15868         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15869         * s/msdos.h: Remove BCOPY macros.
15870         * insdel.c (gap_right): Remove BCOPY conditional code.
15871         * insdel.c (gap_left): Remove BCOPY conditional code.
15872         XEmacs demands a working ANSI C compiler - hence memmove.
15873
15874         * regex.c (regex_compile): Remove accidental use of trigraphs.
15875
15876 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15877
15878         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15879         event timestamp.
15880
15881 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15882
15883         * event-msw.c (mswindows_drain_windows_queue): Added the
15884         parameter.
15885         (mswindows_need_event): Commented the call to
15886         mswindows_drain_windows_queue().
15887         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15888         only.
15889
15890         * console-msw.h: Moved a few function prototypes here from
15891         event-msw.c.
15892
15893         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15894         parameter from unsigned short to unsigned long.
15895         (Fmswindows_shell_execute): Added return value.
15896
15897 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15898
15899         * sysdep.c (init_system_name):
15900           process-unix.c (unix_canonicalized_host_name):
15901         Don't call freeaddrinfo() if getaddrinfo() fails.
15902
15903         * process-unix.c (unix_open_unix_network_stream):
15904         Moved the code to get a port # into address loop.
15905
15906 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15907
15908         * buffer.c (reinit_vars_of_buffer):
15909         The right place to initialize conversion_in_dynarr and
15910         conversion_out_dynarr.
15911
15912         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15913
15914         * process-unix.c (unix_canonicalize_host_name): Muleize.
15915         (unix_open_network_stream): Muleize.
15916
15917         * buffer.h: Fix up prototypes for ralloc.c functions.
15918
15919 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15920         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15921         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15922                 instead of gethostbyname()
15923         * process-unix.c: In unix_canonicalize_host_name() and
15924                 unix_open_network_stream(), add code to use getaddrinfo()
15925                 instead of gethostbyname().
15926
15927 2000-01-27  Daniel Pittman <daniel@danann.net>
15928
15929         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15930         libs when built with flat Athena.
15931
15932 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15933
15934         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15935         Use coding standards for function prototypes.
15936
15937 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15938
15939         * dialog-msw.c (push_lisp_string_as_unicode):
15940         * doc.c (unparesseuxify_doc_string):
15941         * dired.c (Fuser_name_completion_1):
15942         * dired.c (Fuser_name_all_completions):
15943         * dired.c (free_user_cache):
15944         * dired.c (user_name_completion):
15945         * console-x.c (get_display_arg_connection):
15946         * minibuf.c (clear_echo_area_internal):
15947         * minibuf.c (echo_area_append):
15948         * eldap.c (Fldap_open):
15949         * eldap.c (Fldap_search_internal):
15950         * frame-x.c (x_set_frame_text_value):
15951         * frame-x.c (x_set_frame_properties):
15952         * frame-x.c (x_create_widgets):
15953         * redisplay-tty.c (term_get_fkeys_1):
15954         * objects-x.c (x_parse_nearest_color):
15955         * objects-x.c (x_valid_color_name_p):
15956         * objects-x.c (x_initialize_font_instance):
15957         * objects-x.c (x_list_fonts):
15958         * objects-x.c (x_find_charset_font):
15959         * tooltalk.c (Fadd_tooltalk_message_arg):
15960         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15961         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15962         * process-unix.c (unix_create_process):
15963         * ntproc.c (sys_spawnve):
15964         * sound.c (Fplay_sound_file):
15965         * sound.c (Fplay_sound):
15966         * buffer.c (init_initial_directory):
15967         * buffer.c (init_buffer):
15968         * editfns.c (init_editfns):
15969         * editfns.c (Ftemp_directory):
15970         * editfns.c (Fuser_full_name):
15971         * editfns.c (uncache_home_directory):
15972         * editfns.c (get_home_directory):
15973         * editfns.c (Fuser_home_directory):
15974         * editfns.c (Fformat_time_string):
15975         * editfns.c (Fcurrent_time_string):
15976         * gui-x.c (button_item_to_widget_value):
15977         * database.c (Fopen_database):
15978         * event-Xt.c (x_to_emacs_keysym):
15979         * event-Xt.c (x_event_to_emacs_event):
15980         * event-Xt.c (describe_event_window):
15981         * event-msw.c (mswindows_wnd_proc):
15982         * glyphs-eimage.c (jpeg_instantiate):
15983         * glyphs-eimage.c (gif_instantiate):
15984         * glyphs-eimage.c (png_instantiate):
15985         * glyphs-eimage.c (tiff_instantiate):
15986         * glyphs-x.c (xbm_instantiate_1):
15987         * glyphs-x.c (x_xbm_instantiate):
15988         * glyphs-x.c (x_xface_instantiate):
15989         * glyphs-x.c (autodetect_instantiate):
15990         * glyphs-x.c (cursor_font_instantiate):
15991         * glyphs-x.c (x_widget_instantiate):
15992         * glyphs-x.c (x_widget_set_property):
15993         * glyphs-x.c (x_widget_property):
15994         * glyphs-x.c (BUILD_GLYPH_INST):
15995         * print.c (write_string_to_stdio_stream):
15996         * print.c (output_string):
15997         * print.c (Falternate_debugging_output):
15998         * print.c (Fexternal_debugging_output):
15999         * glyphs-msw.c (extract_xpm_color_names):
16000         * glyphs-msw.c (mswindows_xpm_instantiate):
16001         * glyphs-msw.c (bmp_instantiate):
16002         * glyphs-msw.c (resource_name_to_resource):
16003         * glyphs-msw.c (mswindows_resource_instantiate):
16004         * glyphs-msw.c (xbm_instantiate_1):
16005         * glyphs-msw.c (mswindows_xbm_instantiate):
16006         * glyphs-msw.c (mswindows_xface_instantiate):
16007         * glyphs-msw.c (mswindows_widget_instantiate):
16008         * glyphs-msw.c (add_tree_item):
16009         * glyphs-msw.c (add_tab_item):
16010         * glyphs-msw.c (mswindows_combo_box_instantiate):
16011         * glyphs-msw.c (mswindows_widget_property):
16012         * glyphs-msw.c (mswindows_combo_box_property):
16013         * glyphs-msw.c (mswindows_widget_set_property):
16014         * console.c (stuff_buffered_input):
16015         * objects-msw.c (mswindows_initialize_color_instance):
16016         * objects-msw.c (mswindows_valid_color_name_p):
16017         * objects-msw.c (mswindows_list_fonts):
16018         * objects-msw.c (mswindows_font_instance_truename):
16019         * bytecode.c (optimize_compiled_function):
16020         * select-x.c (symbol_to_x_atom):
16021         * select-x.c (x_atom_to_symbol):
16022         * select-x.c (hack_motif_clipboard_selection):
16023         * select-x.c (selection_data_to_lisp_data):
16024         * select-x.c (lisp_data_to_selection_data):
16025         * select-x.c (Fx_get_cutbuffer_internal):
16026         * select-x.c (Fx_store_cutbuffer_internal):
16027         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16028         * buffer.h (TO_INTERNAL_FORMAT): New function.
16029         * emacs.c (make_arg_list_1):
16030         * emacs.c (make_argc_argv):
16031         * emacs.c (main_1):
16032         * emacs.c (Fdump_emacs):
16033         * emacs.c (split_string_by_emchar_1):
16034         * file-coding.h:
16035         * lisp.h:
16036         * lstream.h:
16037         * symsinit.h:
16038         * device-x.c (x_init_device):
16039         * device-x.c (Fx_valid_keysym_name_p):
16040         * device-x.c (Fx_get_font_path):
16041         * device-x.c (Fx_set_font_path):
16042         * glyphs.c (bitmap_to_lisp_data):
16043         * glyphs.c (pixmap_to_lisp_data):
16044         * alloc.c (make_ext_string): Use coding system arguments.  Update
16045         all callers.
16046         * alloc.c (build_string):
16047         * callproc.c (child_setup):
16048         * callproc.c (init_callproc):
16049         * fileio.c (lisp_strerror):
16050         * fileio.c (directory_file_name):
16051         * fileio.c (Fexpand_file_name):
16052         * fileio.c (Ffile_truename):
16053         * fileio.c (Fsysnetunam):
16054         * fileio.c (Fdo_auto_save):
16055         * sysdep.c (sys_readdir):
16056         * tests.c: New file.  Allow adding C tests.
16057         Replace GET_* macros with a more comprehensible and flexible
16058         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16059         Modify all calls.
16060         Any coding system can be used to do format conversion.
16061         Eliminate enum external_data_format.
16062         Eliminate convert_to_external_format.
16063         Eliminate convert_to_internal_format.
16064         Make sure file-name, keyboard, terminal, and ctext are always
16065         defined as coding systems or aliases.  Make
16066         file-name-coding-system, terminal-coding-system, and
16067         keyboard-coding-system magical variables that are equivalent to
16068         defining the corresponding coding system aliases.
16069
16070         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16071         * file-coding.c (Fcoding_system_alias_p): New function.
16072         * file-coding.c (Fcoding_system_aliasee): New function.
16073         * file-coding.c (append_suffix_to_symbol): New function.
16074         * file-coding.c (dangling_coding_system_alias_p): New function.
16075         * file-coding.c (Ffind_coding_system):
16076         * file-coding.c (Fcopy_coding_system):
16077         * file-coding.c (encode_coding_no_conversion):
16078         * file-coding.c (syms_of_file_coding):
16079         * file-coding.c (vars_of_file_coding):
16080         Rewrite coding system alias code.
16081         Allow nested aliases, like symbolic links.
16082         Allow redefinition of coding system aliases.
16083         Prevent existence of dangling coding system aliases.
16084
16085         * dired.c (Fuser_name_completion_1):
16086         * dired.c (Fuser_name_all_completions):
16087         A crash would happen if user did QUIT in the middle of building
16088         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16089
16090         * lisp.h:
16091         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16092
16093         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16094         an unsigned char *.  Update all callers.
16095
16096 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16097
16098         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16099
16100 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16101
16102         * elhash.c (hentry_description): Use more portable definition.
16103         (resize_hash_table): Initialize new hentries using
16104         xnew_array_and_zero, thereby simplifying the code.
16105
16106         * mule-charset.c (make_charset): Make sure entire object is
16107         initialized, to avoid Purify warnings.
16108
16109         * alloc.c (resize_string): Fix unlikely crash with big strings.
16110
16111 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16112
16113         * realpath.c (xrealpath):
16114         Don't call getwd().
16115
16116 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16117
16118         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16119
16120 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16121
16122         * unexelfsgi.c (unexec): Change the way we decide which segment
16123         should be extended.
16124
16125         Assumption that .bss section should be outside the PT_LOADable
16126         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16127         it's present) is inside the 'data' segment. This would fail the
16128         test which was used to find a segment to grow and cover new
16129         heap. Instead of this assumption, I created another one - on IRIX
16130         the segment to grow should start below .bss and it's address
16131         should extent above the end of .bss. Once this segment is
16132         identified, it's grown to accommodate the new heap and new
16133         zero-length .bss section is added at the end of .data2.
16134
16135 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16136
16137         * eval.c (Feval): Wrong number of arguments should use original
16138         function, not the indirect_function version of it.
16139
16140 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16141
16142         * glyphs-x.c (x_button_instantiate): Don't add image if
16143         it is not a pixmap.
16144         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16145         is relative.
16146
16147 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16148
16149         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16150         declaration.
16151         (DEFVAR_INT_MAGIC): Ditto.
16152         (DEFVAR_BOOL_MAGIC): Ditto.
16153         * glyphs.h: Reindent backslash.
16154
16155 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16156
16157         * glyphs-widget.c (layout_query_geometry):
16158         (layout_layout): Use correct types for gheight, gwidth.
16159
16160 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16161
16162         * EmacsManager.c (QueryGeometry): Purified.
16163
16164 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16165
16166         * alloc.c (make_float): Make sure entire object is initialized, to
16167         avoid Purify warnings.
16168         (pdump_register_sub): Remove useless assignment.
16169         (pdump): Use xmalloc, not malloc.
16170         (pdump_load): Use xmalloc, not malloc.
16171
16172 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16173
16174         * callproc.c:
16175         * dired-msw.c:
16176         * fileio.c:
16177         * process-nt.c:
16178         * redisplay-msw.c:
16179         * sysdep.c: Removed redundant #include <windows.h>
16180
16181 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16182
16183         * frame.c (delete_frame_internal): Do not delete device when its
16184         implementation so declares.
16185         (delete_frame_internal): Set device selected frame to nil when
16186         last frame goes away.
16187
16188         * device-msw.c (msprinter_device_system_metrics): Implemented.
16189         (mswindows_device_system_metrics): Added 'device-dpi property.
16190
16191         * device.c: (Fdevice_printer_p): Added.
16192         Added 'offset-workspace device metric.
16193
16194         * console.h (device_metrics): Declared DM_offset_workspace.
16195
16196 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16197
16198         * fileio.c (Ffile_truename): Remove pointless and confusing
16199         initialization of elen.
16200
16201         * glyphs-widget.c: Compiler warning fixes.
16202
16203 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16204
16205         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16206         instead of a Lisp_Object as argument to make it consistent with
16207         the other LIVE_P macros.
16208         (CHECK_LIVE_PROCESS): New macro.
16209
16210         * process.c: Declare Qprocess_live_p.
16211         (Fprocess_live_p): New function.
16212         (create_process): Use PROCESS_LIVE_P.
16213         (read_process_output): Ditto.
16214         (set_process_filter): Ditto.
16215         (Fdelete_process): Ditto.
16216         (kill_buffer_processes): Ditto
16217         (process_send_signal): Use CHECK_LIVE_PROCESS.
16218         (Fprocess_input_coding_system): Check whether process is still
16219         alive (fix PR#1061).
16220         (Fprocess_output_coding_system): Ditto.
16221         (Fprocess_coding_system): Ditto.
16222         (Fset_process_input_coding_system): Ditto.
16223         (Fset_process_output_coding_system): Ditto.
16224
16225 2000-01-23  Andy Piper  <andy@xemacs.org>
16226
16227         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16228         layout and widget.
16229
16230         * glyphs.c (mark_image_instance): take into account changed
16231         image_instance format.
16232         (image_instance_equal): ditto.
16233         (image_instance_hash): ditto.
16234
16235         * glyphs-widget.c (widget_instantiate): Incorporate layout
16236         instantiation here. Delay layout of the layout until later.
16237         (layout_instantiate): deleted.
16238         (layout_query_geometry): new function. get the geometry of a
16239         layout.
16240         (layout_layout): layout a layout dynamically.
16241         (image_instantiator_widget): New function - splitting up
16242         image_instantiator_format_create_glyphs_widget for netwinder
16243         compilation.
16244         (image_instantiator_buttons):
16245         (image_instantiator_edit_fields):
16246         (image_instantiator_combo_box):
16247         (image_instantiator_scrollbar):
16248         (image_instantiator_progress_guage):
16249         (image_instantiator_tree_view):
16250         (image_instantiator_tab_control):
16251         (image_instantiator_labels):
16252         (image_instantiator_layout): ditto.
16253         (image_instantiator_format_create_glyphs_widget): Call preceding
16254         functions.
16255
16256 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16257
16258         * process.c (Fset_process_coding_system):
16259         * device-x.c (Fx_keysym_hash_table):
16260         Docstring fixes.
16261
16262         * lstream.c (Lstream_write): Return documented value, not 0.
16263
16264         * fileio.c (directory_file_name):
16265         (Fsubstitute_in_file_name):
16266         (Fsubstitute_insert_file_contents_internal):
16267         (Fwrite_region_internal):
16268         * emacs.c:
16269         * sysdep.c:
16270         * getloadavg.c:
16271         * systty.h:
16272         Remove vestigial APOLLO-conditional code.
16273
16274 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16275
16276         * getpagesize.h: Add guard macros.
16277         * libsst.h: Add guard macros.
16278         * libst.h: Add guard macros.
16279         * line-number.h: Add guard macros.
16280         * ndir.h: Add guard macros.
16281         * sysfloat.h: Add guard macros.
16282         * sysfile.h: Add guard macros.
16283         * sysproc.h: Add guard macros.
16284         * syswait.h: Add guard macros.
16285         * xintrinsic.h: Add guard macros.
16286         * xintrinsicp.h: Add guard macros.
16287         * xmmanager.h: Add guard macros.
16288         * xmmanagerp.h: Add guard macros.
16289         * xmprimitive.h: Add guard macros.
16290         * xmu.h: Add guard macros.
16291         * gpmevent.h: Add copyright statement. Add guard macros.
16292         * miscplay.h: Add guard macros.
16293         * *.h: Use consistent C-standards-approved guard macro names.
16294
16295         * opaque.c (make_opaque): Switch parameter order.
16296         * opaque.h (make_opaque): Switch parameter order.
16297         Update all callers.
16298         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16299
16300         * config.h.in (type_checking_assert): Added.
16301         (bufpos_checking_assert): Added.
16302
16303 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16304
16305         * alloc.c: Harmless pdump changes.
16306         - Use countof().
16307         - spell alignment correctly.
16308         * sysdep.c: Use countof()
16309
16310 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16311
16312         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16313         initially_selected_for_input() console method, default to 0.
16314         (semi_canonicalize_console_connection): Try to delegate to
16315         canonicalize_console_connection if no such console method.
16316         (canonicalize_console_connection): Vice versa.
16317         (print_console): Do not print nil connection.
16318
16319         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16320         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16321         (XDEVIMPF_FRAMELESS_OK): Added.
16322         (CONSOLE_INHERITS_METHOD): Added.
16323
16324         * console-msw.c (mswindows_canonicalize_console_connection):
16325         Added.
16326         (mswindows_canonicalize_device_connection): Added.
16327
16328         * console-msw.h (struct msprinter_device): Added this struct and
16329         accessor macros.
16330         (mswindows_device): Made fontlist a lisp object.
16331
16332         * device.c (semi_canonicalize_device_connection):  Try to delegate
16333         to canonicalize_device_connection if no such console method.
16334         (canonicalize_device_connection): Vice versa.
16335         (print_device): Do not print nil connection.
16336
16337         * device-msw.c (mswindows_init_device): Call InitCommonControls
16338         when have widgets.
16339         (mswindows_delete_device): Removed fontlist deallocation.
16340         (mswindows_mark_device): Added.
16341
16342         * events.c (event_equal): Added abort() at unreached code.
16343         (event_hash): Ditto.
16344
16345         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16346         fallback tags of Windows devices.
16347
16348         * general.c (syms_of_general): Initialized Qmsprinter.
16349
16350         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16351         of fallback tags of Windows devices.
16352
16353         * lisp.h: Declared Qmsprinter.
16354
16355         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16356         of strings.
16357         (mswindows_list_fonts): Ditto.
16358         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16359         that it can be used by both mswindows and msprinter devices.
16360         (initialize_font_instance): Added.
16361         (mswindows_initialize_font_instance): Use it.
16362         (msprinter_initialize_font_instance): Added.
16363
16364         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16365         and implementation flags check.
16366         (redisplay_without_hooks): Changed the call to the above.
16367         (Fredraw_device): Ditto.
16368         (Fredisplay_device): Ditto.
16369
16370         * redisplay-msw.c (get_frame_dc): Implemented.
16371         (get_frame_compdc): Implemented.
16372         (many functions): Use the two functions above to get device
16373         contexts, ether for a window or a printer.
16374
16375 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16376
16377         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16378         initialization here.
16379         (init_symbols_once_early): Call it.
16380         * emacs.c (main_1): Call it.
16381         * symsinit.h: Declare it.
16382
16383 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16384
16385         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16386         Lisp_Object.
16387         (pdump_backtrace): Ditto.
16388         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16389         (pdump_get_entry): Abort if trying to register a null pointer.
16390         (pdump_dump_data): Cleanup types when relocating.
16391         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16392         (pdump_dump_rtables): Remove bad casts.
16393         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16394         Lisp_Object instead of a EMACS_INT for the hashtable
16395         reorganization.
16396
16397 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16398
16399         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16400
16401         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16402
16403         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16404
16405         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16406
16407 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16408
16409         * faces.h (FACE_STRIKETHRU_P): Added.
16410
16411         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16412         of font variants.
16413
16414         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16415         (mswindows_set_dc_font): New function, aware of font variants,
16416         separated from mswindows_update_dc.
16417
16418         * objects-msw.h (struct mswindows_font_instance_data): Added
16419         definition.
16420
16421         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16422         cached fonts and the data structure.
16423         (mswindows_initialize_font_instance): Added creation of font data
16424         structure.
16425         (mswindows_print_font_instance): Print at least something.
16426         (mswindows_create_font_variant): Implemented.
16427         (mswindows_get_hfont): Implemented.
16428
16429 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16430
16431         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16432         prototyping problem with msvc.
16433
16434         * emacs.c (main_1): added syms_of_gui_mswindows() call
16435
16436         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16437         syms_of_gui_mswindows() function
16438
16439         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16440
16441 2000-01-18  Martin Buchholz <martin@xemacs.org>
16442
16443         * XEmacs 21.2.27 is released.
16444
16445 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16446
16447         * glyphs-eimage.c (struct tiff_error_struct):
16448         (tiff_error_func):
16449         (tiff_warning_func):
16450         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16451
16452         * unexmips.c:
16453         * unexhp9k3.c:
16454         * unexfreebsd.c:
16455         * unexec.c: Remove vestigial Lucid C code.
16456         * unexalpha.c:
16457         * unexaix.c:
16458         * termcap.c:
16459         * libsst.c: Ansify.
16460         Remove declarations of errno and strerror().
16461
16462         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16463
16464         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16465
16466 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16467
16468         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16469         Optimize.
16470
16471 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16472
16473         * md5.c:
16474         * file-coding.c:
16475         * file-coding.h:
16476         Change enum eol_type to eol_type_t.
16477
16478 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16479
16480         * gui.c (get_gui_callback): Check cons before accessing car.
16481
16482 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16483
16484         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16485         (XSETSPECIFIER_TYPE): Ditto.
16486
16487 2000-01-17  Didier Verna  <didier@xemacs.org>
16488
16489         * redisplay.c (generate_fstring_runes): compute string size in
16490         characters, not bytes.
16491
16492 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16493
16494         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16495
16496 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16497
16498         * print.c (print_error_message): Call print_prepare().
16499
16500 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16501
16502         * .dbxrc: Renamed from dbxrc.
16503
16504         * events.c (event_to_character):
16505         Use `assert (foo)' instead of `if (!foo) abort()'
16506
16507         * .gdbinit (xtype): Add documentation.
16508         * .gdbinit (check-temacs): New function.
16509         * .gdbinit (check-xemacs): New function.
16510         * dbxrc (check-xemacs): New function.
16511         * dbxrc (check-xemacs): New function.
16512
16513 2000-01-14  Andy Piper  <andy@xemacs.org>
16514
16515         * glyphs-widget.c (widget_query_geometry): Make sure that we
16516         calculate default dimensions correctly.
16517
16518 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16519
16520         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16521
16522         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16523         pdump_wire'd variable.
16524
16525         * emacs.c: (main_1): Conditionalized calls to
16526         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16527
16528 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16529
16530         * window.c (Fset_window_configuration):
16531         * sysdep.c (_start):
16532         * input-method-motif.c (res):
16533         * event-Xt.c (Xt_process_to_emacs_event):
16534         Simple compiler warning fixes.
16535
16536         * bytecode.c (funcall_compiled_function): Use the original
16537         function symbol on the backtrace list in preference to the
16538         compiled_function object in error messages.
16539
16540 2000-01-13  Andy Piper  <andy@xemacs.org>
16541
16542         * glyphs-x.c (update_widget_face): Make sure we update the widget
16543         background as well as foreground.
16544
16545 2000-01-13  Andy Piper  <andy@xemacs.org>
16546
16547         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16548         fields to subwindow.
16549         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16550         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16551         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16552         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16553
16554         * glyphs-widget.c (check_valid_tab_orientation): new function.
16555         (initialize_widget_image_instance): zero orientation and
16556         justification.
16557         (widget_instantiate): pick up orientation.
16558         (tab_control_query_geometry): return appropriate values for
16559         vertical tabs.
16560
16561         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16562         appropriate creation flags for left, right and bottom tabs.
16563
16564         * s/cygwin32.h: add tab definitions.
16565
16566 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16567
16568         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16569         frame upon hiding a subwindow.
16570         (mswindows_button_instantiate): Changed the push button style to
16571         BS_PUSHBUTTON.
16572         (mswindows_button_instantiate): Removed button BS_NOTIFY
16573         style.
16574         (mswindows_button_instantiate): Removed redundant check for
16575         a disabled gui item.
16576         (mswindows_button_instantiate): Made use of WS_TABSTOP
16577         consistent: "operable" controls (edit, button, tree, scroll) have
16578         this style, "display-only" ones (static, progress gauge) do
16579         not. This style is currently ignored by XEmacs though. Also,
16580         removed the WS_EX_CONTROLPARENT style - it is not for children,
16581         it is for their parents!
16582         (mswindows_edit_field_instantiate): Ditto.
16583         (mswindows_progress_gauge_instantiate): Ditto.
16584         (mswindows_tree_view_instantiate): Ditto.
16585         (mswindows_tab_control_instantiate): Ditto.
16586         (mswindows_scrollbar_instantiate): Ditto.
16587         (mswindows_combo_box_instantiate): Ditto.
16588         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16589         style to the "clip" window.
16590         (mswindows_button_instantiate): Removed compilation warning by
16591         equally typing terms of the ?: operator.
16592
16593 2000-01-12  Didier Verna  <didier@xemacs.org>
16594
16595         * redisplay.c (generate_fstring_runes): new parameter holding the
16596         last modeline-format extent.
16597         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16598         extent, fill the glyph block with it.
16599         (generate_fstring_runes): handle these parameters.
16600         (generate_formatted_string_db): ditto.
16601
16602         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16603         glyphs'extents in the modeline.
16604
16605 1999-01-11  Mike Woolley  <mike@bulsara.com>
16606
16607         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16608         256Mb, as a workaround for the non-starting problem many people
16609         have experienced.
16610
16611 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16612
16613         * console-tty.c (Fset_console_tty_output_coding_system):
16614         Force redrawing tty frame.
16615
16616 2000-01-10  Didier Verna  <didier@xemacs.org>
16617
16618         * redisplay.c (generate_fstring_runes): fix size computation bug.
16619
16620 2000-01-09  William M. Perry <wmperry@aventail.com>
16621
16622         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16623
16624 2000-01-09  Andy Piper  <andy@xemacs.org>
16625
16626         * glyphs-msw.c: index -> i to avoid shadows.
16627         (xbm_create_bitmap_from_data): make static.
16628         (check_valid_string_or_int): deleted.
16629         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16630
16631         * glyphs-x.c (x_update_subwindow): remove unused args.
16632
16633         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16634         back pointer - this is done in allocate_image_instance.
16635         (query_string_font): return Qnil to make the compiler happy.
16636         (unmap_subwindow): set to ~0 to make the compiler happy.
16637         (glyph_query_geometry): comment out until used.
16638         (glyph_layout): ditto.
16639
16640 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16641
16642         * insdel.c (signal_after_change): Remove extraneous unbind_to().