update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (complex_vars_of_mule_charset): Modify the
4         X-registry of `ucs-bmp'.
5
6 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * chartab.c (char-variants): Refer `->subsumptive',
9         `->denotational' and `->identical' as same as `->ucs-unified'.
10
11 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * chartab.c (Fput_char_attribute): Convert char-specs in value of
14         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
15         links.
16
17 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
18
19         * text-coding.c: Add EXFUN for `Fregexp_quote'.
20         (decode_add_er_char): Fix problem about infinite loop when a CCS
21         specified in `coded-charset-entity-reference-alist' is not
22         existed.
23
24 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * mule-charset.c (syms_of_mule_charset): Rename
27         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
28
29 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
30
31         * fns.c (simplify_char_spec): Don't allocate new character-object
32         if specified char_spec does not have any CCS-features.
33
34         * chartab.h: Add EXFUN for Fdefine_char.
35
36         * chartab.c: Delete EXFUN for Fdefine_char.
37
38 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * fns.c (simplify_char_spec): Use Fdefine_char instead of
41         Ffind_char for char-spec.
42
43 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * lisp-disunion.h (XCHARVAL): Fix condition about
46         SIZEOF_EMACS_INT.
47
48 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
49
50         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
51         <int> for `code'.
52         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
53         point; use <Emchar> instead of <int> for character-id.
54
55 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
56
57         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
58         (make_char): Likewise.
59         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
60         environment.
61         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
62         instead of <int> as the type of return value; use <Lisp_Object>
63         instead of <Emchar> as the type of argument.
64         (XCHARVAL[macro version]): Cast the result into <Emchar>.
65
66         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
67         syntaxcode> instead of <int>.
68
69 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * chartab.c (put_char_composition): Use DECODE_CHAR to get
72         character corresponding with UCS code point.
73         (Fput_char_attribute): Likewise.
74
75         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
76         character in the UCS decoding-table if the char-id is not equal to
77         the UCS code point.
78
79 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
80
81         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
82         for aliases; write `description'; write
83         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
84         not 0.
85
86 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * chartab.c (Fsave_char_attribute_table): Don't use
89         `save_charset_properties'.
90
91         * mule-charset.c (Fsave_charset_properties): Renamed from
92         `save_charset_properties' and changed to Lisp function again;
93         write property `type' as `CCS'; write properties `final-byte' and
94         `mother' if they exists.
95         (syms_of_mule_charset): Revive builtin function
96         `save-charset-properties' when HAVE_LIBCHISE is defined.
97
98 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
99
100         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
101         instead of Vexec_directory.
102         (char_attribute_system_db_file): Likewise.
103
104 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * chartab.c (Fsave_char_attribute_table): Use
107         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
108         defined.
109
110         * mule-charset.c (save_charset_properties): Renamed from
111         `Fsave_charset_properties'; changed to non-Lisp function.
112         (syms_of_mule_charset): Abolish builtin function
113         `save-charset-properties'.
114
115 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * mule-charset.c (Fsave_charset_properties): New function when
118         HAVE_LIBCHISE is defined.
119         (syms_of_mule_charset): Add new builtin function
120         `save-charset-properties' when HAVE_LIBCHISE is defined.
121
122 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * chartab.c (Fput_char_attribute): Convert char-specs in value of
125         `{<-|->}ancient[^*]*' to characters and put reverse links.
126         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
127         for `{<-|->}ancient[^*]*'.
128
129 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
130
131         * chartab.c (Fput_char_attribute): Convert char-specs in value of
132         `{<-|->}original[^*]*' to characters and put reverse links.
133         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
134         for `{<-|->}original[^*]*'.
135
136 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
139
140 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
141
142         * mule-charset.c (Qsystem_char_id): New variable.
143
144         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
145         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
146
147 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * chartab.c (Fput_char_attribute): When processing a reference of
150         a character, put into the end of the reversed reference of each
151         target character.
152
153 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
154
155         * chartab.c (Q_same): Deleted.
156         (Q_same_of): Deleted.
157         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
158         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
159         for `{<-|->}same'.
160         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
161
162 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * chartab.c (Q_vulgar): Deleted.
165         (Q_vulgar_of): Deleted.
166         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
167         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
168         for `{<-|->}vulgar'.
169         (syms_of_chartab): Don't define `{<-|->}vulgar'.
170
171 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * chartab.c (Fput_char_attribute): Convert char-specs in value of
174         `{<-|->}wrong[^*]*' to characters and put reverse links.
175         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
176         for `{<-|->}wrong[^*]*'.
177
178 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
179
180         * chartab.c (Q_vulgar): New variable.
181         (Q_vulgar_of): New variable.
182         (Fput_char_attribute): Convert char-specs in value of
183         `{->|<-}vulgar' to characters and put reverse links.
184         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
185         for `{->|<-}vulgar'.
186         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
187
188 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * text-coding.c (decode_add_er_char): Must to quote prefix string
191         as regexp.
192
193 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * mule-charset.c (put_char_ccs_code_point): Store characters of
196         =ucs whose code_points >= 0xF0000.
197
198 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
201         CHISE.
202         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
203         CHISE.
204         (complex_vars_of_mule_charset): Add new coded-charset
205         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
206         builtin characters over 0xEFFFF.
207
208         * chartab.c (syms_of_chartab): Don't define symbol
209         `system-char-id' in every case.
210
211         * char-ucs.h (Qsystem_char_id): New extern variable.
212         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
213
214 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * text-coding.c (char_encode_utf8): Try to use entity-references
217         for U-000F0000 ...  U-0010FFFF.
218
219 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
220
221         * text-coding.c (ER_BUF_SIZE): New macro.
222         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
223         `er_buf'.
224         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
225         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
226
227 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
228
229         * chartab.c (find_char_feature_in_family): New function.
230         (Fchar_feature): Use `find_char_feature_in_family' with
231         `->identical', `<-subsumptive' and `<-denotational'.
232
233 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
234
235         * text-coding.c (char_encode_as_entity_reference): Allow prefix
236         within 8 characters; fix infinite loop.
237
238 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
239
240         * chartab.c (Q_same): New variable.
241         (Q_same_of): New variable.
242         (Fput_char_attribute): Convert char-specs in value of
243         `{->|<-}same' to characters and put reverse links.
244         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
245         for `{->|<-}same'.
246         (syms_of_chartab): Add new symbols `{->|<-}same'.
247
248 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
249
250         * chartab.c (Q_component): New variable.
251         (Q_component_of): Likewise.
252         (Fput_char_attribute): Convert char-specs in value of
253         `{->|<-}ideographic-component-forms' to characters and put reverse
254         links.
255         (syms_of_chartab): Add new symbols
256         `{->|<-}ideographic-component-forms'.
257
258 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
259
260         * chartab.c (Q_identical): New variable.
261         (Q_identical_from): New variable.
262         (Fchar_feature): Regard `->identical' as a feature to find
263         ancestors.
264         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
265         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
266         for `{->|<-}identical'.
267         (syms_of_chartab): Add new symbols `{->|<-}identical'.
268
269 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
270
271         * char-ucs.h (encode_char_2): New inline function.
272         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
273
274 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * chartab.c (Fput_char_attribute): Convert char-specs to
277         characters in value of `ideographic-structure'.
278         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
279         for `{<-|->}simplified(@...)'.
280         (Fdefine_char): bTry to use predefined character's id.
281
282 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
283
284         * fns.c (simplify_char_spec): Try to convert builtin chars to
285         defined chars.
286
287 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
288
289         * chartab.c (Fput_char_attribute): Convert char-specs in value of
290         `<-simplified[^*]*' to characters and put reverse links.
291
292 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * chartab.c (Q_subsumptive): Renamed from Q_unified.
295         (Q_subsumptive_from): Renamed from Q_unified_from.
296         (Fchar_feature): Use `Q_subsumptive_from' instead of
297         `Q_unified_from'.
298         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
299         `Q_unified'.
300         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
301         `<-unified' to `<-subsumptive'.
302
303 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
304
305         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
306         inheritance itself; fix typo; stop recursive search if cyclic
307         inheritance is found.
308
309 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * chartab.c (Q_denotational): New variable.
312         (Q_denotational_from): New variable.
313         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
314         (put_char_attribute): New function.
315         (Fput_char_attribute): Use `put_char_attribute'; regard
316         `->denotational' and `<-denotational' as same as `->unified' and
317         `<-unified'.
318         (syms_of_chartab): Add new symbols `->denotational' and
319         `<-denotational'.
320
321 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
324         `Fget_char_attribute'.
325         (Fchar_variants): Likewise.
326         (get_char_table): Likewise.
327         (Fchar_feature): New function.
328         (put_char_composition): Use `Fchar_feature' instead of
329         `Fget_char_attribute'.
330         (Fput_char_attribute): Likewise; don't put the target character
331         into its `->unified' value.
332         (syms_of_chartab): Add new builtin function `char-feature'.
333
334 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
335
336         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
337         `Fget_char_attribute'.
338         (char_encode_utf8): Likewise.
339
340         * chartab.h: Add an EXFUN for `Fchar_feature'.
341
342 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
343
344         * chartab.c (Vnext_defined_char_id): New variable.
345         (Fput_char_attribute): Accept characters in `->unified'.
346         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
347         new characters which are not related with builtin char-id ranges.
348         (vars_of_chartab): Add new variable `next-defined-char-id'.
349
350 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
351
352         * chartab.c (Q_unified): New variable.
353         (Q_unified_from): New variable.
354         (Fput_char_attribute): Add code for `->unified'.
355         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
356         XEmacs CHISE.
357
358 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
359
360         * mule-charset.c (decode_ccs_conversion): New function.
361         (decode_defined_char): Use `decode_ccs_conversion'.
362         (decode_builtin_char): Likewise.
363
364 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
365
366         * char-ucs.h: Change some charset-ids of private coded-charsets.
367
368 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
369
370         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
371         (char_encode_as_entity_reference): Likewise.
372         (decode_coding_big5): Modify for `decode_defined_char' and
373         `DECODE_CHAR'.
374         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
375         avoid compiler warning.
376         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
377
378         * mule-charset.c (decode_defined_char): Add new argument
379         `without_inheritance'.
380         (Fdecode_char): Add new optional argument `without_inheritance'.
381         (Fdecode_builtin_char): Modify for `Fdecode_char'.
382
383         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
384         (simplify_char_spec): Likewise.
385
386         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
387         setting.
388
389         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
390         (map_char_table): Likewise.
391         (Fdefine_char): Use `Fdecode_char' without inheritance.
392         (Ffind_char): Modify for `Fdecode_char'.
393
394         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
395
396         * char-ucs.h (decode_defined_char): Add new argument
397         `without_inheritance'.
398         (DECODE_CHAR): Likewise.
399         (MAKE_CHAR): Modify for `DECODE_CHAR'.
400
401 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * chartab.c (Vchise_system_db_directory): New variable.
404         (vars_of_chartab): Add new variable `chise-system-db-directory'.
405
406 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
407
408         * chartab.c: EXFUN `Fmount_char_attribute_table'.
409         (print_chartab_range): Don't define when `UTF2000' is defined.
410         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
411         `CHISE_DS_open'.
412
413 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
416         and optional argument `rehash' is specified, call
417         `open_chise_data_source_maybe' before
418         `chise_ds_foreach_char_feature_name' is called.
419
420 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * chartab.c (char_attribute_list_reset_map_func): New function
423         when HAVE_LIBCHISE is defined.
424         (Fchar_attribute_list): Add new optional argument `rehash' when
425         HAVE_LIBCHISE is defined.
426         (open_chise_data_source_maybe): Use "chise-db" instead of
427         "char-db".
428         (char_attribute_system_db_file): Likewise.
429         (Fload_char_attribute_table): Use
430         `chise_feature_foreach_char_with_value' instead of
431         `chise_char_feature_value_iterate'.
432
433 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
434
435         * chartab.c (Vchise_db_directory): New variable.
436         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
437
438 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
439
440         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
441         instead of HAVE_CHISE to specify using with libchise.
442
443         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
444
445         * chartab.h: Don't use HAVE_CHISE_CLIENT.
446
447         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
448         defined or HAVE_LIBCHISE_LIBCHISE is defined.
449         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
450         is defined.
451         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
452         HAVE_CHISE to specify using with libchise.
453         (syms_of_chartab): Don't define symbol `system-char-id' when
454         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
455
456 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
457
458         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
459         specify CHISE DB support.
460         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
461         of `char_attribute_system_db_file' to check feature DB file.
462
463         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
464         HAVE_CHISE_CLIENT to specify CHISE DB support.
465
466         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
467         specify CHISE DB support.
468         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
469         not defined.
470         (Freset_char_attribute_table): Use `chise_feature_setup_db'
471         instead of `char_attribute_system_db_file' to check feature DB
472         file.
473
474 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
477         `HAVE_CHISE_CLIENT'.
478
479 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
480
481         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
482         (Fsave_charset_mapping_table): Don't use
483         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
484
485         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
486         (HAVE_LIBCHISE): New macro.
487
488         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
489
490         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
491         (Fsave_char_attribute_table): Don't use
492         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
493
494 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
497         defined.
498         (save_uint16_byte_table): Likewise.
499         (save_byte_table): Likewise.
500         (char_table_get_db): Use `chise_ds_load_char_feature_value'
501         instead of `chise_char_load_feature_value'.
502         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
503
504 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * chartab.h (struct Lisp_Char_Table): Delete member
507         `feature_table' if CHISE is defined.
508
509         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
510         (Fcopy_char_table): Likewise.
511         (char_table_open_db_maybe): Likewise.
512         (char_table_close_db_maybe): Likewise.
513         (char_table_get_db): Likewise.
514         (Fmount_char_attribute_table): Likewise.
515         (Fload_char_attribute_table): Likewise.
516
517 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * mule-charset.c (load_char_decoding_entry_maybe): Use
520         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
521         `chise_ccs_decode'.
522
523 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
524
525         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
526         instead of `chise_open_data_source'.
527         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
528         `chise_ds_close'.
529
530 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
531
532         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
533         instead of `chise_ds_open_feature_table'.
534         (char_table_close_db_maybe): Don't use `chise_ft_close'.
535
536 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * mule-charset.c (Fsave_charset_mapping_table): Use
539         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
540         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
541         `chise_ccs_sync' instead of `chise_ccst_close'.
542         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
543
544         * chartab.c (open_chise_data_source_maybe): Modify for
545         `chise_open_data_source'.
546         (char_table_open_db_maybe): Modify for
547         `chise_ds_open_feature_table'.
548
549 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
550
551         * mule-charset.c (load_char_decoding_entry_maybe): Use
552         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
553         `chise_ccst_close'.
554
555 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
556
557         * mule-charset.c (Fsave_charset_mapping_table): Use
558         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
559         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
560         `chise_dt_put_char' and `chise_dt_close'.
561         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
562         `chise_ccs_decode' and `chise_ccst_close' instead of
563         `chise_ds_open_decoding_table', `chise_dt_get_char' and
564         `chise_dt_close'.
565
566         * chartab.c (char_table_get_db): Use
567         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
568         (load_char_attribute_table_map_func): Modify for
569         `chise_char_feature_value_iterate'.
570         (Fload_char_attribute_table): Use
571         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
572
573 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
574
575         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
576
577 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
578
579         * chartab.c (put_char_table): Modify for inherited coded-charsets
580         in XEmacs CHISE.
581
582 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
583
584         * chartab.c (Fput_char_table_map_function): Fixed.
585         (word_boundary_p): Don't check charset in XEmacs CHISE.
586
587 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
588
589         * mule-charset.c (Fsave_charset_mapping_table): Use
590         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
591         instead of `chise_open_decoding_table'; refer
592         `default_chise_data_source'; use `chise_dt_close' instead of
593         `chise_close_decoding_table'.
594         (load_char_decoding_entry_maybe): Likewise.
595
596         * chartab.c (default_chise_data_source): New variable when `CHISE'
597         is defined.
598         (Fcopy_char_table): `ct->ds' is deleted.
599         (open_chise_data_source_maybe): New function.
600         (Fclose_char_data_source): New function.
601         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
602         use `chise_ds_open_feature_table' instead of
603         `chise_open_feature_table'.
604         (char_table_close_db_maybe): Use `chise_ft_close' instead of
605         `chise_close_feature_table'; `cit->ds' is deleted.
606         (syms_of_chartab): Add new builtin function
607         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
608
609         * chartab.h (default_chise_data_source): New extern variable.
610         (open_chise_data_source_maybe): New prototype.
611         (struct Lisp_Char_Table): Delete `ds'.
612
613 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
614
615         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
616         `CHISE' is defined.
617
618 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
619
620         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
621         not defined; add code for non-libchise setting.
622         (char_table_close_db_maybe): Likewise.
623         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
624         defined.
625         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
626         even if `CHISE' is not defined.
627         (Freset_char_attribute_table): Likewise.
628         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
629         `char_table_close_db_maybe' even if `CHISE' is not defined; use
630         `char_table_get_db'.
631         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
632         `char_table_close_db_maybe' even if `CHISE' is not defined.
633
634 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
635
636         * chartab.c (char_table_open_db_maybe): New function.
637         (char_table_close_db_maybe): New function.
638         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
639         (Freset_char_attribute_table): Likewise.
640         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
641         `char_table_close_db_maybe'.
642         (Fload_char_attribute_table): Likewise.
643
644 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
645
646         * chartab.c: Don't include <chise.h> because it is included in
647         chartab.h.
648         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
649         defined.
650         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
651         `CHISE' is defined.
652         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
653         `CHISE' is defined.
654         (Fclose_char_attribute_table): Close `ct->feature_table' and
655         `ct->ds' when `CHISE' is defined.
656         (Freset_char_attribute_table): Likewise.
657         (load_char_attribute_maybe): Use `cit->ds' and
658         `cit->feature_table' when `CHISE' is defined.
659         (Fload_char_attribute_table): Likewise.
660
661         * chartab.h: Include <chise.h> when `CHISE' is defined.
662         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
663         when `CHISE' is defined.
664
665 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
666
667         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
668         is defined.
669         (char_table_description): Likewise.
670         (Fmake_char_table): Likewise.
671         (Fcopy_char_table): Likewise.
672         (Fmount_char_attribute_table): Likewise.
673         (Fclose_char_attribute_table): Likewise.
674         (Freset_char_attribute_table): Likewise.
675         (load_char_attribute_maybe): Likewise.
676         (Fload_char_attribute_table): Likewise.
677
678         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
679         defined.
680
681 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
682
683         * chartab.c (load_char_attribute_table_map_func): New function
684         when CHISE is defined.
685         (Qload_char_attribute_table_map_function): Don't define when CHISE
686         is defined.
687         (Fload_char_attribute_table_map_function): Likewise.
688         (Fload_char_attribute_table): Use libchise when `CHISE' is
689         defined.
690         (syms_of_chartab): Don't define
691         `load-char-attribute-table-map-function' when CHISE is defined.
692
693 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
694
695         * chartab.c: Include <chise.h> when `CHISE' is defined.
696         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
697
698 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
699
700         * mule-charset.c (charset_code_point): Fix problem when searching
701         in mother CCS fails with `defined_only' mode.
702
703 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
704
705         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
706         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
707         (put_char_composition): Likewise.
708         (Fput_char_attribute): Likewise.
709         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
710
711 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
712
713         * chartab.c (Q_ucs): Deleted.
714         (Fput_char_attribute): Don't refer `->ucs'.
715         (Fdefine_char): Likewise.
716         (Ffind_char): Likewise.
717         (syms_of_chartab): Delete `->ucs'.
718
719 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
720
721         * mule-charset.c (Qmap_cns11643_2): Renamed from
722         `Qchinese_cns11643_2'.
723         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
724         `chinese-cns11643-2'.
725         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
726         `=cns11643-2'.
727
728 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
729
730         * mule-charset.c (Qmap_cns11643_1): Renamed from
731         `Qchinese_cns11643_1'.
732         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
733         `chinese-cns11643-1'.
734         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
735         `=cns11643-1'.
736
737 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
738
739         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
740         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
741         `chinese-gb12345'.
742         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
743         `=gb12345'.
744
745 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
746
747         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
748         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
749         `chinese-gb2312'.
750         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
751         `=gb2312'.
752
753 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
754
755         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
756         (syms_of_mule_charset): Add new symbol `=big5' instead of
757         `chinese-big5'.
758         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
759
760 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
761
762         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
763         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
764         `korean-ksc5601'.
765         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
766         `=ks-x1001'.
767
768 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
769
770         * mule-charset.c (Qmap_jis_x0212): Renamed from
771         `Qjapanese_jisx0212'.
772         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
773         `japanese-jisx0212'.
774         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
775         `=jis-x0212'.
776
777 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
778
779         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
780         `Qjapanese_jisx0208'.
781         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
782         of `japanese-jisx0208'.
783         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
784         `=jis-x0208-1983'.
785
786 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
787
788         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
789         `Qjapanese_jisx0208_1978'.
790         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
791         of `japanese-jisx0208-1978'.
792         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
793         `=jis-x0208-1978'.
794
795 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
796
797         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
798         only for XEmacs CHISE.
799
800 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
801
802         * char-ucs.h: Compact non-ISO-IR charset-ids.
803         (LEADING_BYTE_UCS): Changed to -177.
804         (LEADING_BYTE_CONTROL_1): Changed to -77.
805         (LEADING_BYTE_UCS_BMP): Changed to -176.
806         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
807
808 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
809
810         * mule-charset.c (Qiso_ir): New variable.
811         (Fmake_charset): Recognise new property `iso-ir'.
812         (syms_of_mule_charset): Add new symbol `iso-ir'.
813
814 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
815
816         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
817         n to -n; charset-id of non ISO-IR sets are changed to positive
818         numbers.
819
820 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
821
822         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
823         for &MCS-XXXXXXXX; values.
824
825 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
826
827         * mule.c (Vxemacs_chise_version): Renamed from
828         `Vutf_2000_version'.
829         (vars_of_mule): Add new variable `xemacs-chise-version'; define
830         `utf-2000-version' as an alias for `xemacs-chise-version'.
831
832 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
833
834         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
835         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
836         defined.
837
838         * config.h.in (CHISE): New macro.
839
840 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
841
842         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
843         of `ucs'.
844         (Qmap_ucs): New variable.
845         (syms_of_mule_charset): Add new symbol `=ucs'.
846         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
847
848         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
849         (simplify_char_spec): Likewise.
850
851         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
852
853         * char-ucs.h (Qmap_ucs): New extern variable.
854
855 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
858         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
859         don't define it when UTF2000 is not defined.
860         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
861         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
862         when UTF2000 is not defined.
863         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
864         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
865
866 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
867
868         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
869
870         * mule-charset.c (Vcharset_ucs_gb): Deleted.
871         (Qucs_gb): Deleted.
872         (syms_of_mule_charset): Delete `ucs-gb'.
873         (complex_vars_of_mule_charset): Likewise.
874
875 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
876
877         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
878
879         * mule-charset.c (Vcharset_ucs_cns): Deleted.
880         (Qucs_cns): Deleted.
881         (syms_of_mule_charset): Delete `ucs-cns'.
882         (complex_vars_of_mule_charset): Likewise.
883
884 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
887
888         * mule-charset.c (Vcharset_ucs_jis): Deleted.
889         (Qucs_jis): Deleted.
890         (syms_of_mule_charset): Delete `ucs-jis'.
891         (complex_vars_of_mule_charset): Likewise.
892
893 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
894
895         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
896
897         * mule-charset.c (Vcharset_ucs_ks): Deleted.
898         (Qucs_ks): Deleted.
899         (syms_of_mule_charset): Delete `ucs-ks'.
900         (complex_vars_of_mule_charset): Likewise.
901
902 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
903
904         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
905         (Qideograph_daikanwa_2): Deleted.
906         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
907         (complex_vars_of_mule_charset): Likewise.
908
909         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
910         (LEADING_BYTE_DAIKANWA_1): Deleted.
911         (LEADING_BYTE_DAIKANWA_2): Deleted.
912         (MIN_CHAR_DAIKANWA): Deleted.
913         (MAX_CHAR_DAIKANWA): Deleted.
914
915 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
916
917         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
918         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
919         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
920
921         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
922         (Vcharset_ideograph_daikanwa): Deleted.
923         (Qideograph_hanziku_{1..12}): Deleted.
924         (Qideograph_daikanwa): Deleted.
925         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
926         Vcharset_ideograph_daikanwa.
927         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
928         `ideograph-hanziku-{1..12}'.
929         (complex_vars_of_mule_charset): Likewise.
930
931 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
932
933         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
934
935         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
936         (Qideograph_gt_pj_{1..11}): Deleted.
937         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
938         (complex_vars_of_mule_charset): Likewise.
939
940 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
941
942         * mule-charset.c (Vcharset_ucs_big5): Deleted.
943         (Vcharset_ideograph_gt): Deleted.
944         (Qucs_big5): Deleted.
945         (Qideograph_gt): Deleted.
946         (syms_of_mule_charset): Delete symbol `ucs-big5' and
947         `ideograph-gt'.
948         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
949         and `ideograph-gt'.
950
951         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
952         (LEADING_BYTE_GT): Deleted.
953         (MIN_CHAR_GT): Deleted.
954         (MAX_CHAR_GT): Deleted.
955
956 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
957
958         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
959
960 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
961
962         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
963         (save_uint16_byte_table): Likewise.
964         (save_byte_table): Likewise; convert values by it.
965         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
966         for `ideographic-structure'.
967         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
968         as the filter for `ideographic-structure'.
969
970 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
971
972         * chartab.c (put_char_composition): New function.
973         (Fput_char_attribute): Use `put_char_composition'; use
974         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
975
976         * fns.c (simplify_char_spec): New function.
977         (char_ref_simplify_spec): New function.
978         (Fchar_refs_simplify_char_specs): New function.
979         (syms_of_fns): Add new builtin function
980         `char-refs-simplify-char-specs'.
981
982 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
983
984         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
985         (Qideograph_cbeta): Deleted.
986         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
987         (complex_vars_of_mule_charset): Likewise.
988
989         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
990         (MIN_CHAR_CBETA): Comment out.
991         (MAX_CHAR_CBETA): Likewise.
992
993 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
994
995         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
996         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
997         CHISE client feature.
998
999 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1000
1001         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1002
1003 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1004
1005         * mule-charset.c (charset_lookup_description_1): Use
1006         `NUM_LEADING_BYTES' in UTF-2000.
1007
1008 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1009
1010         * char-ucs.h (GC_CHARSETP): Deleted.
1011
1012 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1013
1014         * char-ucs.h (MAX_CHAR_GT): Updated.
1015
1016 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1017
1018         * text-coding.c: Sync with XEmacs 21.4.10.
1019
1020 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1021
1022         * mule-charset.c (Vcharset_china3_jef): Deleted.
1023         (Qchina3_jef): Deleted.
1024         (syms_of_mule_charset): Don't define `china3-jef'.
1025         (complex_vars_of_mule_charset): Likewise.
1026
1027         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1028         (MIN_CHAR_CHINA3_JEF): Comment out.
1029         (MAX_CHAR_CHINA3_JEF): Comment out.
1030
1031 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1032
1033         * mule-charset.c (Vcharset_ucs_gb): New variable.
1034         (Qucs_gb): New variable.
1035         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1036         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1037
1038         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1039
1040 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1041
1042         * mule-charset.c (charset_code_point): if a coded-charset has a
1043         final-byte, don't inherit the builtin range of the mother CCS.
1044
1045 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1046
1047         * mule-charset.c (charset_code_point): Fix problem about
1048         inheritance.
1049
1050 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1051
1052         * mule-charset.c (decode_builtin_char): Reorganized.
1053
1054 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1055
1056         * text-coding.c (char_encode_as_entity_reference): Modify for
1057         `charset_code_point'.
1058         (char_encode_shift_jis): Likewise.
1059         (char_encode_big5): Likewise.
1060         (char_encode_utf8): Likewise.
1061         (char_encode_iso2022): Likewise.
1062
1063         * mule-charset.c (charset_code_point): Add new argument
1064         `defined_only'.
1065         (Fencode_char): Add new optional argument `defined_only'.
1066
1067         * chartab.c (put_char_table): Modify for `charset_code_point'.
1068
1069         * char-ucs.h (charset_code_point): Add new argument
1070         `defined_only'.
1071         (encode_char_1): Modify for `charset_code_point'.
1072
1073 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1074
1075         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1076         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1077
1078 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1079
1080         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1081         (Qjis_x0208): Likewise.
1082         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1083         XCHARSET_FINAL(charset).
1084         (charset_code_point): Modify condition for final-byte based
1085         builtin-chars.
1086         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1087         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1088         in UTF-2000; specify `=jis-x0208' as the mother of
1089         `japanese-jisx0208-1978', `japanese-jisx0208' and
1090         `japanese-jisx0208-1990' in UTF-2000.
1091
1092 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1093
1094         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1095
1096 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * text-coding.c (decode_coding_utf16): Support UTF-16.
1099         (char_encode_utf16): Fixed.
1100
1101 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1102
1103         * text-coding.c (Qutf16): New variable in MULE.
1104         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1105         (Fcoding_system_type): Add `utf-16' in MULE.
1106         (struct detection_state): Add a structure for utf16 in MULE.
1107         (detect_coding_type): Setup st->utf16.mask in MULE.
1108         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1109         MULE.
1110         (reset_encoding_stream): Use `char_encode_utf16' and
1111         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1112         (detect_coding_utf16): New function [incomplete].
1113         (decode_coding_utf16): New function [support only UCS-2].
1114         (char_encode_utf16): New function.
1115         (char_finish_utf16): New function.
1116         (syms_of_file_coding): Add new symbol `utf-16'; setup
1117         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1118
1119         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1120         UTF-2000.
1121         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1122         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1123
1124 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1125
1126         * chartab.c (put_char_table): When a charset is specified as a
1127         range in UTF-2000, don't support builtin characters.
1128
1129 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1130
1131         * mule-charset.c (decode_defined_char): Don't refer external
1132         database if Qunbound or Qnil are found.
1133         (Fsave_charset_mapping_table): Don't define it if
1134         HAVE_CHISE_CLIENT is not defined.
1135         (Freset_charset_mapping_table): New function.
1136         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1137         found in external database.
1138         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1139         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1140         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1141
1142 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1143
1144         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1145         not.
1146
1147 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1148
1149         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1150         Q_lowercase, Q_uppercase in UTF-2000.
1151
1152         * chartab.c (get_char_table): Add special code for the standard
1153         case table to use character attribute `->downcase' and
1154         `->uppercase' for case operations in UTF-2000.
1155
1156         * casetab.c (Qflippedcase): New variable in UTF-2000.
1157         (Q_lowercase): Likewise.
1158         (Q_uppercase): Likewise.
1159         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1160         and `->uppercase' in UTF-2000.
1161         (complex_vars_of_casetab): Assign attribute name `downcase' to
1162         downcase and CANON table of Vstandard_case_table in UTF-2000;
1163         assign attribute name `flippedcase' to upcase and EQV table of
1164         Vstandard_case_table in UTF-2000.
1165
1166 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1167
1168         * text-coding.c (decode_add_er_char): Support isolated-chars.
1169         (char_encode_as_entity_reference): Likewise.
1170
1171 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1172
1173         * emacs.c (Vutf_2000_lisp_directory): New variable.
1174         (Vconfigure_utf_2000_lisp_directory): Likewise.
1175         (complex_vars_of_emacs): Add new variable
1176         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1177
1178 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1179
1180         * char-ucs.h (DECODE_CHAR): Delete special code for
1181         `chinese-big5-1' and `chinese-big5-2'.
1182
1183         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1184         (Qbig5_2): Likewise.
1185         (decode_defined_char): Support CONVERSION_BIG5_1 and
1186         CONVERSION_BIG5_2.
1187         (decode_builtin_char): Likewise.
1188         (charset_code_point): Likewise.
1189         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1190         'conversion in UTF-2000.
1191         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1192         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1193         `chinese-big5-2' as children of `chinese-big5'.
1194
1195         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1196         (CONVERSION_BIG5_2): New macro.
1197
1198 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1199
1200         * text-coding.c (char_encode_big5): Support entity-reference.
1201
1202 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1203
1204         * text-coding.c (char_encode_as_entity_reference): New function.
1205         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1206
1207 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1208
1209         * text-coding.c (decode_coding_big5): Support entity-reference
1210         decoding feature.
1211
1212 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1213
1214         * text-coding.c (allocate_coding_system): Initialize initial
1215         charsets for CODESYS_UTF8.
1216         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1217         charset-g2 for CODESYS_UTF8.
1218         (decode_coding_utf8): Use charset-g0.
1219         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1220         to force variants to map to UCS.
1221
1222 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1223
1224         * text-coding.c (Qutf_8_mcs): New variable.
1225         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1226         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1227         instead of `utf-8' in UTF-2000.
1228
1229 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1230
1231         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1232         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1233         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1234         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1235         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1236         CONVERSION_96x96x96x96 are introduced.
1237         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1238         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1239         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1240
1241         * char-ucs.h (CONVERSION_94): New macro.
1242         (CONVERSION_96): New macro.
1243         (CONVERSION_94x94): New macro.
1244         (CONVERSION_96x96): New macro.
1245         (CONVERSION_94x94x94): New macro.
1246         (CONVERSION_96x96x96): New macro.
1247         (CONVERSION_94x94x94x60): New macro.
1248         (CONVERSION_94x94x94x94): New macro.
1249         (CONVERSION_96x96x96x96): New macro.
1250
1251 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1252
1253         * chartab.c (Vcharacter_variant_table): Deleted.
1254         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1255         of `Vcharacter_variant_table'.
1256         (Fput_char_attribute): Likewise.
1257         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1258         (complex_vars_of_chartab): Likewise.
1259
1260 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1261
1262         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1263
1264         * fns.c (Qideographic_structure): New variable.
1265         (Qkeyword_char): New variable.
1266         (ids_format_unit): New function.
1267         (Fideographic_structure_to_ids): New function.
1268         (syms_of_fns): Add new symbols `ideographic-structure' and
1269         `:char'; add new builtin function `ideographic-structure-to-ids'.
1270
1271         * data.c (Fchar_ref_p): New function.
1272         (syms_of_data): Add new builtin function `char-ref-p'.
1273
1274         * chartab.h: Add an EXFUN for `Ffind_char'.
1275
1276 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1277
1278         * text-coding.c (Vcharacter_composition_table): Deleted.
1279         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1280         in every UTF-2000.
1281
1282         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1283         UTF-2000.
1284         (Vcharacter_composition_table): Deleted.
1285         (Fget_composite_char): Use the implementation for external-DB
1286         support in every UTF-2000.
1287         (Fput_char_attribute): Likewise.
1288         (char_attribute_system_db_file): Don't define if external-DB
1289         feature is not available.
1290         (Fsave_char_attribute_table): Likewise.
1291         (Fmount_char_attribute_table): Likewise.
1292         (Fclose_char_attribute_table): Likewise.
1293         (Freset_char_attribute_table): Likewise.
1294         (Fload_char_attribute_table): Likewise.
1295         (syms_of_chartab): Don't define `save-char-attribute-table',
1296         `mount-char-attribute-table', `reset-char-attribute-table',
1297         `close-char-attribute-table' and `load-char-attribute-table' if
1298         external-DB feature is not available.
1299         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1300
1301 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1302
1303         * text-coding.c (Qcomposition): Add extern if external-DB feature
1304         is supported.
1305         (Vcharacter_composition_table): Don't add extern if external-DB
1306         feature is supported.
1307         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1308         character composition rule if external-DB feature is supported.
1309
1310         * chartab.c (Vcharacter_composition_table): Don't define if
1311         external-DB feature is supported.
1312         (Qcomposition): New variable.
1313         (Fget_composite_char): New implementation for external-DB support.
1314         (Fput_char_attribute): Use `composition' property of each
1315         character instead of `Vcharacter_composition_table' to store
1316         character-composition rules if external-DB feature is supported.
1317         (syms_of_chartab): Add new symbol `composition'.
1318         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1319         external-DB feature is supported.
1320
1321 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1322
1323         * chartab.c (Vchar_db_stingy_mode): New variable.
1324         (load_char_attribute_maybe): Close database if
1325         Vchar_db_stingy_mode is not NIL.
1326         (Fload_char_attribute_table_map_function): Use
1327         `get_char_id_table_0' instead of `get_char_id_table'.
1328         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1329
1330         * chartab.h (get_char_id_table_0): New inline function.
1331         (get_char_id_table): Use `get_char_id_table_0'.
1332
1333 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1334
1335         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1336         and `COMPOSE_ADD_CHAR'.
1337         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1338
1339 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1340
1341         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1342         instead of `DECODE_ADD_UCS_CHAR'.
1343         (COMPOSE_ADD_CHAR): Likewise.
1344
1345 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1346
1347         * text-coding.c (decode_flush_er_chars): New inline function.
1348         (decode_add_er_char): New function.
1349         (decode_coding_utf8): Use `decode_flush_er_chars' and
1350         `decode_add_er_char'.
1351
1352 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1353
1354         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1355         done before `decode_output_utf8_partial_char'.
1356
1357         * mule-charset.c (complex_vars_of_mule_charset): Specify
1358         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1359         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1360
1361 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1362
1363         * mule-charset.c (decode_defined_char): New function; search
1364         mother.
1365         (decode_builtin_char): Don't search mother if
1366         XCHARSET_MAX_CODE(charset) == 0.
1367         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1368         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1369         (Fdecode_char): Use `decode_defined_char' instead of
1370         `DECODE_DEFINED_CHAR'.
1371         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1372         mother of `Vcharset_ucs_jis'.
1373
1374         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1375         instead of `DECODE_DEFINED_CHAR'.
1376
1377         * char-ucs.h (decode_defined_char): Renamed from
1378         `DECODE_DEFINED_CHAR'; changed to normal function.
1379         (DECODE_CHAR): Use `decode_defined_char' instead of
1380         `DECODE_DEFINED_CHAR'.
1381
1382         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1383
1384 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1385
1386         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1387
1388         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1389         variable.
1390         (Quse_entity_reference): New variable.
1391         (Qd): New variable.
1392         (Qx): New variable.
1393         (QX): New variable.
1394         (coding_system_description): Add description for
1395         `ccs_priority_list'.
1396         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1397         (allocate_coding_system): Initialize `ccs_priority_list' in
1398         UTF-2000.
1399         (Fmake_coding_system): Add description about
1400         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1401         (codesys).
1402         (Fcoding_system_property): Accept `disable-composition' and
1403         `use-entity-reference' in UTF-2000.
1404         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1405         in UTF-2000.
1406         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1407         (decode_coding_utf8): Decode entity-reference if
1408         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1409         (char_encode_utf8): Encode non-Unicode characters as
1410         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1411         (str->codesys).
1412         (syms_of_file_coding): Add new symbols `use-entity-reference',
1413         `d', `x', `X'.
1414         (vars_of_file_coding): Add new variable
1415         `coded-charset-entity-reference-alist'.
1416         (complex_vars_of_file_coding): Declare `disable-composition' and
1417         `use-entity-reference' to be coding-system-properties in UTF-2000.
1418
1419         * file-coding.h (struct Lisp_Coding_System): Add new member
1420         `use_entity_reference' and `ccs_priority_list'.
1421         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1422         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1423         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1424
1425 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1426
1427         * chartab.c (save_uint8_byte_table): Don't clear the table.
1428         (save_uint16_byte_table): Likewise.
1429         (save_byte_table): Likewise.
1430         (Fmount_char_attribute_table): New function.
1431         (syms_of_chartab): Add new builtin function
1432         `mount-char-attribute-table'.
1433
1434 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435
1436         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1437         "w+" mode.
1438         (load_char_decoding_entry_maybe): Open database as read-only mode.
1439
1440         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1441         open database as "w+" mode.
1442         (load_char_attribute_maybe): Open database as read-only mode.
1443         (Fload_char_attribute_table): Likewise.
1444
1445 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1446
1447         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1448         (char_table_description): Delete member `db_file'.
1449         (Fmake_char_table): Don't refer `ct->db_file'.
1450         (Fcopy_char_table): Likewise.
1451         (Fsave_char_attribute_table): Likewise.
1452         (Fclose_char_attribute_table): Likewise.
1453         (Freset_char_attribute_table): Likewise.
1454         (load_char_attribute_maybe): Likewise.
1455         (Fload_char_attribute_table): Likewise.
1456
1457         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1458
1459 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1460
1461         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1462         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1463         `ct->db' is living.
1464         (load_char_attribute_maybe): Likewise.
1465         (Fload_char_attribute_table): Likewise.
1466
1467 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1468
1469         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1470         `ct->db_file' unconditionally.
1471
1472 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1473
1474         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1475         UTF-2000.
1476         (char_table_description): Add description for `db_file' and `db'
1477         in UTF-2000.
1478         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1479         UTF-2000.
1480         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1481         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1482         (Fclose_char_attribute_table): New function.
1483         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1484         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1485         and `cit->db'.
1486         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1487         (syms_of_chartab): Add new builtin function
1488         `Fclose_char_attribute_table'.
1489
1490 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1491
1492         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1493         `db' in UTF-2000.
1494         (load_char_attribute_maybe): Change interface.
1495         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1496
1497 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1498
1499         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1500
1501 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502
1503         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1504         instead of `DECODE_CHAR' for mother; don't use special code for
1505         chinese-big5 to use code space of chinese-big5-1 and
1506         chinese-big5-2.
1507         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1508         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1509
1510         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1511         (MAX_CHAR_BIG5_CDP): Revival.
1512
1513 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514
1515         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1516         the XLFD registry-encoding name of `chinese-big5'.
1517
1518 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1519
1520         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1521         (Qchinese_big5_cdp): Deleted.
1522         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1523         (complex_vars_of_mule_charset): Delete coded-charset
1524         `chinese-big5-cdp'.
1525
1526         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1527         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1528         `CHARSET_ID_OFFSET - n' for private CCS.
1529         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1530         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1531         of `MIN_LEADING_BYTE'.
1532         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1533         `(CHARSET_ID_OFFSET - 97)'.
1534         (MIN_CHAR_BIG5_CDP): Deleted.
1535         (MAX_CHAR_BIG5_CDP): Deleted.
1536
1537 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1540
1541 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1542
1543         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1544         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1545         chartab.c].
1546
1547         * chartab.c (Vutf_2000_version): Moved to mule.c.
1548         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1549
1550 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1551
1552         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1553         when HAVE_CHISE_CLIENT is not defined.
1554
1555         * mule.c (vars_of_mule): Provide feature `chise' when
1556         HAVE_CHISE_CLIENT is defined.
1557
1558 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1559
1560         * config.h.in (UTF2000): Add comment.
1561         (HAVE_CHISE_CLIENT): New macro.
1562
1563 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1566         CONSP.
1567         (Fput_char_attribute): Likewise.
1568         (char_attribute_system_db_file): Encode file-name of attribute.
1569         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1570         the initial value.
1571
1572 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1573
1574         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1575         (Fsave_charset_mapping_table): Use
1576         `char_attribute_system_db_file'.
1577         (load_char_decoding_entry_maybe): Likewise.
1578
1579         * chartab.h (Qsystem_char_id): New external variable.
1580         (char_attribute_system_db_file): New prototype.
1581
1582         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1583         (char_attribute_system_db_file): New function.
1584         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1585         (Freset_char_attribute_table): Likewise.
1586         (load_char_attribute_maybe): Likewise.
1587         (Fload_char_attribute_table): Likewise.
1588         (syms_of_chartab): Add new symbol `system-char-id'.
1589
1590 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1591
1592         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1593         `XCHARSET_GRAPHIC(ccs)'.
1594
1595 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596
1597         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1598
1599 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1600
1601         * chartab.c (Q_ucs_variants): New variable.
1602         (syms_of_chartab): Add new symbol `->ucs-variants'.
1603         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1604         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1605         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1606
1607         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1608
1609         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1610         `HAVE_DATABASE' is defined.
1611         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1612         `HAVE_DATABASE' is defined.
1613
1614 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1615
1616         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1617         attribute-table.
1618         (Freset_char_attribute_table): New function.
1619         (syms_of_chartab): Add new builtin function
1620         `reset-char-attribute-table'.
1621
1622 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1623
1624         * chartab.c (load_char_attribute_maybe): Don't make directories.
1625
1626 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1627
1628         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1629
1630         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1631         for decoding-table.
1632
1633 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1634
1635         * mule-charset.c (Fsave_charset_mapping_table): Use
1636         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1637
1638         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1639         instead of `XCHARSET_CHARS'.
1640
1641 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1642
1643         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1644         (XCHARSET_BYTE_SIZE): Likewise.
1645
1646         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1647         mule-charset.c].
1648         (XCHARSET_BYTE_SIZE): Likewise.
1649
1650 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1651
1652         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1653         data-directory to store database.
1654         (Fsave_char_attribute_table): Likewise.
1655         (load_char_attribute_maybe): Likewise.
1656         (Fload_char_attribute_table): Likewise.
1657
1658 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1659
1660         * mule-charset.c (Fsave_charset_mapping_table): New function.
1661         (syms_of_mule_charset): Add new builtin function
1662         `save-charset-mapping-table'.
1663
1664 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1665
1666         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1667         (get_ccs_octet_table): New inline function.
1668         (put_ccs_octet_table): Likewise.
1669         (decoding_table_put_char): Use `get_ccs_octet_table' and
1670         `put_ccs_octet_table'.
1671         (decoding_table_remove_char): Use `decoding_table_put_char'.
1672         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1673
1674         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1675         into encoding_table.
1676         (make_charset): Use Qunbound instead Qnil as initial value of
1677         decoding_table.
1678
1679 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1680
1681         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1682         element is Qunloaded.
1683         (map_over_uint16_byte_table): Likewise.
1684         (map_over_byte_table): Likewise.
1685         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1686         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1687         database support, load encoding-table of the specified
1688         coded-charset if it is not loaded yet.
1689         (save_uint8_byte_table): New function of UTF-2000 with external
1690         database support.
1691         (save_uint16_byte_table): Likewise.
1692         (save_byte_table): Likewise.
1693         (Fput_char_attribute): Don't store value into external database
1694         even if the external database feature is supported in UTF-2000;
1695         set `attribute' as name of char-table if the external database
1696         feature is supported.
1697         (Fsave_char_attribute_table): New function in UTF-2000.
1698         (syms_of_chartab): Add new builtin function
1699         `save-char-attribute-table' in UTF-2000.
1700
1701 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1702
1703         * chartab.c (char_attribute_table_to_put): New variable in
1704         UTF-2000.
1705         (Qput_char_table_map_function): Likewise.
1706         (value_to_put): Likewise.
1707         (Fput_char_table_map_function): New function in UTF-2000.
1708         (put_char_table): Use `Fmap_char_attribute' for
1709         CHARTAB_RANGE_CHARSET in UTF-2000.
1710         (Fput_char_attribute): Store symbol instead of string in
1711         `XCHAR_TABLE_NAME (table)'.
1712         (load_char_attribute_maybe): Likewise.
1713         (syms_of_chartab): Add new symbol/function
1714         `put-char-table-map-function'.
1715
1716 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1717
1718         * database.h: Add new EXFUN for `Fmap_database'.
1719
1720         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1721         (syms_of_database): Likewise.
1722
1723         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1724         UTF-2000.
1725         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1726         (XCHAR_TABLE_UNLOADED): Likewise.
1727
1728         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1729         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1730         HAVE_DATABASE is defined.
1731         (char_attribute_table_to_load): New variable of UTF-2000 with
1732         external database support.
1733         (Qload_char_attribute_table_map_function): Likewise.
1734         (Fload_char_attribute_table_map_function): New function of
1735         UTF-2000 with external database support.
1736         (Fload_char_attribute_table): New function of UTF-2000.
1737         (Fmap_char_attribute): Call Fload_char_attribute_table if
1738         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1739         (syms_of_chartab): Add new symbol and function
1740         `load-char-attribute-table-map-function' in UTF-2000 with external
1741         database support; add new function `load-char-attribute-table' in
1742         UTF-2000.
1743
1744 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1745
1746         * chartab.h (load_char_attribute_maybe): New prototype for
1747         UTF-2000 with DATABASE support.
1748         (get_char_id_table): Use `load_char_attribute_maybe' if
1749         HAVE_DATABASE is defined.
1750
1751         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1752         with DATABASE support.
1753
1754 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1755
1756         * chartab.c (Fput_char_attribute): Use S-expression as key of
1757         external database.
1758
1759         * chartab.h (get_char_id_table): Use S-expression as key of
1760         external database.
1761
1762 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1763
1764         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1765         if an element is not loaded, load the corresponding attributes
1766         from an external database.
1767         (map_over_uint16_byte_table): Likewise.
1768         (map_over_byte_table): Likewise.
1769         (map_char_table): Modify for `map_over_uint8_byte_table',
1770         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1771         element is not loaded, load the corresponding attributes from an
1772         external database.
1773         (Fput_char_attribute): Change initial values to Qunloaded.
1774
1775         * chartab.h (get_char_id_table): If a character attribute is not
1776         loaded and the attribute value is not found in an external
1777         database, store Qunbound as the attribute value.
1778
1779 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1780
1781         * chartab.c (BT_UINT8_unloaded): New macro.
1782         (UINT8_VALUE_P): Accept Qunloaded.
1783         (UINT8_ENCODE): Likewise.
1784         (UINT8_DECODE): Likewise.
1785         (BT_UINT16_unloaded): New macro.
1786         (UINT16_VALUE_P): Accept Qunloaded.
1787         (UINT16_ENCODE): Likewise.
1788         (UINT16_DECODE): Likewise.
1789         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1790         BT_UINT16_unloaded.
1791         (mark_char_table): Mark `ct->name' in UTF-2000.
1792         (char_table_description): Add `name' in UTF-2000.
1793         (Fmake_char_table): Initialize `ct->name'.
1794         (Fcopy_char_table): Copy `ct->name'.
1795         (Fput_char_attribute): Store value into an external database if
1796         HAVE_DATABASE is defined.
1797
1798         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1799         UTF-2000.
1800         (CHAR_TABLE_NAME): New macro in UTF-2000.
1801         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1802         (get_char_id_table): Try to read an external database if Qunloaded
1803         is stored in a table.
1804
1805         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1806         Qunloaded.
1807
1808 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1809
1810         * database.h: Add EXFUN definitions for Fopen_database,
1811         Fput_database, Fget_database and Fclose_database.
1812
1813         * data.c (Qunloaded): New variable in UTF-2000.
1814
1815         * lisp.h (Qunloaded): New variable in UTF-2000.
1816
1817 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1818
1819         * mule-charset.c (put_char_ccs_code_point): Modify for
1820         `decoding_table_remove_char' and `decoding_table_put_char'.
1821         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1822
1823         * char-ucs.h (decoding_table_remove_char): Change arguments to
1824         hide decoding_table vector.
1825         (decoding_table_put_char): Likewise.
1826
1827 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1828
1829         * mule-charset.c (decoding_table_remove_char): Moved to
1830         char-ucs.h.
1831         (decoding_table_put_char): Likewise.
1832
1833         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1834         from mule-charset.c].
1835         (decoding_table_remove_char): New inline function [moved from
1836         mule-charset.c].
1837         (decoding_table_put_char): Likewise.
1838
1839 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1840
1841         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1842         extension.
1843
1844 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1845
1846         * mule-charset.c (decode_builtin_char): Support mother charsets.
1847
1848 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1849
1850         * mule-charset.c (Q94x94x60): New variable.
1851         (charset_code_point): Support conversion `94x94x60'.
1852         (Fmake_charset): Likewise.
1853         (syms_of_mule_charset): Add new symbol `94x94x60'.
1854
1855         * char-ucs.h (CONVERSION_94x94x60): New macro.
1856
1857 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1858
1859         * mule-charset.c (charset_code_point): Unify code about
1860         `code-offset'.
1861
1862 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1863
1864         * mule-charset.c (charset_code_point): Merge code about builtin
1865         characters into code about mother charsets; don't use
1866         `range_charset_code_point'.
1867         (range_charset_code_point): Deleted.
1868
1869 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1870
1871         * mule-charset.c (Qcode_offset): New variable.
1872         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1873         `max-code'; accept new property `code-offset'.
1874         (syms_of_mule_charset): Add new symbol `code-offset'.
1875
1876 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1877
1878         * mule-charset.c (range_charset_code_point): Fixed.
1879
1880 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1881
1882         * mule-charset.c (decode_builtin_char): Change semantics of
1883         code-offset of coded-charset.
1884         (charset_code_point): Likewise.
1885         (range_charset_code_point): Likewise.
1886         (complex_vars_of_mule_charset): Modify for the change.
1887
1888 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1889
1890         * mule-charset.c (Fencode_char): Reverse arguments.
1891
1892         * mule-charset.c (charset_code_point): Fixed.
1893
1894 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1895
1896         * mule-charset.c (Vcharset_mojikyo): Deleted.
1897         (Vcharset_mojikyo_2022_1): Deleted.
1898         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1899         (Qmin_code): New variable in UTF-2000.
1900         (Qmax_code): Likewise.
1901         (Qmother): Likewise.
1902         (Qconversion): Likewise.
1903         (Q94x60): Likewise.
1904         (Qmojikyo): Deleted.
1905         (Qmojikyo_2022_1): Deleted.
1906         (Qmojikyo_pj_{1..22}): Deleted.
1907         (mark_charset): Mark `cs->mother'.
1908         (charset_description): Add description for `mother'.
1909         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1910         new arguments `mother' and `conversion'; use
1911         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1912         (charset_code_point): Moved from char-ucs.h; support `mother'
1913         charset feature.
1914         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1915         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1916         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1917         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1918         allow 2 as the value of `graphic' in UTF-2000; add new properties
1919         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1920         require `final' in UTF-2000; modify for `make_charset'.
1921         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1922         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1923         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1924         (Fencode_char): New function.
1925         (syms_of_mule_charset): Add new builtin function `encode-char' in
1926         UTF-2000; add new symbols `min-code', `max-code', `mother',
1927         `conversion' and `94x60'; delete symbols `mojikyo',
1928         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1929         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1930         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1931         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1932
1933         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1934         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1935
1936         * char-ucs.h (Vcharset_mojikyo): Deleted.
1937         (Vcharset_mojikyo_2022_1): Deleted.
1938         (LEADING_BYTE_MOJIKYO): Deleted.
1939         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1940         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1941         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1942         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1943         add new member `mother'; add new member `conversion'.
1944         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1945         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1946         (CHARSET_MOTHER): New macro.
1947         (CHARSET_CONVERSION): New macro.
1948         (CONVERSION_IDENTICAL): New macro.
1949         (CONVERSION_94x60): New macro.
1950         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1951         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1952         (XCHARSET_MOTHER): New macro.
1953         (XCHARSET_CONVERSION): New macro.
1954         (MIN_CHAR_MOJIKYO): Deleted.
1955         (MAX_CHAR_MOJIKYO): Deleted.
1956         (DECODE_MOJIKYO_2022): Deleted.
1957         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1958         (charset_code_point): Changed to non-inline function.
1959         (encode_char_1): Use `charset_code_point'.
1960         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1961
1962 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1963
1964         * lread.c (read_compiled_function): Fix prototype.
1965         (read_vector): Likewise.
1966
1967 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968
1969         * lrecord.h (struct lrecord_header): Delete `older'.
1970         (set_lheader_implementation): Delete code for `older'.
1971         (set_lheader_older_implementation): Deleted.
1972         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1973         (OLDER_RECORD_P): Deleted.
1974         (OLDER_RECORD_HEADER_P): Deleted.
1975         (alloc_older_lcrecord): Deleted.
1976         (alloc_older_lcrecord_type): Deleted.
1977
1978         * alloc.c (all_older_lcrecords): Deleted.
1979         (alloc_older_lcrecord): Deleted.
1980         (disksave_object_finalization_1): Delete code for older objects.
1981         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1982         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1983
1984 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1985
1986         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1987         instead of `make_older_vector'.
1988         (put_char_ccs_code_point): Likewise.
1989         (mark_charset): Mark `cs->decoding_table'.
1990         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1991
1992         * lisp.h (make_older_vector): Deleted.
1993         (make_vector_newer): Deleted.
1994
1995         * config.h.in (HAVE_GGC): Deleted.
1996
1997         * alloc.c (make_older_vector): Deleted.
1998         (make_vector_newer_1): Deleted.
1999         (make_vector_newer): Deleted.
2000
2001 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2002
2003         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2004         (Qideograph_daikanwa_2): New variable.
2005         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2006         (complex_vars_of_mule_charset): Add new coded-charset
2007         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2008         `LEADING_BYTE_DAIKANWA'.
2009
2010         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2011         (LEADING_BYTE_DAIKANWA_1): New macro.
2012         (LEADING_BYTE_DAIKANWA_2): New macro.
2013         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2014
2015 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2016
2017         * mule-charset.c (complex_vars_of_mule_charset): Change
2018         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2019         the second revised version.
2020
2021 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2022
2023         * mule-charset.c (Vcharset_ucs_smp): New variable.
2024         (Vcharset_ucs_sip): New variable.
2025         (Qucs_smp): New variable.
2026         (Qucs_sip): New variable.
2027         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2028         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2029         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2030         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2031         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2032         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2033
2034         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2035         (LEADING_BYTE_UCS_SIP): New macro.
2036         (MIN_CHAR_SMP): New macro.
2037         (MAX_CHAR_SMP): New macro.
2038         (MIN_CHAR_SIP): New macro.
2039         (MAX_CHAR_SIP): New macro.
2040
2041 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2042
2043         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2044         utf-2000.
2045
2046 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2047
2048         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2049         value; don't store value into `encoding_table' of `Lisp_Charset'.
2050         (mark_charset): `encoding_table' was deleted.
2051         (charset_description): Likewise.
2052         (make_charset): Likewise.
2053         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2054         `put_char_ccs_code_point'.
2055
2056         * chartab.h (Fput_char_attribute): New EXFUN.
2057
2058         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2059         is unified with normal symbol space.
2060         (Fget_char_attribute): Likewise.
2061         (Fput_char_attribute): Likewise; behavior of
2062         `put_char_ccs_code_point' is changed.
2063
2064         * char-ucs.h: Include "elhash.h".
2065         (Vchar_attribute_hash_table): New external variable.
2066         (struct Lisp_Charset): Delete `encoding_table'.
2067         (CHARSET_ENCODING_TABLE): New implementation; refer
2068         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2069         `Lisp_Charset'.
2070
2071 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2072
2073         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2074         (cs) == 0.
2075
2076 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2077
2078         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2079         `chinese-big5'.
2080
2081 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2082
2083         * chartab.c (uint8_byte_table_description): New constant.
2084         (uint8-byte-table): Use `uint8_byte_table_description'.
2085         (uint16_byte_table_description): New constant.
2086         (uint16-byte-table): Use `uint16_byte_table_description'.
2087
2088 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2091         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2092
2093 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094
2095         * mule-charset.c (Vcharset_ucs_ks): New variable.
2096         (Qucs_ks): New variable.
2097         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2098         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2099
2100         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2101
2102 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2103
2104         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2105         (Fdecode_char): Likewise.
2106
2107         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2108         chartab.h.
2109         (Fdefine_char): Modify for Fdecode_char.
2110         (Ffind_char): Likewise.
2111
2112         * mule-charset.c (Fdecode_char): Add new optional argument
2113         `defined-only'.
2114         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2115
2116 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2117
2118         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2119         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2120         (allocate_coding_system): Initialize initial-charsets of
2121         CODESYS_BIG5 in XEmacs UTF-2000.
2122         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2123         CODESYS_BIG5 in XEmacs UTF-2000.
2124         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2125         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2126
2127         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2128         variables.
2129         (Qideograph_hanziku_{1 .. 12}): Likewise.
2130         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2131         .. 12}'.
2132         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2133         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2134         `ideograph-hanziku-{1 .. 12}'.
2135
2136         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2137         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2138         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2139         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2140         (DECODE_DEFINED_CHAR): New inline function.
2141         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2142
2143 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2144
2145         * mule-charset.c (Vcharset_china3_jef): Renamed from
2146         `Vcharset_japanese_jef_china3'.
2147         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2148         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2149         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2150         (syms_of_mule_charset): Rename `china3-jef' from
2151         `japanese-jef-china3'.
2152         (complex_vars_of_mule_charset): Likewise; rename
2153         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2154
2155         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2156         `LEADING_BYTE_JEF_CHINA3'.
2157         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2158         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2159
2160 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2161
2162         * mule-charset.c (encode_builtin_char_1): Comment out special code
2163         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2164
2165         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2166         (MAX_CHAR_MOJIKYO_0): Comment out.
2167         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2168         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2169         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2170         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2171
2172 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2173
2174         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2175         (Qideograph_cbeta): New variable.
2176         (encode_builtin_char_1): Comment out special code for
2177         coded-charset `mojikyo' and `japanese-jef-china3'.
2178         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2179         (complex_vars_of_mule_charset): Add new coded-charset
2180         `ideograph-cbeta'.
2181
2182         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2183         (MIN_CHAR_CBETA): New macro.
2184         (MAX_CHAR_CBETA): New macro.
2185
2186 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2187
2188         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2189         (LEADING_BYTE_JEF_CHINA3): New macro.
2190         (MIN_CHAR_JEF_CHINA3): New macro.
2191         (MAX_CHAR_JEF_CHINA3): Likewise.
2192         (DECODE_CHAR): Fixed.
2193
2194 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2195
2196         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2197         (Qjapanese_jef_china3): New variable.
2198         (encode_builtin_char_1): Support `japanese-jef-china3'.
2199         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2200         (complex_vars_of_mule_charset): Add new coded-charset
2201         `japanese-jef-china3'.
2202
2203 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2204
2205         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2206         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2207         94^4, 96^3, 96^4, 128^n and 256^n set.
2208         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2209         (map_char_table): Likewise.
2210
2211 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2212
2213         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2214         UTF-2000.
2215
2216 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2217
2218         * chartab.h (get_char_id_table): New inline function.
2219
2220         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2221         function.
2222
2223 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2224
2225         * chartab.h (decode_char_table_range): New prototype in XEmacs
2226         UTF-2000.
2227         (put_char_id_table): New inline function in XEmacs UTF-2000.
2228
2229         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2230         function.
2231         (decode_char_table_range): Delete static declaration in XEmacs
2232         UTF-2000.
2233
2234 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2235
2236         * chartab.c (put_char_id_table): Use `put_char_table'.
2237
2238 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2239
2240         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2241         (map_over_uint16_byte_table): Likewise.
2242         (map_over_byte_table): Likewise.
2243         (map_char_table): Modify for `map_over_uint8_byte_table',
2244         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2245         UTF-2000.
2246
2247 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * chartab.c (struct map_char_table_for_charset_arg): New
2250         structure.
2251         (map_char_table_for_charset_fun): New function.
2252         (map_char_table): Use `map_char_table' for encoding_table of
2253         `range->charset'.
2254
2255 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2256
2257         * chartab.c (map_char_table): Check a character is found in
2258         range->charset instead of non default value is defined in
2259         char-table when range is CHARTAB_RANGE_ROW.
2260
2261 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2262
2263         * chartab.c (map_char_id_table): Deleted.
2264         (Fmap_char_attribute): Use `map_char_table' instead of
2265         `map_char_id_table'.
2266
2267 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2268
2269         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2270         UTF-2000.
2271         (update_syntax_table): Deleted in XEmacs UTF-2000.
2272
2273         * syntax.c (find_defun_start): Use `syntax_table' instead of
2274         `mirror_syntax_table' in XEmacs UTF-2000.
2275         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2276         UTF-2000.
2277         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2278         XEmacs UTF-2000.
2279         (Fmatching_paren): Likewise.
2280         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2281         in XEmacs UTF-2000.
2282         (find_start_of_comment): Likewise.
2283         (find_end_of_comment): Likewise.
2284         (Fforward_comment): Likewise.
2285         (scan_lists): Likewise.
2286         (char_quoted): Likewise.
2287         (Fbackward_prefix_chars): Likewise.
2288         (scan_sexps_forward): Likewise.
2289         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2290         (update_syntax_table): Likewise.
2291
2292         * search.c (skip_chars): Use `syntax_table' instead of
2293         `mirror_syntax_table' in XEmacs UTF-2000.
2294         (wordify): Likewise.
2295         (Freplace_match): Likewise.
2296
2297         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2298         `mirror_syntax_table' in XEmacs UTF-2000.
2299         (WORDCHAR_P_UNSAFE): Likewise.
2300         (re_match_2_internal): Likewise.
2301
2302         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2303         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2304
2305         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2306         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2307
2308         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2309         XEmacs UTF-2000.
2310
2311         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2312         UTF-2000.
2313         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2314         (char_table_description): Delete `mirror_table' in XEmacs
2315         UTF-2000.
2316         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2317         UTF-2000.
2318         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2319         (Fcopy_char_table): Likewise.
2320         (put_char_table): Don't call `update_syntax_table' in XEmacs
2321         UTF-2000.
2322
2323         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2324         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2325         (casify_region_internal): Likewise.
2326
2327         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2328
2329         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2330         `mirror_syntax_table' in XEmacs UTF-2000.
2331
2332         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2333         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2334         (Fexpand_abbrev): Likewise.
2335
2336 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2337
2338         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2339
2340 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2341
2342         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2343         (map_over_uint16_byte_table): Likewise.
2344         (map_over_byte_table): Likewise.
2345         (get_char_id_table): Refer `cit->default_value'.
2346         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2347         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2348         of character-id ranges.
2349         (mark_char_table): Mark `ct->default_value'.
2350         (char_table_description): Add `default_value'.
2351         (fill_char_table): Use `default_value'.
2352         (decode_char_table_range): Decode `nil' as
2353         `CHARTAB_RANGE_DEFAULT'.
2354         (get_char_id_table): Refer `cit->default_value'.
2355         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2356         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2357         temporary hack; check value of char-table is bound or not.
2358         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2359
2360         * chartab.h (struct Lisp_Char_Table): Add new member
2361         `default_value' in XEmacs UTF-2000.
2362         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2363         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2364         UTF-2000.
2365
2366 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2367
2368         * chartab.h (Lisp_Char_ID_Table): Deleted.
2369
2370         * chartab.c (char_table_description): Fix typo.
2371         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2372         `Lisp_Char_ID_Table'.
2373
2374 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2375
2376         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2377         `CHAR_ID_TABLE_P'.
2378
2379         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2380         `CHAR_ID_TABLE_P'.
2381
2382         * chartab.h (XCHAR_ID_TABLE): Deleted.
2383         (XSETCHAR_ID_TABLE): Deleted.
2384         (CHAR_ID_TABLE_P): Deleted.
2385
2386         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2387         `CHAR_ID_TABLE_P'.
2388         (Fget_composite_char): Likewise.
2389         (put_char_table): Likewise.
2390         (add_char_attribute_alist_mapper): Fixed.
2391         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2392         `CHAR_ID_TABLE_P'.
2393         (Fget_char_attribute): Likewise.
2394         (Fget_char_attribute): Likewise.
2395         (Fmap_char_attribute): Likewise.
2396
2397         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2398         `CHAR_ID_TABLE_P'.
2399         (encode_char_1): Likewise.
2400
2401 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2402
2403         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2404         `XCHAR_ID_TABLE'.
2405
2406         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2407         instead of `XCHAR_ID_TABLE'.
2408         (remove_char_ccs): Likewise.
2409
2410         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2411         `XCHAR_ID_TABLE'.
2412         (Fget_composite_char): Likewise.
2413         (Fchar_variants): Likewise.
2414         (put_char_table): Likewise.
2415         (add_char_attribute_alist_mapper): Likewise.
2416         (Fchar_attribute_alist): Likewise.
2417         (Fget_char_attribute): Likewise.
2418         (Fput_char_attribute): Likewise.
2419         (Fmap_char_attribute): Likewise.
2420         (Fmap_char_attribute): Likewise.
2421
2422         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2423         `XCHAR_ID_TABLE'.
2424         (encode_char_1): Likewise.
2425
2426 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2427
2428         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2429         `Lisp_Char_ID_Table'.
2430         (mark_char_id_table): Deleted.
2431         (print_char_id_table): Likewise.
2432         (char_id_table_equal): Likewise.
2433         (char_id_table_hash): Likewise.
2434         (char_id_table_description): Likewise.
2435         (char_id_table): Likewise.
2436         (make_char_id_table): Use `Fmake_char_table' and
2437         `fill_char_table'.
2438         (get_char_id_table): Use `Lisp_Char_Table' instead of
2439         `Lisp_Char_ID_Table'.
2440         (put_char_id_table): Likewise.
2441         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2442         `XCHAR_ID_TABLE'.
2443         (Fremove_char_attribute): Likewise.
2444         (syms_of_chartab): Don't define type `char-id-table'.
2445
2446         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2447         (char_id_table): Likewise.
2448         (GC_CHAR_ID_TABLE_P): Likewise.
2449         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2450         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2451         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2452         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2453         (get_char_id_table): Use `Lisp_Char_Table' instead of
2454         `Lisp_Char_ID_Table'.
2455         (put_char_id_table_0): Likewise.
2456         (put_char_id_table): Likewise.
2457
2458 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2459
2460         * chartab.h: Lisp_Byte_Table related codes are moved from
2461         chartab.h.
2462
2463         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2464
2465 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2466
2467         * chartab.h: Don't include "chartab.h".
2468         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2469         (Lisp_Char_ID_Table): Likewise.
2470         (char_id_table): Likewise.
2471         (XCHAR_ID_TABLE): Likewise.
2472         (XSETCHAR_ID_TABLE): Likewise.
2473         (CHAR_ID_TABLE_P): Likewise.
2474         (GC_CHAR_ID_TABLE_P): Likewise.
2475         (get_char_id_table): Likewise.
2476
2477         * char-ucs.h: Include "chartab.h".
2478         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2479         (Lisp_Char_ID_Table): Likewise.
2480         (char_id_table): Likewise.
2481         (XCHAR_ID_TABLE): Likewise.
2482         (XSETCHAR_ID_TABLE): Likewise.
2483         (CHAR_ID_TABLE_P): Likewise.
2484         (GC_CHAR_ID_TABLE_P): Likewise.
2485         (get_char_id_table): Likewise.
2486
2487 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2488
2489         * chartab.c (copy_uint8_byte_table): New function.
2490         (copy_uint16_byte_table): New function.
2491         (copy_byte_table): New function.
2492         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2493         characters to call.
2494         (map_over_uint16_byte_table): Likewise.
2495         (map_over_byte_table): Likewise.
2496         (get_byte_table): Move prototype to chartab.h.
2497         (put_byte_table): Likewise.
2498         (put_char_id_table_0): Moved to chartab.h.
2499         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2500         (char_table_entry_equal): Likewise.
2501         (char_table_entry_hash): Likewise.
2502         (char_table_entry_description): Likewise.
2503         (char_table_entry): Likewise.
2504         (make_char_table_entry): Likewise.
2505         (copy_char_table_entry): Likewise.
2506         (get_non_ascii_char_table_value): Likewise.
2507         (map_over_charset_ascii): Likewise.
2508         (map_over_charset_control_1): Likewise.
2509         (map_over_charset_row): Likewise.
2510         (map_over_other_charset): Likewise.
2511         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2512         (print_char_table): Likewise.
2513         (char_table_equal): Likewise.
2514         (char_table_hash): Likewise.
2515         (char_table_description): Likewise.
2516         (fill_char_table): Likewise.
2517         (Fcopy_char_table): Likewise.
2518         (get_char_table): Likewise.
2519         (Fget_range_char_table): Likewise.
2520         (put_char_table): Likewise.
2521         (map_char_table): Likewise.
2522         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2523         UTF-2000.
2524
2525 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2526
2527         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2528         `Vauto_fill_chars' in XEmacs UTF-2000.
2529
2530         * chartab.h (get_byte_table): New prototype [moved from
2531         chartab.c].
2532         (put_byte_table): Likewise [moved from chartab.c].
2533         (put_char_id_table_0): New inline function [moved from chartab.c].
2534         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2535         (Lisp_Char_Table_Entry): Likewise.
2536         (char_table_entry): Likewise.
2537         (XCHAR_TABLE_ENTRY): Likewise.
2538         (XSETCHAR_TABLE_ENTRY): Likewise.
2539         (CHAR_TABLE_ENTRYP): Likewise.
2540         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2541         (NUM_ASCII_CHARS): Likewise.
2542         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2543         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2544
2545 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2546
2547         * chartab.c (get_char_id_table): Change interface.
2548         (put_char_id_table_0): New function.
2549         (put_char_id_table): Change interface; new implementation.
2550         (Fget_composite_char): Modify for interface change of
2551         `get_char_id_table'.
2552         (Fchar_variants): Likewise.
2553         (add_char_attribute_alist_mapper): Likewise.
2554         (Fchar_attribute_alist): Likewise.
2555         (Fget_char_attribute): Likewise.
2556         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2557         as same as character as the first argument like `put-char-table';
2558         modify for interface change of `put_char_id_table'.
2559         (Fremove_char_attribute): Modify for interface change of
2560         `put_char_id_table'.
2561
2562 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2563
2564         * text-coding.c: Sync up with XEmacs 21.2.41.
2565         (COMPOSE_ADD_CHAR): Modify for interface change of
2566         `get_char_id_table'.
2567
2568         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2569         change of `put_char_id_table'.
2570         (remove_char_ccs): Likewise.
2571
2572         * chartab.h (put_char_id_table): Change interface.
2573
2574         * char-ucs.h (get_char_id_table): Change interface.
2575         (charset_code_point): Modify for interface change of
2576         `get_char_id_table'.
2577         (encode_char_1): Likewise.
2578
2579 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580
2581         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2582         argument `ccs'.
2583         (map_over_uint16_byte_table): Likewise.
2584         (map_over_byte_table): Likewise.
2585         (map_char_id_table): Add new argument `range' like
2586         `map_char_table'.
2587         (Fmap_char_attribute): Add new argument `range' like
2588         `Fmap_char_table'.
2589
2590 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2591
2592         * chartab.c (map_over_uint8_byte_table): Change interface of
2593         mapping function to use struct chartab_range instead of Emchar.
2594         (map_over_uint16_byte_table): Likewise.
2595         (map_over_byte_table): Likewise.
2596         (map_char_id_table): Likewise.
2597         (struct slow_map_char_id_table_arg): Deleted.
2598         (slow_map_char_id_table_fun): Deleted.
2599         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2600         function `slow_map_char_table_fun' instead of struct
2601         `slow_map_char_id_table_arg' and function
2602         `slow_map_char_id_table_fun'.
2603
2604 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2605
2606         * mule-charset.c: Move char-it-table related codes to chartab.c.
2607         (Vutf_2000_version): Moved to chartab.c.
2608         (Fdefine_char): Likewise.
2609         (Ffind_char): Likewise.
2610         (syms_of_mule_charset): Move types `uint8-byte-table',
2611         `uint16-byte-table', `byte-table' and `char-id-table' to
2612         chartab.c; move functions `char_attribute_list,
2613         `find_char_attribute_table, `char_attribute_alist,
2614         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2615         `map_char_attribute, `define_char, `find_char, `char_variants and
2616         `get_composite_char to chartab.c; move symbols `=>ucs',
2617         `->decomposition', `compat', `isolated', `initial', `medial',
2618         `final', `vertical', `noBreak', `fraction', `super', `sub',
2619         `circle', `square', `wide', `narrow', `small' and `font' to
2620         chartab.c.
2621         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2622         setting codes for `Vcharacter_composition_table' and
2623         `Vcharacter_variant_table' to chartab.c.
2624         (complex_vars_of_mule_charset): Move setting code for
2625         `Vchar_attribute_hash_table' to chartab.c.
2626
2627         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2628         (make_char_id_table): New prototype.
2629         (put_char_id_table): Likewise.
2630         (Fget_char_attribute): Likewise.
2631
2632         * chartab.c: Move char-id-table related code from mule-charset.c.
2633         (Vutf_2000_version): Moved from mule-charset.c.
2634
2635         * char-ucs.h (Qucs): New external variable.
2636         (put_char_ccs_code_point): New prototype.
2637         (remove_char_ccs): Likewise.
2638
2639 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2640
2641         * mule-charset.c (Vcharset_ucs_jis): New variable.
2642         (Qucs_jis): Likewise.
2643         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2644         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2645
2646         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2647
2648 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649
2650         * mule-charset.c (map_over_uint8_byte_table): New function.
2651         (map_over_uint16_byte_table): Likewise.
2652         (map_over_byte_table): Likewise.
2653         (map_char_id_table): Likewise.
2654         (slow_map_char_id_table_fun): Likewise.
2655         (Fmap_char_attribute): Likewise.
2656         (syms_of_mule_charset): Add new function `map-char-attribute'.
2657
2658 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2659
2660         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2661         (syms_of_mule_charset): Add new function `find-char'.
2662
2663 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2664
2665         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2666         XEmacs UTF-2000.
2667         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2668         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2669         XEmacs UTF-2000.
2670         (complex_vars_of_mule_charset): Add new coded-charset
2671         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2672         `ideograph-gt-pj-*'.
2673
2674         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2675
2676 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2677
2678         * mule-charset.c (encode_builtin_char_1): Purge codes about
2679         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2680         {MIN|MAX}_CHAR_HEBREW.
2681         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2682         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2683
2684         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2685         (MAX_CHAR_GREEK): Purged.
2686         (MIN_CHAR_CYRILLIC): Purged.
2687         (MAX_CHAR_CYRILLIC): Purged.
2688         (MIN_CHAR_HEBREW): Commented out.
2689         (MAX_CHAR_HEBREW): Likewise.
2690
2691 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2692
2693         * mule-charset.c (Qto_ucs): New variable.
2694         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2695         (Fdefine_char): Likewise.
2696         (syms_of_mule_charset): Add new symbol `=>ucs'.
2697
2698 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2699
2700         * mule-charset.c (Fdecode_char): Fixed.
2701
2702 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2703
2704         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2705         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2706         "tcvn5712-1".
2707
2708 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2709
2710         * mule-charset.c (Vcharset_ucs_big5): New variable.
2711         (Qucs_big5): Likewise.
2712         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2713         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2714
2715         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2716
2717 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718
2719         * mule-charset.c (decode_builtin_char): Check Big5 code range
2720         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2721
2722 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2723
2724         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2725         (Qchinese_gb12345): Likewise.
2726         (Fdecode_builtin_char): Fixed.
2727         (syms_of_mule_charset): Add `chinese-gb12345'.
2728         (complex_vars_of_mule_charset): Add coded-charset
2729         `chinese-gb12345'.
2730
2731         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2732         (LEADING_BYTE_CHINESE_GB12345): New macro.
2733
2734 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2737         and `latin-viscii-upper' for `latin-viscii'.
2738
2739 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2740
2741         * mule-charset.c (Fdecode_builtin_char): Comment out
2742         regularization code for ISO-IR GR representation.
2743
2744 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2745
2746         * mule-charset.c (decode_builtin_char): New function; renamed from
2747         `make_builtin_char'; return -1 instead of signal.
2748         (Fdecode_builtin_char): Use `decode_builtin_char'.
2749
2750         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2751         `make_builtin_char'.
2752         (DECODE_CHAR): Use `decode_builtin_char' instead of
2753         `make_builtin_char'; use mapping table of `chinese-big5' for
2754         `chinese-big5-{1,2}'.
2755
2756 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2757
2758         * text-coding.c (char_encode_big5): New function.
2759         (char_finish_big5): Likewise.
2760         (reset_encoding_stream): Use `char_encode_big5' and
2761         `char_finish_big5' for CODESYS_BIG5.
2762         (mule_encode): Don't use `encode_coding_big5'.
2763         (encode_coding_big5): Deleted.
2764
2765 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2766
2767         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2768         0x81- in XEmacs UTF-2000.
2769         (detect_coding_big5): Likewise.
2770
2771 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2772
2773         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2774         generate character-id if the CCS property does not have
2775         corresponding predefined character.
2776         (make_builtin_char): Return -1 if corresponding predefined
2777         character is not found.
2778         (Fdecode_char): Return nil if corresponding character is not
2779         found.
2780         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2781         don't map to builtin ucs space.
2782
2783 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2784
2785         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2786         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2787
2788 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2789
2790         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2791         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2792         (Qideograph_gt): Likewise.
2793         (Qideograph_gt_pj_{1..11}): Likewise.
2794         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2795         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2796         `ideograph-gt-pj-11'.
2797         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2798         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2799         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2800
2801         * char-ucs.h (LEADING_BYTE_GT): New macro.
2802         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2803         (MIN_CHAR_GT): Likewise.
2804         (MAX_CHAR_GT): Likewise.
2805
2806 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2807
2808         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2809         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2810
2811         * doprnt.c (unsigned_int_converters): Add `c'.
2812         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2813
2814         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2815         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2816         `MIN_CHAR_MOJIKYO'.
2817         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2818         (MAX_CHAR_MOJIKYO_0): New macro.
2819         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2820
2821 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2822
2823         * mule-charset.c (Fdefine_char): Delete cemented out code.
2824         (encode_builtin_char_1): Modify for new allocation of builtin
2825         Mojikyo characters.
2826
2827         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2828
2829 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2830
2831         * mule-charset.c (Vcharset_ucs_cns): New variable.
2832         (Qucs_cns): New variable.
2833         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2834         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2835
2836 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2837
2838         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2839
2840 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2841
2842         * search.c (search_buffer): Make `charset_base_code' as
2843         character-id >> 6 to eliminate the corresponding last byte in
2844         UTF-8 representation [I'm not sure it is right thing].
2845         (boyer_moore): Likewise.
2846
2847 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2848
2849         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2850         representation in MULE.
2851
2852 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2853
2854         * text-coding.c (Fmake_coding_system): Use
2855         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2856         `EXTERNAL_PROPERTY_LIST_LOOP'.
2857
2858 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2859
2860         * text-coding.c (decode_output_utf8_partial_char): New function.
2861         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2862
2863 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2864
2865         * text-coding.c (decode_coding_utf8): Output original byte
2866         sequence if it is broken; change order of conditions.
2867
2868         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2869         of conditions.
2870
2871         * mb-multibyte.h (BYTE_ASCII_P):
2872         Use bit ops for char-signedness safety.
2873         (BYTE_C0_P): Use bit ops for char-signedness safety.
2874         (BYTE_C1_P): Use bit ops for char-signedness safety.
2875
2876         * character.h: (XCHAR_OR_CHAR_INT):
2877         Always use inline function.
2878         Remove redundant type checking assert() - XINT will abort quite
2879         nicely.
2880
2881 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2882
2883         * text-coding.c: (Fencode_shift_jis_char):
2884         (Fencode_big5_char):
2885         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2886         Replace 0 with '\0' when working with bytes.
2887         Replace initial "(" with "\(" in docstrings.
2888
2889         (Fmake_coding_system):
2890         When type is ccl and value is vector, register it with a proper
2891         symbol.  And checks whether the given ccl program is valid.
2892         (mule_decode): When calling ccl_driver, if src indicates
2893         NULL pointer, set an empty string instead.
2894         (mule_encode): Likewise.
2895
2896         (detect_eol_type):
2897         (detect_coding_sjis):
2898         (decode_coding_sjis):
2899         (detect_coding_big5):
2900         (decode_coding_big5):
2901         (detect_coding_ucs4):
2902         (decode_coding_ucs4):
2903         (detect_coding_utf8):
2904         (decode_coding_utf8):
2905         (detect_coding_iso2022):
2906         (decode_coding_iso2022):
2907         (decode_coding_no_conversion):
2908         (mule_decode):
2909         Make all detecting and decoding functions take an Extbyte * arg.
2910         (text_encode_generic):
2911         (encode_coding_big5):
2912         (encode_coding_no_conversion):
2913         (mule_encode):
2914         Make all encoding functions take a Bufbyte * arg.
2915         Use size_t instead of unsigned int for memory sizes.
2916         Only cast to unsigned char whenever dereferencing Extbyte *.
2917
2918         (struct lrecord_description fcd_description_1): Use countof.
2919         (complex_vars_of_file_coding):
2920         Use countof instead of sizeof.
2921         Use CHECK_NATNUM instead of CHECK_INT.
2922
2923 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2924
2925         * mule-charset.c (Fget_char_attribute): Add new optional argument
2926         `default-value'.
2927         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2928         (remove_char_ccs): Likewise.
2929
2930 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2931
2932         * text-coding.c (char_encode_shift_jis): New implementation in
2933         UTF-2000.
2934         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2935         ...)'.
2936
2937         * mule-charset.c (Vcharset_chinese_big5): New variable in
2938         UTF-2000.
2939         (Qchinese_big5): New variable in UTF-2000.
2940         (BIG5_SAME_ROW): New macro in UTF-2000.
2941         (make_builtin_char): Use builtin characters of
2942         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2943         characters of `Vcharset_chinese_big5'.
2944         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2945         (complex_vars_of_mule_charset): Add new coded-charset
2946         `chinese-big5' in UTF-2000.
2947
2948         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2949         (Vcharset_chinese_big5): New external variable declaration.
2950         (Vcharset_japanese_jisx0208_1990): Likewise.
2951
2952 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2953
2954         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2955         function.
2956         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2957
2958 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2959
2960         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2961         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2962         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2963         `mojikyo-pj-*'.
2964
2965 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2966
2967         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2968
2969 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2970
2971         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2972         to 0.17.
2973
2974 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2975
2976         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2977         for `CHARSET_BY_ATTRIBUTES'.
2978         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2979         `CHARSET_BY_ATTRIBUTES'.
2980
2981         * text-coding.c (struct decoding_stream): Rename member `CH' to
2982         `CPOS'.
2983         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2984         (decode_coding_sjis): Likewise.
2985         (decode_coding_big5): Likewise.
2986         (decode_coding_ucs4): Likewise.
2987         (decode_coding_utf8): Likewise.
2988         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2989         `CHARSET_BY_ATTRIBUTES'.
2990         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2991         `str->counter'; decode 3, 4 bytes sets.
2992         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2993         sets.
2994         (decode_coding_no_conversion): Use `str->cpos' instead of
2995         `str->ch'.
2996
2997         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2998         (Qmojikyo_2022_1): New variable.
2999         (make_charset): Don't use `CHARSET_TYPE_*'.
3000         (range_charset_code_point): Support coded-charset
3001         `mojikyo-2022-1'.
3002         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3003         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3004         `CHARSET_BY_ATTRIBUTES'.
3005         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3006         `CHARSET_BY_ATTRIBUTES'.
3007         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3008         (complex_vars_of_mule_charset): Add new coded-charset
3009         `mojikyo-2022-1'.
3010
3011         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3012         interface; changed to inline function.
3013
3014         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3015         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3016         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3017         (CHARSET_TYPE_94): Deleted.
3018         (CHARSET_TYPE_94X94): Deleted.
3019         (CHARSET_TYPE_96): Deleted.
3020         (CHARSET_TYPE_96X96): Deleted.
3021         (CHARSET_TYPE_128): Deleted.
3022         (CHARSET_TYPE_128X128): Deleted.
3023         (CHARSET_TYPE_256): Deleted.
3024         (CHARSET_TYPE_256X256): Deleted.
3025         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3026         to inline function.
3027         (DECODE_MOJIKYO_2022): New inline function.
3028         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3029         `Vcharset_mojikyo_2022_1'.
3030
3031 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3032
3033         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3034         instead of `EQ'.
3035         (put_byte_table): Likewise.
3036         (char_id_table_equal): Use `get_byte_table' [new implementation].
3037
3038 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3039
3040         * mule-charset.c: Include <limits.h> in UTF-2000.
3041         (BT_UINT8_MIN): New macro in UTF-2000.
3042         (BT_UINT8_MAX): New macro in UTF-2000.
3043         (BT_UINT8_t): New macro in UTF-2000.
3044         (BT_UINT8_nil): New macro in UTF-2000.
3045         (BT_UINT8_unbound): New macro in UTF-2000.
3046         (INT_UINT8_P): New inline function in UTF-2000.
3047         (UINT8_VALUE_P): New inline function in UTF-2000.
3048         (UINT8_ENCODE): New inline function in UTF-2000.
3049         (UINT8_DECODE): New inline function in UTF-2000.
3050         (mark_uint8_byte_table): New function in UTF-2000.
3051         (print_uint8_byte_table): New function in UTF-2000.
3052         (uint8_byte_table_equal): New function in UTF-2000.
3053         (uint8_byte_table_hash): New function in UTF-2000.
3054         (make_uint8_byte_table): New function in UTF-2000.
3055         (uint8_byte_table_same_value_p): New function in UTF-2000.
3056         (BT_UINT16_MIN): New macro in UTF-2000.
3057         (BT_UINT16_MAX): New macro in UTF-2000.
3058         (BT_UINT16_t): New macro in UTF-2000.
3059         (BT_UINT16_nil): New macro in UTF-2000.
3060         (BT_UINT16_unbound): New macro in UTF-2000.
3061         (INT_UINT16_P): New inline function in UTF-2000.
3062         (UINT16_VALUE_P): New inline function in UTF-2000.
3063         (UINT16_ENCODE): New inline function in UTF-2000.
3064         (UINT16_DECODE): New inline function in UTF-2000.
3065         (UINT8_TO_UINT16): New inline function in UTF-2000.
3066         (mark_uint16_byte_table): New function in UTF-2000.
3067         (print_uint16_byte_table): New function in UTF-2000.
3068         (uint16_byte_table_equal): New function in UTF-2000.
3069         (uint16_byte_table_hash): New function in UTF-2000.
3070         (make_uint16_byte_table): New function in UTF-2000.
3071         (uint16_byte_table_same_value_p): New function in UTF-2000.
3072         (print_byte_table): New function in UTF-2000.
3073         (byte-table): Use `print_byte_table' as printer.
3074         (make_byte_table): Delete second argument `older'.
3075         (byte_table_same_value_p): New function in UTF-2000.
3076         (copy_byte_table): Deleted.
3077         (get_byte_table): New function in UTF-2000.
3078         (put_byte_table): New function in UTF-2000.
3079         (print_char_id_table): New function in UTF-2000.
3080         (char-id-table): Use `print_char_id_table' as printer.
3081         (make_char_id_table): Delete second argument `older'.
3082         (get_char_id_table): Use `get_byte_table [new implementation].
3083         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3084         implementation].
3085         (Ffind_char_attribute_table): New function in UTF-2000.
3086         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3087         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3088         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3089         (syms_of_mule_charset): Add new function
3090         `find-char-attribute-table' in UTF-2000.
3091
3092         * lrecord.h (enum lrecord_type): Add
3093         `lrecord_type_uint16_byte_table' and
3094         `lrecord_type_uint8_byte_table'.
3095
3096         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3097         (Lisp_Uint8_Byte_Table): New type.
3098         (XUINT8_BYTE_TABLE): New macro.
3099         (XSETUINT8_BYTE_TABLE): New macro.
3100         (UINT8_BYTE_TABLE_P): New macro.
3101         (GC_UINT8_BYTE_TABLE_P): New macro.
3102         (struct Lisp_Uint16_Byte_Table): New structure.
3103         (Lisp_Uint16_Byte_Table): New type.
3104         (XUINT16_BYTE_TABLE): New macro.
3105         (XSETUINT16_BYTE_TABLE): New macro.
3106         (UINT16_BYTE_TABLE_P): New macro.
3107         (GC_UINT16_BYTE_TABLE_P): New macro.
3108
3109 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3110
3111         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3112         (Vcharacter_ideographic_strokes_table): Deleted.
3113         (Vcharacter_total_strokes_table): Deleted.
3114         (Vcharacter_morohashi_daikanwa_table): Deleted.
3115         (Vcharacter_decomposition_table): Deleted.
3116         (Qname): Deleted because it is duplicated.
3117         (Qideographic_radical): Deleted.
3118         (Qideographic_strokes): Deleted.
3119         (Qtotal_strokes): Deleted.
3120         (Qmorohashi_daikanwa): Deleted.
3121         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3122         `ideographic-radical', `ideographic-strokes', `total-strokes',
3123         `morohashi-daikanwa' and `->decomposition'.
3124         (Fget_char_attribute): Likewise.
3125         (Fput_char_attribute): Likewise; use `make-vector' instead of
3126         `make_older_vector' for `->decomposition' value.
3127         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3128         `ideograph-daikanwa'.
3129         (syms_of_mule_charset): Delete builtin symbols `name',
3130         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3131         `morohashi-daikanwa'.
3132         (vars_of_mule_charset): Don't setup
3133         `Vcharacter_ideographic_radical_table',
3134         `Vcharacter_ideographic_strokes_table',
3135         `Vcharacter_total_strokes_table',
3136         `Vcharacter_morohashi_daikanwa_table' and
3137         `Vcharacter_decomposition_table'.
3138
3139 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3140
3141         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3142         `make_older_vector', `make_vector_newer_1' and
3143         `make_vector_newer'.
3144
3145         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3146         `make_older_vector' and `make_vector_newer'.
3147
3148         * config.h.in (HAVE_GGC): New macro.
3149
3150 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3151
3152         * mule-charset.c (struct char_attribute_list_closure): New
3153         structure in UTF-2000.
3154         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3155         (Fchar_attribute_list): Likewise.
3156         (Fset_charset_mapping_table): Use `make_vector_newer'.
3157         (Fdecode_builtin_char): New function in UTF-2000.
3158         (syms_of_mule_charset): Add new function `char-attribute-list' and
3159         `decode-builtin-char' in UTF-2000.
3160
3161         * lisp.h (make_vector_newer): New prototype.
3162
3163         * alloc.c (make_vector_newer_1): New function.
3164         (make_vector_newer): New function.
3165
3166 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3167
3168         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3169         50100)'.
3170
3171 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3172
3173         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3174         (Vcharacter_attribute_table): Deleted.
3175         (Vcharacter_name_table): Deleted.
3176         (put_char_attribute): Deleted.
3177         (remove_char_attribute): Deleted.
3178         (struct char_attribute_alist_closure): New structure.
3179         (add_char_attribute_alist_mapper): New function.
3180         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3181         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3182         (Fget_char_attribute): Likewise.
3183         (Fput_char_attribute): Likewise.
3184         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3185         of `remove_char_attribute'.
3186         (Fdefine_char): Return character.
3187         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3188         and `Vcharacter_name_table'.
3189         (complex_vars_of_mule_charset): Likewise
3190         `Vchar_attribute_hash_table'.
3191
3192 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3193
3194         * character.h (CHARC_CHARSET): New macro.
3195         (CHARC_CHARSET_ID): New macro.
3196         (CHARC_CODE_POINT): New macro.
3197         (CHARC_COLUMNS): New macro.
3198         (CHARC_TO_CHAR): New inline function.
3199         (CHARC_EQ): New inline function.
3200         (CHARC_ASCII_EQ): New inline function.
3201         (CHARC_IS_SPACE): New inline function.
3202         (ASCII_TO_CHARC): New inline function.
3203
3204         * char-ucs.h (encode_char_2): Deleted.
3205         (ENCODE_CHAR): Use `encode_char_1' again.
3206         (breakup_char_1): Likewise.
3207         (CHAR_TO_CHARC): New inline function.
3208
3209         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3210
3211 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3212
3213         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3214         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3215         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3216         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3217         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3218         `CHARC_IS_SPACE'.
3219         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3220
3221         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3222         `CHARC_CODE_POINT'.
3223         (x_output_display_block): Use `CHARC_CHARSET' and
3224         `CHARC_ASCII_EQ'.
3225
3226         * redisplay-tty.c (tty_output_display_block): Use
3227         `CHARC_ASCII_EQ'.
3228         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3229
3230         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3231
3232         * insdel.c (find_charsets_in_charc_string): Use
3233         `CHARC_CHARSET_ID'.
3234         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3235         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3236         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3237         (convert_charc_string_into_malloced_string): Likewise.
3238
3239 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3240
3241         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3242         instead of <Emchar_dynarr *> for buf; use
3243         `convert_bufbyte_string_into_charc_dynarr' instead of
3244         `convert_bufbyte_string_into_emchar_dynarr'; use
3245         `find_charsets_in_charc_string' instead of
3246         `find_charsets_in_emchar_string'.
3247
3248         * redisplay.h:
3249         - Include "character.h".
3250         (struct rune): New member `cglyph'; delete member `chr'.
3251
3252         * redisplay.c (redisplay_text_width_charc_string): New function;
3253         delete `redisplay_text_width_emchar_string'.
3254         (rtw_charc_dynarr): New variable; renamed from
3255         `rtw_emchar_dynarr'.
3256         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3257         `rtw_emchar_dynarr'; use
3258         `convert_bufbyte_string_into_charc_dynarr' instead of
3259         `convert_bufbyte_string_into_emchar_dynarr'; use
3260         `redisplay_text_width_charc_string' instead of
3261         `redisplay_text_width_emchar_string'.
3262         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3263         instead of `rtw_emchar_dynarr'; use
3264         `convert_bufbyte_string_into_charc_dynarr' instead of
3265         `convert_bufbyte_string_into_emchar_dynarr'.
3266         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3267         `redisplay_text_width_charc_string' instead of
3268         `redisplay_text_width_emchar_string'.
3269         (create_text_block): Modify for <struct rune> change.
3270         (generate_formatted_string_db): Likewise.
3271         (create_string_text_block): Likewise.
3272         (pixel_to_glyph_translation): Likewise.
3273
3274         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3275         instead of <const Emchar *>.
3276         (x_text_width): Likewise.
3277         (x_output_display_block): Use <Charc_dynarr *> instead
3278         <Emchar_dynarr *>; modify for <structure rune> change.
3279         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3280         *>.
3281
3282         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3283         <const Emchar *>; use `charc_string_displayed_columns' instead of
3284         `emchar_string_displayed_columns'.
3285         (tty_output_display_block): Use <Charc_dynarr *> instead of
3286         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3287         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3288         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3289         `tty_output_emchar_dynarr_dynarr'.
3290         (tty_output_charc_dynarr): New function; delete
3291         `tty_output_charc_dynarr'.
3292
3293         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3294         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3295         <Emchar_dynarr *> for buf; use
3296         `convert_bufbyte_string_into_charc_dynarr' instead of
3297         `convert_bufbyte_string_into_emchar_dynarr'.
3298
3299         * frame.c (title_string_charc_dynarr): New variable; renamed from
3300         `title_string_emchar_dynarr'.
3301         (generate_title_string): Use `title_string_charc_dynarr' instead
3302         of `title_string_emchar_dynarr'; use
3303         `convert_charc_string_into_malloced_string' instead of
3304         `convert_emchar_string_into_malloced_string'.
3305         (init_frame): Use `title_string_charc_dynarr' instead of
3306         `title_string_emchar_dynarr'.
3307
3308         * console.h:
3309         - Include "character.h".
3310         (struct console_methods): Use <const Charc *> instead of <const
3311         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3312         <Emchar_dynarr *> in output_string_method.
3313
3314         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3315         <Emchar_dynarr *>.
3316
3317         * console-stream.c (stream_text_width): Use <const Charc *>
3318         instead of <const Emchar *>.
3319
3320         * character.h (Charc_dynarr): New type.
3321
3322         * char-ucs.h (structure Charc): New structure; define new type
3323         `Charc'.
3324
3325         * char-lb.h (DECODE_CHAR): New inline function.
3326         (encode_char_1): New inline function.
3327         (ENCODE_CHAR): New macro.
3328         (structure Charc): New structure; define new type `Charc'.
3329
3330         * char-1byte.h (Vcharset_control_1): New macro.
3331         (Vcharset_latin_iso8859_1): New macro.
3332         (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         * insdel.c (find_charsets_in_charc_string): New function; delete
3338         `find_charsets_in_emchar_string'.
3339         (charc_string_displayed_columns): New function; delete
3340         `emchar_string_displayed_columns'.
3341         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3342         `convert_bufbyte_string_into_emchar_dynarr'.
3343         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3344         `convert_charc_string_into_bufbyte_dynarr'.
3345         (convert_charc_string_into_malloced_string): New function; delete
3346         `convert_charc_string_into_malloced_string'.
3347
3348         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3349         `find_charsets_in_emchar_string'.
3350         (charc_string_displayed_columns): New prototype; delete
3351         `emchar_string_displayed_columns'.
3352         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3353         `convert_charc_string_into_bufbyte_dynarr'.
3354         (convert_charc_string_into_malloced_string): New prototype; delete
3355         `convert_charc_string_into_malloced_string'.
3356
3357 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3358
3359         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3360
3361 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3362
3363         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3364
3365         * char-ucs.h: Use <short> for <Charset_ID>.
3366
3367         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3368         <Charset_ID>.
3369
3370 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3371
3372         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3373         to 0.16.
3374
3375 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3376
3377         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3378         variable.
3379         (Qmorohashi_daikanwa): New variable.
3380         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3381         for `morohashi-daikanwa' attribute.
3382         (Fget_char_attribute): Likewise.
3383         (Fput_char_attribute): Likewise.
3384         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3385         has the same value of `ideograph-daikanwa'.
3386         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3387         (vars_of_mule_charset): Setup
3388         `Vcharacter_morohashi_daikanwa_table'.
3389
3390 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3391
3392         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3393         attributes.
3394         (add_charset_to_list_mapper): Add `key' instead of
3395         `XCHARSET_NAME (value)' to return aliases.
3396
3397 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3398
3399         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3400         variable.
3401         (Vcharacter_ideographic_strokes_table): New variable.
3402         (Qideographic_radical): New variable.
3403         (Qideographic_strokes): New variable.
3404         (Fchar_attribute_alist): Use
3405         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3406         attribute; use `Vcharacter_ideographic_strokes_table' for
3407         `ideographic-strokes' attribute.
3408         (Fget_char_attribute): Likewise.
3409         (Fput_char_attribute): Likewise.
3410         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3411         `ideographic-strokes'.
3412         (vars_of_mule_charset): Setup
3413         `Vcharacter_ideographic_radical_table' and
3414         `Vcharacter_ideographic_strokes_table'.
3415
3416 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3417
3418         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3419         (Qtotal_strokes): New variable.
3420         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3421         `total-strokes' attribute.
3422         (Fget_char_attribute): Likewise.
3423         (Fput_char_attribute): Likewise.
3424         (syms_of_mule_charset): Add new symbol `total-strokes'.
3425         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3426
3427 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3428
3429         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3430         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3431         are found.
3432         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3433         `->decomposition' attribute.
3434         (Fput_char_attribute): Likewise.
3435         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3436
3437 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3438
3439         * mule-charset.c (decoding_table_check_elements): New function.
3440         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3441
3442 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3443
3444         * mule-charset.c (Fset_charset_mapping_table): Use
3445         `put_char_ccs_code_point'.
3446
3447 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3448
3449         * mule-charset.c (decoding_table_put_char): New inline function.
3450         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3451
3452 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3453
3454         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3455         (XCHARSET_BYTE_SIZE): New macro.
3456         (decoding_table_remove_char): New inline function.
3457         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3458         `decoding_table_remove_char'.
3459         (remove_char_ccs): Use `decoding_table_remove_char'.
3460         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3461
3462 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3463
3464         * mule-charset.c (Vcharacter_name_table): New variable.
3465         (Qname): New variable.
3466         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3467         attribute.
3468         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3469         `Vcharacter_name_table' for `name' attribute.
3470         (Fremove_char_attribute): Use function `remove_char_ccs'.
3471         (put_char_ccs_code_point): New function.
3472         (remove_char_ccs): New function.
3473         (syms_of_mule_charset): Add new symbol `name'.
3474         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3475
3476 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3477
3478         * mule-charset.c (make_byte_table): Add new argument `older'.
3479         (make_char_id_table): Likewise.
3480         (copy_char_id_table): Comment out because it is not used.
3481         (put_char_id_table): Modify for `make_byte_table'.
3482         (Fput_char_attribute): Make encoding_table as older object;
3483         inherit older bit of `Vcharacter_composition_table'.
3484         (mark_charset): Don't mark `cs->encoding_table'.
3485         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3486         normal object; make `Vcharacter_composition_table' as an older
3487         object; delete staticpro for `Vcharacter_composition_table'; make
3488         `Vcharacter_variant_table' as a normal object.
3489
3490         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3491         (mark_object): Don't check older object in UTF-2000.
3492
3493         * lrecord.h (struct lrecord_header): Add new member `older' in
3494         UTF-2000.
3495         (set_lheader_implementation): Setup `SLI_header->older' in
3496         UTF-2000.
3497         (set_lheader_older_implementation): New macro in UTF-2000.
3498         (OLDER_RECORD_P): New macro in UTF-2000.
3499         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3500         (alloc_older_lcrecord): New prototype in UTF-2000.
3501         (alloc_older_lcrecord_type): New macro in UTF-2000.
3502
3503 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3504
3505         * mule-charset.c (byte_table_description): Use
3506         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3507         (char_id_table_description): Delete bogus `, 1'.
3508         (Fget_char_attribute): Refer encoding_table of each coded-charset
3509         to get value of coded-charset attribute of a character.
3510         (Fput_char_attribute): Use `make_older_vector' instead of
3511         `make_vector'; use encoding_table of each coded-charset to store
3512         value of coded-charset attribute of a character.
3513         (Fremove_char_attribute): Use encoding_table of each coded-charset
3514         to store value of coded-charset attribute of a character.
3515         (mark_charset): Mark `cs->encoding_table'; don't mark
3516         `cs->decoding_table'.
3517         (charset_description): Add description of new member
3518         `encoding_table'.
3519         (make_charset): Initialize `encoding_table'.
3520
3521         * char-ucs.h (struct Lisp_Charset): Add new member
3522         `encoding_table'.
3523         (CHARSET_ENCODING_TABLE): New macro.
3524         (XCHARSET_ENCODING_TABLE): New macro.
3525         (charset_code_point): New implementation.
3526         (encode_char_1): Likewise.
3527
3528         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3529         (disksave_object_finalization_1): Call finalizers of
3530         `all_older_lcrecords' in UTF-2000.
3531         (make_older_vector): New function in UTF-2000.
3532         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3533         UTF-2000.
3534
3535         * lisp.h (make_older_vector): New prototype in UTF-2000.
3536
3537 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3538
3539         * lrecord.h (enum lrecord_type): Rename
3540         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3541
3542         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3543         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3544         `get_char_code_table'.
3545
3546         * mule-charset.c (mark_char_id_table): Renamed from
3547         `mark_char_code_table'.
3548         (char_id_table_equal): Renamed from `char_code_table_equal'.
3549         (char_id_table_hash): Renamed from `char_code_table_hash'.
3550         (make_char_id_table): Renamed from `make_char_code_table'.
3551         (copy_char_id_table): Renamed from `copy_char_code_table'.
3552         (get_char_id_table): Renamed from `get_char_code_table'.
3553         (put_char_id_table): Renamed from `put_char_code_table'.
3554         (to_char_id): Renamed from `to_char_code'.
3555
3556         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3557         `Lisp_Char_Code_Table'.
3558         (char_id_table): Renamed from `char_code_table'.
3559         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3560         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3561         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3562         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3563         (get_char_id_table): Renamed from `get_char_code_table'.
3564
3565 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3566
3567         * lrecord.h (enum lrecord_type): Rename
3568         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3569
3570         * mule-charset.c (mark_byte_table): Renamed from
3571         `mark_char_byte_table'.
3572         (byte_table_equal): Renamed from `char_byte_table_equal'.
3573         (byte_table_hash): Renamed from `byte_table_hash'.
3574         (make_byte_table): Renamed from `make_byte_table'.
3575         (copy_byte_table): Renamed from `copy_char_byte_table'.
3576
3577         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3578         `Lisp_Char_Byte_Table'.
3579         (byte_table): Renamed from `char_byte_table'.
3580         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3581         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3582         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3583         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3584
3585 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3586
3587         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3588         (dfc_convert_to_internal_format): Likewise.
3589         
3590         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3591         * text-coding.c (Fcoding_system_alias_p): New function.
3592         * text-coding.c (Fcoding_system_aliasee): New function.
3593         * text-coding.c (append_suffix_to_symbol): New function.
3594         * text-coding.c (dangling_coding_system_alias_p): New function.
3595         * text-coding.c (Ffind_coding_system):
3596         * text-coding.c (Fcopy_coding_system):
3597         * text-coding.c (encode_coding_no_conversion):
3598         * text-coding.c (syms_of_file_coding):
3599         * text-coding.c (vars_of_file_coding):
3600         Rewrite coding system alias code.
3601         Allow nested aliases, like symbolic links.
3602         Allow redefinition of coding system aliases.
3603         Prevent existence of dangling coding system aliases.
3604         Eliminate convert_to_external_format.
3605         Eliminate convert_to_internal_format.
3606         
3607         * text-coding.c: Change enum eol_type to eol_type_t.
3608
3609 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3610
3611         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3612         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3613
3614         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3615         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3616
3617 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3618
3619         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3620         `ideograph-daikanwa'.
3621
3622         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3623         (Vcharset_ucs_bmp): Likewise.
3624         (Vcharset_mojikyo): Add new extern variable definition.
3625         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3626         (Vcharset_latin_iso8859_3): Likewise.
3627         (Vcharset_latin_iso8859_4): Likewise.
3628         (Vcharset_latin_iso8859_9): Likewise.
3629         (Vcharset_latin_viscii_lower): Likewise.
3630         (Vcharset_latin_viscii_upper): Likewise.
3631         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3632         `mojikyo' code-point is used to decode.
3633         (encode_char_2): New function [to convert `mojikyo' code-point to
3634         Mojikyo font encoding].
3635         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3636         (breakup_char_1): Likewise.
3637         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3638
3639 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3640
3641         * text-coding.c (Fmake_coding_system): Add document about
3642         `disable-composition' property.
3643
3644 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3645
3646         * text-coding.c (Qdisable_composition): New variable; delete
3647         `Qcomposite'.
3648         (Fmake_coding_system): Add new property `disable-composite';
3649         delete property `composite'.
3650         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3651         instead of `!CODING_SYSTEM_COMPOSITE'.
3652         (syms_of_file_coding): Add new symbol `disable-composition';
3653         delete symbol `composite'.
3654
3655         * file-coding.h (struct Lisp_Coding_System): Add
3656         `disable_composition'; delete `enable_composition'.
3657         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3658         `CODING_SYSTEM_COMPOSITE'.
3659         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3660         `XCODING_SYSTEM_COMPOSITE'.
3661
3662 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3663
3664         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3665         to 0.15.
3666
3667 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3668
3669         * text-coding.c (Qcomposite): New variable.
3670         (Fmake_coding_system): Add new property `composite'.
3671         (struct decoding_stream): Add `combined_char_count',
3672         `combined_chars' and `combining_table' in UTF-2000.
3673         (COMPOSE_FLUSH_CHARS): New macro.
3674         (COMPOSE_ADD_CHAR): New macro.
3675         (reset_decoding_stream): Reset `str->combined_char_count' and
3676         `str->combining_table' in UTF-2000.
3677         (decode_coding_iso2022): Modify for character-decomposition.
3678         (syms_of_file_coding): Add new symbol `composite'.
3679
3680 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3681
3682         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3683         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3684         of `Vcharacter_composition_table' if `->decomposition' property
3685         has only 1 element.
3686         (Qlatin_tcvn5712): New variable.
3687         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3688         (complex_vars_of_mule_charset): Add new coded-charset
3689         `latin-tcvn5712'.
3690
3691         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3692
3693 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3694
3695         * file-coding.h (struct Lisp_Coding_System): Add
3696         `enable_composition'.
3697         (CODING_SYSTEM_COMPOSITE): New macro.
3698         (XCODING_SYSTEM_COMPOSITE): New macro.
3699
3700 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3701
3702         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3703
3704 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3705
3706         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3707         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3708
3709 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3710
3711         * mule-charset.c (Vcharset_mojikyo): New variable.
3712         (Fdefine_char): Don't use coded-charset which does not have
3713         non-builtin character range to allocate character-id.
3714         (Qmojikyo): New variable.
3715         (syms_of_mule_charset): Add new symbol `mojikyo'.
3716         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3717
3718         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3719         (LEADING_BYTE_MOJIKYO): New macro.
3720         (MIN_CHAR_MOJIKYO): New macro.
3721         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3722         (MAX_CHAR_MOJIKYO): New macro.
3723
3724 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3725
3726         * mule-charset.c (remove_char_attribute): Fixed.
3727
3728 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3729
3730         * mule-charset.c (remove_char_attribute): New function.
3731         (Fremove_char_attribute): New function.
3732         (encode_builtin_char_1): Comment out builtin-support for
3733         greek-iso8859-7 and cyrillic-iso8859-5.
3734         (Fdecode_char): Check `code' is an integer.
3735         (syms_of_mule_charset): Add `remove-char-attribute'.
3736         (MIN_CHAR_GREEK): Deleted.
3737         (MAX_CHAR_GREEK): Likewise.
3738         (MIN_CHAR_CYRILLIC): Likewise.
3739         (MAX_CHAR_CYRILLIC): Likewise.
3740         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3741         MAX_CHAR_GREEK for `greek-iso8859-7'.
3742
3743         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3744         (MAX_CHAR_GREEK): Likewise.
3745         (MIN_CHAR_CYRILLIC): Likewise.
3746         (MAX_CHAR_CYRILLIC): Likewise.
3747
3748 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3749
3750         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3751         format is used without `ucs' property.
3752         (Fdecode_char): Fix problem with GR representation.
3753         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3754         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3755
3756 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3757
3758         * mule-charset.c (make_builtin_char): New function.
3759         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3760         (Fset_charset_mapping_table): Modify for new representation of
3761         code-point.
3762         (Fdecode_char): New function.
3763         (syms_of_mule_charset): Add new builtin function `decode-char' in
3764         UTF-2000.
3765
3766         * char-ucs.h (make_builtin_char): New prototype.
3767         (DECODE_CHAR): New inline function.
3768         (MAKE_CHAR): Use `DECODE_CHAR'.
3769
3770 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3771
3772         * text-coding.c (parse_charset_conversion_specs): Use
3773         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3774         `XCHARSET_TYPE'.
3775         (iso2022_designate): Likewise.
3776
3777         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3778         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3779
3780         * mule-charset.c (Vcharset_ucs): New variable.
3781         (print_charset): Change design; use `CHARSET_CHARS' and
3782         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3783         (make_charset): Change signature to specify `chars' and
3784         `dimension' instead of `type'.
3785         (range_charset_code_point): Modify for 256^n-set.
3786         (encode_builtin_char_1): Encode as `ucs' in default.
3787         (Fmake_charset): Modify for `make_charset'.
3788         (Fmake_reverse_direction_charset): Likewise.
3789         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3790         UTF-2000.
3791         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3792         for `make_charset'.
3793
3794         * char-ucs.h (Vcharset_ucs): New variable.
3795         (LEADING_BYTE_UCS): New macro.
3796         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3797         and `chars' to `unsigned short' from `unsigned int'.
3798         (CHARSET_TYPE): Deleted.
3799         (XCHARSET_TYPE): Deleted.
3800
3801 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3802
3803         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3804
3805         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3806         (ENCODE_CHAR): New macro.
3807
3808 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3809
3810         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3811         to 0.14 (Kawachi-Katakami).
3812
3813 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3814
3815         * text-coding.c (char_encode_shift_jis): Modify for
3816         `charset_code_point'.
3817         (char_encode_iso2022): Likewise.
3818
3819         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3820         (integer) instead of list of <Lisp_Object>s (integers) as the
3821         format of code-point of a coded-charset.
3822         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3823         (encode_builtin_char_1): New function; delete
3824         `split_builtin_char'.
3825         (charset_code_point): Return <int> instead of <Lisp_Object>.
3826         (Fsplit_char): Don't use `SPLIT_CHAR'.
3827
3828         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3829         prototype for `split_builtin_char'.
3830         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3831         (charset_code_point): Likewise.
3832         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3833         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3834
3835 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3836
3837         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3838         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3839
3840 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3841
3842         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3843
3844         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3845         (MAX_CHAR_OBS_94x94): Deleted.
3846
3847 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3848
3849         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3850
3851         * char-ucs.h (MAX_CHAR_BMP): New macro.
3852
3853 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3854
3855         * text-coding.c: Sync with r21-2-24.
3856
3857 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3858
3859         * file-coding.c: Modify for UTF-2000.
3860
3861 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3862
3863         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3864         to 0.13 (Takaida).
3865
3866 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3867
3868         * mule-charset.c (split_builtin_char): Delete builtin support for
3869         `katakana-jisx0201'.
3870         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3871         BMP area in builtin representation.
3872
3873         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3874         `Vcharset_katakana_jisx0201'.
3875
3876 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3877
3878         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3879         (Qisolated): New variable.
3880         (Qinitial): New variable.
3881         (Qmedial): New variable.
3882         (Qfinal): New variable.
3883         (Qvertical): New variable.
3884         (Qsmall): New variable.
3885         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3886         `Qvertical' and `Qsmall'.
3887         (Qmojikyo_pj_[1 .. 21]): New variable.
3888         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3889         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3890         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3891         .. 21]'.
3892
3893 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3894
3895         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3896         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3897         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3898
3899 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3900
3901         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3902         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3903         BMP.
3904         (Qjapanese_jisx0208_1990): New variable.
3905         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3906         (complex_vars_of_mule_charset): Add new coded-charset
3907         `japanese-jisx0208-1990'.
3908
3909         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3910         (MIN_CHAR_JIS_X0208_1990): New macro.
3911         (MAX_CHAR_JIS_X0208_1990): New macro.
3912
3913 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3914
3915         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3916         coded-charset is not found.
3917
3918 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3919
3920         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3921         (Fdefine_char): Use `Fmake_char'.
3922
3923 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3924
3925         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3926         (Vcharset_hiragana_jisx0208): Deleted.
3927         (Vcharset_katakana_jisx0208): Deleted.
3928         (Qideograph_daikanwa): New variable.
3929         (Qhiragana_jisx0208): Deleted.
3930         (Qkatakana_jisx0208): Deleted.
3931         (split_builtin_char): Split `ideograph-daikanwa'.
3932         (Fsplit_char): New implementation for UTF-2000.
3933         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3934         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3935         (complex_vars_of_mule_charset): Add new coded-charset
3936         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3937         `katakana-jisx0208'.
3938
3939         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3940         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3941         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3942         (MIN_CHAR_DAIKANWA): New macro.
3943         (MAX_CHAR_DAIKANWA): New macro.
3944
3945 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3946
3947         * data.c (Fstring_to_number): Don't recognize floating point if
3948         base is not 10.
3949
3950 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3951
3952         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3953
3954 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3955
3956         * mule-charset.c (Qsquare): New variable.
3957         (to_char_code): Add `Qsquare'.
3958         (syms_of_mule_charset): Add new symbol `square'.
3959
3960 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3961
3962         * mule-charset.c (Qcircle): New variable.
3963         (to_char_code): Add `Qcircle'.
3964         (syms_of_mule_charset): Add new symbol `circle'.
3965
3966 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3967
3968         * mule-charset.c (Qfont): New variable.
3969         (to_char_code): Add `Qfont'.
3970         (syms_of_mule_charset): Add new symbol `font'.
3971
3972 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3973
3974         * mule-charset.c (Qsub): New variable.
3975         (to_char_code): Add `Qsub'.
3976         (syms_of_mule_charset): Add new symbol `sub'.
3977
3978 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3979
3980         * mule-charset.c (Fput_char_attribute): Convert each element of
3981         VALUE to GL position if ATTRIBUTE is a GR-set,
3982
3983 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3984
3985         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3986         coded-charset is a GR-set.
3987
3988 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3989
3990         * mule-charset.c (Fput_char_attribute): Check each element of
3991         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3992
3993 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3994
3995         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3996         UTF-2000.
3997         (Qethiopic_ucs): New variable in UTF-2000.
3998         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3999         (complex_vars_of_mule_charset): Add new coded-charset
4000         `ethiopic-ucs' in UTF-2000.
4001
4002         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4003         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4004         9)'.
4005         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4006         10)'.
4007         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4008
4009 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4010
4011         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4012         `ascii'.
4013
4014 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4015
4016         * mule-charset.c (Vcharacter_variant_table): New variable.
4017         (Q_ucs): New variable.
4018         (Fchar_variants): New function.
4019         (Fput_char_attribute): Register `->ucs' value to
4020         `Vcharacter_variant_table'.
4021         (syms_of_mule_charset): Add new function `char-variants' and new
4022         symbol `->ucs'.
4023         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4024
4025 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4026
4027         * mule-charset.c (get_char_code_table): Allow negative character
4028         code.
4029         (put_char_code_table): Likewise.
4030         (Vcharacter_composition_table): New variable.
4031         (Q_decomposition): New variable.
4032         (Qwide): New variable.
4033         (Qnarrow): New variable.
4034         (Qcompat): New variable.
4035         (QnoBreak): New variable.
4036         (Qsuper): New variable.
4037         (Qfraction): New variable.
4038         (to_char_code): New function.
4039         (Fget_composite_char): New function.
4040         (Fput_char_attribute): Register `->decomposition' value to
4041         `Vcharacter_composition_table'.
4042         (syms_of_mule_charset): Add new function `get-composite-char', new
4043         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4044         `super' and `fraction'.
4045         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4046
4047 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4048
4049         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4050         character; copy the return value.
4051
4052 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4053
4054         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4055
4056         * mule-charset.c (range_charset_code_point): Must use make_int.
4057         (split_builtin_char): New function.
4058
4059 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4060
4061         * mule-charset.c (char_byte_table): Change name from
4062         "char-code-table" to "char-byte-table".
4063         (mark_char_code_table): New function.
4064         (char_code_table_equal): New function.
4065         (char_code_table_hash): New function.
4066         (char_code_table_description): New constant.
4067         (char_code_table): New type.
4068         (make_char_code_table): New function.
4069         (copy_char_code_table): New function.
4070         (get_char_code_table): Modify for `char_code_table' type.
4071         (put_char_code_table): Likewise.
4072         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4073         (Kashiwara).
4074
4075         * char-ucs.h (char_code_table): New type.
4076         (XCHAR_CODE_TABLE): New macro.
4077         (XSETCHAR_CODE_TABLE): New macro.
4078         (CHAR_CODE_TABLE_P): New macro.
4079         (GC_CHAR_CODE_TABLE_P): New macro.
4080         (struct Lisp_Char_Code_Table): New structure.
4081
4082 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4083
4084         * mule-charset.c (Fmake_charset): Setup byte_offset for
4085         {94|96}^n-set.
4086
4087 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4088
4089         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4090         character.
4091
4092 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4093
4094         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4095         is found.
4096
4097 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4098
4099         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4100         charset, it is regarded as a charset.
4101         (put_char_attribute): New function in UTF-2000.
4102         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4103         charset, mapping-table of the charset is modified.
4104         (Fdefine_char): New function in UTF-2000.
4105         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4106         `Fput_char_attribute'.
4107         (syms_of_mule_charset): Add new function `define-char' and new
4108         symbol `ucs' in UTF-2000.
4109         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4110
4111 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4112
4113         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4114         non-UTF-2000 configuration.
4115
4116 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4117
4118         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4119         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4120
4121         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4122         deleted.
4123         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4124         (Fset_charset_mapping_table): Likewise.
4125
4126         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4127         (CHARSET_ENCODING_TABLE): Delete.
4128         (XCHARSET_ENCODING_TABLE): Delete.
4129         (charset_code_point): New interface.
4130
4131 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4132
4133         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4134         instead of `charset_get_byte1' and `charset_get_byte2'.
4135
4136         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4137         (charset_get_byte2): Deleted.
4138
4139 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4140
4141         * char-ucs.h (SPLIT_CHAR): New inline function.
4142         (breakup_char_1): Use `SPLIT_CHAR'.
4143
4144         * mule-charset.c (range_charset_code_point): New function.
4145         (charset_code_point): New function.
4146
4147         * char-ucs.h (range_charset_code_point): New interface.
4148         (breakup_char_1): Use `range_charset_code_point'.
4149
4150 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4151
4152         * mule-charset.c (Fmake_charset): Delete unused local variable
4153         `code_offset'.
4154
4155         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4156         (breakup_char_1): Find a charset and code-point in
4157         `Vcharacter_attribute_table'.
4158
4159 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4160
4161         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4162         to 0.10 (Yao).
4163
4164 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4165
4166         * mule-charset.c (Vcharacter_attribute_table): New variable.
4167         (Fchar_attribute_alist): New function.
4168         (Fget_char_attribute): New function.
4169         (Fput_char_attribute): New function.
4170         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4171         too.
4172         (syms_of_mule_charset): Add new function `char-attribute-alist',
4173         `get-char-attribute' and `put-char-attribute'.
4174         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4175
4176 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4177
4178         * mule-charset.c (Fmake_charset): Just use
4179         `get_unallocated_leading_byte'.
4180
4181         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4182         sets; don't use final-byte based number for private sets.
4183
4184 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4185
4186         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4187         integer.
4188
4189 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4190
4191         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4192         to 0.9.
4193
4194 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4195
4196         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4197         of `CHAR_LEADING_BYTE' in UTF-2000.
4198
4199         * insdel.c (find_charsets_in_bufbyte_string): Use
4200         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4201         (find_charsets_in_emchar_string): Likewise.
4202
4203         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4204         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4205
4206         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4207         (CHAR_CHARSET_ID): New macro.
4208
4209 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4210
4211         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4212         charset-id - MIN_LEADING_BYTE.
4213         (put_char_table): Likewise.
4214
4215 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4216
4217         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4218         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4219         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4220         (CHARSET_ID_OFFSET): New macro.
4221         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4222         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4223         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4224         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4225         4).
4226         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4227         5).
4228         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4229         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4230         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4231         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4232         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4233
4234 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4235
4236         * mule-charset.c (next_allocated_leading_byte): New variable in
4237         UTF-2000.
4238         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4239         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4240         (get_unallocated_leading_byte): Simply use
4241         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4242         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4243         UTF-2000.
4244
4245         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4246         (MAX_LEADING_BYTE_PRIVATE): New macro.
4247         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4248         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4249
4250 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4251
4252         * mule-charset.c (Fmake_charset): Allocate final-byte based
4253         charset-id for 94-set, 96-set and 94x94-set.
4254
4255 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4256
4257         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4258         ambiguous `else'.
4259         (Fmake_charset): Likewise.
4260         (complex_vars_of_mule_charset): Modify the font registry of
4261         `ucs-bmp' not to match `Ethiopic-Unicode'.
4262
4263 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4264
4265         * mule-charset.c (complex_vars_of_mule_charset): Add font
4266         registory of `ucs-bmp'.
4267
4268 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4269
4270         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4271         coded-charsets in `default-coded-charset-priority-list' when
4272         breaking up a character.
4273
4274         * mule-charset.c (Vcharset_latin_viscii): New variable.
4275         (Qlatin_viscii): New variable.
4276         (make_charset): Don't use `decoding_table'.
4277         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4278         byte_offset.
4279         (Fset_charset_mapping_table): New implementation.
4280         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4281         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4282         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4283         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4284         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4285         charset `latin_viscii'.
4286
4287         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4288         (CHARSET_TYPE_94X94): Change to 1 from 2.
4289         (CHARSET_TYPE_96): Change to 2 from 1.
4290         (CHARSET_TYPE_128): New macro.
4291         (CHARSET_TYPE_128X128): Change to 5 from 4.
4292         (CHARSET_TYPE_256): New macro.
4293         (CHARSET_TYPE_256X256): Change to 7 from 5.
4294         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4295
4296 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4297
4298         * text-coding.c (char_encode_shift_jis): Refer
4299         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4300         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4301
4302         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4303         (char_byte_table_equal): New function in UTF-2000.
4304         (char_byte_table_hash): New function in UTF-2000.
4305         (char_byte_table_description): New constant in UTF-2000.
4306         (char_byte_table): New type in UTF-2000.
4307         (make_char_byte_table): New function in UTF-2000.
4308         (copy_char_byte_table): New function in UTF-2000.
4309         (make_char_code_table): New macro in UTF-2000.
4310         (get_char_code_table): New function in UTF-2000.
4311         (put_char_code_table): New function in UTF-2000.
4312         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4313         (charset_description): Add setting in UTF-2000.
4314         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4315         `CHARSET_TO_BYTE1_TABLE(cs)'.
4316         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4317         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4318         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4319         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4320         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4321         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4322         `CHARSET_TO_BYTE2_TABLE(cs)'.
4323
4324         * char-ucs.h (char_byte_table): New type.
4325         (XCHAR_BYTE_TABLE): New macro.
4326         (XSETCHAR_BYTE_TABLE): New macro.
4327         (CHAR_BYTE_TABLE_P): New macro.
4328         (GC_CHAR_BYTE_TABLE_P): New macro.
4329         (struct Lisp_Char_Byte_Table): New structure.
4330         (get_char_code_table): New interface.
4331         (Emchar_to_byte_table): Deleted.
4332         (get_byte_from_character_table): Deleted.
4333         (struct Lisp_Charset): Add `encoding_table'; delete
4334         `to_byte1_table' and `to_byte2_table'.
4335         (CHARSET_ENCODING_TABLE): New macro.
4336         (CHARSET_TO_BYTE1_TABLE): Deleted.
4337         (CHARSET_TO_BYTE2_TABLE): Deleted.
4338         (XCHARSET_ENCODING_TABLE): New macro.
4339         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4340         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4341
4342 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4343
4344         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4345         `vietnamese-viscii-*'.
4346
4347 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4348
4349         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4350         (Qvietnamese_viscii_upper): New variable.
4351         (Fdefine_charset_alias): New function.
4352         (syms_of_mule_charset): Add new function `define-charset-alias'.
4353         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4354         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4355         `latin-viscii-*'.
4356
4357 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4358
4359         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4360         (MAX_CHAR_OBS_94x94): New macro.
4361         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4362         for 94x94 sets.
4363
4364         * mule-charset.c (put_byte_from_character_table): Change unit size
4365         from 128 to 256.
4366         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4367         not defined.
4368         (Fmake_reverse_direction_charset): Modify dummy argument of
4369         `make_charset' for non-UTF-2000 environment.
4370
4371 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4372
4373         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4374
4375         * mule-charset.c (destroy_byte_from_character_table): New macro.
4376         (latin_jisx0201_to_ucs): Deleted.
4377         (latin_iso8859_2_to_ucs): Deleted.
4378         (latin_iso8859_3_to_ucs): Deleted.
4379         (latin_iso8859_4_to_ucs): Deleted.
4380         (latin_iso8859_9_to_ucs): Deleted.
4381         (latin_viscii_lower_to_ucs): Deleted.
4382         (latin_viscii_upper_to_ucs): Deleted.
4383         (mark_charset): Mark `cs->decoding_table'.
4384         (Fcharset_mapping_table): Fix DOC-string.
4385         (Fset_charset_mapping_table): New function.
4386         (syms_of_mule_charset): Add nwe function
4387         `set-charset-mapping-table'.
4388         (complex_vars_of_mule_charset): Don't setup and use
4389         `latin_*_to_ucs'.
4390
4391 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4392
4393         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4394         charset.
4395
4396 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4397
4398         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4399         (Vcharset_katakana_jisx0208): New variable.
4400         (Qhiragana_jisx0208): New variable.
4401         (Qkatakana_jisx0208): New variable.
4402         (make_charset): Add new argument `byte_offset'.
4403         (charset_get_byte1): Modify for new coded-charset definition; use
4404         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4405         `XCHARSET_BYTE_OFFSET'.
4406         (Fmake_charset): Modify for `make_charset'.
4407         (Fmake_reverse_direction_charset): Likewise.
4408         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4409         `katakana-jisx0208'.
4410         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4411         `.'  in font registry of charset `katakana-jisx0201',
4412         `latin-jisx0201', `vietnamese-viscii-lower' and
4413         `vietnamese-viscii-upper'; modify DOC-string of charset
4414         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4415         registry of charset `japanese-jisx0208' not to use font for JIS
4416         X0208:1990; add new charset `hiragana-jisx0208' and
4417         `katakana-jisx0208'.
4418
4419         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4420         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4421         (struct Lisp_Charset): Add `byte_offset'.
4422         (CHARSET_BYTE_OFFSET): New macro.
4423         (XCHARSET_UCS_MIN): New macro.
4424         (XCHARSET_UCS_MAX): New macro.
4425         (XCHARSET_CODE_OFFSET): New macro.
4426         (XCHARSET_BYTE_OFFSET): New macro.
4427         (MIN_CHAR_HIRAGANA): New macro.
4428         (MAX_CHAR_HIRAGANA): New macro.
4429         (MIN_CHAR_KATAKANA): New macro.
4430         (MAX_CHAR_KATAKANA): New macro.
4431         (MAKE_CHAR): Modify for new coded-charset definition; use
4432         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4433         `XCHARSET_BYTE_OFFSET'.
4434
4435 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4436
4437         * mule-charset.c (CHAR96): Deleted.
4438         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4439         <Lisp_Object>.
4440         (latin_iso8859_2_to_ucs): Likewise.
4441         (latin_iso8859_3_to_ucs): Likewise.
4442         (latin_iso8859_4_to_ucs): Likewise.
4443         (latin_iso8859_9_to_ucs): Likewise.
4444         (latin_viscii_lower_to_ucs): Likewise.
4445         (latin_viscii_upper_to_ucs): Likewise.
4446         (latin_tcvn5712_to_ucs): Commented out.
4447         (make_charset): Change type of argument `decoding_table' from
4448         <Emchar*> to <Lisp_Object> [vector of characters].
4449         (Fmake_charset): Modify for `make_charset'.
4450         (Fmake_reverse_direction_charset): Likewise.
4451         (Fcharset_mapping_table): New function in UTF-2000.
4452         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4453         UTF-2000.
4454         (complex_vars_of_mule_charset): Modify for type change of
4455         `*_to_ucs'; modify for `make_charset'.
4456
4457         * char-ucs.h (struct Lisp_Charset): Change type of
4458         `decoding_table' from <Emchar*> to <Lisp_Object>.
4459         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4460
4461 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4462
4463         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4464         error with non-UTF-2000-Mule.
4465
4466 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4467
4468         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4469         in lisp again].
4470         (Vcharset_chinese_cns11643_4): Likewise.
4471         (Vcharset_chinese_cns11643_5): Likewise.
4472         (Vcharset_chinese_cns11643_6): Likewise.
4473         (Vcharset_chinese_cns11643_7): Likewise.
4474         (Qchinese_cns11643_3): Likewise.
4475         (Qchinese_cns11643_4): Likewise.
4476         (Qchinese_cns11643_5): Likewise.
4477         (Qchinese_cns11643_6): Likewise.
4478         (Qchinese_cns11643_7): Likewise.
4479         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4480         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4481         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4482         (complex_vars_of_mule_charset): Likewise.
4483
4484 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4485
4486         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4487         96-set.
4488         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4489         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4490
4491 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4492
4493         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4494         0xFF60.
4495         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4496         (breakup_char_1): Likewise.
4497
4498         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4499         one of them includes the specified character.
4500
4501 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4502
4503         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4504
4505 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4506
4507         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4508
4509 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4510
4511         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4512         definition for non-UTF-2000 Mule.
4513         (latin_iso8859_3_to_ucs): Likewise.
4514         (latin_iso8859_4_to_ucs): Likewise.
4515         (latin_iso8859_9_to_ucs): Likewise.
4516         (latin_jisx0201_to_ucs): Likewise.
4517         (MIN_CHAR_THAI): Likewise.
4518         (MAX_CHAR_THAI): Likewise.
4519         (MIN_CHAR_GREEK): Likewise.
4520         (MAX_CHAR_GREEK): Likewise.
4521         (MIN_CHAR_HEBREW): Likewise.
4522         (MAX_CHAR_HEBREW): Likewise.
4523         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4524         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4525         (MIN_CHAR_CYRILLIC): Likewise.
4526         (MAX_CHAR_CYRILLIC): Likewise.
4527
4528 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4529
4530         * char-ucs.h (breakup_char_1): Use
4531         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4532         thai-tis620 and katakana-jisx0201 area.
4533
4534 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4535
4536         * char-ucs.h (breakup_char_1): Use
4537         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4538         area.
4539
4540         * text-coding.c (reset_encoding_stream): Fixed.
4541         (char_encode_ucs4): Delete `& 255'.
4542
4543         * char-ucs.h (breakup_char_1): Use
4544         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4545
4546 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4547
4548         * file-coding.c (Fmake_coding_system): Don't set up
4549         `codesys->fixed.size'.
4550         (encode_coding_no_conversion): Don't refer
4551         `str->codesys->fixed.size'.
4552
4553 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4554
4555         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4556         (latin_a_char_to_byte1): Deleted.
4557         (latin_a_char_to_byte2): Deleted.
4558
4559 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4560
4561         * mule-charset.c (make_charset): Add new argument `ucs_min',
4562         `ucs_max' and `code_offset'.
4563         (charset_get_byte1): New implementation [delete specific charset
4564         depended implementations].
4565         (Fmake_charset): Modify for `make_charset'.
4566         (Fmake_reverse_direction_charset): Likewise.
4567         (complex_vars_of_mule_charset): Likewise.
4568
4569         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4570         `code_offset'.
4571         (CHARSET_UCS_MIN): New macro.
4572         (CHARSET_UCS_MAX): New macro.
4573         (CHARSET_CODE_OFFSET): New macro.
4574         (MAKE_CHAR): Delete charset depended definitions [except
4575         katakana-jisx0201].
4576
4577 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4578
4579         * char-ucs.h (breakup_char_1): Use
4580         `Vdefault_coded_charset_priority_list' for C0-Controls,
4581         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4582
4583 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4584
4585         * char-ucs.h (charset_get_byte1): New function.
4586         (XCHARSET_GET_BYTE1): Deleted.
4587         (charset_get_byte2): New function.
4588         (XCHARSET_GET_BYTE2): Deleted.
4589         (Vdefault_coded_charset_priority_list): New external variable.
4590         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4591         `Vdefault_preferred_coded_charset_list'.
4592
4593         * mule-charset.c (charset_get_byte1): New function.
4594         (charset_get_byte2): New function.
4595         (Vdefault_coded_charset_priority_list): New variable.
4596         (vars_of_mule_charset): Add new variable
4597         `default-coded-charset-priority-list'.
4598
4599 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4600
4601         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4602         (XCHARSET_GET_BYTE2): New inline function.
4603         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4604         `XCHARSET_GET_BYTE2'.
4605
4606 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4607
4608         * mule-charset.c (make_charset): Initialize
4609         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4610         NULL if table is not defined.
4611
4612 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4613
4614         * text-coding.c (char_encode_shift_jis): Use
4615         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4616         `ucs_to_latin_jisx0201'.
4617
4618         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4619         (ucs_to_latin_iso8859_2): Deleted.
4620         (ucs_to_latin_iso8859_3): Deleted.
4621         (ucs_to_latin_iso8859_4): Deleted.
4622         (ucs_to_latin_iso8859_9): Deleted.
4623         (ucs_to_latin_viscii_lower): Deleted.
4624         (ucs_to_latin_viscii_upper): Deleted.
4625         (ucs_to_latin_tcvn5712): Deleted.
4626         (make_charset): Add new argument `decoding_table'; set up
4627         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4628         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4629         `decoding_table' is defined in UTF-2000.
4630         (Fmake_charset): Modify for `make_charset'.
4631         (Fmake_reverse_direction_charset): Likewise.
4632         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4633         and `GENERATE_96_SET'.
4634
4635         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4636         (ucs_to_latin_jisx0201): Deleted.
4637         (latin_iso8859_2_to_ucs): Deleted.
4638         (ucs_to_latin_iso8859_2): Deleted.
4639         (latin_iso8859_3_to_ucs): Deleted.
4640         (ucs_to_latin_iso8859_3): Deleted.
4641         (latin_iso8859_4_to_ucs): Deleted.
4642         (ucs_to_latin_iso8859_4): Deleted.
4643         (latin_iso8859_9_to_ucs): Deleted.
4644         (ucs_to_latin_iso8859_9): Deleted.
4645         (latin_viscii_lower_to_ucs): Deleted.
4646         (ucs_to_latin_viscii_lower): Deleted.
4647         (latin_viscii_upper_to_ucs): Deleted.
4648         (ucs_to_latin_viscii_upper): Deleted.
4649         (struct Lisp_Charset): Renamed `encoding_table' to
4650         `to_byte1_table'; add `to_byte2_table'.
4651         (CHARSET_DECODING_TABLE): New macro.
4652         (CHARSET_TO_BYTE1_TABLE): New macro.
4653         (CHARSET_TO_BYTE2_TABLE): New macro.
4654         (XCHARSET_DECODING_TABLE): New macro.
4655         (XCHARSET_TO_BYTE1_TABLE): New macro.
4656         (XCHARSET_TO_BYTE2_TABLE): New macro.
4657         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4658         tables.
4659         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4660         don't use `ucs_to_*' tables.
4661
4662 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4663
4664         * text-coding.c (Fmake_coding_system): Don't set up
4665         `codesys->fixed.size'.
4666         (encode_coding_no_conversion): Use `if' instead of `switch'.
4667
4668         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4669
4670 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4671
4672         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4673         (Fmake_charset): Modify for `make_charset'.
4674         (Fmake_reverse_direction_charset): Likewise.
4675         (complex_vars_of_mule_charset): Likewise.
4676
4677 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4678
4679         * text-coding.c (char_encode_shift_jis): Use table
4680         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4681
4682 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4683
4684         * text-coding.c (text_encode_generic): Use `if' instead of
4685         `switch'.
4686         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4687         decode JIS-Latin.
4688
4689 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4690
4691         * text-coding.c (encode_coding_sjis): Deleted.
4692         (char_encode_shift_jis): New function.
4693         (char_finish_shift_jis): New function.
4694         (reset_encoding_stream): Set up `encode_char' and `finish' for
4695         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4696         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4697         (char_encode_utf8): Treat `eol_type'.
4698
4699 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4700
4701         * file-coding.c (decode_coding_iso2022): Use
4702         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4703
4704 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4705
4706         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4707         to 0.7 (Hirano).
4708
4709 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4710
4711         * char-lb.h (CHAR_COLUMNS): New macro.
4712
4713 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4714
4715         * text-coding.c (char_encode_ucs4): New function.
4716         (char_finish_ucs4): New function.
4717         (encode_coding_ucs4): Deleted.
4718         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4719         (text_encode_generic): Delete local variable `charset' and `half'.
4720         (ucs_to_mule_table): Deleted.
4721         (mule_to_ucs_table): Deleted.
4722         (Fset_ucs_char): Deleted.
4723         (ucs_to_char): Deleted.
4724         (Fucs_char): Deleted.
4725         (Fset_char_ucs): Deleted.
4726         (Fchar_ucs): Deleted.
4727         (decode_ucs4): Deleted.
4728         (mule_char_to_ucs4): Deleted.
4729         (encode_ucs4): Deleted.
4730         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4731         (decode_coding_utf8): Likewise.
4732         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4733         (char_encode_iso2022): Fixed.
4734         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4735         `Fset_char_ucs' and `Fchar_ucs'.
4736         (complex_vars_of_file_coding): Don't initialize
4737         `ucs_to_mule_table'.
4738
4739         * objects-tty.c (tty_initialize_font_instance): Don't use
4740         `XCHARSET_COLUMNS'.
4741
4742         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4743         UTF-2000.
4744
4745         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4746         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4747
4748         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4749         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4750         (emchar_string_displayed_columns): Likewise.
4751
4752         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4753         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4754         (string_column_at_point): Likewise.
4755         (Fmove_to_column): Likewise.
4756
4757         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4758         `encoding_table' and `decoding_table'.
4759         (CHARSET_REP_BYTES): Deleted.
4760         (XCHARSET_REP_BYTES): Deleted.
4761         (XCHARSET_COLUMNS): Deleted.
4762         (CHAR_COLUMNS): New macro.
4763         (lookup_composite_char): Deleted unconditionally.
4764         (composite_char_string): Likewise.
4765
4766 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4767
4768         * char-ucs.h (Emchar_to_byte_table): New type.
4769         (get_byte_from_character_table): New function interface.
4770         (Vcharset_latin_jisx0201): New variable.
4771         (latin_jisx0201_to_ucs): New variable.
4772         (ucs_to_latin_jisx0201): New variable.
4773         (Vcharset_latin_iso8859_2): New variable.
4774         (latin_iso8859_2_to_ucs): New variable.
4775         (ucs_to_latin_iso8859_2): New variable.
4776         (Vcharset_latin_iso8859_3): New variable.
4777         (latin_iso8859_3_to_ucs): New variable.
4778         (ucs_to_latin_iso8859_3): New variable.
4779         (Vcharset_latin_iso8859_4): New variable.
4780         (latin_iso8859_4_to_ucs): New variable.
4781         (ucs_to_latin_iso8859_4): New variable.
4782         (Vcharset_latin_iso8859_9): New variable.
4783         (latin_iso8859_9_to_ucs): New variable.
4784         (ucs_to_latin_iso8859_9): New variable.
4785         (Vcharset_latin_viscii_lower): New variable.
4786         (latin_viscii_lower_to_ucs): New variable.
4787         (ucs_to_latin_viscii_lower): New variable.
4788         (Vcharset_latin_viscii_upper): New variable.
4789         (latin_viscii_upper_to_ucs): New variable.
4790         (ucs_to_latin_viscii_upper): New variable.
4791         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4792         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4793         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4794         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4795         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4796         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4797         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4798         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4799         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4800         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4801
4802         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4803         (Vcharset_latin_viscii_upper): New variable.
4804         (make_byte_from_character_table): New function.
4805         (put_byte_from_character_table): New function.
4806         (get_byte_from_character_table): New function.
4807         (CHAR96): New macro.
4808         (ucs_to_latin_jisx0201): New variable.
4809         (latin_jisx0201_to_ucs): New variable.
4810         (ucs_to_latin_iso8859_2): New variable.
4811         (latin_iso8859_2_to_ucs): New variable.
4812         (ucs_to_latin_iso8859_3): New variable.
4813         (latin_iso8859_3_to_ucs): New variable.
4814         (ucs_to_latin_iso8859_4): New variable.
4815         (latin_iso8859_4_to_ucs): New variable.
4816         (ucs_to_latin_iso8859_9): New variable.
4817         (latin_iso8859_9_to_ucs): New variable.
4818         (ucs_to_latin_viscii_lower): New variable.
4819         (latin_viscii_lower_to_ucs): New variable.
4820         (ucs_to_latin_viscii_upper): New variable.
4821         (latin_viscii_upper_to_ucs): New variable.
4822         (ucs_to_latin_tcvn5712): New variable.
4823         (latin_tcvn5712_to_ucs): New variable.
4824         (Qlatin_viscii_lower): New variable.
4825         (Qlatin_viscii_upper): New variable.
4826         (syms_of_mule_charset): Set up new symbol
4827         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4828         (complex_vars_of_mule_charset): Set up new charset
4829         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4830         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4831         `ucs_to_<CHARSET>' tables.
4832
4833 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4834
4835         * text-coding.c: New file.
4836
4837 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4838
4839         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4840
4841         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4842         (MAKE_CHAR): Modify for `ucs-bmp'.
4843         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4844         non-MULE characters of BMP.
4845
4846 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4847
4848         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4849         to 0.6.
4850
4851 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4852
4853         * lstream.h:
4854         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4855         - Include character.h for `CHAR_ASCII_P'.
4856
4857         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4858
4859         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4860         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4861
4862         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4863         (BYTE_C0_P): Likewise.
4864         (BYTE_C1_P): Likewise.
4865         (Lstream_get_emchar_1): Likewise.
4866         (Lstream_fput_emchar): Likewise.
4867         (Lstream_funget_emchar): Likewise.
4868         (copy_internal_to_external): Likewise.
4869         (copy_external_to_internal): Likewise.
4870
4871         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4872         (BYTE_C0_P): Likewise.
4873         (BYTE_C1_P): Likewise.
4874         (Lstream_get_emchar_1): Likewise.
4875         (Lstream_fput_emchar): Likewise.
4876         (Lstream_funget_emchar): Likewise.
4877         (copy_internal_to_external): Likewise.
4878         (copy_external_to_internal): Likewise.
4879
4880         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4881         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4882
4883         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4884         (BYTE_ASCII_P): Moved to mb-1byte.h.
4885
4886 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4887
4888         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4889
4890         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4891         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4892         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4893         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4894         (VALIDATE_CHARPTR_FORWARD): Likewise.
4895         (simple_charptr_emchar): Moved to mb-multibyte.h.
4896         (simple_set_charptr_emchar): Likewise.
4897         (simple_charptr_copy_char): Likewise.
4898         (non_ascii_charptr_emchar): Likewise.
4899         (non_ascii_set_charptr_emchar): Likewise.
4900         (non_ascii_charptr_copy_char): Likewise.
4901         (charptr_emchar): Moved to mb-*byte.h.
4902         (set_charptr_emchar): Likewise.
4903         (charptr_copy_char): Likewise.
4904
4905         * mb-1byte.h, mb-multibyte.h: New files.
4906
4907 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4908
4909         * mb-utf-8.h (MULTIBYTE): New macro.
4910         (MAX_EMCHAR_LEN): Moved from buffer.h.
4911         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4912
4913         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4914
4915         * mb-lb.h, multibyte.h: New files.
4916
4917         * char-1byte.h (Charset_ID): Moved from buffer.h.
4918         (MIN_LEADING_BYTE): Likewise.
4919         (LEADING_BYTE_ASCII): Likewise.
4920         (NUM_LEADING_BYTES): Likewise.
4921         (CHARSETP): Likewise.
4922         (CHARSET_BY_LEADING_BYTE): Likewise.
4923         (XCHARSET_LEADING_BYTE): Likewise.
4924         (XCHARSET_GRAPHIC): Likewise.
4925         (XCHARSET_COLUMNS): Likewise.
4926         (XCHARSET_DIMENSION): Likewise.
4927         (CHAR_CHARSET): Likewise.
4928         (CHAR_LEADING_BYTE): Likewise.
4929         (BREAKUP_CHAR): Likewise.
4930         (Vcharset_ascii): Likewise.
4931
4932         * buffer.h: Include multibyte.h unconditionally.
4933         (VALID_CHARPTR_P): Moved to multibyte.h.
4934         (ASSERT_VALID_CHARPTR): Likewise.
4935         (REAL_INC_CHARPTR): Likewise.
4936         (REAL_INC_CHARBYTIND): Likewise.
4937         (REAL_DEC_CHARPTR): Likewise.
4938         (INC_CHARPTR): Likewise.
4939         (INC_CHARBYTIND): Likewise.
4940         (DEC_CHARPTR): Likewise.
4941         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4942         (VALIDATE_CHARPTR_FORWARD): Likewise.
4943         (charptr_n_addr): Likewise.
4944         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4945         (simple_charptr_emchar): Moved to multibyte.h.
4946         (simple_set_charptr_emchar): Likewise.
4947         (simple_charptr_copy_char): Likewise.
4948         (non_ascii_charptr_emchar): Likewise.
4949         (non_ascii_set_charptr_emchar): Likewise.
4950         (non_ascii_charptr_copy_char): Likewise.
4951         (charptr_emchar): Likewise.
4952         (set_charptr_emchar): Likewise.
4953         (charptr_copy_char): Likewise.
4954         (charptr_emchar_n): Likewise.
4955         (Charset_ID): Moved to char-1byte.h.
4956         (Vcharset_ascii): Likewise.
4957         (CHAR_CHARSET): Likewise.
4958         (CHAR_LEADING_BYTE): Likewise.
4959         (LEADING_BYTE_ASCII): Likewise.
4960         (NUM_LEADING_BYTES): Likewise.
4961         (MIN_LEADING_BYTE): Likewise.
4962         (CHARSETP): Likewise.
4963         (CHARSET_BY_LEADING_BYTE): Likewise.
4964         (XCHARSET_LEADING_BYTE): Likewise.
4965         (XCHARSET_GRAPHIC): Likewise.
4966         (XCHARSET_COLUMNS): Likewise.
4967         (XCHARSET_DIMENSION): Likewise.
4968         (BREAKUP_CHAR): Likewise.
4969
4970 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4971
4972         * character.h: Add document about interface for characters.
4973
4974         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4975         (MAKE_CHAR): Delete comment about
4976         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4977         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4978         (BREAKUP_CHAR): Modify name of arguments.
4979         (CHAR_CHARSET): Modify name of argument.
4980
4981         * buffer.h: Delete document about Emchar accessors.
4982
4983 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4984
4985         * character.h (CHAR_INTP): Moved from buffer.h
4986         (CHAR_OR_CHAR_INTP): Likewise.
4987         (XCHAR_OR_CHAR_INT): Likewise.
4988         (CHECK_CHAR_COERCE_INT): Likewise.
4989
4990         * buffer.h (CHAR_INTP): Moved to character.h
4991         (CHAR_OR_CHAR_INTP): Likewise.
4992         (XCHAR_OR_CHAR_INT): Likewise.
4993         (CHECK_CHAR_COERCE_INT): Likewise.
4994
4995 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4996
4997         * character.h:
4998         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4999         - Include char-1byte.h, char-lb.h or char-ucs.h.
5000
5001         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5002
5003         * buffer.h: Include character unconditionally.
5004         (valid_char_p): Moved to char-*.h.
5005         (non_ascii_valid_char_p): Moved to char-lb.h.
5006
5007         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5008
5009 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5010
5011         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5012         in UTF-2000 because it is not ported yet and not to use
5013         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5014         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5015         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5016
5017         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5018         (CHAR_ASCII_P): Moved from character.h.
5019
5020         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5021         (CHAR_ASCII_P): Likewise.
5022         (CHAR_FIELD1_MASK): Deleted.
5023         (CHAR_FIELD2_MASK): Deleted.
5024         (CHAR_FIELD3_MASK): Deleted.
5025         (MAX_CHAR_BASIC_LATIN): New macro.
5026         (CHAR_FIELD1): Deleted.
5027         (CHAR_FIELD2_INTERNAL): Deleted.
5028         (CHAR_FIELD3_INTERNAL): Deleted.
5029         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5030         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5031         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5032         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5033         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5034         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5035         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5036         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5037         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5038         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5039         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5040         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5041         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5042         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5043         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5044         (MIN_CHAR_COMPOSITION): Deleted.
5045         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5046         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5047
5048 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5049
5050         * buffer.h: Include mb-utf-8.h in UTF-2000.
5051
5052         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5053
5054         * mb-utf-8.h: New file.
5055
5056 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5057
5058         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5059         instead of `int'.
5060
5061         * mule-charset.h, buffer.h (Charset_ID): New type.
5062
5063 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5064
5065         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5066         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5067         instead of `MULE_CHAR_PRIVATE_OFFSET',
5068         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5069         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5070         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5071
5072         * character.h (Vcharset_japanese_jisx0212): New variable
5073         definition.
5074
5075 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5076
5077         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5078         (charset_by_attributes): Delete array about direction.
5079         (latin_a_char_to_charset): New variable in UTF-2000.
5080         (latin_a_char_to_byte1): New variable in UTF-2000.
5081         (latin_a_char_to_byte2): New variable in UTF-2000.
5082         (Qucs_bmp): New variable.
5083         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5084         `Bufbyte'.
5085         (next_allocated_2_byte_leading_byte): Likewise.
5086         (non_ascii_set_charptr_emchar): Likewise.
5087         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5088         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5089         `charset_by_attributes'.
5090         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5091         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5092         and `CHARSET_BY_LEADING_BYTE'.
5093         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5094         `utf-2000-version' to `vars_of_mule_charset'.
5095         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5096         define `leading-code-private-11' in UTF-2000; move setting of
5097         `utf-2000-version' from `syms_of_mule_charset'.
5098         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5099         UTF-2000.
5100
5101         * character.h (Charset_ID): New type.
5102         (LEADING_BYTE_UCS_BMP): New macro.
5103         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5104         (CHARSET_ID_OFFSET_94): New macro.
5105         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5106         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5107         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5108         final-byte.
5109         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5110         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5111         (CHARSET_ID_OFFSET_96): New macro.
5112         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5113         CHARSET_ID_OFFSET_96 and final-byte.
5114         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5115         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5116         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5117         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5118         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5119         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5120         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5121         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5122         (LEADING_BYTE_THAI_TIS620): Likewise.
5123         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5124         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5125         (CHARSET_ID_OFFSET_94x94): New macro.
5126         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5127         CHARSET_ID_OFFSET_94x94 and final-byte.
5128         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5129         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5130         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5131         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5132         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5133         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5134         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5135         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5136         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5137         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5138         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5139         (CHARSET_TYPE_128X128): New macro.
5140         (CHARSET_TYPE_256X256): New macro.
5141         (XCHARSET_PRIVATE_P): Delete unconditionally.
5142         (charset_by_attributes): Delete array about direction.
5143         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5144         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5145         (MIN_CHAR_94): New macro.
5146         (MAX_CHAR_94): New macro.
5147         (MIN_CHAR_96): New macro.
5148         (MAX_CHAR_96): New macro.
5149         (MIN_CHAR_94x94): New macro.
5150         (MAX_CHAR_94x94): New macro.
5151         (MIN_CHAR_96x96): New macro.
5152         (MAX_CHAR_96x96): New macro.
5153         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5154         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5155         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5156         - 32)'.
5157         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5158         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5159         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5160         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5161         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5162         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5163         `XCHARSET_LEADING_BYTE' to make code-point.
5164         (latin_a_char_to_charset): New variable.
5165         (latin_a_char_to_byte1): New variable.
5166         (latin_a_char_to_byte2): New variable.
5167         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5168         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5169         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5170
5171         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5172         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5173         (find_charsets_in_emchar_string): Likewise.
5174         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5175
5176         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5177         `int'.
5178         (decode_coding_iso2022): Likewise.
5179
5180         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5181         of `unsigned char'.
5182
5183         * redisplay.c (redisplay_text_width_emchar_string): Use
5184         `Charset_ID' instead of `unsigned char'.
5185         (redisplay_frame_text_width_string): Likewise.
5186
5187         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5188         `unsigned char'.
5189
5190         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5191         instead of `unsigned char'.
5192         (face_cachel_charset_font_metric_info): Likewise.
5193
5194         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5195         (get_non_ascii_char_table_value): Likewise.
5196         (get_char_table): Likewise.
5197         (put_char_table): Likewise.
5198         (map_over_other_charset): Likewise.
5199         (map_char_table): Likewise.
5200
5201         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5202         instead of `unsigned char'.
5203
5204 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5205
5206         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5207         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5208
5209         * mule-charset.c (leading_code_private_11): Don't define in
5210         UTF-2000.
5211
5212         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5213         in UTF-2000 because it is not ported yet and not to use
5214         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5215
5216 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5217
5218         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5219
5220 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5221
5222         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5223         in UTF-2000.
5224
5225         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5226         of unsigned char to store leading-byte.
5227
5228         * chartab.c (get_non_ascii_char_table_value): Don't use
5229         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5230
5231         * file-coding.c (encode_coding_big5): Delete bogus implementation
5232         in UTF2000.
5233
5234         * character.h (LEADING_BYTE_*): Delete definition for
5235         non-UTF-2000.
5236         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5237         (LEADING_BYTE_PREFIX_P): Deleted.
5238         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5239         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5240         (BUFBYTE_LEADING_BYTE_P): Deleted.
5241         (CHARSET_PRIVATE_P): Deleted unconditionally.
5242         (rep_bytes_by_first_byte): Deleted unconditionally.
5243         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5244         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5245         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5246         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5247         (CHAR_FIELD2): Deleted.
5248         (CHAR_FIELD3): Deleted.
5249         (MAKE_CHAR): Delete definition for non-UTF-2000.
5250         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5251         (breakup_char_1): New implementation.
5252         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5253         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5254
5255 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5256
5257         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5258         condition.
5259
5260 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5261
5262         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5263         (CHARSET_PRIVATE_P): Likewise.
5264         (XCHARSET_PRIVATE_P): Likewise.
5265         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5266
5267         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5268         UTF2000.
5269         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5270
5271 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5272
5273         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5274         (NUM_LEADING_BYTES): Changed from 128 to 256.
5275         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5276         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5277         UTF2000.
5278         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5279
5280         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5281         UTF2000.
5282         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5283         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5284         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5285         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5286         (Qchinese_cns11643_3): New variable in UTF2000.
5287         (Qchinese_cns11643_4): New variable in UTF2000.
5288         (Qchinese_cns11643_5): New variable in UTF2000.
5289         (Qchinese_cns11643_6): New variable in UTF2000.
5290         (Qchinese_cns11643_7): New variable in UTF2000.
5291         (syms_of_mule_charset): Define `chinese-cns11643-3',
5292         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5293         and `chinese-cns11643-7' in UTF2000.
5294         (vars_of_mule_charset): Initialize
5295         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5296         + 1 in UTF2000.
5297         (complex_vars_of_mule_charset): Setup charset
5298         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5299         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5300
5301 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5302
5303         * mule-charset.c: Move setting for `leading-code-private-11' from
5304         `syms_of_mule_charset' to `vars_of_mule_charset'.
5305
5306 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5307
5308         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5309         and `NUM_LEADING_BYTES' in assert.
5310
5311 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5312
5313         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5314         instead of 128.
5315         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5316         `NUM_LEADING_BYTES' instead of 128.
5317
5318 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5319
5320         * mule-charset.h (charset_by_leading_byte): Use
5321         `NUM_LEADING_BYTES' instead of 128.
5322         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5323
5324         * mule-charset.c (charset_by_leading_byte): Use
5325         `NUM_LEADING_BYTES' instead of 128.
5326         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5327
5328         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5329         128.
5330
5331 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5332
5333         * mule-charset.c (syms_of_mule_charset): Update to
5334         0.4 (Shin-Imamiya).
5335
5336 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5337
5338         * file-coding.c (encode_coding_sjis): New implementation for
5339         UTF2000.  (decode_coding_sjis): Ditto.
5340
5341 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5342
5343         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5344         Don't define in UTF2000.
5345
5346         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5347         defined.
5348
5349         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5350         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5351         MULE.
5352
5353 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5354
5355         * config.h.in (CHAR_IS_UCS4): New macro.
5356
5357         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5358         conventional MULE representation.
5359         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5360
5361         * mule-charset.h: Reverted to original.
5362
5363         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5364         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5365         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5366
5367         * character.h: New file.
5368
5369         * file-coding.c (Fmake_coding_system): Set 1 to
5370         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5371         defined.
5372         (encode_coding_no_conversion): New implementation for UTF2000.
5373
5374         * file-coding.h (struct Lisp_Coding_System): Add new member
5375         `fixed.size'.
5376
5377 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5378
5379         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5380         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5381         (encode_coding_iso2022): New implementation for UTF2000.
5382
5383 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5384
5385         * mule-canna.c (c2mu): New implementation for UTF2000.
5386         (m2c): Likewise.
5387
5388 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5389
5390         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5391
5392 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5393
5394         * file-coding.c (reset_encoding_stream): Set 0 to
5395         `str->iso2022.current_char_boundary' in UTF2000.
5396         (encode_utf8): Don't define in UTF2000.
5397         (encode_coding_utf8): New implementation for UTF-8 representation
5398         of UTF2000.
5399         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5400
5401 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5402
5403         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5404
5405         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5406         UTF2000.
5407         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5408
5409         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5410
5411         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5412         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5413         as UTF-8 in UTF2000.
5414         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5415         (non_ascii_valid_char_p): Don't define in UTF2000.
5416         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5417         (Lstream_get_emchar_1): Likewise.
5418         (utf-2000-version): New variable in UTF2000.
5419
5420         * lread.c (read_escape): Add new reader `u'.
5421
5422         * insdel.c (three_to_one_table): Don't define in UTF2000.
5423         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5424         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5425         UTF2000.
5426         (bytind_to_bufpos_func): Likewise.
5427         (buffer_mule_signal_inserted_region): Likewise.
5428         (vars_of_insdel): Don't initialize `three_to_one_table'.
5429         (init_buffer_text): Use `buf->text->mule_size' instead of
5430         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5431         UTF2000.
5432
5433         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5434         UTF-8 representation in UTF2000.
5435         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5436         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5437         (decode_coding_iso2022): Don't define local variable `lb' in
5438         UTF2000; don't use LEADING_BYTE in UTF2000; use
5439         `DECODE_ADD_UCS_CHAR' in UTF2000.
5440         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5441
5442         * config.h.in (UTF2000): New macro.
5443
5444         * buffer.h (struct buffer_text): Add new member `mule_size' and
5445         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5446         (valid_char_p): Return always 1 in UTF2000.
5447         (MAX_EMCHAR_LEN): 6 in UTF2000.
5448         (three_to_one_table): Don't define in UTF2000.
5449         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5450         UTF2000.
5451         (real_bytind_to_bufpos): Likewise.
5452
5453         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5454
5455 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5456
5457         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5458         representation change.
5459         (Vutf_2000_version): New variable.
5460         (leading_code_private_11): New variable.
5461         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5462         `leading-code-private-11'.
5463
5464         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5465         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5466         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5467         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5468         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5469         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5470         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5471         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5472         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5473         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5474         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5475         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5476         (MIN_CHAR_GREEK): New macro.
5477         (MAX_CHAR_GREEK): New macro.
5478         (MIN_CHAR_CYRILLIC): New macro.
5479         (MAX_CHAR_CYRILLIC): New macro.
5480         (MIN_CHAR_HEBREW): New macro.
5481         (MAX_CHAR_HEBREW): New macro.
5482         (MIN_CHAR_THAI): New macro.
5483         (MAX_CHAR_THAI): New macro.
5484         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5485         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5486         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5487         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5488         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5489         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5490         (CHAR_FIELD2): New inline function.
5491         (CHAR_FIELD3): New inline function.
5492         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5493         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5494         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5495         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5496         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5497         (MIN_CHAR_COMPOSITION): Likewise.
5498         (CHAR_LEADING_BYTE): Modified for character representation change.
5499         (MAKE_CHAR): Likewise.
5500
5501         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5502         (Vcharset_greek_iso8859_7): Likewise.
5503         (Vcharset_cyrillic_iso8859_5): Likewise.
5504         (Vcharset_hebrew_iso8859_8): Likewise.
5505         (Vcharset_thai_tis620): Likewise.
5506         (Vcharset_katakana_jisx0201): Likewise.
5507
5508 2004-02-02  Vin Shelton <acs@xemacs.org>
5509
5510         * XEmacs 21.4.15 is released
5511
5512 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5513
5514         * device-x.c (x_error_handler): Don't call stderr_out
5515
5516 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5517
5518         * buffer.c (other-buffer): Clarify documentation of order of
5519         arguments for FSF Emacs.
5520
5521 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5522
5523         * window.c (Fdelete_window): Dirty the mirror structure _before_
5524         marking the window deleted.
5525
5526 2003-09-15  Jerry James  <james@xemacs.org>
5527
5528         * event-msw.c (debug_mswin_messages): Conditionally compile
5529         messages missing from the Cygwin headers.
5530
5531 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5532
5533         * data.c (eq_with_ebola_notice): Fix typo in comment.
5534         (Ftrue_list_p): Improve docstring.
5535
5536 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5537
5538         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5539
5540 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5541
5542         * search.c (trivial_regexp_p): Regexps containing "\{" are
5543         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5544         Stefan Monnier for suggesting a diagnosis.
5545
5546 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5547
5548         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5549
5550 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5551
5552         * search.c (Fsearch_forward):
5553         (Fsearch_backward):
5554         Document negative count.
5555
5556 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5557
5558         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5559
5560 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5561
5562         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5563
5564 2003-09-15  Vin Shelton  <acs@xemacs.org>
5565
5566         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5567         21.5.
5568
5569 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5570
5571         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5572         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5573         (re_match_2_internal): Use TRANSLATE instead of
5574         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5575         non-ASCII char case conversion.
5576
5577 2003-09-08  Mike Sperber  <mike@xemacs.org>
5578
5579         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5580         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5581
5582 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5583
5584        * .gdbinit (pobj): fix printing of symbol name.
5585
5586 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5587
5588         * frame-x.c (x_layout_widgets): When resizing is about to cause
5589         frame size slip, mark it for redisplay.
5590
5591 2003-08-18  Jerry James  <james@xemacs.org>
5592
5593         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5594
5595 2003-09-03  Vin Shelton <acs@xemacs.org>
5596
5597         * XEmacs 21.4.14 is released
5598
5599 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5600
5601         * config.h.in (REGEX_MALLOC): Make it configure'able.
5602
5603 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5604
5605         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5606         linking.
5607         * sysdll.c (dll_init):
5608         * sysdll.c (dll_open):
5609         * sysdll.c (dll_close):
5610         * sysdll.c (dll_function):
5611         * sysdll.c (dll_variable):
5612         * sysdll.c (dll_error):
5613         Add support for loading bundles using Darwin/MacOSX
5614         native API.
5615
5616 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5617
5618         * process.c (start-process-internal): Document coding systems.
5619
5620 2003-07-30  Jerry James  <james@xemacs.org>
5621
5622         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5623
5624 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5625
5626         * event-msw.c (mswindows_enqueue_mouse_button_event):
5627         * event-msw.c (mswindows_wnd_proc):
5628           enqueue button event when scrollwheel event isn't handled by 
5629           mswindows_handle_mousewheel_event, such as when the scrollbars
5630           are not showing.
5631
5632 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5633
5634         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5635
5636 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5637
5638         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5639
5640 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5641
5642         * regex.c (re_match_2_internal): Fix matching degenerate word
5643         boundaries.
5644
5645 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5646
5647         * XEmacs 21.4.13 is released
5648
5649 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5650
5651         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5652         * lisp.h (<inttypes.h>):
5653         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5654         the definition.
5655
5656 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5657
5658         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5659         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5660         Result: "temacs can only be run in -batch mode."
5661         Fix: Check xemacs executable candidate for directory-ness.
5662
5663 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5664
5665         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5666           they conflict with <sys/types.h>.
5667
5668 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5669
5670         * database.c: Berkeley DB wants __STDC__ to be defined.
5671
5672 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5673
5674         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5675
5676 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5677
5678         * process-unix.c (unix_send_process): Fix C++ compile error.
5679
5680 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5681
5682         * Added .dylib as an acceptable shared library file extension
5683         * to support MacOSX.
5684
5685 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5686
5687         * EmacsFrameP.h (EmacsFramePart):
5688         Kludge to allow compiling with Motif1, but linking with Motif2.
5689
5690 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5691
5692         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5693
5694
5695 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5696
5697         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5698
5699 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5700
5701         * sysdll.c: Included lisp.h to define needed alloca_array.
5702
5703 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5704
5705         Make XEmacs redisplay 10 times faster.
5706         If, that is, you're using a slow X connection and MoveOpaque.
5707         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5708         Use compress_motion = TRUE.
5709         * EmacsFrame.c (emacsFrameClassRec): 
5710         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5711         * EmacsManager.c (emacsManagerClassRec):
5712         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5713
5714 2003-01-30  Vin Shelton  <acs@xemacs.org>
5715
5716         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5717
5718 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5719
5720         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5721         Patch by Martin Buchholz.
5722
5723 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5724
5725         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5726         Thanks to icc for warning and Martin Buchholz for reporting.
5727
5728 2003-01-29  Vin Shelton <acs@xemacs.org>
5729
5730         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5731
5732         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5733         remember to multiply by the element size.
5734
5735 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5736
5737         * XEmacs 21.4.12 "Portable Code" is released.
5738
5739 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5740
5741         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5742         * s/cygwin.sc: new linker file.
5743
5744 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5745
5746         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5747
5748         * redisplay-x.c (x_output_string): Use X11-specified types.
5749         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5750         * emacs.c (__free_hook): Use typeof with Intel compiler.
5751         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5752
5753 2003-01-08  Andy Piper  <andy@xemacs.org>
5754
5755         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5756         reserve size during unexec().
5757
5758 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5759
5760         * process-unix.c (unix_create_process): Don't let outchannel block.
5761
5762 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5763
5764         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5765         Needed for IsBadReadPtr().
5766
5767 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5768
5769         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5770
5771 2002-12-14  Ben Wing  <ben@xemacs.org>
5772
5773         * callint.c: Declaration error.
5774         * dumper.c (pdump):
5775         * dumper.c (pdump_load): Warning fix.
5776         * process.c: GCPRO error.
5777         * glyphs.c (unmap_subwindow):
5778         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5779         * event-stream.c (maybe_kbd_translate): Wrong argument to
5780         character_to_event().
5781
5782         * alloc.c (garbage_collect_1):
5783         * emacs.c:
5784         * emacs.c (debug_can_access_memory):
5785         * emacs.c (fatal_error_signal):
5786         * emacs.c (mswindows_handle_hardware_exceptions):
5787         * emacs.c (main_1):
5788         * emacs.c (main):
5789         * emacs.c (assert_failed):
5790         * emacs.c (syms_of_emacs):
5791         * lisp.h:
5792         * print.c:
5793         * print.c (std_handle_out_va):
5794         * print.c (write_string_to_stdio_stream):
5795         * print.c (write_fmt_string):
5796         * print.c (printing_badness):
5797         * print.c (printing_major_badness):
5798         * print.c (print_internal):
5799         * print.c (debug_print_no_newline):
5800         * print.c (debug_backtrace):
5801         Be more defensive in handling bad values when printing.  Add code
5802         from trunk involving inhibit_non_essential_printing_operations.
5803         When going down or in debug_print(), don't do external conversion
5804         and such and try really, really hard when printing to avoid core
5805         dumping.  Add force-debugging-signal, debug_break().
5806
5807 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5808
5809         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5810         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5811
5812 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5813
5814         * database.c: Fix open_database. Berkeley DB API has changed in
5815         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5816
5817 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5818
5819         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5820
5821 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5822
5823         * event-Xt.c (Xt_timeout):
5824         (Xt_timeout_callback):
5825         (emacs_Xt_add_timeout):
5826         (emacs_Xt_remove_timeout):
5827         (Xt_timeout_to_emacs_event):
5828         Turn completed_timeouts from a stack into a queue.  Fixes
5829         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5830
5831 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5832
5833         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5834         * emacs.c (main): Assert that mmap'd allocation is disabled.
5835
5836 2002-10-14  Andy Piper  <andy@xemacs.org>
5837
5838         * glyphs-widget.c (layout_query_geometry): add in fiddle
5839         factor. Include border text in width layout calculation.
5840         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5841
5842 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5843
5844         * XEmacs 21.4.10 "Military Intelligence" is released.
5845
5846 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5847
5848         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5849         using the NAS private array SoundFileInfo that no longer exists in
5850         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5851         and earlier.  This is broken for some versions between 1.5a and
5852         1.5f.
5853
5854 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5855
5856         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5857
5858         * emacs.c (shut_down_emacs): Improve crash message.
5859
5860 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5861
5862         * file-coding.c (determine_real_coding_system): Check for coding
5863         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5864         shebangs and Python PEP 263.
5865
5866 2002-10-08  Andy Piper  <andy@xemacs.org>
5867
5868         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5869         if static sizes haven't been set.
5870
5871 2002-08-30  Mike Alexander  <mta@arbortext.com>
5872
5873         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5874         to close a socket.
5875
5876 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5877
5878         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5879
5880 2002-09-20  Mike Sperber <mike@xemacs.org>
5881
5882         (This partially gets back my patch from 2002-07-20 without the
5883         bug.)
5884         * callproc.c (child_setup): Remove Ben's comment noting confusion
5885         over the file descriptors >= 3: close_process_descs() doesn't
5886         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5887         * process-unix.c (unix_create_process): Call
5888         begin_dont_check_for_quit to inhibit unwanted interaction (and
5889         thus breaking of X event synchronicity) in the child.
5890
5891 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5892
5893         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5894         widget.
5895
5896 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5897
5898         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5899         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5900         the xemacs process did not exit, but looped infinitely here.  This
5901         fixes that problem.
5902
5903 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5904
5905         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5906         (find_context): Improve comments.
5907
5908         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5909         (re_match_2): An XCHAR_TABLE operation was missing.
5910
5911         Many of the following changes were inspired by Andy Piper's (now
5912         obsolete) patch to make syntax-table text property lookup optional.
5913
5914         [Documentation]
5915
5916         * syntax.h (top level): Document semantics of syntax flags.
5917         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5918         * syntax.c, syntax.h (top level): Document syntax cache better in
5919         comments.
5920
5921         [Instrument syntax caching (temporary change)]
5922
5923         * syntax.h (enum syntax_cache_statistics_functions, struct
5924         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5925         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5926         * syntax.c (scan_words, Fforward_comment, scan_lists,
5927         Fbackward_prefix_characters):
5928         * font-lock.c (find_context):
5929         Use them to instrument syntax caching. 
5930         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5931         syntax_cache_statistics_function_names): New type and variables.
5932         * syntax.c (update_syntax_cache): Update and report statistics.
5933
5934         [Major syntax cache optimizations]
5935
5936         syntax.c (lookup_syntax_properties): Default off.
5937
5938         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5939         * syntax.c (update_syntax_cache):
5940         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5941
5942         [Minor syntax cache optimizations and code clarifications]
5943
5944         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5945         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5946         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5947         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5948         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5949         (Code clarification.)
5950
5951         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5952         scan_lists): Compute code from syncode, use Boolean macros instead
5953         of redundant masking operations.  (Code clarification; any decent
5954         compiler can do this optimization.)
5955
5956         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5957         for clarity.
5958
5959         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5960         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5961         use F*_single_property_change instead of F*_extent_change.
5962         Currently F*_single_property_change is _much_ less efficient.
5963
5964         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5965         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5966         syntax_cache.object properly, don't leave Qt or Qnil.
5967         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5968         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5969         tests for Qt or Qnil.
5970
5971 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5972
5973         * redisplay.c (point_in_line_start_cache): 
5974         * extents.c (print_extent_1):
5975         Fix warnings.
5976
5977         * extents.c (Fset_extent_property): Document `syntax-table' property.
5978
5979         * extents.h (Fnext_single_property_change): EXFUN it.
5980
5981 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5982
5983         * search.c (clear_unused_search_regs): New static function.
5984         (search_buffer): 
5985         (simple_search): 
5986         (boyer_moore):
5987         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5988         Minor clarifications in comments.
5989
5990         * regex.c (re_match_2_internal): Ensure no stale submatches.
5991
5992 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5993
5994         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5995
5996 2002-08-29  Jerry James  <james@xemacs.org>
5997
5998         * lisp.h: structrures -> structures.
5999
6000 2002-06-03  Andy Piper  <andy@xemacs.org>
6001
6002         * frame.c (frame_conversion_internal): add conversion appropriate
6003         for setting frame dimensions in pixels.
6004
6005         * console.h (struct console_methods): add device-specific widget
6006         layout functions.
6007
6008         * emacs.c (main_1): initialize glyph vars.
6009
6010         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6011         (handle_focus_event_2): new function. Allow focus to
6012         be set to a particular window and widget.
6013         (enqueue_focus_event): new function. Create a
6014         synthetic focus event.
6015         (emacs_Xt_handle_magic_event): call
6016         handle_focus_event_2.
6017
6018         * frame.c (Fset_frame_pixel_height): new function. Allow
6019         pixel-based sizing. Does the right thing on character-oriented
6020         displays.
6021         (Fset_frame_pixel_width): ditto.
6022         (Fset_frame_pixel_size): ditto.
6023         (syms_of_frame): declare.
6024
6025         * general-slots.h: add :vertically-justify and
6026         :horizontally-justify.
6027
6028         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6029         (mswindows_widget_border_width): new function.
6030         (mswindows_combo_box_instantiate): set border widths.
6031         (console_type_create_glyphs_mswindows): declare.
6032
6033         * glyphs-widget.c:
6034         (check_valid_justification): allow vertical and horizontal
6035         justification.
6036         (widget_border_width): new function. Call device methods.
6037         (widget_instance_border_width): ditto.
6038         (logical_unit_height): new function. Determine the height of a
6039         logical-unit. Logical units are intended to provide grid-like
6040         layout for subcontrols in a layout. If the layout is
6041         :vertically-justify top then subcontrols will be positioned on
6042         logical-unit boundaries, thus allowing adjacent subcontrols to
6043         line up.
6044         (widget_logical_unit_height): ditto for widgets.
6045         (redisplay_widget): misc cleanup.
6046         (widget_spacing): new function. Call device specific
6047         methods. Intended to be the default gap between adjacent widgets.
6048         (widget_query_geometry): use new spacing functions to determine
6049         appropriate geometry.
6050         (initialize_widget_image_instance): initialize horizontal and
6051         vertical justification.
6052         (widget_instantiate): use logica-units where appropriate for
6053         sizing large widgets.
6054         (button_query_geometry): use widget_instance_border_width.
6055         (tree_view_query_geometry): ditto.
6056         (tab_control_query_geometry): ditto.
6057         (edit_field_query_geometry): new function.
6058         (layout_update): pick up :justify, :horizontally-justify and
6059         :vertically-justify none of which worked previously. :justify is
6060         used as a fallback for both horizontal and vertical justification.
6061         (layout_query_geometry): use logical units to size appropriately.
6062         (layout_layout): ditto.
6063         (Fwidget_logical_to_character_width): new function. Allow users to
6064         convert from logical units to characters so that frame sizes can
6065         be set appropriately.
6066         (Fwidget_logical_to_character_height): ditto.
6067         (syms_of_glyphs_widget): declare.
6068         (image_instantiator_edit_fields): add edit_field_query_geometry.
6069         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6070         :horizontally-justify.
6071         (specifier_vars_of_glyphs_widget): new function. Declare
6072         Vwidget_border_width which is not yet used.
6073
6074         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6075         (x_widget_border_width): new function.
6076         (x_widget_instantiate): create a sensible name for widgets.
6077         (console_type_create_glyphs_x): declare x_widget_border_width.
6078
6079         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6080         (struct Lisp_Image_Instance): add :vertically-justify and
6081         :horizontally-justify.
6082         (LAYOUT_JUSTIFY_TOP): new.
6083         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6084         (ROUND_UP): new macro. Round argument up to next integral
6085         interval.
6086
6087         * redisplay-output.c (redisplay_output_layout): misc formatting.
6088
6089         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6090
6091 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6092
6093         * XEmacs 21.4.9 "Informed Management" is released.
6094
6095 2002-08-19  Andy Piper  <andy@xemacs.org>
6096
6097         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6098         win32 format.
6099
6100         * realpath.c (xrealpath): normalize drive spec also so that dir
6101         sep chars are not mixed on cygwin.
6102
6103 2002-08-06  Jerry James  <james@xemacs.org>
6104
6105         * window.c (Fsplit_window): Count only half of the divider width
6106         against the left window when splitting horizontally. 
6107
6108 2002-06-24  Andy Piper  <andy@xemacs.org>
6109
6110         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6111         toolbar was cleared.
6112
6113         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6114         function. Split out from mswindows_output_frame_toolbars.
6115         (mswindows_output_frame_toolbars): move clear pieces to
6116         mswindows_output_frame_toolbars.
6117
6118         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6119         out from gtk_output_frame_toolbars.
6120         (gtk_output_frame_toolbars): move clear pieces to
6121         gtk_clear_frame_toolbars.
6122
6123         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6124         the frame is cleared. How this ever worked before is a mystery.
6125         (x_output_frame_toolbars): Only output toolbars.
6126         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6127
6128         * gutter.c (update_gutter_geometry):
6129         Mark frame layout changed.
6130         (update_frame_gutter_geometry, update_frame_gutters):
6131         Respect frame_layout_changed.
6132
6133         * console.h (struct console_methods): add
6134         clear_frame_toolbars_method.
6135
6136         * redisplay.c (redisplay_frame): call
6137         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6138
6139         * toolbar.h: declare update_frame_toolbars_geometry.
6140
6141         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6142         out from update_frame_toolbars.  Call clear_frame_toolbars.
6143         (update_frame_toolbars): only output, do not change geometry.
6144
6145         * redisplay.c: add frame_layout_changed.
6146
6147         * redisplay.h: add frame_layout_changed.
6148         (CLASS_RESET_CHANGED_FLAGS): set it.
6149         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6150         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6151         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6152
6153         * device.h (struct device): add frame_layout_changed.
6154         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6155
6156         * frame.h (struct frame): add frame_layout_changed.
6157         (MARK_FRAME_LAYOUT_CHANGED): new.
6158
6159 2002-06-30  Mike Alexander  <mta@arbortext.com>
6160
6161         * event-msw.c (mswindows_need_event): Don't wait for a new message
6162         if the queue is not empty.  Suggested by Paul Moore.
6163
6164 2002-06-12  Andy Piper  <andy@xemacs.org>
6165
6166         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6167         for printing on accurately.
6168
6169 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6170
6171         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6172         WM_ACTIVATE message. Make sure that the frame is visible if the
6173         window is visible. This seemss to fix the problem where XEmacs
6174         appears to freeze after switching desktops with certain virtual
6175         window managers.
6176         (debug_output_mswin_message): Added code to output message
6177         parameters for WM_WINDOWPOSCHANGED, 
6178         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6179
6180 2002-05-25  Andy Piper  <andy@xemacs.org>
6181
6182         * select-x.c (vars_of_select_x): Fix docstring of
6183         x-selection-strict-motif-ownership
6184
6185 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6186
6187         * keymap.c (get_keymap):
6188         Add comment about do_autoload GCPROs own args.
6189
6190 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6191
6192         * bytecode.c (execute_optimized_program): check_opcode ifdef
6193         ERROR_CHECK_BYTE_CODE.
6194
6195 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6196
6197         Thanks to Ben Wing and Michael Sperber.
6198
6199         * eval.c (Fcommand_execute):
6200         (Feval):
6201         (Ffuncall):
6202         (Fmacroexpand_internal):
6203         (function_argcount):
6204         callint.c (Fcall_interactively):
6205         Add comment about do_autoload GCPROs own args.
6206
6207         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6208
6209         * eval.c (Ffuncall): Extra braces to placate GCC.
6210
6211 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6212
6213         * backtrace.h (grow_specpdl):
6214         (SPECPDL_RESERVE):
6215         * EmacsFrame.c (EmacsFrameSetValues):
6216         * eval.c (grow_specpdl):
6217         * ExternalShell.c (hack_event_masks_1):
6218         * glyphs-x.c (convert_EImage_to_XImage): 
6219         (x_finalize_image_instance):
6220         * ralloc.c (page_size):
6221         (r_alloc_sbrk):
6222         * xgccache.c (gc_cache_hash):
6223         Fix unsigned comparison warnings.
6224
6225 2002-07-29  Jerry James  <james@xemacs.org>
6226
6227         * lread.c (locate_file): Any nonnegative return value indicates
6228         success if MODE is nonnegative.
6229
6230 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6231
6232         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6233         argument. 
6234
6235 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6236
6237         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6238
6239         * dumper.c (pdump_get_indirect_count):
6240         (pdump_scan_by_alignment):
6241         (pdump_dump_root_struct_ptrs):
6242         (pdump_dump_rtables):
6243         (pdump_dump_root_objects):
6244         (pdump):
6245         * nas.c (WaveOpenDataForReading):
6246         * fns.c (print_bit_vector):
6247         * font-lock.c (SINGLE_SYNTAX_STYLE):
6248         * glyphs.c (check_for_ignored_expose):
6249         (find_matching_subwindow):
6250         * glyphs-eimage.c:
6251         * imgproc.c (get_histogram):
6252         * redisplay.c (point_in_line_start_cache):
6253         * redisplay-output.c (redisplay_unmap_subwindows):
6254         * symbols.c (defsymbol_massage_name_1):
6255         (defkeyword_massage_name):
6256         (deferror_massage_name_and_message):
6257         * redisplay-x.c (x_output_string): 
6258         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6259         * frame.h (struct frame):
6260         * filelock.c (current_lock_owner):
6261         * doprnt.c (emacs_doprnt_1):
6262         * lisp.h (struct Lisp_Bit_Vector):
6263         (DO_REALLOC):
6264         Fix warnings.
6265
6266 2002-02-13  Ben Wing  <ben@xemacs.org>
6267
6268         * event-stream.c (reset_key_echo):
6269         * event-stream.c (reset_this_command_keys):
6270         * event-stream.c (execute_command_event):
6271         If console is dead as a result of C-x 5 0, then post-command stuff
6272         needs to be careful and do only non-console-specific stuff.
6273
6274 2002-07-01  Mike Sperber <mike@xemacs.org>
6275
6276         * process-unix.c (unix_send_process): Mark coding_outstream as
6277         non-open upon SIGPIPE.
6278
6279         * event-stream.c (Fnext_event): Reorder switch cases to something
6280         that makes sense.
6281
6282 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6283
6284         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6285         Don't bogusly reinitialize ascii_character property.
6286
6287 2002-07-08  Mike Sperber <mike@xemacs.org>
6288
6289         * process.c (Fstart_process_internal): Do error checking before we
6290         fork off the child, so the child can't muck with the state of the
6291         parent.
6292
6293 2002-07-08  Mike Sperber <mike@xemacs.org>
6294
6295         * ralloc.c (init_ralloc): Allocate properly for pdump.
6296
6297 2002-06-12  Andy Piper  <andy@xemacs.org>
6298
6299         * glyphs.c (query_string_geometry): check the string.
6300
6301         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6302         widget names.
6303
6304 2002-06-17  Jerry James  <james@xemacs.org>
6305
6306         * sysdll.c: Remove RTLD_GLOBAL initialization.
6307         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6308
6309 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6310
6311         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6312
6313 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6314
6315         * sysdep.c (sys_rename): Make sys_rename work for the case where
6316         Windows rename sets errno to EACCES if target file exists.
6317
6318 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6319
6320         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6321         Fix detection of metric units to work on Win95
6322
6323 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6324
6325         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6326
6327 2002-04-25  Andy Piper  <andy@xemacs.org>
6328
6329         * redisplay.c (create_text_block): Remove extra comment trailer.
6330
6331 2002-04-24  Andy Piper  <andy@xemacs.org>
6332
6333         * redisplay.c (create_text_block): Don't actually add propagation
6334         data if the line ends after we have added a glyph.
6335
6336 2002-04-22  Andy Piper  <andy@xemacs.org>
6337
6338         * extents.c (extent_fragment_update): check for glyphs we have
6339         previously displayed.
6340         * extents.c (print_extent_1): warning removal.
6341         * extents.h: change prototype.
6342         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6343         widths correctly for wide glyphs.
6344         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6345         * redisplay.c (prop_type): add PROP_GLYPH.
6346         * redisplay.c (struct prop_block): add glyph type
6347         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6348         to the propagation data.
6349         * redisplay.c (create_text_block): if there is a glyph in the
6350         propagation data use it to salt extent_fragment_update.
6351         * redisplay.c (create_string_text_block): ditto.
6352
6353 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6354
6355         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6356         * redisplay-output.c (compare_runes): Compare them.
6357         * redisplay.c: Update copyright date.
6358         * redisplay.c (pos_data): Add need_baseline_computation field.
6359         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6360         need_baseline_computation; zero yoffset. Set max_pixmap_height
6361         for all pixmaps, not just automatically positioned ones.
6362         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6363         * redisplay.c (calculate_baseline): New, compute textual baseline.
6364         * redisplay.c (add_glyph_rune): Call them.
6365         * redisplay.c (create_text_block): Likewise.
6366         * redisplay.c (create_overlay_glyph_block): Likewise.
6367         * redisplay.c (add_margin_runes): Likewise.
6368         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6369
6370         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6371         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6372         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6373         * redisplay-msw.c (mswindows_output_string): Likewise.
6374         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6375         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6376         * redisplay-x.c (x_output_display_block): Likewise.
6377
6378 2002-03-28  Ben Wing  <ben@xemacs.org>
6379
6380         * redisplay.c: Fixed bug in redisplay
6381         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6382         and down of the lines, since they're bigger than the line
6383         size. (It was seen most obviously when there's a horizontal scroll
6384         bar, e.g. do C-h a glyph or something like that.) The problem was
6385         that the glyph-contrib-p setting on glyphs was ignored even if it
6386         was set properly, which it wasn't until now.
6387
6388 2002-04-24  Andy Piper  <andy@xemacs.org>
6389
6390         * lisp.h (Dynarr_end): Fix definition.
6391
6392 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6393
6394         * redisplay.c (mark_redisplay): Remove call to
6395         update_frame_window_mirror.
6396
6397 2001-11-15  Andy Piper  <andy@xemacs.org>
6398
6399         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6400         cygwin (again).
6401
6402 2002-02-13  Andy Piper  <andy@xemacs.org>
6403
6404         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6405         we did in fact enqueue the XM_MAPFRAME event.
6406
6407 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6408
6409         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6410         to fix problem switching between virtual desktops under virtuawin
6411         virtual window manager.
6412
6413 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6414
6415         * event-msw.c: Typo fix.
6416         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6417         magic XM_MAPFRAME event has been sent.
6418
6419 2001-11-23  Andy Piper  <andy@xemacs.org>
6420
6421         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6422
6423 2001-11-21  Andy Piper  <andy@xemacs.org>
6424
6425         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6426         mouse events outside the frame.
6427
6428 2002-03-20  Andy Piper  <andy@xemacs.org>
6429
6430         * menubar-msw.c (mswindows_popup_menu): warning removal.
6431         * dialog-msw.c (dialog_popped_down): ditto.
6432
6433 2001-12-11  Andy Piper  <andy@xemacs.org>
6434
6435         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6436         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6437         popup_up_p.
6438         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6439         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6440         * menubar-msw.c (mswindows_popup_menu): ditto.
6441
6442 2001-10-29  Andy Piper  <andy@xemacs.org>
6443
6444         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6445         cancels.
6446
6447 2002-01-03  Andy Piper  <andy@xemacs.org>
6448
6449         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6450         letters.
6451         (xrealpath): ditto.
6452
6453 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6454
6455         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6456         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6457         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6458         Detect and handle case where machine is set up for metric units
6459
6460 2002-04-02  Andy Piper  <andy@xemacs.org>
6461
6462         * dired-msw.c (mswindows_get_files): 
6463         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6464         completely handled by XEmacs. Suggested by Thomas Vogler
6465         <mail@thomas-vogler.de>.
6466
6467 2001-11-14  Andy Piper  <andy@xemacs.org>
6468
6469         * nt.c (REG_ROOT): change registry key to XEmacs.
6470
6471 2002-04-27  Andy Piper  <andy@xemacs.org>
6472
6473         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6474
6475 2002-04-26  Andy Piper  <andy@xemacs.org>
6476
6477         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6478         behavior.
6479
6480 2002-03-14  Mike Alexander  <mta@arbortext.com>
6481
6482         * event-msw.c (mswindows_unwait_process): New, remove process from
6483         wait list
6484         * process-nt.c (nt_finalize_process_data): Call
6485         mswindows_unwait_process
6486         * console-msw.h: Declare mswindows_unwait_process
6487
6488 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6489
6490         * editfns.c (Fdecode_time):
6491         (Fformat_time_string):
6492         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6493         (make_time): Warning elimination (change arg name).
6494
6495 2001-11-24  Andy Piper  <andy@xemacs.org>
6496
6497         * window.c (Fsplit_window): Doc return type.
6498
6499 2002-04-01  Andy Piper  <andy@xemacs.org>
6500
6501         * emacs.c (Fkill_emacs): Only output message box in interactive
6502         mode.
6503
6504 2002-04-26  Andy Piper  <andy@xemacs.org>
6505  
6506         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6507         cygwin.
6508
6509 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6510
6511         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6512         bit platform.
6513
6514 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6515
6516         * XEmacs 21.4.8 "Honest Recruiter" is released.
6517
6518 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6519
6520         Supersedes 2002-04-17 patch.
6521
6522         * process.h (PROCESS_LIVE_P): Use the process status as
6523         evidence of health, not the state of the input stream.
6524         (PROCESS_READABLE_P): Say if the process is readable
6525         from. (It may be dead nonetheless.)
6526         (CHECK_READABLE_PROCESS): Test for that condition.
6527
6528         * process.c (create_process): Use PROCESS_READABLE_P.
6529         (read_process_output, set_process_filter): Likewise.
6530
6531         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6532         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6533
6534         This code is #if 0'd, this is not the time to add new functions:
6535
6536         * process.c (Fprocess_readable_p): Report readability status.
6537         * process.c (Qprocess_readable_p): New, associated symbol...
6538         * process.c (syms_of_process): ... initialize it.
6539
6540 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6541
6542         * XEmacs 21.4.7 "Economic Science" is released.
6543
6544 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6545
6546         * process.h (PROCESS_LIVE_P): Use the process status as
6547         evidence of health, not the state of the input stream.
6548
6549 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6550
6551         * sysdep.c (sys_siglist): change "signum" to "signal"
6552
6553 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6554
6555         * s/darwin.h: New file.
6556         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6557         
6558 2002-04-23  Andreas Jaeger  <aj@suse.de>
6559
6560         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6561         which use lib64 for 64-bit libs.
6562         (START_FILES): Likewise.
6563
6564 2002-02-11  Mike Sperber  <mike@xemacs.org>
6565
6566         * device-x.c: 
6567         (x_IO_error_handler):
6568         (x_init_device): Temporarily keep device in static variable
6569         `device_being_initialized' so we can recover gracefully from
6570         internal XOpenDevice failure.  (XOpenDevice is documented to
6571         return NULL on failure, but sometimes calls the IO error handler
6572         instead.)
6573
6574 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6575
6576         * dired.c (Ffile_name_all_completions): Change documentation --
6577         remove reference to completion-ignored-extensions.
6578         * dired.c (vars_of_dired): Change documentation for
6579         completion-ignored-extensions -- remove reference to
6580         file-name-all-completions.
6581
6582 2002-03-06  Jerry James  <james@xemacs.org>
6583
6584         * emodules.c (emodules_load): Fix multiple loading of same module.
6585
6586 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6587         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6588         RTLD_LAZY to avoid incorrect symbol binding when using nested
6589         shared libraries on Solaris.
6590
6591 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6592
6593         * fileio.c (Ffind_file_name_handler): Improve docstring.
6594
6595 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6596
6597         * fns.c (Fmapconcat): Improve docstring.
6598
6599 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6600
6601         * device-gtk.c: Add prototype for
6602         emacs_gtk_selection_clear_event_handle.
6603         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6604         selection.  Setup signal handler for "selection_clear_event"
6605         (emacs_gtk_selection_clear_event_handle).
6606
6607         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6608         other applications owning the clipboard (based on
6609         x_handle_selection_clear).
6610
6611 2001-12-23  William M. Perry  <wmperry@gnu.org>
6612
6613         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6614         
6615 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6616
6617         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6618
6619 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6620
6621         * XEmacs 21.4.6 "Common Lisp" is released.
6622
6623 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6624
6625         * search.c (Freplace_match): Add missing sub-expression functionality.
6626
6627         * buffer.c (decode_buffer): Add a check for pointer type to
6628         decode_buffer, before gcc's CSE optimization reorders a
6629         dereference in front of the allow_string test.
6630
6631 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6632
6633         * window.c (window_loop): Fix bug that sometimes prevented
6634         window_loop() from iterating across multiple devices.  Also, at
6635         Ben's request, changed infloop-detecting code to abort() instead
6636         of silently terminating window_loop().
6637
6638 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6639
6640         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6641         * editfns.c (make_time): New function.
6642         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6643         * lisp.h (make_time): Prototype and comment it.
6644         * dired.c (wasteful_word_to_lisp): Deprecate.
6645         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6646
6647 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6648
6649         * fileio.c (auto_save_1): Use current coding system, not
6650         escape-quoted.
6651
6652 2001-11-13  Ben Wing  <ben@xemacs.org>
6653
6654         * window.c:
6655         * window.c (window_truncation_on):
6656         * window.c (syms_of_window):
6657         truncate-partial-width-windows should respect the buffer being
6658         displayed, like other redisplay vars.
6659
6660 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6661
6662         * event-stream.c (Fread_key_sequence): save current buffer.
6663
6664 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6665
6666         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6667
6668 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6669
6670         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6671
6672 2001-10-26  Mike Alexander  <mta@arbortext.com>
6673
6674         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6675
6676 2001-10-25  Andy Piper  <andy@xemacs.org>
6677
6678         * ChangeLog:
6679         * dialog-msw.c (handle_directory_proc): new function.
6680          (handle_directory_dialog_box): new fucntion.
6681          (handle_file_dialog_box): use new directory dialog support.
6682          (mswindows_make_dialog_box_internal): ditto.
6683         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6684         handling.
6685         (mswindows_find_frame): make global.
6686         * fileio.c (Fexpand_file_name): build fix.
6687         * general-slots.h: add Qdirectory.
6688         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6689         handling.
6690         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6691         cygwin not leaving win32 paths unchanged.
6692         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6693         cygwin runtime to do path conversion.
6694         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6695         (syms_of_win32): add new function.
6696         * window.c (window_loop): build fix.
6697
6698 2001-10-15  Andy Piper  <andy@xemacs.org>
6699
6700         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6701
6702 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6703
6704         * XEmacs 21.4.5 "Civil Service" is released.
6705
6706 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6707
6708         * glyphs-x.c: Force buffer-tab highlight update when moving the
6709         buffer, avoiding an ugly black border, used for keyboard focus
6710         indication, on a widget that can never have keyboard focus, the
6711         buffer tab.
6712
6713 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6714
6715         * process-unix.c (unix_open_multicast_group): Remove too much
6716         conversion between host and network byte order.
6717
6718 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6719
6720         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6721         before replacing them.
6722
6723         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6724         operation.
6725
6726         * src/window.c (undedicate_windows): Use it.
6727         * src/window.h: Add prototype.
6728
6729 2001-09-17  Ben Wing  <ben@xemacs.org>
6730
6731         * fileio.c (normalize_filename):
6732         * fileio.c (Fexpand_file_name):
6733         Fix various C++ compile errors in Andy's recent code.
6734         
6735         * callint.c (Fcall_interactively):
6736         * editfns.c (Ftemp_directory):
6737         * editfns.c (Fuser_full_name):
6738         * emacs.c (argmatch):
6739         * lread.c (locate_file_map_suffixes):
6740         * redisplay-x.c (x_ring_bell):
6741         Fix sign-compare warnings.
6742         
6743 2001-09-08  Andy Piper  <andy@xemacs.org>
6744
6745         * fileio.c (normalize_filename): copied from nt.c
6746         * (Ffile_name_directory): enable win32 paths under cygwin.
6747         * (Ffile_name_nondirectory): ditto.
6748         * (directory_file_name): ditto.
6749         * (Fexpand_file_name): ditto.
6750         * (Ffile_truename): ditto.
6751         * (Fsubstitute_in_file_name): ditto.
6752         * (Ffile_name_absolute_p): ditto.
6753         * (Ffile_readable_p): ditto.
6754
6755 2001-09-08  Andy Piper  <andy@xemacs.org>
6756
6757         * device-msw.c (mswindows_finish_init_device): remove dde
6758         initialization.
6759         * device-msw.c (mswindows_init_dde): factor out from
6760         mswindows_finish_init_device()
6761         * device-msw.c (init_mswindows_very_early): new function
6762         initialize but don't enable dde.
6763         * emacs.c (main_1): call init_mswindows_very_early.
6764         * event-msw.c:
6765         * event-msw.c (mswindows_dde_callback): only execute when we are
6766         ready.
6767         * symsinit.h: declare init_mswindows_very_early.
6768
6769 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6770
6771         [sjt: This has been in 21.5 for months with no complaints.]
6772
6773         * console.h (struct console_methods): Added flags member.
6774         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6775         (CONMETH_IMPL_FLAG):
6776         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6777         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6778
6779         * device.c (window_system_pixelated_geometry): Use the above macros.
6780
6781         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6782         implememntation flag.
6783         * device.h (DEVICE_DISPLAY_P): Use it.
6784
6785         * frame.c (delete_frame_internal): Use the above macro.
6786
6787         * redisplay.c (redisplay_device): Use it.
6788         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6789         (redisplay_frame): Ditto.
6790
6791         * device-msw.c (mswindows_device_implementation_flags): Removed.
6792         (msprinter_device_implementation_flags): Removed.
6793         (console_type_create_device_mswindows): Removed references to
6794         implementation_flags methods, set implementation flags here.
6795         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6796
6797         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6798         (console_type_create_device_gtk): Removed method declaration.
6799         Added commented out statement which semantically matches the
6800         commented out statement in the above removed method.
6801
6802 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6803
6804         The attached patch fixes a few warnings. 
6805
6806         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6807         * src/frame-gtk.c: guard against GNOME calls in GTK only
6808         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6809         * src/select-gtk.c: prototype lisp_to_time
6810
6811 2001-06-08  Ben Wing  <ben@xemacs.org>
6812
6813         ------ gc-in-window-procedure fixes ------
6814         
6815         * alloc.c:
6816         * alloc.c (struct post_gc_action):
6817         * alloc.c (register_post_gc_action):
6818         * alloc.c (run_post_gc_actions):
6819         * alloc.c (garbage_collect_1):
6820         Create "post-gc actions", to avoid those dreaded "GC during window
6821         procedure" problems.
6822
6823         * event-msw.c:
6824         Abort, clean and simple, when GC in window procedure.  We want
6825         to flush these puppies out.
6826
6827         * glyphs-msw.c:
6828         * glyphs-msw.c (finalize_destroy_window):
6829         * glyphs-msw.c (mswindows_finalize_image_instance):
6830         Use a post-gc action when destroying subwindows.
6831
6832         * lisp.h:
6833         Declare register_post_gc_action().
6834
6835         * scrollbar-msw.c:
6836         * scrollbar-msw.c (unshow_that_mofo):
6837         Use a post-gc action when unshowing scrollbar windows, if in gc.
6838
6839         * redisplay.c (mark_redisplay):
6840         Add comment about the utter evilness of what's going down here.
6841
6842         ------ cygwin setitimer fixes ------
6843         
6844         * Makefile.in.in (sheap_objs):
6845         * Makefile.in.in (profile_objs):
6846         * Makefile.in.in (objs):
6847         Compile profile.c only when HAVE_SETITIMER.
6848         
6849         * nt.c (mswindows_sigset):
6850         * nt.c (mswindows_sighold):
6851         * nt.c (mswindows_sigrelse):
6852         * nt.c (mswindows_sigpause):
6853         * nt.c (mswindows_raise):
6854         * nt.c (close_file_data):
6855         Style fixes.
6856         
6857         * nt.c:
6858         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6859         
6860         * profile.c:
6861         * profile.c (Fstart_profiling):
6862         * profile.c (Fstop_profiling):
6863         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6864         instead of just plain setitimer().
6865         
6866         * signal.c:
6867         * signal.c (set_one_shot_timer):
6868         * signal.c (alarm):
6869         Define qxe_setitimer() as an encapsulation around setitimer() --
6870         call setitimer() directly unless Cygwin or MS Win, in which case
6871         we use our simulated version in win32.c.
6872         
6873         * systime.h:
6874         * systime.h (struct itimerval):
6875         * systime.h (ITIMER_REAL):
6876         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6877         comment about "qxe" and the policy regarding encapsulation.
6878
6879         * win32.c:
6880         * win32.c (setitimer_helper_proc):
6881         * win32.c (setitimer_helper_period):
6882         * win32.c (setitimer_helper):
6883         * win32.c (mswindows_setitimer):
6884         Move setitimer() emulation here, so Cygwin can use it.
6885         Rename a couple of functions and variables to be longer and more
6886         descriptive.  In setitimer_helper_proc(), send the signal
6887         using either mswindows_raise() or (on Cygwin) kill().  If for
6888         some reason we are still getting lockups, we'll change the kill()
6889         to directly invoke the signal handlers.
6890
6891         ------ windows shell fixes ------
6892         
6893         * callproc.c:
6894         * ntproc.c:
6895         Comments about how these two files must die.
6896
6897         * callproc.c (init_callproc):
6898         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6899         not just COMSPEC. (more correct and closer to FSF.) Don't
6900         force a value for SHELL into the environment. (Comments added
6901         to explain why not.)
6902         
6903         * nt.c (init_user_info):
6904         Don't shove a fabricated SHELL into the environment.  See above.
6905
6906 2001-06-01  Ben Wing  <ben@xemacs.org>
6907
6908         * Makefile.in.in (ldflags):
6909         eliminate that pesky "defaulting to 00401000" warning.
6910         * nt.h:
6911         eliminate warnings.
6912
6913 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6914
6915         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6916         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6917
6918 2001-04-24  Jerry James <james@xemacs.org>
6919
6920         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6921         correct order.
6922
6923 2001-06-01  Ben Wing  <ben@xemacs.org>
6924
6925         * event-msw.c (debug_mswin_messages):
6926         conditionalize the messages that were causing compile errors.
6927         (if only macros could generate #ifdef statements ...)
6928
6929 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6930
6931         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6932
6933 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6934
6935         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6936
6937 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6938
6939         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6940         * process-unix.c (unix_canonicalize_host_name):
6941         sysdep.c (init_system_name):
6942         Use it to conditionally support IPv6 canonicalization.
6943
6944 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6945
6946         * event-msw.c:
6947         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6948
6949 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6950
6951         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6952         attempt is made to scroll when no scroll bar is available.
6953
6954 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6955
6956         * input-method-motif.c (XIM_delete_frame): New callback.
6957         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6958         got deleted from 21.4.3.)
6959
6960 2001-06-01  Ben Wing  <ben@xemacs.org>
6961
6962         * nt.c (mswindows_utime):
6963         * nt.c (close_file_data):
6964         fix off-by-one-indirection error.
6965
6966 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6967
6968         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6969         because set_file_times() now takes Lisp_Object path, instead of
6970         char*.
6971         * nt.c: Include buffer.h.
6972         * nt.c (convert_from_time_t): New.
6973         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6974         not set mtime correctly.
6975         * nt.h: Declare mswindows_utime().
6976         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6977         path, instead of char*.
6978         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6979
6980 2001-05-30  Ben Wing  <ben@xemacs.org>
6981
6982         For 21.4:
6983
6984         (Stephen, just take all event-msw.c patches.  This includes
6985         the "iconify" fix below.)
6986
6987         * event-msw.c:
6988         * event-msw.c (mswindows_dequeue_dispatch_event):
6989         * event-msw.c (assert):
6990         * event-msw.c (emacs_mswindows_quit_p):
6991         * event-msw.c (debug_mswin_messages):
6992         * event-msw.c (debug_output_mswin_message):
6993         * event-msw.c (vars_of_event_mswindows):
6994         Fix yet more problems with C-g handling.
6995         Implement debug-mswindows-events.
6996         
6997 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6998
6999         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7000         
7001 2001-05-23  Ben Wing  <ben@xemacs.org>
7002
7003         * event-msw.c (winsock_writer):
7004         * event-msw.c (winsock_closer):
7005         prior kludgy code was clobbering the buffer, thinking it was
7006         "unused" space to store an unneeded return value; instead, use
7007         the variable we've already got staring us in the face.
7008
7009 2001-05-17  Andy Piper  <andy@xemacs.org>
7010
7011         * sysfile.h: don't assume that file attributes are boolean
7012
7013 2001-05-23  Ben Wing  <ben@xemacs.org>
7014
7015         * device-msw.c (msprinter_init_device):
7016         signal an error rather than crash with an unavailable network
7017         printer (from Mike Alexander).
7018         
7019         * event-msw.c:
7020         * event-msw.c (struct winsock_stream):
7021         * event-msw.c (winsock_writer):
7022         * event-msw.c (winsock_closer):
7023         * event-msw.c (make_winsock_stream_1):
7024         cleanup headers.  fix (hopefully) an error with data corruption
7025         when sending to a network connection.
7026
7027         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7028         to handle the ~user prefix by (a) always assuming we're referencing
7029         ourselves and not even verifying the user -- hence any file with
7030         a tilde as its first char is invalid! (b) if there wasn't a slash
7031         following the filename, the pointer was set *past* the end of
7032         file and we started reading from uninitialized memory.  Now we
7033         simply treat these as files, always.
7034
7035         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7036         
7037 2001-05-19  Ben Wing  <ben@xemacs.org>
7038
7039         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7040
7041         * process-nt.c:
7042         * process-nt.c (vars_of_process_nt):
7043         remove unused mswindows-quote-process-args.  rec for 21.4.
7044         
7045 2001-05-12  Ben Wing  <ben@xemacs.org>
7046
7047         * event-msw.c (mswindows_dde_callback):
7048         * event-msw.c (mswindows_wnd_proc):
7049         eliminate cygwin warnings.
7050
7051 2001-05-06  Ben Wing  <ben@xemacs.org>
7052
7053         * console-msw.h:
7054         * device-msw.c:
7055         * device-msw.c (print_dialog_worker):
7056         * device-msw.c (mswindows_handle_print_dialog_box):
7057         * device-msw.c (syms_of_device_mswindows):
7058         * dialog-msw.c (mswindows_make_dialog_box_internal):
7059         * general-slots.h:
7060         implement printing the selection when it's selected.
7061
7062 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7063
7064         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7065
7066 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7067
7068         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7069         EMACS_INT is signed.
7070
7071 2001-04-15  Michael Lausch  <mla@1012surf.net>
7072
7073         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7074         gtk_widget_request_size() to give scrollbar >0 width for
7075         GTK >1.2.8.
7076
7077 2001-05-30  William M. Perry  <wmperry@gnu.org>
7078
7079         * event-gtk.c: Check for buttons as modifier keys.
7080
7081 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7082
7083         * s\mingw32.h:
7084         Properly find MinGW's <process.h> inside Cygwin's restructured
7085         include directories.  Don't try to include <cygwin/version.h>
7086         since we are dropping support for MinGW in versions of Cygwin
7087         earlier than b21.
7088         * nt.c:
7089         Drop support for MinGW in versions of Cygwin before b21.
7090         * sysdep.c:
7091         Properly find MinGW's <process.h> inside Cygwin's restructured
7092         include directories.
7093         * syswindows.h:
7094         Drop support for MinGW in versions of Cygwin before b21.
7095         * unexcw.c:
7096         Even though a.out.h is no longer detected by configure, allow
7097         MinGW to use it until we figure out how to do the job with Win32.
7098
7099 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7100
7101         * syntax.c (find_start_of_comment):
7102         Fix `unbalanced parentheses' bug when dealing with mixed comment
7103         styles in c++/java/etc. mode
7104
7105 2001-05-29  Mike Alexander  <mta@arbortext.com>
7106
7107         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7108         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7109
7110 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7111
7112         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7113
7114 2001-03-31  Mike Sperber <mike@xemacs.org>
7115
7116         * search.c (Freplace_match): Support FSF-style specification of
7117         match subexpression when applied to a buffer.
7118
7119 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7120
7121         * event-stream.c (is_scrollbar_event): add missing semicolon
7122
7123 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7124
7125         * Makefile.in.in: Use TAR macro instead of hardcoding
7126           tar.  Allows use of GNU tar instead of system tar
7127
7128 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7129
7130         * event-stream.c (is_scrollbar_event): add missing semicolon
7131
7132 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7133
7134         * XEmacs 21.4.3 "Academic Rigor" is released.
7135
7136 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7137
7138         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7139
7140 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7141
7142         * buffer.c (Vcase_fold_search): Remove obsolete
7143           comment about non ASCII case-fold-search.  This
7144           bug has been fixed by case-table changes.
7145
7146 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7147
7148         * event-msw.c: Restore include of events-mod.h.
7149
7150 2001-04-22   zhaoway  <zw@debian.org>
7151
7152         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7153         !HAVE_SCROLLBARS.
7154
7155 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7156
7157         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7158
7159 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7160
7161         * mule-charset.c (Fmake_charset): Add missing else.
7162
7163 2001-04-23  Ben Wing  <ben@xemacs.org>
7164
7165         * event-msw.c (FAKE_MOD_QUIT):
7166         * event-msw.c (mswindows_dequeue_dispatch_event):
7167         * event-msw.c (mswindows_wnd_proc):
7168         * event-msw.c (emacs_mswindows_quit_p):
7169         Get critical quit working.
7170
7171 2001-05-05  Ben Wing  <ben@xemacs.org>
7172
7173         * console-msw.h:
7174         * device-msw.c:
7175         * device-msw.c (mswindows_get_default_margin):
7176         * frame-msw.c (mswindows_size_frame_internal):
7177         * frame-msw.c (msprinter_init_frame_1):
7178         * frame-msw.c (vars_of_frame_mswindows):
7179         Change top/bottom margin defaults to 0.5 inches.
7180
7181 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7182
7183         Fix link error with gcc 3.0 on Linux.
7184         * terminfo.c (UP): Remove.
7185         * terminfo.c (BC): Remove.
7186         * terminfo.c (PC): Remove.
7187         They weren't used, and in any case, these symbols should be
7188         defined in the *library*.
7189
7190 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7191
7192         * s/aix4.h: Fix crash with xlc -O3.
7193         Improve comment explaining how -O3 works.
7194
7195 2001-04-15  Ben Wing  <ben@xemacs.org>
7196
7197         * event-stream.c:
7198         * event-stream.c (Fnext_event):
7199         * event-stream.c (is_scrollbar_event):
7200         * event-stream.c (execute_command_event):
7201         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7202         crash' problem.  His fix introduces other problems.  We filter
7203         out scrollbar events specifically, making them somewhat invisible
7204         to command-building, and not appearing in `this-command-keys'.
7205         More work is still needed (see comments in event-stream.c), but
7206         this fixes all the major problems.
7207
7208 2001-04-20  Ben Wing  <ben@xemacs.org>
7209
7210         * .cvsignore: Added stuff for Windows.
7211
7212 2001-04-28  Ben Wing  <ben@xemacs.org>
7213
7214         * buffer.c (Ferase_buffer):
7215         * editfns.c (buffer_insert1):
7216         * editfns.c (Finsert_before_markers):
7217         * editfns.c (Finsert_string):
7218         * editfns.c (Finsert_char):
7219         * editfns.c (Fdelete_region):
7220         * editfns.c (Fwiden):
7221         * editfns.c (Fnarrow_to_region):
7222         remove bogus lines setting zmacs_region_stays to 0.
7223         
7224 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7225
7226         * process-unix.c (unix_open_network_stream): If connect() fails
7227         invalidate file descriptor after closing it.
7228
7229 2001-03-08  Mike Alexander  <mta@arbortext.com>
7230
7231         * event-msw.c (mswindows_need_event_in_modal_loop):
7232         Don't dispatch a message if we didn't get one.
7233         (mswindows_need_event):
7234         Terminate the correct process when one exits instead of the first
7235         one on Vprocess_list and look for process termination when in
7236         mswindows_protect_modal_loop.
7237
7238 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7239
7240         * XEmacs 21.4.1 "Copyleft" is released.
7241
7242 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7243
7244         * input-method-motif.c (XIM_delete_frame): New callback.
7245         (XIM_init_frame): Register it.
7246
7247 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7248
7249         * XEmacs 21.4.0 "Solid Vapor" is released.
7250
7251 2001-04-15  Ben Wing  <ben@xemacs.org>
7252
7253         * cmdloop.c (call_command_loop):
7254         Fix braino in bit-rotting code.
7255         
7256 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7257
7258         * extents.c (Fset_extent_endpoints): Force creation of extent info
7259         in buffer_or_string.
7260
7261         * extents.c (process_extents_for_insertion_mapper): Correctly
7262         check for open-open zero-length extents.
7263
7264 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7265
7266         * lisp.h: New typedefs Memory_count, Element_count.
7267         * regex.c:
7268         * regex.h:
7269         Sign-compare warning elimination: several unsigned -> signed.
7270         Based on work by Ben Wing <ben@xemacs.org>.
7271
7272 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7273
7274         * XEmacs 21.2.47 "Zephir" is released.
7275
7276 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7277
7278         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7279
7280 2001-04-03  Mike Sperber <mike@xemacs.org>
7281
7282         * search.c: Revert previous patch due because of release.
7283
7284 2001-03-30  Ben Wing  <ben@xemacs.org>
7285
7286         * s\cygwin32.h:
7287         Add missing killpg prototype.
7288
7289         * elhash.c:
7290         Add a comment about fixing problems when a new entry is added
7291         while mapping.
7292
7293         * frame-msw.c (mswindows_init_frame_1):
7294         Fix compile warnings.
7295
7296         * menubar.c (vars_of_menubar):
7297         Provide `menu-accelerator-support' to indicate that we properly
7298         support %_ in menu specifications, so that package code can
7299         conditionalize on this (and remove %_ from menu specifications
7300         on older versions).
7301
7302         * event-msw.c:
7303         * scrollbar-msw.c:
7304         * scrollbar-msw.c (can_scroll):
7305         * scrollbar-msw.h:
7306         Fix handling of mouse wheel under Windows to follow standards --
7307         now scrolls window under pointer, not selected window.
7308
7309 2001-03-31  Mike Sperber <mike@xemacs.org>
7310
7311         * search.c (Freplace_match): Support FSF-style specification of
7312         match subexpression when applied to a buffer.
7313
7314 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7315
7316         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7317         function to modify KEYMAP, so map over a copy of the hash table.
7318
7319 2001-03-21  Martin Buchholz <martin@xemacs.org>
7320
7321         * XEmacs 21.2.46 "Urania" is released.
7322
7323 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7324
7325         * realpath.c (xrealpath): Make file-truename work with symlinks to
7326         /cygdrive paths on cygwin. Always lowercase drive-letters on
7327         native windows.
7328         (cygwin_readlink): Don't try to find canonical filename unless
7329         file exists.
7330
7331 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7332
7333         * ChangeLog: Log GTK merge.
7334
7335         * dumper.c:
7336         * select-x.c:
7337         * specifier.c:
7338         * symeval.h:
7339         Revert gratuitous whitespace changes from GTK merge.
7340
7341         * emacs.c: Document end of complex #ifdef @ l. 1495.
7342
7343
7344 2001-03-12  Andy Piper  <andy@xemacs.org>
7345
7346         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7347         have to do likewise.
7348
7349 2001-03-12  Andy Piper  <andy@xemacs.org>
7350
7351         * sysdep.c: we only support mingw now.
7352
7353 2001-03-09  Andy Piper  <andy@xemacs.org>
7354
7355         * unexcw.c (copy_executable_and_dump_data_section): making approx
7356         overrun a warning only.
7357
7358 2001-03-10  William M. Perry  <wmperry@aventail.com>
7359
7360         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7361         satisfy Stephen's identical-after-cpp plea.
7362
7363 2001-03-02  Ben Wing  <ben@xemacs.org>
7364
7365         * cmds.c:
7366         * cmds.c (Fforward_char):
7367         * syntax.c:
7368         * window.c:
7369
7370         Augment documentation of the most common motion commands to make
7371         note of the shifted-motion support.
7372         
7373 2001-03-02  Ben Wing  <ben@xemacs.org>
7374
7375         * nt.c (mswindows_fstat):
7376         * nt.c (mswindows_stat):
7377         * search.c (boyer_moore):
7378         Fix compile warnings under Windows.
7379         
7380         * sysdep.c (sys_readdir):
7381         Fix buggy filename-conversion code under Mule.
7382
7383 2001-03-09  William M. Perry  <wmperry@aventail.com>
7384
7385         * Makefile.in.in:
7386         * config.h.in:
7387         * console.c:
7388         * console.h:
7389         * device.c:
7390         * device.h:
7391         * dragdrop.c:
7392         * emacs.c:
7393         * event-stream.c:
7394         * events.c:
7395         * events.h:
7396         * faces.c:
7397         * frame.h:
7398         * general-slots.h:
7399         * glyphs.c:
7400         * gutter.c:
7401         * inline.c:
7402         * lisp.h:
7403         * lrecord.h:
7404         * make-src-depend:
7405         * redisplay-output.c:
7406         * redisplay.c:
7407         * symsinit.h:
7408         * sysfile.h:
7409         * toolbar.c:
7410         * window.c:
7411         The Great GTK Merge.
7412
7413         * ChangeLog.GTK:
7414         * console-gtk.c:
7415         * console-gtk.h:
7416         * device-gtk.c:
7417         * emacs-marshals.c:
7418         * emacs-widget-accessors.c:
7419         * event-gtk.c:
7420         * frame-gtk.c:
7421         * gccache-gtk.c:
7422         * gccache-gtk.h:
7423         * glade.c:
7424         * glyphs-gtk.c:
7425         * glyphs-gtk.h:
7426         * gtk-glue.c:
7427         * gtk-xemacs.c:
7428         * gtk-xemacs.h:
7429         * gui-gtk.c:
7430         * gui-gtk.h:
7431         * menubar-gtk.c:
7432         * native-gtk-toolbar.c:
7433         * objects-gtk.c:
7434         * objects-gtk.h:
7435         * redisplay-gtk.c:
7436         * scrollbar-gtk.c:
7437         * scrollbar-gtk.h:
7438         * select-gtk.c:
7439         * toolbar-gtk.c:
7440         * ui-byhand.c:
7441         * ui-gtk.c:
7442         * ui-gtk.h:
7443         The Great GTK Merge: new files.
7444
7445 2001-02-26  Ben Wing  <ben@xemacs.org>
7446
7447         Reapplied Lstream change.
7448
7449 2001-02-26  Ben Wing  <ben@xemacs.org>
7450
7451         Undid the last change, since it is more controversial than I
7452         thought.  It should be back in at some point soon.
7453         
7454 2001-02-25  Ben Wing  <ben@xemacs.org>
7455
7456         * buffer.c:
7457         * callproc.c (Fold_call_process_internal):
7458         * event-msw.c (ntpipe_slurp_reader):
7459         * event-msw.c (ntpipe_shove_writer):
7460         * event-msw.c (winsock_reader):
7461         * event-msw.c (winsock_writer):
7462         * file-coding.c:
7463         * file-coding.c (detect_eol_type):
7464         * file-coding.c (detect_coding_type):
7465         * file-coding.c (determine_real_coding_system):
7466         * file-coding.c (Fdetect_coding_region):
7467         * file-coding.c (decoding_reader):
7468         * file-coding.c (decoding_writer):
7469         * file-coding.c (mule_decode):
7470         * file-coding.c (Fdecode_coding_region):
7471         * file-coding.c (encoding_reader):
7472         * file-coding.c (encoding_writer):
7473         * file-coding.c (mule_encode):
7474         * file-coding.c (Fencode_coding_region):
7475         * file-coding.c (detect_coding_sjis):
7476         * file-coding.c (decode_coding_sjis):
7477         * file-coding.c (encode_coding_sjis):
7478         * file-coding.c (detect_coding_big5):
7479         * file-coding.c (decode_coding_big5):
7480         * file-coding.c (encode_coding_big5):
7481         * file-coding.c (detect_coding_ucs4):
7482         * file-coding.c (decode_coding_ucs4):
7483         * file-coding.c (encode_coding_ucs4):
7484         * file-coding.c (detect_coding_utf8):
7485         * file-coding.c (decode_coding_utf8):
7486         * file-coding.c (encode_coding_utf8):
7487         * file-coding.c (detect_coding_iso2022):
7488         * file-coding.c (decode_coding_iso2022):
7489         * file-coding.c (encode_coding_iso2022):
7490         * file-coding.c (decode_coding_no_conversion):
7491         * file-coding.c (encode_coding_no_conversion):
7492         * glyphs-x.c (write_lisp_string_to_temp_file):
7493         * gpmevent.c (tty_get_foreign_selection):
7494         * lisp.h:
7495         * lstream.c:
7496         * lstream.c (Lstream_flush_out):
7497         * lstream.c (Lstream_adding):
7498         * lstream.c (Lstream_write_1):
7499         * lstream.c (Lstream_write):
7500         * lstream.c (Lstream_raw_read):
7501         * lstream.c (Lstream_read_more):
7502         * lstream.c (Lstream_read):
7503         * lstream.c (Lstream_unread):
7504         * lstream.c (Lstream_fputc):
7505         * lstream.c (stdio_reader):
7506         * lstream.c (stdio_writer):
7507         * lstream.c (filedesc_reader):
7508         * lstream.c (filedesc_writer):
7509         * lstream.c (lisp_string_reader):
7510         * lstream.c (struct fixed_buffer_stream):
7511         * lstream.c (make_fixed_buffer_input_stream):
7512         * lstream.c (make_fixed_buffer_output_stream):
7513         * lstream.c (fixed_buffer_reader):
7514         * lstream.c (fixed_buffer_writer):
7515         * lstream.c (struct resizing_buffer_stream):
7516         * lstream.c (resizing_buffer_writer):
7517         * lstream.c (dynarr_writer):
7518         * lstream.c (lisp_buffer_reader):
7519         * lstream.c (lisp_buffer_writer):
7520         * lstream.h:
7521         * lstream.h (lstream_implementation):
7522         * lstream.h (struct lstream):
7523         * md5.c (Fmd5):
7524         * process-nt.c (nt_send_process):
7525         * process-unix.c (unix_send_process):
7526         
7527         Correct Lstream lossage due to mixing of signed and unsigned
7528         quantities.  All Lstream uses of size_t and ssize_t are now a
7529         single signed data type Lstream_data_count.  This fixes problems
7530         under Windows with sending large quantities of data to a process,
7531         and may well fix other subtle bugs.
7532
7533 2001-02-23  Martin Buchholz <martin@xemacs.org>
7534
7535         * XEmacs 21.2.45 "Thelxepeia" is released.
7536
7537 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7538
7539         * lisp-union.h (XSETINT): 
7540         (XSETCHAR):
7541         (XSETOBJ): 
7542         Reverse previous change of 2001-02-06.
7543
7544 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7545
7546         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7547         buffers.
7548         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7549         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7550         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7551         * regex.c (POS_AS_IN_BUFFER): removed
7552         * regex.c (re_search_2):
7553         * regex.c (re_match_2):
7554         Don't use an offset of 1 when calculating buffer positions, since
7555         `BI_BUF_BEGV' does it already.
7556
7557 2001-02-18  Wim Dumon  <wim@easics.be>
7558
7559         * insdel.c (prepare_to_modify_buffer): Also check for
7560         supersession when clash-detection is enabled. 
7561
7562 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7563
7564         * regex.c (re_match_2_internal):
7565         Convert temp characters from 'const unsigned char' to 're_char'.
7566         Fix crashing bug with extended characters under mule.
7567         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7568         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7569         font-lock, pdump, and new syntax-table code.
7570         * syntax.c (find_start_of_comment):
7571         (find_end_of_comment):
7572         (forward-comment):
7573         Fix crashing bugs involving moving beyond end of buffer.
7574         * syntax.c (find_start_of_comment):
7575         Fixed logic to allow proper detection of cases where the same
7576         character is used to end both a two-char comment start and a
7577         two-char comment end sequence. Fixes `(forward-comment -1)'.
7578         * syntax.c (find_start_of_comment):
7579         Return position just past last comment-end character for all cases
7580         (previously was only done for two-char comment-end sequences).
7581         * syntax.c (forward-comment):
7582         Take value returned from `find_end_of_comment', rather than
7583         incrementing it.
7584         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7585         Properly deal with BUFFERP (syntax_cache.object)
7586
7587 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7588
7589         * alloc.c (Fgarbage_collect): 
7590         * alloc.c (make_bit_vector_from_byte_vector):
7591         -Wsign-compare-correctness.
7592
7593 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7594
7595         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7596         (XSETCHAR): Likewise.
7597         (XSETOBJ): Likewise.
7598
7599 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7600
7601         * mule-canna.c (canna-func-delete_previous): 
7602         Rename to canna-func-delete-previous.
7603
7604 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7605
7606         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7607
7608 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7609
7610         * font-lock.c (find_context): Fix C++ compile errors introduced by
7611         recent patch
7612
7613 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7614
7615         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7616         pragma, but earlier ones barf on the same pragma.
7617
7618 2001-02-06  Mike Sperber <mike@xemacs.org>
7619
7620         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7621         `configure-mule-lisp-directory'.
7622
7623 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7624
7625         Make sure dump-id.c is compiled in the same way as other .c's.
7626         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7627         * dump-id.h: Remove.
7628         * emacs.c: Move dump-id.h into dumper.h.
7629         * dumper.h: Move dump-id.h into dumper.h.
7630         * Makefile.in.in:
7631         Use standard .c.o rule for building dump-id.o.
7632         Remove preprocessor flags from link command.
7633         Add dump-id.o to ${otherobjs} if PDUMP.
7634
7635 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7636
7637         Port FSF 20.7 syntax table improvements.
7638         * syntax.c.
7639         * syntax.h.
7640
7641         Fixups for new syntax table stuff.
7642         * dired.c: Include syntax.c.
7643         (Fdirectory_files): Initialize regex_match_object and
7644         regex_emacs_buffer.
7645         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7646         and Fget_char_property.
7647
7648         Use ported FSF 20.7 syntax table improvements.
7649         * font-lock.c.
7650         * regex.c.
7651         * search.c.
7652         
7653 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7654
7655         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7656         Unixware's enum boolean from sys/types.h.
7657
7658 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7659
7660         Fix support for building with latest Purify.
7661         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7662         (PURIFY_FLAGS): Likewise.
7663
7664 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7665
7666         * fileio.c (lisp_string_set_file_times): New.
7667         * fileio.c (Fcopy_file): Use it.
7668         Fixes bug:
7669         (copy-file filename non-ascii-filename t t)
7670         ==> No such file or directory, non-ascii-filename
7671
7672 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7673
7674         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7675         USHRT_MAX seems clearer than ~0 anyways.
7676
7677 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7678
7679         dumper improvements.  Inspired by Olivier.
7680         * dumper.c (pdump_max_align): New.
7681         * dumper.c (pdump_add_entry): Use pdump_max_align.
7682         * dumper.c (pdump_get_entry_list): Likewise.
7683         * dumper.c (pdump_scan_by_alignment): Likewise.
7684         Don't iterate through unnecessary alignments.
7685         * dumper.c (pdump_file_get): No need to align result of malloc().
7686         * dumper.c (pdump_mallocadr): Remove.  
7687         The result of malloc() is guaranteed to be maximally aligned.
7688         * dumper.c: s/elmt/elt/g;
7689         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7690         * dumper.c (pdump_alert_undump_object): Likewise.
7691         * dumper.c (pdump_align_table): 
7692         Don't support alignments > 64.
7693         Store ALIGNOF's, not shift counts, in table.
7694
7695 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7696
7697         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7698         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7699         * systime.h: Use HAVE_UTIME.
7700         * sysdep.c (struct utimbuf): Remove.
7701         * sysdep.c (set_file_times): Prefer utime() to utimes().
7702         * config.h.in (HAVE_UTIME): New.
7703         * config.h.in (HAVE_UTIME_H): Remove.
7704         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7705
7706 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7707
7708         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7709
7710 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7711
7712         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7713
7714 2001-02-08  Martin Buchholz <martin@xemacs.org>
7715
7716         * XEmacs 21.2.44 "Thalia" is released.
7717
7718 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7719
7720         Fixes crashes in kill-emacs on some systems.
7721         * process-unix.c (unix_kill_child_process):
7722         It's OK for kill() to fail with ESRCH.
7723
7724 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7725
7726         Contortions to make .gdbinit tricks work on most systems.
7727         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7728         * alloc.c (dbg_valmask): Make non-const.
7729         * alloc.c (dbg_typemask): Make non-const.
7730         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7731         * alloc.c (dbg_valbits): Make non-const.
7732         * alloc.c (dbg_gctypebits): Make non-const.
7733         * .gdbinit (decode_object): Make it work with AIX cc.
7734
7735 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7736
7737         * elhash.c (make_general_lisp_hash_table):
7738         Use simpler and more efficient calloc to clear entries.
7739
7740 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7741
7742         * window.c (window_scroll): Work around an AIX C compiler bug.
7743         Fixes 'scroll-up' does nothing problem with xlC.
7744
7745 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7746
7747         * .gdbinit: Remove obsolete comment.
7748
7749 2001-01-31  Mike Alexander  <mta@arbortext.com>
7750
7751         * select.c (Fown_selection_internal): Set owned_p for device
7752         method correctly.
7753
7754 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7755
7756         Port to g++ 2.97.
7757         "not" cannot be used as a macro name as it is an operator in C++
7758         * config.h.in: Stop #defining `not'.
7759         * chartab.c (check_category_char): not ==> not_p
7760         * chartab.h: Likewise.
7761         * regex.c (re_match_2_internal): Likewise.
7762
7763 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7764
7765         * lisp-disunion.h: Fix up comments.
7766
7767 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7768
7769         * keymap.c (define_key_check_and_coerce_keysym):
7770         (syms_of_keymap):
7771         Support mouse-6 and mouse-7 bindings in the obvious way.
7772
7773 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7774
7775         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7776
7777 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7778
7779         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7780         Previous patch missed DEFVAR_INT_MAGIC.
7781         Make sure future DEFVAR_foo use correct types.
7782         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7783         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7784         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7785         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7786         * (DEFVAR_INT): Likewise.
7787         * redisplay.c (vertical_clip): Should be of type Fixnum.
7788         * redisplay.c (horizontal_clip): Likewise.
7789         * lisp.h (dump_add_opaque_int): New.
7790         (dump_add_opaque_fixnum): New.
7791
7792 2001-01-29  Andy Piper  <andy@xemacs.org>
7793
7794         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7795         since they can be eval'ed
7796
7797 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7798
7799         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7800         Oops, XEmacs redefines `class'.  Use `typename' instead.
7801
7802 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7803
7804         * dumper.c: Fix C++ compile errors.
7805
7806 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7807
7808         * tparam.c: Use correct prototypes.
7809
7810 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7811
7812         * sysproc.h: #include util.h for NetBSD's openpty.
7813
7814 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7815
7816         More 64-bit correctness.
7817         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7818         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7819         Fix up comments.
7820         This finally finishes the 64-bit SGI port.
7821         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7822         * symbols.c: Fix up comments and type casts.
7823         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7824         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7825         * symeval.h (Fixnum): New type.
7826         * symeval.h (symbol_value_type): Fix up comment.
7827
7828         * commands.h:
7829         * nt.c:
7830         * emacs.c:
7831         * data.c:
7832         * redisplay.c:
7833         * abbrev.c:
7834         * dired-msw.c:
7835         * event-Xt.c:
7836         * eldap.c:
7837         * window.c:
7838         * sound.c:
7839         * event-stream.c:
7840         * eval.c:
7841         * buffer.c:
7842         * mule-canna.c: A million DEFVAR_INTs here...
7843         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7844         * extents.c:
7845         * cmdloop.c:
7846         * lisp.h:
7847         * select-x.c:
7848         * console-x.h:
7849         * event-msw.c:
7850         * mule-wnnfns.c:
7851         * hpplay.c:
7852         * ralloc.c:
7853         * alloc.c:
7854         * keymap.c:
7855         * profile.c:
7856         s/int/Fixnum/g in DEFVAR_INT declarations.
7857
7858 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7859
7860         Port pdump to SGI alignment-sensitive environment.
7861         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7862         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7863         properly aligned.
7864         Define and use aligned reading and writing macros.
7865         Use buffered stdio instead of posix i/o for faster dumping.
7866         Eliminate kludgy 256 byte space for header.
7867         Read and write from dump file using structs for alignment safety.
7868         * dumper.c (pdump_align_stream): New.
7869         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7870         * dumper.c (PDUMP_READ_ALIGNED): New.
7871         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7872         * dumper.c (pdump_static_Lisp_Object): New struct.
7873         * dumper.c (pdump_static_pointer): New struct.
7874         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7875         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7876         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7877         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7878
7879         * dumper.c (pdump_backtrace):
7880         * dumper.c (pdump_get_indirect_count):
7881         * dumper.c (pdump_register_object):
7882         * dumper.c (pdump_register_struct):
7883         * dumper.c (pdump_reloc_one):
7884         * dumper.c (pdump_scan_by_alignment):
7885         * dumper.c (pdump_dump_from_root_struct_ptrs):
7886         * dumper.c (pdump_dump_opaques):
7887         * dumper.c (pdump_dump_rtables):
7888         * dumper.c (pdump_dump_from_root_objects):
7889         * dumper.c (pdump):
7890         * dumper.c (pdump_load_finish):
7891         Use aligned reading and writing.
7892
7893         * dumper.c (pdump_free): Make static.
7894         * dumper.c (pdump_hFile): Likewise.
7895         * dumper.c (pdump_hMap): Likewise.
7896
7897 2001-01-26  Martin Buchholz <martin@xemacs.org>
7898
7899         * XEmacs 21.2.43 "Terspichore" is released.
7900
7901 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7902
7903         Type fiddling for window_config.saved_windows_count
7904         * window.c (struct window_config): 
7905         Make saved_windows_count member unsigned.
7906         * window.c (sizeof_window_config_for_n_windows): 
7907         Make parameter unsigned.
7908         * window.c (mark_window_config):
7909         * window.c (window_config_equal):
7910         * window.c (free_window_configuration):
7911         * window.c (Fset_window_configuration):
7912         * window.c (count_windows):
7913         * window.c (Fcurrent_window_configuration):
7914         * window.c (reinit_vars_of_window):
7915         Update all callers and users.
7916
7917 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7918
7919         Alignment correctness for flexible arrays.
7920         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7921         Make alignment-correct. Add interesting comments.
7922         * alloc.c (size_vector):
7923         * alloc.c (make_vector_internal):
7924         * alloc.c (make_bit_vector_internal):
7925         * alloc.c (sweep_bit_vectors_1):
7926         * fns.c (size_bit_vector):
7927         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7928         * window.c (sizeof_window_config_for_n_windows): 
7929         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7930
7931 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7932
7933         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7934
7935 2001-01-23  Andy Piper  <andy@xemacs.org>
7936
7937         * select.c (Fown_selection_internal): pass owned_p
7938
7939         * select-msw.c (mswindows_own_selection): New Signature.
7940
7941         * console.h (struct console_methods): add owned_p to
7942         _own_selection.
7943
7944         * select-x.c (x_own_selection): pass owned_p
7945         (hack_motif_clipboard_selection): use owned_p
7946         (vars_of_select_x): new variable -
7947         x_selection_strict_motif_ownership.
7948
7949 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7950
7951         * specifier.h (specifier_data_offset): Remove pointless parens.
7952         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7953
7954 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7955
7956         Make Lisp_Object sizeof methods be alignment-correct.
7957         pdump must restore objects to the same alignment as the C compiler
7958         assumes.  It really matters on SGIs.
7959         * lstream.c (aligned_sizeof_lstream): New.
7960         (sizeof_lstream): Use aligned_sizeof_lstream.
7961         (Lstream_new): Likewise.
7962         * opaque.c (aligned_sizeof_opaque): New.
7963         (sizeof_opaque): Use aligned_sizeof_opaque.
7964         (make_opaque): Likewise.
7965         * specifier.c (aligned_sizeof_specifier): New.
7966         (sizeof_specifier): Use aligned_sizeof_specifier.
7967         (make_specifier_internal): Likewise.
7968
7969 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7970
7971         * lstream.h (struct lstream): Use max_align_t for trailing data.
7972         * specifier.h (struct Lisp_Specifier): Likewise.
7973
7974 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7975
7976         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7977         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7978         (CCL_SUSPEND): Likewise.
7979         (CCL_INVALID_CMD): Likewise.
7980         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7981         (ccl_driver): Likewise.
7982         (CCL_WRITE_CHAR): Macro hygiene.
7983         (CCL_WRITE_STRING): Macro hygiene.
7984
7985 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7986
7987         Port "portable" dumper to SunOS 4 and HP-UX.
7988         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7989         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7990         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7991
7992 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7993
7994         * lisp.h (ALIGNOF): A better definition for C++.
7995
7996 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7997
7998         Macro hygiene.
7999         Fix printf warnings: int format, long int arg.
8000         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8001         (PUSH_FAILURE_POINT): Use correct printf formats.
8002         (POP_FAILURE_POINT): Use correct printf formats.  
8003         Use do {...} while (0)
8004
8005 2001-01-20  Martin Buchholz <martin@xemacs.org>
8006
8007         * XEmacs 21.2.42 "Poseidon" is released.
8008
8009 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8010
8011         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8012
8013 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8014
8015         De-kludgify FIXED_TYPE free list frobbing.
8016         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8017         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8018         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8019         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8020         * alloc.c (LRECORD_FREE_P): New.
8021         * alloc.c (MARK_LRECORD_AS_FREE): New.
8022         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8023         * alloc.c (STRUCT_FREE_P): Deleted.
8024         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8025         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8026         * alloc.c (STRING_CHARS_FREE_P): New.
8027         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8028         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8029         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8030         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8031         * alloc.c (resize_string): Use new definitions.
8032         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8033         * alloc.c (verify_string_chars_integrity): Use new definitions.
8034         * alloc.c (compact_string_chars): Use new definitions.
8035         * alloc.c: Update monster comments.
8036         * lrecord.h (lrecord_type): Add some new lrecord types for
8037         alloc.c's use.
8038
8039 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8040
8041         Improve alignment hackery.
8042         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8043         (max_align_t): Moved from opaque.h - general purpose.
8044         (ALIGN_PTR): Use size_t, not long.
8045         * opaque.h (max_align_t): Move to lisp.h.
8046
8047 2001-01-18  Norbert Koch  <nk@LF.net>
8048
8049         * gui.h: Fix and add prototypes to fix build problems.
8050
8051 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8052
8053         temacs is going away, so `dump-temacs' is now a bad name.
8054         * .dbxrc (dump-temacs): Rename to `dmp'.
8055         * .gdbinit (dump-temacs): Rename to `dmp'.
8056
8057 2001-01-17  Andy Piper  <andy@xemacs.org>
8058
8059         * glyphs.c (print_image_instance): comment to make martin happy.
8060
8061         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8062         change.
8063
8064         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8065         activation.
8066         (mswindows_tab_control_redisplay): warning suppression.
8067
8068         * glyphs-widget.c (widget_update): re-write to cope with updated
8069         items.
8070         (widget_instantiate): use new gui_item functions.
8071         (tab_control_update): deleted.
8072         (progress_gauge_update): deleted.
8073         (image_instantiator_progress_guage): take out update reference.
8074         (image_instantiator_tree_view): ditto.
8075         (image_instantiator_tab_control): ditto.
8076
8077         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8078         Right the new way.
8079         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8080         return whether anything was changed.
8081         (update_gui_item_keywords): as it sounds.
8082
8083         * gui.h: declare widget_gui_parse_item_keywords.
8084
8085         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8086         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8087
8088 2001-01-17  Martin Buchholz <martin@xemacs.org>
8089
8090         * XEmacs 21.2.41 "Polyhymnia" is released.
8091
8092 2001-01-16  Didier Verna  <didier@xemacs.org>
8093
8094         * glyphs.c (image_instantiate): don't use fallbacks when
8095         instantiating a face's background pixmap by inheritance.
8096
8097 2001-01-14  Mike Sperber <mike@xemacs.org>
8098
8099         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8100         Conditionalize accordingly.
8101
8102 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8103
8104         * dumper.c (pdump_file_get): Fix a compiler warning.
8105
8106 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8107
8108         Make Purify happy when pdumping.
8109         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8110         iniitalizing all bits of new lisp object memory.
8111         * symbols.c (Fmake_local_variable): Likewise.
8112         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8113         * symbols.c (Fdefvaralias): Likewise.
8114         * mule-charset.c (vars_of_mule_charset): Likewise.
8115
8116 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8117         Add the `-nd' flag when running pre-dump operations under the debugger.
8118         * .dbxrc (run-temacs): Add `-nd'.
8119         * .dbxrc (update-elc): Likewise.
8120         * .dbxrc (dump-temacs): Likewise.
8121         * .gdbinit (run-temacs): Likewise.
8122         * .gdbinit (check-temacs): Likewise.
8123         * .gdbinit (update-elc): Likewise.
8124         * .gdbinit (dump-temacs): Likewise.
8125
8126 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8127
8128         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8129         export OBJECT_MODE=64
8130         configure --pdump --use-union-type=no
8131         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8132         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8133
8134         * miscplay.c (sndcnv8U_2mono):
8135         Avoid two uses of `++' in the same expression.
8136         Suppresses a GCC warning.
8137
8138 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8139
8140         Make sure future compilers don't miscompile alloc.c.
8141         * alloc.c:
8142         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8143         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8144
8145 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8146
8147         * dumper.c: A little post-pdump-rename comment fixup.
8148
8149 2001-01-09  Jerry James  <james@eecs.ku.edu>
8150
8151         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8152
8153 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8154
8155         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8156         script:
8157         #!/bin/sh
8158         replace_symbol () {
8159           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8160         }
8161
8162         replace_symbol pdump_wire_lists pdump_weak_object_chains
8163         replace_symbol pdump_wire_list dump_add_weak_object_chain
8164
8165         replace_symbol pdump_wires pdump_root_objects
8166         replace_symbol pdump_wire dump_add_root_object
8167
8168         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8169         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8170
8171         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8172         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8173         replace_symbol dumpstructinfo pdump_root_struct_ptr
8174         replace_symbol dumpstruct dump_add_root_struct_ptr
8175
8176         replace_symbol dumpopaque dump_add_opaque
8177         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8178         replace_symbol dumpopaqueinfos pdump_opaques
8179         replace_symbol dumpopaqueinfo pdump_opaque
8180
8181         replace_symbol nb_structdump nb_root_struct_ptrs
8182         replace_symbol nb_opaquedump nb_opaques
8183
8184         replace_symbol align_table pdump_align_table
8185         replace_symbol dump_header pdump_header
8186
8187         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8188         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8189
8190
8191 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8192
8193         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8194         optimizing bytecount_to_charcount().
8195
8196 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8197
8198         * config.h.in:
8199         (HAVE_DLFCN_H): Removed.
8200         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8201
8202 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8203
8204         Portable dumper maintainability improvements.
8205         * alloc.c (staticpro):
8206         * alloc.c (staticpro_nodump):
8207         * alloc.c (garbage_collect_1):
8208         * alloc.c (reinit_alloc_once_early):
8209         * alloc.c (init_alloc_once_early):
8210         * alloc.c: Move dumper functions to alloc.c.
8211         * dumper.c (pdump_backtrace):
8212         * dumper.c (pdump_dump_structs):
8213         * dumper.c (pdump_dump_opaques):
8214         * dumper.c (pdump_dump_rtables):
8215         * dumper.c (pdump_dump_wired):
8216         * dumper.c (pdump):
8217         * dumper.c (pdump_load_check):
8218         * dumper.c (pdump_load_finish):
8219         * dumper.c (pdump_file_unmap):
8220         * dumper.c (pdump_file_get):
8221         * dumper.c (pdump_resource_free):
8222         * dumper.c (pdump_resource_get):
8223         * dumper.c (pdump_file_free):
8224         * dumper.c (pdump_file_try):
8225         * dumper.c (pdump_load):
8226         Remove fixed size limits on staticpro(), staticpro_nodump(),
8227         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8228         Remove custom code for dumping lrecord_implementations_table - use
8229         dumpopaque instead.
8230         Remove (most of the) custom code for dumping staticpros - dump it
8231         like any other dynarr.
8232
8233         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8234         * dumper.c: Moved functions from alloc.c.
8235         * alloc.c (dumpstruct): Moved to dumper.c.
8236         * alloc.c (dumpopaque): Likewise.
8237         * alloc.c (pdump_wire): Likewise.
8238         * alloc.c (pdump_wire_list): Likewise.
8239
8240         * lisp.h (Dynarr_sizeof): New.
8241         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8242         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8243         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8244
8245         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8246         * lisp.h (dumpopaque): ditto.
8247         * lisp.h (pdump_wire): ditto.
8248         * lisp.h (pdump_wire_list): ditto.
8249
8250 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8251
8252         * make-src-depend (PrintPatternDeps):
8253         Use `sort' to make output independent of perl version.
8254
8255 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8256
8257         Port to Netbsd 1.5.
8258         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8259         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8260
8261 2001-01-03  Didier Verna  <didier@xemacs.org>
8262
8263         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8264         that `focus_frame' is alive before thinking of calling
8265         `redisplay_redraw_cursor' on it.
8266
8267 2001-01-08  Martin Buchholz <martin@xemacs.org>
8268
8269         * XEmacs 21.2.40 is released.
8270
8271 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8272
8273         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8274
8275 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8276
8277         * alloc.c (dbg_valmask): Make const.
8278         * alloc.c (dbg_typemask): Make const.
8279         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8280         * alloc.c (dbg_valbits): Make const.
8281         * alloc.c (dbg_gctypebits): Make const.
8282
8283 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8284
8285         * redisplay-x.c (x_bevel_area):
8286         redisplay.h (struct rune):
8287         Typo fixes in comments.
8288
8289 2001-01-05  Andy Piper  <andy@xemacs.org>
8290
8291         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8292         adjustment.
8293
8294         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8295
8296 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8297
8298         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8299
8300         * mule-ccl.c (stack_idx_of_map_multiple):
8301         Non const global data must not be initialized!
8302         Found by MIYASHITA Hisashi.
8303
8304 2001-01-02  Andy Piper  <andy@xemacs.org>
8305
8306         * frame.c (change_frame_size): make sure frame size is always
8307         marked as changed.
8308
8309         * glyphs.c (image_instance_layout): minor code reuse.
8310
8311         * window.c (Fcurrent_window_configuration): revert previous
8312         change.
8313
8314 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8315
8316         * glyphs.h:
8317         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8318
8319 2000-12-31  Andy Piper  <andy@xemacs.org>
8320
8321         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8322         when widget gets unmapped.
8323
8324         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8325         function. Make sure widgets losing focus don't just drop it.
8326         (handle_focus_event_1): record the widget with focus.
8327
8328 2000-12-31  Andy Piper  <andy@xemacs.org>
8329
8330         * window.c (allocate_window): use
8331         make_image_instance_cache_hash_table.
8332         (make_dummy_parent): ditto.
8333         (Fset_window_configuration): ditto.
8334
8335         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8336
8337         * glyphs.c (process_image_string_instantiator): use
8338         INSTANTIATOR_TYPE.
8339         (get_image_instantiator_governing_domain): ditto.
8340         (normalize_image_instantiator): ditto.
8341         (instantiate_image_instantiator): ditto.
8342         (make_image_instance_1): ditto.
8343         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8344         (instantiator_eq_equal): new function for use with instance hash
8345         tables.
8346         (instantiator_eq_hash): ditto.
8347         (make_image_instance_cache_hash_table): create a suitable hash
8348         table for storing image instances.
8349
8350         * elhash.h (hash_table_weakness): new internal weakness type
8351         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8352         declare new functions.
8353
8354         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8355         another weakness type for glyphs.
8356         (make_standard_lisp_hash_table): new function split out from
8357         make_general_lisp_hash_table.
8358         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8359         (hash_table_instantiate): ditto.
8360         (Fmake_hash_table): ditto.
8361
8362 2000-12-31  Martin Buchholz <martin@xemacs.org>
8363
8364         * XEmacs 21.2.39 is released.
8365
8366 2000-12-29  Andy Piper  <andy@xemacs.org>
8367
8368         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8369
8370         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8371         the frame has changed so that we pick up geometry changes such as
8372         menubar visibility.
8373
8374 2000-12-28  Andy Piper  <andy@xemacs.org>
8375
8376         * lastfile.c (my_ebss): make a char array so we can pad the
8377         bss. Fixes cygwin unexec.
8378
8379         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8380
8381 2000-12-26  Andy Piper  <andy@xemacs.org>
8382
8383         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8384         comments and try and be more precise about a non-/SIGIO world.
8385         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8386         SIGIO.
8387
8388         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8389         we don't normalize to zero width or height.
8390
8391 2000-12-24  Andy Piper  <andy@xemacs.org>
8392
8393         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8394
8395 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8396
8397         * s/sco5.h: SCO 5 has pty support.
8398
8399 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8400
8401         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8402         input-method-xlib.c contains whole contents of input-method-xfs.c,
8403         so we can use input-method-xlib.c's code for USE_XFONTSET
8404         using #ifdefs.
8405         * input-method-xfs.c: removed.
8406
8407 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8408
8409         * file-coding.h (enum coding_category_type): reorder enumerators to
8410         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8411         (now one greater than largest real coding_category_type enumerator).
8412         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8413         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8414         Fcoding_category_list, Fset_coding_priority_list,
8415         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8416         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8417
8418 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8419
8420         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8421         * redisplay-output.c (redisplay_output_window): Clear top of window
8422         when face is changed.
8423         * redisplay-x.c (x_redraw_exposed_window): Call
8424         redisplay_clear_top_of_window.
8425         * redisplay.h: Publish redisplay_clear_top_of_window.
8426
8427 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8428
8429         * buffer.c (Fkill_buffer): Map over all devices.
8430         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8431         (list_windows): New function.
8432         (list_all_windows): Ditto.
8433         (Freplace_buffer_in_windows): Use them.
8434
8435 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8436
8437         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8438         (Fopen_database): Use `db_create' instead of `db_open'.
8439         (syms_of_database): Initialize Qqueue.
8440
8441 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8442
8443         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8444         buffer_local_face_property.
8445         * buffer.h (struct buffer): New member buffer_local_face_property.
8446         * window.c (Fset_window_buffer):  Mark window's face as changed
8447         when buffer has buffer local face.
8448         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8449         * objects.c (color_after_change): Set buffer_local_face_property
8450         when locale of face specifier is buffer.
8451         * objects.c (font_after_change): Ditto.
8452         * objects.c (face_boolean_after_change): Ditto.
8453         * glyphs.c (image_after_change): Ditto.
8454
8455 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8456
8457         * nt.c (mswindows_fstat): Report file permissions, volume serial
8458         number, etc. Code adapted from FSF Emacs 20.7.
8459
8460 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8461
8462         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8463         of stat when we don't have symbolic links, to make sure
8464         mswindows_stat is called on mswindows.
8465
8466 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8467
8468         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8469
8470 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8471
8472         * doprnt.c (emacs_doprnt_1): More printing fixes.
8473         Make printing of numbers compatible with libc and FSF Emacs.
8474         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8475         Use the system printf to do most of the hard work of formatting,
8476         instead of doprnt_1().
8477         Calculate memory to allocate for format string.
8478         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8479         (doprnt_1): Cleaner code and documentation.
8480
8481 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8482
8483         * Makefile.in.in: Use the loop variable to install headers.
8484
8485 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8486
8487         * window.c (Fsplit_window): Don't invalidate face cache.
8488
8489 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8490
8491         * minibuf.c (Fall_completions): Undo the previous change
8492         which removed checking elements start with space.
8493
8494 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8495
8496         * mule-canna.c: Didier suppression.
8497
8498 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8499
8500         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8501         (warning suppression).  Add English comment translations.
8502
8503 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8504
8505         * unexelfsgi.c (unexec): Better test for mmap failure.
8506
8507 2000-12-05  Martin Buchholz <martin@xemacs.org>
8508
8509         * XEmacs 21.2.38 is released.
8510
8511 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8512
8513         * redisplay.c (bar-cursor): Make a user variable.
8514
8515         * symsinit.h: Add init_postgresql_from_environment.
8516
8517 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8518
8519         * regex.c: Convert to clean C.
8520
8521 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8522
8523         * realpath.c:
8524         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8525         initialization.
8526         (sys_readlink): renamed to system_readlink to avoid conflict with
8527         the other sys_readlink.
8528
8529 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8530
8531         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8532
8533 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8534
8535         * postgresql.c (init_postgresql_from_environment): new function.
8536         (vars_of_postgresql): Move code initializing Lisp variables out and
8537         into init_postgresql_from_environment.
8538         emacs.c (main_1): Call init_postgresql_from_environment if and only
8539         if running a dumped XEmacs.
8540
8541 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8542
8543         * buffer.c: Make find-file-compare-truenames default to true on
8544         windows.
8545
8546         * realpath.c (win32_abs_start):
8547         (cygwin_readlink):
8548         (win32_readlink): New functions.
8549         (xrealpath): Return really real filenames on windows.
8550
8551         * fileio.c (Ffile_truename): Make file-truename work on windows.
8552
8553 2000-11-29  Didier Verna  <didier@xemacs.org>
8554
8555         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8556         * faces.c (update_face_cachel_data): use it.
8557         * faces.c (add_face_cachel): use it. Complete background pixmap
8558         frobbing in face cache if `update_face_cachel_data' has not done so.
8559
8560 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8561
8562         * search.c (string_match_1): Don't set last_thing_searched
8563         when search failed.
8564
8565 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8566
8567         * buffer.c: Include casetab.h
8568         (common_init_complex_vars_of_buffer): Use new case-table object.
8569         * buffer.h: Include casetab.h
8570         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8571         (DOWNCASE_TABLE_OF): Ditto.
8572         * bufslots.h: Remove char-tables and add case-table.
8573         * casetab.c: Include casetab.h
8574         (CASE_TABLE_P): Removed.
8575         (mark_case_table): New function.
8576         (allocate_case_table): New function.
8577         (Fcase_table_p): Use new case-table.
8578         (case_table_char): New function.
8579         (Fget_case_table): Ditto.
8580         (Fput_case_table): Ditto.
8581         (Fput_case_table_pair): Ditto.
8582         (Fcopy_case_table): Ditto.
8583         (Fcurrent_case_table): Return case-table.
8584         (Fstandard_case_table): Return case-table.
8585         (Fset_case_table): Fix doc-string.
8586         (set_case_table): Use case-table
8587         (syms_of_casetab): DEFSUBR new functions.
8588         (complex_vars_of_casetab): Set up standard case-table.
8589         * casetab.h: New file.
8590         * editfns.c: Include casetab.h
8591         (Fcompare_buffer_substrings): Use case-table.
8592         * inline.c: Include casetab.h
8593         * lisp.h: Remove bogus extern.
8594         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8595         * search.c: Include casetab.h
8596         (TRANSLATE_ASCII): Removed.
8597         (TRANSLATE): Unconditionally translate character.
8598         (looking_at_1): Use case-table.
8599         (string_match_1): Ditto.
8600         (fast_string_match): Ditto.
8601         (search_command): Ditto.
8602         (search_buffer): Separate boyer_moore.  Check whether
8603         boyer_moore is possible.
8604         (simple_search): New function.
8605         (boyer_moore): Separated from search_buffer. Translate char.
8606
8607 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8608
8609         * regex.c (RE_TR_ASCII): Removed.
8610         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8611         (PATFETCH): Call PATFETCH_RAW.
8612         (PATFETCH_RAW): Fetch Emchar.
8613         (PATUNFETCH): Decrement charptr.
8614         (GET_BUFFER_SPACE): Rename b to buf_end.
8615         (BUF_PUSH): Ditto.
8616         (BUF_PUSH_2): Ditto.
8617         (BUF_PUSH_3): Ditto.
8618         (EXTEND_BUFFER): Ditto.
8619         (SET_LIST_BIT): Ditto.
8620         (regex_compile): Ditto.  Translate non ASCII char.
8621         (compile_range): Ditto.
8622         (re_search_2): Ditto.
8623         (re_match_2_internal): Compare Emchar.
8624         (bcmp_translate): Ditto.
8625
8626 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8627
8628         * lisp.h (basic char/int typedefs):  comment improvement.
8629
8630 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8631
8632         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8633         unstomp inhibit_site_lisp.  Improve comments.
8634
8635 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8636
8637         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8638
8639 2000-11-28  Andy Piper  <andy@xemacs.org>
8640
8641         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8642         clipped display for windows in the gutter also.
8643         (redisplay_display_boxes_in_window_p): change semantics of return
8644         codes to be more intuitive.
8645
8646         * gutter.h: declare display_boxes_in_gutter_p.
8647
8648         * gutter.c (display_boxes_in_gutter_p): new function for
8649         redisplay.
8650
8651 2000-11-22  Andy Piper  <andy@xemacs.org>
8652
8653         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8654         autodetect domain.
8655
8656 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8657
8658         * callproc.c (Fold_call_process_internal):
8659         * gpm.c (Freceive_gpm_event):
8660         (tty_get_foreign_selection): Might be just warning supression.
8661         * fileio.c (Fwrite_region_internal):
8662         (Fset_visited_file_modtime):
8663         * keymap.c (event_matches_key_specifier_p):
8664         Initialize GCPROed variable.
8665
8666         * menubar-x.c (command_builder_find_menu_accelerator):
8667         Initialize before use.
8668
8669 2000-11-23  Andy Piper  <andy@xemacs.org>
8670
8671         * unexcw.c (unexec): make the resulting executable executable.
8672
8673 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8674
8675         * doc.c (get_doc_string):
8676         Use size_t, not int, for result of XSTRING_LENGTH.
8677
8678         * cmds.c (Fdelete_char):
8679         * cmds.c (Fpoint_at_eol):
8680         * cmds.c (Fself_insert_command):
8681         Use EMACS_INT, not int, for result of XINT.
8682         Someday, someone will want to insert more than 2**31 identical characters.
8683
8684         * cmds.c (Fdelete_char):
8685         * cmds.c (Fdelete_backward_char):
8686         * syntax.c (Fforward_word):
8687         * syntax.c (Fforward_comment):
8688         Make COUNT argument optional, for consistency with forward-char et al.
8689
8690 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8691
8692         * lisp.h:
8693         * print.c (long_to_string):
8694         Return a useful value: the pointer at end of data written.
8695
8696         * doprnt.c:
8697         Use `static const char * const' for constant strings.
8698         (union printf_arg): Delete `i', `ui' members.
8699         (get_doprnt_args):
8700         (emacs_doprnt_1):
8701         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8702         Do all printf-ing via the `l' specifier.
8703         Use EMACS_INT instead of int.
8704         Optimize.
8705
8706 2000-11-20  Didier Verna  <didier@xemacs.org>
8707
8708         * faces.c (update_face_cachel_data): don't frob the background
8709         pixmap when the window is being created. The face is needed but
8710         does not exist yet.
8711
8712 2000-11-20  Andy Piper  <andy@xemacs.org>
8713
8714         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8715         messing with a debug environment.
8716
8717 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8718
8719         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8720
8721 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8722
8723         * casetab.c (Fcase_table_p): Fix compile error and crash.
8724
8725 2000-11-18  Philip Aston  <philipa@mail.com>
8726
8727         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8728
8729 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8730
8731         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8732         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8733
8734 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8735
8736         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8737         * unexelf.c: Use HAVE_ELF_H.
8738         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8739         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8740         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8741         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8742         for testing.
8743         So this is an unexelfsgi.c from a different line of development.
8744
8745 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8746
8747         * regex.c (RE_TR_ASCII): New function.
8748         (RE_TRANSLATE): Call it.
8749
8750 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8751
8752         * buffer.h (TRT_TABLE_OF): Remove assert.
8753         (IN_TRT_TABLE_DOMAIN): Removed.
8754
8755 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8756
8757         * free-hook.c (log_gcpro):
8758         (show_gcprohist): Add support for GCPRO5.
8759
8760 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8761
8762         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8763
8764 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8765
8766         * symeval.h: Declare flush_all_buffer_local_cache.
8767
8768         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8769         (flush_buffer_local_cache): Added.
8770         (flush_all_buffer_local_cache): Added.
8771
8772         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8773
8774         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8775         (pdump_dump_data): Ditto.
8776         (pdump_reloc_one): Ditto.
8777         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8778         before dumping.
8779
8780
8781 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8782
8783         * buffer.c: Remove if 0'ed entry.
8784         * buffer.h: Rewrite TRT to use char-table.
8785         * bufslots.h: Remove mirror tables.
8786         * casetab.c: Remove mirror tables.
8787         (CASE_TABLE_P): New macro.
8788         (Fcase_table_p): Element of a case table is string or char-table.
8789         (make_mirror_trt_table): Removed.
8790         (set_case_table): Setup char-table from strings for backward
8791         compatibility.
8792         * dired.c (Fdirectory_files):
8793         * dired-msw.c: (mswindows_get_files):
8794         * lisp.h: Change prototype of re_pattern_buffer.
8795         * regex.c: (RE_TRANSLATE): New macro.
8796         (TRANSLATE_P): Ditto.
8797         Change translate to type RE_TRANSLATE_TYPE.
8798         * regex.h: Define RE_TRANSLATE_TYPE
8799         * search.c (TRANSLATE): New macro.
8800         (TRANSLATE_ASCII): New macro.
8801         Translate table is changed to Lisp_Object.
8802         (signal_failure): Inhibit return.
8803
8804 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8805
8806         * device-msw.c:
8807         * eldap.c:
8808         * event-Xt.c:
8809         * event-stream.c:
8810         * print.c:
8811         Do UNGCPRO before return.
8812
8813 2000-11-14  Martin Buchholz <martin@xemacs.org>
8814
8815         * XEmacs 21.2.37 is released.
8816
8817 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8818
8819         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8820         Add comments about discarded return value.
8821
8822 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8823
8824         * callint.c:
8825         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8826
8827 2000-10-27  Andy Piper  <andy@xemacs.org>
8828
8829         * gutter.c (Fset_default_gutter_position): default left and right
8830         gutters to visible.
8831         (calculate_gutter_size): calculate resonable heuristic for left
8832         and right gutter sizes.
8833         (specifier_vars_of_gutter): change left and right gutter sizes to
8834         autodetect.
8835         (calculate_gutter_size_from_display_lines): new function.
8836         (output_gutter): check for resizing on left and right gutters.
8837         (clear_gutter): don't special case top and left gutters.
8838         (specifier_vars_of_gutter): use new signature for
8839         set_specifier_caching.
8840
8841         * glyphs-x.c (x_redisplay_widget): spelling fix.
8842         * glyphs.c (specifier_vars_of_glyphs):
8843         * menubar.c (specifier_vars_of_menubar):
8844         * redisplay.c (specifier_vars_of_redisplay):
8845         * toolbar.c (specifier_vars_of_toolbar):
8846         * window.c (specifier_vars_of_window):
8847         * scrollbar.c (specifier_vars_of_scrollbar):
8848         (complex_vars_of_scrollbar): use new signature for
8849         set_specifier_caching.
8850
8851         * specifier.c (set_specifier_caching): include recompute flag.
8852         (recompute_one_cached_specifier_in_window): always recompute if
8853         flag set.
8854         (recompute_one_cached_specifier_in_frame): ditto.
8855
8856         * specifier.h (struct specifier_caching): add recompute flag.
8857
8858 2000-10-24  Andy Piper  <andy@xemacs.org>
8859
8860         * unexcw.c (copy_executable_and_dump_data_section): add new
8861         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8862         5.0 happy.
8863
8864 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8865
8866         * console-x.h (x_device): New member modifier_release_time.
8867         * event-Xt.c (x_handle_sticky_modifiers):
8868         Bound interval modifier keys are sticky.
8869         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8870         * events.h: extern it.
8871
8872 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8873
8874         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8875
8876 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8877
8878         * event-stream.c (execute_command_event): Preserve current_events
8879         and the like when event is misc-user-event.
8880         Inhibit quit during the call to maybe_echo_keys.
8881
8882 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8883
8884         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8885         symlink when buffer is killed.
8886         (inhibit_clash_detection): New variable.
8887
8888 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8889
8890         * console.c (Fset_input_method): Trigger redisplay on tty.
8891
8892 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8893
8894         * process.c (Fprocess_status): Revert to previous behavior:
8895         (process-status "nosuchprocess") ==> nil
8896
8897 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8898
8899         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8900         Work around another GCC 2.95.2 optimizer bug.
8901
8902 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8903
8904         * process.c (Fget_process): Use LIST_LOOP_2.
8905         (kill_buffer_processes): Use LIST_LOOP_2.
8906
8907         * minibuf.c (Fall_completions):
8908         Delete old non-functional code for FSF fourth argument.
8909
8910         * frame.c (frame_matches_frame_spec):
8911         Renamed from `frame_matches_frametype'.  Update all callers.
8912         (device_matches_device_spec):
8913         Renamed from 'device_matches_console_spec'.  Update all callers.
8914
8915         * doc.c (Fsubstitute_command_keys):
8916         Remove buffer overflow crash.  Small code cleanups.
8917
8918         * casetab.c (check_case_table): Simpler code.
8919
8920         * window.c (Freplace_buffer_in_windows):
8921         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8922         (and similar implementation) as Fdelete_windows_on.
8923         Update all callers.
8924
8925         * alloc.c (Fmake_list):
8926         * alloc.c (make_vector):
8927         * alloc.c (Fmake_vector):
8928         * alloc.c (make_bit_vector):
8929         * alloc.c (Fmake_bit_vector):
8930         * alloc.c (Fbit_vector):
8931         * alloc.c (Fmake_string):
8932         * alloc.c (Fpurecopy):
8933         * alloc.c (Fmemory_limit):
8934         * buffer.c:
8935         * buffer.c (Fget_buffer):
8936         * buffer.c (Fkill_buffer):
8937         * buffer.c (complex_vars_of_buffer):
8938         * bytecode.c (Fcompiled_function_stack_depth):
8939         * callint.c (Fprefix_numeric_value):
8940         * event-stream.c:
8941         * event-stream.c (Fread_key_sequence):
8942         * casetab.c:
8943         * casetab.c (Fcase_table_p):
8944         * casetab.c (check_case_table):
8945         * casetab.c (Fset_case_table):
8946         * casetab.c (Fset_standard_case_table):
8947         * chartab.c:
8948         * chartab.c (Fchar_table_type):
8949         * chartab.c (Freset_char_table):
8950         * chartab.c (Fget_char_table):
8951         * chartab.c (Fget_range_char_table):
8952         * chartab.c (Fput_char_table):
8953         * chartab.c (Fmap_char_table):
8954         * chartab.c (Fcategory_table_p):
8955         * chartab.c (Fcheck_category_at):
8956         * chartab.c (Fchar_in_category_p):
8957         * chartab.c (Fcategory_table):
8958         * chartab.c (Fcopy_category_table):
8959         * chartab.c (Fset_category_table):
8960         * chartab.c (Fcategory_designator_p):
8961         * chartab.c (Fcategory_table_value_p):
8962         * cmds.c (Fdelete_char):
8963         * cmds.c (Fdelete_backward_char):
8964         * cmds.c (Fself_insert_command):
8965         * cmds.c (Fself_insert_internal):
8966         * console.c (Fvalid_console_type_p):
8967         * console.c (Fcdfw_console):
8968         * console.c (Fconsole_type):
8969         * console.c (Fconsole_name):
8970         * console.c (Fconsole_device_list):
8971         * console.c (Fconsole_on_window_system_p):
8972         * data.c:
8973         * data.c (Feq):
8974         * data.c (Fold_eq):
8975         * data.c (Fsubr_interactive):
8976         * data.c (Fchar_to_int):
8977         * data.c (Fint_to_char):
8978         * data.c (Fsetcar):
8979         * data.c (Fsetcdr):
8980         * data.c (Fnumber_to_string):
8981         * data.c (Fstring_to_number):
8982         * data.c (Frem):
8983         * database.c (mark_database):
8984         * database.c (finalize_database):
8985         * database.c (Fdatabase_live_p):
8986         * database.c (Fdatabasep):
8987         * device-x.c (Fx_get_resource):
8988         * device.c (Fdfw_device):
8989         * dired.c:
8990         * dired.c (Ffile_name_completion):
8991         * dired.c (Ffile_name_all_completions):
8992         * dired.c (Fuser_name_completion):
8993         * dired.c (Fuser_name_completion_1):
8994         * dired.c (Fuser_name_all_completions):
8995         * doc.c (Fdocumentation):
8996         * doc.c (Fdocumentation_property):
8997         * doc.c (Fsubstitute_command_keys):
8998         * editfns.c:
8999         * editfns.c (Fchar_to_string):
9000         * editfns.c (Fstring_to_char):
9001         * editfns.c (Ftemp_directory):
9002         * editfns.c (Finsert_char):
9003         * editfns.c (Fbuffer_substring_no_properties):
9004         * editfns.c (Fnarrow_to_region):
9005         * editfns.c (Fchar_equal):
9006         * editfns.c (Fchar_Equal):
9007         * editfns.c (Ftranspose_regions):
9008         * emacs.c (Fdump_emacs):
9009         * eval.c (Fthrow):
9010         * eval.c (Fcommand_execute):
9011         * eval.c (Fautoload):
9012         * eval.c (Fbacktrace):
9013         * eval.c (Fbacktrace_frame):
9014         * events.c:
9015         * events.c (Fcopy_event):
9016         * events.c (Fcharacter_to_event):
9017         * events.c (Fevent_button):
9018         * events.c (Fevent_process):
9019         * extents.c:
9020         * extents.c (Fnext_extent_change):
9021         * extents.c (Fextent_property):
9022         * faces.c (Ffacep):
9023         * faces.c (Fmake_face):
9024         * file-coding.c:
9025         * file-coding.c (Fencode_shift_jis_char):
9026         * file-coding.c (Fencode_big5_char):
9027         * fileio.c (Ffile_name_directory):
9028         * fileio.c (Ffile_name_nondirectory):
9029         * fileio.c (Ffile_name_as_directory):
9030         * fileio.c (Fdirectory_file_name):
9031         * fileio.c (Ffile_truename):
9032         * fileio.c (Fsubstitute_in_file_name):
9033         * fileio.c (Ffile_modes):
9034         * fileio.c (Fset_file_modes):
9035         * fileio.c (Fset_default_file_modes):
9036         * fileio.c (Fverify_visited_file_modtime):
9037         * floatfns.c (Facos):
9038         * floatfns.c (Fasin):
9039         * floatfns.c (Fatan):
9040         * floatfns.c (Fcos):
9041         * floatfns.c (Fsin):
9042         * floatfns.c (Ftan):
9043         * floatfns.c (Fbessel_j0):
9044         * floatfns.c (Fbessel_j1):
9045         * floatfns.c (Fbessel_jn):
9046         * floatfns.c (Fbessel_y0):
9047         * floatfns.c (Fbessel_y1):
9048         * floatfns.c (Fbessel_yn):
9049         * floatfns.c (Ferf):
9050         * floatfns.c (Ferfc):
9051         * floatfns.c (Flog_gamma):
9052         * floatfns.c (Fexp):
9053         * floatfns.c (Fexpt):
9054         * floatfns.c (Flog):
9055         * floatfns.c (Flog10):
9056         * floatfns.c (Fsqrt):
9057         * floatfns.c (Fcube_root):
9058         * floatfns.c (Facosh):
9059         * floatfns.c (Fasinh):
9060         * floatfns.c (Fatanh):
9061         * floatfns.c (Fcosh):
9062         * floatfns.c (Fsinh):
9063         * floatfns.c (Ftanh):
9064         * floatfns.c (Fabs):
9065         * floatfns.c (Ffloat):
9066         * floatfns.c (Flogb):
9067         * floatfns.c (Fceiling):
9068         * floatfns.c (Ffloor):
9069         * floatfns.c (Fround):
9070         * floatfns.c (Ftruncate):
9071         * floatfns.c (Ffceiling):
9072         * floatfns.c (Fffloor):
9073         * floatfns.c (Ffround):
9074         * floatfns.c (Fftruncate):
9075         * fns.c (Fstring_equal):
9076         * fns.c (Fstring_lessp):
9077         * fns.c (concat2):
9078         * fns.c (concat3):
9079         * fns.c (vconcat2):
9080         * fns.c (vconcat3):
9081         * fns.c (Fsubstring):
9082         * fns.c (Fassoc):
9083         * fns.c (Fold_assoc):
9084         * fns.c (assoc_no_quit):
9085         * fns.c (Fassq):
9086         * fns.c (Fold_assq):
9087         * fns.c (assq_no_quit):
9088         * fns.c (Frassoc):
9089         * fns.c (Fold_rassoc):
9090         * fns.c (Frassq):
9091         * fns.c (Fold_rassq):
9092         * fns.c (rassq_no_quit):
9093         * fns.c (Fremassoc):
9094         * fns.c (remassoc_no_quit):
9095         * fns.c (Fremassq):
9096         * fns.c (remassq_no_quit):
9097         * fns.c (Fremrassoc):
9098         * fns.c (Fremrassq):
9099         * fns.c (remrassq_no_quit):
9100         * fns.c (Fsort):
9101         * fns.c (Fplist_get):
9102         * fns.c (Fplist_put):
9103         * fns.c (Fplist_remprop):
9104         * fns.c (Fplist_member):
9105         * fns.c (Flax_plist_get):
9106         * fns.c (Flax_plist_put):
9107         * fns.c (Flax_plist_remprop):
9108         * fns.c (Flax_plist_member):
9109         * fns.c (Fequal):
9110         * fns.c (Fold_equal):
9111         * fns.c (Frequire):
9112         * fns.c (Fbase64_encode_region):
9113         * fns.c (Fbase64_encode_string):
9114         * fns.c (Fbase64_decode_region):
9115         * frame.c:
9116         * frame.c (frame_matches_frame_spec):
9117         * frame.c (device_matches_device_spec):
9118         * frame.c (next_frame):
9119         * frame.c (previous_frame):
9120         * frame.c (Fnext_frame):
9121         * frame.c (Fprevious_frame):
9122         * frame.c (Fframe_property):
9123         * frame.c (Fset_frame_height):
9124         * frame.c (Fset_frame_size):
9125         * frame.h:
9126         * glyphs.c:
9127         * glyphs.c (if):
9128         * glyphs.c (decode_error_behavior_flag):
9129         * glyphs.c (Fmake_image_instance):
9130         * indent.c (Findent_to):
9131         * intl.c (Fignore_defer_gettext):
9132         * keymap.c (Fkeymapp):
9133         * keymap.c (Flookup_key):
9134         * lread.c:
9135         * lread.c (Fload_internal):
9136         * lread.c (Feval_buffer):
9137         * lread.c (Feval_region):
9138         * macros.c (Fexecute_kbd_macro):
9139         * marker.c (set_marker_internal):
9140         * marker.c (Fset_marker):
9141         * marker.c (set_marker_restricted):
9142         * marker.c (Fcopy_marker):
9143         * marker.c (noseeum_copy_marker):
9144         * menubar.c:
9145         * menubar.c (Fpopup_menu):
9146         * minibuf.c:
9147         * mule-charset.c (Fcharset_name):
9148         * mule-charset.c (Fchar_charset):
9149         * mule-charset.c (Fchar_octet):
9150         * mule-charset.c (Fsplit_char):
9151         * mule-wnnfns.c (Fwnn_open):
9152         * mule-wnnfns.c (Fwnn_dict_comment):
9153         * mule-wnnfns.c (Fwnn_quit_henkan):
9154         * mule-wnnfns.c (Fwnn_word_toroku):
9155         * mule-wnnfns.c (Fwnn_word_sakujo):
9156         * mule-wnnfns.c (Fwnn_word_use):
9157         * mule-wnnfns.c (Fwnn_hindo_set):
9158         * objects.c:
9159         * objects.c (Fmake_color_instance):
9160         * objects.c (Fmake_font_instance):
9161         * print.c (Fwrite_char):
9162         * process.c:
9163         * process.c (mark_process):
9164         * process.c (print_process):
9165         * process.c (get_process_from_usid):
9166         * process.c (Fprocessp):
9167         * process.c (Fprocess_live_p):
9168         * process.c (Fget_process):
9169         * process.c (Fget_buffer_process):
9170         * process.c (get_process):
9171         * process.c (Fprocess_id):
9172         * process.c (Fprocess_name):
9173         * process.c (Fprocess_command):
9174         * process.c (init_process_io_handles):
9175         * process.c (start_process_unwind):
9176         * process.c (Fstart_process_internal):
9177         * process.c (Fopen_multicast_group_internal):
9178         * process.c (Fset_process_window_size):
9179         * process.c (read_process_output):
9180         * process.c (send_process):
9181         * process.c (Fprocess_tty_name):
9182         * process.c (Fset_process_buffer):
9183         * process.c (Fprocess_buffer):
9184         * process.c (Fprocess_mark):
9185         * process.c (set_process_filter):
9186         * process.c (Fset_process_filter):
9187         * process.c (Fprocess_filter):
9188         * process.c (Fprocess_send_region):
9189         * process.c (Fprocess_send_string):
9190         * process.c (exec_sentinel):
9191         * process.c (Fset_process_sentinel):
9192         * process.c (Fprocess_sentinel):
9193         * process.c (status_notify):
9194         * process.c (Fprocess_status):
9195         * process.c (Fprocess_exit_status):
9196         * process.c (process_send_signal):
9197         * process.c (Fprocess_send_eof):
9198         * process.c (deactivate_process):
9199         * process.c (remove_process):
9200         * process.c (Fdelete_process):
9201         * process.c (kill_buffer_processes):
9202         * process.c (Fprocess_kill_without_query):
9203         * process.c (Fprocess_kill_without_query_p):
9204         * rangetab.c:
9205         * rangetab.c (Fget_range_table):
9206         * rangetab.c (Fput_range_table):
9207         * rangetab.c (Fremove_range_table):
9208         * rangetab.c (Fclear_range_table):
9209         * search.c:
9210         * search.c (Fskip_chars_forward):
9211         * search.c (Fskip_chars_backward):
9212         * search.c (Fskip_syntax_forward):
9213         * search.c (Fskip_syntax_backward):
9214         * search.c (search_command):
9215         * search.c (Freplace_match):
9216         * search.c (Fregexp_quote):
9217         * select.c (Fown_selection_internal):
9218         * select.c (Fselection_owner_p):
9219         * select.c (Fselection_exists_p):
9220         * select.c (Fget_selection_internal):
9221         * specifier.c:
9222         * symbols.c:
9223         * symbols.c (Fintern):
9224         * symbols.c (Fintern_soft):
9225         * symbols.c (Funintern):
9226         * symbols.c (Fapropos_internal):
9227         * symbols.c (Fset_default):
9228         * syntax.c:
9229         * syntax.c (Fsyntax_table_p):
9230         * syntax.c (Fcopy_syntax_table):
9231         * syntax.c (Fset_syntax_table):
9232         * syntax.c (Fchar_syntax):
9233         * syntax.c (syntax_match):
9234         * syntax.c (Fmatching_paren):
9235         * syntax.c (Fforward_word):
9236         * syntax.c (scan_lists):
9237         * syntax.c (Fscan_lists):
9238         * syntax.c (Fscan_sexps):
9239         * syntax.c (Fparse_partial_sexp):
9240         * toolbar.c (Fcheck_toolbar_button_syntax):
9241         * tooltalk.doc:
9242         * window.c:
9243         * window.c (Fwindowp):
9244         * window.c (Fwindow_live_p):
9245         * window.c (Fwindow_point):
9246         * window.c (Fdelete_window):
9247         * window.c (Fnext_window):
9248         * window.c (Fprevious_window):
9249         * window.c (Fother_window):
9250         * window.c (window_loop):
9251         * window.c (Fget_lru_window):
9252         * window.c (Fsplit_window):
9253         * window.c (Fenlarge_window):
9254         * window.c (Fenlarge_window_pixels):
9255         * window.c (Fshrink_window):
9256         * window.c (Fshrink_window_pixels):
9257         * window.c (change_window_height):
9258         * window.c (Fwindow_configuration_p):
9259         * window.c (Fcurrent_window_configuration):
9260         * window.h:
9261         * casefiddle.c (casify_object):
9262         * casefiddle.c (Fupcase):
9263         * casefiddle.c (Fdowncase):
9264         * casefiddle.c (Fcapitalize):
9265         * casefiddle.c (Fupcase_initials):
9266         * casefiddle.c (casify_region_internal):
9267         * casefiddle.c (casify_region):
9268         * casefiddle.c (Fupcase_region):
9269         * casefiddle.c (Fdowncase_region):
9270         * casefiddle.c (Fcapitalize_region):
9271         * casefiddle.c (Fupcase_initials_region):
9272         * casefiddle.c (Fupcase_word):
9273         * casefiddle.c (Fdowncase_word):
9274         * casefiddle.c (Fcapitalize_word):
9275         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9276         Replace 0 with '\0' when working with bytes.
9277         Replace initial "(" with "\(" in docstrings.
9278
9279 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9280
9281         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9282
9283         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9284
9285 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9286
9287         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9288
9289 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9290
9291         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9292         correctly.
9293
9294 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9295
9296         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9297         (inhibit_auto_save_session): New variable.
9298         (vars_of_fileio): Declare and initialize them.
9299         * fileio.c (Fdo_auto_save): Don't create session file if
9300         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9301
9302 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9303
9304         * sgiplay.c (play_internal): C++ compilability.
9305         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9306         * callproc.c (Fold_call_process_internal):
9307         Remove unused vars `env', `first'.
9308         * scrollbar.c (update_scrollbar_instance):
9309         #### unused var `current_window'.
9310         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9311         etc. within #ifdef NOT_YET.
9312         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9313         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9314         * specifier.c (specifier_instance):
9315         #### unused var `tag'.
9316         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9317
9318 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9319
9320         * fns.c (Fbutlast):
9321         * fns.c (list_sort):
9322         * fns.c (Ffillarray):
9323         * fns.c (bytecode_nconc2):
9324         * fns.c (Fnconc):
9325         * fns.c (mapcar1):
9326         * fns.c (Fmapconcat):
9327         Be pedantically 64-bit correct.  For the time when someone will
9328         want to have a list with length > 2**32.
9329
9330         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9331         Work around MIPSpro compiler bug.
9332
9333         * process-unix.c (unix_kill_child_process): Add snarky comment.
9334         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9335
9336         * config.h.in: Oops, _getpt ==> _getpty
9337
9338 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9339
9340         * config.h.in:
9341         * regex.c:
9342         Use void*, not char*, as return type of alloca().
9343
9344         * alloc.c (free_marker): Side effect inside assert expression!
9345
9346 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9347
9348         * mule-charset.c (Fset_charset_ccl_program): To check
9349         if the given ccl program is valid, use setup_ccl_program()
9350         instead of CHECK_VECTOR().
9351         (Fmake_charset): Likewise.
9352
9353 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9354
9355         * faces.c (get_extent_fragment_face_cache_index):
9356         Fix cachel.merged_faces memory leak.
9357
9358 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9359
9360         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9361         Reset MSB of octets obtained by DECODE_SJIS
9362         because of the incompatibility with Emacs.
9363         (ccl_driver)<CCL_ENCODE_SJIS>:
9364         Set MSB of octets before passing them to
9365         ENCODE_SJIS because of the incompatibility
9366         with Emacs.
9367
9368 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9369
9370         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9371         (DECLARE_LRECORD): Undo the last change.
9372         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9373
9374 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9375
9376         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9377         the implementation to lrecord_implementations_table.
9378
9379 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9380
9381         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9382         initial value of `lrecord_type_##c_name' and
9383         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9384         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9385         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9386         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9387         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9388
9389 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9390
9391         * miscplay.c (sndcnv8S_2mono):
9392         (sndcnv2monounsigned):
9393         (sndcnvULaw_2linear):
9394         (sndcnv16swap):
9395         Remove implementation-defined behavior.
9396
9397 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9398
9399         * input-method-xlib.c: Warning suppression.
9400
9401 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9402
9403         * mule-ccl.c: Sync up with Emacs 21.0.90.
9404         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9405         Do nothing.
9406         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9407         Likewise.
9408         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9409         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9410         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9411         leading char belongs to official 2-dimensional charset.
9412         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9413         write the given character as is.  Otherwise,
9414         if it is a multibyte char, convert it by
9415         non_ascii_set_charptr_emchar, then write it.
9416         (CCL_WRITE_STRING): Likewise.
9417         (ccl_get_compiled_code): New function.
9418         (setup_ccl_program): When ccl_prog is invalid,
9419         return -1.
9420         (Fregister_code_conversion_map): New function.
9421         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9422
9423         * mule-ccl.h: Sync up with Emacs 21.0.90.
9424         (Fregister_ccl_program): export it.
9425
9426         * redisplay-msw.c (separate_textual_runs):
9427         If ccl program is not valid, don't do ccl conversion.
9428
9429         * redisplay-x.c (separate_textual_runs): Ditto.
9430
9431         * file-coding.c (Fmake_coding_system):
9432         When type is ccl and value is vector, register it
9433         with a proper symbol.  And checks whether the
9434         given ccl program is valid.
9435         (mule_decode): When calling ccl_driver, if src indicates
9436         NULL pointer, set an empty string instead.
9437         (mule_encode): Likewise.
9438
9439 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9440
9441         The following large batch of changes gets us back to a state of
9442         C++ compilability.  Extbyte is now a char, which means that
9443         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9444
9445         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9446
9447         * sound.c (Fplay_sound): Type correctness.
9448
9449         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9450         (x_get_window_property): Type correctness.
9451         (receive_incremental_selection): unsigned char ==> Extbyte
9452         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9453         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9454         (Fx_store_cutbuffer_internal): Type correctness.
9455
9456         * process-unix.c (try_to_initialize_subtty): Type correctness.
9457
9458         * objects-x.c (x_print_color_instance): Type correctness.
9459         (x_print_font_instance): Type correctness.
9460         (x_list_fonts): SExtbyte ==> Extbyte.
9461         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9462         (x_find_charset_font): SExtbyte ==> Extbyte.
9463         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9464         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9465         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9466         Use bufbyte_strcmp.
9467
9468         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9469         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9470         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9471         (BYTE_C0_P): Use bit ops for char-signedness safety.
9472         (BYTE_C1_P): Use bit ops for char-signedness safety.
9473         (CHARSET_BY_LEADING_BYTE):
9474         (CHARSET_BY_ATTRIBUTES):
9475         Always use inline function.
9476         Use type_checking_assert.
9477         Hide chlook.
9478
9479         * mule-charset.c (non_ascii_charptr_copy_char):
9480         Modify to work with both ASCII and non-ASCII characters.
9481         Improve docs and variable names.
9482         Replace over-clever fall-through switch with a simple loop.
9483         (Lstream_get_emchar_1):
9484         Replace over-clever fall-through switch with a simple loop.
9485
9486         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9487         Warning suppression.
9488
9489         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9490         the return value of Lstream_getc, which could be EOF as well.
9491
9492         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9493
9494         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9495         APIs can be used on Extbytes without casts.  Risky!
9496         (SExtbyte): Remove.
9497         (UExtbyte): Remove.
9498
9499         * input-method-xlib.c (XIM_init_device):
9500         Use Xlib.h instead of IntrinsicP.h.
9501         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9502         which will break in X11R7.
9503         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9504         to call XRegisterIMInstantiateCallback with correct types.
9505
9506         * gui-x.c (button_item_to_widget_value): Type correctness.
9507
9508         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9509
9510         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9511         (xbm_instantiate_1): Type correctness.
9512         (BUILD_GLYPH_INST):  Type correctness.
9513
9514         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9515
9516         * file-coding.c:
9517         (decode_coding_sjis):
9518         (decode_coding_big5):
9519         (decode_coding_ucs4):
9520         (decode_coding_utf8):
9521         (decode_coding_iso2022):
9522         (decode_coding_no_conversion):
9523         Make all decoding functions take an Extbyte * arg.
9524         (encode_coding_sjis):
9525         (encode_coding_big5):
9526         (encode_coding_ucs4):
9527         (encode_coding_utf8):
9528         (encode_coding_iso2022):
9529         (encode_coding_no_conversion):
9530         Make all encoding functions take a Bufbyte * arg.
9531         Use size_t instead of unsigned int for memory sizes.
9532         Only cast to unsigned char whenever dereferencing Extbyte *.
9533
9534         * doc.c (unparesseuxify_doc_string): Type correctness.
9535
9536         * console-x.c (split_up_display_spec):
9537         Rewrite without using details of internal string representation.
9538         (x_semi_canonicalize_device_connection): Type correctness.
9539
9540         * config.h.in:
9541         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9542         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9543         (HAVE_XFREE386): Removed.
9544
9545         * buffer.h (DEC_CHARPTR): `const' correctness.
9546         (bufbyte_strcmp): New.
9547         (bufbyte_memcmp): New.
9548
9549         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9550
9551         * buffer.h (XCHAR_OR_CHAR_INT):
9552         Always use inline function.
9553         Remove redundant type checking assert() - XINT will abort quite nicely.
9554
9555 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9556
9557         * search.c (Freplace_match): Set newtext to an empty string.
9558
9559 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9560
9561         * s/decosf1-3.h: Remove #include of stropts.h
9562         * s/ptx.h: Remove #include of stropts.h
9563         * s/usg5-4.h: Remove #include of stropts.h
9564         * sysproc.h:
9565         * config.h.in:
9566         Use stropts.h, not sys/stropts.h.
9567         Use strtio.h, not sys/strtio.h.
9568
9569 2000-10-04  Martin Buchholz <martin@xemacs.org>
9570
9571         * XEmacs 21.2.36 is released.
9572
9573 2000-09-21  Andy Piper  <andy@xemacs.org>
9574
9575         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9576         changes still involve copying the widget tree.
9577         (update_widget_face): make sure a change is register in the widget
9578         tree. Call update_tab_widget_face appropriately.
9579         (update_tab_widget_face): ditto.
9580         (x_tab_control_redisplay): make sure non-structural changes still
9581         involve copying the widget tree.
9582
9583 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9584
9585         * lread.c (locate_file): Check the path element is non-nil.
9586
9587 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9588
9589         * lisp.h: Warning suppression for SCO compilers.
9590
9591         * redisplay-tty.c (reset_tty_modes): Fix crash.
9592         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9593
9594 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9595
9596         Big signal/process handling overhaul.  Bugs fixed:
9597         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9598         M-x comint-kill-subjob should work for both values nil and t of
9599         process-connection-type. It was broken on most platforms.
9600         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9601         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9602         * process-unix.c: Signal/Process handling overhaul.
9603         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9604         (allocate_pty): Use all available modern methods of allocating
9605         ptys, falling back to old style BSD allocation as a last resort.
9606         Use allegedly more secure Unix98 pty allocation by default.
9607         (allocate_pty_the_old_fashioned_way): New. the last resort.
9608         (unix_create_process): Push ptem, ldterm, ttcompat where
9609         available.  Autoconfiscate.
9610         (try_to_initialize_subtty): New.
9611         (unix_kill_child_process): Proper signal handling for ptys on most
9612         platforms, using special knowledge of AIX, BSD, etc...
9613         (unix_create_process): Always disconnect_controlling_terminal() for
9614         subprocesses, whether using ptys or not.
9615         * process.h: Remove old getpt-dependent PTY code.
9616         * process.c (Fprocess_send_signal): New, obvious generic function.
9617         (decode_signal): New.
9618         (Finterrupt_process):
9619         (Fkill_process):
9620         (Fquit_process):
9621         (Fstop_process):
9622         (Fcontinue_process):
9623         (Fsignal_process): Use decode_signal.
9624         (process_send_signal):
9625         Many docstring corrections.
9626         Allow any signal to be sent to a process object.
9627         * config.h.in: Add symbols for big signal/process overhaul.
9628         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9629         * sysproc.h: Include process-related headers, where available:
9630         sys/stropts.h sys/strtio.h pty.h libutil.h
9631         * s/irix4-0.h:
9632         * s/irix5-0.h:
9633         * s/cygwin32.h:
9634         * s/gnu.h:
9635         * s/linux.h:
9636         * s/hpux.h:
9637         * s/aix3-1.h:
9638         Remove old S&M pty stuff.
9639         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9640         * systty.h: Simplify cpp hackery, improve comments.
9641         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9642
9643         * editfns.c (Fformat_time_string):
9644         Be a little more paranoid with the return value of ctime.
9645
9646         * fileio.c (check_executable):
9647         (check_writable):
9648         Use symbolic constants X_OK, W_OK.
9649
9650         * console-x.c (split_up_display_spec): Fix a warning.
9651
9652 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9653
9654         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9655         * ntproc.c (sys_spawnve): make_string ==> build_string
9656         Small clarity improvements.
9657
9658 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9659
9660         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9661
9662         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9663
9664         * config.h.in (HAVE_STRCASECMP): Remove.
9665
9666 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9667
9668         * redisplay-output.c (redisplay_output_pixmap):
9669         Cleaner and possibly more 64-bit correct code.
9670
9671 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9672
9673         * dumper.c (pdump_load_finish): move restoration of
9674         `noninteractive1' to emacs.c (main_1).
9675         * emacs.c (main_1): protect LISP-visible command-line flags
9676         from pdump_load().
9677
9678 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9679
9680         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9681         DUMP_TARGET instead of literal program names.
9682
9683 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9684
9685         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9686
9687 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9688
9689         * *: Spelling mega-patch
9690
9691 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9692
9693         * fns.c (bad_bad_turtle):
9694         Delete "Eek!" comment, since we fixed the bug to which it refers.
9695
9696 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9697
9698         * alloca.c: Replace REGISTER with register.
9699
9700 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9701
9702         * file-coding.c (ucs_to_char): Use countof.
9703
9704 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9705
9706         * file-coding.c: (ucs_to_char):
9707         (complex_vars_of_file_coding):
9708         Use countof instead of sizeof.
9709         Use CHECK_NATNUM instead of CHECK_INT.
9710
9711         * sysdep.c (strcasecmp): Remove.
9712         * device-x.c (ascii_strcasecmp): New.
9713         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9714         Avoid using non-standard non-portable strcasecmp.
9715
9716 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9717
9718         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9719         * font-lock.c: remove reference to emacsfns.h.
9720         * search.c: small doc improvement.
9721         * event-Xt.c: correct file names in comments.
9722         * console-x.h Correct file names in comments.
9723         * frame.c: Correct file names in comments.
9724         * event-stream.c: remove Energize from comments.
9725
9726 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9727
9728         * symeval.h (DEFERROR_STANDARD):
9729         (DEFERROR):
9730         (DEFSYMBOL):
9731         (DEFSYMBOL_NO_DUMP):
9732         (DEFSYMBOL_MULTIWORD_PREDICATE):
9733         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9734         (DEFKEYWORD):
9735         The construct &##name is not sensible C.
9736         Fixes compilation errors with Unixware native compiler.
9737
9738 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9739
9740         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9741         (next_frame_internal): Removed.  We now just have next_frame.
9742         (next_frame):
9743         Write a simpler and cleaner one-pass algorithm.
9744         Remove called_from_delete_device arg and #ifdefed-out code.
9745         (previous_frame):
9746         Renamed from prev_frame.  Update callers.
9747         Cleaned up to have an analogous implementation to next_frame.
9748         (other_visible_frames_internal): Remove the
9749         called_from_delete_device bogus arg, and hence, remove this
9750         function.  Just use other_visible_frames().
9751
9752         * window.c (Fnext_window):
9753         Prettify docstring.
9754         Since next_frame() is guaranteed to return a frame, remove check
9755         for nil inserted in previous patch.
9756         (Fprevious_window):
9757         Prettify docstring.
9758         Make code look more like Fnext_window.
9759         (window_loop):
9760         Respect the `console' arg when iterating through windows.
9761         Fixes bug: (get-buffer-window buffer t device) not respecting
9762         the `device' arg.
9763         This function needs more work, as others have pointed out.
9764
9765         * frame.h: Rename prev_frame to previous_frame.
9766         device_matches_console_spec no longer takes a `frame' arg.
9767
9768         * s/gnu.h:
9769         * s/linux.h:
9770         * s/hpux.h:
9771         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9772         From "Golubev I. N." <gin@mo.msk.ru>.
9773
9774         * make-src-depend: Fix typo.
9775
9776 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9777
9778         * window.c (Fnext_window):
9779         next_frame() might return nil, not a frame.
9780         Fixes this crash:
9781         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9782
9783         * frame.c (next_frame_internal):
9784         We've passed a frame if we've passed its device.
9785         Fixes this crash:
9786         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9787 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9788
9789 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9790
9791         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9792         Allow option to suppress accelerators in menu/dialog items.
9793         (populate_or_checksum_helper): Pass dialog title through above.
9794
9795 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9796
9797         * event-msw.c (mswindows_key_to_emacs_keysym):
9798         Add "pause" key, fix "menu" key.
9799
9800 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9801
9802         * eval.c (reinit_vars_of_eval):
9803         Increase max_lisp_eval_depth to 1000,
9804         required for thai-xtis.el to byte-compile under some circumstances.
9805
9806 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9807
9808         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9809         From Kenichi Handa.
9810
9811 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9812
9813         * make-src-depend: Make the generated Makefiles smaller.
9814
9815         * s/hpux.h (SETUP_SLAVE_PTY):
9816         Provide a %d in the format string for the errno argument.
9817
9818         * editfns.c (Ftemp_directory):
9819         Warning fix.
9820         Avoid buffer overrun on very long file name.
9821
9822         * input-method-xlib.c (XIM_init_device):
9823         6th parameter of XRegisterIMInstantiateCallback has different
9824         pointer types on different OSes, so simply cast to (void *).
9825
9826         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9827
9828         * sysdll.c (dll_open):
9829         shl_load will hang hard if passed a NULL filename.
9830         Simply return NULL for compatibility with dlopen.
9831         * sysdll.c: Conform to XEmacs coding standards.
9832
9833         * sysdep.c (get_pty_max_bytes):
9834         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9835
9836 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9837
9838         * tooltalk.c: Add #include <syssignal.h>
9839
9840 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9841
9842         * s/hpux.h: Don't use undefined function sigunblock().
9843
9844 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9845
9846         * config.h.in: Add HAVE_BALLOON_HELP.
9847         * emacs.c: Use HAVE_BALLOON_HELP.
9848         * Makefile.in.in (x_objs):
9849         Make Balloon Help conditional on finding shape.h.
9850
9851 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9852
9853         * syntax.c (regex_emacs_buffer_p): New variable.
9854         * syntax.h (regex_emacs_buffer_p): extern.
9855         * search.c (looking_at_1):
9856         (string_match_1):
9857         (fast_string_match):
9858         (search_buffer): Set regex_emacs_buffer_p.
9859         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9860         when before_dot, at_dot, after_dot.
9861
9862 2000-08-23  Andy Piper  <andy@xemacs.org>
9863
9864         * gui-x.c (popup_selection_callback): Only set action_occurred
9865         when we really have an image instance.
9866         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9867
9868 2000-08-23  Andy Piper  <andy@xemacs.org>
9869
9870         * gui-msw.c (mswindows_handle_gui_wm_command): set
9871         action_occurred.
9872         * gui-x.c (popup_selection_callback): ditto.
9873
9874         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9875         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9876         (struct Lisp_Image_Instance): add action_occurred flag.
9877
9878         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9879         (image_instance_changed): ditto.
9880         (reset_frame_subwindow_instance_cache): only unmap windows - do
9881         not remove them from the cache also.
9882
9883         * glyphs-widget.c (tab_control_update): better debug.
9884         (progress_gauge_update): ditto.
9885         (layout_update): ditto.
9886         (layout_instantiate): ditto.
9887         (tab_control_order_only_changed): cope with null pending items.
9888
9889         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9890         debug. Force selection of an item when an action occurred. Cope
9891         with null pending_items.
9892         (mswindows_progress_gauge_redisplay): better debug.
9893         * glyphs-x.c (x_tab_control_redisplay): ditto.
9894
9895         * redisplay.c (redisplay_frame): reset the frame cache if the
9896         frame is garbaged.
9897
9898         * window.c (Fset_window_configuration): potentially re-enable
9899         frame cache reset.
9900         (window_unmap_subwindows): need to finalize instances here since
9901         it is only used in mark_window_as_deleted.
9902
9903 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9904
9905         * nas.c (SndOpenDataForReading):
9906         nas.c (WaveOpenDataForReading):
9907         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9908         Somehow escaped from the 2000-08-14 patch.
9909
9910 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9911
9912         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9913         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9914
9915 2000-08-21  Andy Piper  <andy@xemacs.org>
9916
9917         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9918         window if it is not already displayed.
9919
9920         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9921         it is not already displayed.
9922
9923         * window.c (Fset_window_configuration): don't reset the frame
9924         cache.
9925
9926         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9927         instances from the frame cache if we are actually finalizing them.
9928         (reset_frame_subwindow_instance_cache): reset frame cache only
9929         after unmapping everything.
9930         (map_subwindow): set displayed flag after mapping.
9931
9932 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9933
9934         * data.c (indirect_function):
9935         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9936
9937         * eval.c (function_argcount):
9938         Use original function when signaling errors.
9939
9940 2000-08-18  Andy Piper  <andy@xemacs.org>
9941
9942         * frame.c (delete_frame_internal): use new
9943         free_frame_subwindow_instances name.
9944
9945         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9946         (add_tab_item): make return type correct.
9947         (mswindows_tab_control_instantiate): assert index of tab.
9948         (mswindows_tab_control_redisplay): Re-code to use
9949         gui_item_equal_sans_selected and gui_item_list_find_selected.
9950
9951         * glyphs-widget.c (tab_control_update): Correct comment.
9952
9953         * window.c (window_unmap_subwindows): use new
9954         unmap_subwindow_instance_cache_mapper.
9955         (window_unmap_subwindows_cache_mapper): deleted.
9956         (Fset_window_configuration): comparisons should now be with
9957         EQ. Preserve the subwindow instance cache across configuration
9958         changes.
9959         (allocate_window): ditto.
9960         (make_dummy_parent): ditto.
9961
9962         * glyphs.c (free_frame_subwindow_instances): rename from
9963         free_frame_subwindow_instance_cache. finalize all instances rather
9964         than just those in the display cache.
9965         (finalize_all_subwindow_instances): walk windows unmapping and
9966         finalizing subwindows.
9967         (unmap_subwindow_instance_cache_mapper): moved from
9968         window.c. Allow finalization as well as unmapping.
9969
9970         * gui.c (gui_item_list_find_selected): new function.
9971
9972         * gui.h (gui_item_list_find_selected): declare.
9973
9974         * glyphs-x.c (x_tab_control_redisplay): pick tab
9975         explicitly. Re-code to use gui_item_equal_sans_selected and
9976         gui_item_list_find_selected.
9977
9978         * glyphs-x.h: add lwlib-utils.h
9979
9980         * buffer.c (Frecord_buffer): undo previous change.
9981
9982 2000-08-09  Vin Shelton  <acs@xemacs.org>
9983
9984         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9985         possible.  Create temporary files more securely.  The patch was
9986         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9987         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9988         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9989         for details.
9990
9991 2000-08-07  Ben Wing  <ben@xemacs.org>
9992
9993         * getloadavg.c: remove duplicate (and windows-breaking)
9994         includes of fcntl.h and sys/file.h.
9995
9996         * nt.c: remove duplicate getloadavg() definition.
9997
9998         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9999         encodings.
10000
10001 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10002
10003         * eval.c (function_argcount): If function needs to be autoloaded
10004         actually use the loaded definition.
10005         GCPRO function.
10006
10007 2000-08-05  Ben Wing  <ben@xemacs.org>
10008
10009         * getloadavg.c: add prototype for getloadavg().  remove
10010         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10011         of the code).  remove duplicate header includes.
10012
10013         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10014
10015         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10016         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10017         useful load average.
10018
10019         * alloc.c (reinit_alloc_once_early): removed references to
10020         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10021         the lisp vars are the only things referencing the malloc_sbrk_*
10022         vars, and they were already if 0'd out.  these vars only exist
10023         in the older malloc.c, which is basically unused, and they're
10024         only for informational purposes.
10025
10026         * m\*.h: removed useless VIRT_ADDR_VARIES.
10027
10028         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10029
10030 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10031
10032         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10033         color if the image is a mono pixmap.
10034
10035 2000-07-30  Ben Wing  <ben@xemacs.org>
10036
10037         * Makefile.in.in (release):
10038         Remove stray @.
10039
10040         * buffer.c (directory_is_current_directory):
10041         * dired-msw.c (mswindows_get_files):
10042         * dired.c:
10043         * dired.c (Fdirectory_files):
10044         * dired.c (file_name_completion_stat):
10045         * dired.c (Ffile_attributes):
10046         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10047         preprocessor tricks, to avoid problems on some machines
10048         (e.g. SCO).
10049
10050         * callproc.c (egetenv): GC docs.
10051
10052         * console-msw.h:
10053         * console-msw.h (struct mswindows_dialog_id):
10054         * lrecord.h (lrecord_type):
10055         New object for use with MSW dialogs.
10056
10057         * console.h (struct console_methods):
10058         New enable/disable frame methods, for proper modal dialogs.
10059
10060         * device-msw.c (msprinter_default_printer): Fix to follow
10061         proper Mule conventions.
10062
10063         * device-msw.c:
10064         * device-msw.c (signal_open_printer_error):
10065         * device-msw.c (msprinter_init_device):
10066         * device-msw.c (ensure_not_printing):
10067         * device-msw.c (plist_get_margin):
10068         * device-msw.c (Fmsprinter_select_settings):
10069         * device-msw.c (finalize_devmode):
10070         * device-msw.c (Fmsprinter_settings_despecialize):
10071         * device-msw.c (signal_enum_priner_error):
10072         * extents.c (decode_extent):
10073         * extents.c (decode_map_extents_flags):
10074         * extents.c (decode_extent_at_flag):
10075         * extents.c (Fextent_at):
10076         * extents.c (Fextents_at):
10077         * extents.c (symbol_to_glyph_layout):
10078         [[[[2]]]] Use structured errors.
10079
10080         * dialog-msw.c:
10081         * dialog-msw.c (mswindows_is_dialog_msg):
10082         * dialog-msw.c (mark_mswindows_dialog_id):
10083         * dialog-msw.c (dialog_proc):
10084         * dialog-msw.c (handle_question_dialog_box):
10085         * dialog-msw.c (syms_of_dialog_mswindows):
10086         Define new object to clean up marking; use it as a dialog identifier.
10087         Call new delete-dialog-box-hook.
10088
10089         * dialog-x.c (dbox_selection_callback):
10090         * dialog-x.c (dbox_descriptor_to_widget_value):
10091         * dialog-x.c (x_make_dialog_box_internal):
10092         Call new delete-dialog-box-hook.
10093         Return an id.
10094
10095         * dialog.c:
10096         * dialog.c (syms_of_dialog):
10097         * dialog.c (vars_of_dialog):
10098         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10099
10100         * eval.c:
10101         * eval.c (signal_call_debugger):
10102         when noninteractive, output stack traces on the console instead
10103         of in a (never-seen) buffer.
10104
10105         * eval.c (signal_type_error):
10106         * eval.c (invalid_argument_2):
10107         * lisp.h:
10108         new funs for use w/structured errors.
10109
10110         * event-Xt.c:
10111         * event-Xt.c (x_to_emacs_keysym):
10112         * event-Xt.c (describe_event):
10113         * event-Xt.c (emacs_Xt_event_handler):
10114         * event-Xt.c (vars_of_event_Xt):
10115         * event-msw.c:
10116         * event-msw.c (mswindows_wnd_proc):
10117         * event-msw.c (vars_of_event_mswindows):
10118         rename {x,mswindows}-debug-events to debug-{}-events for
10119         consistency with other debug-foo variables.
10120
10121         * event-stream.c:
10122         document next-event more clearly.
10123
10124         * fileio.c (Ffile_name_directory):
10125         * fileio.c (Ffile_name_nondirectory):
10126         * fileio.c (Funhandled_file_name_directory):
10127         * fileio.c (file_name_as_directory):
10128         * fileio.c (Ffile_name_as_directory):
10129         * fileio.c (directory_file_name):
10130         * fileio.c (Fdirectory_file_name):
10131         * fileio.c (Fmake_temp_name):
10132         * fileio.c (Ffile_truename):
10133         * fileio.c (Fsubstitute_in_file_name):
10134         * fileio.c (expand_and_dir_to_file):
10135         * fileio.c (barf_or_query_if_file_exists):
10136         * fileio.c (check_executable):
10137         * fileio.c (Ffile_exists_p):
10138         * fileio.c (Ffile_writable_p):
10139         * fileio.c (Ffile_directory_p):
10140         * fileio.c (Ffile_regular_p):
10141         * fileio.c (Ffile_modes):
10142         * fileio.c (Ffile_newer_than_file_p):
10143         * fileio.c (Fverify_visited_file_modtime):
10144         * fileio.c (Fset_visited_file_modtime):
10145         * fileio.c (auto_save_1):
10146         (1). (2).
10147         fix up gcpro's.
10148
10149         * frame-msw.c:
10150         * frame-msw.c (mswindows_init_frame_1):
10151         * frame-msw.c (mswindows_enable_frame):
10152         * frame-msw.c (error_frame_unsizable):
10153         * frame-msw.c (msprinter_init_frame_1):
10154         * frame-msw.c (msprinter_init_frame_3):
10155         * frame-msw.c (console_type_create_frame_mswindows):
10156         (2).
10157         implement new enable/disable frame methods.
10158
10159         * frame-x.c:
10160         * frame-x.c (x_enable_frame):
10161         * frame-x.c (console_type_create_frame_x):
10162         implement new enable/disable frame methods.
10163
10164         * frame.c:
10165         * frame.c (Fdisable_frame):
10166         * frame.c (syms_of_frame):
10167         * frame.h (struct frame):
10168         implement new enable/disable frame methods/functions.
10169
10170         * general-slots.h:
10171         add initial-focus.
10172
10173         * glyphs-msw.c (mswindows_widget_instantiate):
10174         comment that initial-focus should be implemented.
10175
10176         * glyphs-widget.c:
10177         * glyphs-widget.c (check_valid_instantiator):
10178         * glyphs-widget.c (check_valid_orientation):
10179         * glyphs-widget.c (check_valid_tab_orientation):
10180         * glyphs-widget.c (check_valid_justification):
10181         * glyphs-widget.c (check_valid_border):
10182         * glyphs-widget.c (check_valid_callback):
10183         * glyphs-widget.c (check_valid_int_or_function):
10184         * glyphs-widget.c (check_valid_string_or_vector):
10185         * glyphs-widget.c (check_valid_item_list_1):
10186         * glyphs-widget.c (widget_validate):
10187         * glyphs-widget.c (combo_box_validate):
10188         * glyphs-widget.c (widget_instantiate):
10189         * glyphs-widget.c (syms_of_glyphs_widget):
10190         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10191         * glyphs-widget.c (image_instantiator_combo_box):
10192         * glyphs-widget.c (image_instantiator_scrollbar):
10193         * glyphs-widget.c (image_instantiator_tab_control):
10194         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10195         (2).
10196         support (unimplemented) keyword initial-focus.
10197         reindent long macros.
10198
10199         * glyphs-x.c (x_redisplay_widget):
10200         * glyphs-x.c (x_button_instantiate):
10201         * glyphs-x.c (x_button_redisplay):
10202         * glyphs-x.c (x_progress_gauge_instantiate):
10203         * glyphs-x.c (x_edit_field_instantiate):
10204         * glyphs-x.c (x_combo_box_instantiate):
10205         * glyphs-x.c (x_tab_control_instantiate):
10206         * glyphs-x.c (x_label_instantiate):
10207         * gui-x.c:
10208         * gui-x.c (button_item_to_widget_value):
10209         * gui-x.c (gui_items_to_widget_values_1):
10210         * gui-x.c (gui_item_children_to_widget_values):
10211         * gui-x.c (gui_items_to_widget_values):
10212         * gui-x.h:
10213         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10214         add new flag to gui-parsing routines to indicate whether
10215         accelerator specs should be supported.
10216
10217         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10218
10219         * glyphs.h (struct Lisp_Image_Instance):
10220         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10221         add initial-focus flag.
10222
10223         * gui.c:
10224         * gui.c (syms_of_gui):
10225         * gui.c (vars_of_gui):
10226         clean up menu-no-selection-hook.
10227
10228         * gui.h:
10229         support delete-dialog-box-hook.
10230
10231         * lread.c (Fload_internal):
10232         * lread.c (locate_file_in_directory_mapper):
10233         (1).
10234
10235         * lrecord.h:
10236         * lrecord.h (struct toolbar_button):
10237         * lrecord.h (syms_of_toolbar):
10238         document how to create a new object.
10239
10240         * menubar-msw.c (mswindows_char_is_accelerator):
10241         may be called on frames w/o menus.
10242
10243         * menubar.c (vars_of_menubar):
10244         clean up :filter docs.
10245
10246         * nt.c (readdir):
10247         * ntproc.c:
10248         (1).
10249
10250         * process-nt.c:
10251         * process-nt.c (validate_signal_number):
10252         * process-nt.c (signal_cannot_launch):
10253         * process-nt.c (nt_create_process):
10254         * process-nt.c (nt_send_process):
10255         * process-nt.c (nt_kill_child_process):
10256         * process-nt.c (nt_open_network_stream):
10257         * process-nt.c (syms_of_process_nt):
10258         (2).
10259         delete quote-handling.  call new lisp code that does it better.
10260
10261         * process-unix.c (connect_to_file_descriptor):
10262         * process-unix.c (allocate_pty):
10263         * process-unix.c (unix_send_process):
10264         * process-unix.c (unix_kill_child_process):
10265         * process-unix.c (unix_open_network_stream):
10266         * process-unix.c (unix_open_multicast_group):
10267         (1). (2).
10268
10269         * process.c:
10270         * process.c (Fstart_process_internal):
10271         (2).  need to canonicalize process path even if absolute.
10272
10273         * select-msw.c (symbol_to_ms_cf):
10274         * select-msw.c (ms_cf_to_symbol):
10275         * select-msw.c (cf_is_autofreed):
10276         * select-msw.c (mswindows_destroy_selection):
10277         * select.c:
10278         * select.c (syms_of_select):
10279         * select.h:
10280         support dibv5, fix bugs. (from Mike Alexander)
10281
10282         * select.c (Fget_selection_internal):
10283         * select.c (select_convert_out):
10284
10285         * sysdep.c:
10286         * sysdep.c (xemacs_stat):
10287         renamed.
10288
10289         * sysdep.c (mkdir):
10290         * sysdep.c (rmdir):
10291         but keep original stat() here because we provide encapsulation
10292         around these funs.
10293
10294         * sysfile.h:
10295         * sysfile.h (fstat):
10296         remove stat garbage.
10297
10298         * syswindows.h:
10299         fix X/MSW conflict.
10300         don't include tchar.h.  it's inappropriate because it makes
10301         compile-time distinctions when we want runtime distinctions.
10302         (we provide our own tchar replacements)
10303
10304         * toolbar.c:
10305         use default object printer for toolbar-button.
10306
10307         * unexcw.c:
10308         make sure we don't encapsulate.
10309
10310         * window.c (vars_of_window):
10311         emphasize that temp-buffer-show-hook is obsolete.
10312
10313 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10314
10315         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10316         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10317
10318         * events.c (Fevent_timestamp_lessp):
10319         Not 64-bit clean.  Use EMACS_INT, not int.
10320
10321 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10322
10323         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10324         unsigned int and changed the last enum to
10325         lrecord_type_last_built_in_type.
10326         (lrecord_implementations_table): changed prototype to know how
10327         long the array is supposed to be.
10328         (lrecord_type_count): new unsigned int to keep track of the
10329         current number of lisp lrecord types.
10330         (DEFINE_EXTERNAL_LRECORD):
10331         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10332         dynamic-modules to declare new lisp types. They are the same
10333         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10334         int for each new type, and increment lrecord_type_count by 1.
10335
10336         * alloc.c (lrecord_implementations_table): Changed to reference
10337         lrecord_type_last_built_in_type for the size of the array.
10338         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10339
10340 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10341
10342         * glyphs.h (check_valid_item_list): Renamed from
10343         check_valid_item_list_1.
10344
10345 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10346
10347         * select.c (Qselect_coerce): New.
10348         * select.c (Vselection_coercion_alist): New.
10349         * select.c (syms_of_select): Declare.
10350         * select.c (get-selection-internal): Use it.
10351         Use the new select-coerce functionality.
10352
10353         * select.c (select_coerce): New.
10354         * select.h (select_coerce): Declare.
10355         New function to coerce one type of data into another.
10356
10357 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10358
10359         * callproc.c (Fcall_process_internal):
10360         (Fcall_process_internal):
10361         * process-unix.c (unix_create_process):
10362         Save and restore the value of errno, so that error messages are accurate.
10363
10364 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10365
10366         * elhash.c (print_hash_table):
10367         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10368         Prettify docstrings and indentation.
10369
10370 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10371
10372         * window.c (Fwindow_pixel_edges): Subtract frame border and
10373         gutter size.
10374
10375 2000-07-31  Andy Piper  <andy@xemacs.org>
10376
10377         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10378         will acknowledge the change.
10379
10380         * glyphs.h: declare tab_control_order_only_changed.
10381
10382         * glyphs-x.c (x_tab_control_redisplay): use
10383         tab_control_order_only_changed.
10384
10385         * glyphs-widget.c (tab_control_order_only_changed): new function.
10386
10387         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10388         tab_control_order_only_changed.
10389
10390         * gui.c (gui_item_equal_sans_selected): new function.
10391         (gui_item_equal): use it.
10392
10393         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10394         :properties in favor of :items..
10395
10396         * glyphs-widget.c (check_valid_item_list): rename from
10397         check_valid_item_list_1.
10398         (check_valid_item_list_1): renamed.
10399         (combo_box_validate): deprecate :properties in favor of :items.
10400         (widget_instantiate): ditto.
10401         (tab_control_update): ditto.
10402         (image_instantiator_combo_box): ditto.
10403         (image_instantiator_tree_view): ditto.
10404         (image_instantiator_tab_control): ditto.
10405         (layout_post_instantiate): remove dead code.
10406
10407         * print.c (debug_print_no_newline): only write to debugger if in
10408         WIN32_NATIVE.
10409
10410         * elhash.c (Fmake_hash_table): update doc string.
10411
10412         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10413         messages whilst in GC. This at least stops XEmacs crashing but has
10414         the potential for wierd behaviour.
10415
10416 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10417
10418         * config.h.in:
10419         Make existence of s&m files optional.
10420
10421         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10422         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10423         * s/gnu.h: Remove HAVE_GETLOADAVG.
10424         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10425         * s/sol2.h: Remove HAVE_GETLOADAVG.
10426         * lisp.h: Remove getloadavg() declaration.
10427         * fns.c:
10428         Include <sys/loadavg.h> if available.
10429         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10430         * config.h.in:  Group together getloadavg()-related macros.
10431         Use only configure-time tests to detect getloadavg().
10432
10433 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10434
10435         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10436
10437 2000-07-25  Andy Piper  <andy@xemacs.org>
10438
10439         * syswindows.h: add tchar.h for native builds.
10440
10441         * frame.c (syms_of_frame): remove set-glyph-image.
10442
10443         * general-slots.h: add Qset_glyph_image.
10444
10445         * glyphs-widget.c (layout_update): add domain arg to
10446         set-glyph-image.
10447         (syms_of_glyphs_widget): remove set-glyph-image.
10448
10449 2000-07-23  Ben Wing  <ben@xemacs.org>
10450
10451         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10452         Vpopup_frame_list.
10453
10454 2000-07-22  Andy Piper  <andy@xemacs.org>
10455
10456         * symsinit.h: add syms_of_win32().
10457
10458         * gui-msw.c (syms_of_gui_mswindows): remove
10459         Fmswindows_shell_execute.
10460         (Fmswindows_shell_execute): moved to win32.c.
10461
10462         * emacs.c (main_1): add syms_of_win32 ().
10463
10464         * win32.c (init_potentially_nonexistent_functions): rewrite in
10465         compiler-friendly terms.
10466         (Fmswindows_shell_execute): move here from gui-msw.c.
10467         (syms_of_win32): new.
10468
10469         * device-msw.c (Fmswindows_printer_list): clean up args to
10470         EnumPrinters.
10471         Don't include tchar under cygwin or mingw.
10472         (msprinter_default_printer): make cygwin-friendly.
10473
10474 2000-07-21  Andy Piper  <andy@xemacs.org>
10475
10476         * glyphs-widget.c (image_instantiator_tree_view): use tab
10477         control's update function.
10478         (layout_property): new function. Retrieve items.
10479
10480         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10481         function. Re-populate the tree view from the pending items.
10482
10483         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10484         is designated the parent if the domain is an image instance. This
10485         is needed so that dirtiness can be cascade up the hierarchy and
10486         thus for layout children to be redisplayed correctly.
10487         (allocate_image_instance): rename glyph -> parent.
10488
10489         * redisplay.h: change redisplay_output_layout signature.
10490
10491         * redisplay-msw.c (mswindows_output_display_block): use domain
10492         arg.
10493
10494         * redisplay-x.c (x_output_display_block): use domain arg.
10495
10496 2000-07-10  Andy Piper  <andy@xemacs.org>
10497
10498         * window.c (Fset_window_configuration): add comment.
10499
10500         * redisplay-output.c (compare_runes):
10501         (redisplay_output_subwindow): redisplay rather than update subwindow.
10502         (redisplay_output_layout): ditto.
10503
10504         * redisplay-msw.c (mswindows_frame_output_end):
10505         (mswindows_frame_output_end): make defer window pos optional.
10506
10507         * lisp.h: add Flast.
10508
10509         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10510         normalize method. Change update method to be for changed
10511         instantiators. Add redisplay method. Change signature of layout
10512         method.
10513         (struct Lisp_Image_Instance): add instantiator.
10514         (IMAGE_INSTANCE_INSTANTIATOR): new.
10515         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10516         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10517         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10518
10519         * glyphs.c:
10520         (find_instantiator_differences): new function.
10521         (Fset_instantiator_property): new convenience function.
10522         (check_image_instance_structure): strictly check for vector
10523         instantiators.
10524         (normalize_image_instantiator): make non-static.
10525         (instantiate_image_instantiator): pass on dest_mask and use new
10526         signatures for image_instance_layout and friends.
10527         (mark_image_instance): mark the instantiator. Mark the subwindow
10528         face not the widget face.
10529         (image_instance_equal): add instantiator.
10530         (image_instance_hash): ditto.
10531         (allocate_image_instance): ditto.
10532         (Fset_image_instance_property): removed.
10533         (Fimage_instance_file_name): ditto.
10534         (Fcolorize_image_instance): ditto.
10535         (image_instance_layout): add offsets to be set.
10536         (update_image_instance): new function. update an image instance
10537         from its changed instantiator.
10538         (inherit_normalize): add dest_mask.
10539         (xbm_normalize): ditto.
10540         (xface_normalize): ditto.
10541         (xpm_normalize): ditto.
10542         (text_update): set_property -> update.
10543         (image_instantiate): use the glyph identity as a hash key, not the
10544         instantiator.
10545         (glyph_width): use new image_instance_layout signature.
10546         (glyph_ascent): ditto.
10547         (glyph_descent): ditto.
10548         (glyph_height): ditto.
10549         (glyph_query_geometry): ressurrect.
10550         (glyph_layout): ditto.
10551         (redisplay_subwindow): update -> redisplay.
10552         (syms_of_glyphs): add Fset_instantiator_property.
10553         (image_instantiator_format_create): set_property -> update.
10554
10555         * glyphs-x.c:
10556         (autodetect_normalize): add dest_maks to signature.
10557         (x_redisplay_subwindow): update -> redisplay.
10558         (x_redisplay_widget): ditto.
10559         (x_button_redisplay): ditto.
10560         (x_progress_gauge_redisplay): ditto.
10561         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10562         stacking order.
10563         (console_type_create_glyphs_x): update -> redisplay.
10564         (image_instantiator_format_create_glyphs_x): ditto.
10565
10566         * glyphs-widget.c:
10567         (check_valid_instantiator): disallow glyphs in the instantiator,
10568         they must now be vectors.
10569         (check_valid_instantiator_list): ditto.
10570         (glyph_instantiator_to_glyph): use internal symbol rather than
10571         intern.
10572         (widget_update): renamed from widget_set_property. Call cascaded
10573         update methods.
10574         (redisplay_widget): renamed from update_widget.
10575         (widget_layout): image_instance_layout now takes position as well
10576         as size.
10577         (widget_normalize): ditto.
10578         (widget_instantiate): ditto.
10579         (tab_control_query_geometry) ditto.:
10580         (tab_control_update): renamed from tab_control_set_property.
10581         (progress_gauge_update): set_property -> update.
10582         (layout_normalize): rewrite so that child instantiators are
10583         normalized also.
10584         (layout_update): new function. Create glyphs from the normalized
10585         children and cope with any other layout keywords. We do not
10586         instantiate children here that will be take care of by
10587         redisplay_output_layout.
10588         (layout_instantiate): call layout_update and not much else.
10589         (layout_post_instantiate): not sure whether this is needed
10590         anymore.
10591         (layout_query_geometry): query glyph geometry rather than
10592         image_instance geometry.
10593         (layout_layout): set offsets from pass in parameters. Use glyph
10594         geometry and layout functions rather than image instance ones.
10595         (native_layout_layout): ditto.
10596         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10597         (image_instantiator_widget): set_property -> update.
10598         (image_instantiator_buttons): ditto.
10599         (image_instantiator_progress_guage): ditto.
10600         (image_instantiator_tab_control): ditto.
10601         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10602         (image_instantiator_layout): add update method.
10603
10604         * glyphs-msw.c (bmp_normalize):
10605         (mswindows_resource_normalize): add dest_mask so that it can be
10606         proprogated by layout_normalize.
10607         (begin_defer_window_pos): make optional because it may not be the
10608         right thing to do and it introduces differences with X.
10609         (mswindows_unmap_subwindow): ditto.
10610         (mswindows_map_subwindow): ditto.
10611         (mswindows_redisplay_subwindow): renamed from
10612         mswindows_update_subwindow.
10613         (mswindows_redisplay_widget): ditto.
10614         (mswindows_button_redisplay): renamed from
10615         mswindows_button_update. Update is now what the instantiation
10616         function does for a changed instantiator.
10617         (mswindows_progress_gauge_instantiate): set the progress value
10618         here if appropriate.
10619         (mswindows_tab_control_redisplay): cope with re-ordering of the
10620         members of the tab widget by simply selecting the new top
10621         widget. This makes things appear ok if you click on a tab.
10622         (mswindows_combo_box_instantiate): image_instance_layout now takes
10623         position as well as size.
10624         (mswindows_progress_gauge_redisplay): renamed from
10625         mswindows_progress_gauge_update.
10626         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10627         (image_instantiator_format_create_glyphs_mswindows): ditto.
10628
10629         * glyphs-eimage.c (jpeg_normalize):
10630         (gif_normalize):
10631         (png_normalize):
10632         (tiff_normalize): add dest_mask so that it can be proprogated by
10633         layout_normalize.
10634
10635         * elhash.c:
10636         (print_hash_table):
10637         (hash_table_weakness_validate):
10638         (decode_hash_table_weakness):
10639         (Fhash_table_weakness):
10640         (Fhash_table_type):
10641         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10642
10643         * console.h (struct console_methods): move update_* to
10644         redisplay_*.
10645
10646 2000-07-20  Ben Wing  <ben@xemacs.org>
10647
10648         * *.[ch] (XSETOBJ): remove unused middle argument.
10649         lisp-disunion.h: correct wrap_object() to one argument.
10650
10651 2000-07-15  Ben Wing  <ben@xemacs.org>
10652
10653         * s/cygwin32.h:
10654         * s/cygwin32.h (CYGWIN_CONV_PATH):
10655         Add missing logb prototype for v1.1.
10656         Use post-b20 names and alias to pre-b20 names when pre-b20.
10657
10658         * s/windowsnt.h: [5].
10659
10660 2000-07-15  Ben Wing  <ben@xemacs.org>
10661
10662         * Makefile.in.in (x_objs):
10663         * Makefile.in.in (sheap_objs):
10664         * Makefile.in.in (objs):
10665         added win32.o, cosmetic cleanups.
10666
10667         * alloc.c (Fmake_byte_code):
10668         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10669         etc. macros which declare their own args now.
10670
10671         * alloc.c (syms_of_alloc):
10672         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10673
10674         * buffer.c:
10675         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10676
10677         * buffer.c (Fget_file_buffer):
10678         Fixed GCPRO problem.
10679
10680         * buffer.c (get_truename_buffer):
10681         Fixed comment about GC checking.
10682
10683         * buffer.c (syms_of_buffer):
10684         Undeclared those dedicated frame funs.
10685         [2].
10686
10687         * buffer.h:
10688         Define convenience macros for internal/external conversions.
10689         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10690         and Qenvironment_variable_encoding for cleaner code.
10691
10692         * bufslots.h:
10693         Remove dedicated-frame; in lisp.
10694
10695         * bytecode.c (funcall_compiled_function):
10696         [1].
10697
10698         * bytecode.c (syms_of_bytecode):
10699         [2].
10700
10701         * console-msw.c:
10702         * console-msw.c (mswindows_show_console): Rewrote.
10703
10704         * console-msw.c (Fmswindows_debugging_output): New.
10705         Sends to OutputDebugString (special MSWin debugger interface).
10706
10707         * console-msw.c (Fmswindows_message_box):
10708         Fixed stupid bugs so it works when called from kill-emacs.
10709
10710         * console-msw.c (syms_of_console_mswindows):
10711         Declare Fmswindows_debugging_output.
10712
10713         * console-msw.h:
10714         New MSWin prototypes.
10715
10716         * console-msw.h (struct mswindows_frame):
10717         New entry last-click-mods for improved button-modifier support.
10718
10719         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10720         New struct entry `popup' with corresponding accessor.
10721
10722         * console-x.c:
10723         * console-x.c (split_up_display_spec):
10724         * console-x.c (get_display_arg_connection):
10725         * console-x.c (x_semi_canonicalize_console_connection):
10726         * console-x.c (x_canonicalize_device_connection):
10727         [[[6]]]: Change char to more specific type.
10728         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10729
10730         * console-x.c (x_semi_canonicalize_console_connection):
10731         * console-x.c (x_canonicalize_device_connection):
10732         [[[9]]]: Fix up error signalling to use new structured error system.
10733
10734         * console-x.h:
10735         [[[4]]]: Define codesys aliases:
10736         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10737         Qx_color_name_encoding, Qx_display_name_encoding.
10738
10739         * console.h (struct console_methods):
10740         New method make_dialog_box_internal supersedes older
10741         popup_dialog_box method.
10742
10743         * data.c:
10744         Define many new errors, part of new structured errors.
10745
10746         * data.c (init_errors_once_early):
10747         * data.c (syms_of_data):
10748         [2].
10749
10750         * device-msw.c (mswindows_init_device):
10751         [[[5]]]: Cleanup to support NT 3.51.
10752
10753         * device-msw.c (decode_devmode): Cleanup.
10754
10755         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10756         * device-msw.c (mswindows_handle_print_dialog_box):
10757         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10758         * device-msw.c (syms_of_device_mswindows):
10759         Delete the dialog box primitives recently introduced by Kirill and
10760         instead interface to general dialog box interface.
10761
10762         * device-x.c:
10763         * device-x.c (compute_x_app_name):
10764         * device-x.c (x_init_device):
10765         * device-x.c (Fx_valid_keysym_name_p):
10766         * device-x.c (Fx_set_font_path):
10767         [6].
10768         [7].
10769
10770         * device.h (wrap_device): New.
10771         First of its kind; meant to replace XSETDEVICE.
10772
10773         * dialog-msw.c: Many file-dialog symbols.
10774
10775         * dialog-msw.c (mswindows_register_popup_frame): New.
10776         * dialog-msw.c (mswindows_is_dialog_msg): New.
10777         For supporting kbd traversal in dialog boxes.
10778
10779         * dialog-msw.c (dialog_proc):
10780         Support hitting ESC in dialogs.
10781
10782         * dialog-msw.c (struct):
10783         Common dialog box errors.
10784
10785         * dialog-msw.c (handle_file_dialog_box): New.
10786         Add file dialog code.
10787
10788         * dialog-msw.c (handle_question_dialog_box):
10789         Redo existing code to support new question dialog syntax.
10790
10791         * dialog-msw.c (console_type_create_dialog_mswindows):
10792         We support new dialog console method.
10793
10794         * dialog-msw.c (syms_of_dialog_mswindows):
10795         * dialog-msw.c (vars_of_dialog_mswindows):
10796         New file dialog symbols, vars.
10797
10798         * dialog-x.c:
10799         * dialog-x.c (maybe_run_dbox_text_callback):
10800         * dialog-x.c (dbox_descriptor_to_widget_value):
10801         * dialog-x.c (x_make_dialog_box_internal):
10802         * dialog-x.c (console_type_create_dialog_x):
10803         Mule-ize entire file.
10804         Redo to support question dialog syntax.
10805         [6].
10806
10807         * dialog.c:
10808         * dialog.c (Fmake_dialog_box_internal):
10809         * dialog.c (syms_of_dialog):
10810         Kill old popup-dialog-box, replace with new primitive.
10811         Just call device method or signal error.
10812
10813         * eldap.c (Fldap_open):
10814         * eldap.c (Fldap_search_basic):
10815         * eldap.c (Fldap_add):
10816         * eldap.c (Fldap_modify):
10817         [1].
10818         [7].
10819
10820         * emacs.c:
10821         * emacs.c (make_arg_list_1):
10822         * emacs.c (make_arg_list):
10823         Mule-ize call to dll_init().
10824         [6].
10825         [8].
10826
10827         * emacs.c (make_argc_argv):
10828         * emacs.c (free_argc_argv):
10829         * emacs.c (init_cmdargs):
10830         * emacs.c (main_1):
10831         * emacs.c (Fkill_emacs):
10832         * emacs.c (Fdump_emacs):
10833         Update comments about what can be used in syms_* etc.
10834         Call init_win32() when necessary.
10835         Fix up MS Win dialog box in kill-buffer to actually work right.
10836         [7].
10837
10838         * eval.c:
10839         * eval.c (For):
10840         * eval.c (Fand):
10841         * eval.c (Fprogn):
10842         * eval.c (Fprog1):
10843         * eval.c (Fprog2):
10844         * eval.c (FletX):
10845         * eval.c (Flet):
10846         * eval.c (condition_case_3):
10847         * eval.c (Feval):
10848         * eval.c (function_argcount):
10849         * eval.c (funcall_lambda):
10850         [1].
10851
10852         * eval.c (type_error): New.
10853         * eval.c (maybe_type_error): New.
10854         * eval.c (continuable_type_error): New.
10855         * eval.c (maybe_continuable_type_error): New.
10856         * eval.c (type_error_with_frob): New.
10857         * eval.c (maybe_type_error_with_frob): New.
10858         * eval.c (continuable_type_error_with_frob): New.
10859         * eval.c (maybe_continuable_type_error_with_frob): New.
10860         New functions for use with structured errors.
10861
10862         * event-Xt.c:
10863         * event-Xt.c (x_event_to_emacs_event):
10864         Buttons are now modifiers too.
10865
10866         * event-Xt.c (emacs_Xt_current_event_timestamp):
10867         Implement new event method.
10868         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10869
10870         * event-msw.c:
10871         * event-msw.c (ntpipe_shove_writer): [5].
10872         * event-msw.c (mswindows_enqueue_mouse_button_event):
10873         * event-msw.c (mswindows_drain_windows_queue):
10874         * event-msw.c (mswindows_wnd_proc): [7].
10875         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10876         * event-msw.c (mswindows_modifier_state):
10877         Throughout: support new button modifiers.
10878
10879         * event-msw.c (emacs_mswindows_current_event_timestamp):
10880         Implement new event method.
10881         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10882
10883         * event-stream.c:
10884         * event-stream.c (event_stream_current_event_timestamp): New.
10885         * event-stream.c (maybe_kbd_translate): New functionality.
10886         * event-stream.c (vars_of_event_stream):
10887         Document new kbd-translate-table functionality.
10888
10889         * event-stream.c (Fcurrent_event_timestamp): New.
10890         New primitive for use in fabricated events.
10891         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10892
10893         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10894
10895         * events.c:
10896         * events.c (Fmake_event):
10897         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10898         [1].
10899         [9].
10900
10901         * events.c (format_event_object): fix gcc warnings.
10902
10903         * events.c (Fevent_timestamp): Document new primitives.
10904
10905         * events.c (TIMESTAMP_HALFSPACE): New.
10906
10907         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10908         comparing timestamps correctly (half-space algorithm).
10909
10910         * events.c (Fevent_modifier_bits): Doc fix.
10911
10912         * events.c (Fevent_modifiers): Major doc addition.
10913         * events.c (event_x_y_pixel_internal): Typo fix.
10914         * events.c (syms_of_events): Declare new primitives.
10915
10916         * events.h:
10917         Update long comment for button modifiers, timestamps.
10918
10919         * events.h (struct event_stream):
10920         New current_event_timestamp method.
10921
10922         * extents.c:
10923         * extents.c (extent_in_region_p):
10924         * extents.c (decode_extent):
10925         * extents.c (Fset_extent_parent):
10926         * extents.c (decode_map_extents_flags):
10927         Fix gcc warnings.
10928         [9].
10929
10930         * extents.c (struct extent_at_arg):
10931         * extents.c (decode_extent_at_flag):
10932         * extents.c (extent_at_mapper):
10933         * extents.c (extent_at_bytind):
10934         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10935         * extents.c (Fextents_at): New primitive. [9].
10936         * extents.c (symbol_to_glyph_layout): [9].
10937         Support new primitive `extents-at'.
10938
10939
10940         * extents.c (get_text_property_bytind):
10941         extent_at_bytind has another arg.
10942         [9].
10943
10944         * extents.c (syms_of_extents): New primitive.
10945
10946         * file-coding.c (Fmake_coding_system): [1].
10947         * file-coding.c (subsidiary_coding_system): fix gcc warning
10948         * file-coding.c (syms_of_file_coding): [2].
10949
10950         * fileio.c (Fexpand_file_name):
10951         * fileio.c (Fsysnetunam):
10952         * fileio.c (Ffile_exists_p):
10953         * fileio.c (Ffile_executable_p):
10954         * fileio.c (Fverify_visited_file_modtime):
10955         Clean up GCPROing.
10956
10957         * fileio.c (syms_of_fileio): [2].
10958
10959         * filelock.c (lock_file_1):
10960         * filelock.c (current_lock_owner):
10961         * filelock.c (lock_if_free):
10962         * filelock.c (lock_file):
10963         * filelock.c (unlock_file):
10964         Clean up GCPROing.
10965
10966         * fns.c (concat): Fix gcc warning.
10967
10968         * fns.c (Fmember):
10969         * fns.c (Fold_member):
10970         * fns.c (Fmemq):
10971         * fns.c (Fold_memq):
10972         * fns.c (memq_no_quit):
10973         * fns.c (Fassoc):
10974         * fns.c (Fold_assoc):
10975         * fns.c (Fassq):
10976         * fns.c (Fold_assq):
10977         * fns.c (assq_no_quit):
10978         * fns.c (Frassoc):
10979         * fns.c (Fold_rassoc):
10980         * fns.c (Frassq):
10981         * fns.c (Fold_rassq):
10982         * fns.c (rassq_no_quit):
10983         * fns.c (Fdelete):
10984         * fns.c (Fold_delete):
10985         * fns.c (Fdelq):
10986         * fns.c (Fold_delq):
10987         * fns.c (delq_no_quit):
10988         * fns.c (Fremassoc):
10989         * fns.c (Fremassq):
10990         * fns.c (remassq_no_quit):
10991         * fns.c (Fremrassoc):
10992         * fns.c (Fremrassq):
10993         * fns.c (remrassq_no_quit):
10994         * fns.c (Freverse):
10995         * fns.c (mapcar1):
10996         [1].
10997
10998         * frame-msw.c (mswindows_init_frame_1):
10999         * frame-msw.c (mswindows_delete_frame):
11000         Register popups with dialog code so keyboard traversing works.
11001
11002         * frame-tty.c (tty_raise_frame_no_select): [1].
11003
11004         * frame-x.c:
11005         * frame-x.c (x_set_frame_text_value):
11006         * frame-x.c (x_set_frame_properties):
11007         * frame-x.c (x_create_widgets):
11008         [7].
11009
11010         * frame.c:
11011         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11012
11013         * frame.h (wrap_frame): New.
11014         Macro like wrap_device.
11015
11016         * general.c:
11017         * general.c (SYMBOL):
11018         * general.c (syms_of_general):
11019         Major reorg.  This is now just a wrapper and symbols themselves
11020         are listed in general-slots.h.
11021
11022         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11023         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11024
11025         * glyphs-msw.c (mswindows_native_layout_instantiate):
11026         Add DS_CONTROL so keyboard traversal will work.
11027
11028         * glyphs-widget.c:
11029         * glyphs-widget.c (syms_of_glyphs_widget):
11030         Move some symbols to general-slots.h.
11031
11032         * glyphs-x.c:
11033         * glyphs-x.c (xbm_instantiate_1):
11034         * glyphs-x.c (x_xbm_instantiate):
11035         * glyphs-x.c (x_xface_instantiate):
11036         * glyphs-x.c (autodetect_instantiate):
11037         * glyphs-x.c (cursor_font_instantiate):
11038         * glyphs-x.c (x_update_widget):
11039         * glyphs-x.c (x_widget_instantiate):
11040         * glyphs.c (bitmap_to_lisp_data):
11041         * glyphs.c (pixmap_to_lisp_data):
11042         [7].
11043
11044         * glyphs.c (syms_of_glyphs):
11045         [2].
11046
11047         * gui-x.c:
11048         * gui-x.c (print_widget_value):
11049         * gui-x.c (menu_separator_style_and_to_external):
11050         * gui-x.c (add_accel_and_to_external):
11051         * gui-x.c (button_item_to_widget_value):
11052         * gui-x.c (gui_items_to_widget_values_1):
11053         * gui-x.c (gui_items_to_widget_values):
11054         * gui-x.c (syms_of_gui_x):
11055         * gui-x.c (vars_of_gui_x):
11056         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11057         [9].
11058
11059         * gui-x.h:
11060         Muleize, prototype changes matching gui-x.c.
11061
11062         * gui.c:
11063         * gui.c (separator_string_p):
11064         * gui.c (gui_item_add_keyval_pair):
11065         * gui.c (make_gui_item_from_keywords_internal):
11066         * gui.c (signal_too_long_error):
11067         * gui.c (parse_gui_item_tree_item):
11068         * gui.c (syms_of_gui):
11069         * gui.c (vars_of_gui):
11070         * gui.h:
11071         menu-no-selection-hook moved here (used by MSWin).
11072         Move some symbols to general-slots.h.
11073         [6].
11074         [9].
11075
11076         * insdel.c (get_buffer_pos_char):
11077         * insdel.c (get_buffer_range_char):
11078         Add GC comments.
11079
11080         * keymap.c (keymap_lookup_directly):
11081         * keymap.c (keymap_store):
11082         * keymap.c (ensure_meta_prefix_char_keymapp):
11083         * keymap.c (describe_map):
11084         * keymap.h:
11085         Support new button modifiers.
11086
11087         * lisp-disunion.h (wrap_object):
11088         * lisp-disunion.h (XSETOBJ):
11089         Rename make_obj to wrap_object.
11090
11091         * lisp-union.h:
11092         * lisp-union.h (make_int):
11093         * lisp-union.h (make_char):
11094         Support wrap_object.
11095
11096         * lisp.h:
11097         * lisp.h (LIST_LOOP):
11098         * lisp.h (EXTERNAL_LIST_LOOP):
11099         * lisp.h (LIST_LOOP_2):
11100         * lisp.h (EXTERNAL_LIST_LOOP_1):
11101         * lisp.h (EXTERNAL_LIST_LOOP_2):
11102         * lisp.h (EXTERNAL_LIST_LOOP_3):
11103         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11104         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11105         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11106         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11107         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11108         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11109         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11110         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11111         * lisp.h (struct Lisp_Symbol):
11112         * lisp.h (maybe_continuable_error_with_frob):
11113         Fix up section comments.
11114         Add new types for char to indicate usage.
11115         Delete symbols auto-generated from general-slots.h.
11116         Add prototypes for structured error functions.
11117         Add long comments describing looping macros and change interface
11118         so that lvalues are automatically declared.
11119         Add NO_DECLARE macro in case callers want to declare lvalues
11120         themselves.
11121
11122         * lread.c (read_syntax_error):
11123         * lread.c (continuable_read_syntax_error):
11124         * lread.c (read_structure):
11125         * lread.c (sequence_reader):
11126         * lread.c (read_list_conser):
11127         * lread.c (read_compiled_function):
11128         Rename syntax_error and continuable_syntax_error to avoid clash
11129         with same-named structured error functions.
11130
11131         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11132         * menubar-msw.c (populate_menu_add_item):
11133         * menubar-msw.c (populate_or_checksum_helper):
11134         [5].
11135         [9].
11136
11137         * menubar-x.c:
11138         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11139         Mule-ize whole file.
11140
11141         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11142
11143         * mule-charset.c (Fmake_charset):
11144         * mule-wnnfns.c (Fwnn_set_param):
11145         [1].
11146
11147         * ntproc.c (create_child):
11148         * ntproc.c (Fwin32_set_current_locale):
11149         Add comments portending doom.
11150
11151         * objects-msw.c:
11152         * objects-msw.c (old_font_enum_callback_2):
11153         * objects-msw.c (font_enum_callback_1):
11154         * objects-msw.c (mswindows_enumerate_fonts):
11155         [5].
11156
11157         * objects-x.c:
11158         * objects-x.c (allocate_nearest_color):
11159         * objects-x.c (x_parse_nearest_color):
11160         * objects-x.c (x_initialize_color_instance):
11161         * objects-x.c (x_print_color_instance):
11162         * objects-x.c (x_finalize_color_instance):
11163         * objects-x.c (x_valid_color_name_p):
11164         * objects-x.c (x_initialize_font_instance):
11165         * objects-x.c (x_print_font_instance):
11166         * objects-x.c (valid_x_font_name_p):
11167         * objects-x.c (truename_via_FONT_prop):
11168         * objects-x.c (truename_via_random_props):
11169         * objects-x.c (truename_via_XListFonts):
11170         * objects-x.c (x_font_truename):
11171         * objects-x.c (x_font_instance_truename):
11172         * objects-x.c (x_font_instance_properties):
11173         * objects-x.c (x_list_fonts):
11174         * objects-x.c (x_find_charset_font):
11175         Mule-ize entire file.
11176         [7].
11177
11178         * objects-x.h:
11179         Mule-verify.
11180
11181         * print.c:
11182         * print.c (std_handle_out_external):
11183         * print.c (debug_print_no_newline):
11184         * print.c (syms_of_print):
11185         Output to all debugger kinds in debug-print.
11186         Fix console-output code under MSWin to actually work.
11187
11188         * process-nt.c (send_signal):
11189         * process-nt.c (nt_create_process):
11190         Use newer Unicode macros.
11191
11192         * process-unix.c (unix_create_process):
11193         * process-unix.c (unix_canonicalize_host_name):
11194         * process-unix.c (unix_open_network_stream):
11195         [7].
11196
11197         * scrollbar-x.c:
11198         Mule-verify.
11199
11200         * search.c (syms_of_search):
11201         [2].
11202
11203         * select-msw.c (mswindows_destroy_selection):
11204         Use LIST_LOOP_2.
11205
11206         * select-x.c (symbol_to_x_atom):
11207         [7].
11208
11209         * select.c (syms_of_select):
11210         [2].
11211
11212         * sound.c (Fplay_sound_file):
11213         [7].
11214
11215         * specifier.c:
11216         * specifier.c (decode_specifier_type):
11217         * specifier.c (Fvalid_specifier_locale_type_p):
11218         * specifier.c (check_valid_locale_or_locale_type):
11219         * specifier.c (decode_locale):
11220         * specifier.c (decode_locale_type):
11221         * specifier.c (decode_locale_list):
11222         * specifier.c (check_valid_domain):
11223         * specifier.c (decode_specifier_tag_set):
11224         * specifier.c (Fcanonicalize_tag_set):
11225         * specifier.c (Fdefine_specifier_tag):
11226         * specifier.c (Fspecifier_tag_predicate):
11227         * specifier.c (check_valid_inst_list):
11228         * specifier.c (check_valid_spec_list):
11229         * specifier.c (decode_how_to_add_specification):
11230         * specifier.c (check_modifiable_specifier):
11231         * specifier.c (specifier_add_spec):
11232         * specifier.c (boolean_validate):
11233         * specifier.c (display_table_validate):
11234         [9].
11235
11236         * specifier.c (syms_of_specifier):
11237         Move some symbols to general-slots.h.
11238         [2].
11239
11240         * symbols.c:
11241         * symbols.c (Fmapatoms):
11242         * symbols.c (Fapropos_internal):
11243         Add GCPROs.
11244
11245         * symbols.c (set_default_buffer_slot_variable):
11246         * symbols.c (set_default_console_slot_variable):
11247         [1].
11248
11249         * symbols.c (defsymbol_massage_name_1):
11250         * symbols.c (defkeyword_massage_name):
11251         * symbols.c (deferror_1):
11252         * symbols.c (deferror):
11253         * symbols.c (deferror_massage_name_and_message):
11254         * symeval.h:
11255         * symeval.h (DEFSYMBOL):
11256         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11257
11258         * symbols.c (syms_of_symbols):
11259         [2].
11260
11261         * symsinit.h:
11262         * symsinit.h (init_win32): New.
11263         Also new is syms_of_dialog_mswindows.
11264
11265         * syswindows.h:
11266         Add new Unicode macros, missing Cygwin wide-char functions,
11267         convenience conversion macros for Qmswindows_tstr, macros for
11268         encapsulating required MSWin <-> Cygwin filename conversions,
11269         prototype for dynamically-extracted (not in NT 3.51) functions.
11270
11271         * toolbar-x.c:
11272         Mule-verify.
11273
11274         * tooltalk.c (Fadd_tooltalk_message_arg):
11275         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11276         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11277         [7].
11278
11279         * tooltalk.c (syms_of_tooltalk):
11280         [2].
11281
11282         * unexnt.c:
11283         * unexnt.c (unexec):
11284         Fix up headers, declaration of unexec() to be more standard.
11285
11286 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11287
11288         * offix.h: Revert change to guard macros - they're used in offix.c!
11289
11290 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11291
11292         * lisp.h: Defsubred Fdelete.
11293
11294         * console-msw.h:  (msprinter_default_printer): Added.
11295
11296         * console-msw.c (msprinter_canonicalize_console_connection):
11297         (msprinter_canonicalize_device_connection): Added.
11298
11299         * device-msw.c (msprinter_default_printer):
11300         (Fmswingows_get_default_printer):
11301         (signal_enum_priner_error):
11302         (Fmswingows_printer_list): Added.
11303
11304 2000-07-19  Martin Buchholz <martin@xemacs.org>
11305
11306         * XEmacs 21.2.35 is released.
11307
11308 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11309
11310         * select-x.c (x_handle_selection_request):
11311         Text selected in xemacs and pasted into xterm failed to appear.
11312         Spelling fixes and cosmetic changes.
11313
11314 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11315
11316         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11317         XEmacs frame (fix for doubling chars in dialog boxes).
11318
11319 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11320
11321         * select.c (select_convert_in, select_convert_out):
11322         Don't call intern() every time.
11323
11324         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11325         * select.c (vars_of_select): Initialise them.
11326
11327 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11328
11329         * select.c (selection-coercible-types): New.
11330
11331         * select.c (own-selection-internal):
11332         * select.c (get-selection-internal):
11333         MULE bug fix - these should default to COMPOUND_TEXT and not
11334         STRING for MULE. I think.
11335
11336         * select.c (select_convert_out): Use selection-coercible-types
11337         to find types that we can attempt to perform coercions on.
11338
11339 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11340
11341         * mule-wnnfns.c:
11342         * mule-canna.c:
11343         Add coding: cookie to identify encoding.
11344
11345         * mule-canna.c (CANNA_mode_keys): make static.
11346         Use proper prototypes, even for functions of no arguments.
11347         Remove external prototype for Fding().
11348
11349         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11350
11351         * select.c (syms_of_select): Add missing DEFSUBR.
11352
11353 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11354
11355         * select.c (get_selection_internal, own_selection_internal):
11356         Make the type default to STRING, rather than placing a nil type
11357         into Vselection_alist.
11358
11359 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11360
11361         * gpmevent.c (tty_selection_exists_p):
11362         * gpmevent.c (tty_own_selection):
11363         Updated parameter lists.
11364
11365 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11366
11367         * select.h (selection-alist): Removed declaration.
11368
11369         * select.h (get_local_selection):
11370         * select.c (get_local_selection):
11371         Made static.
11372
11373         * select.h (convert_selection): Removed declaration.
11374         * select.c (convert_selection): Removed.
11375         This function belongs in Lisp.
11376
11377         * select.h (select_convert_in): Declare.
11378         * select.h (select_convert_out): Declare.
11379         * select.c (select_convert_in): New.
11380         * select.c (select_convert_out): New.
11381         New conversion functions for other files to call.
11382
11383         * select.h (select_notify_buffer_kill): Declare.
11384         * select.c (select_notify_buffer_kill): New.
11385         New functions that get called from kill-buffer.
11386
11387         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11388         X-specific lisp code.
11389
11390         * select.h: Declare some of the lisp-visible functions for
11391         external use.
11392
11393         * select.c (clean_local_selection_data): Removed. This was
11394         a disgusting function, and previously should have been in
11395         select-x.c in any case. The functionality is now provided
11396         in select-convert-from-integer (select.el).
11397
11398         * select.c (available-selection-types): Fixed stupidity where
11399         INTEGER and ATOM got added twice. Also add STRING when we see an
11400         extent.
11401
11402         * select.c (get-selection-internal): Removed symbol stripping. No
11403         longer causes conversion when data comes from the internal cache.
11404
11405         * select.c (syms_of_select): Added new functions.
11406
11407         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11408         error checking - previously this called abort!
11409
11410         * select-x.c (x_own_selection): Changed comment.
11411
11412         * select-x.c (x_handle_selection_request): Use select_convert_out.
11413         Don't mess with selection-alist; it's an internal variable of select.c.
11414
11415         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11416
11417         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11418         rather than messing with selection-alist.
11419
11420         * select-msw.c (mswindows_get_foreign_selection):
11421         Use TO_INTERNAL_FORMAT rather than hacking.
11422
11423 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11424
11425         * process-unix.c (unix_open_multicast_group):
11426         (unix_open_multicast_group): Remove useless casts.
11427
11428 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11429
11430         * sound.c (Fplay_sound): Fix `unused variable' warning.
11431
11432         * emacs.c (main): Use correct type for _environ on SCO5.
11433
11434 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11435
11436         * console.h (own_selection_method):
11437         * console.h (selection_exists_p_method):
11438         * console.h (available_selection_types_method): New.
11439         * console.h (register_selection_data_type_method): New.
11440         * console.h (selection_data_type_name): New.
11441
11442         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11443         function & alist to track GlobalAlloc()'d handles that need
11444         releasing when the clipboard data gets replaced or emptied.
11445
11446         * event-msw.c (mswindows_wnd_proc): Call it.
11447
11448         * lisp.h, general.c (Qappend): New symbol representing a
11449         `how-to-add' mode.
11450
11451         * select.c (own-selection-internal):
11452         * select.c (selection-exists-p):
11453         * select.c (available-selection-types): New.
11454         * select.c (register-selection-data-type): New.
11455         * select.c (selection-data-type-name): New.  New functions to deal
11456         with device-specific selection data formats.
11457         * select.c (selection-converter-out-alist): Renamed.
11458         * select.c (selection-converter-in-alist): New.
11459         * select.c (selection-appender-alist): New.  Added new alists.
11460         * select.c (syms_of_select, vars_of_select): Added new symbols &
11461         variables.
11462         * select.c (get_local_selection): Split.
11463         * select.c: Removed spurious type checking - selections may now be
11464         of any type, not just strings.
11465         * select.c (own-selection-internal):
11466
11467         * select.h, select.c (convert_selection): New. Created
11468         convert_selection() function based on get_local_selection().
11469         * select.h, select.c (QCF_*): New symbols representing mswindows
11470         clipboard formats.
11471         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11472         symbols representing `how-to-add' modes.
11473
11474         * select-msw.c (x_sym_p): New.
11475         * select-msw.c (symbol_to_ms_cf): New.
11476         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11477         symbols & clipboard formats. Can also handle string names.
11478         * select-msw.c (mswindows_own_selection):
11479         * select-msw.c (mswindows_selection_exists_p):
11480         Added `data-type' parameter. Use it.
11481         * select-msw.c (mswindows_available_selection_types): New.
11482         * select-msw.c (mswindows_register_selection_data_type): New.
11483         * select-msw.c (mswindows_selection_data_type_name): New.
11484         * select-msw.c (mswindows_own_selection):
11485         * select-msw.c (mswindows_get_foreign_selection):
11486         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11487         * select-msw.c (console_create_select_mswindows): Added new methods.
11488         * select-msw.c (mswindows_destroy_selection): New.
11489         * select-msw.c (Vhandle_alist): New list.
11490         * select-msw.c (mswindows_own_selection):
11491
11492         * select-x.c (x_own_selection):
11493         * select-x.c (x_selection_exists_p):
11494         * select-x.c: Added some comments about maybe using new
11495         functionality.
11496         * select-x.c (x_own_selection):
11497
11498         * specifier.c: Remove definition of Qappend (now in general.c)
11499         * specifier.c (syms_of_specifier): Remove Qappend.
11500
11501 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11502
11503         * config.h.in: Add socklen_t.
11504
11505         * s/decosf4-0.h: No special compiler flags needed or desired.
11506         In particular, undefine _BSD for DEC OSF 4.0.
11507
11508 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11509
11510         * redisplay-msw.c (msprinter_frame_output_end): Added.
11511         (console_type_create_redisplay_mswindows): Referred the above.
11512
11513         * frame.c (setup_frame_without_minibuffer): Do not create a
11514         default minibuffer frame on a printer device.
11515
11516         * frame-msw.c (apply_dc_geometry): Added.
11517         (msprinter_start_page):
11518         (msprinter_init_frame_3):
11519         (msprinter_eject_page): Use it.
11520
11521         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11522         and removed residual duplex and orientation properties.
11523
11524 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11525
11526         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11527
11528         * unexalpha.c: Remove system prototypes from C sources!
11529
11530 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11531
11532         * eval.c: Remove references to M-x edit-options in DEFUNs for
11533         `defvar' and `defconst'.
11534
11535 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11536
11537         * config.h.in: Remove SMART_INCLUDE hackery.
11538
11539         PostgreSQL hacking:
11540         * config.h.in: Don't use SMART_INCLUDE.
11541
11542         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11543         * inline.c: Simply #include "postgresql.h"
11544         * postgresql.c:
11545         - Don't use SMART_INCLUDE
11546         - Use simply "const".
11547         - Use standard doc string conventions.
11548         - Use correct type for result of PQstatus.
11549
11550 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11551
11552         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11553
11554         C++ compilation changes.
11555         * config.h.in (EXTERN_C): Define.
11556         * config.h.in (not): This is also a C++ keyword.
11557         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11558         * cm.c: Use EXTERN_C.
11559         * redisplay-tty.c: Use EXTERN_C.
11560         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11561
11562 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11563
11564         * general.c: Remove duplicate definition for Qfunction.
11565
11566 2000-07-08  Ben Wing  <ben@xemacs.org>
11567
11568         * device-msw.c (msprinter_init_device):
11569         * device-msw.c (sync_printer_with_devmode):
11570         * device-msw.c (handle_devmode_changes):
11571         * device-msw.c (print_dialog_worker):
11572         * device-msw.c (Fmsprinter_apply_settings):
11573         * device-msw.c (hash_devmode):
11574         * device-msw.c (Fmsprinter_settings_despecialize):
11575         use Qmswindows_tstr, not Qctext.
11576
11577         * vm-limit.c (check_memory_limits):
11578         avoid infinite loop printing warning messages.
11579
11580 2000-07-05  Craig Lanning  <lanning@scra.org>
11581
11582         * Makefile.in.in: Add support for including the Windows resources
11583         when building with the cygwin and mingw targets.
11584
11585         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11586         not set or not correct.
11587         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11588         (init_initial_directory): Don't try to use $PWD on the
11589         WIN32_NATIVE target.
11590
11591         * s\cygwin32.h:
11592         [[Add -mwindows to eliminate console window.]] not required --ben
11593         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11594         (MAIL_USE_POP): removed; now handled by configure.
11595
11596         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11597         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11598         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11599         (MAIL_USE_POP): removed; now handled by configure.
11600         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11601         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11602         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11603         constant string.
11604         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11605         up from <winsock.h> via systime.h.
11606         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11607         (getpagesize): from Dan Holmsand, added.
11608         Added #endif which was left dangling by Ben's mega patch; added
11609         comment to help prevent this in the future.
11610
11611         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11612
11613 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11614
11615         * console-msw.h (struct mswindows_device): Removed unnecessary
11616         cached device geometry values.
11617         Added update_tick and an accessor macro.
11618         (Lisp_Devmode): Added lrecord declaration.
11619         (struct msprinter_device): Contain devmode as a Lisp object.
11620         Added mswindows_get_selected_frame_hwnd();
11621
11622         * console.h (struct console_methods): Indentation nitpicking.
11623
11624         * device-msw.c (mswindows_init_device): Do not initialize geometry
11625         cache. Initialize update tick.
11626         (mswindows_device_system_metrics): Ask the device for its geometry.
11627         (global_free_2_maybe):
11628         (devmode_to_hglobal):
11629         (handle_printer_changes):
11630         (ensure_not_printing):
11631         (print_dialog_worker):
11632         (Fmsprinter_print_setup_dialog):
11633         (Fmsprinter_print_dialog):
11634         (plist_get_margin):
11635         (plist_set_margin):
11636         (Fmsprinter_page_setup_dialog): Added functions.
11637         (sync_printer_with_devmode):
11638         (handle_devmode_changes):
11639         (Fmsprinter_get_settings):
11640         (Fmsprinter_select_settings):
11641         (Fmsprinter_apply_settings):
11642         (allocate_devmode):
11643         (Fmsprinter_settings_copy):
11644         (Fmsprinter_settings_despecialize):
11645         (print_devmode):
11646         (finalize_devmode):
11647         (equal_devmode):
11648         (hash_devmode): Added functions
11649         (syms_of_device_mswindows): Init devmode lrecord class.
11650
11651         * device.h: Added an exfun for find-device.
11652
11653         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11654         geometry; although, recreate the device compatible DC.
11655
11656         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11657         (msprinter_init_frame_3):
11658         (msprinter_frame_property):
11659         (msprinter_internal_frame_property_p):
11660         (msprinter_frame_properties):
11661         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11662         print job properties (will move to device settings).
11663
11664         * lisp.h: Added symbols.
11665
11666         * general.c (syms_of_general): Declared them.
11667
11668         * hash.c (string_hash): Added.
11669
11670         * lrecord.h (lrecord_type): Added devmode lrecord type.
11671
11672 2000-07-02  Mike Sperber <mike@xemacs.org>
11673
11674         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11675         FreeBSD 4.0.
11676
11677 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11678
11679         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11680         integer.
11681
11682 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11683
11684         * data.c (Fstring_to_number): Don't recognize floating point if
11685         base is not 10.
11686
11687 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11688
11689         * glyphs-widget.c (tab_control_query_geometry):
11690         (widget_query_geometry):
11691         (button_query_geometry):
11692         * glyphs.c (text_query_geometry):
11693         Enforce type correctness.
11694
11695 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11696
11697         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11698         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11699
11700 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11701
11702         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11703         conflicts with gcc's fixincluded version of FOO.h.
11704
11705         * glyphs.h (image_instance_geometry): Remove trailing `,'
11706
11707 2000-06-08  Mike Alexander  <mta@arbortext.com>
11708
11709         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11710         (shove_thread): Don't write the same output twice
11711         (make_ntpipe_output_stream): Increase priority of shove thread
11712         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11713         chance to run
11714         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11715         it.
11716
11717 2000-06-12  Ben Wing  <ben@xemacs.org>
11718
11719         * s\mingw32.h (sigset):
11720         * s\windowsnt.h (sigset):
11721         rename msw_ to mswindows_ for consistency with general convention.
11722
11723 2000-06-12  Ben Wing  <ben@xemacs.org>
11724
11725         * console-msw.c:
11726         * console-msw.c (mswindows_get_console_hwnd):
11727         * console-msw.c (mswindows_ensure_console_allocated):
11728         * console-msw.c (mswindows_hide_console):
11729         * console-msw.c (mswindows_show_console):
11730         * console-msw.c (mswindows_ensure_console_buffered):
11731         * console-msw.c (mswindows_output_console_string):
11732         * console-msw.c (mswindows_windows9x_p):
11733         * console-msw.h:
11734         * device-msw.c (mswindows_get_workspace_coords):
11735         * device-msw.c (mswindows_device_system_metrics):
11736         * dialog-msw.c (mswindows_popup_dialog_box):
11737         * event-msw.c (mswindows_wnd_proc):
11738         * frame-msw.c (mswindows_size_frame_internal):
11739         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11740         * menubar-msw.c (displayable_menu_item):
11741         * menubar-msw.c (mswindows_char_is_accelerator):
11742         * nt.c:
11743         * nt.c (mswindows_sigset):
11744         * nt.c (mswindows_sigrelse):
11745         * nt.c (mswindows_sigpause):
11746         * nt.c (mswindows_raise):
11747         * nt.c (timer_proc):
11748         * ntproc.c:
11749         * ntproc.c (find_child_console):
11750         * ntproc.c (sys_kill):
11751         * print.c:
11752         * print.c (std_handle_out_external):
11753         * process-nt.c (find_child_console):
11754         * process-nt.c (send_signal_the_95_way):
11755         * process-nt.c (ensure_console_window_exists):
11756         * process-nt.c (nt_create_process):
11757         * syssignal.h:
11758         rename msw_ to mswindows_ for consistency with general convention.
11759
11760         * emacs.c:
11761         * dumper.c:
11762         include nt.h, not syswindows.h.
11763
11764         * nt.c (mswindows_fstat):
11765         * nt.c (mswindows_stat):
11766         prefix mswindows_ instead of attempting to directly override the
11767         library functions.  fix declarations.
11768
11769         * nt.h:
11770         include syswindows.h.  move some sysdep.h stuff here.
11771
11772         * ntheap.h:
11773         include syswindows.h, not <windows.h>.
11774
11775         * ntplay.c:
11776         clean up headers.
11777
11778         * sysdep.c:
11779         clean up headers.
11780
11781         * sysdep.c (sys_fstat):
11782         * sysdep.c (sys_stat):
11783         call mswindows versions when appropriate.
11784
11785         * sysdep.h:
11786         move mswin decls to nt.h.
11787
11788         * syswindows.h:
11789         add long comment describing appropriate use of the various windows
11790         headers.
11791
11792 2000-06-11  Ben Wing  <ben@xemacs.org>
11793
11794         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11795
11796 2000-06-10  Ben Wing  <ben@xemacs.org>
11797
11798         * Makefile.in.in (release):
11799         Correction to make sure xemacs.exe always dumped when correct.
11800
11801         * alloca.c:
11802         * balloon_help.c:
11803         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11804
11805         * buffer.c (set_buffer_internal):
11806         [[[[2]]]]: Remove HAVE_FEP code.
11807
11808         * buffer.c (init_initial_directory):
11809         [3].
11810
11811         * bytecode.c:
11812         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11813         individual files.
11814
11815         * callproc.c:
11816         * callproc.c (call_process_cleanup):
11817         * callproc.c (Fold_call_process_internal):
11818         * callproc.c (child_setup):
11819         * callproc.c (getenv_internal):
11820         * callproc.c (init_callproc):
11821         * callproc.c (vars_of_callproc):
11822         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11823         __CYGWIN32__ -> CYGWIN.
11824         DOS_NT -> WIN32_NATIVE.
11825         Remove MSDOS support/references, converting to WIN32_NATIVE
11826           where correct.
11827         __MINGW32__ -> MINGW.
11828         Fix windows.h includes.
11829         Remove bogus HAVE_NTGUI.
11830
11831         * config.h.in:
11832         [2].
11833
11834         * console-msw.c:
11835         mswindows_message_outputted added for use in allowing startup
11836         errors on the console to be seen.
11837
11838         * console-msw.c (msw_ensure_console_allocated):
11839         * console-msw.c (msw_output_console_string):
11840         * console-msw.c (DHEADER):
11841         * console-msw.c (DOPAQUE_DATA):
11842         * console-msw.c (DEVENT):
11843         * console-msw.c (DCONS):
11844         * console-msw.c (DCONSCDR):
11845         * console-msw.c (DSTRING):
11846         * console-msw.c (DVECTOR):
11847         * console-msw.c (DSYMBOL):
11848         * console-msw.c (DSYMNAME):
11849         Fix warnings.
11850
11851         * console-stream.c (stream_init_console):
11852         Fix text/binary problems.
11853
11854         * device-msw.c:
11855         * device-msw.c (mswindows_finish_init_device):
11856         * device-msw.c (mswindows_delete_device):
11857         [1].
11858
11859         * device.c (handle_asynch_device_change):
11860         [3].
11861
11862         * dgif_lib.c:
11863         * dgif_lib.c (DGifOpenFileName):
11864         * dgif_lib.c (DGifOpenFileHandle):
11865         * dgif_lib.c (DGifGetLine):
11866         * dgif_lib.c (DGifGetPixel):
11867         Added config.h/lisp.h, fix up includes.
11868         [1].
11869
11870         * dired-msw.c:
11871         [4].
11872
11873         * dired.c:
11874         * dired.c (file_name_completion):
11875         * dired.c (Ffile_attributes):
11876         * dired.c (syms_of_dired):
11877         [1].
11878
11879         * dumper.c:
11880         * dumper.c (pdump_file_unmap):
11881         * dumper.c (pdump_load):
11882         [1].
11883
11884         * editfns.c:
11885         * editfns.c (Ftemp_directory):
11886         * editfns.c (user_login_name):
11887         * editfns.c (Fuser_real_login_name):
11888         * editfns.c (get_home_directory):
11889         [1].
11890
11891         * elhash.c (finish_marking_weak_hash_tables):
11892         [[[[5]]]]: Fix GCC warnings.
11893
11894         * emacs.c:
11895         * emacs.c (mswindows_handle_hardware_exceptions):
11896         * emacs.c (make_arg_list_1):
11897         * emacs.c (main_1):
11898         * emacs.c (Fkill_emacs):
11899         * emacs.c (Fdump_emacs):
11900         [1].
11901         Fix problems with nested crashes, add long comment.
11902
11903         * event-Xt.c (init_event_Xt_late):
11904         [1].
11905
11906         * event-msw.c:
11907         * event-msw.c (mswindows_dde_callback):
11908         * event-msw.c (mswindows_handle_sticky_modifiers):
11909         * event-msw.c (mswindows_wnd_proc):
11910         [1].
11911         [5].
11912
11913         * events.c (character_to_event):
11914         [1].
11915
11916         * fileio.c:
11917         * fileio.c (Ffile_name_directory):
11918         * fileio.c (Ffile_name_nondirectory):
11919         * fileio.c (directory_file_name):
11920         * fileio.c (Fexpand_file_name):
11921         * fileio.c (Fsubstitute_in_file_name):
11922         * fileio.c (Ffile_name_absolute_p):
11923         * fileio.c (check_executable):
11924         * fileio.c (Ffile_readable_p):
11925         * fileio.c (Ffile_accessible_directory_p):
11926         * fileio.c (Ffile_modes):
11927         * fileio.c (Funix_sync):
11928         * fileio.c (vars_of_fileio):
11929         [1]. [4].
11930
11931         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11932
11933         Expand getdefdir defn.
11934         Fix bogus rename() comment.
11935
11936         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11937         to use standard XEmacs include files, e.g. sysfile.h, rather
11938         than system-specific includes.
11939
11940         * fns.c:
11941         * fns.c (Fsubseq):
11942         [5]. [6].
11943
11944         * frame.c (vars_of_frame):
11945         [1].
11946
11947         * getloadavg.c:
11948         * getloadavg.c (getloadavg):
11949         [1]. [6].
11950         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11951         (We don't use it elsewhere in the code; just add a comment.)
11952
11953         * gif_io.c:
11954         [6].
11955         Add config.h.
11956
11957         * glyphs-msw.c:
11958         * glyphs-msw.c (mswindows_resource_instantiate):
11959         [1].
11960
11961         * glyphs-x.c (x_native_layout_instantiate):
11962         [5].
11963
11964         * gui-msw.c (Fmswindows_shell_execute):
11965         [1].
11966
11967         * insdel.c:
11968         [4].
11969
11970         * lisp.h:
11971         [4]. [5].
11972
11973         * lread.c (locate_file_in_directory_mapper):
11974         [1].
11975
11976         * lstream.c:
11977         [4].
11978
11979         * mem-limits.h:
11980         * mem-limits.h (get_lim_data):
11981         [1].
11982
11983         * menubar-msw.c:
11984         [4].
11985
11986         * ndir.h:
11987         [1].
11988
11989         * nt.c:
11990         * nt.c (getwd):
11991         * nt.c (closedir):
11992         * nt.c (rva_to_section):
11993         * nt.c (mswindows_executable_type):
11994         [1]. [6].
11995         Fix closedir() defn.
11996
11997         * nt.h:
11998         [[[[8]]]]: *_OK defs moved to sysfile.h.
11999
12000         * ntproc.c:
12001         [6]. [7].
12002
12003         * objects-x.c:
12004         [4].
12005
12006         * print.c:
12007         * print.c (std_handle_out_external):
12008         [1]. [4].
12009
12010         * process-nt.c:
12011         * process-nt.c (nt_create_process):
12012         [6].
12013         try to fix process quoting somewhat.
12014
12015         * process-unix.c (unix_create_process):
12016         [1].
12017
12018         * process.c:
12019         * process.c (vars_of_process):
12020         Add Vnull_device.
12021
12022         * process.h:
12023         [1].
12024
12025         * realpath.c:
12026         * realpath.c (xrealpath):
12027         [1].
12028
12029         * redisplay-tty.c (init_tty_for_redisplay):
12030         [3].
12031
12032         * redisplay.c:
12033         [4]. [6].
12034
12035         * scrollbar-msw.c:
12036         [4].
12037
12038         * sheap.c:
12039         * sheap.c (more_static_core):
12040         * sheap.c (report_sheap_usage):
12041         [5]. [6].
12042
12043         * signal.c:
12044         * signal.c (alarm_signal):
12045         [1]. [6].
12046
12047         * sound.c:
12048         [6].
12049
12050         * strftime.c:
12051         * strftime.c (zone_name):
12052         [1]. [5].
12053
12054         * symsinit.h (init_sunpro):
12055         [1].
12056
12057         * syscommctrl.h:
12058         commctrl.h not in Cygwin b20.1.
12059
12060         * sysdep.c:
12061         * sysdep.c (endif):
12062         * sysdep.c (sys_subshell):
12063         * sysdep.c (init_baud_rate):
12064         * sysdep.c (emacs_get_tty):
12065         * sysdep.c (emacs_set_tty):
12066         * sysdep.c (tty_init_sys_modes_on_device):
12067         * sysdep.c (init_system_name):
12068         * sysdep.c (sys_open):
12069         * sysdep.c (interruptible_open):
12070         * sysdep.c (sys_fopen):
12071         * sysdep.c (sys_mkdir):
12072         * sysdep.c (sys_rename):
12073         * sysdep.c (get_process_times_1):
12074         [1]. [6].
12075
12076         * sysdep.h:
12077         [1].
12078
12079         * sysdir.h:
12080         * sysdir.h (DIRENTRY_NONEMPTY):
12081         [1]. [6].
12082
12083         * sysdll.c (dll_init):
12084         * sysdll.h:
12085         [1].
12086
12087         * sysfile.h:
12088         [1]. [6]. [8].
12089         added text/binary defs.
12090
12091         * sysfloat.h:
12092         [1].
12093
12094         * sysproc.h:
12095         * sysproc.h (EDESTADDRREQ):
12096         * sysproc.h (poll_fds_for_input):
12097         [1]. [6].
12098
12099         * syspwd.h:
12100         [6].
12101
12102         * syssignal.h:
12103         [1].
12104
12105         * systime.h:
12106         [1]. [6].
12107
12108         * systty.h:
12109         [1].
12110
12111         * syswindows.h:
12112         [1].
12113         Always define WIN32_LEAN_AND_MEAN.
12114
12115         * unexcw.c (unexec):
12116         [5].
12117
12118         * unexec.c:
12119         * unexec.c (copy_text_and_data):
12120         * unexec.c (adjust_lnnoptrs):
12121         [1].
12122
12123         * unexnt.c:
12124         * unexnt.c (_start):
12125         [1].
12126
12127 2000-06-07  Ben Wing  <ben@xemacs.org>
12128
12129         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12130         was used only as a model.  We've long since extracted any useful
12131         logic or code out of this. (I just did an exhaustive search.)
12132
12133         * s\msdos.h: Removed.
12134
12135         * s\windows95.h: Removed.
12136
12137 2000-06-10  Ben Wing  <ben@xemacs.org>
12138
12139         * s\cygwin32.h:
12140         [1]. [5].
12141         Don't use extern with fun defs.
12142
12143         * s\mingw32.h:
12144         [1]. [7].
12145         Remove nt\inc include.
12146         Remove getdisk, getdefdir. (The former is unused, the latter
12147         expanded in fileio.h.)
12148
12149         * s\windowsnt.h:
12150         * s\windowsnt.h (WIN32_NATIVE):
12151         * s\windowsnt.h (HAVE_STRCASECMP):
12152         [1]. [7].
12153         Add long comment about preprocessor changes.
12154         Remove getdisk, getdefdir. (The former is unused, the latter
12155         expanded in fileio.h.)
12156
12157 2000-06-10  Ben Wing  <ben@xemacs.org>
12158
12159         * m\arm.h:
12160         * m\delta.h:
12161         * m\intel386.h:
12162         * m\sequent.h:
12163         * m\template.h:
12164         * m\windowsnt.h:
12165         [1].
12166         Remove bogus/unused NO_SOCK_SIGIO.
12167
12168 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12169
12170         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12171         not an Emchar.
12172
12173 2000-06-04  Mike Sperber <mike@xemacs.org>
12174
12175         * casetab.c (set_case_table): For `set-standard-case-table',
12176         actually deposit the new case tables where the rest of XEmacs can
12177         see them.
12178
12179 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12180
12181         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12182
12183 2000-06-05  Ben Wing  <ben@xemacs.org>
12184
12185         * callproc.c (child_setup): Don't do close_load_descs() under
12186         MS Windows.  Put in a comment explaining why.
12187
12188 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12189
12190         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12191         Toolkit shell" which breaks `kill-compilation' on Windows NT
12192         native, retaining STDERR handling improvements.
12193
12194 2000-06-01  Andreas Jaeger  <aj@suse.de>
12195
12196         * s/s390.h: Support for S390, based on a patch by Martin
12197         Schwidefsky <schwidefsky@de.ibm.com>.
12198
12199 2000-05-30  Andy Piper  <andy@xemacs.org>
12200
12201         * window.c (allocate_window):
12202         (make_dummy_parent):
12203         (Fset_window_configuration): use new hashtable type.
12204
12205         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12206         (struct image_instantiator_methods):
12207         (struct Lisp_Image_Instance): make instance geometry signed.
12208
12209         * glyphs.c (instantiate_image_instantiator):
12210         (image_instance_query_geometry):
12211         (image_instance_layout):
12212         (image_instance_layout):
12213         (query_string_geometry):
12214         (text_query_geometry):
12215         (image_instantiate):
12216         (image_instantiate):
12217         (cache_subwindow_instance_in_frame_maybe):
12218         (subwindow_query_geometry): make instance geometry signed.
12219
12220         * glyphs-widget.c (widget_query_geometry):
12221         (widget_layout):
12222         (button_query_geometry):
12223         (tree_view_query_geometry):
12224         (tab_control_query_geometry):
12225         (layout_query_geometry):
12226         (layout_layout):
12227         (native_layout_layout): make instance geometry signed.
12228
12229 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12230
12231         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12232         constant.
12233
12234         * general.c (syms_of_general): Add Qfull_assoc symbol.
12235
12236         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12237         correctly.
12238         (decode_weak_list_type): Decode full-assoc type.
12239         (encode_weak_list_type): Encode full-assoc type.
12240         (Fmake_weak_list): Update doc string.
12241
12242 2000-05-30  Andy Piper  <andy@xemacs.org>
12243
12244         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12245
12246         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12247         (decode_hash_table_weakness): ditto.
12248         (Fhash_table_weakness): ditto.
12249         (Fhash_table_type): ditto.
12250         (finish_marking_weak_hash_tables): ditto.
12251         (hash_table_weakness_validate): ditto.
12252         (syms_of_elhash): ditto.
12253
12254 2000-05-28  Martin Buchholz <martin@xemacs.org>
12255
12256         * XEmacs 21.2.34 is released.
12257
12258 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12259
12260         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12261         start cache.
12262         (updating_line_start_cache): Gone.
12263         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12264         generic code to force a minimum of 1 line laid out in the
12265         CMOTION_DISP case.
12266
12267 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12268
12269         * glyphs.c (instantiate_image_instantiator): Check for initialized
12270         height & width no longer special cases IMAGE_NOTHING.
12271         (nothing_instantiate): Set height and width of instance.
12272
12273 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12274
12275         * unexelf.c (unexec): Search for ".data" section.
12276         Initialize new_data2_offset from old_data_index.
12277         Remove redundant check for ElfW.
12278
12279 2000-05-23  Andy Piper  <andy@xemacs.org>
12280
12281         * glyphs.c (get_image_instantiator_governing_domain): allow more
12282         specific domains as the governing domain rather than expecting an
12283         exact match. This fixes problems with layouts.
12284
12285 2000-05-22  Andy Piper  <andy@xemacs.org>
12286
12287         * redisplay-output.c (compare_runes): check for non-images
12288
12289         * glyphs.c (set_glyph_dirty_p): ditto.
12290         (update_glyph_cachel_data): ditto.
12291
12292         * glyphs-widget.c (layout_post_instantiate): ditto.
12293         (layout_post_instantiate): ditto.
12294
12295         * event-msw.c (mswindows_wnd_proc): warning removal.
12296
12297 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12298
12299         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12300
12301         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12302
12303         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12304
12305         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12306         (mswindows_executable_type): mingw32 now has enough headers for
12307         this to work.
12308
12309 2000-05-20  Andy Piper  <andy@xemacs.org>
12310
12311         * console-msw.c (mswindows_output_last_error): ; -> ,
12312
12313 2000-05-12  Andy Piper  <andy@xemacs.org>
12314
12315         * console-msw.c (FROB): compare ints with ints.
12316
12317 2000-05-11  Andy Piper  <andy@xemacs.org>
12318
12319         * glyphs-x.c (x_finalize_image_instance): make minimal build
12320         happy.
12321
12322 2000-05-20  Ben Wing  <ben@xemacs.org>
12323
12324         * event-Xt.c:
12325         * event-Xt.c (vars_of_event_Xt):
12326         move modifier-keys-are-sticky to event-stream.c.
12327
12328         * event-msw.c:
12329         * event-msw.c (mswindows_enqueue_mouse_button_event):
12330         * event-msw.c (key_needs_default_processing_p):
12331         * event-msw.c (XEMSW_LCONTROL):
12332         * event-msw.c (mswindows_handle_sticky_modifiers):
12333         * event-msw.c (FROB):
12334         * event-msw.c (clear_sticky_modifiers):
12335         * event-msw.c (output_modifier_keyboard_state):
12336         * event-msw.c (output_alt_keyboard_state):
12337         * event-msw.c (mswindows_wnd_proc):
12338         * event-msw.c (mswindows_modifier_state):
12339         * event-msw.c (emacs_mswindows_handle_magic_event):
12340         implement sticky modifiers.
12341
12342         * event-stream.c:
12343         * event-stream.c (vars_of_event_stream):
12344         move modifier-keys-are-sticky here.
12345
12346         * lisp.h:
12347         add CHECK_FUNCTION.
12348
12349         * rangetab.c:
12350         implement map-range-table.
12351
12352
12353 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12354
12355         * redisplay-tty.c (reset_tty_modes):
12356         (tty_redisplay_shutdown): Adjust argument type to
12357         tty_frame_output_end.
12358
12359 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12360
12361         * eval.c (Fbacktrace): Don't output a line with only right
12362         parenthesis.
12363
12364 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12365
12366         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12367         (Fpq_reset_poll): Ditto.
12368
12369 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12370
12371         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12372
12373 2000-05-16  Ben Wing  <ben@xemacs.org>
12374
12375         * buffer.c:
12376         * buffer.c (dfc_convert_to/from_internal_format):
12377         * buffer.c (reinit_vars_of_buffer):
12378         Fix conversion functions to allow reentrancy.
12379
12380         * console-msw.c:
12381         * console-msw.c (mswindows_output_last_error):
12382         New fun, generally useful -- output a human-readable
12383         version of GetLastError() on the console.
12384
12385         * console-msw.h:
12386         * console-msw.h (struct mswindows_frame):
12387         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12388
12389         * console-stream.c (stream_output_begin):
12390         * console-stream.c (stream_output_end):
12391         * console-stream.c (stream_output_vertical_divider):
12392         * console-stream.c (stream_clear_region):
12393         * console-stream.c (stream_flash):
12394         * console-stream.c (console_type_create_stream):
12395         Delete blank stream methods, not needed.
12396
12397         * console.h (struct console_methods):
12398         Split begin/end methods into window and frame.
12399
12400         * event-msw.c:
12401         * event-msw.c (mswindows_handle_paint):
12402         * event-msw.c (output_alt_keyboard_state):
12403         * event-msw.c (mswindows_wnd_proc):
12404         * event-msw.c (vars_of_event_mswindows):
12405         Comment about problems with ignored-expose.
12406         Define mswindows-debug-events; not really implemented.
12407
12408         * frame-msw.c (mswindows_init_frame_1):
12409         random cleanups.
12410
12411         * glyphs-msw.c:
12412         * glyphs-msw.c (begin_defer_window_pos):
12413         * glyphs-msw.c (mswindows_unmap_subwindow):
12414         * glyphs-msw.c (mswindows_map_subwindow):
12415         * glyphs-msw.c (mswindows_resize_subwindow):
12416         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12417
12418         * glyphs.c (make_image_instance_1):
12419         Fix crash.
12420
12421         * gutter.c (Fredisplay_gutter_area):
12422         Use new begin/end methods.
12423
12424         * lisp.h (Dynarr_new2):
12425         New creation fun.
12426
12427         * redisplay-msw.c:
12428         * redisplay-msw.c (mswindows_frame_output_begin):
12429         * redisplay-msw.c (mswindows_frame_output_end):
12430         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12431         New begin/end methods -- handle DeferWindowPos.
12432
12433         * redisplay-output.c (redisplay_move_cursor):
12434         * redisplay-output.c (redraw_cursor_in_window):
12435         * redisplay-output.c (redisplay_update_line):
12436         * redisplay-output.c (redisplay_output_window):
12437         New begin/end methods.
12438
12439         * redisplay-tty.c:
12440         * redisplay-tty.c (tty_frame_output_begin):
12441         * redisplay-tty.c (tty_frame_output_end):
12442         * redisplay-tty.c (console_type_create_redisplay_tty):
12443         New begin/end methods.
12444
12445         * redisplay-x.c:
12446         * redisplay-x.c (x_window_output_begin):
12447         * redisplay-x.c (x_window_output_end):
12448         * redisplay-x.c (console_type_create_redisplay_x):
12449         New begin/end methods.
12450
12451         * redisplay.c (redisplay_frame):
12452         * redisplay.c (Fredisplay_echo_area):
12453         New begin/end methods.
12454         use MAYBE_DEVMETH for clear_frame; it may not exist.
12455
12456         * window.h (WINDOW_XFRAME):
12457         WINDOW_XFOO macros -- get locale and decode struct pointer.
12458
12459
12460 2000-05-12  Ben Wing  <ben@xemacs.org>
12461
12462         * emacs.c:
12463         * emacs.c (ensure_no_quitting_from_now_on):
12464         * emacs.c (fatal_error_signal):
12465         * emacs.c (mswindows_handle_hardware_exceptions):
12466         * emacs.c (main):
12467         * emacs.c (Fkill_emacs):
12468         * emacs.c (shut_down_emacs):
12469         * emacs.c (assert_failed):
12470         various improvements in fatal error handling.
12471
12472         * eval.c:
12473         move preparing_for_armageddon to emacs.c.
12474
12475         * lisp.h:
12476         declare fatal_error_in_progress.
12477
12478         * print.c:
12479         * print.c (std_handle_out_external):
12480         * print.c (std_handle_out_va):
12481         * print.c (stderr_out):
12482         * print.c (stdout_out):
12483         use console under mswin when no standard output.
12484         don't do code conversion during fatal error.
12485
12486         * scrollbar.c (Fscrollbar_page_up):
12487         * scrollbar.c (Fscrollbar_page_down):
12488         fix missing else.  reindent.
12489
12490 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12491
12492         Emergency fix.
12493
12494         * glyphs.h (GLYPH_CACHEL_DESCENT):
12495         (GLYPH_CACHEL_DESCENT):
12496         (GLYPH_CACHEL_DESCENT):
12497         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12498         used in case these are inline functions.
12499         Use more absurd values to error check.
12500
12501         include window.h for error check functions.
12502
12503 2000-05-11  Ben Wing  <ben@xemacs.org>
12504
12505         * cmdloop.c (Freally_early_error_handler):
12506         Display message box under windows; otherwise, message will disappear
12507         before it can be viewed.
12508
12509         * console-msw.c:
12510         * console-msw.c (Fmswindows_message_box):
12511         * console-msw.c (FROB):
12512         * console-msw.c (syms_of_console_mswindows):
12513         Define new fun `mswindows-message-box'.
12514         #### I will merge this into `popup-dialog-box'; just give me
12515         a bit of time.
12516
12517         * general.c:
12518         * general.c (syms_of_general):
12519         Some new symbols used in `mswindows-message-box'.
12520
12521         * glyphs.c:
12522         * glyphs.c (Fset_image_instance_property):
12523         put warning in this fun.
12524
12525         * glyphs.h:
12526         * glyphs.h (GLYPH_CACHEL_WIDTH):
12527         * glyphs.h (GLYPH_CACHEL_ASCENT):
12528         * glyphs.h (GLYPH_CACHEL):
12529         * glyphs.h (GLYPH_CACHEL_GLYPH):
12530         define error-checking versions to try to catch a bug i've seen --
12531         redisplay gets in an infinite loop because the glyph width of the
12532         continuation glyph is 65535.
12533
12534         * lisp.h:
12535         Extern message-box stuff.
12536
12537         * window.c (allocate_window):
12538         * window.c (make_dummy_parent):
12539         * window.c (Fset_window_configuration):
12540         Use EQUAL not EQ for subwindow caches to make them work a bit
12541         better. (Something is still very broken.)
12542
12543
12544 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12545
12546         * glyphs.c (image_instantiate): Suppress gcc warnings.
12547         (Fmake_image_instance): Fix doc string.
12548         * specifier.c (Fmake_specifier): Ditto.
12549
12550 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12551
12552         * paths.h.in (PATH_LOCK): Removed.
12553         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12554         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12555
12556 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12557
12558         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12559         Document (featurep '(and xemacs 21.02)).
12560
12561 2000-05-09  Ben Wing  <ben@xemacs.org>
12562
12563         * buffer.c (complex_vars_of_buffer):
12564         update modeline-format doc.
12565
12566         * device.h:
12567         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12568
12569         * emacs.c:
12570         timeline of all released versions of Emacs, for use in creating
12571         authorship comments and in synching up.
12572
12573         * glyphs-widget.c (image_instantiator_buttons):
12574         * glyphs-widget.c (image_instantiator_edit_fields):
12575         * glyphs-widget.c (image_instantiator_combo_box):
12576         * glyphs-widget.c (image_instantiator_scrollbar):
12577         * glyphs-widget.c (image_instantiator_progress_guage):
12578         * glyphs-widget.c (image_instantiator_tree_view):
12579         * glyphs-widget.c (image_instantiator_tab_control):
12580         * glyphs-widget.c (image_instantiator_labels):
12581         * glyphs-widget.c (image_instantiator_layout):
12582         * glyphs-widget.c (image_instantiator_native_layout):
12583         rename decode_domain method to governing_domain.
12584
12585         * glyphs.c:
12586         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12587         * glyphs.c (add_entry_to_device_ii_format_list):
12588         make sure we don't put an entry more than once into the list.
12589         * glyphs.c (check_instance_cache_mapper):
12590         *************************************************************
12591         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12592         HAVE BEEN GETTING.
12593         *************************************************************
12594         * glyphs.c (get_image_instantiator_governing_domain):
12595         clean up, expand on new concept of governing domain.
12596         * glyphs.c (instantiate_image_instantiator):
12597         * glyphs.c (allocate_image_instance):
12598         use governing_domain instead of cache_domain in naming.
12599         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12600         * glyphs.c (make_image_instance_1):
12601         * glyphs.c (Fmake_image_instance):
12602         allow for any domain (not just device), and process the
12603         governing domain correctly.  very big doc fix.
12604         * glyphs.c (Fimage_instance_domain):
12605         new primitive, to retrieve the governing domain of an image instance.
12606         * glyphs.c (image_instantiate):
12607         use new governing_domain stuff.  this fixes a crash you could get
12608         by instantiating certain widget glyphs in frame locales. (should
12609         signal an error instead of crashing.)
12610         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12611         * glyphs.c (Fglyphp): clean up doc.
12612         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12613         * glyphs.c (syms_of_glyphs):
12614         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12615         * glyphs.c (image_instantiator_format_create): add some comments about
12616         bogus code.
12617         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12618         for current-display-table. (Apparently Hrjove implemented in 1998 a
12619         design I wrote up in 1996, but didn't update the doc string.)
12620
12621         * glyphs.h: clean up a doc string.
12622         * glyphs.h (governing_domain):
12623         * glyphs.h (struct image_instantiator_methods):
12624         changes for governing_domain stuff.
12625
12626         * gutter.c:
12627         * gutter.c (Fgutter_specifier_p):
12628         * gutter.c (Fgutter_size_specifier_p):
12629         * gutter.c (Fgutter_visible_specifier_p):
12630         * objects.c:
12631         * objects.c (Fcolor_specifier_p):
12632         * objects.c (Ffont_specifier_p):
12633         * objects.c (Fface_boolean_specifier_p):
12634         doc strings moved to make-*-specifier.
12635
12636         * redisplay.c (add_disp_table_entry_runes_1):
12637         * redisplay.c (generate_fstring_runes):
12638         * redisplay.c (screen):
12639         add random comments and doc strings.
12640
12641         * specifier.c:
12642         * specifier.c (Fmake_specifier):
12643         major overhaul of this doc string.
12644
12645         * specifier.c (Fvalid_specifier_domain_p):
12646         comment about the bogosity of image instances being domains.
12647         * specifier.c (decode_domain):
12648         now non-static, used in glyphs.c.
12649         * specifier.c (specifier_instance):
12650         comment about the bogosity of image instances being domains.
12651         * specifier.c (Fgeneric_specifier_p):
12652         move doc string to make-generic-specifier.
12653         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12654         rebackslashify.
12655
12656         * specifier.h:
12657         * specifier.h (DOMAIN_FRAME):
12658         * specifier.h (DOMAIN_LIVE_P):
12659         * specifier.h (DOMAIN_XDEVICE):
12660         rebackslashify.
12661         add comments about problems with these macros.
12662         prototype for decode_domain.
12663
12664         * toolbar.c:
12665         * toolbar.c (Ftoolbar_specifier_p):
12666         move doc string to `make-toolbar-specifier'.
12667
12668         * window.c (window_unmap_subwindows_cache_mapper):
12669         *************************************************************
12670         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12671         HAVE BEEN GETTING.
12672         *************************************************************
12673
12674 2000-05-09  Andy Piper  <andy@xemacs.org>
12675
12676         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12677
12678         * window.c (Fset_window_configuration): reset the frame subwindow
12679         cache and re-initialize the window subwindow caches.
12680
12681         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12682
12683 2000-05-09  Ben Wing  <ben@xemacs.org>
12684
12685         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12686         DWORD.
12687
12688 2000-04-26  Mike Woolley  <mike@bulsara.com>
12689
12690         * ntheap.c: Changed recreate_heap to limit the amount reserved
12691         for the heap to that which is actually available. Also now
12692         displays a message box (with some dignostics) in the event that
12693         it still can't start.
12694
12695 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12696
12697         * callproc.c (Fold_call_process_internal): GCPRO path
12698
12699 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12700
12701         Patch by Bill Perry.
12702
12703         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12704         back data instead of #ifdef.
12705         (Fscrollbar_page_down): ditto.
12706
12707 2000-05-07  Ben Wing  <ben@xemacs.org>
12708
12709         * buffer.h:
12710         Kludge for defining Qmswindows_tstr.
12711
12712         * nt.c:
12713         * nt.c (open_input_file):
12714         * nt.c (open_output_file):
12715         * nt.c (rva_to_section):
12716         * nt.c (mswindows_executable_type):
12717         Move all memory-mapped-file routines here (some were in unexnt.c,
12718         which is bad because they are used by process-nt.c, and unexnt
12719         won't be around when portable dumping).  Synched the above routines
12720         with FSF 20.6.
12721
12722         * nt.h:
12723         Removed ifdef'd out bogus code.
12724         Fixed some prototypes.
12725
12726         * nt.h (file_data):
12727         * nt.h (OFFSET_TO_RVA):
12728         * nt.h (RVA_TO_OFFSET):
12729         * nt.h (RVA_TO_PTR):
12730         Moved the memory-mapped-file structures, macros and prototypes
12731         here, to parallel nt.c.  ntheap.h should really be removed
12732         entirely, and it's a non-portable-dumper specific file.
12733
12734         * ntheap.h (round_to_next):
12735         Moved the memory-mapped-file structures, macros and prototypes
12736         to nt.h.
12737
12738         * ntproc.c (compare_env):
12739         Moved rva_to_section and mswindows_executable_type to nt.c.
12740         Moved compare_env to process-nt.c.
12741         ntproc.c will die, one day.
12742
12743         * ntproc.c (sys_spawnve):
12744         Account for win32_ -> mswindows_.
12745
12746         * process-nt.c:
12747         * process-nt.c (struct nt_process_data):
12748         * process-nt.c (ensure_console_window_exists):
12749         * process-nt.c (compare_env):
12750         * process-nt.c (nt_create_process):
12751         * process-nt.c (nt_kill_process_by_pid):
12752         * process-nt.c (syms_of_process_nt):
12753         * process-nt.c (vars_of_process_nt):
12754         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12755         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12756         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12757         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12758         Move compare_env here from ntproc.c.
12759
12760         * process.c (Fprocess_send_region):
12761         Takes an optional fourth argument, BUFFER, which should fix some
12762         problems with call-process.
12763
12764         * syscommctrl.h:
12765         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12766
12767         * syswindows.h:
12768         Move ICC_BAR_CLASSES to syscommctrl.h.
12769         Add preliminary macros for MSWindows/Mule.  More to come.
12770
12771         * unexnt.c:
12772         * unexnt.c (unexec):
12773         open_output_file moved to nt.c.
12774
12775
12776 2000-05-05  Andy Piper  <andy@xemacs.org>
12777
12778         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12779         instance from the frame cache also since GC may catch up too late
12780         to make frame deletion sane.
12781
12782 2000-05-04  Andy Piper  <andy@xemacs.org>
12783
12784         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12785         (x_finalize_image_instance): ungcpro on deletion.
12786
12787         * glyphs.c (image_instantiator_format_create): give pointers a
12788         query geometry method so that the geometry is at least set.
12789
12790         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12791         initialize layouts if using widgets.
12792
12793 2000-05-03  Andy Piper  <andy@xemacs.org>
12794
12795         * nt.c: remove bogus reference to sysmmsystem.h
12796
12797         * gui-x.c (popup_selection_callback): fix no selection abort.
12798
12799 2000-05-02  Andy Piper  <andy@xemacs.org>
12800
12801         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12802         (mswindows_widget_instantiate): ditto.
12803
12804         * glyphs-widget.c (initialize_widget_image_instance): initialize
12805         children correctly.
12806         (widget_instantiate): cope with children and items in the same
12807         instance.
12808
12809         * glyphs.c (mark_image_instance): cope with children as a first
12810         class member.
12811         (image_instance_equal): ditto.
12812         (image_instance_hash): ditto.
12813         (image_instance_changed): ditto.
12814
12815 2000-04-30  Andy Piper  <andy@xemacs.org>
12816
12817         * glyphs.c (subwindow_query_geometry): new function. Return some
12818         defaults.
12819         (subwindow_instantiate): don't assign dimensions if none have been
12820         given.
12821         (image_instantiator_format_create): add subwindow_query_geometry.
12822         (print_image_instance): cope with layouts as widgets.
12823
12824 2000-04-29  Andy Piper  <andy@xemacs.org>
12825
12826         * frame.c (delete_frame_internal): call
12827         free_frame_subwindow_instance_cache so that all subwindows are
12828         finalized before their parent.
12829         (mark_frame): remove subwindow_cachels.
12830         (Fmake_frame): remove subwindow_cachel manipulation.
12831         (allocate_frame_core): subwindow_instance_cache is a weak list.
12832         (delete_frame_internal): set subwindow_instance_cache to nil.
12833
12834         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12835         finalization safe.
12836         (mswindows_finalize_image_instance): use the device
12837         not the domain as the domain may have died already.
12838
12839         * glyphs-x.c (x_finalize_image_instance): ditto.
12840         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12841         HEIGHT.
12842
12843         * redisplay-output.c (redisplay_unmap_subwindows): update for
12844         subwindow instance cache as a weak list.
12845         (redisplay_unmap_subwindows_maybe): ditto.
12846         (redisplay_unmap_subwindows_except_us): ditto.
12847
12848         * glyphs.c (unmap_subwindow): error checking will check the domain
12849         so don't deal with it here. Don't use cachels anymore.
12850         (map_subwindow): ditto.
12851         (update_subwindow_cachel_data): remove old accessor names.
12852         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12853         (Fresize_subwindow): don't update cachel.
12854         (mark_subwindow_cachels):
12855         (update_subwindow_cachel_data):
12856         (add_subwindow_cachel):
12857         (get_subwindow_cachel_index):
12858         (update_subwindow_cachel):
12859         (reset_subwindow_cachels):
12860         (mark_subwindow_cachels_as_not_updated): deleted.
12861         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12862         subwindow instance to the frame cache.
12863         (find_matching_subwindow): update for subwindow instance cache as
12864         a weak list.
12865         (update_widget_instances): ditto.
12866         (image_instance_type_to_mask):inlined.
12867         (free_frame_subwindow_instance_cache): new function. finalize all
12868         subwindows that are instantiated.
12869
12870         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12871         of cachel information.
12872         (IMAGE_INSTANCE_DISPLAY_X):
12873         (IMAGE_INSTANCE_DISPLAY_Y):
12874         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12875         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12876         (XIMAGE_INSTANCE_DISPLAY_X):
12877         (XIMAGE_INSTANCE_DISPLAY_Y):
12878         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12879         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12880         remove subwindow_cachel structure and function references.
12881         (image_instance_type_to_mask): inline from glyphs.c
12882
12883         * redisplay.c (redisplay_frame): remove subwindow_cachel
12884         references.
12885
12886         * frame.h (struct frame): remove subwindow_cachels.
12887         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12888
12889         * frameslots.h: add subwindow_instance_cache.
12890
12891         * window.c (replace_window): check subwindow cache of replacement.
12892         (window_unmap_subwindows_cache_mapper):
12893         (window_unmap_subwindows): new functions. Unmap all subwindows
12894         cached on this window.
12895         (mark_window_as_deleted): unmap all subwindows.
12896
12897 2000-04-27  Andy Piper  <andy@xemacs.org>
12898
12899         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12900
12901         * glyphs-widget.c (widget_layout): return something.
12902         (layout_layout): return something. Fail if not initialized.
12903         (layout_query_geometry): ditto.
12904         (image_instantiator_native_layout): new function. Initialized the
12905         native layout type.
12906         (widget_instantiate): don't do layout stuff here.
12907
12908         * glyphs.c (instantiate_image_instantiator): reorded calling or
12909         instantiate and post_instantiate with layout in between.
12910         (image_instance_layout): be more selective about deciding whether
12911         the layout has been done or not.
12912
12913         * glyphs.h (struct image_instantiator_methods): return a value
12914         from layout_method.
12915
12916 2000-04-26  Andy Piper  <andy@xemacs.org>
12917
12918         * glyphs.c (allocate_image_instance): make initial width and
12919         height unspecified. Set initialized to 0.
12920
12921         * syscommctrl.h new file. Encapsulates commctrl.h.
12922
12923         * syswindows.h new file. Encapsulates windows.h.
12924
12925         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12926         * nt.c: ditto.
12927         * console-msw.h: ditto.
12928
12929         * redisplay-tty.c (tty_output_display_block): remove layout references.
12930
12931         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12932         window handle rather than just the frame.
12933
12934         * glyphs.c (mark_image_instance): remove layout references.
12935         (print_image_instance): ditto.
12936         (image_instance_equal): ditto.
12937         (image_instance_hash): ditto.
12938         (decode_image_instance_type): ditto.
12939         (encode_image_instance_type): ditto.
12940         (image_instantiate): ditto.
12941         (allocate_glyph): ditto.
12942         (Fimage_instance_height): ditto.
12943         (Fimage_instance_width): ditto.
12944         (update_subwindow): ditto.
12945
12946         * redisplay-x.c (x_output_display_block): recode for layouts as
12947         widgets.
12948
12949         * redisplay-output.c (redisplay_output_layout): recode for layouts
12950         as widgets.
12951         (compare_runes): remove layout references.
12952
12953         * redisplay-msw.c (mswindows_output_display_block): recode for
12954         layouts as widgets.
12955
12956         * glyphs-widget.c (image_instantiator_layout): remove
12957         layout_possible_dest_types.
12958         (layout_possible_dest_types): deleted.
12959
12960         * glyphs.h (image_instance_type): remove layout references.
12961         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12962         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12963         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12964
12965 2000-04-25  Andy Piper  <andy@xemacs.org>
12966
12967         * glyphs-widget.c (image_instantiator_buttons):
12968         (image_instantiator_edit_fields):
12969         (image_instantiator_combo_box):
12970         (image_instantiator_scrollbar):
12971         (image_instantiator_progress_guage):
12972         (image_instantiator_tree_view):
12973         (image_instantiator_tab_control):
12974         (image_instantiator_labels):
12975         (image_instantiator_layout): call default post_instantiate method.
12976         (widget_post_instantiate): new function. Simply lays out the
12977         widgets.
12978
12979         * glyphs.h (struct image_instantiator_methods): add
12980         post_instantiate method.
12981
12982         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12983         method calls.
12984
12985 2000-04-23  Andy Piper  <andy@xemacs.org>
12986
12987         * glyphs.h (struct image_instantiator_methods): add
12988         decode_domain_method.
12989         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12990         derived from the domain.
12991         (IMAGE_INSTANCE_FRAME): new accessor.
12992         (XIMAGE_INSTANCE_FRAME): ditto.
12993
12994         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12995         instead of _SUBWINDOW_FRAME.
12996         (finalize_image_instance): ditto.
12997         (Fimage_instance_foreground): ditto.
12998         (Fimage_instance_background): ditto.
12999         (image_instantiate): ditto.
13000         (update_subwindow_cachel): ditto.
13001         (update_subwindow): ditto.
13002         (unmap_subwindow): ditto.
13003         (map_subwindow): ditto
13004         (subwindow_instantiate): ditto.
13005         * glyphs-msw.c (mswindows_update_widget): ditto.
13006         (mswindows_progress_gauge_instantiate): ditto.
13007         (mswindows_tab_control_update): ditto.
13008         * glyphs-x.c (x_update_widget): ditto.
13009         (x_widget_instantiate): ditto.
13010         (x_tab_control_instantiate): ditto.
13011         (x_tab_control_update): ditto.
13012         * event-msw.c (mswindows_wnd_proc): ditto
13013
13014         * glyphs-widget.c (image_instantiator_layout): use
13015         subwindow_decode_domain.
13016         (image_instantiator_buttons): ditto.
13017         (image_instantiator_edit_fields): ditto.
13018         (image_instantiator_combo_box): ditto.
13019         (image_instantiator_scrollbar): ditto.
13020         (image_instantiator_progress_guage): ditto.
13021         (image_instantiator_tree_view): ditto.
13022         (image_instantiator_tab_control): ditto.
13023         (image_instantiator_labels): ditto.
13024         (image_instantiator_layout): ditto.
13025
13026         * glyphs.c: add instance error checking to many functions.
13027         (instantiate_image_instantiator): decode device from cache_domain.
13028         (image_instantiate): partially rewrite by using
13029         decode_image_instantiator_domain to determine what domain the
13030         instance needs to be cached in.
13031         (decode_image_instantiator_domain): new function. Determine what
13032         domain the image needs to be cached in.
13033         (check_window_subwindow_cache): new error checking function.
13034         (check_instance_cache_mapper): ditto.
13035         (check_image_instance_structure): ditto.
13036         (subwindow_decode_domain): new function. Encodes a window as a
13037         subwindow's cache domain.
13038         (image_instantiator_format_create): use it for text and
13039         subwindows.
13040
13041 2000-04-21  Andy Piper  <andy@xemacs.org>
13042
13043         * glyphs.c (image_instance_device): new function.
13044         (image_instance_frame): new function.
13045         (image_instance_window): new function.
13046         (image_instance_live_p): new function.
13047
13048         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13049         cache to nil.
13050
13051         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13052         (IMAGE_INSTANCE_DOMAIN): new accessor.
13053         (XIMAGE_INSTANCE_DOMAIN): ditto.
13054
13055         * glyphs-x.c (x_finalize_image_instance): device->domain.
13056
13057         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13058         (mswindows_finalize_image_instance): ditto.
13059
13060         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13061         (gif_instantiate): ditto.
13062         (png_instantiate): ditto.
13063         (tiff_instantiate): ditto.
13064
13065         * glyphs.c (instantiate_image_instantiator): use domain rather
13066         than device.
13067         (mark_image_instance): device -> domain.
13068         (print_image_instance): ditto.
13069         (finalize_image_instance): ditto.
13070         (image_instance_equal): ditto.
13071         (allocate_image_instance): ditto.
13072         (Fcolorize_image_instance): ditto.
13073         (query_string_geometry): ditto.
13074         (image_instantiate): ditto
13075         (query_string_font): ditto.
13076         (image_instantiate): ditto.
13077         (update_subwindow): ditto.
13078         (unmap_subwindow): ditto.
13079         (map_subwindow): ditto.
13080         (subwindow_instantiate): ditto.
13081
13082         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13083         (DOMAIN_FRAME): ditto.
13084         (DOMAIN_WINDOW): ditto.
13085         (DOMAIN_LIVE_P): ditto.
13086         (XDOMAIN_DEVICE): ditto.
13087         (XDOMAIN_FRAME): ditto.
13088         (XDOMAIN_WINDOW): ditto.
13089
13090         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13091         a valid specifier domain.
13092
13093 2000-04-19  Andy Piper  <andy@xemacs.org>
13094
13095         * glyphs-widget.c (syms_of_glyphs_widget): remove
13096         widget-callback-current-channel.
13097         (vars_of_glyphs_widget): ditto.
13098         * glyphs.h: ditto
13099
13100         * gui.c (get_gui_callback): revert to previous behaviour.
13101
13102 2000-04-18  Andy Piper  <andy@xemacs.org>
13103
13104         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13105         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13106         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13107
13108         * glyphs.c (image_instance_equal): add margin_width.
13109         (image_instance_hash): ditto.
13110
13111         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13112         (layout_query_geometry): ditto.
13113         (layout_layout): ditto.
13114         (syms_of_glyphs_widget): add margin-width.
13115         (image_instantiator_layout): allow margin-width.
13116
13117         * glyphs.c (update_widget_instances): make a normal function.
13118         (syms_of_glyphs): remove Qupdate_widget_instances.
13119         * glyphs.h: ditto.
13120
13121         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13122         so that we don't corrupt ideas about the last event or
13123         command. Remove widget-callback-current-channel fiddling.
13124         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13125
13126 2000-05-01  Martin Buchholz <martin@xemacs.org>
13127
13128         * XEmacs 21.2.33 is released.
13129
13130 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13131
13132         * make-src-depend: Allow dots in header file name.
13133
13134 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13135
13136         * mule-charset.h (struct charset_lookup): Add
13137         next_allocated_1_byte_leading_byte and
13138         next_allocated_2_byte_leading_byte.
13139         * mule-charset.c: Move above two variables so that those values
13140         will be dumped.
13141
13142 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13143
13144         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13145         when string length is zero.
13146         (find_charsets_in_emchar_string): Ditto.
13147
13148 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13149
13150         * lisp.h: extern Qdialog and Qmenubar.
13151
13152         * gui-x.c: added events.h.
13153                 also fixed typo which made the file uncompilable.
13154
13155         * general.c: Added Qmenubar and Qdialog
13156
13157 2000-04-28  Ben Wing  <ben@xemacs.org>
13158
13159         * frame-msw.c (mswindows_init_frame_1):
13160         * frame-msw.c (mswindows_mark_frame):
13161         * event-msw.c (mswindows_enqueue_dispatch_event):
13162         * console-msw.h:
13163         * console-msw.h (struct mswindows_frame):
13164         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13165         there are now three hash tables for callbacks.
13166         mswindows_enqueue_dispatch_event is no longer static.
13167
13168         * dialog-x.c (maybe_run_dbox_text_callback):
13169         * dialog-x.c (dbox_descriptor_to_widget_value):
13170         switch to new cons3 form for callbacks.
13171
13172         * glyphs-msw.c (mswindows_register_gui_item):
13173         * glyphs-msw.c (mswindows_widget_instantiate):
13174         * glyphs-msw.c (add_tree_item):
13175         * glyphs-msw.c (add_tab_item):
13176         new image instance parameter, so it can be passed to callback-ex.
13177         respect :callback-ex as well as :callback.
13178
13179         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13180         add :callback-ex.
13181
13182         * glyphs.c (print_image_instance):
13183         prettify, e.g. now prints widget type.
13184
13185         * gui-x.h:
13186         certain funs have new image instance parameter.
13187
13188         * gui.c:
13189         * gui.c (get_gui_callback):
13190         * gui.c (gui_item_add_keyval_pair):
13191         * gui.c (gui_item_init):
13192         * gui.c (gui_add_item_keywords_to_plist):
13193         * gui.c (mark_gui_item):
13194         * gui.c (gui_item_hash):
13195         * gui.c (gui_item_equal):
13196         * gui.c (copy_gui_item):
13197         * gui.c (syms_of_gui):
13198         recognize callback-ex in a number of places.
13199         also, fix the annoying "can't get out of yes-no dialog" bug.
13200
13201         * gui.h:
13202         * gui.h (struct Lisp_Gui_Item):
13203         recognize callback-ex in a number of places.
13204
13205         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13206         new parameter in button_item_to_widget_value.
13207
13208         * glyphs-x.c (x_update_widget):
13209         * glyphs-x.c (x_button_instantiate):
13210         * glyphs-x.c (x_button_update):
13211         * glyphs-x.c (x_progress_gauge_instantiate):
13212         * glyphs-x.c (x_edit_field_instantiate):
13213         * glyphs-x.c (x_combo_box_instantiate):
13214         * glyphs-x.c (x_tab_control_instantiate):
13215         * glyphs-x.c (x_label_instantiate):
13216         new image instance parameter in various places.
13217
13218         * event-Xt.c:
13219         * event-Xt.c (enqueue_Xt_dispatch_event):
13220         this fun gets exported.
13221
13222         * gui-msw.c:
13223         * gui-msw.c (mswindows_handle_gui_wm_command):
13224         handle both :callback and :callback-ex, and generate our own
13225         event because it's one of the callback-ex arguments.
13226
13227         * gui-x.c:
13228         * gui-x.c (popup_selection_callback):
13229         handle both :callback and :callback-ex, and generate our own
13230         event because it's one of the callback-ex arguments.
13231         * gui-x.c (button_item_to_widget_value):
13232         * gui-x.c (gui_items_to_widget_values_1):
13233         * gui-x.c (gui_item_children_to_widget_values):
13234         * gui-x.c (gui_items_to_widget_values):
13235         new image instance parameter in various places.
13236
13237         * fns.c (Freplace_list):
13238         fix small typo in doc string.
13239
13240         * lisp.h:
13241         declare enqueue_Xt_dispatch_event.
13242
13243 2000-04-28  Ben Wing  <ben@xemacs.org>
13244
13245         * buffer.c:
13246         * buffer.c (Frecord_buffer):
13247         * buffer.c (syms_of_buffer):
13248         delete record-buffer-hook.
13249
13250         * fns.c:
13251         * fns.c (Freplace_list):
13252         * fns.c (syms_of_fns):
13253         new primitive replace-list.
13254
13255         * frameslots.h:
13256         slot for old buffer-alist.
13257
13258         * lisp.h:
13259         exfun replace-list.
13260
13261         * redisplay.c:
13262         * redisplay.c (redisplay_frame):
13263         * redisplay.c (syms_of_redisplay):
13264         * redisplay.c (vars_of_redisplay):
13265         new hook buffer-list-changed-hook.
13266         call it.
13267
13268 2000-04-27  Ben Wing  <ben@xemacs.org>
13269
13270         * extents.h: extern in_modeline_generation.
13271
13272         * redisplay.c (generate_formatted_string_db): set
13273         in_modeline_generation.
13274
13275         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13276         flags if in modeline generation.  otherwise frame-modified-tick
13277         is ticked far too often.
13278         Declare in_modeline_generation.
13279
13280 2000-04-26  Ben Wing  <ben@xemacs.org>
13281
13282         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13283         option.
13284         (vars_of_emacs): add quick-build as an error-checking option.
13285         A bit kludgy, but there doesn't seem much point in creating
13286         a real var for this.
13287
13288         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13289
13290 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13291
13292         * redisplay.h (struct display_line): Add a new variable,
13293         line_continuation.
13294
13295         * redisplay.c (create_text_block): Set dl->line_continuation if
13296         the line continues.
13297         (create_string_text_block): Ditto.
13298         (regenerate_window_incrementally): Use line_continuation instead
13299         of searching continuation glyph.
13300         (add_margin_runes): Call add_glyph_rune.
13301         (add_glyph_rune): Handle margin glyph.
13302
13303 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13304
13305         * filelock.c (fill_in_lock_file_name):
13306         ANSIfy.
13307         Check for IS_ANY_SEP instead of '/'.
13308         (lock_file_1):
13309         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13310         Never check errno without first seeing that system call failed.
13311         (unlock_file): Add GCPRO.
13312         (Flock_buffer): Fix docstring.
13313         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13314
13315 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13316
13317         * sysdep.c (get_pty_max_bytes):
13318         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13319         strings longer than 252 bytes.
13320
13321         * md5.c: Unconditionally include ANSI header <limits.h>
13322
13323         * glyphs-x.c (convert_EImage_to_XImage):
13324         * lisp-union.h (union Lisp_Object):
13325         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13326
13327 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13328
13329         * filelock.c (current_lock_owner): Remove unused variable o, p.
13330
13331 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13332
13333         * callint.c: Remove multiply defined symbol Qlet
13334         (syms_of_callint): ditto.
13335
13336 2000-04-14  Andy Piper  <andy@xemacs.org>
13337
13338         * general.c (syms_of_general): add last-command, this-command, let
13339         and funcall.
13340
13341         * lisp.h: declare various symbols.
13342
13343         * glyphs.h: declare Qwidget_callback_current_channel;
13344
13345         * glyphs-widget.c (syms_of_glyphs_widget): add
13346         Qgui_callback_current_channel.
13347         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13348
13349         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13350         widget-callback-current-channel when invoking the interactive
13351         arg. Also bind last-command and next-command when invoking the
13352         widget updates.
13353         * gui-x.c (popup_selection_callback): ditto.
13354
13355         * gui.c (get_gui_callback): massage args so that we are always
13356         calling eval. This allows us to add our own variable bindings
13357         outside.
13358
13359         * glyphs-x.c (x_button_instantiate): use
13360         gui_items_to_widget_values since this is GC safe.
13361         (x_progress_gauge_instantiate): ditto.
13362         (x_edit_field_instantiate): ditto.
13363         (x_label_instantiate): ditto.
13364
13365         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13366         (emacs_Xt_event_widget_focus_out): new function
13367         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13368         focus.
13369         (emacs_Xt_event_add_widget_actions): new function. add focus
13370         functions as actions.
13371         (init_event_Xt_late): use it.
13372
13373 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13374
13375         * event-stream.c (Fdispatch_event): Doc fix.
13376
13377 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13378
13379         * postgresql.c: Remove all references to PQsetenv*.
13380
13381         * postgresql.h: Remove references to PGsetenvHandler object.
13382         * lrecord.h (lrecord_type): Ditto.
13383
13384 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13385
13386         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13387         real_heigh and real_width members, and accessor macros for these.
13388
13389         * glyphs-msw.c (init_image_instance_geometry): New function.
13390         (init_image_instance_from_dibitmap): Use it.
13391         (mswindows_resource_instantiate): Use it.
13392         (init_image_instance_from_xbm_inline): Use it.
13393         (mswindows_initialize_image_instance_mask): Use real bitmap
13394         geometry.
13395         (mswindows_create_resized_bitmap): Ditto.
13396         (mswindows_create_resized_mask): Ditto.
13397
13398         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13399         and bitmap to their surface size.
13400
13401 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13402
13403         * process-unix.c (unix_send_process): Guard against process MIA
13404         after Faccept_process_output.
13405
13406 2000-04-11  Ben Wing  <ben@xemacs.org>
13407
13408         * eval.c (unbind_to_hairy): fix brokenness introduced by
13409         nanosecond speed improvements.
13410
13411 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13412
13413         * sunplay.c (init_device): To play sounds correctly, the device
13414         apparently needs to be initialized at least once by XEmacs.  Make
13415         it so.
13416
13417 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13418
13419         * redisplay.c (add_margin_runes): Add text image glyph
13420           handling.
13421
13422 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13423
13424         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13425         gcc is newer than 2.5.
13426
13427 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13428
13429         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13430
13431         * fns.c (size_bit_vector):
13432         * alloc.c (size_vector):
13433         (make_vector_internal):
13434         (make_bit_vector_internal):
13435         (sweep_bit_vectors_1):
13436         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13437
13438 2000-04-06  Andy Piper  <andy@xemacs.org>
13439
13440         * gmalloc.c (malloc): undo previous change.
13441         (malloc): ditto.
13442         (free): ditto.
13443         (realloc): ditto.
13444
13445 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13446
13447         * line-number.c (buffer_line_number): Revert to former version.
13448
13449 2000-04-06  Andy Piper  <andy@xemacs.org>
13450
13451         * gmalloc.c (malloc): add error checking.
13452         (malloc): ditto.
13453         (free): ditto.
13454         (realloc): ditto.
13455
13456         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13457         button_item_to_widget_value arg.
13458
13459         * glyphs-x.c (x_button_instantiate): add extra
13460         button_item_to_widget_value arg.
13461         (x_progress_gauge_instantiate): ditto.
13462         (x_edit_field_instantiate): ditto.
13463         (x_label_instantiate): ditto.
13464
13465         * gui-x.c (gui_items_to_widget_values_1): add extra
13466         button_item_to_widget_value arg.
13467         (button_item_to_widget_value): add extra menu_item_p arg.
13468
13469         * gui-x.h: change signature of button_item_to_widget_value.
13470
13471         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13472         button_item_to_widget_value arg.
13473
13474 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13475
13476         * buffer.h (struct buffer): auto_save_modified should be long.
13477
13478 2000-04-05  Andy Piper  <andy@xemacs.org>
13479
13480         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13481         type.
13482         (button_query_geometry): give a little more room so that athena
13483         buttons fit.
13484
13485 2000-04-05  Andy Piper  <andy@xemacs.org>
13486
13487         * faces.c (complex_vars_of_faces): The widget face should inherit
13488         the font of the gui-element face.
13489
13490 2000-04-04  Andy Piper  <andy@xemacs.org>
13491
13492         * glyphs-x.c (x_button_update): new function. unconditionally
13493         update a button's state when the instance is dirty.
13494         (image_instantiator_format_create_glyphs_x): add x_button_update.
13495         (x_widget_instantiate): remove old resize cruft.
13496
13497 2000-04-02  Andy Piper  <andy@xemacs.org>
13498
13499         * frame.c (change_frame_size_1): The introduction of gutters means
13500         that we need to allow 0 as a potential frame dimension.
13501
13502 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13503
13504         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13505         image glyph if allow_cursor.
13506         (add_hscroll_rune): Don't allow cursor to border glyph.
13507         (create_text_block): Ditto.
13508
13509         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13510         text not in buffer.
13511         (redisplay_output_layout): Call ensure_face_cachel_complete for
13512         text image glyph.
13513
13514
13515 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13516
13517         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13518
13519         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13520         not in buffer
13521
13522         * redisplay-tty.c (tty_output_display_block): Delete the routine
13523         for text image glyph
13524         * redisplay-x.c (x_output_display_block): ditto
13525         * redisplay-msw.c (mswindows_output_display_block): ditto
13526
13527 2000-02-02  Mike Alexander  <mta@arbortext.com>
13528
13529         Note: Some of these were committed by accident as part of other
13530         patches.
13531
13532         * regex.c (regex_compile): Avoid compiler warnings.
13533
13534         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13535
13536         * nt.h: Declare term_ntproc correctly.
13537
13538         * nt.c: Remove incorrect declaration of get_home_directory which
13539         is declared correctly in lisp.h.
13540
13541         * keymap.c (get_keyelt): Avoid compiler warnings.
13542         (raw_lookup_key_mapper): Avoid compiler warnings.
13543
13544         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13545
13546         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13547
13548         * filemode.c (mode_string): Avoid compiler warnings.
13549
13550         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13551         avoid warning.
13552
13553         * events-mod.h: Undef some things that winuser.h defines differently.
13554
13555         * data.c (Faset): Avoid compiler warnings.
13556
13557         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13558
13559 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13560
13561         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13562         Fall through to simple beep on error.
13563         Replace "extern" by real header file.
13564
13565         * linuxplay.c: Use nativesound.h
13566         (play_sound_data): Return error code. Be less verbose on error.
13567
13568         * sunplay.c: Use nativesound.h
13569         (play_sound_data): Return error code. Be less verbose on error.
13570
13571         * ntplay.c: Use nativesound.h
13572         (play_sound_data): Return fake error code
13573
13574         * sgiplay.c: Use nativesound.h
13575         (play_sound_data): Return error code
13576
13577         * hpplay.c: Use nativesound.h, partially implement
13578         new error code. Break compilation until finished.
13579         (play_sound_data): error code.
13580
13581         * nativesound.h (play_sound_file):
13582           (play_sound_data): Prototype in new header.
13583
13584 2000-03-31  Andy Piper  <andy@xemacs.org>
13585
13586         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13587         for toggle and radio buttons.
13588         (image_instantiator_buttons): use it.
13589
13590 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13591
13592         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13593         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13594         found. Scrollbar event probably belonged to some old config.
13595
13596 2000-03-31  Andy Piper  <andy@xemacs.org>
13597
13598         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13599         than 1.
13600         (initialize_widget_image_instance): default layout to
13601         LAYOUT_HORIZONTAL rather than 0.
13602         (widget_instantiate): reverse the item list at the end rather than
13603         every iteration.
13604         (layout_layout): re-code for the border text at the front of the
13605         item list rather than at the end.
13606         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13607         provided by the user.
13608         (widget_query_geometry): comment.
13609
13610 2000-03-30  Andy Piper  <andy@xemacs.org>
13611
13612         * glyphs-widget.c (image_instantiator_layout): allow standard
13613         widget keywords in layouts.
13614
13615         * gutter.c (output_gutter): cope with nil gutter contents.
13616
13617         * frame.c (Fset_frame_properties): add gutter docs.
13618
13619 2000-03-29  Andy Piper  <andy@xemacs.org>
13620
13621         * toolbar-msw.c (TBSTYLE_FLAT): add.
13622         (mswindows_output_toolbar): minor fiddling.
13623
13624 2000-03-29  Andy Piper  <andy@xemacs.org>
13625
13626         * gutter.c (output_gutter): force gutter size recalculation if
13627         what we are trying to display won't fit.
13628         (update_gutter_geometry): new function. A per-gutter version of
13629         update_frame_gutter_geometry.
13630         (update_frame_gutter_geometry): use it.
13631         (redraw_exposed_gutter): add extra debugging output.
13632
13633 2000-03-28  Mike Alexander  <mta@arbortext.com>
13634
13635         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13636         (pdump_file_unmap): Implement it on Windows
13637         (pdump_file_get): Save alocated handles for pdump_file_unmap
13638
13639 2000-03-28  Andy Piper  <andy@xemacs.org>
13640
13641         * gui.c (get_gui_callback): treat Quit specially.
13642
13643 2000-03-27  Andy Piper  <andy@xemacs.org>
13644
13645         * glyphs.c (image_instantiate): be careful to check in the same
13646         way we assigned.
13647
13648 2000-03-27  Didier Verna  <didier@xemacs.org>
13649
13650         * config.h.in: define the proper SMART_INCLUDE macro.
13651         handle renaming of `foo_h_path' to `foo_h_file'.
13652
13653         * database.c: ditto.
13654
13655         * emacs.c: ditto.
13656
13657         * linuxplay.c: ditto.
13658
13659         * terminfo.c: ditto.
13660
13661         * tooltalk.h: ditto.
13662
13663 2000-03-27  Andy Piper  <andy@xemacs.org>
13664
13665         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13666         gets updated whenever the face might have changed.
13667
13668 2000-03-26  Mike Alexander  <mta@arbortext.com>
13669
13670         * dumper.c (pdump_resource_free): Fix the comment.
13671
13672 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13673
13674         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13675
13676 2000-03-22  Mike Alexander  <mta@arbortext.com>
13677
13678         * dumper.c: Include Windows headers on Windows
13679         (pdump_resource_free): Add a body to the function
13680         (pdump_load): exe_name -> exe_path and add some comments.
13681
13682 2000-03-25  Mike Alexander  <mta@arbortext.com>
13683
13684         * gui.c (copy_gui_item_tree): Return a value in all cases
13685
13686 2000-03-21  Didier Verna  <didier@xemacs.org>
13687
13688         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13689         lwlib/config.h.in.
13690         (SMART_INCLUDE): new macro.
13691         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13692         the proper location.
13693
13694         * postgresql.c: use it.
13695
13696         * inline.c: ditto.
13697
13698 2000-03-24  Andy Piper  <andy@xemacs.org>
13699
13700         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13701         do this.
13702
13703 2000-03-24  Andy Piper  <andy@xemacs.org>
13704
13705         * redisplay-output.c (compare_runes): use image_instance_changed
13706         to detect changes. Do not depend on glyphs_changed, only depend on
13707         dirtiness.
13708          (redisplay_output_layout): add debug messages.
13709         (compare_runes): ditto.
13710
13711         * glyphs.h: declare new functions.
13712         (struct Lisp_Image_Instance): remove percent and associated
13713         accessors.
13714
13715         * gui.h: declare new copying functions.
13716
13717         * gui.c (copy_gui_item_tree): new function.
13718         (copy_gui_item): new function.
13719         (gui_item_id_hash): revert to standard hash.
13720         (gui_item_hash): ditto.
13721         (gui_item_hash_internal): deleted.
13722         (mark_gui_item): mark value.
13723         (gui_item_add_keyval_pair): add value.
13724         (gui_item_init): ditto.
13725         (gui_add_item_keywords_to_plist): ditto.
13726         (gui_item_equal): ditto.
13727         (syms_of_gui): add Q_value.
13728
13729         * glyphs-x.c (x_progress_gauge_update): use pending items and
13730         value for setting the state.
13731         (x_update_widget): don't set items from pending here.
13732
13733         * glyphs-widget.c (update_widget): update items here.
13734         (progress_gauge_set_property): use items for storing value. Put
13735         new value in pending items.
13736
13737         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13738         items for new value. Convert percent -> value.
13739         (mswindows_tab_control_update): don't update items here.
13740
13741         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13742         (update_subwindow): ditto.
13743         (image_instance_changed): new function. Compare hash values and
13744         past and present widget items.
13745         (image_instantiate): We more careful about where we instantiate
13746         things.
13747         (image_instantiate): add error checking.
13748
13749         * gutter.c (syms_of_gutter): use -hook.
13750
13751 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13752
13753         * console-tty.c (Fset_console_tty_input_coding_system): Use
13754         Qkeyboard.
13755         (Fset_console_tty_output_coding_system): Use Qterminal.
13756         (tty_init_console): Use Qkeyboard and Qterminal.
13757
13758 2000-03-21  Ben Wing  <ben@xemacs.org>
13759
13760         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13761         From Mike Alexander <mta@arbortext.com>.
13762
13763 2000-03-21  Ben Wing  <ben@xemacs.org>
13764
13765         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13766         process brokenness.  Proper implementation to come.
13767         * callproc.c:
13768         Rename call-process-internal to old-call-process-internal.
13769         New impl. in process.el.
13770
13771 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13772
13773         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13774
13775 2000-03-20  Andy Piper  <andy@xemacs.org>
13776
13777         * glyphs.c (full_list_hash): make hashes of the same elements in
13778         different orders return different values.
13779
13780 2000-03-20  Martin Buchholz <martin@xemacs.org>
13781
13782         * XEmacs 21.2.32 is released.
13783
13784 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13785
13786         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13787         (DFC_MALLOC_USE_CONVERTED_DATA):
13788         Add aliasing-safe casts to allow use with char* or unsigned char*
13789         lvalues.
13790
13791         * eldap.c (Fldap_open):
13792         (Fldap_search_basic):
13793         (Fldap_add):
13794         (Fldap_modify):
13795         Make C++-compilable.
13796         Make sure GCPRO'ed variables are initialized.
13797         Use temp variables to avoid repeated calls to Flength.
13798
13799 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13800
13801         * sysfile.h:
13802         Make sure PATH_MAX is always defined.
13803         Include limits.h for PATH_MAX.
13804         Deprecate use of MAXPATHLEN.
13805
13806 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13807
13808         * emacs.c: Add reinit_vars_of_fileio.
13809         * symsinit.h: Add reinit_vars_of_fileio.
13810         * fileio.c (reinit_vars_of_fileio): New.
13811         * fileio.c (Fmake_temp_name):
13812         Initialize temp_name random number from microseconds to make
13813         collisions even less likely.  Initialize always at process startup
13814         time.  (make-temp-name) used to return the same file name twice in
13815         a row when PDUMP.
13816         Random stylistic fiddling.
13817         Comment fixes.
13818
13819 2000-03-20  Andy Piper  <andy@xemacs.org>
13820
13821         * glyphs.c (image_instantiate): allow text glyphs to be
13822         instantiated in the minibuffer window.
13823
13824 2000-03-19  Andy Piper  <andy@xemacs.org>
13825
13826         * glyphs.c (image_instance_hash): be careful about which items we
13827         hash on.
13828
13829         * glyphs-widget.c (tab_control_set_property): record into pending
13830         items rather than the actual items.
13831
13832         * glyphs-x.c (x_update_widget): use pending items to update with.
13833
13834         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13835         to update with.
13836
13837         * glyphs.c (mark_image_instance): mark pending items.
13838
13839         * window.c (Fset_window_configuration): record the buffer.
13840         (Fselect_window): totally revert previous change which breaks many
13841         things.
13842
13843 2000-03-18  Andy Piper  <andy@xemacs.org>
13844
13845         * glyphs-msw.c (mswindows_tab_control_update): force selected
13846         item.
13847
13848         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13849         window domain cache, otherwise we get inconsistencies at
13850         startup. There is something fishy at startup which can lead to the
13851         minibuffer being the selected window when the gutter content is
13852         instantiated.
13853
13854         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13855         gcpros.
13856         (parse_gui_item_tree_children): ditto.
13857         (parse_gui_item_tree_item): ditto.
13858
13859         * glyphs.c (Fupdate_widget_instances): return something.
13860
13861 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13862
13863         * window.c (Fselect_window): Undo 2000-03-17 change.
13864
13865 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13866
13867         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13868         against v7.0 libraries.  Insta-coredump city until the postgres
13869         folks fix it.
13870
13871 2000-03-17  Andy Piper  <andy@xemacs.org>
13872
13873         * faces.c (complex_vars_of_faces): don't give the widget face an
13874         inherited background pixmap.
13875
13876         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13877         selected item.
13878
13879         * event-stream.c (Fdispatch_non_command_events): return something.
13880
13881         * gutter.c (output_gutter): use widget face.
13882         (clear_gutter): ditto.
13883
13884         * NEWS: adjust again.
13885
13886         * window.c (Fselect_window): make sure this runs to completion to
13887         avoid oddities with Fset_window_configuration.
13888         (Fcurrent_window_configuration): in general do not save the
13889         minibuffer as the selected window.
13890
13891         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13892
13893 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13894
13895         * emacs.c (Frunning_temacs_p): Revert previous patch.
13896         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13897
13898 2000-03-16  Andy Piper  <andy@xemacs.org>
13899
13900         * glyphs-x.c (x_tab_control_update): if no widget values then
13901         return.
13902
13903         * NEWS: update for new features.
13904
13905         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13906         synthetic event to the native system.
13907         (reinit_vars_of_event_Xt): set force_event_pending to
13908         emacs_Xt_force_event_pending.
13909
13910         * events.h (struct event_stream): add force_event_pending.
13911
13912         * specifier.c (recompute_one_cached_specifier_in_window): add
13913         comment.
13914
13915         * redisplay.c (redisplay_frame): don't call
13916         update_frame_subwindows. Reset subwindow cachels when
13917         subwindows_changed, removing this was an optimization too far.
13918
13919         * redisplay-output.c (compare_runes): reorganize so that we catch
13920         glyph changes when we want them. Set optimize_output when this
13921         would help layouts.
13922         (redisplay_output_layout): remove frame_really_changed, use
13923         optimize_output instead.
13924
13925         * redisplay-msw.c (mswindows_output_display_block): reset
13926         optimize_output after outputting a glyph.
13927         * redisplay-x.c (x_output_display_block): ditto.
13928         * redisplay-tty.c (tty_output_display_block): ditto.
13929
13930         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13931         functions.
13932         (gutter_specs_changed): do specific gutter positions.
13933         (top_gutter_specs_changed): new function. Only update the
13934         specified gutter specs.
13935         (bottom_gutter_specs_changed): ditto.
13936         (left_gutter_specs_changed): ditto.
13937         (right_gutter_specs_changed): ditto.
13938
13939         * gui.c (gui_item_hash_internal): new function, does a real hash.
13940         (gui_item_id_hash): use it.
13941         (gui_item_hash): hash the eval'ed gui_item.
13942
13943         * gui-x.c (popup_selection_callback): send an eval event to call
13944         Fupdate_widget_instances.
13945
13946         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13947         to call Fupdate_widget_instances.
13948
13949         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13950         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13951
13952         * glyphs.c: (update_frame_subwindows): deleted.
13953         (Fupdate_widget_instances): new function for updating the dirty
13954         state of widgets that might have changed.
13955         (syms_of_glyphs): add Qupdate_widget_instances.
13956         (full_list_hash): hash a list completely.
13957         (image_instance_hash): use it for items and properties.
13958
13959         * frame-msw.c (mswindows_size_frame_internal): remove unused
13960         variable.
13961
13962         * faces.h (struct face_cachel): fix comment.
13963
13964         * event-stream.c (Fdispatch_non_command_events): new
13965         function. Process non-command events, forcing an event cycle
13966         beforehand.
13967         (syms_of_event_stream): declare.
13968         (event_stream_force_event_pending): new function. Force an event
13969         on the native event queue so that an event cycle will occur next
13970         time we check.
13971
13972         * event-msw.c:
13973         (struct ntpipe_shove_stream):
13974         (mswindows_enqueue_dispatch_event):
13975         (mswindows_dequeue_dispatch_event):
13976         (mswindows_cancel_dispatch_event):
13977         (mswindows_pump_outstanding_events):
13978         (mswindows_drain_windows_queue):
13979         (mswindows_handle_paint):
13980         (mswindows_wnd_proc):
13981         (mswindows_key_to_emacs_keysym):
13982         (get_process_input_waitable):
13983         (emacs_mswindows_delete_stream_pair): re-indent file.
13984         (mswindows_need_event): do not process further fds if the windows
13985         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13986         fixes the 100% cpu problem.
13987         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13988
13989 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13990
13991         * alloc.h: New.
13992         * dumper.h: New.
13993         * dumper.c: New.
13994
13995         * emacs.c: Moved dump file searching to dumper.c.
13996         (Frunning_temacs_p): Fixed.
13997
13998         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13999         last_lrecord_type_index_assigned.
14000
14001 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14002
14003         * symsinit.h: Added reinit parameter to init_console_stream
14004         declaration.
14005
14006         * lisp.h: Added file parameter to pdump_load declaration.
14007
14008         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14009         support.  Added dump file searching.
14010
14011         * config.h.in: Added EMACS_PROGNAME.
14012
14013         * console-stream.c (init_console_stream): Fix reinitialisation
14014         when running from temacs.
14015
14016         * alloc.c (pdump): Add id support.
14017         (pdump_load): Add file parameter and signature/id support.
14018
14019         * Makefile.in.in: Add full pdump support.
14020
14021 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14022
14023         * postgresql.c: Update documentation to reflect latest code
14024         status.
14025         (print_result): Show tuple counts in printed representation when
14026         appropriate.
14027         (Fpq_put_nbytes): MULE-ize.
14028         (Fpq_get_line_async): Ditto.
14029
14030 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14031
14032         * postgresql.c (Fpq_lo_import): Fix return value.
14033         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14034
14035 2000-03-13  Ben Wing  <ben@xemacs.org>
14036
14037         * alloc.c (pdump_load):
14038         Fix compile warning under mswin.
14039
14040 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14041
14042         * postgresql.c: Mule-ization, bug fixes.
14043         Use PG_CODING to encapsulate coding system name changes.
14044         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14045         (pg-coding-system): Create.
14046
14047         (Fpq_conn_defaults): Mule-ize.
14048         (Fpq_connectdb): Mule-ize & bug fix.
14049         (Fpq_connect_start): Mule-ize.
14050         (Fpq_set_client_encoding): Mule-ize.
14051         (Fpq_finish): Document `DEAD' connection status.
14052         (Fpq_clear): Ditto.
14053         (Fpq_pgconn): Mule-ize.
14054         (Fpq_exec): Mule-ize & bug fix.
14055         (Fpq_send_query): Ditto.
14056         (Fpq_get_result): Ditto.
14057         (Fpq_res_status): Mule-ize.
14058         (Fpq_result_error_message): Mule-ize.
14059         (Fpq_ntuples): fix comments.
14060         (Fpq_fname): Mule-ize.
14061         (Fpq_fnumber): Mule-ize.
14062         (Fpq_ftype): fix comments.
14063         (Fpq_get_value): Mule-ize.
14064         (Fpq_cmd_status): Ditto.
14065         (Fpq_cmd_tuples): Ditto.
14066         (Fpq_oid_value): Ditto.
14067         (Fpq_notifies): Ditto.
14068         (Fpq_lo_import): Ditto.
14069         (Fpq_lo_export): Ditto.
14070         (Fpq_get_line): Ditto.
14071         (Fpq_put_line): Mule-ize and bug fix.
14072         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14073
14074 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14075
14076         * postgresql.c (vars_of_postgresql): Mule-ize.
14077         (Fpq_conn_defaults): Ditto.
14078
14079 2000-03-12  Ben Wing  <ben@xemacs.org>
14080
14081         * alloc.c (Fmake_byte_code):
14082         * alloc.c (debug_string_purity_print):
14083         * alloc.c (pdump_backtrace):
14084         * alloc.c (pdump_get_indirect_count):
14085         * alloc.c (pdump_register_sub):
14086         * alloc.c (pdump_register_object):
14087         * alloc.c (pdump_register_struct):
14088         * alloc.c (pdump_dump_data):
14089         * alloc.c (pdump_reloc_one):
14090         Minor cleanups.
14091
14092         * console-msw.c:
14093         * console-msw.c (GetConsoleHwnd):
14094         * console-msw.c (msw_hide_console):
14095         * console-msw.c (msw_show_console):
14096         * console-msw.c (msw_ensure_console_buffered):
14097         * console-msw.c (msw_output_console_string):
14098         * console-msw.c (console_type_create_mswindows):
14099
14100         a) Added functions to manipulate the console window for use with
14101         shell support.
14102
14103         b) Added support for writing text to the console, which is now
14104         used under Windows when xemacs is not being run non-interactively,
14105         to write text that would otherwise be destined for stdout because
14106         under these circumstances, text written to stdout tends to
14107         disappear and not be seen.
14108
14109         * console-msw.h:
14110         * event-Xt.c:
14111         * event-Xt.c (x_event_to_emacs_event):
14112         * event-Xt.c (describe_event_window):
14113         * events-mod.h (XEMACS_MOD_CONTROL):
14114         * events.c:
14115         * events.c (Fmake_event):
14116         * events.c (character_to_event):
14117         * events.c (event_to_character):
14118         * events.c (format_event_object):
14119         * events.c (Fevent_modifiers):
14120         * events.h:
14121         * events.h (struct key_data):
14122         * events.h (struct button_data):
14123         * events.h (struct misc_user_data):
14124         * frame-x.c (Fcde_start_drag_internal):
14125         * frame-x.c (Foffix_start_drag_internal):
14126         * gpmevent.c (Freceive_gpm_event):
14127         * keymap.c:
14128         * keymap.c (bucky_sym_to_bucky_bit):
14129         * keymap.c (control_meta_superify):
14130         * keymap.c (make_key_description):
14131         * keymap.c (keymap_lookup_directly):
14132         * keymap.c (create_bucky_submap):
14133         * keymap.c (keymap_store):
14134         * keymap.c (define_key_check_and_coerce_keysym):
14135         * keymap.c (define_key_parser):
14136         * keymap.c (define_key_alternate_name):
14137         * keymap.c (Fdefine_key):
14138         * keymap.c (raw_lookup_key_mapper):
14139         * keymap.c (struct map_keymap_unsorted_closure):
14140         * keymap.c (map_keymap_unsorted_mapper):
14141         * keymap.c (map_keymap_sort_predicate):
14142         * keymap.c (map_keymap_sorted):
14143         * keymap.c (accessible_keymaps_mapper_1):
14144         * keymap.c (where_is_recursive_mapper):
14145         * keymap.c (describe_map_mapper):
14146         * keymap.c (describe_map_sort_predicate):
14147         * keymap.c (describe_map):
14148         * keymap.c (complex_vars_of_keymap):
14149         And a number of other files, the key modifier preprocessor
14150         constants that xemacs uses have names that conflict with constants
14151         defined under MS Windows for other purposes, so they were renamed
14152         to begin with the prefix XEMACS_. The variables that hold such
14153         modifiers were changed to consistently be of type int to fix
14154         various compile warnings.
14155
14156         * console.c (complex_vars_of_console):
14157         * device.c:
14158         * device-msw.c:
14159         * device-msw.c (mswindows_finish_init_device):
14160         * device-msw.c (msw_get_workspace_coords):
14161         * device-msw.c (mswindows_device_system_metrics):
14162         and various other files, added support for a new
14163         device property called offset-workspace which returns the position
14164         of the upper left corner of the workspace area and goes along with
14165         the existing size-workspace property.
14166
14167         * dialog-msw.c:
14168         * dialog-msw.c (push_bufbyte_string_as_unicode):
14169         * dialog-msw.c (mswindows_popup_dialog_box):
14170         Added support for XEmacs-style accelerator specifications in
14171         button text.  Note: I didn't add support for this under X Windows,
14172         and somebody needs to do this.
14173
14174         * dialog.c:
14175         * dialog.c (Fpopup_dialog_box):
14176         Documented the support for accelerators that was just mentioned.
14177
14178         editfns.c (get_home_directory): Changed behavior under Windows
14179         when HOME not defined; former behavior was irretrievably broken.
14180
14181         * emacs.c:
14182         * emacs.c (main_1):
14183         * emacs.c (main):
14184         * minibuf.c (clear_echo_area_internal):
14185         * minibuf.c (echo_area_append):
14186         * print.c:
14187         * print.c (std_handle_out_external):
14188         * print.c (std_handle_out_va):
14189         * print.c (fatal):
14190         * print.c (write_string_to_stdio_stream):
14191         * print.c (output_string):
14192         * print.c (debug_print):
14193         * print.c (debug_backtrace):
14194         * print.c (debug_short_backtrace):
14195         Cleaned up the code that prints text to stdout so that this can be
14196         changed to output into a console window instead under MS Windows,
14197         as described above.
14198
14199         * eval.c:
14200         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14201         * eval.c (internal_catch):
14202         * eval.c (unwind_to_catch):
14203         * eval.c (throw_or_bomb_out):
14204         * eval.c (condition_case_1):
14205         * eval.c (signal_1):
14206         * eval.c (check_error_state_sanity):
14207         * eval.c (call_with_suspended_errors_1):
14208         * eval.c (call_with_suspended_errors):
14209         * eval.c (reinit_vars_of_eval):
14210         Added code to catch throw loops and check for a pesky bug that may
14211         be gone now.
14212
14213         * event-msw.c:
14214         * event-msw.c (key_needs_default_processing_p):
14215         * event-msw.c (mswindows_wnd_proc):
14216         * event-msw.c (mswindows_modifier_state):
14217         * event-msw.c (emacs_mswindows_quit_p):
14218         * event-msw.c (vars_of_event_mswindows):
14219         a) Added support for using the alt key to select menu items as is
14220         standard under MS Windows.  This is controlled using the variable
14221         menu-accelerator-enabled, just like under X Windows.  There is an
14222         option on the options menu to turn this support on.  I really
14223         think that it should be on by default under Windows, but I'm not
14224         going to make this change yet.
14225
14226         b)  Added support for dynamic display size changes under Windows.
14227
14228         * event-stream.c:
14229         * event-stream.c (maybe_echo_keys):
14230         * event-stream.c (Fnext_event):
14231         * event-stream.c (command_builder_find_leaf):
14232         * event-stream.c (lookup_command_event):
14233         * event-stream.c (execute_command_event):
14234         * event-stream.c (pre_command_hook):
14235         * event-stream.c (post_command_hook):
14236         * event-stream.c (syms_of_event_stream):
14237         * event-stream.c (vars_of_event_stream):
14238         * event-stream.c (complex_vars_of_event_stream):
14239         * events.h (struct command_builder):
14240
14241         a) Tried to clean up a little bit the horribly written x-specific
14242         accelerator code that crept into this file.  I moved this code
14243         into menubar-x.c where it belongs. I also needed to move the
14244         command builder structure into the file events.h because it is
14245         accessed directly by this accelerator code.  What I didn't do, but
14246         which should be done at some point, is to properly abstract this
14247         code using device methods instead of the kludgy way that it
14248         currently hooks into the event code.
14249
14250         b) Added the lisp variables this-command-properties and
14251         last-command- properties, which should be used to synchronize two
14252         adjacent commands in preference to playing games with the variable
14253         this-command, which is typically what happens.
14254
14255         c) Added some slightly nasty code to hook into the lisp support
14256         for shifted- motion-key selection.  This is actually necessary for
14257         somewhat complicated reasons, which are described in
14258         simple.el. (NB: I think the proper thing would be to have the code
14259         that calls the pre and post command hooks also call out to generic
14260         lisp functions in simple.el, where all built-in stuff could be
14261         added.  I will think about this more.)
14262
14263         * event-unixoid.c (poll_fds_for_input):
14264         * lread.c (readchar):
14265         * redisplay-tty.c (tty_clear_frame):
14266         * redisplay-x.c (x_get_gc):
14267         * signal.c (interrupt_signal):
14268         And a whole bunch of other files: fixed up places that printed
14269         directly to stderr to instead call the function stderr_out so that
14270         the changes I made under Windows work correctly.
14271
14272         * filemode.c (mode_string):
14273         Warning fixes.
14274
14275         * frame-msw.c:
14276         * frame-msw.c (mswindows_size_frame_internal):
14277         Fixed the computation of frame size and position to keep the frame
14278         within the workspace area, rather than within the physical
14279         dimensions of the screen, so that the frame doesn't overlap window
14280         manager decorations, such as the start menu and toolbar, typically
14281         at the bottom of the screen.
14282
14283         * frame.c (vars_of_frame):
14284         Changed the default frame title format under MS Windows to consist
14285         of buffername-XEmacs, which is standard under MS Windows.  I think
14286         it might be a good idea to change this everywhere because I think
14287         it is superior to the current frame title format, but this is the
14288         kind of change that is likely to cause some people to get annoyed,
14289         so I'm not making it.
14290
14291         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14292
14293         * gui-msw.c (mswindows_handle_gui_wm_command):
14294         Fixed compile warnings.
14295
14296         * gui-x.c:
14297         * gui-x.c (strdup_and_add_accel):
14298         * gui-x.c (button_item_to_widget_value):
14299         * gui-x.h:
14300         Added code to automatically put an accelerator onto the beginning
14301         of menu items that don't have one as is now the standard, and is
14302         described more later.  Also fixed things so that the menu item
14303         name can be an evaluated expression, again a new standard.
14304
14305         * gui.c:
14306         * gui.c (gui_item_add_keyval_pair):
14307         * gui.c (make_gui_item_from_keywords_internal):
14308         * gui.c (gui_add_item_keywords_to_plist):
14309         * gui.c (gui_item_accelerator):
14310         * gui.c (gui_name_accelerator):
14311         * gui.c (gui_item_included_p):
14312         * gui.c (gui_item_display_flush_left):
14313         * gui.c (gui_item_display_flush_right):
14314         * gui.c (parse_gui_item_tree_item):
14315         * gui.c (parse_gui_item_tree_children):
14316         * gui.c (parse_gui_item_tree_list):
14317         Mule-ized.  Cleanup.  GCPRO addition.
14318
14319         * line-number.c (buffer_line_number):
14320         * lisp.h:
14321         * lisp.h (EMACS_INT_MAX):
14322         Added the manifest constant EMACS_INT_MIN corresponding to the
14323         existing constant EMACS_INT_MAX.  This is partially to fix compile
14324         warnings under Windows, and partly for cleanliness.
14325
14326         * menubar-msw.c:
14327         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14328         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14329         * menubar-msw.c (displayable_menu_item):
14330         * menubar-msw.c (populate_menu_add_item):
14331         * menubar-msw.c (populate_or_checksum_helper):
14332         * menubar-msw.c (populate_menu):
14333         * menubar-msw.c (update_frame_menubar_maybe):
14334         * menubar-msw.c (prune_menubar):
14335         * menubar-msw.c (msw_char_is_accelerator):
14336         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14337         * menubar-msw.c (mswindows_handle_wm_command):
14338         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14339         * menubar-msw.c (mswindows_handle_wm_initmenu):
14340         * menubar-msw.c (mswindows_update_frame_menubars):
14341         * menubar-msw.c (mswindows_free_frame_menubars):
14342         * menubar-msw.c (mswindows_popup_menu):
14343         Fixed a bug in handling accelerators where an extra character
14344         would be displayed in the menu item.  Also generalized the
14345         function displayable_menu_item because it is now used by the
14346         dialog box code as well.  And finally, added code in the functions
14347         that create the menubar to extract a list of accelerators for the
14348         top level menubar, which is used in the event code to determine
14349         whether a particular alt-key combination should be used to invoke
14350         a menu item, or should be passed through to access the standard
14351         XEmacs keymap binding for this key combination.
14352
14353         Much needed GCPROing.
14354
14355         * menubar-x.c:
14356         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14357         * menubar-x.c (menu_item_descriptor_to_widget_value):
14358         * menubar-x.c (restore_in_menu_callback):
14359         * menubar-x.c (x_popup_menu):
14360         * menubar-x.c (menu_move_up):
14361         * menubar-x.c (menu_move_down):
14362         * menubar-x.c (menu_move_left):
14363         * menubar-x.c (menu_move_right):
14364         * menubar-x.c (menu_select_item):
14365         * menubar-x.c (command_builder_operate_menu_accelerator):
14366         * menubar-x.c (menu_accelerator_junk_on_error):
14367         * menubar-x.c (command_builder_find_menu_accelerator):
14368         * menubar-x.c (Faccelerate_menu):
14369         * menubar.h:
14370         Moved a whole bunch of code here that was previously in
14371         event-stream.c as described above.  There is also code connected
14372         to the new standard of adding an accelerator to the beginning of
14373         menu items that don't have one as described above and below.
14374
14375         * menubar.c:
14376         * menubar.c (menu_parse_submenu_keywords):
14377         * menubar.c (Fmenu_find_real_submenu):
14378         * menubar.c (Fnormalize_menu_item_name):
14379         * menubar.c (syms_of_menubar):
14380         * menubar.c (vars_of_menubar):
14381         * menubar.c (complex_vars_of_menubar):
14382
14383         a) Cleaned up a bunch of documentation and improved it.
14384
14385         b) XEmacs now automatically adds an accelerator onto the beginning
14386         of any menu items that don't have one.  I did this because there
14387         will inevitably be some menu items on the main menubar that don't
14388         have accelerators on them because the package that adds that
14389         particular menu item hasn't yet been fixed up to have accelerators
14390         in them and it looked rather strange to have some items with and
14391         some items without accelerators, especially since even in items
14392         without accelerators, you can, at least under windows, still
14393         access the item through an accelerator corresponding to the first
14394         character in the item's name.  If people don't like this behavior,
14395         I can add a variable to turn it off optionally, but I'm not sure
14396         this is a good idea because we really do need to have accelerators
14397         on all of the menu items, and if a package doesn't like the
14398         accelerators being put on the first character, then it should put
14399         the accelerators where they belong.
14400
14401         c) I made a behavior change, which is that the descriptor that
14402         specifies the text of the menu item, which formerly was just a
14403         string, can now also be an evaluated expression.  This makes this
14404         descriptor parallel with all of the others, which could also be
14405         evaluated expressions.  This also obviates the need for the
14406         keyword :label, which was previously listed in the documentation
14407         as unimplemented, and which was for the same purpose.
14408
14409         d) GCPROing.
14410
14411         * ntproc.c:
14412         * ntproc.c (new_child):
14413         * ntproc.c (sys_spawnve):
14414         * ntproc.c (find_child_console):
14415         * ntproc.c (sys_kill):
14416         Fixed compile warnings.  By the way, this file should really go
14417         away entirely, and this will happen as soon as Kirill makes his
14418         final round of process cleanups, which affect the function
14419         call-process.
14420
14421         * process-nt.c:
14422         * process-nt.c (struct nt_process_data):
14423         * process-nt.c (find_process_from_pid):
14424         * process-nt.c (send_signal_the_nt_way):
14425         * process-nt.c (enable_child_signals):
14426         * process-nt.c (find_child_console):
14427         * process-nt.c (send_signal_the_95_way):
14428         * process-nt.c (nt_finalize_process_data):
14429         * process-nt.c (ensure_console_window_exists):
14430         * process-nt.c (nt_create_process):
14431         * process-nt.c (nt_kill_child_process):
14432         * process-nt.c (nt_kill_process_by_pid):
14433         * process-nt.c (nt_open_network_stream):
14434         * process-nt.c (vars_of_process_nt):
14435         Copied over code from Emacs 20.5 to correctly send signals to sub-
14436         processes under Windows 95.  Also added code to automatically
14437         create and hide console window when a sub-process is created under
14438         Windows 95, which obviates the need for the separate runemacs.exe
14439         executable, and finally implemented some variables that were
14440         implemented in Emacs 20.5, but previously not in XEmacs.  These
14441         include mswindows- start-process-share-console and
14442         mswindows-start-process-inherit-error-mode. (Both of these only
14443         apply to Windows 95.)
14444
14445         * regex.c (regex_compile): Fixed a compile warning.
14446
14447         * select-msw.c:
14448         * select-msw.c (mswindows_own_selection):
14449         * select-msw.c (mswindows_get_foreign_selection):
14450         * select-msw.c (mswindows_disown_selection):
14451         * select-msw.c (console_type_create_select_mswindows):
14452         * select-msw.c (syms_of_select_mswindows):
14453         Cleaned up the file and implemented the device method
14454         selection_exists_p, which had accidentally been left out.  Also
14455         removed four lisp functions that were remnants from before the
14456         time when the selection code was properly device abstracted.
14457         These functions are no longer needed because there are generic
14458         equivalents, and because they were added recently and don't exist
14459         in FSF Emacs, I don't think there's any problem with just deleting
14460         them.
14461
14462         * sysdep.c:
14463         * sysdep.c (sys_subshell):
14464         Fixed a compile warning, although in this case there's probably
14465         something wrong with this code, and it ought to be looked into
14466         more thoroughly by somebody who understands it.
14467
14468         * window.c:
14469         * window.c (Fwindow_text_area_height):
14470         * window.c (Fwindow_width):
14471         * window.c (Fwindow_full_width):
14472         * window.c (Fwindow_pixel_width):
14473         * window.c (debug_print_window):
14474         * window.c (syms_of_window):
14475         Added functions window-text-area-height and window-full-width,
14476         which are functions for returning various width and height
14477         characteristics of a window. (One of these functions is necessary
14478         for making the file dialog box work correctly, and the other one
14479         was added for completeness.)  Also added a table to the
14480         documentation for window-height which describes the entire scheme
14481         for accessing width and height characteristics of a window.
14482
14483 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14484
14485         * nt.c (fstat): Added a comment for another problem with
14486         non-encapsulated [f]stat(), reported by Adrian Aichner
14487         <aichner@ecf.teradyne.com>.
14488
14489 2000-03-11  Andy Piper  <andy@xemacs.org>
14490
14491         * window.c (make_dummy_parent): initialize subwindow instance
14492         cache.
14493         (Fset_window_configuration): zero extent_modiff.
14494
14495 2000-03-10  Andy Piper  <andy@xemacs.org>
14496
14497         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14498         more changes can be triggered.
14499         (Fredisplay_frame): ditto.
14500         (Fredraw_device): ditto.
14501         (Fredisplay_device): ditto.
14502         (redisplay_frame): make non-static.
14503         (redisplay_frame): call update_frame_gutter_geometry outside of
14504         display proper.
14505
14506         * gutter.h: declare update_frame_gutter_geometry.
14507
14508         * redisplay.h: declare redisplay_frame.
14509
14510         * gutter.c (update_frame_gutter_geometry): move geometry changes
14511         in update_frame_gutters here. Geometry changes can only occur
14512         outside of redisplay.
14513         (update_frame_gutters): remove geometry change code.
14514         (Fredisplay_gutter_area): make sure that we are in display when we
14515         update and that we have flushed any size changes.
14516
14517 2000-03-11  Andy Piper  <andy@xemacs.org>
14518
14519         * alloc.c (pdump_dump_data): remove i & count shadows.
14520
14521 2000-02-27  Mike Alexander  <mta@arbortext.com>
14522
14523         * sysdep.h: Declare pdump_read_file
14524
14525         * sysdep.c (pdump_read_file): New function
14526
14527         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14528         dump data
14529
14530 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14531
14532         * lrecord.h: add `lrecord_type_pgsetenv'.
14533
14534 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14535
14536         * symsinit.h: declare (vars|syms)_of* functions.
14537         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14538
14539 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14540
14541         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14542
14543         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14544         GCCs.
14545
14546         * emacs.c (main_1): Call postgres initialization code.
14547
14548         * postgresql.h: New file.  PostgreSQL RDBMS support.
14549         * postgresql.c: New file.
14550
14551 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14552
14553         * redisplay-output.c (redisplay_output_display_block): Disable
14554         redundant code.
14555
14556 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14557
14558         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14559         (Fcanna_henkan_next): Ditto.
14560         (Fcanna_bunsetu_henkou): Ditto.
14561         (Fcanna_henkan_kakutei): Ditto.
14562         (Fcanna_henkan_end): Ditto.
14563         (Fcanna_henkan_quit): Ditto.
14564         (Fcanna_henkan_next): Set retun value correctly.
14565         (c2mu): Use unsigned char instead of signed char.
14566
14567 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14568
14569         * emacs.c (main_1): Always call syms_of_gui.
14570         * inline.c: include gui.h
14571
14572 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14573
14574         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14575         converted to Lisp_Object.
14576         (Qtop_bottom): New variable.
14577         (syms_of_redisplay): Initialize it.
14578         * redisplay.h (Vvisible_bell): Ditto.
14579         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14580         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14581         only flash top and bottom.
14582
14583 2000-03-08  Andy Piper  <andy@xemacs.org>
14584
14585         * buffer.c (Frename_buffer): record new buffer name the right way.
14586
14587 2000-03-08  Andy Piper  <andy@xemacs.org>
14588
14589         * glyphs.c (update_subwindow): increase hash depth so that widget
14590         items get picked up properly.
14591
14592         * redisplay-output.c (compare_runes): increase hash depth so that
14593         widget items get picked up properly.
14594
14595 2000-03-08  Andy Piper  <andy@xemacs.org>
14596
14597         * gutter.c (output_gutter): add some debug.
14598
14599         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14600         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14601         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14602
14603         * redisplay-output.c (compare_runes): use display_hash to
14604         determine if glyphs really are not the same.
14605
14606         * glyphs.c (update_subwindow): check display_hash to see if
14607         anything really needs to be updated. If not then do
14608         nothing. Record the display_hash after updating.
14609         (image_instance_equal): compare the image_instance face also.
14610
14611 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14612
14613         * redisplay.h: Fix comment style.
14614
14615 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14616
14617         * consle-msw.h (struct mswindows_frame):
14618         Added new member paint_pending to indicate whether a WM_PAINT
14619         magic event has been queued for this frame.
14620
14621         * event-msw.c (mswindows_drain_windows_queue):
14622         Don't queue a WM_PAINT magic event if one is already queued.
14623         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14624
14625         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14626
14627 2000-03-07  Didier Verna  <didier@xemacs.org>
14628
14629         * dired.c: #include `regex.h' after `sysfile.h'.
14630
14631 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14632
14633         * sound.c (init_nas_sound): Fix compiler warning.
14634
14635         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14636         (FREE_STRUCT_P):
14637         (MARK_STRUCT_AS_FREE):
14638         (MARK_STRUCT_AS_NOT_FREE):
14639         Make `gcc -fstrict-aliasing' work properly.
14640
14641 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14642
14643         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14644         (mswindows_delete_device): Call CoUnnitialize().
14645
14646         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14647
14648 2000-02-25    <CraigL@DyCon.com>
14649
14650         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14651         <errno.h>.
14652
14653         * sysdep.c: This extern declaration for environ prevents MinGW
14654         from finding the variable in CRTDLL.DLL.
14655
14656         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14657         windows headers.
14658         (SHGFI_EXETYPE): ..
14659         (WM_MOUSEWHEEL): ..
14660         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14661         definitions.
14662         (MMRESULT): Removed, now defined in cygwin's windows headers.
14663         (TIMECAPS): ..
14664         (uid_t,gid_t,pid_t,ssize_t): ..
14665         (_timeb): Removed, MinGW defines both _timeb and timeb.
14666         (HAVE_H_ERRNO): Added.
14667         (HAVE_TZNAME): Added, configure is not detecting this.
14668
14669 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14670
14671         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14672         * syntax.c (syntax_match): Use it.
14673
14674         * cmds.c: Import auto-fill-chars from FSF Emacs.
14675         (Vauto_fill_chars): New variables.
14676         (internal_self_insert): Check Vauto_fill_chars.
14677         (vars_of_cmds):
14678         Declare auto-fill-chars as a Lisp variable and initialize it.
14679
14680 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14681
14682         * fileio.c (Fmake_symbolic_link):
14683         (Ffile_symlink_p):
14684         Run handlers even if local machine doesn't have symlinks.
14685
14686 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14687
14688         * event-msw.c (mswindows_drain_windows_queue):
14689         Don't generate paint magic events for non-XEmacs frames.
14690
14691 2000-03-05  Andy Piper  <andy@xemacs.org>
14692
14693         * redisplay.c (redisplay_frame): generate_displayable_area and
14694         friends assumes that we are not in GC, we therefore have to make
14695         sure that this doesn't happen.
14696
14697         * gutter.c (calculate_gutter_size): generate_displayable_area
14698         assumes that we are not in GC, we therefore have to make sure that
14699         this doesn't happen.
14700
14701 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14702
14703         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14704
14705 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14706
14707         * redisplay.c (regenerate_window): Make sure we set a sane value
14708         for end_pos even if we jump out of the loop.
14709         (regenerate_window): Answer Ben's question :-).
14710         (start_end_of_last_line): Add may_error argument.
14711         (start_of_last_line):
14712         (end_of_last_line): Pass may_error = 0.
14713         (end_of_last_line_may_error): New function.
14714         (pixel_to_glyph_translation): Use it, so we don't crash in
14715         event_to_glyph.
14716
14717 2000-03-04  Andy Piper  <andy@xemacs.org>
14718
14719         * window.h (struct window): add gutter_extent_modiff.
14720
14721         * window.c (allocate_window): zero out gutter_extent_modiff.
14722
14723         * redisplay.h: declare sync_display_line_structs.
14724
14725         * redisplay.c (add_glyph_rune): add a better comment.
14726
14727         * redisplay-output.c (sync_display_line_structs): made non-static.
14728         (compare_runes): remove unneccesary glyph cachel access.
14729
14730         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14731
14732         * gutter.c (output_gutter): don't output the gutter if extent
14733         changes only involve extents in buffers. use 4 sets of display
14734         lines.
14735         (gutter_extent_signal_changed_region_maybe): new function. Mark
14736         extents in gutters as changed.
14737         (update_frame_gutters): use 4 sets of display lines.
14738         (reset_gutter_display_lines): ditto.
14739         (free_frame_gutters): ditto.
14740         (redraw_exposed_gutter): force output of gutters.
14741
14742         * frame.h (struct frame): add 4 sets of gutter display lines.
14743
14744         * extents.c: (extent_changed_for_redisplay): signal changes to
14745         extents in strings in the gutter as well as extents in buffers.
14746
14747 2000-03-02  Andy Piper  <andy@xemacs.org>
14748
14749         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14750
14751         * frame.c (Fmake_frame): make sure the gutters get initialized
14752         after the frame is visible.
14753         (set_frame_selected_window): re-arrange compilation macros a
14754         little.
14755         (change_frame_size_1): mark gutters changed.
14756
14757         * device.c (Fset_device_class): mark gutters changed.
14758
14759 2000-03-01  Andy Piper  <andy@xemacs.org>
14760
14761         * window.c (window_top_frame_gutter_height): deleted.
14762         (window_bottom_frame_gutter_height): ditto.
14763         (window_left_frame_gutter_height): ditto.
14764         (window_right_frame_gutter_height): ditto.
14765         (window_top_gutter_height): don't use them.
14766         (window_bottom_gutter_height): ditto.
14767         (window_left_gutter_width): ditto.
14768         (window_right_gutter_width): ditto.
14769         (Fsplit_window): ditto.
14770         (Fwindow_pixel_edges): don't use border dimensions here.
14771
14772         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14773         (update_scrollbar_instance): ditto.
14774
14775         * redisplay.c (generate_modeline): don't take gutters into account.
14776         (generate_modeline): ditto.
14777         (redisplay_frame): small gutter display optimization.
14778
14779         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14780
14781         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14782         gutters into account.
14783
14784         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14785         for window position and type.
14786
14787         * gutter.c (get_gutter_coords): fix for frame gutters.
14788         (update_frame_gutters): update frame geometry if the gutters have
14789         changed.
14790         (init_frame_gutters): record current gutter geometries.
14791
14792         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14793         var.
14794         (mswindows_widget_instantiate): ditto.
14795
14796         * frame.h (struct frame): add current_gutter_bounds.
14797
14798         * frame.c (change_frame_size_1): position window and minibuffer
14799         appropriately taking into account the frame gutters.
14800
14801         * frame-x.c: (x_initialize_frame_size): take into account the
14802         frame gutters.
14803
14804 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14805
14806         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14807
14808 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14809
14810         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14811
14812 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14813
14814         * file-coding.c (reset_decoding_stream): Clear previous
14815         detection state when autodetect.
14816
14817 2000-02-29  Didier Verna  <didier@xemacs.org>
14818
14819         * extents.c (set_extent_glyph_1): don't require extents to be
14820         attached.
14821
14822 2000-02-27  Andy Piper  <andy@xemacs.org>
14823
14824         * gutter.c (Fset_default_gutter_position): don't default left and
14825         right gutter visibility to t.
14826         (Fset_default_gutter_position): run
14827         default-gutter-position-changed-hook.
14828         (syms_of_gutter): add default-gutter-position-changed-hook.
14829
14830 2000-02-26  Andy Piper  <andy@xemacs.org>
14831
14832         * specifier.c (Fmake_specifier): add gutter references.
14833
14834         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14835
14836         * lisp.h: declare Fvalid_plist_p.
14837
14838         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14839         as changed.
14840         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14841         well as its visibility so that it gets reconstructed.
14842         (construct_window_gutter_spec): new function. Construct a string
14843         to be displayed in the gutter from a plist of strings. Take care
14844         to only use elements that are declared as visible.
14845         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14846         WINDOW_GUTTER.
14847         (gutter_validate): allow plists of strings in the specifier.
14848         (gutter_specs_changed): construct the real_gutter from the gutter
14849         specs using construct_window_gutter_spec.
14850         (gutter_visible_validate): gutter-visible is a new specifier type.
14851         (Fgutter_visible_specifier_p): new function for the new specifier.
14852         (syms_of_gutter): declare gutter-visible and
14853         Fgutter_visible_specifier_p.
14854         (specifier_type_create_gutter): intitalize new gutter-visible
14855         specifier.
14856         (reinit_specifier_type_create_gutter): ditto.
14857         (specifier_vars_of_gutter): use new specifier type for gutter
14858         visibility.
14859         (init_frame_gutters): construct real_gutter correctly.
14860         (Fgutter_specifier_p): beef up documentation.
14861         (Fgutter_size_specifier_p): ditto.
14862
14863         * winslots.h: add real_gutter slots.
14864
14865 2000-02-25  Andy Piper  <andy@xemacs.org>
14866
14867         * device-msw.c: Be kind to older cygwin versions. From Raymond
14868         Toy <toy@rtp.ericsson.se>.
14869
14870         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14871         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14872
14873 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14874
14875         * elhash.c (MARK_OBJ): Practice macro hygiene.
14876
14877 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14878
14879         * miscplay.c: s/__inline__/inline/g;
14880         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14881         (get_device_compdc): INLINE ==> static inline
14882         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14883         find -name '*.h' | \
14884         xargs global-replace \
14885         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14886
14887 2000-02-25  Andy Piper  <andy@xemacs.org>
14888
14889         * window.c (window_top_frame_gutter_height): new function.
14890         (window_top_window_gutter_height): ditto.
14891         (window_top_gutter_height): use them.
14892         (window_bottom_frame_gutter_height): new function.
14893         (window_bottom_window_gutter_height): ditto.
14894         (window_bottom_gutter_height): use them.
14895         (window_left_window_gutter_width): new function.
14896         (window_left_frame_gutter_width): ditto.
14897         (window_left_gutter_width): use them.
14898         (window_right_window_gutter_width): new function.
14899         (window_right_frame_gutter_width): ditto.
14900         (window_right_gutter_width): use them.
14901         (window_pixel_height): new function. calulate window pixel height
14902         with frame gutter involvement.
14903         (Fsplit_window): calculate new sizes taking frame gutters into
14904         account.
14905         (window_char_height_to_pixel_height): don't include frame gutters.
14906         (window_char_height): use window_pixel_height.
14907         (window_pixheight): rename from window_pixel_height.
14908         (change_window_height): use it.
14909         (window_pixel_height_to_char_height): don't include frame gutters.
14910         (window_char_width_to_pixel_width): ditto.
14911
14912 2000-02-25  Andy Piper  <andy@xemacs.org>
14913
14914         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14915         if it is.
14916
14917 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14918
14919         * alloc.c (staticpro):
14920         (staticpro_nodump):
14921         (dumpstruct):
14922         (dumpopaque):
14923         (pdump_wire):
14924         (pdump_wire_list):
14925         (compact_string_chars):
14926         (pdump_dump_wired):
14927         Convert:  if (foo) abort();  ==>  assert (! foo);
14928
14929         * eldap.c (Fldap_search_basic):
14930         (Fldap_add):
14931         (Fldap_modify):
14932         (Fldap_delete):
14933         Fix compiler warnings, and possible crashes if (random) return
14934         value were to be used.
14935
14936 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14937
14938         * device-msw.c: Workaround ResetDC failure.
14939
14940         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14941         applying a devmode.
14942
14943         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14944         (mswindows_text_width): Do not start printer page.
14945
14946         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14947
14948         * glyphs-msw.c: Added image methods to msprinter console and
14949         msprinter-specific image instantiation.
14950
14951 2000-02-20  Mike Alexander  <mta@arbortext.com>
14952
14953         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14954         to avoid crashes when selection-sets-clipboard is on
14955         (mswindows_own_selection): ditto
14956
14957 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14958
14959         * glyphs-msw.c:
14960         * redisplay-msw.c (get_frame_dc):
14961         (get_frame_compdc):
14962         * console-msw.h:
14963         * device-msw.c (mswindows_init_device):
14964         (mswindows_delete_device):
14965         (msprinter_init_device):
14966         (msprinter_delete_device):
14967         * frame-msw.c (mswindows_init_frame_1):
14968         (mswindows_delete_frame):
14969         (msprinter_init_frame_3):
14970         (msprinter_delete_frame): Move compatible DC to device object from
14971         frame object, for both mswindows and msprinter. Only one at a time
14972         is needed, it is a real waste to have one per frame!
14973
14974 2000-02-23  Andy Piper  <andy@xemacs.org>
14975
14976         * glyphs.c: add dynamic width and height elements.
14977         (image_instance_equal): ditto.
14978
14979         * glyphs-widget.c (widget_query_geometry): calculate width and
14980         height dynamically if required.
14981         (initialize_widget_image_instance): initialize dynamic dimensions.
14982         (widget_instantiate): pick-up dynamic dimensions.
14983
14984         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14985         dynamic determination. Add appropriate macros.
14986
14987         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14988         dimensions safe.
14989         (WINDOW_GUTTER_SIZE): ditto.
14990         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14991
14992         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14993         inline.
14994         (get_frame_dc): ditto.
14995
14996         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14997         here.
14998
14999 2000-02-23  Martin Buchholz <martin@xemacs.org>
15000
15001         * XEmacs 21.2.31 is released.
15002
15003 2000-02-22  Ben Wing <ben@xemacs.org>
15004
15005         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15006
15007 2000-02-22  Andy Piper  <andy@xemacs.org>
15008
15009         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15010
15011 2000-02-21  Mike Sperber <mike@xemacs.org>
15012
15013         * .dbxrc:
15014         * .gdbinit:
15015         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15016         variables.
15017
15018 2000-02-21  Mike Sperber <mike@xemacs.org>
15019
15020         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15021
15022 2000-02-21  Martin Buchholz <martin@xemacs.org>
15023
15024         * XEmacs 21.2.30 is released.
15025
15026 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15027
15028         Performance hacking.
15029         * *.c (syms_of_*):
15030         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15031         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15032         * emacs.c (main_1):
15033         * lisp.h (DEFUN):
15034         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15035         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15036         * symeval.h (DEFVAR_SYMVAL_FWD):
15037         * symbols.c (guts_of_unbound_marker):
15038         Make all c_readonly objects also lisp_readonly and marked for life.
15039         * lrecord.h (struct lrecord_implementation):
15040         Document flags better.
15041         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15042         * lrecord.h (DECLARE_LRECORD):
15043         * lrecord.h (XSETRECORD):
15044         * lrecord.h (RECORDP):
15045         * lrecord.h (RECORD_TYPEP):
15046         * lrecord.h (RECORD_MARKER): New.
15047         * lrecord.h (error_check_*):
15048         * lrecord.h (CONCHECK_NONRECORD):
15049         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15050         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15051         * lrecord.h (set_lheader_implementation):
15052         * lrecord.h (enum lrecord_type): New.
15053         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15054         * alloc.c (disksave_object_finalization_1):
15055         * alloc.c (mark_object):
15056         * alloc.c (lrecord_type_index):
15057         * alloc.c (tick_lcrecord_stats):
15058         * alloc.c (Fgarbage_collect):
15059         * alloc.c (init_alloc_once_early):
15060         * alloc.c (pdump_load):
15061         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15062         * alloc.c (lrecord_type_index): Delete.
15063         Make lisp object type indexes be constant.
15064           Makes (byte-compile) 5% faster.
15065         Put all marker functions into their own array.
15066           Makes (garbage-collect) 5% faster.
15067         Optimize SYMBOL_VALUE_MAGIC_P.
15068           Makes (byte-compile) 2-3% faster.
15069         * config.h.in (gc_checking_assert): New.
15070         * alloc.c: Use gc_checking_assert().
15071         * .dbxrc: Make compatible with new object type implementation.
15072         * .gdbinit: Make compatible with new object type implementation.
15073         * alloc.c: Delete all symbols defined only for debugging, such as
15074         Lisp_Type_Vector and lrecord_charset.
15075
15076 2000-02-21  Andy Piper  <andy@xemacs.org>
15077
15078         * gui-msw.c (Fmswindows_shell_execute): fix file location
15079         problems.
15080
15081         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15082         unshowing so that set_window_buffer doesn't undo
15083         kill_buffer_hook's hard work.
15084
15085         * glyphs-widget.c (tab_control_query_geometry): don't count the
15086         first item when calculating geometry.
15087
15088         * glyphs.c (map_subwindow): remove redundant code.
15089         (update_frame_subwindows): be more circumspect about when to
15090         update subwindows.
15091
15092         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15093         when items haven't changed. Update faces if faces have changed as
15094         well as just the widget face.
15095         (x_tab_control_update): Update faces if faces have changed as well
15096         as just the widget face.
15097
15098 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15099
15100         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15101         registration.
15102         (build_syscolor_string): Use mswindows_color_to_string to try to
15103         get a named color.
15104         (mswindows_device_system_metrics): Reverse the foreground and
15105         background colors so that they match the documentation.
15106
15107         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15108         they match the default Windows palette.
15109         (mswindows_color_to_string): New function.
15110
15111 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15112
15113         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15114
15115 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15116
15117         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15118         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15119
15120         * symbols.c (init_symbols_once_early): Removed obsolete
15121         DATA_SEG_BITS related kludge.
15122         (defvar_magic): Ditto.
15123
15124         * malloc.c: Removed obsolete DATA_SEG_BITS
15125         * ralloc.c: Ditto.
15126         * mem-limits.h: Ditto.
15127
15128         * Makefile.in.in: Removed obsolete HAVE_SHM
15129         * emacs.c: Ditto.
15130
15131 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15132
15133         *  device-msw.c (mswindows_delete_device): Free DDE string
15134         handles.
15135
15136 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15137
15138         * keymap.c (get_keyelt):
15139         * unexnt.c (unexec):
15140         * vm-limit.c (memory_warnings):
15141         * ntheap.c (recreate_heap):
15142         * ntheap.h (UNINIT_PTR):
15143         * select-msw.c (Fmswindows_get_clipboard):
15144         (Fmswindows_set_clipboard):
15145         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15146         * objects-msw.c:
15147         * menubar-msw.c (displayable_menu_item):
15148         * glyphs-msw.c:
15149         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15150         * sysdep.c (sys_subshell):
15151         * process-nt.c (nt_create_process):
15152         * nt.c (normalize_filename):
15153         (dostounix_filename):
15154         (unixtodos_filename):
15155         * ntproc.c (win32_executable_type):
15156         * ntplay.c (play_sound_data_1):
15157         (play_sound_file):
15158         * editfns.c (get_home_directory):
15159         * event-msw.c (struct winsock_stream):
15160         (mswindows_dde_callback):
15161         * device-msw.c (msprinter_init_device):
15162         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15163
15164         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15165         mswindows_clear_toolbar were swapped!
15166
15167         * objects-msw.c:(colormap_t):
15168         (fontmap_t):
15169         * emacs.c (struct standard_args): Fixed const jumble.
15170
15171         * glyphs-widget.c (update_widget): Fixed comparison notation.
15172
15173         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15174
15175         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15176         __declspec(noreturn) syntax.
15177
15178 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15179
15180         * eldap.c (Fldap_open):
15181         (Fldap_search_basic):
15182         (Fldap_add):
15183         (Fldap_modify):
15184         Use new coding system conversion macros.
15185
15186 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15187
15188         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15189
15190 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15191
15192         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15193         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15194
15195         * eldap.c (Qadd, Qreplace): New constant symbols
15196         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15197         interruptions by XEmacs signals
15198         Remove unnecessary calls to slow_down_interrupts and
15199         speed_up_interrupts
15200         (Fldap_search_basic): Renamed from Fldap_search_internal
15201         Added new optional parameter VERBOSE that triggers the
15202         display of progress messages
15203         Remove unnecessary calls to slow_down_interrupts and
15204         speed_up_interrupts
15205         LDAP result code analysis rewritten
15206         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15207         (syms_of_eldap): Define the new symbols and functions
15208
15209
15210 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15211
15212         * realpath.c: Determine PATH_MAX maximally portably.
15213
15214         * insdel.c (bytecount_to_charcount): Optimize.
15215         The function used to be optimized for entirely ASCII sequences.
15216         Now it is optimized for successive characters from the same
15217         charset.  This also wins big for _mostly_ ASCII sequences.
15218
15219         * fileio.c (Ffile_truename): convert return from realpath() using
15220         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15221         - Rewrite GCPROing slightly.
15222
15223         * sysdep.c (sys_open): Do filename conversion, like all other
15224         sys_* functions.  Fixes bug:
15225         (let ((file-name-coding-system 'iso-8859-2))
15226            (write-region x y latin2-name))
15227         ==> writes filename using internal encoding.
15228
15229 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15230
15231         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15232         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15233         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15234         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15235         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15236         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15237         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15238         (CONST_IF_NOT_DEBUG): Delete.
15239         * alloc.c (this_one_is_unmarkable): Delete.
15240         (mark_object): Don't check for this_one_is_unmarkable. Use the
15241         c_readonly flag instead.
15242         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15243
15244 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15245
15246         * event-msw.c (mswindows_drain_windows_queue):
15247         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15248         away redundant repaint events.
15249
15250 2000-02-17  Andy Piper  <andy@xemacs.org>
15251
15252         * redisplay.h: declare mark_redisplay_structs.
15253
15254         * redisplay.c (redisplay_window):
15255         (redisplay_frame): don't check subwindows_state_changed.
15256         (mark_redisplay): mark gutters here.
15257
15258         * glyphs.c: (instantiate_image_instantiator): always layout if we
15259         haven't done so already.
15260         (allocate_image_instance): don't mark as dirty.
15261         (update_subwindow): bind inhibit_quit.
15262
15263         * gutter.c (mark_gutters): new function.
15264
15265         * glyphs-x.c (x_update_widget): Always resize to get round a
15266         widget bug.
15267
15268         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15269         breaking absolutely everything.
15270
15271         * gutter.h: declare mark_gutters.
15272
15273 2000-02-16  Martin Buchholz <martin@xemacs.org>
15274
15275         * XEmacs 21.2.29 is released.
15276
15277 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15278
15279         * fns.c (size_bit_vector): Fix computation of the size.
15280
15281 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15282
15283         * *.[ch]: Change CONST to const globally.
15284         find -name '*.[ch]' | \
15285         xargs global-replace \
15286         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15287         - Remove vestigial references to CONST_IS_LOSING
15288
15289 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15290
15291         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15292         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15293         events instead of dispatching them directly.
15294         (mswindows_handle_paint): New function to do repainting.
15295         (mswindows_wnd_proc):
15296         (emacs_mswindows_handle_magic_event): Call above function.
15297
15298 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15299
15300         * objects-msw.c (mswindows_create_font_variant): Return the new
15301         font handle.
15302         (initialize_font_instance): Get font metrics from the underlined
15303         variant of the font to cope with the case where the underlined
15304         font has a bigger descent.
15305
15306 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15307
15308         * gui.c (gui_item_accelerator): Return the first underlined
15309         character in item name.
15310
15311 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15312
15313         * lisp.h: Added Qprinter.
15314
15315         * general.c (syms_of_general): Initialized it.
15316
15317         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15318         (get_frame_dc):
15319         (get_frame_compdc): Made inline.
15320
15321         * console.h (struct console_methods): Added eject_page method.
15322
15323         * frame.h: Added FRAME_DISPLAY_P and friends.
15324         Aligned backslahes in many macros in more readable fashion.
15325         Added page_number to struct frame, and an accessor macro
15326         for it.
15327
15328         * defice.h: Added DEVICE_DISPLAY_P and friends.
15329
15330         * device.c (Fdevice_printer_p): Used these.
15331
15332         * frame.c (allocate_frame_core): Initialize page number.
15333         (Fprint_job_page_number):
15334         (Fprint_job_eject_page): Implemented.
15335
15336         * frame-msw.c (msprinter_eject_page): Added method.
15337         (msprinter_start_page): Added.
15338
15339         * window.c (Fwindow_truncated_p): Fixed docstring.
15340         (Fwindow_last_line_visible_height): Implemented.
15341
15342 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15343
15344         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15345
15346 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15347
15348         * syntax.c (scan_words): Always advance at least one character.
15349
15350 2000-02-13  Andy Piper  <andy@xemacs.org>
15351
15352         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15353         to make sure the glyph is in the cachels.
15354
15355         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15356         global image instance flag.
15357         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15358         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15359
15360         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15361         (Fset_image_instance_property): mark layout as changed.
15362         (invalidate_glyph_geometry_maybe): mark layout as changed.
15363         (glyph_width): use new NEEDS_LAYOUT macro.
15364         (glyph_ascent): ditto.
15365         (glyph_descent): ditto.
15366         (glyph_height): ditto.
15367         (image_instance_layout): mark layout as clean after laying out.
15368         (update_subwindow): don't mark layout as clean here.
15369
15370         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15371         should no longer be needed.
15372
15373         * glyphs-x.c (x_update_widget): sanitize asserts.
15374         (x_finalize_image_instance): sanitize assignment to widgets.
15375
15376         * glyphs-widget.c (widget_instantiate): don't need to clear the
15377         layout flag here.
15378
15379 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15380
15381         * sysdep.c (getcwd): Use standard prototype.
15382         * sysdep.h (getcwd): Use standard prototype.
15383
15384         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15385         (sequence, start, end).
15386         Remove redundant type checking.
15387         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15388         view of `caller-protects') to avoid a crash where the real fix was
15389         found elsewhere.
15390
15391 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15392
15393         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15394
15395         * s/sol2.h: Remove feature macro initialization.
15396
15397         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15398         (vector_hash): New.  Code from internal_hash.
15399         * lrecord.h:
15400         Fix up allocation subsystem comments.
15401
15402         * config.h.in: Add __EXTENSIONS__ for Solaris.
15403
15404         * systime.h (EMACS_GETTIMEOFDAY): New.
15405         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15406         Remove Solaris-specific code.
15407         Use void* for the (ignored) second arg for gettimeofday().
15408
15409         * elhash.c (hash_table_hash): Implement it, finally.
15410         * elhash.c:  Use hashcode_t.
15411
15412         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15413         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15414
15415         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15416         * fns.c (size_bit_vector):
15417         * alloc.c (size_vector):
15418         (make_vector_internal):
15419         (make_bit_vector_internal):
15420         (sweep_bit_vectors_1):
15421         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15422
15423 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15424
15425         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15426         Include strings.h to avoid warnings for bzero and strcasecmp.
15427
15428 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15429
15430         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15431         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15432
15433         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15434         sequence.
15435
15436 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15437
15438         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15439         use a value field instead.
15440         (symbol_value_forward_forward): Use value field.
15441         (DEFVAR_SYMVAL_FWD): Use value field.
15442         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15443         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15444         (DEFVAR_CONST_INT): Ditto.
15445         (DEFVAR_BOOL): Ditto.
15446         (DEFVAR_CONST_BOOL): Ditto.
15447         (DEFVAR_INT_MAGIC): Ditto.
15448         (DEFVAR_BOOL_MAGIC): Ditto.
15449
15450         * symbols.c (guts_of_unbound_marker): Use value field.
15451         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15452         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15453
15454         * lisp.h: Declare dumpopaque and noninteractive1.
15455
15456         * alloc.c (dumpopaque): Added.
15457         (pdump_dump_opaquevec): Added.
15458         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15459         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15460         noninteractive.
15461
15462 2000-02-10  Andy Piper  <andy@xemacs.org>
15463
15464         * glyphs.c (image_instance_layout): if the size changes, mark it
15465         as such.
15466
15467         * redisplay-output.c (redisplay_output_layout): Update the
15468         subwindow here.
15469         (redisplay_output_subwindow): ditto.
15470
15471         * glyphs.c (update_subwindow): make sure we reset flags for
15472         layouts as well as everything else.
15473
15474         * glyphs-widget.c (layout_layout): don't need to set the instances
15475         dimensions here.
15476
15477 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15478
15479         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15480         not HAVE_DLOPEN, which is a lower-level thing.
15481
15482         * .cvsignore: Ignore gmon.out
15483
15484 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15485
15486         * .cvsignore: Ignore portable dumper xemacs.dmp file
15487
15488 2000-02-09  Andy Piper  <andy@xemacs.org>
15489
15490         * redisplay-output.c (redisplay_output_layout): be more clever
15491         about when we output based on the changed flags.
15492
15493         * glyphs.h (struct image_instantiator_methods): add update_method.
15494         (struct Lisp_Image_Instance): add changed flags. Declare new
15495         macros for manipulating them.
15496
15497         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15498         (image_instance_parent_glyph): find an image_instance's parent
15499         glyph or image_instance.
15500         (image_instance_layout): mark the size as changed.
15501         (set_image_instance_dirty_p): new function. mark an image
15502         instance, plus all of its parents, as dirty.
15503         (Fset_image_instance_property): use it.
15504         (Fglyph_animated_timeout_handler): use it.
15505         (update_subwindow): call update_widget and device methods for
15506         update_subwindow. Mark all changed flags as clean.
15507         (Fresize_subwindow): mark size as changed.
15508
15509         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15510         failures.
15511         (x_update_subwindow): only resize subwindows here.
15512         (x_update_widget): new function. Update all changed properties of
15513         a widget.
15514         (x_resize_subwindow): deleted.
15515         (x_widget_set_property): deleted.
15516         (x_progress_gauge_set_property): deleted.
15517         (x_progress_gauge_update): new function. Implement recorded
15518         changes.
15519         (x_tab_control_update): ditto.
15520         (x_tab_control_set_property): deleted.
15521         (console_type_create_glyphs_x): declare new functions.
15522         (image_instantiator_format_create_glyphs_x): ditto.
15523
15524         * glyphs-widget.c (widget_set_property): mark text changed.
15525         (update_widget): new function. Update properties of a widget.
15526         (widget_instantiate): for layouts make sure we set their
15527         children's parent correctly.
15528         (tab_control_set_property): new function. Record changes that will
15529         take place under redisplay's control.
15530         (progress_gauge_set_property): ditto.
15531         (image_instantiator_progress_guage): declare new functions.
15532         (image_instantiator_tab_control): ditto.
15533
15534         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15535         now.
15536         (mswindows_update_widget): new function. Update all properties on
15537         a widget that have changed.
15538         (mswindows_button_update): new function. Update a button's set
15539         state.
15540         (mswindows_tab_control_update): new function. Update the items in
15541         a tab.
15542         (mswindows_tab_control_set_property): deleted.
15543         (mswindows_progress_gauge_update): new function. Update the
15544         progress gauge's progress.
15545         (mswindows_widget_set_property): deleted. This is all done
15546         asynchronously now.
15547         (mswindows_progress_gauge_set_property): ditto.
15548         (console_type_create_glyphs_mswindows): declare new methods.
15549         (image_instantiator_format_create_glyphs_mswindows): ditto.
15550
15551         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15552         (msprinter_set_frame_properties): ditto.
15553
15554         * console.h (struct console_methods): Add update_widget_method.
15555
15556 2000-02-09  Andy Piper  <andy@xemacs.org>
15557
15558         * gui-msw.c (Fmswindows_shell_execute): Make
15559         mswindows-shell-execute industrial strength.
15560
15561 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15562
15563         * lrecord.h: Make macro argument `props' match member function `plist'.
15564         * fns.c (Fget):
15565         * fns.c (Fput):
15566         * fns.c (Fremprop):
15567         * fns.c (Fobject_plist):
15568         * alloc.c:
15569         * symbols.c:
15570         Object property list frobbing cleanup.
15571         - Allow any lisp object (compared with `eq'), not just symbols, as
15572           keys in object plists.
15573         - Move symbol plist frobbing into symbols.c, where it belongs.
15574         - Move string plist frobbing into alloc.c, where it belongs.
15575         - Everything's an lrecord now, so no need to test for symbolp, etc.
15576         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15577
15578         * extents.c: Reorder code to remove declarations.
15579
15580         * frame.h (store_in_alist): Remove useless declaration.
15581
15582 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15583
15584         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15585         * config.h.in: Add HAVE_XCONVERTCASE.
15586
15587 2000-02-07  Andy Piper  <andy@xemacs.org>
15588
15589         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15590         it breaks many things.
15591
15592 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15593
15594         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15595         actually can start a common comment type.
15596         * src/syntax.h (SYNTAX_END_P): ditto for end.
15597
15598 2000-02-07  Martin Buchholz <martin@xemacs.org>
15599
15600         * XEmacs 21.2.28 is released.
15601
15602 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15603
15604         * event-Xt.c (x_keysym_to_character): New.
15605         (maybe_define_x_key_as_self_inserting_character): New.
15606         (x_has_keysym): New.
15607         Auto-define all keys on the keyboard as self-insert-key.
15608
15609 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15610
15611         * menubar.c (vars_of_menubar): A small code simplification.
15612
15613         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15614
15615         * ExternalShell.c:
15616         * ExternalClient.c:
15617         * EmacsShell-sub.c:
15618         * EmacsManager.c:
15619         * EmacsFrame.c:
15620         Use consistent style for specifying X resources.
15621
15622         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15623         This makes (dontusethis-set-symbol-value-handler) actually usable.
15624
15625         * lrecord.h (lrecord_decription_type):
15626         * alloc.c (pdump_register_sub):
15627         (pdump_dump_data):
15628         (pdump_reloc_one):
15629         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15630         Comply with XEmacs coding style.
15631         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15632         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15633
15634         * keymap.c (Faccessible_keymaps):
15635         Make (accessible-keymaps map "\C-h") do the Right Thing.
15636         Make (accessible-keymaps map []) do the Right Thing.
15637         Make (accessible-keymaps map "") do the Right Thing.
15638         (check_keymap_definition_loop): New function.
15639         (keymap_store_internal): Keep luser from shooting self in foot,
15640           via (define-key ctl-x-4-map "p" global-map).
15641         Remove fullness slot from struct Lisp_Keymap, since hash tables
15642         are now reliable.
15643         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15644
15645 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15646
15647         * redisplay.c (init_redisplay): Fix small memory leak.
15648         * elhash.h:
15649         * elhash.c (pdump_reorganize_hash_table):
15650         Rename from reorganize_hash_table. Change prototype.
15651         Reuse the original memory for hentries.  Save 100k.
15652         * alloc.c (PDUMP_READ): new macro.
15653         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15654         * alloc.c: No need to #ifndef before #undef.
15655
15656         * print.c: Allow debug_print() to print readably by modifying
15657         debug_print_readably.  Use consistent variable names.
15658
15659         * .dbxrc: Try to get things to work even if stopped in a function
15660         without source available by explicitly specifying source files.
15661 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15662
15663         * unexnt.c (_start): Removed bogus code which caused loading heap
15664         from differrent executable file.
15665         Removed bogus assignment to _fmode, which caused inconsistencies.
15666
15667 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15668
15669         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15670         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15671         Do not preliminary `#define signal sigset'.
15672
15673         * systime.h: Do not prototype environ on windows nt and cygwin,
15674         this conflicts with system header.
15675
15676         * syssignal.h: Use correct define for WINDOWSNT
15677
15678         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15679         with system header.
15680
15681         * sysdep.c (near start of file): Fixed commentary and rearranged
15682         ifdefs in readable order.
15683         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15684         (start_of_text):
15685         (end_of_text):
15686         (end_of_data): Do not compile in if using PDUMP.
15687
15688         * symsinit.h: Prototyped vars_of_nt().
15689
15690         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15691         (find_child_console): Use it.
15692         (sys_kill): Use it.
15693
15694         * ntheap.h: Do not extern os_subtype.
15695
15696         * ntheap.c (cache_system_info): Do not cache unneeded:
15697         nt_major_version, nt_minor_version and os_subtype.
15698         (recreate_heap): Do not compile in when PDUMPing.
15699
15700         * nt.c (geteuid and friends): Use the new varibale
15701         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15702         (init_user_info): Removed the above mentioned hackery.
15703         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15704         stat has been fixed in the C runtime.
15705         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15706
15707         * file-coding.c (struct file_coding_dump): Do not define
15708         ucs_to_mule_table in the struct if not MULE.
15709         (struct struct lrecord_description fcd_description_1): Do not dump
15710         the above.
15711
15712         * emacs.c (main_1): Call vars_of_nt().
15713         (right before Fdump_emacs_data): Don't need lastfile if using both
15714         portabe dumper and system malloc.
15715
15716         * alloc.c (Fmemory_limit): Conditionalized out.
15717         (pdump): Use OPEN_BINARY for the portable dump file.
15718         (pdump_load): Ditto.
15719
15720 2000-02-02  Mike Alexander  <mta@arbortext.com>
15721
15722         * nt.c (convert_time): Set tm_isdst before calling mktime and
15723         avoid calling it at all if the compiler supports 64 bit integers.
15724         Also initialize utc_base_ft before using it.
15725
15726 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15727
15728         * frame.c (change_frame_size_1): Take f->internal_border_width
15729         into consideration when calculating the width of the frame.
15730
15731 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15732
15733         * window.c (frame_min_height):
15734         (frame_size_valid_p):
15735         (frame_pixsize_valid_p): Added.
15736         (check_frame_size): Generalized.
15737
15738         * window.h: Prototyped the above.
15739
15740         * lisp.h:
15741         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15742         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15743         Deleted Vwin32_* and Vbinary_process_* unused variables.
15744
15745         * device-msw.c (msprinter_init_device): Do not get printer font
15746         list; Added DEVMODE functions.
15747
15748         * frame-msw.c: Added lots of printer code.
15749
15750         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15751         general.c.
15752
15753         * console-msw.h: Added more msprinter device private slots.
15754
15755 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15756
15757         * event-msw.c (key_needs_default_processing_p): Added.
15758         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15759
15760 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15761
15762         * glyphs.c (image_instance_layout): Mark image instance as clean
15763         after layout.
15764         (glyph_dirty_p): Removed redundant function.
15765         (invalidate_glyph_geometry_maybe): Added.
15766         (update_glyph_cachel_data): Call it.
15767
15768         * glyphs.h: Prototyped it.
15769
15770         * redisplay.c (add_glyph_rune): Call it.
15771         (redisplay_window): Reset glyphs cachels when frame faces have
15772         changed, thus forcing recomputation of built-in border glyphs.
15773
15774 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15775
15776         * Makefile.in.in: Make portable dumper and purify play well together.
15777         Add imperfect, but better than nothing, support for pdump.
15778         Remove xemacs.dmp when temacs is re-generated.
15779         Don't ignore errors when dumping xemacs.
15780
15781         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15782
15783 2000-01-28  Andy Piper  <andy@xemacs.org>
15784
15785         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15786         (setup_normal_frame): ditto.
15787         (setup_frame_without_minibuffer): ditto.
15788         (setup_minibuffer_frame): ditto.
15789         (delete_frame_internal): ditto.
15790         (Fmake_frame_invisible): ditto.
15791         (Ficonify_frame): ditto.
15792
15793         * window.h: change Fset_window_buffer signature.
15794
15795         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15796         (Fset_window_buffer): allow recording of buffer if the window is
15797         the selected window.
15798         (window_loop): Use new Fset_window signature.
15799
15800 2000-01-23  Daniel Pittman  <daniel@danann.net>
15801
15802         * config.h.in: Added template for `HAVE_ATHENA_3D'
15803
15804 2000-01-29  Andy Piper  <andy@xemacs.org>
15805
15806         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15807
15808         * gutter.c (output_gutter): Don't output if the window isn't live.
15809
15810 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15811
15812         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15813         of 01/12/00: Moved SetFocus back here where it belongs.
15814
15815 2000-01-23  Andy Piper  <andy@xemacs.org>
15816
15817         * s/cygwin32.h: declare printer things.
15818
15819 2000-01-26  Andy Piper  <andy@xemacs.org>
15820
15821         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15822         Alexander.
15823
15824 2000-01-24  Andy Piper  <andy@xemacs.org>
15825
15826         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15827         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15828
15829         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15830
15831         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15832
15833         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15834
15835         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15836         (mswindows_output_display_block): Avoid local shadows.
15837
15838         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15839         (mswindows_enqueue_mouse_button_event): ditto.
15840         (mswindows_handle_gui_wm_command): remove declaration.
15841
15842         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15843         warnings.
15844
15845         * console-msw.h: Avoid shadows.
15846         (mswindows_get_toolbar_button_text):
15847         (emacs_mswindows_create_stream_pair):
15848         (emacs_mswindows_delete_stream_pair):
15849         (mswindows_handle_toolbar_wm_command): declare.
15850
15851         * device-msw.c (build_syscolor_string): Avoid shadows.
15852
15853 2000-01-23  Andy Piper  <andy@xemacs.org>
15854
15855         * glyphs-widget.c (widget_instantiate): reverse the items for
15856         layouts so that children are in the expected order.
15857
15858 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15859
15860         * ralloc.c: safe_bcopy ==> memmove
15861         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15862         * s/msdos.h: Remove BCOPY macros.
15863         * insdel.c (gap_right): Remove BCOPY conditional code.
15864         * insdel.c (gap_left): Remove BCOPY conditional code.
15865         XEmacs demands a working ANSI C compiler - hence memmove.
15866
15867         * regex.c (regex_compile): Remove accidental use of trigraphs.
15868
15869 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15870
15871         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15872         event timestamp.
15873
15874 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15875
15876         * event-msw.c (mswindows_drain_windows_queue): Added the
15877         parameter.
15878         (mswindows_need_event): Commented the call to
15879         mswindows_drain_windows_queue().
15880         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15881         only.
15882
15883         * console-msw.h: Moved a few function prototypes here from
15884         event-msw.c.
15885
15886         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15887         parameter from unsigned short to unsigned long.
15888         (Fmswindows_shell_execute): Added return value.
15889
15890 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15891
15892         * sysdep.c (init_system_name):
15893           process-unix.c (unix_canonicalized_host_name):
15894         Don't call freeaddrinfo() if getaddrinfo() fails.
15895
15896         * process-unix.c (unix_open_unix_network_stream):
15897         Moved the code to get a port # into address loop.
15898
15899 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15900
15901         * buffer.c (reinit_vars_of_buffer):
15902         The right place to initialize conversion_in_dynarr and
15903         conversion_out_dynarr.
15904
15905         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15906
15907         * process-unix.c (unix_canonicalize_host_name): Muleize.
15908         (unix_open_network_stream): Muleize.
15909
15910         * buffer.h: Fix up prototypes for ralloc.c functions.
15911
15912 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15913         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15914         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15915                 instead of gethostbyname()
15916         * process-unix.c: In unix_canonicalize_host_name() and
15917                 unix_open_network_stream(), add code to use getaddrinfo()
15918                 instead of gethostbyname().
15919
15920 2000-01-27  Daniel Pittman <daniel@danann.net>
15921
15922         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15923         libs when built with flat Athena.
15924
15925 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15926
15927         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15928         Use coding standards for function prototypes.
15929
15930 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15931
15932         * dialog-msw.c (push_lisp_string_as_unicode):
15933         * doc.c (unparesseuxify_doc_string):
15934         * dired.c (Fuser_name_completion_1):
15935         * dired.c (Fuser_name_all_completions):
15936         * dired.c (free_user_cache):
15937         * dired.c (user_name_completion):
15938         * console-x.c (get_display_arg_connection):
15939         * minibuf.c (clear_echo_area_internal):
15940         * minibuf.c (echo_area_append):
15941         * eldap.c (Fldap_open):
15942         * eldap.c (Fldap_search_internal):
15943         * frame-x.c (x_set_frame_text_value):
15944         * frame-x.c (x_set_frame_properties):
15945         * frame-x.c (x_create_widgets):
15946         * redisplay-tty.c (term_get_fkeys_1):
15947         * objects-x.c (x_parse_nearest_color):
15948         * objects-x.c (x_valid_color_name_p):
15949         * objects-x.c (x_initialize_font_instance):
15950         * objects-x.c (x_list_fonts):
15951         * objects-x.c (x_find_charset_font):
15952         * tooltalk.c (Fadd_tooltalk_message_arg):
15953         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15954         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15955         * process-unix.c (unix_create_process):
15956         * ntproc.c (sys_spawnve):
15957         * sound.c (Fplay_sound_file):
15958         * sound.c (Fplay_sound):
15959         * buffer.c (init_initial_directory):
15960         * buffer.c (init_buffer):
15961         * editfns.c (init_editfns):
15962         * editfns.c (Ftemp_directory):
15963         * editfns.c (Fuser_full_name):
15964         * editfns.c (uncache_home_directory):
15965         * editfns.c (get_home_directory):
15966         * editfns.c (Fuser_home_directory):
15967         * editfns.c (Fformat_time_string):
15968         * editfns.c (Fcurrent_time_string):
15969         * gui-x.c (button_item_to_widget_value):
15970         * database.c (Fopen_database):
15971         * event-Xt.c (x_to_emacs_keysym):
15972         * event-Xt.c (x_event_to_emacs_event):
15973         * event-Xt.c (describe_event_window):
15974         * event-msw.c (mswindows_wnd_proc):
15975         * glyphs-eimage.c (jpeg_instantiate):
15976         * glyphs-eimage.c (gif_instantiate):
15977         * glyphs-eimage.c (png_instantiate):
15978         * glyphs-eimage.c (tiff_instantiate):
15979         * glyphs-x.c (xbm_instantiate_1):
15980         * glyphs-x.c (x_xbm_instantiate):
15981         * glyphs-x.c (x_xface_instantiate):
15982         * glyphs-x.c (autodetect_instantiate):
15983         * glyphs-x.c (cursor_font_instantiate):
15984         * glyphs-x.c (x_widget_instantiate):
15985         * glyphs-x.c (x_widget_set_property):
15986         * glyphs-x.c (x_widget_property):
15987         * glyphs-x.c (BUILD_GLYPH_INST):
15988         * print.c (write_string_to_stdio_stream):
15989         * print.c (output_string):
15990         * print.c (Falternate_debugging_output):
15991         * print.c (Fexternal_debugging_output):
15992         * glyphs-msw.c (extract_xpm_color_names):
15993         * glyphs-msw.c (mswindows_xpm_instantiate):
15994         * glyphs-msw.c (bmp_instantiate):
15995         * glyphs-msw.c (resource_name_to_resource):
15996         * glyphs-msw.c (mswindows_resource_instantiate):
15997         * glyphs-msw.c (xbm_instantiate_1):
15998         * glyphs-msw.c (mswindows_xbm_instantiate):
15999         * glyphs-msw.c (mswindows_xface_instantiate):
16000         * glyphs-msw.c (mswindows_widget_instantiate):
16001         * glyphs-msw.c (add_tree_item):
16002         * glyphs-msw.c (add_tab_item):
16003         * glyphs-msw.c (mswindows_combo_box_instantiate):
16004         * glyphs-msw.c (mswindows_widget_property):
16005         * glyphs-msw.c (mswindows_combo_box_property):
16006         * glyphs-msw.c (mswindows_widget_set_property):
16007         * console.c (stuff_buffered_input):
16008         * objects-msw.c (mswindows_initialize_color_instance):
16009         * objects-msw.c (mswindows_valid_color_name_p):
16010         * objects-msw.c (mswindows_list_fonts):
16011         * objects-msw.c (mswindows_font_instance_truename):
16012         * bytecode.c (optimize_compiled_function):
16013         * select-x.c (symbol_to_x_atom):
16014         * select-x.c (x_atom_to_symbol):
16015         * select-x.c (hack_motif_clipboard_selection):
16016         * select-x.c (selection_data_to_lisp_data):
16017         * select-x.c (lisp_data_to_selection_data):
16018         * select-x.c (Fx_get_cutbuffer_internal):
16019         * select-x.c (Fx_store_cutbuffer_internal):
16020         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16021         * buffer.h (TO_INTERNAL_FORMAT): New function.
16022         * emacs.c (make_arg_list_1):
16023         * emacs.c (make_argc_argv):
16024         * emacs.c (main_1):
16025         * emacs.c (Fdump_emacs):
16026         * emacs.c (split_string_by_emchar_1):
16027         * file-coding.h:
16028         * lisp.h:
16029         * lstream.h:
16030         * symsinit.h:
16031         * device-x.c (x_init_device):
16032         * device-x.c (Fx_valid_keysym_name_p):
16033         * device-x.c (Fx_get_font_path):
16034         * device-x.c (Fx_set_font_path):
16035         * glyphs.c (bitmap_to_lisp_data):
16036         * glyphs.c (pixmap_to_lisp_data):
16037         * alloc.c (make_ext_string): Use coding system arguments.  Update
16038         all callers.
16039         * alloc.c (build_string):
16040         * callproc.c (child_setup):
16041         * callproc.c (init_callproc):
16042         * fileio.c (lisp_strerror):
16043         * fileio.c (directory_file_name):
16044         * fileio.c (Fexpand_file_name):
16045         * fileio.c (Ffile_truename):
16046         * fileio.c (Fsysnetunam):
16047         * fileio.c (Fdo_auto_save):
16048         * sysdep.c (sys_readdir):
16049         * tests.c: New file.  Allow adding C tests.
16050         Replace GET_* macros with a more comprehensible and flexible
16051         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16052         Modify all calls.
16053         Any coding system can be used to do format conversion.
16054         Eliminate enum external_data_format.
16055         Eliminate convert_to_external_format.
16056         Eliminate convert_to_internal_format.
16057         Make sure file-name, keyboard, terminal, and ctext are always
16058         defined as coding systems or aliases.  Make
16059         file-name-coding-system, terminal-coding-system, and
16060         keyboard-coding-system magical variables that are equivalent to
16061         defining the corresponding coding system aliases.
16062
16063         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16064         * file-coding.c (Fcoding_system_alias_p): New function.
16065         * file-coding.c (Fcoding_system_aliasee): New function.
16066         * file-coding.c (append_suffix_to_symbol): New function.
16067         * file-coding.c (dangling_coding_system_alias_p): New function.
16068         * file-coding.c (Ffind_coding_system):
16069         * file-coding.c (Fcopy_coding_system):
16070         * file-coding.c (encode_coding_no_conversion):
16071         * file-coding.c (syms_of_file_coding):
16072         * file-coding.c (vars_of_file_coding):
16073         Rewrite coding system alias code.
16074         Allow nested aliases, like symbolic links.
16075         Allow redefinition of coding system aliases.
16076         Prevent existence of dangling coding system aliases.
16077
16078         * dired.c (Fuser_name_completion_1):
16079         * dired.c (Fuser_name_all_completions):
16080         A crash would happen if user did QUIT in the middle of building
16081         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16082
16083         * lisp.h:
16084         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16085
16086         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16087         an unsigned char *.  Update all callers.
16088
16089 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16090
16091         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16092
16093 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16094
16095         * elhash.c (hentry_description): Use more portable definition.
16096         (resize_hash_table): Initialize new hentries using
16097         xnew_array_and_zero, thereby simplifying the code.
16098
16099         * mule-charset.c (make_charset): Make sure entire object is
16100         initialized, to avoid Purify warnings.
16101
16102         * alloc.c (resize_string): Fix unlikely crash with big strings.
16103
16104 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16105
16106         * realpath.c (xrealpath):
16107         Don't call getwd().
16108
16109 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16110
16111         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16112
16113 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16114
16115         * unexelfsgi.c (unexec): Change the way we decide which segment
16116         should be extended.
16117
16118         Assumption that .bss section should be outside the PT_LOADable
16119         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16120         it's present) is inside the 'data' segment. This would fail the
16121         test which was used to find a segment to grow and cover new
16122         heap. Instead of this assumption, I created another one - on IRIX
16123         the segment to grow should start below .bss and it's address
16124         should extent above the end of .bss. Once this segment is
16125         identified, it's grown to accommodate the new heap and new
16126         zero-length .bss section is added at the end of .data2.
16127
16128 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16129
16130         * eval.c (Feval): Wrong number of arguments should use original
16131         function, not the indirect_function version of it.
16132
16133 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16134
16135         * glyphs-x.c (x_button_instantiate): Don't add image if
16136         it is not a pixmap.
16137         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16138         is relative.
16139
16140 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16141
16142         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16143         declaration.
16144         (DEFVAR_INT_MAGIC): Ditto.
16145         (DEFVAR_BOOL_MAGIC): Ditto.
16146         * glyphs.h: Reindent backslash.
16147
16148 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16149
16150         * glyphs-widget.c (layout_query_geometry):
16151         (layout_layout): Use correct types for gheight, gwidth.
16152
16153 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16154
16155         * EmacsManager.c (QueryGeometry): Purified.
16156
16157 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16158
16159         * alloc.c (make_float): Make sure entire object is initialized, to
16160         avoid Purify warnings.
16161         (pdump_register_sub): Remove useless assignment.
16162         (pdump): Use xmalloc, not malloc.
16163         (pdump_load): Use xmalloc, not malloc.
16164
16165 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16166
16167         * callproc.c:
16168         * dired-msw.c:
16169         * fileio.c:
16170         * process-nt.c:
16171         * redisplay-msw.c:
16172         * sysdep.c: Removed redundant #include <windows.h>
16173
16174 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16175
16176         * frame.c (delete_frame_internal): Do not delete device when its
16177         implementation so declares.
16178         (delete_frame_internal): Set device selected frame to nil when
16179         last frame goes away.
16180
16181         * device-msw.c (msprinter_device_system_metrics): Implemented.
16182         (mswindows_device_system_metrics): Added 'device-dpi property.
16183
16184         * device.c: (Fdevice_printer_p): Added.
16185         Added 'offset-workspace device metric.
16186
16187         * console.h (device_metrics): Declared DM_offset_workspace.
16188
16189 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16190
16191         * fileio.c (Ffile_truename): Remove pointless and confusing
16192         initialization of elen.
16193
16194         * glyphs-widget.c: Compiler warning fixes.
16195
16196 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16197
16198         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16199         instead of a Lisp_Object as argument to make it consistent with
16200         the other LIVE_P macros.
16201         (CHECK_LIVE_PROCESS): New macro.
16202
16203         * process.c: Declare Qprocess_live_p.
16204         (Fprocess_live_p): New function.
16205         (create_process): Use PROCESS_LIVE_P.
16206         (read_process_output): Ditto.
16207         (set_process_filter): Ditto.
16208         (Fdelete_process): Ditto.
16209         (kill_buffer_processes): Ditto
16210         (process_send_signal): Use CHECK_LIVE_PROCESS.
16211         (Fprocess_input_coding_system): Check whether process is still
16212         alive (fix PR#1061).
16213         (Fprocess_output_coding_system): Ditto.
16214         (Fprocess_coding_system): Ditto.
16215         (Fset_process_input_coding_system): Ditto.
16216         (Fset_process_output_coding_system): Ditto.
16217
16218 2000-01-23  Andy Piper  <andy@xemacs.org>
16219
16220         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16221         layout and widget.
16222
16223         * glyphs.c (mark_image_instance): take into account changed
16224         image_instance format.
16225         (image_instance_equal): ditto.
16226         (image_instance_hash): ditto.
16227
16228         * glyphs-widget.c (widget_instantiate): Incorporate layout
16229         instantiation here. Delay layout of the layout until later.
16230         (layout_instantiate): deleted.
16231         (layout_query_geometry): new function. get the geometry of a
16232         layout.
16233         (layout_layout): layout a layout dynamically.
16234         (image_instantiator_widget): New function - splitting up
16235         image_instantiator_format_create_glyphs_widget for netwinder
16236         compilation.
16237         (image_instantiator_buttons):
16238         (image_instantiator_edit_fields):
16239         (image_instantiator_combo_box):
16240         (image_instantiator_scrollbar):
16241         (image_instantiator_progress_guage):
16242         (image_instantiator_tree_view):
16243         (image_instantiator_tab_control):
16244         (image_instantiator_labels):
16245         (image_instantiator_layout): ditto.
16246         (image_instantiator_format_create_glyphs_widget): Call preceding
16247         functions.
16248
16249 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16250
16251         * process.c (Fset_process_coding_system):
16252         * device-x.c (Fx_keysym_hash_table):
16253         Docstring fixes.
16254
16255         * lstream.c (Lstream_write): Return documented value, not 0.
16256
16257         * fileio.c (directory_file_name):
16258         (Fsubstitute_in_file_name):
16259         (Fsubstitute_insert_file_contents_internal):
16260         (Fwrite_region_internal):
16261         * emacs.c:
16262         * sysdep.c:
16263         * getloadavg.c:
16264         * systty.h:
16265         Remove vestigial APOLLO-conditional code.
16266
16267 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16268
16269         * getpagesize.h: Add guard macros.
16270         * libsst.h: Add guard macros.
16271         * libst.h: Add guard macros.
16272         * line-number.h: Add guard macros.
16273         * ndir.h: Add guard macros.
16274         * sysfloat.h: Add guard macros.
16275         * sysfile.h: Add guard macros.
16276         * sysproc.h: Add guard macros.
16277         * syswait.h: Add guard macros.
16278         * xintrinsic.h: Add guard macros.
16279         * xintrinsicp.h: Add guard macros.
16280         * xmmanager.h: Add guard macros.
16281         * xmmanagerp.h: Add guard macros.
16282         * xmprimitive.h: Add guard macros.
16283         * xmu.h: Add guard macros.
16284         * gpmevent.h: Add copyright statement. Add guard macros.
16285         * miscplay.h: Add guard macros.
16286         * *.h: Use consistent C-standards-approved guard macro names.
16287
16288         * opaque.c (make_opaque): Switch parameter order.
16289         * opaque.h (make_opaque): Switch parameter order.
16290         Update all callers.
16291         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16292
16293         * config.h.in (type_checking_assert): Added.
16294         (bufpos_checking_assert): Added.
16295
16296 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16297
16298         * alloc.c: Harmless pdump changes.
16299         - Use countof().
16300         - spell alignment correctly.
16301         * sysdep.c: Use countof()
16302
16303 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16304
16305         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16306         initially_selected_for_input() console method, default to 0.
16307         (semi_canonicalize_console_connection): Try to delegate to
16308         canonicalize_console_connection if no such console method.
16309         (canonicalize_console_connection): Vice versa.
16310         (print_console): Do not print nil connection.
16311
16312         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16313         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16314         (XDEVIMPF_FRAMELESS_OK): Added.
16315         (CONSOLE_INHERITS_METHOD): Added.
16316
16317         * console-msw.c (mswindows_canonicalize_console_connection):
16318         Added.
16319         (mswindows_canonicalize_device_connection): Added.
16320
16321         * console-msw.h (struct msprinter_device): Added this struct and
16322         accessor macros.
16323         (mswindows_device): Made fontlist a lisp object.
16324
16325         * device.c (semi_canonicalize_device_connection):  Try to delegate
16326         to canonicalize_device_connection if no such console method.
16327         (canonicalize_device_connection): Vice versa.
16328         (print_device): Do not print nil connection.
16329
16330         * device-msw.c (mswindows_init_device): Call InitCommonControls
16331         when have widgets.
16332         (mswindows_delete_device): Removed fontlist deallocation.
16333         (mswindows_mark_device): Added.
16334
16335         * events.c (event_equal): Added abort() at unreached code.
16336         (event_hash): Ditto.
16337
16338         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16339         fallback tags of Windows devices.
16340
16341         * general.c (syms_of_general): Initialized Qmsprinter.
16342
16343         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16344         of fallback tags of Windows devices.
16345
16346         * lisp.h: Declared Qmsprinter.
16347
16348         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16349         of strings.
16350         (mswindows_list_fonts): Ditto.
16351         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16352         that it can be used by both mswindows and msprinter devices.
16353         (initialize_font_instance): Added.
16354         (mswindows_initialize_font_instance): Use it.
16355         (msprinter_initialize_font_instance): Added.
16356
16357         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16358         and implementation flags check.
16359         (redisplay_without_hooks): Changed the call to the above.
16360         (Fredraw_device): Ditto.
16361         (Fredisplay_device): Ditto.
16362
16363         * redisplay-msw.c (get_frame_dc): Implemented.
16364         (get_frame_compdc): Implemented.
16365         (many functions): Use the two functions above to get device
16366         contexts, ether for a window or a printer.
16367
16368 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16369
16370         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16371         initialization here.
16372         (init_symbols_once_early): Call it.
16373         * emacs.c (main_1): Call it.
16374         * symsinit.h: Declare it.
16375
16376 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16377
16378         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16379         Lisp_Object.
16380         (pdump_backtrace): Ditto.
16381         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16382         (pdump_get_entry): Abort if trying to register a null pointer.
16383         (pdump_dump_data): Cleanup types when relocating.
16384         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16385         (pdump_dump_rtables): Remove bad casts.
16386         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16387         Lisp_Object instead of a EMACS_INT for the hashtable
16388         reorganization.
16389
16390 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16391
16392         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16393
16394         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16395
16396         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16397
16398         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16399
16400 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16401
16402         * faces.h (FACE_STRIKETHRU_P): Added.
16403
16404         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16405         of font variants.
16406
16407         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16408         (mswindows_set_dc_font): New function, aware of font variants,
16409         separated from mswindows_update_dc.
16410
16411         * objects-msw.h (struct mswindows_font_instance_data): Added
16412         definition.
16413
16414         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16415         cached fonts and the data structure.
16416         (mswindows_initialize_font_instance): Added creation of font data
16417         structure.
16418         (mswindows_print_font_instance): Print at least something.
16419         (mswindows_create_font_variant): Implemented.
16420         (mswindows_get_hfont): Implemented.
16421
16422 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16423
16424         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16425         prototyping problem with msvc.
16426
16427         * emacs.c (main_1): added syms_of_gui_mswindows() call
16428
16429         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16430         syms_of_gui_mswindows() function
16431
16432         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16433
16434 2000-01-18  Martin Buchholz <martin@xemacs.org>
16435
16436         * XEmacs 21.2.27 is released.
16437
16438 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16439
16440         * glyphs-eimage.c (struct tiff_error_struct):
16441         (tiff_error_func):
16442         (tiff_warning_func):
16443         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16444
16445         * unexmips.c:
16446         * unexhp9k3.c:
16447         * unexfreebsd.c:
16448         * unexec.c: Remove vestigial Lucid C code.
16449         * unexalpha.c:
16450         * unexaix.c:
16451         * termcap.c:
16452         * libsst.c: Ansify.
16453         Remove declarations of errno and strerror().
16454
16455         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16456
16457         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16458
16459 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16460
16461         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16462         Optimize.
16463
16464 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16465
16466         * md5.c:
16467         * file-coding.c:
16468         * file-coding.h:
16469         Change enum eol_type to eol_type_t.
16470
16471 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16472
16473         * gui.c (get_gui_callback): Check cons before accessing car.
16474
16475 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16476
16477         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16478         (XSETSPECIFIER_TYPE): Ditto.
16479
16480 2000-01-17  Didier Verna  <didier@xemacs.org>
16481
16482         * redisplay.c (generate_fstring_runes): compute string size in
16483         characters, not bytes.
16484
16485 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16486
16487         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16488
16489 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16490
16491         * print.c (print_error_message): Call print_prepare().
16492
16493 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16494
16495         * .dbxrc: Renamed from dbxrc.
16496
16497         * events.c (event_to_character):
16498         Use `assert (foo)' instead of `if (!foo) abort()'
16499
16500         * .gdbinit (xtype): Add documentation.
16501         * .gdbinit (check-temacs): New function.
16502         * .gdbinit (check-xemacs): New function.
16503         * dbxrc (check-xemacs): New function.
16504         * dbxrc (check-xemacs): New function.
16505
16506 2000-01-14  Andy Piper  <andy@xemacs.org>
16507
16508         * glyphs-widget.c (widget_query_geometry): Make sure that we
16509         calculate default dimensions correctly.
16510
16511 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16512
16513         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16514
16515         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16516         pdump_wire'd variable.
16517
16518         * emacs.c: (main_1): Conditionalized calls to
16519         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16520
16521 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16522
16523         * window.c (Fset_window_configuration):
16524         * sysdep.c (_start):
16525         * input-method-motif.c (res):
16526         * event-Xt.c (Xt_process_to_emacs_event):
16527         Simple compiler warning fixes.
16528
16529         * bytecode.c (funcall_compiled_function): Use the original
16530         function symbol on the backtrace list in preference to the
16531         compiled_function object in error messages.
16532
16533 2000-01-13  Andy Piper  <andy@xemacs.org>
16534
16535         * glyphs-x.c (update_widget_face): Make sure we update the widget
16536         background as well as foreground.
16537
16538 2000-01-13  Andy Piper  <andy@xemacs.org>
16539
16540         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16541         fields to subwindow.
16542         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16543         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16544         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16545         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16546
16547         * glyphs-widget.c (check_valid_tab_orientation): new function.
16548         (initialize_widget_image_instance): zero orientation and
16549         justification.
16550         (widget_instantiate): pick up orientation.
16551         (tab_control_query_geometry): return appropriate values for
16552         vertical tabs.
16553
16554         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16555         appropriate creation flags for left, right and bottom tabs.
16556
16557         * s/cygwin32.h: add tab definitions.
16558
16559 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16560
16561         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16562         frame upon hiding a subwindow.
16563         (mswindows_button_instantiate): Changed the push button style to
16564         BS_PUSHBUTTON.
16565         (mswindows_button_instantiate): Removed button BS_NOTIFY
16566         style.
16567         (mswindows_button_instantiate): Removed redundant check for
16568         a disabled gui item.
16569         (mswindows_button_instantiate): Made use of WS_TABSTOP
16570         consistent: "operable" controls (edit, button, tree, scroll) have
16571         this style, "display-only" ones (static, progress gauge) do
16572         not. This style is currently ignored by XEmacs though. Also,
16573         removed the WS_EX_CONTROLPARENT style - it is not for children,
16574         it is for their parents!
16575         (mswindows_edit_field_instantiate): Ditto.
16576         (mswindows_progress_gauge_instantiate): Ditto.
16577         (mswindows_tree_view_instantiate): Ditto.
16578         (mswindows_tab_control_instantiate): Ditto.
16579         (mswindows_scrollbar_instantiate): Ditto.
16580         (mswindows_combo_box_instantiate): Ditto.
16581         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16582         style to the "clip" window.
16583         (mswindows_button_instantiate): Removed compilation warning by
16584         equally typing terms of the ?: operator.
16585
16586 2000-01-12  Didier Verna  <didier@xemacs.org>
16587
16588         * redisplay.c (generate_fstring_runes): new parameter holding the
16589         last modeline-format extent.
16590         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16591         extent, fill the glyph block with it.
16592         (generate_fstring_runes): handle these parameters.
16593         (generate_formatted_string_db): ditto.
16594
16595         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16596         glyphs'extents in the modeline.
16597
16598 1999-01-11  Mike Woolley  <mike@bulsara.com>
16599
16600         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16601         256Mb, as a workaround for the non-starting problem many people
16602         have experienced.
16603
16604 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16605
16606         * console-tty.c (Fset_console_tty_output_coding_system):
16607         Force redrawing tty frame.
16608
16609 2000-01-10  Didier Verna  <didier@xemacs.org>
16610
16611         * redisplay.c (generate_fstring_runes): fix size computation bug.
16612
16613 2000-01-09  William M. Perry <wmperry@aventail.com>
16614
16615         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16616
16617 2000-01-09  Andy Piper  <andy@xemacs.org>
16618
16619         * glyphs-msw.c: index -> i to avoid shadows.
16620         (xbm_create_bitmap_from_data): make static.
16621         (check_valid_string_or_int): deleted.
16622         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16623
16624         * glyphs-x.c (x_update_subwindow): remove unused args.
16625
16626         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16627         back pointer - this is done in allocate_image_instance.
16628         (query_string_font): return Qnil to make the compiler happy.
16629         (unmap_subwindow): set to ~0 to make the compiler happy.
16630         (glyph_query_geometry): comment out until used.
16631         (glyph_layout): ditto.
16632
16633 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16634
16635         * insdel.c (signal_after_change): Remove extraneous unbind_to().