(<PRESENTATION FORM FOR VERTICAL LOW LINE>): Unify C1-213A.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (char-variants): Refer `->subsumptive',
4         `->denotational' and `->identical' as same as `->ucs-unified'.
5
6 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * chartab.c (Fput_char_attribute): Convert char-specs in value of
9         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
10         links.
11
12 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * text-coding.c: Add EXFUN for `Fregexp_quote'.
15         (decode_add_er_char): Fix problem about infinite loop when a CCS
16         specified in `coded-charset-entity-reference-alist' is not
17         existed.
18
19 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * mule-charset.c (syms_of_mule_charset): Rename
22         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
23
24 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * fns.c (simplify_char_spec): Don't allocate new character-object
27         if specified char_spec does not have any CCS-features.
28
29         * chartab.h: Add EXFUN for Fdefine_char.
30
31         * chartab.c: Delete EXFUN for Fdefine_char.
32
33 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
34
35         * fns.c (simplify_char_spec): Use Fdefine_char instead of
36         Ffind_char for char-spec.
37
38 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * lisp-disunion.h (XCHARVAL): Fix condition about
41         SIZEOF_EMACS_INT.
42
43 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
46         <int> for `code'.
47         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
48         point; use <Emchar> instead of <int> for character-id.
49
50 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
53         (make_char): Likewise.
54         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
55         environment.
56         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
57         instead of <int> as the type of return value; use <Lisp_Object>
58         instead of <Emchar> as the type of argument.
59         (XCHARVAL[macro version]): Cast the result into <Emchar>.
60
61         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
62         syntaxcode> instead of <int>.
63
64 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * chartab.c (put_char_composition): Use DECODE_CHAR to get
67         character corresponding with UCS code point.
68         (Fput_char_attribute): Likewise.
69
70         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
71         character in the UCS decoding-table if the char-id is not equal to
72         the UCS code point.
73
74 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
77         for aliases; write `description'; write
78         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
79         not 0.
80
81 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * chartab.c (Fsave_char_attribute_table): Don't use
84         `save_charset_properties'.
85
86         * mule-charset.c (Fsave_charset_properties): Renamed from
87         `save_charset_properties' and changed to Lisp function again;
88         write property `type' as `CCS'; write properties `final-byte' and
89         `mother' if they exists.
90         (syms_of_mule_charset): Revive builtin function
91         `save-charset-properties' when HAVE_LIBCHISE is defined.
92
93 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
96         instead of Vexec_directory.
97         (char_attribute_system_db_file): Likewise.
98
99 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * chartab.c (Fsave_char_attribute_table): Use
102         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
103         defined.
104
105         * mule-charset.c (save_charset_properties): Renamed from
106         `Fsave_charset_properties'; changed to non-Lisp function.
107         (syms_of_mule_charset): Abolish builtin function
108         `save-charset-properties'.
109
110 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
111
112         * mule-charset.c (Fsave_charset_properties): New function when
113         HAVE_LIBCHISE is defined.
114         (syms_of_mule_charset): Add new builtin function
115         `save-charset-properties' when HAVE_LIBCHISE is defined.
116
117 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
118
119         * chartab.c (Fput_char_attribute): Convert char-specs in value of
120         `{<-|->}ancient[^*]*' to characters and put reverse links.
121         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
122         for `{<-|->}ancient[^*]*'.
123
124 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
125
126         * chartab.c (Fput_char_attribute): Convert char-specs in value of
127         `{<-|->}original[^*]*' to characters and put reverse links.
128         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
129         for `{<-|->}original[^*]*'.
130
131 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
132
133         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
134
135 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
136
137         * mule-charset.c (Qsystem_char_id): New variable.
138
139         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
140         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
141
142 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
143
144         * chartab.c (Fput_char_attribute): When processing a reference of
145         a character, put into the end of the reversed reference of each
146         target character.
147
148 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * chartab.c (Q_same): Deleted.
151         (Q_same_of): Deleted.
152         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
153         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
154         for `{<-|->}same'.
155         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
156
157 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
158
159         * chartab.c (Q_vulgar): Deleted.
160         (Q_vulgar_of): Deleted.
161         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
162         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
163         for `{<-|->}vulgar'.
164         (syms_of_chartab): Don't define `{<-|->}vulgar'.
165
166 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * chartab.c (Fput_char_attribute): Convert char-specs in value of
169         `{<-|->}wrong[^*]*' to characters and put reverse links.
170         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
171         for `{<-|->}wrong[^*]*'.
172
173 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * chartab.c (Q_vulgar): New variable.
176         (Q_vulgar_of): New variable.
177         (Fput_char_attribute): Convert char-specs in value of
178         `{->|<-}vulgar' to characters and put reverse links.
179         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
180         for `{->|<-}vulgar'.
181         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
182
183 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
184
185         * text-coding.c (decode_add_er_char): Must to quote prefix string
186         as regexp.
187
188 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * mule-charset.c (put_char_ccs_code_point): Store characters of
191         =ucs whose code_points >= 0xF0000.
192
193 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
196         CHISE.
197         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
198         CHISE.
199         (complex_vars_of_mule_charset): Add new coded-charset
200         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
201         builtin characters over 0xEFFFF.
202
203         * chartab.c (syms_of_chartab): Don't define symbol
204         `system-char-id' in every case.
205
206         * char-ucs.h (Qsystem_char_id): New extern variable.
207         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
208
209 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
210
211         * text-coding.c (char_encode_utf8): Try to use entity-references
212         for U-000F0000 ...  U-0010FFFF.
213
214 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * text-coding.c (ER_BUF_SIZE): New macro.
217         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
218         `er_buf'.
219         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
220         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
221
222 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
223
224         * chartab.c (find_char_feature_in_family): New function.
225         (Fchar_feature): Use `find_char_feature_in_family' with
226         `->identical', `<-subsumptive' and `<-denotational'.
227
228 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * text-coding.c (char_encode_as_entity_reference): Allow prefix
231         within 8 characters; fix infinite loop.
232
233 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
234
235         * chartab.c (Q_same): New variable.
236         (Q_same_of): New variable.
237         (Fput_char_attribute): Convert char-specs in value of
238         `{->|<-}same' to characters and put reverse links.
239         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
240         for `{->|<-}same'.
241         (syms_of_chartab): Add new symbols `{->|<-}same'.
242
243 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
244
245         * chartab.c (Q_component): New variable.
246         (Q_component_of): Likewise.
247         (Fput_char_attribute): Convert char-specs in value of
248         `{->|<-}ideographic-component-forms' to characters and put reverse
249         links.
250         (syms_of_chartab): Add new symbols
251         `{->|<-}ideographic-component-forms'.
252
253 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
254
255         * chartab.c (Q_identical): New variable.
256         (Q_identical_from): New variable.
257         (Fchar_feature): Regard `->identical' as a feature to find
258         ancestors.
259         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
260         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
261         for `{->|<-}identical'.
262         (syms_of_chartab): Add new symbols `{->|<-}identical'.
263
264 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
265
266         * char-ucs.h (encode_char_2): New inline function.
267         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
268
269 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
270
271         * chartab.c (Fput_char_attribute): Convert char-specs to
272         characters in value of `ideographic-structure'.
273         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
274         for `{<-|->}simplified(@...)'.
275         (Fdefine_char): bTry to use predefined character's id.
276
277 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * fns.c (simplify_char_spec): Try to convert builtin chars to
280         defined chars.
281
282 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
283
284         * chartab.c (Fput_char_attribute): Convert char-specs in value of
285         `<-simplified[^*]*' to characters and put reverse links.
286
287 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
288
289         * chartab.c (Q_subsumptive): Renamed from Q_unified.
290         (Q_subsumptive_from): Renamed from Q_unified_from.
291         (Fchar_feature): Use `Q_subsumptive_from' instead of
292         `Q_unified_from'.
293         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
294         `Q_unified'.
295         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
296         `<-unified' to `<-subsumptive'.
297
298 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
299
300         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
301         inheritance itself; fix typo; stop recursive search if cyclic
302         inheritance is found.
303
304 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * chartab.c (Q_denotational): New variable.
307         (Q_denotational_from): New variable.
308         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
309         (put_char_attribute): New function.
310         (Fput_char_attribute): Use `put_char_attribute'; regard
311         `->denotational' and `<-denotational' as same as `->unified' and
312         `<-unified'.
313         (syms_of_chartab): Add new symbols `->denotational' and
314         `<-denotational'.
315
316 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
317
318         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
319         `Fget_char_attribute'.
320         (Fchar_variants): Likewise.
321         (get_char_table): Likewise.
322         (Fchar_feature): New function.
323         (put_char_composition): Use `Fchar_feature' instead of
324         `Fget_char_attribute'.
325         (Fput_char_attribute): Likewise; don't put the target character
326         into its `->unified' value.
327         (syms_of_chartab): Add new builtin function `char-feature'.
328
329 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
332         `Fget_char_attribute'.
333         (char_encode_utf8): Likewise.
334
335         * chartab.h: Add an EXFUN for `Fchar_feature'.
336
337 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
338
339         * chartab.c (Vnext_defined_char_id): New variable.
340         (Fput_char_attribute): Accept characters in `->unified'.
341         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
342         new characters which are not related with builtin char-id ranges.
343         (vars_of_chartab): Add new variable `next-defined-char-id'.
344
345 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
346
347         * chartab.c (Q_unified): New variable.
348         (Q_unified_from): New variable.
349         (Fput_char_attribute): Add code for `->unified'.
350         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
351         XEmacs CHISE.
352
353 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * mule-charset.c (decode_ccs_conversion): New function.
356         (decode_defined_char): Use `decode_ccs_conversion'.
357         (decode_builtin_char): Likewise.
358
359 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * char-ucs.h: Change some charset-ids of private coded-charsets.
362
363 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
364
365         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
366         (char_encode_as_entity_reference): Likewise.
367         (decode_coding_big5): Modify for `decode_defined_char' and
368         `DECODE_CHAR'.
369         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
370         avoid compiler warning.
371         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
372
373         * mule-charset.c (decode_defined_char): Add new argument
374         `without_inheritance'.
375         (Fdecode_char): Add new optional argument `without_inheritance'.
376         (Fdecode_builtin_char): Modify for `Fdecode_char'.
377
378         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
379         (simplify_char_spec): Likewise.
380
381         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
382         setting.
383
384         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
385         (map_char_table): Likewise.
386         (Fdefine_char): Use `Fdecode_char' without inheritance.
387         (Ffind_char): Modify for `Fdecode_char'.
388
389         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
390
391         * char-ucs.h (decode_defined_char): Add new argument
392         `without_inheritance'.
393         (DECODE_CHAR): Likewise.
394         (MAKE_CHAR): Modify for `DECODE_CHAR'.
395
396 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * chartab.c (Vchise_system_db_directory): New variable.
399         (vars_of_chartab): Add new variable `chise-system-db-directory'.
400
401 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * chartab.c: EXFUN `Fmount_char_attribute_table'.
404         (print_chartab_range): Don't define when `UTF2000' is defined.
405         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
406         `CHISE_DS_open'.
407
408 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
411         and optional argument `rehash' is specified, call
412         `open_chise_data_source_maybe' before
413         `chise_ds_foreach_char_feature_name' is called.
414
415 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
416
417         * chartab.c (char_attribute_list_reset_map_func): New function
418         when HAVE_LIBCHISE is defined.
419         (Fchar_attribute_list): Add new optional argument `rehash' when
420         HAVE_LIBCHISE is defined.
421         (open_chise_data_source_maybe): Use "chise-db" instead of
422         "char-db".
423         (char_attribute_system_db_file): Likewise.
424         (Fload_char_attribute_table): Use
425         `chise_feature_foreach_char_with_value' instead of
426         `chise_char_feature_value_iterate'.
427
428 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
429
430         * chartab.c (Vchise_db_directory): New variable.
431         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
432
433 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
434
435         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
436         instead of HAVE_CHISE to specify using with libchise.
437
438         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
439
440         * chartab.h: Don't use HAVE_CHISE_CLIENT.
441
442         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
443         defined or HAVE_LIBCHISE_LIBCHISE is defined.
444         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
445         is defined.
446         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
447         HAVE_CHISE to specify using with libchise.
448         (syms_of_chartab): Don't define symbol `system-char-id' when
449         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
450
451 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
454         specify CHISE DB support.
455         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
456         of `char_attribute_system_db_file' to check feature DB file.
457
458         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
459         HAVE_CHISE_CLIENT to specify CHISE DB support.
460
461         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
462         specify CHISE DB support.
463         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
464         not defined.
465         (Freset_char_attribute_table): Use `chise_feature_setup_db'
466         instead of `char_attribute_system_db_file' to check feature DB
467         file.
468
469 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
472         `HAVE_CHISE_CLIENT'.
473
474 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
477         (Fsave_charset_mapping_table): Don't use
478         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
479
480         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
481         (HAVE_LIBCHISE): New macro.
482
483         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
484
485         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
486         (Fsave_char_attribute_table): Don't use
487         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
488
489 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
490
491         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
492         defined.
493         (save_uint16_byte_table): Likewise.
494         (save_byte_table): Likewise.
495         (char_table_get_db): Use `chise_ds_load_char_feature_value'
496         instead of `chise_char_load_feature_value'.
497         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
498
499 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * chartab.h (struct Lisp_Char_Table): Delete member
502         `feature_table' if CHISE is defined.
503
504         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
505         (Fcopy_char_table): Likewise.
506         (char_table_open_db_maybe): Likewise.
507         (char_table_close_db_maybe): Likewise.
508         (char_table_get_db): Likewise.
509         (Fmount_char_attribute_table): Likewise.
510         (Fload_char_attribute_table): Likewise.
511
512 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
513
514         * mule-charset.c (load_char_decoding_entry_maybe): Use
515         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
516         `chise_ccs_decode'.
517
518 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
521         instead of `chise_open_data_source'.
522         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
523         `chise_ds_close'.
524
525 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
526
527         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
528         instead of `chise_ds_open_feature_table'.
529         (char_table_close_db_maybe): Don't use `chise_ft_close'.
530
531 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
532
533         * mule-charset.c (Fsave_charset_mapping_table): Use
534         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
535         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
536         `chise_ccs_sync' instead of `chise_ccst_close'.
537         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
538
539         * chartab.c (open_chise_data_source_maybe): Modify for
540         `chise_open_data_source'.
541         (char_table_open_db_maybe): Modify for
542         `chise_ds_open_feature_table'.
543
544 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
545
546         * mule-charset.c (load_char_decoding_entry_maybe): Use
547         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
548         `chise_ccst_close'.
549
550 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
551
552         * mule-charset.c (Fsave_charset_mapping_table): Use
553         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
554         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
555         `chise_dt_put_char' and `chise_dt_close'.
556         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
557         `chise_ccs_decode' and `chise_ccst_close' instead of
558         `chise_ds_open_decoding_table', `chise_dt_get_char' and
559         `chise_dt_close'.
560
561         * chartab.c (char_table_get_db): Use
562         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
563         (load_char_attribute_table_map_func): Modify for
564         `chise_char_feature_value_iterate'.
565         (Fload_char_attribute_table): Use
566         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
567
568 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
569
570         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
571
572 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
573
574         * chartab.c (put_char_table): Modify for inherited coded-charsets
575         in XEmacs CHISE.
576
577 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
578
579         * chartab.c (Fput_char_table_map_function): Fixed.
580         (word_boundary_p): Don't check charset in XEmacs CHISE.
581
582 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
583
584         * mule-charset.c (Fsave_charset_mapping_table): Use
585         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
586         instead of `chise_open_decoding_table'; refer
587         `default_chise_data_source'; use `chise_dt_close' instead of
588         `chise_close_decoding_table'.
589         (load_char_decoding_entry_maybe): Likewise.
590
591         * chartab.c (default_chise_data_source): New variable when `CHISE'
592         is defined.
593         (Fcopy_char_table): `ct->ds' is deleted.
594         (open_chise_data_source_maybe): New function.
595         (Fclose_char_data_source): New function.
596         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
597         use `chise_ds_open_feature_table' instead of
598         `chise_open_feature_table'.
599         (char_table_close_db_maybe): Use `chise_ft_close' instead of
600         `chise_close_feature_table'; `cit->ds' is deleted.
601         (syms_of_chartab): Add new builtin function
602         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
603
604         * chartab.h (default_chise_data_source): New extern variable.
605         (open_chise_data_source_maybe): New prototype.
606         (struct Lisp_Char_Table): Delete `ds'.
607
608 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
609
610         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
611         `CHISE' is defined.
612
613 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
614
615         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
616         not defined; add code for non-libchise setting.
617         (char_table_close_db_maybe): Likewise.
618         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
619         defined.
620         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
621         even if `CHISE' is not defined.
622         (Freset_char_attribute_table): Likewise.
623         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
624         `char_table_close_db_maybe' even if `CHISE' is not defined; use
625         `char_table_get_db'.
626         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
627         `char_table_close_db_maybe' even if `CHISE' is not defined.
628
629 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
630
631         * chartab.c (char_table_open_db_maybe): New function.
632         (char_table_close_db_maybe): New function.
633         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
634         (Freset_char_attribute_table): Likewise.
635         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
636         `char_table_close_db_maybe'.
637         (Fload_char_attribute_table): Likewise.
638
639 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
640
641         * chartab.c: Don't include <chise.h> because it is included in
642         chartab.h.
643         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
644         defined.
645         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
646         `CHISE' is defined.
647         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
648         `CHISE' is defined.
649         (Fclose_char_attribute_table): Close `ct->feature_table' and
650         `ct->ds' when `CHISE' is defined.
651         (Freset_char_attribute_table): Likewise.
652         (load_char_attribute_maybe): Use `cit->ds' and
653         `cit->feature_table' when `CHISE' is defined.
654         (Fload_char_attribute_table): Likewise.
655
656         * chartab.h: Include <chise.h> when `CHISE' is defined.
657         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
658         when `CHISE' is defined.
659
660 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
661
662         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
663         is defined.
664         (char_table_description): Likewise.
665         (Fmake_char_table): Likewise.
666         (Fcopy_char_table): Likewise.
667         (Fmount_char_attribute_table): Likewise.
668         (Fclose_char_attribute_table): Likewise.
669         (Freset_char_attribute_table): Likewise.
670         (load_char_attribute_maybe): Likewise.
671         (Fload_char_attribute_table): Likewise.
672
673         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
674         defined.
675
676 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
677
678         * chartab.c (load_char_attribute_table_map_func): New function
679         when CHISE is defined.
680         (Qload_char_attribute_table_map_function): Don't define when CHISE
681         is defined.
682         (Fload_char_attribute_table_map_function): Likewise.
683         (Fload_char_attribute_table): Use libchise when `CHISE' is
684         defined.
685         (syms_of_chartab): Don't define
686         `load-char-attribute-table-map-function' when CHISE is defined.
687
688 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
689
690         * chartab.c: Include <chise.h> when `CHISE' is defined.
691         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
692
693 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
694
695         * mule-charset.c (charset_code_point): Fix problem when searching
696         in mother CCS fails with `defined_only' mode.
697
698 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
699
700         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
701         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
702         (put_char_composition): Likewise.
703         (Fput_char_attribute): Likewise.
704         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
705
706 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
707
708         * chartab.c (Q_ucs): Deleted.
709         (Fput_char_attribute): Don't refer `->ucs'.
710         (Fdefine_char): Likewise.
711         (Ffind_char): Likewise.
712         (syms_of_chartab): Delete `->ucs'.
713
714 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
715
716         * mule-charset.c (Qmap_cns11643_2): Renamed from
717         `Qchinese_cns11643_2'.
718         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
719         `chinese-cns11643-2'.
720         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
721         `=cns11643-2'.
722
723 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
724
725         * mule-charset.c (Qmap_cns11643_1): Renamed from
726         `Qchinese_cns11643_1'.
727         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
728         `chinese-cns11643-1'.
729         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
730         `=cns11643-1'.
731
732 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
733
734         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
735         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
736         `chinese-gb12345'.
737         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
738         `=gb12345'.
739
740 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
741
742         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
743         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
744         `chinese-gb2312'.
745         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
746         `=gb2312'.
747
748 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
749
750         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
751         (syms_of_mule_charset): Add new symbol `=big5' instead of
752         `chinese-big5'.
753         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
754
755 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
756
757         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
758         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
759         `korean-ksc5601'.
760         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
761         `=ks-x1001'.
762
763 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
764
765         * mule-charset.c (Qmap_jis_x0212): Renamed from
766         `Qjapanese_jisx0212'.
767         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
768         `japanese-jisx0212'.
769         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
770         `=jis-x0212'.
771
772 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
773
774         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
775         `Qjapanese_jisx0208'.
776         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
777         of `japanese-jisx0208'.
778         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
779         `=jis-x0208-1983'.
780
781 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
784         `Qjapanese_jisx0208_1978'.
785         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
786         of `japanese-jisx0208-1978'.
787         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
788         `=jis-x0208-1978'.
789
790 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
791
792         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
793         only for XEmacs CHISE.
794
795 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
796
797         * char-ucs.h: Compact non-ISO-IR charset-ids.
798         (LEADING_BYTE_UCS): Changed to -177.
799         (LEADING_BYTE_CONTROL_1): Changed to -77.
800         (LEADING_BYTE_UCS_BMP): Changed to -176.
801         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
802
803 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * mule-charset.c (Qiso_ir): New variable.
806         (Fmake_charset): Recognise new property `iso-ir'.
807         (syms_of_mule_charset): Add new symbol `iso-ir'.
808
809 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
810
811         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
812         n to -n; charset-id of non ISO-IR sets are changed to positive
813         numbers.
814
815 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
816
817         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
818         for &MCS-XXXXXXXX; values.
819
820 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
821
822         * mule.c (Vxemacs_chise_version): Renamed from
823         `Vutf_2000_version'.
824         (vars_of_mule): Add new variable `xemacs-chise-version'; define
825         `utf-2000-version' as an alias for `xemacs-chise-version'.
826
827 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
828
829         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
830         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
831         defined.
832
833         * config.h.in (CHISE): New macro.
834
835 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
836
837         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
838         of `ucs'.
839         (Qmap_ucs): New variable.
840         (syms_of_mule_charset): Add new symbol `=ucs'.
841         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
842
843         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
844         (simplify_char_spec): Likewise.
845
846         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
847
848         * char-ucs.h (Qmap_ucs): New extern variable.
849
850 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
853         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
854         don't define it when UTF2000 is not defined.
855         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
856         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
857         when UTF2000 is not defined.
858         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
859         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
860
861 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
862
863         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
864
865         * mule-charset.c (Vcharset_ucs_gb): Deleted.
866         (Qucs_gb): Deleted.
867         (syms_of_mule_charset): Delete `ucs-gb'.
868         (complex_vars_of_mule_charset): Likewise.
869
870 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
871
872         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
873
874         * mule-charset.c (Vcharset_ucs_cns): Deleted.
875         (Qucs_cns): Deleted.
876         (syms_of_mule_charset): Delete `ucs-cns'.
877         (complex_vars_of_mule_charset): Likewise.
878
879 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
882
883         * mule-charset.c (Vcharset_ucs_jis): Deleted.
884         (Qucs_jis): Deleted.
885         (syms_of_mule_charset): Delete `ucs-jis'.
886         (complex_vars_of_mule_charset): Likewise.
887
888 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
889
890         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
891
892         * mule-charset.c (Vcharset_ucs_ks): Deleted.
893         (Qucs_ks): Deleted.
894         (syms_of_mule_charset): Delete `ucs-ks'.
895         (complex_vars_of_mule_charset): Likewise.
896
897 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
898
899         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
900         (Qideograph_daikanwa_2): Deleted.
901         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
902         (complex_vars_of_mule_charset): Likewise.
903
904         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
905         (LEADING_BYTE_DAIKANWA_1): Deleted.
906         (LEADING_BYTE_DAIKANWA_2): Deleted.
907         (MIN_CHAR_DAIKANWA): Deleted.
908         (MAX_CHAR_DAIKANWA): Deleted.
909
910 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
911
912         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
913         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
914         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
915
916         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
917         (Vcharset_ideograph_daikanwa): Deleted.
918         (Qideograph_hanziku_{1..12}): Deleted.
919         (Qideograph_daikanwa): Deleted.
920         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
921         Vcharset_ideograph_daikanwa.
922         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
923         `ideograph-hanziku-{1..12}'.
924         (complex_vars_of_mule_charset): Likewise.
925
926 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
927
928         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
929
930         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
931         (Qideograph_gt_pj_{1..11}): Deleted.
932         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
933         (complex_vars_of_mule_charset): Likewise.
934
935 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
936
937         * mule-charset.c (Vcharset_ucs_big5): Deleted.
938         (Vcharset_ideograph_gt): Deleted.
939         (Qucs_big5): Deleted.
940         (Qideograph_gt): Deleted.
941         (syms_of_mule_charset): Delete symbol `ucs-big5' and
942         `ideograph-gt'.
943         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
944         and `ideograph-gt'.
945
946         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
947         (LEADING_BYTE_GT): Deleted.
948         (MIN_CHAR_GT): Deleted.
949         (MAX_CHAR_GT): Deleted.
950
951 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
952
953         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
954
955 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
956
957         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
958         (save_uint16_byte_table): Likewise.
959         (save_byte_table): Likewise; convert values by it.
960         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
961         for `ideographic-structure'.
962         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
963         as the filter for `ideographic-structure'.
964
965 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
966
967         * chartab.c (put_char_composition): New function.
968         (Fput_char_attribute): Use `put_char_composition'; use
969         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
970
971         * fns.c (simplify_char_spec): New function.
972         (char_ref_simplify_spec): New function.
973         (Fchar_refs_simplify_char_specs): New function.
974         (syms_of_fns): Add new builtin function
975         `char-refs-simplify-char-specs'.
976
977 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
978
979         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
980         (Qideograph_cbeta): Deleted.
981         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
982         (complex_vars_of_mule_charset): Likewise.
983
984         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
985         (MIN_CHAR_CBETA): Comment out.
986         (MAX_CHAR_CBETA): Likewise.
987
988 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
989
990         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
991         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
992         CHISE client feature.
993
994 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
995
996         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
997
998 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
999
1000         * mule-charset.c (charset_lookup_description_1): Use
1001         `NUM_LEADING_BYTES' in UTF-2000.
1002
1003 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1004
1005         * char-ucs.h (GC_CHARSETP): Deleted.
1006
1007 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1008
1009         * char-ucs.h (MAX_CHAR_GT): Updated.
1010
1011 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1012
1013         * text-coding.c: Sync with XEmacs 21.4.10.
1014
1015 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * mule-charset.c (Vcharset_china3_jef): Deleted.
1018         (Qchina3_jef): Deleted.
1019         (syms_of_mule_charset): Don't define `china3-jef'.
1020         (complex_vars_of_mule_charset): Likewise.
1021
1022         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1023         (MIN_CHAR_CHINA3_JEF): Comment out.
1024         (MAX_CHAR_CHINA3_JEF): Comment out.
1025
1026 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1027
1028         * mule-charset.c (Vcharset_ucs_gb): New variable.
1029         (Qucs_gb): New variable.
1030         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1031         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1032
1033         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1034
1035 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1036
1037         * mule-charset.c (charset_code_point): if a coded-charset has a
1038         final-byte, don't inherit the builtin range of the mother CCS.
1039
1040 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1041
1042         * mule-charset.c (charset_code_point): Fix problem about
1043         inheritance.
1044
1045 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1046
1047         * mule-charset.c (decode_builtin_char): Reorganized.
1048
1049 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1050
1051         * text-coding.c (char_encode_as_entity_reference): Modify for
1052         `charset_code_point'.
1053         (char_encode_shift_jis): Likewise.
1054         (char_encode_big5): Likewise.
1055         (char_encode_utf8): Likewise.
1056         (char_encode_iso2022): Likewise.
1057
1058         * mule-charset.c (charset_code_point): Add new argument
1059         `defined_only'.
1060         (Fencode_char): Add new optional argument `defined_only'.
1061
1062         * chartab.c (put_char_table): Modify for `charset_code_point'.
1063
1064         * char-ucs.h (charset_code_point): Add new argument
1065         `defined_only'.
1066         (encode_char_1): Modify for `charset_code_point'.
1067
1068 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1069
1070         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1071         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1072
1073 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1074
1075         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1076         (Qjis_x0208): Likewise.
1077         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1078         XCHARSET_FINAL(charset).
1079         (charset_code_point): Modify condition for final-byte based
1080         builtin-chars.
1081         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1082         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1083         in UTF-2000; specify `=jis-x0208' as the mother of
1084         `japanese-jisx0208-1978', `japanese-jisx0208' and
1085         `japanese-jisx0208-1990' in UTF-2000.
1086
1087 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1088
1089         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1090
1091 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * text-coding.c (decode_coding_utf16): Support UTF-16.
1094         (char_encode_utf16): Fixed.
1095
1096 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * text-coding.c (Qutf16): New variable in MULE.
1099         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1100         (Fcoding_system_type): Add `utf-16' in MULE.
1101         (struct detection_state): Add a structure for utf16 in MULE.
1102         (detect_coding_type): Setup st->utf16.mask in MULE.
1103         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1104         MULE.
1105         (reset_encoding_stream): Use `char_encode_utf16' and
1106         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1107         (detect_coding_utf16): New function [incomplete].
1108         (decode_coding_utf16): New function [support only UCS-2].
1109         (char_encode_utf16): New function.
1110         (char_finish_utf16): New function.
1111         (syms_of_file_coding): Add new symbol `utf-16'; setup
1112         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1113
1114         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1115         UTF-2000.
1116         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1117         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1118
1119 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1120
1121         * chartab.c (put_char_table): When a charset is specified as a
1122         range in UTF-2000, don't support builtin characters.
1123
1124 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1125
1126         * mule-charset.c (decode_defined_char): Don't refer external
1127         database if Qunbound or Qnil are found.
1128         (Fsave_charset_mapping_table): Don't define it if
1129         HAVE_CHISE_CLIENT is not defined.
1130         (Freset_charset_mapping_table): New function.
1131         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1132         found in external database.
1133         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1134         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1135         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1136
1137 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1138
1139         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1140         not.
1141
1142 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1143
1144         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1145         Q_lowercase, Q_uppercase in UTF-2000.
1146
1147         * chartab.c (get_char_table): Add special code for the standard
1148         case table to use character attribute `->downcase' and
1149         `->uppercase' for case operations in UTF-2000.
1150
1151         * casetab.c (Qflippedcase): New variable in UTF-2000.
1152         (Q_lowercase): Likewise.
1153         (Q_uppercase): Likewise.
1154         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1155         and `->uppercase' in UTF-2000.
1156         (complex_vars_of_casetab): Assign attribute name `downcase' to
1157         downcase and CANON table of Vstandard_case_table in UTF-2000;
1158         assign attribute name `flippedcase' to upcase and EQV table of
1159         Vstandard_case_table in UTF-2000.
1160
1161 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1162
1163         * text-coding.c (decode_add_er_char): Support isolated-chars.
1164         (char_encode_as_entity_reference): Likewise.
1165
1166 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1167
1168         * emacs.c (Vutf_2000_lisp_directory): New variable.
1169         (Vconfigure_utf_2000_lisp_directory): Likewise.
1170         (complex_vars_of_emacs): Add new variable
1171         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1172
1173 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1174
1175         * char-ucs.h (DECODE_CHAR): Delete special code for
1176         `chinese-big5-1' and `chinese-big5-2'.
1177
1178         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1179         (Qbig5_2): Likewise.
1180         (decode_defined_char): Support CONVERSION_BIG5_1 and
1181         CONVERSION_BIG5_2.
1182         (decode_builtin_char): Likewise.
1183         (charset_code_point): Likewise.
1184         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1185         'conversion in UTF-2000.
1186         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1187         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1188         `chinese-big5-2' as children of `chinese-big5'.
1189
1190         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1191         (CONVERSION_BIG5_2): New macro.
1192
1193 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1194
1195         * text-coding.c (char_encode_big5): Support entity-reference.
1196
1197 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1198
1199         * text-coding.c (char_encode_as_entity_reference): New function.
1200         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1201
1202 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1203
1204         * text-coding.c (decode_coding_big5): Support entity-reference
1205         decoding feature.
1206
1207 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1208
1209         * text-coding.c (allocate_coding_system): Initialize initial
1210         charsets for CODESYS_UTF8.
1211         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1212         charset-g2 for CODESYS_UTF8.
1213         (decode_coding_utf8): Use charset-g0.
1214         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1215         to force variants to map to UCS.
1216
1217 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1218
1219         * text-coding.c (Qutf_8_mcs): New variable.
1220         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1221         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1222         instead of `utf-8' in UTF-2000.
1223
1224 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1225
1226         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1227         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1228         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1229         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1230         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1231         CONVERSION_96x96x96x96 are introduced.
1232         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1233         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1234         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1235
1236         * char-ucs.h (CONVERSION_94): New macro.
1237         (CONVERSION_96): New macro.
1238         (CONVERSION_94x94): New macro.
1239         (CONVERSION_96x96): New macro.
1240         (CONVERSION_94x94x94): New macro.
1241         (CONVERSION_96x96x96): New macro.
1242         (CONVERSION_94x94x94x60): New macro.
1243         (CONVERSION_94x94x94x94): New macro.
1244         (CONVERSION_96x96x96x96): New macro.
1245
1246 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1247
1248         * chartab.c (Vcharacter_variant_table): Deleted.
1249         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1250         of `Vcharacter_variant_table'.
1251         (Fput_char_attribute): Likewise.
1252         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1253         (complex_vars_of_chartab): Likewise.
1254
1255 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1256
1257         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1258
1259         * fns.c (Qideographic_structure): New variable.
1260         (Qkeyword_char): New variable.
1261         (ids_format_unit): New function.
1262         (Fideographic_structure_to_ids): New function.
1263         (syms_of_fns): Add new symbols `ideographic-structure' and
1264         `:char'; add new builtin function `ideographic-structure-to-ids'.
1265
1266         * data.c (Fchar_ref_p): New function.
1267         (syms_of_data): Add new builtin function `char-ref-p'.
1268
1269         * chartab.h: Add an EXFUN for `Ffind_char'.
1270
1271 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1272
1273         * text-coding.c (Vcharacter_composition_table): Deleted.
1274         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1275         in every UTF-2000.
1276
1277         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1278         UTF-2000.
1279         (Vcharacter_composition_table): Deleted.
1280         (Fget_composite_char): Use the implementation for external-DB
1281         support in every UTF-2000.
1282         (Fput_char_attribute): Likewise.
1283         (char_attribute_system_db_file): Don't define if external-DB
1284         feature is not available.
1285         (Fsave_char_attribute_table): Likewise.
1286         (Fmount_char_attribute_table): Likewise.
1287         (Fclose_char_attribute_table): Likewise.
1288         (Freset_char_attribute_table): Likewise.
1289         (Fload_char_attribute_table): Likewise.
1290         (syms_of_chartab): Don't define `save-char-attribute-table',
1291         `mount-char-attribute-table', `reset-char-attribute-table',
1292         `close-char-attribute-table' and `load-char-attribute-table' if
1293         external-DB feature is not available.
1294         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1295
1296 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1297
1298         * text-coding.c (Qcomposition): Add extern if external-DB feature
1299         is supported.
1300         (Vcharacter_composition_table): Don't add extern if external-DB
1301         feature is supported.
1302         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1303         character composition rule if external-DB feature is supported.
1304
1305         * chartab.c (Vcharacter_composition_table): Don't define if
1306         external-DB feature is supported.
1307         (Qcomposition): New variable.
1308         (Fget_composite_char): New implementation for external-DB support.
1309         (Fput_char_attribute): Use `composition' property of each
1310         character instead of `Vcharacter_composition_table' to store
1311         character-composition rules if external-DB feature is supported.
1312         (syms_of_chartab): Add new symbol `composition'.
1313         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1314         external-DB feature is supported.
1315
1316 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1317
1318         * chartab.c (Vchar_db_stingy_mode): New variable.
1319         (load_char_attribute_maybe): Close database if
1320         Vchar_db_stingy_mode is not NIL.
1321         (Fload_char_attribute_table_map_function): Use
1322         `get_char_id_table_0' instead of `get_char_id_table'.
1323         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1324
1325         * chartab.h (get_char_id_table_0): New inline function.
1326         (get_char_id_table): Use `get_char_id_table_0'.
1327
1328 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1329
1330         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1331         and `COMPOSE_ADD_CHAR'.
1332         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1333
1334 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1335
1336         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1337         instead of `DECODE_ADD_UCS_CHAR'.
1338         (COMPOSE_ADD_CHAR): Likewise.
1339
1340 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1341
1342         * text-coding.c (decode_flush_er_chars): New inline function.
1343         (decode_add_er_char): New function.
1344         (decode_coding_utf8): Use `decode_flush_er_chars' and
1345         `decode_add_er_char'.
1346
1347 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1350         done before `decode_output_utf8_partial_char'.
1351
1352         * mule-charset.c (complex_vars_of_mule_charset): Specify
1353         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1354         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1355
1356 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1357
1358         * mule-charset.c (decode_defined_char): New function; search
1359         mother.
1360         (decode_builtin_char): Don't search mother if
1361         XCHARSET_MAX_CODE(charset) == 0.
1362         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1363         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1364         (Fdecode_char): Use `decode_defined_char' instead of
1365         `DECODE_DEFINED_CHAR'.
1366         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1367         mother of `Vcharset_ucs_jis'.
1368
1369         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1370         instead of `DECODE_DEFINED_CHAR'.
1371
1372         * char-ucs.h (decode_defined_char): Renamed from
1373         `DECODE_DEFINED_CHAR'; changed to normal function.
1374         (DECODE_CHAR): Use `decode_defined_char' instead of
1375         `DECODE_DEFINED_CHAR'.
1376
1377         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1378
1379 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1380
1381         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1382
1383         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1384         variable.
1385         (Quse_entity_reference): New variable.
1386         (Qd): New variable.
1387         (Qx): New variable.
1388         (QX): New variable.
1389         (coding_system_description): Add description for
1390         `ccs_priority_list'.
1391         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1392         (allocate_coding_system): Initialize `ccs_priority_list' in
1393         UTF-2000.
1394         (Fmake_coding_system): Add description about
1395         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1396         (codesys).
1397         (Fcoding_system_property): Accept `disable-composition' and
1398         `use-entity-reference' in UTF-2000.
1399         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1400         in UTF-2000.
1401         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1402         (decode_coding_utf8): Decode entity-reference if
1403         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1404         (char_encode_utf8): Encode non-Unicode characters as
1405         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1406         (str->codesys).
1407         (syms_of_file_coding): Add new symbols `use-entity-reference',
1408         `d', `x', `X'.
1409         (vars_of_file_coding): Add new variable
1410         `coded-charset-entity-reference-alist'.
1411         (complex_vars_of_file_coding): Declare `disable-composition' and
1412         `use-entity-reference' to be coding-system-properties in UTF-2000.
1413
1414         * file-coding.h (struct Lisp_Coding_System): Add new member
1415         `use_entity_reference' and `ccs_priority_list'.
1416         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1417         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1418         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1419
1420 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1421
1422         * chartab.c (save_uint8_byte_table): Don't clear the table.
1423         (save_uint16_byte_table): Likewise.
1424         (save_byte_table): Likewise.
1425         (Fmount_char_attribute_table): New function.
1426         (syms_of_chartab): Add new builtin function
1427         `mount-char-attribute-table'.
1428
1429 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1430
1431         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1432         "w+" mode.
1433         (load_char_decoding_entry_maybe): Open database as read-only mode.
1434
1435         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1436         open database as "w+" mode.
1437         (load_char_attribute_maybe): Open database as read-only mode.
1438         (Fload_char_attribute_table): Likewise.
1439
1440 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1441
1442         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1443         (char_table_description): Delete member `db_file'.
1444         (Fmake_char_table): Don't refer `ct->db_file'.
1445         (Fcopy_char_table): Likewise.
1446         (Fsave_char_attribute_table): Likewise.
1447         (Fclose_char_attribute_table): Likewise.
1448         (Freset_char_attribute_table): Likewise.
1449         (load_char_attribute_maybe): Likewise.
1450         (Fload_char_attribute_table): Likewise.
1451
1452         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1453
1454 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1455
1456         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1457         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1458         `ct->db' is living.
1459         (load_char_attribute_maybe): Likewise.
1460         (Fload_char_attribute_table): Likewise.
1461
1462 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1463
1464         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1465         `ct->db_file' unconditionally.
1466
1467 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1468
1469         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1470         UTF-2000.
1471         (char_table_description): Add description for `db_file' and `db'
1472         in UTF-2000.
1473         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1474         UTF-2000.
1475         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1476         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1477         (Fclose_char_attribute_table): New function.
1478         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1479         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1480         and `cit->db'.
1481         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1482         (syms_of_chartab): Add new builtin function
1483         `Fclose_char_attribute_table'.
1484
1485 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1486
1487         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1488         `db' in UTF-2000.
1489         (load_char_attribute_maybe): Change interface.
1490         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1491
1492 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1493
1494         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1495
1496 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1497
1498         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1499         instead of `DECODE_CHAR' for mother; don't use special code for
1500         chinese-big5 to use code space of chinese-big5-1 and
1501         chinese-big5-2.
1502         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1503         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1504
1505         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1506         (MAX_CHAR_BIG5_CDP): Revival.
1507
1508 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1509
1510         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1511         the XLFD registry-encoding name of `chinese-big5'.
1512
1513 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1514
1515         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1516         (Qchinese_big5_cdp): Deleted.
1517         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1518         (complex_vars_of_mule_charset): Delete coded-charset
1519         `chinese-big5-cdp'.
1520
1521         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1522         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1523         `CHARSET_ID_OFFSET - n' for private CCS.
1524         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1525         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1526         of `MIN_LEADING_BYTE'.
1527         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1528         `(CHARSET_ID_OFFSET - 97)'.
1529         (MIN_CHAR_BIG5_CDP): Deleted.
1530         (MAX_CHAR_BIG5_CDP): Deleted.
1531
1532 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533
1534         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1535
1536 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1537
1538         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1539         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1540         chartab.c].
1541
1542         * chartab.c (Vutf_2000_version): Moved to mule.c.
1543         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1544
1545 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1546
1547         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1548         when HAVE_CHISE_CLIENT is not defined.
1549
1550         * mule.c (vars_of_mule): Provide feature `chise' when
1551         HAVE_CHISE_CLIENT is defined.
1552
1553 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1554
1555         * config.h.in (UTF2000): Add comment.
1556         (HAVE_CHISE_CLIENT): New macro.
1557
1558 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1559
1560         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1561         CONSP.
1562         (Fput_char_attribute): Likewise.
1563         (char_attribute_system_db_file): Encode file-name of attribute.
1564         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1565         the initial value.
1566
1567 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1568
1569         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1570         (Fsave_charset_mapping_table): Use
1571         `char_attribute_system_db_file'.
1572         (load_char_decoding_entry_maybe): Likewise.
1573
1574         * chartab.h (Qsystem_char_id): New external variable.
1575         (char_attribute_system_db_file): New prototype.
1576
1577         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1578         (char_attribute_system_db_file): New function.
1579         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1580         (Freset_char_attribute_table): Likewise.
1581         (load_char_attribute_maybe): Likewise.
1582         (Fload_char_attribute_table): Likewise.
1583         (syms_of_chartab): Add new symbol `system-char-id'.
1584
1585 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1586
1587         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1588         `XCHARSET_GRAPHIC(ccs)'.
1589
1590 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1591
1592         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1593
1594 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1595
1596         * chartab.c (Q_ucs_variants): New variable.
1597         (syms_of_chartab): Add new symbol `->ucs-variants'.
1598         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1599         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1600         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1601
1602         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1603
1604         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1605         `HAVE_DATABASE' is defined.
1606         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1607         `HAVE_DATABASE' is defined.
1608
1609 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1610
1611         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1612         attribute-table.
1613         (Freset_char_attribute_table): New function.
1614         (syms_of_chartab): Add new builtin function
1615         `reset-char-attribute-table'.
1616
1617 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1618
1619         * chartab.c (load_char_attribute_maybe): Don't make directories.
1620
1621 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1622
1623         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1624
1625         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1626         for decoding-table.
1627
1628 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1629
1630         * mule-charset.c (Fsave_charset_mapping_table): Use
1631         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1632
1633         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1634         instead of `XCHARSET_CHARS'.
1635
1636 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1637
1638         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1639         (XCHARSET_BYTE_SIZE): Likewise.
1640
1641         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1642         mule-charset.c].
1643         (XCHARSET_BYTE_SIZE): Likewise.
1644
1645 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1646
1647         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1648         data-directory to store database.
1649         (Fsave_char_attribute_table): Likewise.
1650         (load_char_attribute_maybe): Likewise.
1651         (Fload_char_attribute_table): Likewise.
1652
1653 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1654
1655         * mule-charset.c (Fsave_charset_mapping_table): New function.
1656         (syms_of_mule_charset): Add new builtin function
1657         `save-charset-mapping-table'.
1658
1659 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1660
1661         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1662         (get_ccs_octet_table): New inline function.
1663         (put_ccs_octet_table): Likewise.
1664         (decoding_table_put_char): Use `get_ccs_octet_table' and
1665         `put_ccs_octet_table'.
1666         (decoding_table_remove_char): Use `decoding_table_put_char'.
1667         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1668
1669         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1670         into encoding_table.
1671         (make_charset): Use Qunbound instead Qnil as initial value of
1672         decoding_table.
1673
1674 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1675
1676         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1677         element is Qunloaded.
1678         (map_over_uint16_byte_table): Likewise.
1679         (map_over_byte_table): Likewise.
1680         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1681         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1682         database support, load encoding-table of the specified
1683         coded-charset if it is not loaded yet.
1684         (save_uint8_byte_table): New function of UTF-2000 with external
1685         database support.
1686         (save_uint16_byte_table): Likewise.
1687         (save_byte_table): Likewise.
1688         (Fput_char_attribute): Don't store value into external database
1689         even if the external database feature is supported in UTF-2000;
1690         set `attribute' as name of char-table if the external database
1691         feature is supported.
1692         (Fsave_char_attribute_table): New function in UTF-2000.
1693         (syms_of_chartab): Add new builtin function
1694         `save-char-attribute-table' in UTF-2000.
1695
1696 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1697
1698         * chartab.c (char_attribute_table_to_put): New variable in
1699         UTF-2000.
1700         (Qput_char_table_map_function): Likewise.
1701         (value_to_put): Likewise.
1702         (Fput_char_table_map_function): New function in UTF-2000.
1703         (put_char_table): Use `Fmap_char_attribute' for
1704         CHARTAB_RANGE_CHARSET in UTF-2000.
1705         (Fput_char_attribute): Store symbol instead of string in
1706         `XCHAR_TABLE_NAME (table)'.
1707         (load_char_attribute_maybe): Likewise.
1708         (syms_of_chartab): Add new symbol/function
1709         `put-char-table-map-function'.
1710
1711 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1712
1713         * database.h: Add new EXFUN for `Fmap_database'.
1714
1715         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1716         (syms_of_database): Likewise.
1717
1718         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1719         UTF-2000.
1720         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1721         (XCHAR_TABLE_UNLOADED): Likewise.
1722
1723         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1724         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1725         HAVE_DATABASE is defined.
1726         (char_attribute_table_to_load): New variable of UTF-2000 with
1727         external database support.
1728         (Qload_char_attribute_table_map_function): Likewise.
1729         (Fload_char_attribute_table_map_function): New function of
1730         UTF-2000 with external database support.
1731         (Fload_char_attribute_table): New function of UTF-2000.
1732         (Fmap_char_attribute): Call Fload_char_attribute_table if
1733         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1734         (syms_of_chartab): Add new symbol and function
1735         `load-char-attribute-table-map-function' in UTF-2000 with external
1736         database support; add new function `load-char-attribute-table' in
1737         UTF-2000.
1738
1739 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1740
1741         * chartab.h (load_char_attribute_maybe): New prototype for
1742         UTF-2000 with DATABASE support.
1743         (get_char_id_table): Use `load_char_attribute_maybe' if
1744         HAVE_DATABASE is defined.
1745
1746         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1747         with DATABASE support.
1748
1749 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1750
1751         * chartab.c (Fput_char_attribute): Use S-expression as key of
1752         external database.
1753
1754         * chartab.h (get_char_id_table): Use S-expression as key of
1755         external database.
1756
1757 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1758
1759         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1760         if an element is not loaded, load the corresponding attributes
1761         from an external database.
1762         (map_over_uint16_byte_table): Likewise.
1763         (map_over_byte_table): Likewise.
1764         (map_char_table): Modify for `map_over_uint8_byte_table',
1765         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1766         element is not loaded, load the corresponding attributes from an
1767         external database.
1768         (Fput_char_attribute): Change initial values to Qunloaded.
1769
1770         * chartab.h (get_char_id_table): If a character attribute is not
1771         loaded and the attribute value is not found in an external
1772         database, store Qunbound as the attribute value.
1773
1774 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1775
1776         * chartab.c (BT_UINT8_unloaded): New macro.
1777         (UINT8_VALUE_P): Accept Qunloaded.
1778         (UINT8_ENCODE): Likewise.
1779         (UINT8_DECODE): Likewise.
1780         (BT_UINT16_unloaded): New macro.
1781         (UINT16_VALUE_P): Accept Qunloaded.
1782         (UINT16_ENCODE): Likewise.
1783         (UINT16_DECODE): Likewise.
1784         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1785         BT_UINT16_unloaded.
1786         (mark_char_table): Mark `ct->name' in UTF-2000.
1787         (char_table_description): Add `name' in UTF-2000.
1788         (Fmake_char_table): Initialize `ct->name'.
1789         (Fcopy_char_table): Copy `ct->name'.
1790         (Fput_char_attribute): Store value into an external database if
1791         HAVE_DATABASE is defined.
1792
1793         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1794         UTF-2000.
1795         (CHAR_TABLE_NAME): New macro in UTF-2000.
1796         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1797         (get_char_id_table): Try to read an external database if Qunloaded
1798         is stored in a table.
1799
1800         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1801         Qunloaded.
1802
1803 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1804
1805         * database.h: Add EXFUN definitions for Fopen_database,
1806         Fput_database, Fget_database and Fclose_database.
1807
1808         * data.c (Qunloaded): New variable in UTF-2000.
1809
1810         * lisp.h (Qunloaded): New variable in UTF-2000.
1811
1812 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1813
1814         * mule-charset.c (put_char_ccs_code_point): Modify for
1815         `decoding_table_remove_char' and `decoding_table_put_char'.
1816         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1817
1818         * char-ucs.h (decoding_table_remove_char): Change arguments to
1819         hide decoding_table vector.
1820         (decoding_table_put_char): Likewise.
1821
1822 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1823
1824         * mule-charset.c (decoding_table_remove_char): Moved to
1825         char-ucs.h.
1826         (decoding_table_put_char): Likewise.
1827
1828         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1829         from mule-charset.c].
1830         (decoding_table_remove_char): New inline function [moved from
1831         mule-charset.c].
1832         (decoding_table_put_char): Likewise.
1833
1834 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1835
1836         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1837         extension.
1838
1839 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1840
1841         * mule-charset.c (decode_builtin_char): Support mother charsets.
1842
1843 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1844
1845         * mule-charset.c (Q94x94x60): New variable.
1846         (charset_code_point): Support conversion `94x94x60'.
1847         (Fmake_charset): Likewise.
1848         (syms_of_mule_charset): Add new symbol `94x94x60'.
1849
1850         * char-ucs.h (CONVERSION_94x94x60): New macro.
1851
1852 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1853
1854         * mule-charset.c (charset_code_point): Unify code about
1855         `code-offset'.
1856
1857 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1858
1859         * mule-charset.c (charset_code_point): Merge code about builtin
1860         characters into code about mother charsets; don't use
1861         `range_charset_code_point'.
1862         (range_charset_code_point): Deleted.
1863
1864 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1865
1866         * mule-charset.c (Qcode_offset): New variable.
1867         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1868         `max-code'; accept new property `code-offset'.
1869         (syms_of_mule_charset): Add new symbol `code-offset'.
1870
1871 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1872
1873         * mule-charset.c (range_charset_code_point): Fixed.
1874
1875 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1876
1877         * mule-charset.c (decode_builtin_char): Change semantics of
1878         code-offset of coded-charset.
1879         (charset_code_point): Likewise.
1880         (range_charset_code_point): Likewise.
1881         (complex_vars_of_mule_charset): Modify for the change.
1882
1883 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1884
1885         * mule-charset.c (Fencode_char): Reverse arguments.
1886
1887         * mule-charset.c (charset_code_point): Fixed.
1888
1889 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1890
1891         * mule-charset.c (Vcharset_mojikyo): Deleted.
1892         (Vcharset_mojikyo_2022_1): Deleted.
1893         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1894         (Qmin_code): New variable in UTF-2000.
1895         (Qmax_code): Likewise.
1896         (Qmother): Likewise.
1897         (Qconversion): Likewise.
1898         (Q94x60): Likewise.
1899         (Qmojikyo): Deleted.
1900         (Qmojikyo_2022_1): Deleted.
1901         (Qmojikyo_pj_{1..22}): Deleted.
1902         (mark_charset): Mark `cs->mother'.
1903         (charset_description): Add description for `mother'.
1904         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1905         new arguments `mother' and `conversion'; use
1906         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1907         (charset_code_point): Moved from char-ucs.h; support `mother'
1908         charset feature.
1909         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1910         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1911         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1912         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1913         allow 2 as the value of `graphic' in UTF-2000; add new properties
1914         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1915         require `final' in UTF-2000; modify for `make_charset'.
1916         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1917         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1918         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1919         (Fencode_char): New function.
1920         (syms_of_mule_charset): Add new builtin function `encode-char' in
1921         UTF-2000; add new symbols `min-code', `max-code', `mother',
1922         `conversion' and `94x60'; delete symbols `mojikyo',
1923         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1924         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1925         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1926         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1927
1928         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1929         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1930
1931         * char-ucs.h (Vcharset_mojikyo): Deleted.
1932         (Vcharset_mojikyo_2022_1): Deleted.
1933         (LEADING_BYTE_MOJIKYO): Deleted.
1934         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1935         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1936         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1937         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1938         add new member `mother'; add new member `conversion'.
1939         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1940         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1941         (CHARSET_MOTHER): New macro.
1942         (CHARSET_CONVERSION): New macro.
1943         (CONVERSION_IDENTICAL): New macro.
1944         (CONVERSION_94x60): New macro.
1945         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1946         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1947         (XCHARSET_MOTHER): New macro.
1948         (XCHARSET_CONVERSION): New macro.
1949         (MIN_CHAR_MOJIKYO): Deleted.
1950         (MAX_CHAR_MOJIKYO): Deleted.
1951         (DECODE_MOJIKYO_2022): Deleted.
1952         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1953         (charset_code_point): Changed to non-inline function.
1954         (encode_char_1): Use `charset_code_point'.
1955         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1956
1957 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1958
1959         * lread.c (read_compiled_function): Fix prototype.
1960         (read_vector): Likewise.
1961
1962 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1963
1964         * lrecord.h (struct lrecord_header): Delete `older'.
1965         (set_lheader_implementation): Delete code for `older'.
1966         (set_lheader_older_implementation): Deleted.
1967         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1968         (OLDER_RECORD_P): Deleted.
1969         (OLDER_RECORD_HEADER_P): Deleted.
1970         (alloc_older_lcrecord): Deleted.
1971         (alloc_older_lcrecord_type): Deleted.
1972
1973         * alloc.c (all_older_lcrecords): Deleted.
1974         (alloc_older_lcrecord): Deleted.
1975         (disksave_object_finalization_1): Delete code for older objects.
1976         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1977         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1978
1979 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1980
1981         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1982         instead of `make_older_vector'.
1983         (put_char_ccs_code_point): Likewise.
1984         (mark_charset): Mark `cs->decoding_table'.
1985         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1986
1987         * lisp.h (make_older_vector): Deleted.
1988         (make_vector_newer): Deleted.
1989
1990         * config.h.in (HAVE_GGC): Deleted.
1991
1992         * alloc.c (make_older_vector): Deleted.
1993         (make_vector_newer_1): Deleted.
1994         (make_vector_newer): Deleted.
1995
1996 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1997
1998         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1999         (Qideograph_daikanwa_2): New variable.
2000         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2001         (complex_vars_of_mule_charset): Add new coded-charset
2002         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2003         `LEADING_BYTE_DAIKANWA'.
2004
2005         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2006         (LEADING_BYTE_DAIKANWA_1): New macro.
2007         (LEADING_BYTE_DAIKANWA_2): New macro.
2008         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2009
2010 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2011
2012         * mule-charset.c (complex_vars_of_mule_charset): Change
2013         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2014         the second revised version.
2015
2016 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2017
2018         * mule-charset.c (Vcharset_ucs_smp): New variable.
2019         (Vcharset_ucs_sip): New variable.
2020         (Qucs_smp): New variable.
2021         (Qucs_sip): New variable.
2022         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2023         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2024         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2025         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2026         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2027         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2028
2029         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2030         (LEADING_BYTE_UCS_SIP): New macro.
2031         (MIN_CHAR_SMP): New macro.
2032         (MAX_CHAR_SMP): New macro.
2033         (MIN_CHAR_SIP): New macro.
2034         (MAX_CHAR_SIP): New macro.
2035
2036 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2037
2038         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2039         utf-2000.
2040
2041 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2042
2043         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2044         value; don't store value into `encoding_table' of `Lisp_Charset'.
2045         (mark_charset): `encoding_table' was deleted.
2046         (charset_description): Likewise.
2047         (make_charset): Likewise.
2048         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2049         `put_char_ccs_code_point'.
2050
2051         * chartab.h (Fput_char_attribute): New EXFUN.
2052
2053         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2054         is unified with normal symbol space.
2055         (Fget_char_attribute): Likewise.
2056         (Fput_char_attribute): Likewise; behavior of
2057         `put_char_ccs_code_point' is changed.
2058
2059         * char-ucs.h: Include "elhash.h".
2060         (Vchar_attribute_hash_table): New external variable.
2061         (struct Lisp_Charset): Delete `encoding_table'.
2062         (CHARSET_ENCODING_TABLE): New implementation; refer
2063         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2064         `Lisp_Charset'.
2065
2066 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2067
2068         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2069         (cs) == 0.
2070
2071 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2072
2073         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2074         `chinese-big5'.
2075
2076 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2077
2078         * chartab.c (uint8_byte_table_description): New constant.
2079         (uint8-byte-table): Use `uint8_byte_table_description'.
2080         (uint16_byte_table_description): New constant.
2081         (uint16-byte-table): Use `uint16_byte_table_description'.
2082
2083 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2086         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2087
2088 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * mule-charset.c (Vcharset_ucs_ks): New variable.
2091         (Qucs_ks): New variable.
2092         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2093         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2094
2095         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2096
2097 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2098
2099         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2100         (Fdecode_char): Likewise.
2101
2102         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2103         chartab.h.
2104         (Fdefine_char): Modify for Fdecode_char.
2105         (Ffind_char): Likewise.
2106
2107         * mule-charset.c (Fdecode_char): Add new optional argument
2108         `defined-only'.
2109         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2110
2111 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2112
2113         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2114         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2115         (allocate_coding_system): Initialize initial-charsets of
2116         CODESYS_BIG5 in XEmacs UTF-2000.
2117         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2118         CODESYS_BIG5 in XEmacs UTF-2000.
2119         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2120         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2121
2122         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2123         variables.
2124         (Qideograph_hanziku_{1 .. 12}): Likewise.
2125         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2126         .. 12}'.
2127         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2128         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2129         `ideograph-hanziku-{1 .. 12}'.
2130
2131         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2132         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2133         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2134         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2135         (DECODE_DEFINED_CHAR): New inline function.
2136         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2137
2138 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2139
2140         * mule-charset.c (Vcharset_china3_jef): Renamed from
2141         `Vcharset_japanese_jef_china3'.
2142         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2143         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2144         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2145         (syms_of_mule_charset): Rename `china3-jef' from
2146         `japanese-jef-china3'.
2147         (complex_vars_of_mule_charset): Likewise; rename
2148         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2149
2150         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2151         `LEADING_BYTE_JEF_CHINA3'.
2152         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2153         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2154
2155 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2156
2157         * mule-charset.c (encode_builtin_char_1): Comment out special code
2158         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2159
2160         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2161         (MAX_CHAR_MOJIKYO_0): Comment out.
2162         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2163         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2164         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2165         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2166
2167 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2170         (Qideograph_cbeta): New variable.
2171         (encode_builtin_char_1): Comment out special code for
2172         coded-charset `mojikyo' and `japanese-jef-china3'.
2173         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2174         (complex_vars_of_mule_charset): Add new coded-charset
2175         `ideograph-cbeta'.
2176
2177         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2178         (MIN_CHAR_CBETA): New macro.
2179         (MAX_CHAR_CBETA): New macro.
2180
2181 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2182
2183         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2184         (LEADING_BYTE_JEF_CHINA3): New macro.
2185         (MIN_CHAR_JEF_CHINA3): New macro.
2186         (MAX_CHAR_JEF_CHINA3): Likewise.
2187         (DECODE_CHAR): Fixed.
2188
2189 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2190
2191         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2192         (Qjapanese_jef_china3): New variable.
2193         (encode_builtin_char_1): Support `japanese-jef-china3'.
2194         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2195         (complex_vars_of_mule_charset): Add new coded-charset
2196         `japanese-jef-china3'.
2197
2198 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2199
2200         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2201         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2202         94^4, 96^3, 96^4, 128^n and 256^n set.
2203         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2204         (map_char_table): Likewise.
2205
2206 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2207
2208         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2209         UTF-2000.
2210
2211 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2212
2213         * chartab.h (get_char_id_table): New inline function.
2214
2215         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2216         function.
2217
2218 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2219
2220         * chartab.h (decode_char_table_range): New prototype in XEmacs
2221         UTF-2000.
2222         (put_char_id_table): New inline function in XEmacs UTF-2000.
2223
2224         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2225         function.
2226         (decode_char_table_range): Delete static declaration in XEmacs
2227         UTF-2000.
2228
2229 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2230
2231         * chartab.c (put_char_id_table): Use `put_char_table'.
2232
2233 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2234
2235         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2236         (map_over_uint16_byte_table): Likewise.
2237         (map_over_byte_table): Likewise.
2238         (map_char_table): Modify for `map_over_uint8_byte_table',
2239         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2240         UTF-2000.
2241
2242 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2243
2244         * chartab.c (struct map_char_table_for_charset_arg): New
2245         structure.
2246         (map_char_table_for_charset_fun): New function.
2247         (map_char_table): Use `map_char_table' for encoding_table of
2248         `range->charset'.
2249
2250 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2251
2252         * chartab.c (map_char_table): Check a character is found in
2253         range->charset instead of non default value is defined in
2254         char-table when range is CHARTAB_RANGE_ROW.
2255
2256 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * chartab.c (map_char_id_table): Deleted.
2259         (Fmap_char_attribute): Use `map_char_table' instead of
2260         `map_char_id_table'.
2261
2262 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2263
2264         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2265         UTF-2000.
2266         (update_syntax_table): Deleted in XEmacs UTF-2000.
2267
2268         * syntax.c (find_defun_start): Use `syntax_table' instead of
2269         `mirror_syntax_table' in XEmacs UTF-2000.
2270         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2271         UTF-2000.
2272         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2273         XEmacs UTF-2000.
2274         (Fmatching_paren): Likewise.
2275         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2276         in XEmacs UTF-2000.
2277         (find_start_of_comment): Likewise.
2278         (find_end_of_comment): Likewise.
2279         (Fforward_comment): Likewise.
2280         (scan_lists): Likewise.
2281         (char_quoted): Likewise.
2282         (Fbackward_prefix_chars): Likewise.
2283         (scan_sexps_forward): Likewise.
2284         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2285         (update_syntax_table): Likewise.
2286
2287         * search.c (skip_chars): Use `syntax_table' instead of
2288         `mirror_syntax_table' in XEmacs UTF-2000.
2289         (wordify): Likewise.
2290         (Freplace_match): Likewise.
2291
2292         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2293         `mirror_syntax_table' in XEmacs UTF-2000.
2294         (WORDCHAR_P_UNSAFE): Likewise.
2295         (re_match_2_internal): Likewise.
2296
2297         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2298         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2299
2300         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2301         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2302
2303         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2304         XEmacs UTF-2000.
2305
2306         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2307         UTF-2000.
2308         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2309         (char_table_description): Delete `mirror_table' in XEmacs
2310         UTF-2000.
2311         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2312         UTF-2000.
2313         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2314         (Fcopy_char_table): Likewise.
2315         (put_char_table): Don't call `update_syntax_table' in XEmacs
2316         UTF-2000.
2317
2318         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2319         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2320         (casify_region_internal): Likewise.
2321
2322         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2323
2324         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2325         `mirror_syntax_table' in XEmacs UTF-2000.
2326
2327         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2328         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2329         (Fexpand_abbrev): Likewise.
2330
2331 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2332
2333         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2334
2335 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2336
2337         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2338         (map_over_uint16_byte_table): Likewise.
2339         (map_over_byte_table): Likewise.
2340         (get_char_id_table): Refer `cit->default_value'.
2341         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2342         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2343         of character-id ranges.
2344         (mark_char_table): Mark `ct->default_value'.
2345         (char_table_description): Add `default_value'.
2346         (fill_char_table): Use `default_value'.
2347         (decode_char_table_range): Decode `nil' as
2348         `CHARTAB_RANGE_DEFAULT'.
2349         (get_char_id_table): Refer `cit->default_value'.
2350         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2351         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2352         temporary hack; check value of char-table is bound or not.
2353         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2354
2355         * chartab.h (struct Lisp_Char_Table): Add new member
2356         `default_value' in XEmacs UTF-2000.
2357         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2358         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2359         UTF-2000.
2360
2361 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2362
2363         * chartab.h (Lisp_Char_ID_Table): Deleted.
2364
2365         * chartab.c (char_table_description): Fix typo.
2366         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2367         `Lisp_Char_ID_Table'.
2368
2369 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2370
2371         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2372         `CHAR_ID_TABLE_P'.
2373
2374         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2375         `CHAR_ID_TABLE_P'.
2376
2377         * chartab.h (XCHAR_ID_TABLE): Deleted.
2378         (XSETCHAR_ID_TABLE): Deleted.
2379         (CHAR_ID_TABLE_P): Deleted.
2380
2381         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2382         `CHAR_ID_TABLE_P'.
2383         (Fget_composite_char): Likewise.
2384         (put_char_table): Likewise.
2385         (add_char_attribute_alist_mapper): Fixed.
2386         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2387         `CHAR_ID_TABLE_P'.
2388         (Fget_char_attribute): Likewise.
2389         (Fget_char_attribute): Likewise.
2390         (Fmap_char_attribute): Likewise.
2391
2392         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2393         `CHAR_ID_TABLE_P'.
2394         (encode_char_1): Likewise.
2395
2396 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2397
2398         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2399         `XCHAR_ID_TABLE'.
2400
2401         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2402         instead of `XCHAR_ID_TABLE'.
2403         (remove_char_ccs): Likewise.
2404
2405         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2406         `XCHAR_ID_TABLE'.
2407         (Fget_composite_char): Likewise.
2408         (Fchar_variants): Likewise.
2409         (put_char_table): Likewise.
2410         (add_char_attribute_alist_mapper): Likewise.
2411         (Fchar_attribute_alist): Likewise.
2412         (Fget_char_attribute): Likewise.
2413         (Fput_char_attribute): Likewise.
2414         (Fmap_char_attribute): Likewise.
2415         (Fmap_char_attribute): Likewise.
2416
2417         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2418         `XCHAR_ID_TABLE'.
2419         (encode_char_1): Likewise.
2420
2421 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2422
2423         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2424         `Lisp_Char_ID_Table'.
2425         (mark_char_id_table): Deleted.
2426         (print_char_id_table): Likewise.
2427         (char_id_table_equal): Likewise.
2428         (char_id_table_hash): Likewise.
2429         (char_id_table_description): Likewise.
2430         (char_id_table): Likewise.
2431         (make_char_id_table): Use `Fmake_char_table' and
2432         `fill_char_table'.
2433         (get_char_id_table): Use `Lisp_Char_Table' instead of
2434         `Lisp_Char_ID_Table'.
2435         (put_char_id_table): Likewise.
2436         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2437         `XCHAR_ID_TABLE'.
2438         (Fremove_char_attribute): Likewise.
2439         (syms_of_chartab): Don't define type `char-id-table'.
2440
2441         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2442         (char_id_table): Likewise.
2443         (GC_CHAR_ID_TABLE_P): Likewise.
2444         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2445         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2446         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2447         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2448         (get_char_id_table): Use `Lisp_Char_Table' instead of
2449         `Lisp_Char_ID_Table'.
2450         (put_char_id_table_0): Likewise.
2451         (put_char_id_table): Likewise.
2452
2453 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2454
2455         * chartab.h: Lisp_Byte_Table related codes are moved from
2456         chartab.h.
2457
2458         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2459
2460 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2461
2462         * chartab.h: Don't include "chartab.h".
2463         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2464         (Lisp_Char_ID_Table): Likewise.
2465         (char_id_table): Likewise.
2466         (XCHAR_ID_TABLE): Likewise.
2467         (XSETCHAR_ID_TABLE): Likewise.
2468         (CHAR_ID_TABLE_P): Likewise.
2469         (GC_CHAR_ID_TABLE_P): Likewise.
2470         (get_char_id_table): Likewise.
2471
2472         * char-ucs.h: Include "chartab.h".
2473         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2474         (Lisp_Char_ID_Table): Likewise.
2475         (char_id_table): Likewise.
2476         (XCHAR_ID_TABLE): Likewise.
2477         (XSETCHAR_ID_TABLE): Likewise.
2478         (CHAR_ID_TABLE_P): Likewise.
2479         (GC_CHAR_ID_TABLE_P): Likewise.
2480         (get_char_id_table): Likewise.
2481
2482 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2483
2484         * chartab.c (copy_uint8_byte_table): New function.
2485         (copy_uint16_byte_table): New function.
2486         (copy_byte_table): New function.
2487         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2488         characters to call.
2489         (map_over_uint16_byte_table): Likewise.
2490         (map_over_byte_table): Likewise.
2491         (get_byte_table): Move prototype to chartab.h.
2492         (put_byte_table): Likewise.
2493         (put_char_id_table_0): Moved to chartab.h.
2494         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2495         (char_table_entry_equal): Likewise.
2496         (char_table_entry_hash): Likewise.
2497         (char_table_entry_description): Likewise.
2498         (char_table_entry): Likewise.
2499         (make_char_table_entry): Likewise.
2500         (copy_char_table_entry): Likewise.
2501         (get_non_ascii_char_table_value): Likewise.
2502         (map_over_charset_ascii): Likewise.
2503         (map_over_charset_control_1): Likewise.
2504         (map_over_charset_row): Likewise.
2505         (map_over_other_charset): Likewise.
2506         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2507         (print_char_table): Likewise.
2508         (char_table_equal): Likewise.
2509         (char_table_hash): Likewise.
2510         (char_table_description): Likewise.
2511         (fill_char_table): Likewise.
2512         (Fcopy_char_table): Likewise.
2513         (get_char_table): Likewise.
2514         (Fget_range_char_table): Likewise.
2515         (put_char_table): Likewise.
2516         (map_char_table): Likewise.
2517         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2518         UTF-2000.
2519
2520 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2521
2522         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2523         `Vauto_fill_chars' in XEmacs UTF-2000.
2524
2525         * chartab.h (get_byte_table): New prototype [moved from
2526         chartab.c].
2527         (put_byte_table): Likewise [moved from chartab.c].
2528         (put_char_id_table_0): New inline function [moved from chartab.c].
2529         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2530         (Lisp_Char_Table_Entry): Likewise.
2531         (char_table_entry): Likewise.
2532         (XCHAR_TABLE_ENTRY): Likewise.
2533         (XSETCHAR_TABLE_ENTRY): Likewise.
2534         (CHAR_TABLE_ENTRYP): Likewise.
2535         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2536         (NUM_ASCII_CHARS): Likewise.
2537         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2538         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2539
2540 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2541
2542         * chartab.c (get_char_id_table): Change interface.
2543         (put_char_id_table_0): New function.
2544         (put_char_id_table): Change interface; new implementation.
2545         (Fget_composite_char): Modify for interface change of
2546         `get_char_id_table'.
2547         (Fchar_variants): Likewise.
2548         (add_char_attribute_alist_mapper): Likewise.
2549         (Fchar_attribute_alist): Likewise.
2550         (Fget_char_attribute): Likewise.
2551         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2552         as same as character as the first argument like `put-char-table';
2553         modify for interface change of `put_char_id_table'.
2554         (Fremove_char_attribute): Modify for interface change of
2555         `put_char_id_table'.
2556
2557 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2558
2559         * text-coding.c: Sync up with XEmacs 21.2.41.
2560         (COMPOSE_ADD_CHAR): Modify for interface change of
2561         `get_char_id_table'.
2562
2563         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2564         change of `put_char_id_table'.
2565         (remove_char_ccs): Likewise.
2566
2567         * chartab.h (put_char_id_table): Change interface.
2568
2569         * char-ucs.h (get_char_id_table): Change interface.
2570         (charset_code_point): Modify for interface change of
2571         `get_char_id_table'.
2572         (encode_char_1): Likewise.
2573
2574 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575
2576         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2577         argument `ccs'.
2578         (map_over_uint16_byte_table): Likewise.
2579         (map_over_byte_table): Likewise.
2580         (map_char_id_table): Add new argument `range' like
2581         `map_char_table'.
2582         (Fmap_char_attribute): Add new argument `range' like
2583         `Fmap_char_table'.
2584
2585 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2586
2587         * chartab.c (map_over_uint8_byte_table): Change interface of
2588         mapping function to use struct chartab_range instead of Emchar.
2589         (map_over_uint16_byte_table): Likewise.
2590         (map_over_byte_table): Likewise.
2591         (map_char_id_table): Likewise.
2592         (struct slow_map_char_id_table_arg): Deleted.
2593         (slow_map_char_id_table_fun): Deleted.
2594         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2595         function `slow_map_char_table_fun' instead of struct
2596         `slow_map_char_id_table_arg' and function
2597         `slow_map_char_id_table_fun'.
2598
2599 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2600
2601         * mule-charset.c: Move char-it-table related codes to chartab.c.
2602         (Vutf_2000_version): Moved to chartab.c.
2603         (Fdefine_char): Likewise.
2604         (Ffind_char): Likewise.
2605         (syms_of_mule_charset): Move types `uint8-byte-table',
2606         `uint16-byte-table', `byte-table' and `char-id-table' to
2607         chartab.c; move functions `char_attribute_list,
2608         `find_char_attribute_table, `char_attribute_alist,
2609         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2610         `map_char_attribute, `define_char, `find_char, `char_variants and
2611         `get_composite_char to chartab.c; move symbols `=>ucs',
2612         `->decomposition', `compat', `isolated', `initial', `medial',
2613         `final', `vertical', `noBreak', `fraction', `super', `sub',
2614         `circle', `square', `wide', `narrow', `small' and `font' to
2615         chartab.c.
2616         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2617         setting codes for `Vcharacter_composition_table' and
2618         `Vcharacter_variant_table' to chartab.c.
2619         (complex_vars_of_mule_charset): Move setting code for
2620         `Vchar_attribute_hash_table' to chartab.c.
2621
2622         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2623         (make_char_id_table): New prototype.
2624         (put_char_id_table): Likewise.
2625         (Fget_char_attribute): Likewise.
2626
2627         * chartab.c: Move char-id-table related code from mule-charset.c.
2628         (Vutf_2000_version): Moved from mule-charset.c.
2629
2630         * char-ucs.h (Qucs): New external variable.
2631         (put_char_ccs_code_point): New prototype.
2632         (remove_char_ccs): Likewise.
2633
2634 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2635
2636         * mule-charset.c (Vcharset_ucs_jis): New variable.
2637         (Qucs_jis): Likewise.
2638         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2639         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2640
2641         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2642
2643 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2644
2645         * mule-charset.c (map_over_uint8_byte_table): New function.
2646         (map_over_uint16_byte_table): Likewise.
2647         (map_over_byte_table): Likewise.
2648         (map_char_id_table): Likewise.
2649         (slow_map_char_id_table_fun): Likewise.
2650         (Fmap_char_attribute): Likewise.
2651         (syms_of_mule_charset): Add new function `map-char-attribute'.
2652
2653 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2656         (syms_of_mule_charset): Add new function `find-char'.
2657
2658 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2659
2660         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2661         XEmacs UTF-2000.
2662         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2663         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2664         XEmacs UTF-2000.
2665         (complex_vars_of_mule_charset): Add new coded-charset
2666         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2667         `ideograph-gt-pj-*'.
2668
2669         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2670
2671 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2672
2673         * mule-charset.c (encode_builtin_char_1): Purge codes about
2674         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2675         {MIN|MAX}_CHAR_HEBREW.
2676         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2677         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2678
2679         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2680         (MAX_CHAR_GREEK): Purged.
2681         (MIN_CHAR_CYRILLIC): Purged.
2682         (MAX_CHAR_CYRILLIC): Purged.
2683         (MIN_CHAR_HEBREW): Commented out.
2684         (MAX_CHAR_HEBREW): Likewise.
2685
2686 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2687
2688         * mule-charset.c (Qto_ucs): New variable.
2689         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2690         (Fdefine_char): Likewise.
2691         (syms_of_mule_charset): Add new symbol `=>ucs'.
2692
2693 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2694
2695         * mule-charset.c (Fdecode_char): Fixed.
2696
2697 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2698
2699         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2700         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2701         "tcvn5712-1".
2702
2703 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2704
2705         * mule-charset.c (Vcharset_ucs_big5): New variable.
2706         (Qucs_big5): Likewise.
2707         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2708         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2709
2710         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2711
2712 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2713
2714         * mule-charset.c (decode_builtin_char): Check Big5 code range
2715         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2716
2717 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718
2719         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2720         (Qchinese_gb12345): Likewise.
2721         (Fdecode_builtin_char): Fixed.
2722         (syms_of_mule_charset): Add `chinese-gb12345'.
2723         (complex_vars_of_mule_charset): Add coded-charset
2724         `chinese-gb12345'.
2725
2726         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2727         (LEADING_BYTE_CHINESE_GB12345): New macro.
2728
2729 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2730
2731         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2732         and `latin-viscii-upper' for `latin-viscii'.
2733
2734 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * mule-charset.c (Fdecode_builtin_char): Comment out
2737         regularization code for ISO-IR GR representation.
2738
2739 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2740
2741         * mule-charset.c (decode_builtin_char): New function; renamed from
2742         `make_builtin_char'; return -1 instead of signal.
2743         (Fdecode_builtin_char): Use `decode_builtin_char'.
2744
2745         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2746         `make_builtin_char'.
2747         (DECODE_CHAR): Use `decode_builtin_char' instead of
2748         `make_builtin_char'; use mapping table of `chinese-big5' for
2749         `chinese-big5-{1,2}'.
2750
2751 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2752
2753         * text-coding.c (char_encode_big5): New function.
2754         (char_finish_big5): Likewise.
2755         (reset_encoding_stream): Use `char_encode_big5' and
2756         `char_finish_big5' for CODESYS_BIG5.
2757         (mule_encode): Don't use `encode_coding_big5'.
2758         (encode_coding_big5): Deleted.
2759
2760 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2761
2762         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2763         0x81- in XEmacs UTF-2000.
2764         (detect_coding_big5): Likewise.
2765
2766 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2769         generate character-id if the CCS property does not have
2770         corresponding predefined character.
2771         (make_builtin_char): Return -1 if corresponding predefined
2772         character is not found.
2773         (Fdecode_char): Return nil if corresponding character is not
2774         found.
2775         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2776         don't map to builtin ucs space.
2777
2778 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2779
2780         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2781         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2782
2783 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2784
2785         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2786         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2787         (Qideograph_gt): Likewise.
2788         (Qideograph_gt_pj_{1..11}): Likewise.
2789         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2790         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2791         `ideograph-gt-pj-11'.
2792         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2793         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2794         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2795
2796         * char-ucs.h (LEADING_BYTE_GT): New macro.
2797         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2798         (MIN_CHAR_GT): Likewise.
2799         (MAX_CHAR_GT): Likewise.
2800
2801 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2802
2803         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2804         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2805
2806         * doprnt.c (unsigned_int_converters): Add `c'.
2807         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2808
2809         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2810         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2811         `MIN_CHAR_MOJIKYO'.
2812         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2813         (MAX_CHAR_MOJIKYO_0): New macro.
2814         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2815
2816 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2817
2818         * mule-charset.c (Fdefine_char): Delete cemented out code.
2819         (encode_builtin_char_1): Modify for new allocation of builtin
2820         Mojikyo characters.
2821
2822         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2823
2824 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2825
2826         * mule-charset.c (Vcharset_ucs_cns): New variable.
2827         (Qucs_cns): New variable.
2828         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2829         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2830
2831 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2832
2833         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2834
2835 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2836
2837         * search.c (search_buffer): Make `charset_base_code' as
2838         character-id >> 6 to eliminate the corresponding last byte in
2839         UTF-8 representation [I'm not sure it is right thing].
2840         (boyer_moore): Likewise.
2841
2842 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2843
2844         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2845         representation in MULE.
2846
2847 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2848
2849         * text-coding.c (Fmake_coding_system): Use
2850         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2851         `EXTERNAL_PROPERTY_LIST_LOOP'.
2852
2853 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2854
2855         * text-coding.c (decode_output_utf8_partial_char): New function.
2856         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2857
2858 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2859
2860         * text-coding.c (decode_coding_utf8): Output original byte
2861         sequence if it is broken; change order of conditions.
2862
2863         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2864         of conditions.
2865
2866         * mb-multibyte.h (BYTE_ASCII_P):
2867         Use bit ops for char-signedness safety.
2868         (BYTE_C0_P): Use bit ops for char-signedness safety.
2869         (BYTE_C1_P): Use bit ops for char-signedness safety.
2870
2871         * character.h: (XCHAR_OR_CHAR_INT):
2872         Always use inline function.
2873         Remove redundant type checking assert() - XINT will abort quite
2874         nicely.
2875
2876 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2877
2878         * text-coding.c: (Fencode_shift_jis_char):
2879         (Fencode_big5_char):
2880         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2881         Replace 0 with '\0' when working with bytes.
2882         Replace initial "(" with "\(" in docstrings.
2883
2884         (Fmake_coding_system):
2885         When type is ccl and value is vector, register it with a proper
2886         symbol.  And checks whether the given ccl program is valid.
2887         (mule_decode): When calling ccl_driver, if src indicates
2888         NULL pointer, set an empty string instead.
2889         (mule_encode): Likewise.
2890
2891         (detect_eol_type):
2892         (detect_coding_sjis):
2893         (decode_coding_sjis):
2894         (detect_coding_big5):
2895         (decode_coding_big5):
2896         (detect_coding_ucs4):
2897         (decode_coding_ucs4):
2898         (detect_coding_utf8):
2899         (decode_coding_utf8):
2900         (detect_coding_iso2022):
2901         (decode_coding_iso2022):
2902         (decode_coding_no_conversion):
2903         (mule_decode):
2904         Make all detecting and decoding functions take an Extbyte * arg.
2905         (text_encode_generic):
2906         (encode_coding_big5):
2907         (encode_coding_no_conversion):
2908         (mule_encode):
2909         Make all encoding functions take a Bufbyte * arg.
2910         Use size_t instead of unsigned int for memory sizes.
2911         Only cast to unsigned char whenever dereferencing Extbyte *.
2912
2913         (struct lrecord_description fcd_description_1): Use countof.
2914         (complex_vars_of_file_coding):
2915         Use countof instead of sizeof.
2916         Use CHECK_NATNUM instead of CHECK_INT.
2917
2918 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2919
2920         * mule-charset.c (Fget_char_attribute): Add new optional argument
2921         `default-value'.
2922         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2923         (remove_char_ccs): Likewise.
2924
2925 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2926
2927         * text-coding.c (char_encode_shift_jis): New implementation in
2928         UTF-2000.
2929         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2930         ...)'.
2931
2932         * mule-charset.c (Vcharset_chinese_big5): New variable in
2933         UTF-2000.
2934         (Qchinese_big5): New variable in UTF-2000.
2935         (BIG5_SAME_ROW): New macro in UTF-2000.
2936         (make_builtin_char): Use builtin characters of
2937         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2938         characters of `Vcharset_chinese_big5'.
2939         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2940         (complex_vars_of_mule_charset): Add new coded-charset
2941         `chinese-big5' in UTF-2000.
2942
2943         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2944         (Vcharset_chinese_big5): New external variable declaration.
2945         (Vcharset_japanese_jisx0208_1990): Likewise.
2946
2947 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2948
2949         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2950         function.
2951         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2952
2953 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2954
2955         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2956         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2957         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2958         `mojikyo-pj-*'.
2959
2960 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2961
2962         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2963
2964 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2965
2966         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2967         to 0.17.
2968
2969 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2970
2971         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2972         for `CHARSET_BY_ATTRIBUTES'.
2973         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2974         `CHARSET_BY_ATTRIBUTES'.
2975
2976         * text-coding.c (struct decoding_stream): Rename member `CH' to
2977         `CPOS'.
2978         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2979         (decode_coding_sjis): Likewise.
2980         (decode_coding_big5): Likewise.
2981         (decode_coding_ucs4): Likewise.
2982         (decode_coding_utf8): Likewise.
2983         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2984         `CHARSET_BY_ATTRIBUTES'.
2985         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2986         `str->counter'; decode 3, 4 bytes sets.
2987         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2988         sets.
2989         (decode_coding_no_conversion): Use `str->cpos' instead of
2990         `str->ch'.
2991
2992         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2993         (Qmojikyo_2022_1): New variable.
2994         (make_charset): Don't use `CHARSET_TYPE_*'.
2995         (range_charset_code_point): Support coded-charset
2996         `mojikyo-2022-1'.
2997         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2998         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2999         `CHARSET_BY_ATTRIBUTES'.
3000         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3001         `CHARSET_BY_ATTRIBUTES'.
3002         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3003         (complex_vars_of_mule_charset): Add new coded-charset
3004         `mojikyo-2022-1'.
3005
3006         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3007         interface; changed to inline function.
3008
3009         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3010         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3011         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3012         (CHARSET_TYPE_94): Deleted.
3013         (CHARSET_TYPE_94X94): Deleted.
3014         (CHARSET_TYPE_96): Deleted.
3015         (CHARSET_TYPE_96X96): Deleted.
3016         (CHARSET_TYPE_128): Deleted.
3017         (CHARSET_TYPE_128X128): Deleted.
3018         (CHARSET_TYPE_256): Deleted.
3019         (CHARSET_TYPE_256X256): Deleted.
3020         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3021         to inline function.
3022         (DECODE_MOJIKYO_2022): New inline function.
3023         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3024         `Vcharset_mojikyo_2022_1'.
3025
3026 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3027
3028         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3029         instead of `EQ'.
3030         (put_byte_table): Likewise.
3031         (char_id_table_equal): Use `get_byte_table' [new implementation].
3032
3033 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3034
3035         * mule-charset.c: Include <limits.h> in UTF-2000.
3036         (BT_UINT8_MIN): New macro in UTF-2000.
3037         (BT_UINT8_MAX): New macro in UTF-2000.
3038         (BT_UINT8_t): New macro in UTF-2000.
3039         (BT_UINT8_nil): New macro in UTF-2000.
3040         (BT_UINT8_unbound): New macro in UTF-2000.
3041         (INT_UINT8_P): New inline function in UTF-2000.
3042         (UINT8_VALUE_P): New inline function in UTF-2000.
3043         (UINT8_ENCODE): New inline function in UTF-2000.
3044         (UINT8_DECODE): New inline function in UTF-2000.
3045         (mark_uint8_byte_table): New function in UTF-2000.
3046         (print_uint8_byte_table): New function in UTF-2000.
3047         (uint8_byte_table_equal): New function in UTF-2000.
3048         (uint8_byte_table_hash): New function in UTF-2000.
3049         (make_uint8_byte_table): New function in UTF-2000.
3050         (uint8_byte_table_same_value_p): New function in UTF-2000.
3051         (BT_UINT16_MIN): New macro in UTF-2000.
3052         (BT_UINT16_MAX): New macro in UTF-2000.
3053         (BT_UINT16_t): New macro in UTF-2000.
3054         (BT_UINT16_nil): New macro in UTF-2000.
3055         (BT_UINT16_unbound): New macro in UTF-2000.
3056         (INT_UINT16_P): New inline function in UTF-2000.
3057         (UINT16_VALUE_P): New inline function in UTF-2000.
3058         (UINT16_ENCODE): New inline function in UTF-2000.
3059         (UINT16_DECODE): New inline function in UTF-2000.
3060         (UINT8_TO_UINT16): New inline function in UTF-2000.
3061         (mark_uint16_byte_table): New function in UTF-2000.
3062         (print_uint16_byte_table): New function in UTF-2000.
3063         (uint16_byte_table_equal): New function in UTF-2000.
3064         (uint16_byte_table_hash): New function in UTF-2000.
3065         (make_uint16_byte_table): New function in UTF-2000.
3066         (uint16_byte_table_same_value_p): New function in UTF-2000.
3067         (print_byte_table): New function in UTF-2000.
3068         (byte-table): Use `print_byte_table' as printer.
3069         (make_byte_table): Delete second argument `older'.
3070         (byte_table_same_value_p): New function in UTF-2000.
3071         (copy_byte_table): Deleted.
3072         (get_byte_table): New function in UTF-2000.
3073         (put_byte_table): New function in UTF-2000.
3074         (print_char_id_table): New function in UTF-2000.
3075         (char-id-table): Use `print_char_id_table' as printer.
3076         (make_char_id_table): Delete second argument `older'.
3077         (get_char_id_table): Use `get_byte_table [new implementation].
3078         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3079         implementation].
3080         (Ffind_char_attribute_table): New function in UTF-2000.
3081         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3082         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3083         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3084         (syms_of_mule_charset): Add new function
3085         `find-char-attribute-table' in UTF-2000.
3086
3087         * lrecord.h (enum lrecord_type): Add
3088         `lrecord_type_uint16_byte_table' and
3089         `lrecord_type_uint8_byte_table'.
3090
3091         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3092         (Lisp_Uint8_Byte_Table): New type.
3093         (XUINT8_BYTE_TABLE): New macro.
3094         (XSETUINT8_BYTE_TABLE): New macro.
3095         (UINT8_BYTE_TABLE_P): New macro.
3096         (GC_UINT8_BYTE_TABLE_P): New macro.
3097         (struct Lisp_Uint16_Byte_Table): New structure.
3098         (Lisp_Uint16_Byte_Table): New type.
3099         (XUINT16_BYTE_TABLE): New macro.
3100         (XSETUINT16_BYTE_TABLE): New macro.
3101         (UINT16_BYTE_TABLE_P): New macro.
3102         (GC_UINT16_BYTE_TABLE_P): New macro.
3103
3104 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3105
3106         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3107         (Vcharacter_ideographic_strokes_table): Deleted.
3108         (Vcharacter_total_strokes_table): Deleted.
3109         (Vcharacter_morohashi_daikanwa_table): Deleted.
3110         (Vcharacter_decomposition_table): Deleted.
3111         (Qname): Deleted because it is duplicated.
3112         (Qideographic_radical): Deleted.
3113         (Qideographic_strokes): Deleted.
3114         (Qtotal_strokes): Deleted.
3115         (Qmorohashi_daikanwa): Deleted.
3116         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3117         `ideographic-radical', `ideographic-strokes', `total-strokes',
3118         `morohashi-daikanwa' and `->decomposition'.
3119         (Fget_char_attribute): Likewise.
3120         (Fput_char_attribute): Likewise; use `make-vector' instead of
3121         `make_older_vector' for `->decomposition' value.
3122         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3123         `ideograph-daikanwa'.
3124         (syms_of_mule_charset): Delete builtin symbols `name',
3125         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3126         `morohashi-daikanwa'.
3127         (vars_of_mule_charset): Don't setup
3128         `Vcharacter_ideographic_radical_table',
3129         `Vcharacter_ideographic_strokes_table',
3130         `Vcharacter_total_strokes_table',
3131         `Vcharacter_morohashi_daikanwa_table' and
3132         `Vcharacter_decomposition_table'.
3133
3134 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3135
3136         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3137         `make_older_vector', `make_vector_newer_1' and
3138         `make_vector_newer'.
3139
3140         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3141         `make_older_vector' and `make_vector_newer'.
3142
3143         * config.h.in (HAVE_GGC): New macro.
3144
3145 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3146
3147         * mule-charset.c (struct char_attribute_list_closure): New
3148         structure in UTF-2000.
3149         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3150         (Fchar_attribute_list): Likewise.
3151         (Fset_charset_mapping_table): Use `make_vector_newer'.
3152         (Fdecode_builtin_char): New function in UTF-2000.
3153         (syms_of_mule_charset): Add new function `char-attribute-list' and
3154         `decode-builtin-char' in UTF-2000.
3155
3156         * lisp.h (make_vector_newer): New prototype.
3157
3158         * alloc.c (make_vector_newer_1): New function.
3159         (make_vector_newer): New function.
3160
3161 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3162
3163         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3164         50100)'.
3165
3166 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3167
3168         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3169         (Vcharacter_attribute_table): Deleted.
3170         (Vcharacter_name_table): Deleted.
3171         (put_char_attribute): Deleted.
3172         (remove_char_attribute): Deleted.
3173         (struct char_attribute_alist_closure): New structure.
3174         (add_char_attribute_alist_mapper): New function.
3175         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3176         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3177         (Fget_char_attribute): Likewise.
3178         (Fput_char_attribute): Likewise.
3179         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3180         of `remove_char_attribute'.
3181         (Fdefine_char): Return character.
3182         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3183         and `Vcharacter_name_table'.
3184         (complex_vars_of_mule_charset): Likewise
3185         `Vchar_attribute_hash_table'.
3186
3187 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3188
3189         * character.h (CHARC_CHARSET): New macro.
3190         (CHARC_CHARSET_ID): New macro.
3191         (CHARC_CODE_POINT): New macro.
3192         (CHARC_COLUMNS): New macro.
3193         (CHARC_TO_CHAR): New inline function.
3194         (CHARC_EQ): New inline function.
3195         (CHARC_ASCII_EQ): New inline function.
3196         (CHARC_IS_SPACE): New inline function.
3197         (ASCII_TO_CHARC): New inline function.
3198
3199         * char-ucs.h (encode_char_2): Deleted.
3200         (ENCODE_CHAR): Use `encode_char_1' again.
3201         (breakup_char_1): Likewise.
3202         (CHAR_TO_CHARC): New inline function.
3203
3204         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3205
3206 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3207
3208         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3209         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3210         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3211         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3212         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3213         `CHARC_IS_SPACE'.
3214         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3215
3216         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3217         `CHARC_CODE_POINT'.
3218         (x_output_display_block): Use `CHARC_CHARSET' and
3219         `CHARC_ASCII_EQ'.
3220
3221         * redisplay-tty.c (tty_output_display_block): Use
3222         `CHARC_ASCII_EQ'.
3223         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3224
3225         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3226
3227         * insdel.c (find_charsets_in_charc_string): Use
3228         `CHARC_CHARSET_ID'.
3229         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3230         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3231         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3232         (convert_charc_string_into_malloced_string): Likewise.
3233
3234 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3235
3236         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3237         instead of <Emchar_dynarr *> for buf; use
3238         `convert_bufbyte_string_into_charc_dynarr' instead of
3239         `convert_bufbyte_string_into_emchar_dynarr'; use
3240         `find_charsets_in_charc_string' instead of
3241         `find_charsets_in_emchar_string'.
3242
3243         * redisplay.h:
3244         - Include "character.h".
3245         (struct rune): New member `cglyph'; delete member `chr'.
3246
3247         * redisplay.c (redisplay_text_width_charc_string): New function;
3248         delete `redisplay_text_width_emchar_string'.
3249         (rtw_charc_dynarr): New variable; renamed from
3250         `rtw_emchar_dynarr'.
3251         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3252         `rtw_emchar_dynarr'; use
3253         `convert_bufbyte_string_into_charc_dynarr' instead of
3254         `convert_bufbyte_string_into_emchar_dynarr'; use
3255         `redisplay_text_width_charc_string' instead of
3256         `redisplay_text_width_emchar_string'.
3257         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3258         instead of `rtw_emchar_dynarr'; use
3259         `convert_bufbyte_string_into_charc_dynarr' instead of
3260         `convert_bufbyte_string_into_emchar_dynarr'.
3261         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3262         `redisplay_text_width_charc_string' instead of
3263         `redisplay_text_width_emchar_string'.
3264         (create_text_block): Modify for <struct rune> change.
3265         (generate_formatted_string_db): Likewise.
3266         (create_string_text_block): Likewise.
3267         (pixel_to_glyph_translation): Likewise.
3268
3269         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3270         instead of <const Emchar *>.
3271         (x_text_width): Likewise.
3272         (x_output_display_block): Use <Charc_dynarr *> instead
3273         <Emchar_dynarr *>; modify for <structure rune> change.
3274         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3275         *>.
3276
3277         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3278         <const Emchar *>; use `charc_string_displayed_columns' instead of
3279         `emchar_string_displayed_columns'.
3280         (tty_output_display_block): Use <Charc_dynarr *> instead of
3281         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3282         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3283         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3284         `tty_output_emchar_dynarr_dynarr'.
3285         (tty_output_charc_dynarr): New function; delete
3286         `tty_output_charc_dynarr'.
3287
3288         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3289         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3290         <Emchar_dynarr *> for buf; use
3291         `convert_bufbyte_string_into_charc_dynarr' instead of
3292         `convert_bufbyte_string_into_emchar_dynarr'.
3293
3294         * frame.c (title_string_charc_dynarr): New variable; renamed from
3295         `title_string_emchar_dynarr'.
3296         (generate_title_string): Use `title_string_charc_dynarr' instead
3297         of `title_string_emchar_dynarr'; use
3298         `convert_charc_string_into_malloced_string' instead of
3299         `convert_emchar_string_into_malloced_string'.
3300         (init_frame): Use `title_string_charc_dynarr' instead of
3301         `title_string_emchar_dynarr'.
3302
3303         * console.h:
3304         - Include "character.h".
3305         (struct console_methods): Use <const Charc *> instead of <const
3306         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3307         <Emchar_dynarr *> in output_string_method.
3308
3309         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3310         <Emchar_dynarr *>.
3311
3312         * console-stream.c (stream_text_width): Use <const Charc *>
3313         instead of <const Emchar *>.
3314
3315         * character.h (Charc_dynarr): New type.
3316
3317         * char-ucs.h (structure Charc): New structure; define new type
3318         `Charc'.
3319
3320         * char-lb.h (DECODE_CHAR): New inline function.
3321         (encode_char_1): New inline function.
3322         (ENCODE_CHAR): New macro.
3323         (structure Charc): New structure; define new type `Charc'.
3324
3325         * char-1byte.h (Vcharset_control_1): New macro.
3326         (Vcharset_latin_iso8859_1): New macro.
3327         (DECODE_CHAR): New inline function.
3328         (encode_char_1): New inline function.
3329         (ENCODE_CHAR): New macro.
3330         (structure Charc): New structure; define new type `Charc'.
3331
3332         * insdel.c (find_charsets_in_charc_string): New function; delete
3333         `find_charsets_in_emchar_string'.
3334         (charc_string_displayed_columns): New function; delete
3335         `emchar_string_displayed_columns'.
3336         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3337         `convert_bufbyte_string_into_emchar_dynarr'.
3338         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3339         `convert_charc_string_into_bufbyte_dynarr'.
3340         (convert_charc_string_into_malloced_string): New function; delete
3341         `convert_charc_string_into_malloced_string'.
3342
3343         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3344         `find_charsets_in_emchar_string'.
3345         (charc_string_displayed_columns): New prototype; delete
3346         `emchar_string_displayed_columns'.
3347         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3348         `convert_charc_string_into_bufbyte_dynarr'.
3349         (convert_charc_string_into_malloced_string): New prototype; delete
3350         `convert_charc_string_into_malloced_string'.
3351
3352 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3353
3354         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3355
3356 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3357
3358         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3359
3360         * char-ucs.h: Use <short> for <Charset_ID>.
3361
3362         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3363         <Charset_ID>.
3364
3365 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3366
3367         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3368         to 0.16.
3369
3370 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3371
3372         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3373         variable.
3374         (Qmorohashi_daikanwa): New variable.
3375         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3376         for `morohashi-daikanwa' attribute.
3377         (Fget_char_attribute): Likewise.
3378         (Fput_char_attribute): Likewise.
3379         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3380         has the same value of `ideograph-daikanwa'.
3381         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3382         (vars_of_mule_charset): Setup
3383         `Vcharacter_morohashi_daikanwa_table'.
3384
3385 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3386
3387         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3388         attributes.
3389         (add_charset_to_list_mapper): Add `key' instead of
3390         `XCHARSET_NAME (value)' to return aliases.
3391
3392 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3393
3394         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3395         variable.
3396         (Vcharacter_ideographic_strokes_table): New variable.
3397         (Qideographic_radical): New variable.
3398         (Qideographic_strokes): New variable.
3399         (Fchar_attribute_alist): Use
3400         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3401         attribute; use `Vcharacter_ideographic_strokes_table' for
3402         `ideographic-strokes' attribute.
3403         (Fget_char_attribute): Likewise.
3404         (Fput_char_attribute): Likewise.
3405         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3406         `ideographic-strokes'.
3407         (vars_of_mule_charset): Setup
3408         `Vcharacter_ideographic_radical_table' and
3409         `Vcharacter_ideographic_strokes_table'.
3410
3411 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3412
3413         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3414         (Qtotal_strokes): New variable.
3415         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3416         `total-strokes' attribute.
3417         (Fget_char_attribute): Likewise.
3418         (Fput_char_attribute): Likewise.
3419         (syms_of_mule_charset): Add new symbol `total-strokes'.
3420         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3421
3422 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3423
3424         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3425         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3426         are found.
3427         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3428         `->decomposition' attribute.
3429         (Fput_char_attribute): Likewise.
3430         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3431
3432 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3433
3434         * mule-charset.c (decoding_table_check_elements): New function.
3435         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3436
3437 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3438
3439         * mule-charset.c (Fset_charset_mapping_table): Use
3440         `put_char_ccs_code_point'.
3441
3442 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3443
3444         * mule-charset.c (decoding_table_put_char): New inline function.
3445         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3446
3447 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3448
3449         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3450         (XCHARSET_BYTE_SIZE): New macro.
3451         (decoding_table_remove_char): New inline function.
3452         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3453         `decoding_table_remove_char'.
3454         (remove_char_ccs): Use `decoding_table_remove_char'.
3455         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3456
3457 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3458
3459         * mule-charset.c (Vcharacter_name_table): New variable.
3460         (Qname): New variable.
3461         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3462         attribute.
3463         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3464         `Vcharacter_name_table' for `name' attribute.
3465         (Fremove_char_attribute): Use function `remove_char_ccs'.
3466         (put_char_ccs_code_point): New function.
3467         (remove_char_ccs): New function.
3468         (syms_of_mule_charset): Add new symbol `name'.
3469         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3470
3471 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3472
3473         * mule-charset.c (make_byte_table): Add new argument `older'.
3474         (make_char_id_table): Likewise.
3475         (copy_char_id_table): Comment out because it is not used.
3476         (put_char_id_table): Modify for `make_byte_table'.
3477         (Fput_char_attribute): Make encoding_table as older object;
3478         inherit older bit of `Vcharacter_composition_table'.
3479         (mark_charset): Don't mark `cs->encoding_table'.
3480         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3481         normal object; make `Vcharacter_composition_table' as an older
3482         object; delete staticpro for `Vcharacter_composition_table'; make
3483         `Vcharacter_variant_table' as a normal object.
3484
3485         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3486         (mark_object): Don't check older object in UTF-2000.
3487
3488         * lrecord.h (struct lrecord_header): Add new member `older' in
3489         UTF-2000.
3490         (set_lheader_implementation): Setup `SLI_header->older' in
3491         UTF-2000.
3492         (set_lheader_older_implementation): New macro in UTF-2000.
3493         (OLDER_RECORD_P): New macro in UTF-2000.
3494         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3495         (alloc_older_lcrecord): New prototype in UTF-2000.
3496         (alloc_older_lcrecord_type): New macro in UTF-2000.
3497
3498 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3499
3500         * mule-charset.c (byte_table_description): Use
3501         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3502         (char_id_table_description): Delete bogus `, 1'.
3503         (Fget_char_attribute): Refer encoding_table of each coded-charset
3504         to get value of coded-charset attribute of a character.
3505         (Fput_char_attribute): Use `make_older_vector' instead of
3506         `make_vector'; use encoding_table of each coded-charset to store
3507         value of coded-charset attribute of a character.
3508         (Fremove_char_attribute): Use encoding_table of each coded-charset
3509         to store value of coded-charset attribute of a character.
3510         (mark_charset): Mark `cs->encoding_table'; don't mark
3511         `cs->decoding_table'.
3512         (charset_description): Add description of new member
3513         `encoding_table'.
3514         (make_charset): Initialize `encoding_table'.
3515
3516         * char-ucs.h (struct Lisp_Charset): Add new member
3517         `encoding_table'.
3518         (CHARSET_ENCODING_TABLE): New macro.
3519         (XCHARSET_ENCODING_TABLE): New macro.
3520         (charset_code_point): New implementation.
3521         (encode_char_1): Likewise.
3522
3523         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3524         (disksave_object_finalization_1): Call finalizers of
3525         `all_older_lcrecords' in UTF-2000.
3526         (make_older_vector): New function in UTF-2000.
3527         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3528         UTF-2000.
3529
3530         * lisp.h (make_older_vector): New prototype in UTF-2000.
3531
3532 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3533
3534         * lrecord.h (enum lrecord_type): Rename
3535         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3536
3537         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3538         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3539         `get_char_code_table'.
3540
3541         * mule-charset.c (mark_char_id_table): Renamed from
3542         `mark_char_code_table'.
3543         (char_id_table_equal): Renamed from `char_code_table_equal'.
3544         (char_id_table_hash): Renamed from `char_code_table_hash'.
3545         (make_char_id_table): Renamed from `make_char_code_table'.
3546         (copy_char_id_table): Renamed from `copy_char_code_table'.
3547         (get_char_id_table): Renamed from `get_char_code_table'.
3548         (put_char_id_table): Renamed from `put_char_code_table'.
3549         (to_char_id): Renamed from `to_char_code'.
3550
3551         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3552         `Lisp_Char_Code_Table'.
3553         (char_id_table): Renamed from `char_code_table'.
3554         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3555         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3556         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3557         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3558         (get_char_id_table): Renamed from `get_char_code_table'.
3559
3560 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3561
3562         * lrecord.h (enum lrecord_type): Rename
3563         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3564
3565         * mule-charset.c (mark_byte_table): Renamed from
3566         `mark_char_byte_table'.
3567         (byte_table_equal): Renamed from `char_byte_table_equal'.
3568         (byte_table_hash): Renamed from `byte_table_hash'.
3569         (make_byte_table): Renamed from `make_byte_table'.
3570         (copy_byte_table): Renamed from `copy_char_byte_table'.
3571
3572         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3573         `Lisp_Char_Byte_Table'.
3574         (byte_table): Renamed from `char_byte_table'.
3575         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3576         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3577         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3578         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3579
3580 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3581
3582         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3583         (dfc_convert_to_internal_format): Likewise.
3584         
3585         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3586         * text-coding.c (Fcoding_system_alias_p): New function.
3587         * text-coding.c (Fcoding_system_aliasee): New function.
3588         * text-coding.c (append_suffix_to_symbol): New function.
3589         * text-coding.c (dangling_coding_system_alias_p): New function.
3590         * text-coding.c (Ffind_coding_system):
3591         * text-coding.c (Fcopy_coding_system):
3592         * text-coding.c (encode_coding_no_conversion):
3593         * text-coding.c (syms_of_file_coding):
3594         * text-coding.c (vars_of_file_coding):
3595         Rewrite coding system alias code.
3596         Allow nested aliases, like symbolic links.
3597         Allow redefinition of coding system aliases.
3598         Prevent existence of dangling coding system aliases.
3599         Eliminate convert_to_external_format.
3600         Eliminate convert_to_internal_format.
3601         
3602         * text-coding.c: Change enum eol_type to eol_type_t.
3603
3604 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3605
3606         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3607         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3608
3609         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3610         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3611
3612 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3613
3614         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3615         `ideograph-daikanwa'.
3616
3617         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3618         (Vcharset_ucs_bmp): Likewise.
3619         (Vcharset_mojikyo): Add new extern variable definition.
3620         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3621         (Vcharset_latin_iso8859_3): Likewise.
3622         (Vcharset_latin_iso8859_4): Likewise.
3623         (Vcharset_latin_iso8859_9): Likewise.
3624         (Vcharset_latin_viscii_lower): Likewise.
3625         (Vcharset_latin_viscii_upper): Likewise.
3626         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3627         `mojikyo' code-point is used to decode.
3628         (encode_char_2): New function [to convert `mojikyo' code-point to
3629         Mojikyo font encoding].
3630         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3631         (breakup_char_1): Likewise.
3632         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3633
3634 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3635
3636         * text-coding.c (Fmake_coding_system): Add document about
3637         `disable-composition' property.
3638
3639 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3640
3641         * text-coding.c (Qdisable_composition): New variable; delete
3642         `Qcomposite'.
3643         (Fmake_coding_system): Add new property `disable-composite';
3644         delete property `composite'.
3645         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3646         instead of `!CODING_SYSTEM_COMPOSITE'.
3647         (syms_of_file_coding): Add new symbol `disable-composition';
3648         delete symbol `composite'.
3649
3650         * file-coding.h (struct Lisp_Coding_System): Add
3651         `disable_composition'; delete `enable_composition'.
3652         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3653         `CODING_SYSTEM_COMPOSITE'.
3654         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3655         `XCODING_SYSTEM_COMPOSITE'.
3656
3657 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3658
3659         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3660         to 0.15.
3661
3662 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3663
3664         * text-coding.c (Qcomposite): New variable.
3665         (Fmake_coding_system): Add new property `composite'.
3666         (struct decoding_stream): Add `combined_char_count',
3667         `combined_chars' and `combining_table' in UTF-2000.
3668         (COMPOSE_FLUSH_CHARS): New macro.
3669         (COMPOSE_ADD_CHAR): New macro.
3670         (reset_decoding_stream): Reset `str->combined_char_count' and
3671         `str->combining_table' in UTF-2000.
3672         (decode_coding_iso2022): Modify for character-decomposition.
3673         (syms_of_file_coding): Add new symbol `composite'.
3674
3675 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3676
3677         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3678         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3679         of `Vcharacter_composition_table' if `->decomposition' property
3680         has only 1 element.
3681         (Qlatin_tcvn5712): New variable.
3682         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3683         (complex_vars_of_mule_charset): Add new coded-charset
3684         `latin-tcvn5712'.
3685
3686         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3687
3688 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3689
3690         * file-coding.h (struct Lisp_Coding_System): Add
3691         `enable_composition'.
3692         (CODING_SYSTEM_COMPOSITE): New macro.
3693         (XCODING_SYSTEM_COMPOSITE): New macro.
3694
3695 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3696
3697         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3698
3699 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3700
3701         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3702         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3703
3704 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3705
3706         * mule-charset.c (Vcharset_mojikyo): New variable.
3707         (Fdefine_char): Don't use coded-charset which does not have
3708         non-builtin character range to allocate character-id.
3709         (Qmojikyo): New variable.
3710         (syms_of_mule_charset): Add new symbol `mojikyo'.
3711         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3712
3713         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3714         (LEADING_BYTE_MOJIKYO): New macro.
3715         (MIN_CHAR_MOJIKYO): New macro.
3716         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3717         (MAX_CHAR_MOJIKYO): New macro.
3718
3719 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3720
3721         * mule-charset.c (remove_char_attribute): Fixed.
3722
3723 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3724
3725         * mule-charset.c (remove_char_attribute): New function.
3726         (Fremove_char_attribute): New function.
3727         (encode_builtin_char_1): Comment out builtin-support for
3728         greek-iso8859-7 and cyrillic-iso8859-5.
3729         (Fdecode_char): Check `code' is an integer.
3730         (syms_of_mule_charset): Add `remove-char-attribute'.
3731         (MIN_CHAR_GREEK): Deleted.
3732         (MAX_CHAR_GREEK): Likewise.
3733         (MIN_CHAR_CYRILLIC): Likewise.
3734         (MAX_CHAR_CYRILLIC): Likewise.
3735         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3736         MAX_CHAR_GREEK for `greek-iso8859-7'.
3737
3738         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3739         (MAX_CHAR_GREEK): Likewise.
3740         (MIN_CHAR_CYRILLIC): Likewise.
3741         (MAX_CHAR_CYRILLIC): Likewise.
3742
3743 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3744
3745         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3746         format is used without `ucs' property.
3747         (Fdecode_char): Fix problem with GR representation.
3748         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3749         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3750
3751 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3752
3753         * mule-charset.c (make_builtin_char): New function.
3754         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3755         (Fset_charset_mapping_table): Modify for new representation of
3756         code-point.
3757         (Fdecode_char): New function.
3758         (syms_of_mule_charset): Add new builtin function `decode-char' in
3759         UTF-2000.
3760
3761         * char-ucs.h (make_builtin_char): New prototype.
3762         (DECODE_CHAR): New inline function.
3763         (MAKE_CHAR): Use `DECODE_CHAR'.
3764
3765 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3766
3767         * text-coding.c (parse_charset_conversion_specs): Use
3768         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3769         `XCHARSET_TYPE'.
3770         (iso2022_designate): Likewise.
3771
3772         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3773         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3774
3775         * mule-charset.c (Vcharset_ucs): New variable.
3776         (print_charset): Change design; use `CHARSET_CHARS' and
3777         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3778         (make_charset): Change signature to specify `chars' and
3779         `dimension' instead of `type'.
3780         (range_charset_code_point): Modify for 256^n-set.
3781         (encode_builtin_char_1): Encode as `ucs' in default.
3782         (Fmake_charset): Modify for `make_charset'.
3783         (Fmake_reverse_direction_charset): Likewise.
3784         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3785         UTF-2000.
3786         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3787         for `make_charset'.
3788
3789         * char-ucs.h (Vcharset_ucs): New variable.
3790         (LEADING_BYTE_UCS): New macro.
3791         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3792         and `chars' to `unsigned short' from `unsigned int'.
3793         (CHARSET_TYPE): Deleted.
3794         (XCHARSET_TYPE): Deleted.
3795
3796 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3797
3798         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3799
3800         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3801         (ENCODE_CHAR): New macro.
3802
3803 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3804
3805         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3806         to 0.14 (Kawachi-Katakami).
3807
3808 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3809
3810         * text-coding.c (char_encode_shift_jis): Modify for
3811         `charset_code_point'.
3812         (char_encode_iso2022): Likewise.
3813
3814         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3815         (integer) instead of list of <Lisp_Object>s (integers) as the
3816         format of code-point of a coded-charset.
3817         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3818         (encode_builtin_char_1): New function; delete
3819         `split_builtin_char'.
3820         (charset_code_point): Return <int> instead of <Lisp_Object>.
3821         (Fsplit_char): Don't use `SPLIT_CHAR'.
3822
3823         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3824         prototype for `split_builtin_char'.
3825         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3826         (charset_code_point): Likewise.
3827         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3828         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3829
3830 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3831
3832         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3833         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3834
3835 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3836
3837         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3838
3839         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3840         (MAX_CHAR_OBS_94x94): Deleted.
3841
3842 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3843
3844         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3845
3846         * char-ucs.h (MAX_CHAR_BMP): New macro.
3847
3848 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3849
3850         * text-coding.c: Sync with r21-2-24.
3851
3852 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3853
3854         * file-coding.c: Modify for UTF-2000.
3855
3856 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3857
3858         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3859         to 0.13 (Takaida).
3860
3861 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3862
3863         * mule-charset.c (split_builtin_char): Delete builtin support for
3864         `katakana-jisx0201'.
3865         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3866         BMP area in builtin representation.
3867
3868         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3869         `Vcharset_katakana_jisx0201'.
3870
3871 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3872
3873         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3874         (Qisolated): New variable.
3875         (Qinitial): New variable.
3876         (Qmedial): New variable.
3877         (Qfinal): New variable.
3878         (Qvertical): New variable.
3879         (Qsmall): New variable.
3880         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3881         `Qvertical' and `Qsmall'.
3882         (Qmojikyo_pj_[1 .. 21]): New variable.
3883         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3884         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3885         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3886         .. 21]'.
3887
3888 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3889
3890         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3891         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3892         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3893
3894 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3895
3896         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3897         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3898         BMP.
3899         (Qjapanese_jisx0208_1990): New variable.
3900         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3901         (complex_vars_of_mule_charset): Add new coded-charset
3902         `japanese-jisx0208-1990'.
3903
3904         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3905         (MIN_CHAR_JIS_X0208_1990): New macro.
3906         (MAX_CHAR_JIS_X0208_1990): New macro.
3907
3908 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3909
3910         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3911         coded-charset is not found.
3912
3913 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3914
3915         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3916         (Fdefine_char): Use `Fmake_char'.
3917
3918 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3919
3920         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3921         (Vcharset_hiragana_jisx0208): Deleted.
3922         (Vcharset_katakana_jisx0208): Deleted.
3923         (Qideograph_daikanwa): New variable.
3924         (Qhiragana_jisx0208): Deleted.
3925         (Qkatakana_jisx0208): Deleted.
3926         (split_builtin_char): Split `ideograph-daikanwa'.
3927         (Fsplit_char): New implementation for UTF-2000.
3928         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3929         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3930         (complex_vars_of_mule_charset): Add new coded-charset
3931         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3932         `katakana-jisx0208'.
3933
3934         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3935         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3936         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3937         (MIN_CHAR_DAIKANWA): New macro.
3938         (MAX_CHAR_DAIKANWA): New macro.
3939
3940 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3941
3942         * data.c (Fstring_to_number): Don't recognize floating point if
3943         base is not 10.
3944
3945 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3946
3947         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3948
3949 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3950
3951         * mule-charset.c (Qsquare): New variable.
3952         (to_char_code): Add `Qsquare'.
3953         (syms_of_mule_charset): Add new symbol `square'.
3954
3955 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3956
3957         * mule-charset.c (Qcircle): New variable.
3958         (to_char_code): Add `Qcircle'.
3959         (syms_of_mule_charset): Add new symbol `circle'.
3960
3961 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3962
3963         * mule-charset.c (Qfont): New variable.
3964         (to_char_code): Add `Qfont'.
3965         (syms_of_mule_charset): Add new symbol `font'.
3966
3967 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3968
3969         * mule-charset.c (Qsub): New variable.
3970         (to_char_code): Add `Qsub'.
3971         (syms_of_mule_charset): Add new symbol `sub'.
3972
3973 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3974
3975         * mule-charset.c (Fput_char_attribute): Convert each element of
3976         VALUE to GL position if ATTRIBUTE is a GR-set,
3977
3978 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3979
3980         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3981         coded-charset is a GR-set.
3982
3983 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3984
3985         * mule-charset.c (Fput_char_attribute): Check each element of
3986         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3987
3988 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3989
3990         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3991         UTF-2000.
3992         (Qethiopic_ucs): New variable in UTF-2000.
3993         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3994         (complex_vars_of_mule_charset): Add new coded-charset
3995         `ethiopic-ucs' in UTF-2000.
3996
3997         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3998         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3999         9)'.
4000         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4001         10)'.
4002         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4003
4004 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4005
4006         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4007         `ascii'.
4008
4009 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4010
4011         * mule-charset.c (Vcharacter_variant_table): New variable.
4012         (Q_ucs): New variable.
4013         (Fchar_variants): New function.
4014         (Fput_char_attribute): Register `->ucs' value to
4015         `Vcharacter_variant_table'.
4016         (syms_of_mule_charset): Add new function `char-variants' and new
4017         symbol `->ucs'.
4018         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4019
4020 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4021
4022         * mule-charset.c (get_char_code_table): Allow negative character
4023         code.
4024         (put_char_code_table): Likewise.
4025         (Vcharacter_composition_table): New variable.
4026         (Q_decomposition): New variable.
4027         (Qwide): New variable.
4028         (Qnarrow): New variable.
4029         (Qcompat): New variable.
4030         (QnoBreak): New variable.
4031         (Qsuper): New variable.
4032         (Qfraction): New variable.
4033         (to_char_code): New function.
4034         (Fget_composite_char): New function.
4035         (Fput_char_attribute): Register `->decomposition' value to
4036         `Vcharacter_composition_table'.
4037         (syms_of_mule_charset): Add new function `get-composite-char', new
4038         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4039         `super' and `fraction'.
4040         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4041
4042 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4043
4044         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4045         character; copy the return value.
4046
4047 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4048
4049         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4050
4051         * mule-charset.c (range_charset_code_point): Must use make_int.
4052         (split_builtin_char): New function.
4053
4054 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4055
4056         * mule-charset.c (char_byte_table): Change name from
4057         "char-code-table" to "char-byte-table".
4058         (mark_char_code_table): New function.
4059         (char_code_table_equal): New function.
4060         (char_code_table_hash): New function.
4061         (char_code_table_description): New constant.
4062         (char_code_table): New type.
4063         (make_char_code_table): New function.
4064         (copy_char_code_table): New function.
4065         (get_char_code_table): Modify for `char_code_table' type.
4066         (put_char_code_table): Likewise.
4067         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4068         (Kashiwara).
4069
4070         * char-ucs.h (char_code_table): New type.
4071         (XCHAR_CODE_TABLE): New macro.
4072         (XSETCHAR_CODE_TABLE): New macro.
4073         (CHAR_CODE_TABLE_P): New macro.
4074         (GC_CHAR_CODE_TABLE_P): New macro.
4075         (struct Lisp_Char_Code_Table): New structure.
4076
4077 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4078
4079         * mule-charset.c (Fmake_charset): Setup byte_offset for
4080         {94|96}^n-set.
4081
4082 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4083
4084         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4085         character.
4086
4087 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4088
4089         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4090         is found.
4091
4092 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4093
4094         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4095         charset, it is regarded as a charset.
4096         (put_char_attribute): New function in UTF-2000.
4097         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4098         charset, mapping-table of the charset is modified.
4099         (Fdefine_char): New function in UTF-2000.
4100         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4101         `Fput_char_attribute'.
4102         (syms_of_mule_charset): Add new function `define-char' and new
4103         symbol `ucs' in UTF-2000.
4104         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4105
4106 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4107
4108         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4109         non-UTF-2000 configuration.
4110
4111 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4112
4113         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4114         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4115
4116         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4117         deleted.
4118         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4119         (Fset_charset_mapping_table): Likewise.
4120
4121         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4122         (CHARSET_ENCODING_TABLE): Delete.
4123         (XCHARSET_ENCODING_TABLE): Delete.
4124         (charset_code_point): New interface.
4125
4126 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4127
4128         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4129         instead of `charset_get_byte1' and `charset_get_byte2'.
4130
4131         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4132         (charset_get_byte2): Deleted.
4133
4134 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4135
4136         * char-ucs.h (SPLIT_CHAR): New inline function.
4137         (breakup_char_1): Use `SPLIT_CHAR'.
4138
4139         * mule-charset.c (range_charset_code_point): New function.
4140         (charset_code_point): New function.
4141
4142         * char-ucs.h (range_charset_code_point): New interface.
4143         (breakup_char_1): Use `range_charset_code_point'.
4144
4145 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4146
4147         * mule-charset.c (Fmake_charset): Delete unused local variable
4148         `code_offset'.
4149
4150         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4151         (breakup_char_1): Find a charset and code-point in
4152         `Vcharacter_attribute_table'.
4153
4154 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4155
4156         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4157         to 0.10 (Yao).
4158
4159 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4160
4161         * mule-charset.c (Vcharacter_attribute_table): New variable.
4162         (Fchar_attribute_alist): New function.
4163         (Fget_char_attribute): New function.
4164         (Fput_char_attribute): New function.
4165         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4166         too.
4167         (syms_of_mule_charset): Add new function `char-attribute-alist',
4168         `get-char-attribute' and `put-char-attribute'.
4169         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4170
4171 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4172
4173         * mule-charset.c (Fmake_charset): Just use
4174         `get_unallocated_leading_byte'.
4175
4176         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4177         sets; don't use final-byte based number for private sets.
4178
4179 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4180
4181         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4182         integer.
4183
4184 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4185
4186         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4187         to 0.9.
4188
4189 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4190
4191         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4192         of `CHAR_LEADING_BYTE' in UTF-2000.
4193
4194         * insdel.c (find_charsets_in_bufbyte_string): Use
4195         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4196         (find_charsets_in_emchar_string): Likewise.
4197
4198         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4199         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4200
4201         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4202         (CHAR_CHARSET_ID): New macro.
4203
4204 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4205
4206         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4207         charset-id - MIN_LEADING_BYTE.
4208         (put_char_table): Likewise.
4209
4210 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4211
4212         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4213         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4214         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4215         (CHARSET_ID_OFFSET): New macro.
4216         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4217         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4218         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4219         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4220         4).
4221         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4222         5).
4223         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4224         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4225         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4226         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4227         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4228
4229 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4230
4231         * mule-charset.c (next_allocated_leading_byte): New variable in
4232         UTF-2000.
4233         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4234         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4235         (get_unallocated_leading_byte): Simply use
4236         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4237         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4238         UTF-2000.
4239
4240         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4241         (MAX_LEADING_BYTE_PRIVATE): New macro.
4242         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4243         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4244
4245 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4246
4247         * mule-charset.c (Fmake_charset): Allocate final-byte based
4248         charset-id for 94-set, 96-set and 94x94-set.
4249
4250 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4251
4252         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4253         ambiguous `else'.
4254         (Fmake_charset): Likewise.
4255         (complex_vars_of_mule_charset): Modify the font registry of
4256         `ucs-bmp' not to match `Ethiopic-Unicode'.
4257
4258 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4259
4260         * mule-charset.c (complex_vars_of_mule_charset): Add font
4261         registory of `ucs-bmp'.
4262
4263 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4264
4265         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4266         coded-charsets in `default-coded-charset-priority-list' when
4267         breaking up a character.
4268
4269         * mule-charset.c (Vcharset_latin_viscii): New variable.
4270         (Qlatin_viscii): New variable.
4271         (make_charset): Don't use `decoding_table'.
4272         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4273         byte_offset.
4274         (Fset_charset_mapping_table): New implementation.
4275         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4276         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4277         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4278         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4279         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4280         charset `latin_viscii'.
4281
4282         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4283         (CHARSET_TYPE_94X94): Change to 1 from 2.
4284         (CHARSET_TYPE_96): Change to 2 from 1.
4285         (CHARSET_TYPE_128): New macro.
4286         (CHARSET_TYPE_128X128): Change to 5 from 4.
4287         (CHARSET_TYPE_256): New macro.
4288         (CHARSET_TYPE_256X256): Change to 7 from 5.
4289         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4290
4291 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4292
4293         * text-coding.c (char_encode_shift_jis): Refer
4294         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4295         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4296
4297         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4298         (char_byte_table_equal): New function in UTF-2000.
4299         (char_byte_table_hash): New function in UTF-2000.
4300         (char_byte_table_description): New constant in UTF-2000.
4301         (char_byte_table): New type in UTF-2000.
4302         (make_char_byte_table): New function in UTF-2000.
4303         (copy_char_byte_table): New function in UTF-2000.
4304         (make_char_code_table): New macro in UTF-2000.
4305         (get_char_code_table): New function in UTF-2000.
4306         (put_char_code_table): New function in UTF-2000.
4307         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4308         (charset_description): Add setting in UTF-2000.
4309         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4310         `CHARSET_TO_BYTE1_TABLE(cs)'.
4311         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4312         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4313         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4314         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4315         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4316         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4317         `CHARSET_TO_BYTE2_TABLE(cs)'.
4318
4319         * char-ucs.h (char_byte_table): New type.
4320         (XCHAR_BYTE_TABLE): New macro.
4321         (XSETCHAR_BYTE_TABLE): New macro.
4322         (CHAR_BYTE_TABLE_P): New macro.
4323         (GC_CHAR_BYTE_TABLE_P): New macro.
4324         (struct Lisp_Char_Byte_Table): New structure.
4325         (get_char_code_table): New interface.
4326         (Emchar_to_byte_table): Deleted.
4327         (get_byte_from_character_table): Deleted.
4328         (struct Lisp_Charset): Add `encoding_table'; delete
4329         `to_byte1_table' and `to_byte2_table'.
4330         (CHARSET_ENCODING_TABLE): New macro.
4331         (CHARSET_TO_BYTE1_TABLE): Deleted.
4332         (CHARSET_TO_BYTE2_TABLE): Deleted.
4333         (XCHARSET_ENCODING_TABLE): New macro.
4334         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4335         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4336
4337 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4338
4339         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4340         `vietnamese-viscii-*'.
4341
4342 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4343
4344         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4345         (Qvietnamese_viscii_upper): New variable.
4346         (Fdefine_charset_alias): New function.
4347         (syms_of_mule_charset): Add new function `define-charset-alias'.
4348         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4349         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4350         `latin-viscii-*'.
4351
4352 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4353
4354         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4355         (MAX_CHAR_OBS_94x94): New macro.
4356         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4357         for 94x94 sets.
4358
4359         * mule-charset.c (put_byte_from_character_table): Change unit size
4360         from 128 to 256.
4361         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4362         not defined.
4363         (Fmake_reverse_direction_charset): Modify dummy argument of
4364         `make_charset' for non-UTF-2000 environment.
4365
4366 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4367
4368         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4369
4370         * mule-charset.c (destroy_byte_from_character_table): New macro.
4371         (latin_jisx0201_to_ucs): Deleted.
4372         (latin_iso8859_2_to_ucs): Deleted.
4373         (latin_iso8859_3_to_ucs): Deleted.
4374         (latin_iso8859_4_to_ucs): Deleted.
4375         (latin_iso8859_9_to_ucs): Deleted.
4376         (latin_viscii_lower_to_ucs): Deleted.
4377         (latin_viscii_upper_to_ucs): Deleted.
4378         (mark_charset): Mark `cs->decoding_table'.
4379         (Fcharset_mapping_table): Fix DOC-string.
4380         (Fset_charset_mapping_table): New function.
4381         (syms_of_mule_charset): Add nwe function
4382         `set-charset-mapping-table'.
4383         (complex_vars_of_mule_charset): Don't setup and use
4384         `latin_*_to_ucs'.
4385
4386 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4387
4388         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4389         charset.
4390
4391 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4392
4393         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4394         (Vcharset_katakana_jisx0208): New variable.
4395         (Qhiragana_jisx0208): New variable.
4396         (Qkatakana_jisx0208): New variable.
4397         (make_charset): Add new argument `byte_offset'.
4398         (charset_get_byte1): Modify for new coded-charset definition; use
4399         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4400         `XCHARSET_BYTE_OFFSET'.
4401         (Fmake_charset): Modify for `make_charset'.
4402         (Fmake_reverse_direction_charset): Likewise.
4403         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4404         `katakana-jisx0208'.
4405         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4406         `.'  in font registry of charset `katakana-jisx0201',
4407         `latin-jisx0201', `vietnamese-viscii-lower' and
4408         `vietnamese-viscii-upper'; modify DOC-string of charset
4409         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4410         registry of charset `japanese-jisx0208' not to use font for JIS
4411         X0208:1990; add new charset `hiragana-jisx0208' and
4412         `katakana-jisx0208'.
4413
4414         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4415         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4416         (struct Lisp_Charset): Add `byte_offset'.
4417         (CHARSET_BYTE_OFFSET): New macro.
4418         (XCHARSET_UCS_MIN): New macro.
4419         (XCHARSET_UCS_MAX): New macro.
4420         (XCHARSET_CODE_OFFSET): New macro.
4421         (XCHARSET_BYTE_OFFSET): New macro.
4422         (MIN_CHAR_HIRAGANA): New macro.
4423         (MAX_CHAR_HIRAGANA): New macro.
4424         (MIN_CHAR_KATAKANA): New macro.
4425         (MAX_CHAR_KATAKANA): New macro.
4426         (MAKE_CHAR): Modify for new coded-charset definition; use
4427         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4428         `XCHARSET_BYTE_OFFSET'.
4429
4430 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4431
4432         * mule-charset.c (CHAR96): Deleted.
4433         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4434         <Lisp_Object>.
4435         (latin_iso8859_2_to_ucs): Likewise.
4436         (latin_iso8859_3_to_ucs): Likewise.
4437         (latin_iso8859_4_to_ucs): Likewise.
4438         (latin_iso8859_9_to_ucs): Likewise.
4439         (latin_viscii_lower_to_ucs): Likewise.
4440         (latin_viscii_upper_to_ucs): Likewise.
4441         (latin_tcvn5712_to_ucs): Commented out.
4442         (make_charset): Change type of argument `decoding_table' from
4443         <Emchar*> to <Lisp_Object> [vector of characters].
4444         (Fmake_charset): Modify for `make_charset'.
4445         (Fmake_reverse_direction_charset): Likewise.
4446         (Fcharset_mapping_table): New function in UTF-2000.
4447         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4448         UTF-2000.
4449         (complex_vars_of_mule_charset): Modify for type change of
4450         `*_to_ucs'; modify for `make_charset'.
4451
4452         * char-ucs.h (struct Lisp_Charset): Change type of
4453         `decoding_table' from <Emchar*> to <Lisp_Object>.
4454         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4455
4456 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4457
4458         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4459         error with non-UTF-2000-Mule.
4460
4461 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4462
4463         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4464         in lisp again].
4465         (Vcharset_chinese_cns11643_4): Likewise.
4466         (Vcharset_chinese_cns11643_5): Likewise.
4467         (Vcharset_chinese_cns11643_6): Likewise.
4468         (Vcharset_chinese_cns11643_7): Likewise.
4469         (Qchinese_cns11643_3): Likewise.
4470         (Qchinese_cns11643_4): Likewise.
4471         (Qchinese_cns11643_5): Likewise.
4472         (Qchinese_cns11643_6): Likewise.
4473         (Qchinese_cns11643_7): Likewise.
4474         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4475         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4476         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4477         (complex_vars_of_mule_charset): Likewise.
4478
4479 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4480
4481         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4482         96-set.
4483         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4484         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4485
4486 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4487
4488         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4489         0xFF60.
4490         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4491         (breakup_char_1): Likewise.
4492
4493         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4494         one of them includes the specified character.
4495
4496 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4497
4498         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4499
4500 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4501
4502         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4503
4504 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4505
4506         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4507         definition for non-UTF-2000 Mule.
4508         (latin_iso8859_3_to_ucs): Likewise.
4509         (latin_iso8859_4_to_ucs): Likewise.
4510         (latin_iso8859_9_to_ucs): Likewise.
4511         (latin_jisx0201_to_ucs): Likewise.
4512         (MIN_CHAR_THAI): Likewise.
4513         (MAX_CHAR_THAI): Likewise.
4514         (MIN_CHAR_GREEK): Likewise.
4515         (MAX_CHAR_GREEK): Likewise.
4516         (MIN_CHAR_HEBREW): Likewise.
4517         (MAX_CHAR_HEBREW): Likewise.
4518         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4519         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4520         (MIN_CHAR_CYRILLIC): Likewise.
4521         (MAX_CHAR_CYRILLIC): Likewise.
4522
4523 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4524
4525         * char-ucs.h (breakup_char_1): Use
4526         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4527         thai-tis620 and katakana-jisx0201 area.
4528
4529 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4530
4531         * char-ucs.h (breakup_char_1): Use
4532         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4533         area.
4534
4535         * text-coding.c (reset_encoding_stream): Fixed.
4536         (char_encode_ucs4): Delete `& 255'.
4537
4538         * char-ucs.h (breakup_char_1): Use
4539         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4540
4541 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4542
4543         * file-coding.c (Fmake_coding_system): Don't set up
4544         `codesys->fixed.size'.
4545         (encode_coding_no_conversion): Don't refer
4546         `str->codesys->fixed.size'.
4547
4548 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4549
4550         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4551         (latin_a_char_to_byte1): Deleted.
4552         (latin_a_char_to_byte2): Deleted.
4553
4554 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4555
4556         * mule-charset.c (make_charset): Add new argument `ucs_min',
4557         `ucs_max' and `code_offset'.
4558         (charset_get_byte1): New implementation [delete specific charset
4559         depended implementations].
4560         (Fmake_charset): Modify for `make_charset'.
4561         (Fmake_reverse_direction_charset): Likewise.
4562         (complex_vars_of_mule_charset): Likewise.
4563
4564         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4565         `code_offset'.
4566         (CHARSET_UCS_MIN): New macro.
4567         (CHARSET_UCS_MAX): New macro.
4568         (CHARSET_CODE_OFFSET): New macro.
4569         (MAKE_CHAR): Delete charset depended definitions [except
4570         katakana-jisx0201].
4571
4572 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4573
4574         * char-ucs.h (breakup_char_1): Use
4575         `Vdefault_coded_charset_priority_list' for C0-Controls,
4576         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4577
4578 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4579
4580         * char-ucs.h (charset_get_byte1): New function.
4581         (XCHARSET_GET_BYTE1): Deleted.
4582         (charset_get_byte2): New function.
4583         (XCHARSET_GET_BYTE2): Deleted.
4584         (Vdefault_coded_charset_priority_list): New external variable.
4585         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4586         `Vdefault_preferred_coded_charset_list'.
4587
4588         * mule-charset.c (charset_get_byte1): New function.
4589         (charset_get_byte2): New function.
4590         (Vdefault_coded_charset_priority_list): New variable.
4591         (vars_of_mule_charset): Add new variable
4592         `default-coded-charset-priority-list'.
4593
4594 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4595
4596         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4597         (XCHARSET_GET_BYTE2): New inline function.
4598         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4599         `XCHARSET_GET_BYTE2'.
4600
4601 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4602
4603         * mule-charset.c (make_charset): Initialize
4604         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4605         NULL if table is not defined.
4606
4607 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4608
4609         * text-coding.c (char_encode_shift_jis): Use
4610         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4611         `ucs_to_latin_jisx0201'.
4612
4613         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4614         (ucs_to_latin_iso8859_2): Deleted.
4615         (ucs_to_latin_iso8859_3): Deleted.
4616         (ucs_to_latin_iso8859_4): Deleted.
4617         (ucs_to_latin_iso8859_9): Deleted.
4618         (ucs_to_latin_viscii_lower): Deleted.
4619         (ucs_to_latin_viscii_upper): Deleted.
4620         (ucs_to_latin_tcvn5712): Deleted.
4621         (make_charset): Add new argument `decoding_table'; set up
4622         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4623         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4624         `decoding_table' is defined in UTF-2000.
4625         (Fmake_charset): Modify for `make_charset'.
4626         (Fmake_reverse_direction_charset): Likewise.
4627         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4628         and `GENERATE_96_SET'.
4629
4630         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4631         (ucs_to_latin_jisx0201): Deleted.
4632         (latin_iso8859_2_to_ucs): Deleted.
4633         (ucs_to_latin_iso8859_2): Deleted.
4634         (latin_iso8859_3_to_ucs): Deleted.
4635         (ucs_to_latin_iso8859_3): Deleted.
4636         (latin_iso8859_4_to_ucs): Deleted.
4637         (ucs_to_latin_iso8859_4): Deleted.
4638         (latin_iso8859_9_to_ucs): Deleted.
4639         (ucs_to_latin_iso8859_9): Deleted.
4640         (latin_viscii_lower_to_ucs): Deleted.
4641         (ucs_to_latin_viscii_lower): Deleted.
4642         (latin_viscii_upper_to_ucs): Deleted.
4643         (ucs_to_latin_viscii_upper): Deleted.
4644         (struct Lisp_Charset): Renamed `encoding_table' to
4645         `to_byte1_table'; add `to_byte2_table'.
4646         (CHARSET_DECODING_TABLE): New macro.
4647         (CHARSET_TO_BYTE1_TABLE): New macro.
4648         (CHARSET_TO_BYTE2_TABLE): New macro.
4649         (XCHARSET_DECODING_TABLE): New macro.
4650         (XCHARSET_TO_BYTE1_TABLE): New macro.
4651         (XCHARSET_TO_BYTE2_TABLE): New macro.
4652         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4653         tables.
4654         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4655         don't use `ucs_to_*' tables.
4656
4657 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4658
4659         * text-coding.c (Fmake_coding_system): Don't set up
4660         `codesys->fixed.size'.
4661         (encode_coding_no_conversion): Use `if' instead of `switch'.
4662
4663         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4664
4665 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4666
4667         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4668         (Fmake_charset): Modify for `make_charset'.
4669         (Fmake_reverse_direction_charset): Likewise.
4670         (complex_vars_of_mule_charset): Likewise.
4671
4672 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4673
4674         * text-coding.c (char_encode_shift_jis): Use table
4675         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4676
4677 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4678
4679         * text-coding.c (text_encode_generic): Use `if' instead of
4680         `switch'.
4681         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4682         decode JIS-Latin.
4683
4684 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4685
4686         * text-coding.c (encode_coding_sjis): Deleted.
4687         (char_encode_shift_jis): New function.
4688         (char_finish_shift_jis): New function.
4689         (reset_encoding_stream): Set up `encode_char' and `finish' for
4690         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4691         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4692         (char_encode_utf8): Treat `eol_type'.
4693
4694 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4695
4696         * file-coding.c (decode_coding_iso2022): Use
4697         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4698
4699 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4700
4701         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4702         to 0.7 (Hirano).
4703
4704 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4705
4706         * char-lb.h (CHAR_COLUMNS): New macro.
4707
4708 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4709
4710         * text-coding.c (char_encode_ucs4): New function.
4711         (char_finish_ucs4): New function.
4712         (encode_coding_ucs4): Deleted.
4713         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4714         (text_encode_generic): Delete local variable `charset' and `half'.
4715         (ucs_to_mule_table): Deleted.
4716         (mule_to_ucs_table): Deleted.
4717         (Fset_ucs_char): Deleted.
4718         (ucs_to_char): Deleted.
4719         (Fucs_char): Deleted.
4720         (Fset_char_ucs): Deleted.
4721         (Fchar_ucs): Deleted.
4722         (decode_ucs4): Deleted.
4723         (mule_char_to_ucs4): Deleted.
4724         (encode_ucs4): Deleted.
4725         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4726         (decode_coding_utf8): Likewise.
4727         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4728         (char_encode_iso2022): Fixed.
4729         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4730         `Fset_char_ucs' and `Fchar_ucs'.
4731         (complex_vars_of_file_coding): Don't initialize
4732         `ucs_to_mule_table'.
4733
4734         * objects-tty.c (tty_initialize_font_instance): Don't use
4735         `XCHARSET_COLUMNS'.
4736
4737         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4738         UTF-2000.
4739
4740         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4741         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4742
4743         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4744         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4745         (emchar_string_displayed_columns): Likewise.
4746
4747         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4748         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4749         (string_column_at_point): Likewise.
4750         (Fmove_to_column): Likewise.
4751
4752         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4753         `encoding_table' and `decoding_table'.
4754         (CHARSET_REP_BYTES): Deleted.
4755         (XCHARSET_REP_BYTES): Deleted.
4756         (XCHARSET_COLUMNS): Deleted.
4757         (CHAR_COLUMNS): New macro.
4758         (lookup_composite_char): Deleted unconditionally.
4759         (composite_char_string): Likewise.
4760
4761 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4762
4763         * char-ucs.h (Emchar_to_byte_table): New type.
4764         (get_byte_from_character_table): New function interface.
4765         (Vcharset_latin_jisx0201): New variable.
4766         (latin_jisx0201_to_ucs): New variable.
4767         (ucs_to_latin_jisx0201): New variable.
4768         (Vcharset_latin_iso8859_2): New variable.
4769         (latin_iso8859_2_to_ucs): New variable.
4770         (ucs_to_latin_iso8859_2): New variable.
4771         (Vcharset_latin_iso8859_3): New variable.
4772         (latin_iso8859_3_to_ucs): New variable.
4773         (ucs_to_latin_iso8859_3): New variable.
4774         (Vcharset_latin_iso8859_4): New variable.
4775         (latin_iso8859_4_to_ucs): New variable.
4776         (ucs_to_latin_iso8859_4): New variable.
4777         (Vcharset_latin_iso8859_9): New variable.
4778         (latin_iso8859_9_to_ucs): New variable.
4779         (ucs_to_latin_iso8859_9): New variable.
4780         (Vcharset_latin_viscii_lower): New variable.
4781         (latin_viscii_lower_to_ucs): New variable.
4782         (ucs_to_latin_viscii_lower): New variable.
4783         (Vcharset_latin_viscii_upper): New variable.
4784         (latin_viscii_upper_to_ucs): New variable.
4785         (ucs_to_latin_viscii_upper): New variable.
4786         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4787         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4788         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4789         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4790         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4791         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4792         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4793         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4794         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4795         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4796
4797         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4798         (Vcharset_latin_viscii_upper): New variable.
4799         (make_byte_from_character_table): New function.
4800         (put_byte_from_character_table): New function.
4801         (get_byte_from_character_table): New function.
4802         (CHAR96): New macro.
4803         (ucs_to_latin_jisx0201): New variable.
4804         (latin_jisx0201_to_ucs): New variable.
4805         (ucs_to_latin_iso8859_2): New variable.
4806         (latin_iso8859_2_to_ucs): New variable.
4807         (ucs_to_latin_iso8859_3): New variable.
4808         (latin_iso8859_3_to_ucs): New variable.
4809         (ucs_to_latin_iso8859_4): New variable.
4810         (latin_iso8859_4_to_ucs): New variable.
4811         (ucs_to_latin_iso8859_9): New variable.
4812         (latin_iso8859_9_to_ucs): New variable.
4813         (ucs_to_latin_viscii_lower): New variable.
4814         (latin_viscii_lower_to_ucs): New variable.
4815         (ucs_to_latin_viscii_upper): New variable.
4816         (latin_viscii_upper_to_ucs): New variable.
4817         (ucs_to_latin_tcvn5712): New variable.
4818         (latin_tcvn5712_to_ucs): New variable.
4819         (Qlatin_viscii_lower): New variable.
4820         (Qlatin_viscii_upper): New variable.
4821         (syms_of_mule_charset): Set up new symbol
4822         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4823         (complex_vars_of_mule_charset): Set up new charset
4824         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4825         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4826         `ucs_to_<CHARSET>' tables.
4827
4828 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4829
4830         * text-coding.c: New file.
4831
4832 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4833
4834         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4835
4836         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4837         (MAKE_CHAR): Modify for `ucs-bmp'.
4838         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4839         non-MULE characters of BMP.
4840
4841 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4842
4843         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4844         to 0.6.
4845
4846 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4847
4848         * lstream.h:
4849         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4850         - Include character.h for `CHAR_ASCII_P'.
4851
4852         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4853
4854         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4855         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4856
4857         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4858         (BYTE_C0_P): Likewise.
4859         (BYTE_C1_P): Likewise.
4860         (Lstream_get_emchar_1): Likewise.
4861         (Lstream_fput_emchar): Likewise.
4862         (Lstream_funget_emchar): Likewise.
4863         (copy_internal_to_external): Likewise.
4864         (copy_external_to_internal): Likewise.
4865
4866         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4867         (BYTE_C0_P): Likewise.
4868         (BYTE_C1_P): Likewise.
4869         (Lstream_get_emchar_1): Likewise.
4870         (Lstream_fput_emchar): Likewise.
4871         (Lstream_funget_emchar): Likewise.
4872         (copy_internal_to_external): Likewise.
4873         (copy_external_to_internal): Likewise.
4874
4875         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4876         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4877
4878         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4879         (BYTE_ASCII_P): Moved to mb-1byte.h.
4880
4881 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4882
4883         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4884
4885         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4886         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4887         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4888         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4889         (VALIDATE_CHARPTR_FORWARD): Likewise.
4890         (simple_charptr_emchar): Moved to mb-multibyte.h.
4891         (simple_set_charptr_emchar): Likewise.
4892         (simple_charptr_copy_char): Likewise.
4893         (non_ascii_charptr_emchar): Likewise.
4894         (non_ascii_set_charptr_emchar): Likewise.
4895         (non_ascii_charptr_copy_char): Likewise.
4896         (charptr_emchar): Moved to mb-*byte.h.
4897         (set_charptr_emchar): Likewise.
4898         (charptr_copy_char): Likewise.
4899
4900         * mb-1byte.h, mb-multibyte.h: New files.
4901
4902 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4903
4904         * mb-utf-8.h (MULTIBYTE): New macro.
4905         (MAX_EMCHAR_LEN): Moved from buffer.h.
4906         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4907
4908         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4909
4910         * mb-lb.h, multibyte.h: New files.
4911
4912         * char-1byte.h (Charset_ID): Moved from buffer.h.
4913         (MIN_LEADING_BYTE): Likewise.
4914         (LEADING_BYTE_ASCII): Likewise.
4915         (NUM_LEADING_BYTES): Likewise.
4916         (CHARSETP): Likewise.
4917         (CHARSET_BY_LEADING_BYTE): Likewise.
4918         (XCHARSET_LEADING_BYTE): Likewise.
4919         (XCHARSET_GRAPHIC): Likewise.
4920         (XCHARSET_COLUMNS): Likewise.
4921         (XCHARSET_DIMENSION): Likewise.
4922         (CHAR_CHARSET): Likewise.
4923         (CHAR_LEADING_BYTE): Likewise.
4924         (BREAKUP_CHAR): Likewise.
4925         (Vcharset_ascii): Likewise.
4926
4927         * buffer.h: Include multibyte.h unconditionally.
4928         (VALID_CHARPTR_P): Moved to multibyte.h.
4929         (ASSERT_VALID_CHARPTR): Likewise.
4930         (REAL_INC_CHARPTR): Likewise.
4931         (REAL_INC_CHARBYTIND): Likewise.
4932         (REAL_DEC_CHARPTR): Likewise.
4933         (INC_CHARPTR): Likewise.
4934         (INC_CHARBYTIND): Likewise.
4935         (DEC_CHARPTR): Likewise.
4936         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4937         (VALIDATE_CHARPTR_FORWARD): Likewise.
4938         (charptr_n_addr): Likewise.
4939         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4940         (simple_charptr_emchar): Moved to multibyte.h.
4941         (simple_set_charptr_emchar): Likewise.
4942         (simple_charptr_copy_char): Likewise.
4943         (non_ascii_charptr_emchar): Likewise.
4944         (non_ascii_set_charptr_emchar): Likewise.
4945         (non_ascii_charptr_copy_char): Likewise.
4946         (charptr_emchar): Likewise.
4947         (set_charptr_emchar): Likewise.
4948         (charptr_copy_char): Likewise.
4949         (charptr_emchar_n): Likewise.
4950         (Charset_ID): Moved to char-1byte.h.
4951         (Vcharset_ascii): Likewise.
4952         (CHAR_CHARSET): Likewise.
4953         (CHAR_LEADING_BYTE): Likewise.
4954         (LEADING_BYTE_ASCII): Likewise.
4955         (NUM_LEADING_BYTES): Likewise.
4956         (MIN_LEADING_BYTE): Likewise.
4957         (CHARSETP): Likewise.
4958         (CHARSET_BY_LEADING_BYTE): Likewise.
4959         (XCHARSET_LEADING_BYTE): Likewise.
4960         (XCHARSET_GRAPHIC): Likewise.
4961         (XCHARSET_COLUMNS): Likewise.
4962         (XCHARSET_DIMENSION): Likewise.
4963         (BREAKUP_CHAR): Likewise.
4964
4965 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4966
4967         * character.h: Add document about interface for characters.
4968
4969         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4970         (MAKE_CHAR): Delete comment about
4971         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4972         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4973         (BREAKUP_CHAR): Modify name of arguments.
4974         (CHAR_CHARSET): Modify name of argument.
4975
4976         * buffer.h: Delete document about Emchar accessors.
4977
4978 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4979
4980         * character.h (CHAR_INTP): Moved from buffer.h
4981         (CHAR_OR_CHAR_INTP): Likewise.
4982         (XCHAR_OR_CHAR_INT): Likewise.
4983         (CHECK_CHAR_COERCE_INT): Likewise.
4984
4985         * buffer.h (CHAR_INTP): Moved to character.h
4986         (CHAR_OR_CHAR_INTP): Likewise.
4987         (XCHAR_OR_CHAR_INT): Likewise.
4988         (CHECK_CHAR_COERCE_INT): Likewise.
4989
4990 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4991
4992         * character.h:
4993         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4994         - Include char-1byte.h, char-lb.h or char-ucs.h.
4995
4996         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4997
4998         * buffer.h: Include character unconditionally.
4999         (valid_char_p): Moved to char-*.h.
5000         (non_ascii_valid_char_p): Moved to char-lb.h.
5001
5002         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5003
5004 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5005
5006         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5007         in UTF-2000 because it is not ported yet and not to use
5008         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5009         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5010         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5011
5012         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5013         (CHAR_ASCII_P): Moved from character.h.
5014
5015         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5016         (CHAR_ASCII_P): Likewise.
5017         (CHAR_FIELD1_MASK): Deleted.
5018         (CHAR_FIELD2_MASK): Deleted.
5019         (CHAR_FIELD3_MASK): Deleted.
5020         (MAX_CHAR_BASIC_LATIN): New macro.
5021         (CHAR_FIELD1): Deleted.
5022         (CHAR_FIELD2_INTERNAL): Deleted.
5023         (CHAR_FIELD3_INTERNAL): Deleted.
5024         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5025         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5026         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5027         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5028         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5029         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5030         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5031         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5032         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5033         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5034         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5035         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5036         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5037         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5038         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5039         (MIN_CHAR_COMPOSITION): Deleted.
5040         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5041         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5042
5043 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5044
5045         * buffer.h: Include mb-utf-8.h in UTF-2000.
5046
5047         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5048
5049         * mb-utf-8.h: New file.
5050
5051 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5052
5053         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5054         instead of `int'.
5055
5056         * mule-charset.h, buffer.h (Charset_ID): New type.
5057
5058 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5059
5060         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5061         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5062         instead of `MULE_CHAR_PRIVATE_OFFSET',
5063         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5064         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5065         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5066
5067         * character.h (Vcharset_japanese_jisx0212): New variable
5068         definition.
5069
5070 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5071
5072         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5073         (charset_by_attributes): Delete array about direction.
5074         (latin_a_char_to_charset): New variable in UTF-2000.
5075         (latin_a_char_to_byte1): New variable in UTF-2000.
5076         (latin_a_char_to_byte2): New variable in UTF-2000.
5077         (Qucs_bmp): New variable.
5078         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5079         `Bufbyte'.
5080         (next_allocated_2_byte_leading_byte): Likewise.
5081         (non_ascii_set_charptr_emchar): Likewise.
5082         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5083         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5084         `charset_by_attributes'.
5085         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5086         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5087         and `CHARSET_BY_LEADING_BYTE'.
5088         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5089         `utf-2000-version' to `vars_of_mule_charset'.
5090         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5091         define `leading-code-private-11' in UTF-2000; move setting of
5092         `utf-2000-version' from `syms_of_mule_charset'.
5093         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5094         UTF-2000.
5095
5096         * character.h (Charset_ID): New type.
5097         (LEADING_BYTE_UCS_BMP): New macro.
5098         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5099         (CHARSET_ID_OFFSET_94): New macro.
5100         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5101         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5102         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5103         final-byte.
5104         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5105         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5106         (CHARSET_ID_OFFSET_96): New macro.
5107         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5108         CHARSET_ID_OFFSET_96 and final-byte.
5109         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5110         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5111         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5112         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5113         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5114         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5115         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5116         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5117         (LEADING_BYTE_THAI_TIS620): Likewise.
5118         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5119         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5120         (CHARSET_ID_OFFSET_94x94): New macro.
5121         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5122         CHARSET_ID_OFFSET_94x94 and final-byte.
5123         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5124         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5125         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5126         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5127         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5128         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5129         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5130         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5131         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5132         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5133         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5134         (CHARSET_TYPE_128X128): New macro.
5135         (CHARSET_TYPE_256X256): New macro.
5136         (XCHARSET_PRIVATE_P): Delete unconditionally.
5137         (charset_by_attributes): Delete array about direction.
5138         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5139         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5140         (MIN_CHAR_94): New macro.
5141         (MAX_CHAR_94): New macro.
5142         (MIN_CHAR_96): New macro.
5143         (MAX_CHAR_96): New macro.
5144         (MIN_CHAR_94x94): New macro.
5145         (MAX_CHAR_94x94): New macro.
5146         (MIN_CHAR_96x96): New macro.
5147         (MAX_CHAR_96x96): New macro.
5148         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5149         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5150         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5151         - 32)'.
5152         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5153         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5154         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5155         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5156         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5157         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5158         `XCHARSET_LEADING_BYTE' to make code-point.
5159         (latin_a_char_to_charset): New variable.
5160         (latin_a_char_to_byte1): New variable.
5161         (latin_a_char_to_byte2): New variable.
5162         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5163         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5164         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5165
5166         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5167         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5168         (find_charsets_in_emchar_string): Likewise.
5169         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5170
5171         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5172         `int'.
5173         (decode_coding_iso2022): Likewise.
5174
5175         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5176         of `unsigned char'.
5177
5178         * redisplay.c (redisplay_text_width_emchar_string): Use
5179         `Charset_ID' instead of `unsigned char'.
5180         (redisplay_frame_text_width_string): Likewise.
5181
5182         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5183         `unsigned char'.
5184
5185         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5186         instead of `unsigned char'.
5187         (face_cachel_charset_font_metric_info): Likewise.
5188
5189         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5190         (get_non_ascii_char_table_value): Likewise.
5191         (get_char_table): Likewise.
5192         (put_char_table): Likewise.
5193         (map_over_other_charset): Likewise.
5194         (map_char_table): Likewise.
5195
5196         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5197         instead of `unsigned char'.
5198
5199 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5200
5201         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5202         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5203
5204         * mule-charset.c (leading_code_private_11): Don't define in
5205         UTF-2000.
5206
5207         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5208         in UTF-2000 because it is not ported yet and not to use
5209         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5210
5211 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5212
5213         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5214
5215 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5216
5217         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5218         in UTF-2000.
5219
5220         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5221         of unsigned char to store leading-byte.
5222
5223         * chartab.c (get_non_ascii_char_table_value): Don't use
5224         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5225
5226         * file-coding.c (encode_coding_big5): Delete bogus implementation
5227         in UTF2000.
5228
5229         * character.h (LEADING_BYTE_*): Delete definition for
5230         non-UTF-2000.
5231         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5232         (LEADING_BYTE_PREFIX_P): Deleted.
5233         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5234         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5235         (BUFBYTE_LEADING_BYTE_P): Deleted.
5236         (CHARSET_PRIVATE_P): Deleted unconditionally.
5237         (rep_bytes_by_first_byte): Deleted unconditionally.
5238         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5239         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5240         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5241         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5242         (CHAR_FIELD2): Deleted.
5243         (CHAR_FIELD3): Deleted.
5244         (MAKE_CHAR): Delete definition for non-UTF-2000.
5245         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5246         (breakup_char_1): New implementation.
5247         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5248         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5249
5250 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5251
5252         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5253         condition.
5254
5255 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5256
5257         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5258         (CHARSET_PRIVATE_P): Likewise.
5259         (XCHARSET_PRIVATE_P): Likewise.
5260         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5261
5262         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5263         UTF2000.
5264         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5265
5266 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5267
5268         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5269         (NUM_LEADING_BYTES): Changed from 128 to 256.
5270         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5271         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5272         UTF2000.
5273         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5274
5275         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5276         UTF2000.
5277         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5278         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5279         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5280         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5281         (Qchinese_cns11643_3): New variable in UTF2000.
5282         (Qchinese_cns11643_4): New variable in UTF2000.
5283         (Qchinese_cns11643_5): New variable in UTF2000.
5284         (Qchinese_cns11643_6): New variable in UTF2000.
5285         (Qchinese_cns11643_7): New variable in UTF2000.
5286         (syms_of_mule_charset): Define `chinese-cns11643-3',
5287         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5288         and `chinese-cns11643-7' in UTF2000.
5289         (vars_of_mule_charset): Initialize
5290         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5291         + 1 in UTF2000.
5292         (complex_vars_of_mule_charset): Setup charset
5293         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5294         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5295
5296 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5297
5298         * mule-charset.c: Move setting for `leading-code-private-11' from
5299         `syms_of_mule_charset' to `vars_of_mule_charset'.
5300
5301 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5302
5303         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5304         and `NUM_LEADING_BYTES' in assert.
5305
5306 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5307
5308         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5309         instead of 128.
5310         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5311         `NUM_LEADING_BYTES' instead of 128.
5312
5313 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5314
5315         * mule-charset.h (charset_by_leading_byte): Use
5316         `NUM_LEADING_BYTES' instead of 128.
5317         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5318
5319         * mule-charset.c (charset_by_leading_byte): Use
5320         `NUM_LEADING_BYTES' instead of 128.
5321         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5322
5323         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5324         128.
5325
5326 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5327
5328         * mule-charset.c (syms_of_mule_charset): Update to
5329         0.4 (Shin-Imamiya).
5330
5331 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5332
5333         * file-coding.c (encode_coding_sjis): New implementation for
5334         UTF2000.  (decode_coding_sjis): Ditto.
5335
5336 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5337
5338         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5339         Don't define in UTF2000.
5340
5341         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5342         defined.
5343
5344         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5345         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5346         MULE.
5347
5348 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5349
5350         * config.h.in (CHAR_IS_UCS4): New macro.
5351
5352         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5353         conventional MULE representation.
5354         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5355
5356         * mule-charset.h: Reverted to original.
5357
5358         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5359         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5360         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5361
5362         * character.h: New file.
5363
5364         * file-coding.c (Fmake_coding_system): Set 1 to
5365         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5366         defined.
5367         (encode_coding_no_conversion): New implementation for UTF2000.
5368
5369         * file-coding.h (struct Lisp_Coding_System): Add new member
5370         `fixed.size'.
5371
5372 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5373
5374         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5375         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5376         (encode_coding_iso2022): New implementation for UTF2000.
5377
5378 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5379
5380         * mule-canna.c (c2mu): New implementation for UTF2000.
5381         (m2c): Likewise.
5382
5383 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5384
5385         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5386
5387 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5388
5389         * file-coding.c (reset_encoding_stream): Set 0 to
5390         `str->iso2022.current_char_boundary' in UTF2000.
5391         (encode_utf8): Don't define in UTF2000.
5392         (encode_coding_utf8): New implementation for UTF-8 representation
5393         of UTF2000.
5394         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5395
5396 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5397
5398         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5399
5400         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5401         UTF2000.
5402         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5403
5404         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5405
5406         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5407         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5408         as UTF-8 in UTF2000.
5409         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5410         (non_ascii_valid_char_p): Don't define in UTF2000.
5411         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5412         (Lstream_get_emchar_1): Likewise.
5413         (utf-2000-version): New variable in UTF2000.
5414
5415         * lread.c (read_escape): Add new reader `u'.
5416
5417         * insdel.c (three_to_one_table): Don't define in UTF2000.
5418         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5419         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5420         UTF2000.
5421         (bytind_to_bufpos_func): Likewise.
5422         (buffer_mule_signal_inserted_region): Likewise.
5423         (vars_of_insdel): Don't initialize `three_to_one_table'.
5424         (init_buffer_text): Use `buf->text->mule_size' instead of
5425         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5426         UTF2000.
5427
5428         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5429         UTF-8 representation in UTF2000.
5430         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5431         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5432         (decode_coding_iso2022): Don't define local variable `lb' in
5433         UTF2000; don't use LEADING_BYTE in UTF2000; use
5434         `DECODE_ADD_UCS_CHAR' in UTF2000.
5435         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5436
5437         * config.h.in (UTF2000): New macro.
5438
5439         * buffer.h (struct buffer_text): Add new member `mule_size' and
5440         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5441         (valid_char_p): Return always 1 in UTF2000.
5442         (MAX_EMCHAR_LEN): 6 in UTF2000.
5443         (three_to_one_table): Don't define in UTF2000.
5444         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5445         UTF2000.
5446         (real_bytind_to_bufpos): Likewise.
5447
5448         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5449
5450 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5451
5452         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5453         representation change.
5454         (Vutf_2000_version): New variable.
5455         (leading_code_private_11): New variable.
5456         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5457         `leading-code-private-11'.
5458
5459         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5460         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5461         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5462         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5463         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5464         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5465         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5466         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5467         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5468         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5469         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5470         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5471         (MIN_CHAR_GREEK): New macro.
5472         (MAX_CHAR_GREEK): New macro.
5473         (MIN_CHAR_CYRILLIC): New macro.
5474         (MAX_CHAR_CYRILLIC): New macro.
5475         (MIN_CHAR_HEBREW): New macro.
5476         (MAX_CHAR_HEBREW): New macro.
5477         (MIN_CHAR_THAI): New macro.
5478         (MAX_CHAR_THAI): New macro.
5479         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5480         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5481         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5482         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5483         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5484         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5485         (CHAR_FIELD2): New inline function.
5486         (CHAR_FIELD3): New inline function.
5487         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5488         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5489         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5490         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5491         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5492         (MIN_CHAR_COMPOSITION): Likewise.
5493         (CHAR_LEADING_BYTE): Modified for character representation change.
5494         (MAKE_CHAR): Likewise.
5495
5496         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5497         (Vcharset_greek_iso8859_7): Likewise.
5498         (Vcharset_cyrillic_iso8859_5): Likewise.
5499         (Vcharset_hebrew_iso8859_8): Likewise.
5500         (Vcharset_thai_tis620): Likewise.
5501         (Vcharset_katakana_jisx0201): Likewise.
5502
5503 2004-02-02  Vin Shelton <acs@xemacs.org>
5504
5505         * XEmacs 21.4.15 is released
5506
5507 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5508
5509         * device-x.c (x_error_handler): Don't call stderr_out
5510
5511 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5512
5513         * buffer.c (other-buffer): Clarify documentation of order of
5514         arguments for FSF Emacs.
5515
5516 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5517
5518         * window.c (Fdelete_window): Dirty the mirror structure _before_
5519         marking the window deleted.
5520
5521 2003-09-15  Jerry James  <james@xemacs.org>
5522
5523         * event-msw.c (debug_mswin_messages): Conditionally compile
5524         messages missing from the Cygwin headers.
5525
5526 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5527
5528         * data.c (eq_with_ebola_notice): Fix typo in comment.
5529         (Ftrue_list_p): Improve docstring.
5530
5531 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5532
5533         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5534
5535 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5536
5537         * search.c (trivial_regexp_p): Regexps containing "\{" are
5538         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5539         Stefan Monnier for suggesting a diagnosis.
5540
5541 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5542
5543         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5544
5545 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5546
5547         * search.c (Fsearch_forward):
5548         (Fsearch_backward):
5549         Document negative count.
5550
5551 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5552
5553         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5554
5555 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5556
5557         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5558
5559 2003-09-15  Vin Shelton  <acs@xemacs.org>
5560
5561         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5562         21.5.
5563
5564 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5565
5566         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5567         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5568         (re_match_2_internal): Use TRANSLATE instead of
5569         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5570         non-ASCII char case conversion.
5571
5572 2003-09-08  Mike Sperber  <mike@xemacs.org>
5573
5574         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5575         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5576
5577 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5578
5579        * .gdbinit (pobj): fix printing of symbol name.
5580
5581 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5582
5583         * frame-x.c (x_layout_widgets): When resizing is about to cause
5584         frame size slip, mark it for redisplay.
5585
5586 2003-08-18  Jerry James  <james@xemacs.org>
5587
5588         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5589
5590 2003-09-03  Vin Shelton <acs@xemacs.org>
5591
5592         * XEmacs 21.4.14 is released
5593
5594 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5595
5596         * config.h.in (REGEX_MALLOC): Make it configure'able.
5597
5598 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5599
5600         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5601         linking.
5602         * sysdll.c (dll_init):
5603         * sysdll.c (dll_open):
5604         * sysdll.c (dll_close):
5605         * sysdll.c (dll_function):
5606         * sysdll.c (dll_variable):
5607         * sysdll.c (dll_error):
5608         Add support for loading bundles using Darwin/MacOSX
5609         native API.
5610
5611 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5612
5613         * process.c (start-process-internal): Document coding systems.
5614
5615 2003-07-30  Jerry James  <james@xemacs.org>
5616
5617         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5618
5619 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5620
5621         * event-msw.c (mswindows_enqueue_mouse_button_event):
5622         * event-msw.c (mswindows_wnd_proc):
5623           enqueue button event when scrollwheel event isn't handled by 
5624           mswindows_handle_mousewheel_event, such as when the scrollbars
5625           are not showing.
5626
5627 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5628
5629         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5630
5631 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5632
5633         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5634
5635 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5636
5637         * regex.c (re_match_2_internal): Fix matching degenerate word
5638         boundaries.
5639
5640 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5641
5642         * XEmacs 21.4.13 is released
5643
5644 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5645
5646         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5647         * lisp.h (<inttypes.h>):
5648         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5649         the definition.
5650
5651 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5652
5653         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5654         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5655         Result: "temacs can only be run in -batch mode."
5656         Fix: Check xemacs executable candidate for directory-ness.
5657
5658 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5659
5660         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5661           they conflict with <sys/types.h>.
5662
5663 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5664
5665         * database.c: Berkeley DB wants __STDC__ to be defined.
5666
5667 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5668
5669         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5670
5671 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5672
5673         * process-unix.c (unix_send_process): Fix C++ compile error.
5674
5675 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5676
5677         * Added .dylib as an acceptable shared library file extension
5678         * to support MacOSX.
5679
5680 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5681
5682         * EmacsFrameP.h (EmacsFramePart):
5683         Kludge to allow compiling with Motif1, but linking with Motif2.
5684
5685 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5686
5687         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5688
5689
5690 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5691
5692         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5693
5694 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5695
5696         * sysdll.c: Included lisp.h to define needed alloca_array.
5697
5698 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5699
5700         Make XEmacs redisplay 10 times faster.
5701         If, that is, you're using a slow X connection and MoveOpaque.
5702         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5703         Use compress_motion = TRUE.
5704         * EmacsFrame.c (emacsFrameClassRec): 
5705         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5706         * EmacsManager.c (emacsManagerClassRec):
5707         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5708
5709 2003-01-30  Vin Shelton  <acs@xemacs.org>
5710
5711         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5712
5713 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5714
5715         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5716         Patch by Martin Buchholz.
5717
5718 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5719
5720         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5721         Thanks to icc for warning and Martin Buchholz for reporting.
5722
5723 2003-01-29  Vin Shelton <acs@xemacs.org>
5724
5725         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5726
5727         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5728         remember to multiply by the element size.
5729
5730 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5731
5732         * XEmacs 21.4.12 "Portable Code" is released.
5733
5734 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5735
5736         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5737         * s/cygwin.sc: new linker file.
5738
5739 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5740
5741         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5742
5743         * redisplay-x.c (x_output_string): Use X11-specified types.
5744         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5745         * emacs.c (__free_hook): Use typeof with Intel compiler.
5746         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5747
5748 2003-01-08  Andy Piper  <andy@xemacs.org>
5749
5750         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5751         reserve size during unexec().
5752
5753 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5754
5755         * process-unix.c (unix_create_process): Don't let outchannel block.
5756
5757 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5758
5759         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5760         Needed for IsBadReadPtr().
5761
5762 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5763
5764         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5765
5766 2002-12-14  Ben Wing  <ben@xemacs.org>
5767
5768         * callint.c: Declaration error.
5769         * dumper.c (pdump):
5770         * dumper.c (pdump_load): Warning fix.
5771         * process.c: GCPRO error.
5772         * glyphs.c (unmap_subwindow):
5773         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5774         * event-stream.c (maybe_kbd_translate): Wrong argument to
5775         character_to_event().
5776
5777         * alloc.c (garbage_collect_1):
5778         * emacs.c:
5779         * emacs.c (debug_can_access_memory):
5780         * emacs.c (fatal_error_signal):
5781         * emacs.c (mswindows_handle_hardware_exceptions):
5782         * emacs.c (main_1):
5783         * emacs.c (main):
5784         * emacs.c (assert_failed):
5785         * emacs.c (syms_of_emacs):
5786         * lisp.h:
5787         * print.c:
5788         * print.c (std_handle_out_va):
5789         * print.c (write_string_to_stdio_stream):
5790         * print.c (write_fmt_string):
5791         * print.c (printing_badness):
5792         * print.c (printing_major_badness):
5793         * print.c (print_internal):
5794         * print.c (debug_print_no_newline):
5795         * print.c (debug_backtrace):
5796         Be more defensive in handling bad values when printing.  Add code
5797         from trunk involving inhibit_non_essential_printing_operations.
5798         When going down or in debug_print(), don't do external conversion
5799         and such and try really, really hard when printing to avoid core
5800         dumping.  Add force-debugging-signal, debug_break().
5801
5802 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5803
5804         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5805         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5806
5807 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5808
5809         * database.c: Fix open_database. Berkeley DB API has changed in
5810         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5811
5812 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5813
5814         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5815
5816 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5817
5818         * event-Xt.c (Xt_timeout):
5819         (Xt_timeout_callback):
5820         (emacs_Xt_add_timeout):
5821         (emacs_Xt_remove_timeout):
5822         (Xt_timeout_to_emacs_event):
5823         Turn completed_timeouts from a stack into a queue.  Fixes
5824         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5825
5826 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5827
5828         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5829         * emacs.c (main): Assert that mmap'd allocation is disabled.
5830
5831 2002-10-14  Andy Piper  <andy@xemacs.org>
5832
5833         * glyphs-widget.c (layout_query_geometry): add in fiddle
5834         factor. Include border text in width layout calculation.
5835         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5836
5837 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5838
5839         * XEmacs 21.4.10 "Military Intelligence" is released.
5840
5841 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5842
5843         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5844         using the NAS private array SoundFileInfo that no longer exists in
5845         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5846         and earlier.  This is broken for some versions between 1.5a and
5847         1.5f.
5848
5849 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5850
5851         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5852
5853         * emacs.c (shut_down_emacs): Improve crash message.
5854
5855 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5856
5857         * file-coding.c (determine_real_coding_system): Check for coding
5858         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5859         shebangs and Python PEP 263.
5860
5861 2002-10-08  Andy Piper  <andy@xemacs.org>
5862
5863         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5864         if static sizes haven't been set.
5865
5866 2002-08-30  Mike Alexander  <mta@arbortext.com>
5867
5868         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5869         to close a socket.
5870
5871 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5872
5873         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5874
5875 2002-09-20  Mike Sperber <mike@xemacs.org>
5876
5877         (This partially gets back my patch from 2002-07-20 without the
5878         bug.)
5879         * callproc.c (child_setup): Remove Ben's comment noting confusion
5880         over the file descriptors >= 3: close_process_descs() doesn't
5881         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5882         * process-unix.c (unix_create_process): Call
5883         begin_dont_check_for_quit to inhibit unwanted interaction (and
5884         thus breaking of X event synchronicity) in the child.
5885
5886 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5887
5888         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5889         widget.
5890
5891 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5892
5893         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5894         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5895         the xemacs process did not exit, but looped infinitely here.  This
5896         fixes that problem.
5897
5898 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5899
5900         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5901         (find_context): Improve comments.
5902
5903         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5904         (re_match_2): An XCHAR_TABLE operation was missing.
5905
5906         Many of the following changes were inspired by Andy Piper's (now
5907         obsolete) patch to make syntax-table text property lookup optional.
5908
5909         [Documentation]
5910
5911         * syntax.h (top level): Document semantics of syntax flags.
5912         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5913         * syntax.c, syntax.h (top level): Document syntax cache better in
5914         comments.
5915
5916         [Instrument syntax caching (temporary change)]
5917
5918         * syntax.h (enum syntax_cache_statistics_functions, struct
5919         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5920         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5921         * syntax.c (scan_words, Fforward_comment, scan_lists,
5922         Fbackward_prefix_characters):
5923         * font-lock.c (find_context):
5924         Use them to instrument syntax caching. 
5925         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5926         syntax_cache_statistics_function_names): New type and variables.
5927         * syntax.c (update_syntax_cache): Update and report statistics.
5928
5929         [Major syntax cache optimizations]
5930
5931         syntax.c (lookup_syntax_properties): Default off.
5932
5933         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5934         * syntax.c (update_syntax_cache):
5935         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5936
5937         [Minor syntax cache optimizations and code clarifications]
5938
5939         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5940         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5941         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5942         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5943         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5944         (Code clarification.)
5945
5946         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5947         scan_lists): Compute code from syncode, use Boolean macros instead
5948         of redundant masking operations.  (Code clarification; any decent
5949         compiler can do this optimization.)
5950
5951         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5952         for clarity.
5953
5954         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5955         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5956         use F*_single_property_change instead of F*_extent_change.
5957         Currently F*_single_property_change is _much_ less efficient.
5958
5959         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5960         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5961         syntax_cache.object properly, don't leave Qt or Qnil.
5962         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5963         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5964         tests for Qt or Qnil.
5965
5966 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5967
5968         * redisplay.c (point_in_line_start_cache): 
5969         * extents.c (print_extent_1):
5970         Fix warnings.
5971
5972         * extents.c (Fset_extent_property): Document `syntax-table' property.
5973
5974         * extents.h (Fnext_single_property_change): EXFUN it.
5975
5976 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5977
5978         * search.c (clear_unused_search_regs): New static function.
5979         (search_buffer): 
5980         (simple_search): 
5981         (boyer_moore):
5982         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5983         Minor clarifications in comments.
5984
5985         * regex.c (re_match_2_internal): Ensure no stale submatches.
5986
5987 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5988
5989         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5990
5991 2002-08-29  Jerry James  <james@xemacs.org>
5992
5993         * lisp.h: structrures -> structures.
5994
5995 2002-06-03  Andy Piper  <andy@xemacs.org>
5996
5997         * frame.c (frame_conversion_internal): add conversion appropriate
5998         for setting frame dimensions in pixels.
5999
6000         * console.h (struct console_methods): add device-specific widget
6001         layout functions.
6002
6003         * emacs.c (main_1): initialize glyph vars.
6004
6005         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6006         (handle_focus_event_2): new function. Allow focus to
6007         be set to a particular window and widget.
6008         (enqueue_focus_event): new function. Create a
6009         synthetic focus event.
6010         (emacs_Xt_handle_magic_event): call
6011         handle_focus_event_2.
6012
6013         * frame.c (Fset_frame_pixel_height): new function. Allow
6014         pixel-based sizing. Does the right thing on character-oriented
6015         displays.
6016         (Fset_frame_pixel_width): ditto.
6017         (Fset_frame_pixel_size): ditto.
6018         (syms_of_frame): declare.
6019
6020         * general-slots.h: add :vertically-justify and
6021         :horizontally-justify.
6022
6023         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6024         (mswindows_widget_border_width): new function.
6025         (mswindows_combo_box_instantiate): set border widths.
6026         (console_type_create_glyphs_mswindows): declare.
6027
6028         * glyphs-widget.c:
6029         (check_valid_justification): allow vertical and horizontal
6030         justification.
6031         (widget_border_width): new function. Call device methods.
6032         (widget_instance_border_width): ditto.
6033         (logical_unit_height): new function. Determine the height of a
6034         logical-unit. Logical units are intended to provide grid-like
6035         layout for subcontrols in a layout. If the layout is
6036         :vertically-justify top then subcontrols will be positioned on
6037         logical-unit boundaries, thus allowing adjacent subcontrols to
6038         line up.
6039         (widget_logical_unit_height): ditto for widgets.
6040         (redisplay_widget): misc cleanup.
6041         (widget_spacing): new function. Call device specific
6042         methods. Intended to be the default gap between adjacent widgets.
6043         (widget_query_geometry): use new spacing functions to determine
6044         appropriate geometry.
6045         (initialize_widget_image_instance): initialize horizontal and
6046         vertical justification.
6047         (widget_instantiate): use logica-units where appropriate for
6048         sizing large widgets.
6049         (button_query_geometry): use widget_instance_border_width.
6050         (tree_view_query_geometry): ditto.
6051         (tab_control_query_geometry): ditto.
6052         (edit_field_query_geometry): new function.
6053         (layout_update): pick up :justify, :horizontally-justify and
6054         :vertically-justify none of which worked previously. :justify is
6055         used as a fallback for both horizontal and vertical justification.
6056         (layout_query_geometry): use logical units to size appropriately.
6057         (layout_layout): ditto.
6058         (Fwidget_logical_to_character_width): new function. Allow users to
6059         convert from logical units to characters so that frame sizes can
6060         be set appropriately.
6061         (Fwidget_logical_to_character_height): ditto.
6062         (syms_of_glyphs_widget): declare.
6063         (image_instantiator_edit_fields): add edit_field_query_geometry.
6064         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6065         :horizontally-justify.
6066         (specifier_vars_of_glyphs_widget): new function. Declare
6067         Vwidget_border_width which is not yet used.
6068
6069         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6070         (x_widget_border_width): new function.
6071         (x_widget_instantiate): create a sensible name for widgets.
6072         (console_type_create_glyphs_x): declare x_widget_border_width.
6073
6074         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6075         (struct Lisp_Image_Instance): add :vertically-justify and
6076         :horizontally-justify.
6077         (LAYOUT_JUSTIFY_TOP): new.
6078         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6079         (ROUND_UP): new macro. Round argument up to next integral
6080         interval.
6081
6082         * redisplay-output.c (redisplay_output_layout): misc formatting.
6083
6084         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6085
6086 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6087
6088         * XEmacs 21.4.9 "Informed Management" is released.
6089
6090 2002-08-19  Andy Piper  <andy@xemacs.org>
6091
6092         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6093         win32 format.
6094
6095         * realpath.c (xrealpath): normalize drive spec also so that dir
6096         sep chars are not mixed on cygwin.
6097
6098 2002-08-06  Jerry James  <james@xemacs.org>
6099
6100         * window.c (Fsplit_window): Count only half of the divider width
6101         against the left window when splitting horizontally. 
6102
6103 2002-06-24  Andy Piper  <andy@xemacs.org>
6104
6105         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6106         toolbar was cleared.
6107
6108         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6109         function. Split out from mswindows_output_frame_toolbars.
6110         (mswindows_output_frame_toolbars): move clear pieces to
6111         mswindows_output_frame_toolbars.
6112
6113         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6114         out from gtk_output_frame_toolbars.
6115         (gtk_output_frame_toolbars): move clear pieces to
6116         gtk_clear_frame_toolbars.
6117
6118         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6119         the frame is cleared. How this ever worked before is a mystery.
6120         (x_output_frame_toolbars): Only output toolbars.
6121         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6122
6123         * gutter.c (update_gutter_geometry):
6124         Mark frame layout changed.
6125         (update_frame_gutter_geometry, update_frame_gutters):
6126         Respect frame_layout_changed.
6127
6128         * console.h (struct console_methods): add
6129         clear_frame_toolbars_method.
6130
6131         * redisplay.c (redisplay_frame): call
6132         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6133
6134         * toolbar.h: declare update_frame_toolbars_geometry.
6135
6136         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6137         out from update_frame_toolbars.  Call clear_frame_toolbars.
6138         (update_frame_toolbars): only output, do not change geometry.
6139
6140         * redisplay.c: add frame_layout_changed.
6141
6142         * redisplay.h: add frame_layout_changed.
6143         (CLASS_RESET_CHANGED_FLAGS): set it.
6144         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6145         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6146         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6147
6148         * device.h (struct device): add frame_layout_changed.
6149         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6150
6151         * frame.h (struct frame): add frame_layout_changed.
6152         (MARK_FRAME_LAYOUT_CHANGED): new.
6153
6154 2002-06-30  Mike Alexander  <mta@arbortext.com>
6155
6156         * event-msw.c (mswindows_need_event): Don't wait for a new message
6157         if the queue is not empty.  Suggested by Paul Moore.
6158
6159 2002-06-12  Andy Piper  <andy@xemacs.org>
6160
6161         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6162         for printing on accurately.
6163
6164 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6165
6166         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6167         WM_ACTIVATE message. Make sure that the frame is visible if the
6168         window is visible. This seemss to fix the problem where XEmacs
6169         appears to freeze after switching desktops with certain virtual
6170         window managers.
6171         (debug_output_mswin_message): Added code to output message
6172         parameters for WM_WINDOWPOSCHANGED, 
6173         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6174
6175 2002-05-25  Andy Piper  <andy@xemacs.org>
6176
6177         * select-x.c (vars_of_select_x): Fix docstring of
6178         x-selection-strict-motif-ownership
6179
6180 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6181
6182         * keymap.c (get_keymap):
6183         Add comment about do_autoload GCPROs own args.
6184
6185 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6186
6187         * bytecode.c (execute_optimized_program): check_opcode ifdef
6188         ERROR_CHECK_BYTE_CODE.
6189
6190 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6191
6192         Thanks to Ben Wing and Michael Sperber.
6193
6194         * eval.c (Fcommand_execute):
6195         (Feval):
6196         (Ffuncall):
6197         (Fmacroexpand_internal):
6198         (function_argcount):
6199         callint.c (Fcall_interactively):
6200         Add comment about do_autoload GCPROs own args.
6201
6202         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6203
6204         * eval.c (Ffuncall): Extra braces to placate GCC.
6205
6206 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6207
6208         * backtrace.h (grow_specpdl):
6209         (SPECPDL_RESERVE):
6210         * EmacsFrame.c (EmacsFrameSetValues):
6211         * eval.c (grow_specpdl):
6212         * ExternalShell.c (hack_event_masks_1):
6213         * glyphs-x.c (convert_EImage_to_XImage): 
6214         (x_finalize_image_instance):
6215         * ralloc.c (page_size):
6216         (r_alloc_sbrk):
6217         * xgccache.c (gc_cache_hash):
6218         Fix unsigned comparison warnings.
6219
6220 2002-07-29  Jerry James  <james@xemacs.org>
6221
6222         * lread.c (locate_file): Any nonnegative return value indicates
6223         success if MODE is nonnegative.
6224
6225 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6226
6227         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6228         argument. 
6229
6230 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6231
6232         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6233
6234         * dumper.c (pdump_get_indirect_count):
6235         (pdump_scan_by_alignment):
6236         (pdump_dump_root_struct_ptrs):
6237         (pdump_dump_rtables):
6238         (pdump_dump_root_objects):
6239         (pdump):
6240         * nas.c (WaveOpenDataForReading):
6241         * fns.c (print_bit_vector):
6242         * font-lock.c (SINGLE_SYNTAX_STYLE):
6243         * glyphs.c (check_for_ignored_expose):
6244         (find_matching_subwindow):
6245         * glyphs-eimage.c:
6246         * imgproc.c (get_histogram):
6247         * redisplay.c (point_in_line_start_cache):
6248         * redisplay-output.c (redisplay_unmap_subwindows):
6249         * symbols.c (defsymbol_massage_name_1):
6250         (defkeyword_massage_name):
6251         (deferror_massage_name_and_message):
6252         * redisplay-x.c (x_output_string): 
6253         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6254         * frame.h (struct frame):
6255         * filelock.c (current_lock_owner):
6256         * doprnt.c (emacs_doprnt_1):
6257         * lisp.h (struct Lisp_Bit_Vector):
6258         (DO_REALLOC):
6259         Fix warnings.
6260
6261 2002-02-13  Ben Wing  <ben@xemacs.org>
6262
6263         * event-stream.c (reset_key_echo):
6264         * event-stream.c (reset_this_command_keys):
6265         * event-stream.c (execute_command_event):
6266         If console is dead as a result of C-x 5 0, then post-command stuff
6267         needs to be careful and do only non-console-specific stuff.
6268
6269 2002-07-01  Mike Sperber <mike@xemacs.org>
6270
6271         * process-unix.c (unix_send_process): Mark coding_outstream as
6272         non-open upon SIGPIPE.
6273
6274         * event-stream.c (Fnext_event): Reorder switch cases to something
6275         that makes sense.
6276
6277 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6278
6279         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6280         Don't bogusly reinitialize ascii_character property.
6281
6282 2002-07-08  Mike Sperber <mike@xemacs.org>
6283
6284         * process.c (Fstart_process_internal): Do error checking before we
6285         fork off the child, so the child can't muck with the state of the
6286         parent.
6287
6288 2002-07-08  Mike Sperber <mike@xemacs.org>
6289
6290         * ralloc.c (init_ralloc): Allocate properly for pdump.
6291
6292 2002-06-12  Andy Piper  <andy@xemacs.org>
6293
6294         * glyphs.c (query_string_geometry): check the string.
6295
6296         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6297         widget names.
6298
6299 2002-06-17  Jerry James  <james@xemacs.org>
6300
6301         * sysdll.c: Remove RTLD_GLOBAL initialization.
6302         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6303
6304 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6305
6306         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6307
6308 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6309
6310         * sysdep.c (sys_rename): Make sys_rename work for the case where
6311         Windows rename sets errno to EACCES if target file exists.
6312
6313 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6314
6315         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6316         Fix detection of metric units to work on Win95
6317
6318 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6319
6320         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6321
6322 2002-04-25  Andy Piper  <andy@xemacs.org>
6323
6324         * redisplay.c (create_text_block): Remove extra comment trailer.
6325
6326 2002-04-24  Andy Piper  <andy@xemacs.org>
6327
6328         * redisplay.c (create_text_block): Don't actually add propagation
6329         data if the line ends after we have added a glyph.
6330
6331 2002-04-22  Andy Piper  <andy@xemacs.org>
6332
6333         * extents.c (extent_fragment_update): check for glyphs we have
6334         previously displayed.
6335         * extents.c (print_extent_1): warning removal.
6336         * extents.h: change prototype.
6337         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6338         widths correctly for wide glyphs.
6339         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6340         * redisplay.c (prop_type): add PROP_GLYPH.
6341         * redisplay.c (struct prop_block): add glyph type
6342         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6343         to the propagation data.
6344         * redisplay.c (create_text_block): if there is a glyph in the
6345         propagation data use it to salt extent_fragment_update.
6346         * redisplay.c (create_string_text_block): ditto.
6347
6348 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6349
6350         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6351         * redisplay-output.c (compare_runes): Compare them.
6352         * redisplay.c: Update copyright date.
6353         * redisplay.c (pos_data): Add need_baseline_computation field.
6354         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6355         need_baseline_computation; zero yoffset. Set max_pixmap_height
6356         for all pixmaps, not just automatically positioned ones.
6357         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6358         * redisplay.c (calculate_baseline): New, compute textual baseline.
6359         * redisplay.c (add_glyph_rune): Call them.
6360         * redisplay.c (create_text_block): Likewise.
6361         * redisplay.c (create_overlay_glyph_block): Likewise.
6362         * redisplay.c (add_margin_runes): Likewise.
6363         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6364
6365         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6366         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6367         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6368         * redisplay-msw.c (mswindows_output_string): Likewise.
6369         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6370         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6371         * redisplay-x.c (x_output_display_block): Likewise.
6372
6373 2002-03-28  Ben Wing  <ben@xemacs.org>
6374
6375         * redisplay.c: Fixed bug in redisplay
6376         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6377         and down of the lines, since they're bigger than the line
6378         size. (It was seen most obviously when there's a horizontal scroll
6379         bar, e.g. do C-h a glyph or something like that.) The problem was
6380         that the glyph-contrib-p setting on glyphs was ignored even if it
6381         was set properly, which it wasn't until now.
6382
6383 2002-04-24  Andy Piper  <andy@xemacs.org>
6384
6385         * lisp.h (Dynarr_end): Fix definition.
6386
6387 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6388
6389         * redisplay.c (mark_redisplay): Remove call to
6390         update_frame_window_mirror.
6391
6392 2001-11-15  Andy Piper  <andy@xemacs.org>
6393
6394         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6395         cygwin (again).
6396
6397 2002-02-13  Andy Piper  <andy@xemacs.org>
6398
6399         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6400         we did in fact enqueue the XM_MAPFRAME event.
6401
6402 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6403
6404         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6405         to fix problem switching between virtual desktops under virtuawin
6406         virtual window manager.
6407
6408 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6409
6410         * event-msw.c: Typo fix.
6411         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6412         magic XM_MAPFRAME event has been sent.
6413
6414 2001-11-23  Andy Piper  <andy@xemacs.org>
6415
6416         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6417
6418 2001-11-21  Andy Piper  <andy@xemacs.org>
6419
6420         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6421         mouse events outside the frame.
6422
6423 2002-03-20  Andy Piper  <andy@xemacs.org>
6424
6425         * menubar-msw.c (mswindows_popup_menu): warning removal.
6426         * dialog-msw.c (dialog_popped_down): ditto.
6427
6428 2001-12-11  Andy Piper  <andy@xemacs.org>
6429
6430         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6431         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6432         popup_up_p.
6433         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6434         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6435         * menubar-msw.c (mswindows_popup_menu): ditto.
6436
6437 2001-10-29  Andy Piper  <andy@xemacs.org>
6438
6439         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6440         cancels.
6441
6442 2002-01-03  Andy Piper  <andy@xemacs.org>
6443
6444         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6445         letters.
6446         (xrealpath): ditto.
6447
6448 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6449
6450         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6451         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6452         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6453         Detect and handle case where machine is set up for metric units
6454
6455 2002-04-02  Andy Piper  <andy@xemacs.org>
6456
6457         * dired-msw.c (mswindows_get_files): 
6458         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6459         completely handled by XEmacs. Suggested by Thomas Vogler
6460         <mail@thomas-vogler.de>.
6461
6462 2001-11-14  Andy Piper  <andy@xemacs.org>
6463
6464         * nt.c (REG_ROOT): change registry key to XEmacs.
6465
6466 2002-04-27  Andy Piper  <andy@xemacs.org>
6467
6468         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6469
6470 2002-04-26  Andy Piper  <andy@xemacs.org>
6471
6472         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6473         behavior.
6474
6475 2002-03-14  Mike Alexander  <mta@arbortext.com>
6476
6477         * event-msw.c (mswindows_unwait_process): New, remove process from
6478         wait list
6479         * process-nt.c (nt_finalize_process_data): Call
6480         mswindows_unwait_process
6481         * console-msw.h: Declare mswindows_unwait_process
6482
6483 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6484
6485         * editfns.c (Fdecode_time):
6486         (Fformat_time_string):
6487         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6488         (make_time): Warning elimination (change arg name).
6489
6490 2001-11-24  Andy Piper  <andy@xemacs.org>
6491
6492         * window.c (Fsplit_window): Doc return type.
6493
6494 2002-04-01  Andy Piper  <andy@xemacs.org>
6495
6496         * emacs.c (Fkill_emacs): Only output message box in interactive
6497         mode.
6498
6499 2002-04-26  Andy Piper  <andy@xemacs.org>
6500  
6501         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6502         cygwin.
6503
6504 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6505
6506         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6507         bit platform.
6508
6509 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6510
6511         * XEmacs 21.4.8 "Honest Recruiter" is released.
6512
6513 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6514
6515         Supersedes 2002-04-17 patch.
6516
6517         * process.h (PROCESS_LIVE_P): Use the process status as
6518         evidence of health, not the state of the input stream.
6519         (PROCESS_READABLE_P): Say if the process is readable
6520         from. (It may be dead nonetheless.)
6521         (CHECK_READABLE_PROCESS): Test for that condition.
6522
6523         * process.c (create_process): Use PROCESS_READABLE_P.
6524         (read_process_output, set_process_filter): Likewise.
6525
6526         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6527         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6528
6529         This code is #if 0'd, this is not the time to add new functions:
6530
6531         * process.c (Fprocess_readable_p): Report readability status.
6532         * process.c (Qprocess_readable_p): New, associated symbol...
6533         * process.c (syms_of_process): ... initialize it.
6534
6535 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6536
6537         * XEmacs 21.4.7 "Economic Science" is released.
6538
6539 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6540
6541         * process.h (PROCESS_LIVE_P): Use the process status as
6542         evidence of health, not the state of the input stream.
6543
6544 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6545
6546         * sysdep.c (sys_siglist): change "signum" to "signal"
6547
6548 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6549
6550         * s/darwin.h: New file.
6551         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6552         
6553 2002-04-23  Andreas Jaeger  <aj@suse.de>
6554
6555         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6556         which use lib64 for 64-bit libs.
6557         (START_FILES): Likewise.
6558
6559 2002-02-11  Mike Sperber  <mike@xemacs.org>
6560
6561         * device-x.c: 
6562         (x_IO_error_handler):
6563         (x_init_device): Temporarily keep device in static variable
6564         `device_being_initialized' so we can recover gracefully from
6565         internal XOpenDevice failure.  (XOpenDevice is documented to
6566         return NULL on failure, but sometimes calls the IO error handler
6567         instead.)
6568
6569 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6570
6571         * dired.c (Ffile_name_all_completions): Change documentation --
6572         remove reference to completion-ignored-extensions.
6573         * dired.c (vars_of_dired): Change documentation for
6574         completion-ignored-extensions -- remove reference to
6575         file-name-all-completions.
6576
6577 2002-03-06  Jerry James  <james@xemacs.org>
6578
6579         * emodules.c (emodules_load): Fix multiple loading of same module.
6580
6581 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6582         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6583         RTLD_LAZY to avoid incorrect symbol binding when using nested
6584         shared libraries on Solaris.
6585
6586 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6587
6588         * fileio.c (Ffind_file_name_handler): Improve docstring.
6589
6590 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6591
6592         * fns.c (Fmapconcat): Improve docstring.
6593
6594 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6595
6596         * device-gtk.c: Add prototype for
6597         emacs_gtk_selection_clear_event_handle.
6598         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6599         selection.  Setup signal handler for "selection_clear_event"
6600         (emacs_gtk_selection_clear_event_handle).
6601
6602         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6603         other applications owning the clipboard (based on
6604         x_handle_selection_clear).
6605
6606 2001-12-23  William M. Perry  <wmperry@gnu.org>
6607
6608         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6609         
6610 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6611
6612         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6613
6614 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6615
6616         * XEmacs 21.4.6 "Common Lisp" is released.
6617
6618 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6619
6620         * search.c (Freplace_match): Add missing sub-expression functionality.
6621
6622         * buffer.c (decode_buffer): Add a check for pointer type to
6623         decode_buffer, before gcc's CSE optimization reorders a
6624         dereference in front of the allow_string test.
6625
6626 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6627
6628         * window.c (window_loop): Fix bug that sometimes prevented
6629         window_loop() from iterating across multiple devices.  Also, at
6630         Ben's request, changed infloop-detecting code to abort() instead
6631         of silently terminating window_loop().
6632
6633 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6634
6635         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6636         * editfns.c (make_time): New function.
6637         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6638         * lisp.h (make_time): Prototype and comment it.
6639         * dired.c (wasteful_word_to_lisp): Deprecate.
6640         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6641
6642 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6643
6644         * fileio.c (auto_save_1): Use current coding system, not
6645         escape-quoted.
6646
6647 2001-11-13  Ben Wing  <ben@xemacs.org>
6648
6649         * window.c:
6650         * window.c (window_truncation_on):
6651         * window.c (syms_of_window):
6652         truncate-partial-width-windows should respect the buffer being
6653         displayed, like other redisplay vars.
6654
6655 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6656
6657         * event-stream.c (Fread_key_sequence): save current buffer.
6658
6659 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6660
6661         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6662
6663 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6664
6665         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6666
6667 2001-10-26  Mike Alexander  <mta@arbortext.com>
6668
6669         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6670
6671 2001-10-25  Andy Piper  <andy@xemacs.org>
6672
6673         * ChangeLog:
6674         * dialog-msw.c (handle_directory_proc): new function.
6675          (handle_directory_dialog_box): new fucntion.
6676          (handle_file_dialog_box): use new directory dialog support.
6677          (mswindows_make_dialog_box_internal): ditto.
6678         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6679         handling.
6680         (mswindows_find_frame): make global.
6681         * fileio.c (Fexpand_file_name): build fix.
6682         * general-slots.h: add Qdirectory.
6683         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6684         handling.
6685         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6686         cygwin not leaving win32 paths unchanged.
6687         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6688         cygwin runtime to do path conversion.
6689         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6690         (syms_of_win32): add new function.
6691         * window.c (window_loop): build fix.
6692
6693 2001-10-15  Andy Piper  <andy@xemacs.org>
6694
6695         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6696
6697 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6698
6699         * XEmacs 21.4.5 "Civil Service" is released.
6700
6701 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6702
6703         * glyphs-x.c: Force buffer-tab highlight update when moving the
6704         buffer, avoiding an ugly black border, used for keyboard focus
6705         indication, on a widget that can never have keyboard focus, the
6706         buffer tab.
6707
6708 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6709
6710         * process-unix.c (unix_open_multicast_group): Remove too much
6711         conversion between host and network byte order.
6712
6713 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6714
6715         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6716         before replacing them.
6717
6718         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6719         operation.
6720
6721         * src/window.c (undedicate_windows): Use it.
6722         * src/window.h: Add prototype.
6723
6724 2001-09-17  Ben Wing  <ben@xemacs.org>
6725
6726         * fileio.c (normalize_filename):
6727         * fileio.c (Fexpand_file_name):
6728         Fix various C++ compile errors in Andy's recent code.
6729         
6730         * callint.c (Fcall_interactively):
6731         * editfns.c (Ftemp_directory):
6732         * editfns.c (Fuser_full_name):
6733         * emacs.c (argmatch):
6734         * lread.c (locate_file_map_suffixes):
6735         * redisplay-x.c (x_ring_bell):
6736         Fix sign-compare warnings.
6737         
6738 2001-09-08  Andy Piper  <andy@xemacs.org>
6739
6740         * fileio.c (normalize_filename): copied from nt.c
6741         * (Ffile_name_directory): enable win32 paths under cygwin.
6742         * (Ffile_name_nondirectory): ditto.
6743         * (directory_file_name): ditto.
6744         * (Fexpand_file_name): ditto.
6745         * (Ffile_truename): ditto.
6746         * (Fsubstitute_in_file_name): ditto.
6747         * (Ffile_name_absolute_p): ditto.
6748         * (Ffile_readable_p): ditto.
6749
6750 2001-09-08  Andy Piper  <andy@xemacs.org>
6751
6752         * device-msw.c (mswindows_finish_init_device): remove dde
6753         initialization.
6754         * device-msw.c (mswindows_init_dde): factor out from
6755         mswindows_finish_init_device()
6756         * device-msw.c (init_mswindows_very_early): new function
6757         initialize but don't enable dde.
6758         * emacs.c (main_1): call init_mswindows_very_early.
6759         * event-msw.c:
6760         * event-msw.c (mswindows_dde_callback): only execute when we are
6761         ready.
6762         * symsinit.h: declare init_mswindows_very_early.
6763
6764 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6765
6766         [sjt: This has been in 21.5 for months with no complaints.]
6767
6768         * console.h (struct console_methods): Added flags member.
6769         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6770         (CONMETH_IMPL_FLAG):
6771         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6772         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6773
6774         * device.c (window_system_pixelated_geometry): Use the above macros.
6775
6776         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6777         implememntation flag.
6778         * device.h (DEVICE_DISPLAY_P): Use it.
6779
6780         * frame.c (delete_frame_internal): Use the above macro.
6781
6782         * redisplay.c (redisplay_device): Use it.
6783         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6784         (redisplay_frame): Ditto.
6785
6786         * device-msw.c (mswindows_device_implementation_flags): Removed.
6787         (msprinter_device_implementation_flags): Removed.
6788         (console_type_create_device_mswindows): Removed references to
6789         implementation_flags methods, set implementation flags here.
6790         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6791
6792         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6793         (console_type_create_device_gtk): Removed method declaration.
6794         Added commented out statement which semantically matches the
6795         commented out statement in the above removed method.
6796
6797 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6798
6799         The attached patch fixes a few warnings. 
6800
6801         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6802         * src/frame-gtk.c: guard against GNOME calls in GTK only
6803         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6804         * src/select-gtk.c: prototype lisp_to_time
6805
6806 2001-06-08  Ben Wing  <ben@xemacs.org>
6807
6808         ------ gc-in-window-procedure fixes ------
6809         
6810         * alloc.c:
6811         * alloc.c (struct post_gc_action):
6812         * alloc.c (register_post_gc_action):
6813         * alloc.c (run_post_gc_actions):
6814         * alloc.c (garbage_collect_1):
6815         Create "post-gc actions", to avoid those dreaded "GC during window
6816         procedure" problems.
6817
6818         * event-msw.c:
6819         Abort, clean and simple, when GC in window procedure.  We want
6820         to flush these puppies out.
6821
6822         * glyphs-msw.c:
6823         * glyphs-msw.c (finalize_destroy_window):
6824         * glyphs-msw.c (mswindows_finalize_image_instance):
6825         Use a post-gc action when destroying subwindows.
6826
6827         * lisp.h:
6828         Declare register_post_gc_action().
6829
6830         * scrollbar-msw.c:
6831         * scrollbar-msw.c (unshow_that_mofo):
6832         Use a post-gc action when unshowing scrollbar windows, if in gc.
6833
6834         * redisplay.c (mark_redisplay):
6835         Add comment about the utter evilness of what's going down here.
6836
6837         ------ cygwin setitimer fixes ------
6838         
6839         * Makefile.in.in (sheap_objs):
6840         * Makefile.in.in (profile_objs):
6841         * Makefile.in.in (objs):
6842         Compile profile.c only when HAVE_SETITIMER.
6843         
6844         * nt.c (mswindows_sigset):
6845         * nt.c (mswindows_sighold):
6846         * nt.c (mswindows_sigrelse):
6847         * nt.c (mswindows_sigpause):
6848         * nt.c (mswindows_raise):
6849         * nt.c (close_file_data):
6850         Style fixes.
6851         
6852         * nt.c:
6853         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6854         
6855         * profile.c:
6856         * profile.c (Fstart_profiling):
6857         * profile.c (Fstop_profiling):
6858         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6859         instead of just plain setitimer().
6860         
6861         * signal.c:
6862         * signal.c (set_one_shot_timer):
6863         * signal.c (alarm):
6864         Define qxe_setitimer() as an encapsulation around setitimer() --
6865         call setitimer() directly unless Cygwin or MS Win, in which case
6866         we use our simulated version in win32.c.
6867         
6868         * systime.h:
6869         * systime.h (struct itimerval):
6870         * systime.h (ITIMER_REAL):
6871         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6872         comment about "qxe" and the policy regarding encapsulation.
6873
6874         * win32.c:
6875         * win32.c (setitimer_helper_proc):
6876         * win32.c (setitimer_helper_period):
6877         * win32.c (setitimer_helper):
6878         * win32.c (mswindows_setitimer):
6879         Move setitimer() emulation here, so Cygwin can use it.
6880         Rename a couple of functions and variables to be longer and more
6881         descriptive.  In setitimer_helper_proc(), send the signal
6882         using either mswindows_raise() or (on Cygwin) kill().  If for
6883         some reason we are still getting lockups, we'll change the kill()
6884         to directly invoke the signal handlers.
6885
6886         ------ windows shell fixes ------
6887         
6888         * callproc.c:
6889         * ntproc.c:
6890         Comments about how these two files must die.
6891
6892         * callproc.c (init_callproc):
6893         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6894         not just COMSPEC. (more correct and closer to FSF.) Don't
6895         force a value for SHELL into the environment. (Comments added
6896         to explain why not.)
6897         
6898         * nt.c (init_user_info):
6899         Don't shove a fabricated SHELL into the environment.  See above.
6900
6901 2001-06-01  Ben Wing  <ben@xemacs.org>
6902
6903         * Makefile.in.in (ldflags):
6904         eliminate that pesky "defaulting to 00401000" warning.
6905         * nt.h:
6906         eliminate warnings.
6907
6908 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6909
6910         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6911         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6912
6913 2001-04-24  Jerry James <james@xemacs.org>
6914
6915         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6916         correct order.
6917
6918 2001-06-01  Ben Wing  <ben@xemacs.org>
6919
6920         * event-msw.c (debug_mswin_messages):
6921         conditionalize the messages that were causing compile errors.
6922         (if only macros could generate #ifdef statements ...)
6923
6924 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6925
6926         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6927
6928 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6929
6930         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6931
6932 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6933
6934         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6935         * process-unix.c (unix_canonicalize_host_name):
6936         sysdep.c (init_system_name):
6937         Use it to conditionally support IPv6 canonicalization.
6938
6939 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6940
6941         * event-msw.c:
6942         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6943
6944 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6945
6946         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6947         attempt is made to scroll when no scroll bar is available.
6948
6949 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6950
6951         * input-method-motif.c (XIM_delete_frame): New callback.
6952         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6953         got deleted from 21.4.3.)
6954
6955 2001-06-01  Ben Wing  <ben@xemacs.org>
6956
6957         * nt.c (mswindows_utime):
6958         * nt.c (close_file_data):
6959         fix off-by-one-indirection error.
6960
6961 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6962
6963         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6964         because set_file_times() now takes Lisp_Object path, instead of
6965         char*.
6966         * nt.c: Include buffer.h.
6967         * nt.c (convert_from_time_t): New.
6968         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6969         not set mtime correctly.
6970         * nt.h: Declare mswindows_utime().
6971         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6972         path, instead of char*.
6973         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6974
6975 2001-05-30  Ben Wing  <ben@xemacs.org>
6976
6977         For 21.4:
6978
6979         (Stephen, just take all event-msw.c patches.  This includes
6980         the "iconify" fix below.)
6981
6982         * event-msw.c:
6983         * event-msw.c (mswindows_dequeue_dispatch_event):
6984         * event-msw.c (assert):
6985         * event-msw.c (emacs_mswindows_quit_p):
6986         * event-msw.c (debug_mswin_messages):
6987         * event-msw.c (debug_output_mswin_message):
6988         * event-msw.c (vars_of_event_mswindows):
6989         Fix yet more problems with C-g handling.
6990         Implement debug-mswindows-events.
6991         
6992 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6993
6994         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6995         
6996 2001-05-23  Ben Wing  <ben@xemacs.org>
6997
6998         * event-msw.c (winsock_writer):
6999         * event-msw.c (winsock_closer):
7000         prior kludgy code was clobbering the buffer, thinking it was
7001         "unused" space to store an unneeded return value; instead, use
7002         the variable we've already got staring us in the face.
7003
7004 2001-05-17  Andy Piper  <andy@xemacs.org>
7005
7006         * sysfile.h: don't assume that file attributes are boolean
7007
7008 2001-05-23  Ben Wing  <ben@xemacs.org>
7009
7010         * device-msw.c (msprinter_init_device):
7011         signal an error rather than crash with an unavailable network
7012         printer (from Mike Alexander).
7013         
7014         * event-msw.c:
7015         * event-msw.c (struct winsock_stream):
7016         * event-msw.c (winsock_writer):
7017         * event-msw.c (winsock_closer):
7018         * event-msw.c (make_winsock_stream_1):
7019         cleanup headers.  fix (hopefully) an error with data corruption
7020         when sending to a network connection.
7021
7022         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7023         to handle the ~user prefix by (a) always assuming we're referencing
7024         ourselves and not even verifying the user -- hence any file with
7025         a tilde as its first char is invalid! (b) if there wasn't a slash
7026         following the filename, the pointer was set *past* the end of
7027         file and we started reading from uninitialized memory.  Now we
7028         simply treat these as files, always.
7029
7030         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7031         
7032 2001-05-19  Ben Wing  <ben@xemacs.org>
7033
7034         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7035
7036         * process-nt.c:
7037         * process-nt.c (vars_of_process_nt):
7038         remove unused mswindows-quote-process-args.  rec for 21.4.
7039         
7040 2001-05-12  Ben Wing  <ben@xemacs.org>
7041
7042         * event-msw.c (mswindows_dde_callback):
7043         * event-msw.c (mswindows_wnd_proc):
7044         eliminate cygwin warnings.
7045
7046 2001-05-06  Ben Wing  <ben@xemacs.org>
7047
7048         * console-msw.h:
7049         * device-msw.c:
7050         * device-msw.c (print_dialog_worker):
7051         * device-msw.c (mswindows_handle_print_dialog_box):
7052         * device-msw.c (syms_of_device_mswindows):
7053         * dialog-msw.c (mswindows_make_dialog_box_internal):
7054         * general-slots.h:
7055         implement printing the selection when it's selected.
7056
7057 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7058
7059         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7060
7061 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7062
7063         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7064         EMACS_INT is signed.
7065
7066 2001-04-15  Michael Lausch  <mla@1012surf.net>
7067
7068         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7069         gtk_widget_request_size() to give scrollbar >0 width for
7070         GTK >1.2.8.
7071
7072 2001-05-30  William M. Perry  <wmperry@gnu.org>
7073
7074         * event-gtk.c: Check for buttons as modifier keys.
7075
7076 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7077
7078         * s\mingw32.h:
7079         Properly find MinGW's <process.h> inside Cygwin's restructured
7080         include directories.  Don't try to include <cygwin/version.h>
7081         since we are dropping support for MinGW in versions of Cygwin
7082         earlier than b21.
7083         * nt.c:
7084         Drop support for MinGW in versions of Cygwin before b21.
7085         * sysdep.c:
7086         Properly find MinGW's <process.h> inside Cygwin's restructured
7087         include directories.
7088         * syswindows.h:
7089         Drop support for MinGW in versions of Cygwin before b21.
7090         * unexcw.c:
7091         Even though a.out.h is no longer detected by configure, allow
7092         MinGW to use it until we figure out how to do the job with Win32.
7093
7094 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7095
7096         * syntax.c (find_start_of_comment):
7097         Fix `unbalanced parentheses' bug when dealing with mixed comment
7098         styles in c++/java/etc. mode
7099
7100 2001-05-29  Mike Alexander  <mta@arbortext.com>
7101
7102         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7103         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7104
7105 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7106
7107         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7108
7109 2001-03-31  Mike Sperber <mike@xemacs.org>
7110
7111         * search.c (Freplace_match): Support FSF-style specification of
7112         match subexpression when applied to a buffer.
7113
7114 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7115
7116         * event-stream.c (is_scrollbar_event): add missing semicolon
7117
7118 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7119
7120         * Makefile.in.in: Use TAR macro instead of hardcoding
7121           tar.  Allows use of GNU tar instead of system tar
7122
7123 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7124
7125         * event-stream.c (is_scrollbar_event): add missing semicolon
7126
7127 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7128
7129         * XEmacs 21.4.3 "Academic Rigor" is released.
7130
7131 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7132
7133         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7134
7135 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7136
7137         * buffer.c (Vcase_fold_search): Remove obsolete
7138           comment about non ASCII case-fold-search.  This
7139           bug has been fixed by case-table changes.
7140
7141 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7142
7143         * event-msw.c: Restore include of events-mod.h.
7144
7145 2001-04-22   zhaoway  <zw@debian.org>
7146
7147         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7148         !HAVE_SCROLLBARS.
7149
7150 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7151
7152         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7153
7154 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7155
7156         * mule-charset.c (Fmake_charset): Add missing else.
7157
7158 2001-04-23  Ben Wing  <ben@xemacs.org>
7159
7160         * event-msw.c (FAKE_MOD_QUIT):
7161         * event-msw.c (mswindows_dequeue_dispatch_event):
7162         * event-msw.c (mswindows_wnd_proc):
7163         * event-msw.c (emacs_mswindows_quit_p):
7164         Get critical quit working.
7165
7166 2001-05-05  Ben Wing  <ben@xemacs.org>
7167
7168         * console-msw.h:
7169         * device-msw.c:
7170         * device-msw.c (mswindows_get_default_margin):
7171         * frame-msw.c (mswindows_size_frame_internal):
7172         * frame-msw.c (msprinter_init_frame_1):
7173         * frame-msw.c (vars_of_frame_mswindows):
7174         Change top/bottom margin defaults to 0.5 inches.
7175
7176 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7177
7178         Fix link error with gcc 3.0 on Linux.
7179         * terminfo.c (UP): Remove.
7180         * terminfo.c (BC): Remove.
7181         * terminfo.c (PC): Remove.
7182         They weren't used, and in any case, these symbols should be
7183         defined in the *library*.
7184
7185 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7186
7187         * s/aix4.h: Fix crash with xlc -O3.
7188         Improve comment explaining how -O3 works.
7189
7190 2001-04-15  Ben Wing  <ben@xemacs.org>
7191
7192         * event-stream.c:
7193         * event-stream.c (Fnext_event):
7194         * event-stream.c (is_scrollbar_event):
7195         * event-stream.c (execute_command_event):
7196         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7197         crash' problem.  His fix introduces other problems.  We filter
7198         out scrollbar events specifically, making them somewhat invisible
7199         to command-building, and not appearing in `this-command-keys'.
7200         More work is still needed (see comments in event-stream.c), but
7201         this fixes all the major problems.
7202
7203 2001-04-20  Ben Wing  <ben@xemacs.org>
7204
7205         * .cvsignore: Added stuff for Windows.
7206
7207 2001-04-28  Ben Wing  <ben@xemacs.org>
7208
7209         * buffer.c (Ferase_buffer):
7210         * editfns.c (buffer_insert1):
7211         * editfns.c (Finsert_before_markers):
7212         * editfns.c (Finsert_string):
7213         * editfns.c (Finsert_char):
7214         * editfns.c (Fdelete_region):
7215         * editfns.c (Fwiden):
7216         * editfns.c (Fnarrow_to_region):
7217         remove bogus lines setting zmacs_region_stays to 0.
7218         
7219 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7220
7221         * process-unix.c (unix_open_network_stream): If connect() fails
7222         invalidate file descriptor after closing it.
7223
7224 2001-03-08  Mike Alexander  <mta@arbortext.com>
7225
7226         * event-msw.c (mswindows_need_event_in_modal_loop):
7227         Don't dispatch a message if we didn't get one.
7228         (mswindows_need_event):
7229         Terminate the correct process when one exits instead of the first
7230         one on Vprocess_list and look for process termination when in
7231         mswindows_protect_modal_loop.
7232
7233 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7234
7235         * XEmacs 21.4.1 "Copyleft" is released.
7236
7237 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7238
7239         * input-method-motif.c (XIM_delete_frame): New callback.
7240         (XIM_init_frame): Register it.
7241
7242 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7243
7244         * XEmacs 21.4.0 "Solid Vapor" is released.
7245
7246 2001-04-15  Ben Wing  <ben@xemacs.org>
7247
7248         * cmdloop.c (call_command_loop):
7249         Fix braino in bit-rotting code.
7250         
7251 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7252
7253         * extents.c (Fset_extent_endpoints): Force creation of extent info
7254         in buffer_or_string.
7255
7256         * extents.c (process_extents_for_insertion_mapper): Correctly
7257         check for open-open zero-length extents.
7258
7259 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7260
7261         * lisp.h: New typedefs Memory_count, Element_count.
7262         * regex.c:
7263         * regex.h:
7264         Sign-compare warning elimination: several unsigned -> signed.
7265         Based on work by Ben Wing <ben@xemacs.org>.
7266
7267 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7268
7269         * XEmacs 21.2.47 "Zephir" is released.
7270
7271 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7272
7273         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7274
7275 2001-04-03  Mike Sperber <mike@xemacs.org>
7276
7277         * search.c: Revert previous patch due because of release.
7278
7279 2001-03-30  Ben Wing  <ben@xemacs.org>
7280
7281         * s\cygwin32.h:
7282         Add missing killpg prototype.
7283
7284         * elhash.c:
7285         Add a comment about fixing problems when a new entry is added
7286         while mapping.
7287
7288         * frame-msw.c (mswindows_init_frame_1):
7289         Fix compile warnings.
7290
7291         * menubar.c (vars_of_menubar):
7292         Provide `menu-accelerator-support' to indicate that we properly
7293         support %_ in menu specifications, so that package code can
7294         conditionalize on this (and remove %_ from menu specifications
7295         on older versions).
7296
7297         * event-msw.c:
7298         * scrollbar-msw.c:
7299         * scrollbar-msw.c (can_scroll):
7300         * scrollbar-msw.h:
7301         Fix handling of mouse wheel under Windows to follow standards --
7302         now scrolls window under pointer, not selected window.
7303
7304 2001-03-31  Mike Sperber <mike@xemacs.org>
7305
7306         * search.c (Freplace_match): Support FSF-style specification of
7307         match subexpression when applied to a buffer.
7308
7309 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7310
7311         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7312         function to modify KEYMAP, so map over a copy of the hash table.
7313
7314 2001-03-21  Martin Buchholz <martin@xemacs.org>
7315
7316         * XEmacs 21.2.46 "Urania" is released.
7317
7318 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7319
7320         * realpath.c (xrealpath): Make file-truename work with symlinks to
7321         /cygdrive paths on cygwin. Always lowercase drive-letters on
7322         native windows.
7323         (cygwin_readlink): Don't try to find canonical filename unless
7324         file exists.
7325
7326 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7327
7328         * ChangeLog: Log GTK merge.
7329
7330         * dumper.c:
7331         * select-x.c:
7332         * specifier.c:
7333         * symeval.h:
7334         Revert gratuitous whitespace changes from GTK merge.
7335
7336         * emacs.c: Document end of complex #ifdef @ l. 1495.
7337
7338
7339 2001-03-12  Andy Piper  <andy@xemacs.org>
7340
7341         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7342         have to do likewise.
7343
7344 2001-03-12  Andy Piper  <andy@xemacs.org>
7345
7346         * sysdep.c: we only support mingw now.
7347
7348 2001-03-09  Andy Piper  <andy@xemacs.org>
7349
7350         * unexcw.c (copy_executable_and_dump_data_section): making approx
7351         overrun a warning only.
7352
7353 2001-03-10  William M. Perry  <wmperry@aventail.com>
7354
7355         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7356         satisfy Stephen's identical-after-cpp plea.
7357
7358 2001-03-02  Ben Wing  <ben@xemacs.org>
7359
7360         * cmds.c:
7361         * cmds.c (Fforward_char):
7362         * syntax.c:
7363         * window.c:
7364
7365         Augment documentation of the most common motion commands to make
7366         note of the shifted-motion support.
7367         
7368 2001-03-02  Ben Wing  <ben@xemacs.org>
7369
7370         * nt.c (mswindows_fstat):
7371         * nt.c (mswindows_stat):
7372         * search.c (boyer_moore):
7373         Fix compile warnings under Windows.
7374         
7375         * sysdep.c (sys_readdir):
7376         Fix buggy filename-conversion code under Mule.
7377
7378 2001-03-09  William M. Perry  <wmperry@aventail.com>
7379
7380         * Makefile.in.in:
7381         * config.h.in:
7382         * console.c:
7383         * console.h:
7384         * device.c:
7385         * device.h:
7386         * dragdrop.c:
7387         * emacs.c:
7388         * event-stream.c:
7389         * events.c:
7390         * events.h:
7391         * faces.c:
7392         * frame.h:
7393         * general-slots.h:
7394         * glyphs.c:
7395         * gutter.c:
7396         * inline.c:
7397         * lisp.h:
7398         * lrecord.h:
7399         * make-src-depend:
7400         * redisplay-output.c:
7401         * redisplay.c:
7402         * symsinit.h:
7403         * sysfile.h:
7404         * toolbar.c:
7405         * window.c:
7406         The Great GTK Merge.
7407
7408         * ChangeLog.GTK:
7409         * console-gtk.c:
7410         * console-gtk.h:
7411         * device-gtk.c:
7412         * emacs-marshals.c:
7413         * emacs-widget-accessors.c:
7414         * event-gtk.c:
7415         * frame-gtk.c:
7416         * gccache-gtk.c:
7417         * gccache-gtk.h:
7418         * glade.c:
7419         * glyphs-gtk.c:
7420         * glyphs-gtk.h:
7421         * gtk-glue.c:
7422         * gtk-xemacs.c:
7423         * gtk-xemacs.h:
7424         * gui-gtk.c:
7425         * gui-gtk.h:
7426         * menubar-gtk.c:
7427         * native-gtk-toolbar.c:
7428         * objects-gtk.c:
7429         * objects-gtk.h:
7430         * redisplay-gtk.c:
7431         * scrollbar-gtk.c:
7432         * scrollbar-gtk.h:
7433         * select-gtk.c:
7434         * toolbar-gtk.c:
7435         * ui-byhand.c:
7436         * ui-gtk.c:
7437         * ui-gtk.h:
7438         The Great GTK Merge: new files.
7439
7440 2001-02-26  Ben Wing  <ben@xemacs.org>
7441
7442         Reapplied Lstream change.
7443
7444 2001-02-26  Ben Wing  <ben@xemacs.org>
7445
7446         Undid the last change, since it is more controversial than I
7447         thought.  It should be back in at some point soon.
7448         
7449 2001-02-25  Ben Wing  <ben@xemacs.org>
7450
7451         * buffer.c:
7452         * callproc.c (Fold_call_process_internal):
7453         * event-msw.c (ntpipe_slurp_reader):
7454         * event-msw.c (ntpipe_shove_writer):
7455         * event-msw.c (winsock_reader):
7456         * event-msw.c (winsock_writer):
7457         * file-coding.c:
7458         * file-coding.c (detect_eol_type):
7459         * file-coding.c (detect_coding_type):
7460         * file-coding.c (determine_real_coding_system):
7461         * file-coding.c (Fdetect_coding_region):
7462         * file-coding.c (decoding_reader):
7463         * file-coding.c (decoding_writer):
7464         * file-coding.c (mule_decode):
7465         * file-coding.c (Fdecode_coding_region):
7466         * file-coding.c (encoding_reader):
7467         * file-coding.c (encoding_writer):
7468         * file-coding.c (mule_encode):
7469         * file-coding.c (Fencode_coding_region):
7470         * file-coding.c (detect_coding_sjis):
7471         * file-coding.c (decode_coding_sjis):
7472         * file-coding.c (encode_coding_sjis):
7473         * file-coding.c (detect_coding_big5):
7474         * file-coding.c (decode_coding_big5):
7475         * file-coding.c (encode_coding_big5):
7476         * file-coding.c (detect_coding_ucs4):
7477         * file-coding.c (decode_coding_ucs4):
7478         * file-coding.c (encode_coding_ucs4):
7479         * file-coding.c (detect_coding_utf8):
7480         * file-coding.c (decode_coding_utf8):
7481         * file-coding.c (encode_coding_utf8):
7482         * file-coding.c (detect_coding_iso2022):
7483         * file-coding.c (decode_coding_iso2022):
7484         * file-coding.c (encode_coding_iso2022):
7485         * file-coding.c (decode_coding_no_conversion):
7486         * file-coding.c (encode_coding_no_conversion):
7487         * glyphs-x.c (write_lisp_string_to_temp_file):
7488         * gpmevent.c (tty_get_foreign_selection):
7489         * lisp.h:
7490         * lstream.c:
7491         * lstream.c (Lstream_flush_out):
7492         * lstream.c (Lstream_adding):
7493         * lstream.c (Lstream_write_1):
7494         * lstream.c (Lstream_write):
7495         * lstream.c (Lstream_raw_read):
7496         * lstream.c (Lstream_read_more):
7497         * lstream.c (Lstream_read):
7498         * lstream.c (Lstream_unread):
7499         * lstream.c (Lstream_fputc):
7500         * lstream.c (stdio_reader):
7501         * lstream.c (stdio_writer):
7502         * lstream.c (filedesc_reader):
7503         * lstream.c (filedesc_writer):
7504         * lstream.c (lisp_string_reader):
7505         * lstream.c (struct fixed_buffer_stream):
7506         * lstream.c (make_fixed_buffer_input_stream):
7507         * lstream.c (make_fixed_buffer_output_stream):
7508         * lstream.c (fixed_buffer_reader):
7509         * lstream.c (fixed_buffer_writer):
7510         * lstream.c (struct resizing_buffer_stream):
7511         * lstream.c (resizing_buffer_writer):
7512         * lstream.c (dynarr_writer):
7513         * lstream.c (lisp_buffer_reader):
7514         * lstream.c (lisp_buffer_writer):
7515         * lstream.h:
7516         * lstream.h (lstream_implementation):
7517         * lstream.h (struct lstream):
7518         * md5.c (Fmd5):
7519         * process-nt.c (nt_send_process):
7520         * process-unix.c (unix_send_process):
7521         
7522         Correct Lstream lossage due to mixing of signed and unsigned
7523         quantities.  All Lstream uses of size_t and ssize_t are now a
7524         single signed data type Lstream_data_count.  This fixes problems
7525         under Windows with sending large quantities of data to a process,
7526         and may well fix other subtle bugs.
7527
7528 2001-02-23  Martin Buchholz <martin@xemacs.org>
7529
7530         * XEmacs 21.2.45 "Thelxepeia" is released.
7531
7532 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7533
7534         * lisp-union.h (XSETINT): 
7535         (XSETCHAR):
7536         (XSETOBJ): 
7537         Reverse previous change of 2001-02-06.
7538
7539 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7540
7541         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7542         buffers.
7543         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7544         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7545         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7546         * regex.c (POS_AS_IN_BUFFER): removed
7547         * regex.c (re_search_2):
7548         * regex.c (re_match_2):
7549         Don't use an offset of 1 when calculating buffer positions, since
7550         `BI_BUF_BEGV' does it already.
7551
7552 2001-02-18  Wim Dumon  <wim@easics.be>
7553
7554         * insdel.c (prepare_to_modify_buffer): Also check for
7555         supersession when clash-detection is enabled. 
7556
7557 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7558
7559         * regex.c (re_match_2_internal):
7560         Convert temp characters from 'const unsigned char' to 're_char'.
7561         Fix crashing bug with extended characters under mule.
7562         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7563         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7564         font-lock, pdump, and new syntax-table code.
7565         * syntax.c (find_start_of_comment):
7566         (find_end_of_comment):
7567         (forward-comment):
7568         Fix crashing bugs involving moving beyond end of buffer.
7569         * syntax.c (find_start_of_comment):
7570         Fixed logic to allow proper detection of cases where the same
7571         character is used to end both a two-char comment start and a
7572         two-char comment end sequence. Fixes `(forward-comment -1)'.
7573         * syntax.c (find_start_of_comment):
7574         Return position just past last comment-end character for all cases
7575         (previously was only done for two-char comment-end sequences).
7576         * syntax.c (forward-comment):
7577         Take value returned from `find_end_of_comment', rather than
7578         incrementing it.
7579         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7580         Properly deal with BUFFERP (syntax_cache.object)
7581
7582 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7583
7584         * alloc.c (Fgarbage_collect): 
7585         * alloc.c (make_bit_vector_from_byte_vector):
7586         -Wsign-compare-correctness.
7587
7588 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7589
7590         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7591         (XSETCHAR): Likewise.
7592         (XSETOBJ): Likewise.
7593
7594 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7595
7596         * mule-canna.c (canna-func-delete_previous): 
7597         Rename to canna-func-delete-previous.
7598
7599 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7600
7601         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7602
7603 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7604
7605         * font-lock.c (find_context): Fix C++ compile errors introduced by
7606         recent patch
7607
7608 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7609
7610         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7611         pragma, but earlier ones barf on the same pragma.
7612
7613 2001-02-06  Mike Sperber <mike@xemacs.org>
7614
7615         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7616         `configure-mule-lisp-directory'.
7617
7618 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7619
7620         Make sure dump-id.c is compiled in the same way as other .c's.
7621         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7622         * dump-id.h: Remove.
7623         * emacs.c: Move dump-id.h into dumper.h.
7624         * dumper.h: Move dump-id.h into dumper.h.
7625         * Makefile.in.in:
7626         Use standard .c.o rule for building dump-id.o.
7627         Remove preprocessor flags from link command.
7628         Add dump-id.o to ${otherobjs} if PDUMP.
7629
7630 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7631
7632         Port FSF 20.7 syntax table improvements.
7633         * syntax.c.
7634         * syntax.h.
7635
7636         Fixups for new syntax table stuff.
7637         * dired.c: Include syntax.c.
7638         (Fdirectory_files): Initialize regex_match_object and
7639         regex_emacs_buffer.
7640         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7641         and Fget_char_property.
7642
7643         Use ported FSF 20.7 syntax table improvements.
7644         * font-lock.c.
7645         * regex.c.
7646         * search.c.
7647         
7648 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7649
7650         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7651         Unixware's enum boolean from sys/types.h.
7652
7653 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7654
7655         Fix support for building with latest Purify.
7656         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7657         (PURIFY_FLAGS): Likewise.
7658
7659 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7660
7661         * fileio.c (lisp_string_set_file_times): New.
7662         * fileio.c (Fcopy_file): Use it.
7663         Fixes bug:
7664         (copy-file filename non-ascii-filename t t)
7665         ==> No such file or directory, non-ascii-filename
7666
7667 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7668
7669         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7670         USHRT_MAX seems clearer than ~0 anyways.
7671
7672 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7673
7674         dumper improvements.  Inspired by Olivier.
7675         * dumper.c (pdump_max_align): New.
7676         * dumper.c (pdump_add_entry): Use pdump_max_align.
7677         * dumper.c (pdump_get_entry_list): Likewise.
7678         * dumper.c (pdump_scan_by_alignment): Likewise.
7679         Don't iterate through unnecessary alignments.
7680         * dumper.c (pdump_file_get): No need to align result of malloc().
7681         * dumper.c (pdump_mallocadr): Remove.  
7682         The result of malloc() is guaranteed to be maximally aligned.
7683         * dumper.c: s/elmt/elt/g;
7684         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7685         * dumper.c (pdump_alert_undump_object): Likewise.
7686         * dumper.c (pdump_align_table): 
7687         Don't support alignments > 64.
7688         Store ALIGNOF's, not shift counts, in table.
7689
7690 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7691
7692         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7693         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7694         * systime.h: Use HAVE_UTIME.
7695         * sysdep.c (struct utimbuf): Remove.
7696         * sysdep.c (set_file_times): Prefer utime() to utimes().
7697         * config.h.in (HAVE_UTIME): New.
7698         * config.h.in (HAVE_UTIME_H): Remove.
7699         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7700
7701 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7702
7703         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7704
7705 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7706
7707         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7708
7709 2001-02-08  Martin Buchholz <martin@xemacs.org>
7710
7711         * XEmacs 21.2.44 "Thalia" is released.
7712
7713 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7714
7715         Fixes crashes in kill-emacs on some systems.
7716         * process-unix.c (unix_kill_child_process):
7717         It's OK for kill() to fail with ESRCH.
7718
7719 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7720
7721         Contortions to make .gdbinit tricks work on most systems.
7722         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7723         * alloc.c (dbg_valmask): Make non-const.
7724         * alloc.c (dbg_typemask): Make non-const.
7725         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7726         * alloc.c (dbg_valbits): Make non-const.
7727         * alloc.c (dbg_gctypebits): Make non-const.
7728         * .gdbinit (decode_object): Make it work with AIX cc.
7729
7730 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7731
7732         * elhash.c (make_general_lisp_hash_table):
7733         Use simpler and more efficient calloc to clear entries.
7734
7735 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7736
7737         * window.c (window_scroll): Work around an AIX C compiler bug.
7738         Fixes 'scroll-up' does nothing problem with xlC.
7739
7740 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7741
7742         * .gdbinit: Remove obsolete comment.
7743
7744 2001-01-31  Mike Alexander  <mta@arbortext.com>
7745
7746         * select.c (Fown_selection_internal): Set owned_p for device
7747         method correctly.
7748
7749 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7750
7751         Port to g++ 2.97.
7752         "not" cannot be used as a macro name as it is an operator in C++
7753         * config.h.in: Stop #defining `not'.
7754         * chartab.c (check_category_char): not ==> not_p
7755         * chartab.h: Likewise.
7756         * regex.c (re_match_2_internal): Likewise.
7757
7758 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7759
7760         * lisp-disunion.h: Fix up comments.
7761
7762 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7763
7764         * keymap.c (define_key_check_and_coerce_keysym):
7765         (syms_of_keymap):
7766         Support mouse-6 and mouse-7 bindings in the obvious way.
7767
7768 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7769
7770         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7771
7772 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7773
7774         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7775         Previous patch missed DEFVAR_INT_MAGIC.
7776         Make sure future DEFVAR_foo use correct types.
7777         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7778         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7779         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7780         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7781         * (DEFVAR_INT): Likewise.
7782         * redisplay.c (vertical_clip): Should be of type Fixnum.
7783         * redisplay.c (horizontal_clip): Likewise.
7784         * lisp.h (dump_add_opaque_int): New.
7785         (dump_add_opaque_fixnum): New.
7786
7787 2001-01-29  Andy Piper  <andy@xemacs.org>
7788
7789         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7790         since they can be eval'ed
7791
7792 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7793
7794         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7795         Oops, XEmacs redefines `class'.  Use `typename' instead.
7796
7797 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7798
7799         * dumper.c: Fix C++ compile errors.
7800
7801 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7802
7803         * tparam.c: Use correct prototypes.
7804
7805 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7806
7807         * sysproc.h: #include util.h for NetBSD's openpty.
7808
7809 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7810
7811         More 64-bit correctness.
7812         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7813         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7814         Fix up comments.
7815         This finally finishes the 64-bit SGI port.
7816         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7817         * symbols.c: Fix up comments and type casts.
7818         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7819         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7820         * symeval.h (Fixnum): New type.
7821         * symeval.h (symbol_value_type): Fix up comment.
7822
7823         * commands.h:
7824         * nt.c:
7825         * emacs.c:
7826         * data.c:
7827         * redisplay.c:
7828         * abbrev.c:
7829         * dired-msw.c:
7830         * event-Xt.c:
7831         * eldap.c:
7832         * window.c:
7833         * sound.c:
7834         * event-stream.c:
7835         * eval.c:
7836         * buffer.c:
7837         * mule-canna.c: A million DEFVAR_INTs here...
7838         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7839         * extents.c:
7840         * cmdloop.c:
7841         * lisp.h:
7842         * select-x.c:
7843         * console-x.h:
7844         * event-msw.c:
7845         * mule-wnnfns.c:
7846         * hpplay.c:
7847         * ralloc.c:
7848         * alloc.c:
7849         * keymap.c:
7850         * profile.c:
7851         s/int/Fixnum/g in DEFVAR_INT declarations.
7852
7853 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7854
7855         Port pdump to SGI alignment-sensitive environment.
7856         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7857         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7858         properly aligned.
7859         Define and use aligned reading and writing macros.
7860         Use buffered stdio instead of posix i/o for faster dumping.
7861         Eliminate kludgy 256 byte space for header.
7862         Read and write from dump file using structs for alignment safety.
7863         * dumper.c (pdump_align_stream): New.
7864         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7865         * dumper.c (PDUMP_READ_ALIGNED): New.
7866         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7867         * dumper.c (pdump_static_Lisp_Object): New struct.
7868         * dumper.c (pdump_static_pointer): New struct.
7869         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7870         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7871         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7872         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7873
7874         * dumper.c (pdump_backtrace):
7875         * dumper.c (pdump_get_indirect_count):
7876         * dumper.c (pdump_register_object):
7877         * dumper.c (pdump_register_struct):
7878         * dumper.c (pdump_reloc_one):
7879         * dumper.c (pdump_scan_by_alignment):
7880         * dumper.c (pdump_dump_from_root_struct_ptrs):
7881         * dumper.c (pdump_dump_opaques):
7882         * dumper.c (pdump_dump_rtables):
7883         * dumper.c (pdump_dump_from_root_objects):
7884         * dumper.c (pdump):
7885         * dumper.c (pdump_load_finish):
7886         Use aligned reading and writing.
7887
7888         * dumper.c (pdump_free): Make static.
7889         * dumper.c (pdump_hFile): Likewise.
7890         * dumper.c (pdump_hMap): Likewise.
7891
7892 2001-01-26  Martin Buchholz <martin@xemacs.org>
7893
7894         * XEmacs 21.2.43 "Terspichore" is released.
7895
7896 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7897
7898         Type fiddling for window_config.saved_windows_count
7899         * window.c (struct window_config): 
7900         Make saved_windows_count member unsigned.
7901         * window.c (sizeof_window_config_for_n_windows): 
7902         Make parameter unsigned.
7903         * window.c (mark_window_config):
7904         * window.c (window_config_equal):
7905         * window.c (free_window_configuration):
7906         * window.c (Fset_window_configuration):
7907         * window.c (count_windows):
7908         * window.c (Fcurrent_window_configuration):
7909         * window.c (reinit_vars_of_window):
7910         Update all callers and users.
7911
7912 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7913
7914         Alignment correctness for flexible arrays.
7915         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7916         Make alignment-correct. Add interesting comments.
7917         * alloc.c (size_vector):
7918         * alloc.c (make_vector_internal):
7919         * alloc.c (make_bit_vector_internal):
7920         * alloc.c (sweep_bit_vectors_1):
7921         * fns.c (size_bit_vector):
7922         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7923         * window.c (sizeof_window_config_for_n_windows): 
7924         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7925
7926 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7927
7928         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7929
7930 2001-01-23  Andy Piper  <andy@xemacs.org>
7931
7932         * select.c (Fown_selection_internal): pass owned_p
7933
7934         * select-msw.c (mswindows_own_selection): New Signature.
7935
7936         * console.h (struct console_methods): add owned_p to
7937         _own_selection.
7938
7939         * select-x.c (x_own_selection): pass owned_p
7940         (hack_motif_clipboard_selection): use owned_p
7941         (vars_of_select_x): new variable -
7942         x_selection_strict_motif_ownership.
7943
7944 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7945
7946         * specifier.h (specifier_data_offset): Remove pointless parens.
7947         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7948
7949 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7950
7951         Make Lisp_Object sizeof methods be alignment-correct.
7952         pdump must restore objects to the same alignment as the C compiler
7953         assumes.  It really matters on SGIs.
7954         * lstream.c (aligned_sizeof_lstream): New.
7955         (sizeof_lstream): Use aligned_sizeof_lstream.
7956         (Lstream_new): Likewise.
7957         * opaque.c (aligned_sizeof_opaque): New.
7958         (sizeof_opaque): Use aligned_sizeof_opaque.
7959         (make_opaque): Likewise.
7960         * specifier.c (aligned_sizeof_specifier): New.
7961         (sizeof_specifier): Use aligned_sizeof_specifier.
7962         (make_specifier_internal): Likewise.
7963
7964 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7965
7966         * lstream.h (struct lstream): Use max_align_t for trailing data.
7967         * specifier.h (struct Lisp_Specifier): Likewise.
7968
7969 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7970
7971         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7972         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7973         (CCL_SUSPEND): Likewise.
7974         (CCL_INVALID_CMD): Likewise.
7975         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7976         (ccl_driver): Likewise.
7977         (CCL_WRITE_CHAR): Macro hygiene.
7978         (CCL_WRITE_STRING): Macro hygiene.
7979
7980 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7981
7982         Port "portable" dumper to SunOS 4 and HP-UX.
7983         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7984         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7985         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7986
7987 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7988
7989         * lisp.h (ALIGNOF): A better definition for C++.
7990
7991 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7992
7993         Macro hygiene.
7994         Fix printf warnings: int format, long int arg.
7995         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7996         (PUSH_FAILURE_POINT): Use correct printf formats.
7997         (POP_FAILURE_POINT): Use correct printf formats.  
7998         Use do {...} while (0)
7999
8000 2001-01-20  Martin Buchholz <martin@xemacs.org>
8001
8002         * XEmacs 21.2.42 "Poseidon" is released.
8003
8004 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8005
8006         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8007
8008 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8009
8010         De-kludgify FIXED_TYPE free list frobbing.
8011         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8012         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8013         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8014         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8015         * alloc.c (LRECORD_FREE_P): New.
8016         * alloc.c (MARK_LRECORD_AS_FREE): New.
8017         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8018         * alloc.c (STRUCT_FREE_P): Deleted.
8019         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8020         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8021         * alloc.c (STRING_CHARS_FREE_P): New.
8022         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8023         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8024         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8025         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8026         * alloc.c (resize_string): Use new definitions.
8027         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8028         * alloc.c (verify_string_chars_integrity): Use new definitions.
8029         * alloc.c (compact_string_chars): Use new definitions.
8030         * alloc.c: Update monster comments.
8031         * lrecord.h (lrecord_type): Add some new lrecord types for
8032         alloc.c's use.
8033
8034 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8035
8036         Improve alignment hackery.
8037         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8038         (max_align_t): Moved from opaque.h - general purpose.
8039         (ALIGN_PTR): Use size_t, not long.
8040         * opaque.h (max_align_t): Move to lisp.h.
8041
8042 2001-01-18  Norbert Koch  <nk@LF.net>
8043
8044         * gui.h: Fix and add prototypes to fix build problems.
8045
8046 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8047
8048         temacs is going away, so `dump-temacs' is now a bad name.
8049         * .dbxrc (dump-temacs): Rename to `dmp'.
8050         * .gdbinit (dump-temacs): Rename to `dmp'.
8051
8052 2001-01-17  Andy Piper  <andy@xemacs.org>
8053
8054         * glyphs.c (print_image_instance): comment to make martin happy.
8055
8056         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8057         change.
8058
8059         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8060         activation.
8061         (mswindows_tab_control_redisplay): warning suppression.
8062
8063         * glyphs-widget.c (widget_update): re-write to cope with updated
8064         items.
8065         (widget_instantiate): use new gui_item functions.
8066         (tab_control_update): deleted.
8067         (progress_gauge_update): deleted.
8068         (image_instantiator_progress_guage): take out update reference.
8069         (image_instantiator_tree_view): ditto.
8070         (image_instantiator_tab_control): ditto.
8071
8072         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8073         Right the new way.
8074         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8075         return whether anything was changed.
8076         (update_gui_item_keywords): as it sounds.
8077
8078         * gui.h: declare widget_gui_parse_item_keywords.
8079
8080         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8081         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8082
8083 2001-01-17  Martin Buchholz <martin@xemacs.org>
8084
8085         * XEmacs 21.2.41 "Polyhymnia" is released.
8086
8087 2001-01-16  Didier Verna  <didier@xemacs.org>
8088
8089         * glyphs.c (image_instantiate): don't use fallbacks when
8090         instantiating a face's background pixmap by inheritance.
8091
8092 2001-01-14  Mike Sperber <mike@xemacs.org>
8093
8094         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8095         Conditionalize accordingly.
8096
8097 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8098
8099         * dumper.c (pdump_file_get): Fix a compiler warning.
8100
8101 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8102
8103         Make Purify happy when pdumping.
8104         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8105         iniitalizing all bits of new lisp object memory.
8106         * symbols.c (Fmake_local_variable): Likewise.
8107         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8108         * symbols.c (Fdefvaralias): Likewise.
8109         * mule-charset.c (vars_of_mule_charset): Likewise.
8110
8111 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8112         Add the `-nd' flag when running pre-dump operations under the debugger.
8113         * .dbxrc (run-temacs): Add `-nd'.
8114         * .dbxrc (update-elc): Likewise.
8115         * .dbxrc (dump-temacs): Likewise.
8116         * .gdbinit (run-temacs): Likewise.
8117         * .gdbinit (check-temacs): Likewise.
8118         * .gdbinit (update-elc): Likewise.
8119         * .gdbinit (dump-temacs): Likewise.
8120
8121 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8122
8123         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8124         export OBJECT_MODE=64
8125         configure --pdump --use-union-type=no
8126         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8127         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8128
8129         * miscplay.c (sndcnv8U_2mono):
8130         Avoid two uses of `++' in the same expression.
8131         Suppresses a GCC warning.
8132
8133 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8134
8135         Make sure future compilers don't miscompile alloc.c.
8136         * alloc.c:
8137         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8138         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8139
8140 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8141
8142         * dumper.c: A little post-pdump-rename comment fixup.
8143
8144 2001-01-09  Jerry James  <james@eecs.ku.edu>
8145
8146         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8147
8148 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8149
8150         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8151         script:
8152         #!/bin/sh
8153         replace_symbol () {
8154           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8155         }
8156
8157         replace_symbol pdump_wire_lists pdump_weak_object_chains
8158         replace_symbol pdump_wire_list dump_add_weak_object_chain
8159
8160         replace_symbol pdump_wires pdump_root_objects
8161         replace_symbol pdump_wire dump_add_root_object
8162
8163         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8164         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8165
8166         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8167         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8168         replace_symbol dumpstructinfo pdump_root_struct_ptr
8169         replace_symbol dumpstruct dump_add_root_struct_ptr
8170
8171         replace_symbol dumpopaque dump_add_opaque
8172         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8173         replace_symbol dumpopaqueinfos pdump_opaques
8174         replace_symbol dumpopaqueinfo pdump_opaque
8175
8176         replace_symbol nb_structdump nb_root_struct_ptrs
8177         replace_symbol nb_opaquedump nb_opaques
8178
8179         replace_symbol align_table pdump_align_table
8180         replace_symbol dump_header pdump_header
8181
8182         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8183         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8184
8185
8186 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8187
8188         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8189         optimizing bytecount_to_charcount().
8190
8191 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8192
8193         * config.h.in:
8194         (HAVE_DLFCN_H): Removed.
8195         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8196
8197 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8198
8199         Portable dumper maintainability improvements.
8200         * alloc.c (staticpro):
8201         * alloc.c (staticpro_nodump):
8202         * alloc.c (garbage_collect_1):
8203         * alloc.c (reinit_alloc_once_early):
8204         * alloc.c (init_alloc_once_early):
8205         * alloc.c: Move dumper functions to alloc.c.
8206         * dumper.c (pdump_backtrace):
8207         * dumper.c (pdump_dump_structs):
8208         * dumper.c (pdump_dump_opaques):
8209         * dumper.c (pdump_dump_rtables):
8210         * dumper.c (pdump_dump_wired):
8211         * dumper.c (pdump):
8212         * dumper.c (pdump_load_check):
8213         * dumper.c (pdump_load_finish):
8214         * dumper.c (pdump_file_unmap):
8215         * dumper.c (pdump_file_get):
8216         * dumper.c (pdump_resource_free):
8217         * dumper.c (pdump_resource_get):
8218         * dumper.c (pdump_file_free):
8219         * dumper.c (pdump_file_try):
8220         * dumper.c (pdump_load):
8221         Remove fixed size limits on staticpro(), staticpro_nodump(),
8222         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8223         Remove custom code for dumping lrecord_implementations_table - use
8224         dumpopaque instead.
8225         Remove (most of the) custom code for dumping staticpros - dump it
8226         like any other dynarr.
8227
8228         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8229         * dumper.c: Moved functions from alloc.c.
8230         * alloc.c (dumpstruct): Moved to dumper.c.
8231         * alloc.c (dumpopaque): Likewise.
8232         * alloc.c (pdump_wire): Likewise.
8233         * alloc.c (pdump_wire_list): Likewise.
8234
8235         * lisp.h (Dynarr_sizeof): New.
8236         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8237         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8238         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8239
8240         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8241         * lisp.h (dumpopaque): ditto.
8242         * lisp.h (pdump_wire): ditto.
8243         * lisp.h (pdump_wire_list): ditto.
8244
8245 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8246
8247         * make-src-depend (PrintPatternDeps):
8248         Use `sort' to make output independent of perl version.
8249
8250 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8251
8252         Port to Netbsd 1.5.
8253         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8254         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8255
8256 2001-01-03  Didier Verna  <didier@xemacs.org>
8257
8258         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8259         that `focus_frame' is alive before thinking of calling
8260         `redisplay_redraw_cursor' on it.
8261
8262 2001-01-08  Martin Buchholz <martin@xemacs.org>
8263
8264         * XEmacs 21.2.40 is released.
8265
8266 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8267
8268         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8269
8270 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8271
8272         * alloc.c (dbg_valmask): Make const.
8273         * alloc.c (dbg_typemask): Make const.
8274         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8275         * alloc.c (dbg_valbits): Make const.
8276         * alloc.c (dbg_gctypebits): Make const.
8277
8278 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8279
8280         * redisplay-x.c (x_bevel_area):
8281         redisplay.h (struct rune):
8282         Typo fixes in comments.
8283
8284 2001-01-05  Andy Piper  <andy@xemacs.org>
8285
8286         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8287         adjustment.
8288
8289         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8290
8291 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8292
8293         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8294
8295         * mule-ccl.c (stack_idx_of_map_multiple):
8296         Non const global data must not be initialized!
8297         Found by MIYASHITA Hisashi.
8298
8299 2001-01-02  Andy Piper  <andy@xemacs.org>
8300
8301         * frame.c (change_frame_size): make sure frame size is always
8302         marked as changed.
8303
8304         * glyphs.c (image_instance_layout): minor code reuse.
8305
8306         * window.c (Fcurrent_window_configuration): revert previous
8307         change.
8308
8309 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8310
8311         * glyphs.h:
8312         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8313
8314 2000-12-31  Andy Piper  <andy@xemacs.org>
8315
8316         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8317         when widget gets unmapped.
8318
8319         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8320         function. Make sure widgets losing focus don't just drop it.
8321         (handle_focus_event_1): record the widget with focus.
8322
8323 2000-12-31  Andy Piper  <andy@xemacs.org>
8324
8325         * window.c (allocate_window): use
8326         make_image_instance_cache_hash_table.
8327         (make_dummy_parent): ditto.
8328         (Fset_window_configuration): ditto.
8329
8330         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8331
8332         * glyphs.c (process_image_string_instantiator): use
8333         INSTANTIATOR_TYPE.
8334         (get_image_instantiator_governing_domain): ditto.
8335         (normalize_image_instantiator): ditto.
8336         (instantiate_image_instantiator): ditto.
8337         (make_image_instance_1): ditto.
8338         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8339         (instantiator_eq_equal): new function for use with instance hash
8340         tables.
8341         (instantiator_eq_hash): ditto.
8342         (make_image_instance_cache_hash_table): create a suitable hash
8343         table for storing image instances.
8344
8345         * elhash.h (hash_table_weakness): new internal weakness type
8346         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8347         declare new functions.
8348
8349         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8350         another weakness type for glyphs.
8351         (make_standard_lisp_hash_table): new function split out from
8352         make_general_lisp_hash_table.
8353         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8354         (hash_table_instantiate): ditto.
8355         (Fmake_hash_table): ditto.
8356
8357 2000-12-31  Martin Buchholz <martin@xemacs.org>
8358
8359         * XEmacs 21.2.39 is released.
8360
8361 2000-12-29  Andy Piper  <andy@xemacs.org>
8362
8363         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8364
8365         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8366         the frame has changed so that we pick up geometry changes such as
8367         menubar visibility.
8368
8369 2000-12-28  Andy Piper  <andy@xemacs.org>
8370
8371         * lastfile.c (my_ebss): make a char array so we can pad the
8372         bss. Fixes cygwin unexec.
8373
8374         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8375
8376 2000-12-26  Andy Piper  <andy@xemacs.org>
8377
8378         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8379         comments and try and be more precise about a non-/SIGIO world.
8380         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8381         SIGIO.
8382
8383         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8384         we don't normalize to zero width or height.
8385
8386 2000-12-24  Andy Piper  <andy@xemacs.org>
8387
8388         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8389
8390 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8391
8392         * s/sco5.h: SCO 5 has pty support.
8393
8394 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8395
8396         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8397         input-method-xlib.c contains whole contents of input-method-xfs.c,
8398         so we can use input-method-xlib.c's code for USE_XFONTSET
8399         using #ifdefs.
8400         * input-method-xfs.c: removed.
8401
8402 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8403
8404         * file-coding.h (enum coding_category_type): reorder enumerators to
8405         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8406         (now one greater than largest real coding_category_type enumerator).
8407         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8408         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8409         Fcoding_category_list, Fset_coding_priority_list,
8410         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8411         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8412
8413 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8414
8415         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8416         * redisplay-output.c (redisplay_output_window): Clear top of window
8417         when face is changed.
8418         * redisplay-x.c (x_redraw_exposed_window): Call
8419         redisplay_clear_top_of_window.
8420         * redisplay.h: Publish redisplay_clear_top_of_window.
8421
8422 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8423
8424         * buffer.c (Fkill_buffer): Map over all devices.
8425         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8426         (list_windows): New function.
8427         (list_all_windows): Ditto.
8428         (Freplace_buffer_in_windows): Use them.
8429
8430 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8431
8432         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8433         (Fopen_database): Use `db_create' instead of `db_open'.
8434         (syms_of_database): Initialize Qqueue.
8435
8436 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8437
8438         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8439         buffer_local_face_property.
8440         * buffer.h (struct buffer): New member buffer_local_face_property.
8441         * window.c (Fset_window_buffer):  Mark window's face as changed
8442         when buffer has buffer local face.
8443         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8444         * objects.c (color_after_change): Set buffer_local_face_property
8445         when locale of face specifier is buffer.
8446         * objects.c (font_after_change): Ditto.
8447         * objects.c (face_boolean_after_change): Ditto.
8448         * glyphs.c (image_after_change): Ditto.
8449
8450 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8451
8452         * nt.c (mswindows_fstat): Report file permissions, volume serial
8453         number, etc. Code adapted from FSF Emacs 20.7.
8454
8455 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8456
8457         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8458         of stat when we don't have symbolic links, to make sure
8459         mswindows_stat is called on mswindows.
8460
8461 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8462
8463         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8464
8465 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8466
8467         * doprnt.c (emacs_doprnt_1): More printing fixes.
8468         Make printing of numbers compatible with libc and FSF Emacs.
8469         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8470         Use the system printf to do most of the hard work of formatting,
8471         instead of doprnt_1().
8472         Calculate memory to allocate for format string.
8473         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8474         (doprnt_1): Cleaner code and documentation.
8475
8476 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8477
8478         * Makefile.in.in: Use the loop variable to install headers.
8479
8480 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8481
8482         * window.c (Fsplit_window): Don't invalidate face cache.
8483
8484 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8485
8486         * minibuf.c (Fall_completions): Undo the previous change
8487         which removed checking elements start with space.
8488
8489 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8490
8491         * mule-canna.c: Didier suppression.
8492
8493 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8494
8495         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8496         (warning suppression).  Add English comment translations.
8497
8498 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8499
8500         * unexelfsgi.c (unexec): Better test for mmap failure.
8501
8502 2000-12-05  Martin Buchholz <martin@xemacs.org>
8503
8504         * XEmacs 21.2.38 is released.
8505
8506 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8507
8508         * redisplay.c (bar-cursor): Make a user variable.
8509
8510         * symsinit.h: Add init_postgresql_from_environment.
8511
8512 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8513
8514         * regex.c: Convert to clean C.
8515
8516 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8517
8518         * realpath.c:
8519         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8520         initialization.
8521         (sys_readlink): renamed to system_readlink to avoid conflict with
8522         the other sys_readlink.
8523
8524 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8525
8526         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8527
8528 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8529
8530         * postgresql.c (init_postgresql_from_environment): new function.
8531         (vars_of_postgresql): Move code initializing Lisp variables out and
8532         into init_postgresql_from_environment.
8533         emacs.c (main_1): Call init_postgresql_from_environment if and only
8534         if running a dumped XEmacs.
8535
8536 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8537
8538         * buffer.c: Make find-file-compare-truenames default to true on
8539         windows.
8540
8541         * realpath.c (win32_abs_start):
8542         (cygwin_readlink):
8543         (win32_readlink): New functions.
8544         (xrealpath): Return really real filenames on windows.
8545
8546         * fileio.c (Ffile_truename): Make file-truename work on windows.
8547
8548 2000-11-29  Didier Verna  <didier@xemacs.org>
8549
8550         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8551         * faces.c (update_face_cachel_data): use it.
8552         * faces.c (add_face_cachel): use it. Complete background pixmap
8553         frobbing in face cache if `update_face_cachel_data' has not done so.
8554
8555 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8556
8557         * search.c (string_match_1): Don't set last_thing_searched
8558         when search failed.
8559
8560 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8561
8562         * buffer.c: Include casetab.h
8563         (common_init_complex_vars_of_buffer): Use new case-table object.
8564         * buffer.h: Include casetab.h
8565         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8566         (DOWNCASE_TABLE_OF): Ditto.
8567         * bufslots.h: Remove char-tables and add case-table.
8568         * casetab.c: Include casetab.h
8569         (CASE_TABLE_P): Removed.
8570         (mark_case_table): New function.
8571         (allocate_case_table): New function.
8572         (Fcase_table_p): Use new case-table.
8573         (case_table_char): New function.
8574         (Fget_case_table): Ditto.
8575         (Fput_case_table): Ditto.
8576         (Fput_case_table_pair): Ditto.
8577         (Fcopy_case_table): Ditto.
8578         (Fcurrent_case_table): Return case-table.
8579         (Fstandard_case_table): Return case-table.
8580         (Fset_case_table): Fix doc-string.
8581         (set_case_table): Use case-table
8582         (syms_of_casetab): DEFSUBR new functions.
8583         (complex_vars_of_casetab): Set up standard case-table.
8584         * casetab.h: New file.
8585         * editfns.c: Include casetab.h
8586         (Fcompare_buffer_substrings): Use case-table.
8587         * inline.c: Include casetab.h
8588         * lisp.h: Remove bogus extern.
8589         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8590         * search.c: Include casetab.h
8591         (TRANSLATE_ASCII): Removed.
8592         (TRANSLATE): Unconditionally translate character.
8593         (looking_at_1): Use case-table.
8594         (string_match_1): Ditto.
8595         (fast_string_match): Ditto.
8596         (search_command): Ditto.
8597         (search_buffer): Separate boyer_moore.  Check whether
8598         boyer_moore is possible.
8599         (simple_search): New function.
8600         (boyer_moore): Separated from search_buffer. Translate char.
8601
8602 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8603
8604         * regex.c (RE_TR_ASCII): Removed.
8605         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8606         (PATFETCH): Call PATFETCH_RAW.
8607         (PATFETCH_RAW): Fetch Emchar.
8608         (PATUNFETCH): Decrement charptr.
8609         (GET_BUFFER_SPACE): Rename b to buf_end.
8610         (BUF_PUSH): Ditto.
8611         (BUF_PUSH_2): Ditto.
8612         (BUF_PUSH_3): Ditto.
8613         (EXTEND_BUFFER): Ditto.
8614         (SET_LIST_BIT): Ditto.
8615         (regex_compile): Ditto.  Translate non ASCII char.
8616         (compile_range): Ditto.
8617         (re_search_2): Ditto.
8618         (re_match_2_internal): Compare Emchar.
8619         (bcmp_translate): Ditto.
8620
8621 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8622
8623         * lisp.h (basic char/int typedefs):  comment improvement.
8624
8625 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8626
8627         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8628         unstomp inhibit_site_lisp.  Improve comments.
8629
8630 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8631
8632         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8633
8634 2000-11-28  Andy Piper  <andy@xemacs.org>
8635
8636         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8637         clipped display for windows in the gutter also.
8638         (redisplay_display_boxes_in_window_p): change semantics of return
8639         codes to be more intuitive.
8640
8641         * gutter.h: declare display_boxes_in_gutter_p.
8642
8643         * gutter.c (display_boxes_in_gutter_p): new function for
8644         redisplay.
8645
8646 2000-11-22  Andy Piper  <andy@xemacs.org>
8647
8648         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8649         autodetect domain.
8650
8651 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8652
8653         * callproc.c (Fold_call_process_internal):
8654         * gpm.c (Freceive_gpm_event):
8655         (tty_get_foreign_selection): Might be just warning supression.
8656         * fileio.c (Fwrite_region_internal):
8657         (Fset_visited_file_modtime):
8658         * keymap.c (event_matches_key_specifier_p):
8659         Initialize GCPROed variable.
8660
8661         * menubar-x.c (command_builder_find_menu_accelerator):
8662         Initialize before use.
8663
8664 2000-11-23  Andy Piper  <andy@xemacs.org>
8665
8666         * unexcw.c (unexec): make the resulting executable executable.
8667
8668 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8669
8670         * doc.c (get_doc_string):
8671         Use size_t, not int, for result of XSTRING_LENGTH.
8672
8673         * cmds.c (Fdelete_char):
8674         * cmds.c (Fpoint_at_eol):
8675         * cmds.c (Fself_insert_command):
8676         Use EMACS_INT, not int, for result of XINT.
8677         Someday, someone will want to insert more than 2**31 identical characters.
8678
8679         * cmds.c (Fdelete_char):
8680         * cmds.c (Fdelete_backward_char):
8681         * syntax.c (Fforward_word):
8682         * syntax.c (Fforward_comment):
8683         Make COUNT argument optional, for consistency with forward-char et al.
8684
8685 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8686
8687         * lisp.h:
8688         * print.c (long_to_string):
8689         Return a useful value: the pointer at end of data written.
8690
8691         * doprnt.c:
8692         Use `static const char * const' for constant strings.
8693         (union printf_arg): Delete `i', `ui' members.
8694         (get_doprnt_args):
8695         (emacs_doprnt_1):
8696         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8697         Do all printf-ing via the `l' specifier.
8698         Use EMACS_INT instead of int.
8699         Optimize.
8700
8701 2000-11-20  Didier Verna  <didier@xemacs.org>
8702
8703         * faces.c (update_face_cachel_data): don't frob the background
8704         pixmap when the window is being created. The face is needed but
8705         does not exist yet.
8706
8707 2000-11-20  Andy Piper  <andy@xemacs.org>
8708
8709         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8710         messing with a debug environment.
8711
8712 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8713
8714         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8715
8716 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8717
8718         * casetab.c (Fcase_table_p): Fix compile error and crash.
8719
8720 2000-11-18  Philip Aston  <philipa@mail.com>
8721
8722         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8723
8724 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8725
8726         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8727         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8728
8729 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8730
8731         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8732         * unexelf.c: Use HAVE_ELF_H.
8733         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8734         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8735         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8736         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8737         for testing.
8738         So this is an unexelfsgi.c from a different line of development.
8739
8740 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8741
8742         * regex.c (RE_TR_ASCII): New function.
8743         (RE_TRANSLATE): Call it.
8744
8745 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8746
8747         * buffer.h (TRT_TABLE_OF): Remove assert.
8748         (IN_TRT_TABLE_DOMAIN): Removed.
8749
8750 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8751
8752         * free-hook.c (log_gcpro):
8753         (show_gcprohist): Add support for GCPRO5.
8754
8755 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8756
8757         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8758
8759 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8760
8761         * symeval.h: Declare flush_all_buffer_local_cache.
8762
8763         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8764         (flush_buffer_local_cache): Added.
8765         (flush_all_buffer_local_cache): Added.
8766
8767         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8768
8769         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8770         (pdump_dump_data): Ditto.
8771         (pdump_reloc_one): Ditto.
8772         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8773         before dumping.
8774
8775
8776 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8777
8778         * buffer.c: Remove if 0'ed entry.
8779         * buffer.h: Rewrite TRT to use char-table.
8780         * bufslots.h: Remove mirror tables.
8781         * casetab.c: Remove mirror tables.
8782         (CASE_TABLE_P): New macro.
8783         (Fcase_table_p): Element of a case table is string or char-table.
8784         (make_mirror_trt_table): Removed.
8785         (set_case_table): Setup char-table from strings for backward
8786         compatibility.
8787         * dired.c (Fdirectory_files):
8788         * dired-msw.c: (mswindows_get_files):
8789         * lisp.h: Change prototype of re_pattern_buffer.
8790         * regex.c: (RE_TRANSLATE): New macro.
8791         (TRANSLATE_P): Ditto.
8792         Change translate to type RE_TRANSLATE_TYPE.
8793         * regex.h: Define RE_TRANSLATE_TYPE
8794         * search.c (TRANSLATE): New macro.
8795         (TRANSLATE_ASCII): New macro.
8796         Translate table is changed to Lisp_Object.
8797         (signal_failure): Inhibit return.
8798
8799 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8800
8801         * device-msw.c:
8802         * eldap.c:
8803         * event-Xt.c:
8804         * event-stream.c:
8805         * print.c:
8806         Do UNGCPRO before return.
8807
8808 2000-11-14  Martin Buchholz <martin@xemacs.org>
8809
8810         * XEmacs 21.2.37 is released.
8811
8812 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8813
8814         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8815         Add comments about discarded return value.
8816
8817 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8818
8819         * callint.c:
8820         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8821
8822 2000-10-27  Andy Piper  <andy@xemacs.org>
8823
8824         * gutter.c (Fset_default_gutter_position): default left and right
8825         gutters to visible.
8826         (calculate_gutter_size): calculate resonable heuristic for left
8827         and right gutter sizes.
8828         (specifier_vars_of_gutter): change left and right gutter sizes to
8829         autodetect.
8830         (calculate_gutter_size_from_display_lines): new function.
8831         (output_gutter): check for resizing on left and right gutters.
8832         (clear_gutter): don't special case top and left gutters.
8833         (specifier_vars_of_gutter): use new signature for
8834         set_specifier_caching.
8835
8836         * glyphs-x.c (x_redisplay_widget): spelling fix.
8837         * glyphs.c (specifier_vars_of_glyphs):
8838         * menubar.c (specifier_vars_of_menubar):
8839         * redisplay.c (specifier_vars_of_redisplay):
8840         * toolbar.c (specifier_vars_of_toolbar):
8841         * window.c (specifier_vars_of_window):
8842         * scrollbar.c (specifier_vars_of_scrollbar):
8843         (complex_vars_of_scrollbar): use new signature for
8844         set_specifier_caching.
8845
8846         * specifier.c (set_specifier_caching): include recompute flag.
8847         (recompute_one_cached_specifier_in_window): always recompute if
8848         flag set.
8849         (recompute_one_cached_specifier_in_frame): ditto.
8850
8851         * specifier.h (struct specifier_caching): add recompute flag.
8852
8853 2000-10-24  Andy Piper  <andy@xemacs.org>
8854
8855         * unexcw.c (copy_executable_and_dump_data_section): add new
8856         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8857         5.0 happy.
8858
8859 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8860
8861         * console-x.h (x_device): New member modifier_release_time.
8862         * event-Xt.c (x_handle_sticky_modifiers):
8863         Bound interval modifier keys are sticky.
8864         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8865         * events.h: extern it.
8866
8867 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8868
8869         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8870
8871 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8872
8873         * event-stream.c (execute_command_event): Preserve current_events
8874         and the like when event is misc-user-event.
8875         Inhibit quit during the call to maybe_echo_keys.
8876
8877 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8878
8879         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8880         symlink when buffer is killed.
8881         (inhibit_clash_detection): New variable.
8882
8883 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8884
8885         * console.c (Fset_input_method): Trigger redisplay on tty.
8886
8887 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8888
8889         * process.c (Fprocess_status): Revert to previous behavior:
8890         (process-status "nosuchprocess") ==> nil
8891
8892 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8893
8894         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8895         Work around another GCC 2.95.2 optimizer bug.
8896
8897 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8898
8899         * process.c (Fget_process): Use LIST_LOOP_2.
8900         (kill_buffer_processes): Use LIST_LOOP_2.
8901
8902         * minibuf.c (Fall_completions):
8903         Delete old non-functional code for FSF fourth argument.
8904
8905         * frame.c (frame_matches_frame_spec):
8906         Renamed from `frame_matches_frametype'.  Update all callers.
8907         (device_matches_device_spec):
8908         Renamed from 'device_matches_console_spec'.  Update all callers.
8909
8910         * doc.c (Fsubstitute_command_keys):
8911         Remove buffer overflow crash.  Small code cleanups.
8912
8913         * casetab.c (check_case_table): Simpler code.
8914
8915         * window.c (Freplace_buffer_in_windows):
8916         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8917         (and similar implementation) as Fdelete_windows_on.
8918         Update all callers.
8919
8920         * alloc.c (Fmake_list):
8921         * alloc.c (make_vector):
8922         * alloc.c (Fmake_vector):
8923         * alloc.c (make_bit_vector):
8924         * alloc.c (Fmake_bit_vector):
8925         * alloc.c (Fbit_vector):
8926         * alloc.c (Fmake_string):
8927         * alloc.c (Fpurecopy):
8928         * alloc.c (Fmemory_limit):
8929         * buffer.c:
8930         * buffer.c (Fget_buffer):
8931         * buffer.c (Fkill_buffer):
8932         * buffer.c (complex_vars_of_buffer):
8933         * bytecode.c (Fcompiled_function_stack_depth):
8934         * callint.c (Fprefix_numeric_value):
8935         * event-stream.c:
8936         * event-stream.c (Fread_key_sequence):
8937         * casetab.c:
8938         * casetab.c (Fcase_table_p):
8939         * casetab.c (check_case_table):
8940         * casetab.c (Fset_case_table):
8941         * casetab.c (Fset_standard_case_table):
8942         * chartab.c:
8943         * chartab.c (Fchar_table_type):
8944         * chartab.c (Freset_char_table):
8945         * chartab.c (Fget_char_table):
8946         * chartab.c (Fget_range_char_table):
8947         * chartab.c (Fput_char_table):
8948         * chartab.c (Fmap_char_table):
8949         * chartab.c (Fcategory_table_p):
8950         * chartab.c (Fcheck_category_at):
8951         * chartab.c (Fchar_in_category_p):
8952         * chartab.c (Fcategory_table):
8953         * chartab.c (Fcopy_category_table):
8954         * chartab.c (Fset_category_table):
8955         * chartab.c (Fcategory_designator_p):
8956         * chartab.c (Fcategory_table_value_p):
8957         * cmds.c (Fdelete_char):
8958         * cmds.c (Fdelete_backward_char):
8959         * cmds.c (Fself_insert_command):
8960         * cmds.c (Fself_insert_internal):
8961         * console.c (Fvalid_console_type_p):
8962         * console.c (Fcdfw_console):
8963         * console.c (Fconsole_type):
8964         * console.c (Fconsole_name):
8965         * console.c (Fconsole_device_list):
8966         * console.c (Fconsole_on_window_system_p):
8967         * data.c:
8968         * data.c (Feq):
8969         * data.c (Fold_eq):
8970         * data.c (Fsubr_interactive):
8971         * data.c (Fchar_to_int):
8972         * data.c (Fint_to_char):
8973         * data.c (Fsetcar):
8974         * data.c (Fsetcdr):
8975         * data.c (Fnumber_to_string):
8976         * data.c (Fstring_to_number):
8977         * data.c (Frem):
8978         * database.c (mark_database):
8979         * database.c (finalize_database):
8980         * database.c (Fdatabase_live_p):
8981         * database.c (Fdatabasep):
8982         * device-x.c (Fx_get_resource):
8983         * device.c (Fdfw_device):
8984         * dired.c:
8985         * dired.c (Ffile_name_completion):
8986         * dired.c (Ffile_name_all_completions):
8987         * dired.c (Fuser_name_completion):
8988         * dired.c (Fuser_name_completion_1):
8989         * dired.c (Fuser_name_all_completions):
8990         * doc.c (Fdocumentation):
8991         * doc.c (Fdocumentation_property):
8992         * doc.c (Fsubstitute_command_keys):
8993         * editfns.c:
8994         * editfns.c (Fchar_to_string):
8995         * editfns.c (Fstring_to_char):
8996         * editfns.c (Ftemp_directory):
8997         * editfns.c (Finsert_char):
8998         * editfns.c (Fbuffer_substring_no_properties):
8999         * editfns.c (Fnarrow_to_region):
9000         * editfns.c (Fchar_equal):
9001         * editfns.c (Fchar_Equal):
9002         * editfns.c (Ftranspose_regions):
9003         * emacs.c (Fdump_emacs):
9004         * eval.c (Fthrow):
9005         * eval.c (Fcommand_execute):
9006         * eval.c (Fautoload):
9007         * eval.c (Fbacktrace):
9008         * eval.c (Fbacktrace_frame):
9009         * events.c:
9010         * events.c (Fcopy_event):
9011         * events.c (Fcharacter_to_event):
9012         * events.c (Fevent_button):
9013         * events.c (Fevent_process):
9014         * extents.c:
9015         * extents.c (Fnext_extent_change):
9016         * extents.c (Fextent_property):
9017         * faces.c (Ffacep):
9018         * faces.c (Fmake_face):
9019         * file-coding.c:
9020         * file-coding.c (Fencode_shift_jis_char):
9021         * file-coding.c (Fencode_big5_char):
9022         * fileio.c (Ffile_name_directory):
9023         * fileio.c (Ffile_name_nondirectory):
9024         * fileio.c (Ffile_name_as_directory):
9025         * fileio.c (Fdirectory_file_name):
9026         * fileio.c (Ffile_truename):
9027         * fileio.c (Fsubstitute_in_file_name):
9028         * fileio.c (Ffile_modes):
9029         * fileio.c (Fset_file_modes):
9030         * fileio.c (Fset_default_file_modes):
9031         * fileio.c (Fverify_visited_file_modtime):
9032         * floatfns.c (Facos):
9033         * floatfns.c (Fasin):
9034         * floatfns.c (Fatan):
9035         * floatfns.c (Fcos):
9036         * floatfns.c (Fsin):
9037         * floatfns.c (Ftan):
9038         * floatfns.c (Fbessel_j0):
9039         * floatfns.c (Fbessel_j1):
9040         * floatfns.c (Fbessel_jn):
9041         * floatfns.c (Fbessel_y0):
9042         * floatfns.c (Fbessel_y1):
9043         * floatfns.c (Fbessel_yn):
9044         * floatfns.c (Ferf):
9045         * floatfns.c (Ferfc):
9046         * floatfns.c (Flog_gamma):
9047         * floatfns.c (Fexp):
9048         * floatfns.c (Fexpt):
9049         * floatfns.c (Flog):
9050         * floatfns.c (Flog10):
9051         * floatfns.c (Fsqrt):
9052         * floatfns.c (Fcube_root):
9053         * floatfns.c (Facosh):
9054         * floatfns.c (Fasinh):
9055         * floatfns.c (Fatanh):
9056         * floatfns.c (Fcosh):
9057         * floatfns.c (Fsinh):
9058         * floatfns.c (Ftanh):
9059         * floatfns.c (Fabs):
9060         * floatfns.c (Ffloat):
9061         * floatfns.c (Flogb):
9062         * floatfns.c (Fceiling):
9063         * floatfns.c (Ffloor):
9064         * floatfns.c (Fround):
9065         * floatfns.c (Ftruncate):
9066         * floatfns.c (Ffceiling):
9067         * floatfns.c (Fffloor):
9068         * floatfns.c (Ffround):
9069         * floatfns.c (Fftruncate):
9070         * fns.c (Fstring_equal):
9071         * fns.c (Fstring_lessp):
9072         * fns.c (concat2):
9073         * fns.c (concat3):
9074         * fns.c (vconcat2):
9075         * fns.c (vconcat3):
9076         * fns.c (Fsubstring):
9077         * fns.c (Fassoc):
9078         * fns.c (Fold_assoc):
9079         * fns.c (assoc_no_quit):
9080         * fns.c (Fassq):
9081         * fns.c (Fold_assq):
9082         * fns.c (assq_no_quit):
9083         * fns.c (Frassoc):
9084         * fns.c (Fold_rassoc):
9085         * fns.c (Frassq):
9086         * fns.c (Fold_rassq):
9087         * fns.c (rassq_no_quit):
9088         * fns.c (Fremassoc):
9089         * fns.c (remassoc_no_quit):
9090         * fns.c (Fremassq):
9091         * fns.c (remassq_no_quit):
9092         * fns.c (Fremrassoc):
9093         * fns.c (Fremrassq):
9094         * fns.c (remrassq_no_quit):
9095         * fns.c (Fsort):
9096         * fns.c (Fplist_get):
9097         * fns.c (Fplist_put):
9098         * fns.c (Fplist_remprop):
9099         * fns.c (Fplist_member):
9100         * fns.c (Flax_plist_get):
9101         * fns.c (Flax_plist_put):
9102         * fns.c (Flax_plist_remprop):
9103         * fns.c (Flax_plist_member):
9104         * fns.c (Fequal):
9105         * fns.c (Fold_equal):
9106         * fns.c (Frequire):
9107         * fns.c (Fbase64_encode_region):
9108         * fns.c (Fbase64_encode_string):
9109         * fns.c (Fbase64_decode_region):
9110         * frame.c:
9111         * frame.c (frame_matches_frame_spec):
9112         * frame.c (device_matches_device_spec):
9113         * frame.c (next_frame):
9114         * frame.c (previous_frame):
9115         * frame.c (Fnext_frame):
9116         * frame.c (Fprevious_frame):
9117         * frame.c (Fframe_property):
9118         * frame.c (Fset_frame_height):
9119         * frame.c (Fset_frame_size):
9120         * frame.h:
9121         * glyphs.c:
9122         * glyphs.c (if):
9123         * glyphs.c (decode_error_behavior_flag):
9124         * glyphs.c (Fmake_image_instance):
9125         * indent.c (Findent_to):
9126         * intl.c (Fignore_defer_gettext):
9127         * keymap.c (Fkeymapp):
9128         * keymap.c (Flookup_key):
9129         * lread.c:
9130         * lread.c (Fload_internal):
9131         * lread.c (Feval_buffer):
9132         * lread.c (Feval_region):
9133         * macros.c (Fexecute_kbd_macro):
9134         * marker.c (set_marker_internal):
9135         * marker.c (Fset_marker):
9136         * marker.c (set_marker_restricted):
9137         * marker.c (Fcopy_marker):
9138         * marker.c (noseeum_copy_marker):
9139         * menubar.c:
9140         * menubar.c (Fpopup_menu):
9141         * minibuf.c:
9142         * mule-charset.c (Fcharset_name):
9143         * mule-charset.c (Fchar_charset):
9144         * mule-charset.c (Fchar_octet):
9145         * mule-charset.c (Fsplit_char):
9146         * mule-wnnfns.c (Fwnn_open):
9147         * mule-wnnfns.c (Fwnn_dict_comment):
9148         * mule-wnnfns.c (Fwnn_quit_henkan):
9149         * mule-wnnfns.c (Fwnn_word_toroku):
9150         * mule-wnnfns.c (Fwnn_word_sakujo):
9151         * mule-wnnfns.c (Fwnn_word_use):
9152         * mule-wnnfns.c (Fwnn_hindo_set):
9153         * objects.c:
9154         * objects.c (Fmake_color_instance):
9155         * objects.c (Fmake_font_instance):
9156         * print.c (Fwrite_char):
9157         * process.c:
9158         * process.c (mark_process):
9159         * process.c (print_process):
9160         * process.c (get_process_from_usid):
9161         * process.c (Fprocessp):
9162         * process.c (Fprocess_live_p):
9163         * process.c (Fget_process):
9164         * process.c (Fget_buffer_process):
9165         * process.c (get_process):
9166         * process.c (Fprocess_id):
9167         * process.c (Fprocess_name):
9168         * process.c (Fprocess_command):
9169         * process.c (init_process_io_handles):
9170         * process.c (start_process_unwind):
9171         * process.c (Fstart_process_internal):
9172         * process.c (Fopen_multicast_group_internal):
9173         * process.c (Fset_process_window_size):
9174         * process.c (read_process_output):
9175         * process.c (send_process):
9176         * process.c (Fprocess_tty_name):
9177         * process.c (Fset_process_buffer):
9178         * process.c (Fprocess_buffer):
9179         * process.c (Fprocess_mark):
9180         * process.c (set_process_filter):
9181         * process.c (Fset_process_filter):
9182         * process.c (Fprocess_filter):
9183         * process.c (Fprocess_send_region):
9184         * process.c (Fprocess_send_string):
9185         * process.c (exec_sentinel):
9186         * process.c (Fset_process_sentinel):
9187         * process.c (Fprocess_sentinel):
9188         * process.c (status_notify):
9189         * process.c (Fprocess_status):
9190         * process.c (Fprocess_exit_status):
9191         * process.c (process_send_signal):
9192         * process.c (Fprocess_send_eof):
9193         * process.c (deactivate_process):
9194         * process.c (remove_process):
9195         * process.c (Fdelete_process):
9196         * process.c (kill_buffer_processes):
9197         * process.c (Fprocess_kill_without_query):
9198         * process.c (Fprocess_kill_without_query_p):
9199         * rangetab.c:
9200         * rangetab.c (Fget_range_table):
9201         * rangetab.c (Fput_range_table):
9202         * rangetab.c (Fremove_range_table):
9203         * rangetab.c (Fclear_range_table):
9204         * search.c:
9205         * search.c (Fskip_chars_forward):
9206         * search.c (Fskip_chars_backward):
9207         * search.c (Fskip_syntax_forward):
9208         * search.c (Fskip_syntax_backward):
9209         * search.c (search_command):
9210         * search.c (Freplace_match):
9211         * search.c (Fregexp_quote):
9212         * select.c (Fown_selection_internal):
9213         * select.c (Fselection_owner_p):
9214         * select.c (Fselection_exists_p):
9215         * select.c (Fget_selection_internal):
9216         * specifier.c:
9217         * symbols.c:
9218         * symbols.c (Fintern):
9219         * symbols.c (Fintern_soft):
9220         * symbols.c (Funintern):
9221         * symbols.c (Fapropos_internal):
9222         * symbols.c (Fset_default):
9223         * syntax.c:
9224         * syntax.c (Fsyntax_table_p):
9225         * syntax.c (Fcopy_syntax_table):
9226         * syntax.c (Fset_syntax_table):
9227         * syntax.c (Fchar_syntax):
9228         * syntax.c (syntax_match):
9229         * syntax.c (Fmatching_paren):
9230         * syntax.c (Fforward_word):
9231         * syntax.c (scan_lists):
9232         * syntax.c (Fscan_lists):
9233         * syntax.c (Fscan_sexps):
9234         * syntax.c (Fparse_partial_sexp):
9235         * toolbar.c (Fcheck_toolbar_button_syntax):
9236         * tooltalk.doc:
9237         * window.c:
9238         * window.c (Fwindowp):
9239         * window.c (Fwindow_live_p):
9240         * window.c (Fwindow_point):
9241         * window.c (Fdelete_window):
9242         * window.c (Fnext_window):
9243         * window.c (Fprevious_window):
9244         * window.c (Fother_window):
9245         * window.c (window_loop):
9246         * window.c (Fget_lru_window):
9247         * window.c (Fsplit_window):
9248         * window.c (Fenlarge_window):
9249         * window.c (Fenlarge_window_pixels):
9250         * window.c (Fshrink_window):
9251         * window.c (Fshrink_window_pixels):
9252         * window.c (change_window_height):
9253         * window.c (Fwindow_configuration_p):
9254         * window.c (Fcurrent_window_configuration):
9255         * window.h:
9256         * casefiddle.c (casify_object):
9257         * casefiddle.c (Fupcase):
9258         * casefiddle.c (Fdowncase):
9259         * casefiddle.c (Fcapitalize):
9260         * casefiddle.c (Fupcase_initials):
9261         * casefiddle.c (casify_region_internal):
9262         * casefiddle.c (casify_region):
9263         * casefiddle.c (Fupcase_region):
9264         * casefiddle.c (Fdowncase_region):
9265         * casefiddle.c (Fcapitalize_region):
9266         * casefiddle.c (Fupcase_initials_region):
9267         * casefiddle.c (Fupcase_word):
9268         * casefiddle.c (Fdowncase_word):
9269         * casefiddle.c (Fcapitalize_word):
9270         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9271         Replace 0 with '\0' when working with bytes.
9272         Replace initial "(" with "\(" in docstrings.
9273
9274 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9275
9276         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9277
9278         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9279
9280 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9281
9282         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9283
9284 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9285
9286         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9287         correctly.
9288
9289 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9290
9291         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9292         (inhibit_auto_save_session): New variable.
9293         (vars_of_fileio): Declare and initialize them.
9294         * fileio.c (Fdo_auto_save): Don't create session file if
9295         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9296
9297 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9298
9299         * sgiplay.c (play_internal): C++ compilability.
9300         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9301         * callproc.c (Fold_call_process_internal):
9302         Remove unused vars `env', `first'.
9303         * scrollbar.c (update_scrollbar_instance):
9304         #### unused var `current_window'.
9305         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9306         etc. within #ifdef NOT_YET.
9307         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9308         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9309         * specifier.c (specifier_instance):
9310         #### unused var `tag'.
9311         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9312
9313 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9314
9315         * fns.c (Fbutlast):
9316         * fns.c (list_sort):
9317         * fns.c (Ffillarray):
9318         * fns.c (bytecode_nconc2):
9319         * fns.c (Fnconc):
9320         * fns.c (mapcar1):
9321         * fns.c (Fmapconcat):
9322         Be pedantically 64-bit correct.  For the time when someone will
9323         want to have a list with length > 2**32.
9324
9325         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9326         Work around MIPSpro compiler bug.
9327
9328         * process-unix.c (unix_kill_child_process): Add snarky comment.
9329         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9330
9331         * config.h.in: Oops, _getpt ==> _getpty
9332
9333 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9334
9335         * config.h.in:
9336         * regex.c:
9337         Use void*, not char*, as return type of alloca().
9338
9339         * alloc.c (free_marker): Side effect inside assert expression!
9340
9341 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9342
9343         * mule-charset.c (Fset_charset_ccl_program): To check
9344         if the given ccl program is valid, use setup_ccl_program()
9345         instead of CHECK_VECTOR().
9346         (Fmake_charset): Likewise.
9347
9348 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9349
9350         * faces.c (get_extent_fragment_face_cache_index):
9351         Fix cachel.merged_faces memory leak.
9352
9353 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9354
9355         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9356         Reset MSB of octets obtained by DECODE_SJIS
9357         because of the incompatibility with Emacs.
9358         (ccl_driver)<CCL_ENCODE_SJIS>:
9359         Set MSB of octets before passing them to
9360         ENCODE_SJIS because of the incompatibility
9361         with Emacs.
9362
9363 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9364
9365         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9366         (DECLARE_LRECORD): Undo the last change.
9367         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9368
9369 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9370
9371         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9372         the implementation to lrecord_implementations_table.
9373
9374 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9375
9376         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9377         initial value of `lrecord_type_##c_name' and
9378         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9379         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9380         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9381         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9382         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9383
9384 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9385
9386         * miscplay.c (sndcnv8S_2mono):
9387         (sndcnv2monounsigned):
9388         (sndcnvULaw_2linear):
9389         (sndcnv16swap):
9390         Remove implementation-defined behavior.
9391
9392 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9393
9394         * input-method-xlib.c: Warning suppression.
9395
9396 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9397
9398         * mule-ccl.c: Sync up with Emacs 21.0.90.
9399         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9400         Do nothing.
9401         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9402         Likewise.
9403         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9404         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9405         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9406         leading char belongs to official 2-dimensional charset.
9407         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9408         write the given character as is.  Otherwise,
9409         if it is a multibyte char, convert it by
9410         non_ascii_set_charptr_emchar, then write it.
9411         (CCL_WRITE_STRING): Likewise.
9412         (ccl_get_compiled_code): New function.
9413         (setup_ccl_program): When ccl_prog is invalid,
9414         return -1.
9415         (Fregister_code_conversion_map): New function.
9416         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9417
9418         * mule-ccl.h: Sync up with Emacs 21.0.90.
9419         (Fregister_ccl_program): export it.
9420
9421         * redisplay-msw.c (separate_textual_runs):
9422         If ccl program is not valid, don't do ccl conversion.
9423
9424         * redisplay-x.c (separate_textual_runs): Ditto.
9425
9426         * file-coding.c (Fmake_coding_system):
9427         When type is ccl and value is vector, register it
9428         with a proper symbol.  And checks whether the
9429         given ccl program is valid.
9430         (mule_decode): When calling ccl_driver, if src indicates
9431         NULL pointer, set an empty string instead.
9432         (mule_encode): Likewise.
9433
9434 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9435
9436         The following large batch of changes gets us back to a state of
9437         C++ compilability.  Extbyte is now a char, which means that
9438         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9439
9440         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9441
9442         * sound.c (Fplay_sound): Type correctness.
9443
9444         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9445         (x_get_window_property): Type correctness.
9446         (receive_incremental_selection): unsigned char ==> Extbyte
9447         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9448         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9449         (Fx_store_cutbuffer_internal): Type correctness.
9450
9451         * process-unix.c (try_to_initialize_subtty): Type correctness.
9452
9453         * objects-x.c (x_print_color_instance): Type correctness.
9454         (x_print_font_instance): Type correctness.
9455         (x_list_fonts): SExtbyte ==> Extbyte.
9456         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9457         (x_find_charset_font): SExtbyte ==> Extbyte.
9458         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9459         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9460         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9461         Use bufbyte_strcmp.
9462
9463         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9464         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9465         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9466         (BYTE_C0_P): Use bit ops for char-signedness safety.
9467         (BYTE_C1_P): Use bit ops for char-signedness safety.
9468         (CHARSET_BY_LEADING_BYTE):
9469         (CHARSET_BY_ATTRIBUTES):
9470         Always use inline function.
9471         Use type_checking_assert.
9472         Hide chlook.
9473
9474         * mule-charset.c (non_ascii_charptr_copy_char):
9475         Modify to work with both ASCII and non-ASCII characters.
9476         Improve docs and variable names.
9477         Replace over-clever fall-through switch with a simple loop.
9478         (Lstream_get_emchar_1):
9479         Replace over-clever fall-through switch with a simple loop.
9480
9481         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9482         Warning suppression.
9483
9484         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9485         the return value of Lstream_getc, which could be EOF as well.
9486
9487         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9488
9489         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9490         APIs can be used on Extbytes without casts.  Risky!
9491         (SExtbyte): Remove.
9492         (UExtbyte): Remove.
9493
9494         * input-method-xlib.c (XIM_init_device):
9495         Use Xlib.h instead of IntrinsicP.h.
9496         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9497         which will break in X11R7.
9498         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9499         to call XRegisterIMInstantiateCallback with correct types.
9500
9501         * gui-x.c (button_item_to_widget_value): Type correctness.
9502
9503         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9504
9505         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9506         (xbm_instantiate_1): Type correctness.
9507         (BUILD_GLYPH_INST):  Type correctness.
9508
9509         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9510
9511         * file-coding.c:
9512         (decode_coding_sjis):
9513         (decode_coding_big5):
9514         (decode_coding_ucs4):
9515         (decode_coding_utf8):
9516         (decode_coding_iso2022):
9517         (decode_coding_no_conversion):
9518         Make all decoding functions take an Extbyte * arg.
9519         (encode_coding_sjis):
9520         (encode_coding_big5):
9521         (encode_coding_ucs4):
9522         (encode_coding_utf8):
9523         (encode_coding_iso2022):
9524         (encode_coding_no_conversion):
9525         Make all encoding functions take a Bufbyte * arg.
9526         Use size_t instead of unsigned int for memory sizes.
9527         Only cast to unsigned char whenever dereferencing Extbyte *.
9528
9529         * doc.c (unparesseuxify_doc_string): Type correctness.
9530
9531         * console-x.c (split_up_display_spec):
9532         Rewrite without using details of internal string representation.
9533         (x_semi_canonicalize_device_connection): Type correctness.
9534
9535         * config.h.in:
9536         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9537         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9538         (HAVE_XFREE386): Removed.
9539
9540         * buffer.h (DEC_CHARPTR): `const' correctness.
9541         (bufbyte_strcmp): New.
9542         (bufbyte_memcmp): New.
9543
9544         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9545
9546         * buffer.h (XCHAR_OR_CHAR_INT):
9547         Always use inline function.
9548         Remove redundant type checking assert() - XINT will abort quite nicely.
9549
9550 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9551
9552         * search.c (Freplace_match): Set newtext to an empty string.
9553
9554 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9555
9556         * s/decosf1-3.h: Remove #include of stropts.h
9557         * s/ptx.h: Remove #include of stropts.h
9558         * s/usg5-4.h: Remove #include of stropts.h
9559         * sysproc.h:
9560         * config.h.in:
9561         Use stropts.h, not sys/stropts.h.
9562         Use strtio.h, not sys/strtio.h.
9563
9564 2000-10-04  Martin Buchholz <martin@xemacs.org>
9565
9566         * XEmacs 21.2.36 is released.
9567
9568 2000-09-21  Andy Piper  <andy@xemacs.org>
9569
9570         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9571         changes still involve copying the widget tree.
9572         (update_widget_face): make sure a change is register in the widget
9573         tree. Call update_tab_widget_face appropriately.
9574         (update_tab_widget_face): ditto.
9575         (x_tab_control_redisplay): make sure non-structural changes still
9576         involve copying the widget tree.
9577
9578 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9579
9580         * lread.c (locate_file): Check the path element is non-nil.
9581
9582 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9583
9584         * lisp.h: Warning suppression for SCO compilers.
9585
9586         * redisplay-tty.c (reset_tty_modes): Fix crash.
9587         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9588
9589 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9590
9591         Big signal/process handling overhaul.  Bugs fixed:
9592         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9593         M-x comint-kill-subjob should work for both values nil and t of
9594         process-connection-type. It was broken on most platforms.
9595         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9596         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9597         * process-unix.c: Signal/Process handling overhaul.
9598         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9599         (allocate_pty): Use all available modern methods of allocating
9600         ptys, falling back to old style BSD allocation as a last resort.
9601         Use allegedly more secure Unix98 pty allocation by default.
9602         (allocate_pty_the_old_fashioned_way): New. the last resort.
9603         (unix_create_process): Push ptem, ldterm, ttcompat where
9604         available.  Autoconfiscate.
9605         (try_to_initialize_subtty): New.
9606         (unix_kill_child_process): Proper signal handling for ptys on most
9607         platforms, using special knowledge of AIX, BSD, etc...
9608         (unix_create_process): Always disconnect_controlling_terminal() for
9609         subprocesses, whether using ptys or not.
9610         * process.h: Remove old getpt-dependent PTY code.
9611         * process.c (Fprocess_send_signal): New, obvious generic function.
9612         (decode_signal): New.
9613         (Finterrupt_process):
9614         (Fkill_process):
9615         (Fquit_process):
9616         (Fstop_process):
9617         (Fcontinue_process):
9618         (Fsignal_process): Use decode_signal.
9619         (process_send_signal):
9620         Many docstring corrections.
9621         Allow any signal to be sent to a process object.
9622         * config.h.in: Add symbols for big signal/process overhaul.
9623         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9624         * sysproc.h: Include process-related headers, where available:
9625         sys/stropts.h sys/strtio.h pty.h libutil.h
9626         * s/irix4-0.h:
9627         * s/irix5-0.h:
9628         * s/cygwin32.h:
9629         * s/gnu.h:
9630         * s/linux.h:
9631         * s/hpux.h:
9632         * s/aix3-1.h:
9633         Remove old S&M pty stuff.
9634         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9635         * systty.h: Simplify cpp hackery, improve comments.
9636         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9637
9638         * editfns.c (Fformat_time_string):
9639         Be a little more paranoid with the return value of ctime.
9640
9641         * fileio.c (check_executable):
9642         (check_writable):
9643         Use symbolic constants X_OK, W_OK.
9644
9645         * console-x.c (split_up_display_spec): Fix a warning.
9646
9647 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9648
9649         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9650         * ntproc.c (sys_spawnve): make_string ==> build_string
9651         Small clarity improvements.
9652
9653 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9654
9655         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9656
9657         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9658
9659         * config.h.in (HAVE_STRCASECMP): Remove.
9660
9661 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9662
9663         * redisplay-output.c (redisplay_output_pixmap):
9664         Cleaner and possibly more 64-bit correct code.
9665
9666 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9667
9668         * dumper.c (pdump_load_finish): move restoration of
9669         `noninteractive1' to emacs.c (main_1).
9670         * emacs.c (main_1): protect LISP-visible command-line flags
9671         from pdump_load().
9672
9673 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9674
9675         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9676         DUMP_TARGET instead of literal program names.
9677
9678 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9679
9680         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9681
9682 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9683
9684         * *: Spelling mega-patch
9685
9686 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9687
9688         * fns.c (bad_bad_turtle):
9689         Delete "Eek!" comment, since we fixed the bug to which it refers.
9690
9691 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9692
9693         * alloca.c: Replace REGISTER with register.
9694
9695 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9696
9697         * file-coding.c (ucs_to_char): Use countof.
9698
9699 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9700
9701         * file-coding.c: (ucs_to_char):
9702         (complex_vars_of_file_coding):
9703         Use countof instead of sizeof.
9704         Use CHECK_NATNUM instead of CHECK_INT.
9705
9706         * sysdep.c (strcasecmp): Remove.
9707         * device-x.c (ascii_strcasecmp): New.
9708         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9709         Avoid using non-standard non-portable strcasecmp.
9710
9711 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9712
9713         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9714         * font-lock.c: remove reference to emacsfns.h.
9715         * search.c: small doc improvement.
9716         * event-Xt.c: correct file names in comments.
9717         * console-x.h Correct file names in comments.
9718         * frame.c: Correct file names in comments.
9719         * event-stream.c: remove Energize from comments.
9720
9721 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9722
9723         * symeval.h (DEFERROR_STANDARD):
9724         (DEFERROR):
9725         (DEFSYMBOL):
9726         (DEFSYMBOL_NO_DUMP):
9727         (DEFSYMBOL_MULTIWORD_PREDICATE):
9728         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9729         (DEFKEYWORD):
9730         The construct &##name is not sensible C.
9731         Fixes compilation errors with Unixware native compiler.
9732
9733 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9734
9735         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9736         (next_frame_internal): Removed.  We now just have next_frame.
9737         (next_frame):
9738         Write a simpler and cleaner one-pass algorithm.
9739         Remove called_from_delete_device arg and #ifdefed-out code.
9740         (previous_frame):
9741         Renamed from prev_frame.  Update callers.
9742         Cleaned up to have an analogous implementation to next_frame.
9743         (other_visible_frames_internal): Remove the
9744         called_from_delete_device bogus arg, and hence, remove this
9745         function.  Just use other_visible_frames().
9746
9747         * window.c (Fnext_window):
9748         Prettify docstring.
9749         Since next_frame() is guaranteed to return a frame, remove check
9750         for nil inserted in previous patch.
9751         (Fprevious_window):
9752         Prettify docstring.
9753         Make code look more like Fnext_window.
9754         (window_loop):
9755         Respect the `console' arg when iterating through windows.
9756         Fixes bug: (get-buffer-window buffer t device) not respecting
9757         the `device' arg.
9758         This function needs more work, as others have pointed out.
9759
9760         * frame.h: Rename prev_frame to previous_frame.
9761         device_matches_console_spec no longer takes a `frame' arg.
9762
9763         * s/gnu.h:
9764         * s/linux.h:
9765         * s/hpux.h:
9766         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9767         From "Golubev I. N." <gin@mo.msk.ru>.
9768
9769         * make-src-depend: Fix typo.
9770
9771 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9772
9773         * window.c (Fnext_window):
9774         next_frame() might return nil, not a frame.
9775         Fixes this crash:
9776         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9777
9778         * frame.c (next_frame_internal):
9779         We've passed a frame if we've passed its device.
9780         Fixes this crash:
9781         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9782 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9783
9784 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9785
9786         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9787         Allow option to suppress accelerators in menu/dialog items.
9788         (populate_or_checksum_helper): Pass dialog title through above.
9789
9790 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9791
9792         * event-msw.c (mswindows_key_to_emacs_keysym):
9793         Add "pause" key, fix "menu" key.
9794
9795 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9796
9797         * eval.c (reinit_vars_of_eval):
9798         Increase max_lisp_eval_depth to 1000,
9799         required for thai-xtis.el to byte-compile under some circumstances.
9800
9801 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9802
9803         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9804         From Kenichi Handa.
9805
9806 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9807
9808         * make-src-depend: Make the generated Makefiles smaller.
9809
9810         * s/hpux.h (SETUP_SLAVE_PTY):
9811         Provide a %d in the format string for the errno argument.
9812
9813         * editfns.c (Ftemp_directory):
9814         Warning fix.
9815         Avoid buffer overrun on very long file name.
9816
9817         * input-method-xlib.c (XIM_init_device):
9818         6th parameter of XRegisterIMInstantiateCallback has different
9819         pointer types on different OSes, so simply cast to (void *).
9820
9821         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9822
9823         * sysdll.c (dll_open):
9824         shl_load will hang hard if passed a NULL filename.
9825         Simply return NULL for compatibility with dlopen.
9826         * sysdll.c: Conform to XEmacs coding standards.
9827
9828         * sysdep.c (get_pty_max_bytes):
9829         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9830
9831 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9832
9833         * tooltalk.c: Add #include <syssignal.h>
9834
9835 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9836
9837         * s/hpux.h: Don't use undefined function sigunblock().
9838
9839 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9840
9841         * config.h.in: Add HAVE_BALLOON_HELP.
9842         * emacs.c: Use HAVE_BALLOON_HELP.
9843         * Makefile.in.in (x_objs):
9844         Make Balloon Help conditional on finding shape.h.
9845
9846 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9847
9848         * syntax.c (regex_emacs_buffer_p): New variable.
9849         * syntax.h (regex_emacs_buffer_p): extern.
9850         * search.c (looking_at_1):
9851         (string_match_1):
9852         (fast_string_match):
9853         (search_buffer): Set regex_emacs_buffer_p.
9854         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9855         when before_dot, at_dot, after_dot.
9856
9857 2000-08-23  Andy Piper  <andy@xemacs.org>
9858
9859         * gui-x.c (popup_selection_callback): Only set action_occurred
9860         when we really have an image instance.
9861         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9862
9863 2000-08-23  Andy Piper  <andy@xemacs.org>
9864
9865         * gui-msw.c (mswindows_handle_gui_wm_command): set
9866         action_occurred.
9867         * gui-x.c (popup_selection_callback): ditto.
9868
9869         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9870         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9871         (struct Lisp_Image_Instance): add action_occurred flag.
9872
9873         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9874         (image_instance_changed): ditto.
9875         (reset_frame_subwindow_instance_cache): only unmap windows - do
9876         not remove them from the cache also.
9877
9878         * glyphs-widget.c (tab_control_update): better debug.
9879         (progress_gauge_update): ditto.
9880         (layout_update): ditto.
9881         (layout_instantiate): ditto.
9882         (tab_control_order_only_changed): cope with null pending items.
9883
9884         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9885         debug. Force selection of an item when an action occurred. Cope
9886         with null pending_items.
9887         (mswindows_progress_gauge_redisplay): better debug.
9888         * glyphs-x.c (x_tab_control_redisplay): ditto.
9889
9890         * redisplay.c (redisplay_frame): reset the frame cache if the
9891         frame is garbaged.
9892
9893         * window.c (Fset_window_configuration): potentially re-enable
9894         frame cache reset.
9895         (window_unmap_subwindows): need to finalize instances here since
9896         it is only used in mark_window_as_deleted.
9897
9898 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9899
9900         * nas.c (SndOpenDataForReading):
9901         nas.c (WaveOpenDataForReading):
9902         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9903         Somehow escaped from the 2000-08-14 patch.
9904
9905 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9906
9907         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9908         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9909
9910 2000-08-21  Andy Piper  <andy@xemacs.org>
9911
9912         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9913         window if it is not already displayed.
9914
9915         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9916         it is not already displayed.
9917
9918         * window.c (Fset_window_configuration): don't reset the frame
9919         cache.
9920
9921         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9922         instances from the frame cache if we are actually finalizing them.
9923         (reset_frame_subwindow_instance_cache): reset frame cache only
9924         after unmapping everything.
9925         (map_subwindow): set displayed flag after mapping.
9926
9927 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9928
9929         * data.c (indirect_function):
9930         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9931
9932         * eval.c (function_argcount):
9933         Use original function when signaling errors.
9934
9935 2000-08-18  Andy Piper  <andy@xemacs.org>
9936
9937         * frame.c (delete_frame_internal): use new
9938         free_frame_subwindow_instances name.
9939
9940         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9941         (add_tab_item): make return type correct.
9942         (mswindows_tab_control_instantiate): assert index of tab.
9943         (mswindows_tab_control_redisplay): Re-code to use
9944         gui_item_equal_sans_selected and gui_item_list_find_selected.
9945
9946         * glyphs-widget.c (tab_control_update): Correct comment.
9947
9948         * window.c (window_unmap_subwindows): use new
9949         unmap_subwindow_instance_cache_mapper.
9950         (window_unmap_subwindows_cache_mapper): deleted.
9951         (Fset_window_configuration): comparisons should now be with
9952         EQ. Preserve the subwindow instance cache across configuration
9953         changes.
9954         (allocate_window): ditto.
9955         (make_dummy_parent): ditto.
9956
9957         * glyphs.c (free_frame_subwindow_instances): rename from
9958         free_frame_subwindow_instance_cache. finalize all instances rather
9959         than just those in the display cache.
9960         (finalize_all_subwindow_instances): walk windows unmapping and
9961         finalizing subwindows.
9962         (unmap_subwindow_instance_cache_mapper): moved from
9963         window.c. Allow finalization as well as unmapping.
9964
9965         * gui.c (gui_item_list_find_selected): new function.
9966
9967         * gui.h (gui_item_list_find_selected): declare.
9968
9969         * glyphs-x.c (x_tab_control_redisplay): pick tab
9970         explicitly. Re-code to use gui_item_equal_sans_selected and
9971         gui_item_list_find_selected.
9972
9973         * glyphs-x.h: add lwlib-utils.h
9974
9975         * buffer.c (Frecord_buffer): undo previous change.
9976
9977 2000-08-09  Vin Shelton  <acs@xemacs.org>
9978
9979         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9980         possible.  Create temporary files more securely.  The patch was
9981         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9982         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9983         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9984         for details.
9985
9986 2000-08-07  Ben Wing  <ben@xemacs.org>
9987
9988         * getloadavg.c: remove duplicate (and windows-breaking)
9989         includes of fcntl.h and sys/file.h.
9990
9991         * nt.c: remove duplicate getloadavg() definition.
9992
9993         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9994         encodings.
9995
9996 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9997
9998         * eval.c (function_argcount): If function needs to be autoloaded
9999         actually use the loaded definition.
10000         GCPRO function.
10001
10002 2000-08-05  Ben Wing  <ben@xemacs.org>
10003
10004         * getloadavg.c: add prototype for getloadavg().  remove
10005         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10006         of the code).  remove duplicate header includes.
10007
10008         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10009
10010         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10011         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10012         useful load average.
10013
10014         * alloc.c (reinit_alloc_once_early): removed references to
10015         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10016         the lisp vars are the only things referencing the malloc_sbrk_*
10017         vars, and they were already if 0'd out.  these vars only exist
10018         in the older malloc.c, which is basically unused, and they're
10019         only for informational purposes.
10020
10021         * m\*.h: removed useless VIRT_ADDR_VARIES.
10022
10023         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10024
10025 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10026
10027         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10028         color if the image is a mono pixmap.
10029
10030 2000-07-30  Ben Wing  <ben@xemacs.org>
10031
10032         * Makefile.in.in (release):
10033         Remove stray @.
10034
10035         * buffer.c (directory_is_current_directory):
10036         * dired-msw.c (mswindows_get_files):
10037         * dired.c:
10038         * dired.c (Fdirectory_files):
10039         * dired.c (file_name_completion_stat):
10040         * dired.c (Ffile_attributes):
10041         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10042         preprocessor tricks, to avoid problems on some machines
10043         (e.g. SCO).
10044
10045         * callproc.c (egetenv): GC docs.
10046
10047         * console-msw.h:
10048         * console-msw.h (struct mswindows_dialog_id):
10049         * lrecord.h (lrecord_type):
10050         New object for use with MSW dialogs.
10051
10052         * console.h (struct console_methods):
10053         New enable/disable frame methods, for proper modal dialogs.
10054
10055         * device-msw.c (msprinter_default_printer): Fix to follow
10056         proper Mule conventions.
10057
10058         * device-msw.c:
10059         * device-msw.c (signal_open_printer_error):
10060         * device-msw.c (msprinter_init_device):
10061         * device-msw.c (ensure_not_printing):
10062         * device-msw.c (plist_get_margin):
10063         * device-msw.c (Fmsprinter_select_settings):
10064         * device-msw.c (finalize_devmode):
10065         * device-msw.c (Fmsprinter_settings_despecialize):
10066         * device-msw.c (signal_enum_priner_error):
10067         * extents.c (decode_extent):
10068         * extents.c (decode_map_extents_flags):
10069         * extents.c (decode_extent_at_flag):
10070         * extents.c (Fextent_at):
10071         * extents.c (Fextents_at):
10072         * extents.c (symbol_to_glyph_layout):
10073         [[[[2]]]] Use structured errors.
10074
10075         * dialog-msw.c:
10076         * dialog-msw.c (mswindows_is_dialog_msg):
10077         * dialog-msw.c (mark_mswindows_dialog_id):
10078         * dialog-msw.c (dialog_proc):
10079         * dialog-msw.c (handle_question_dialog_box):
10080         * dialog-msw.c (syms_of_dialog_mswindows):
10081         Define new object to clean up marking; use it as a dialog identifier.
10082         Call new delete-dialog-box-hook.
10083
10084         * dialog-x.c (dbox_selection_callback):
10085         * dialog-x.c (dbox_descriptor_to_widget_value):
10086         * dialog-x.c (x_make_dialog_box_internal):
10087         Call new delete-dialog-box-hook.
10088         Return an id.
10089
10090         * dialog.c:
10091         * dialog.c (syms_of_dialog):
10092         * dialog.c (vars_of_dialog):
10093         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10094
10095         * eval.c:
10096         * eval.c (signal_call_debugger):
10097         when noninteractive, output stack traces on the console instead
10098         of in a (never-seen) buffer.
10099
10100         * eval.c (signal_type_error):
10101         * eval.c (invalid_argument_2):
10102         * lisp.h:
10103         new funs for use w/structured errors.
10104
10105         * event-Xt.c:
10106         * event-Xt.c (x_to_emacs_keysym):
10107         * event-Xt.c (describe_event):
10108         * event-Xt.c (emacs_Xt_event_handler):
10109         * event-Xt.c (vars_of_event_Xt):
10110         * event-msw.c:
10111         * event-msw.c (mswindows_wnd_proc):
10112         * event-msw.c (vars_of_event_mswindows):
10113         rename {x,mswindows}-debug-events to debug-{}-events for
10114         consistency with other debug-foo variables.
10115
10116         * event-stream.c:
10117         document next-event more clearly.
10118
10119         * fileio.c (Ffile_name_directory):
10120         * fileio.c (Ffile_name_nondirectory):
10121         * fileio.c (Funhandled_file_name_directory):
10122         * fileio.c (file_name_as_directory):
10123         * fileio.c (Ffile_name_as_directory):
10124         * fileio.c (directory_file_name):
10125         * fileio.c (Fdirectory_file_name):
10126         * fileio.c (Fmake_temp_name):
10127         * fileio.c (Ffile_truename):
10128         * fileio.c (Fsubstitute_in_file_name):
10129         * fileio.c (expand_and_dir_to_file):
10130         * fileio.c (barf_or_query_if_file_exists):
10131         * fileio.c (check_executable):
10132         * fileio.c (Ffile_exists_p):
10133         * fileio.c (Ffile_writable_p):
10134         * fileio.c (Ffile_directory_p):
10135         * fileio.c (Ffile_regular_p):
10136         * fileio.c (Ffile_modes):
10137         * fileio.c (Ffile_newer_than_file_p):
10138         * fileio.c (Fverify_visited_file_modtime):
10139         * fileio.c (Fset_visited_file_modtime):
10140         * fileio.c (auto_save_1):
10141         (1). (2).
10142         fix up gcpro's.
10143
10144         * frame-msw.c:
10145         * frame-msw.c (mswindows_init_frame_1):
10146         * frame-msw.c (mswindows_enable_frame):
10147         * frame-msw.c (error_frame_unsizable):
10148         * frame-msw.c (msprinter_init_frame_1):
10149         * frame-msw.c (msprinter_init_frame_3):
10150         * frame-msw.c (console_type_create_frame_mswindows):
10151         (2).
10152         implement new enable/disable frame methods.
10153
10154         * frame-x.c:
10155         * frame-x.c (x_enable_frame):
10156         * frame-x.c (console_type_create_frame_x):
10157         implement new enable/disable frame methods.
10158
10159         * frame.c:
10160         * frame.c (Fdisable_frame):
10161         * frame.c (syms_of_frame):
10162         * frame.h (struct frame):
10163         implement new enable/disable frame methods/functions.
10164
10165         * general-slots.h:
10166         add initial-focus.
10167
10168         * glyphs-msw.c (mswindows_widget_instantiate):
10169         comment that initial-focus should be implemented.
10170
10171         * glyphs-widget.c:
10172         * glyphs-widget.c (check_valid_instantiator):
10173         * glyphs-widget.c (check_valid_orientation):
10174         * glyphs-widget.c (check_valid_tab_orientation):
10175         * glyphs-widget.c (check_valid_justification):
10176         * glyphs-widget.c (check_valid_border):
10177         * glyphs-widget.c (check_valid_callback):
10178         * glyphs-widget.c (check_valid_int_or_function):
10179         * glyphs-widget.c (check_valid_string_or_vector):
10180         * glyphs-widget.c (check_valid_item_list_1):
10181         * glyphs-widget.c (widget_validate):
10182         * glyphs-widget.c (combo_box_validate):
10183         * glyphs-widget.c (widget_instantiate):
10184         * glyphs-widget.c (syms_of_glyphs_widget):
10185         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10186         * glyphs-widget.c (image_instantiator_combo_box):
10187         * glyphs-widget.c (image_instantiator_scrollbar):
10188         * glyphs-widget.c (image_instantiator_tab_control):
10189         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10190         (2).
10191         support (unimplemented) keyword initial-focus.
10192         reindent long macros.
10193
10194         * glyphs-x.c (x_redisplay_widget):
10195         * glyphs-x.c (x_button_instantiate):
10196         * glyphs-x.c (x_button_redisplay):
10197         * glyphs-x.c (x_progress_gauge_instantiate):
10198         * glyphs-x.c (x_edit_field_instantiate):
10199         * glyphs-x.c (x_combo_box_instantiate):
10200         * glyphs-x.c (x_tab_control_instantiate):
10201         * glyphs-x.c (x_label_instantiate):
10202         * gui-x.c:
10203         * gui-x.c (button_item_to_widget_value):
10204         * gui-x.c (gui_items_to_widget_values_1):
10205         * gui-x.c (gui_item_children_to_widget_values):
10206         * gui-x.c (gui_items_to_widget_values):
10207         * gui-x.h:
10208         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10209         add new flag to gui-parsing routines to indicate whether
10210         accelerator specs should be supported.
10211
10212         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10213
10214         * glyphs.h (struct Lisp_Image_Instance):
10215         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10216         add initial-focus flag.
10217
10218         * gui.c:
10219         * gui.c (syms_of_gui):
10220         * gui.c (vars_of_gui):
10221         clean up menu-no-selection-hook.
10222
10223         * gui.h:
10224         support delete-dialog-box-hook.
10225
10226         * lread.c (Fload_internal):
10227         * lread.c (locate_file_in_directory_mapper):
10228         (1).
10229
10230         * lrecord.h:
10231         * lrecord.h (struct toolbar_button):
10232         * lrecord.h (syms_of_toolbar):
10233         document how to create a new object.
10234
10235         * menubar-msw.c (mswindows_char_is_accelerator):
10236         may be called on frames w/o menus.
10237
10238         * menubar.c (vars_of_menubar):
10239         clean up :filter docs.
10240
10241         * nt.c (readdir):
10242         * ntproc.c:
10243         (1).
10244
10245         * process-nt.c:
10246         * process-nt.c (validate_signal_number):
10247         * process-nt.c (signal_cannot_launch):
10248         * process-nt.c (nt_create_process):
10249         * process-nt.c (nt_send_process):
10250         * process-nt.c (nt_kill_child_process):
10251         * process-nt.c (nt_open_network_stream):
10252         * process-nt.c (syms_of_process_nt):
10253         (2).
10254         delete quote-handling.  call new lisp code that does it better.
10255
10256         * process-unix.c (connect_to_file_descriptor):
10257         * process-unix.c (allocate_pty):
10258         * process-unix.c (unix_send_process):
10259         * process-unix.c (unix_kill_child_process):
10260         * process-unix.c (unix_open_network_stream):
10261         * process-unix.c (unix_open_multicast_group):
10262         (1). (2).
10263
10264         * process.c:
10265         * process.c (Fstart_process_internal):
10266         (2).  need to canonicalize process path even if absolute.
10267
10268         * select-msw.c (symbol_to_ms_cf):
10269         * select-msw.c (ms_cf_to_symbol):
10270         * select-msw.c (cf_is_autofreed):
10271         * select-msw.c (mswindows_destroy_selection):
10272         * select.c:
10273         * select.c (syms_of_select):
10274         * select.h:
10275         support dibv5, fix bugs. (from Mike Alexander)
10276
10277         * select.c (Fget_selection_internal):
10278         * select.c (select_convert_out):
10279
10280         * sysdep.c:
10281         * sysdep.c (xemacs_stat):
10282         renamed.
10283
10284         * sysdep.c (mkdir):
10285         * sysdep.c (rmdir):
10286         but keep original stat() here because we provide encapsulation
10287         around these funs.
10288
10289         * sysfile.h:
10290         * sysfile.h (fstat):
10291         remove stat garbage.
10292
10293         * syswindows.h:
10294         fix X/MSW conflict.
10295         don't include tchar.h.  it's inappropriate because it makes
10296         compile-time distinctions when we want runtime distinctions.
10297         (we provide our own tchar replacements)
10298
10299         * toolbar.c:
10300         use default object printer for toolbar-button.
10301
10302         * unexcw.c:
10303         make sure we don't encapsulate.
10304
10305         * window.c (vars_of_window):
10306         emphasize that temp-buffer-show-hook is obsolete.
10307
10308 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10309
10310         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10311         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10312
10313         * events.c (Fevent_timestamp_lessp):
10314         Not 64-bit clean.  Use EMACS_INT, not int.
10315
10316 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10317
10318         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10319         unsigned int and changed the last enum to
10320         lrecord_type_last_built_in_type.
10321         (lrecord_implementations_table): changed prototype to know how
10322         long the array is supposed to be.
10323         (lrecord_type_count): new unsigned int to keep track of the
10324         current number of lisp lrecord types.
10325         (DEFINE_EXTERNAL_LRECORD):
10326         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10327         dynamic-modules to declare new lisp types. They are the same
10328         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10329         int for each new type, and increment lrecord_type_count by 1.
10330
10331         * alloc.c (lrecord_implementations_table): Changed to reference
10332         lrecord_type_last_built_in_type for the size of the array.
10333         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10334
10335 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10336
10337         * glyphs.h (check_valid_item_list): Renamed from
10338         check_valid_item_list_1.
10339
10340 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10341
10342         * select.c (Qselect_coerce): New.
10343         * select.c (Vselection_coercion_alist): New.
10344         * select.c (syms_of_select): Declare.
10345         * select.c (get-selection-internal): Use it.
10346         Use the new select-coerce functionality.
10347
10348         * select.c (select_coerce): New.
10349         * select.h (select_coerce): Declare.
10350         New function to coerce one type of data into another.
10351
10352 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10353
10354         * callproc.c (Fcall_process_internal):
10355         (Fcall_process_internal):
10356         * process-unix.c (unix_create_process):
10357         Save and restore the value of errno, so that error messages are accurate.
10358
10359 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10360
10361         * elhash.c (print_hash_table):
10362         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10363         Prettify docstrings and indentation.
10364
10365 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10366
10367         * window.c (Fwindow_pixel_edges): Subtract frame border and
10368         gutter size.
10369
10370 2000-07-31  Andy Piper  <andy@xemacs.org>
10371
10372         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10373         will acknowledge the change.
10374
10375         * glyphs.h: declare tab_control_order_only_changed.
10376
10377         * glyphs-x.c (x_tab_control_redisplay): use
10378         tab_control_order_only_changed.
10379
10380         * glyphs-widget.c (tab_control_order_only_changed): new function.
10381
10382         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10383         tab_control_order_only_changed.
10384
10385         * gui.c (gui_item_equal_sans_selected): new function.
10386         (gui_item_equal): use it.
10387
10388         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10389         :properties in favor of :items..
10390
10391         * glyphs-widget.c (check_valid_item_list): rename from
10392         check_valid_item_list_1.
10393         (check_valid_item_list_1): renamed.
10394         (combo_box_validate): deprecate :properties in favor of :items.
10395         (widget_instantiate): ditto.
10396         (tab_control_update): ditto.
10397         (image_instantiator_combo_box): ditto.
10398         (image_instantiator_tree_view): ditto.
10399         (image_instantiator_tab_control): ditto.
10400         (layout_post_instantiate): remove dead code.
10401
10402         * print.c (debug_print_no_newline): only write to debugger if in
10403         WIN32_NATIVE.
10404
10405         * elhash.c (Fmake_hash_table): update doc string.
10406
10407         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10408         messages whilst in GC. This at least stops XEmacs crashing but has
10409         the potential for wierd behaviour.
10410
10411 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10412
10413         * config.h.in:
10414         Make existence of s&m files optional.
10415
10416         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10417         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10418         * s/gnu.h: Remove HAVE_GETLOADAVG.
10419         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10420         * s/sol2.h: Remove HAVE_GETLOADAVG.
10421         * lisp.h: Remove getloadavg() declaration.
10422         * fns.c:
10423         Include <sys/loadavg.h> if available.
10424         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10425         * config.h.in:  Group together getloadavg()-related macros.
10426         Use only configure-time tests to detect getloadavg().
10427
10428 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10429
10430         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10431
10432 2000-07-25  Andy Piper  <andy@xemacs.org>
10433
10434         * syswindows.h: add tchar.h for native builds.
10435
10436         * frame.c (syms_of_frame): remove set-glyph-image.
10437
10438         * general-slots.h: add Qset_glyph_image.
10439
10440         * glyphs-widget.c (layout_update): add domain arg to
10441         set-glyph-image.
10442         (syms_of_glyphs_widget): remove set-glyph-image.
10443
10444 2000-07-23  Ben Wing  <ben@xemacs.org>
10445
10446         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10447         Vpopup_frame_list.
10448
10449 2000-07-22  Andy Piper  <andy@xemacs.org>
10450
10451         * symsinit.h: add syms_of_win32().
10452
10453         * gui-msw.c (syms_of_gui_mswindows): remove
10454         Fmswindows_shell_execute.
10455         (Fmswindows_shell_execute): moved to win32.c.
10456
10457         * emacs.c (main_1): add syms_of_win32 ().
10458
10459         * win32.c (init_potentially_nonexistent_functions): rewrite in
10460         compiler-friendly terms.
10461         (Fmswindows_shell_execute): move here from gui-msw.c.
10462         (syms_of_win32): new.
10463
10464         * device-msw.c (Fmswindows_printer_list): clean up args to
10465         EnumPrinters.
10466         Don't include tchar under cygwin or mingw.
10467         (msprinter_default_printer): make cygwin-friendly.
10468
10469 2000-07-21  Andy Piper  <andy@xemacs.org>
10470
10471         * glyphs-widget.c (image_instantiator_tree_view): use tab
10472         control's update function.
10473         (layout_property): new function. Retrieve items.
10474
10475         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10476         function. Re-populate the tree view from the pending items.
10477
10478         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10479         is designated the parent if the domain is an image instance. This
10480         is needed so that dirtiness can be cascade up the hierarchy and
10481         thus for layout children to be redisplayed correctly.
10482         (allocate_image_instance): rename glyph -> parent.
10483
10484         * redisplay.h: change redisplay_output_layout signature.
10485
10486         * redisplay-msw.c (mswindows_output_display_block): use domain
10487         arg.
10488
10489         * redisplay-x.c (x_output_display_block): use domain arg.
10490
10491 2000-07-10  Andy Piper  <andy@xemacs.org>
10492
10493         * window.c (Fset_window_configuration): add comment.
10494
10495         * redisplay-output.c (compare_runes):
10496         (redisplay_output_subwindow): redisplay rather than update subwindow.
10497         (redisplay_output_layout): ditto.
10498
10499         * redisplay-msw.c (mswindows_frame_output_end):
10500         (mswindows_frame_output_end): make defer window pos optional.
10501
10502         * lisp.h: add Flast.
10503
10504         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10505         normalize method. Change update method to be for changed
10506         instantiators. Add redisplay method. Change signature of layout
10507         method.
10508         (struct Lisp_Image_Instance): add instantiator.
10509         (IMAGE_INSTANCE_INSTANTIATOR): new.
10510         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10511         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10512         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10513
10514         * glyphs.c:
10515         (find_instantiator_differences): new function.
10516         (Fset_instantiator_property): new convenience function.
10517         (check_image_instance_structure): strictly check for vector
10518         instantiators.
10519         (normalize_image_instantiator): make non-static.
10520         (instantiate_image_instantiator): pass on dest_mask and use new
10521         signatures for image_instance_layout and friends.
10522         (mark_image_instance): mark the instantiator. Mark the subwindow
10523         face not the widget face.
10524         (image_instance_equal): add instantiator.
10525         (image_instance_hash): ditto.
10526         (allocate_image_instance): ditto.
10527         (Fset_image_instance_property): removed.
10528         (Fimage_instance_file_name): ditto.
10529         (Fcolorize_image_instance): ditto.
10530         (image_instance_layout): add offsets to be set.
10531         (update_image_instance): new function. update an image instance
10532         from its changed instantiator.
10533         (inherit_normalize): add dest_mask.
10534         (xbm_normalize): ditto.
10535         (xface_normalize): ditto.
10536         (xpm_normalize): ditto.
10537         (text_update): set_property -> update.
10538         (image_instantiate): use the glyph identity as a hash key, not the
10539         instantiator.
10540         (glyph_width): use new image_instance_layout signature.
10541         (glyph_ascent): ditto.
10542         (glyph_descent): ditto.
10543         (glyph_height): ditto.
10544         (glyph_query_geometry): ressurrect.
10545         (glyph_layout): ditto.
10546         (redisplay_subwindow): update -> redisplay.
10547         (syms_of_glyphs): add Fset_instantiator_property.
10548         (image_instantiator_format_create): set_property -> update.
10549
10550         * glyphs-x.c:
10551         (autodetect_normalize): add dest_maks to signature.
10552         (x_redisplay_subwindow): update -> redisplay.
10553         (x_redisplay_widget): ditto.
10554         (x_button_redisplay): ditto.
10555         (x_progress_gauge_redisplay): ditto.
10556         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10557         stacking order.
10558         (console_type_create_glyphs_x): update -> redisplay.
10559         (image_instantiator_format_create_glyphs_x): ditto.
10560
10561         * glyphs-widget.c:
10562         (check_valid_instantiator): disallow glyphs in the instantiator,
10563         they must now be vectors.
10564         (check_valid_instantiator_list): ditto.
10565         (glyph_instantiator_to_glyph): use internal symbol rather than
10566         intern.
10567         (widget_update): renamed from widget_set_property. Call cascaded
10568         update methods.
10569         (redisplay_widget): renamed from update_widget.
10570         (widget_layout): image_instance_layout now takes position as well
10571         as size.
10572         (widget_normalize): ditto.
10573         (widget_instantiate): ditto.
10574         (tab_control_query_geometry) ditto.:
10575         (tab_control_update): renamed from tab_control_set_property.
10576         (progress_gauge_update): set_property -> update.
10577         (layout_normalize): rewrite so that child instantiators are
10578         normalized also.
10579         (layout_update): new function. Create glyphs from the normalized
10580         children and cope with any other layout keywords. We do not
10581         instantiate children here that will be take care of by
10582         redisplay_output_layout.
10583         (layout_instantiate): call layout_update and not much else.
10584         (layout_post_instantiate): not sure whether this is needed
10585         anymore.
10586         (layout_query_geometry): query glyph geometry rather than
10587         image_instance geometry.
10588         (layout_layout): set offsets from pass in parameters. Use glyph
10589         geometry and layout functions rather than image instance ones.
10590         (native_layout_layout): ditto.
10591         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10592         (image_instantiator_widget): set_property -> update.
10593         (image_instantiator_buttons): ditto.
10594         (image_instantiator_progress_guage): ditto.
10595         (image_instantiator_tab_control): ditto.
10596         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10597         (image_instantiator_layout): add update method.
10598
10599         * glyphs-msw.c (bmp_normalize):
10600         (mswindows_resource_normalize): add dest_mask so that it can be
10601         proprogated by layout_normalize.
10602         (begin_defer_window_pos): make optional because it may not be the
10603         right thing to do and it introduces differences with X.
10604         (mswindows_unmap_subwindow): ditto.
10605         (mswindows_map_subwindow): ditto.
10606         (mswindows_redisplay_subwindow): renamed from
10607         mswindows_update_subwindow.
10608         (mswindows_redisplay_widget): ditto.
10609         (mswindows_button_redisplay): renamed from
10610         mswindows_button_update. Update is now what the instantiation
10611         function does for a changed instantiator.
10612         (mswindows_progress_gauge_instantiate): set the progress value
10613         here if appropriate.
10614         (mswindows_tab_control_redisplay): cope with re-ordering of the
10615         members of the tab widget by simply selecting the new top
10616         widget. This makes things appear ok if you click on a tab.
10617         (mswindows_combo_box_instantiate): image_instance_layout now takes
10618         position as well as size.
10619         (mswindows_progress_gauge_redisplay): renamed from
10620         mswindows_progress_gauge_update.
10621         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10622         (image_instantiator_format_create_glyphs_mswindows): ditto.
10623
10624         * glyphs-eimage.c (jpeg_normalize):
10625         (gif_normalize):
10626         (png_normalize):
10627         (tiff_normalize): add dest_mask so that it can be proprogated by
10628         layout_normalize.
10629
10630         * elhash.c:
10631         (print_hash_table):
10632         (hash_table_weakness_validate):
10633         (decode_hash_table_weakness):
10634         (Fhash_table_weakness):
10635         (Fhash_table_type):
10636         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10637
10638         * console.h (struct console_methods): move update_* to
10639         redisplay_*.
10640
10641 2000-07-20  Ben Wing  <ben@xemacs.org>
10642
10643         * *.[ch] (XSETOBJ): remove unused middle argument.
10644         lisp-disunion.h: correct wrap_object() to one argument.
10645
10646 2000-07-15  Ben Wing  <ben@xemacs.org>
10647
10648         * s/cygwin32.h:
10649         * s/cygwin32.h (CYGWIN_CONV_PATH):
10650         Add missing logb prototype for v1.1.
10651         Use post-b20 names and alias to pre-b20 names when pre-b20.
10652
10653         * s/windowsnt.h: [5].
10654
10655 2000-07-15  Ben Wing  <ben@xemacs.org>
10656
10657         * Makefile.in.in (x_objs):
10658         * Makefile.in.in (sheap_objs):
10659         * Makefile.in.in (objs):
10660         added win32.o, cosmetic cleanups.
10661
10662         * alloc.c (Fmake_byte_code):
10663         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10664         etc. macros which declare their own args now.
10665
10666         * alloc.c (syms_of_alloc):
10667         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10668
10669         * buffer.c:
10670         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10671
10672         * buffer.c (Fget_file_buffer):
10673         Fixed GCPRO problem.
10674
10675         * buffer.c (get_truename_buffer):
10676         Fixed comment about GC checking.
10677
10678         * buffer.c (syms_of_buffer):
10679         Undeclared those dedicated frame funs.
10680         [2].
10681
10682         * buffer.h:
10683         Define convenience macros for internal/external conversions.
10684         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10685         and Qenvironment_variable_encoding for cleaner code.
10686
10687         * bufslots.h:
10688         Remove dedicated-frame; in lisp.
10689
10690         * bytecode.c (funcall_compiled_function):
10691         [1].
10692
10693         * bytecode.c (syms_of_bytecode):
10694         [2].
10695
10696         * console-msw.c:
10697         * console-msw.c (mswindows_show_console): Rewrote.
10698
10699         * console-msw.c (Fmswindows_debugging_output): New.
10700         Sends to OutputDebugString (special MSWin debugger interface).
10701
10702         * console-msw.c (Fmswindows_message_box):
10703         Fixed stupid bugs so it works when called from kill-emacs.
10704
10705         * console-msw.c (syms_of_console_mswindows):
10706         Declare Fmswindows_debugging_output.
10707
10708         * console-msw.h:
10709         New MSWin prototypes.
10710
10711         * console-msw.h (struct mswindows_frame):
10712         New entry last-click-mods for improved button-modifier support.
10713
10714         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10715         New struct entry `popup' with corresponding accessor.
10716
10717         * console-x.c:
10718         * console-x.c (split_up_display_spec):
10719         * console-x.c (get_display_arg_connection):
10720         * console-x.c (x_semi_canonicalize_console_connection):
10721         * console-x.c (x_canonicalize_device_connection):
10722         [[[6]]]: Change char to more specific type.
10723         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10724
10725         * console-x.c (x_semi_canonicalize_console_connection):
10726         * console-x.c (x_canonicalize_device_connection):
10727         [[[9]]]: Fix up error signalling to use new structured error system.
10728
10729         * console-x.h:
10730         [[[4]]]: Define codesys aliases:
10731         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10732         Qx_color_name_encoding, Qx_display_name_encoding.
10733
10734         * console.h (struct console_methods):
10735         New method make_dialog_box_internal supersedes older
10736         popup_dialog_box method.
10737
10738         * data.c:
10739         Define many new errors, part of new structured errors.
10740
10741         * data.c (init_errors_once_early):
10742         * data.c (syms_of_data):
10743         [2].
10744
10745         * device-msw.c (mswindows_init_device):
10746         [[[5]]]: Cleanup to support NT 3.51.
10747
10748         * device-msw.c (decode_devmode): Cleanup.
10749
10750         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10751         * device-msw.c (mswindows_handle_print_dialog_box):
10752         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10753         * device-msw.c (syms_of_device_mswindows):
10754         Delete the dialog box primitives recently introduced by Kirill and
10755         instead interface to general dialog box interface.
10756
10757         * device-x.c:
10758         * device-x.c (compute_x_app_name):
10759         * device-x.c (x_init_device):
10760         * device-x.c (Fx_valid_keysym_name_p):
10761         * device-x.c (Fx_set_font_path):
10762         [6].
10763         [7].
10764
10765         * device.h (wrap_device): New.
10766         First of its kind; meant to replace XSETDEVICE.
10767
10768         * dialog-msw.c: Many file-dialog symbols.
10769
10770         * dialog-msw.c (mswindows_register_popup_frame): New.
10771         * dialog-msw.c (mswindows_is_dialog_msg): New.
10772         For supporting kbd traversal in dialog boxes.
10773
10774         * dialog-msw.c (dialog_proc):
10775         Support hitting ESC in dialogs.
10776
10777         * dialog-msw.c (struct):
10778         Common dialog box errors.
10779
10780         * dialog-msw.c (handle_file_dialog_box): New.
10781         Add file dialog code.
10782
10783         * dialog-msw.c (handle_question_dialog_box):
10784         Redo existing code to support new question dialog syntax.
10785
10786         * dialog-msw.c (console_type_create_dialog_mswindows):
10787         We support new dialog console method.
10788
10789         * dialog-msw.c (syms_of_dialog_mswindows):
10790         * dialog-msw.c (vars_of_dialog_mswindows):
10791         New file dialog symbols, vars.
10792
10793         * dialog-x.c:
10794         * dialog-x.c (maybe_run_dbox_text_callback):
10795         * dialog-x.c (dbox_descriptor_to_widget_value):
10796         * dialog-x.c (x_make_dialog_box_internal):
10797         * dialog-x.c (console_type_create_dialog_x):
10798         Mule-ize entire file.
10799         Redo to support question dialog syntax.
10800         [6].
10801
10802         * dialog.c:
10803         * dialog.c (Fmake_dialog_box_internal):
10804         * dialog.c (syms_of_dialog):
10805         Kill old popup-dialog-box, replace with new primitive.
10806         Just call device method or signal error.
10807
10808         * eldap.c (Fldap_open):
10809         * eldap.c (Fldap_search_basic):
10810         * eldap.c (Fldap_add):
10811         * eldap.c (Fldap_modify):
10812         [1].
10813         [7].
10814
10815         * emacs.c:
10816         * emacs.c (make_arg_list_1):
10817         * emacs.c (make_arg_list):
10818         Mule-ize call to dll_init().
10819         [6].
10820         [8].
10821
10822         * emacs.c (make_argc_argv):
10823         * emacs.c (free_argc_argv):
10824         * emacs.c (init_cmdargs):
10825         * emacs.c (main_1):
10826         * emacs.c (Fkill_emacs):
10827         * emacs.c (Fdump_emacs):
10828         Update comments about what can be used in syms_* etc.
10829         Call init_win32() when necessary.
10830         Fix up MS Win dialog box in kill-buffer to actually work right.
10831         [7].
10832
10833         * eval.c:
10834         * eval.c (For):
10835         * eval.c (Fand):
10836         * eval.c (Fprogn):
10837         * eval.c (Fprog1):
10838         * eval.c (Fprog2):
10839         * eval.c (FletX):
10840         * eval.c (Flet):
10841         * eval.c (condition_case_3):
10842         * eval.c (Feval):
10843         * eval.c (function_argcount):
10844         * eval.c (funcall_lambda):
10845         [1].
10846
10847         * eval.c (type_error): New.
10848         * eval.c (maybe_type_error): New.
10849         * eval.c (continuable_type_error): New.
10850         * eval.c (maybe_continuable_type_error): New.
10851         * eval.c (type_error_with_frob): New.
10852         * eval.c (maybe_type_error_with_frob): New.
10853         * eval.c (continuable_type_error_with_frob): New.
10854         * eval.c (maybe_continuable_type_error_with_frob): New.
10855         New functions for use with structured errors.
10856
10857         * event-Xt.c:
10858         * event-Xt.c (x_event_to_emacs_event):
10859         Buttons are now modifiers too.
10860
10861         * event-Xt.c (emacs_Xt_current_event_timestamp):
10862         Implement new event method.
10863         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10864
10865         * event-msw.c:
10866         * event-msw.c (ntpipe_shove_writer): [5].
10867         * event-msw.c (mswindows_enqueue_mouse_button_event):
10868         * event-msw.c (mswindows_drain_windows_queue):
10869         * event-msw.c (mswindows_wnd_proc): [7].
10870         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10871         * event-msw.c (mswindows_modifier_state):
10872         Throughout: support new button modifiers.
10873
10874         * event-msw.c (emacs_mswindows_current_event_timestamp):
10875         Implement new event method.
10876         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10877
10878         * event-stream.c:
10879         * event-stream.c (event_stream_current_event_timestamp): New.
10880         * event-stream.c (maybe_kbd_translate): New functionality.
10881         * event-stream.c (vars_of_event_stream):
10882         Document new kbd-translate-table functionality.
10883
10884         * event-stream.c (Fcurrent_event_timestamp): New.
10885         New primitive for use in fabricated events.
10886         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10887
10888         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10889
10890         * events.c:
10891         * events.c (Fmake_event):
10892         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10893         [1].
10894         [9].
10895
10896         * events.c (format_event_object): fix gcc warnings.
10897
10898         * events.c (Fevent_timestamp): Document new primitives.
10899
10900         * events.c (TIMESTAMP_HALFSPACE): New.
10901
10902         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10903         comparing timestamps correctly (half-space algorithm).
10904
10905         * events.c (Fevent_modifier_bits): Doc fix.
10906
10907         * events.c (Fevent_modifiers): Major doc addition.
10908         * events.c (event_x_y_pixel_internal): Typo fix.
10909         * events.c (syms_of_events): Declare new primitives.
10910
10911         * events.h:
10912         Update long comment for button modifiers, timestamps.
10913
10914         * events.h (struct event_stream):
10915         New current_event_timestamp method.
10916
10917         * extents.c:
10918         * extents.c (extent_in_region_p):
10919         * extents.c (decode_extent):
10920         * extents.c (Fset_extent_parent):
10921         * extents.c (decode_map_extents_flags):
10922         Fix gcc warnings.
10923         [9].
10924
10925         * extents.c (struct extent_at_arg):
10926         * extents.c (decode_extent_at_flag):
10927         * extents.c (extent_at_mapper):
10928         * extents.c (extent_at_bytind):
10929         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10930         * extents.c (Fextents_at): New primitive. [9].
10931         * extents.c (symbol_to_glyph_layout): [9].
10932         Support new primitive `extents-at'.
10933
10934
10935         * extents.c (get_text_property_bytind):
10936         extent_at_bytind has another arg.
10937         [9].
10938
10939         * extents.c (syms_of_extents): New primitive.
10940
10941         * file-coding.c (Fmake_coding_system): [1].
10942         * file-coding.c (subsidiary_coding_system): fix gcc warning
10943         * file-coding.c (syms_of_file_coding): [2].
10944
10945         * fileio.c (Fexpand_file_name):
10946         * fileio.c (Fsysnetunam):
10947         * fileio.c (Ffile_exists_p):
10948         * fileio.c (Ffile_executable_p):
10949         * fileio.c (Fverify_visited_file_modtime):
10950         Clean up GCPROing.
10951
10952         * fileio.c (syms_of_fileio): [2].
10953
10954         * filelock.c (lock_file_1):
10955         * filelock.c (current_lock_owner):
10956         * filelock.c (lock_if_free):
10957         * filelock.c (lock_file):
10958         * filelock.c (unlock_file):
10959         Clean up GCPROing.
10960
10961         * fns.c (concat): Fix gcc warning.
10962
10963         * fns.c (Fmember):
10964         * fns.c (Fold_member):
10965         * fns.c (Fmemq):
10966         * fns.c (Fold_memq):
10967         * fns.c (memq_no_quit):
10968         * fns.c (Fassoc):
10969         * fns.c (Fold_assoc):
10970         * fns.c (Fassq):
10971         * fns.c (Fold_assq):
10972         * fns.c (assq_no_quit):
10973         * fns.c (Frassoc):
10974         * fns.c (Fold_rassoc):
10975         * fns.c (Frassq):
10976         * fns.c (Fold_rassq):
10977         * fns.c (rassq_no_quit):
10978         * fns.c (Fdelete):
10979         * fns.c (Fold_delete):
10980         * fns.c (Fdelq):
10981         * fns.c (Fold_delq):
10982         * fns.c (delq_no_quit):
10983         * fns.c (Fremassoc):
10984         * fns.c (Fremassq):
10985         * fns.c (remassq_no_quit):
10986         * fns.c (Fremrassoc):
10987         * fns.c (Fremrassq):
10988         * fns.c (remrassq_no_quit):
10989         * fns.c (Freverse):
10990         * fns.c (mapcar1):
10991         [1].
10992
10993         * frame-msw.c (mswindows_init_frame_1):
10994         * frame-msw.c (mswindows_delete_frame):
10995         Register popups with dialog code so keyboard traversing works.
10996
10997         * frame-tty.c (tty_raise_frame_no_select): [1].
10998
10999         * frame-x.c:
11000         * frame-x.c (x_set_frame_text_value):
11001         * frame-x.c (x_set_frame_properties):
11002         * frame-x.c (x_create_widgets):
11003         [7].
11004
11005         * frame.c:
11006         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11007
11008         * frame.h (wrap_frame): New.
11009         Macro like wrap_device.
11010
11011         * general.c:
11012         * general.c (SYMBOL):
11013         * general.c (syms_of_general):
11014         Major reorg.  This is now just a wrapper and symbols themselves
11015         are listed in general-slots.h.
11016
11017         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11018         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11019
11020         * glyphs-msw.c (mswindows_native_layout_instantiate):
11021         Add DS_CONTROL so keyboard traversal will work.
11022
11023         * glyphs-widget.c:
11024         * glyphs-widget.c (syms_of_glyphs_widget):
11025         Move some symbols to general-slots.h.
11026
11027         * glyphs-x.c:
11028         * glyphs-x.c (xbm_instantiate_1):
11029         * glyphs-x.c (x_xbm_instantiate):
11030         * glyphs-x.c (x_xface_instantiate):
11031         * glyphs-x.c (autodetect_instantiate):
11032         * glyphs-x.c (cursor_font_instantiate):
11033         * glyphs-x.c (x_update_widget):
11034         * glyphs-x.c (x_widget_instantiate):
11035         * glyphs.c (bitmap_to_lisp_data):
11036         * glyphs.c (pixmap_to_lisp_data):
11037         [7].
11038
11039         * glyphs.c (syms_of_glyphs):
11040         [2].
11041
11042         * gui-x.c:
11043         * gui-x.c (print_widget_value):
11044         * gui-x.c (menu_separator_style_and_to_external):
11045         * gui-x.c (add_accel_and_to_external):
11046         * gui-x.c (button_item_to_widget_value):
11047         * gui-x.c (gui_items_to_widget_values_1):
11048         * gui-x.c (gui_items_to_widget_values):
11049         * gui-x.c (syms_of_gui_x):
11050         * gui-x.c (vars_of_gui_x):
11051         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11052         [9].
11053
11054         * gui-x.h:
11055         Muleize, prototype changes matching gui-x.c.
11056
11057         * gui.c:
11058         * gui.c (separator_string_p):
11059         * gui.c (gui_item_add_keyval_pair):
11060         * gui.c (make_gui_item_from_keywords_internal):
11061         * gui.c (signal_too_long_error):
11062         * gui.c (parse_gui_item_tree_item):
11063         * gui.c (syms_of_gui):
11064         * gui.c (vars_of_gui):
11065         * gui.h:
11066         menu-no-selection-hook moved here (used by MSWin).
11067         Move some symbols to general-slots.h.
11068         [6].
11069         [9].
11070
11071         * insdel.c (get_buffer_pos_char):
11072         * insdel.c (get_buffer_range_char):
11073         Add GC comments.
11074
11075         * keymap.c (keymap_lookup_directly):
11076         * keymap.c (keymap_store):
11077         * keymap.c (ensure_meta_prefix_char_keymapp):
11078         * keymap.c (describe_map):
11079         * keymap.h:
11080         Support new button modifiers.
11081
11082         * lisp-disunion.h (wrap_object):
11083         * lisp-disunion.h (XSETOBJ):
11084         Rename make_obj to wrap_object.
11085
11086         * lisp-union.h:
11087         * lisp-union.h (make_int):
11088         * lisp-union.h (make_char):
11089         Support wrap_object.
11090
11091         * lisp.h:
11092         * lisp.h (LIST_LOOP):
11093         * lisp.h (EXTERNAL_LIST_LOOP):
11094         * lisp.h (LIST_LOOP_2):
11095         * lisp.h (EXTERNAL_LIST_LOOP_1):
11096         * lisp.h (EXTERNAL_LIST_LOOP_2):
11097         * lisp.h (EXTERNAL_LIST_LOOP_3):
11098         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11099         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11100         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11101         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11102         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11103         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11104         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11105         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11106         * lisp.h (struct Lisp_Symbol):
11107         * lisp.h (maybe_continuable_error_with_frob):
11108         Fix up section comments.
11109         Add new types for char to indicate usage.
11110         Delete symbols auto-generated from general-slots.h.
11111         Add prototypes for structured error functions.
11112         Add long comments describing looping macros and change interface
11113         so that lvalues are automatically declared.
11114         Add NO_DECLARE macro in case callers want to declare lvalues
11115         themselves.
11116
11117         * lread.c (read_syntax_error):
11118         * lread.c (continuable_read_syntax_error):
11119         * lread.c (read_structure):
11120         * lread.c (sequence_reader):
11121         * lread.c (read_list_conser):
11122         * lread.c (read_compiled_function):
11123         Rename syntax_error and continuable_syntax_error to avoid clash
11124         with same-named structured error functions.
11125
11126         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11127         * menubar-msw.c (populate_menu_add_item):
11128         * menubar-msw.c (populate_or_checksum_helper):
11129         [5].
11130         [9].
11131
11132         * menubar-x.c:
11133         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11134         Mule-ize whole file.
11135
11136         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11137
11138         * mule-charset.c (Fmake_charset):
11139         * mule-wnnfns.c (Fwnn_set_param):
11140         [1].
11141
11142         * ntproc.c (create_child):
11143         * ntproc.c (Fwin32_set_current_locale):
11144         Add comments portending doom.
11145
11146         * objects-msw.c:
11147         * objects-msw.c (old_font_enum_callback_2):
11148         * objects-msw.c (font_enum_callback_1):
11149         * objects-msw.c (mswindows_enumerate_fonts):
11150         [5].
11151
11152         * objects-x.c:
11153         * objects-x.c (allocate_nearest_color):
11154         * objects-x.c (x_parse_nearest_color):
11155         * objects-x.c (x_initialize_color_instance):
11156         * objects-x.c (x_print_color_instance):
11157         * objects-x.c (x_finalize_color_instance):
11158         * objects-x.c (x_valid_color_name_p):
11159         * objects-x.c (x_initialize_font_instance):
11160         * objects-x.c (x_print_font_instance):
11161         * objects-x.c (valid_x_font_name_p):
11162         * objects-x.c (truename_via_FONT_prop):
11163         * objects-x.c (truename_via_random_props):
11164         * objects-x.c (truename_via_XListFonts):
11165         * objects-x.c (x_font_truename):
11166         * objects-x.c (x_font_instance_truename):
11167         * objects-x.c (x_font_instance_properties):
11168         * objects-x.c (x_list_fonts):
11169         * objects-x.c (x_find_charset_font):
11170         Mule-ize entire file.
11171         [7].
11172
11173         * objects-x.h:
11174         Mule-verify.
11175
11176         * print.c:
11177         * print.c (std_handle_out_external):
11178         * print.c (debug_print_no_newline):
11179         * print.c (syms_of_print):
11180         Output to all debugger kinds in debug-print.
11181         Fix console-output code under MSWin to actually work.
11182
11183         * process-nt.c (send_signal):
11184         * process-nt.c (nt_create_process):
11185         Use newer Unicode macros.
11186
11187         * process-unix.c (unix_create_process):
11188         * process-unix.c (unix_canonicalize_host_name):
11189         * process-unix.c (unix_open_network_stream):
11190         [7].
11191
11192         * scrollbar-x.c:
11193         Mule-verify.
11194
11195         * search.c (syms_of_search):
11196         [2].
11197
11198         * select-msw.c (mswindows_destroy_selection):
11199         Use LIST_LOOP_2.
11200
11201         * select-x.c (symbol_to_x_atom):
11202         [7].
11203
11204         * select.c (syms_of_select):
11205         [2].
11206
11207         * sound.c (Fplay_sound_file):
11208         [7].
11209
11210         * specifier.c:
11211         * specifier.c (decode_specifier_type):
11212         * specifier.c (Fvalid_specifier_locale_type_p):
11213         * specifier.c (check_valid_locale_or_locale_type):
11214         * specifier.c (decode_locale):
11215         * specifier.c (decode_locale_type):
11216         * specifier.c (decode_locale_list):
11217         * specifier.c (check_valid_domain):
11218         * specifier.c (decode_specifier_tag_set):
11219         * specifier.c (Fcanonicalize_tag_set):
11220         * specifier.c (Fdefine_specifier_tag):
11221         * specifier.c (Fspecifier_tag_predicate):
11222         * specifier.c (check_valid_inst_list):
11223         * specifier.c (check_valid_spec_list):
11224         * specifier.c (decode_how_to_add_specification):
11225         * specifier.c (check_modifiable_specifier):
11226         * specifier.c (specifier_add_spec):
11227         * specifier.c (boolean_validate):
11228         * specifier.c (display_table_validate):
11229         [9].
11230
11231         * specifier.c (syms_of_specifier):
11232         Move some symbols to general-slots.h.
11233         [2].
11234
11235         * symbols.c:
11236         * symbols.c (Fmapatoms):
11237         * symbols.c (Fapropos_internal):
11238         Add GCPROs.
11239
11240         * symbols.c (set_default_buffer_slot_variable):
11241         * symbols.c (set_default_console_slot_variable):
11242         [1].
11243
11244         * symbols.c (defsymbol_massage_name_1):
11245         * symbols.c (defkeyword_massage_name):
11246         * symbols.c (deferror_1):
11247         * symbols.c (deferror):
11248         * symbols.c (deferror_massage_name_and_message):
11249         * symeval.h:
11250         * symeval.h (DEFSYMBOL):
11251         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11252
11253         * symbols.c (syms_of_symbols):
11254         [2].
11255
11256         * symsinit.h:
11257         * symsinit.h (init_win32): New.
11258         Also new is syms_of_dialog_mswindows.
11259
11260         * syswindows.h:
11261         Add new Unicode macros, missing Cygwin wide-char functions,
11262         convenience conversion macros for Qmswindows_tstr, macros for
11263         encapsulating required MSWin <-> Cygwin filename conversions,
11264         prototype for dynamically-extracted (not in NT 3.51) functions.
11265
11266         * toolbar-x.c:
11267         Mule-verify.
11268
11269         * tooltalk.c (Fadd_tooltalk_message_arg):
11270         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11271         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11272         [7].
11273
11274         * tooltalk.c (syms_of_tooltalk):
11275         [2].
11276
11277         * unexnt.c:
11278         * unexnt.c (unexec):
11279         Fix up headers, declaration of unexec() to be more standard.
11280
11281 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11282
11283         * offix.h: Revert change to guard macros - they're used in offix.c!
11284
11285 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11286
11287         * lisp.h: Defsubred Fdelete.
11288
11289         * console-msw.h:  (msprinter_default_printer): Added.
11290
11291         * console-msw.c (msprinter_canonicalize_console_connection):
11292         (msprinter_canonicalize_device_connection): Added.
11293
11294         * device-msw.c (msprinter_default_printer):
11295         (Fmswingows_get_default_printer):
11296         (signal_enum_priner_error):
11297         (Fmswingows_printer_list): Added.
11298
11299 2000-07-19  Martin Buchholz <martin@xemacs.org>
11300
11301         * XEmacs 21.2.35 is released.
11302
11303 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11304
11305         * select-x.c (x_handle_selection_request):
11306         Text selected in xemacs and pasted into xterm failed to appear.
11307         Spelling fixes and cosmetic changes.
11308
11309 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11310
11311         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11312         XEmacs frame (fix for doubling chars in dialog boxes).
11313
11314 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11315
11316         * select.c (select_convert_in, select_convert_out):
11317         Don't call intern() every time.
11318
11319         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11320         * select.c (vars_of_select): Initialise them.
11321
11322 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11323
11324         * select.c (selection-coercible-types): New.
11325
11326         * select.c (own-selection-internal):
11327         * select.c (get-selection-internal):
11328         MULE bug fix - these should default to COMPOUND_TEXT and not
11329         STRING for MULE. I think.
11330
11331         * select.c (select_convert_out): Use selection-coercible-types
11332         to find types that we can attempt to perform coercions on.
11333
11334 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11335
11336         * mule-wnnfns.c:
11337         * mule-canna.c:
11338         Add coding: cookie to identify encoding.
11339
11340         * mule-canna.c (CANNA_mode_keys): make static.
11341         Use proper prototypes, even for functions of no arguments.
11342         Remove external prototype for Fding().
11343
11344         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11345
11346         * select.c (syms_of_select): Add missing DEFSUBR.
11347
11348 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11349
11350         * select.c (get_selection_internal, own_selection_internal):
11351         Make the type default to STRING, rather than placing a nil type
11352         into Vselection_alist.
11353
11354 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11355
11356         * gpmevent.c (tty_selection_exists_p):
11357         * gpmevent.c (tty_own_selection):
11358         Updated parameter lists.
11359
11360 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11361
11362         * select.h (selection-alist): Removed declaration.
11363
11364         * select.h (get_local_selection):
11365         * select.c (get_local_selection):
11366         Made static.
11367
11368         * select.h (convert_selection): Removed declaration.
11369         * select.c (convert_selection): Removed.
11370         This function belongs in Lisp.
11371
11372         * select.h (select_convert_in): Declare.
11373         * select.h (select_convert_out): Declare.
11374         * select.c (select_convert_in): New.
11375         * select.c (select_convert_out): New.
11376         New conversion functions for other files to call.
11377
11378         * select.h (select_notify_buffer_kill): Declare.
11379         * select.c (select_notify_buffer_kill): New.
11380         New functions that get called from kill-buffer.
11381
11382         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11383         X-specific lisp code.
11384
11385         * select.h: Declare some of the lisp-visible functions for
11386         external use.
11387
11388         * select.c (clean_local_selection_data): Removed. This was
11389         a disgusting function, and previously should have been in
11390         select-x.c in any case. The functionality is now provided
11391         in select-convert-from-integer (select.el).
11392
11393         * select.c (available-selection-types): Fixed stupidity where
11394         INTEGER and ATOM got added twice. Also add STRING when we see an
11395         extent.
11396
11397         * select.c (get-selection-internal): Removed symbol stripping. No
11398         longer causes conversion when data comes from the internal cache.
11399
11400         * select.c (syms_of_select): Added new functions.
11401
11402         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11403         error checking - previously this called abort!
11404
11405         * select-x.c (x_own_selection): Changed comment.
11406
11407         * select-x.c (x_handle_selection_request): Use select_convert_out.
11408         Don't mess with selection-alist; it's an internal variable of select.c.
11409
11410         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11411
11412         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11413         rather than messing with selection-alist.
11414
11415         * select-msw.c (mswindows_get_foreign_selection):
11416         Use TO_INTERNAL_FORMAT rather than hacking.
11417
11418 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11419
11420         * process-unix.c (unix_open_multicast_group):
11421         (unix_open_multicast_group): Remove useless casts.
11422
11423 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11424
11425         * sound.c (Fplay_sound): Fix `unused variable' warning.
11426
11427         * emacs.c (main): Use correct type for _environ on SCO5.
11428
11429 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11430
11431         * console.h (own_selection_method):
11432         * console.h (selection_exists_p_method):
11433         * console.h (available_selection_types_method): New.
11434         * console.h (register_selection_data_type_method): New.
11435         * console.h (selection_data_type_name): New.
11436
11437         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11438         function & alist to track GlobalAlloc()'d handles that need
11439         releasing when the clipboard data gets replaced or emptied.
11440
11441         * event-msw.c (mswindows_wnd_proc): Call it.
11442
11443         * lisp.h, general.c (Qappend): New symbol representing a
11444         `how-to-add' mode.
11445
11446         * select.c (own-selection-internal):
11447         * select.c (selection-exists-p):
11448         * select.c (available-selection-types): New.
11449         * select.c (register-selection-data-type): New.
11450         * select.c (selection-data-type-name): New.  New functions to deal
11451         with device-specific selection data formats.
11452         * select.c (selection-converter-out-alist): Renamed.
11453         * select.c (selection-converter-in-alist): New.
11454         * select.c (selection-appender-alist): New.  Added new alists.
11455         * select.c (syms_of_select, vars_of_select): Added new symbols &
11456         variables.
11457         * select.c (get_local_selection): Split.
11458         * select.c: Removed spurious type checking - selections may now be
11459         of any type, not just strings.
11460         * select.c (own-selection-internal):
11461
11462         * select.h, select.c (convert_selection): New. Created
11463         convert_selection() function based on get_local_selection().
11464         * select.h, select.c (QCF_*): New symbols representing mswindows
11465         clipboard formats.
11466         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11467         symbols representing `how-to-add' modes.
11468
11469         * select-msw.c (x_sym_p): New.
11470         * select-msw.c (symbol_to_ms_cf): New.
11471         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11472         symbols & clipboard formats. Can also handle string names.
11473         * select-msw.c (mswindows_own_selection):
11474         * select-msw.c (mswindows_selection_exists_p):
11475         Added `data-type' parameter. Use it.
11476         * select-msw.c (mswindows_available_selection_types): New.
11477         * select-msw.c (mswindows_register_selection_data_type): New.
11478         * select-msw.c (mswindows_selection_data_type_name): New.
11479         * select-msw.c (mswindows_own_selection):
11480         * select-msw.c (mswindows_get_foreign_selection):
11481         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11482         * select-msw.c (console_create_select_mswindows): Added new methods.
11483         * select-msw.c (mswindows_destroy_selection): New.
11484         * select-msw.c (Vhandle_alist): New list.
11485         * select-msw.c (mswindows_own_selection):
11486
11487         * select-x.c (x_own_selection):
11488         * select-x.c (x_selection_exists_p):
11489         * select-x.c: Added some comments about maybe using new
11490         functionality.
11491         * select-x.c (x_own_selection):
11492
11493         * specifier.c: Remove definition of Qappend (now in general.c)
11494         * specifier.c (syms_of_specifier): Remove Qappend.
11495
11496 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11497
11498         * config.h.in: Add socklen_t.
11499
11500         * s/decosf4-0.h: No special compiler flags needed or desired.
11501         In particular, undefine _BSD for DEC OSF 4.0.
11502
11503 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11504
11505         * redisplay-msw.c (msprinter_frame_output_end): Added.
11506         (console_type_create_redisplay_mswindows): Referred the above.
11507
11508         * frame.c (setup_frame_without_minibuffer): Do not create a
11509         default minibuffer frame on a printer device.
11510
11511         * frame-msw.c (apply_dc_geometry): Added.
11512         (msprinter_start_page):
11513         (msprinter_init_frame_3):
11514         (msprinter_eject_page): Use it.
11515
11516         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11517         and removed residual duplex and orientation properties.
11518
11519 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11520
11521         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11522
11523         * unexalpha.c: Remove system prototypes from C sources!
11524
11525 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11526
11527         * eval.c: Remove references to M-x edit-options in DEFUNs for
11528         `defvar' and `defconst'.
11529
11530 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11531
11532         * config.h.in: Remove SMART_INCLUDE hackery.
11533
11534         PostgreSQL hacking:
11535         * config.h.in: Don't use SMART_INCLUDE.
11536
11537         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11538         * inline.c: Simply #include "postgresql.h"
11539         * postgresql.c:
11540         - Don't use SMART_INCLUDE
11541         - Use simply "const".
11542         - Use standard doc string conventions.
11543         - Use correct type for result of PQstatus.
11544
11545 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11546
11547         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11548
11549         C++ compilation changes.
11550         * config.h.in (EXTERN_C): Define.
11551         * config.h.in (not): This is also a C++ keyword.
11552         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11553         * cm.c: Use EXTERN_C.
11554         * redisplay-tty.c: Use EXTERN_C.
11555         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11556
11557 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11558
11559         * general.c: Remove duplicate definition for Qfunction.
11560
11561 2000-07-08  Ben Wing  <ben@xemacs.org>
11562
11563         * device-msw.c (msprinter_init_device):
11564         * device-msw.c (sync_printer_with_devmode):
11565         * device-msw.c (handle_devmode_changes):
11566         * device-msw.c (print_dialog_worker):
11567         * device-msw.c (Fmsprinter_apply_settings):
11568         * device-msw.c (hash_devmode):
11569         * device-msw.c (Fmsprinter_settings_despecialize):
11570         use Qmswindows_tstr, not Qctext.
11571
11572         * vm-limit.c (check_memory_limits):
11573         avoid infinite loop printing warning messages.
11574
11575 2000-07-05  Craig Lanning  <lanning@scra.org>
11576
11577         * Makefile.in.in: Add support for including the Windows resources
11578         when building with the cygwin and mingw targets.
11579
11580         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11581         not set or not correct.
11582         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11583         (init_initial_directory): Don't try to use $PWD on the
11584         WIN32_NATIVE target.
11585
11586         * s\cygwin32.h:
11587         [[Add -mwindows to eliminate console window.]] not required --ben
11588         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11589         (MAIL_USE_POP): removed; now handled by configure.
11590
11591         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11592         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11593         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11594         (MAIL_USE_POP): removed; now handled by configure.
11595         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11596         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11597         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11598         constant string.
11599         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11600         up from <winsock.h> via systime.h.
11601         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11602         (getpagesize): from Dan Holmsand, added.
11603         Added #endif which was left dangling by Ben's mega patch; added
11604         comment to help prevent this in the future.
11605
11606         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11607
11608 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11609
11610         * console-msw.h (struct mswindows_device): Removed unnecessary
11611         cached device geometry values.
11612         Added update_tick and an accessor macro.
11613         (Lisp_Devmode): Added lrecord declaration.
11614         (struct msprinter_device): Contain devmode as a Lisp object.
11615         Added mswindows_get_selected_frame_hwnd();
11616
11617         * console.h (struct console_methods): Indentation nitpicking.
11618
11619         * device-msw.c (mswindows_init_device): Do not initialize geometry
11620         cache. Initialize update tick.
11621         (mswindows_device_system_metrics): Ask the device for its geometry.
11622         (global_free_2_maybe):
11623         (devmode_to_hglobal):
11624         (handle_printer_changes):
11625         (ensure_not_printing):
11626         (print_dialog_worker):
11627         (Fmsprinter_print_setup_dialog):
11628         (Fmsprinter_print_dialog):
11629         (plist_get_margin):
11630         (plist_set_margin):
11631         (Fmsprinter_page_setup_dialog): Added functions.
11632         (sync_printer_with_devmode):
11633         (handle_devmode_changes):
11634         (Fmsprinter_get_settings):
11635         (Fmsprinter_select_settings):
11636         (Fmsprinter_apply_settings):
11637         (allocate_devmode):
11638         (Fmsprinter_settings_copy):
11639         (Fmsprinter_settings_despecialize):
11640         (print_devmode):
11641         (finalize_devmode):
11642         (equal_devmode):
11643         (hash_devmode): Added functions
11644         (syms_of_device_mswindows): Init devmode lrecord class.
11645
11646         * device.h: Added an exfun for find-device.
11647
11648         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11649         geometry; although, recreate the device compatible DC.
11650
11651         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11652         (msprinter_init_frame_3):
11653         (msprinter_frame_property):
11654         (msprinter_internal_frame_property_p):
11655         (msprinter_frame_properties):
11656         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11657         print job properties (will move to device settings).
11658
11659         * lisp.h: Added symbols.
11660
11661         * general.c (syms_of_general): Declared them.
11662
11663         * hash.c (string_hash): Added.
11664
11665         * lrecord.h (lrecord_type): Added devmode lrecord type.
11666
11667 2000-07-02  Mike Sperber <mike@xemacs.org>
11668
11669         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11670         FreeBSD 4.0.
11671
11672 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11673
11674         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11675         integer.
11676
11677 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11678
11679         * data.c (Fstring_to_number): Don't recognize floating point if
11680         base is not 10.
11681
11682 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11683
11684         * glyphs-widget.c (tab_control_query_geometry):
11685         (widget_query_geometry):
11686         (button_query_geometry):
11687         * glyphs.c (text_query_geometry):
11688         Enforce type correctness.
11689
11690 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11691
11692         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11693         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11694
11695 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11696
11697         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11698         conflicts with gcc's fixincluded version of FOO.h.
11699
11700         * glyphs.h (image_instance_geometry): Remove trailing `,'
11701
11702 2000-06-08  Mike Alexander  <mta@arbortext.com>
11703
11704         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11705         (shove_thread): Don't write the same output twice
11706         (make_ntpipe_output_stream): Increase priority of shove thread
11707         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11708         chance to run
11709         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11710         it.
11711
11712 2000-06-12  Ben Wing  <ben@xemacs.org>
11713
11714         * s\mingw32.h (sigset):
11715         * s\windowsnt.h (sigset):
11716         rename msw_ to mswindows_ for consistency with general convention.
11717
11718 2000-06-12  Ben Wing  <ben@xemacs.org>
11719
11720         * console-msw.c:
11721         * console-msw.c (mswindows_get_console_hwnd):
11722         * console-msw.c (mswindows_ensure_console_allocated):
11723         * console-msw.c (mswindows_hide_console):
11724         * console-msw.c (mswindows_show_console):
11725         * console-msw.c (mswindows_ensure_console_buffered):
11726         * console-msw.c (mswindows_output_console_string):
11727         * console-msw.c (mswindows_windows9x_p):
11728         * console-msw.h:
11729         * device-msw.c (mswindows_get_workspace_coords):
11730         * device-msw.c (mswindows_device_system_metrics):
11731         * dialog-msw.c (mswindows_popup_dialog_box):
11732         * event-msw.c (mswindows_wnd_proc):
11733         * frame-msw.c (mswindows_size_frame_internal):
11734         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11735         * menubar-msw.c (displayable_menu_item):
11736         * menubar-msw.c (mswindows_char_is_accelerator):
11737         * nt.c:
11738         * nt.c (mswindows_sigset):
11739         * nt.c (mswindows_sigrelse):
11740         * nt.c (mswindows_sigpause):
11741         * nt.c (mswindows_raise):
11742         * nt.c (timer_proc):
11743         * ntproc.c:
11744         * ntproc.c (find_child_console):
11745         * ntproc.c (sys_kill):
11746         * print.c:
11747         * print.c (std_handle_out_external):
11748         * process-nt.c (find_child_console):
11749         * process-nt.c (send_signal_the_95_way):
11750         * process-nt.c (ensure_console_window_exists):
11751         * process-nt.c (nt_create_process):
11752         * syssignal.h:
11753         rename msw_ to mswindows_ for consistency with general convention.
11754
11755         * emacs.c:
11756         * dumper.c:
11757         include nt.h, not syswindows.h.
11758
11759         * nt.c (mswindows_fstat):
11760         * nt.c (mswindows_stat):
11761         prefix mswindows_ instead of attempting to directly override the
11762         library functions.  fix declarations.
11763
11764         * nt.h:
11765         include syswindows.h.  move some sysdep.h stuff here.
11766
11767         * ntheap.h:
11768         include syswindows.h, not <windows.h>.
11769
11770         * ntplay.c:
11771         clean up headers.
11772
11773         * sysdep.c:
11774         clean up headers.
11775
11776         * sysdep.c (sys_fstat):
11777         * sysdep.c (sys_stat):
11778         call mswindows versions when appropriate.
11779
11780         * sysdep.h:
11781         move mswin decls to nt.h.
11782
11783         * syswindows.h:
11784         add long comment describing appropriate use of the various windows
11785         headers.
11786
11787 2000-06-11  Ben Wing  <ben@xemacs.org>
11788
11789         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11790
11791 2000-06-10  Ben Wing  <ben@xemacs.org>
11792
11793         * Makefile.in.in (release):
11794         Correction to make sure xemacs.exe always dumped when correct.
11795
11796         * alloca.c:
11797         * balloon_help.c:
11798         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11799
11800         * buffer.c (set_buffer_internal):
11801         [[[[2]]]]: Remove HAVE_FEP code.
11802
11803         * buffer.c (init_initial_directory):
11804         [3].
11805
11806         * bytecode.c:
11807         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11808         individual files.
11809
11810         * callproc.c:
11811         * callproc.c (call_process_cleanup):
11812         * callproc.c (Fold_call_process_internal):
11813         * callproc.c (child_setup):
11814         * callproc.c (getenv_internal):
11815         * callproc.c (init_callproc):
11816         * callproc.c (vars_of_callproc):
11817         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11818         __CYGWIN32__ -> CYGWIN.
11819         DOS_NT -> WIN32_NATIVE.
11820         Remove MSDOS support/references, converting to WIN32_NATIVE
11821           where correct.
11822         __MINGW32__ -> MINGW.
11823         Fix windows.h includes.
11824         Remove bogus HAVE_NTGUI.
11825
11826         * config.h.in:
11827         [2].
11828
11829         * console-msw.c:
11830         mswindows_message_outputted added for use in allowing startup
11831         errors on the console to be seen.
11832
11833         * console-msw.c (msw_ensure_console_allocated):
11834         * console-msw.c (msw_output_console_string):
11835         * console-msw.c (DHEADER):
11836         * console-msw.c (DOPAQUE_DATA):
11837         * console-msw.c (DEVENT):
11838         * console-msw.c (DCONS):
11839         * console-msw.c (DCONSCDR):
11840         * console-msw.c (DSTRING):
11841         * console-msw.c (DVECTOR):
11842         * console-msw.c (DSYMBOL):
11843         * console-msw.c (DSYMNAME):
11844         Fix warnings.
11845
11846         * console-stream.c (stream_init_console):
11847         Fix text/binary problems.
11848
11849         * device-msw.c:
11850         * device-msw.c (mswindows_finish_init_device):
11851         * device-msw.c (mswindows_delete_device):
11852         [1].
11853
11854         * device.c (handle_asynch_device_change):
11855         [3].
11856
11857         * dgif_lib.c:
11858         * dgif_lib.c (DGifOpenFileName):
11859         * dgif_lib.c (DGifOpenFileHandle):
11860         * dgif_lib.c (DGifGetLine):
11861         * dgif_lib.c (DGifGetPixel):
11862         Added config.h/lisp.h, fix up includes.
11863         [1].
11864
11865         * dired-msw.c:
11866         [4].
11867
11868         * dired.c:
11869         * dired.c (file_name_completion):
11870         * dired.c (Ffile_attributes):
11871         * dired.c (syms_of_dired):
11872         [1].
11873
11874         * dumper.c:
11875         * dumper.c (pdump_file_unmap):
11876         * dumper.c (pdump_load):
11877         [1].
11878
11879         * editfns.c:
11880         * editfns.c (Ftemp_directory):
11881         * editfns.c (user_login_name):
11882         * editfns.c (Fuser_real_login_name):
11883         * editfns.c (get_home_directory):
11884         [1].
11885
11886         * elhash.c (finish_marking_weak_hash_tables):
11887         [[[[5]]]]: Fix GCC warnings.
11888
11889         * emacs.c:
11890         * emacs.c (mswindows_handle_hardware_exceptions):
11891         * emacs.c (make_arg_list_1):
11892         * emacs.c (main_1):
11893         * emacs.c (Fkill_emacs):
11894         * emacs.c (Fdump_emacs):
11895         [1].
11896         Fix problems with nested crashes, add long comment.
11897
11898         * event-Xt.c (init_event_Xt_late):
11899         [1].
11900
11901         * event-msw.c:
11902         * event-msw.c (mswindows_dde_callback):
11903         * event-msw.c (mswindows_handle_sticky_modifiers):
11904         * event-msw.c (mswindows_wnd_proc):
11905         [1].
11906         [5].
11907
11908         * events.c (character_to_event):
11909         [1].
11910
11911         * fileio.c:
11912         * fileio.c (Ffile_name_directory):
11913         * fileio.c (Ffile_name_nondirectory):
11914         * fileio.c (directory_file_name):
11915         * fileio.c (Fexpand_file_name):
11916         * fileio.c (Fsubstitute_in_file_name):
11917         * fileio.c (Ffile_name_absolute_p):
11918         * fileio.c (check_executable):
11919         * fileio.c (Ffile_readable_p):
11920         * fileio.c (Ffile_accessible_directory_p):
11921         * fileio.c (Ffile_modes):
11922         * fileio.c (Funix_sync):
11923         * fileio.c (vars_of_fileio):
11924         [1]. [4].
11925
11926         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11927
11928         Expand getdefdir defn.
11929         Fix bogus rename() comment.
11930
11931         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11932         to use standard XEmacs include files, e.g. sysfile.h, rather
11933         than system-specific includes.
11934
11935         * fns.c:
11936         * fns.c (Fsubseq):
11937         [5]. [6].
11938
11939         * frame.c (vars_of_frame):
11940         [1].
11941
11942         * getloadavg.c:
11943         * getloadavg.c (getloadavg):
11944         [1]. [6].
11945         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11946         (We don't use it elsewhere in the code; just add a comment.)
11947
11948         * gif_io.c:
11949         [6].
11950         Add config.h.
11951
11952         * glyphs-msw.c:
11953         * glyphs-msw.c (mswindows_resource_instantiate):
11954         [1].
11955
11956         * glyphs-x.c (x_native_layout_instantiate):
11957         [5].
11958
11959         * gui-msw.c (Fmswindows_shell_execute):
11960         [1].
11961
11962         * insdel.c:
11963         [4].
11964
11965         * lisp.h:
11966         [4]. [5].
11967
11968         * lread.c (locate_file_in_directory_mapper):
11969         [1].
11970
11971         * lstream.c:
11972         [4].
11973
11974         * mem-limits.h:
11975         * mem-limits.h (get_lim_data):
11976         [1].
11977
11978         * menubar-msw.c:
11979         [4].
11980
11981         * ndir.h:
11982         [1].
11983
11984         * nt.c:
11985         * nt.c (getwd):
11986         * nt.c (closedir):
11987         * nt.c (rva_to_section):
11988         * nt.c (mswindows_executable_type):
11989         [1]. [6].
11990         Fix closedir() defn.
11991
11992         * nt.h:
11993         [[[[8]]]]: *_OK defs moved to sysfile.h.
11994
11995         * ntproc.c:
11996         [6]. [7].
11997
11998         * objects-x.c:
11999         [4].
12000
12001         * print.c:
12002         * print.c (std_handle_out_external):
12003         [1]. [4].
12004
12005         * process-nt.c:
12006         * process-nt.c (nt_create_process):
12007         [6].
12008         try to fix process quoting somewhat.
12009
12010         * process-unix.c (unix_create_process):
12011         [1].
12012
12013         * process.c:
12014         * process.c (vars_of_process):
12015         Add Vnull_device.
12016
12017         * process.h:
12018         [1].
12019
12020         * realpath.c:
12021         * realpath.c (xrealpath):
12022         [1].
12023
12024         * redisplay-tty.c (init_tty_for_redisplay):
12025         [3].
12026
12027         * redisplay.c:
12028         [4]. [6].
12029
12030         * scrollbar-msw.c:
12031         [4].
12032
12033         * sheap.c:
12034         * sheap.c (more_static_core):
12035         * sheap.c (report_sheap_usage):
12036         [5]. [6].
12037
12038         * signal.c:
12039         * signal.c (alarm_signal):
12040         [1]. [6].
12041
12042         * sound.c:
12043         [6].
12044
12045         * strftime.c:
12046         * strftime.c (zone_name):
12047         [1]. [5].
12048
12049         * symsinit.h (init_sunpro):
12050         [1].
12051
12052         * syscommctrl.h:
12053         commctrl.h not in Cygwin b20.1.
12054
12055         * sysdep.c:
12056         * sysdep.c (endif):
12057         * sysdep.c (sys_subshell):
12058         * sysdep.c (init_baud_rate):
12059         * sysdep.c (emacs_get_tty):
12060         * sysdep.c (emacs_set_tty):
12061         * sysdep.c (tty_init_sys_modes_on_device):
12062         * sysdep.c (init_system_name):
12063         * sysdep.c (sys_open):
12064         * sysdep.c (interruptible_open):
12065         * sysdep.c (sys_fopen):
12066         * sysdep.c (sys_mkdir):
12067         * sysdep.c (sys_rename):
12068         * sysdep.c (get_process_times_1):
12069         [1]. [6].
12070
12071         * sysdep.h:
12072         [1].
12073
12074         * sysdir.h:
12075         * sysdir.h (DIRENTRY_NONEMPTY):
12076         [1]. [6].
12077
12078         * sysdll.c (dll_init):
12079         * sysdll.h:
12080         [1].
12081
12082         * sysfile.h:
12083         [1]. [6]. [8].
12084         added text/binary defs.
12085
12086         * sysfloat.h:
12087         [1].
12088
12089         * sysproc.h:
12090         * sysproc.h (EDESTADDRREQ):
12091         * sysproc.h (poll_fds_for_input):
12092         [1]. [6].
12093
12094         * syspwd.h:
12095         [6].
12096
12097         * syssignal.h:
12098         [1].
12099
12100         * systime.h:
12101         [1]. [6].
12102
12103         * systty.h:
12104         [1].
12105
12106         * syswindows.h:
12107         [1].
12108         Always define WIN32_LEAN_AND_MEAN.
12109
12110         * unexcw.c (unexec):
12111         [5].
12112
12113         * unexec.c:
12114         * unexec.c (copy_text_and_data):
12115         * unexec.c (adjust_lnnoptrs):
12116         [1].
12117
12118         * unexnt.c:
12119         * unexnt.c (_start):
12120         [1].
12121
12122 2000-06-07  Ben Wing  <ben@xemacs.org>
12123
12124         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12125         was used only as a model.  We've long since extracted any useful
12126         logic or code out of this. (I just did an exhaustive search.)
12127
12128         * s\msdos.h: Removed.
12129
12130         * s\windows95.h: Removed.
12131
12132 2000-06-10  Ben Wing  <ben@xemacs.org>
12133
12134         * s\cygwin32.h:
12135         [1]. [5].
12136         Don't use extern with fun defs.
12137
12138         * s\mingw32.h:
12139         [1]. [7].
12140         Remove nt\inc include.
12141         Remove getdisk, getdefdir. (The former is unused, the latter
12142         expanded in fileio.h.)
12143
12144         * s\windowsnt.h:
12145         * s\windowsnt.h (WIN32_NATIVE):
12146         * s\windowsnt.h (HAVE_STRCASECMP):
12147         [1]. [7].
12148         Add long comment about preprocessor changes.
12149         Remove getdisk, getdefdir. (The former is unused, the latter
12150         expanded in fileio.h.)
12151
12152 2000-06-10  Ben Wing  <ben@xemacs.org>
12153
12154         * m\arm.h:
12155         * m\delta.h:
12156         * m\intel386.h:
12157         * m\sequent.h:
12158         * m\template.h:
12159         * m\windowsnt.h:
12160         [1].
12161         Remove bogus/unused NO_SOCK_SIGIO.
12162
12163 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12164
12165         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12166         not an Emchar.
12167
12168 2000-06-04  Mike Sperber <mike@xemacs.org>
12169
12170         * casetab.c (set_case_table): For `set-standard-case-table',
12171         actually deposit the new case tables where the rest of XEmacs can
12172         see them.
12173
12174 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12175
12176         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12177
12178 2000-06-05  Ben Wing  <ben@xemacs.org>
12179
12180         * callproc.c (child_setup): Don't do close_load_descs() under
12181         MS Windows.  Put in a comment explaining why.
12182
12183 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12184
12185         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12186         Toolkit shell" which breaks `kill-compilation' on Windows NT
12187         native, retaining STDERR handling improvements.
12188
12189 2000-06-01  Andreas Jaeger  <aj@suse.de>
12190
12191         * s/s390.h: Support for S390, based on a patch by Martin
12192         Schwidefsky <schwidefsky@de.ibm.com>.
12193
12194 2000-05-30  Andy Piper  <andy@xemacs.org>
12195
12196         * window.c (allocate_window):
12197         (make_dummy_parent):
12198         (Fset_window_configuration): use new hashtable type.
12199
12200         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12201         (struct image_instantiator_methods):
12202         (struct Lisp_Image_Instance): make instance geometry signed.
12203
12204         * glyphs.c (instantiate_image_instantiator):
12205         (image_instance_query_geometry):
12206         (image_instance_layout):
12207         (image_instance_layout):
12208         (query_string_geometry):
12209         (text_query_geometry):
12210         (image_instantiate):
12211         (image_instantiate):
12212         (cache_subwindow_instance_in_frame_maybe):
12213         (subwindow_query_geometry): make instance geometry signed.
12214
12215         * glyphs-widget.c (widget_query_geometry):
12216         (widget_layout):
12217         (button_query_geometry):
12218         (tree_view_query_geometry):
12219         (tab_control_query_geometry):
12220         (layout_query_geometry):
12221         (layout_layout):
12222         (native_layout_layout): make instance geometry signed.
12223
12224 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12225
12226         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12227         constant.
12228
12229         * general.c (syms_of_general): Add Qfull_assoc symbol.
12230
12231         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12232         correctly.
12233         (decode_weak_list_type): Decode full-assoc type.
12234         (encode_weak_list_type): Encode full-assoc type.
12235         (Fmake_weak_list): Update doc string.
12236
12237 2000-05-30  Andy Piper  <andy@xemacs.org>
12238
12239         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12240
12241         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12242         (decode_hash_table_weakness): ditto.
12243         (Fhash_table_weakness): ditto.
12244         (Fhash_table_type): ditto.
12245         (finish_marking_weak_hash_tables): ditto.
12246         (hash_table_weakness_validate): ditto.
12247         (syms_of_elhash): ditto.
12248
12249 2000-05-28  Martin Buchholz <martin@xemacs.org>
12250
12251         * XEmacs 21.2.34 is released.
12252
12253 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12254
12255         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12256         start cache.
12257         (updating_line_start_cache): Gone.
12258         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12259         generic code to force a minimum of 1 line laid out in the
12260         CMOTION_DISP case.
12261
12262 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12263
12264         * glyphs.c (instantiate_image_instantiator): Check for initialized
12265         height & width no longer special cases IMAGE_NOTHING.
12266         (nothing_instantiate): Set height and width of instance.
12267
12268 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12269
12270         * unexelf.c (unexec): Search for ".data" section.
12271         Initialize new_data2_offset from old_data_index.
12272         Remove redundant check for ElfW.
12273
12274 2000-05-23  Andy Piper  <andy@xemacs.org>
12275
12276         * glyphs.c (get_image_instantiator_governing_domain): allow more
12277         specific domains as the governing domain rather than expecting an
12278         exact match. This fixes problems with layouts.
12279
12280 2000-05-22  Andy Piper  <andy@xemacs.org>
12281
12282         * redisplay-output.c (compare_runes): check for non-images
12283
12284         * glyphs.c (set_glyph_dirty_p): ditto.
12285         (update_glyph_cachel_data): ditto.
12286
12287         * glyphs-widget.c (layout_post_instantiate): ditto.
12288         (layout_post_instantiate): ditto.
12289
12290         * event-msw.c (mswindows_wnd_proc): warning removal.
12291
12292 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12293
12294         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12295
12296         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12297
12298         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12299
12300         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12301         (mswindows_executable_type): mingw32 now has enough headers for
12302         this to work.
12303
12304 2000-05-20  Andy Piper  <andy@xemacs.org>
12305
12306         * console-msw.c (mswindows_output_last_error): ; -> ,
12307
12308 2000-05-12  Andy Piper  <andy@xemacs.org>
12309
12310         * console-msw.c (FROB): compare ints with ints.
12311
12312 2000-05-11  Andy Piper  <andy@xemacs.org>
12313
12314         * glyphs-x.c (x_finalize_image_instance): make minimal build
12315         happy.
12316
12317 2000-05-20  Ben Wing  <ben@xemacs.org>
12318
12319         * event-Xt.c:
12320         * event-Xt.c (vars_of_event_Xt):
12321         move modifier-keys-are-sticky to event-stream.c.
12322
12323         * event-msw.c:
12324         * event-msw.c (mswindows_enqueue_mouse_button_event):
12325         * event-msw.c (key_needs_default_processing_p):
12326         * event-msw.c (XEMSW_LCONTROL):
12327         * event-msw.c (mswindows_handle_sticky_modifiers):
12328         * event-msw.c (FROB):
12329         * event-msw.c (clear_sticky_modifiers):
12330         * event-msw.c (output_modifier_keyboard_state):
12331         * event-msw.c (output_alt_keyboard_state):
12332         * event-msw.c (mswindows_wnd_proc):
12333         * event-msw.c (mswindows_modifier_state):
12334         * event-msw.c (emacs_mswindows_handle_magic_event):
12335         implement sticky modifiers.
12336
12337         * event-stream.c:
12338         * event-stream.c (vars_of_event_stream):
12339         move modifier-keys-are-sticky here.
12340
12341         * lisp.h:
12342         add CHECK_FUNCTION.
12343
12344         * rangetab.c:
12345         implement map-range-table.
12346
12347
12348 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12349
12350         * redisplay-tty.c (reset_tty_modes):
12351         (tty_redisplay_shutdown): Adjust argument type to
12352         tty_frame_output_end.
12353
12354 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12355
12356         * eval.c (Fbacktrace): Don't output a line with only right
12357         parenthesis.
12358
12359 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12360
12361         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12362         (Fpq_reset_poll): Ditto.
12363
12364 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12365
12366         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12367
12368 2000-05-16  Ben Wing  <ben@xemacs.org>
12369
12370         * buffer.c:
12371         * buffer.c (dfc_convert_to/from_internal_format):
12372         * buffer.c (reinit_vars_of_buffer):
12373         Fix conversion functions to allow reentrancy.
12374
12375         * console-msw.c:
12376         * console-msw.c (mswindows_output_last_error):
12377         New fun, generally useful -- output a human-readable
12378         version of GetLastError() on the console.
12379
12380         * console-msw.h:
12381         * console-msw.h (struct mswindows_frame):
12382         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12383
12384         * console-stream.c (stream_output_begin):
12385         * console-stream.c (stream_output_end):
12386         * console-stream.c (stream_output_vertical_divider):
12387         * console-stream.c (stream_clear_region):
12388         * console-stream.c (stream_flash):
12389         * console-stream.c (console_type_create_stream):
12390         Delete blank stream methods, not needed.
12391
12392         * console.h (struct console_methods):
12393         Split begin/end methods into window and frame.
12394
12395         * event-msw.c:
12396         * event-msw.c (mswindows_handle_paint):
12397         * event-msw.c (output_alt_keyboard_state):
12398         * event-msw.c (mswindows_wnd_proc):
12399         * event-msw.c (vars_of_event_mswindows):
12400         Comment about problems with ignored-expose.
12401         Define mswindows-debug-events; not really implemented.
12402
12403         * frame-msw.c (mswindows_init_frame_1):
12404         random cleanups.
12405
12406         * glyphs-msw.c:
12407         * glyphs-msw.c (begin_defer_window_pos):
12408         * glyphs-msw.c (mswindows_unmap_subwindow):
12409         * glyphs-msw.c (mswindows_map_subwindow):
12410         * glyphs-msw.c (mswindows_resize_subwindow):
12411         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12412
12413         * glyphs.c (make_image_instance_1):
12414         Fix crash.
12415
12416         * gutter.c (Fredisplay_gutter_area):
12417         Use new begin/end methods.
12418
12419         * lisp.h (Dynarr_new2):
12420         New creation fun.
12421
12422         * redisplay-msw.c:
12423         * redisplay-msw.c (mswindows_frame_output_begin):
12424         * redisplay-msw.c (mswindows_frame_output_end):
12425         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12426         New begin/end methods -- handle DeferWindowPos.
12427
12428         * redisplay-output.c (redisplay_move_cursor):
12429         * redisplay-output.c (redraw_cursor_in_window):
12430         * redisplay-output.c (redisplay_update_line):
12431         * redisplay-output.c (redisplay_output_window):
12432         New begin/end methods.
12433
12434         * redisplay-tty.c:
12435         * redisplay-tty.c (tty_frame_output_begin):
12436         * redisplay-tty.c (tty_frame_output_end):
12437         * redisplay-tty.c (console_type_create_redisplay_tty):
12438         New begin/end methods.
12439
12440         * redisplay-x.c:
12441         * redisplay-x.c (x_window_output_begin):
12442         * redisplay-x.c (x_window_output_end):
12443         * redisplay-x.c (console_type_create_redisplay_x):
12444         New begin/end methods.
12445
12446         * redisplay.c (redisplay_frame):
12447         * redisplay.c (Fredisplay_echo_area):
12448         New begin/end methods.
12449         use MAYBE_DEVMETH for clear_frame; it may not exist.
12450
12451         * window.h (WINDOW_XFRAME):
12452         WINDOW_XFOO macros -- get locale and decode struct pointer.
12453
12454
12455 2000-05-12  Ben Wing  <ben@xemacs.org>
12456
12457         * emacs.c:
12458         * emacs.c (ensure_no_quitting_from_now_on):
12459         * emacs.c (fatal_error_signal):
12460         * emacs.c (mswindows_handle_hardware_exceptions):
12461         * emacs.c (main):
12462         * emacs.c (Fkill_emacs):
12463         * emacs.c (shut_down_emacs):
12464         * emacs.c (assert_failed):
12465         various improvements in fatal error handling.
12466
12467         * eval.c:
12468         move preparing_for_armageddon to emacs.c.
12469
12470         * lisp.h:
12471         declare fatal_error_in_progress.
12472
12473         * print.c:
12474         * print.c (std_handle_out_external):
12475         * print.c (std_handle_out_va):
12476         * print.c (stderr_out):
12477         * print.c (stdout_out):
12478         use console under mswin when no standard output.
12479         don't do code conversion during fatal error.
12480
12481         * scrollbar.c (Fscrollbar_page_up):
12482         * scrollbar.c (Fscrollbar_page_down):
12483         fix missing else.  reindent.
12484
12485 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12486
12487         Emergency fix.
12488
12489         * glyphs.h (GLYPH_CACHEL_DESCENT):
12490         (GLYPH_CACHEL_DESCENT):
12491         (GLYPH_CACHEL_DESCENT):
12492         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12493         used in case these are inline functions.
12494         Use more absurd values to error check.
12495
12496         include window.h for error check functions.
12497
12498 2000-05-11  Ben Wing  <ben@xemacs.org>
12499
12500         * cmdloop.c (Freally_early_error_handler):
12501         Display message box under windows; otherwise, message will disappear
12502         before it can be viewed.
12503
12504         * console-msw.c:
12505         * console-msw.c (Fmswindows_message_box):
12506         * console-msw.c (FROB):
12507         * console-msw.c (syms_of_console_mswindows):
12508         Define new fun `mswindows-message-box'.
12509         #### I will merge this into `popup-dialog-box'; just give me
12510         a bit of time.
12511
12512         * general.c:
12513         * general.c (syms_of_general):
12514         Some new symbols used in `mswindows-message-box'.
12515
12516         * glyphs.c:
12517         * glyphs.c (Fset_image_instance_property):
12518         put warning in this fun.
12519
12520         * glyphs.h:
12521         * glyphs.h (GLYPH_CACHEL_WIDTH):
12522         * glyphs.h (GLYPH_CACHEL_ASCENT):
12523         * glyphs.h (GLYPH_CACHEL):
12524         * glyphs.h (GLYPH_CACHEL_GLYPH):
12525         define error-checking versions to try to catch a bug i've seen --
12526         redisplay gets in an infinite loop because the glyph width of the
12527         continuation glyph is 65535.
12528
12529         * lisp.h:
12530         Extern message-box stuff.
12531
12532         * window.c (allocate_window):
12533         * window.c (make_dummy_parent):
12534         * window.c (Fset_window_configuration):
12535         Use EQUAL not EQ for subwindow caches to make them work a bit
12536         better. (Something is still very broken.)
12537
12538
12539 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12540
12541         * glyphs.c (image_instantiate): Suppress gcc warnings.
12542         (Fmake_image_instance): Fix doc string.
12543         * specifier.c (Fmake_specifier): Ditto.
12544
12545 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12546
12547         * paths.h.in (PATH_LOCK): Removed.
12548         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12549         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12550
12551 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12552
12553         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12554         Document (featurep '(and xemacs 21.02)).
12555
12556 2000-05-09  Ben Wing  <ben@xemacs.org>
12557
12558         * buffer.c (complex_vars_of_buffer):
12559         update modeline-format doc.
12560
12561         * device.h:
12562         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12563
12564         * emacs.c:
12565         timeline of all released versions of Emacs, for use in creating
12566         authorship comments and in synching up.
12567
12568         * glyphs-widget.c (image_instantiator_buttons):
12569         * glyphs-widget.c (image_instantiator_edit_fields):
12570         * glyphs-widget.c (image_instantiator_combo_box):
12571         * glyphs-widget.c (image_instantiator_scrollbar):
12572         * glyphs-widget.c (image_instantiator_progress_guage):
12573         * glyphs-widget.c (image_instantiator_tree_view):
12574         * glyphs-widget.c (image_instantiator_tab_control):
12575         * glyphs-widget.c (image_instantiator_labels):
12576         * glyphs-widget.c (image_instantiator_layout):
12577         * glyphs-widget.c (image_instantiator_native_layout):
12578         rename decode_domain method to governing_domain.
12579
12580         * glyphs.c:
12581         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12582         * glyphs.c (add_entry_to_device_ii_format_list):
12583         make sure we don't put an entry more than once into the list.
12584         * glyphs.c (check_instance_cache_mapper):
12585         *************************************************************
12586         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12587         HAVE BEEN GETTING.
12588         *************************************************************
12589         * glyphs.c (get_image_instantiator_governing_domain):
12590         clean up, expand on new concept of governing domain.
12591         * glyphs.c (instantiate_image_instantiator):
12592         * glyphs.c (allocate_image_instance):
12593         use governing_domain instead of cache_domain in naming.
12594         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12595         * glyphs.c (make_image_instance_1):
12596         * glyphs.c (Fmake_image_instance):
12597         allow for any domain (not just device), and process the
12598         governing domain correctly.  very big doc fix.
12599         * glyphs.c (Fimage_instance_domain):
12600         new primitive, to retrieve the governing domain of an image instance.
12601         * glyphs.c (image_instantiate):
12602         use new governing_domain stuff.  this fixes a crash you could get
12603         by instantiating certain widget glyphs in frame locales. (should
12604         signal an error instead of crashing.)
12605         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12606         * glyphs.c (Fglyphp): clean up doc.
12607         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12608         * glyphs.c (syms_of_glyphs):
12609         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12610         * glyphs.c (image_instantiator_format_create): add some comments about
12611         bogus code.
12612         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12613         for current-display-table. (Apparently Hrjove implemented in 1998 a
12614         design I wrote up in 1996, but didn't update the doc string.)
12615
12616         * glyphs.h: clean up a doc string.
12617         * glyphs.h (governing_domain):
12618         * glyphs.h (struct image_instantiator_methods):
12619         changes for governing_domain stuff.
12620
12621         * gutter.c:
12622         * gutter.c (Fgutter_specifier_p):
12623         * gutter.c (Fgutter_size_specifier_p):
12624         * gutter.c (Fgutter_visible_specifier_p):
12625         * objects.c:
12626         * objects.c (Fcolor_specifier_p):
12627         * objects.c (Ffont_specifier_p):
12628         * objects.c (Fface_boolean_specifier_p):
12629         doc strings moved to make-*-specifier.
12630
12631         * redisplay.c (add_disp_table_entry_runes_1):
12632         * redisplay.c (generate_fstring_runes):
12633         * redisplay.c (screen):
12634         add random comments and doc strings.
12635
12636         * specifier.c:
12637         * specifier.c (Fmake_specifier):
12638         major overhaul of this doc string.
12639
12640         * specifier.c (Fvalid_specifier_domain_p):
12641         comment about the bogosity of image instances being domains.
12642         * specifier.c (decode_domain):
12643         now non-static, used in glyphs.c.
12644         * specifier.c (specifier_instance):
12645         comment about the bogosity of image instances being domains.
12646         * specifier.c (Fgeneric_specifier_p):
12647         move doc string to make-generic-specifier.
12648         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12649         rebackslashify.
12650
12651         * specifier.h:
12652         * specifier.h (DOMAIN_FRAME):
12653         * specifier.h (DOMAIN_LIVE_P):
12654         * specifier.h (DOMAIN_XDEVICE):
12655         rebackslashify.
12656         add comments about problems with these macros.
12657         prototype for decode_domain.
12658
12659         * toolbar.c:
12660         * toolbar.c (Ftoolbar_specifier_p):
12661         move doc string to `make-toolbar-specifier'.
12662
12663         * window.c (window_unmap_subwindows_cache_mapper):
12664         *************************************************************
12665         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12666         HAVE BEEN GETTING.
12667         *************************************************************
12668
12669 2000-05-09  Andy Piper  <andy@xemacs.org>
12670
12671         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12672
12673         * window.c (Fset_window_configuration): reset the frame subwindow
12674         cache and re-initialize the window subwindow caches.
12675
12676         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12677
12678 2000-05-09  Ben Wing  <ben@xemacs.org>
12679
12680         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12681         DWORD.
12682
12683 2000-04-26  Mike Woolley  <mike@bulsara.com>
12684
12685         * ntheap.c: Changed recreate_heap to limit the amount reserved
12686         for the heap to that which is actually available. Also now
12687         displays a message box (with some dignostics) in the event that
12688         it still can't start.
12689
12690 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12691
12692         * callproc.c (Fold_call_process_internal): GCPRO path
12693
12694 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12695
12696         Patch by Bill Perry.
12697
12698         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12699         back data instead of #ifdef.
12700         (Fscrollbar_page_down): ditto.
12701
12702 2000-05-07  Ben Wing  <ben@xemacs.org>
12703
12704         * buffer.h:
12705         Kludge for defining Qmswindows_tstr.
12706
12707         * nt.c:
12708         * nt.c (open_input_file):
12709         * nt.c (open_output_file):
12710         * nt.c (rva_to_section):
12711         * nt.c (mswindows_executable_type):
12712         Move all memory-mapped-file routines here (some were in unexnt.c,
12713         which is bad because they are used by process-nt.c, and unexnt
12714         won't be around when portable dumping).  Synched the above routines
12715         with FSF 20.6.
12716
12717         * nt.h:
12718         Removed ifdef'd out bogus code.
12719         Fixed some prototypes.
12720
12721         * nt.h (file_data):
12722         * nt.h (OFFSET_TO_RVA):
12723         * nt.h (RVA_TO_OFFSET):
12724         * nt.h (RVA_TO_PTR):
12725         Moved the memory-mapped-file structures, macros and prototypes
12726         here, to parallel nt.c.  ntheap.h should really be removed
12727         entirely, and it's a non-portable-dumper specific file.
12728
12729         * ntheap.h (round_to_next):
12730         Moved the memory-mapped-file structures, macros and prototypes
12731         to nt.h.
12732
12733         * ntproc.c (compare_env):
12734         Moved rva_to_section and mswindows_executable_type to nt.c.
12735         Moved compare_env to process-nt.c.
12736         ntproc.c will die, one day.
12737
12738         * ntproc.c (sys_spawnve):
12739         Account for win32_ -> mswindows_.
12740
12741         * process-nt.c:
12742         * process-nt.c (struct nt_process_data):
12743         * process-nt.c (ensure_console_window_exists):
12744         * process-nt.c (compare_env):
12745         * process-nt.c (nt_create_process):
12746         * process-nt.c (nt_kill_process_by_pid):
12747         * process-nt.c (syms_of_process_nt):
12748         * process-nt.c (vars_of_process_nt):
12749         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12750         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12751         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12752         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12753         Move compare_env here from ntproc.c.
12754
12755         * process.c (Fprocess_send_region):
12756         Takes an optional fourth argument, BUFFER, which should fix some
12757         problems with call-process.
12758
12759         * syscommctrl.h:
12760         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12761
12762         * syswindows.h:
12763         Move ICC_BAR_CLASSES to syscommctrl.h.
12764         Add preliminary macros for MSWindows/Mule.  More to come.
12765
12766         * unexnt.c:
12767         * unexnt.c (unexec):
12768         open_output_file moved to nt.c.
12769
12770
12771 2000-05-05  Andy Piper  <andy@xemacs.org>
12772
12773         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12774         instance from the frame cache also since GC may catch up too late
12775         to make frame deletion sane.
12776
12777 2000-05-04  Andy Piper  <andy@xemacs.org>
12778
12779         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12780         (x_finalize_image_instance): ungcpro on deletion.
12781
12782         * glyphs.c (image_instantiator_format_create): give pointers a
12783         query geometry method so that the geometry is at least set.
12784
12785         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12786         initialize layouts if using widgets.
12787
12788 2000-05-03  Andy Piper  <andy@xemacs.org>
12789
12790         * nt.c: remove bogus reference to sysmmsystem.h
12791
12792         * gui-x.c (popup_selection_callback): fix no selection abort.
12793
12794 2000-05-02  Andy Piper  <andy@xemacs.org>
12795
12796         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12797         (mswindows_widget_instantiate): ditto.
12798
12799         * glyphs-widget.c (initialize_widget_image_instance): initialize
12800         children correctly.
12801         (widget_instantiate): cope with children and items in the same
12802         instance.
12803
12804         * glyphs.c (mark_image_instance): cope with children as a first
12805         class member.
12806         (image_instance_equal): ditto.
12807         (image_instance_hash): ditto.
12808         (image_instance_changed): ditto.
12809
12810 2000-04-30  Andy Piper  <andy@xemacs.org>
12811
12812         * glyphs.c (subwindow_query_geometry): new function. Return some
12813         defaults.
12814         (subwindow_instantiate): don't assign dimensions if none have been
12815         given.
12816         (image_instantiator_format_create): add subwindow_query_geometry.
12817         (print_image_instance): cope with layouts as widgets.
12818
12819 2000-04-29  Andy Piper  <andy@xemacs.org>
12820
12821         * frame.c (delete_frame_internal): call
12822         free_frame_subwindow_instance_cache so that all subwindows are
12823         finalized before their parent.
12824         (mark_frame): remove subwindow_cachels.
12825         (Fmake_frame): remove subwindow_cachel manipulation.
12826         (allocate_frame_core): subwindow_instance_cache is a weak list.
12827         (delete_frame_internal): set subwindow_instance_cache to nil.
12828
12829         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12830         finalization safe.
12831         (mswindows_finalize_image_instance): use the device
12832         not the domain as the domain may have died already.
12833
12834         * glyphs-x.c (x_finalize_image_instance): ditto.
12835         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12836         HEIGHT.
12837
12838         * redisplay-output.c (redisplay_unmap_subwindows): update for
12839         subwindow instance cache as a weak list.
12840         (redisplay_unmap_subwindows_maybe): ditto.
12841         (redisplay_unmap_subwindows_except_us): ditto.
12842
12843         * glyphs.c (unmap_subwindow): error checking will check the domain
12844         so don't deal with it here. Don't use cachels anymore.
12845         (map_subwindow): ditto.
12846         (update_subwindow_cachel_data): remove old accessor names.
12847         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12848         (Fresize_subwindow): don't update cachel.
12849         (mark_subwindow_cachels):
12850         (update_subwindow_cachel_data):
12851         (add_subwindow_cachel):
12852         (get_subwindow_cachel_index):
12853         (update_subwindow_cachel):
12854         (reset_subwindow_cachels):
12855         (mark_subwindow_cachels_as_not_updated): deleted.
12856         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12857         subwindow instance to the frame cache.
12858         (find_matching_subwindow): update for subwindow instance cache as
12859         a weak list.
12860         (update_widget_instances): ditto.
12861         (image_instance_type_to_mask):inlined.
12862         (free_frame_subwindow_instance_cache): new function. finalize all
12863         subwindows that are instantiated.
12864
12865         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12866         of cachel information.
12867         (IMAGE_INSTANCE_DISPLAY_X):
12868         (IMAGE_INSTANCE_DISPLAY_Y):
12869         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12870         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12871         (XIMAGE_INSTANCE_DISPLAY_X):
12872         (XIMAGE_INSTANCE_DISPLAY_Y):
12873         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12874         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12875         remove subwindow_cachel structure and function references.
12876         (image_instance_type_to_mask): inline from glyphs.c
12877
12878         * redisplay.c (redisplay_frame): remove subwindow_cachel
12879         references.
12880
12881         * frame.h (struct frame): remove subwindow_cachels.
12882         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12883
12884         * frameslots.h: add subwindow_instance_cache.
12885
12886         * window.c (replace_window): check subwindow cache of replacement.
12887         (window_unmap_subwindows_cache_mapper):
12888         (window_unmap_subwindows): new functions. Unmap all subwindows
12889         cached on this window.
12890         (mark_window_as_deleted): unmap all subwindows.
12891
12892 2000-04-27  Andy Piper  <andy@xemacs.org>
12893
12894         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12895
12896         * glyphs-widget.c (widget_layout): return something.
12897         (layout_layout): return something. Fail if not initialized.
12898         (layout_query_geometry): ditto.
12899         (image_instantiator_native_layout): new function. Initialized the
12900         native layout type.
12901         (widget_instantiate): don't do layout stuff here.
12902
12903         * glyphs.c (instantiate_image_instantiator): reorded calling or
12904         instantiate and post_instantiate with layout in between.
12905         (image_instance_layout): be more selective about deciding whether
12906         the layout has been done or not.
12907
12908         * glyphs.h (struct image_instantiator_methods): return a value
12909         from layout_method.
12910
12911 2000-04-26  Andy Piper  <andy@xemacs.org>
12912
12913         * glyphs.c (allocate_image_instance): make initial width and
12914         height unspecified. Set initialized to 0.
12915
12916         * syscommctrl.h new file. Encapsulates commctrl.h.
12917
12918         * syswindows.h new file. Encapsulates windows.h.
12919
12920         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12921         * nt.c: ditto.
12922         * console-msw.h: ditto.
12923
12924         * redisplay-tty.c (tty_output_display_block): remove layout references.
12925
12926         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12927         window handle rather than just the frame.
12928
12929         * glyphs.c (mark_image_instance): remove layout references.
12930         (print_image_instance): ditto.
12931         (image_instance_equal): ditto.
12932         (image_instance_hash): ditto.
12933         (decode_image_instance_type): ditto.
12934         (encode_image_instance_type): ditto.
12935         (image_instantiate): ditto.
12936         (allocate_glyph): ditto.
12937         (Fimage_instance_height): ditto.
12938         (Fimage_instance_width): ditto.
12939         (update_subwindow): ditto.
12940
12941         * redisplay-x.c (x_output_display_block): recode for layouts as
12942         widgets.
12943
12944         * redisplay-output.c (redisplay_output_layout): recode for layouts
12945         as widgets.
12946         (compare_runes): remove layout references.
12947
12948         * redisplay-msw.c (mswindows_output_display_block): recode for
12949         layouts as widgets.
12950
12951         * glyphs-widget.c (image_instantiator_layout): remove
12952         layout_possible_dest_types.
12953         (layout_possible_dest_types): deleted.
12954
12955         * glyphs.h (image_instance_type): remove layout references.
12956         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12957         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12958         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12959
12960 2000-04-25  Andy Piper  <andy@xemacs.org>
12961
12962         * glyphs-widget.c (image_instantiator_buttons):
12963         (image_instantiator_edit_fields):
12964         (image_instantiator_combo_box):
12965         (image_instantiator_scrollbar):
12966         (image_instantiator_progress_guage):
12967         (image_instantiator_tree_view):
12968         (image_instantiator_tab_control):
12969         (image_instantiator_labels):
12970         (image_instantiator_layout): call default post_instantiate method.
12971         (widget_post_instantiate): new function. Simply lays out the
12972         widgets.
12973
12974         * glyphs.h (struct image_instantiator_methods): add
12975         post_instantiate method.
12976
12977         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12978         method calls.
12979
12980 2000-04-23  Andy Piper  <andy@xemacs.org>
12981
12982         * glyphs.h (struct image_instantiator_methods): add
12983         decode_domain_method.
12984         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12985         derived from the domain.
12986         (IMAGE_INSTANCE_FRAME): new accessor.
12987         (XIMAGE_INSTANCE_FRAME): ditto.
12988
12989         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12990         instead of _SUBWINDOW_FRAME.
12991         (finalize_image_instance): ditto.
12992         (Fimage_instance_foreground): ditto.
12993         (Fimage_instance_background): ditto.
12994         (image_instantiate): ditto.
12995         (update_subwindow_cachel): ditto.
12996         (update_subwindow): ditto.
12997         (unmap_subwindow): ditto.
12998         (map_subwindow): ditto
12999         (subwindow_instantiate): ditto.
13000         * glyphs-msw.c (mswindows_update_widget): ditto.
13001         (mswindows_progress_gauge_instantiate): ditto.
13002         (mswindows_tab_control_update): ditto.
13003         * glyphs-x.c (x_update_widget): ditto.
13004         (x_widget_instantiate): ditto.
13005         (x_tab_control_instantiate): ditto.
13006         (x_tab_control_update): ditto.
13007         * event-msw.c (mswindows_wnd_proc): ditto
13008
13009         * glyphs-widget.c (image_instantiator_layout): use
13010         subwindow_decode_domain.
13011         (image_instantiator_buttons): ditto.
13012         (image_instantiator_edit_fields): ditto.
13013         (image_instantiator_combo_box): ditto.
13014         (image_instantiator_scrollbar): ditto.
13015         (image_instantiator_progress_guage): ditto.
13016         (image_instantiator_tree_view): ditto.
13017         (image_instantiator_tab_control): ditto.
13018         (image_instantiator_labels): ditto.
13019         (image_instantiator_layout): ditto.
13020
13021         * glyphs.c: add instance error checking to many functions.
13022         (instantiate_image_instantiator): decode device from cache_domain.
13023         (image_instantiate): partially rewrite by using
13024         decode_image_instantiator_domain to determine what domain the
13025         instance needs to be cached in.
13026         (decode_image_instantiator_domain): new function. Determine what
13027         domain the image needs to be cached in.
13028         (check_window_subwindow_cache): new error checking function.
13029         (check_instance_cache_mapper): ditto.
13030         (check_image_instance_structure): ditto.
13031         (subwindow_decode_domain): new function. Encodes a window as a
13032         subwindow's cache domain.
13033         (image_instantiator_format_create): use it for text and
13034         subwindows.
13035
13036 2000-04-21  Andy Piper  <andy@xemacs.org>
13037
13038         * glyphs.c (image_instance_device): new function.
13039         (image_instance_frame): new function.
13040         (image_instance_window): new function.
13041         (image_instance_live_p): new function.
13042
13043         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13044         cache to nil.
13045
13046         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13047         (IMAGE_INSTANCE_DOMAIN): new accessor.
13048         (XIMAGE_INSTANCE_DOMAIN): ditto.
13049
13050         * glyphs-x.c (x_finalize_image_instance): device->domain.
13051
13052         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13053         (mswindows_finalize_image_instance): ditto.
13054
13055         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13056         (gif_instantiate): ditto.
13057         (png_instantiate): ditto.
13058         (tiff_instantiate): ditto.
13059
13060         * glyphs.c (instantiate_image_instantiator): use domain rather
13061         than device.
13062         (mark_image_instance): device -> domain.
13063         (print_image_instance): ditto.
13064         (finalize_image_instance): ditto.
13065         (image_instance_equal): ditto.
13066         (allocate_image_instance): ditto.
13067         (Fcolorize_image_instance): ditto.
13068         (query_string_geometry): ditto.
13069         (image_instantiate): ditto
13070         (query_string_font): ditto.
13071         (image_instantiate): ditto.
13072         (update_subwindow): ditto.
13073         (unmap_subwindow): ditto.
13074         (map_subwindow): ditto.
13075         (subwindow_instantiate): ditto.
13076
13077         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13078         (DOMAIN_FRAME): ditto.
13079         (DOMAIN_WINDOW): ditto.
13080         (DOMAIN_LIVE_P): ditto.
13081         (XDOMAIN_DEVICE): ditto.
13082         (XDOMAIN_FRAME): ditto.
13083         (XDOMAIN_WINDOW): ditto.
13084
13085         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13086         a valid specifier domain.
13087
13088 2000-04-19  Andy Piper  <andy@xemacs.org>
13089
13090         * glyphs-widget.c (syms_of_glyphs_widget): remove
13091         widget-callback-current-channel.
13092         (vars_of_glyphs_widget): ditto.
13093         * glyphs.h: ditto
13094
13095         * gui.c (get_gui_callback): revert to previous behaviour.
13096
13097 2000-04-18  Andy Piper  <andy@xemacs.org>
13098
13099         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13100         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13101         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13102
13103         * glyphs.c (image_instance_equal): add margin_width.
13104         (image_instance_hash): ditto.
13105
13106         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13107         (layout_query_geometry): ditto.
13108         (layout_layout): ditto.
13109         (syms_of_glyphs_widget): add margin-width.
13110         (image_instantiator_layout): allow margin-width.
13111
13112         * glyphs.c (update_widget_instances): make a normal function.
13113         (syms_of_glyphs): remove Qupdate_widget_instances.
13114         * glyphs.h: ditto.
13115
13116         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13117         so that we don't corrupt ideas about the last event or
13118         command. Remove widget-callback-current-channel fiddling.
13119         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13120
13121 2000-05-01  Martin Buchholz <martin@xemacs.org>
13122
13123         * XEmacs 21.2.33 is released.
13124
13125 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13126
13127         * make-src-depend: Allow dots in header file name.
13128
13129 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13130
13131         * mule-charset.h (struct charset_lookup): Add
13132         next_allocated_1_byte_leading_byte and
13133         next_allocated_2_byte_leading_byte.
13134         * mule-charset.c: Move above two variables so that those values
13135         will be dumped.
13136
13137 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13138
13139         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13140         when string length is zero.
13141         (find_charsets_in_emchar_string): Ditto.
13142
13143 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13144
13145         * lisp.h: extern Qdialog and Qmenubar.
13146
13147         * gui-x.c: added events.h.
13148                 also fixed typo which made the file uncompilable.
13149
13150         * general.c: Added Qmenubar and Qdialog
13151
13152 2000-04-28  Ben Wing  <ben@xemacs.org>
13153
13154         * frame-msw.c (mswindows_init_frame_1):
13155         * frame-msw.c (mswindows_mark_frame):
13156         * event-msw.c (mswindows_enqueue_dispatch_event):
13157         * console-msw.h:
13158         * console-msw.h (struct mswindows_frame):
13159         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13160         there are now three hash tables for callbacks.
13161         mswindows_enqueue_dispatch_event is no longer static.
13162
13163         * dialog-x.c (maybe_run_dbox_text_callback):
13164         * dialog-x.c (dbox_descriptor_to_widget_value):
13165         switch to new cons3 form for callbacks.
13166
13167         * glyphs-msw.c (mswindows_register_gui_item):
13168         * glyphs-msw.c (mswindows_widget_instantiate):
13169         * glyphs-msw.c (add_tree_item):
13170         * glyphs-msw.c (add_tab_item):
13171         new image instance parameter, so it can be passed to callback-ex.
13172         respect :callback-ex as well as :callback.
13173
13174         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13175         add :callback-ex.
13176
13177         * glyphs.c (print_image_instance):
13178         prettify, e.g. now prints widget type.
13179
13180         * gui-x.h:
13181         certain funs have new image instance parameter.
13182
13183         * gui.c:
13184         * gui.c (get_gui_callback):
13185         * gui.c (gui_item_add_keyval_pair):
13186         * gui.c (gui_item_init):
13187         * gui.c (gui_add_item_keywords_to_plist):
13188         * gui.c (mark_gui_item):
13189         * gui.c (gui_item_hash):
13190         * gui.c (gui_item_equal):
13191         * gui.c (copy_gui_item):
13192         * gui.c (syms_of_gui):
13193         recognize callback-ex in a number of places.
13194         also, fix the annoying "can't get out of yes-no dialog" bug.
13195
13196         * gui.h:
13197         * gui.h (struct Lisp_Gui_Item):
13198         recognize callback-ex in a number of places.
13199
13200         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13201         new parameter in button_item_to_widget_value.
13202
13203         * glyphs-x.c (x_update_widget):
13204         * glyphs-x.c (x_button_instantiate):
13205         * glyphs-x.c (x_button_update):
13206         * glyphs-x.c (x_progress_gauge_instantiate):
13207         * glyphs-x.c (x_edit_field_instantiate):
13208         * glyphs-x.c (x_combo_box_instantiate):
13209         * glyphs-x.c (x_tab_control_instantiate):
13210         * glyphs-x.c (x_label_instantiate):
13211         new image instance parameter in various places.
13212
13213         * event-Xt.c:
13214         * event-Xt.c (enqueue_Xt_dispatch_event):
13215         this fun gets exported.
13216
13217         * gui-msw.c:
13218         * gui-msw.c (mswindows_handle_gui_wm_command):
13219         handle both :callback and :callback-ex, and generate our own
13220         event because it's one of the callback-ex arguments.
13221
13222         * gui-x.c:
13223         * gui-x.c (popup_selection_callback):
13224         handle both :callback and :callback-ex, and generate our own
13225         event because it's one of the callback-ex arguments.
13226         * gui-x.c (button_item_to_widget_value):
13227         * gui-x.c (gui_items_to_widget_values_1):
13228         * gui-x.c (gui_item_children_to_widget_values):
13229         * gui-x.c (gui_items_to_widget_values):
13230         new image instance parameter in various places.
13231
13232         * fns.c (Freplace_list):
13233         fix small typo in doc string.
13234
13235         * lisp.h:
13236         declare enqueue_Xt_dispatch_event.
13237
13238 2000-04-28  Ben Wing  <ben@xemacs.org>
13239
13240         * buffer.c:
13241         * buffer.c (Frecord_buffer):
13242         * buffer.c (syms_of_buffer):
13243         delete record-buffer-hook.
13244
13245         * fns.c:
13246         * fns.c (Freplace_list):
13247         * fns.c (syms_of_fns):
13248         new primitive replace-list.
13249
13250         * frameslots.h:
13251         slot for old buffer-alist.
13252
13253         * lisp.h:
13254         exfun replace-list.
13255
13256         * redisplay.c:
13257         * redisplay.c (redisplay_frame):
13258         * redisplay.c (syms_of_redisplay):
13259         * redisplay.c (vars_of_redisplay):
13260         new hook buffer-list-changed-hook.
13261         call it.
13262
13263 2000-04-27  Ben Wing  <ben@xemacs.org>
13264
13265         * extents.h: extern in_modeline_generation.
13266
13267         * redisplay.c (generate_formatted_string_db): set
13268         in_modeline_generation.
13269
13270         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13271         flags if in modeline generation.  otherwise frame-modified-tick
13272         is ticked far too often.
13273         Declare in_modeline_generation.
13274
13275 2000-04-26  Ben Wing  <ben@xemacs.org>
13276
13277         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13278         option.
13279         (vars_of_emacs): add quick-build as an error-checking option.
13280         A bit kludgy, but there doesn't seem much point in creating
13281         a real var for this.
13282
13283         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13284
13285 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13286
13287         * redisplay.h (struct display_line): Add a new variable,
13288         line_continuation.
13289
13290         * redisplay.c (create_text_block): Set dl->line_continuation if
13291         the line continues.
13292         (create_string_text_block): Ditto.
13293         (regenerate_window_incrementally): Use line_continuation instead
13294         of searching continuation glyph.
13295         (add_margin_runes): Call add_glyph_rune.
13296         (add_glyph_rune): Handle margin glyph.
13297
13298 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13299
13300         * filelock.c (fill_in_lock_file_name):
13301         ANSIfy.
13302         Check for IS_ANY_SEP instead of '/'.
13303         (lock_file_1):
13304         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13305         Never check errno without first seeing that system call failed.
13306         (unlock_file): Add GCPRO.
13307         (Flock_buffer): Fix docstring.
13308         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13309
13310 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13311
13312         * sysdep.c (get_pty_max_bytes):
13313         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13314         strings longer than 252 bytes.
13315
13316         * md5.c: Unconditionally include ANSI header <limits.h>
13317
13318         * glyphs-x.c (convert_EImage_to_XImage):
13319         * lisp-union.h (union Lisp_Object):
13320         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13321
13322 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13323
13324         * filelock.c (current_lock_owner): Remove unused variable o, p.
13325
13326 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13327
13328         * callint.c: Remove multiply defined symbol Qlet
13329         (syms_of_callint): ditto.
13330
13331 2000-04-14  Andy Piper  <andy@xemacs.org>
13332
13333         * general.c (syms_of_general): add last-command, this-command, let
13334         and funcall.
13335
13336         * lisp.h: declare various symbols.
13337
13338         * glyphs.h: declare Qwidget_callback_current_channel;
13339
13340         * glyphs-widget.c (syms_of_glyphs_widget): add
13341         Qgui_callback_current_channel.
13342         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13343
13344         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13345         widget-callback-current-channel when invoking the interactive
13346         arg. Also bind last-command and next-command when invoking the
13347         widget updates.
13348         * gui-x.c (popup_selection_callback): ditto.
13349
13350         * gui.c (get_gui_callback): massage args so that we are always
13351         calling eval. This allows us to add our own variable bindings
13352         outside.
13353
13354         * glyphs-x.c (x_button_instantiate): use
13355         gui_items_to_widget_values since this is GC safe.
13356         (x_progress_gauge_instantiate): ditto.
13357         (x_edit_field_instantiate): ditto.
13358         (x_label_instantiate): ditto.
13359
13360         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13361         (emacs_Xt_event_widget_focus_out): new function
13362         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13363         focus.
13364         (emacs_Xt_event_add_widget_actions): new function. add focus
13365         functions as actions.
13366         (init_event_Xt_late): use it.
13367
13368 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13369
13370         * event-stream.c (Fdispatch_event): Doc fix.
13371
13372 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13373
13374         * postgresql.c: Remove all references to PQsetenv*.
13375
13376         * postgresql.h: Remove references to PGsetenvHandler object.
13377         * lrecord.h (lrecord_type): Ditto.
13378
13379 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13380
13381         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13382         real_heigh and real_width members, and accessor macros for these.
13383
13384         * glyphs-msw.c (init_image_instance_geometry): New function.
13385         (init_image_instance_from_dibitmap): Use it.
13386         (mswindows_resource_instantiate): Use it.
13387         (init_image_instance_from_xbm_inline): Use it.
13388         (mswindows_initialize_image_instance_mask): Use real bitmap
13389         geometry.
13390         (mswindows_create_resized_bitmap): Ditto.
13391         (mswindows_create_resized_mask): Ditto.
13392
13393         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13394         and bitmap to their surface size.
13395
13396 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13397
13398         * process-unix.c (unix_send_process): Guard against process MIA
13399         after Faccept_process_output.
13400
13401 2000-04-11  Ben Wing  <ben@xemacs.org>
13402
13403         * eval.c (unbind_to_hairy): fix brokenness introduced by
13404         nanosecond speed improvements.
13405
13406 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13407
13408         * sunplay.c (init_device): To play sounds correctly, the device
13409         apparently needs to be initialized at least once by XEmacs.  Make
13410         it so.
13411
13412 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13413
13414         * redisplay.c (add_margin_runes): Add text image glyph
13415           handling.
13416
13417 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13418
13419         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13420         gcc is newer than 2.5.
13421
13422 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13423
13424         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13425
13426         * fns.c (size_bit_vector):
13427         * alloc.c (size_vector):
13428         (make_vector_internal):
13429         (make_bit_vector_internal):
13430         (sweep_bit_vectors_1):
13431         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13432
13433 2000-04-06  Andy Piper  <andy@xemacs.org>
13434
13435         * gmalloc.c (malloc): undo previous change.
13436         (malloc): ditto.
13437         (free): ditto.
13438         (realloc): ditto.
13439
13440 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13441
13442         * line-number.c (buffer_line_number): Revert to former version.
13443
13444 2000-04-06  Andy Piper  <andy@xemacs.org>
13445
13446         * gmalloc.c (malloc): add error checking.
13447         (malloc): ditto.
13448         (free): ditto.
13449         (realloc): ditto.
13450
13451         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13452         button_item_to_widget_value arg.
13453
13454         * glyphs-x.c (x_button_instantiate): add extra
13455         button_item_to_widget_value arg.
13456         (x_progress_gauge_instantiate): ditto.
13457         (x_edit_field_instantiate): ditto.
13458         (x_label_instantiate): ditto.
13459
13460         * gui-x.c (gui_items_to_widget_values_1): add extra
13461         button_item_to_widget_value arg.
13462         (button_item_to_widget_value): add extra menu_item_p arg.
13463
13464         * gui-x.h: change signature of button_item_to_widget_value.
13465
13466         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13467         button_item_to_widget_value arg.
13468
13469 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13470
13471         * buffer.h (struct buffer): auto_save_modified should be long.
13472
13473 2000-04-05  Andy Piper  <andy@xemacs.org>
13474
13475         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13476         type.
13477         (button_query_geometry): give a little more room so that athena
13478         buttons fit.
13479
13480 2000-04-05  Andy Piper  <andy@xemacs.org>
13481
13482         * faces.c (complex_vars_of_faces): The widget face should inherit
13483         the font of the gui-element face.
13484
13485 2000-04-04  Andy Piper  <andy@xemacs.org>
13486
13487         * glyphs-x.c (x_button_update): new function. unconditionally
13488         update a button's state when the instance is dirty.
13489         (image_instantiator_format_create_glyphs_x): add x_button_update.
13490         (x_widget_instantiate): remove old resize cruft.
13491
13492 2000-04-02  Andy Piper  <andy@xemacs.org>
13493
13494         * frame.c (change_frame_size_1): The introduction of gutters means
13495         that we need to allow 0 as a potential frame dimension.
13496
13497 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13498
13499         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13500         image glyph if allow_cursor.
13501         (add_hscroll_rune): Don't allow cursor to border glyph.
13502         (create_text_block): Ditto.
13503
13504         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13505         text not in buffer.
13506         (redisplay_output_layout): Call ensure_face_cachel_complete for
13507         text image glyph.
13508
13509
13510 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13511
13512         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13513
13514         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13515         not in buffer
13516
13517         * redisplay-tty.c (tty_output_display_block): Delete the routine
13518         for text image glyph
13519         * redisplay-x.c (x_output_display_block): ditto
13520         * redisplay-msw.c (mswindows_output_display_block): ditto
13521
13522 2000-02-02  Mike Alexander  <mta@arbortext.com>
13523
13524         Note: Some of these were committed by accident as part of other
13525         patches.
13526
13527         * regex.c (regex_compile): Avoid compiler warnings.
13528
13529         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13530
13531         * nt.h: Declare term_ntproc correctly.
13532
13533         * nt.c: Remove incorrect declaration of get_home_directory which
13534         is declared correctly in lisp.h.
13535
13536         * keymap.c (get_keyelt): Avoid compiler warnings.
13537         (raw_lookup_key_mapper): Avoid compiler warnings.
13538
13539         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13540
13541         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13542
13543         * filemode.c (mode_string): Avoid compiler warnings.
13544
13545         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13546         avoid warning.
13547
13548         * events-mod.h: Undef some things that winuser.h defines differently.
13549
13550         * data.c (Faset): Avoid compiler warnings.
13551
13552         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13553
13554 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13555
13556         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13557         Fall through to simple beep on error.
13558         Replace "extern" by real header file.
13559
13560         * linuxplay.c: Use nativesound.h
13561         (play_sound_data): Return error code. Be less verbose on error.
13562
13563         * sunplay.c: Use nativesound.h
13564         (play_sound_data): Return error code. Be less verbose on error.
13565
13566         * ntplay.c: Use nativesound.h
13567         (play_sound_data): Return fake error code
13568
13569         * sgiplay.c: Use nativesound.h
13570         (play_sound_data): Return error code
13571
13572         * hpplay.c: Use nativesound.h, partially implement
13573         new error code. Break compilation until finished.
13574         (play_sound_data): error code.
13575
13576         * nativesound.h (play_sound_file):
13577           (play_sound_data): Prototype in new header.
13578
13579 2000-03-31  Andy Piper  <andy@xemacs.org>
13580
13581         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13582         for toggle and radio buttons.
13583         (image_instantiator_buttons): use it.
13584
13585 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13586
13587         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13588         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13589         found. Scrollbar event probably belonged to some old config.
13590
13591 2000-03-31  Andy Piper  <andy@xemacs.org>
13592
13593         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13594         than 1.
13595         (initialize_widget_image_instance): default layout to
13596         LAYOUT_HORIZONTAL rather than 0.
13597         (widget_instantiate): reverse the item list at the end rather than
13598         every iteration.
13599         (layout_layout): re-code for the border text at the front of the
13600         item list rather than at the end.
13601         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13602         provided by the user.
13603         (widget_query_geometry): comment.
13604
13605 2000-03-30  Andy Piper  <andy@xemacs.org>
13606
13607         * glyphs-widget.c (image_instantiator_layout): allow standard
13608         widget keywords in layouts.
13609
13610         * gutter.c (output_gutter): cope with nil gutter contents.
13611
13612         * frame.c (Fset_frame_properties): add gutter docs.
13613
13614 2000-03-29  Andy Piper  <andy@xemacs.org>
13615
13616         * toolbar-msw.c (TBSTYLE_FLAT): add.
13617         (mswindows_output_toolbar): minor fiddling.
13618
13619 2000-03-29  Andy Piper  <andy@xemacs.org>
13620
13621         * gutter.c (output_gutter): force gutter size recalculation if
13622         what we are trying to display won't fit.
13623         (update_gutter_geometry): new function. A per-gutter version of
13624         update_frame_gutter_geometry.
13625         (update_frame_gutter_geometry): use it.
13626         (redraw_exposed_gutter): add extra debugging output.
13627
13628 2000-03-28  Mike Alexander  <mta@arbortext.com>
13629
13630         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13631         (pdump_file_unmap): Implement it on Windows
13632         (pdump_file_get): Save alocated handles for pdump_file_unmap
13633
13634 2000-03-28  Andy Piper  <andy@xemacs.org>
13635
13636         * gui.c (get_gui_callback): treat Quit specially.
13637
13638 2000-03-27  Andy Piper  <andy@xemacs.org>
13639
13640         * glyphs.c (image_instantiate): be careful to check in the same
13641         way we assigned.
13642
13643 2000-03-27  Didier Verna  <didier@xemacs.org>
13644
13645         * config.h.in: define the proper SMART_INCLUDE macro.
13646         handle renaming of `foo_h_path' to `foo_h_file'.
13647
13648         * database.c: ditto.
13649
13650         * emacs.c: ditto.
13651
13652         * linuxplay.c: ditto.
13653
13654         * terminfo.c: ditto.
13655
13656         * tooltalk.h: ditto.
13657
13658 2000-03-27  Andy Piper  <andy@xemacs.org>
13659
13660         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13661         gets updated whenever the face might have changed.
13662
13663 2000-03-26  Mike Alexander  <mta@arbortext.com>
13664
13665         * dumper.c (pdump_resource_free): Fix the comment.
13666
13667 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13668
13669         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13670
13671 2000-03-22  Mike Alexander  <mta@arbortext.com>
13672
13673         * dumper.c: Include Windows headers on Windows
13674         (pdump_resource_free): Add a body to the function
13675         (pdump_load): exe_name -> exe_path and add some comments.
13676
13677 2000-03-25  Mike Alexander  <mta@arbortext.com>
13678
13679         * gui.c (copy_gui_item_tree): Return a value in all cases
13680
13681 2000-03-21  Didier Verna  <didier@xemacs.org>
13682
13683         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13684         lwlib/config.h.in.
13685         (SMART_INCLUDE): new macro.
13686         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13687         the proper location.
13688
13689         * postgresql.c: use it.
13690
13691         * inline.c: ditto.
13692
13693 2000-03-24  Andy Piper  <andy@xemacs.org>
13694
13695         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13696         do this.
13697
13698 2000-03-24  Andy Piper  <andy@xemacs.org>
13699
13700         * redisplay-output.c (compare_runes): use image_instance_changed
13701         to detect changes. Do not depend on glyphs_changed, only depend on
13702         dirtiness.
13703          (redisplay_output_layout): add debug messages.
13704         (compare_runes): ditto.
13705
13706         * glyphs.h: declare new functions.
13707         (struct Lisp_Image_Instance): remove percent and associated
13708         accessors.
13709
13710         * gui.h: declare new copying functions.
13711
13712         * gui.c (copy_gui_item_tree): new function.
13713         (copy_gui_item): new function.
13714         (gui_item_id_hash): revert to standard hash.
13715         (gui_item_hash): ditto.
13716         (gui_item_hash_internal): deleted.
13717         (mark_gui_item): mark value.
13718         (gui_item_add_keyval_pair): add value.
13719         (gui_item_init): ditto.
13720         (gui_add_item_keywords_to_plist): ditto.
13721         (gui_item_equal): ditto.
13722         (syms_of_gui): add Q_value.
13723
13724         * glyphs-x.c (x_progress_gauge_update): use pending items and
13725         value for setting the state.
13726         (x_update_widget): don't set items from pending here.
13727
13728         * glyphs-widget.c (update_widget): update items here.
13729         (progress_gauge_set_property): use items for storing value. Put
13730         new value in pending items.
13731
13732         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13733         items for new value. Convert percent -> value.
13734         (mswindows_tab_control_update): don't update items here.
13735
13736         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13737         (update_subwindow): ditto.
13738         (image_instance_changed): new function. Compare hash values and
13739         past and present widget items.
13740         (image_instantiate): We more careful about where we instantiate
13741         things.
13742         (image_instantiate): add error checking.
13743
13744         * gutter.c (syms_of_gutter): use -hook.
13745
13746 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13747
13748         * console-tty.c (Fset_console_tty_input_coding_system): Use
13749         Qkeyboard.
13750         (Fset_console_tty_output_coding_system): Use Qterminal.
13751         (tty_init_console): Use Qkeyboard and Qterminal.
13752
13753 2000-03-21  Ben Wing  <ben@xemacs.org>
13754
13755         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13756         From Mike Alexander <mta@arbortext.com>.
13757
13758 2000-03-21  Ben Wing  <ben@xemacs.org>
13759
13760         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13761         process brokenness.  Proper implementation to come.
13762         * callproc.c:
13763         Rename call-process-internal to old-call-process-internal.
13764         New impl. in process.el.
13765
13766 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13767
13768         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13769
13770 2000-03-20  Andy Piper  <andy@xemacs.org>
13771
13772         * glyphs.c (full_list_hash): make hashes of the same elements in
13773         different orders return different values.
13774
13775 2000-03-20  Martin Buchholz <martin@xemacs.org>
13776
13777         * XEmacs 21.2.32 is released.
13778
13779 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13780
13781         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13782         (DFC_MALLOC_USE_CONVERTED_DATA):
13783         Add aliasing-safe casts to allow use with char* or unsigned char*
13784         lvalues.
13785
13786         * eldap.c (Fldap_open):
13787         (Fldap_search_basic):
13788         (Fldap_add):
13789         (Fldap_modify):
13790         Make C++-compilable.
13791         Make sure GCPRO'ed variables are initialized.
13792         Use temp variables to avoid repeated calls to Flength.
13793
13794 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13795
13796         * sysfile.h:
13797         Make sure PATH_MAX is always defined.
13798         Include limits.h for PATH_MAX.
13799         Deprecate use of MAXPATHLEN.
13800
13801 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13802
13803         * emacs.c: Add reinit_vars_of_fileio.
13804         * symsinit.h: Add reinit_vars_of_fileio.
13805         * fileio.c (reinit_vars_of_fileio): New.
13806         * fileio.c (Fmake_temp_name):
13807         Initialize temp_name random number from microseconds to make
13808         collisions even less likely.  Initialize always at process startup
13809         time.  (make-temp-name) used to return the same file name twice in
13810         a row when PDUMP.
13811         Random stylistic fiddling.
13812         Comment fixes.
13813
13814 2000-03-20  Andy Piper  <andy@xemacs.org>
13815
13816         * glyphs.c (image_instantiate): allow text glyphs to be
13817         instantiated in the minibuffer window.
13818
13819 2000-03-19  Andy Piper  <andy@xemacs.org>
13820
13821         * glyphs.c (image_instance_hash): be careful about which items we
13822         hash on.
13823
13824         * glyphs-widget.c (tab_control_set_property): record into pending
13825         items rather than the actual items.
13826
13827         * glyphs-x.c (x_update_widget): use pending items to update with.
13828
13829         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13830         to update with.
13831
13832         * glyphs.c (mark_image_instance): mark pending items.
13833
13834         * window.c (Fset_window_configuration): record the buffer.
13835         (Fselect_window): totally revert previous change which breaks many
13836         things.
13837
13838 2000-03-18  Andy Piper  <andy@xemacs.org>
13839
13840         * glyphs-msw.c (mswindows_tab_control_update): force selected
13841         item.
13842
13843         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13844         window domain cache, otherwise we get inconsistencies at
13845         startup. There is something fishy at startup which can lead to the
13846         minibuffer being the selected window when the gutter content is
13847         instantiated.
13848
13849         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13850         gcpros.
13851         (parse_gui_item_tree_children): ditto.
13852         (parse_gui_item_tree_item): ditto.
13853
13854         * glyphs.c (Fupdate_widget_instances): return something.
13855
13856 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13857
13858         * window.c (Fselect_window): Undo 2000-03-17 change.
13859
13860 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13861
13862         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13863         against v7.0 libraries.  Insta-coredump city until the postgres
13864         folks fix it.
13865
13866 2000-03-17  Andy Piper  <andy@xemacs.org>
13867
13868         * faces.c (complex_vars_of_faces): don't give the widget face an
13869         inherited background pixmap.
13870
13871         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13872         selected item.
13873
13874         * event-stream.c (Fdispatch_non_command_events): return something.
13875
13876         * gutter.c (output_gutter): use widget face.
13877         (clear_gutter): ditto.
13878
13879         * NEWS: adjust again.
13880
13881         * window.c (Fselect_window): make sure this runs to completion to
13882         avoid oddities with Fset_window_configuration.
13883         (Fcurrent_window_configuration): in general do not save the
13884         minibuffer as the selected window.
13885
13886         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13887
13888 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13889
13890         * emacs.c (Frunning_temacs_p): Revert previous patch.
13891         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13892
13893 2000-03-16  Andy Piper  <andy@xemacs.org>
13894
13895         * glyphs-x.c (x_tab_control_update): if no widget values then
13896         return.
13897
13898         * NEWS: update for new features.
13899
13900         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13901         synthetic event to the native system.
13902         (reinit_vars_of_event_Xt): set force_event_pending to
13903         emacs_Xt_force_event_pending.
13904
13905         * events.h (struct event_stream): add force_event_pending.
13906
13907         * specifier.c (recompute_one_cached_specifier_in_window): add
13908         comment.
13909
13910         * redisplay.c (redisplay_frame): don't call
13911         update_frame_subwindows. Reset subwindow cachels when
13912         subwindows_changed, removing this was an optimization too far.
13913
13914         * redisplay-output.c (compare_runes): reorganize so that we catch
13915         glyph changes when we want them. Set optimize_output when this
13916         would help layouts.
13917         (redisplay_output_layout): remove frame_really_changed, use
13918         optimize_output instead.
13919
13920         * redisplay-msw.c (mswindows_output_display_block): reset
13921         optimize_output after outputting a glyph.
13922         * redisplay-x.c (x_output_display_block): ditto.
13923         * redisplay-tty.c (tty_output_display_block): ditto.
13924
13925         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13926         functions.
13927         (gutter_specs_changed): do specific gutter positions.
13928         (top_gutter_specs_changed): new function. Only update the
13929         specified gutter specs.
13930         (bottom_gutter_specs_changed): ditto.
13931         (left_gutter_specs_changed): ditto.
13932         (right_gutter_specs_changed): ditto.
13933
13934         * gui.c (gui_item_hash_internal): new function, does a real hash.
13935         (gui_item_id_hash): use it.
13936         (gui_item_hash): hash the eval'ed gui_item.
13937
13938         * gui-x.c (popup_selection_callback): send an eval event to call
13939         Fupdate_widget_instances.
13940
13941         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13942         to call Fupdate_widget_instances.
13943
13944         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13945         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13946
13947         * glyphs.c: (update_frame_subwindows): deleted.
13948         (Fupdate_widget_instances): new function for updating the dirty
13949         state of widgets that might have changed.
13950         (syms_of_glyphs): add Qupdate_widget_instances.
13951         (full_list_hash): hash a list completely.
13952         (image_instance_hash): use it for items and properties.
13953
13954         * frame-msw.c (mswindows_size_frame_internal): remove unused
13955         variable.
13956
13957         * faces.h (struct face_cachel): fix comment.
13958
13959         * event-stream.c (Fdispatch_non_command_events): new
13960         function. Process non-command events, forcing an event cycle
13961         beforehand.
13962         (syms_of_event_stream): declare.
13963         (event_stream_force_event_pending): new function. Force an event
13964         on the native event queue so that an event cycle will occur next
13965         time we check.
13966
13967         * event-msw.c:
13968         (struct ntpipe_shove_stream):
13969         (mswindows_enqueue_dispatch_event):
13970         (mswindows_dequeue_dispatch_event):
13971         (mswindows_cancel_dispatch_event):
13972         (mswindows_pump_outstanding_events):
13973         (mswindows_drain_windows_queue):
13974         (mswindows_handle_paint):
13975         (mswindows_wnd_proc):
13976         (mswindows_key_to_emacs_keysym):
13977         (get_process_input_waitable):
13978         (emacs_mswindows_delete_stream_pair): re-indent file.
13979         (mswindows_need_event): do not process further fds if the windows
13980         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13981         fixes the 100% cpu problem.
13982         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13983
13984 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13985
13986         * alloc.h: New.
13987         * dumper.h: New.
13988         * dumper.c: New.
13989
13990         * emacs.c: Moved dump file searching to dumper.c.
13991         (Frunning_temacs_p): Fixed.
13992
13993         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13994         last_lrecord_type_index_assigned.
13995
13996 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13997
13998         * symsinit.h: Added reinit parameter to init_console_stream
13999         declaration.
14000
14001         * lisp.h: Added file parameter to pdump_load declaration.
14002
14003         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14004         support.  Added dump file searching.
14005
14006         * config.h.in: Added EMACS_PROGNAME.
14007
14008         * console-stream.c (init_console_stream): Fix reinitialisation
14009         when running from temacs.
14010
14011         * alloc.c (pdump): Add id support.
14012         (pdump_load): Add file parameter and signature/id support.
14013
14014         * Makefile.in.in: Add full pdump support.
14015
14016 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14017
14018         * postgresql.c: Update documentation to reflect latest code
14019         status.
14020         (print_result): Show tuple counts in printed representation when
14021         appropriate.
14022         (Fpq_put_nbytes): MULE-ize.
14023         (Fpq_get_line_async): Ditto.
14024
14025 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14026
14027         * postgresql.c (Fpq_lo_import): Fix return value.
14028         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14029
14030 2000-03-13  Ben Wing  <ben@xemacs.org>
14031
14032         * alloc.c (pdump_load):
14033         Fix compile warning under mswin.
14034
14035 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14036
14037         * postgresql.c: Mule-ization, bug fixes.
14038         Use PG_CODING to encapsulate coding system name changes.
14039         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14040         (pg-coding-system): Create.
14041
14042         (Fpq_conn_defaults): Mule-ize.
14043         (Fpq_connectdb): Mule-ize & bug fix.
14044         (Fpq_connect_start): Mule-ize.
14045         (Fpq_set_client_encoding): Mule-ize.
14046         (Fpq_finish): Document `DEAD' connection status.
14047         (Fpq_clear): Ditto.
14048         (Fpq_pgconn): Mule-ize.
14049         (Fpq_exec): Mule-ize & bug fix.
14050         (Fpq_send_query): Ditto.
14051         (Fpq_get_result): Ditto.
14052         (Fpq_res_status): Mule-ize.
14053         (Fpq_result_error_message): Mule-ize.
14054         (Fpq_ntuples): fix comments.
14055         (Fpq_fname): Mule-ize.
14056         (Fpq_fnumber): Mule-ize.
14057         (Fpq_ftype): fix comments.
14058         (Fpq_get_value): Mule-ize.
14059         (Fpq_cmd_status): Ditto.
14060         (Fpq_cmd_tuples): Ditto.
14061         (Fpq_oid_value): Ditto.
14062         (Fpq_notifies): Ditto.
14063         (Fpq_lo_import): Ditto.
14064         (Fpq_lo_export): Ditto.
14065         (Fpq_get_line): Ditto.
14066         (Fpq_put_line): Mule-ize and bug fix.
14067         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14068
14069 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14070
14071         * postgresql.c (vars_of_postgresql): Mule-ize.
14072         (Fpq_conn_defaults): Ditto.
14073
14074 2000-03-12  Ben Wing  <ben@xemacs.org>
14075
14076         * alloc.c (Fmake_byte_code):
14077         * alloc.c (debug_string_purity_print):
14078         * alloc.c (pdump_backtrace):
14079         * alloc.c (pdump_get_indirect_count):
14080         * alloc.c (pdump_register_sub):
14081         * alloc.c (pdump_register_object):
14082         * alloc.c (pdump_register_struct):
14083         * alloc.c (pdump_dump_data):
14084         * alloc.c (pdump_reloc_one):
14085         Minor cleanups.
14086
14087         * console-msw.c:
14088         * console-msw.c (GetConsoleHwnd):
14089         * console-msw.c (msw_hide_console):
14090         * console-msw.c (msw_show_console):
14091         * console-msw.c (msw_ensure_console_buffered):
14092         * console-msw.c (msw_output_console_string):
14093         * console-msw.c (console_type_create_mswindows):
14094
14095         a) Added functions to manipulate the console window for use with
14096         shell support.
14097
14098         b) Added support for writing text to the console, which is now
14099         used under Windows when xemacs is not being run non-interactively,
14100         to write text that would otherwise be destined for stdout because
14101         under these circumstances, text written to stdout tends to
14102         disappear and not be seen.
14103
14104         * console-msw.h:
14105         * event-Xt.c:
14106         * event-Xt.c (x_event_to_emacs_event):
14107         * event-Xt.c (describe_event_window):
14108         * events-mod.h (XEMACS_MOD_CONTROL):
14109         * events.c:
14110         * events.c (Fmake_event):
14111         * events.c (character_to_event):
14112         * events.c (event_to_character):
14113         * events.c (format_event_object):
14114         * events.c (Fevent_modifiers):
14115         * events.h:
14116         * events.h (struct key_data):
14117         * events.h (struct button_data):
14118         * events.h (struct misc_user_data):
14119         * frame-x.c (Fcde_start_drag_internal):
14120         * frame-x.c (Foffix_start_drag_internal):
14121         * gpmevent.c (Freceive_gpm_event):
14122         * keymap.c:
14123         * keymap.c (bucky_sym_to_bucky_bit):
14124         * keymap.c (control_meta_superify):
14125         * keymap.c (make_key_description):
14126         * keymap.c (keymap_lookup_directly):
14127         * keymap.c (create_bucky_submap):
14128         * keymap.c (keymap_store):
14129         * keymap.c (define_key_check_and_coerce_keysym):
14130         * keymap.c (define_key_parser):
14131         * keymap.c (define_key_alternate_name):
14132         * keymap.c (Fdefine_key):
14133         * keymap.c (raw_lookup_key_mapper):
14134         * keymap.c (struct map_keymap_unsorted_closure):
14135         * keymap.c (map_keymap_unsorted_mapper):
14136         * keymap.c (map_keymap_sort_predicate):
14137         * keymap.c (map_keymap_sorted):
14138         * keymap.c (accessible_keymaps_mapper_1):
14139         * keymap.c (where_is_recursive_mapper):
14140         * keymap.c (describe_map_mapper):
14141         * keymap.c (describe_map_sort_predicate):
14142         * keymap.c (describe_map):
14143         * keymap.c (complex_vars_of_keymap):
14144         And a number of other files, the key modifier preprocessor
14145         constants that xemacs uses have names that conflict with constants
14146         defined under MS Windows for other purposes, so they were renamed
14147         to begin with the prefix XEMACS_. The variables that hold such
14148         modifiers were changed to consistently be of type int to fix
14149         various compile warnings.
14150
14151         * console.c (complex_vars_of_console):
14152         * device.c:
14153         * device-msw.c:
14154         * device-msw.c (mswindows_finish_init_device):
14155         * device-msw.c (msw_get_workspace_coords):
14156         * device-msw.c (mswindows_device_system_metrics):
14157         and various other files, added support for a new
14158         device property called offset-workspace which returns the position
14159         of the upper left corner of the workspace area and goes along with
14160         the existing size-workspace property.
14161
14162         * dialog-msw.c:
14163         * dialog-msw.c (push_bufbyte_string_as_unicode):
14164         * dialog-msw.c (mswindows_popup_dialog_box):
14165         Added support for XEmacs-style accelerator specifications in
14166         button text.  Note: I didn't add support for this under X Windows,
14167         and somebody needs to do this.
14168
14169         * dialog.c:
14170         * dialog.c (Fpopup_dialog_box):
14171         Documented the support for accelerators that was just mentioned.
14172
14173         editfns.c (get_home_directory): Changed behavior under Windows
14174         when HOME not defined; former behavior was irretrievably broken.
14175
14176         * emacs.c:
14177         * emacs.c (main_1):
14178         * emacs.c (main):
14179         * minibuf.c (clear_echo_area_internal):
14180         * minibuf.c (echo_area_append):
14181         * print.c:
14182         * print.c (std_handle_out_external):
14183         * print.c (std_handle_out_va):
14184         * print.c (fatal):
14185         * print.c (write_string_to_stdio_stream):
14186         * print.c (output_string):
14187         * print.c (debug_print):
14188         * print.c (debug_backtrace):
14189         * print.c (debug_short_backtrace):
14190         Cleaned up the code that prints text to stdout so that this can be
14191         changed to output into a console window instead under MS Windows,
14192         as described above.
14193
14194         * eval.c:
14195         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14196         * eval.c (internal_catch):
14197         * eval.c (unwind_to_catch):
14198         * eval.c (throw_or_bomb_out):
14199         * eval.c (condition_case_1):
14200         * eval.c (signal_1):
14201         * eval.c (check_error_state_sanity):
14202         * eval.c (call_with_suspended_errors_1):
14203         * eval.c (call_with_suspended_errors):
14204         * eval.c (reinit_vars_of_eval):
14205         Added code to catch throw loops and check for a pesky bug that may
14206         be gone now.
14207
14208         * event-msw.c:
14209         * event-msw.c (key_needs_default_processing_p):
14210         * event-msw.c (mswindows_wnd_proc):
14211         * event-msw.c (mswindows_modifier_state):
14212         * event-msw.c (emacs_mswindows_quit_p):
14213         * event-msw.c (vars_of_event_mswindows):
14214         a) Added support for using the alt key to select menu items as is
14215         standard under MS Windows.  This is controlled using the variable
14216         menu-accelerator-enabled, just like under X Windows.  There is an
14217         option on the options menu to turn this support on.  I really
14218         think that it should be on by default under Windows, but I'm not
14219         going to make this change yet.
14220
14221         b)  Added support for dynamic display size changes under Windows.
14222
14223         * event-stream.c:
14224         * event-stream.c (maybe_echo_keys):
14225         * event-stream.c (Fnext_event):
14226         * event-stream.c (command_builder_find_leaf):
14227         * event-stream.c (lookup_command_event):
14228         * event-stream.c (execute_command_event):
14229         * event-stream.c (pre_command_hook):
14230         * event-stream.c (post_command_hook):
14231         * event-stream.c (syms_of_event_stream):
14232         * event-stream.c (vars_of_event_stream):
14233         * event-stream.c (complex_vars_of_event_stream):
14234         * events.h (struct command_builder):
14235
14236         a) Tried to clean up a little bit the horribly written x-specific
14237         accelerator code that crept into this file.  I moved this code
14238         into menubar-x.c where it belongs. I also needed to move the
14239         command builder structure into the file events.h because it is
14240         accessed directly by this accelerator code.  What I didn't do, but
14241         which should be done at some point, is to properly abstract this
14242         code using device methods instead of the kludgy way that it
14243         currently hooks into the event code.
14244
14245         b) Added the lisp variables this-command-properties and
14246         last-command- properties, which should be used to synchronize two
14247         adjacent commands in preference to playing games with the variable
14248         this-command, which is typically what happens.
14249
14250         c) Added some slightly nasty code to hook into the lisp support
14251         for shifted- motion-key selection.  This is actually necessary for
14252         somewhat complicated reasons, which are described in
14253         simple.el. (NB: I think the proper thing would be to have the code
14254         that calls the pre and post command hooks also call out to generic
14255         lisp functions in simple.el, where all built-in stuff could be
14256         added.  I will think about this more.)
14257
14258         * event-unixoid.c (poll_fds_for_input):
14259         * lread.c (readchar):
14260         * redisplay-tty.c (tty_clear_frame):
14261         * redisplay-x.c (x_get_gc):
14262         * signal.c (interrupt_signal):
14263         And a whole bunch of other files: fixed up places that printed
14264         directly to stderr to instead call the function stderr_out so that
14265         the changes I made under Windows work correctly.
14266
14267         * filemode.c (mode_string):
14268         Warning fixes.
14269
14270         * frame-msw.c:
14271         * frame-msw.c (mswindows_size_frame_internal):
14272         Fixed the computation of frame size and position to keep the frame
14273         within the workspace area, rather than within the physical
14274         dimensions of the screen, so that the frame doesn't overlap window
14275         manager decorations, such as the start menu and toolbar, typically
14276         at the bottom of the screen.
14277
14278         * frame.c (vars_of_frame):
14279         Changed the default frame title format under MS Windows to consist
14280         of buffername-XEmacs, which is standard under MS Windows.  I think
14281         it might be a good idea to change this everywhere because I think
14282         it is superior to the current frame title format, but this is the
14283         kind of change that is likely to cause some people to get annoyed,
14284         so I'm not making it.
14285
14286         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14287
14288         * gui-msw.c (mswindows_handle_gui_wm_command):
14289         Fixed compile warnings.
14290
14291         * gui-x.c:
14292         * gui-x.c (strdup_and_add_accel):
14293         * gui-x.c (button_item_to_widget_value):
14294         * gui-x.h:
14295         Added code to automatically put an accelerator onto the beginning
14296         of menu items that don't have one as is now the standard, and is
14297         described more later.  Also fixed things so that the menu item
14298         name can be an evaluated expression, again a new standard.
14299
14300         * gui.c:
14301         * gui.c (gui_item_add_keyval_pair):
14302         * gui.c (make_gui_item_from_keywords_internal):
14303         * gui.c (gui_add_item_keywords_to_plist):
14304         * gui.c (gui_item_accelerator):
14305         * gui.c (gui_name_accelerator):
14306         * gui.c (gui_item_included_p):
14307         * gui.c (gui_item_display_flush_left):
14308         * gui.c (gui_item_display_flush_right):
14309         * gui.c (parse_gui_item_tree_item):
14310         * gui.c (parse_gui_item_tree_children):
14311         * gui.c (parse_gui_item_tree_list):
14312         Mule-ized.  Cleanup.  GCPRO addition.
14313
14314         * line-number.c (buffer_line_number):
14315         * lisp.h:
14316         * lisp.h (EMACS_INT_MAX):
14317         Added the manifest constant EMACS_INT_MIN corresponding to the
14318         existing constant EMACS_INT_MAX.  This is partially to fix compile
14319         warnings under Windows, and partly for cleanliness.
14320
14321         * menubar-msw.c:
14322         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14323         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14324         * menubar-msw.c (displayable_menu_item):
14325         * menubar-msw.c (populate_menu_add_item):
14326         * menubar-msw.c (populate_or_checksum_helper):
14327         * menubar-msw.c (populate_menu):
14328         * menubar-msw.c (update_frame_menubar_maybe):
14329         * menubar-msw.c (prune_menubar):
14330         * menubar-msw.c (msw_char_is_accelerator):
14331         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14332         * menubar-msw.c (mswindows_handle_wm_command):
14333         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14334         * menubar-msw.c (mswindows_handle_wm_initmenu):
14335         * menubar-msw.c (mswindows_update_frame_menubars):
14336         * menubar-msw.c (mswindows_free_frame_menubars):
14337         * menubar-msw.c (mswindows_popup_menu):
14338         Fixed a bug in handling accelerators where an extra character
14339         would be displayed in the menu item.  Also generalized the
14340         function displayable_menu_item because it is now used by the
14341         dialog box code as well.  And finally, added code in the functions
14342         that create the menubar to extract a list of accelerators for the
14343         top level menubar, which is used in the event code to determine
14344         whether a particular alt-key combination should be used to invoke
14345         a menu item, or should be passed through to access the standard
14346         XEmacs keymap binding for this key combination.
14347
14348         Much needed GCPROing.
14349
14350         * menubar-x.c:
14351         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14352         * menubar-x.c (menu_item_descriptor_to_widget_value):
14353         * menubar-x.c (restore_in_menu_callback):
14354         * menubar-x.c (x_popup_menu):
14355         * menubar-x.c (menu_move_up):
14356         * menubar-x.c (menu_move_down):
14357         * menubar-x.c (menu_move_left):
14358         * menubar-x.c (menu_move_right):
14359         * menubar-x.c (menu_select_item):
14360         * menubar-x.c (command_builder_operate_menu_accelerator):
14361         * menubar-x.c (menu_accelerator_junk_on_error):
14362         * menubar-x.c (command_builder_find_menu_accelerator):
14363         * menubar-x.c (Faccelerate_menu):
14364         * menubar.h:
14365         Moved a whole bunch of code here that was previously in
14366         event-stream.c as described above.  There is also code connected
14367         to the new standard of adding an accelerator to the beginning of
14368         menu items that don't have one as described above and below.
14369
14370         * menubar.c:
14371         * menubar.c (menu_parse_submenu_keywords):
14372         * menubar.c (Fmenu_find_real_submenu):
14373         * menubar.c (Fnormalize_menu_item_name):
14374         * menubar.c (syms_of_menubar):
14375         * menubar.c (vars_of_menubar):
14376         * menubar.c (complex_vars_of_menubar):
14377
14378         a) Cleaned up a bunch of documentation and improved it.
14379
14380         b) XEmacs now automatically adds an accelerator onto the beginning
14381         of any menu items that don't have one.  I did this because there
14382         will inevitably be some menu items on the main menubar that don't
14383         have accelerators on them because the package that adds that
14384         particular menu item hasn't yet been fixed up to have accelerators
14385         in them and it looked rather strange to have some items with and
14386         some items without accelerators, especially since even in items
14387         without accelerators, you can, at least under windows, still
14388         access the item through an accelerator corresponding to the first
14389         character in the item's name.  If people don't like this behavior,
14390         I can add a variable to turn it off optionally, but I'm not sure
14391         this is a good idea because we really do need to have accelerators
14392         on all of the menu items, and if a package doesn't like the
14393         accelerators being put on the first character, then it should put
14394         the accelerators where they belong.
14395
14396         c) I made a behavior change, which is that the descriptor that
14397         specifies the text of the menu item, which formerly was just a
14398         string, can now also be an evaluated expression.  This makes this
14399         descriptor parallel with all of the others, which could also be
14400         evaluated expressions.  This also obviates the need for the
14401         keyword :label, which was previously listed in the documentation
14402         as unimplemented, and which was for the same purpose.
14403
14404         d) GCPROing.
14405
14406         * ntproc.c:
14407         * ntproc.c (new_child):
14408         * ntproc.c (sys_spawnve):
14409         * ntproc.c (find_child_console):
14410         * ntproc.c (sys_kill):
14411         Fixed compile warnings.  By the way, this file should really go
14412         away entirely, and this will happen as soon as Kirill makes his
14413         final round of process cleanups, which affect the function
14414         call-process.
14415
14416         * process-nt.c:
14417         * process-nt.c (struct nt_process_data):
14418         * process-nt.c (find_process_from_pid):
14419         * process-nt.c (send_signal_the_nt_way):
14420         * process-nt.c (enable_child_signals):
14421         * process-nt.c (find_child_console):
14422         * process-nt.c (send_signal_the_95_way):
14423         * process-nt.c (nt_finalize_process_data):
14424         * process-nt.c (ensure_console_window_exists):
14425         * process-nt.c (nt_create_process):
14426         * process-nt.c (nt_kill_child_process):
14427         * process-nt.c (nt_kill_process_by_pid):
14428         * process-nt.c (nt_open_network_stream):
14429         * process-nt.c (vars_of_process_nt):
14430         Copied over code from Emacs 20.5 to correctly send signals to sub-
14431         processes under Windows 95.  Also added code to automatically
14432         create and hide console window when a sub-process is created under
14433         Windows 95, which obviates the need for the separate runemacs.exe
14434         executable, and finally implemented some variables that were
14435         implemented in Emacs 20.5, but previously not in XEmacs.  These
14436         include mswindows- start-process-share-console and
14437         mswindows-start-process-inherit-error-mode. (Both of these only
14438         apply to Windows 95.)
14439
14440         * regex.c (regex_compile): Fixed a compile warning.
14441
14442         * select-msw.c:
14443         * select-msw.c (mswindows_own_selection):
14444         * select-msw.c (mswindows_get_foreign_selection):
14445         * select-msw.c (mswindows_disown_selection):
14446         * select-msw.c (console_type_create_select_mswindows):
14447         * select-msw.c (syms_of_select_mswindows):
14448         Cleaned up the file and implemented the device method
14449         selection_exists_p, which had accidentally been left out.  Also
14450         removed four lisp functions that were remnants from before the
14451         time when the selection code was properly device abstracted.
14452         These functions are no longer needed because there are generic
14453         equivalents, and because they were added recently and don't exist
14454         in FSF Emacs, I don't think there's any problem with just deleting
14455         them.
14456
14457         * sysdep.c:
14458         * sysdep.c (sys_subshell):
14459         Fixed a compile warning, although in this case there's probably
14460         something wrong with this code, and it ought to be looked into
14461         more thoroughly by somebody who understands it.
14462
14463         * window.c:
14464         * window.c (Fwindow_text_area_height):
14465         * window.c (Fwindow_width):
14466         * window.c (Fwindow_full_width):
14467         * window.c (Fwindow_pixel_width):
14468         * window.c (debug_print_window):
14469         * window.c (syms_of_window):
14470         Added functions window-text-area-height and window-full-width,
14471         which are functions for returning various width and height
14472         characteristics of a window. (One of these functions is necessary
14473         for making the file dialog box work correctly, and the other one
14474         was added for completeness.)  Also added a table to the
14475         documentation for window-height which describes the entire scheme
14476         for accessing width and height characteristics of a window.
14477
14478 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14479
14480         * nt.c (fstat): Added a comment for another problem with
14481         non-encapsulated [f]stat(), reported by Adrian Aichner
14482         <aichner@ecf.teradyne.com>.
14483
14484 2000-03-11  Andy Piper  <andy@xemacs.org>
14485
14486         * window.c (make_dummy_parent): initialize subwindow instance
14487         cache.
14488         (Fset_window_configuration): zero extent_modiff.
14489
14490 2000-03-10  Andy Piper  <andy@xemacs.org>
14491
14492         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14493         more changes can be triggered.
14494         (Fredisplay_frame): ditto.
14495         (Fredraw_device): ditto.
14496         (Fredisplay_device): ditto.
14497         (redisplay_frame): make non-static.
14498         (redisplay_frame): call update_frame_gutter_geometry outside of
14499         display proper.
14500
14501         * gutter.h: declare update_frame_gutter_geometry.
14502
14503         * redisplay.h: declare redisplay_frame.
14504
14505         * gutter.c (update_frame_gutter_geometry): move geometry changes
14506         in update_frame_gutters here. Geometry changes can only occur
14507         outside of redisplay.
14508         (update_frame_gutters): remove geometry change code.
14509         (Fredisplay_gutter_area): make sure that we are in display when we
14510         update and that we have flushed any size changes.
14511
14512 2000-03-11  Andy Piper  <andy@xemacs.org>
14513
14514         * alloc.c (pdump_dump_data): remove i & count shadows.
14515
14516 2000-02-27  Mike Alexander  <mta@arbortext.com>
14517
14518         * sysdep.h: Declare pdump_read_file
14519
14520         * sysdep.c (pdump_read_file): New function
14521
14522         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14523         dump data
14524
14525 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14526
14527         * lrecord.h: add `lrecord_type_pgsetenv'.
14528
14529 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14530
14531         * symsinit.h: declare (vars|syms)_of* functions.
14532         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14533
14534 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14535
14536         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14537
14538         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14539         GCCs.
14540
14541         * emacs.c (main_1): Call postgres initialization code.
14542
14543         * postgresql.h: New file.  PostgreSQL RDBMS support.
14544         * postgresql.c: New file.
14545
14546 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14547
14548         * redisplay-output.c (redisplay_output_display_block): Disable
14549         redundant code.
14550
14551 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14552
14553         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14554         (Fcanna_henkan_next): Ditto.
14555         (Fcanna_bunsetu_henkou): Ditto.
14556         (Fcanna_henkan_kakutei): Ditto.
14557         (Fcanna_henkan_end): Ditto.
14558         (Fcanna_henkan_quit): Ditto.
14559         (Fcanna_henkan_next): Set retun value correctly.
14560         (c2mu): Use unsigned char instead of signed char.
14561
14562 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14563
14564         * emacs.c (main_1): Always call syms_of_gui.
14565         * inline.c: include gui.h
14566
14567 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14568
14569         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14570         converted to Lisp_Object.
14571         (Qtop_bottom): New variable.
14572         (syms_of_redisplay): Initialize it.
14573         * redisplay.h (Vvisible_bell): Ditto.
14574         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14575         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14576         only flash top and bottom.
14577
14578 2000-03-08  Andy Piper  <andy@xemacs.org>
14579
14580         * buffer.c (Frename_buffer): record new buffer name the right way.
14581
14582 2000-03-08  Andy Piper  <andy@xemacs.org>
14583
14584         * glyphs.c (update_subwindow): increase hash depth so that widget
14585         items get picked up properly.
14586
14587         * redisplay-output.c (compare_runes): increase hash depth so that
14588         widget items get picked up properly.
14589
14590 2000-03-08  Andy Piper  <andy@xemacs.org>
14591
14592         * gutter.c (output_gutter): add some debug.
14593
14594         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14595         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14596         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14597
14598         * redisplay-output.c (compare_runes): use display_hash to
14599         determine if glyphs really are not the same.
14600
14601         * glyphs.c (update_subwindow): check display_hash to see if
14602         anything really needs to be updated. If not then do
14603         nothing. Record the display_hash after updating.
14604         (image_instance_equal): compare the image_instance face also.
14605
14606 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14607
14608         * redisplay.h: Fix comment style.
14609
14610 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14611
14612         * consle-msw.h (struct mswindows_frame):
14613         Added new member paint_pending to indicate whether a WM_PAINT
14614         magic event has been queued for this frame.
14615
14616         * event-msw.c (mswindows_drain_windows_queue):
14617         Don't queue a WM_PAINT magic event if one is already queued.
14618         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14619
14620         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14621
14622 2000-03-07  Didier Verna  <didier@xemacs.org>
14623
14624         * dired.c: #include `regex.h' after `sysfile.h'.
14625
14626 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14627
14628         * sound.c (init_nas_sound): Fix compiler warning.
14629
14630         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14631         (FREE_STRUCT_P):
14632         (MARK_STRUCT_AS_FREE):
14633         (MARK_STRUCT_AS_NOT_FREE):
14634         Make `gcc -fstrict-aliasing' work properly.
14635
14636 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14637
14638         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14639         (mswindows_delete_device): Call CoUnnitialize().
14640
14641         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14642
14643 2000-02-25    <CraigL@DyCon.com>
14644
14645         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14646         <errno.h>.
14647
14648         * sysdep.c: This extern declaration for environ prevents MinGW
14649         from finding the variable in CRTDLL.DLL.
14650
14651         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14652         windows headers.
14653         (SHGFI_EXETYPE): ..
14654         (WM_MOUSEWHEEL): ..
14655         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14656         definitions.
14657         (MMRESULT): Removed, now defined in cygwin's windows headers.
14658         (TIMECAPS): ..
14659         (uid_t,gid_t,pid_t,ssize_t): ..
14660         (_timeb): Removed, MinGW defines both _timeb and timeb.
14661         (HAVE_H_ERRNO): Added.
14662         (HAVE_TZNAME): Added, configure is not detecting this.
14663
14664 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14665
14666         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14667         * syntax.c (syntax_match): Use it.
14668
14669         * cmds.c: Import auto-fill-chars from FSF Emacs.
14670         (Vauto_fill_chars): New variables.
14671         (internal_self_insert): Check Vauto_fill_chars.
14672         (vars_of_cmds):
14673         Declare auto-fill-chars as a Lisp variable and initialize it.
14674
14675 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14676
14677         * fileio.c (Fmake_symbolic_link):
14678         (Ffile_symlink_p):
14679         Run handlers even if local machine doesn't have symlinks.
14680
14681 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14682
14683         * event-msw.c (mswindows_drain_windows_queue):
14684         Don't generate paint magic events for non-XEmacs frames.
14685
14686 2000-03-05  Andy Piper  <andy@xemacs.org>
14687
14688         * redisplay.c (redisplay_frame): generate_displayable_area and
14689         friends assumes that we are not in GC, we therefore have to make
14690         sure that this doesn't happen.
14691
14692         * gutter.c (calculate_gutter_size): generate_displayable_area
14693         assumes that we are not in GC, we therefore have to make sure that
14694         this doesn't happen.
14695
14696 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14697
14698         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14699
14700 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14701
14702         * redisplay.c (regenerate_window): Make sure we set a sane value
14703         for end_pos even if we jump out of the loop.
14704         (regenerate_window): Answer Ben's question :-).
14705         (start_end_of_last_line): Add may_error argument.
14706         (start_of_last_line):
14707         (end_of_last_line): Pass may_error = 0.
14708         (end_of_last_line_may_error): New function.
14709         (pixel_to_glyph_translation): Use it, so we don't crash in
14710         event_to_glyph.
14711
14712 2000-03-04  Andy Piper  <andy@xemacs.org>
14713
14714         * window.h (struct window): add gutter_extent_modiff.
14715
14716         * window.c (allocate_window): zero out gutter_extent_modiff.
14717
14718         * redisplay.h: declare sync_display_line_structs.
14719
14720         * redisplay.c (add_glyph_rune): add a better comment.
14721
14722         * redisplay-output.c (sync_display_line_structs): made non-static.
14723         (compare_runes): remove unneccesary glyph cachel access.
14724
14725         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14726
14727         * gutter.c (output_gutter): don't output the gutter if extent
14728         changes only involve extents in buffers. use 4 sets of display
14729         lines.
14730         (gutter_extent_signal_changed_region_maybe): new function. Mark
14731         extents in gutters as changed.
14732         (update_frame_gutters): use 4 sets of display lines.
14733         (reset_gutter_display_lines): ditto.
14734         (free_frame_gutters): ditto.
14735         (redraw_exposed_gutter): force output of gutters.
14736
14737         * frame.h (struct frame): add 4 sets of gutter display lines.
14738
14739         * extents.c: (extent_changed_for_redisplay): signal changes to
14740         extents in strings in the gutter as well as extents in buffers.
14741
14742 2000-03-02  Andy Piper  <andy@xemacs.org>
14743
14744         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14745
14746         * frame.c (Fmake_frame): make sure the gutters get initialized
14747         after the frame is visible.
14748         (set_frame_selected_window): re-arrange compilation macros a
14749         little.
14750         (change_frame_size_1): mark gutters changed.
14751
14752         * device.c (Fset_device_class): mark gutters changed.
14753
14754 2000-03-01  Andy Piper  <andy@xemacs.org>
14755
14756         * window.c (window_top_frame_gutter_height): deleted.
14757         (window_bottom_frame_gutter_height): ditto.
14758         (window_left_frame_gutter_height): ditto.
14759         (window_right_frame_gutter_height): ditto.
14760         (window_top_gutter_height): don't use them.
14761         (window_bottom_gutter_height): ditto.
14762         (window_left_gutter_width): ditto.
14763         (window_right_gutter_width): ditto.
14764         (Fsplit_window): ditto.
14765         (Fwindow_pixel_edges): don't use border dimensions here.
14766
14767         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14768         (update_scrollbar_instance): ditto.
14769
14770         * redisplay.c (generate_modeline): don't take gutters into account.
14771         (generate_modeline): ditto.
14772         (redisplay_frame): small gutter display optimization.
14773
14774         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14775
14776         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14777         gutters into account.
14778
14779         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14780         for window position and type.
14781
14782         * gutter.c (get_gutter_coords): fix for frame gutters.
14783         (update_frame_gutters): update frame geometry if the gutters have
14784         changed.
14785         (init_frame_gutters): record current gutter geometries.
14786
14787         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14788         var.
14789         (mswindows_widget_instantiate): ditto.
14790
14791         * frame.h (struct frame): add current_gutter_bounds.
14792
14793         * frame.c (change_frame_size_1): position window and minibuffer
14794         appropriately taking into account the frame gutters.
14795
14796         * frame-x.c: (x_initialize_frame_size): take into account the
14797         frame gutters.
14798
14799 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14800
14801         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14802
14803 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14804
14805         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14806
14807 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14808
14809         * file-coding.c (reset_decoding_stream): Clear previous
14810         detection state when autodetect.
14811
14812 2000-02-29  Didier Verna  <didier@xemacs.org>
14813
14814         * extents.c (set_extent_glyph_1): don't require extents to be
14815         attached.
14816
14817 2000-02-27  Andy Piper  <andy@xemacs.org>
14818
14819         * gutter.c (Fset_default_gutter_position): don't default left and
14820         right gutter visibility to t.
14821         (Fset_default_gutter_position): run
14822         default-gutter-position-changed-hook.
14823         (syms_of_gutter): add default-gutter-position-changed-hook.
14824
14825 2000-02-26  Andy Piper  <andy@xemacs.org>
14826
14827         * specifier.c (Fmake_specifier): add gutter references.
14828
14829         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14830
14831         * lisp.h: declare Fvalid_plist_p.
14832
14833         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14834         as changed.
14835         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14836         well as its visibility so that it gets reconstructed.
14837         (construct_window_gutter_spec): new function. Construct a string
14838         to be displayed in the gutter from a plist of strings. Take care
14839         to only use elements that are declared as visible.
14840         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14841         WINDOW_GUTTER.
14842         (gutter_validate): allow plists of strings in the specifier.
14843         (gutter_specs_changed): construct the real_gutter from the gutter
14844         specs using construct_window_gutter_spec.
14845         (gutter_visible_validate): gutter-visible is a new specifier type.
14846         (Fgutter_visible_specifier_p): new function for the new specifier.
14847         (syms_of_gutter): declare gutter-visible and
14848         Fgutter_visible_specifier_p.
14849         (specifier_type_create_gutter): intitalize new gutter-visible
14850         specifier.
14851         (reinit_specifier_type_create_gutter): ditto.
14852         (specifier_vars_of_gutter): use new specifier type for gutter
14853         visibility.
14854         (init_frame_gutters): construct real_gutter correctly.
14855         (Fgutter_specifier_p): beef up documentation.
14856         (Fgutter_size_specifier_p): ditto.
14857
14858         * winslots.h: add real_gutter slots.
14859
14860 2000-02-25  Andy Piper  <andy@xemacs.org>
14861
14862         * device-msw.c: Be kind to older cygwin versions. From Raymond
14863         Toy <toy@rtp.ericsson.se>.
14864
14865         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14866         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14867
14868 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14869
14870         * elhash.c (MARK_OBJ): Practice macro hygiene.
14871
14872 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14873
14874         * miscplay.c: s/__inline__/inline/g;
14875         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14876         (get_device_compdc): INLINE ==> static inline
14877         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14878         find -name '*.h' | \
14879         xargs global-replace \
14880         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14881
14882 2000-02-25  Andy Piper  <andy@xemacs.org>
14883
14884         * window.c (window_top_frame_gutter_height): new function.
14885         (window_top_window_gutter_height): ditto.
14886         (window_top_gutter_height): use them.
14887         (window_bottom_frame_gutter_height): new function.
14888         (window_bottom_window_gutter_height): ditto.
14889         (window_bottom_gutter_height): use them.
14890         (window_left_window_gutter_width): new function.
14891         (window_left_frame_gutter_width): ditto.
14892         (window_left_gutter_width): use them.
14893         (window_right_window_gutter_width): new function.
14894         (window_right_frame_gutter_width): ditto.
14895         (window_right_gutter_width): use them.
14896         (window_pixel_height): new function. calulate window pixel height
14897         with frame gutter involvement.
14898         (Fsplit_window): calculate new sizes taking frame gutters into
14899         account.
14900         (window_char_height_to_pixel_height): don't include frame gutters.
14901         (window_char_height): use window_pixel_height.
14902         (window_pixheight): rename from window_pixel_height.
14903         (change_window_height): use it.
14904         (window_pixel_height_to_char_height): don't include frame gutters.
14905         (window_char_width_to_pixel_width): ditto.
14906
14907 2000-02-25  Andy Piper  <andy@xemacs.org>
14908
14909         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14910         if it is.
14911
14912 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14913
14914         * alloc.c (staticpro):
14915         (staticpro_nodump):
14916         (dumpstruct):
14917         (dumpopaque):
14918         (pdump_wire):
14919         (pdump_wire_list):
14920         (compact_string_chars):
14921         (pdump_dump_wired):
14922         Convert:  if (foo) abort();  ==>  assert (! foo);
14923
14924         * eldap.c (Fldap_search_basic):
14925         (Fldap_add):
14926         (Fldap_modify):
14927         (Fldap_delete):
14928         Fix compiler warnings, and possible crashes if (random) return
14929         value were to be used.
14930
14931 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14932
14933         * device-msw.c: Workaround ResetDC failure.
14934
14935         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14936         applying a devmode.
14937
14938         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14939         (mswindows_text_width): Do not start printer page.
14940
14941         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14942
14943         * glyphs-msw.c: Added image methods to msprinter console and
14944         msprinter-specific image instantiation.
14945
14946 2000-02-20  Mike Alexander  <mta@arbortext.com>
14947
14948         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14949         to avoid crashes when selection-sets-clipboard is on
14950         (mswindows_own_selection): ditto
14951
14952 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14953
14954         * glyphs-msw.c:
14955         * redisplay-msw.c (get_frame_dc):
14956         (get_frame_compdc):
14957         * console-msw.h:
14958         * device-msw.c (mswindows_init_device):
14959         (mswindows_delete_device):
14960         (msprinter_init_device):
14961         (msprinter_delete_device):
14962         * frame-msw.c (mswindows_init_frame_1):
14963         (mswindows_delete_frame):
14964         (msprinter_init_frame_3):
14965         (msprinter_delete_frame): Move compatible DC to device object from
14966         frame object, for both mswindows and msprinter. Only one at a time
14967         is needed, it is a real waste to have one per frame!
14968
14969 2000-02-23  Andy Piper  <andy@xemacs.org>
14970
14971         * glyphs.c: add dynamic width and height elements.
14972         (image_instance_equal): ditto.
14973
14974         * glyphs-widget.c (widget_query_geometry): calculate width and
14975         height dynamically if required.
14976         (initialize_widget_image_instance): initialize dynamic dimensions.
14977         (widget_instantiate): pick-up dynamic dimensions.
14978
14979         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14980         dynamic determination. Add appropriate macros.
14981
14982         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14983         dimensions safe.
14984         (WINDOW_GUTTER_SIZE): ditto.
14985         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14986
14987         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14988         inline.
14989         (get_frame_dc): ditto.
14990
14991         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14992         here.
14993
14994 2000-02-23  Martin Buchholz <martin@xemacs.org>
14995
14996         * XEmacs 21.2.31 is released.
14997
14998 2000-02-22  Ben Wing <ben@xemacs.org>
14999
15000         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15001
15002 2000-02-22  Andy Piper  <andy@xemacs.org>
15003
15004         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15005
15006 2000-02-21  Mike Sperber <mike@xemacs.org>
15007
15008         * .dbxrc:
15009         * .gdbinit:
15010         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15011         variables.
15012
15013 2000-02-21  Mike Sperber <mike@xemacs.org>
15014
15015         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15016
15017 2000-02-21  Martin Buchholz <martin@xemacs.org>
15018
15019         * XEmacs 21.2.30 is released.
15020
15021 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15022
15023         Performance hacking.
15024         * *.c (syms_of_*):
15025         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15026         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15027         * emacs.c (main_1):
15028         * lisp.h (DEFUN):
15029         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15030         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15031         * symeval.h (DEFVAR_SYMVAL_FWD):
15032         * symbols.c (guts_of_unbound_marker):
15033         Make all c_readonly objects also lisp_readonly and marked for life.
15034         * lrecord.h (struct lrecord_implementation):
15035         Document flags better.
15036         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15037         * lrecord.h (DECLARE_LRECORD):
15038         * lrecord.h (XSETRECORD):
15039         * lrecord.h (RECORDP):
15040         * lrecord.h (RECORD_TYPEP):
15041         * lrecord.h (RECORD_MARKER): New.
15042         * lrecord.h (error_check_*):
15043         * lrecord.h (CONCHECK_NONRECORD):
15044         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15045         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15046         * lrecord.h (set_lheader_implementation):
15047         * lrecord.h (enum lrecord_type): New.
15048         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15049         * alloc.c (disksave_object_finalization_1):
15050         * alloc.c (mark_object):
15051         * alloc.c (lrecord_type_index):
15052         * alloc.c (tick_lcrecord_stats):
15053         * alloc.c (Fgarbage_collect):
15054         * alloc.c (init_alloc_once_early):
15055         * alloc.c (pdump_load):
15056         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15057         * alloc.c (lrecord_type_index): Delete.
15058         Make lisp object type indexes be constant.
15059           Makes (byte-compile) 5% faster.
15060         Put all marker functions into their own array.
15061           Makes (garbage-collect) 5% faster.
15062         Optimize SYMBOL_VALUE_MAGIC_P.
15063           Makes (byte-compile) 2-3% faster.
15064         * config.h.in (gc_checking_assert): New.
15065         * alloc.c: Use gc_checking_assert().
15066         * .dbxrc: Make compatible with new object type implementation.
15067         * .gdbinit: Make compatible with new object type implementation.
15068         * alloc.c: Delete all symbols defined only for debugging, such as
15069         Lisp_Type_Vector and lrecord_charset.
15070
15071 2000-02-21  Andy Piper  <andy@xemacs.org>
15072
15073         * gui-msw.c (Fmswindows_shell_execute): fix file location
15074         problems.
15075
15076         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15077         unshowing so that set_window_buffer doesn't undo
15078         kill_buffer_hook's hard work.
15079
15080         * glyphs-widget.c (tab_control_query_geometry): don't count the
15081         first item when calculating geometry.
15082
15083         * glyphs.c (map_subwindow): remove redundant code.
15084         (update_frame_subwindows): be more circumspect about when to
15085         update subwindows.
15086
15087         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15088         when items haven't changed. Update faces if faces have changed as
15089         well as just the widget face.
15090         (x_tab_control_update): Update faces if faces have changed as well
15091         as just the widget face.
15092
15093 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15094
15095         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15096         registration.
15097         (build_syscolor_string): Use mswindows_color_to_string to try to
15098         get a named color.
15099         (mswindows_device_system_metrics): Reverse the foreground and
15100         background colors so that they match the documentation.
15101
15102         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15103         they match the default Windows palette.
15104         (mswindows_color_to_string): New function.
15105
15106 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15107
15108         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15109
15110 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15111
15112         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15113         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15114
15115         * symbols.c (init_symbols_once_early): Removed obsolete
15116         DATA_SEG_BITS related kludge.
15117         (defvar_magic): Ditto.
15118
15119         * malloc.c: Removed obsolete DATA_SEG_BITS
15120         * ralloc.c: Ditto.
15121         * mem-limits.h: Ditto.
15122
15123         * Makefile.in.in: Removed obsolete HAVE_SHM
15124         * emacs.c: Ditto.
15125
15126 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15127
15128         *  device-msw.c (mswindows_delete_device): Free DDE string
15129         handles.
15130
15131 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15132
15133         * keymap.c (get_keyelt):
15134         * unexnt.c (unexec):
15135         * vm-limit.c (memory_warnings):
15136         * ntheap.c (recreate_heap):
15137         * ntheap.h (UNINIT_PTR):
15138         * select-msw.c (Fmswindows_get_clipboard):
15139         (Fmswindows_set_clipboard):
15140         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15141         * objects-msw.c:
15142         * menubar-msw.c (displayable_menu_item):
15143         * glyphs-msw.c:
15144         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15145         * sysdep.c (sys_subshell):
15146         * process-nt.c (nt_create_process):
15147         * nt.c (normalize_filename):
15148         (dostounix_filename):
15149         (unixtodos_filename):
15150         * ntproc.c (win32_executable_type):
15151         * ntplay.c (play_sound_data_1):
15152         (play_sound_file):
15153         * editfns.c (get_home_directory):
15154         * event-msw.c (struct winsock_stream):
15155         (mswindows_dde_callback):
15156         * device-msw.c (msprinter_init_device):
15157         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15158
15159         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15160         mswindows_clear_toolbar were swapped!
15161
15162         * objects-msw.c:(colormap_t):
15163         (fontmap_t):
15164         * emacs.c (struct standard_args): Fixed const jumble.
15165
15166         * glyphs-widget.c (update_widget): Fixed comparison notation.
15167
15168         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15169
15170         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15171         __declspec(noreturn) syntax.
15172
15173 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15174
15175         * eldap.c (Fldap_open):
15176         (Fldap_search_basic):
15177         (Fldap_add):
15178         (Fldap_modify):
15179         Use new coding system conversion macros.
15180
15181 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15182
15183         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15184
15185 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15186
15187         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15188         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15189
15190         * eldap.c (Qadd, Qreplace): New constant symbols
15191         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15192         interruptions by XEmacs signals
15193         Remove unnecessary calls to slow_down_interrupts and
15194         speed_up_interrupts
15195         (Fldap_search_basic): Renamed from Fldap_search_internal
15196         Added new optional parameter VERBOSE that triggers the
15197         display of progress messages
15198         Remove unnecessary calls to slow_down_interrupts and
15199         speed_up_interrupts
15200         LDAP result code analysis rewritten
15201         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15202         (syms_of_eldap): Define the new symbols and functions
15203
15204
15205 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15206
15207         * realpath.c: Determine PATH_MAX maximally portably.
15208
15209         * insdel.c (bytecount_to_charcount): Optimize.
15210         The function used to be optimized for entirely ASCII sequences.
15211         Now it is optimized for successive characters from the same
15212         charset.  This also wins big for _mostly_ ASCII sequences.
15213
15214         * fileio.c (Ffile_truename): convert return from realpath() using
15215         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15216         - Rewrite GCPROing slightly.
15217
15218         * sysdep.c (sys_open): Do filename conversion, like all other
15219         sys_* functions.  Fixes bug:
15220         (let ((file-name-coding-system 'iso-8859-2))
15221            (write-region x y latin2-name))
15222         ==> writes filename using internal encoding.
15223
15224 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15225
15226         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15227         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15228         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15229         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15230         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15231         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15232         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15233         (CONST_IF_NOT_DEBUG): Delete.
15234         * alloc.c (this_one_is_unmarkable): Delete.
15235         (mark_object): Don't check for this_one_is_unmarkable. Use the
15236         c_readonly flag instead.
15237         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15238
15239 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15240
15241         * event-msw.c (mswindows_drain_windows_queue):
15242         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15243         away redundant repaint events.
15244
15245 2000-02-17  Andy Piper  <andy@xemacs.org>
15246
15247         * redisplay.h: declare mark_redisplay_structs.
15248
15249         * redisplay.c (redisplay_window):
15250         (redisplay_frame): don't check subwindows_state_changed.
15251         (mark_redisplay): mark gutters here.
15252
15253         * glyphs.c: (instantiate_image_instantiator): always layout if we
15254         haven't done so already.
15255         (allocate_image_instance): don't mark as dirty.
15256         (update_subwindow): bind inhibit_quit.
15257
15258         * gutter.c (mark_gutters): new function.
15259
15260         * glyphs-x.c (x_update_widget): Always resize to get round a
15261         widget bug.
15262
15263         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15264         breaking absolutely everything.
15265
15266         * gutter.h: declare mark_gutters.
15267
15268 2000-02-16  Martin Buchholz <martin@xemacs.org>
15269
15270         * XEmacs 21.2.29 is released.
15271
15272 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15273
15274         * fns.c (size_bit_vector): Fix computation of the size.
15275
15276 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15277
15278         * *.[ch]: Change CONST to const globally.
15279         find -name '*.[ch]' | \
15280         xargs global-replace \
15281         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15282         - Remove vestigial references to CONST_IS_LOSING
15283
15284 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15285
15286         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15287         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15288         events instead of dispatching them directly.
15289         (mswindows_handle_paint): New function to do repainting.
15290         (mswindows_wnd_proc):
15291         (emacs_mswindows_handle_magic_event): Call above function.
15292
15293 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15294
15295         * objects-msw.c (mswindows_create_font_variant): Return the new
15296         font handle.
15297         (initialize_font_instance): Get font metrics from the underlined
15298         variant of the font to cope with the case where the underlined
15299         font has a bigger descent.
15300
15301 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15302
15303         * gui.c (gui_item_accelerator): Return the first underlined
15304         character in item name.
15305
15306 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15307
15308         * lisp.h: Added Qprinter.
15309
15310         * general.c (syms_of_general): Initialized it.
15311
15312         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15313         (get_frame_dc):
15314         (get_frame_compdc): Made inline.
15315
15316         * console.h (struct console_methods): Added eject_page method.
15317
15318         * frame.h: Added FRAME_DISPLAY_P and friends.
15319         Aligned backslahes in many macros in more readable fashion.
15320         Added page_number to struct frame, and an accessor macro
15321         for it.
15322
15323         * defice.h: Added DEVICE_DISPLAY_P and friends.
15324
15325         * device.c (Fdevice_printer_p): Used these.
15326
15327         * frame.c (allocate_frame_core): Initialize page number.
15328         (Fprint_job_page_number):
15329         (Fprint_job_eject_page): Implemented.
15330
15331         * frame-msw.c (msprinter_eject_page): Added method.
15332         (msprinter_start_page): Added.
15333
15334         * window.c (Fwindow_truncated_p): Fixed docstring.
15335         (Fwindow_last_line_visible_height): Implemented.
15336
15337 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15338
15339         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15340
15341 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15342
15343         * syntax.c (scan_words): Always advance at least one character.
15344
15345 2000-02-13  Andy Piper  <andy@xemacs.org>
15346
15347         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15348         to make sure the glyph is in the cachels.
15349
15350         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15351         global image instance flag.
15352         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15353         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15354
15355         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15356         (Fset_image_instance_property): mark layout as changed.
15357         (invalidate_glyph_geometry_maybe): mark layout as changed.
15358         (glyph_width): use new NEEDS_LAYOUT macro.
15359         (glyph_ascent): ditto.
15360         (glyph_descent): ditto.
15361         (glyph_height): ditto.
15362         (image_instance_layout): mark layout as clean after laying out.
15363         (update_subwindow): don't mark layout as clean here.
15364
15365         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15366         should no longer be needed.
15367
15368         * glyphs-x.c (x_update_widget): sanitize asserts.
15369         (x_finalize_image_instance): sanitize assignment to widgets.
15370
15371         * glyphs-widget.c (widget_instantiate): don't need to clear the
15372         layout flag here.
15373
15374 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15375
15376         * sysdep.c (getcwd): Use standard prototype.
15377         * sysdep.h (getcwd): Use standard prototype.
15378
15379         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15380         (sequence, start, end).
15381         Remove redundant type checking.
15382         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15383         view of `caller-protects') to avoid a crash where the real fix was
15384         found elsewhere.
15385
15386 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15387
15388         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15389
15390         * s/sol2.h: Remove feature macro initialization.
15391
15392         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15393         (vector_hash): New.  Code from internal_hash.
15394         * lrecord.h:
15395         Fix up allocation subsystem comments.
15396
15397         * config.h.in: Add __EXTENSIONS__ for Solaris.
15398
15399         * systime.h (EMACS_GETTIMEOFDAY): New.
15400         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15401         Remove Solaris-specific code.
15402         Use void* for the (ignored) second arg for gettimeofday().
15403
15404         * elhash.c (hash_table_hash): Implement it, finally.
15405         * elhash.c:  Use hashcode_t.
15406
15407         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15408         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15409
15410         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15411         * fns.c (size_bit_vector):
15412         * alloc.c (size_vector):
15413         (make_vector_internal):
15414         (make_bit_vector_internal):
15415         (sweep_bit_vectors_1):
15416         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15417
15418 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15419
15420         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15421         Include strings.h to avoid warnings for bzero and strcasecmp.
15422
15423 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15424
15425         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15426         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15427
15428         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15429         sequence.
15430
15431 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15432
15433         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15434         use a value field instead.
15435         (symbol_value_forward_forward): Use value field.
15436         (DEFVAR_SYMVAL_FWD): Use value field.
15437         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15438         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15439         (DEFVAR_CONST_INT): Ditto.
15440         (DEFVAR_BOOL): Ditto.
15441         (DEFVAR_CONST_BOOL): Ditto.
15442         (DEFVAR_INT_MAGIC): Ditto.
15443         (DEFVAR_BOOL_MAGIC): Ditto.
15444
15445         * symbols.c (guts_of_unbound_marker): Use value field.
15446         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15447         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15448
15449         * lisp.h: Declare dumpopaque and noninteractive1.
15450
15451         * alloc.c (dumpopaque): Added.
15452         (pdump_dump_opaquevec): Added.
15453         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15454         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15455         noninteractive.
15456
15457 2000-02-10  Andy Piper  <andy@xemacs.org>
15458
15459         * glyphs.c (image_instance_layout): if the size changes, mark it
15460         as such.
15461
15462         * redisplay-output.c (redisplay_output_layout): Update the
15463         subwindow here.
15464         (redisplay_output_subwindow): ditto.
15465
15466         * glyphs.c (update_subwindow): make sure we reset flags for
15467         layouts as well as everything else.
15468
15469         * glyphs-widget.c (layout_layout): don't need to set the instances
15470         dimensions here.
15471
15472 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15473
15474         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15475         not HAVE_DLOPEN, which is a lower-level thing.
15476
15477         * .cvsignore: Ignore gmon.out
15478
15479 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15480
15481         * .cvsignore: Ignore portable dumper xemacs.dmp file
15482
15483 2000-02-09  Andy Piper  <andy@xemacs.org>
15484
15485         * redisplay-output.c (redisplay_output_layout): be more clever
15486         about when we output based on the changed flags.
15487
15488         * glyphs.h (struct image_instantiator_methods): add update_method.
15489         (struct Lisp_Image_Instance): add changed flags. Declare new
15490         macros for manipulating them.
15491
15492         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15493         (image_instance_parent_glyph): find an image_instance's parent
15494         glyph or image_instance.
15495         (image_instance_layout): mark the size as changed.
15496         (set_image_instance_dirty_p): new function. mark an image
15497         instance, plus all of its parents, as dirty.
15498         (Fset_image_instance_property): use it.
15499         (Fglyph_animated_timeout_handler): use it.
15500         (update_subwindow): call update_widget and device methods for
15501         update_subwindow. Mark all changed flags as clean.
15502         (Fresize_subwindow): mark size as changed.
15503
15504         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15505         failures.
15506         (x_update_subwindow): only resize subwindows here.
15507         (x_update_widget): new function. Update all changed properties of
15508         a widget.
15509         (x_resize_subwindow): deleted.
15510         (x_widget_set_property): deleted.
15511         (x_progress_gauge_set_property): deleted.
15512         (x_progress_gauge_update): new function. Implement recorded
15513         changes.
15514         (x_tab_control_update): ditto.
15515         (x_tab_control_set_property): deleted.
15516         (console_type_create_glyphs_x): declare new functions.
15517         (image_instantiator_format_create_glyphs_x): ditto.
15518
15519         * glyphs-widget.c (widget_set_property): mark text changed.
15520         (update_widget): new function. Update properties of a widget.
15521         (widget_instantiate): for layouts make sure we set their
15522         children's parent correctly.
15523         (tab_control_set_property): new function. Record changes that will
15524         take place under redisplay's control.
15525         (progress_gauge_set_property): ditto.
15526         (image_instantiator_progress_guage): declare new functions.
15527         (image_instantiator_tab_control): ditto.
15528
15529         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15530         now.
15531         (mswindows_update_widget): new function. Update all properties on
15532         a widget that have changed.
15533         (mswindows_button_update): new function. Update a button's set
15534         state.
15535         (mswindows_tab_control_update): new function. Update the items in
15536         a tab.
15537         (mswindows_tab_control_set_property): deleted.
15538         (mswindows_progress_gauge_update): new function. Update the
15539         progress gauge's progress.
15540         (mswindows_widget_set_property): deleted. This is all done
15541         asynchronously now.
15542         (mswindows_progress_gauge_set_property): ditto.
15543         (console_type_create_glyphs_mswindows): declare new methods.
15544         (image_instantiator_format_create_glyphs_mswindows): ditto.
15545
15546         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15547         (msprinter_set_frame_properties): ditto.
15548
15549         * console.h (struct console_methods): Add update_widget_method.
15550
15551 2000-02-09  Andy Piper  <andy@xemacs.org>
15552
15553         * gui-msw.c (Fmswindows_shell_execute): Make
15554         mswindows-shell-execute industrial strength.
15555
15556 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15557
15558         * lrecord.h: Make macro argument `props' match member function `plist'.
15559         * fns.c (Fget):
15560         * fns.c (Fput):
15561         * fns.c (Fremprop):
15562         * fns.c (Fobject_plist):
15563         * alloc.c:
15564         * symbols.c:
15565         Object property list frobbing cleanup.
15566         - Allow any lisp object (compared with `eq'), not just symbols, as
15567           keys in object plists.
15568         - Move symbol plist frobbing into symbols.c, where it belongs.
15569         - Move string plist frobbing into alloc.c, where it belongs.
15570         - Everything's an lrecord now, so no need to test for symbolp, etc.
15571         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15572
15573         * extents.c: Reorder code to remove declarations.
15574
15575         * frame.h (store_in_alist): Remove useless declaration.
15576
15577 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15578
15579         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15580         * config.h.in: Add HAVE_XCONVERTCASE.
15581
15582 2000-02-07  Andy Piper  <andy@xemacs.org>
15583
15584         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15585         it breaks many things.
15586
15587 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15588
15589         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15590         actually can start a common comment type.
15591         * src/syntax.h (SYNTAX_END_P): ditto for end.
15592
15593 2000-02-07  Martin Buchholz <martin@xemacs.org>
15594
15595         * XEmacs 21.2.28 is released.
15596
15597 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15598
15599         * event-Xt.c (x_keysym_to_character): New.
15600         (maybe_define_x_key_as_self_inserting_character): New.
15601         (x_has_keysym): New.
15602         Auto-define all keys on the keyboard as self-insert-key.
15603
15604 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15605
15606         * menubar.c (vars_of_menubar): A small code simplification.
15607
15608         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15609
15610         * ExternalShell.c:
15611         * ExternalClient.c:
15612         * EmacsShell-sub.c:
15613         * EmacsManager.c:
15614         * EmacsFrame.c:
15615         Use consistent style for specifying X resources.
15616
15617         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15618         This makes (dontusethis-set-symbol-value-handler) actually usable.
15619
15620         * lrecord.h (lrecord_decription_type):
15621         * alloc.c (pdump_register_sub):
15622         (pdump_dump_data):
15623         (pdump_reloc_one):
15624         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15625         Comply with XEmacs coding style.
15626         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15627         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15628
15629         * keymap.c (Faccessible_keymaps):
15630         Make (accessible-keymaps map "\C-h") do the Right Thing.
15631         Make (accessible-keymaps map []) do the Right Thing.
15632         Make (accessible-keymaps map "") do the Right Thing.
15633         (check_keymap_definition_loop): New function.
15634         (keymap_store_internal): Keep luser from shooting self in foot,
15635           via (define-key ctl-x-4-map "p" global-map).
15636         Remove fullness slot from struct Lisp_Keymap, since hash tables
15637         are now reliable.
15638         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15639
15640 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15641
15642         * redisplay.c (init_redisplay): Fix small memory leak.
15643         * elhash.h:
15644         * elhash.c (pdump_reorganize_hash_table):
15645         Rename from reorganize_hash_table. Change prototype.
15646         Reuse the original memory for hentries.  Save 100k.
15647         * alloc.c (PDUMP_READ): new macro.
15648         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15649         * alloc.c: No need to #ifndef before #undef.
15650
15651         * print.c: Allow debug_print() to print readably by modifying
15652         debug_print_readably.  Use consistent variable names.
15653
15654         * .dbxrc: Try to get things to work even if stopped in a function
15655         without source available by explicitly specifying source files.
15656 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15657
15658         * unexnt.c (_start): Removed bogus code which caused loading heap
15659         from differrent executable file.
15660         Removed bogus assignment to _fmode, which caused inconsistencies.
15661
15662 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15663
15664         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15665         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15666         Do not preliminary `#define signal sigset'.
15667
15668         * systime.h: Do not prototype environ on windows nt and cygwin,
15669         this conflicts with system header.
15670
15671         * syssignal.h: Use correct define for WINDOWSNT
15672
15673         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15674         with system header.
15675
15676         * sysdep.c (near start of file): Fixed commentary and rearranged
15677         ifdefs in readable order.
15678         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15679         (start_of_text):
15680         (end_of_text):
15681         (end_of_data): Do not compile in if using PDUMP.
15682
15683         * symsinit.h: Prototyped vars_of_nt().
15684
15685         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15686         (find_child_console): Use it.
15687         (sys_kill): Use it.
15688
15689         * ntheap.h: Do not extern os_subtype.
15690
15691         * ntheap.c (cache_system_info): Do not cache unneeded:
15692         nt_major_version, nt_minor_version and os_subtype.
15693         (recreate_heap): Do not compile in when PDUMPing.
15694
15695         * nt.c (geteuid and friends): Use the new varibale
15696         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15697         (init_user_info): Removed the above mentioned hackery.
15698         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15699         stat has been fixed in the C runtime.
15700         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15701
15702         * file-coding.c (struct file_coding_dump): Do not define
15703         ucs_to_mule_table in the struct if not MULE.
15704         (struct struct lrecord_description fcd_description_1): Do not dump
15705         the above.
15706
15707         * emacs.c (main_1): Call vars_of_nt().
15708         (right before Fdump_emacs_data): Don't need lastfile if using both
15709         portabe dumper and system malloc.
15710
15711         * alloc.c (Fmemory_limit): Conditionalized out.
15712         (pdump): Use OPEN_BINARY for the portable dump file.
15713         (pdump_load): Ditto.
15714
15715 2000-02-02  Mike Alexander  <mta@arbortext.com>
15716
15717         * nt.c (convert_time): Set tm_isdst before calling mktime and
15718         avoid calling it at all if the compiler supports 64 bit integers.
15719         Also initialize utc_base_ft before using it.
15720
15721 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15722
15723         * frame.c (change_frame_size_1): Take f->internal_border_width
15724         into consideration when calculating the width of the frame.
15725
15726 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15727
15728         * window.c (frame_min_height):
15729         (frame_size_valid_p):
15730         (frame_pixsize_valid_p): Added.
15731         (check_frame_size): Generalized.
15732
15733         * window.h: Prototyped the above.
15734
15735         * lisp.h:
15736         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15737         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15738         Deleted Vwin32_* and Vbinary_process_* unused variables.
15739
15740         * device-msw.c (msprinter_init_device): Do not get printer font
15741         list; Added DEVMODE functions.
15742
15743         * frame-msw.c: Added lots of printer code.
15744
15745         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15746         general.c.
15747
15748         * console-msw.h: Added more msprinter device private slots.
15749
15750 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15751
15752         * event-msw.c (key_needs_default_processing_p): Added.
15753         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15754
15755 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15756
15757         * glyphs.c (image_instance_layout): Mark image instance as clean
15758         after layout.
15759         (glyph_dirty_p): Removed redundant function.
15760         (invalidate_glyph_geometry_maybe): Added.
15761         (update_glyph_cachel_data): Call it.
15762
15763         * glyphs.h: Prototyped it.
15764
15765         * redisplay.c (add_glyph_rune): Call it.
15766         (redisplay_window): Reset glyphs cachels when frame faces have
15767         changed, thus forcing recomputation of built-in border glyphs.
15768
15769 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15770
15771         * Makefile.in.in: Make portable dumper and purify play well together.
15772         Add imperfect, but better than nothing, support for pdump.
15773         Remove xemacs.dmp when temacs is re-generated.
15774         Don't ignore errors when dumping xemacs.
15775
15776         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15777
15778 2000-01-28  Andy Piper  <andy@xemacs.org>
15779
15780         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15781         (setup_normal_frame): ditto.
15782         (setup_frame_without_minibuffer): ditto.
15783         (setup_minibuffer_frame): ditto.
15784         (delete_frame_internal): ditto.
15785         (Fmake_frame_invisible): ditto.
15786         (Ficonify_frame): ditto.
15787
15788         * window.h: change Fset_window_buffer signature.
15789
15790         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15791         (Fset_window_buffer): allow recording of buffer if the window is
15792         the selected window.
15793         (window_loop): Use new Fset_window signature.
15794
15795 2000-01-23  Daniel Pittman  <daniel@danann.net>
15796
15797         * config.h.in: Added template for `HAVE_ATHENA_3D'
15798
15799 2000-01-29  Andy Piper  <andy@xemacs.org>
15800
15801         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15802
15803         * gutter.c (output_gutter): Don't output if the window isn't live.
15804
15805 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15806
15807         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15808         of 01/12/00: Moved SetFocus back here where it belongs.
15809
15810 2000-01-23  Andy Piper  <andy@xemacs.org>
15811
15812         * s/cygwin32.h: declare printer things.
15813
15814 2000-01-26  Andy Piper  <andy@xemacs.org>
15815
15816         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15817         Alexander.
15818
15819 2000-01-24  Andy Piper  <andy@xemacs.org>
15820
15821         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15822         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15823
15824         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15825
15826         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15827
15828         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15829
15830         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15831         (mswindows_output_display_block): Avoid local shadows.
15832
15833         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15834         (mswindows_enqueue_mouse_button_event): ditto.
15835         (mswindows_handle_gui_wm_command): remove declaration.
15836
15837         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15838         warnings.
15839
15840         * console-msw.h: Avoid shadows.
15841         (mswindows_get_toolbar_button_text):
15842         (emacs_mswindows_create_stream_pair):
15843         (emacs_mswindows_delete_stream_pair):
15844         (mswindows_handle_toolbar_wm_command): declare.
15845
15846         * device-msw.c (build_syscolor_string): Avoid shadows.
15847
15848 2000-01-23  Andy Piper  <andy@xemacs.org>
15849
15850         * glyphs-widget.c (widget_instantiate): reverse the items for
15851         layouts so that children are in the expected order.
15852
15853 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15854
15855         * ralloc.c: safe_bcopy ==> memmove
15856         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15857         * s/msdos.h: Remove BCOPY macros.
15858         * insdel.c (gap_right): Remove BCOPY conditional code.
15859         * insdel.c (gap_left): Remove BCOPY conditional code.
15860         XEmacs demands a working ANSI C compiler - hence memmove.
15861
15862         * regex.c (regex_compile): Remove accidental use of trigraphs.
15863
15864 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15865
15866         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15867         event timestamp.
15868
15869 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15870
15871         * event-msw.c (mswindows_drain_windows_queue): Added the
15872         parameter.
15873         (mswindows_need_event): Commented the call to
15874         mswindows_drain_windows_queue().
15875         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15876         only.
15877
15878         * console-msw.h: Moved a few function prototypes here from
15879         event-msw.c.
15880
15881         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15882         parameter from unsigned short to unsigned long.
15883         (Fmswindows_shell_execute): Added return value.
15884
15885 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15886
15887         * sysdep.c (init_system_name):
15888           process-unix.c (unix_canonicalized_host_name):
15889         Don't call freeaddrinfo() if getaddrinfo() fails.
15890
15891         * process-unix.c (unix_open_unix_network_stream):
15892         Moved the code to get a port # into address loop.
15893
15894 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15895
15896         * buffer.c (reinit_vars_of_buffer):
15897         The right place to initialize conversion_in_dynarr and
15898         conversion_out_dynarr.
15899
15900         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15901
15902         * process-unix.c (unix_canonicalize_host_name): Muleize.
15903         (unix_open_network_stream): Muleize.
15904
15905         * buffer.h: Fix up prototypes for ralloc.c functions.
15906
15907 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15908         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15909         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15910                 instead of gethostbyname()
15911         * process-unix.c: In unix_canonicalize_host_name() and
15912                 unix_open_network_stream(), add code to use getaddrinfo()
15913                 instead of gethostbyname().
15914
15915 2000-01-27  Daniel Pittman <daniel@danann.net>
15916
15917         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15918         libs when built with flat Athena.
15919
15920 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15921
15922         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15923         Use coding standards for function prototypes.
15924
15925 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15926
15927         * dialog-msw.c (push_lisp_string_as_unicode):
15928         * doc.c (unparesseuxify_doc_string):
15929         * dired.c (Fuser_name_completion_1):
15930         * dired.c (Fuser_name_all_completions):
15931         * dired.c (free_user_cache):
15932         * dired.c (user_name_completion):
15933         * console-x.c (get_display_arg_connection):
15934         * minibuf.c (clear_echo_area_internal):
15935         * minibuf.c (echo_area_append):
15936         * eldap.c (Fldap_open):
15937         * eldap.c (Fldap_search_internal):
15938         * frame-x.c (x_set_frame_text_value):
15939         * frame-x.c (x_set_frame_properties):
15940         * frame-x.c (x_create_widgets):
15941         * redisplay-tty.c (term_get_fkeys_1):
15942         * objects-x.c (x_parse_nearest_color):
15943         * objects-x.c (x_valid_color_name_p):
15944         * objects-x.c (x_initialize_font_instance):
15945         * objects-x.c (x_list_fonts):
15946         * objects-x.c (x_find_charset_font):
15947         * tooltalk.c (Fadd_tooltalk_message_arg):
15948         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15949         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15950         * process-unix.c (unix_create_process):
15951         * ntproc.c (sys_spawnve):
15952         * sound.c (Fplay_sound_file):
15953         * sound.c (Fplay_sound):
15954         * buffer.c (init_initial_directory):
15955         * buffer.c (init_buffer):
15956         * editfns.c (init_editfns):
15957         * editfns.c (Ftemp_directory):
15958         * editfns.c (Fuser_full_name):
15959         * editfns.c (uncache_home_directory):
15960         * editfns.c (get_home_directory):
15961         * editfns.c (Fuser_home_directory):
15962         * editfns.c (Fformat_time_string):
15963         * editfns.c (Fcurrent_time_string):
15964         * gui-x.c (button_item_to_widget_value):
15965         * database.c (Fopen_database):
15966         * event-Xt.c (x_to_emacs_keysym):
15967         * event-Xt.c (x_event_to_emacs_event):
15968         * event-Xt.c (describe_event_window):
15969         * event-msw.c (mswindows_wnd_proc):
15970         * glyphs-eimage.c (jpeg_instantiate):
15971         * glyphs-eimage.c (gif_instantiate):
15972         * glyphs-eimage.c (png_instantiate):
15973         * glyphs-eimage.c (tiff_instantiate):
15974         * glyphs-x.c (xbm_instantiate_1):
15975         * glyphs-x.c (x_xbm_instantiate):
15976         * glyphs-x.c (x_xface_instantiate):
15977         * glyphs-x.c (autodetect_instantiate):
15978         * glyphs-x.c (cursor_font_instantiate):
15979         * glyphs-x.c (x_widget_instantiate):
15980         * glyphs-x.c (x_widget_set_property):
15981         * glyphs-x.c (x_widget_property):
15982         * glyphs-x.c (BUILD_GLYPH_INST):
15983         * print.c (write_string_to_stdio_stream):
15984         * print.c (output_string):
15985         * print.c (Falternate_debugging_output):
15986         * print.c (Fexternal_debugging_output):
15987         * glyphs-msw.c (extract_xpm_color_names):
15988         * glyphs-msw.c (mswindows_xpm_instantiate):
15989         * glyphs-msw.c (bmp_instantiate):
15990         * glyphs-msw.c (resource_name_to_resource):
15991         * glyphs-msw.c (mswindows_resource_instantiate):
15992         * glyphs-msw.c (xbm_instantiate_1):
15993         * glyphs-msw.c (mswindows_xbm_instantiate):
15994         * glyphs-msw.c (mswindows_xface_instantiate):
15995         * glyphs-msw.c (mswindows_widget_instantiate):
15996         * glyphs-msw.c (add_tree_item):
15997         * glyphs-msw.c (add_tab_item):
15998         * glyphs-msw.c (mswindows_combo_box_instantiate):
15999         * glyphs-msw.c (mswindows_widget_property):
16000         * glyphs-msw.c (mswindows_combo_box_property):
16001         * glyphs-msw.c (mswindows_widget_set_property):
16002         * console.c (stuff_buffered_input):
16003         * objects-msw.c (mswindows_initialize_color_instance):
16004         * objects-msw.c (mswindows_valid_color_name_p):
16005         * objects-msw.c (mswindows_list_fonts):
16006         * objects-msw.c (mswindows_font_instance_truename):
16007         * bytecode.c (optimize_compiled_function):
16008         * select-x.c (symbol_to_x_atom):
16009         * select-x.c (x_atom_to_symbol):
16010         * select-x.c (hack_motif_clipboard_selection):
16011         * select-x.c (selection_data_to_lisp_data):
16012         * select-x.c (lisp_data_to_selection_data):
16013         * select-x.c (Fx_get_cutbuffer_internal):
16014         * select-x.c (Fx_store_cutbuffer_internal):
16015         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16016         * buffer.h (TO_INTERNAL_FORMAT): New function.
16017         * emacs.c (make_arg_list_1):
16018         * emacs.c (make_argc_argv):
16019         * emacs.c (main_1):
16020         * emacs.c (Fdump_emacs):
16021         * emacs.c (split_string_by_emchar_1):
16022         * file-coding.h:
16023         * lisp.h:
16024         * lstream.h:
16025         * symsinit.h:
16026         * device-x.c (x_init_device):
16027         * device-x.c (Fx_valid_keysym_name_p):
16028         * device-x.c (Fx_get_font_path):
16029         * device-x.c (Fx_set_font_path):
16030         * glyphs.c (bitmap_to_lisp_data):
16031         * glyphs.c (pixmap_to_lisp_data):
16032         * alloc.c (make_ext_string): Use coding system arguments.  Update
16033         all callers.
16034         * alloc.c (build_string):
16035         * callproc.c (child_setup):
16036         * callproc.c (init_callproc):
16037         * fileio.c (lisp_strerror):
16038         * fileio.c (directory_file_name):
16039         * fileio.c (Fexpand_file_name):
16040         * fileio.c (Ffile_truename):
16041         * fileio.c (Fsysnetunam):
16042         * fileio.c (Fdo_auto_save):
16043         * sysdep.c (sys_readdir):
16044         * tests.c: New file.  Allow adding C tests.
16045         Replace GET_* macros with a more comprehensible and flexible
16046         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16047         Modify all calls.
16048         Any coding system can be used to do format conversion.
16049         Eliminate enum external_data_format.
16050         Eliminate convert_to_external_format.
16051         Eliminate convert_to_internal_format.
16052         Make sure file-name, keyboard, terminal, and ctext are always
16053         defined as coding systems or aliases.  Make
16054         file-name-coding-system, terminal-coding-system, and
16055         keyboard-coding-system magical variables that are equivalent to
16056         defining the corresponding coding system aliases.
16057
16058         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16059         * file-coding.c (Fcoding_system_alias_p): New function.
16060         * file-coding.c (Fcoding_system_aliasee): New function.
16061         * file-coding.c (append_suffix_to_symbol): New function.
16062         * file-coding.c (dangling_coding_system_alias_p): New function.
16063         * file-coding.c (Ffind_coding_system):
16064         * file-coding.c (Fcopy_coding_system):
16065         * file-coding.c (encode_coding_no_conversion):
16066         * file-coding.c (syms_of_file_coding):
16067         * file-coding.c (vars_of_file_coding):
16068         Rewrite coding system alias code.
16069         Allow nested aliases, like symbolic links.
16070         Allow redefinition of coding system aliases.
16071         Prevent existence of dangling coding system aliases.
16072
16073         * dired.c (Fuser_name_completion_1):
16074         * dired.c (Fuser_name_all_completions):
16075         A crash would happen if user did QUIT in the middle of building
16076         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16077
16078         * lisp.h:
16079         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16080
16081         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16082         an unsigned char *.  Update all callers.
16083
16084 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16085
16086         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16087
16088 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16089
16090         * elhash.c (hentry_description): Use more portable definition.
16091         (resize_hash_table): Initialize new hentries using
16092         xnew_array_and_zero, thereby simplifying the code.
16093
16094         * mule-charset.c (make_charset): Make sure entire object is
16095         initialized, to avoid Purify warnings.
16096
16097         * alloc.c (resize_string): Fix unlikely crash with big strings.
16098
16099 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16100
16101         * realpath.c (xrealpath):
16102         Don't call getwd().
16103
16104 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16105
16106         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16107
16108 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16109
16110         * unexelfsgi.c (unexec): Change the way we decide which segment
16111         should be extended.
16112
16113         Assumption that .bss section should be outside the PT_LOADable
16114         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16115         it's present) is inside the 'data' segment. This would fail the
16116         test which was used to find a segment to grow and cover new
16117         heap. Instead of this assumption, I created another one - on IRIX
16118         the segment to grow should start below .bss and it's address
16119         should extent above the end of .bss. Once this segment is
16120         identified, it's grown to accommodate the new heap and new
16121         zero-length .bss section is added at the end of .data2.
16122
16123 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16124
16125         * eval.c (Feval): Wrong number of arguments should use original
16126         function, not the indirect_function version of it.
16127
16128 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16129
16130         * glyphs-x.c (x_button_instantiate): Don't add image if
16131         it is not a pixmap.
16132         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16133         is relative.
16134
16135 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16136
16137         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16138         declaration.
16139         (DEFVAR_INT_MAGIC): Ditto.
16140         (DEFVAR_BOOL_MAGIC): Ditto.
16141         * glyphs.h: Reindent backslash.
16142
16143 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16144
16145         * glyphs-widget.c (layout_query_geometry):
16146         (layout_layout): Use correct types for gheight, gwidth.
16147
16148 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16149
16150         * EmacsManager.c (QueryGeometry): Purified.
16151
16152 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16153
16154         * alloc.c (make_float): Make sure entire object is initialized, to
16155         avoid Purify warnings.
16156         (pdump_register_sub): Remove useless assignment.
16157         (pdump): Use xmalloc, not malloc.
16158         (pdump_load): Use xmalloc, not malloc.
16159
16160 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16161
16162         * callproc.c:
16163         * dired-msw.c:
16164         * fileio.c:
16165         * process-nt.c:
16166         * redisplay-msw.c:
16167         * sysdep.c: Removed redundant #include <windows.h>
16168
16169 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16170
16171         * frame.c (delete_frame_internal): Do not delete device when its
16172         implementation so declares.
16173         (delete_frame_internal): Set device selected frame to nil when
16174         last frame goes away.
16175
16176         * device-msw.c (msprinter_device_system_metrics): Implemented.
16177         (mswindows_device_system_metrics): Added 'device-dpi property.
16178
16179         * device.c: (Fdevice_printer_p): Added.
16180         Added 'offset-workspace device metric.
16181
16182         * console.h (device_metrics): Declared DM_offset_workspace.
16183
16184 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16185
16186         * fileio.c (Ffile_truename): Remove pointless and confusing
16187         initialization of elen.
16188
16189         * glyphs-widget.c: Compiler warning fixes.
16190
16191 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16192
16193         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16194         instead of a Lisp_Object as argument to make it consistent with
16195         the other LIVE_P macros.
16196         (CHECK_LIVE_PROCESS): New macro.
16197
16198         * process.c: Declare Qprocess_live_p.
16199         (Fprocess_live_p): New function.
16200         (create_process): Use PROCESS_LIVE_P.
16201         (read_process_output): Ditto.
16202         (set_process_filter): Ditto.
16203         (Fdelete_process): Ditto.
16204         (kill_buffer_processes): Ditto
16205         (process_send_signal): Use CHECK_LIVE_PROCESS.
16206         (Fprocess_input_coding_system): Check whether process is still
16207         alive (fix PR#1061).
16208         (Fprocess_output_coding_system): Ditto.
16209         (Fprocess_coding_system): Ditto.
16210         (Fset_process_input_coding_system): Ditto.
16211         (Fset_process_output_coding_system): Ditto.
16212
16213 2000-01-23  Andy Piper  <andy@xemacs.org>
16214
16215         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16216         layout and widget.
16217
16218         * glyphs.c (mark_image_instance): take into account changed
16219         image_instance format.
16220         (image_instance_equal): ditto.
16221         (image_instance_hash): ditto.
16222
16223         * glyphs-widget.c (widget_instantiate): Incorporate layout
16224         instantiation here. Delay layout of the layout until later.
16225         (layout_instantiate): deleted.
16226         (layout_query_geometry): new function. get the geometry of a
16227         layout.
16228         (layout_layout): layout a layout dynamically.
16229         (image_instantiator_widget): New function - splitting up
16230         image_instantiator_format_create_glyphs_widget for netwinder
16231         compilation.
16232         (image_instantiator_buttons):
16233         (image_instantiator_edit_fields):
16234         (image_instantiator_combo_box):
16235         (image_instantiator_scrollbar):
16236         (image_instantiator_progress_guage):
16237         (image_instantiator_tree_view):
16238         (image_instantiator_tab_control):
16239         (image_instantiator_labels):
16240         (image_instantiator_layout): ditto.
16241         (image_instantiator_format_create_glyphs_widget): Call preceding
16242         functions.
16243
16244 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16245
16246         * process.c (Fset_process_coding_system):
16247         * device-x.c (Fx_keysym_hash_table):
16248         Docstring fixes.
16249
16250         * lstream.c (Lstream_write): Return documented value, not 0.
16251
16252         * fileio.c (directory_file_name):
16253         (Fsubstitute_in_file_name):
16254         (Fsubstitute_insert_file_contents_internal):
16255         (Fwrite_region_internal):
16256         * emacs.c:
16257         * sysdep.c:
16258         * getloadavg.c:
16259         * systty.h:
16260         Remove vestigial APOLLO-conditional code.
16261
16262 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16263
16264         * getpagesize.h: Add guard macros.
16265         * libsst.h: Add guard macros.
16266         * libst.h: Add guard macros.
16267         * line-number.h: Add guard macros.
16268         * ndir.h: Add guard macros.
16269         * sysfloat.h: Add guard macros.
16270         * sysfile.h: Add guard macros.
16271         * sysproc.h: Add guard macros.
16272         * syswait.h: Add guard macros.
16273         * xintrinsic.h: Add guard macros.
16274         * xintrinsicp.h: Add guard macros.
16275         * xmmanager.h: Add guard macros.
16276         * xmmanagerp.h: Add guard macros.
16277         * xmprimitive.h: Add guard macros.
16278         * xmu.h: Add guard macros.
16279         * gpmevent.h: Add copyright statement. Add guard macros.
16280         * miscplay.h: Add guard macros.
16281         * *.h: Use consistent C-standards-approved guard macro names.
16282
16283         * opaque.c (make_opaque): Switch parameter order.
16284         * opaque.h (make_opaque): Switch parameter order.
16285         Update all callers.
16286         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16287
16288         * config.h.in (type_checking_assert): Added.
16289         (bufpos_checking_assert): Added.
16290
16291 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16292
16293         * alloc.c: Harmless pdump changes.
16294         - Use countof().
16295         - spell alignment correctly.
16296         * sysdep.c: Use countof()
16297
16298 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16299
16300         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16301         initially_selected_for_input() console method, default to 0.
16302         (semi_canonicalize_console_connection): Try to delegate to
16303         canonicalize_console_connection if no such console method.
16304         (canonicalize_console_connection): Vice versa.
16305         (print_console): Do not print nil connection.
16306
16307         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16308         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16309         (XDEVIMPF_FRAMELESS_OK): Added.
16310         (CONSOLE_INHERITS_METHOD): Added.
16311
16312         * console-msw.c (mswindows_canonicalize_console_connection):
16313         Added.
16314         (mswindows_canonicalize_device_connection): Added.
16315
16316         * console-msw.h (struct msprinter_device): Added this struct and
16317         accessor macros.
16318         (mswindows_device): Made fontlist a lisp object.
16319
16320         * device.c (semi_canonicalize_device_connection):  Try to delegate
16321         to canonicalize_device_connection if no such console method.
16322         (canonicalize_device_connection): Vice versa.
16323         (print_device): Do not print nil connection.
16324
16325         * device-msw.c (mswindows_init_device): Call InitCommonControls
16326         when have widgets.
16327         (mswindows_delete_device): Removed fontlist deallocation.
16328         (mswindows_mark_device): Added.
16329
16330         * events.c (event_equal): Added abort() at unreached code.
16331         (event_hash): Ditto.
16332
16333         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16334         fallback tags of Windows devices.
16335
16336         * general.c (syms_of_general): Initialized Qmsprinter.
16337
16338         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16339         of fallback tags of Windows devices.
16340
16341         * lisp.h: Declared Qmsprinter.
16342
16343         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16344         of strings.
16345         (mswindows_list_fonts): Ditto.
16346         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16347         that it can be used by both mswindows and msprinter devices.
16348         (initialize_font_instance): Added.
16349         (mswindows_initialize_font_instance): Use it.
16350         (msprinter_initialize_font_instance): Added.
16351
16352         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16353         and implementation flags check.
16354         (redisplay_without_hooks): Changed the call to the above.
16355         (Fredraw_device): Ditto.
16356         (Fredisplay_device): Ditto.
16357
16358         * redisplay-msw.c (get_frame_dc): Implemented.
16359         (get_frame_compdc): Implemented.
16360         (many functions): Use the two functions above to get device
16361         contexts, ether for a window or a printer.
16362
16363 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16364
16365         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16366         initialization here.
16367         (init_symbols_once_early): Call it.
16368         * emacs.c (main_1): Call it.
16369         * symsinit.h: Declare it.
16370
16371 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16372
16373         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16374         Lisp_Object.
16375         (pdump_backtrace): Ditto.
16376         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16377         (pdump_get_entry): Abort if trying to register a null pointer.
16378         (pdump_dump_data): Cleanup types when relocating.
16379         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16380         (pdump_dump_rtables): Remove bad casts.
16381         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16382         Lisp_Object instead of a EMACS_INT for the hashtable
16383         reorganization.
16384
16385 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16386
16387         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16388
16389         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16390
16391         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16392
16393         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16394
16395 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16396
16397         * faces.h (FACE_STRIKETHRU_P): Added.
16398
16399         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16400         of font variants.
16401
16402         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16403         (mswindows_set_dc_font): New function, aware of font variants,
16404         separated from mswindows_update_dc.
16405
16406         * objects-msw.h (struct mswindows_font_instance_data): Added
16407         definition.
16408
16409         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16410         cached fonts and the data structure.
16411         (mswindows_initialize_font_instance): Added creation of font data
16412         structure.
16413         (mswindows_print_font_instance): Print at least something.
16414         (mswindows_create_font_variant): Implemented.
16415         (mswindows_get_hfont): Implemented.
16416
16417 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16418
16419         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16420         prototyping problem with msvc.
16421
16422         * emacs.c (main_1): added syms_of_gui_mswindows() call
16423
16424         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16425         syms_of_gui_mswindows() function
16426
16427         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16428
16429 2000-01-18  Martin Buchholz <martin@xemacs.org>
16430
16431         * XEmacs 21.2.27 is released.
16432
16433 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16434
16435         * glyphs-eimage.c (struct tiff_error_struct):
16436         (tiff_error_func):
16437         (tiff_warning_func):
16438         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16439
16440         * unexmips.c:
16441         * unexhp9k3.c:
16442         * unexfreebsd.c:
16443         * unexec.c: Remove vestigial Lucid C code.
16444         * unexalpha.c:
16445         * unexaix.c:
16446         * termcap.c:
16447         * libsst.c: Ansify.
16448         Remove declarations of errno and strerror().
16449
16450         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16451
16452         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16453
16454 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16455
16456         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16457         Optimize.
16458
16459 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16460
16461         * md5.c:
16462         * file-coding.c:
16463         * file-coding.h:
16464         Change enum eol_type to eol_type_t.
16465
16466 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16467
16468         * gui.c (get_gui_callback): Check cons before accessing car.
16469
16470 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16471
16472         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16473         (XSETSPECIFIER_TYPE): Ditto.
16474
16475 2000-01-17  Didier Verna  <didier@xemacs.org>
16476
16477         * redisplay.c (generate_fstring_runes): compute string size in
16478         characters, not bytes.
16479
16480 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16481
16482         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16483
16484 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16485
16486         * print.c (print_error_message): Call print_prepare().
16487
16488 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16489
16490         * .dbxrc: Renamed from dbxrc.
16491
16492         * events.c (event_to_character):
16493         Use `assert (foo)' instead of `if (!foo) abort()'
16494
16495         * .gdbinit (xtype): Add documentation.
16496         * .gdbinit (check-temacs): New function.
16497         * .gdbinit (check-xemacs): New function.
16498         * dbxrc (check-xemacs): New function.
16499         * dbxrc (check-xemacs): New function.
16500
16501 2000-01-14  Andy Piper  <andy@xemacs.org>
16502
16503         * glyphs-widget.c (widget_query_geometry): Make sure that we
16504         calculate default dimensions correctly.
16505
16506 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16507
16508         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16509
16510         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16511         pdump_wire'd variable.
16512
16513         * emacs.c: (main_1): Conditionalized calls to
16514         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16515
16516 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16517
16518         * window.c (Fset_window_configuration):
16519         * sysdep.c (_start):
16520         * input-method-motif.c (res):
16521         * event-Xt.c (Xt_process_to_emacs_event):
16522         Simple compiler warning fixes.
16523
16524         * bytecode.c (funcall_compiled_function): Use the original
16525         function symbol on the backtrace list in preference to the
16526         compiled_function object in error messages.
16527
16528 2000-01-13  Andy Piper  <andy@xemacs.org>
16529
16530         * glyphs-x.c (update_widget_face): Make sure we update the widget
16531         background as well as foreground.
16532
16533 2000-01-13  Andy Piper  <andy@xemacs.org>
16534
16535         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16536         fields to subwindow.
16537         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16538         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16539         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16540         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16541
16542         * glyphs-widget.c (check_valid_tab_orientation): new function.
16543         (initialize_widget_image_instance): zero orientation and
16544         justification.
16545         (widget_instantiate): pick up orientation.
16546         (tab_control_query_geometry): return appropriate values for
16547         vertical tabs.
16548
16549         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16550         appropriate creation flags for left, right and bottom tabs.
16551
16552         * s/cygwin32.h: add tab definitions.
16553
16554 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16555
16556         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16557         frame upon hiding a subwindow.
16558         (mswindows_button_instantiate): Changed the push button style to
16559         BS_PUSHBUTTON.
16560         (mswindows_button_instantiate): Removed button BS_NOTIFY
16561         style.
16562         (mswindows_button_instantiate): Removed redundant check for
16563         a disabled gui item.
16564         (mswindows_button_instantiate): Made use of WS_TABSTOP
16565         consistent: "operable" controls (edit, button, tree, scroll) have
16566         this style, "display-only" ones (static, progress gauge) do
16567         not. This style is currently ignored by XEmacs though. Also,
16568         removed the WS_EX_CONTROLPARENT style - it is not for children,
16569         it is for their parents!
16570         (mswindows_edit_field_instantiate): Ditto.
16571         (mswindows_progress_gauge_instantiate): Ditto.
16572         (mswindows_tree_view_instantiate): Ditto.
16573         (mswindows_tab_control_instantiate): Ditto.
16574         (mswindows_scrollbar_instantiate): Ditto.
16575         (mswindows_combo_box_instantiate): Ditto.
16576         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16577         style to the "clip" window.
16578         (mswindows_button_instantiate): Removed compilation warning by
16579         equally typing terms of the ?: operator.
16580
16581 2000-01-12  Didier Verna  <didier@xemacs.org>
16582
16583         * redisplay.c (generate_fstring_runes): new parameter holding the
16584         last modeline-format extent.
16585         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16586         extent, fill the glyph block with it.
16587         (generate_fstring_runes): handle these parameters.
16588         (generate_formatted_string_db): ditto.
16589
16590         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16591         glyphs'extents in the modeline.
16592
16593 1999-01-11  Mike Woolley  <mike@bulsara.com>
16594
16595         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16596         256Mb, as a workaround for the non-starting problem many people
16597         have experienced.
16598
16599 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16600
16601         * console-tty.c (Fset_console_tty_output_coding_system):
16602         Force redrawing tty frame.
16603
16604 2000-01-10  Didier Verna  <didier@xemacs.org>
16605
16606         * redisplay.c (generate_fstring_runes): fix size computation bug.
16607
16608 2000-01-09  William M. Perry <wmperry@aventail.com>
16609
16610         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16611
16612 2000-01-09  Andy Piper  <andy@xemacs.org>
16613
16614         * glyphs-msw.c: index -> i to avoid shadows.
16615         (xbm_create_bitmap_from_data): make static.
16616         (check_valid_string_or_int): deleted.
16617         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16618
16619         * glyphs-x.c (x_update_subwindow): remove unused args.
16620
16621         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16622         back pointer - this is done in allocate_image_instance.
16623         (query_string_font): return Qnil to make the compiler happy.
16624         (unmap_subwindow): set to ~0 to make the compiler happy.
16625         (glyph_query_geometry): comment out until used.
16626         (glyph_layout): ditto.
16627
16628 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16629
16630         * insdel.c (signal_after_change): Remove extraneous unbind_to().